/* Snoka. Follows the Webready open source design kit: the kit's tokens and
   Figtree, copied here and owned by Snoka, plus Snoka's accent, moss.
   No inline styles anywhere: strict CSP. */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  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;
}

/*
 * Webready open source design kit: tokens.
 *
 * Copy this file into a tool's stylesheet. Then add the tool's accent block
 * from docs/colour.md (--accent, --accent-tile, --accent-soft) for light and
 * dark. Everything here is the same in every tool.
 *
 * Dark mode follows the system, and a data-theme="light" or "dark" attribute
 * on <html> overrides it.
 *
 * Kit version 0.3.0 (see CHANGELOG.md). Keep this line in your copy and
 * update it when you copy again.
 */

:root {
  /* Type: Figtree for everything, see docs/type.md for the @font-face */
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Neutrals: Tailwind slate */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #1e293b;
  --text-2: #475569;
  --text-3: #64748b;

  /* Meanings: never colour alone, always with an icon and a word (docs/colour.md) */
  --up: #047857;
  --up-soft: #ecfdf5;
  --down: #b91c1c;
  --down-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --new: #1d4ed8;
  --new-soft: #eff6ff;
  --quiet: #4338ca;
  --quiet-soft: #eef2ff;
  --neutral: #475569;
  --neutral-soft: #f1f5f9;
  --none: #cbd5e1;

  /* --none is the fill for "no data": empty bars, meters with nothing yet */

  /* Bars and chart marks coloured by meaning (docs/charts.md) */
  --up-bar: #10b981;
  --up-bar-soft: #6ee7b7;
  --warn-bar: #f59e0b;
  --down-bar: #ef4444;
  --running-bar: #64748b;

  /* Night: a dark surface that stays dark in both themes (Vaka's watch panel) */
  --night: #0f172a;
  --night-2: #1e293b;
  --night-text: #f1f5f9;
  --night-muted: #94a3b8;

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 10px 30px -18px rgb(15 23 42 / 0.25);
  --focus: var(--accent);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #172135;
  --line: #334155;
  --line-strong: #475569;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;

  --up: #34d399;
  --up-soft: rgb(52 211 153 / 0.12);
  --down: #f87171;
  --down-soft: rgb(248 113 113 / 0.12);
  --warn: #fbbf24;
  --warn-soft: rgb(251 191 36 / 0.12);
  --new: #93c5fd;
  --new-soft: rgb(147 197 253 / 0.12);
  --quiet: #a5b4fc;
  --quiet-soft: rgb(165 180 252 / 0.12);
  --neutral: #cbd5e1;
  --neutral-soft: rgb(148 163 184 / 0.12);
  --none: #475569;

  --running-bar: #94a3b8;
  --shadow: none;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #172135;
    --line: #334155;
    --line-strong: #475569;
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;

    --up: #34d399;
    --up-soft: rgb(52 211 153 / 0.12);
    --down: #f87171;
    --down-soft: rgb(248 113 113 / 0.12);
    --warn: #fbbf24;
    --warn-soft: rgb(251 191 36 / 0.12);
    --new: #93c5fd;
    --new-soft: rgb(147 197 253 / 0.12);
    --quiet: #a5b4fc;
    --quiet-soft: rgb(165 180 252 / 0.12);
    --neutral: #cbd5e1;
    --neutral-soft: rgb(148 163 184 / 0.12);
    --none: #475569;

    --running-bar: #94a3b8;
    --shadow: none;

    color-scheme: dark;
  }
}

/* Snoka's accent (docs/colour.md in the kit): moss. Dark and muted, so it never
   reads as the status green, and never used on anything that means a status. */
:root { --accent: #4a6220; --accent-tile: #5f7d2b; --accent-soft: #f4f7ec; }
:root[data-theme="dark"] { --accent: #a8c46a; --accent-soft: rgb(168 196 106 / 0.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #a8c46a; --accent-soft: rgb(168 196 106 / 0.12); } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--surface-2); border-radius: 6px; padding: 0.1em 0.4em; overflow-wrap: anywhere; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.break { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.calm { color: var(--up); font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { left: 8px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tile */
.tile { flex: none; display: block; width: 34px; height: 34px; }
.tile-large { width: 72px; height: 72px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.topbar-spacer { flex: 1; }
.search { flex: 1; min-width: 0; max-width: 420px; margin-left: 10px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-3); background: var(--bg); }
.search:focus-within { border-color: var(--accent-tile); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; width: 100%; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; color: var(--text-3); background: var(--surface); }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; }
.logout { margin: 0; }

/* Page frame */
.wrap { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; }
.wrap:focus { outline: none; }
/* The footer the Webready tools share: the tool's own half, then the credit */
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 24px 32px; color: var(--text-3); font-size: 13px; }
.foot a { color: var(--text-2); font-weight: 600; }
.credit { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.tools { display: inline-flex; align-items: center; gap: 6px; }
.tools a { display: inline-flex; }
.tool-mark { display: block; width: 16px; height: 16px; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--text-3); font-size: 14px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--accent); }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.button:hover { background: var(--surface-2); text-decoration: none; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; justify-content: center; padding: 10px 16px; }
.button-primary:hover { filter: brightness(1.12); }
.button-small { padding: 5px 10px; font-size: 13px; }

