/* Monitoring – enaudo look: light, Montserrat + Questrial, brand blue, little text. */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Questrial"; src: url("fonts/questrial-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --brand: #283a97;
  --brand-hover: #1f2d75;
  --brand-soft: #eef1fb;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --line: #e4e7f2;
  --hair: #eef0f6;
  --text: #1b2333;
  --muted: #64748b;
  --faint: #94a3b8;
  --ok: #15803d;
  --ok-dot: #16a34a;
  --ok-soft: #eaf6ee;
  --warn: #b45309;
  --warn-dot: #f59e0b;
  --warn-soft: #fdf4e3;
  --bad: #c0362c;
  --bad-soft: #fbeceb;
  /* Chart series: validated categorical order (CVD-safe, ≥3:1 on white). */
  --s1: #4257c0;
  --s2: #eb6834;
  --s3: #16a072;
  --radius: 16px;
  --radius-sm: 8px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Questrial", var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; letter-spacing: -0.03em; margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 16px; height: 16px; display: block; flex: none; }

.tone-ok { color: var(--ok); }
.tone-warn { color: var(--warn); }
.tone-bad { color: var(--bad); }
.tone-muted { color: var(--faint); }
.status-ok { color: var(--ok); }
.status-warn { color: var(--warn); }
.status-bad { color: var(--bad); }
.status-muted { color: var(--faint); }

