/*
  HarPer Monitor dashboard (ADR-0010 S4b). Own components: the layout and component vocabulary of the "Halden" reference (disposition, thin-bordered cards with soft shadow,
  18/14/10 px radii, the cubic-bezier(.22,1,.36,1) curve) re-drawn from scratch; no code or asset of that template is used (Q-HALDEN-LICENCIA).
  Brand of har-per.com: type Plus Jakarta Sans; blue #1E6DB6 is the primary (#185A98 hover, #144C80 pressed, #EAF2FA tint); red #F8413B is the brand accent, used for fills and graphics only
  (logo, critical bars, dots) because it is 3.6:1 on white: red TEXT uses #B8211C (6.4:1 on white, 5.6:1 on #FEECEB); ink and the hero card go toward the brand dark #0B1120.
  Green #0F7A4F is healthy, amber #985B08 on #FDF2E0 is the functional warning. Every text colour here is at least 4.5:1 (WCAG AA) on the surfaces it is used on.
  LIGHT THEME ONLY. No script, no inline style: every colour and size lives here (CSP style-src 'self').
*/
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/dashboard/assets/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #0B1120; --ink2: #465264; --ink3: #5F6B7C;
  --paper: #F4F6F8; --card: #FFFFFF; --rule: #DCE1E6; --rule2: #B6BEC7; --band: #EBEFF3;
  --blue: #1E6DB6; --blue-dark: #185A98; --blue-pressed: #144C80; --blue-soft: #EAF2FA; --blue-line: #C3D9EE; --blue-ring: rgba(30, 109, 182, .45); --blue-glow: rgba(30, 109, 182, .22);
  --slate: #1C2B47; --slate-dark: #0B1120;
  --red: #F8413B; --red-ink: #B8211C; --redbg: #FEECEB; --red-line: #F9C3C0;
  --green: #0F7A4F; --greenbg: #E6F4EC;
  --amber: #985B08; --amberbg: #FDF2E0;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-lg: 18px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 17, 32, .04), 0 8px 24px -12px rgba(11, 17, 32, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; font-weight: 500;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--band); padding: 1px 6px; border-radius: 6px; }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--ink3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- shell: sidebar + content */
.app {
  display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh;
  /* the white sidebar column runs the full height of the page whatever its length: the sticky sidebar sits on top of it */
  background: linear-gradient(to right, var(--card) 0, var(--card) 251px, var(--rule) 251px, var(--rule) 252px, var(--paper) 252px);
}
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border-right: 1px solid var(--rule); padding: 22px 14px 16px; overflow-y: auto;
}
/* brand: HarPer's logo, a thin rule, then the product name in the label style of the page */
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.logo { display: block; flex: none; height: auto; }
.brand .logo { width: 93px; height: 32px; }
.product { display: block; padding-left: 12px; border-left: 1px solid var(--rule2); color: var(--ink2); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink2); text-decoration: none; font-weight: 700;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-item:hover { background: var(--band); color: var(--ink); }
.nav-item.active { background: var(--blue-soft); color: var(--blue); }
.nav-item .ic { width: 20px; height: 20px; flex: none; }
.counter { margin-left: auto; min-width: 24px; padding: 0 8px; border-radius: 12px; background: var(--redbg); color: var(--red-ink); font-size: 13px; font-weight: 800; text-align: center; }
.counter.zero { background: var(--band); color: var(--ink2); }
/* environment selector «Todos / Pruebas / Producción»: one POST form of three submit buttons; the chosen one carries aria-pressed="true" (no script) */
.env { display: grid; gap: 6px; margin: 0 0 10px; padding: 0 4px 16px; border-bottom: 1px solid var(--rule); }
.env-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); padding-left: 6px; }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--band); border-radius: var(--r-sm); }
.seg button {
  flex: 1 1 auto; min-width: 0; min-height: 34px; padding: 0 8px; font-size: 13px; font-weight: 700; letter-spacing: -.005em;
  background: transparent; color: var(--ink2); border: 1px solid transparent; border-radius: 8px;
}
.seg button:hover { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: transparent; }
.seg button:active { transform: none; background: var(--card); color: var(--ink); border-color: var(--rule2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--blue); border-color: var(--blue-line); box-shadow: 0 1px 2px rgba(11, 17, 32, .08); }
.side-foot { margin-top: auto; border-top: 1px solid var(--rule); padding: 14px 8px 0; display: grid; gap: 10px; }
.side-foot .who { font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }
.side-foot .who strong { color: var(--ink); }
/* Full width on any screen (no max-width): a large monitor is filled edge to edge; the side padding grows a little with the screen. */
.content { min-width: 0; padding: 32px clamp(40px, 3vw, 72px) 56px; width: 100%; }

