/* Lumen — spectral lab instrument. Everything is scoped under .ook-root so the Obsidian UI is untouched. */
.ook-root{
 --oq-bg:#080a0e;--oq-bg2:#0c1016;--oq-panel:#10151c;--oq-panel2:#151c25;--oq-panel3:#1b2430;
 --oq-line:#1f2832;--oq-line2:#2c3846;--oq-text:#e9eef4;--oq-soft:#bcc6d2;--oq-muted:#7f8c9c;--oq-faint:#56616f;
 --oq-white:#f5f8fc;--oq-cyan:#62d4ff;--oq-ok:#5fe3a1;--oq-bad:#ff6f6f;--oq-gold:#ffc24f;
 --oq-spectrum:linear-gradient(90deg,#9a86ff,#4fb0ff 25%,#3ddcc4 50%,#ffc24f 75%,#ff7f6a);
 --oq-sans:"Inter","Manrope","Segoe UI",Roboto,"Noto Sans",system-ui,-apple-system,sans-serif;
 --oq-mono:"JetBrains Mono","IBM Plex Mono","Iosevka","Cascadia Mono","SF Mono",ui-monospace,"Roboto Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;
 --oq-radius:14px;--oq-pad:40px;--oq-ease:cubic-bezier(.2,.7,.2,1);
 background:var(--oq-bg);color:var(--oq-text);font:15px/1.6 var(--oq-sans);min-height:100%;color-scheme:dark;overflow:auto;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-feature-settings:"cv11","ss01"
}
/* Website: let the document scroll so the sticky tab bar and the address bar behave natively. */
body>#app.ook-root{overflow:visible;min-height:100vh;min-height:100dvh}
.ook-root *,.ook-root *::before,.ook-root *::after{box-sizing:border-box}
.ook-root button,.ook-root input,.ook-root select{font:inherit;letter-spacing:inherit}
.ook-root button{cursor:pointer;color:inherit;border:0;background:none;box-shadow:none;height:auto;padding:0;margin:0;border-radius:0;font-weight:inherit;text-align:inherit}
.ook-root button:disabled{cursor:default;opacity:.42}
.ook-root button:focus-visible,.ook-root input:focus-visible,.ook-root select:focus-visible,.ook-root summary:focus-visible,.ook-root label:focus-within{outline:2px solid var(--oq-cyan);outline-offset:3px;box-shadow:none}
.ook-root h1,.ook-root h2,.ook-root h3,.ook-root p{color:inherit;font-family:var(--oq-sans)}
.ook-root h1{font-size:clamp(34px,4.4vw,60px);line-height:1.04;font-weight:650;letter-spacing:-.045em;margin:16px 0 14px}
.ook-root h1 em{font-style:normal;background:var(--oq-spectrum);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.06em}
.ook-root h2{font-size:clamp(22px,2.2vw,28px);letter-spacing:-.03em;font-weight:600;line-height:1.2;margin:0}
.ook-root h3{font-weight:600;letter-spacing:-.01em}
.ook-root p{color:var(--oq-muted);line-height:1.7}
.ook-root svg{display:block}

/* ── Shell ─────────────────────────────────────────── */
.ook-root .oq-shell{container:ook/inline-size;position:relative;display:flex;flex-direction:column;min-height:100%;width:100%;background:radial-gradient(1100px 520px at 78% -8%,rgba(98,212,255,.07),transparent 65%),radial-gradient(800px 480px at -10% 30%,rgba(154,134,255,.05),transparent 60%),linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px) 0 0/100% 32px,linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px) 0 0/32px 100%}
.ook-root .oq-shell.oq-view-quiz{background:radial-gradient(900px 360px at 50% -12%,color-mix(in srgb,var(--oq-cyan) 5%,transparent),transparent 70%)}
body>#app.ook-root>.oq-shell{min-height:100vh;min-height:100dvh}
.ook-root .oq-header,.ook-root .oq-main,.ook-root .oq-footer{width:100%;max-width:calc(1240px + 2*var(--oq-pad));margin-inline:auto;padding-inline:var(--oq-pad)}
.ook-root .oq-main{flex:1 0 auto}
.ook-root .oq-header{display:flex;align-items:center;gap:20px;height:66px;padding-right:calc(var(--oq-pad) + 440px)}
.ook-root .oq-brand{display:flex;gap:12px;align-items:center;flex-shrink:0}
.ook-root .oq-logo{width:38px;height:38px;color:var(--oq-white);display:grid;place-items:center;border:1px solid var(--oq-line2);border-radius:11px;background:linear-gradient(160deg,var(--oq-panel3),var(--oq-bg2));box-shadow:0 0 24px rgba(98,212,255,.08)}
.ook-root .oq-logo svg{width:26px;height:26px;fill:none}
.ook-root .oq-wordmark{font:650 19px/1 var(--oq-sans);letter-spacing:-.02em}
.ook-root .oq-wordmark small{display:block;margin-top:5px;font:500 9.5px/1 var(--oq-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--oq-muted)}
.ook-root .oq-status{margin-left:auto;font:500 10px var(--oq-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--oq-muted);white-space:nowrap;display:flex;align-items:center;gap:8px}
.ook-root .oq-status i,.ook-root .oq-dot{width:7px;height:7px;border-radius:50%;background:var(--oq-ok);box-shadow:0 0 0 3px rgba(95,227,161,.14),0 0 10px var(--oq-ok);display:inline-block;flex-shrink:0}
.ook-root .oq-status.is-offline{color:var(--oq-gold)}
.ook-root .oq-status.is-offline i{background:var(--oq-gold);box-shadow:0 0 0 3px rgba(255,194,79,.15)}