/* The answer first */
.answer { margin-bottom: 22px; }
.answer h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.answer p { margin-top: 4px; color: var(--text-2); font-size: 16px; }
.answer-needs, .answer-clear { display: flex; align-items: flex-start; gap: 16px; }
.answer-mark { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.answer-mark .icon { width: 26px; height: 26px; }
.answer-needs .answer-mark { background: var(--warn-soft); color: var(--warn); }
.answer-clear .answer-mark { background: var(--up-soft); color: var(--up); }
.answer .answer-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; color: var(--text-3); font-size: 14px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar-title { font-size: 20px; font-weight: 800; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.seg a { padding: 7px 14px; border-right: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; font-weight: 700; }
.seg a:last-child { border-right: 0; }
.seg a:hover { text-decoration: none; background: var(--surface-2); }
.seg a[aria-current] { color: var(--accent); background: var(--accent-soft); }

/* Cards and tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { display: flex; align-items: center; gap: 9px; flex: none; font-size: 17px; font-weight: 700; }
.card-head h2 .icon { color: var(--text-3); }
.card-head .sub { text-align: right; }
.card-details > summary { list-style: none; cursor: pointer; border-bottom: 0; }
.card-details > summary::-webkit-details-marker { display: none; }
.card-details[open] > summary { border-bottom: 1px solid var(--line); }
.sub { color: var(--text-3); font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr[aria-current] td { background: var(--accent-soft); }
td.value { overflow-wrap: break-word; max-width: 340px; }
td.empty { text-align: center; color: var(--text-3); padding: 28px; }
.was { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.now { color: var(--text); font-weight: 700; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.plain li { overflow-wrap: anywhere; }
.plain.card-pad { padding: 16px 18px; }
.card-intro { padding: 12px 18px 0; color: var(--text-3); font-size: 13.5px; }

/* Site list */
.sites-table tbody tr { position: relative; }
.sites-table tbody tr:hover td { background: var(--surface-2); }
.row-link::after { content: ""; position: absolute; inset: 0; }
.site-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.fav { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); font-weight: 800; }
.fav-large { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.fav-small { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
.fav-image { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.fav-image img { display: block; width: 62%; height: 62%; object-fit: contain; }
.site-name { color: var(--text); font-weight: 800; font-size: 15px; }
.site-name:hover { color: var(--accent); text-decoration: none; }
.checking { display: inline-flex; align-items: center; gap: 5px; color: var(--neutral); font-weight: 600; }
.checking .icon { width: 14px; height: 14px; }
.top-action { display: block; color: var(--text); font-weight: 600; }
.col-top { min-width: 230px; max-width: 300px; }
.when { color: var(--text-3); font-size: 13.5px; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; color: var(--text-3); font-size: 12.5px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 8px; height: 12px; border-radius: 2.5px; }
.swatch.band-good { background: var(--up-bar); }
.swatch.band-attention { background: var(--warn-bar); }
.swatch.band-critical { background: var(--down-bar); }
.swatch.fail { border: 1.5px solid var(--down-bar); }
/* Running: a dashed outline without a fill (the kit's charts), never a bar without data */
.swatch.running { border: 1.5px dashed var(--running-bar); }

/* Pills, badges and small charts */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.pill .icon { width: 15px; height: 15px; }
.pill-critical, .pill-failed { background: var(--down-soft); color: var(--down); }
.pill-attention { background: var(--warn-soft); color: var(--warn); }
.pill-good { background: var(--up-soft); color: var(--up); }
.pill-new { background: var(--new-soft); color: var(--new); }
.pill-busy { background: var(--neutral-soft); color: var(--neutral); }
.sev { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.sev .icon { width: 14px; height: 14px; }
.sev-critical { background: var(--down-soft); color: var(--down); }
.sev-warning { background: var(--warn-soft); color: var(--warn); }
.sev-notice { background: var(--surface-2); color: var(--text-2); }
.sev-better { background: var(--up-soft); color: var(--up); }
/* Quiet: what a site has on purpose (the kit's quiet, with the moon) */
.quiet-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; background: var(--quiet-soft); color: var(--quiet); font-size: 12px; font-weight: 800; white-space: nowrap; }
.quiet-badge .icon { width: 14px; height: 14px; }
.ignores { list-style: none; margin: 0; padding: 0; }
.ignores li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.ignores li:last-child { border-bottom: 0; }
.ignore-text { display: grid; gap: 2px; flex: 1; min-width: 200px; }
.ignore-undo { font-size: 12px; color: var(--text-3); }
.ignored-here { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }
.health { display: flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.meter .meter-bg { fill: var(--surface-2); }
.meter .meter-fill { fill: var(--none); }
.meter.band-good .meter-fill { fill: var(--up-bar); }
.meter.band-attention .meter-fill { fill: var(--warn-bar); }
.meter.band-critical .meter-fill { fill: var(--down-bar); }
.strip { display: block; }
.strip .bar { fill: var(--none); }
.strip .band-good { fill: var(--up-bar); }
.strip .band-attention { fill: var(--warn-bar); }
.strip .band-critical { fill: var(--down-bar); }
.strip .fail { fill: none; stroke: var(--down-bar); stroke-width: 1.5; }
.strip .running { fill: none; stroke: var(--running-bar); stroke-width: 1.5; stroke-dasharray: 2.5 2; }
.delta { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 800; white-space: nowrap; }
.delta-bad { color: var(--down); font-weight: 700; }
.delta-good { color: var(--up); font-weight: 700; }
.counts-inline { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.dot-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dot-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot-count.sev-critical, .dot-count.sev-warning, .dot-count.sev-notice { background: none; padding: 0; }
.dot-count.sev-critical { color: var(--down); }
.dot-count.sev-warning { color: var(--warn); }
.dot-count.sev-notice { color: var(--text-3); }
.count { font-size: 12.5px; font-weight: 700; color: var(--text-3); }

/* One site */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.site-head-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.head-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--text-3); font-size: 13.5px; }
.head-facts li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.head-facts .icon { width: 15px; height: 15px; }
.head-facts b { color: var(--text); font-weight: 700; }
.head-link a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-weight: 600; }
.head-link a:hover { border-color: var(--accent-tile); color: var(--accent); text-decoration: none; }
.head-link .icon { width: 13px; height: 13px; }
.head-health .meter { width: 40px; height: auto; }
.head-health.band-good b { color: var(--up); }
.head-health.band-attention b { color: var(--warn); }
.head-health.band-critical b { color: var(--down); }
.site-head-strip { display: grid; justify-items: end; gap: 4px; }
.strip-ends { display: flex; justify-content: space-between; gap: 16px; width: 100%; color: var(--text-3); font-size: 12px; }
.out-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.out-link .icon { width: 14px; height: 14px; }
.banner { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); }
.banner .icon { margin-top: 2px; color: var(--text-3); }
.banner-bad { background: var(--down-soft); border-color: transparent; color: var(--down); }
.banner-bad .icon { color: var(--down); }
.banner-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.banner-warn .icon { color: var(--warn); }
.banner-busy { background: var(--neutral-soft); border-color: transparent; color: var(--neutral); }
.banner-busy .icon { color: var(--neutral); }

.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.side { position: sticky; top: 76px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 700; }
.side a:hover { background: var(--surface-2); text-decoration: none; }
.side a .icon { color: var(--text-3); }
.side a .count { margin-left: auto; }
.side a .count.hot { padding: 1px 8px; border-radius: 999px; background: var(--down-soft); color: var(--down); }
.side a.quiet { color: var(--text-3); font-weight: 600; }
.side a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.side a[aria-current] .icon { color: var(--accent); }
.side hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.pane { display: grid; gap: 18px; min-width: 0; align-content: start; }
.answer-line { font-size: 16px; color: var(--text-2); }
.answer-line b { color: var(--text); }

.fix { list-style: none; margin: 0; padding: 0; }
.fix > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.fix > li:last-child { border-bottom: 0; }
.fix .n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-weight: 800; }
.fix-critical .n { background: var(--down-soft); color: var(--down); }
.fix-warning .n { background: var(--warn-soft); color: var(--warn); }
.fix summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; cursor: pointer; list-style: none; }
.fix summary::-webkit-details-marker { display: none; }
.fix summary:hover .fix-title { color: var(--accent); }
.fix-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 4px; }
.fix-title { font-size: 15.5px; font-weight: 800; }
.fix-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--text-3); font-size: 13.5px; }
.fix .finding-body { padding: 14px 0 0; }
.tag-new { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--new-soft); color: var(--new); font-size: 12px; font-weight: 800; white-space: nowrap; }

