:root{--paper:#fbf9f4;--surface:#fff;--ink:#23201b;--muted:#6b6357;--rule:#e6dfd1;--rule-strong:#d6cbb5;--gold:#c4a674;--gold-dk:#7c5c1e;--gold-wash:#f6f0e3;--ok:#2f6b4f;--warn:#8a5d0e;--bad:#a23b2c;--info:#2d5b7a;--radius-s:4px;--radius-m:8px;--focus:0 0 0 3px #7c5c1e59;--font:"Plex Arabic", "Segoe UI", Tahoma, sans-serif;--mono:"Plex Mono", ui-monospace, Consolas, monospace}*{box-sizing:border-box}html,body{background:var(--paper);color:var(--ink);font-family:var(--font);margin:0;font-size:15px;line-height:1.65}h1,h2,h3{margin:0 0 .5em;line-height:1.3}h1{font-size:1.6rem;font-weight:700}h2{font-size:1.2rem;font-weight:600}h3{font-size:1.02rem;font-weight:600}p{max-width:72ch;margin:0 0 .75em}a{color:var(--gold-dk)}:focus-visible{box-shadow:var(--focus);border-radius:var(--radius-s);outline:none}.ltr{direction:ltr;unicode-bidi:isolate}.mono{font-family:var(--mono);font-size:.9em}.muted{color:var(--muted)}.small{font-size:.86rem}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}button,.btn{font:inherit;cursor:pointer;border-radius:var(--radius-s);border:1px solid var(--gold-dk);background:var(--gold-dk);color:#fff;padding:.45rem 1rem;font-weight:500}button:hover,.btn:hover{background:#6a4e18}button.secondary{background:var(--surface);color:var(--gold-dk)}button.secondary:hover{background:var(--gold-wash)}button.quiet{color:var(--ink);border-color:var(--rule-strong);background:0 0}button.danger{background:var(--surface);color:var(--bad);border-color:var(--bad)}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--rule-strong);border-radius:var(--radius-s);width:100%;padding:.45rem .6rem}textarea{resize:vertical;min-height:6rem}label{margin-bottom:.25rem;font-weight:500;display:block}.field{margin-bottom:.9rem}.field .hint{color:var(--muted);margin-top:.2rem;font-size:.85rem}.row{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.row>.grow{flex:1}.stack>*+*{margin-top:.75rem}.status{white-space:nowrap;border:1px solid;border-radius:999px;align-items:center;gap:.35rem;padding:.05rem .5rem;font-size:.85rem;display:inline-flex}.status:before{content:"";background:currentColor;border-radius:50%;width:.45rem;height:.45rem}.status.ok{color:var(--ok)}.status.warn{color:var(--warn)}.status.bad{color:var(--bad)}.status.info{color:var(--info)}.status.neutral{color:var(--muted)}.msg{border-inline-start:3px solid var(--info);background:var(--surface);margin:.75rem 0;padding:.6rem .9rem}.msg.error{border-color:var(--bad)}.msg.warn{border-color:var(--warn)}.msg.ok{border-color:var(--ok)}.empty{color:var(--muted);padding:1.5rem 0}.loading{color:var(--muted);padding:1rem 0}table.data{border-collapse:collapse;background:var(--surface);width:100%;font-size:.92rem}table.data th,table.data td{text-align:start;border-bottom:1px solid var(--rule);vertical-align:top;padding:.5rem .6rem}table.data th{color:var(--muted);background:var(--paper);font-size:.85rem;font-weight:600;position:sticky;top:0}table.data td.num{font-variant-numeric:tabular-nums}.shell{grid-template-columns:228px 1fr;min-height:100vh;display:grid}.rail{background:var(--surface);border-inline-end:1px solid var(--rule);flex-direction:column;gap:1rem;height:100vh;padding:1.25rem .9rem;display:flex;position:sticky;top:0}.brand{align-items:center;gap:.6rem;display:flex}.brand img{width:44px;height:auto}.brand b{font-size:1rem;display:block}.brand span{color:var(--muted);font-size:.8rem}.rail nav{flex-direction:column;gap:2px;display:flex}.rail nav a{color:var(--ink);border-radius:var(--radius-s);border-inline-start:3px solid #0000;padding:.45rem .6rem;text-decoration:none}.rail nav a.active{border-inline-start-color:var(--gold);background:var(--gold-wash);font-weight:600}.rail nav a:hover{background:var(--paper)}.rail .who{color:var(--muted);border-top:1px solid var(--rule);margin-top:auto;padding-top:.75rem;font-size:.85rem}.main{width:100%;max-width:1280px;padding:1.5rem 2rem 3rem}.pagehead{border-bottom:1px solid var(--rule);justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1rem;padding-bottom:.75rem;display:flex}.pagehead p{color:var(--muted);margin:0}.panel{background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-m);margin-bottom:1rem;padding:1rem 1.15rem}.split{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:1.25rem;display:grid}.split>*{min-width:0}.kv{grid-template-columns:max-content 1fr;gap:.25rem 1rem;margin:0;display:grid}.kv dt{color:var(--muted)}.kv dd{margin:0}.once{border:1px dashed var(--gold-dk);background:var(--gold-wash);padding:.75rem 1rem}.once code{word-break:break-all}details>summary{cursor:pointer;font-weight:500}.center{place-items:center;min-height:100vh;padding:1.5rem;display:grid}.sheet{background:var(--surface);border:1px solid var(--rule);border-top:3px solid var(--gold);border-radius:var(--radius-m);width:min(560px,100%);padding:1.75rem}.sheet.wide{width:min(860px,100%)}.sheet .brand{margin-bottom:1.25rem}.qr svg{width:180px;height:180px}ol.steps{padding-inline-start:1.2rem}.exam{grid-template-rows:auto auto 1fr;min-height:100vh;display:grid}.topbar{background:var(--surface);border-bottom:1px solid var(--rule);z-index:5;align-items:center;gap:1rem;padding:.55rem 1.25rem;display:flex;position:sticky;top:0}.topbar .brand img{width:34px}.clock{font-variant-numeric:tabular-nums;text-align:center;direction:ltr;min-width:6ch;font-size:1.35rem;font-weight:600}.clock.low{color:var(--bad)}.thread{background:var(--rule);z-index:5;height:3px;position:sticky;top:52px}.thread>i{background:var(--gold);height:100%;margin-inline-start:auto;transition:width 1s linear;display:block}.savestate{font-size:.85rem}.exam-body{grid-template-columns:230px minmax(0,1fr);display:grid}.tasknav{border-inline-end:1px solid var(--rule);background:var(--surface);padding:1rem .75rem}.tasknav button{text-align:start;width:100%;color:var(--ink);background:0 0;border:1px solid #0000;margin-bottom:4px;padding:.5rem .6rem;font-weight:400;display:block}.tasknav button[aria-current=true]{border-color:var(--gold);background:var(--gold-wash);font-weight:600}.tasknav .sec{color:var(--muted);font-size:.78rem;display:block}.taskview{grid-template-columns:minmax(320px,.9fr) minmax(0,1.3fr);min-height:calc(100vh - 56px);display:grid}.brief{border-inline-end:1px solid var(--rule);max-height:calc(100vh - 56px);padding:1.25rem 1.5rem;position:sticky;top:56px;overflow:auto}.brief .text{white-space:pre-wrap}.work{padding:1.25rem 1.5rem}.policy{border:1px solid var(--rule-strong);border-radius:999px;margin-bottom:.75rem;padding:.15rem .6rem;font-size:.85rem;display:inline-block}.policy.ai{border-color:var(--ok);color:var(--ok)}.asset{margin:.75rem 0}.asset pre,pre.code{text-align:left;font-family:var(--mono);border:1px solid var(--rule);white-space:pre;direction:ltr;background:#faf7f0;max-height:360px;margin:.25rem 0 0;padding:.6rem .75rem;font-size:.82rem;overflow:auto}.canned{border:1px solid var(--gold)}.canned-label{color:var(--gold-dk);font-size:.82rem;font-weight:600}.terminal{color:#ede6d6;border-radius:var(--radius-m);font-family:var(--mono);text-align:left;direction:ltr;background:#1e1c18;font-size:.84rem}.terminal .label{color:#c4a674;font-family:var(--font);text-align:right;direction:rtl;border-bottom:1px solid #3a352c;padding:.4rem .75rem;font-size:.82rem}.terminal .out{white-space:pre-wrap;height:340px;padding:.6rem .75rem;overflow:auto}.terminal .line-cmd{color:#f2d9a6}.terminal .line-rej{color:#e8a89c}.terminal .ev{color:#9c9280;font-size:.75rem}.terminal form{border-top:1px solid #3a352c;display:flex}.terminal select,.terminal input{color:#ede6d6;font-family:var(--mono);background:#26231e;border:0;border-radius:0}.terminal select{border-inline-end:1px solid #3a352c;width:auto;max-width:40%}.terminal button{border-radius:0}.editor{border:1px solid var(--rule-strong);border-radius:var(--radius-s);direction:ltr;background:#fffefb;grid-template-columns:auto 1fr;max-height:460px;display:grid;overflow:auto}.editor .gutter{font-family:var(--mono);color:#a89f8e;text-align:right;-webkit-user-select:none;user-select:none;white-space:pre;border-right:1px solid var(--rule);background:#f7f3ea;padding:.5rem;font-size:.82rem;line-height:1.5}.editor textarea{font-family:var(--mono);white-space:pre;resize:none;text-align:left;tab-size:2;direction:ltr;border:0;border-radius:0;min-height:18rem;padding:.5rem;font-size:.82rem;line-height:1.5;overflow:hidden}.filetabs{direction:ltr;gap:2px;display:flex}.filetabs button{background:var(--paper);color:var(--ink);border:1px solid var(--rule);border-radius:var(--radius-s) var(--radius-s) 0 0;font-family:var(--mono);border-bottom:0;padding:.3rem .8rem;font-size:.82rem}.filetabs button[aria-selected=true]{border-color:var(--rule-strong);background:#fffefb;font-weight:500}.orderlist{margin:0;padding:0;list-style:none}.orderlist li{background:var(--surface);border:1px solid var(--rule);align-items:center;gap:.5rem;margin-bottom:4px;padding:.45rem .6rem;display:flex}.orderlist li .pos{font-variant-numeric:tabular-nums;color:var(--gold-dk);min-width:1.5rem;font-weight:600}.orderlist li .t{flex:1}.orderlist li button{padding:.15rem .5rem}table.edit input,table.edit select{padding:.25rem .35rem;font-size:.88rem}table.edit td{padding:.25rem}.crit{border-top:1px solid var(--rule);grid-template-columns:1fr auto;gap:.5rem;padding:.6rem 0;display:grid}.levels{direction:ltr;gap:3px;display:flex}.levels button{background:var(--surface);color:var(--ink);border-color:var(--rule-strong);padding:.2rem .55rem}.levels button[aria-pressed=true]{background:var(--gold-dk);color:#fff;border-color:var(--gold-dk)}.answerbox{white-space:pre-wrap;background:var(--paper);border:1px solid var(--rule);max-height:300px;padding:.5rem .7rem;overflow:auto}@media (max-width:980px){.shell{grid-template-columns:1fr}.rail{flex-flow:wrap;height:auto;position:static}.rail nav{flex-flow:wrap}.main{padding:1rem}.split,.exam-body,.taskview{grid-template-columns:1fr}.brief{max-height:none;position:static}}
