/* Layout adapter. Visual tokens/materials/navigation originate in the copied Production Hub CSS. */
html{color-scheme:dark}body{font-size:14px}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);background:rgba(255,255,255,.055);padding:10px 14px;border-radius:16px;color:var(--text);transition:background .22s,border-color .22s,transform .22s}button:hover{background:rgba(255,255,255,.11);border-color:var(--line2)}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:rgba(255,255,255,.94);color:#07090d}.danger,.error{color:var(--red)}input,select,textarea{border:1px solid var(--line);background:rgba(255,255,255,.055);color:var(--text);padding:12px 14px;border-radius:17px;max-width:100%}select option{background:#222938;color:#eee}input:focus,select:focus,textarea:focus{outline:2px solid rgba(168,204,255,.35);outline-offset:2px}label{display:grid;gap:8px;margin:15px 0;color:var(--muted)}textarea{width:100%;min-height:85px;resize:vertical}.brand{display:flex;align-items:center;gap:10px}.brand img{width:42px;height:42px;border-radius:13px;background:white;object-fit:contain;padding:4px}.brand .top-title{min-width:140px}.topbar{overflow:visible}.nav{min-width:0}.main{min-height:75vh}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}.page-head h1{font-size:30px;font-weight:700;letter-spacing:-.042em;line-height:1.06;margin:9px 0}.page-head p{font-size:12.5px;line-height:1.65;color:var(--muted);margin:0}h2{font-size:21px;letter-spacing:-.025em}h3{font-size:15px}.eyebrow{font-size:10px;color:rgba(181,202,235,.60)}small,.muted{color:var(--muted)}p{line-height:1.7}.grid{grid-template-columns:repeat(auto-fill,minmax(310px,1fr))}.project{min-height:270px;display:flex;align-items:flex-start;flex-direction:column}.project h2{margin:18px 0 12px}.project .footer{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:auto;padding-top:18px}.project-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px 24px;margin:16px 0;width:100%;font-size:12px}.project-stats small{display:block;margin-bottom:4px}.project-picker{max-width:280px;padding:8px 12px;font-size:12px;border-radius:12px}.notice{border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:18px;padding:15px 18px;line-height:1.7;color:var(--muted);font-size:12px;margin-bottom:20px}.pill{display:inline-flex;align-items:center;font-size:10px;font-weight:650;padding:5px 9px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.045);color:var(--muted)}.pill.green{background:rgba(87,230,179,.10);border-color:rgba(87,230,179,.20);color:var(--green)}.pill.amber{background:rgba(255,178,101,.10);border-color:rgba(255,178,101,.20);color:var(--orange)}.pill.gray{background:rgba(112,168,255,.07);color:rgba(211,226,247,.72)}.metrics{display:flex;gap:18px;margin:22px 0}.metric{flex:1;border:1px solid var(--line);background:rgba(255,255,255,.045);border-radius:24px;padding:20px}.metric strong{display:block;font-size:28px;margin-top:7px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.toolbar,.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.toolbar{margin:18px 0}.toolbar input{min-width:245px}.table-wrap{border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.025);overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{font-weight:650;color:var(--muted);text-align:left;background:rgba(255,255,255,.04);padding:15px}td{padding:16px 15px;border-top:1px solid rgba(255,255,255,.075);vertical-align:middle}tr:hover td{background:rgba(255,255,255,.035)}td.title{white-space:normal;min-width:135px}td button{font-size:11px;padding:7px 10px;border-radius:10px}.empty{text-align:center;padding:38px 18px;color:var(--muted)}.check{display:flex;align-items:center;gap:9px}.check input{width:auto}.checks{display:flex;gap:16px;flex-wrap:wrap}.hub-dialog{overflow:auto;width:min(820px,calc(100% - 24px))}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-head h2{margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-24px;background:#181d28;padding:16px 0;margin-top:22px;border-top:1px solid var(--line);z-index:10}.hub-dialog.drawer{margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:min(940px,94vw);border-radius:26px 0 0 26px;padding:26px}.scene{border-top:1px solid var(--line);margin-top:15px;padding-top:15px}.scene .fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.scene textarea{min-height:65px}details summary{cursor:pointer;padding:13px 0;color:rgba(211,226,247,.72)}pre{white-space:pre-wrap;word-break:break-word;max-height:280px;overflow:auto;font-size:12px;line-height:1.7;color:var(--muted)}.history .row{padding:14px 0;border-bottom:1px solid var(--line)}.read{opacity:.6}.drop{border:1px dashed #ffffff50;border-radius:15px;padding:22px;text-align:center;margin:14px 0}.drop.drag-over{background:#ffffff18}progress{width:100%;accent-color:#78cbb4;height:14px}.step{font-size:11px;border:1px solid var(--line);border-radius:10px;padding:5px 8px;display:inline-block;margin-bottom:8px}.overview-history{margin-top:18px}.error{white-space:pre-wrap}.success{color:var(--green)}.login{width:min(470px,92vw);margin:10vh auto}.login>.brand{justify-content:center;margin-bottom:30px}.login h1{font-size:27px}.login input{width:100%}.login .primary{width:100%;margin-top:12px}.login .notice{margin-top:22px}.footer-note{color:var(--muted);font-size:11px}#toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:1200;padding:14px 20px;border-radius:18px;background:rgba(24,29,40,.97);border:1px solid #ffffff30;backdrop-filter:blur(24px);box-shadow:0 18px 60px #0005;display:none;max-width:90vw;font-size:13px}
@media(max-width:1050px){.topbar{flex-wrap:wrap;height:auto!important}.nav{flex-basis:100%;width:100%;order:3}.metrics{flex-wrap:wrap}.metric{min-width:130px}.brand .top-title{min-width:100px}}@media(max-width:720px){.page-head{align-items:flex-start;flex-wrap:wrap}.two-cols,.scene .fields{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.hub-account{gap:7px}.hub-account select{max-width:180px}.hub-dialog.drawer{width:100%;border-radius:20px 20px 0 0}.table-wrap{border-radius:18px}.page-head h1{font-size:27px}.nav button{min-height:42px}.toolbar input{min-width:0;width:100%}}

/* Grounded Scene review: immutable source next to editable semantic draft. */
.source-breakdown-compare{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.source-pane,.breakdown-pane{min-width:0;padding:14px;border:1px solid #445066;border-radius:10px;background:#141b26}
.source-pane pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:720px;overflow:auto;font-size:14px;line-height:1.8}
.breakdown-pane .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.breakdown-pane label{color:#d9e8ff}.breakdown-pane textarea{min-height:78px}
.quality-human{margin:18px 0;padding:16px;border:1px solid #5f778d;border-radius:10px}.quality-human fieldset{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:850px){.source-breakdown-compare{grid-template-columns:1fr}}

/* Immutable source hashes must remain readable on narrow screens. */
.workflow-card small { overflow-wrap: anywhere; word-break: break-word; }
