@font-face { font-family: "Schibsted"; src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #f1ede4;
  --surface: #fffdf8;
  --surface-2: #f8f5ee;
  --ink: #1b1a17;
  --ink-2: #3b3832;
  --muted: #6b665c;
  --line: #e0d9cb;
  --line-2: #cfc6b4;
  --brand: #0e5e58;
  --brand-2: #e8b04a;
  --crit: #b42318;
  --crit-bg: #fbe9e6;
  --high: #b9531a;
  --high-bg: #fbeee4;
  --med: #8f6a00;
  --med-bg: #f7f0d9;
  --ok: #1f7546;
  --ok-bg: #e4f2e8;
  --code-bg: #15171a;
  --code-ink: #d6d3cb;
  --score: var(--crit);
  --sans: "Schibsted", ui-sans-serif, system-ui, sans-serif;
  --mono: "JB Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
code, pre, .mono { font-family: var(--mono); }
h1, h2 { margin: 0; letter-spacing: -0.02em; }
[hidden] { display: none !important; }

.ribbon { position: fixed; right: 12px; bottom: 12px; z-index: 50; font: 600 11px/1 var(--sans); letter-spacing: .02em; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 11px; text-decoration: none; box-shadow: 0 2px 8px rgba(27,26,23,.08); }
.ribbon:hover { background: var(--ink); color: var(--surface); }

/* layout */
.app { display: grid; grid-template-columns: 318px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 22px 26px; border-right: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 20px; }
.main { padding: 30px 40px 60px; max-width: 1120px; width: 100%; outline: none; }

.brand { display: flex; gap: 11px; align-items: center; }
.logo { width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; line-height: 1; }
.brand-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* score */
.score-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.gauge { position: relative; width: 148px; height: 148px; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--line); stroke-width: 10; }
.g-bar { fill: none; stroke: var(--score); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 23 100; transition: stroke-dasharray .9s cubic-bezier(.2,.7,.2,1), stroke .6s; }
.g-text { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 50px; gap: 3px; }
.g-num { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--score); transition: color .6s; font-variant-numeric: tabular-nums; line-height: 1; }
.g-of { font-size: 13px; color: var(--muted); }
.score-meta { text-align: center; }
.score-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.score-verdict { font-weight: 700; font-size: 16px; margin: 2px 0 12px; color: var(--score); transition: color .6s; }
.subscores { margin: 0; display: grid; gap: 7px; text-align: left; }
.subscores div { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 8px; }
.subscores dt { font-size: 12.5px; color: var(--ink-2); }
.subscores dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.sb { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.sb i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--c, var(--crit)); transition: width .9s cubic-bezier(.2,.7,.2,1), background .6s; }
.subscores b { font: 600 12px var(--mono); width: 22px; text-align: right; font-variant-numeric: tabular-nums; }

/* steps */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.step { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; }
.step:hover { background: var(--surface); }
.step[aria-current="step"] { background: var(--surface); border-color: var(--line-2); box-shadow: 0 1px 0 rgba(27,26,23,.04); }
.step-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); border: 1.5px solid var(--line-2); color: var(--muted); background: var(--surface); }
.step[aria-current="step"] .step-n { border-color: var(--ink); color: var(--ink); }
.step.done .step-n { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0; }
.step.done .step-n::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.step-t { display: flex; flex-direction: column; line-height: 1.25; }
.step-t b { font-size: 14.5px; }
.step-t small { font-size: 12px; color: var(--muted); }

.case-facts { margin-top: auto; display: grid; gap: 9px; font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 16px; }
.case-facts div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; }
.case-facts span { color: var(--muted); }
.case-facts b { font-weight: 500; }

/* panels */
.panel { animation: in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 8px; font: 600 12px var(--mono); color: var(--muted); letter-spacing: .02em; }
.p-head h1 { font-size: 32px; line-height: 1.1; font-weight: 800; max-width: 30ch; text-wrap: balance; }
.lede { margin: 10px 0 0; color: var(--ink-2); max-width: 62ch; font-size: 15.5px; }
.p-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 24px; }
.p-foot .hint { margin-right: auto; color: var(--muted); font-size: 13px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 9px; padding: 10px 16px; font-weight: 650; font-size: 14px; border: 1px solid var(--line-2); background: var(--surface); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn svg .fill { fill: currentColor; stroke: none; }
.btn.primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: default; }

