/* NCLEX Drill — design language v2 (2026-10-09)
   Futuristic clinical: deep-space navy, clinical teal primary (exam),
   calm violet secondary (study mode). Big touch targets, one primary
   action per screen, CSS-only, no layout shift. */
:root {
  --bg: #060a14;
  --bg2: #0b1226;
  --card: #0d1630;
  --card-border: #1c2a55;
  --ink: #f2f6ff;
  --muted: #8f98bd;
  --teal: #2dd4bf;
  --teal-deep: #0d9488;
  --teal-glow: rgba(45, 212, 191, .35);
  --teal-soft: rgba(45, 212, 191, .10);
  --violet: #a78bfa;
  --violet-deep: #7c5cf0;
  --violet-glow: rgba(167, 139, 250, .30);
  --violet-soft: rgba(167, 139, 250, .10);
  --good: #34d399;
  --bad: #fb7185;
  --warn: #fbbf24;
  --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(45,212,191,.10) 0%, transparent 60%),
    radial-gradient(700px 500px at 85% 110%, rgba(139,92,246,.08) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
body.study-bg {
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(167,139,250,.12) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: .2px; }
.brand .logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px; margin-right: 9px;
  background: linear-gradient(135deg, var(--teal), #22d3ee);
  color: #04211d; font-size: 19px; font-weight: 900;
  box-shadow: 0 0 18px var(--teal-glow);
}
.byline { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

main { flex: 1; padding: 6px 20px 26px; max-width: 580px; width: 100%; margin: 0 auto; }
.screen { display: none; }
.screen.active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; } }
.hidden { display: none !important; }

