/* ═══════════════════════════════════════════════════════════════════════
 * Lucidity Compass v2 — Map / Journey UX
 * Glass-morphism dark theme for the Compass map experience.
 * Adds: nested rhythm journey trail visualization
 * ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg-deep:         #050814;
  --bg-surface:      rgba(15, 22, 41, 0.76);
  --bg-surface-solid:rgba(5, 8, 20, 0.92);
  --bg-raised:       rgba(26, 31, 53, 0.72);
  --bg-card:         rgba(15, 22, 41, 0.84);
  --glass-border:    rgba(217, 168, 255, 0.16);

  --text-primary:    #ffffff;
  --text-secondary:  #d9d7e6;
  --text-muted:      #89849d;

  --accent-morning:      #8be7ff;
  --accent-morning-dim:  rgba(139, 231, 255, 0.12);
  --accent-morning-glow: rgba(139, 231, 255, 0.38);

  --accent-evening:      #d9a8ff;
  --accent-evening-dim:  rgba(217, 168, 255, 0.13);
  --accent-evening-glow: rgba(217, 168, 255, 0.42);

  --accent-coach:        #ec4899;
  --accent-coach-dim:    rgba(236, 72, 153, 0.13);
  --accent-coach-glow:   rgba(236, 72, 153, 0.38);

  --accent-blueprint:    #7c3aed;
  --accent-blueprint-dim:rgba(124, 58, 237, 0.16);
  --accent-blueprint-glow:rgba(124, 58, 237, 0.38);

  --accent-weekly:       #38BDF8;
  --accent-weekly-dim:   rgba(56, 189, 248, 0.13);
  --accent-weekly-glow:  rgba(56, 189, 248, 0.40);

  --accent-monthly:      #A78BFA;
  --accent-monthly-dim:  rgba(167, 139, 250, 0.13);
  --accent-monthly-glow: rgba(167, 139, 250, 0.40);

  --accent-quarterly:    #FB923C;
  --accent-quarterly-dim:rgba(251, 146, 60, 0.13);
  --accent-quarterly-glow:rgba(251, 146, 60, 0.40);

  --accent-annual:       #FBBF24;
  --accent-annual-dim:   rgba(251, 191, 36, 0.13);
  --accent-annual-glow:  rgba(251, 191, 36, 0.40);

  --accent-base:     #7c3aed;
  --accent-base-dim: rgba(124, 58, 237, 0.14);

  --success:         #22c55e;
  --success-dim:     rgba(34, 197, 94, 0.12);
  --success-border:  rgba(34, 197, 94, 0.25);

  --warn:            #f59e0b;
  --warn-dim:        rgba(245, 158, 11, 0.12);

  --danger:          #ef4444;
  --danger-dim:      rgba(239, 68, 68, 0.12);

  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-2xl: 18px;

  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-header-height: 64px;
  --app-header-total-height: calc(var(--app-header-height) + var(--app-safe-top));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.26), transparent 30rem),
    radial-gradient(circle at 85% 90%, rgba(236, 72, 153, 0.14), transparent 30rem),
    linear-gradient(180deg, #0f1629 0%, var(--bg-deep) 100%);
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.app-header {
  height: var(--app-header-total-height);
  background: var(--bg-surface-solid);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--app-safe-top) 32px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-evening);
  filter: drop-shadow(0 0 14px rgba(217, 168, 255, 0.38));
}

.logo-mark::before {
  content: '';
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url('/brand-mark.svg') center / contain no-repeat;
  mask: url('/brand-mark.svg') center / contain no-repeat;
}

.logo h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo h1 span {
  color: var(--text-secondary);
  font-weight: 400;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-pill {
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  padding: 5px 12px;
  border-radius: var(--r-md);
  background: var(--bg-raised);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

/* ── Main map layout ────────────────────────────────────────────────────── */

