:root {
  --bg: #0F0D14;
  --surface: #1A1722;
  --surface-alt: #221E2C;
  --border: #2E293A;
  --ink: #F3F1F7;
  --ink-soft: #C9C4D6;
  --muted: #8B84A0;
  --accent: #E3A94E;
  --accent-dim: #C98A3A;
  --accent-soft: rgba(227, 169, 78, 0.16);
  --on-accent: #241C10;
  --gold: #E3A94E;
  --gold-soft: rgba(227, 169, 78, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(1rem + env(safe-area-inset-top)) 1.25rem 1rem;
  position: sticky; top: 0; background: var(--bg); z-index: 10;
  border-bottom: 1px solid var(--border);
}
.app-header h1 {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; margin: 0;
  display: flex; align-items: center; gap: 8px; color: var(--ink);
}
.logo-mark { color: var(--accent); width: 22px; height: 22px; display: inline-flex; }
.logo-mark svg { width: 100%; height: 100%; }
.icon-btn {
  background: none; border: none; color: var(--ink-soft); font-size: 18px;
  cursor: pointer; padding: 6px;
}
.streak-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-soft); color: var(--gold); font-weight: 800;
  font-size: 12.5px; padding: 6px 11px; border-radius: 999px;
}

main { max-width: 480px; margin: 0 auto; padding: 1.25rem 1.25rem calc(6rem + env(safe-area-inset-bottom)); min-height: calc(100vh - 70px); }

/* ---- Quote / slogan card ---- */
.slogan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.1rem 1.3rem; margin-bottom: 1.1rem; position: relative;
}
.slogan-mark { color: var(--accent-dim); font-size: 30px; font-family: 'Fraunces', serif; line-height: 0.5; position: absolute; top: 14px; left: 16px; }
.slogan-text {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; line-height: 1.45;
  color: var(--ink); margin: 6px 0 0 20px; padding-left: 4px;
}

/* ---- Home / mission hero ---- */
.hero {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.4rem 1.3rem; margin-bottom: 1rem;
}
.eyebrow-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.eyebrow-icon { color: var(--gold); width: 18px; height: 18px; }
.eyebrow-icon svg { width: 100%; height: 100%; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold); margin: 0; }
.exp-text { font-family: 'Fraunces', serif; font-size: 21px; line-height: 1.35; font-weight: 600; margin: 0 0 18px; color: var(--ink); }

.mission-box {
  background: var(--surface-alt); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.2rem;
}
.mission-label { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.mission-text { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

.btn-primary {
  background: var(--accent); color: var(--on-accent); border: none; border-radius: 999px;
  padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; width: 100%;
}
.btn-primary:disabled { opacity: 0.6; }

.done-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold-soft); color: var(--gold);
  border-radius: 999px; padding: 13px 22px; font-size: 14px; font-weight: 700;
}

.home-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; text-align: center; max-width: 320px; margin: 1.2rem auto 0; }

