/* Farhan AI design system v2. Teal blackboard + marigold, tactile 3D buttons, the Omega loop as mark and progress ring.
   No external requests: fonts are bundled. */


@font-face { font-family: 'Bricolage'; font-weight: 200 800; font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind'; font-weight: 400; font-display: swap;
  src: url('../fonts/hind-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind'; font-weight: 600; font-display: swap;
  src: url('../fonts/hind-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hind'; font-weight: 400; font-display: swap;
  src: url('../fonts/hind-devanagari-400-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Hind'; font-weight: 600; font-display: swap;
  src: url('../fonts/hind-devanagari-600-normal.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }


:root {
  --font-body: 'Hind', 'Noto Sans Devanagari', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage', 'Hind', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #f3f7f6; --paper: #ffffff; --ink: #0f1d2e; --muted: #5a6b7c; --line: #dbe5e2; --soft: #e8f0ee;
  --brand: #0d8c82; --brand-d: #086a62; --brand-l: #d9f2ee; --on-brand: #ffffff;
  --accent: #ffb81c; --accent-d: #d9920a; --on-accent: #2b1c00; --accent-soft: #fff1cf;
  --ok: #17a45e; --ok-d: #0f7f46; --ok-bg: #dff6e8; --bad: #e5483c; --bad-d: #b32f25; --bad-bg: #fde5e2; --focus: #1d5fe0;
  --c-math: #4a63e7; --c-science: #ef5a3c; --c-tech: #8a52e0; --c-mind: #12a05f;
  --shadow: 0 1px 2px rgb(15 29 46 / .06), 0 8px 24px -10px rgb(15 29 46 / .18);
  --r: 20px; --rail: 16.5rem;
  color-scheme: light;
}
html[data-theme='dark'] {
  --bg: #0a1519; --paper: #12252b; --ink: #eaf3f1; --muted: #9bb1b0; --line: #23404a; --soft: #183039;
  --brand: #38c5b6; --brand-d: #1f8f84; --brand-l: #123b3a; --on-brand: #04201c;
  --accent: #ffc233; --accent-d: #c98a0a; --accent-soft: #3a2d0f;
  --ok: #3fcf84; --ok-d: #1f9b5d; --ok-bg: #10382a; --bad: #ff7468; --bad-d: #c8453a; --bad-bg: #40191a; --focus: #86b4ff;
  --c-math: #8fa2ff; --c-science: #ff8a6b; --c-tech: #b796f2; --c-mind: #4fd68f;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 26px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme='auto'] {
    --bg: #0a1519; --paper: #12252b; --ink: #eaf3f1; --muted: #9bb1b0; --line: #23404a; --soft: #183039;
    --brand: #38c5b6; --brand-d: #1f8f84; --brand-l: #123b3a; --on-brand: #04201c;
    --accent: #ffc233; --accent-d: #c98a0a; --accent-soft: #3a2d0f;
    --ok: #3fcf84; --ok-d: #1f9b5d; --ok-bg: #10382a; --bad: #ff7468; --bad-d: #c8453a; --bad-bg: #40191a; --focus: #86b4ff;
    --c-math: #8fa2ff; --c-science: #ff8a6b; --c-tech: #b796f2; --c-mind: #4fd68f;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 26px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
.subj-math { --s: var(--c-math); } .subj-science { --s: var(--c-science); }
.subj-tech { --s: var(--c-tech); } .subj-mind { --s: var(--c-mind); }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html[data-size='0'] { font-size: 93.75%; } html[data-size='2'] { font-size: 112.5%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body); min-height: 100dvh; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; margin-top: 1.5rem; }
p { margin: 0 0 .85rem; max-width: 66ch; }
a { color: var(--brand); text-underline-offset: .2em; }
ul.plain, .trail, .badges, .week { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--muted); } .center { text-align: center; margin-inline: auto; }
.lead { font-size: 1.08rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.icon { flex: none; }
.meta { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .85rem; color: var(--muted); }
.text-link { font-weight: 600; }
.note { padding: .6rem .9rem; margin: .5rem 1rem; border-radius: 12px; background: var(--accent-soft); font-size: .9rem; }

/* ---------- shell ---------- */
#app { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.main-col { min-width: 0; display: flex; flex-direction: column; }
#view { flex: 1; outline: 0; }
.page { width: 100%; max-width: 46rem; margin-inline: auto; padding: 1rem 1.1rem calc(6.5rem + env(safe-area-inset-bottom)); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 800 1.25rem var(--font-display); letter-spacing: -.02em; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.hud { display: flex; align-items: center; gap: .45rem; margin-inline-start: auto; }
.hud-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font: 800 .95rem var(--font-display); font-variant-numeric: tabular-nums; }
.hud-streak { color: #f06a1b; } .hud-xp { color: var(--accent-d); }
.status-pill { padding: .2rem .7rem; border-radius: 99px; background: var(--accent-soft); color: var(--ink); font-size: .8rem; font-weight: 600; }
.rail { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; background: var(--paper); border-top: 1.5px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.rail-brand { display: none; }
.rail ul { list-style: none; margin: 0; padding: .3rem .4rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .2rem; }
.rail a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .35rem .2rem; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; min-height: 52px; justify-content: center; }
.rail a[aria-current='page'] { color: var(--brand); background: var(--brand-l); }
.rail-label { line-height: 1.1; text-align: center; }
body[data-mode='lesson'] .rail, body[data-mode='lesson'] .topbar, body[data-mode='welcome'] .rail, body[data-mode='welcome'] .topbar { display: none; }
body[data-mode='lesson'] #app, body[data-mode='welcome'] #app { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  #app { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .rail { position: sticky; top: 0; height: 100dvh; inset-inline: auto; border-top: 0; border-inline-end: 1.5px solid var(--line); padding: 1.2rem .9rem; }
  .rail-brand { display: block; padding: .2rem .6rem 1.2rem; }
  .rail ul { display: flex; flex-direction: column; gap: .3rem; padding: 0; }
  .rail a { flex-direction: row; justify-content: flex-start; gap: .9rem; padding: .7rem .9rem; font-size: 1.02rem; border-radius: 14px; }
  .topbar .brand { display: none; }
  .page { padding-bottom: 3rem; }
}

/* ---------- buttons: tactile ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .6rem 1.3rem; border: 0; border-radius: 14px; font: 800 1rem var(--font-display); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:active { transform: translateY(3px); box-shadow: none !important; }
.btn:disabled { cursor: not-allowed; filter: grayscale(.8) opacity(.45); }
.btn.big { min-height: 56px; font-size: 1.08rem; border-radius: 16px; } .btn.wide { width: 100%; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 0 var(--brand-d); }
.btn-primary.ok { background: var(--ok); box-shadow: 0 4px 0 var(--ok-d); color: #fff; }
.btn-primary.no { background: var(--bad); box-shadow: 0 4px 0 var(--bad-d); color: #fff; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-d); }
.btn-secondary { background: var(--paper); color: var(--brand); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-danger { background: var(--bad); color: #fff; box-shadow: 0 4px 0 var(--bad-d); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn.ghost { pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem 1rem; border: 0; border-radius: 99px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: none; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; } .chips.scroll .chip { flex: none; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Omega, meters, progress ---------- */
.omega { display: block; overflow: visible; }
.omega-track { stroke: var(--line); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.omega-fill { stroke: var(--brand); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: calc(var(--p) * 1) 100; animation: ring 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ring { from { stroke-dasharray: 0 100; } }
.omega.static .omega-track { stroke: var(--brand); } .omega.static .omega-fill { stroke: var(--accent); animation: none; stroke-width: 11; }
.brand .omega-fill { animation: none; }
.meter { display: block; height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; } .meter.big { height: 14px; }
.meter i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: var(--s, var(--brand)); transition: width .5s; }
.pbar { display: flex; gap: .3rem; flex: 1; }
.pbar i { flex: 1; height: 10px; border-radius: 99px; background: var(--soft); transition: background .3s; }
.pbar i.on { background: var(--brand); }
.pbar.thin i { height: 12px; }
.ring-wrap, .done-ring, .lv-badge { position: relative; display: grid; place-items: center; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-top: .6rem; }
.ring-center strong { font: 800 2rem/1 var(--font-display); } .ring-center span { font-size: .8rem; color: var(--muted); }

/* ---------- onboarding wizard ---------- */
.wiz { min-height: 100dvh; display: flex; flex-direction: column; }
.onboard { display: flex; flex-direction: column; flex: 1; width: 100%; max-width: 34rem; margin-inline: auto; }
.wiz-top { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; padding-top: calc(.8rem + env(safe-area-inset-top)); }
.wiz-body { flex: 1; padding: .5rem 1.25rem 8.5rem; }
.wiz-logo { display: grid; place-items: center; margin: .5rem 0 1rem; }
.wiz-body h1 { text-align: center; } .wiz-body .lead { text-align: center; margin-inline: auto; }
.wiz-body fieldset { border: 0; margin: 1.25rem 0 0; padding: 0; } .wiz-body legend { text-align: center; width: 100%; font-weight: 600; margin-bottom: .75rem; color: var(--muted); }
.opts { display: grid; gap: .7rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt-body { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); cursor: pointer; transition: box-shadow .12s, transform .08s; }
.opt-body:active { transform: translateY(3px); }
.opt-text { flex: 1; display: grid; } .opt-title { font: 700 1.1rem var(--font-display); } .opt-sub { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.opt-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--s, var(--brand)) 16%, var(--paper)); color: var(--s, var(--brand)); flex: none; }
.opt-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); color: transparent; flex: none; }
.opt input:checked + .opt-body { box-shadow: inset 0 0 0 2.5px var(--brand), 0 4px 0 var(--brand-d); background: var(--brand-l); }
.opt input:checked + .opt-body .opt-mark { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt.compact .opt-body { padding: .85rem 1.1rem; }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: .3rem; margin: 1.5rem auto 0; font-size: .9rem; color: var(--muted); }
.cta-bar { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1.5px solid var(--line); }
.cta-inner { width: 100%; max-width: 34rem; margin-inline: auto; display: grid; gap: .6rem; }
.cta-hint { margin: 0; text-align: center; color: var(--muted); font-weight: 600; max-width: none; }
.cta-row { display: flex; justify-content: center; gap: .5rem; }

/* ---------- home ---------- */
.home-head { margin: .25rem 0 1rem; } .greet { margin: 0; color: var(--muted); font-weight: 600; } .home-head h1 { margin: 0; }
.today { position: relative; overflow: hidden; padding: 1.25rem; border-radius: 26px; color: #fff; background: linear-gradient(145deg, #0b5f63 0%, #0d8c82 60%, #2bb5a1 100%); box-shadow: var(--shadow); }
.today-deco { position: absolute; inset-inline-end: -2.5rem; top: -2rem; width: 15rem; height: 15rem; stroke: rgb(255 255 255 / .1); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.today-main { position: relative; display: flex; align-items: center; gap: 1.1rem; }
.today .omega-track { stroke: rgb(255 255 255 / .22); } .today .omega-fill { stroke: var(--accent); }
.today .ring-center span { color: rgb(255 255 255 / .8); }
.today-copy h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.streak { display: flex; align-items: center; gap: .3rem; margin: 0; font-weight: 600; color: #ffe6a8; }
.week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .2); }
.week li { display: grid; justify-items: center; gap: .25rem; }
.week .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .16); color: var(--on-accent); }
.week li.on .dot { background: var(--accent); } .week li.now .dot { box-shadow: 0 0 0 2px #fff; }
.week .wd { font-size: .75rem; color: rgb(255 255 255 / .85); }
.next { position: relative; overflow: hidden; display: grid; gap: .35rem; margin-top: 1rem; padding: 1.25rem; border-radius: 26px; color: #fff; text-decoration: none; background: linear-gradient(150deg, color-mix(in srgb, var(--s) 78%, #000) 0%, var(--s) 100%); box-shadow: var(--shadow); }
.next .meta { color: rgb(255 255 255 / .85); }
.next-bg { position: absolute; inset-inline-end: -1.5rem; bottom: -1.5rem; opacity: .16; color: #fff; pointer-events: none; } .next-bg svg { stroke-width: 1.2; }
.next-kicker { font-weight: 700; opacity: .85; font-size: .9rem; }
.next-title { font: 800 1.55rem/1.15 var(--font-display); letter-spacing: -.02em; }
.next-sum { max-width: 34ch; opacity: .95; }
.next-steps { display: flex; gap: .25rem; margin: .4rem 0; max-width: 16rem; } .next-steps i { flex: 1; height: 6px; border-radius: 9px; background: rgb(255 255 255 / .3); } .next-steps i.on { background: #fff; }
.next-go { justify-self: start; margin-top: .4rem; background: #fff; color: #0f1d2e; box-shadow: 0 4px 0 rgb(0 0 0 / .22); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.tile { display: grid; gap: .15rem; padding: 1rem; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 0 var(--line); color: var(--ink); text-decoration: none; }
.tile-ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-d); margin-bottom: .3rem; } .tile-ico.alt { background: var(--brand-l); color: var(--brand); }
.count { position: absolute; top: -.4rem; inset-inline-end: -.5rem; min-width: 22px; padding: 0 .35rem; border-radius: 99px; background: var(--bad); color: #fff; font: 800 .8rem/22px var(--font-display); text-align: center; }
.tile-label { font: 800 1.05rem var(--font-display); } .tile-sub { font-size: .88rem; color: var(--muted); line-height: 1.3; }
.block { margin-top: 1.75rem; }
.subj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.stile { display: grid; gap: .25rem; padding: 1rem; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; }
.stile-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--s); background: color-mix(in srgb, var(--s) 15%, var(--paper)); }
.stile-name { font: 800 1.05rem var(--font-display); } .stile-count { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .subj-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- learn trail ---------- */
.unit { margin-top: 1.5rem; }
.unit-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 22px; color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--s) 75%, #000), var(--s)); }
.unit-head h2, .unit-head p { margin: 0; } .unit-head p { opacity: .9; font-size: .92rem; }
.unit-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgb(255 255 255 / .2); flex: none; }
.trail { display: grid; gap: 1.1rem; padding: 1.4rem 0 .5rem; }
.trail-item { display: flex; align-items: center; gap: 1rem; transform: translateX(var(--off)); }
[dir='rtl'] .trail-item { transform: translateX(calc(var(--off) * -1)); }
.node { position: relative; display: grid; place-items: center; flex: none; width: 74px; height: 74px; border-radius: 50%; background: var(--paper); color: var(--s); box-shadow: 0 5px 0 var(--line), inset 0 0 0 0 var(--line); text-decoration: none; }
.node:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.node .omega { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; } .node .omega-fill { stroke: var(--s); stroke-width: 8; } .node .omega-track { stroke-width: 8; }
.node-ico { position: relative; }
.node.done { background: var(--s); color: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--s) 60%, #000); } .node.done .omega { display: none; }
.node.hot { box-shadow: 0 5px 0 var(--line), 0 0 0 6px color-mix(in srgb, var(--s) 25%, transparent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 5px 0 var(--line), 0 0 0 11px color-mix(in srgb, var(--s) 8%, transparent); } }
.node-copy { display: grid; gap: .1rem; min-width: 0; }
.node-title { font: 800 1.08rem/1.2 var(--font-display); } .node-sum { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.status { justify-self: start; margin-top: .25rem; padding: .1rem .65rem; border-radius: 99px; background: var(--soft); font-size: .8rem; font-weight: 700; }
.status.hot { background: var(--accent); color: var(--on-accent); } .status.ok { background: var(--ok-bg); color: var(--ok-d); }
html[data-theme='dark'] .status.ok { color: var(--ok); }
@media (max-width: 420px) { .trail-item { transform: translateX(calc(var(--off) * .35)); } }

/* ---------- lesson player ---------- */
.player { min-height: 100dvh; display: flex; flex-direction: column; }
.player-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem; width: 100%; max-width: 40rem; margin-inline: auto; padding: .7rem .8rem; padding-top: calc(.7rem + env(safe-area-inset-top)); background: var(--bg); }
.player-top .icon-btn[hidden] { display: none; }
.player-body { flex: 1; width: 100%; max-width: 40rem; margin-inline: auto; padding: .5rem 1.25rem 12rem; }
.step-kicker { margin: 0 0 .15rem; font-weight: 700; color: var(--s, var(--brand)); font-size: .9rem; }
.hook-card { position: relative; overflow: hidden; padding: 1.75rem 1.4rem; border-radius: 26px; color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--s) 78%, #000), var(--s)); box-shadow: var(--shadow); margin-top: .5rem; }
.hook-ico { position: absolute; inset-inline-end: -1.2rem; top: -1rem; opacity: .15; color: #fff; } .hook-ico svg { stroke-width: 1.2; }
.hook-title { position: relative; font: 700 .95rem var(--font-display); opacity: .85; margin: 0 0 .6rem; }
.hook { position: relative; margin: 0; font: 800 1.45rem/1.3 var(--font-display); letter-spacing: -.01em; }
.prose { font-size: 1.1rem; line-height: 1.7; }
.points { padding: 0; list-style: none; display: grid; gap: .6rem; } .points li { padding: .8rem 1rem; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.terms { display: grid; gap: .4rem; margin: 0; } .terms dt { font: 800 1.02rem var(--font-display); color: var(--s); } .terms dd { margin: 0 0 .5rem; color: var(--muted); }
.prompt { font: 800 1.3rem/1.3 var(--font-display); margin: 1rem 0 1.1rem; max-width: none; }
.answer { padding: 1rem 1.1rem; border-radius: 16px; background: var(--brand-l); }
.choices { display: grid; gap: .65rem; }
.choice { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 58px; padding: .75rem 1rem; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); text-align: start; font: 600 1.05rem/1.35 var(--font-body); cursor: pointer; box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); transition: transform .08s; }
.choice:not(:disabled):active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--line); }
.choice:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--brand), 0 4px 0 var(--brand-d); }
.choice-text { flex: 1; }
.letter { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--soft); font: 800 .9rem var(--font-display); color: var(--muted); flex: none; }
.choice:disabled { cursor: default; color: var(--ink); }
.choice.right { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--ok), 0 4px 0 var(--ok); } .choice.right .letter { background: var(--ok); color: #fff; }
.choice.wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad), 0 4px 0 var(--bad); animation: shake .35s; } .choice.wrong .letter { background: var(--bad); color: #fff; }
.choice.dim { opacity: .55; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.feedback { display: grid; gap: .25rem; padding: .85rem 1rem; border-radius: 18px; animation: rise .25s ease-out; }
.feedback.ok { background: var(--ok-bg); color: var(--ok-d); } .feedback.no { background: var(--bad-bg); color: var(--bad-d); }
html[data-theme='dark'] .feedback.ok { color: var(--ok); } html[data-theme='dark'] .feedback.no { color: var(--bad); }
@media (prefers-color-scheme: dark) { html[data-theme='auto'] .feedback.ok { color: var(--ok); } html[data-theme='auto'] .feedback.no { color: var(--bad); } }
.fb-head { display: flex; align-items: center; gap: .4rem; font: 800 1.15rem var(--font-display); } .feedback p { margin: 0; max-width: none; }
.fb-correct { font-weight: 700; } .fb-text { color: var(--ink); font-size: .98rem; line-height: 1.45; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.qa-item { margin: 1rem 0; padding: .8rem 1rem; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); } .qa-q { font-weight: 700; }
.try { margin-top: 1.5rem; }
.sim { display: grid; gap: .9rem; padding: 1.1rem; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.sim-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; align-items: center; } .sim-row label { grid-column: 1 / -1; font-weight: 700; }
.sim-row input[type='range'] { width: 100%; accent-color: var(--brand); min-height: 32px; }
.sim-row output { min-width: 3.2ch; text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; }
.sim-out p { margin: 0 0 .25rem; } .sim-out strong { font: 800 1.4rem var(--font-display); }
.bar-track { height: 12px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-top: .5rem; } .bar-track .bar { height: 100%; width: calc(var(--p) * 1%); background: var(--brand); transition: width .4s; }
.bits, .bit-places { display: grid; grid-template-columns: repeat(8, 1fr); gap: .35rem; } .bit-places { text-align: center; font-size: .75rem; color: var(--muted); }
.bit { min-height: 52px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); font: 800 1.2rem var(--font-display); cursor: pointer; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
.bit[aria-pressed='true'] { background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 0 var(--brand-d); }
.done { display: grid; justify-items: center; text-align: center; gap: .3rem; padding-top: .5rem; }
.done .ring-center strong { font-size: 2.4rem; } .done .ring-center { padding-top: .4rem; }
.done-ring .omega-fill { stroke: var(--accent); }
.done h2 { font-size: 2rem; margin: .6rem 0 0; } .score { font: 800 1.25rem var(--font-display); color: var(--muted); margin: 0; }
.done-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; margin-top: 1.2rem; }
.dstat { display: grid; justify-items: center; gap: .1rem; padding: .85rem .4rem; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 2px currentColor; }
.dstat strong { font: 800 1.6rem/1.1 var(--font-display); } .dstat span { font-size: .78rem; color: var(--muted); font-weight: 600; } .acc-row { display: flex; font-size: 1.6rem !important; color: inherit !important; }
.dstat.xp { color: var(--accent-d); } .dstat.acc { color: var(--ok-d); } .dstat.cards { color: var(--brand); }
.dstat.xp strong, .dstat.acc strong, .dstat.cards strong { color: var(--ink); }
.confetti { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: fall var(--d) var(--w) cubic-bezier(.3, .6, .5, 1) both; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }

/* ---------- review ---------- */
.rev-progress { display: flex; align-items: center; gap: .8rem; margin: .5rem 0 1rem; } .rev-progress span { font-weight: 700; color: var(--muted); white-space: nowrap; }
.rev-progress .pbar i { width: var(--w); flex: none; background: var(--brand); } .rev-progress .pbar { background: var(--soft); border-radius: 99px; height: 12px; overflow: hidden; }
.flashcard { min-height: 15rem; margin: 1rem 0 1.5rem; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow), inset 0 0 0 2px var(--line); text-align: center; }
.fc-front { font: 800 1.5rem/1.3 var(--font-display); margin: 0 auto; } .fc-back { margin: 0 auto; padding-top: 1rem; border-top: 2px dashed var(--line); font-size: 1.1rem; }
.flashcard.flipped { animation: rise .25s ease-out; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.grade { display: grid; gap: .05rem; justify-items: center; min-height: 60px; padding: .5rem .3rem; border: 0; border-radius: 14px; color: #fff; font: 800 1rem var(--font-display); cursor: pointer; }
.grade small { font: 600 .72rem var(--font-body); opacity: .95; } .grade:active { transform: translateY(3px); box-shadow: none !important; }
.grade-again { background: var(--bad); box-shadow: 0 4px 0 var(--bad-d); } .grade-hard { background: #f08a1c; box-shadow: 0 4px 0 #b9650a; }
.grade-good { background: var(--brand); box-shadow: 0 4px 0 var(--brand-d); color: var(--on-brand); } .grade-easy { background: var(--ok); box-shadow: 0 4px 0 var(--ok-d); }
.empty { display: grid; justify-items: center; text-align: center; gap: .4rem; padding: 2.5rem 0; } .empty p { margin-inline: auto; }
.empty-ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--brand-l); color: var(--brand); margin-bottom: .5rem; } .empty-ico.ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- tutor ---------- */
.page.tutor { display: flex; flex-direction: column; min-height: calc(100dvh - 3.5rem); padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.tutor-head h1 { margin-bottom: .3rem; }
.private-pill { display: inline-flex; align-items: center; gap: .3rem; margin: 0; padding: .15rem .7rem; border-radius: 99px; background: var(--ok-bg); color: var(--ok-d); font-size: .82rem; font-weight: 700; }
html[data-theme='dark'] .private-pill { color: var(--ok); }
.tutor-head { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.chat { flex: 1; display: flex; flex-direction: column; gap: .8rem; margin: 1rem 0; }
.msg { display: flex; align-items: flex-end; gap: .5rem; max-width: 92%; } .msg.u { align-self: flex-end; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-l); flex: none; }
.bubble { padding: .7rem 1rem .25rem; border-radius: 20px 20px 20px 6px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); min-width: 0; }
.msg.u .bubble { background: var(--brand); color: var(--on-brand); border-radius: 20px 20px 6px 20px; box-shadow: none; }
.typing .bubble { display: flex; gap: .3rem; padding: .9rem 1rem; } .typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-3px); } }
.think { margin: .5rem 0; padding: .6rem .9rem; border-inline-start: 4px solid var(--brand); background: var(--soft); border-radius: 4px 12px 12px 4px; }
.dock { position: fixed; z-index: 15; inset-inline: 0; bottom: calc(4.2rem + env(safe-area-inset-bottom)); width: 100%; max-width: 46rem; margin-inline: auto; padding: .4rem 1.1rem .6rem; background: var(--bg); }
.dock .chips { margin: 0 0 .5rem; }
.chat-form { display: flex; gap: .5rem; }
.chat-input { flex: 1; min-width: 0; min-height: 52px; padding: .5rem 1.2rem; border: 0; border-radius: 99px; background: var(--paper); color: var(--ink); font: 400 16px var(--font-body); box-shadow: inset 0 0 0 2px var(--line); }
.chat-input:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); outline: 0; }
.send { width: 52px; min-height: 52px; padding: 0; border-radius: 50%; }
.page.tutor { padding-bottom: calc(11.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .dock { position: sticky; bottom: 0; padding-inline: 0; } .page.tutor { padding-bottom: 0; min-height: calc(100dvh - 4rem); } }

/* ---------- me ---------- */
.levelbar { display: flex; align-items: center; gap: 1.1rem; margin: .5rem 0 1.25rem; padding: 1.1rem; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line); }
.lv-badge b { position: absolute; font: 800 1.9rem var(--font-display); color: var(--accent-d); padding-top: .35rem; }
.lv-badge .omega-fill { stroke: var(--accent); }
.lv-copy { flex: 1; } .lv { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; } .lv strong { font: 800 1.3rem var(--font-display); } .lv span { color: var(--muted); font-weight: 600; }
.lv-copy .meter i { background: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.stat { display: grid; padding: .9rem; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); } .stat strong { font: 800 1.7rem var(--font-display); } .stat span { font-size: .82rem; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .7rem; margin-top: .8rem; }
.badge { display: grid; justify-items: center; text-align: center; gap: .15rem; padding: 1rem .6rem; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); opacity: .6; }
.badge.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent), 0 4px 0 var(--accent-d); }
.badge-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--soft); color: var(--muted); margin-bottom: .3rem; } .badge.on .badge-ico { background: var(--accent); color: var(--on-accent); }
.badge strong { font: 800 .98rem var(--font-display); } .badge small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.me .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; height: 8.5rem; border: 0; padding: 0; margin: .8rem 0 0; }
.day { display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; font-size: .78rem; color: var(--muted); }
.wk { flex: 1; width: 100%; display: flex; align-items: flex-end; border-radius: 10px; background: var(--soft); overflow: hidden; } .wk i { display: block; width: 100%; height: calc(var(--h) * 1%); min-height: 4px; background: var(--brand); border-radius: 10px; }
.mrow { display: grid; grid-template-columns: 9rem 1fr 3rem; gap: .75rem; align-items: center; padding: .6rem 0; font-weight: 600; } .mrow strong { text-align: end; }
.mrow .meter i { background: var(--s); }
.settings .setting { margin: 1.5rem 0; } .settings h3 { margin-top: 0; }
.about { font-size: .85rem; margin-top: 2rem; } .erase p { color: var(--bad); }
.switch { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding: .4rem 0; font-weight: 600; cursor: pointer; } .switch input { width: 22px; height: 22px; accent-color: var(--brand); }
.seg { border: 0; padding: 0; margin: 1.2rem 0; } .seg legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.seg-options { display: flex; gap: .3rem; padding: .3rem; border-radius: 16px; background: var(--soft); } .seg.stacked .seg-options { flex-wrap: wrap; }
.seg-opt { position: relative; flex: 1; min-width: 6rem; } .seg-opt input { position: absolute; opacity: 0; inset: 0; }
.seg-opt label { display: grid; place-items: center; text-align: center; min-height: 44px; padding: .35rem .5rem; border-radius: 12px; font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--muted); } .seg-opt label small { font-weight: 400; }
.seg-opt input:checked + label { background: var(--paper); color: var(--brand); box-shadow: 0 2px 6px rgb(0 0 0 / .12); }
.seg-opt input:focus-visible + label { outline: 3px solid var(--focus); }

