* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--fg1); background: var(--bg-app); font-family: var(--font-ui); }
a { color: var(--teal-bright); }
h1, h2, h3, p { margin: 0; }
h1 { margin-top: 5px; font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 13px; }
.eyebrow { color: var(--fg-muted); font-size: 10px; font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; }
.topbar { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 28px; border-bottom: 1px solid var(--border-hair); background: color-mix(in oklab, var(--bg-app) 92%, transparent); backdrop-filter: blur(16px); }
#report { display: grid; gap: 30px; width: min(1560px, 100%); margin: 0 auto; padding: 28px; }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.panel, .model-card { border: 1px solid var(--border-hair); border-radius: var(--r-md); background: var(--white-a05); }
.panel { padding: 18px; }
.lede { margin-top: 9px; max-width: 82ch; color: var(--fg3); font-size: 13px; line-height: 1.55; }
.status { display: inline-flex; align-items: center; width: fit-content; margin-top: 12px; padding: 5px 9px; border: 1px solid; border-radius: var(--r-full); font: 10px/1 var(--font-mono); }
.status.pass, .status.complete { color: var(--approved); }
.status.block, .status.unavailable { color: var(--rejected); }
.status.skipped { color: var(--fg-muted); }
.status.ready, .status.manual { color: var(--contender); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; overflow: hidden; }
.fact { min-height: 90px; padding: 16px; background: var(--white-a05); }
.fact strong, .fact span { display: block; }
.fact strong { margin-top: 7px; font: 600 15px/1.2 var(--font-mono); }
.fact span { margin-top: 6px; color: var(--fg-muted); font-size: 10px; line-height: 1.4; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.section-head p { max-width: 70ch; color: var(--fg-muted); font-size: 11px; line-height: 1.5; }
.asset-layout { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); gap: 14px; }
.frame-card img, .asset img, .model-media img, .model-media video { display: block; width: 100%; background: var(--gray-1d); border-radius: var(--r-sm); }
.frame-card img { margin-top: 12px; }
.asset-groups { display: grid; gap: 14px; }
.character-group { padding: 14px; border: 1px solid var(--border-hair); border-radius: var(--r-md); }
.asset-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.asset { min-width: 0; }
.asset img { aspect-ratio: 1 / 1.08; object-fit: cover; object-position: top center; }
.asset small { display: block; margin-top: 5px; overflow: hidden; color: var(--fg-muted); font: 8px/1.35 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.authority { margin-top: 9px; color: var(--fg-muted); font: 9px/1.45 var(--font-mono); }
.prompt { padding: 14px; color: var(--fg3); background: var(--gray-131); border: 1px solid var(--border-hair); border-radius: var(--r-sm); font: 10px/1.55 var(--font-mono); white-space: pre-wrap; }
.trials { display: grid; gap: 14px; }
.trial-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 14px; }
.trial-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.trial-media figure { min-width: 0; margin: 0; }
.trial-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.trial-media figcaption { margin-top: 7px; color: var(--fg-muted); font: 9px/1.4 var(--font-mono); }
.trial-note { margin-top: 10px; padding: 9px; color: var(--contender); border: 1px solid color-mix(in oklab, var(--contender) 40%, transparent); border-radius: var(--r-sm); font-size: 10px; line-height: 1.45; }
.trial-id { display: block; margin-top: 10px; overflow-wrap: anywhere; color: var(--fg-faint); font: 8.5px/1.5 var(--font-mono); }
.gate-card { padding: 16px; }
.gate-two { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-hair); }
.gate-detail { margin-top: 8px; color: var(--fg-muted); font-size: 10px; line-height: 1.5; }
.assignment-list, .check-list { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.assignment-list li, .check-list li { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding-top: 6px; border-top: 1px solid var(--border-hair); font-size: 10px; }
.check-list .fail { color: var(--rejected); }
.check-list .pass { color: var(--approved); }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.model-card { display: grid; align-content: start; min-width: 0; overflow: hidden; }
.model-body { display: grid; gap: 9px; padding: 14px; }
.model-card header { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.model-card p { color: var(--fg-muted); font-size: 10.5px; line-height: 1.5; }
.model-card code { overflow: hidden; color: var(--fg-faint); font: 8.5px/1.45 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.empty-output { display: grid; min-height: 210px; place-items: center; padding: 18px; color: var(--fg-faint); background: var(--gray-1d); text-align: center; font-size: 11px; }
.loading { color: var(--fg-muted); }
.source-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.protocol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.protocol-card { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px; border: 1px solid var(--border-hair); border-radius: var(--r-md); background: var(--white-a05); }
.protocol-card > span { display: grid; width: 24px; height: 24px; place-items: center; color: var(--on-brand); background: var(--teal); border-radius: 50%; font: 700 10px/1 var(--font-mono); }
.protocol-card strong { display: block; color: var(--fg2); font-size: 11px; }
.protocol-card p { margin-top: 6px; color: var(--fg-muted); font-size: 9.5px; line-height: 1.5; }
.source-card { display: grid; gap: 7px; min-width: 0; padding: 14px; color: var(--fg2); text-decoration: none; border: 1px solid var(--border-hair); border-radius: var(--r-md); background: var(--white-a05); }
.source-card:hover { border-color: var(--teal-a50); }
.source-card strong { font-size: 11px; }
.source-card code { overflow: hidden; color: var(--fg-faint); font: 8px/1.4 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .models, .protocol { grid-template-columns: repeat(2, minmax(0, 1fr)); } .asset-layout, .summary, .trial-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { #report { padding: 18px; } .models, .protocol, .facts, .source-list { grid-template-columns: 1fr; } .asset-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .topbar { padding: 0 18px; } }