.compass {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px calc(100px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.map-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Section labels ─────────────────────────────────────────────────────── */

.section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 18px color-mix(in srgb, currentColor 34%, transparent);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.section-label.compass-card-link {
  cursor: pointer;
}

.section-label.compass-card-link:hover {
  color: var(--text-primary);
}

.section-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.section-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Section-specific label coloring (subtle, but creates the map zone feel) */
.map-destination .section-label { color: var(--accent-evening); }
.map-you-are-here .section-label { color: var(--accent-morning); }
.map-journey .section-label { color: var(--accent-evening); }
.map-path-ahead .section-label { color: var(--accent-coach); }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.compass-card-link {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.compass-card-link:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 231, 255, 0.26);
}

.compass-card-link:focus-visible {
  outline: 2px solid rgba(139, 231, 255, 0.5);
  outline-offset: 3px;
}

.card-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Row grid ──────────────────────────────────────────────────────────── */

.row {
  display: grid;
  gap: 12px;
}

.row-1-1 { grid-template-columns: 1fr 1fr; }

@media (max-width: 600px) {
  .row-1-1 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* 🌟 DESTINATION — Blueprint                                              */
/* ═══════════════════════════════════════════════════════════════════════ */

.blueprint-card {
  border-color: rgba(124, 58, 237, 0.24);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(15, 22, 41, 0.92));
}

.blueprint-eyebrow {
  color: var(--accent-evening);
}

.blueprint-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.blueprint-title-label {
  font-weight: 800;
}

.blueprint-title-sep {
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.55;
}

.blueprint-identity {
  display: block;
  margin-bottom: 16px;
}

.blueprint-statements {
  border: 1px solid rgba(217, 168, 255, 0.16);
  border-radius: var(--r-md);
  background: rgba(5, 8, 20, 0.32);
  color: var(--text-secondary);
}

.blueprint-statements summary {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blueprint-statements summary::-webkit-details-marker {
  display: none;
}

.blueprint-statements summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.blueprint-statements[open] summary svg {
  transform: rotate(180deg);
}

.blueprint-statements ul {
  margin: 0;
  padding: 0 14px 14px 30px;
  font-size: 14px;
  line-height: 1.55;
}

.blueprint-statements li + li {
  margin-top: 8px;
}

.blueprint-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blueprint-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.blueprint-core-values {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-secondary);
}

.blueprint-vision-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.blueprint-empty-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* ── CTA Links ──────────────────────────────────────────────────────────── */

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 38px;
}

/* Full-width variant — used for empty-state CTAs that should span the card */
.cta-link--full {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}

.cta-link.blueprint-cta {
  background: var(--accent-blueprint-dim);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-evening);
}

.cta-link.blueprint-cta:hover {
  background: rgba(124, 58, 237, 0.22);
  box-shadow: 0 0 14px var(--accent-blueprint-glow);
}

.cta-link.morning-cta {
  background: var(--accent-morning-dim);
  border: 1px solid rgba(139, 231, 255, 0.3);
  color: var(--accent-morning);
}

.cta-link.morning-cta:hover {
  background: rgba(139, 231, 255, 0.22);
  box-shadow: 0 0 14px var(--accent-morning-glow);
}

.cta-link.evening-cta {
  background: var(--accent-evening-dim);
  border: 1px solid rgba(217, 168, 255, 0.3);
  color: var(--accent-evening);
}

.cta-link.evening-cta:hover {
  background: rgba(217, 168, 255, 0.22);
  box-shadow: 0 0 14px var(--accent-evening-glow);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* 📍 YOU ARE HERE — Today                                                 */
/* ═══════════════════════════════════════════════════════════════════════ */

/* ── Intention Card ─────────────────────────────────────────────────────── */

.intention-card {
  border-color: rgba(139, 231, 255, 0.24);
  background: linear-gradient(135deg, rgba(139, 231, 255, 0.08), rgba(15, 22, 41, 0.9));
}

.intention-card .card-eyebrow.intention-eyebrow-row {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-morning);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 14px;
}

.intention-card .intention-eyebrow-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.intention-card .intention-status-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.intention-text-block {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.intention-empty {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-bottom: 14px;
}

/* Opening Spark — inline below intention, italicized quote */
.opening-spark-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(139, 231, 255, 0.14);
}

.opening-spark-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--accent-evening);
  font-style: italic;
  padding-left: 12px;
  border-left: 2px solid rgba(217, 168, 255, 0.3);
}

/* ── Vitals Card ────────────────────────────────────────────────────────── */

.vitals-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.vital-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vital-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  width: 60px;
  flex-shrink: 0;
}