/* Views: login vs dashboard. */
body[data-view="auth"] #view-auth { display: flex !important; }
body[data-view="auth"] #view-app,
body[data-view="boot"] #view-auth,
body[data-view="boot"] #view-app { display: none !important; }
body[data-view="app"] #view-app { display: block !important; }
body[data-view="app"] #view-auth { display: none !important; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Sign in */
.view-auth { min-height: 100vh; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: min(380px, 100%); padding: 40px 32px; text-align: center; }
.auth-logo { width: 44px; height: 44px; margin: 0 auto 16px; display: block; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card > .muted { margin: 0 0 24px; font-size: 14px; }
.sign-in-mount { display: flex; justify-content: center; }
.auth-error { margin-top: 16px; color: var(--bad) !important; font-size: 13px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid var(--brand); background: transparent; color: var(--brand); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.btn:hover { background: var(--brand-soft); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }
.btn:disabled { opacity: .55; cursor: wait; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.icon-btn.tiny { width: 26px; height: 26px; border-radius: 6px; }
.icon-btn.tiny .ico { width: 14px; height: 14px; }
.btn:focus-visible, .icon-btn:focus-visible, .seg button:focus-visible, .chart-card:focus-visible, .check:focus-visible { outline: 2px solid rgba(40, 58, 151, .35); outline-offset: 1px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 60px; padding: 10px 24px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 20px var(--font-head); letter-spacing: -0.03em; }
.brand img { width: 28px; height: 28px; }
.status-strip { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.stat-chip, .icon-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 13px; white-space: nowrap; }
.stat-chip .ico, .icon-chip .ico { width: 14px; height: 14px; }
.stat-chip .chip-val { font-variant-numeric: tabular-nums; color: var(--text); }
.stat-chip.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.stat-chip.ok .chip-val { color: var(--ok); }
.stat-chip.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.stat-chip.warn .chip-val { color: var(--warn); }
.stat-chip.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.stat-chip.bad .chip-val { color: var(--bad); }
.stat-chip.live { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.stat-chip.live .chip-val { color: var(--brand); }
.icon-chip { max-width: 150px; }
.icon-chip .chip-text { overflow: hidden; text-overflow: ellipsis; }

/* Layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
.error-banner { padding: 12px 16px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }

/* Issues */
.issues-strip { padding: 14px 18px; border-color: #f3cfcb; background: var(--bad-soft); }
.issues-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.issues-n { font: 18px var(--font-head); color: var(--bad); }
.issue-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.issue-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #7f241d; }
.issue-list li .ico { margin-top: 3px; color: var(--bad); width: 15px; height: 15px; }

/* Hosts */
.hosts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.host-card { position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.host-card:hover { box-shadow: 0 10px 30px rgba(27, 35, 51, .06); }
.host-card.serving { border-color: #c9d0ee; box-shadow: inset 3px 0 0 var(--brand); }
.host-card.stale { border-style: dashed; opacity: .8; }
.host-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.host-card h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; }
.host-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.host-dot.active { background: var(--ok-dot); box-shadow: 0 0 0 4px var(--ok-soft); }
.host-dot.warn { background: var(--warn-dot); box-shadow: 0 0 0 4px var(--warn-soft); }
.host-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.host-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 4px 0 0; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.host-meta .geo { display: inline-flex; align-items: center; gap: 4px; }
.host-meta .ico { width: 13px; height: 13px; }
.host-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.flag { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--bg); color: var(--faint); }
.flag .ico { width: 14px; height: 14px; }
.flag.on { background: var(--ok-soft); color: var(--ok); }
.flag.accent.on { background: var(--brand-soft); color: var(--brand); }
.flag.warn { background: var(--warn-soft); color: var(--warn); }
.flag.bad { background: var(--bad-soft); color: var(--bad); }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.metrics-drop { align-items: start; }
.metric { text-align: center; padding: 12px 8px 10px; border-radius: 12px; background: var(--bg); }
.metric .num { font: 22px/1.2 var(--font-head); letter-spacing: -0.03em; }
.metric .lbl { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.metric .lbl .ico { width: 13px; height: 13px; }
.metric-sub { margin-top: 6px; font-size: 11px; line-height: 1.3; color: var(--faint); word-break: break-word; }
.metric-drop { border-radius: 12px; background: var(--bg); overflow: hidden; }
.metric-drop[open] { grid-column: 1 / -1; background: var(--brand-soft); }
.metric-drop > summary.metric { list-style: none; cursor: pointer; user-select: none; background: transparent; }
.metric-drop > summary.metric::-webkit-details-marker { display: none; }
.metric-drop > summary.metric:hover .num { color: var(--brand); }
.metric-detail { padding: 4px 12px 12px; text-align: left; }
.metric-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12px; border-bottom: 1px solid rgba(40, 58, 151, .08); }
.metric-detail-row span:first-child { color: var(--muted); flex: none; }
.metric-detail-row span:last-child { text-align: right; word-break: break-word; }
.core-grid { display: grid; gap: 4px; margin-top: 10px; }
.core-cell { display: grid; grid-template-columns: 22px 1fr 36px; align-items: center; gap: 6px; font-size: 11px; font-variant-numeric: tabular-nums; }
.core-grid.has-mhz .core-cell { grid-template-columns: 22px 1fr 36px 40px; }
.core-id, .core-mhz { color: var(--faint); }
.core-pct, .core-mhz { text-align: right; }
.core-bar { height: 5px; border-radius: 99px; background: rgba(40, 58, 151, .1); overflow: hidden; }
.core-bar > span { display: block; height: 100%; background: var(--s1); border-radius: inherit; }

.bar { height: 4px; margin-top: 8px; border-radius: 99px; background: #e3e7f5; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--s1); transition: width .5s ease; }
.bar.warn > span { background: var(--warn-dot); }
.bar.bad > span { background: var(--bad); }

.host-summary { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; }
.host-summary .sum { display: inline-flex; align-items: center; gap: 5px; }
.host-summary .ico { width: 14px; height: 14px; color: var(--faint); }
.host-summary strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.host-stale-msg { margin-top: 10px; font-size: 13px; color: var(--warn); }
.host-issues { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.host-issues li { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--bad-soft); color: #7f241d; font-size: 12px; }

/* History */
.history-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.history-head h2 { font-size: 24px; margin-right: auto; display: inline-flex; align-items: center; gap: 10px; }
.history-head h2 .ico { width: 20px; height: 20px; color: var(--brand); }
.history-state { color: var(--warn); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.seg button { border: 0; background: none; height: 30px; min-width: 42px; padding: 0 10px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--brand); }
.seg button.active { background: var(--brand); color: #fff; }
.seg { flex-wrap: wrap; }
.seg .custom-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg .custom-btn .ico { width: 15px; height: 15px; }
.range-picker { position: relative; }
.range-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 280px; padding: 16px; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(27, 35, 51, .12); }
.range-pop label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.range-pop input { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 14px; color: var(--text); }
.range-pop input:focus { outline: none; border-color: var(--brand); }
.range-err { margin: 0; font-size: 12px; color: var(--bad); }
.range-actions { display: flex; justify-content: flex-end; gap: 8px; }
.range-actions .btn { height: 34px; padding: 0 14px; font-size: 14px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; transition: opacity .2s; }
.chart-grid.loading, .chart-dialog .chart-box.loading { opacity: .55; }
.chart-card { padding: 16px 16px 10px; cursor: zoom-in; transition: border-color .15s, box-shadow .15s; }
.chart-card:hover { border-color: #c9d0ee; box-shadow: 0 10px 30px rgba(27, 35, 51, .06); }
.chart-head { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.chart-title { display: inline-flex; align-items: center; gap: 8px; font: 17px var(--font-head); letter-spacing: -0.02em; }
.chart-title .ico { color: var(--faint); }
.chart-now { margin-left: auto; font: 17px var(--font-head); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
.legend b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-box { position: relative; margin-top: 8px; height: 150px; transition: opacity .2s; }
.chart-box svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-box .grid-line { stroke: var(--hair); stroke-width: 1; }
.chart-box .base-line { stroke: var(--line); stroke-width: 1; }
.chart-box .axis { fill: var(--faint); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-box .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-box .area { opacity: .1; }
.chart-box .cross { stroke: var(--faint); stroke-width: 1; }
.chart-box .empty { fill: var(--faint); font-size: 13px; font-family: var(--font); }
/* Host events: server swap = brand diamond, failover = hollow ring. */
.chart-box .event-line { stroke: var(--brand); stroke-width: 1; opacity: .3; }
.chart-box .event-line.holder { stroke: var(--muted); }
.chart-box .event-mark.server { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.chart-box .event-mark.holder { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.legend i.mark, .chart-tip i.mark { width: 8px; height: 8px; border-radius: 1.5px; background: var(--brand); flex: none; }
.legend i.mark.server, .chart-tip i.mark.server { transform: rotate(45deg) scale(.85); }
.legend i.mark.holder, .chart-tip i.mark.holder { border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--muted); }
.chart-tip .tip-event { display: grid; grid-template-columns: 12px auto; align-items: center; column-gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.chart-tip .tip-event span { font-weight: 500; color: var(--text); }
.chart-tip .tip-event small { grid-column: 2; color: var(--muted); font-size: 11px; }
.host-meta .swap { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); cursor: help; }
.chart-tip { position: absolute; top: 0; z-index: 5; min-width: 120px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(27, 35, 51, .12); font-size: 12px; pointer-events: none; white-space: nowrap; }
.chart-tip .when { color: var(--muted); margin-bottom: 4px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 8px; }
.chart-tip .tip-row i { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.chart-tip .tip-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip .tip-row span { color: var(--muted); }

.chart-dialog { width: min(980px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(27, 35, 51, .2); color: var(--text); }
.chart-dialog::backdrop { background: rgba(27, 35, 51, .35); backdrop-filter: blur(2px); }
.chart-dialog .dialog-body { padding: 20px 24px 16px; }
.chart-dialog .chart-head { flex-wrap: wrap; gap: 12px; }
.chart-dialog .chart-title { font-size: 22px; margin-right: auto; }
.chart-dialog .chart-box { height: 340px; margin-top: 14px; }

/* Details */
.details-card { padding: 6px 10px; }
.acc { border-bottom: 1px solid var(--hair); }
.acc:last-child { border-bottom: 0; }
.acc > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 10px; cursor: pointer; user-select: none; border-radius: 10px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover { background: var(--bg); }
.acc > summary > .ico:first-child { color: var(--brand); }
.acc > summary > span:not(.acc-meta) { font: 17px var(--font-head); letter-spacing: -0.02em; }
.acc > summary .acc-meta { margin-left: auto; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.acc > summary .chev { color: var(--faint); transition: transform .15s; }
.acc[open] > summary .chev { transform: rotate(180deg); color: var(--brand); }
.acc-body { padding: 4px 10px 16px; }

.tile-row, .icon-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.tile, .icon-stat { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; word-break: break-word; }
.tile .ico, .icon-stat .ico { color: var(--faint); }
.tile-val { font: 18px var(--font-head); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.dot.ok { background: var(--ok-dot); }
.dot.warn { background: var(--warn-dot); }
.dot.bad { background: var(--bad); }
.callout { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13px; word-break: break-word; }
.callout.bad { background: var(--bad-soft); color: var(--bad); }

.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.panel { padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel-head .dot { margin-left: auto; }
.panel-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.panel-title .ico { color: var(--faint); }
.panel .metrics { margin-bottom: 4px; }
.panel .metric { background: var(--surface); }
.pg-load .metric .num { font-size: 18px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0; font-size: 13px; }
.row .label { color: var(--muted); }
.row .value { text-align: right; font-variant-numeric: tabular-nums; }
.nested-detail { margin-top: 8px; }
.nested-detail > summary { list-style: none; cursor: pointer; padding: 4px 0; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nested-detail > summary::-webkit-details-marker { display: none; }
.nested-detail > summary:hover { color: var(--brand); }
.db-list { margin-top: 8px; max-height: 168px; overflow: auto; font-size: 12px; scrollbar-width: thin; scrollbar-color: #c9d0ee transparent; }
.db-list .db-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.db-list .db-row span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.check-section + .check-section { margin-top: 14px; }
.check-label { margin: 0 0 8px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; cursor: zoom-in; border: 0; text-align: left; }
.check:hover { background: var(--brand-soft); }
.check .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check .ico { width: 14px; height: 14px; }
.check.bad { background: var(--bad-soft); }
.check.skip { opacity: .6; cursor: default; }

.nested { margin-bottom: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.stack-card.has-issue { background: var(--bad-soft); }
.stack-title { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.stack-title strong { font-weight: 500; }
.stack-title .muted { font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 6px 4px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--faint); font-weight: 500; font-size: 12px; }
tr:last-child td { border-bottom: 0; }

@media (max-width: 720px) {
  .topbar { position: static; padding: 10px 16px; }
  .topbar-actions { margin-left: auto; }
  .icon-chip { display: none !important; }
  .status-strip { order: 3; width: 100%; justify-content: flex-start; }
  .wrap { padding: 20px 16px 48px; }
  .chart-grid { grid-template-columns: 1fr; }
  .acc > summary .acc-meta { display: none; }
  .chart-dialog .dialog-body { padding: 16px; }
  .chart-dialog .chart-box { height: 260px; }
}
@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
}
