/*
 * Static UI token layer inspired by Coinbase Design System.
 * The full React CDS package is installed in package.json for future component migration;
 * this file keeps today's static pages visually consistent without adding a runtime bundle.
 */
[data-cds-ready="true"] {
  --cds-blue: #0052ff;
  --cds-blue-hover: #014cec;
  --cds-action: var(--green, #0f8f3d);
  --cds-action-hover: var(--green2, #0b7a33);
  --cds-focus-shadow: rgba(15, 143, 61, 0.16);
  --cds-surface: rgba(18, 22, 31, 0.92);
  --cds-surface-raised: rgba(23, 28, 39, 0.96);
  --cds-border: rgba(255, 255, 255, 0.1);
  --cds-border-strong: rgba(255, 255, 255, 0.18);
  --cds-text: #f5f7fb;
  --cds-muted: rgba(245, 247, 251, 0.62);
  --cds-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[data-cds-ready="true"] a,
[data-cds-ready="true"] button,
[data-cds-ready="true"] input,
[data-cds-ready="true"] select,
[data-cds-ready="true"] textarea {
  letter-spacing: 0;
}

[data-cds-ready="true"] button,
[data-cds-ready="true"] .btn,
[data-cds-ready="true"] .auth-btn {
  min-height: 38px;
  border-radius: 8px;
}

[data-cds-ready="true"] button:focus-visible,
[data-cds-ready="true"] .btn:focus-visible,
[data-cds-ready="true"] a:focus-visible,
[data-cds-ready="true"] input:focus-visible,
[data-cds-ready="true"] select:focus-visible,
[data-cds-ready="true"] textarea:focus-visible {
  outline: 2px solid var(--cds-action);
  outline-offset: 2px;
}

[data-cds-ready="true"] input,
[data-cds-ready="true"] select,
[data-cds-ready="true"] textarea,
[data-cds-ready="true"] .auth-field input {
  border-radius: 8px !important;
  border-color: var(--cds-border) !important;
}

[data-cds-ready="true"] input:focus,
[data-cds-ready="true"] select:focus,
[data-cds-ready="true"] textarea:focus,
[data-cds-ready="true"] .auth-field input:focus {
  border-color: rgba(15, 143, 61, 0.72) !important;
  box-shadow: 0 0 0 3px var(--cds-focus-shadow) !important;
}

[data-cds-ready="true"] .auth-card,
[data-cds-ready="true"] #authSection .bg-gray-800,
[data-cds-ready="true"] #milestoneModal > div,
[data-cds-ready="true"] #rockModal > div,
[data-cds-ready="true"] #capitalModal > div,
[data-cds-ready="true"] #checkinModal > div,
[data-cds-ready="true"] #adminDetailModal > div {
  background: linear-gradient(180deg, var(--cds-surface-raised), var(--cds-surface));
  border-color: var(--cds-border-strong) !important;
  border-radius: 12px !important;
  box-shadow: var(--cds-shadow);
}

[data-cds-ready="true"] .bg-gray-800.border,
[data-cds-ready="true"] .goal-card,
[data-cds-ready="true"] .checkin-card,
[data-cds-ready="true"] .milestone-body,
[data-cds-ready="true"] .rock-card {
  border-color: var(--cds-border) !important;
}

[data-cds-ready="true"] .auth-tab.active,
[data-cds-ready="true"] .auth-btn:not(.secondary) {
  background: var(--cds-action) !important;
  color: #fff !important;
}

[data-cds-ready="true"] .auth-btn:not(.secondary):hover {
  background: var(--cds-action-hover) !important;
}

[data-cds-ready="true"] .modal-overlay {
  background: rgba(2, 4, 9, 0.74);
}

[data-cds-ready="true"] .ee-intake-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fbfdff;
}

[data-cds-ready="true"] .ee-intake-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

[data-cds-ready="true"] .ee-intake-title {
  margin: 0;
  color: var(--tx, #25384a);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

[data-cds-ready="true"] .ee-intake-copy {
  margin: 3px 0 0;
  color: var(--muted, #657485);
  font-size: 12px;
  line-height: 1.45;
  max-width: 64ch;
}

[data-cds-ready="true"] .ee-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

[data-cds-ready="true"] .ee-form-field {
  min-width: 0;
}

[data-cds-ready="true"] .ee-form-field.full {
  grid-column: 1 / -1;
}

[data-cds-ready="true"] .ee-form-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted, #657485);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-cds-ready="true"] .ee-form-field input,
[data-cds-ready="true"] .ee-form-field select,
[data-cds-ready="true"] .ee-form-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--tx, #25384a) !important;
  font: inherit;
  font-size: 13px;
}

[data-cds-ready="true"] .ee-form-field textarea {
  min-height: 84px;
  resize: vertical;
}

[data-cds-ready="true"] .ee-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

[data-cds-ready="true"] .ee-form-status {
  min-height: 18px;
  color: var(--muted, #657485);
  font-size: 12px;
  line-height: 1.4;
}

[data-cds-ready="true"] .ee-form-status.success {
  color: #166534;
}

[data-cds-ready="true"] .ee-form-status.error {
  color: #b91c1c;
}

[data-cds-ready="true"] .ee-step-count {
  flex: 0 0 auto;
  color: var(--muted, #657485);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

[data-cds-ready="true"] .ee-step-track {
  height: 5px;
  margin: -2px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef4;
}

[data-cds-ready="true"] .ee-step-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cds-action);
  transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-cds-ready="true"] .ee-mini-stepper [data-pro-step][hidden] {
  display: none !important;
}

[data-cds-ready="true"] .ee-mini-stepper [data-pro-step].active {
  animation: eeMiniStepIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes eeMiniStepIn {
  from { opacity: 0.001; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-cds-ready="true"] .ee-step-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

[data-cds-ready="true"] .ee-step-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

[data-cds-ready="true"] .ee-step-action-row[hidden],
[data-cds-ready="true"] .ee-step-action-row [hidden] {
  display: none !important;
}

[data-cds-ready="true"] .ee-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

[data-cds-ready="true"] .ee-review-grid div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--tx, #25384a);
  font-size: 13px;
  line-height: 1.4;
}

[data-cds-ready="true"] .ee-review-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted, #657485);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  [data-cds-ready="true"] button,
  [data-cds-ready="true"] .btn,
  [data-cds-ready="true"] .auth-btn {
    min-height: 42px;
  }

  [data-cds-ready="true"] .ee-intake-panel {
    padding: 14px;
  }

  [data-cds-ready="true"] .ee-intake-head,
  [data-cds-ready="true"] .ee-form-actions {
    display: block;
  }

  [data-cds-ready="true"] .ee-form-grid {
    grid-template-columns: 1fr;
  }

  [data-cds-ready="true"] .ee-form-actions .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  [data-cds-ready="true"] .ee-step-action-row,
  [data-cds-ready="true"] .ee-review-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-cds-ready="true"] .ee-step-bar,
  [data-cds-ready="true"] .ee-mini-stepper [data-pro-step].active {
    transition: none;
    animation: none;
  }
}