/* ---------- toasts ---------- */
#toasts { position: fixed; inset-inline: 0; bottom: calc(5.5rem + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: .5rem; z-index: 70; pointer-events: none; padding-inline: 1rem; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 1rem; max-width: 28rem; padding: .75rem 1.1rem; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); animation: rise .25s; }
.toast-btn { min-height: 36px; padding: .25rem .9rem; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 800 .95rem var(--font-display); cursor: pointer; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 380px) { .grades { grid-template-columns: repeat(2, 1fr); } .mrow { grid-template-columns: 6.5rem 1fr 3rem; } .today-main { flex-direction: column; text-align: center; } .streak { justify-content: center; } }
@media print { .rail, .topbar, #toasts { display: none; } }
.private-pill.live { background: var(--accent-soft); color: var(--accent-d); }
.bubble p:last-child { margin-bottom: .6rem; } .bubble .points { margin-bottom: .6rem; }

/* ---------- voice and photo ---------- */
.head-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.chip.talk.on { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.icon-btn.mic.live { background: var(--bad); color: #fff; animation: rec 1.1s ease-in-out infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--bad) 22%, transparent); } }
.page.tutor.listening .chat-input { box-shadow: inset 0 0 0 2px var(--bad); }
.chat-form .icon-btn { width: 44px; height: 52px; }
.attach { display: flex; align-items: center; gap: .7rem; margin: 0 0 .5rem; padding: .5rem .6rem; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.attach p { flex: 1; margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.thumb { max-width: 72px; max-height: 72px; border-radius: 10px; display: block; }
.bubble .thumb { max-width: min(220px, 100%); max-height: 220px; margin-bottom: .4rem; }

/* ---------- lab ---------- */
.lab-banner { display: flex; align-items: center; gap: .9rem; margin: .4rem 0 1rem; padding: .9rem 1rem; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 0 var(--line); color: var(--ink); text-decoration: none; }
.lab-banner > span:nth-child(2) { flex: 1; display: grid; } .lab-banner small { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.lab-ico, .tile-ico.lab { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; color: var(--s, var(--brand)); background: color-mix(in srgb, var(--s, var(--brand)) 15%, var(--paper)); }
.tile-ico.lab { background: var(--brand-l); color: var(--brand); } .lab-ico.big { width: 56px; height: 56px; }
.tile.wide { grid-column: 1 / -1; }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.lab-card { display: grid; gap: .25rem; align-content: start; padding: 1rem; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 0 var(--line); color: var(--ink); text-decoration: none; }
.lab-name { font: 800 1.05rem var(--font-display); } .lab-sum { color: var(--muted); font-size: .88rem; line-height: 1.3; }
@media (min-width: 700px) { .lab-grid { grid-template-columns: repeat(3, 1fr); } }
.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .6rem; color: var(--muted); font-weight: 700; text-decoration: none; }
.lab-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; } .lab-head h1, .lab-head p { margin: 0; }
.lab-stage { padding: .6rem; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); } .lab-canvas { display: block; width: 100%; height: auto; border-radius: 16px; }
.lab-outs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin: .8rem 0; }
.lab-out { display: grid; padding: .7rem .9rem; border-radius: 16px; background: color-mix(in srgb, var(--s) 12%, var(--paper)); } .lab-out span { font-size: .82rem; color: var(--muted); } .lab-out strong { font: 800 1.35rem var(--font-display); }
.lab-controls { display: grid; gap: .5rem; margin-bottom: 1rem; } .seg.compact { margin: .4rem 0; }
.note-card { margin: 1.2rem 0; padding: 1rem 1.1rem; border-radius: 18px; background: var(--accent-soft); } .note-card p { margin: .2rem 0 0; }
.notebook { margin-top: 1.5rem; padding: 1.1rem; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line); }
.notebook h2 { display: flex; align-items: center; gap: .5rem; } .notebook h3 { margin: 0; }
.nb-label { display: block; margin: 1rem 0 .35rem; font-weight: 700; } .nb-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1.2rem; }
.note-box { width: 100%; padding: .7rem .9rem; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font-body); box-shadow: inset 0 0 0 1.5px var(--line); resize: vertical; }
.note-box:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); outline: 0; }
.data-wrap { margin: .7rem 0; overflow-x: auto; } .data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.data th, .data td { padding: .45rem .6rem; text-align: end; border-bottom: 1px solid var(--line); } .data th { color: var(--muted); font-weight: 700; font-size: .8rem; } .data th:first-child, .data td:first-child { text-align: start; color: var(--muted); }
.nb-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.saved li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); } .saved-actions { display: flex; align-items: center; gap: .3rem; }
.row-link { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; color: var(--ink); text-decoration: none; }
.notes li { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; margin-bottom: .5rem; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.empty-note { padding: 1rem; border-radius: 14px; background: var(--soft); color: var(--muted); }

/* ---- polish v3 ---- */
.wiz { background: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.perks li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); color: var(--brand-d, var(--brand)); font: 700 .82rem var(--font-body); }
.wiz-logo svg { filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--brand) 28%, transparent)); }
.orb { display: grid; place-items: center; width: 96px; height: 96px; margin: 1.6rem auto .4rem; border-radius: 50%; color: var(--s); background: color-mix(in srgb, var(--s) 12%, var(--paper)); box-shadow: 0 0 0 10px color-mix(in srgb, var(--s) 8%, transparent), 0 0 0 22px color-mix(in srgb, var(--s) 4%, transparent); }
@media (prefers-reduced-motion: no-preference) { .orb { animation: orb 3.2s ease-in-out infinite; } @keyframes orb { 50% { transform: scale(1.06); } } }
.private-pill { white-space: nowrap; }
.tutor-head { flex-wrap: wrap; }
.toast { pointer-events: none; }
