:root{color-scheme:dark;--bg:#111416;--panel:#1a1f22;--line:#374047;--text:#f4f6f6;--muted:#abb6bc;--accent:#b1e29b}body{background:var(--bg);color:var(--text)}header{background:#121719;border-bottom:1px solid var(--line)}main{max-width:1560px}.bp-heading{display:flex;gap:24px;align-items:center;justify-content:space-between}.bp-heading h1{font-size:clamp(2rem,4vw,3.3rem);letter-spacing:-.04em;margin:.25em 0}.bp-heading p{max-width:680px}.bp-heading .primary{flex-shrink:0}.panel,.bp-toolbar{background:var(--panel);border:1px solid var(--line);border-radius:14px}.bp-workspace{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px;align-items:start}.bp-sidebar{padding:20px;position:sticky;top:12px}.bp-sidebar h2,.bp-ai h2{font-size:1.15rem}.bp-sidebar .actions{gap:8px}.bp-sidebar .actions button{padding:8px 11px}.bp-toolbar{display:flex;justify-content:space-between;gap:12px;padding:12px;align-items:center}.bp-toolbar .actions{margin:0;align-items:center}.bp-toolbar output{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}.bp-viewport{overflow:auto;height:65vh;min-height:320px;max-height:900px;border:1px solid var(--line);border-radius:12px;background:#080b0e;touch-action:pan-x pan-y;cursor:grab;overscroll-behavior:contain}.bp-viewport.placing{cursor:crosshair}.bp-viewport canvas{display:block;max-width:none;touch-action:inherit}.bp-mark{display:block;width:100%;text-align:left;background:#22292e;border:1px solid var(--line);border-left:4px solid #e7b978;padding:12px;margin:9px 0;border-radius:10px;white-space:normal}.bp-mark.done{border-left-color:#91d89c}.bp-mark strong,.bp-mark small{display:block}.bp-mark small{margin-top:5px;color:var(--muted);line-height:1.4}.bp-progress{border-block:1px solid var(--line);margin-top:20px;padding:14px 0;line-height:1.7}.bp-preview{background:#26342c;padding:14px;border-radius:10px;line-height:1.7}.bp-ai{margin-top:22px}.bp-check{display:flex!important;gap:10px;align-items:flex-start;font-weight:400;line-height:1.5}.bp-check input{width:22px;height:22px;min-height:22px;min-width:22px;padding:0;flex-shrink:0;margin-top:3px}.bp-answer{white-space:pre-wrap;line-height:1.65;margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:10px}.bp-import-preview{max-width:100%;max-height:350px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px}button,a.primary{min-height:42px}button[aria-pressed=true]{background:var(--accent);color:#111}.error{color:#ffb2a8}dialog{max-width:min(680px,94vw);background:var(--panel);color:var(--text);border:1px solid var(--line);max-height:90vh}dialog form{display:grid;gap:15px}dialog p{margin:0}dialog .actions{flex-wrap:wrap}body.locked #app,body.locked dialog{visibility:hidden}textarea{resize:vertical}#status{min-height:24px}#ai-question{max-width:100%}.bp-stage{min-width:0}#mark-list{max-height:42vh;overflow:auto}#main>.panel{margin-top:20px}[hidden]{display:none!important}@media(max-width:850px){.bp-workspace{grid-template-columns:1fr}.bp-sidebar{position:static}.bp-sidebar #mark-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;max-height:190px}.bp-sidebar .bp-mark{margin:0}.bp-heading{align-items:flex-start;flex-direction:column;gap:8px}.bp-heading .primary{width:100%}.bp-toolbar{flex-wrap:wrap}.bp-viewport{height:58vh}.bp-sidebar{padding:16px}.jobbar{align-items:flex-start}header nav{gap:9px}header nav a{font-size:.85rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(max-width:700px){.jobbar{grid-template-columns:1fr}#back-job{display:inline}dialog .actions{position:static}dialog{max-height:90dvh;overflow:auto}.bp-check{font-size:15px}}