/* ---------------------------------------------------------------- page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .titles { min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.lede { color: var(--ink2); margin-top: 6px; max-width: 68ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- buttons and forms */
.btn, button {
  font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
  padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover, button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn:active, button:active { transform: translateY(1px); background: var(--blue-pressed); border-color: var(--blue-pressed); }
.btn.secondary, button.secondary, button.link { background: var(--card); color: var(--ink); border-color: var(--rule2); }
.btn.secondary:hover, button.secondary:hover, button.link:hover { background: var(--band); color: var(--ink); border-color: var(--rule2); }
button.small, .btn.small { min-height: 32px; padding: 0 12px; font-size: 14px; }
form.inline { display: inline; margin: 0; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=time], select, input:not([type]) {
  font: inherit; font-weight: 500; width: 100%; min-height: 42px; padding: 8px 12px; color: var(--ink); background: var(--card);
  border: 1px solid var(--rule2); border-radius: var(--r-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.hint { color: var(--ink2); font-size: 14px; margin-top: 6px; }
.notice { background: var(--blue-soft); color: var(--ink); border: 1px solid var(--blue-line); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 20px; }
.notice.warn { background: var(--amberbg); border-color: #EBCB93; }
.notice.ok { background: var(--greenbg); border-color: #B9DEC9; }
.error { background: var(--redbg); color: var(--red-ink); border: 1px solid var(--red-line); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 20px; font-weight: 600; }
.error ul { list-style: disc; padding-left: 20px; margin-top: 4px; font-weight: 500; }

/* ---------------------------------------------------------------- cards and grids */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.stack { display: grid; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card h2 { font-size: 16px; font-weight: 800; letter-spacing: -.005em; overflow-wrap: anywhere; }
.card h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin: 18px 0 8px; }
.card-head + h3 { margin-top: 0; }
.kpi-label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.kpi-num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--ink2); font-size: 14px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.empty { padding: 28px; text-align: center; color: var(--ink2); background: var(--card); border: 1px dashed var(--rule2); border-radius: var(--r-lg); }
.empty.small { padding: 16px; font-size: 14px; }

/* hero card: licences and seats */
.hero { color: #fff; background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 100%); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.hero .kpi-label { color: #C5CDD6; }
.hero .kpi-num { font-size: 60px; }
.hero .kpi-num small { font-size: 24px; font-weight: 700; color: #C5CDD6; letter-spacing: 0; }
.hero .kpi-sub { color: #DDE3E9; }
.hero progress { margin-top: 16px; height: 12px; }
.hero progress::-webkit-progress-bar { background: rgba(255, 255, 255, .18); }
.hero progress::-webkit-progress-value { background: #FFFFFF; }
.hero progress::-moz-progress-bar { background: #FFFFFF; }
.subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.sub { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; }
.sub .kpi-label { font-size: 11px; }
.sub strong { display: block; font-size: 18px; font-weight: 800; margin-top: 4px; overflow-wrap: anywhere; }

.kpi-sub + progress { margin: 14px 0 18px; }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--band); }
progress::-webkit-progress-bar { background: var(--band); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; transition: width .4s var(--ease); }
progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }

/* segmented bar + legend */
.segwrap { border-radius: 999px; overflow: hidden; height: 14px; background: var(--band); margin: 14px 0 12px; }
.segbar { display: block; width: 100%; height: 100%; }
.seg-active { fill: var(--green); } .seg-late { fill: var(--amber); } .seg-silent { fill: var(--red); } .seg-none { fill: var(--rule2); }
.legend { display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.d-active { background: var(--green); } .dot.d-late { background: var(--amber); } .dot.d-silent { background: var(--red); }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* lists */
.list { display: grid; }
.list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); min-width: 0; }
.list li:first-child { border-top: 0; padding-top: 0; }
.list .grow { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.list .grow small { display: block; color: var(--ink2); font-size: 13px; }
.tile { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: var(--band); color: var(--ink2); }
.tile .ic { width: 20px; height: 20px; }
.tile.t-critical { background: var(--redbg); color: var(--red-ink); }
.tile.t-high, .tile.t-medium { background: var(--amberbg); color: var(--amber); }
.tile.t-ok { background: var(--greenbg); color: var(--green); }
.tile.t-blue { background: var(--blue-soft); color: var(--blue); }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.countdown { font-size: 22px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }

/* badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.badge.wrap { white-space: normal; border-radius: var(--r-sm); }   /* a long badge (the channel's TLS) wraps on a phone instead of overflowing */
.state-active, .ok { background: var(--greenbg); color: var(--green); }
.state-late, .warn, .sev-medium { background: var(--amberbg); color: var(--amber); }
.state-silent, .bad, .sev-critical { background: var(--redbg); color: var(--red-ink); }
.sev-critical { border: 1px solid var(--red); }   /* the brand red outlines the most urgent badge (like amber outlines "Alta"); its text stays the AA-safe dark red */
.sev-high { background: var(--amberbg); color: var(--amber); border: 1px solid var(--amber); }
.sev-low, .neutral { background: var(--band); color: var(--ink2); }

/* key-value lists */
dl.kv { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); gap: 10px 16px; }
dl.kv dt { color: var(--ink2); font-size: 14px; }
dl.kv dd { overflow-wrap: anywhere; }
dl.kv dd .badge { margin-left: 4px; }

/* tables */
.scroll { overflow-x: auto; border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); background: var(--band); white-space: nowrap; }
th:first-child { border-top-left-radius: var(--r-sm); } th:last-child { border-top-right-radius: var(--r-sm); }
tbody tr:hover td { background: #FAFBFC; }
td { overflow-wrap: anywhere; }
td:last-child, td button { white-space: nowrap; overflow-wrap: normal; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.tabs a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink2); text-decoration: none; font-weight: 700; transition: background-color .2s var(--ease); }
.tabs a:hover { background: var(--band); }
.tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* installation cards */
.install-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.title-row a { color: var(--ink); text-decoration: none; }
.title-row a:hover { color: var(--blue); }

/* charts */
.chart { display: block; width: 100%; height: auto; }
.chart text { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 11px; fill: var(--ink2); font-weight: 600; }
.chart .gridline { stroke: var(--rule); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.chart .bar { fill: var(--blue); }
.chart .bar-today { fill: var(--blue); }
.chart .forecast { fill: url(#hatch); stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hatch-bg { fill: var(--blue-soft); } .chart .hatch-line { stroke: var(--blue); stroke-width: 1.5; }
.h-Healthy { fill: var(--green); } .h-Degraded { fill: var(--amber); } .h-Unhealthy { fill: var(--red); } .h-Unreachable { fill: var(--slate-dark); }
.key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--ink2); }
.key span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--green); }
.key .k-Degraded::before { background: var(--amber); } .key .k-Unhealthy::before { background: var(--red); } .key .k-Unreachable::before { background: var(--slate-dark); }

/* directive editor */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.field-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-row input[type=number] { width: 110px; }
.window { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 16px; margin-top: 12px; }
.window .wtitle { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.days { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.days label, .check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.window .times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.window .times label { margin: 0 0 4px; font-size: 13px; color: var(--ink2); }
details.more { margin-top: 12px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 6px 0; }
.collectors { display: grid; gap: 10px; margin-top: 10px; }
.collectors .check small { display: block; color: var(--ink2); font-weight: 500; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 28px; }
.diff { display: grid; gap: 0; }
.diff .row { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.diff .row:first-child { border-top: 0; }
.diff .row.head { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.diff .changed { background: var(--blue-soft); border-radius: var(--r-sm); padding: 6px 10px; }

/* login, enrolment */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; justify-content: center; }
.auth-brand .logo { width: 128px; height: 44px; }
.auth-brand .product { padding-left: 14px; font-size: 15px; line-height: 1.8; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .btn, .auth-card button { width: 100%; margin-top: 18px; }
.steps { display: flex; gap: 6px; margin: 0 0 16px; }
.steps span { height: 6px; flex: 1; border-radius: 999px; background: var(--band); }
.steps span.on { background: var(--blue); }
.qr-box { display: grid; place-items: center; margin: 16px 0 8px; }
.qr { width: min(100%, 260px); height: auto; border: 1px solid var(--rule); border-radius: var(--r-md); }
.manual-key { display: block; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; font-weight: 700; letter-spacing: .06em; background: var(--band); border-radius: var(--r-sm); padding: 10px 12px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- responsive: tablet and phone */
@media (max-width: 1180px) {
  .content { padding: 28px 28px 48px; }
  .c3 { grid-column: span 6; } .c4, .c5, .c6, .c7, .c8 { grid-column: span 6; }
  .c7, .c8 { grid-column: span 12; }
}
@media (max-width: 900px) {
  /* the sidebar collapses into a top bar: brand and sign-out on one row, the five pages under them */
  .app { grid-template-columns: minmax(0, 1fr); background: var(--paper); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--rule); overflow-y: visible; }
  .brand { padding: 0; order: 1; }
  .side-foot { order: 2; margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; gap: 12px; }
  .side-foot .who { display: none; }
  .env { order: 3; flex: 1 1 100%; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; padding: 6px 0 0; border: 0; }
  .env-label { padding-left: 0; }
  .seg { max-width: 380px; }
  .nav { order: 4; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 4px; padding-top: 6px; }
  .nav-item { padding: 8px 12px; gap: 8px; font-size: 14px; }
  .content { padding: 22px 16px 40px; }
  h1 { font-size: 28px; }
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .hero .kpi-num { font-size: 48px; }
  th, td { padding: 9px 10px; font-size: 14px; }
  .scroll table { min-width: 680px; }
  dl.kv { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); }
  .diff .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .diff .row.head { display: none; }
}
@media (max-width: 560px) {
  .subs { grid-template-columns: minmax(0, 1fr); }
  .window .times { grid-template-columns: minmax(0, 1fr); }
  .nav-item span:not(.counter) { font-size: 13px; }
  .card { padding: 18px 16px; }
  dl.kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  dl.kv dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
