:root{--bg:#f7f4ee;--ink:#172033;--muted:#667085;--card:#fff;--line:#ddd7cc;--orange:#fff0df;--pink:#ffe8ef;--yellow:#fff6b8;--blue:#eaf2ff;--green:#e9f7ec;--nav:#0f172a;--purple:#7766c6;}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
header{background:linear-gradient(180deg,#0f172a,#182238);color:white;padding:18px 16px 14px;position:sticky;top:0;z-index:10;box-shadow:0 2px 12px #0003}
header .eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;opacity:.7;font-weight:800}
header h1{margin:3px 0 2px;font-size:22px} header p{margin:0;opacity:.85;font-size:14px}
main{max-width:880px;margin:auto;padding:14px 14px 110px}
nav{display:flex;gap:8px;overflow:auto;padding:4px 0 12px;position:sticky;top:93px;z-index:8;background:linear-gradient(var(--bg) 75%,transparent)}
nav a{white-space:nowrap;text-decoration:none;color:var(--ink);background:white;border:1px solid var(--line);padding:10px 12px;border-radius:999px;font-weight:800;font-size:14px;box-shadow:0 1px 4px #0001}
.hero{background:linear-gradient(135deg,#efeafe,#fff);border:1px solid #ddd4ff}
.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:16px;margin:12px 0;box-shadow:0 2px 10px #0000000b}
.card h2{font-size:24px;margin:0 0 9px} .card h3{font-size:18px;margin:2px 0 8px}
.term{background:var(--orange)} .story{background:var(--pink)} .remember{background:var(--yellow)} .connect{background:var(--blue)} .success{background:var(--green)}
.grid5{display:grid;grid-template-columns:repeat(5,1fr);gap:8px} .tile{padding:10px;border-radius:14px;background:white;border:1px solid #ddd;text-align:center;font-weight:800;font-size:13px}
@media(max-width:680px){.grid5{grid-template-columns:1fr 1fr} .tile:last-child{grid-column:1/-1}}
.map{display:grid;grid-template-columns:1fr;gap:8px} .maprow{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:start}
.num{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#1f2937;color:white;font-weight:900}
details{border:1px solid var(--line);border-radius:16px;padding:12px;margin:9px 0;background:white} summary{cursor:pointer;font-weight:900}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0} .tag{font-size:12px;font-weight:900;padding:5px 8px;border-radius:999px;background:#f1f3f6}
.source{margin-top:9px;font-size:12px;color:var(--muted)} .source strong{color:#475467}
img.sourceimg{width:100%;border-radius:14px;border:1px solid #ddd;margin-top:10px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px} @media(max-width:620px){.two{grid-template-columns:1fr}}
.lab{background:#171a22;color:white;border-radius:18px;padding:12px} .lab p{color:#d9dee8}
svg{width:100%;height:auto;touch-action:none} input[type=range]{width:100%;height:42px}
.stage{background:#282d38;border-radius:14px;padding:12px;min-height:132px}
.btn,button{border:0;border-radius:13px;padding:12px 14px;font-size:15px;font-weight:800;cursor:pointer}
.choice{display:block;width:100%;text-align:left;background:#f1f3f5;margin:8px 0} .good{background:#dff5e5!important} .bad{background:#ffe1e1!important}
.hidden{display:none} .reveal{background:#1f2937;color:white;width:100%;margin-top:8px}
.bigline{font-size:20px;font-weight:900}
.number-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px}
.number-answer{min-height:48px;text-align:center;background:#eef0f4;font-size:18px}
.number-answer.selected-good{background:#dff5e5!important}
.number-answer.selected-bad{background:#ffe1e1!important}
.graph-question{font-size:18px;font-weight:850;margin:14px 0 4px}
.graph-feedback{min-height:48px;margin-top:10px;padding:11px;border-radius:12px;background:#f5f6f8}
.graph-progress{font-size:13px;color:var(--muted);font-weight:800}
@media(max-width:420px){.number-grid{gap:6px}.number-answer{padding:11px 4px}}
footer{position:fixed;bottom:0;left:0;right:0;z-index:12;background:#0f172a;color:white;padding:9px 10px calc(9px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:7px}
footer a{color:white;text-decoration:none;background:#273449;padding:9px 11px;border-radius:11px;font-size:13px;font-weight:800}
.flash-shell{background:linear-gradient(135deg,#f3efff,#fff);border:1px solid #d8d0ff}
.flashcard{background:white;border:1px solid var(--line);border-radius:20px;padding:18px;min-height:230px;display:flex;flex-direction:column;justify-content:space-between}
.flash-q{font-size:21px;font-weight:900}.flash-a{margin-top:14px;padding:13px;border-radius:14px;background:#eef7ee}
.flash-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:10px}.flash-controls button{text-align:center;padding:11px 5px}
.miss{background:#ffe2e2}.almost{background:#fff2c8}.got{background:#def4e3}
.reviewlink{display:inline-block;text-decoration:none;background:#273449;color:white;padding:11px 13px;border-radius:12px;font-weight:800;margin-top:8px}
.slide-ref img{width:100%;border-radius:12px;border:1px solid #ddd;margin-top:8px}
.tracker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:12px;text-align:center}
.stat b{display:block;font-size:24px}.week-tabs{display:flex;gap:7px;overflow:auto;margin:8px 0}.week-tab{white-space:nowrap;background:#eef0f4}.week-tab.active{background:#273449;color:white}
.placeholder{border:2px dashed #c9c2b6;background:#fbfaf7}.cum-choice{display:block;width:100%;text-align:left;background:#f1f3f5;margin:8px 0}
@media(max-width:560px){.tracker-grid{grid-template-columns:1fr 1fr}.flash-controls{grid-template-columns:1fr}}
.deck-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.deck-toolbar button,.deck-toolbar select{border:1px solid var(--line);background:white;color:var(--ink);border-radius:12px;padding:10px 12px;font-weight:800;font-size:14px}
.flip-wrap{perspective:1200px;min-height:320px;margin:12px 0}.flip-card{position:relative;width:100%;min-height:320px;transform-style:preserve-3d;transition:transform .45s;cursor:pointer}.flip-card.flipped{transform:rotateY(180deg)}
.flip-face{position:absolute;inset:0;backface-visibility:hidden;background:white;border:2px solid #d8d0ff;border-radius:22px;padding:22px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 6px 20px #00000012}.flip-back{transform:rotateY(180deg);background:#f7fbf7}.flip-kicker{font-size:13px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.06em}.flip-main{font-size:28px;line-height:1.2;font-weight:950;margin:10px 0}.flip-hint{font-size:14px;color:var(--muted);margin-top:16px}.study-link{display:inline-block;text-decoration:none;background:#273449;color:white;padding:11px 13px;border-radius:12px;font-weight:850;margin-top:10px}.next-card{width:100%;margin-top:10px;background:#273449;color:white}
.term-deck{background:linear-gradient(135deg,#fff0df,#fff);border:1px solid #f1c89c}.memory-hook{background:#fff6b8;border-radius:12px;padding:10px;margin-top:10px}.apply-box{background:#ffe8ef;border-radius:14px;padding:12px;margin-top:12px}
.note-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}@media(max-width:560px){.note-gallery{grid-template-columns:1fr}}.note-thumb{width:100%;border-radius:14px;border:1px solid #d7d1c8;cursor:pointer}.note-modal{position:fixed;inset:0;background:#000d;z-index:100;display:none;align-items:center;justify-content:center;padding:18px}.note-modal.open{display:flex}.note-modal img{max-width:100%;max-height:90vh;border-radius:12px}.note-close{position:absolute;top:18px;right:18px;background:white;color:#111;border-radius:999px;width:44px;height:44px;font-size:22px}
.neuron-lab{background:linear-gradient(135deg,#eaf2ff,#fff);border:1px solid #bfd4ef}.neuron-label-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}@media(max-width:560px){.neuron-label-grid{grid-template-columns:1fr}}.neuron-choice{background:white;border:1px solid #ccd7e6;text-align:left}.hotspot{cursor:pointer}.hotspot circle{fill:#3f73b8}.hotspot text{fill:white;font-weight:900;text-anchor:middle;dominant-baseline:middle}.neuron-feedback{min-height:52px;padding:11px;border-radius:12px;background:white;margin-top:10px}
.ladder{display:grid;gap:10px}.ladder-level{border:1px solid var(--line);border-radius:16px;background:white;padding:14px}.ladder-level h3{margin:0 0 6px}.level-badge{display:inline-block;border-radius:999px;padding:5px 9px;background:#eef0f4;font-size:12px;font-weight:900}.ladder-options button{display:block;width:100%;text-align:left;background:#f1f3f5;margin:8px 0}.ladder-feedback{min-height:42px;padding:9px;border-radius:10px;background:#f8f9fb;margin-top:8px}
.graph-modebar{display:flex;gap:7px;overflow:auto;margin:10px 0}.graph-modebar button{white-space:nowrap;background:#eef0f4}.graph-modebar button.active{background:#273449;color:white}
.ps312-activity{margin:0}.ps312-activity-head h2{margin:0 0 6px}.ps312-activity-card{padding:10px 0}.ps312-activity-options{display:grid;gap:8px}.ps312-activity-btn,.ps312-mini,.fc-study button{border:0;border-radius:13px;padding:12px 14px;font-size:15px;font-weight:800;background:#f1f3f5;color:var(--ink)}.ps312-activity-btn{display:block;width:100%;text-align:left;margin:4px 0}.ps312-activity-feedback,.ps312-activity-stats{font-size:13px;color:var(--muted);margin-top:8px}.ps312-grade-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.ps312-sequence{display:grid;gap:8px}.ps312-sequence-row{display:grid;grid-template-columns:1fr 48px 48px;gap:6px;align-items:center;background:white;border:1px solid var(--line);border-radius:14px;padding:8px}.ps312-retrieval-answer{background:#fff6b8;border-radius:14px;padding:12px;margin:10px 0}.ps312-label-numbers,.ps312-step-tabs{display:flex;gap:7px;overflow:auto;margin:10px 0}.ps312-step-panel{background:white;border-radius:14px;padding:12px}.ps312-activity-figure{overflow:auto}.ps312-neuron,.ps312-prof-graph{display:block;width:100%;height:auto}.fc-study{background:transparent}.fc-study>header{position:static;background:transparent;color:var(--muted);box-shadow:none;padding:0;display:flex;justify-content:space-between}.fc-card{background:white;border:2px solid #d8d0ff;border-radius:22px;padding:22px;min-height:250px}.fc-rate{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.fc-rate button:nth-child(1){background:#ffe2e2}.fc-rate button:nth-child(2){background:#fff2c8}.fc-rate button:nth-child(3){background:#def4e3}