:root{color-scheme:light;--ink:#22223b;--muted:#66677c;--line:#dfe2ed;--paper:#fff;--wash:#f5f6fb;--accent:#4f6ef7;--accent-dark:#304dcc;--focus:#a351e8;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--wash);color:var(--ink);display:flex;flex-direction:column}.skip-link{position:absolute;left:-9999px;top:1rem;background:#fff;padding:.75rem;z-index:2}.skip-link:focus{left:1rem}.topbar{height:4.5rem;padding:0 clamp(1.25rem,5vw,4rem);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.topbar a{font-size:1.3rem;font-weight:750;letter-spacing:-.04em;color:var(--ink);text-decoration:none}.topbar span,.eyebrow{font-size:.78rem;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}.auth-wrap{width:100%;max-width:760px;margin:auto;padding:3rem 1.25rem}.auth-card{max-width:560px;margin:auto;background:var(--paper);border:1px solid var(--line);border-radius:1.25rem;padding:clamp(1.5rem,5vw,3rem);box-shadow:0 20px 55px #29365b0c}.eyebrow{margin:0 0 .8rem;color:var(--accent-dark);font-weight:700}h1{font-size:clamp(2rem,6vw,3.25rem);line-height:1.05;letter-spacing:-.055em;margin:.2rem 0 1rem}.intro{color:var(--muted);line-height:1.65;margin:0 0 1.5rem}.notice{padding:.8rem 1rem;border-radius:.7rem;background:#f0f2fa;color:#44465c;line-height:1.5}form{display:grid;gap:.7rem;margin:1.25rem 0}label{font-weight:650}input{font:inherit;padding:.85rem 1rem;border:1px solid #b9bfd1;border-radius:.65rem;width:100%}button{font:inherit;font-weight:700;border:0;border-radius:.65rem;padding:.9rem 1rem;background:var(--accent);color:white;cursor:pointer;width:100%;margin-top:.5rem}button:hover{background:var(--accent-dark)}button:disabled{opacity:.55;cursor:wait}.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.secondary:hover{background:#f7f8fc}.demo-link{margin:1.5rem 0 0;font-size:.9rem}.demo-link a,.footer a{color:var(--accent-dark)}.footer{text-align:center;padding:1.5rem;color:var(--muted);font-size:.9rem}#signed-in h2{margin-top:1.5rem}.auth-card :focus-visible,.topbar a:focus-visible,.footer a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}[hidden]{display:none!important}@media(max-width:480px){.topbar{height:3.75rem}.auth-wrap{padding:1.5rem .85rem}.auth-card{border-radius:.9rem}}
.workspace{margin-top:1.5rem;border-top:1px solid var(--line);padding-top:1rem}.workspace h3{font-size:1.25rem;letter-spacing:-.02em}.activity-card,.key-card{border:1px solid var(--line);border-radius:.8rem;padding:1rem;margin:1rem 0;background:#fff}.activity-card h4,.key-card h5{margin:.25rem 0 .75rem}.activity-card h5{margin:.8rem 0 .35rem}.activity-card p,.key-card p{line-height:1.6}.question-form{border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem}.question-prompt{font-weight:650}.question-form textarea{min-height:7rem}.question-form button{max-width:15rem}
.mission-block{border-top:1px solid var(--line);margin-top:1rem;padding-top:.8rem}.mission-block>h4{font-size:1.1rem;margin:.4rem 0 .75rem}.question-options{display:grid;grid-template-columns:auto 1fr;gap:.6rem .75rem;border:1px solid var(--line);border-radius:.7rem;padding:1rem}.question-options input{width:auto;margin:.15rem 0}.question-options legend{font-weight:650;padding:0 .35rem}.question-options label{font-weight:450}.tablewrap{overflow-x:auto}.tablewrap table{border-collapse:collapse;width:100%;font-size:.92rem}.tablewrap th,.tablewrap td{padding:.55rem;border-bottom:1px solid var(--line);text-align:left}.question-code{white-space:pre-wrap;background:#f2f3f8;padding:.75rem;border-radius:.55rem;overflow-wrap:anywhere}
textarea{font:inherit;padding:.85rem 1rem;border:1px solid #b9bfd1;border-radius:.65rem;width:100%}
.answer-feedback{font-weight:650;color:#254b3c}.answer-feedback:empty{display:none}
.answer-feedback{display:flex;align-items:center;gap:.6rem;margin:.75rem 0;padding:.55rem .85rem;border-radius:.7rem}
.answer-feedback.is-correct{background:#eafaf0;color:#14532d}.answer-feedback.is-incorrect{background:#fff3ea;color:#9a3412}.answer-feedback.is-open{background:#f3efff;color:#4c1d95}
.feedback-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.2rem;height:2.2rem;border-radius:50%;color:#fff;font-size:1.3rem;line-height:1;background:#7c5cd6}
.is-correct .feedback-mark{background:#17a34a}.is-incorrect .feedback-mark{background:#e9772f}
.question-form.is-correct textarea,.question-form.is-correct .question-options{border-color:#17a34a}.question-form.is-incorrect textarea,.question-form.is-incorrect .question-options{border-color:#e9772f}
.feedback-animate .feedback-mark{animation:learn-pop .45s ease-out}
.feedback-animate.is-incorrect .answer-feedback,.feedback-animate.is-incorrect textarea,.feedback-animate.is-incorrect .question-options{animation:learn-shake .4s ease-in-out}
@keyframes learn-pop{0%{transform:scale(.3)}70%{transform:scale(1.2)}100%{transform:scale(1)}}
@keyframes learn-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.clue-box:empty{display:none}.clue{background:#fff8dc;border-radius:.6rem;padding:.5rem .8rem;margin:.5rem 0}
.question-form .clue-button{display:block;width:auto;max-width:none;margin:.6rem 0;min-height:44px;background:#fff8dc;color:#5b4500;border:1px solid #e8d48a}
@media (prefers-reduced-motion:reduce){.feedback-animate .feedback-mark,.feedback-animate .answer-feedback,.feedback-animate textarea,.feedback-animate .question-options{animation:none}}.key-card strong{display:block;margin-top:.75rem}
.mission-progress{font-weight:650;color:#475569}.mission-progress.mission-complete{color:#254b3c}

/* Wider laptop/desktop layout. The signed-in workspace was previously trapped in the 560px sign-in card. */
.auth-intro{max-width:36rem}
@media (min-width:900px){
  .auth-wrap{max-width:1120px;width:100%;display:grid;grid-template-columns:minmax(16rem,1fr) minmax(24rem,28rem);gap:3rem 4rem;align-items:center;padding:3rem 2rem 4rem}
  .auth-card{max-width:none;margin:0;width:100%}
}
body.is-signed-in .auth-intro{display:none}
body.is-signed-in .auth-wrap{display:block;max-width:1280px;width:100%;margin:0 auto;padding:1.25rem 1.5rem 4rem}
body.is-signed-in .auth-card{max-width:none;width:100%;padding:1.5rem 1.75rem 2.5rem}
#password-form input,#password-form button,#logout-submit{min-height:44px}
.bhead{display:flex;gap:14px;align-items:center}
.bhead .art{flex:0 0 auto}
.bhead .art svg,.illo svg{display:block;max-width:100%;height:auto}
.illo{margin:12px 0}
.mission-block{background:#fff}
pre.question-code{white-space:pre-wrap;background:#f2f3f8;padding:.75rem;border-radius:.55rem;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}

/* Day tabs stick to the very top (the topbar is not sticky) on a solid card-coloured background,
   so scrolled lesson text never shows above the bar or through a faded edge. */
.daybar{position:sticky;top:0;z-index:5;background:var(--paper);display:flex;align-items:center;gap:8px;padding:8px 0 0;margin:0 0 1rem;border-bottom:1px solid var(--line);box-shadow:0 8px 10px -10px #29365b33}
body.is-signed-in .daybar{margin-left:0;margin-right:0;padding-left:.5rem;padding-right:.5rem}
#workspace-title,#activity-list,#day-panel,.activity-card,.mission-block{scroll-margin-top:7rem}
.days{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.day{flex:0 0 auto;scroll-snap-align:start;min-width:7.6rem;max-width:10.5rem;min-height:44px;border:2px solid var(--line);background:#fff;border-radius:14px;padding:10px 12px;text-align:left;cursor:pointer;font:inherit;color:inherit;width:auto;margin:0}
.day:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.day b{display:block;font-size:1rem}
.day .mins{font-size:.8em;color:var(--muted)}
.day.done{border-color:#b7e3c6}
.day.done b::after{content:" \2713";color:#254b3c;font-weight:700}
.day.current{border-color:var(--accent);background:#eef1ff;box-shadow:0 2px 8px #4f6ef733}
@media (max-width:520px){.day{min-width:6.6rem}}


/* Phase 1 look: a bright, roomy app in the spirit of apple.com and Khan Academy.
   Signed-in pages get a frosted header, a dark day hero with a progress ring, card questions,
   a folding Finished days panel, a week/month calendar and a sticky Submit day bar. */
:root{--app-bg:#f5f5f7;--app-ink:#1d1d1f;--app-sub:#6e6e73;--app-blue:#0071e3;--app-blue-dark:#0058b0;--app-green:#1f9d55;--app-orange:#e9772f;--app-card:#fff;--app-line:#e5e5ea;--hero-a:#0b1020;--hero-b:#1b2a5a;--hero-c:#3b2a7a}
body.is-signed-in{background:var(--app-bg);color:var(--app-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Inter,system-ui,sans-serif}
body.is-signed-in .topbar{background:#ffffffd9;-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);height:3.5rem}
body.is-signed-in .auth-card{background:transparent;border:0;box-shadow:none;padding:.5rem 0 3rem}
body.is-signed-in #signed-heading{display:none}
body.is-signed-in #role-copy,body.is-signed-in #auth-message{font-size:.85rem}
body.is-signed-in #auth-message{background:transparent;padding:0;color:var(--app-sub)}
body.is-signed-in .workspace{border-top:0;margin-top:.5rem;padding-top:0}
body.is-signed-in #workspace-title{font-size:clamp(1.75rem,3.5vw,2.5rem);letter-spacing:-.035em;margin:.25rem 0 1rem}
body.is-signed-in #logout-submit{max-width:12rem;border-radius:999px}
.learn-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;align-items:start}
.learn-main{min-width:0}
.side-panel{background:var(--app-card);border:1px solid var(--app-line);border-radius:20px;padding:1rem}
.panel-title{margin:.1rem 0 .6rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--app-sub)}
.panel-group{margin:.9rem 0 .35rem;font-size:.8rem;font-weight:700;color:var(--app-sub)}
.panel-sub{margin:.8rem 0 .2rem;font-weight:700}
.panel-note{font-size:.88rem;color:var(--app-sub);line-height:1.5}
.past-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.past-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.6rem;width:100%;margin:0;padding:.6rem .7rem;border-radius:12px;background:transparent;color:var(--app-ink);font-weight:500;text-align:left;min-height:44px}
.past-item:hover,.past-item.current{background:#eef4ff}
.past-item .past-when{font-size:.82rem;color:var(--app-sub);white-space:nowrap}
.past-item .past-action{font-size:.8rem;font-weight:700;color:var(--app-green)}
.past-item.is-catch-up .past-action{color:var(--app-blue)}
.panel-toggle{flex:0 0 auto;width:44px;height:44px;margin:0 0 6px;padding:0;border-radius:50%;background:#f0f0f5;color:var(--app-ink);font-size:1.1rem;line-height:1}
.panel-toggle:hover{background:#e4e4ec}
.panel-toggle[aria-expanded="true"]{background:var(--app-ink);color:#fff}
.daybar .days{flex:1 1 auto;min-width:0}
.day .when{display:block;font-size:.72em;color:var(--muted)}
.day.today{border-color:#9cc3f5}
.plan-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 1rem}
.chip-button{width:auto;margin:0;padding:.5rem 1rem;min-height:40px;border-radius:999px;background:#fff;color:var(--app-ink);border:1px solid var(--app-line);font-weight:600;font-size:.9rem}
.chip-button:hover{background:#f5f5f7}
.chip-button.on,.chip-button[aria-pressed="true"]{background:var(--app-blue);border-color:var(--app-blue);color:#fff}
.day-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1.25rem;margin:0 0 1rem;padding:clamp(1.25rem,3vw,2rem) clamp(1.25rem,3vw,2.25rem);border-radius:28px;color:#fff;background:linear-gradient(135deg,var(--hero-a),var(--hero-b) 60%,var(--hero-c));overflow:hidden}
.day-hero.is-done{background:linear-gradient(135deg,#06281a,#0f5132 60%,#1f7a4d)}
.hero-text{min-width:0}
.hero-eyebrow{margin:0;font-size:.75rem;letter-spacing:.09em;text-transform:uppercase;opacity:.75}
.hero-title{margin:.3rem 0 .35rem;font-size:clamp(2rem,5vw,3rem);line-height:1;letter-spacing:-.04em}
.hero-sub{margin:0 0 .7rem;opacity:.85;line-height:1.45}
.hero-pill{display:inline-block;padding:.25rem .7rem;border-radius:999px;background:#ffffff26;font-size:.78rem;font-weight:700}
.hero-ring{flex:0 0 auto;width:clamp(76px,10vw,112px);aspect-ratio:1;border-radius:50%;background:conic-gradient(#3ee08f calc(var(--p,0) * 1%),#ffffff26 0);display:grid;place-items:center}
.hero-ring b{width:76%;aspect-ratio:1;border-radius:50%;background:#16204a;display:grid;place-items:center;font-size:clamp(.95rem,2vw,1.35rem)}
.day-hero.is-done .hero-ring b{background:#0d3b26}
.review-banner{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:0 0 1rem;padding:.8rem 1rem;border-radius:16px;background:#eef4ff;color:#1d3a6e}
.review-banner p{margin:0;flex:1 1 18rem;line-height:1.5}
.only-fix .question-form.is-correct{display:none}
body.is-signed-in .activity-card{background:transparent;border:0;padding:0;margin:0}
body.is-signed-in .activity-card>h4{font-size:1.15rem;color:var(--app-sub);margin:.25rem 0 .5rem}
body.is-signed-in .mission-block{background:var(--app-card);border:1px solid var(--app-line);border-radius:22px;padding:1.25rem clamp(1rem,2.5vw,1.75rem);margin:0 0 1rem}
body.is-signed-in .mission-block>h4,body.is-signed-in .bhead h4{font-size:1.35rem;letter-spacing:-.02em}
body.is-signed-in .question-form{border:1px solid var(--app-line);border-radius:18px;padding:1rem 1.1rem;margin-top:1rem;background:#fcfcfd;transition:border-color .2s}
body.is-signed-in .question-form h5{margin:0 0 .25rem;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--app-blue)}
body.is-signed-in .question-form .question-prompt{font-size:1.05rem}
body.is-signed-in .question-form button[type=submit]{width:auto;max-width:none;border-radius:999px;padding:.7rem 1.4rem;background:var(--app-ink)}
body.is-signed-in .question-form button[type=submit]:hover{background:#000}
body.is-signed-in .question-form .clue-button{border-radius:999px}
body.is-signed-in .question-form textarea{border-radius:12px;border-color:#d2d2d7;background:#fff}
.submit-bar{position:sticky;bottom:12px;z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin:1.25rem 0;padding:.6rem .7rem .6rem 1.25rem;border-radius:28px;background:#1d1d1feb;color:#fff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 12px 30px #0000002e}
.submit-count{font-weight:600;font-size:.92rem}
.submit-track{flex:1 1 6rem;height:6px;border-radius:9px;background:#ffffff33;overflow:hidden}
.submit-track i{display:block;height:100%;width:0;border-radius:9px;background:#3ee08f;transition:width .3s}
.submit-day{width:auto;margin:0;padding:.7rem 1.4rem;border-radius:999px;background:var(--app-blue);min-height:44px}
.submit-day:hover{background:var(--app-blue-dark)}
.submit-summary{flex:1 0 100%;margin:0;font-size:.88rem;opacity:.9}
.submit-summary:empty{display:none}
.submit-bar.is-complete{background:#0f5132f0}
.calendar-panel .cal-head{display:grid;gap:.6rem}
.cal-seg{display:flex;background:#f0f0f5;border-radius:999px;padding:3px}
.cal-seg button{flex:1;width:auto;margin:0;padding:.4rem;min-height:36px;border-radius:999px;background:transparent;color:var(--app-ink);font-weight:600;font-size:.85rem}
.cal-seg button.on{background:#fff;box-shadow:0 1px 3px #0000001f}
.cal-nav{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.cal-title{margin:0;font-size:.95rem}
.cal-arrow{width:36px;height:36px;margin:0;padding:0;border-radius:50%;background:#f0f0f5;color:var(--app-ink);font-size:1.2rem}
.cal-week{list-style:none;margin:.75rem 0 0;padding:0;display:grid;gap:6px}
.cal-row{display:grid;grid-template-columns:2.6rem 1fr;gap:.6rem;align-items:start;padding:.4rem;border-radius:12px}
.cal-row.is-today{background:#eef4ff}
.cal-stamp{display:grid;text-align:center;line-height:1.1}
.cal-stamp span{font-size:.7rem;color:var(--app-sub);text-transform:uppercase}
.cal-stamp b{font-size:1.15rem}
.cal-entries{display:grid;gap:4px}
.cal-free{font-size:.8rem;color:var(--app-sub);padding:.35rem 0}
.cal-chip{display:grid;width:100%;margin:0;padding:.35rem .6rem;border-radius:10px;text-align:left;background:#f5f5f7;color:var(--app-ink);font-weight:600;font-size:.85rem;min-height:36px;border-left:4px solid #c7c7cc}
.cal-chip span{font-weight:400;font-size:.75rem;color:var(--app-sub)}
.cal-chip.is-done{border-left-color:var(--app-green);background:#eaf7ef}
.cal-chip.is-today{border-left-color:var(--app-blue);background:#e8f1fd}
.cal-chip.is-catch-up{border-left-color:var(--app-orange);background:#fff4ea}
.cal-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-top:.75rem}
.cal-dow{font-size:.7rem;text-align:center;color:var(--app-sub);padding:.2rem 0}
.cal-cell{min-height:3.1rem;padding:2px;border-radius:8px;background:#fafafa;display:grid;align-content:start;gap:2px}
.cal-cell.is-out{opacity:.35}
.cal-cell.is-weekend{background:transparent}
.cal-cell.is-today{outline:2px solid var(--app-blue)}
.cal-num{font-size:.7rem;color:var(--app-sub);padding:0 2px}
.cal-month .cal-chip{padding:1px 2px;min-height:0;font-size:.62rem;border-left-width:3px;border-radius:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cal-note{font-size:.78rem;color:var(--app-sub);margin:.75rem 0 0}
.panel-backdrop{display:none}
.panel-close{display:none}
@media (min-width:1200px){
  .learn-shell.past-open{grid-template-columns:15.5rem minmax(0,1fr)}
  .learn-shell.cal-open{grid-template-columns:minmax(0,1fr) 19rem}
  .learn-shell.past-open.cal-open{grid-template-columns:15.5rem minmax(0,1fr) 19rem}
  .learn-shell .past-panel{grid-column:1}
  .learn-shell:not(.past-open) .learn-main{grid-column:1}
  .learn-shell.past-open .learn-main{grid-column:2}
  .side-panel{position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow:auto}
  body.is-signed-in .auth-wrap{max-width:1600px}
}
@media (max-width:1199.98px){
  .side-panel{position:fixed;top:0;bottom:0;z-index:40;width:min(21rem,88vw);border-radius:0;overflow:auto;padding:1.25rem 1rem 2rem;box-shadow:0 0 40px #0003}
  .past-panel{left:0}
  .calendar-panel{right:0}
  .panel-backdrop{display:block;position:fixed;inset:0;z-index:35;width:auto;margin:0;padding:0;border-radius:0;background:#0000004d}
  .panel-backdrop[hidden]{display:none!important}
  .panel-backdrop:hover{background:#0000004d}
  .panel-close{display:block;width:auto;margin:0 0 .75rem auto;padding:.45rem .9rem;min-height:40px;border-radius:999px;background:#f0f0f5;color:var(--app-ink);font-size:.85rem}
}
@media (max-width:520px){
  body.is-signed-in .auth-wrap{padding:.75rem .6rem 3rem}
  .day-hero{border-radius:22px;align-items:flex-start}
  .submit-bar{border-radius:22px;padding:.6rem .7rem .6rem 1rem}
  .submit-bar{flex-wrap:wrap;gap:.5rem .75rem}
  .submit-track{display:none}
  .submit-count{flex:1 1 auto;font-size:.85rem}
  .submit-day{flex:0 0 auto;padding:.6rem 1.1rem}
}
@media (prefers-reduced-motion:reduce){.submit-track i,body.is-signed-in .question-form{transition:none}}
/* Phase 2: practice redo, Submit day record, parent progress */
.hero-pill.is-submitted{margin-left:.4rem;background:#34c75933}
body.is-signed-in .question-form .practice-button{display:inline-block;width:auto;max-width:none;margin:.5rem 0 0 .5rem;min-height:44px;border-radius:999px;background:#fff;color:var(--app-blue-dark);border:1px solid var(--app-line)}
.question-form.is-practising{outline:2px dashed var(--app-blue);outline-offset:3px}
.parent-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin:.8rem 0 0;padding:0}
.pp-stat{background:var(--app-card);border:1px solid var(--app-line);border-radius:14px;padding:.6rem .8rem;min-width:0}
.pp-label{display:block;font-size:.74rem;color:var(--app-sub);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.pp-value{display:block;font-size:1.05rem;color:var(--app-ink);overflow-wrap:anywhere}
.pp-note{grid-column:1/-1;margin:0;color:var(--app-sub);font-size:.85rem}
.parent-answer{margin:.2rem 0 1rem;padding:.6rem .8rem;border-radius:12px;border:1px solid var(--app-line);background:#f7f8fb}
.parent-answer.is-correct{border-color:#34c75966;background:#effaf2}
.parent-answer.is-incorrect{border-color:#ff950066;background:#fff6ea}
.parent-answer.is-empty{color:var(--app-sub)}
.pa-status{display:inline-block;font-weight:700;font-size:.85rem}
.pa-body{margin:.3rem 0;white-space:pre-wrap;overflow-wrap:anywhere}
.pa-meta{display:block;font-size:.8rem;color:var(--app-sub)}
@media (max-width:700px){.parent-progress{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Topic picker */
.topic-picker{background:var(--app-card);border:1px solid var(--app-line);border-radius:18px;padding:.8rem 1rem;margin:0 0 1rem}
.topic-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .8rem}
.topic-title{margin:0;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--app-sub)}
.topic-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.topic-note{margin:.5rem 0 0;color:var(--app-sub);font-size:.88rem}
.topic-list{list-style:none;margin:.7rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.5rem}
.topic-item{display:flex;align-items:center;gap:.7rem;width:100%;max-width:none;min-height:56px;text-align:left;background:#f7f8fb;color:var(--app-ink);border:1px solid var(--app-line);border-radius:14px;padding:.5rem .8rem}
.topic-item.current{border-color:var(--app-blue);background:#eef2ff}
.topic-day{flex:0 0 auto;font-size:.9rem}
.topic-text{display:flex;flex-direction:column;min-width:0;flex:1}
.topic-unit{font-weight:600;font-size:.92rem;overflow-wrap:anywhere}
.topic-sub{font-size:.8rem;color:var(--app-sub)}
.topic-status{flex:0 0 auto;font-size:.75rem;font-weight:700;color:var(--app-sub)}
.topic-status.is-done{color:#1f8a3b}.topic-status.is-today{color:var(--app-blue-dark)}.topic-status.is-catch-up{color:#b35c00}
