/* MatterGate design tokens: readable content, restrained application chrome. */
:root {
  --paper:#f7f8f4; --surface:#fff; --sidebar-bg:#f0f3ed; --ink:#24342d;
  --muted:#536356; --green:#245b45; --green-hover:#194633; --green-soft:#eaf2e5;
  --line:#dce3d7; --amber:#79521b; --amber-bg:#fbf0da; --danger:#8d392d;
  --sidebar:246px; --text:16px; --support:14px; --meta:12px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px;
  --radius:8px; color-scheme:light; font-size:16px;
}
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font:400 var(--text)/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:var(--green); text-decoration:none; text-underline-offset:3px; }
a:hover { text-decoration:underline; }
button,input,textarea,select { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; border:0; }
button:disabled { cursor:wait; opacity:.65; }
:focus-visible { outline:3px solid #347654; outline-offset:4px; }
[hidden] { display:none!important; }
p { margin:0 0 16px; }
h1,h2,h3 { color:var(--ink); font-weight:650; margin:0 0 16px; line-height:1.25; }
h1 { font-size:36px; letter-spacing:-1.2px; }
h2 { font-size:23px; letter-spacing:-.45px; }
h3 { font-size:18px; }
em { font-family:Georgia,serif; color:#52734b; font-weight:400; }
small,time,code,pre { font-size:var(--meta); }
.mono,code,pre { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap:anywhere; }
small { display:block; color:var(--muted); }
.supporting { font-size:var(--support); color:var(--muted); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.skip-link { position:fixed; top:8px; left:16px; transform:translateY(-150%); background:white; padding:12px; z-index:100; }
.skip-link:focus { transform:none; }
.sidebar { width:var(--sidebar); position:fixed; inset:0 auto 0 0; padding:26px 18px 0; background:var(--sidebar-bg); border-right:1px solid var(--line); display:flex; flex-direction:column; overflow:auto; }
.brand { display:flex; align-items:center; gap:10px; font-size:23px; font-weight:700; letter-spacing:-.7px; color:var(--ink); }
.brand:hover { text-decoration:none; }
.brand small { font-size:12px; font-weight:400; letter-spacing:0; margin-top:3px; }
.brand-mark { width:36px; height:40px; background:var(--green); color:white; border-radius:9px; display:flex; justify-content:center; align-items:center; font:700 27px Georgia,serif; flex-shrink:0; }
.brand-mark span { font-size:20px; margin:10px 0 0 -7px; }
.workspace-label { display:flex; align-items:center; gap:7px; margin-top:28px; font-size:13px; color:var(--muted); }
.tiny-dot,.run-dot { width:6px; height:6px; border-radius:50%; background:#608657; display:inline-block; flex-shrink:0; }
.demo-label { border:1px solid var(--line); padding:2px 5px; margin-left:auto; font-size:12px; border-radius:3px; }
.sidebar nav { display:flex; flex-direction:column; gap:4px; margin:18px 0; }
.nav-item { display:flex; align-items:center; gap:10px; padding:10px; color:var(--muted); border-radius:5px; font-size:14px; min-height:44px; }
.nav-item.active,.nav-item:hover { background:#e0eadb; color:var(--green); text-decoration:none; }
.nav-symbol { font-size:20px; }
.nav-arrow { margin-left:auto; }
.sidebar-section { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); letter-spacing:.05em; margin:10px 0; }
.recent-list { min-height:0; overflow-y:auto; }
.recent-list>a { display:flex; align-items:flex-start; gap:9px; padding:10px 3px; font-size:14px; color:var(--ink); }
.recent-list small { font-size:12px; line-height:1.5; margin-top:3px; }
.run-dot { margin-top:9px; background:#69766c; }
.run-dot.denied,.run-dot.blocked,.run-dot.model_unavailable { background:#94702c; }
.run-dot.approved,.run-dot.ready_for_review { background:#46793a; }
.recent-list>p { font-size:14px; color:var(--muted); }
.sidebar-bottom { margin-top:auto; padding:22px 3px; font-size:13px; color:var(--muted); }
.boundary-icon { font-size:28px; color:#52734b; }
.sidebar-bottom p { font-size:13px; margin:8px 0; }
.identity { display:flex; align-items:center; gap:9px; margin:0 -18px; padding:16px 14px; border-top:1px solid var(--line); flex-shrink:0; }
.avatar { width:33px; height:33px; border-radius:50%; background:#dfe9d7; border:1px solid #c8d5c1; display:grid; place-items:center; font-size:12px; flex-shrink:0; }
.identity label { font-size:12px; color:var(--muted); min-width:0; flex:1; }
.identity select { width:100%; font-size:13px; padding:5px 0; color:var(--ink); background:transparent; border:0; }
.shell { margin-left:var(--sidebar); min-width:0; min-height:100vh; display:flex; flex-direction:column; }
.topbar { border-bottom:1px solid var(--line); padding:18px 32px; display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:68px; }
.breadcrumb { font-size:14px; color:var(--muted); }
.breadcrumb span { margin:0 12px; }
.topbar-right { display:flex; align-items:center; gap:18px; }
.environment { font-size:12px; color:var(--muted); letter-spacing:.04em; }
.mode-pill { font-size:12px; border:1px solid var(--line); background:#edf2e7; padding:6px 9px; border-radius:4px; color:#465e3c; white-space:nowrap; }
.mode-pill span { display:inline-block; width:5px; height:5px; border-radius:50%; background:#52734b; margin-right:6px; }
main { width:100%; max-width:1440px; margin:0 auto; padding:32px; flex:1; min-width:0; }
footer { border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; padding:20px 32px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.footer-mark { margin-left:8px; }
.page-eyebrow { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:#52674b; font-size:12px; font-weight:600; letter-spacing:.06em; margin-bottom:26px; }
.eyebrow-line { width:30px; height:1px; background:#b7c8ae; }
.hero { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:36px; margin-bottom:36px; align-items:center; }
.hero-copy h1 { font-size:clamp(36px,3.2vw,46px); letter-spacing:-1.5px; }
.hero-copy>p { max-width:56ch; color:var(--muted); }
.hero-note { display:flex; gap:8px; font-size:13px; color:var(--muted); margin-top:16px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding:10px 16px; border:1px solid transparent; border-radius:5px; font-size:14px; font-weight:600; line-height:1.5; text-align:center; }
.button:hover { text-decoration:none; }
.button.primary { background:var(--green); color:white; }
.button.primary:hover { background:var(--green-hover); }
.button.secondary { background:white; border-color:#b9c9b0; color:var(--green); }
.button.secondary:hover { background:#f0f5eb; }
.button.danger { color:var(--danger); background:#fbefeb; border-color:#ddbab1; }
.workflow-card { background:#eef3e7; border:1px solid #d6e1cc; border-radius:var(--radius); padding:24px; }
.card-overline { display:flex; justify-content:space-between; font-size:12px; font-weight:600; color:#48633b; letter-spacing:.05em; margin-bottom:22px; }
.workflow-step { display:flex; align-items:center; gap:12px; }
.workflow-number { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:#dfe9d4; color:#48633b; font-size:12px; flex-shrink:0; }
.workflow-step strong { font-size:14px; }
.workflow-step p { margin:4px 0 0; font-size:14px; color:var(--muted); }
.workflow-icon { margin-left:auto; color:#567049; }
.workflow-connector { height:16px; border-left:1px dashed #a9bba0; margin:5px 14px; }
.workflow-foot { display:flex; align-items:center; gap:7px; border-top:1px solid #d6e1cc; margin-top:20px; padding-top:14px; font-size:13px; color:var(--muted); }
.section-heading,.panel-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom:20px; }
.section-heading h2,.panel-heading h2 { margin:4px 0 0; }
.section-kicker,.quiet-label,.scenario-index { font-size:12px; color:#52674b; font-weight:600; letter-spacing:.04em; }
.scenario-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.scenario { background:white; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; padding:22px 22px 0; display:flex; flex-direction:column; }
.scenario-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.scenario-icon { width:32px; height:32px; display:grid; place-items:center; font-size:22px; background:#eef3e7; color:#48633b; border-radius:4px; }
.scenario h3 { font-size:24px; letter-spacing:-.5px; margin:10px 0 14px; }
.scenario>p { color:var(--muted); font-size:15px; }
.scenario-meta { display:flex; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--muted); margin:6px 0 18px; }
.scenario-meta>span { border:1px solid var(--line); border-radius:3px; padding:4px 7px; }
.scenario-button { display:flex; align-items:center; justify-content:space-between; gap:16px; background:transparent; border-top:1px solid var(--line); padding:14px 22px; margin:auto -22px 0; width:calc(100% + 44px); color:var(--green); font-size:14px; min-height:48px; text-align:left; }
.scenario-button:hover { background:#eff5e9; }
.tag { display:inline-block; background:#eef2e9; color:#435a38; border-radius:4px; padding:4px 8px; font-size:12px; line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
.tag.green { background:var(--green-soft); color:#365c2d; }
.tag.amber { color:var(--amber); background:var(--amber-bg); }
.tag.large { padding:7px 10px; }
.ledger-section { margin-top:32px; }
.history-filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.history-filters a { font-size:14px; padding:8px 12px; border-radius:5px; border:1px solid var(--line); min-height:40px; }
.history-filters a[aria-current] { background:var(--green); color:white; border-color:var(--green); }
.table-wrap { position:relative; border:1px solid var(--line); border-radius:var(--radius); background:white; overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; }
th,td { padding:14px 16px; border-bottom:1px solid var(--line); font-size:14px; vertical-align:middle; }
th { font-size:12px; background:#eff3e9; color:#435a38; }
td small { margin-top:5px; }
td a { display:inline-flex; min-width:32px; min-height:36px; align-items:center; justify-content:center; }
tr:last-child td { border-bottom:0; }
.empty-state { padding:24px; border:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:16px; border-radius:var(--radius); }
.empty-state p { margin:6px 0 0; color:var(--muted); }
.disclosure { display:flex; gap:10px; margin-top:24px; color:var(--muted); font-size:12px; }
.disclosure p { margin:0; }
.page-heading { margin-bottom:28px; }
.page-heading h1 { font-size:38px; }
.page-heading>p,.panel-intro { color:var(--muted); }
.panel { padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); margin-bottom:22px; min-width:0; }
.panel-intro { font-size:15px; max-width:80ch; }
.form-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(200px,1fr); gap:32px; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; }
.research-form label,#review-form label { display:block; font-size:14px; font-weight:600; margin-bottom:20px; }
.research-form input,.research-form select,.research-form textarea,#review-form textarea { display:block; width:100%; min-width:0; min-height:44px; padding:10px 12px; margin-top:8px; border:1px solid #b9c9b0; border-radius:5px; background:#fcfdf9; color:var(--ink); font-size:16px; line-height:1.6; }
textarea { resize:vertical; }
.research-form small { font-size:13px; font-weight:400; margin-top:8px; }
.form-actions { display:flex; justify-content:space-between; gap:16px; align-items:center; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:20px; }
.form-actions>a { font-size:14px; }
.form-help h3 { font-size:26px; }
.form-help ol { padding-left:20px; color:var(--muted); }
.form-help li { margin-bottom:12px; }
.help-note,.review-context { background:#eff4e8; border-radius:5px; padding:16px; color:#405c36; font-size:14px; line-height:1.65; }
.help-note { margin:20px 0; }
.form-error { font-size:14px; color:var(--danger); background:#fcf0e9; padding:12px; border-radius:5px; }
.run-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.run-heading p { font-size:14px; color:var(--muted); }
.run-heading time { font-size:13px; }
.run-title { font-size:34px; margin-bottom:12px; }
.run-tabs { display:flex; gap:24px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin:12px 0 22px; }
.run-tabs a { border-bottom:2px solid transparent; padding:12px 0; font-size:14px; color:var(--muted); }
.run-tabs a.selected { border-color:var(--green); color:var(--green); font-weight:600; }
.next-action { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 22px; margin-bottom:20px; background:white; border:1px solid var(--line); border-left:3px solid var(--green); border-radius:6px; }
.next-action>div:first-child { min-width:0; flex:1; }
.next-action h2 { font-size:20px; margin-bottom:7px; }
.next-action p { font-size:15px; color:var(--muted); margin-bottom:6px; max-width:82ch; }
.next-action .resolution { margin-top:10px; color:var(--amber); }
.next-action code { display:inline-block; margin-top:10px; color:var(--amber); }
.next-action ul { padding-left:20px; font-size:14px; color:var(--muted); }
.next-buttons { display:flex; flex-direction:column; gap:10px; flex-shrink:0; max-width:240px; }
.notice-warning { border-left-color:#99702d; background:#fffdf8; }
.scope-banner { background:var(--green-soft); border:1px solid #cfdec5; border-radius:5px; display:flex; align-items:center; gap:14px; padding:16px 20px; margin-bottom:22px; }
.scope-banner>div { flex:1; min-width:0; }
.scope-banner strong { font-size:15px; }
.scope-banner p { margin:4px 0 0; font-size:13px; color:var(--muted); }
.scope-icon { font-size:25px; color:#46723b; }
.scope-denied { background:#fcf3e2; border-color:#e5d4b5; }
.scope-denied .scope-icon { color:var(--amber); }
.fixture-option { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 20px; margin-bottom:22px; border:1px dashed #c7d1bf; border-radius:6px; }
.fixture-option p { color:var(--muted); font-size:14px; margin:4px 0 0; }
.reading-workspace { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:22px; align-items:start; }
.evidence-panel { min-width:0; }
.reading-workspace>.evidence-panel { position:sticky; top:20px; max-height:85vh; overflow:auto; }
.recommendation { font-size:14px; font-weight:600; color:#435a38; background:#eff4e8; padding:10px 12px; border-radius:4px; margin-bottom:20px; }
.claim-section { border-bottom:1px solid var(--line); padding-bottom:8px; margin-bottom:20px; }
.claim-section h3 { font-size:16px; color:#435a38; }
.cited-statement { border-radius:4px; scroll-margin-top:25px; }
.cited-statement p { line-height:1.8; }
.summary-statement { font-size:18px; }
.inline-refs { white-space:normal; }
.citation-ref { display:inline-flex; justify-content:center; align-items:center; min-width:30px; min-height:32px; padding:0 5px; font-size:14px; font-weight:700; color:#245b45; background:#edf3e8; border-radius:4px; }
.citation-ref:hover { background:#dae8ce; }
.cited-statement:target,.cited-statement:focus { background:#f1f6eb; }
.evidence { border-top:1px solid var(--line); scroll-margin-top:20px; }
.evidence summary { display:grid; grid-template-columns:24px minmax(0,1fr) 18px; gap:10px; align-items:center; padding:16px 0; cursor:pointer; list-style:none; }
.evidence summary::-webkit-details-marker { display:none; }
.evidence summary strong { font-size:15px; line-height:1.5; }
.evidence summary small { font-size:12px; margin-top:5px; }
.evidence-number { width:24px; height:26px; display:grid; place-items:center; color:#435a38; font-size:12px; background:#edf3e7; border-radius:4px; }
.excerpt { border-left:2px solid #6e925a; padding:16px; margin-bottom:16px; background:#f4f7ef; outline-offset:0; }
.excerpt>p { white-space:pre-wrap; font-size:16px; line-height:1.75; }
.source-meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:12px; margin-bottom:10px; }
.excerpt>a { font-size:14px; display:inline-block; margin:8px 0; }
.source-provenance { font-size:12px; margin-top:12px; }
.source-provenance summary { display:list-item; font-size:12px; padding:8px 0; }
.source-provenance p,.source-provenance code { font-size:12px; }
.return-to-claim { display:block!important; }
.return-to-claim[hidden] { display:none!important; }
.timeline article { display:flex; gap:14px; position:relative; padding-bottom:20px; }
.timeline article:before { content:""; position:absolute; left:6px; top:12px; bottom:0; border-left:1px solid #ccd9c2; }
.timeline article:last-child:before { display:none; }
.timeline-dot { width:13px; height:13px; background:#5c824c; border:3px solid #e2edd9; border-radius:50%; margin-top:5px; flex-shrink:0; z-index:1; }
.timeline strong { font-size:14px; font-weight:600; }
.timeline time { display:inline-block; margin-left:12px; color:var(--muted); font-size:12px; }
.timeline p { font-size:14px; color:var(--muted); margin:8px 0 0; max-width:75ch; }
.boundary-proof { color:var(--green); font-weight:600; border-top:1px solid var(--line); padding-top:16px; }
.controls-panel>summary { display:flex; align-items:center; gap:16px; cursor:pointer; list-style:none; }
.controls-panel>summary h2 { font-size:20px; margin:0; }
.controls-panel>summary .tag { margin-left:auto; }
.controls-panel[open]>summary { margin-bottom:18px; }
.details-toggle { font-size:20px; }
.check-row { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:12px; padding:16px 0; border-top:1px solid var(--line); scroll-margin-top:20px; }
.check-symbol { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; }
.check-symbol.passed { color:#365c2d; background:var(--green-soft); }
.check-symbol.failed { color:var(--amber); background:var(--amber-bg); }
.check-row strong { font-size:15px; }
.check-row p { font-size:14px; color:var(--muted); margin:5px 0 0; overflow-wrap:anywhere; }
.check-row .tag { align-self:start; }
.checks-foot { font-size:13px; color:var(--muted); border-top:1px solid var(--line); padding-top:16px; margin:0; }
.receipt-grid,.diagnostic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-bottom:24px; }
dl { margin:0; }
dt { color:var(--muted); font-size:13px; margin:0 0 6px; }
dd { margin:0; font-size:15px; overflow-wrap:anywhere; }
.status-grid dl dt { margin-top:22px; }
.receipt-grid dd { font-weight:600; }
.diagnostic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.diagnostic-grid dd { font-size:14px; }
.receipt-actions { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-bottom:12px; font-size:14px; }
.audit-event { border-top:1px solid var(--line); }
.audit-event>summary { display:flex; align-items:center; gap:14px; padding:16px 0; cursor:pointer; }
.audit-event strong { font-size:14px; font-weight:600; }
.audit-event time { margin-left:auto; color:var(--muted); white-space:nowrap; }
.audit-seq { color:var(--muted); font-size:12px; }
.audit-detail { padding:0 0 18px 30px; min-width:0; }
.audit-list pre { background:#f3f6ee; padding:14px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.audit-hash { color:var(--muted); }
.review-context { margin:20px 0; }
.review-context p { margin:8px 0; }
.review-prompt { padding:20px 0; }
.review-prompt h3 { font-size:22px; }
.review-prompt small { margin-top:14px; }
.review-record blockquote { border-left:3px solid #b5c9a8; margin:20px 0; padding:10px 18px; white-space:pre-wrap; overflow-wrap:anywhere; }
.review-buttons { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.toast { position:fixed; right:24px; bottom:24px; background:#244a37; color:white; padding:14px 18px; border-radius:6px; font-size:14px; max-width:430px; z-index:50; box-shadow:0 8px 30px #0002; }
@media(min-width:1600px) { main { padding:36px 40px; } .hero { gap:44px; } }
@media(max-height:900px) and (min-width:761px) { .sidebar-bottom { display:none; } .recent-list { flex:1; } .identity { margin-top:auto; } }
@media(max-width:1200px) {
  .hero { grid-template-columns:minmax(0,1fr); gap:24px; }
  .reading-workspace { grid-template-columns:minmax(0,1fr); }
  .reading-workspace>.evidence-panel { position:static; max-height:none; }
  .next-action { align-items:flex-start; flex-direction:column; gap:16px; }
  .next-buttons { flex-direction:row; flex-wrap:wrap; max-width:none; }
  .environment { display:none; }
}
@media(max-width:1000px) {
  :root { --sidebar:220px; }
  .brand { font-size:21px; }
  main { padding:26px; }
  .form-layout,.status-grid { grid-template-columns:minmax(0,1fr); }
  .receipt-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .topbar { padding:16px 26px; }
}
@media(max-width:760px) {
  .sidebar { position:relative; width:100%; height:auto; padding:20px; display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,1fr); gap:16px; overflow:visible; border-right:0; border-bottom:1px solid var(--line); }
  .workspace-label,.sidebar-section,.recent-list,.sidebar-bottom { display:none; }
  .identity { margin:0; padding:0; border:0; }
  .identity .avatar { display:none; }
  .sidebar nav { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; margin:0; gap:8px; }
  .nav-item { padding:8px 10px; }
  .nav-arrow { display:none; }
  .shell { margin:0; }
  .topbar { flex-wrap:wrap; padding:14px 20px; gap:10px; }
  .breadcrumb { font-size:12px; }
  main { padding:24px 20px; }
  .scenario-grid,.field-grid { grid-template-columns:minmax(0,1fr); }
  .hero-copy h1 { font-size:36px; }
  .page-heading h1 { font-size:34px; }
  .run-title { font-size:30px; }
  .panel { padding:20px; }
  .scope-banner { align-items:flex-start; flex-wrap:wrap; padding:16px; gap:10px; }
  .scope-banner>div { flex-basis:calc(100% - 40px); }
  .scope-banner>.tag { margin-left:33px; }
  .run-tabs { gap:0 20px; }
  .run-tabs a { font-size:14px; }
  .receipt-grid,.diagnostic-grid { gap:18px; }
  .timeline time { display:block; margin:4px 0 0; }
  .fixture-option { flex-direction:column; align-items:flex-start; }
  .audit-event>summary { flex-wrap:wrap; gap:8px 12px; }
  .audit-event time { margin-left:28px; flex-basis:100%; }
  .audit-detail { padding-left:0; }
  th,td { padding:12px; }
  table { min-width:610px; }
  .table-wrap { max-width:100%; }
  footer { padding:18px 20px; }
  .controls-panel>summary { flex-wrap:wrap; gap:10px; }
}
@media(max-width:430px) {
  .sidebar { grid-template-columns:minmax(0,1fr); }
  .identity { max-width:100%; }
  .identity select { font-size:14px; }
  .brand { font-size:23px; }
  .sidebar nav { gap:4px; }
  .nav-item { font-size:13px; padding:8px; gap:6px; }
  main { padding:22px 16px; }
  .hero-copy h1 { font-size:33px; }
  .workflow-card,.panel { padding:18px; }
  .scope-banner strong { font-size:14px; }
  .run-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
  .receipt-grid,.diagnostic-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .check-row { grid-template-columns:24px minmax(0,1fr); }
  .check-row>.tag { grid-column:2; justify-self:start; }
  .empty-state { flex-direction:column; align-items:flex-start; }
  .form-actions .button,.review-buttons .button { width:100%; }
  .toast { left:16px; right:16px; bottom:16px; }
  .next-action { padding:18px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
