@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: 'Newsreader'; src: url('fonts/newsreader-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-latin-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
    color-scheme: light;
    --paper: #f3f1ea;
    --surface: #fffdf8;
    --ink: #1c211f;
    --ink-2: #565e59;
    --ink-3: #848a85;
    --line: #e5e1d6;
    --line-2: #d2cdbf;
    --grid: #ece8de;
    --brand: #1f4d3a;
    --brand-2: #2a6450;
    --brand-ink: #f3ecd8;
    --clay: #c9792b;
    --data: #2f6db5;
    --data-soft: #d9e5f3;
    --data-mid: #8fb2dc;
    --ok: #2e8b57;
    --ok-cell: #a3cfb2;
    --warn: #d08c12;
    --warn-ink: #8a5a00;
    --crit: #c43d32;
    --maint: #7d8794;
    --ok-bg: #e7f2ea;
    --warn-bg: #fbf0da;
    --crit-bg: #f8e3e0;
    --sans: 'Schibsted', ui-sans-serif, system-ui, sans-serif;
    --serif: 'Newsreader', Georgia, serif;
    --mono: 'JBMono', ui-monospace, monospace;
    --r: 10px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--brand); color: var(--brand-ink); display: flex; flex-direction: column; padding: 22px 16px 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 22px; }
.logo { width: 38px; height: 38px; flex: none; }
.brand-text strong { display: block; font-size: 18px; letter-spacing: -.01em; line-height: 1.1; }
.brand-text span { font-size: 11.5px; opacity: .72; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 14.5px; color: rgba(243, 236, 216, .82); transition: background .15s, color .15s; }
.nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a[aria-current="page"] { background: var(--brand-ink); color: var(--brand); font-weight: 600; }
.nav a:focus-visible { outline-color: var(--brand-ink); }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.oncall { display: flex; gap: 10px; align-items: flex-start; background: rgba(0, 0, 0, .16); border-radius: 10px; padding: 11px 12px; }
.oncall strong { display: block; font-size: 13px; }
.oncall span { font-size: 12px; opacity: .75; line-height: 1.35; display: block; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #7fd39e; margin-top: 5px; flex: none; box-shadow: 0 0 0 0 rgba(127, 211, 158, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 211, 158, .55); } 70% { box-shadow: 0 0 0 8px rgba(127, 211, 158, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 211, 158, 0); } }
.side-link { font-size: 12.5px; opacity: .75; padding: 0 4px; text-decoration: none; }
.side-link:hover { opacity: 1; text-decoration: underline; }

.main { min-width: 0; padding: 0 32px 56px; outline: none; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding: 22px 0 18px; flex-wrap: wrap; }
.crumb { margin: 0 0 2px; font-size: 13px; color: var(--ink-2); }
.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.top-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.range { display: inline-flex; background: #e9e6dc; border-radius: 9px; padding: 3px; }
.range button { border: 0; background: transparent; padding: 6px 13px; border-radius: 7px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.range button:hover { color: var(--ink); }
.range button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(28, 33, 31, .12); }
.range[hidden] { display: none; }
.checked { margin: 0; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.view { display: grid; gap: 20px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h2, .card h2 { margin: 0; font-size: 15.5px; font-weight: 650; letter-spacing: -.005em; }
.card-h p { margin: 0; font-size: 13px; color: var(--ink-2); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; }

.banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--r); }
.banner .big { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.banner p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.banner svg { flex: none; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 15px; min-width: 0; }
.stat .k { font-size: 13px; color: var(--ink-2); }
.stat .v { font-size: 29px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; margin-top: 3px; }
.stat .v small { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.stat .d { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* status chip */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 8px 2px 6px; border-radius: 999px; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.ok { background: var(--ok-bg); color: #1f6a41; }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.crit { background: var(--crit-bg); color: #9b2b22; }
.chip.maint { background: #e9ecef; color: #4d5661; }

/* services list */
.svc { display: grid; grid-template-columns: minmax(150px, 1.1fr) 92px minmax(180px, 2.3fr) 64px 112px; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc-head { font-size: 12px; color: var(--ink-3); padding: 0 0 6px; border-top: 0; text-transform: none; }
.svc-name strong { display: block; font-size: 14.5px; font-weight: 600; }
.svc-name span { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc .up { font-weight: 600; font-size: 14px; text-align: right; }
.svc .met { font-size: 12.5px; color: var(--ink-2); text-align: right; line-height: 1.25; white-space: nowrap; }
.svc .met b { color: var(--ink); font-weight: 600; display: block; }

.strip { display: grid; gap: 2px; height: 26px; align-items: end; }
.strip.dense { gap: 1px; }
.strip i { display: block; height: 100%; border-radius: 2px; background: var(--ok-cell); transform-origin: bottom; cursor: default; }
.strip i.degraded { background: var(--warn); }
.strip i.outage { background: var(--crit); }
.strip i.maintenance { background: var(--maint); }
.strip i:hover, .strip i:focus-visible { filter: brightness(.85); }
.strip-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 4px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* attention + activity */
.list { list-style: none; margin: 0; padding: 0; }
.att li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.att li:first-child { border-top: 0; padding-top: 2px; }
.att strong { display: block; font-weight: 600; }
.att span { color: var(--ink-2); font-size: 13px; }
.att a { font-size: 13px; font-weight: 600; color: var(--brand-2); }
.feed li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 8px 0; font-size: 13.5px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding-top: 2px; }
.feed a { color: var(--brand-2); font-weight: 600; }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-2); }
.chart .tick text, .chart text.tick { fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--line-2); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--data); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--data); opacity: .08; }
.chart .thresh { stroke: var(--clay); stroke-width: 1.25; }
.chart .thresh-label { fill: #9a5a1c; font-size: 11px; font-weight: 600; }
.chart .bar { fill: var(--data); }
.chart .bar.soft { fill: var(--data-mid); }
.chart .bar-hit { fill: transparent; cursor: pointer; }
.chart .note-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 1.25; }
.chart .note-num { font-size: 10px; font-weight: 700; fill: var(--ink); }
.chart .val { fill: var(--ink); font-weight: 600; font-size: 12px; }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; }
.chart .cross-dot { fill: var(--data); stroke: var(--surface); stroke-width: 2; }
.chart .band { fill: var(--crit); opacity: .07; }
.chart .band-edge { stroke: var(--crit); stroke-width: 1; opacity: .5; }
.chart .ann { fill: var(--ink); font-size: 11.5px; font-weight: 600; }
.chart g.pick { cursor: pointer; outline: none; }
.chart g.pick:focus-visible .bar-hit { stroke: var(--data); stroke-width: 2; }

/* entrance */
.anim .grow { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: transform .55s var(--ease); transition-delay: var(--d, 0ms); }
.anim .growx { transform: scaleX(0); transform-box: fill-box; transform-origin: left; transition: transform .55s var(--ease); transition-delay: var(--d, 0ms); }
.anim .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease); }
.anim .fade { opacity: 0; transition: opacity .5s ease .25s; }
.anim .rise { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s var(--ease); transition-delay: var(--d, 0ms); }
.anim.in .grow, .anim.in .growx { transform: none; }
.anim.in .draw { stroke-dashoffset: 0; }
.anim.in .fade { opacity: 1; }
.anim.in .area.fade { opacity: .08; }
.anim.in .rise { opacity: 1; transform: none; }

