/* App-style refresh, shared with the original course. */
:root{
 --paper:#f3f6fb;--surface:#ffffff;--ink:#152b43;--muted:#566b80;--line:#dbe4ee;
 --night:#173c66;--accent:#2168b6;--coral:#9be5c2;--tint:#e7f4ef;--sky:#eaf1fb;--field:#f7f9fc;--shadow:0 8px 24px rgba(32,61,96,.065);
}
:root[data-theme="night"]{--paper:#101b2b;--surface:#1c2d40;--ink:#f2f7fc;--muted:#bdccd9;--line:#3c5068;--night:#315677;--accent:#99c9ff;--coral:#a7e7c8;--tint:#263f3c;--sky:#253b52;--field:#18273a;--shadow:none}
body,body h1,body h2,body h3,body .brand,body #main .hero h1,body .read{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.025em}
body h1{font-size:clamp(32px,5vw,48px);font-weight:750;margin:10px 0 16px}
body h2{font-size:clamp(22px,3vw,28px);font-weight:720}
body h3{font-size:19px;font-weight:700}
body header{padding:18px 0;gap:9px}
body .brand{font-size:24px;font-weight:800;letter-spacing:-.045em}
body .mark{background:#1c64c7;color:#fff;border-radius:12px;box-shadow:none}
body .headernote{font:550 13px system-ui!important;letter-spacing:0!important}
body nav{border-bottom:1px solid var(--line);margin-bottom:18px;padding:12px 0;gap:8px}
body nav a{border-radius:10px;white-space:nowrap;padding:10px 18px;font-size:14px}
body nav [aria-current=page]{background:var(--night);color:white}
body #main .hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:10px 30px;padding:clamp(24px,4.2vw,48px);min-height:0;background:linear-gradient(135deg,#173e6a,#26598b);border-radius:20px}
body #main .hero h1{font-size:clamp(34px,4vw,52px);font-style:normal;font-weight:800;line-height:1.08;max-width:20ch;margin:5px 0 12px}
body #main .hero small{font-size:13px;color:#bbdcfa;letter-spacing:.08em}
body #main .hero p{font-size:16px;color:#edf6ff;max-width:56ch}
body #main .hero .voice-player{grid-column:2;grid-row:1/6;width:100%;margin:0;align-self:center;justify-self:stretch}
body #main .hero .voice-player p{color:var(--ink)}
body #main .hero .voice-player .voice-credit,body #main .hero .voice-player .voice-status{color:var(--muted)}
body #main .hero .voice-player h3{font-size:19px}
body #main .hero .button{max-width:100%;width:fit-content}
body #main .hero .primary{background:#a3f1cc!important;color:#103c32!important}
.plus-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 12px}
.plus-section-title h2{margin:0}.plus-lead{color:var(--muted);margin:0 0 21px;font-size:16px}
.plus-overview{padding:clamp(20px,3vw,30px);margin:18px 0;border-radius:20px}
.plus-kicker{font-size:12px;font-weight:750;color:var(--accent);letter-spacing:.1em;margin-bottom:8px}
.plus-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}
.plus-metric{border:1px solid var(--line);border-radius:13px;background:var(--field);padding:14px 15px;display:flex;flex-direction:column;gap:5px}
.plus-metric strong{font-size:clamp(23px,3.6vw,35px);font-weight:760;line-height:1.1;color:var(--accent)}
.plus-metric span{font-size:13px;color:var(--muted)}
.plus-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.plus-goal{margin:9px 0 16px}
.plus-between{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.plus-between strong{font-size:14px}
.plus-inline{color:var(--accent);font-weight:650;text-decoration:none;font-size:14px}
.plus-goal progress{height:8px;display:block;margin-top:8px}
.plus-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}
.plus-tile{background:var(--surface);border:1px solid var(--line);padding:20px;border-radius:18px;text-decoration:none;display:flex;flex-direction:column;min-height:180px;box-shadow:var(--shadow);transition:transform .15s,border-color .15s}
.plus-tile:hover{transform:translateY(-2px);border-color:var(--accent)}.plus-tile-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}
.plus-icon{border-radius:12px;background:var(--sky);color:var(--accent);width:42px;height:42px;display:grid;place-items:center;font-size:23px}
.plus-chip{padding:5px 9px;font-size:11px;font-weight:750;letter-spacing:.04em;border-radius:20px;background:var(--sky);color:var(--accent);white-space:nowrap}
.plus-tile h3{margin:0 0 8px}.plus-tile p{color:var(--muted);font-size:14px;margin:0 0 16px;line-height:1.5}.plus-tile-action{margin-top:auto;color:var(--accent);font-weight:700;font-size:14px}
.plus-segments{display:flex;gap:8px;overflow:auto;padding-bottom:10px;margin-bottom:10px}.plus-segments button{white-space:nowrap;min-height:44px;border-radius:12px}.plus-segments button[aria-pressed=true]{background:var(--night);color:#fff}
.plus-video-panel video{max-width:700px;width:100%;display:block;background:#0c1420;border-radius:14px;aspect-ratio:16/9;margin:14px 0}
.plus-video-panel video::cue{background:rgba(10,23,35,.82);color:white;font-size:88%}
.plus-note{font-size:14px;color:var(--muted);line-height:1.55}.plus-phrase{font-size:clamp(25px,4vw,40px);font-weight:730;line-height:1.3}.plus-word{font-size:clamp(30px,5vw,48px);margin:30px 0 8px}
.plus-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.plus-options button{min-height:48px;text-align:left;padding:14px;border-radius:12px}.plus-options button.plus-correct{opacity:1;background:var(--tint);border-color:#39806a}
.plus-feedback:not(:empty){padding:13px 15px;background:var(--tint);border-radius:12px;color:var(--ink);margin:12px 0}
.plus-chat{display:flex;flex-direction:column;gap:12px;margin:20px 0}.plus-bubble{padding:13px 17px;border-radius:16px;max-width:85%;font-size:16px;line-height:1.5}.plus-bubble.partner{align-self:start;background:var(--sky);border-bottom-left-radius:4px}.plus-bubble.self{align-self:end;background:var(--night);color:#fff;border-bottom-right-radius:4px}
.plus-timer{font-size:24px;padding:8px 13px;background:var(--sky);border-radius:10px;color:var(--accent);font-variant-numeric:tabular-nums}
body #main section,.plus-video-panel{border-radius:18px}body button,body .button{font-weight:600;border-radius:10px;min-height:41px}body label{font-size:15px;font-weight:600}body input[type=text],body textarea{padding:12px;border-radius:10px}
body .voice-player{border-radius:16px}
@media(max-width:800px){.plus-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.plus-goals{grid-template-columns:1fr;gap:0}body #main .hero{grid-template-columns:minmax(0,1fr)}body #main .hero .voice-player{grid-column:1;grid-row:auto;margin-top:10px}}
@media(max-width:620px){body header{padding:12px 0;flex-wrap:nowrap}body .brand{font-size:21px}body #main h1{font-size:32px}body nav{position:fixed;bottom:0;margin-bottom:0;overflow-x:auto;justify-content:flex-start;padding:9px 8px max(9px,env(safe-area-inset-bottom));gap:3px;border-top:1px solid var(--line);background:var(--surface);width:100%}body nav a{font-size:13px;padding:9px 12px;flex:none}body main{padding-top:14px}body #main .hero{display:block;padding:23px 17px}body #main .hero h1{font-size:35px;max-width:none;padding-right:0}body #main .hero small{max-width:none}body #main .hero p{margin-top:10px}body #main .hero .voice-player{margin-top:20px}body #main .hero .button{margin-top:6px}.plus-overview{padding:16px}.plus-stats{gap:6px}.plus-metric{padding:11px 8px}.plus-metric span{font-size:11px}.plus-tiles{gap:9px}.plus-tile{padding:13px;min-height:170px}.plus-tile h3{font-size:16px}.plus-tile p{font-size:13px}.plus-tile .plus-chip{font-size:9px;padding:4px 6px}.plus-options{grid-template-columns:1fr}.plus-bubble{max-width:93%}.plus-section-title h2{font-size:22px}}
@media(max-width:350px){.plus-tiles{grid-template-columns:1fr}}
.plus-answer-row{padding:10px 0;border-top:1px solid var(--line)}.plus-answer-row p{margin:3px 0;font-size:14px}
