:root { color-scheme: dark; --ink: #f5f4ef; --muted: #aaa9a2; --line: #343631; --panel: #171916; --canvas: #0d0f0d; --lime: #c8ff66; --red: #ff8878; --blue: #84b7ff; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); }
button, textarea { font: inherit; }
button { min-height: 2.55rem; border: 1px solid var(--lime); border-radius: .45rem; background: var(--lime); color: #11150d; padding: .62rem .9rem; font-weight: 750; cursor: pointer; }
button:hover { filter: brightness(.92); }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .42; }
button.secondary { border-color: #51554d; background: #252822; color: var(--ink); }
button.danger { border-color: #6b3833; background: #341c19; color: #ffd9d4; }
.masthead { display: flex; min-height: 8rem; align-items: flex-end; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); padding: 2rem clamp(1rem,4vw,4rem); background: linear-gradient(110deg,#141c14,#0d0f0d 55%); }
.masthead h1 { margin: 0; font-size: clamp(2rem,5vw,4rem); letter-spacing: -.06em; }
.kicker, .section-label { margin: 0 0 .35rem; color: var(--lime); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.runtime { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .84rem; }
.runtime-dot { width: .65rem; height: .65rem; border-radius: 99px; background: #f1b552; box-shadow: 0 0 0 4px #f1b55220; }
.runtime.ready .runtime-dot { background: var(--lime); box-shadow: 0 0 0 4px #c8ff6620; }
.runtime.error .runtime-dot { background: var(--red); box-shadow: 0 0 0 4px #ff887820; }
.workbench { display: grid; gap: 1rem; max-width: 1600px; margin: auto; padding: clamp(1rem,3vw,2.5rem); }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: var(--panel); }
.brief { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem; }
.brief h2, .panel-heading h2 { margin: 0; font-size: 1.05rem; }
.brief p:not(.section-label) { max-width: 62ch; margin: .45rem 0 0; color: var(--muted); }
.brief-actions, .approval-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.workspace-grid { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(320px,1.45fr) minmax(320px,1.2fr); gap: 1rem; min-height: 35rem; }
.review-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; }
.panel-heading { display: flex; min-height: 4.7rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem; }
.badge { max-width: 24rem; overflow: hidden; border: 1px solid #3f443b; border-radius: 99px; color: var(--muted); padding: .3rem .55rem; font: .7rem ui-monospace,monospace; text-overflow: ellipsis; white-space: nowrap; }
.files .panel-heading { align-items: flex-start; flex-direction: column; gap: .55rem; }
#file-tree { display: grid; gap: .35rem; padding: .7rem; }
#file-tree button { display: flex; width: 100%; justify-content: flex-start; border-color: transparent; background: transparent; color: var(--muted); font: .82rem ui-monospace,monospace; }
#file-tree button[aria-current="page"] { border-color: #4c5542; background: #293022; color: var(--lime); }
.boundary-note { display: grid; gap: .25rem; margin: .7rem; border-top: 1px solid var(--line); padding: 1rem .3rem; color: var(--muted); font-size: .75rem; }
.boundary-note strong { color: var(--ink); }
.editor { display: grid; grid-template-rows: auto 1fr; }
#file-editor { width: 100%; min-height: 28rem; resize: vertical; border: 0; background: #11130f; color: #dfe6d7; padding: 1.15rem; font: .78rem/1.55 ui-monospace,monospace; tab-size: 2; }
.preview { display: grid; grid-template-rows: auto 1fr; }
#site-preview { width: 100%; min-height: 28rem; border: 0; background: white; }
.proposal, .checks { min-height: 22rem; }
.empty-state { margin: 0; padding: 1.3rem; color: var(--muted); }
.proposal-path { margin: 0; border-bottom: 1px solid var(--line); padding: .9rem 1rem; color: var(--blue); font: .8rem ui-monospace,monospace; }
.diff { max-height: 21rem; overflow: auto; margin: 0; padding: 1rem; background: #10120f; font: .73rem/1.45 ui-monospace,monospace; white-space: pre-wrap; }
.diff-add { color: #b9f3ad; background: #17301b; }
.diff-remove { color: #ffc4bc; background: #381e1b; }
.diff-same { color: #777c72; }
.approval-actions { border-top: 1px solid var(--line); padding: 1rem; }
.check-group { border-bottom: 1px solid var(--line); padding: 1rem; }
.check-group h3 { margin: 0 0 .4rem; font-size: .9rem; }
.check-group.pass h3 { color: var(--lime); }
.check-group.fail h3 { color: var(--red); }
.check-group ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .78rem; }
.ledger { min-height: 12rem; }
.activity-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; border-bottom: 1px solid var(--line); padding: .8rem 1rem; color: var(--muted); font-size: .78rem; }
.activity-list code { color: var(--ink); font: .72rem ui-monospace,monospace; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 1.4rem clamp(1rem,4vw,4rem); color: var(--muted); font-size: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1050px) { .workspace-grid { grid-template-columns: 13rem 1fr; } .preview { grid-column: 1 / -1; min-height: 34rem; } #site-preview { min-height: 29rem; } }
@media (max-width: 720px) { .masthead, .brief, footer { align-items: flex-start; flex-direction: column; } .workspace-grid, .review-grid { grid-template-columns: 1fr; } .preview { grid-column: auto; } .activity-list li { grid-template-columns: 1fr; gap: .25rem; } }