/* tooltip */
.tip { position: fixed; z-index: 40; pointer-events: none; background: #1c211f; color: #f6f3ea; font-size: 12.5px; line-height: 1.4; padding: 7px 10px; border-radius: 7px; max-width: 260px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.tip b { font-weight: 650; }
.tip .t-sub { color: #b9bdb6; }

/* data table */
details.tbl { margin-top: 10px; font-size: 13px; }
details.tbl summary { cursor: pointer; color: var(--ink-2); width: max-content; }
details.tbl summary:hover { color: var(--ink); }
.tbl-wrap { overflow-x: auto; margin-top: 8px; max-height: 260px; overflow-y: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; color: var(--ink-2); font-size: 12px; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* incidents */
.inc-list { display: grid; gap: 12px; }
.inc { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 18px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.inc:hover { border-color: var(--line-2); box-shadow: 0 2px 10px rgba(28, 33, 31, .06); }
.inc .when { font-family: var(--mono); font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.inc .when b { display: block; font-family: var(--sans); font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.inc h3 { margin: 0 0 3px; font-size: 15.5px; font-weight: 650; }
.inc p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.inc .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.inc .open { color: var(--brand-2); font-weight: 600; }
.empty { text-align: center; padding: 34px 20px; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand-2); text-decoration: none; }
.back:hover { text-decoration: underline; }
.inc-head { display: grid; gap: 8px; }
.inc-head h2 { font-size: 24px; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.inc-head .sum { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 70ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.impact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.impact > div { padding: 4px 18px; border-left: 1px solid var(--line); }
.impact > div:first-child { border-left: 0; padding-left: 0; }
.impact .k { font-size: 12.5px; color: var(--ink-2); }
.impact .v { font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.impact .d { font-size: 12.5px; color: var(--ink-2); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { display: grid; grid-template-columns: 52px 18px 1fr; gap: 8px; padding: 0 0 14px; font-size: 14px; position: relative; }
.tl li::before { content: ''; position: absolute; left: 68px; top: 12px; bottom: -2px; width: 1px; background: var(--line-2); }
.tl li:last-child::before { display: none; }
.tl time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); padding-top: 1px; }
.tl .node { width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--crit); margin: 6px 0 0 4px; position: relative; z-index: 1; }
.tl li.good .node { border-color: var(--ok); background: var(--ok); }
.prose p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.fu li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: start; }
.fu li:first-child { border-top: 0; padding-top: 0; }
.fu .when { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.fu .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; }
.fu li.done .box { background: var(--ok); border-color: var(--ok); }
.fu li.done .box svg { stroke: #fff; }

/* costs */
.breakdown-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.breakdown-h .tot { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.notes { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink-2); }
.notes li { display: flex; align-items: center; gap: 7px; }
.notes .num { width: 18px; height: 18px; border-radius: 50%; border: 1.25px solid var(--ink); display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ink); flex: none; }
.hatch-key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--data) 0 2px, var(--data-soft) 2px 4px); vertical-align: -1px; }
.delta-up { color: #9b2b22; }
.delta-down { color: #1f6a41; }

/* backups */
.restore { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.restore .ring { width: 62px; height: 62px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; }
.restore h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.restore p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; }

/* security */
.meter { height: 6px; border-radius: 3px; background: #ebe7dc; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.meter i.warn { background: var(--warn); }
.cert { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.cert:first-of-type { border-top: 0; padding-top: 0; }
.cert .h { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cert .days { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.cert .meter { grid-column: 1 / -1; }
.cert .note { grid-column: 1 / -1; font-size: 12.5px; color: var(--warn-ink); }
.tfa { display: flex; align-items: center; gap: 16px; }
.tfa .v { font-size: 29px; font-weight: 650; letter-spacing: -.02em; }

/* report letter */
.report { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.letter { background: #fffefa; border: 1px solid var(--line); border-radius: var(--r); padding: 40px 52px 44px; box-shadow: 0 1px 0 var(--line), 0 14px 30px -18px rgba(28, 33, 31, .2); }
.letter .hdr { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.letter .hdr b { color: var(--ink); font-weight: 600; }
.letter h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 18px; }
.letter h3 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); margin: 26px 0 8px; font-weight: 650; }
.letter p, .letter li { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: #262b28; }
.letter p { margin: 0 0 12px; max-width: 62ch; }
.letter ul { margin: 0 0 12px; padding-left: 20px; max-width: 62ch; }
.letter li { margin-bottom: 6px; }
.letter .sign { margin-top: 24px; font-style: italic; }
.ask { margin: 18px 0 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 16px 18px; background: var(--surface); font-family: var(--sans); }
.ask p { font-family: var(--sans); font-size: 14.5px; margin: 0 0 12px; line-height: 1.5; }
.ask .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.ask .done { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.side-card h2 { margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.arch { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.arch li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.arch li:first-child { border-top: 0; }
.arch li.cur { color: var(--ink); font-weight: 600; }

/* ribbon */
.ribbon { position: fixed; right: 12px; bottom: 12px; z-index: 30; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; padding: 5px 10px; border-radius: 999px; background: rgba(28, 33, 31, .82); color: #f6f3ea; text-decoration: none; }
.ribbon:hover { background: #1c211f; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .svc { grid-template-columns: minmax(140px, 1fr) 92px minmax(150px, 2fr) 64px; }
    .svc .met { display: none; }
    .s8, .s7, .s5, .s4 { grid-column: span 12; }
    .report { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .side { min-width: 0; }
    .side { position: static; height: auto; padding: 14px 16px 0; }
    .brand { padding: 0 0 12px; }
    .nav { flex-direction: row; overflow-x: auto; gap: 4px; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: none; }
    .nav::-webkit-scrollbar { display: none; }
    .nav a { white-space: nowrap; padding: 7px 11px; font-size: 14px; }
    .nav a svg { width: 16px; height: 16px; }
    .side-foot { display: none; }
    .main { padding: 0 16px 64px; }
    .top { padding: 16px 0 14px; align-items: flex-start; }
    h1 { font-size: 24px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .view, .grid { gap: 14px; }
    .s6 { grid-column: span 12; }
    .card { padding: 16px; }
    .stat { padding: 12px 14px; }
    .stat .v { font-size: 24px; }
    .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
    .impact > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .letter { padding: 26px 20px 28px; }
    .letter h2 { font-size: 25px; }
    .letter p, .letter li { font-size: 17px; }
}
@media (max-width: 620px) {
    .svc { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; }
    .svc .stat-cell { grid-column: 2; grid-row: 1; }
    .svc .up { grid-column: 3; grid-row: 1; min-width: 56px; }
    .svc .strip-cell { grid-column: 1 / -1; grid-row: 2; }
    .svc-head { display: none; }
    .strip-axis { flex-direction: column; gap: 6px; }
    .inc { grid-template-columns: 1fr; gap: 8px; }
    .inc .when b { display: inline; font-size: 15px; margin-right: 6px; }
    .inc .meta { flex-direction: row; align-items: center; justify-content: space-between; }
    .banner { padding: 14px 16px; gap: 12px; align-items: flex-start; }
    .banner .big { font-size: 17px; }
    .restore { grid-template-columns: 1fr; gap: 10px; }
    .tl li { grid-template-columns: 44px 18px 1fr; }
    .tl li::before { left: 60px; }
    .fu li { grid-template-columns: 22px 1fr; }
    .fu .when { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .anim .grow, .anim .growx, .anim .rise { transform: none; opacity: 1; }
    .anim .draw { stroke-dashoffset: 0; }
    .anim .fade { opacity: 1; }
}

@media print {
    .side, .top-tools, .ribbon, .report > aside, .ask .btns { display: none !important; }
    .app { display: block; }
    .letter { box-shadow: none; border: 0; }
}