.vital-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.vital-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vital-bar.energy { background: linear-gradient(90deg, #8be7ff, #d9a8ff); }
.vital-bar.mood   { background: linear-gradient(90deg, #d9a8ff, #7c3aed); }
.vital-bar.focus  { background: linear-gradient(90deg, #ec4899, #d9a8ff); }
.vital-bar.recovery { background: linear-gradient(90deg, #22c55e, #34d399); }
.vital-bar.sleep  { background: linear-gradient(90deg, #6366f1, #8b5cf6); }

.vital-val {
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  width: 38px;
  text-align: right;
  flex-shrink: 0;
  color: var(--text-primary);
}

.vital-val.dim { color: var(--text-muted); }

.vitals-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Priorities Card ────────────────────────────────────────────────────── */

.priority-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.priority-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}

.priority-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-morning);
  flex-shrink: 0;
  margin-top: 1px;
}

.priority-text { flex: 1; }

.priority-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-bottom: 12px;
}

/* ── Schedule Card ──────────────────────────────────────────────────────── */

.schedule-card {
  padding: 20px;
}

.schedule-eyebrow-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#schedule-content {
  min-height: 0;
}

.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-morning);
  font-size: 13px;
  line-height: 1.4;
}

.schedule-block.fixed {
  border-left-color: var(--accent-quarterly);
  background: rgba(251, 146, 60, 0.04);
}

.schedule-block.focus {
  border-left-color: var(--accent-morning);
  background: rgba(139, 231, 255, 0.04);
}

.schedule-block.move {
  border-left-color: var(--success);
  background: rgba(34, 197, 94, 0.04);
}

.schedule-block.margin {
  border-left-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.7;
}

.schedule-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.schedule-text {
  flex: 1;
  color: var(--text-primary);
}

.schedule-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
}

.calendar-connect-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 36px;
  margin: 12px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(139, 231, 255, 0.16);
  border-radius: var(--r-md);
  background: rgba(139, 231, 255, 0.04);
  color: rgba(139, 231, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.calendar-connect-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 231, 255, 0.28);
  background: rgba(139, 231, 255, 0.08);
  color: rgba(139, 231, 255, 0.9);
}

.google-calendar-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* ── Commitments / Due Today Card ───────────────────────────────────────── */

.commitments-card {
  border-color: rgba(251, 146, 60, 0.18);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.05), rgba(15, 22, 41, 0.9));
}

.commitments-eyebrow {
  color: var(--accent-quarterly);
}

.commitments-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.commitments-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  padding: 8px 12px;
  background: rgba(251, 146, 60, 0.05);
  border-radius: var(--r-md);
  border-left: 2px solid var(--accent-quarterly);
}

.commitment-title { flex: 1; }

.commitment-time {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-quarterly);
  font-weight: 600;
}

/* ── Close-out CTA Card ─────────────────────────────────────────────────── */

.close-out-card {
  border-color: rgba(217, 168, 255, 0.2);
  background: linear-gradient(135deg, rgba(217, 168, 255, 0.06), rgba(15, 22, 41, 0.9));
}

.close-out-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.close-out-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* 🧭 THE JOURNEY — Nested rhythm trails                                   */
/* ═══════════════════════════════════════════════════════════════════════ */

.journey-card {
  padding: 8px 20px;
}

.journey-row {
  padding: 16px 0;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-row:first-child {
  border-top: none;
  padding-top: 12px;
}

.journey-row:last-child {
  padding-bottom: 8px;
}

.journey-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journey-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.journey-period {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.journey-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.journey-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.journey-action:hover {
  color: var(--text-primary);
}

/* Action color per rhythm */
.journey-row[data-rhythm="annual"] .journey-action     { color: var(--accent-annual); }
.journey-row[data-rhythm="quarterly"] .journey-action  { color: var(--accent-quarterly); }
.journey-row[data-rhythm="monthly"] .journey-action    { color: var(--accent-monthly); }
.journey-row[data-rhythm="weekly"] .journey-action     { color: var(--accent-weekly); }

.journey-focus {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 2px solid var(--glass-border);
}

.journey-row[data-rhythm="annual"] .journey-focus    { border-left-color: rgba(251, 191, 36, 0.35); }
.journey-row[data-rhythm="quarterly"] .journey-focus { border-left-color: rgba(251, 146, 60, 0.35); }
.journey-row[data-rhythm="monthly"] .journey-focus   { border-left-color: rgba(167, 139, 250, 0.35); }
.journey-row[data-rhythm="weekly"] .journey-focus    { border-left-color: rgba(56, 189, 248, 0.35); }

.journey-focus-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Journey Trail (segments showing progress) ───────────────────────────── */

.journey-trail {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 28px;
}

.trail-segment {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.trail-segment:last-child .trail-connector {
  display: none;
}

.trail-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.trail-connector {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  margin: 0 1px;
}

/* Done state */
.trail-node.done {
  background: var(--success);
  color: white;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.trail-segment.done .trail-connector {
  background: var(--success);
}

/* Current state — pulsing accent per rhythm */
.trail-node.current {
  color: white;
  animation: pulseGlow 2.2s ease-in-out infinite;
  transform: scale(1.15);
}

.journey-row[data-rhythm="annual"] .trail-node.current {
  background: var(--accent-annual);
  box-shadow: 0 0 14px var(--accent-annual-glow);
}

.journey-row[data-rhythm="quarterly"] .trail-node.current {
  background: var(--accent-quarterly);
  box-shadow: 0 0 14px var(--accent-quarterly-glow);
}

.journey-row[data-rhythm="monthly"] .trail-node.current {
  background: var(--accent-monthly);
  box-shadow: 0 0 14px var(--accent-monthly-glow);
}

.journey-row[data-rhythm="weekly"] .trail-node.current {
  background: var(--accent-weekly);
  box-shadow: 0 0 14px var(--accent-weekly-glow);
}

.trail-segment.current .trail-connector {
  background: linear-gradient(90deg, var(--success), rgba(255, 255, 255, 0.08));
}

/* Future state */
.trail-node.future {
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
}

.trail-segment.future .trail-connector {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 8px currentColor;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 16px currentColor, 0 0 24px currentColor;
    opacity: 0.92;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* 🌅 PATH AHEAD — Tomorrow & upcoming                                     */
/* ═══════════════════════════════════════════════════════════════════════ */

.lookahead-card {
  border-color: rgba(236, 72, 153, 0.18);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(15, 22, 41, 0.9));
}

.lookahead-block {
  padding: 14px 0;
  border-top: 1px solid rgba(217, 168, 255, 0.08);
}

.lookahead-block:first-child {
  border-top: none;
  padding-top: 0;
}

.lookahead-block:last-child {
  padding-bottom: 0;
}

.lookahead-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-coach);
  margin-bottom: 8px;
}

.tomorrow-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 2px solid rgba(236, 72, 153, 0.35);
}

.lookahead-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
  border-left: none;
  padding-left: 0;
  display: block;
}