/* ---------- tip card ---------- */
.tip-card {
  background: linear-gradient(135deg, rgba(45,212,191,.14), rgba(139,92,246,.10));
  border: 1px solid rgba(45,212,191,.28);
  border-radius: var(--radius); padding: 14px 16px; margin: 10px 0 4px;
}
.tip-label { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.tip-text { font-size: 14.5px; line-height: 1.5; color: #d9e2ff; }

/* ---------- hero / stats ---------- */
.hero h1 { font-size: 31px; line-height: 1.18; margin: 16px 0 6px; font-weight: 800; letter-spacing: -.3px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--teal), #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 14px 6px; text-align: center; }
.stat .num { font-size: 23px; font-weight: 800; color: var(--teal); }
.stat .lbl { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- sections ---------- */
.section-title { font-size: 15px; font-weight: 800; margin: 20px 0 10px; letter-spacing: .3px; }
.section-title.study { color: var(--violet); }

/* ---------- setup panel ---------- */
.setup { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.setup-title { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1px solid var(--card-border); background: var(--bg2); color: var(--ink); border-radius: 99px; padding: 9px 15px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.active { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
#learn-chips .chip.active { background: var(--violet-soft); border-color: var(--violet); color: var(--violet); }
.toggles { display: grid; gap: 10px; }
.toggle { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--bg2); border: 1px solid var(--card-border); color: var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.toggle .toggle-knob { flex: 0 0 46px; height: 26px; border-radius: 99px; background: #232c5c; position: relative; transition: background .2s; }
.toggle .toggle-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8f98bd; transition: left .2s, background .2s; }
.toggle[aria-pressed="true"] .toggle-knob { background: var(--teal-deep); }
.toggle[aria-pressed="true"] .toggle-knob::after { left: 23px; background: #fff; }
.seg { display: flex; align-items: center; gap: 8px; }
.seg-label { color: var(--muted); font-size: 14px; font-weight: 600; margin-right: auto; }
.seg-btn { border: 1px solid var(--card-border); background: var(--bg2); color: var(--muted); border-radius: 99px; padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.seg-btn.active { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }

/* ---------- buttons ---------- */
.actions { display: grid; gap: 10px; }
.btn { appearance: none; border-radius: var(--radius); padding: 17px; font-size: 17px; font-weight: 700; color: var(--ink); background: var(--card); border: 1px solid var(--card-border); cursor: pointer; transition: transform .08s ease; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--teal), #14b8a6); border: 0; color: #04211d; box-shadow: 0 8px 26px var(--teal-glow); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.btn .btn-sub { display: block; font-size: 13px; font-weight: 500; opacity: .75; margin-top: 3px; }
.btn.study { border-color: rgba(167,139,250,.35); background: linear-gradient(135deg, rgba(167,139,250,.12), rgba(167,139,250,.04)); text-align: left; }
.link { background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 10px 0; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------- quiz ---------- */
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
#quiz-progress { color: var(--muted); font-size: 14px; }
.head-right { display: flex; align-items: center; gap: 8px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; color: var(--teal); background: var(--teal-soft); border: 1px solid rgba(45,212,191,.35); border-radius: 99px; padding: 5px 13px; }
.timer.low { color: var(--bad); background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.4); }
.elapsed { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.icon-btn, .flag-btn { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; font-size: 19px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
.flag-btn { color: var(--warn); }
.flag-btn.on { background: rgba(251,191,36,.15); border-color: var(--warn); }
.bar { height: 6px; background: #141d3d; border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
#quiz-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #22d3ee); transition: width .3s ease; box-shadow: 0 0 10px var(--teal-glow); }
.q-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px; }
.q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.category { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 6px 12px; border-radius: 99px; }
.study-cat { color: var(--violet); background: var(--violet-soft); }
.diff { font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.q-text { font-size: 18.5px; line-height: 1.55; font-weight: 600; margin-bottom: 18px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--bg2); border: 1px solid var(--card-border); color: var(--ink); border-radius: 14px; padding: 15px; font-size: 16px; cursor: pointer; line-height: 1.45; }
.choice .letter { flex: 0 0 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: #1a2450; color: var(--muted); }
.choice.correct { border-color: var(--good); background: rgba(52,211,153,.10); }
.choice.correct .letter { background: var(--good); color: #04140d; }
.choice.wrong { border-color: var(--bad); background: rgba(251,113,133,.10); }
.choice.wrong .letter { background: var(--bad); color: #1c0606; }
.choice.missed { border-color: var(--warn); background: rgba(251,191,36,.08); }
.choice.missed .letter { background: var(--warn); color: #1c1204; }
.choice:disabled { cursor: default; }
.choice input[type="checkbox"] { display: none; }
.choice .box { flex: 0 0 26px; height: 26px; border-radius: 8px; border: 2px solid #2a3568; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: transparent; margin-top: 1px; }
.choice.picked { border-color: var(--teal); background: var(--teal-soft); }
.choice.picked .box { background: var(--teal); border-color: var(--teal); color: #04211d; }
.choice.picked .box::after { content: "✓"; font-weight: 900; }
.choice .rank { flex: 0 0 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: #1a2450; color: var(--muted); }
.choice.ranked { border-color: var(--violet); background: var(--violet-soft); }
.choice.ranked .rank { background: var(--violet-deep); color: #fff; }
.sata-hint { font-size: 13px; color: var(--teal); font-weight: 700; letter-spacing: .3px; background: var(--teal-soft); border: 1px dashed rgba(45,212,191,.4); border-radius: 10px; padding: 8px 12px; margin-bottom: 2px; }
.fib-wrap { display: flex; gap: 10px; }
.fib-input { flex: 1; background: var(--bg2); border: 1px solid var(--card-border); border-radius: 14px; color: var(--ink); font-size: 20px; font-weight: 700; padding: 14px 16px; font-variant-numeric: tabular-nums; }
.fib-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.feedback { margin-top: 18px; }
.verdict { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.verdict.good { color: var(--good); }
.verdict.bad { color: var(--bad); }
.verdict.partial { color: var(--warn); }
.rationale { background: var(--bg2); border-left: 3px solid var(--teal); padding: 13px 15px; border-radius: 0 14px 14px 0; font-size: 15px; line-height: 1.6; color: #dbe3ff; }
.study-vibe .rationale { border-left-color: var(--violet); }
.correct-answer-line { margin-top: 10px; font-size: 15px; color: var(--good); font-weight: 700; }
.evidence-line { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.evidence-line strong { color: var(--teal); }
.study-vibe .evidence-line strong { color: var(--violet); }
#q-next, #q-check { width: 100%; margin-top: 18px; }

/* exhibits (NCSBN-style tabs) */
.exhibits { margin-bottom: 14px; border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
.exhibit-tabs { display: flex; background: var(--bg2); }
.exhibit-tab { flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; padding: 12px 8px; cursor: pointer; border-bottom: 2px solid transparent; }
.exhibit-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.exhibit-body { padding: 14px 16px; font-size: 14.5px; line-height: 1.6; color: #dbe3ff; white-space: pre-wrap; font-variant-numeric: tabular-nums; }

/* calculator */
.calc { position: fixed; right: 16px; bottom: 16px; width: 240px; background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 12px; z-index: 50; box-shadow: 0 16px 50px rgba(0,0,0,.55); }
.calc-display { background: var(--bg2); border-radius: 10px; padding: 12px; font-size: 22px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc-keys button { background: var(--bg2); border: 1px solid var(--card-border); color: var(--ink); border-radius: 10px; font-size: 17px; font-weight: 700; padding: 11px 0; cursor: pointer; }
.calc-keys button.op { color: var(--teal); }
.calc-keys button.eq { background: linear-gradient(135deg, var(--teal), #14b8a6); color: #04211d; border: 0; }

/* ---------- results ---------- */
.results { text-align: center; padding: 30px 0 10px; }
.res-score { font-size: 58px; font-weight: 900; letter-spacing: -1px; background: linear-gradient(120deg, var(--teal), #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-pct { font-size: 22px; color: var(--teal); font-weight: 800; margin: 4px 0 10px; }
.res-msg { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.results .btn { width: 100%; margin-bottom: 10px; }

/* ---------- study vibe ---------- */
.study-vibe .study-head { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; }
.study-head-title { font-weight: 800; font-size: 16px; color: var(--violet); }
.learn-card { background: var(--card); border: 1px solid rgba(167,139,250,.25); border-radius: var(--radius); padding: 22px; }
.learn-answer { background: var(--violet-soft); border: 1px solid rgba(167,139,250,.35); border-radius: 14px; padding: 13px 15px; font-size: 15.5px; font-weight: 700; color: var(--violet); margin-bottom: 14px; line-height: 1.5; }
.learn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* flashcards */
.fc-deck { justify-content: center; margin-bottom: 14px; }
.fc-deck .seg-btn.active { background: var(--violet-soft); border-color: var(--violet); color: var(--violet); }
.flashcard { perspective: 1200px; cursor: pointer; min-height: 300px; }
.fc-inner { position: relative; width: 100%; min-height: 300px; transition: transform .45s ease; transform-style: preserve-3d; }
.flashcard.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.fc-front { border-color: rgba(167,139,250,.35); }
.fc-back { transform: rotateY(180deg); border-color: rgba(52,211,153,.35); }
.fc-tag { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--violet); margin-bottom: 12px; }
.fc-back .fc-tag { color: var(--good); }
.fc-a { font-size: 16.5px; line-height: 1.6; font-weight: 600; }
.fc-a .fc-rat { display: block; margin-top: 12px; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.55; }
.fc-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0; }
#fc-next { width: 100%; }

/* weak areas */
.weak-intro { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.weak-topic { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.weak-topic-head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; color: var(--ink); padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer; }
.weak-count { background: rgba(251,113,133,.15); color: var(--bad); font-size: 13px; font-weight: 800; border-radius: 99px; padding: 4px 12px; }
.weak-items { display: none; padding: 0 16px 16px; }
.weak-topic.open .weak-items { display: block; }
.weak-item { border-top: 1px solid var(--card-border); padding: 12px 0; }
.weak-item .wq { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; line-height: 1.5; }
.weak-item .wr { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.weak-empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 15px; line-height: 1.6; }

/* ---------- outcome data: pass wall ---------- */
.passed-banner { margin: 4px 0 6px; text-align: center; }
.btn.pass {
  width: 100%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 0; color: #231303;
  box-shadow: 0 8px 26px rgba(251, 191, 36, .35);
}
.pass-wall-link { display: inline-block; margin-top: 10px; color: var(--warn); font-size: 14px; font-weight: 700; text-decoration: none; }
.wall-hero { text-align: center; margin: 14px 0 6px; }
.wall-hero h1 { font-size: 30px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.3px; }
.wall-hero h1 { background: linear-gradient(120deg, #fbbf24, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wall-empty {
  text-align: center; background: var(--card); border: 1px dashed rgba(251,191,36,.4);
  border-radius: var(--radius); padding: 44px 24px; margin: 18px 0;
}
.wall-empty-icon { font-size: 44px; margin-bottom: 10px; }
.wall-empty p { font-size: 16px; margin: 6px 0; }
.wall-empty .btn { width: 100%; margin-top: 14px; }
.wall-cards { display: grid; gap: 12px; margin: 18px 0; }
.wall-card {
  background: var(--card); border: 1px solid rgba(251,191,36,.3);
  border-radius: var(--radius); padding: 20px;
}
.wall-quote { font-size: 16.5px; line-height: 1.6; font-style: italic; color: #f4ead2; margin-bottom: 12px; }
.wall-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wall-name { font-weight: 800; color: var(--warn); }
.wall-date { color: var(--muted); font-size: 13px; }
.wall-badge { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--good); background: rgba(52,211,153,.12); border-radius: 99px; padding: 5px 12px; }
.wall-cta { text-align: center; margin: 10px 0 20px; }

/* ---------- ads / footer ---------- */
.ad-slot { position: relative; margin: 12px auto; max-width: 580px; min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed #22305e; border-radius: 14px; background: rgba(13,22,48,.5); }
.ad-slot .ad-label { position: absolute; top: 4px; right: 8px; font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.ad-slot ins.adsbygoogle { width: 100%; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 20px 30px; max-width: 580px; margin: 0 auto; }

/* ---------- streak-at-risk banner ---------- */
.streak-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(251,191,36,.16), rgba(251,113,133,.10));
  border: 1px solid rgba(251,191,36,.5);
  border-radius: var(--radius); padding: 14px 16px; margin: 14px 0;
  font-size: 14.5px; line-height: 1.45;
}
.streak-banner .btn.small { padding: 10px 14px; font-size: 14px; margin-left: auto; white-space: nowrap; }

/* ---------- cross-sell: More from Nurse Mata ---------- */
.cross-sell { display: grid; gap: 10px; margin-bottom: 8px; }
.xs-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .08s ease;
}
.xs-card:active { transform: scale(.985); }
.xs-card:hover { border-color: var(--teal-deep); }
.xs-emoji { font-size: 24px; }
.xs-text { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.xs-text small { color: var(--muted); font-size: 12.5px; }
.xs-arrow { margin-left: auto; color: var(--teal); font-weight: 800; font-size: 18px; }
.xs-card.soon .xs-arrow { display: none; }
.xs-card.soon::after {
  content: "SOON"; margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--warn);
  border: 1px solid var(--warn); border-radius: 99px; padding: 5px 11px;
}

/* ---------- The Nurse Mata Method (branded rationale format) ---------- */
.nmm { margin-top: 12px; }
.nmm-title { font-size: 14px; font-weight: 800; letter-spacing: .4px; margin-bottom: 10px; }
.nmm-sec { margin-bottom: 10px; }
.nmm-label {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 5px;
}
.nmm-sec p { margin: 0; font-size: 15px; line-height: 1.6; }
.nmm-ev { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.issue-link {
  display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.issue-link:hover { color: var(--warn); }
.issue-link .qid { opacity: .7; }

/* ---------- RN/PN track selector ---------- */
.track-switcher { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.track-switcher .seg-label { margin-right: auto; }
.track-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 10px; }
.track-card { border: 1px solid var(--card-border); background: var(--bg2); border-radius: 18px; padding: 26px 14px; cursor: pointer; color: var(--ink); transition: transform .12s ease, border-color .12s ease; }
.track-card:active { transform: scale(.97); }
.track-card:hover { border-color: var(--teal); }
.track-emoji { font-size: 40px; margin-bottom: 10px; }
.track-name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.track-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.onboard-brand { text-align: center; margin: 26px 0 6px; }
.onboard-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- coverage proof table (content-standard.html) ---------- */
.cov-wrap { overflow-x: auto; margin: 14px 0 6px; }
.cov-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cov-table th, .cov-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--card-border); }
.cov-table th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.cov-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.cov-table tr.total td { font-weight: 800; border-bottom: 2px solid var(--teal); }
.cov-growing { display: inline-block; font-size: 12px; font-weight: 700; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid var(--warn); border-radius: 99px; padding: 3px 10px; }
.cov-note { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.5; }
.cov-stamp { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* ---------- accounts UI ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; }
.account-btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--card-border); background: var(--bg2); color: var(--ink); border-radius: 99px; padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.account-btn:active { transform: scale(.97); }
.account-btn.signed-in { border-color: var(--teal); }
.acct-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.acct-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal.hidden { display: none; }
.modal-card { position: relative; background: var(--bg2); border: 1px solid var(--card-border); border-radius: 20px; padding: 34px 26px 26px; max-width: 380px; width: 100%; text-align: center; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal-emoji { font-size: 44px; margin-bottom: 10px; }
.modal-card h2 { margin: 0 0 8px; font-size: 22px; }
.modal-sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.modal-btn { width: 100%; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.g-logo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285F4; font-weight: 800; font-size: 14px; }
.modal-note { font-size: 13.5px; color: var(--muted); background: var(--bg); border: 1px dashed var(--card-border); border-radius: 12px; padding: 12px; margin: 6px 0 0; line-height: 1.5; }
.modal-note.hidden { display: none; }

/* ---------- legal footers ---------- */
.legal { font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 640px; margin: 0 auto 10px; }
.modal-terms { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.modal-terms a { color: var(--teal); }
#email-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.text-input { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 13px 14px; font-size: 16px; color: var(--ink); }
.text-input:focus { outline: none; border-color: var(--teal); }
.text-input::placeholder { color: var(--muted); }
.email-actions { display: flex; gap: 10px; }
.email-btn { flex: 1; margin: 0; }