.findings { list-style: none; margin: 0; padding: 0; }
.finding { border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.finding:last-child { border-bottom: 0; }
.finding summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 13px 18px; cursor: pointer; list-style: none; }
.finding summary::-webkit-details-marker { display: none; }
.finding summary:hover { background: var(--surface-2); }
.finding-title { font-weight: 800; }
.finding-meta { color: var(--text-3); font-size: 13.5px; }
.chevron { margin-left: auto; color: var(--text-3); display: inline-flex; transition: transform 0.15s; }
details[open] > summary .chevron { transform: rotate(180deg); }
.finding-body { padding: 0 18px 16px; }
.explain { display: grid; gap: 6px; max-width: 760px; margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.explain b { color: var(--text); }
.explain .detail { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.mini th, .mini td { padding: 8px 10px; font-size: 13.5px; }
.mini td.detail { color: var(--text-3); overflow-wrap: anywhere; }
.finding-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 13.5px; }
.missing { color: var(--warn); font-weight: 700; }
.plain.columns { display: block; columns: 2 280px; column-gap: 28px; }
.plain.columns li { margin-bottom: 7px; break-inside: avoid; }
.page-list { padding: 4px 10px 0; }
.pages-table td:first-child { min-width: 210px; }
.path { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
a.path:hover { color: var(--accent); }
.out { display: inline-flex; vertical-align: middle; margin-left: 2px; color: var(--text-3); }
.out:hover { color: var(--accent); }
.out .icon { width: 14px; height: 14px; }
.inline-list summary { cursor: pointer; font-weight: 600; }
.inline-list .plain { margin-top: 8px; }

.card-head-tools { flex-wrap: wrap; }
.filter-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 360px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-3); background: var(--bg); }
.filter-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 700; }
.chip:hover { text-decoration: none; background: var(--surface-2); }
.chip[aria-current] { border-color: var(--accent-tile); background: var(--accent-soft); color: var(--accent); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; border-top: 1px solid var(--line); }

