/* app.css — The Daily Reset app (app.html)
   Layout: Concept B main content + Concept A sidebar.
   Themes: light = the original warm/teal palette; dark = Concept A charcoal/gold.
   All colors come from the tokens below — [data-theme] flips them. */

:root {
  --bg: #f6f2ec; /* aligned with the landing page's paper tone */
  --bg-tint: radial-gradient(circle at 85% -10%, #f0ddc4 0, transparent 34%), linear-gradient(180deg, #f6f2ec, #f1ece3 60%);
  --card: #ffffff;
  --card-2: #f5f3ef;
  --line: #e5e0d7;
  --ink: #111827;
  --muted: #5b6472;
  --soft: #f5f3ef;
  --accent: #0d7d6e;
  --accent-hover: #095e52;
  --on-accent: #ffffff;
  --accent-tint: #ecf6f4;
  --accent-tint-line: #cfe4df;
  --accent-2: #e8a55c;
  --danger: #8b1e1e;
  --danger-line: #eccccc;
  --hero-grad: linear-gradient(120deg, #eaf6f3 0%, #fffdf8 55%, #fbeedb 100%);
  --quote-grad: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
  --shadow: 0 14px 44px rgba(17,24,39,.08);
  --shadow-sm: 0 6px 22px rgba(17,24,39,.05);
  --radius: 18px;
}

:root[data-theme="dark"] {
  --bg: #0e1116;
  --bg-tint: radial-gradient(circle at 85% -10%, rgba(212,162,78,.07) 0, transparent 34%), linear-gradient(180deg, #0e1116, #0e1116);
  --card: #151a21;
  --card-2: #1b212b;
  --line: #242c37;
  --ink: #e9e6df;
  --muted: #8b94a3;
  --soft: #1b212b;
  --accent: #d4a24e;
  --accent-hover: #e0b366;
  --on-accent: #1a1408;
  --accent-tint: rgba(212,162,78,.12);
  --accent-tint-line: rgba(212,162,78,.35);
  --accent-2: #2e8d7e;
  --danger: #e07777;
  --danger-line: #4a2a2a;
  --hero-grad: linear-gradient(160deg, #123b34 0%, #0e1116 75%);
  --quote-grad: linear-gradient(135deg, #1b212b 0%, #151a21 100%);
  --shadow: 0 14px 44px rgba(0,0,0,.4);
  --shadow-sm: 0 6px 22px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-tint), var(--bg);
  background-color: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; }
h1, h2, h3, .sora { font-family: Inter, sans-serif; letter-spacing: -.015em; }

.frame { display: flex; min-height: 100vh; }

/* ---------- Sidebar (Concept A) ---------- */
.side {
  width: 250px; flex-shrink: 0;
  border-right: 1px solid var(--line);
  background: var(--card);
  padding: 26px 16px 20px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
body.no-chrome .side { display: none; }
.side-logo { font-family: Inter, sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; margin: 0 10px 20px; }
.side-logo span { color: var(--accent); }
.side-nav { display: grid; gap: 4px; margin-bottom: 18px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 11px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: var(--ink); }
.nav-item.active { background: var(--card-2); color: var(--ink); border-color: var(--line); }

.plan { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg); }
.plan.flash { animation: planFlash 1.6s ease; }
@keyframes planFlash { 0%,100% { box-shadow: none; } 25%,75% { box-shadow: 0 0 0 3px var(--accent-tint-line); border-color: var(--accent); } }
.plan-title { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-slot { margin-bottom: 10px; }
.plan-slot label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.plan-row { display: flex; gap: 6px; }
.plan-row input[type="time"] {
  width: 86px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 12.5px; background: var(--card); color: var(--ink);
}
.plan-row select {
  flex: 1; min-width: 0; padding: 7px 6px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 12.5px; background: var(--card); color: var(--ink);
}
.auto-btn {
  width: 100%; margin-top: 4px; padding: 9px; border-radius: 999px;
  border: 1px solid var(--accent-tint-line); background: var(--accent-tint); color: var(--accent);
  font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.auto-btn:hover { border-color: var(--accent); }
.plan-hint { margin: 8px 2px 0; font-size: 11px; color: var(--muted); line-height: 1.45; }

.side-spacer { flex: 1; }
.voice-select-tab {
  padding: 10px 14px; border-radius: 11px; margin-bottom: 8px;
  border: 1px solid var(--line); background: transparent;
}
.vst-title { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.vst-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.vst-option {
  flex: 1; padding: 6px 0; border: none; background: transparent; color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 700; border-radius: 999px; cursor: pointer;
}
.vst-option.active { background: var(--accent-tint); color: var(--accent); }
.vst-option:hover:not(.active) { color: var(--ink); }
.theme-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 11px; margin-bottom: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-tint-line); }
.side-cal-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 11px; margin: 14px 0 16px;
  border: 1px solid var(--accent-tint-line); background: var(--accent-tint); color: var(--accent);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; width: 100%;
}
.side-cal-btn:hover { border-color: var(--accent); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12.5px; color: var(--on-accent);
}
.user-meta { min-width: 0; }
.user-name { font-size: 13px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.access-pill { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .07em; padding: 2px 8px; border-radius: 999px; margin-top: 2px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.access-pill.pill-reviewer { background: #1c1917; color: #fbbf24; border-color: #1c1917; }
.access-pill.pill-trial { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-tint-line); }
.access-pill.pill-paid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.access-pill.pill-expired { background: rgba(139,30,30,.12); color: var(--danger); border-color: var(--danger-line); }

/* ---------- Main ---------- */
.app-main { flex: 1; padding: 34px 40px 80px; max-width: 1060px; min-width: 0; position: relative; overflow: hidden; }
body.no-chrome .app-main { max-width: none; }
.view { animation: fadeUp .35s ease; }
/* Giant outlined watermark letter — the same editorial signature used behind
   every section on the landing page, carried into the app for continuity. */
#view-dashboard::before {
  content: 'R'; position: absolute; z-index: 0; top: -60px; right: -40px;
  font-size: 420px; font-weight: 700; line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--line); pointer-events: none;
}
#view-dashboard > * { position: relative; z-index: 1; }
@media (max-width: 700px) { #view-dashboard::before { font-size: 260px; top: -30px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ----------
   Matches the landing page's button language: square, uppercase, letterspaced. */
.btn-primary, .btn-secondary, .btn-danger, .btn-dark {
  border: 0; border-radius: 0; padding: 13px 24px;
  font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer;
  letter-spacing: .07em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { transform: translateY(-1px); }
.btn-secondary:disabled, .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-dark { background: var(--ink); color: var(--bg); font-size: 13px; padding: 10px 20px; }
.btn-danger { background: var(--card); color: var(--danger); border: 1px solid var(--danger-line); }
.btn-block { width: 100%; }
.btn-big { font-size: 16px; padding: 16px 34px; }
.link-btn { background: none; border: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.back-btn { background: none; border: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; margin-bottom: 10px; }
.back-btn:hover { color: var(--ink); }
.mini-btn {
  font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
  background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-tint-line);
  border-radius: 999px; padding: 8px 16px;
}
.today-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mini-btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.mini-btn-ghost:hover { color: var(--ink); border-color: var(--accent-tint-line); }
.calendar-block { border-top: 1px solid var(--soft); margin-top: 16px; padding-top: 16px; }
.calendar-hint { font-size: 12.5px; color: var(--accent); font-weight: 600; margin: 12px 0 0; }

/* ---------- Welcome / Paywall ---------- */
#view-welcome, #view-paywall { display: flex; justify-content: center; padding-top: 5vh; }
.welcome-card { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 42px 38px; text-align: center; }
.welcome-eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin: 0; }
.welcome-title { font-size: 34px; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 12px; }
.welcome-sub { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.welcome-form { text-align: left; display: grid; gap: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-field input, .code-entry input, .reviewer-tools select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; font-size: 15px; background: var(--bg); color: var(--ink);
}
.form-field input:focus, .code-entry input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-error { color: var(--danger); font-size: 13px; font-weight: 600; margin: 0; }
.form-success { color: var(--accent); font-size: 13px; font-weight: 700; margin: 0; }
.welcome-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0 8px; }
.welcome-divider::before, .welcome-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.welcome-note { margin-top: 20px; font-size: 13px; }
.welcome-note a { color: var(--muted); text-decoration: none; }
.paywall-actions { display: grid; gap: 10px; }

/* ---------- Hero (Concept B) ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 30px;
  background: var(--hero-grad); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 36px; margin-bottom: 22px; box-shadow: var(--shadow);
}
/* Diagonal hatch texture — the exact overlay used on every landing-page photo
   panel, reused here so the dashboard reads as the same design family. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(45deg, var(--accent) 0 1px, transparent 1px 10px);
  opacity: .06;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.dash-date { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.next-chip { display: flex; align-items: center; gap: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 13px 17px; margin-bottom: 20px; max-width: 430px; }
.next-dot { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.next-dot svg { width: 20px; height: 20px; }
.next-a { font-weight: 700; font-size: 14.5px; }
.next-b { font-size: 12.5px; color: var(--muted); }
.hero-ring { margin-left: auto; position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.ring-track { stroke: var(--line); }
.ring-prog { stroke: var(--accent); transition: stroke-dashoffset .6s ease; }
.hero-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hrc-count { font-family: Inter, sans-serif; font-weight: 800; font-size: 25px; }
.hrc-label { font-size: 9.5px; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }

/* ---------- Quote of the Day ---------- */
.quote-card {
  position: relative; overflow: hidden; border: none; background: var(--quote-grad); color: #fff;
  border-radius: var(--radius); padding: 20px 26px 18px; margin-bottom: 30px;
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .quote-card { border: 1px solid var(--accent-tint-line); color: var(--ink); }
/* Same hatch texture as the hero card and the landing's photo panels. */
.quote-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 10px);
}
.quote-card > * { position: relative; z-index: 1; }
.quote-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.quote-mark { font-size: 46px; line-height: .6; color: var(--accent-2); font-weight: 800; font-family: Inter, sans-serif; }
:root[data-theme="dark"] .quote-mark { color: var(--accent); }
.quote-title { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.quote-text { margin: 0; font-size: 17.5px; font-weight: 600; font-family: Inter, sans-serif; }
.quote-author { margin: 5px 0 0; opacity: .7; font-size: 13px; }

/* ---------- Sections / break grid ---------- */
.sec-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.sec { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.secsub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.dash-break-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; margin-bottom: 26px; }
.dash-break-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 16px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  box-shadow: var(--shadow-sm);
}
.dash-break-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-tint-line); }
.dash-break-card.done { border-color: var(--accent-2); background: var(--card-2); }
.dash-break-icon { width: 42px; height: 42px; border-radius: 13px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 11px; }
.dash-break-icon svg { width: 22px; height: 22px; }
.dash-break-card.done .dash-break-icon { background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.dash-break-name { font-weight: 800; font-size: 15px; margin: 0 0 3px; font-family: Inter, sans-serif; }
.dash-break-desc { color: var(--muted); font-size: 12px; margin: 0 0 9px; line-height: 1.45; }
.dash-break-time { display: inline-block; background: var(--soft); padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--accent); }
.done-badge { position: absolute; top: 11px; right: 11px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent-2); color: #3d2506; border-radius: 999px; padding: 3px 8px; }
.slot-badge { position: absolute; top: 11px; right: 11px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-tint-line); border-radius: 999px; padding: 3px 8px; }

/* ---------- Today timeline + learning (Concept B) ---------- */
.cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 15px; margin-bottom: 30px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-title { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; }
.tl { list-style: none; margin: 12px 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 18px 30px; }
.tl li:last-child { padding-bottom: 0; }
.tl .nd { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--line); }
.tl .done .nd { background: var(--accent); border-color: var(--accent); }
.tl .now .nd { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.tl .tt { font-weight: 700; font-size: 13.5px; }
.tl .now .tt { color: var(--accent); }
.tl .ts { font-size: 12px; color: var(--muted); }
.tl .done .tt { color: var(--muted); text-decoration: line-through; }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--accent-tint); color: var(--accent); border-radius: 999px; padding: 4px 10px; }
.tag-soft { background: var(--soft); color: var(--muted); }
.epi { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.art { width: 84px; height: 84px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.art svg { width: 28px; height: 28px; }
.epi-body { flex: 1; min-width: 0; }
.epi-teaser { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.epi-teaser strong { color: var(--ink); }

/* ---------- Bottom CTA ---------- */
.bottom-cta { text-align: center; padding: 8px 0 0; }
.bottom-cta-sub { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* ---------- Break / learning player ---------- */
.player-shell {
  width: min(560px, 100%); margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 40px 34px;
}
.player-head h1 { font-size: 29px; letter-spacing: -.02em; margin: 0 0 6px; }
.player-head p { color: var(--muted); font-size: 14px; margin: 0; }
.ring-wrap { position: relative; width: 230px; height: 230px; margin: 26px auto 8px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
#ring-progress { stroke-dasharray: 603.19; stroke-dashoffset: 603.19; transition: stroke-dashoffset .9s linear; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-time { font-family: Inter, sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ring-label {
  color: var(--accent); font-size: 11.5px; margin-top: 8px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.step-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 16px; }
.step-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--line); transition: background .2s ease, transform .2s ease; }
.step-dot.active { background: var(--accent); transform: scale(1.25); }
.step-dot.done { background: var(--accent-2); }
.player-instruction { font-size: 16.5px; font-weight: 550; min-height: 54px; margin: 0 0 20px; }
.player-controls { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.audio-source { color: var(--muted); font-size: 12.5px; margin: 16px 0 0; font-weight: 600; }
.player-quote { margin-top: 24px; background: var(--soft); border-radius: 14px; padding: 18px 20px; font-size: 15px; }
.player-quote p { margin: 0; }
.learning-kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; margin: 0 0 6px; }
.learning-meta { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13.5px; margin-top: 10px !important; }
.learning-idea { color: var(--muted); font-size: 15px; margin: 18px 0 22px; }
.learning-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.progress-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .5s linear; }
.progress-time { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.learning-note { color: var(--muted); font-size: 13.5px; margin: 18px 0 6px; }
.transcript { text-align: left; background: var(--soft); border-radius: 14px; padding: 20px 22px; margin-top: 14px; font-size: 14px; white-space: pre-line; max-height: 300px; overflow-y: auto; }
.reviewer-tools { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 18px; }
.reviewer-tools-title { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b45309; margin: 0 0 10px; }
.reviewer-tools-row { display: flex; gap: 10px; flex-wrap: wrap; }
.reviewer-tools select { flex: 1 1 240px; width: auto; font-size: 13.5px; min-width: 0; }
.reviewer-tools-row .btn-secondary { white-space: nowrap; flex-shrink: 0; }

/* ---------- Settings ---------- */
.settings-title { font-size: 30px; letter-spacing: -.02em; margin: 0 0 20px; }
.settings-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 16px; box-shadow: var(--shadow-sm); max-width: 640px; }
.settings-card h3 { margin: 0 0 4px; font-size: 16.5px; }
.settings-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.schedule-slot label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.schedule-slot input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); color: var(--ink); }
.toggle-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.toggle { position: relative; display: inline-block; width: 48px; height: 27px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s ease; }
.toggle-slider::before { content: ""; position: absolute; height: 21px; width: 21px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(21px); }
.toggle-label { font-size: 14.5px; font-weight: 600; }
.voice-options { display: flex; gap: 10px; }
.voice-btn { font: inherit; font-size: 13.5px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.voice-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.learning-config { margin-top: 6px; display: grid; gap: 14px; justify-items: start; }
.account-list { list-style: none; margin: 0 0 18px; padding: 0; }
.account-list li { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--soft); font-size: 14px; }
.account-list li:last-child { border-bottom: 0; }
.account-list .account-label { color: var(--muted); }
.account-list .account-value { font-weight: 700; text-align: right; }
.code-entry label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.code-entry-row { display: flex; gap: 10px; }
.code-entry-row input { flex: 1; }
.danger-card { border-color: var(--danger-line); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: min(340px, calc(100vw - 40px));
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 14px; padding: 16px 18px; color: var(--ink);
  box-shadow: 0 22px 60px rgba(0,0,0,.3);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast strong { display: block; font-size: 15px; margin-bottom: 3px; }
.toast p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.toast-actions { display: flex; gap: 8px; }
.toast-actions .btn-primary, .toast-actions .btn-secondary { padding: 8px 14px; font-size: 13px; }

/* ---------- Modals ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(10,12,16,.55); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px 32px; width: min(440px, 100%); box-shadow: 0 30px 90px rgba(0,0,0,.4); text-align: center; max-height: 88vh; overflow-y: auto; }
.modal-wide { width: min(620px, 100%); }
.modal h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }
.modal-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.modal .btn-block { margin-bottom: 10px; }
.modal-cancel-note { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1; }
.topic-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.topic-group-btn { font: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; display: grid; gap: 4px; text-align: left; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.topic-group-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.topic-group-name { font-weight: 800; font-size: 14.5px; }
.topic-group-desc { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* ---------- Quote of the Day splash ---------- */
.splash-overlay { background: rgba(10,12,16,.7); }
.splash {
  width: min(560px, 100%); text-align: center;
  background: var(--quote-grad); color: #fff;
  border-radius: 28px; padding: 52px 44px;
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
  animation: splashIn .45s ease;
}
:root[data-theme="dark"] .splash { border: 1px solid var(--accent-tint-line); color: var(--ink); }
@keyframes splashIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.splash-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.splash-mark { font-family: Inter, sans-serif; font-size: 56px; line-height: 1; color: var(--accent-2); font-weight: 800; }
:root[data-theme="dark"] .splash-mark { color: var(--accent); }
.splash-text { font-family: Inter, sans-serif; font-size: clamp(20px, 3vw, 27px); font-weight: 700; line-height: 1.35; margin: 6px 0 10px; }
.splash-author { opacity: .75; font-size: 14px; margin: 0 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .dash-break-grid { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-ring { margin: 0 auto; }
}
@media (max-width: 800px) {
  .frame { flex-direction: column; }
  .side { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-spacer { display: none; }
  .app-main { padding: 24px 18px 70px; }
}
@media (max-width: 560px) {
  .player-shell { padding: 30px 20px; }
  .topic-groups { grid-template-columns: 1fr; }
  .welcome-card { padding: 34px 24px; }
}
