/* Dark research desk — selected by Vuk, September 21. Loaded last.
   Semantic success/error colors and original paper/video pixels stay intact. */
:root{--bg:#181818;--panel:#202020;--ink:#eeede8;--muted:#aaa9a3;--accent:#f1cc67;--blue:var(--accent);--mint:#bfd0ae;--line:#393936;color-scheme:dark}
body{background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:18px;line-height:1.75;-webkit-font-smoothing:antialiased}
::selection{background:#f1cc6740;color:#fff}
a{color:var(--accent)}strong,h1,h2,h3,h4{color:#f4f3ef}h1,h2,h3,h4{font-weight:700}h2{letter-spacing:-1.4px}h3{letter-spacing:-.5px}p{text-wrap:pretty}pre,code,input[type=number]{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}pre{tab-size:4}small,figcaption{line-height:1.6}
body>aside{background:#161616;border-color:var(--line);scrollbar-color:#4a4a45 #161616}
body>aside .brand{display:flex;align-items:center;font-size:13px;letter-spacing:.2px;color:var(--ink)}.brand .mark{color:var(--accent)}
body>aside .toc-chapter{border-color:#343431}body>aside .toc-chapter>summary strong{color:#e6e5df;font-size:14px}body>aside .toc-chapter>summary small{color:var(--accent)}body>aside .toc-chapter>summary span{color:#a7a7a0}body>aside .toc-current-branch>summary strong{color:var(--accent)}
body>aside #course-contents a{color:#bebeb6;border-radius:2px}body>aside #course-contents a:hover{background:#272724;color:#fff}body>aside #course-contents a.active{color:var(--accent);background:#f1cc670d;box-shadow:inset 2px 0 var(--accent)}body>aside #course-contents .toc-step-link{color:#a6a69f;border-color:#393936}body>aside #course-contents .toc-step-link.active{color:var(--accent)}body>aside .toc-steps>summary{color:#b2b2aa}body>aside .toc-steps>summary:before{color:var(--accent)}
body>aside .toc-reading{background:transparent;border:0;border-left:2px solid #57574f;border-radius:0;padding:3px 12px;color:#96968e}#toc-current{color:#deddd4}body>aside .toc-lesson{border-color:#393936}.nav-label,.later,.aside-bottom{color:#a6a69f}.later span,.aside-bottom strong{color:#c2c1b9}
.lesson-finder input{background:#1e1e1e;color:var(--ink);border-color:#464641;padding:11px 12px;border-radius:4px}.lesson-finder{color:#b8b7af}
header{color:#a7a69f;letter-spacing:1.5px}header a{color:#c7c5bb}article{max-width:1040px}header{max-width:1040px}main{padding-right:5vw;padding-left:5vw}.eyebrow,.script-label{color:var(--accent);letter-spacing:1.7px}.course-hero h1{font-size:clamp(43px,5.1vw,78px);font-weight:720}.course-hero h1 em{color:var(--accent)}.lede{color:#e3e1d8}.intro{color:var(--muted)}
button,input,select,textarea{border-radius:4px}button{color:#e1dfd5;background:#232321;border-color:#53534c;font-weight:500;box-shadow:none}button:hover{background:#2e2e29;border-color:var(--accent)}button.selected{background:#f1cc6719;color:var(--accent);border-color:#c8ac61}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.course-editor{background:#1b1b1b;border-color:#3a3a36;box-shadow:none;backdrop-filter:none}.course-editor button{font-size:12px}.view-switch button.selected{background:var(--accent);color:#191916;border-color:var(--accent)}.course-editor span{color:#b9b7ac}.editor-toggle.active{background:#f1cc6720;color:var(--accent)}
:is(.interactive,.calculator,.component-note,.experiment-step,.cache-walkthrough,.course-meme,.research-meme,.lesson-check,.early-challenge,.model-flow){background:var(--panel);border-color:#454540;box-shadow:none;border-radius:4px}.component-note{border-left-color:var(--accent)}.lesson-transition{background:#24241f;border-left-color:var(--accent)}.course-progress{background:transparent;border-radius:4px}.paper-cover{background:#222220;border-radius:4px;border-color:#454540}.paper-cover-image{background:#d5d3c9}.paper-cover:hover{transform:translateY(-2px)}
.unit-example{padding:32px 0;margin:46px 0;border:0;border-top:1px solid #51514a;border-bottom:1px solid #51514a;border-radius:0;background:transparent}.unit-example h3{font-size:clamp(28px,3vw,40px);line-height:1.2;max-width:850px;letter-spacing:-1px}.unit-example>p{font-size:17px;color:#c9c8c0;max-width:850px}.unit-example .eyebrow{color:var(--accent);font-size:11px}.unit-steps{gap:16px;margin:30px 0}.unit-step{background:#202020;border:1px solid #494942;border-radius:3px;padding:23px}.unit-step>span{color:var(--accent);font-size:11px;letter-spacing:1.5px}.unit-step h4{color:#f0eee6;font-size:20px}.unit-step p{color:#bebdb4}.unit-example pre{background:#181818;color:#eeece2;border:1px solid #353531;border-radius:3px;font-size:16px;padding:17px}.unit-flow{background:transparent;border:0;border-left:2px solid var(--accent);border-radius:0;color:var(--accent);padding:8px 19px;font-size:16px}.unit-challenge{background:transparent;border-radius:0;border-top:1px solid var(--line);padding:26px 0 0;margin-top:30px}.unit-challenge h4{font-size:24px}.unit-fields label{color:#d7d5cb;font-size:14px}.unit-fields input{background:#1b1b1b;border-color:#636359;color:#f5f3e8;padding:12px}.unit-example [data-unit-check]{background:var(--accent);border-color:var(--accent);color:#191916;font-weight:650;padding:12px 20px}.unit-example [data-unit-check]:hover{background:#ffdc7c}.unit-example .unit-feedback{color:#c5c3b7}.unit-example .unit-pass{color:#bed6ad}.unit-example .unit-retry{color:#f1cc67}.unit-example .unit-scope{color:#a5a49b;font-size:13px}.unit-example details summary{color:#d8d5c8}
.playback-dock{background:#232321;border-color:#676453;border-radius:4px}.playback-pause{background:var(--accent);color:#191916;border-color:var(--accent)}.playback-status{color:var(--accent)}
/* Approval remains a separate authoring signal, not a new theme accent. */

@media(min-width:1200px){.unit-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.unit-step{padding:20px}.unit-step pre{font-size:14px;padding:12px}.unit-step h4{font-size:18px}.unit-step p{font-size:14px}}
@media(max-width:760px){body>aside,#toc-panel{background:#191919;backdrop-filter:none}main{padding:0 23px}.unit-example{padding:26px 0}.unit-step{padding:19px}.unit-example h3{font-size:28px}.unit-example pre{font-size:14px}.unit-example>p{font-size:16px}}
/* Retain the named colors used by instructional legends. */
.architecture-focus{border-color:#3b82f6}
.fp4-numberline i{background:#9cbcf3}.fp4-numberline i.selected{background:#8dffce}
.different-address{color:#a8ceff;background:#182e4b}
/* Approved opening uses the same neutral surface in author and learner views. */
body #engram-script.production-approved{background:var(--panel);border:1px solid var(--line);box-shadow:none;color:var(--ink)}
body #engram-script.production-approved h3,body #engram-script.production-approved .approved-script{color:var(--ink)}
body #engram-script.production-approved .lesson-card-top{color:var(--muted)}
body #engram-script.production-approved .approval-badge,body #engram-script.script-edited .approval-badge{background:#30302d;color:#deded7}
body #engram-script.production-approved figcaption{background:transparent;color:var(--muted)}