/* One page */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.page-head .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.answer-chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 700; }
.answer-good { background: var(--up-soft); color: var(--up); }
.answer-warn { background: var(--warn-soft); color: var(--warn); }
.answer-bad { background: var(--down-soft); color: var(--down); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.serp { display: grid; gap: 4px; max-width: 640px; font-family: Arial, Helvetica, sans-serif; }
.serp-site { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.serp-site b { display: block; font-weight: 400; }
.serp-crumbs { display: block; color: var(--text-3); font-size: 12px; }
.serp-title { margin-top: 4px; color: #1a0dab; font-size: 20px; line-height: 1.3; }
:root[data-theme="dark"] .serp-title { color: #99c3ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .serp-title { color: #99c3ff; } }
.serp-text { color: var(--text-2); font-size: 14px; line-height: 1.58; }
.share-card { max-width: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.share-image { aspect-ratio: 1.91 / 1; display: grid; place-items: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.share-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-none { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.share-image .share-fallback, .share-failed img { display: none; }
.share-failed .share-fallback { display: inline-flex; }
.share-text { display: grid; gap: 3px; padding: 10px 14px 12px; background: var(--surface-2); }
.share-host { color: var(--text-3); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.share-text b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.share-desc { color: var(--text-2); font-size: 13.5px; }
.share-note { margin-top: 10px; color: var(--text-3); font-size: 13px; }
.serp-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--font); color: var(--warn); font-size: 13.5px; font-weight: 600; }
.hint { display: block; font-weight: 500; }

/* What Snoka saw: rows in groups, each marked fine or with its worst issue */
.facts-group { padding: 14px 18px 4px; border-bottom: 1px solid var(--line); }
.facts-group:last-child { border-bottom: 0; }
.facts-group h3 { color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.facts { margin: 0; }
.fact { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.fact dt .hint { color: var(--text-3); font-size: 12px; }
.fact dd { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.fact-mark { flex: none; display: inline-flex; width: 16px; height: 16px; margin-top: 1px; }
.fact-mark .icon { width: 16px; height: 16px; }
.mark-fine { color: var(--up); }
.mark-critical { color: var(--down); }
.mark-warning { color: var(--warn); }
.mark-notice { color: var(--text-3); }
.card-foot { padding: 0 18px 16px; }

/* A list too long for its card opens in a sheet (the popover attribute: no script) */
.sheet { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -24px rgb(15 23 42 / 0.5); }
.sheet::backdrop { background: rgb(15 23 42 / 0.5); }
.sheet:popover-open { display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.sheet-body { flex: 1; overflow: auto; padding: 14px 18px; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* Onboarding, empty states, login */
.onboarding { display: grid; justify-items: start; gap: 14px; padding: 32px; max-width: 760px; }
.onboarding h1 { font-size: 28px; font-weight: 800; }
.lede { color: var(--text-2); font-size: 16px; }
.steps { display: grid; gap: 12px; margin: 4px 0; padding: 0; list-style: none; counter-reset: step; width: 100%; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "n text button" "n code button"; align-items: center; gap: 4px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); counter-increment: step; }
.steps li::before { content: counter(step); grid-area: n; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.steps .step-text { grid-area: text; color: var(--text-2); }
.steps code { grid-area: code; justify-self: start; }
.steps .button { grid-area: button; }
.empty-state { display: grid; gap: 10px; max-width: 520px; }
.empty-state h1 { font-size: 24px; font-weight: 800; }

body.bare { background: var(--night); color: var(--night-text); }
body.bare .foot { color: var(--night-muted); }
body.bare .foot a { color: var(--night-text); }
.login { width: 100%; max-width: 400px; margin: 7vh auto 0; display: grid; justify-items: center; text-align: center; }
.login h1 { margin: 18px 0 2px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.login-tagline { margin-bottom: 26px; color: var(--night-muted); font-size: 16px; }
.login form { width: 100%; display: grid; gap: 6px; padding: 24px; text-align: left; background: rgb(30 41 59 / 0.72); border: 1px solid #334155; border-radius: 18px; }
.login label { margin-top: 8px; color: #cbd5e1; font-size: 14px; font-weight: 600; }
.login input { padding: 10px 12px; border: 1px solid #475569; border-radius: var(--radius-sm); background: #0f172a; color: var(--night-text); font: inherit; }
.login input:focus { outline: 3px solid rgb(168 196 106 / 0.5); outline-offset: 0; border-color: #a8c46a; }
.login .button-primary { margin-top: 16px; }
.login .muted { margin-top: 18px; color: var(--night-muted); }
.login code { background: rgb(148 163 184 / 0.15); color: var(--night-text); }
.login .banner { margin-bottom: 4px; }

/* Smaller screens */
@media (max-width: 1100px) {
  .col-strip, .col-top { display: none; }
  .page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .side { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 4px; }
  .side a.quiet:not([aria-current]), .side hr { display: none; }
  .search kbd { display: none; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .brand-name, .who { display: none; }
  .search { margin-left: 0; }
  .wrap { padding: 20px 14px 40px; }
  .answer h1 { font-size: 26px; }
  .site-head h1 { font-size: 22px; }
  .site-head-strip { justify-items: start; }

  /* Tables become one block per row */
  .sites-table thead, .stack thead, .mini thead { display: none; }
  .sites-table, .sites-table tbody, .stack, .stack tbody, .mini, .mini tbody { display: block; }
  .sites-table tbody tr, .stack tbody tr, .mini tbody tr { display: grid; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .sites-table tbody tr:last-child, .stack tbody tr:last-child, .mini tbody tr:last-child { border-bottom: 0; }
  .sites-table td, .stack td, .mini td { display: flex; align-items: baseline; gap: 10px; padding: 0; border: 0; max-width: none; overflow-wrap: anywhere; }
  .sites-table td[data-label]::before, .stack td[data-label]::before, .mini td[data-label]::before { content: attr(data-label); flex: 0 0 96px; color: var(--text-3); font-size: 12px; font-weight: 700; }
  .sites-table td[data-label=""]::before, .stack td[data-label=""]::before { display: none; }
  .sites-table td:empty, .mini td:empty { display: none; }
  .sites-table tbody tr:hover td { background: none; }
  .fix > li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .answer-mark { width: 40px; height: 40px; border-radius: 12px; }
  .steps li { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "n text" "n code" "n button"; }
  .steps .button { justify-self: start; }
  .card-head { flex-wrap: wrap; }
  .card-head .sub { text-align: left; }
}

/* Touch screens: every target at least 44 px (the kit's layout rules) */
@media (pointer: coarse) {
  .icon-button { width: 44px; height: 44px; }
  .search { height: 44px; }
  .button, .seg a, .chip, .side a, .head-link a { min-height: 44px; }
  .seg a, .chip { display: inline-flex; align-items: center; }
  .finding summary, .fix summary, .card-details > summary { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 150ms; }
}