.sev-sum { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sev-pill { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.sev-pill b { font-family: var(--mono); }
.crit { color: var(--crit); background: var(--crit-bg); }
.high { color: var(--high); background: var(--high-bg); }
.med { color: var(--med); background: var(--med-bg); }
.okc { color: var(--ok); background: var(--ok-bg); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 550; }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* findings */
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.finding { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.f-btn { width: 100%; display: grid; grid-template-columns: 84px minmax(0,1fr) auto 18px; gap: 14px; align-items: center; padding: 13px 16px; background: none; border: 0; text-align: left; }
.f-btn:hover { background: var(--surface-2); }
.sev { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; border-radius: 5px; text-align: center; }
.f-title { font-weight: 650; font-size: 15px; }
.f-where { display: block; font: 12px var(--mono); color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-area { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .25s; }
.f-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.finding.fixed .sev { background: var(--ok-bg); color: var(--ok); }
.finding.fixed .f-title { text-decoration: line-through; text-decoration-color: var(--line-2); color: var(--muted); }
.f-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; padding: 0 16px 16px 114px; }
.f-detail h3 { margin: 0 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.f-detail p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.f-detail .rec { border-left: 3px solid var(--ok); padding-left: 10px; }

/* code */
.code, .log { font-variant-ligatures: none; }
.code { background: var(--code-bg); color: var(--code-ink); border-radius: 9px; font: 12.5px/1.65 var(--mono); overflow: auto; }
.code-h { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #2a2d32; color: #8d8a83; font-size: 11.5px; }
.code pre { margin: 0; padding: 10px 0; }
.ln { display: grid; grid-template-columns: 38px minmax(0,1fr); white-space: pre; }
.ln > span:first-child { color: #5a5d63; text-align: right; padding-right: 12px; user-select: none; }
.ln.mark { background: rgba(214, 69, 50, .2); box-shadow: inset 3px 0 #e0533e; }
.t-k { color: #e3a06b; } .t-s { color: #a9cf86; } .t-c { color: #6f7680; font-style: italic; } .t-n { color: #d7b8f2; } .t-f { color: #86bde8; } .t-p { color: #9aa0a8; } .t-x { color: #ff8a7a; font-weight: 600; }

/* fixes */
.applied { font: 600 13px var(--mono); padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); white-space: nowrap; }
.applied.all { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.fix-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.fix-tab { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; position: relative; }
.fix-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.fix-tab b { font-size: 13.5px; }
.fix-tab small { font: 11.5px var(--mono); color: var(--muted); }
.fix-tab .tick { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.fix-tab.on .tick { background: var(--ok); border-color: var(--ok); }
.fix-tab.on .tick::after { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 3.5px; border: 1.6px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.fix-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.fix-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.fix-top h2 { font-size: 19px; }
.fix-top p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; max-width: 70ch; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diff .ln.del { background: rgba(214, 69, 50, .2); }
.diff .ln.del > span:first-child { color: #e0806f; }
.diff .ln.add { background: rgba(70, 170, 100, .18); }
.diff .ln.add > span:first-child { color: #79c690; }
.diff .ln.gap { background: transparent; }
.code-h .tag { font-weight: 700; }
.code-h .tag.b { color: #ff8a7a; } .code-h .tag.a { color: #8fd5a3; }
.fix-why { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.fix-why span b { font-family: var(--mono); }

/* pipeline */
.run-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.run-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.run-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.run-id code { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.run-msg { font-size: 13.5px; color: var(--ink-2); }
.run-status { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.run-status.running { background: #e7eef8; color: #2b5c9e; }
.run-status.passed { background: var(--ok-bg); color: var(--ok); }
.run-time { font: 600 13px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.jobs { list-style: none; margin: 0; padding: 18px 16px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 22px; position: relative; }
.job { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); transition: border-color .3s, background .3s; }
.job:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -23px; width: 22px; height: 2px; background: var(--line-2); }
.job.done:not(:last-child)::after { background: var(--ok); }
.job-h { display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: 13.5px; }
.job-h .jd { margin-left: auto; font: 500 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.job small { display: block; font: 11.5px var(--mono); color: var(--muted); margin-top: 3px; }
.ji { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.6px solid var(--line-2); position: relative; }
.job.run { border-color: #8fb0dd; background: #f2f6fc; }
.job.run .ji { border-color: #2b5c9e; border-right-color: transparent; animation: spin .8s linear infinite; }
.job.done { border-color: #a9d3b7; background: var(--ok-bg); }
.job.done .ji { background: var(--ok); border-color: var(--ok); }
.job.done .ji::after { content: ""; position: absolute; left: 3.5px; top: 4px; width: 6px; height: 3.5px; border: 1.6px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.jbar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.jbar i { display: block; height: 100%; width: 0; background: #2b5c9e; }
.job.done .jbar i { background: var(--ok); width: 100% !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.log { background: var(--code-bg); color: var(--code-ink); font: 12px/1.7 var(--mono); height: 250px; overflow-y: auto; padding: 12px 16px; }
.log-empty { color: #6f7680; }
.log .l-job { color: #86bde8; font-weight: 700; margin-top: 6px; }
.log .l-ok { color: #8fd5a3; }
.log .l-dim { color: #7c8089; }
.history { margin-top: 18px; }
.history h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.history li { display: grid; grid-template-columns: 10px 34px 70px minmax(0,1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; }
.history code { font-size: 12px; color: var(--muted); }
.history time { font: 12px var(--mono); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--crit); }
.history li.new { animation: in .4s; }

/* architecture */
.arch { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; margin-bottom: 8px; }
.seg-b { border: 0; background: transparent; border-radius: 7px; padding: 6px 16px; font-weight: 650; font-size: 13.5px; color: var(--muted); }
.seg-b[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.arch-stage svg { width: 100%; height: auto; display: block; }
.arch-stage text { font-family: var(--sans); }
.arch-stage .mono { font-family: var(--mono); }
.arch-stage .flow { stroke-dasharray: 4 5; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.arch-notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px 18px; font-size: 13px; color: var(--ink-2); }
.arch-notes li { display: flex; gap: 8px; align-items: flex-start; }
.arch-notes li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; margin-top: 6px; background: var(--nc, var(--ok)); }

/* monitoring */
.mon { margin-top: 18px; }
.mon-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.mon-head h2 { font-size: 19px; }
.live { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ok); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31,117,70,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31,117,70,0); } 100% { box-shadow: 0 0 0 0 rgba(31,117,70,0); } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi small em { font-style: normal; color: var(--ok); font-weight: 600; }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 6px; position: relative; }
.chart figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.chart figcaption span { font-weight: 500; color: var(--muted); font-size: 12px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { font: 10px var(--mono); fill: var(--muted); }
.chart .cut { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .cut-l { font: 600 10px var(--sans); fill: var(--ink-2); }
.chart .hit { fill: transparent; }
.chart .xh { stroke: var(--ink-2); stroke-width: 1; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); font: 12px/1.35 var(--sans); padding: 6px 9px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -110%); z-index: 3; }
.tip b { font-family: var(--mono); }
.table-toggle { font-size: 11.5px; background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0; margin: 2px 0 4px; }
.chart table { width: 100%; font: 11.5px var(--mono); border-collapse: collapse; margin-bottom: 6px; }
.chart td, .chart th { padding: 2px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.chart th:first-child, .chart td:first-child { text-align: left; }
.chart .tbl { max-height: 160px; overflow: auto; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 550; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 40; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: #8fd5a3; }

/* responsive */
@media (max-width: 1180px) {
  .app { grid-template-columns: 280px minmax(0,1fr); }
  .main { padding: 26px 26px 60px; }
  .jobs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .job::after { display: none; }
  .charts { grid-template-columns: 1fr 1fr; }
  .f-detail { grid-template-columns: 1fr; padding-left: 16px; }
}
@media (max-width: 860px) {
  .app { display: block; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; overflow: visible; padding: 10px 16px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-sub, .case-facts, .subscores, .score-label { display: none; }
  .brand { position: absolute; top: 11px; left: 16px; }
  .logo { width: 30px; height: 30px; }
  .brand-name { font-size: 18px; }
  .score-card { flex-direction: row; align-items: center; justify-content: flex-end; padding: 0; border: 0; background: none; gap: 10px; min-height: 44px; }
  .gauge { width: 42px; height: 42px; margin: 0; order: 2; }
  .g-track, .g-bar { stroke-width: 12; }
  .g-text { padding-top: 0; align-items: center; }
  .g-num { font-size: 15px; }
  .g-of { display: none; }
  .score-meta { text-align: right; }
  .score-verdict { margin: 0; font-size: 13px; }
  .steps ol { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; }
  .step { flex-direction: column; gap: 2px; padding: 4px 2px; text-align: center; border-radius: 8px; }
  .step-n { width: 20px; height: 20px; font-size: 10.5px; }
  .step.done .step-n::after { width: 8px; height: 4.5px; }
  .step-t small { display: none; }
  .step-t b { font-size: 11.5px; }
  .main { padding: 20px 16px 70px; }
  .p-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .p-head h1 { font-size: 25px; }
  .lede { font-size: 14.5px; }
  .sev-sum { justify-content: flex-start; }
  .f-btn { grid-template-columns: 70px minmax(0,1fr) 16px; gap: 10px; padding: 12px; }
  .f-area { display: none; }
  .f-detail { padding: 0 12px 12px; }
  .fix-tabs { grid-template-columns: 1fr 1fr; }
  .fix-top { flex-direction: column; }
  .diff { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .run-msg { display: none; }
  .history li { grid-template-columns: 10px 34px minmax(0,1fr); }
  .history li code, .history li time { display: none; }
  .arch-notes { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 22px; }
  .charts { grid-template-columns: 1fr; }
  .p-foot .hint { display: none; }
  .ribbon { bottom: 10px; right: 10px; }
  .toast { bottom: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