/* Nav: floating segmented control on wide screens, thumb-zone tab bar on phones. */
.ook-root .oq-nav{position:absolute;top:11px;right:max(var(--oq-pad),calc((100% - 1240px)/2));display:flex;gap:2px;padding:4px;border:1px solid var(--oq-line);border-radius:999px;background:rgba(16,21,28,.78);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:20}
.ook-root .oq-nav :is(button,a){display:flex;align-items:center;gap:8px;padding:8px 14px 8px 11px;border-radius:999px;color:var(--oq-muted);font-size:13px;font-weight:500;transition:color .2s,background .2s}
.ook-root .oq-nav svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.ook-root .oq-nav :is(button,a).is-active{background:var(--oq-panel3);color:var(--oq-white);box-shadow:inset 0 0 0 1px var(--oq-line2)}
.ook-root .oq-nav b{font:600 10px/1 var(--oq-mono);background:var(--oq-bad);color:#1d0b0b;padding:3px 6px;border-radius:999px}
.ook-root .oq-view-quiz .oq-status{display:none}

/* ── Shared atoms ─────────────────────────────────── */
.ook-root .oq-eyebrow{font:500 10.5px/1.5 var(--oq-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--oq-muted)}
.ook-root .oq-caption{font-size:12px;color:var(--oq-muted);max-width:330px;text-align:right;line-height:1.5}
.ook-root .oq-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}
.ook-root .oq-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 20px;border:1px solid var(--oq-line2);border-radius:12px;background:var(--oq-panel);color:var(--oq-text);font-size:14px;font-weight:550;line-height:1.2;transition:background .2s,border-color .2s,transform .2s var(--oq-ease),box-shadow .2s}
.ook-root .oq-primary{background:var(--oq-white);color:#0a0d12;border-color:var(--oq-white);font-weight:650;box-shadow:0 0 0 0 rgba(255,255,255,0),0 8px 30px -10px rgba(190,225,255,.55)}
.ook-root .oq-primary::after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:2px;border-radius:2px;background:var(--oq-spectrum);opacity:.9}
.ook-root .oq-primary:disabled{background:var(--oq-panel2);color:var(--oq-muted);border-color:var(--oq-line2);box-shadow:none;opacity:1}
.ook-root .oq-primary:disabled::after{opacity:0}
.ook-root .oq-btn-meta{font:600 11px/1 var(--oq-mono);padding:4px 7px;border-radius:999px;background:var(--oq-panel3);color:var(--oq-soft)}
.ook-root .oq-import{cursor:pointer}
.ook-root .oq-link{font-size:13px;color:var(--oq-muted);text-decoration:underline;text-underline-offset:4px;padding:10px 0}
.ook-root .oq-note{border:1px solid rgba(255,194,79,.22);background:rgba(255,194,79,.05);padding:16px 20px;color:var(--oq-soft);font-size:13px;line-height:1.65;border-radius:var(--oq-radius)}
.ook-root .oq-note strong{color:var(--oq-gold);font-weight:600}
.ook-root .oq-empty{padding:26px;border:1px dashed var(--oq-line2);border-radius:var(--oq-radius);font-size:14px;color:var(--oq-muted);margin:0}
.ook-root .ok{color:var(--oq-ok)}.ook-root .bad{color:var(--oq-bad)}
@media (hover:hover){
 .ook-root .oq-btn:hover:not(:disabled){border-color:#3c4b5c;background:var(--oq-panel2);transform:translateY(-1px)}
 .ook-root .oq-primary:hover:not(:disabled){background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.08),0 12px 36px -10px rgba(190,225,255,.7)}
 .ook-root .oq-nav :is(button,a):hover:not(.is-active){color:var(--oq-text);background:rgba(255,255,255,.04)}
 .ook-root .oq-link:hover{color:var(--oq-text)}
}

/* ── Home ─────────────────────────────────────────── */
.ook-root .oq-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:center;padding:22px 0 20px}
.ook-root .oq-hero p{max-width:520px;margin:0;font-size:15.5px;color:var(--oq-soft)}
.ook-root .oq-kicker{display:inline-flex;align-items:center;gap:10px;padding:7px 14px 7px 11px;border:1px solid var(--oq-line2);border-radius:999px;background:rgba(16,21,28,.7);font:500 11px/1 var(--oq-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--oq-soft)}
.ook-root .oq-optic{margin:0;position:relative}
.ook-root .oq-optic svg{width:100%;max-width:470px;max-height:340px;margin-left:auto;fill:none;overflow:visible}
.ook-root .oq-optic text{font:500 10px var(--oq-mono);letter-spacing:.08em;stroke:none}
.ook-root .oq-optic .oq-optic-formula{fill:var(--oq-faint);font-size:12px;letter-spacing:.04em}
.ook-root .oq-optic-grid path{stroke:rgba(255,255,255,.035)}
.ook-root .oq-optic-photon{stroke-dasharray:6 180;animation:oq-photon 3.2s linear infinite;filter:drop-shadow(0 0 4px #fff)}
.ook-root .oq-optic-ray{stroke-dasharray:420;stroke-dashoffset:420;animation:oq-ray 1.2s var(--oq-ease) forwards;animation-delay:calc(.25s + var(--d))}
.ook-root .oq-optic figcaption{display:none;position:absolute;left:0;bottom:6px;font:500 10px var(--oq-mono);letter-spacing:.2em;text-transform:uppercase;color:var(--oq-faint)}
@keyframes oq-photon{from{stroke-dashoffset:186}to{stroke-dashoffset:0}}
@keyframes oq-ray{to{stroke-dashoffset:0}}

.ook-root .oq-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--oq-line);border-radius:var(--oq-radius);background:rgba(16,21,28,.72);overflow:hidden;margin-bottom:40px}
.ook-root .oq-stats>div{position:relative;padding:14px 20px 16px;border-left:1px solid var(--oq-line);display:flex;flex-direction:column;gap:4px;min-width:0}
.ook-root .oq-stats>div:first-child{border-left:0}
.ook-root .oq-stats span{font:500 10.5px var(--oq-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--oq-muted)}
.ook-root .oq-stats strong{font:500 clamp(26px,2.6vw,34px)/1.1 var(--oq-mono);letter-spacing:-.04em;color:var(--oq-white)}
.ook-root .oq-stats sup{font-size:.45em;color:var(--oq-muted);vertical-align:.9em;margin-left:2px;letter-spacing:0}
.ook-root .oq-stats small{font-size:12px;color:var(--oq-muted)}
.ook-root .oq-stats .is-alert strong{color:var(--oq-bad)}
.ook-root .oq-meter{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--oq-line)}
.ook-root .oq-meter b{display:block;height:100%;width:calc(var(--p)*1%);background:var(--oq-spectrum);background-size:calc(10000%/max(var(--p),1)) 100%;transition:width .6s var(--oq-ease)}

.ook-root .oq-block{margin-bottom:40px}
.ook-root .oq-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 16px}
.ook-root .oq-section-head h2{margin-top:8px}
.ook-root .oq-topics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.ook-root .oq-topic{position:relative;display:flex;flex-direction:column;gap:12px;min-height:196px;padding:18px 16px 16px;border:1px solid var(--oq-line);border-radius:var(--oq-radius);background:linear-gradient(180deg,color-mix(in srgb,var(--topic) 9%,transparent),transparent 55%),var(--oq-panel);text-align:left;overflow:hidden;transition:transform .25s var(--oq-ease),border-color .25s,box-shadow .25s;animation:oq-rise .5s var(--oq-ease) both;animation-delay:calc(var(--i)*55ms)}
.ook-root .oq-topic-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.ook-root .oq-topic-index{font:500 34px/1 var(--oq-mono);letter-spacing:-.06em;color:var(--topic)}
.ook-root .oq-topic .oq-eyebrow{font-size:9px;letter-spacing:.1em;text-align:right;color:color-mix(in srgb,var(--topic) 70%,var(--oq-muted))}
.ook-root .oq-topic h3{font-size:18px;line-height:1.25;margin:0;flex:1}
.ook-root .oq-ticks{display:flex;gap:3px;height:18px;align-items:stretch}
.ook-root .oq-ticks i{flex:1;border-radius:2px;background:var(--oq-panel3);min-width:2px}
.ook-root .oq-ticks i.ok{background:var(--oq-ok);box-shadow:0 0 6px rgba(95,227,161,.35)}
.ook-root .oq-ticks i.bad{background:var(--oq-bad)}
.ook-root .oq-topic-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--oq-muted);font-size:12px;line-height:1.35}
.ook-root .oq-topic-foot b{font:600 13px var(--oq-mono);color:var(--oq-text)}
.ook-root .oq-topic-foot em{display:block;font-style:normal;color:var(--oq-bad)}
.ook-root .oq-go{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:50%;border:1px solid var(--oq-line2);color:var(--oq-soft);font-size:15px;transition:background .2s,color .2s,transform .25s var(--oq-ease),border-color .2s}
.ook-root .oq-topic .oq-go{color:var(--topic)}
@keyframes oq-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.ook-root .oq-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ook-root .oq-modes button{display:flex;gap:18px;align-items:center;padding:18px 20px;border:1px solid var(--oq-line);border-radius:var(--oq-radius);background:var(--oq-panel);text-align:left;transition:transform .25s var(--oq-ease),border-color .25s,background .25s}
.ook-root .oq-icon{display:grid;place-items:center;width:54px;height:54px;flex-shrink:0;border-radius:14px;font-size:26px;color:var(--mode);background:color-mix(in srgb,var(--mode) 12%,transparent);border:1px solid color-mix(in srgb,var(--mode) 35%,transparent)}
.ook-root .oq-mode-body{flex:1;min-width:0}
.ook-root .oq-modes h3{font-size:18px;margin:0}
.ook-root .oq-modes p{font-size:13.5px;margin:4px 0 10px;line-height:1.55}
.ook-root .oq-tags{display:flex;flex-wrap:wrap;gap:6px}
.ook-root .oq-tags i{font:500 10.5px/1 var(--oq-mono);font-style:normal;letter-spacing:.04em;padding:5px 8px;border-radius:6px;background:var(--oq-panel3);color:var(--oq-soft)}
@media (hover:hover){
 .ook-root .oq-topic:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--topic) 45%,var(--oq-line));box-shadow:0 18px 40px -20px color-mix(in srgb,var(--topic) 60%,transparent)}
 .ook-root .oq-topic:hover .oq-go{background:var(--topic);color:#0a0d12;border-color:var(--topic);transform:translateX(2px)}
 .ook-root .oq-modes button:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--mode) 40%,var(--oq-line));background:var(--oq-panel2)}
 .ook-root .oq-modes button:hover .oq-go{background:var(--mode);color:#0a0d12;border-color:var(--mode);transform:translateX(2px)}
}