/* ---- Lists / headers ---- */
.list-header { margin-bottom: 1.1rem; display: flex; align-items: baseline; justify-content: space-between; }
.list-header h1 { font-family: 'Fraunces', serif; font-size: 22px; margin: 0 0 4px; color: var(--ink); }
.sub { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---- Brain library grid ---- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lib-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 14px; text-align: left; cursor: pointer; font-family: inherit;
  min-height: 88px; display: flex; flex-direction: column; justify-content: space-between;
}
.lib-card.read { border-color: var(--accent-dim); }
.lib-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lib-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.check { color: var(--accent); font-weight: 700; }
.mini-bar { height: 4px; border-radius: 2px; background: var(--surface-alt); overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* ---- Train module list ---- */
.lesson-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; font-family: inherit; text-align: left;
}
.lesson-row.done { border-color: var(--accent-dim); }
.lesson-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  font-weight: 700; color: var(--ink-soft); flex-shrink: 0;
}
.lesson-row.done .lesson-num { background: var(--accent); color: var(--on-accent); }
.lesson-title { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.arrow { color: var(--muted); }

/* ---- Detail pages (Learn / Train) ---- */
.back-link {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 0; margin-bottom: 1rem; font-family: inherit;
}
.module-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.detail-title { font-family: 'Fraunces', serif; font-size: 22px; margin: 0 0 1rem; color: var(--ink); }
.detail-read { font-size: 14px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 1rem; }

.insight-card {
  background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 14px;
  padding: 1rem 1.1rem; margin: 1rem 0 1.2rem; display: flex; gap: 10px;
}
.insight-icon { color: var(--accent); width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.insight-icon svg { width: 100%; height: 100%; }
.insight-label { font-size: 12px; font-weight: 800; color: var(--accent); margin: 0 0 4px; }
.insight-text { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.action-card {
  background: var(--accent-soft); border: 1px solid var(--accent-dim); border-radius: 16px; padding: 1.1rem 1.2rem; margin: 1.2rem 0;
}
.action-label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.action-text { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.5; }

.dot-progress { display: flex; justify-content: center; gap: 6px; margin: 1.4rem 0 0.5rem; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--border); }
.dot.active { width: 16px; background: var(--accent); }
.dot.done { background: var(--accent-dim); }

/* ---- Progress page ---- */
.progress-ring-wrap { display: flex; align-items: center; gap: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.3rem; margin-bottom: 1rem; }
.ring-num { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; fill: var(--ink); }
.ring-label { font-size: 12px; fill: var(--muted); }
.ring-stats { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ring-stat-row { display: flex; align-items: center; gap: 10px; }
.ring-stat-icon { color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.ring-stat-icon svg { width: 100%; height: 100%; }
.ring-stat-num { font-weight: 800; font-size: 14px; color: var(--ink); }
.ring-stat-label { font-size: 11.5px; color: var(--muted); }

.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.1rem 0.8rem; margin-bottom: 1rem; }
.chart-title { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 0 0 10px; }
.chart-empty { font-size: 12.5px; color: var(--muted); text-align: center; padding: 1.2rem 0; }

.wins-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.wins-title { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 0 0 10px; }
.win-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); padding: 5px 0; }
.win-check { color: var(--accent); }

/* ---- Backup panel ---- */
.backup-panel { display: flex; flex-direction: column; gap: 8px; }
.backup-hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 4px; }
.backup-btn {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent-dim);
  background: var(--accent-dim); color: var(--on-accent); border-radius: 10px; padding: 12px; font-size: 13px;
  cursor: pointer; text-align: center; font-family: inherit;
}
.backup-btn.secondary { background: var(--surface); color: var(--ink-soft); border-color: var(--border); }
.backup-status { font-size: 12px; color: var(--accent); min-height: 14px; margin: 0; }

/* ---- Bottom nav ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
}
.nav-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 4px 14px; font-family: inherit;
}
.nav-tab-icon { width: 21px; height: 21px; }
.nav-tab-icon svg { width: 100%; height: 100%; }
.nav-tab-label { font-size: 10.5px; font-weight: 700; }
.nav-tab.active { color: var(--accent); }

.hidden { display: none !important; }

/* ---- Greeting / home redesign ---- */
.greeting { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--ink); margin: 0.2rem 0 1rem; }
.section-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.1rem 1.2rem; margin-bottom: 0.9rem;
}
.section-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin: 0; }
.section-label.alt { color: var(--accent); }
.section-title { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 4px; line-height: 1.35; }
.section-meta { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.btn-small {
  background: var(--surface-alt); color: var(--ink); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.btn-small.accent { background: var(--accent-dim); color: var(--on-accent); border-color: var(--accent-dim); }

.exp-row { display: flex; gap: 10px; margin-bottom: 4px; }
.exp-row-label { font-size: 11px; font-weight: 700; color: var(--muted); min-width: 68px; flex-shrink: 0; }
.exp-row-text { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

.knowledge-bar-track { height: 8px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; margin: 6px 0 4px; }
.knowledge-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }

.lib-preview-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.lib-preview-pill {
  flex-shrink: 0; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer;
  font-family: inherit; white-space: nowrap;
}

/* ---- Netflix-style Learn covers ---- */
.cover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cover-card {
  border-radius: 16px; padding: 18px 14px 14px; text-align: left; cursor: pointer; font-family: inherit;
  min-height: 104px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cover-icon { width: 26px; height: 26px; opacity: 0.9; }
.cover-icon svg { width: 100%; height: 100%; }
.cover-title-row { display: flex; align-items: center; justify-content: space-between; }
.cover-title { font-size: 13.5px; font-weight: 800; color: #fff; }
.cover-check { color: #fff; opacity: 0.85; }
.cover-bar-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); overflow: hidden; margin-top: 8px; }
.cover-bar-fill { height: 100%; background: #fff; border-radius: 2px; }

/* ---- Lesson stepper ---- */
.step-dots { display: flex; justify-content: center; gap: 6px; margin: 0.4rem 0 1.2rem; }
.step-dot { width: 20px; height: 4px; border-radius: 2px; background: var(--border); }
.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--accent-dim); }
.step-label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.step-nav { display: flex; gap: 10px; margin-top: 1.3rem; }
.step-nav .btn-primary { flex: 1; }
.step-back-btn {
  background: var(--surface-alt); color: var(--ink-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 14px 22px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* ---- Aha insight (big typography) ---- */
.aha-block { text-align: center; padding: 1.6rem 0.5rem; }
.aha-text {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px; line-height: 1.3;
  color: var(--ink); margin: 0;
}
.aha-text em { color: var(--accent); font-style: normal; }

/* ---- Visual diagrams ---- */
.visual-card { background: var(--surface-alt); border-radius: 14px; padding: 1.1rem 1.1rem; }
.visual-title { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; text-align: center; }

.bars-col { display: flex; flex-direction: column; gap: 14px; }
.bar-label-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.bar-track { height: 14px; border-radius: 7px; background: var(--surface); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 7px; }
.bar-fill.accent { background: var(--accent); }
.bar-fill.gold { background: var(--gold); }

.flow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; justify-content: center; }
.flow-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--ink);
}
.flow-arrow { color: var(--muted); font-size: 14px; }

.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-col { background: var(--surface); border-radius: 12px; padding: 12px 12px; }
.split-label { font-size: 11.5px; font-weight: 800; color: var(--accent); margin: 0 0 8px; }
.split-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.split-list li { font-size: 12px; color: var(--ink-soft); line-height: 1.4; padding-left: 12px; position: relative; }
.split-list li::before { content: "\2013"; position: absolute; left: 0; color: var(--muted); }

/* ---- Interactive picker ---- */
.picker-options { display: flex; flex-direction: column; gap: 8px; }
.picker-option {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  text-align: left; font-family: inherit;
}
.picker-option.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---- Reflection flow ---- */
.difficulty-row { display: flex; gap: 8px; justify-content: center; margin: 1rem 0; }
.difficulty-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--ink-soft); font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.difficulty-btn.selected { background: var(--accent-dim); border-color: var(--accent-dim); color: var(--on-accent); }
.tag-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.2rem; }
.tag-option {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; font-size: 13px; color: var(--ink); cursor: pointer; font-family: inherit; text-align: left;
}
.tag-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.tag-check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--muted); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tag-option.selected .tag-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.actual-summary { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); border-radius: 14px; padding: 12px 16px; }
.actual-num { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--gold); }
.actual-tags { font-size: 12px; color: var(--ink-soft); }