.tomorrow-text .lookahead-empty {
  margin: 0;
}

.upcoming-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upcoming-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-primary);
}

.upcoming-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-coach-dim);
  color: var(--accent-coach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.upcoming-title {
  flex: 1;
}

.upcoming-when {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  flex-shrink: 0;
}

.next-rhythm-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid var(--accent-evening);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Status indicators                                                        */
/* ═══════════════════════════════════════════════════════════════════════ */

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.status-dot.done { background: var(--success); }
.status-dot.pending { background: var(--text-muted); }

.status-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-label.done { color: var(--success); }
.status-label.pending { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════ */
/* Skeletons & loading                                                      */
/* ═══════════════════════════════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Animations                                                               */
/* ═══════════════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.map-section:nth-child(1) .card { animation-delay: 0.05s; }
.map-section:nth-child(2) .card { animation-delay: 0.10s; }
.map-section:nth-child(3) .card { animation-delay: 0.15s; }
.map-section:nth-child(4) .card { animation-delay: 0.20s; }

/* Refresh hint */
.refresh-hint {
  text-align: center;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* Mobile responsive                                                        */
/* ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .app-header { padding: var(--app-safe-top) 18px 0; }
  .logo { gap: 12px; }
  .logo h1 {
    font-size: 16px;
    letter-spacing: 0.18em;
  }
  .compass {
    padding: 20px 16px calc(80px + env(safe-area-inset-bottom, 0px));
    gap: 24px;
  }
  .card { padding: 18px; }
  .intention-text-block { font-size: 18px; }
  .journey-card { padding: 6px 16px; }
}

@media (max-width: 480px) {
  .app-header { padding: var(--app-safe-top) 14px 0; }
  .logo h1 { font-size: 14px; letter-spacing: 0.16em; }
  .date-pill { font-size: 10.5px; padding: 4px 10px; }
  .compass {
    padding: 16px 14px calc(80px + env(safe-area-inset-bottom, 0px));
    gap: 22px;
  }
  .card { padding: 16px; }
  .intention-text-block { font-size: 17px; }
  .blueprint-title {
    font-size: 13px;
  }
  .journey-card { padding: 4px 14px; }
  .journey-row { padding: 14px 0; }
  .journey-period { font-size: 13px; }
  .trail-node { width: 20px; height: 20px; font-size: 8px; }
  .vital-label { width: 50px; font-size: 10px; }
  .schedule-block { font-size: 12px; padding: 8px 10px; }
}

/* Very narrow screens — keep journey trail visible */
@media (max-width: 360px) {
  .trail-node { width: 18px; height: 18px; font-size: 7px; }
  .compass { padding: 14px 12px calc(80px + env(safe-area-inset-bottom, 0px)); }
}