/* ── Footer & toast ───────────────────────────────── */
.ook-root .oq-footer{margin-top:40px;padding-top:18px;padding-bottom:22px;background:linear-gradient(var(--oq-line),var(--oq-line)) 50% 0/calc(100% - 2*var(--oq-pad)) 1px no-repeat;display:flex;justify-content:space-between;gap:15px;color:var(--oq-faint);font:500 10px var(--oq-mono);letter-spacing:.08em;text-transform:uppercase}
.ook-root .oq-toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:100;max-width:min(92%,480px);padding:14px 20px;border:1px solid var(--oq-line2);border-radius:12px;background:rgba(21,28,37,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:var(--oq-text);font-size:14px;box-shadow:0 20px 50px -10px #000;animation:oq-toast .3s var(--oq-ease)}
@keyframes oq-toast{from{opacity:0;transform:translate(-50%,10px)}}
.ook-root .oq-plugin-message{padding:40px;font-size:16px}

/* ── Quiz: focus mode ─────────────────────────────── */
/* While answering, only the question, its answers and one action remain. */
.ook-root .oq-view-quiz .oq-header,.ook-root .oq-view-quiz .oq-nav,.ook-root .oq-view-quiz .oq-footer{display:none}
.ook-root .oq-view-quiz .oq-main{padding-bottom:28px}
.ook-root .oq-quiz-top,.ook-root .oq-view-quiz .oq-progress,.ook-root .oq-question{max-width:1120px;margin-inline:auto}
.ook-root .oq-quiz-top{display:flex;gap:14px;align-items:center;padding:18px 0 12px}
.ook-root .oq-back{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 12px 0 8px;margin-left:-8px;border-radius:999px;font-size:13px;color:var(--oq-muted);transition:background .2s,color .2s}
.ook-root .oq-chip{display:inline-flex;align-items:center;gap:8px;min-width:0;font-size:13px;color:var(--oq-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ook-root .oq-chip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--topic);box-shadow:0 0 10px var(--topic);flex-shrink:0}
.ook-root .oq-clock{margin-left:auto;font:500 11px var(--oq-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--oq-faint);white-space:nowrap}
.ook-root .oq-clock.is-exam{font-size:15px;letter-spacing:.02em;color:var(--oq-white);padding:6px 12px;border-radius:999px;border:1px solid var(--oq-line2);font-variant-numeric:tabular-nums}
.ook-root .oq-clock.is-low{color:var(--oq-gold);border-color:rgba(255,194,79,.5);animation:oq-pulse 1.6s ease-in-out infinite}
@keyframes oq-pulse{50%{box-shadow:0 0 0 5px rgba(255,194,79,.12)}}
.ook-root .oq-progress{display:flex;gap:3px;height:4px}
.ook-root .oq-progress i{flex:1;border-radius:2px;background:var(--oq-line);transition:background .3s}
.ook-root .oq-progress i.done{background:#6f7d90}
.ook-root .oq-progress i.ok{background:var(--oq-ok)}
.ook-root .oq-progress i.bad{background:var(--oq-bad)}
.ook-root .oq-progress i.now{background:var(--oq-white);box-shadow:0 0 8px rgba(255,255,255,.5)}
.ook-root .oq-progress i.now.ok{background:var(--oq-ok);box-shadow:0 0 8px rgba(95,227,161,.6)}
.ook-root .oq-progress i.now.bad{background:var(--oq-bad);box-shadow:0 0 8px rgba(255,111,111,.6)}

/* Two columns: the explanation panel is reserved up front, so revealing it never moves the question or the button. */
.ook-root .oq-question{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:44px;align-items:start;padding-top:30px}
.ook-root .oq-q-main{min-width:0}
.ook-root .oq-question-meta{display:flex;align-items:center;gap:12px;min-height:40px}
.ook-root .oq-question-no{font:500 13px/1 var(--oq-mono);color:var(--oq-soft)}
.ook-root .oq-question-no span{color:var(--oq-faint)}
.ook-root .oq-question-meta .oq-eyebrow{font-size:10px;color:var(--oq-faint)}
.ook-root .oq-mark{margin-left:auto;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:20px;color:var(--oq-faint);transition:color .2s,background .2s,transform .2s var(--oq-ease)}
.ook-root .oq-mark.is-marked{color:var(--oq-gold);background:rgba(255,194,79,.1)}
.ook-root .oq-question-title{font-size:clamp(22px,2.3vw,30px);font-weight:600;letter-spacing:-.025em;line-height:1.3;outline:0;margin:12px 0 24px;color:var(--oq-white);text-wrap:pretty}
.ook-root .oq-warning{font-size:13px;border:1px solid rgba(255,194,79,.22);color:#ffd88a;padding:9px 14px;margin:-8px 0 22px;background:rgba(255,194,79,.05);border-radius:10px}
.ook-root .oq-options{display:flex;flex-direction:column;gap:8px}
.ook-root .oq-option{display:flex;gap:14px;align-items:center;width:100%;min-height:58px;padding:12px 16px 12px 12px;border:1px solid var(--oq-line);border-radius:14px;background:rgba(16,21,28,.6);text-align:left;font-size:15.5px;line-height:1.45;opacity:1;transition:border-color .18s,background .18s,box-shadow .18s,opacity .25s,transform .12s var(--oq-ease)}
.ook-root .oq-option:active:not(:disabled){transform:scale(.985)}
.ook-root .oq-option>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.ook-root .oq-letter{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;font:600 13px var(--oq-mono);border:1px solid var(--oq-line2);border-bottom-width:2px;border-radius:8px;background:var(--oq-panel2);color:var(--oq-soft);transition:background .18s,border-color .18s,color .18s}
.ook-root .oq-option-check{width:24px;flex-shrink:0;text-align:center;font-size:19px;font-weight:700}
.ook-root .oq-option.is-selected{border-color:var(--oq-cyan);background:rgba(98,212,255,.07);box-shadow:0 0 0 3px rgba(98,212,255,.1)}
.ook-root .oq-option.is-selected .oq-letter{background:var(--oq-cyan);border-color:var(--oq-cyan);color:#06202b;animation:oq-pop .25s var(--oq-ease)}
.ook-root .oq-option:disabled{opacity:.42}
.ook-root .oq-option.is-correct,.ook-root .oq-option:disabled.is-correct{opacity:1;border-color:var(--oq-ok);background:rgba(95,227,161,.08);color:#d4f8e5;box-shadow:0 0 0 3px rgba(95,227,161,.08)}
.ook-root .oq-option.is-correct .oq-letter{background:var(--oq-ok);border-color:var(--oq-ok);color:#05261a;animation:none}
.ook-root .oq-option.is-correct .oq-option-check{color:var(--oq-ok)}
.ook-root .oq-option.is-wrong,.ook-root .oq-option:disabled.is-wrong{opacity:1;border-color:var(--oq-bad);background:rgba(255,111,111,.07);color:#ffd6d6;box-shadow:none}
.ook-root .oq-option.is-wrong .oq-letter{background:var(--oq-bad);border-color:var(--oq-bad);color:#2b0808;animation:none}
.ook-root .oq-option.is-wrong .oq-option-check{color:var(--oq-bad)}
.ook-root .oq-btn:disabled,.ook-root .oq-option:disabled{pointer-events:none}
@media (hover:hover){
 .ook-root .oq-option:hover:not(:disabled):not(.is-selected){border-color:#3d4a5b;background:var(--oq-panel)}
 .ook-root .oq-option:hover:not(:disabled) .oq-letter{border-color:var(--oq-cyan);color:var(--oq-text)}
 .ook-root .oq-mark:hover{color:var(--oq-gold);background:rgba(255,194,79,.08)}
 .ook-root .oq-back:hover{background:var(--oq-panel);color:var(--oq-text)}
}
.ook-root .oq-numeric{display:block;max-width:440px}
.ook-root .oq-numeric>span{font:500 10.5px var(--oq-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--oq-muted)}
.ook-root .oq-numeric>div{display:flex;margin:10px 0;border:1px solid var(--oq-line2);border-radius:14px;overflow:hidden;background:var(--oq-bg2);transition:border-color .2s,box-shadow .2s}
.ook-root .oq-numeric>div:focus-within{border-color:var(--oq-cyan);box-shadow:0 0 0 3px rgba(98,212,255,.14)}
.ook-root .oq-numeric:focus-within{outline:0}
.ook-root .oq-numeric input{flex:1;width:100%;min-width:0;height:auto;padding:16px 18px;border:0;border-radius:0;background:transparent;color:var(--oq-white);font:500 28px/1.2 var(--oq-mono);letter-spacing:-.02em;box-shadow:none;outline:0}
.ook-root .oq-numeric input:focus-visible{outline:0}
.ook-root .oq-numeric input::placeholder{color:var(--oq-faint)}
.ook-root .oq-numeric input:disabled{opacity:1;color:var(--oq-soft)}
.ook-root .oq-numeric b{display:grid;place-items:center;min-width:64px;padding:10px 14px;background:var(--oq-panel3);font:500 15px var(--oq-mono);color:var(--oq-soft)}
.ook-root .oq-numeric small{color:var(--oq-muted);font-size:12.5px}
.ook-root .oq-question-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:22px}
.ook-root .oq-question-footer>span{font-size:12.5px;color:var(--oq-faint);max-width:320px}
.ook-root .oq-question-footer>div{display:flex;gap:8px}
.ook-root .oq-question-footer .oq-primary{min-width:210px}

/* Side panel: placeholder → explanation (practice) or question map (exam) */
.ook-root .oq-q-side{position:sticky;top:16px;min-height:280px;display:flex;flex-direction:column}
.ook-root .oq-side-empty{flex:1;display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:280px;padding:24px;border:1px dashed var(--oq-line2);border-radius:18px;text-align:center}
.ook-root .oq-side-empty p{margin:0 auto;max-width:250px;font-size:13.5px;color:var(--oq-faint);line-height:1.6}
.ook-root .oq-side-empty .oq-eyebrow{color:var(--oq-faint)}
.ook-root .oq-feedback{position:relative;min-height:280px;padding:20px 22px 18px;border:1px solid var(--fb-line);border-radius:18px;background:linear-gradient(180deg,var(--fb-bg),transparent 160px),var(--oq-panel);--fb:var(--oq-ok);--fb-line:rgba(95,227,161,.32);--fb-bg:rgba(95,227,161,.08)}
.ook-root .oq-feedback.error{--fb:var(--oq-bad);--fb-line:rgba(255,111,111,.32);--fb-bg:rgba(255,111,111,.07)}
.ook-root .oq-feedback.neutral{--fb:var(--oq-cyan);--fb-line:rgba(98,212,255,.3);--fb-bg:rgba(98,212,255,.06)}
.ook-root .oq-feedback-head{display:flex;align-items:center;gap:12px}
.ook-root .oq-feedback-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--fb);color:#0a0d12;font-weight:800;font-size:16px;flex-shrink:0;box-shadow:0 0 18px color-mix(in srgb,var(--fb) 50%,transparent)}
.ook-root .oq-feedback h3{margin:0;font-size:18px;color:var(--fb)}
.ook-root .oq-answer-value{display:inline-block;margin-top:14px;padding:6px 12px;border-radius:8px;background:var(--oq-panel3);font:600 16px var(--oq-mono);color:var(--oq-white)}
.ook-root .oq-feedback p{font-size:14.5px;color:var(--oq-soft);margin:12px 0 0;line-height:1.65}
.ook-root .oq-sources{display:flex;flex-direction:column;gap:6px;margin-top:16px;padding-top:14px;border-top:1px dashed var(--oq-line2)}
.ook-root .oq-sources>span{font:500 10px var(--oq-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--oq-muted);margin-bottom:2px}
.ook-root .oq-sources button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 12px 8px 8px;border:1px solid var(--oq-line2);border-radius:10px;background:var(--oq-bg2);text-align:left;font-size:13.5px;color:var(--oq-text);line-height:1.35;white-space:normal;transition:border-color .2s,background .2s}
.ook-root .oq-sources button i{display:grid;place-items:center;flex-shrink:0;width:34px;height:28px;border-radius:6px;font:600 9px var(--oq-mono);font-style:normal;color:#ffb3a8;background:rgba(255,127,106,.12)}
.ook-root .oq-sources button span{flex:1;min-width:0}
.ook-root .oq-sources button b{color:var(--oq-cyan);font-weight:500}
@media (hover:hover){.ook-root .oq-sources button:hover{border-color:var(--oq-cyan);background:var(--oq-panel2)}}
.ook-root .oq-exam-map{padding:20px;border:1px solid var(--oq-line);border-radius:18px;background:var(--oq-panel)}
.ook-root .oq-question-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:14px 0 8px}
.ook-root .oq-question-grid button{display:grid;place-items:center;height:38px;border:1px solid var(--oq-line2);border-radius:8px;font:500 12px var(--oq-mono);color:var(--oq-muted);transition:border-color .2s,background .2s,color .2s}
.ook-root .oq-question-grid button.answered{background:var(--oq-panel3);color:var(--oq-text);border-color:#3a4859}
.ook-root .oq-question-grid button.current{border-color:var(--oq-white);color:var(--oq-white);box-shadow:0 0 0 2px rgba(255,255,255,.15)}
@media (hover:hover){.ook-root .oq-question-grid button:hover{border-color:var(--oq-cyan)}}

/* ── Motion: only on real changes (new view, new question, first reveal) ── */
.ook-root .oq-main.is-enter{animation:oq-fade .35s var(--oq-ease) both}
.ook-root .oq-question.is-enter .oq-question-meta,.ook-root .oq-question.is-enter .oq-question-title,.ook-root .oq-question.is-enter .oq-warning,.ook-root .oq-question.is-enter .oq-options>*,.ook-root .oq-question.is-enter .oq-numeric,.ook-root .oq-question.is-enter>.oq-q-side{animation:oq-rise .42s var(--oq-ease) both}
.ook-root .oq-question.is-enter .oq-question-title{animation-delay:40ms}
.ook-root .oq-question.is-enter .oq-warning{animation-delay:80ms}
.ook-root .oq-question.is-enter .oq-options>:nth-child(1),.ook-root .oq-question.is-enter .oq-numeric{animation-delay:110ms}
.ook-root .oq-question.is-enter .oq-options>:nth-child(2){animation-delay:160ms}
.ook-root .oq-question.is-enter .oq-options>:nth-child(3){animation-delay:210ms}
.ook-root .oq-question.is-enter>.oq-q-side{animation-name:oq-fade;animation-delay:200ms}
.ook-root .oq-feedback.is-enter{animation:oq-reveal .4s var(--oq-ease) both}
.ook-root .oq-feedback.is-enter .oq-feedback-icon{animation:oq-pop .45s var(--oq-ease) .1s both}
.ook-root .oq-feedback.is-enter p,.ook-root .oq-feedback.is-enter .oq-sources,.ook-root .oq-feedback.is-enter .oq-answer-value{animation:oq-fade .4s var(--oq-ease) .14s both}
.ook-root .oq-question:has(.oq-feedback.is-enter) .oq-option.is-correct{animation:oq-glow .9s ease-out}
.ook-root .oq-question:has(.oq-feedback.is-enter) .oq-option.is-wrong{animation:oq-shake .35s ease}
.ook-root .oq-question:has(.oq-feedback.is-enter) .oq-option-check{animation:oq-pop .35s var(--oq-ease) .05s both}
.ook-root .oq-mark.is-marked{animation:oq-pop .3s var(--oq-ease)}
@keyframes oq-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes oq-reveal{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
@keyframes oq-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
@keyframes oq-glow{0%{box-shadow:0 0 0 0 rgba(95,227,161,.45)}100%{box-shadow:0 0 0 14px rgba(95,227,161,0)}}
@keyframes oq-shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@property --oq-sweep{syntax:"<number>";inherits:false;initial-value:0}
@keyframes oq-sweep{from{--oq-sweep:0}to{--oq-sweep:var(--p)}}

/* Phone / narrow pane: one column; the action bar is pinned to the bottom, so the explanation appears below the answers without moving anything above it. */
@container ook (max-width:900px){
 .ook-root .oq-question{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-top:16px}
 .ook-root .oq-question-footer>span{display:none}
 .ook-root .oq-q-main{display:contents}
 .ook-root .oq-q-side{order:2;position:static;min-height:0;margin-top:18px}
 .ook-root .oq-side-empty{display:none}
 .ook-root .oq-feedback{min-height:0}
 .ook-root .oq-question-footer{order:3;position:sticky;bottom:0;z-index:10;margin:18px calc(-1*var(--oq-pad)) 0;padding:12px var(--oq-pad) calc(12px + env(safe-area-inset-bottom));background:rgba(9,12,16,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--oq-line)}
 .ook-root .oq-question-footer>div{flex:1;justify-content:flex-end}
 .ook-root .oq-exam-map{order:4;margin-top:18px}
 .ook-root .oq-question-grid{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}
}
@container ook (max-width:640px){
 .ook-root .oq-quiz-top{padding:10px 0 10px;gap:10px}
 .ook-root .oq-chip{font-size:12px}
 .ook-root .oq-clock{font-size:9.5px;letter-spacing:.08em}
 .ook-root .oq-clock.is-exam{font-size:14px;padding:5px 10px}
 .ook-root .oq-question-title{font-size:clamp(20px,6vw,24px);margin:10px 0 20px}
 .ook-root .oq-question-meta .oq-eyebrow{font-size:9.5px;letter-spacing:.1em}
 .ook-root .oq-option{min-height:56px;padding:11px 12px 11px 10px;gap:12px;font-size:15px}
 .ook-root .oq-numeric input{font-size:26px;padding:14px 16px}
 .ook-root .oq-feedback{padding:16px 16px 14px}
 .ook-root .oq-question-footer>div,.ook-root .oq-question-footer .oq-btn{width:100%}
 .ook-root .oq-question-footer .oq-btn{flex:1;min-height:54px;font-size:15px}
 .ook-root .oq-question-footer .oq-primary{min-width:0}
 .ook-root .oq-question-footer>div>.oq-btn:not(.oq-primary){flex:0 0 auto;width:auto;padding:0 16px}
}

/* ── Results ──────────────────────────────────────── */
.ook-root .oq-results{max-width:900px;margin:12px auto 0}
.ook-root .oq-result-hero{display:grid;grid-template-columns:180px 1fr;gap:36px;align-items:center;padding:26px 30px;border:1px solid var(--oq-line);border-radius:22px;background:var(--oq-panel)}
.ook-root .oq-result-hero h1{font-size:clamp(28px,3.4vw,42px);margin:12px 0 8px}
.ook-root .oq-result-hero .oq-actions{margin:20px 0 0}
.ook-root .oq-ring{--c:var(--oq-ok);position:relative;width:180px;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--c) calc(var(--oq-sweep)*1%),var(--oq-line) 0);--oq-sweep:var(--p);animation:oq-sweep 1.1s var(--oq-ease) .15s both;display:grid;place-items:center;box-shadow:0 0 60px -20px var(--c)}
.ook-root .oq-ring.is-mid{--c:var(--oq-cyan)}
.ook-root .oq-ring.is-low{--c:var(--oq-gold)}
.ook-root .oq-ring>div{width:calc(100% - 22px);aspect-ratio:1;border-radius:50%;background:var(--oq-panel);display:grid;place-content:center;text-align:center}
.ook-root .oq-ring strong{font:500 50px/1 var(--oq-mono);letter-spacing:-.05em;color:var(--oq-white)}
.ook-root .oq-ring small{font-size:24px;color:var(--oq-muted)}
.ook-root .oq-ring span{font:500 13px var(--oq-mono);color:var(--oq-muted);margin-top:6px}
.ook-root .oq-result-score>span{font:500 13px var(--oq-mono);color:var(--oq-soft)}
.ook-root .oq-result-strip{max-width:none;margin:16px 0 0;height:8px}
.ook-root .oq-results h2{margin:44px 0 12px}
.ook-root .oq-result-item{border:1px solid var(--oq-line);border-radius:12px;background:var(--oq-panel);margin-bottom:8px;overflow:hidden}
.ook-root .oq-result-item[open]{border-color:var(--oq-line2)}
.ook-root .oq-result-item summary{list-style:none;cursor:pointer;display:flex;align-items:flex-start;gap:14px;padding:14px 16px;font-size:14.5px;line-height:1.45}
.ook-root .oq-result-item summary::-webkit-details-marker{display:none}
.ook-root .oq-result-item summary>span:first-child{display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;border-radius:50%;font-weight:800;font-size:13px}
.ook-root .oq-result-item summary>span.ok{background:rgba(95,227,161,.14)}
.ook-root .oq-result-item summary>span.bad{background:rgba(255,111,111,.14)}
.ook-root .oq-result-item summary>span.info{background:rgba(98,212,255,.14);color:var(--oq-cyan)}
.ook-root .oq-result-item summary>span:nth-child(2){flex:1;min-width:0;padding-top:2px}
.ook-root .oq-result-item summary small{font:500 11px var(--oq-mono);color:var(--oq-muted);margin-right:10px}
.ook-root .oq-caret{color:var(--oq-muted);transition:transform .2s;padding-top:2px}
.ook-root .oq-result-item[open] .oq-caret{transform:rotate(180deg)}
.ook-root .oq-result-item>div{padding:2px 18px 18px 56px}
.ook-root .oq-result-item p{font-size:14.5px;margin:8px 0}
.ook-root .oq-correct-line{color:var(--oq-text)!important}
.ook-root .oq-correct-line strong{color:var(--oq-ok);font-weight:600}
@media (hover:hover){.ook-root .oq-result-item summary:hover{background:var(--oq-panel2)}}

/* ── Review & library ─────────────────────────────── */
.ook-root .oq-page{padding:20px 0 0}
.ook-root .oq-page-head{max-width:780px}
.ook-root .oq-page-head h1{font-size:clamp(32px,3.8vw,48px)}
.ook-root .oq-page-head p{font-size:16px;color:var(--oq-soft)}
.ook-root .oq-page h2{font-size:20px;margin:0 0 14px}
.ook-root .oq-review-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.ook-root .oq-tile{display:flex;flex-direction:column;gap:4px;padding:20px 22px;border:1px solid var(--oq-line);border-radius:var(--oq-radius);background:var(--oq-panel);text-align:left;--tile:var(--oq-soft);transition:transform .25s var(--oq-ease),border-color .25s}
.ook-root .oq-tile.is-alert{--tile:var(--oq-bad)}
.ook-root .oq-tile.is-gold{--tile:var(--oq-gold)}
.ook-root .oq-tile span{font:500 10.5px var(--oq-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--oq-muted)}
.ook-root .oq-tile strong{font:500 44px/1.1 var(--oq-mono);letter-spacing:-.04em;color:var(--tile)}
.ook-root .oq-tile small{font-size:13px;color:var(--oq-soft)}
.ook-root button.oq-tile:not(:disabled) small{color:var(--tile)}
.ook-root button.oq-tile:disabled{opacity:.6}
.ook-root button.oq-tile:disabled strong{color:var(--oq-muted)}
@media (hover:hover){.ook-root button.oq-tile:hover:not(:disabled){transform:translateY(-3px);border-color:color-mix(in srgb,var(--tile) 45%,var(--oq-line))}}
.ook-root .oq-sync-actions{margin:14px 0 40px}
.ook-root .oq-sync-actions .oq-btn{min-height:42px;font-size:13px;color:var(--oq-soft)}
.ook-root .oq-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:36px;align-items:start}
.ook-root .oq-review-row{display:grid;grid-template-columns:1fr 24px;gap:4px 14px;width:100%;padding:14px 16px;margin-bottom:8px;border:1px solid var(--oq-line);border-radius:12px;background:var(--oq-panel);text-align:left;transition:background .2s,transform .2s var(--oq-ease)}
.ook-root .oq-review-row span{display:flex;align-items:center;gap:8px;font:500 10.5px var(--oq-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--topic);grid-column:1}
.ook-root .oq-review-row span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--topic);flex-shrink:0}
.ook-root .oq-review-row strong{font-size:14.5px;font-weight:450;line-height:1.45;grid-column:1}
.ook-root .oq-review-row b{grid-column:2;grid-row:1/span 2;align-self:center;color:var(--oq-muted);font-weight:400}
@media (hover:hover){.ook-root .oq-review-row:hover{background:var(--oq-panel2);transform:translateX(3px)}.ook-root .oq-review-row:hover b{color:var(--topic)}}
.ook-root .oq-history{display:grid;grid-template-columns:minmax(0,1fr) 70px auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--oq-line);font-size:13px;color:var(--oq-muted)}
.ook-root .oq-history>span b{display:block;font:500 12px var(--oq-mono);color:var(--oq-soft)}
.ook-root .oq-bar{display:block;height:6px;border-radius:3px;background:var(--oq-line);overflow:hidden}
.ook-root .oq-bar b{display:block;height:100%;border-radius:3px;background:var(--oq-ok)}
.ook-root .oq-bar.is-mid b{background:var(--oq-cyan)}
.ook-root .oq-bar.is-low b{background:var(--oq-gold)}
.ook-root .oq-history strong{font:500 14px var(--oq-mono);color:var(--oq-text);white-space:nowrap}

.ook-root .oq-page>.oq-note{margin-top:28px;max-width:900px}
.ook-root .oq-library-controls{position:sticky;top:0;z-index:5;display:flex;gap:10px;margin:28px 0 12px;padding:10px 0;background:linear-gradient(var(--oq-bg) 75%,transparent)}
.ook-root .oq-library-controls input,.ook-root .oq-library-controls select{height:48px;border:1px solid var(--oq-line2);border-radius:12px;background:var(--oq-panel);color:var(--oq-text);padding:0 16px;font-size:14.5px;box-shadow:none}
.ook-root .oq-library-controls input{flex:1;min-width:0;padding-left:42px;background:var(--oq-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f8c9c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") no-repeat 14px 50%/18px}
.ook-root .oq-library-controls input:focus{border-color:var(--oq-cyan)}
.ook-root .oq-library-controls select{min-width:200px}
.ook-root #oq-materials{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:8px}
.ook-root .oq-material{display:flex;align-items:center;gap:14px;width:100%;min-height:68px;padding:12px 16px 12px 12px;border:1px solid var(--oq-line);border-radius:12px;background:var(--oq-panel);text-align:left;transition:border-color .2s,background .2s,transform .2s var(--oq-ease)}
.ook-root .oq-material>span:nth-child(2){flex:1;min-width:0}
.ook-root .oq-material small{display:block;font:500 9.5px var(--oq-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--oq-muted)}
.ook-root .oq-material strong{display:block;font-size:14px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.ook-root .oq-material>span:last-child{font:500 11px var(--oq-mono);color:var(--oq-muted);flex-shrink:0;text-align:right}
.ook-root .oq-material>span.is-error{color:var(--oq-gold)}
.ook-root .oq-file-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:10px;font:700 9.5px var(--oq-mono);letter-spacing:.04em;color:var(--oq-soft);background:var(--oq-panel3)}
.ook-root .oq-file-icon.is-pdf{color:#ffb3a8;background:rgba(255,127,106,.13)}
.ook-root .oq-file-icon.is-docx,.ook-root .oq-file-icon.is-doc{color:#a8d6ff;background:rgba(79,176,255,.13)}
.ook-root .oq-file-icon.is-txt{color:#c6bbff;background:rgba(154,134,255,.13)}
.ook-root .oq-file-icon.is-pptx,.ook-root .oq-file-icon.is-ppt{color:#ffd88a;background:rgba(255,194,79,.13)}
.ook-root #oq-materials>.oq-empty{grid-column:1/-1}
@media (hover:hover){.ook-root .oq-material:hover{border-color:var(--oq-line2);background:var(--oq-panel2);transform:translateY(-2px)}}

/* ── Tablet / narrow Obsidian pane ────────────────── */
@container ook (max-width:1080px){
 .ook-root .oq-shell>*{--oq-pad:26px}
 .ook-root .oq-topics{grid-template-columns:repeat(6,minmax(0,1fr))}
 .ook-root .oq-topic{grid-column:span 2;min-height:210px}
 .ook-root .oq-topic:nth-child(4),.ook-root .oq-topic:nth-child(5){grid-column:span 3}
 .ook-root .oq-hero{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}
 .ook-root .oq-hero h1{font-size:clamp(36px,6vw,58px)}
}
@container ook (max-width:860px){
 .ook-root .oq-header{padding-right:var(--oq-pad)}
 .ook-root .oq-status{display:none}
 .ook-root .oq-nav{right:var(--oq-pad)}
 .ook-root .oq-hero{grid-template-columns:1fr;padding-top:34px}
 .ook-root .oq-optic svg{max-width:520px;margin:0 auto}
 .ook-root .oq-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ook-root .oq-stats>div:nth-child(3){border-left:0}
 .ook-root .oq-stats>div:nth-child(n+3){border-top:1px solid var(--oq-line)}
 .ook-root .oq-stat-accuracy .oq-meter{bottom:0}
 .ook-root .oq-columns{grid-template-columns:1fr}
 .ook-root .oq-result-hero{grid-template-columns:1fr;justify-items:start}
 .ook-root .oq-result-hero{gap:24px}
}

/* ── Phone ────────────────────────────────────────── */
@container ook (max-width:640px){
 .ook-root .oq-shell>*{--oq-pad:18px}
 .ook-root .oq-header{height:64px}
 .ook-root .oq-logo{width:34px;height:34px;border-radius:10px}
 .ook-root .oq-wordmark{font-size:17px}
 .ook-root .oq-wordmark small{font-size:8.5px;letter-spacing:.12em}
 .ook-root .oq-status{display:flex;font-size:0;gap:0}
 .ook-root .oq-status.is-offline{font-size:9px;gap:6px}
 /* Bottom tab bar in the thumb zone */
 .ook-root .oq-nav{position:sticky;top:auto;right:auto;bottom:0;order:99;margin:0;border-radius:0;border:0;border-top:1px solid var(--oq-line);padding:6px 8px calc(6px + env(safe-area-inset-bottom));gap:4px;justify-content:space-around;background:rgba(10,13,18,.9)}
 .ook-root .oq-nav :is(button,a){position:relative;flex:1;flex-direction:column;gap:3px;padding:7px 4px 6px;border-radius:12px;font-size:11px;min-height:52px;justify-content:center}
 .ook-root .oq-nav svg{width:22px;height:22px}
 .ook-root .oq-nav :is(button,a).is-active{box-shadow:none;background:var(--oq-panel2)}
 .ook-root .oq-nav :is(button,a).is-active svg{color:var(--oq-cyan)}
 .ook-root .oq-nav b{position:absolute;top:4px;left:calc(50% + 6px);font-size:9px;padding:2px 5px}
 .ook-root .oq-footer{flex-direction:column;gap:6px;margin-top:40px;font-size:9px}

 .ook-root .oq-hero{padding:20px 0 26px;gap:8px}
 .ook-root .oq-kicker{font-size:9.5px;padding:6px 11px 6px 9px}
 .ook-root .oq-hero h1{font-size:clamp(34px,11vw,46px);margin:18px 0 14px}
 .ook-root .oq-hero p{font-size:15px}
 .ook-root .oq-actions{margin:22px 0 4px}
 .ook-root .oq-actions .oq-btn{flex:1 1 100%;justify-content:space-between;min-height:54px;padding:14px 18px}
 .ook-root .oq-optic{margin:4px -6px 0}
 .ook-root .oq-optic figcaption{display:none}
 .ook-root .oq-stats{margin-bottom:40px}
 .ook-root .oq-stats>div{padding:14px 14px 16px}
 .ook-root .oq-stats span{font-size:9px}
 .ook-root .oq-stats small{font-size:11px;line-height:1.35}
 .ook-root .oq-stats strong{font-size:28px}
 .ook-root .oq-block{margin-bottom:40px}
 .ook-root .oq-section-head{flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:16px}
 .ook-root .oq-caption{text-align:left;font-size:12px}
 .ook-root .oq-topics{grid-template-columns:1fr;gap:8px}
 .ook-root .oq-topic,.ook-root .oq-topic:nth-child(4),.ook-root .oq-topic:nth-child(5){grid-column:auto;min-height:0;display:grid;grid-template-columns:1fr auto;grid-template-areas:"head head" "title title" "ticks ticks" "foot foot";gap:10px;padding:16px}
 .ook-root .oq-topic-head{grid-area:head}
 .ook-root .oq-topic-index{font-size:24px}
 .ook-root .oq-topic h3{grid-area:title;font-size:17px}
 .ook-root .oq-ticks{grid-area:ticks;height:12px}
 .ook-root .oq-topic-foot{grid-area:foot}
 .ook-root .oq-modes{grid-template-columns:1fr}
 .ook-root .oq-modes button{padding:16px;gap:14px;align-items:flex-start}
 .ook-root .oq-modes .oq-go{display:none}
 .ook-root .oq-icon{width:46px;height:46px;font-size:22px;border-radius:12px}
 .ook-root .oq-note{font-size:12.5px;padding:14px 16px}


 .ook-root .oq-results{margin-top:16px}
 .ook-root .oq-result-hero{padding:22px 18px;justify-items:center;text-align:center}
 .ook-root .oq-result-hero .oq-actions .oq-btn{justify-content:center}
 .ook-root .oq-ring{width:160px}
 .ook-root .oq-ring strong{font-size:48px}
 .ook-root .oq-result-item summary{font-size:14px;padding:13px 12px;gap:10px}
 .ook-root .oq-result-item>div{padding:0 14px 16px}

 .ook-root .oq-page{padding-top:20px}
 .ook-root .oq-page-head h1{font-size:clamp(32px,10vw,42px)}
 .ook-root .oq-page-head p{font-size:15px}
 .ook-root .oq-review-tiles{grid-template-columns:1fr 1fr}
 .ook-root .oq-review-tiles{gap:8px;margin-top:24px}
 .ook-root .oq-review-tiles>.oq-tile:last-child{grid-column:span 2;flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
 .ook-root .oq-tile{padding:16px}
 .ook-root .oq-tile strong{font-size:36px}
 .ook-root .oq-tile small{font-size:12px}
 .ook-root .oq-sync-actions .oq-btn{flex:1 1 0;min-height:46px}
 .ook-root .oq-history{grid-template-columns:minmax(0,1fr) 48px auto;gap:10px}
 .ook-root .oq-library-controls{flex-direction:column;gap:8px}
 .ook-root .oq-library-controls select{width:100%;min-width:0}
 .ook-root #oq-materials{grid-template-columns:1fr}
 .ook-root .oq-material{gap:12px;padding:10px 12px 10px 10px}
 .ook-root .oq-material strong{font-size:13.5px}
 .ook-root .oq-material>span:last-child{font-size:10px;max-width:70px}
 .ook-root .oq-file-icon{width:38px;height:38px;font-size:8.5px}
}
@media (prefers-reduced-motion:reduce){
 .ook-root *,.ook-root *::before,.ook-root *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
 .ook-root .oq-optic-ray{stroke-dashoffset:0}
 .ook-root .oq-optic-photon{display:none}
}

/* Read-only solved test reference. */
.ook-root .oq-solution{margin:18px 0;padding:clamp(18px,3vw,30px);border:1px solid var(--line,#28313b);border-radius:18px;background:rgba(255,255,255,.025)}
.ook-root .oq-solution h2{font-size:clamp(18px,2vw,23px);line-height:1.45;margin:12px 0}
.ook-root .oq-solution p{line-height:1.75;max-width:90ch}
.ook-root .oq-solution-answer{color:#9debd0}
.ook-root .oq-solution details{margin:16px 0;color:#b6c1cd}
.ook-root .oq-solution summary{cursor:pointer;min-height:32px}
@media(max-width:600px){.ook-root .oq-nav :is(button,a){padding-left:9px;padding-right:9px}.ook-root .oq-nav :is(button,a) span{font-size:11px}}

/* Compact, readable solved-test reference. */
.ook-root .oq-view-solutions .oq-main{max-width:960px;margin-inline:auto}
.ook-root .oq-view-solutions .oq-status{display:none}
.ook-root .oq-view-solutions .oq-page-head h1{font-size:28px;margin:0 0 8px}
.ook-root .oq-view-solutions .oq-page-head p{font-size:15px;line-height:1.55;margin:4px 0 14px;color:#c8d1dc}
.ook-root .oq-view-solutions .oq-page-head>.oq-eyebrow{display:none}
.ook-root .oq-view-solutions .oq-note{font-size:13px;line-height:1.6;padding:10px 14px;margin:8px 0;color:#c8d1dc}
.ook-root .oq-view-solutions .oq-library-controls{margin:10px 0;padding:8px 0;gap:8px}
.ook-root .oq-view-solutions .oq-library-controls input,.ook-root .oq-view-solutions .oq-library-controls select{height:42px;font-size:14px;border-radius:8px}
.ook-root #oq-solutions>.oq-caption{font-size:12px;margin:8px 0;color:#aab8c8}
.ook-root .oq-solution{margin:10px 0;padding:16px 20px;border:1px solid #303d4d;border-radius:10px;background:#111820}
.ook-root .oq-solution>.oq-eyebrow{font-size:11px;letter-spacing:.025em;line-height:1.4;color:#aab8c8}
.ook-root .oq-solution h2{font-size:18px;line-height:1.45;margin:6px 0 8px;font-weight:650;color:#f3f6fa}
.ook-root .oq-solution p{font-size:16px;line-height:1.6;margin:6px 0;max-width:80ch;color:#d0d9e4}
.ook-root .oq-solution p.oq-solution-answer{color:#a4f1d5}
.ook-root .oq-solution .oq-warning{padding:8px 10px;font-size:14px}
.ook-root .oq-solution details{margin:6px 0;font-size:13px;color:#b9c7d6}
.ook-root .oq-solution summary{min-height:30px;line-height:30px}
.ook-root .oq-solution .oq-sources{flex-direction:row;flex-wrap:wrap;gap:4px;margin:4px 0 0;padding:0;border:0}
.ook-root .oq-solution .oq-sources>span,.ook-root .oq-solution .oq-sources button i{display:none}
.ook-root .oq-solution .oq-sources button{width:auto;min-height:32px;padding:4px 0;gap:6px;border:0;border-radius:4px;background:transparent;font-size:13px;color:#9dd8fa}
@media(max-width:600px){.ook-root .oq-view-solutions .oq-main{padding-top:14px}.ook-root .oq-view-solutions .oq-library-controls{gap:6px}.ook-root .oq-solution{padding:14px}.ook-root .oq-solution h2{font-size:17px}.ook-root .oq-solution p{font-size:15px}}

.ook-root .oq-view-solutions .oq-library-controls input,.ook-root .oq-view-solutions .oq-library-controls select{flex-shrink:0;min-height:42px}
.ook-root .oq-view-solutions details.oq-note summary{cursor:pointer;line-height:24px;color:#d8e1ed}

/* Quiet reading surface for the solved tests. */
.ook-root .oq-view-solutions{background:#0d1117}
.ook-root .oq-view-solutions .oq-main{max-width:880px}
.ook-root .oq-view-solutions .oq-page-head h1{font-size:26px;font-weight:600;letter-spacing:-.025em}
.ook-root .oq-view-solutions .oq-page-head p{font-size:14px;color:#aebaca;max-width:68ch}
.ook-root .oq-view-solutions details.oq-note{border:0;background:none;padding:0;margin:10px 0;font-size:12px;color:#aebaca}
.ook-root .oq-view-solutions details.oq-note summary{font-size:12px;color:#aebaca}
.ook-root #oq-solutions>.oq-caption{margin:12px 0 0;font-size:12px;color:#94a3b8}
.ook-root .oq-solution{background:none;border:0;border-bottom:1px solid #29313d;border-radius:0;padding:22px 0;margin:0}
.ook-root .oq-solution>.oq-eyebrow{font-family:inherit;font-size:12px;letter-spacing:0;text-transform:none;color:#94a3b8}
.ook-root .oq-solution h2{font-size:18px;font-weight:600;line-height:1.45;margin:6px 0 10px;color:#f1f5f9}
.ook-root .oq-solution p{font-size:15px;line-height:1.65;color:#becada;margin:6px 0}
.ook-root .oq-solution p.oq-solution-answer{color:#b4e4d3}
.ook-root .oq-solution .oq-sources button{font-size:12px;color:#9db6cf;min-height:30px}
.ook-root .oq-solution details{font-size:12px;color:#94a3b8}
@media(max-width:600px){.ook-root .oq-solution{padding:20px 0}.ook-root .oq-solution h2{font-size:17px}}

/* Keep every web section reachable while reading long pages on phones. */
@media(max-width:760px){
 body>#app.ook-root>.oq-shell:not(.oq-view-quiz){padding-bottom:calc(86px + env(safe-area-inset-bottom))}
 body>#app.ook-root>.oq-shell>.oq-nav{position:fixed;inset:auto 0 0;width:100%;box-sizing:border-box;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;margin:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border-radius:0;border:0;border-top:1px solid #303b48;background:#0d1117;z-index:100}
 body>#app.ook-root>.oq-shell>.oq-nav :is(button,a){min-width:0;min-height:54px;padding:6px 2px;display:flex;flex-direction:column;justify-content:center;gap:4px;border-radius:9px;font-size:11px}
 body>#app.ook-root>.oq-shell>.oq-nav svg{width:21px;height:21px}
 body>#app.ook-root>.oq-shell>.oq-nav :is(button,a) span{font-size:11px;white-space:nowrap}
}

.ook-root .oq-nav a,.ook-root .oq-solutions-link{text-decoration:none;cursor:pointer}.ook-root .oq-solutions-link{min-height:48px;display:inline-flex;align-items:center;justify-content:center}