/* ---- Brain map ---- */
.brainmap-list { display: flex; flex-direction: column; gap: 6px; }
.brainmap-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.brainmap-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.brainmap-box.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.brainmap-title { font-size: 13px; color: var(--ink-soft); }
.brainmap-title.done { color: var(--ink); font-weight: 700; }

/* =========================================================
   DASHBOARD LAYOUT (responsive: sidebar on wide screens,
   bottom-nav + single column below 880px)
   ========================================================= */

.app-shell { display: flex; min-height: 100vh; }
.content-area { flex: 1; min-width: 0; }
.sidebar { display: none; }

@media (min-width: 880px) {
  body { }
  .app-header { display: none; } /* sidebar replaces the mobile top header on desktop */
  .bottom-nav { display: none; } /* sidebar replaces bottom nav on desktop */
  .sidebar {
    display: flex; flex-direction: column; width: 230px; flex-shrink: 0;
    background: var(--surface); border-right: 1px solid var(--border);
    padding: 1.4rem 1.1rem; position: sticky; top: 0; height: 100vh;
  }
  .sidebar-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 1.6rem; }
  .sidebar-brand-icon { color: var(--accent); width: 26px; height: 26px; }
  .sidebar-brand-icon svg { width: 100%; height: 100%; }
  .sidebar-brand-text { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
  .sidebar-brand-sub { font-size: 11px; color: var(--muted); }
  .sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
  .sidebar-link {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
    color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; background: none; border: none;
    font-family: inherit; text-align: left; width: 100%;
  }
  .sidebar-link svg { width: 18px; height: 18px; }
  .sidebar-link.active { background: var(--accent); color: var(--on-accent); }
  .sidebar-link:hover:not(.active) { color: var(--ink-soft); }
  .sidebar-quote { margin-top: auto; background: var(--surface-alt); border-radius: 14px; padding: 1rem; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; font-family: 'Fraunces', serif; }

  main { max-width: none; padding: 1.6rem 2rem calc(2rem + env(safe-area-inset-bottom)); }
  .content-area { flex: 1; min-width: 0; }

  .dash-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.3rem; align-items: start; }
}

@media (max-width: 879px) {
  .sidebar { display: none !important; }
}

.dash-grid { display: block; } /* single column by default (mobile) */

/* ---- Image shells (placeholders — replace with real images later) ---- */
.img-shell {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--surface-alt), var(--surface-alt) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 1px dashed var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; letter-spacing: 0.03em;
}
.img-shell span { background: var(--surface); padding: 4px 10px; border-radius: 999px; }
.img-shell-photo {
  background-size: cover; background-position: center 30%; border: none;
}

