/* Smart Teacher: navy + gold, works in light and dark */
.stc,.tch-hero{--stn:#0f1b3d;--stn2:#16264f;--stg:#d9bd72;--stg2:#f0dca0}
.stc{display:block;text-decoration:none;color:#fff;margin:14px 0;padding:22px 18px;border-radius:26px;background:radial-gradient(120% 90% at 100% 0,#1d3470 0,transparent 55%),linear-gradient(160deg,var(--stn) 0,#0b1430 100%);border:1px solid rgba(217,189,114,.35);box-shadow:0 14px 34px rgba(8,16,40,.35);position:relative;overflow:hidden}
.stc .eb{display:flex;gap:8px;align-items:center;font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--stg)}
.stc .eb i{font-style:normal;border:1px solid var(--stg);border-radius:99px;padding:2px 8px;letter-spacing:.08em}
.stc h2{font:700 30px/1.1 var(--serif);margin:10px 0 6px;color:#fff}
.stc .tg{font:600 19px/1.3 var(--serif);color:var(--stg2);margin:0 0 8px}
.stc p{margin:0 0 12px;color:#cfd8ee;font-size:14.5px}
.stc .art{margin:6px 0 12px;border-radius:18px;background:linear-gradient(180deg,#1a2c5e,#101c42);padding:10px;display:flex;justify-content:center}
.stc .art svg{width:100%;max-width:340px;height:auto}
.tch-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.tch-chips span{display:flex;gap:8px;align-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px;font-size:13px;font-weight:700;color:#fff}
.tch-chips svg{width:20px;height:20px;flex:none;stroke:var(--stg);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tch-cta{display:block;text-align:center;background:linear-gradient(180deg,#f0dca0,#d9bd72)!important;color:#1a2142!important;border-radius:16px;padding:14px 12px;font-weight:800;font-size:17px;text-decoration:none;border:0;width:100%;cursor:pointer;font-family:inherit;transition:transform .15s,box-shadow .15s;box-shadow:0 6px 18px rgba(217,189,114,.25)}
.tch-cta small{display:block;font-weight:600;font-size:12px;opacity:.8;margin-top:2px}
.tch-cta:active{transform:scale(.98)}.tch-cta:disabled{opacity:.5}
.stc details{margin-top:12px;color:#cfd8ee;font-size:13.5px}.stc summary{cursor:pointer;font-weight:700;color:var(--stg2)}.stc ol{margin:8px 0 0;padding-left:20px}.stc li{margin:4px 0}
@keyframes stf{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.stc,.tch-fade{animation:stf .45s ease both}
@media(prefers-reduced-motion:reduce){.stc,.tch-fade{animation:none}}
@media(min-width:760px){.stc{padding:28px}.stc h2{font-size:36px}.stc .art{max-width:520px;margin-left:auto;margin-right:auto}}
/* teacher page */
.tch-wrap{max-width:860px;margin:0 auto;padding:14px 14px 90px}
.tch-hero{border-radius:24px;padding:20px;background:linear-gradient(160deg,var(--stn),#0b1430);color:#fff;border:1px solid rgba(217,189,114,.3);box-shadow:0 12px 30px rgba(8,16,40,.3)}
.tch-hero h1{font:700 26px/1.2 var(--serif);margin:0 0 4px;color:#fff}.tch-hero p{margin:0;color:#cfd8ee}
.tch-meter{display:flex;gap:6px;margin-top:12px;align-items:center}.tch-meter b{flex:1;height:8px;border-radius:9px;background:rgba(255,255,255,.15)}.tch-meter b.on{background:var(--stg)}
.tch-tabs{display:flex;gap:6px;margin:14px 0;position:sticky;top:0;z-index:5;background:var(--paper);padding:6px 0}
.tch-tabs button{flex:1;border:1.5px solid var(--line);background:var(--card);color:var(--ink);border-radius:14px;padding:10px 6px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.tch-tabs button.on{background:var(--stn,#0f1b3d);color:#fff;border-color:#d9bd72}
.tch-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;margin:12px 0;box-shadow:var(--shadow)}
.tch-card h3{margin:0 0 8px;font-size:17px}
.tch-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tch-lv{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.tch-lv button{border:1.5px solid var(--line);background:var(--card);color:var(--ink);border-radius:12px;padding:10px 6px;font:inherit;font-weight:700;cursor:pointer}
.tch-lv button.on{border-color:#d9bd72;background:#fbf3da;color:#1a2142}
.tch-note{font-size:16.5px;line-height:1.7}.tch-sec{border-left:4px solid transparent;padding:10px 12px;margin:10px 0;border-radius:12px;transition:background .25s,border-color .25s}
.tch-sec.now{border-color:#d9bd72;background:rgba(217,189,114,.14)}
.tch-sec h3{margin:0 0 6px;font:700 19px var(--serif)}
.tch-sec .rep{float:right;border:0;background:var(--soft);color:var(--ink);border-radius:99px;padding:4px 10px;font-size:12px;cursor:pointer}
.tch-bar{position:sticky;bottom:calc(70px + env(safe-area-inset-bottom));z-index:6;display:flex;gap:6px;flex-wrap:wrap;align-items:center;background:var(--stn,#0f1b3d);color:#fff;border:1px solid rgba(217,189,114,.4);border-radius:18px;padding:8px 66px 8px 10px;box-shadow:0 10px 26px rgba(0,0,0,.3)}
.tch-bar button,.tch-bar select{background:rgba(255,255,255,.1);color:#fff;border:0;border-radius:12px;padding:9px 12px;font:inherit;font-weight:700;cursor:pointer}
.tch-bar button.pri{background:linear-gradient(180deg,#f0dca0,#d9bd72);color:#1a2142}
.tch-q{padding:12px;border:1px solid var(--line);border-radius:14px;margin:10px 0;background:var(--card)}
.tch-q label{display:flex;gap:8px;padding:8px;border-radius:10px;cursor:pointer;align-items:flex-start}.tch-q label:hover{background:var(--soft)}
.tch-ok{border-color:#15803d;background:rgba(21,128,61,.08)}.tch-bad{border-color:#c0392b;background:rgba(192,57,43,.07)}
.tch-bub{padding:10px 12px;border-radius:14px;margin:8px 0;max-width:92%}.tch-bub.me{background:var(--soft);margin-left:auto}.tch-bub.t{background:rgba(217,189,114,.16);border:1px solid rgba(217,189,114,.4)}
.tch-kp{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tch-kp div{background:var(--soft);border-radius:14px;padding:12px}.tch-kp b{display:block;font-size:24px}
.tch-pb{height:10px;border-radius:9px;background:var(--soft);overflow:hidden;margin:4px 0 10px}.tch-pb i{display:block;height:100%;border-radius:9px}
.tch-lock{text-align:center;color:#fff}
.tch-ill{font-size:11px;border:1px solid #3a8f5c;color:#3a8f5c;border-radius:99px;padding:2px 8px;margin-left:6px;font-weight:700}
.tch-prep{text-align:center;padding:30px 10px}.tch-spin{width:42px;height:42px;border:4px solid var(--line);border-top-color:#d9bd72;border-radius:50%;margin:0 auto 12px;animation:sts 1s linear infinite}@keyframes sts{to{transform:rotate(360deg)}}
@media(min-width:900px){.tch-wrap{padding-top:24px}.tch-bar{bottom:16px}}
/* Home banner */
.hero-st{grid-column:1/-1;display:block;text-decoration:none;color:#fff;border-radius:22px;padding:16px;background:radial-gradient(110% 120% at 100% 0,#223d7c 0,rgba(34,61,124,0) 58%),linear-gradient(150deg,#0f1b3d,#0b1430);border:1px solid rgba(217,189,114,.45);box-shadow:0 10px 26px rgba(8,16,40,.28);position:relative;overflow:hidden;transition:transform .15s}
.hero-st:active{transform:scale(.985)}
.hero-st .hs-top{display:flex;gap:12px;align-items:center}
.hero-st .hs-ic{flex:none;width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(180deg,#f0dca0,#d9bd72);box-shadow:0 4px 14px rgba(217,189,114,.3)}
.hero-st .hs-ic svg{width:30px;height:30px;stroke:#1a2142;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hero-st b.hs-t{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font:700 21px/1.1 var(--serif,inherit);color:#fff}
.hero-st .hs-pill{font:800 10px/1 system-ui,sans-serif;letter-spacing:.08em;color:#f0dca0;border:1px solid #d9bd72;border-radius:99px;padding:3px 7px}
.hero-st .hs-d{margin:2px 0 0;font-size:13px;color:#cfd8ee;line-height:1.4}
.hero-st .hs-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0 10px}
.hero-st .hs-steps span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:8px 4px;text-align:center;font-size:12px;font-weight:700;line-height:1.25;color:#fff}
.hero-st .hs-steps i{display:block;font-style:normal;color:#f0dca0;font-size:11px;margin-bottom:2px}
.hero-st .hs-go{display:flex;justify-content:space-between;align-items:center;gap:8px;background:linear-gradient(180deg,#f0dca0,#d9bd72);color:#1a2142;border-radius:14px;padding:11px 14px;font-weight:800;font-size:14.5px}
.hero-st .hs-go small{font-weight:600;opacity:.8;font-size:12px}
@media(min-width:760px){.hero-st{padding:20px;display:grid;grid-template-columns:1.3fr 1fr;gap:14px 24px;align-items:center}.hero-st .hs-steps{margin:0}.hero-st .hs-go{grid-column:1/-1}}
@media(prefers-color-scheme:dark){.hero-st{box-shadow:0 0 0 1px rgba(217,189,114,.15),0 10px 26px rgba(0,0,0,.5)}}
:root[data-theme=dark] .hero-st{box-shadow:0 0 0 1px rgba(217,189,114,.15),0 10px 26px rgba(0,0,0,.5)}

/* mode views, visuals, state label */
.tch-mode{display:inline-block;font:800 11px/1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#1a2142;background:linear-gradient(180deg,#f0dca0,#d9bd72);border-radius:99px;padding:4px 10px}
.tch-src{font-size:12.5px;margin:8px 0 0;color:var(--muted,#667)}.tch-src.ok{color:#15803d;font-weight:700}
.tch-adult,.tch-parent{border:1px dashed #d9bd72;border-radius:12px;padding:8px 10px;background:rgba(217,189,114,.12);font-size:13.5px;margin-top:8px}
.tch-emo{font-size:34px;line-height:1;margin:0 0 6px}.tch-emo.lg{font-size:76px;text-align:center;margin:4px 0 10px}
.tch-fig{margin:10px 0;text-align:center}.tch-fig img{max-width:100%;width:420px;height:auto;border-radius:14px;background:#fff;border:1px solid var(--line)}.tch-fig figcaption{font-size:12.5px;color:var(--muted,#667);margin-top:4px}
.tch-chant{margin:10px 0;padding:10px 12px;border-radius:14px;background:rgba(58,143,92,.12);border:1px solid rgba(58,143,92,.35)}.tch-chant p{margin:4px 0 0;font-weight:700;font-size:1.05em;white-space:pre-line}
.tch-chk{margin:8px 0;border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:var(--card)}.tch-chk summary{cursor:pointer;font-weight:700}
.tch-st{flex:1 0 100%;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#f0dca0}.tch-st[data-s=teaching]::before{content:"● ";color:#6ee7a0}.tch-st[data-s=paused]::before{content:"❚❚ "}
.tch-m-pre .tch-sec,.tch-m-pri .tch-sec{text-align:center;border:2px solid rgba(217,189,114,.45);border-radius:22px;padding:16px 14px;margin:14px 0;background:var(--card)}
.tch-m-pre .tch-sec.now,.tch-m-pri .tch-sec.now{background:rgba(217,189,114,.2);border-color:#d9bd72}
.tch-m-pre .tch-sec h3{font-size:26px}.tch-m-pre .tch-sec p{font-size:21px;line-height:1.55}.tch-m-pri .tch-sec p{font-size:18px}
.tch-m-pre .tch-chk,.tch-m-pri .tch-chk{text-align:left}
.tch-m-ss .tch-sec{border-left-color:#3a6fd9}.tch-m-uni .tch-note{font-size:16px}.tch-m-uni .tch-sec{border-left-color:#7a8599;background:var(--soft)}
.tch-pq .tch-q label,.tch-pq label{font-size:20px;padding:12px;border:2px solid var(--line);border-radius:14px;margin:8px 0}
.tch-q .rep{float:right;border:0;background:var(--soft);color:var(--ink);border-radius:99px;padding:4px 10px;font-size:12px;cursor:pointer}
@media(prefers-reduced-motion:reduce){.tch-sec{transition:none}}
.tch-anim .tch-svg svg{width:100%;max-width:440px;height:auto;display:block;margin:0 auto;border-radius:14px;background:#fff;border:1px solid var(--line)}
.tch-cap{text-align:center;font-weight:700;margin:6px 0;min-height:1.4em}
/* v178 3D molecule + sources */
.mol-fig{margin:12px 0;border:1px solid var(--line);border-radius:18px;background:var(--card);overflow:hidden}
.mol-cv{display:block;width:100%;height:auto;aspect-ratio:640/420;touch-action:none;cursor:grab;background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--teal) 10%,var(--card)),var(--card))}.mol-cv:active{cursor:grabbing}.mol-cv:focus-visible{outline:3px solid var(--teal);outline-offset:-3px}
.mol-bar{display:flex;gap:8px;align-items:center;padding:8px 12px;flex-wrap:wrap}.mol-ttl{flex:1;min-width:140px}.mol-fig figcaption{padding:0 12px 12px}
.tch-sources ul{margin:6px 0 8px;padding-left:18px}.tch-sources a{color:var(--teal2);font-weight:700}
