/* Smog Chemist: the operations desk. Board (SVG from art.js) on the left, work order on the right. */
.core{height:100%;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:16px;padding:16px;overflow:auto;color:var(--tlg-ink,#172c3a);font-size:16px;box-sizing:border-box}
.core *{box-sizing:border-box}
.core-bench,.core-panel{min-width:0;padding:16px;background:var(--tlg-surface,#fff);border:1px solid var(--tlg-border,#afc0c9);border-radius:16px;overflow:auto;box-shadow:var(--tlg-shadow-1,0 1px 3px rgba(0,0,0,.08))}
.core-bench{display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#2c2440,#1f2a38);border-color:#3c3556;color:#f2eefb}
.sc-board-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.core-kicker{margin:0;text-transform:uppercase;letter-spacing:.08em;font-weight:800;font-size:16px;color:#d9c9f5}
.sc-model-pill{font-size:16px;font-weight:700;padding:4px 12px;border-radius:999px;background:#ffd36b;color:#2c2440}
.core-scene{overflow:auto;border-radius:12px;border:3px solid #4b4370;background:#ffffff}
.core-scene svg{display:block;width:100%}
.sc-tag{font:600 20px system-ui,sans-serif;fill:#1b2238}.sc-h{font:800 21px system-ui,sans-serif;fill:#1b2238}.sc-ax{font:600 20px system-ui,sans-serif;fill:#33414d}
.sc-led{font:700 26px ui-monospace,Menlo,monospace;fill:#ffd36b}.sc-led2{font:600 20px ui-monospace,Menlo,monospace;fill:#9fd1a8}
.core-scene:focus-visible{outline:3px solid #ffd36b;outline-offset:2px}
.core-observation{margin:0;min-height:3em;line-height:1.45;font-weight:600;padding:10px 12px;border-radius:10px;background:#ffffff14;border-left:4px solid #ffd36b}
.core-bench .core-about summary{color:#f2eefb}
.core-about p{line-height:1.5}
.core-about summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.core-panel h3{font-size:20px;margin:0 0 12px}
.sc-given{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.sc-given-i{font-size:16px;padding:5px 10px;border-radius:8px;background:var(--tlg-surface-2,#eef2f6);border:1px solid var(--tlg-border,#c9d3db)}
.sc-formula{margin:0 0 6px;padding:8px 10px;border-radius:8px;background:var(--tlg-primary-tint,#efe8fa);line-height:1.45}
.sc-full p{margin:6px 0;line-height:1.45}
.sc-q{margin:12px 0 0}
.sc-q-k{display:block;margin:0 0 6px;font-weight:800}
.sc-q--build .sc-q-k::before{content:'Build · ';color:#5b3a8c}
.is-sealed .sc-q:not(.sc-q--build) .sc-q-k::after{content:' · sealed';font-weight:600;color:var(--tlg-text-muted,#5d6a75)}
.sc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.sc-cards--row{grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}
.core .sc-card{font:inherit;font-size:16px;text-align:left;display:flex;flex-direction:column;gap:2px;min-height:48px;padding:9px 11px;border-radius:10px;border:2px solid var(--tlg-border,#afc0c9);background:var(--tlg-surface,#fff);color:inherit;cursor:pointer;width:100%;margin:0}
.core .sc-card small,.core .sc-card .sc-fx,.core .sc-card .sc-cost{font-size:16px;font-weight:500;color:var(--tlg-text-muted,#4d5a66)}
.core .sc-card .sc-cost{font-weight:800;color:#5b3a8c}
.core .sc-card[aria-checked="true"]{border-color:#5b3a8c;background:var(--tlg-primary-tint,#efe8fa);box-shadow:inset 0 0 0 1px #5b3a8c}
.core .sc-card[aria-checked="true"] b::before{content:'● ';color:#5b3a8c}
.core .sc-card:hover:not(:disabled){border-color:#7b5bb0}
.sc-num{display:flex;align-items:center;gap:8px}
.core .sc-num-in{font:inherit;font-size:18px;font-weight:700;width:11em;max-width:100%;min-height:46px;padding:8px 10px;border-radius:8px;border:2px solid var(--tlg-border,#afc0c9);background:var(--tlg-surface,#fff);color:inherit}
.sc-num-u{font-weight:700}
.sc-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.core .sc-actions button{font:inherit;font-size:16px;font-weight:800;min-height:46px;padding:10px 16px;border-radius:10px;border:2px solid #5b3a8c;cursor:pointer;flex:1 1 180px}
.core .core-run{background:#5b3a8c;color:#fff}
.core .core-revise{background:var(--tlg-surface,#fff);color:#5b3a8c}
.core button:disabled{opacity:.5;cursor:default}
.core :focus-visible{outline:3px solid #dd9823;outline-offset:3px}
.core-status{line-height:1.4;color:var(--tlg-text-muted,#4d5a66)}
html[data-theme="dark"] .core .sc-card[aria-checked="true"]{background:#3a2d55}
html[data-theme="dark"] .core .core-revise,html[data-theme="dark"] .core .sc-card[aria-checked="true"] b::before,html[data-theme="dark"] .sc-q--build .sc-q-k::before,html[data-theme="dark"] .core .sc-card .sc-cost{color:#cdb6f2}
html[data-theme="dark"] .sc-formula{background:#2e2645}
.sc-stamp{transform-box:fill-box}
@media (prefers-reduced-motion:no-preference){.sc-stamp{animation:sc-pop .45s cubic-bezier(.2,1.4,.4,1) both}}
@keyframes sc-pop{from{opacity:0}to{opacity:1}}
body .ps-kicker,body .ps-hint-note,body .ps-badge{font-size:16px}
@media(max-width:900px){.core{height:auto;grid-template-columns:1fr;padding:10px}.core-bench,.core-panel{overflow:visible;padding:12px}.core-scene svg{min-width:600px}.core-panel{padding-bottom:30px}}
@media(prefers-reduced-motion:reduce){.core *{animation:none!important;transition:none!important}}