/* ---- Brain Library image-card grid ---- */
.lesson-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1rem; }
.lib-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; cursor: pointer; text-align: left; font-family: inherit; padding: 0;
}
.lib-card-thumb { position: relative; height: 96px; }
.lib-card-check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center;
}
.lib-card-check svg { width: 13px; height: 13px; }
.lib-card-body { padding: 10px 12px 12px; }
.lib-card-title { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.lib-card-cat { font-size: 11px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Hero experiment card (dashboard) ---- */
.hero-dash { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); margin-bottom: 1rem; }
.hero-dash-media { height: 130px; }
.hero-dash-body { padding: 1.2rem 1.3rem 1.4rem; }
.step-indicator { display: flex; align-items: center; gap: 8px; margin: 1.1rem 0; }
.step-node { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 1.5px solid var(--border); color: var(--muted); background: var(--surface-alt);
}
.step-circle.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step-circle.current { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.step-node-label { font-size: 10px; color: var(--muted); font-weight: 600; }
.step-line { flex: 1; height: 1.5px; background: var(--border); margin-bottom: 17px; }
.step-line.done { background: var(--accent-dim); }
.hero-cta-row { display: flex; align-items: center; gap: 14px; margin-top: 1rem; }
.hero-cta-row .btn-primary { width: auto; flex: 0 0 auto; padding: 13px 26px; }
.hero-time { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* ---- Continue Learning row ---- */
.cl-header { display: flex; align-items: baseline; justify-content: space-between; margin: 0.2rem 0 0.8rem; }
.cl-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.cl-see-all { font-size: 12.5px; color: var(--accent); background: none; border: none; cursor: pointer; font-family: inherit; }
.cl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.2rem; }
@media (max-width: 700px) {
  .cl-row { display: flex; overflow-x: auto; gap: 10px; }
  .cl-card { flex: 0 0 150px; }
}
.cl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; font-family: inherit; padding: 0; }
.cl-thumb { height: 74px; }
.cl-body { padding: 10px 11px 12px; }
.cl-card-title { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 0 0 8px; min-height: 32px; }
.cl-bar-row { display: flex; align-items: center; gap: 6px; }
.cl-bar-track { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-alt); overflow: hidden; }
.cl-bar-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.cl-pct { font-size: 10.5px; font-weight: 700; color: var(--muted); }

/* ---- Daily motivation quote card ---- */
.quote-dash { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); position: relative; margin-bottom: 1.2rem; min-height: 110px; }
.quote-dash-media { position: absolute; inset: 0; }
.quote-dash-overlay { position: relative; padding: 1.2rem 1.3rem; background: linear-gradient(180deg, rgba(15,13,20,0.15), rgba(15,13,20,0.75)); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-height: 110px; }
.quote-dash-label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.quote-dash-text { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; color: #fff; margin: 0; line-height: 1.4; }

/* ---- Right panel: quick actions ---- */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
.qa-btn {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; text-align: left; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 6px;
}
.qa-icon { color: var(--accent); width: 17px; height: 17px; }
.qa-icon svg { width: 100%; height: 100%; }
.qa-label { font-size: 12px; font-weight: 700; color: var(--ink); }
.qa-sub { font-size: 10.5px; color: var(--muted); }

/* ---- Week strip ---- */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.week-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.week-cell.today { border-color: var(--accent); background: var(--accent-soft); }
.week-day { font-size: 9.5px; font-weight: 700; color: var(--muted); }
.week-date { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.week-mark { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.week-mark svg { width: 100%; height: 100%; }
.week-mark.done { color: var(--accent); }
.week-mark.future { color: var(--border); }
.week-mark.today-pending { color: var(--gold); }

/* ---- Star rating ---- */
.star-row { display: flex; gap: 6px; justify-content: center; margin: 0.8rem 0; }
.star-btn { background: none; border: none; cursor: pointer; color: var(--border); padding: 2px; }
.star-btn svg { width: 26px; height: 26px; }
.star-btn.filled { color: var(--gold); }
.reflection-textarea {
  width: 100%; min-height: 70px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--ink); font-family: inherit; font-size: 13.5px;
  padding: 10px 12px; resize: vertical; margin-bottom: 12px;
}
.reflection-textarea::placeholder { color: var(--muted); }

/* ---- Focus session timer ---- */
.timer-display { font-family: 'Fraunces', serif; font-size: 48px; font-weight: 700; text-align: center; color: var(--ink); margin: 1rem 0; }
.timer-controls { display: flex; gap: 10px; justify-content: center; }
