:root {
  color-scheme: light;
  --bg: #e8e6e1;
  --surface: #fcfcfb;
  --surface-soft: #f6f5f1;   /* faint off-white: between the page grey and the cards */
  --border: #e3e2dd;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #75746f;
  --accent: #2a78d6;
  --good: #0ca30c;
  --neutral: #2a78d6;
  --warning: #fab219;
  --critical: #d03b3b;
  --other: #9a9992;
  --grid: #e8e7e2;
  --series-2: #eb6834;
  --dot-color: #cac7bf;
  --good-text: #006300;
  --warning-text: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-soft: #20201e;
    --border: #2e2e2b;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --muted: #9a9992;
    --accent: #3987e5;
    --neutral: #3987e5;
    --other: #75746f;
    --grid: #2a2a27;
    --series-2: #d95926;
    --dot-color: #2c2c29;
    --good-text: #3fbf3f;
    --warning-text: #fab219;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
/* Same container as <main> on each page, so the brand lines up with the content below. */
.site-inner { max-width: 880px; margin: 0 auto; padding: 12px 16px; }
.site-inner.report { max-width: 1380px; padding-left: 24px; padding-right: 24px; }
.site-inner.raw { max-width: 1400px; }
.brand-line { display: flex; align-items: baseline; gap: 8px; }
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.badge {
  font: 600 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 5px;
}
.tagline { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }
main { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Report layout: sticky sidebar + wide column; sidebar becomes a top bar on narrow screens. */
main.report {
  max-width: 1380px; display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px; align-items: start; padding-left: 24px; padding-right: 24px;
}
.report-body { max-width: 1100px; min-width: 0; }
.report-body section { scroll-margin-top: 20px; }
.sidebar {
  position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto;
  font-size: 0.9rem; padding-top: 52px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  padding: 6px 10px; border-radius: 6px; color: var(--text-2); text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar a:hover { background: var(--surface); color: var(--text); }
.sidebar a[aria-current] {
  background: var(--surface); color: var(--text); font-weight: 600; border-left-color: var(--accent);
}
.sidebar .count { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; font-weight: 400; }
@media (max-width: 900px) {
  main.report { display: block; padding-left: 16px; padding-right: 16px; padding-top: 0; }
  .site-inner.report { padding-left: 16px; padding-right: 16px; }
  .sidebar {
    position: sticky; top: 0; z-index: 5; max-height: none; overflow-x: auto; overflow-y: hidden;
    padding: 8px 16px; margin: 0 -16px 12px; background: var(--bg);
    border-bottom: 1px solid var(--border); scrollbar-width: none;
  }
  .sidebar ul { display: flex; gap: 4px; white-space: nowrap; }
  .sidebar a { border-left: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; }
  .sidebar a[aria-current] { border-bottom-color: var(--accent); }
  .report-body section { scroll-margin-top: 64px; }
}
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 8px; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 36px 0 8px; }
.card h2 { margin-top: 0; }
a { color: var(--accent); }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lede { color: var(--text-2); max-width: 64ch; }
.sentence { font-size: 1.05rem; max-width: 68ch; }
.crumb { margin: 0 0 12px; font-size: 0.9rem; }
.error { color: var(--critical); font-weight: 600; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; margin: 20px 0;
}
.upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.upload input[type=file] { max-width: 100%; }
button {
  font: inherit; padding: 8px 18px; border-radius: 8px; border: 0;
  background: var(--accent); color: #fff; cursor: pointer;
}
button.link {
  background: none; color: var(--accent); padding: 0; text-decoration: underline;
}
.files { list-style: none; padding: 0; margin: 0; }
.files li { padding: 6px 0; border-top: 1px solid var(--border); }
.files li:first-child { border-top: 0; }
.files form { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }

.tiles {
  display: grid; gap: 12px; margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px;
}
.tile.wide { grid-column: 1 / -1; }
.tiles.strip { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 700px) { .tiles.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile .label { color: var(--text-2); font-size: 0.875rem; }
.tile .value { font-size: 1.6rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.tile .small-value { font-size: 1.1rem; }
.tile .note { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

.chart-wrap {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin: 16px 0 8px;
}
details { margin: 12px 0; }
summary { cursor: pointer; color: var(--accent); }
table { border-collapse: collapse; width: 100%; margin-top: 8px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--text-2); font-weight: 600; font-size: 0.875rem; }
.num { text-align: right; white-space: nowrap; }
.examples { padding-left: 18px; }
.examples code { overflow-wrap: anywhere; }

h3 { font-size: 1rem; margin: 24px 0 6px; }
.jump {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
section { scroll-margin-top: 12px; }
h2[id] { scroll-margin-top: 12px; }
td.path { overflow-wrap: anywhere; word-break: break-word; }
td.path code { font-size: 0.85em; }

/* Loading overlay: shown while the server reads the log. */
.loading {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 16px; z-index: 10;
}
.loading.on { display: flex; }
.loading .box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 28px; max-width: 420px; text-align: center;
}
.loading .title { font-weight: 650; font-size: 1.1rem; margin: 12px 0 4px; }
.loading .elapsed { font-variant-numeric: tabular-nums; }
.spinner {
  width: 28px; height: 28px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* Findings */
.finding {
  background: var(--surface); border: 1px solid var(--border); border-left-width: 4px;
  border-radius: 10px; padding: 14px 18px; margin: 14px 0;
}
.finding h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.finding p { margin: 6px 0; max-width: 72ch; }
.finding .check { color: var(--text-2); }
.finding .sev { font-size: 0.8rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); margin: 0; }
.sev-icon {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.7rem; color: #fff; margin-right: 4px; vertical-align: 1px;
}
.sev-high { border-left-color: var(--critical); }
.sev-high .sev-icon { background: var(--critical); }
.sev-medium { border-left-color: var(--warning); }
.sev-medium .sev-icon { background: var(--warning); color: #0b0b0b; }
.sev-low { border-left-color: var(--neutral); }
.sev-low .sev-icon { background: var(--neutral); }
.finding .detail code { overflow-wrap: anywhere; font-size: 0.85em; }
.tag {
  display: inline-block; font-size: 0.72rem; padding: 0 6px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2); vertical-align: 1px; white-space: nowrap;
}
.setup ol { padding-left: 20px; margin: 8px 0; }
.setup p { margin: 6px 0; max-width: 70ch; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 12px 0 0; font-size: 0.875rem; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch.s1 { background: var(--neutral); }
.swatch.s2 { background: var(--series-2); }

/* Compact findings */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 36px 0 8px; }
.section-head h2 { margin: 0; }
.finding .summary { font-size: 1.02rem; margin: 4px 0 2px; }
.finding .summary strong { font-weight: 700; }
details.more > summary { font-size: 0.9rem; margin-top: 4px; }
details.more[open] > summary { margin-bottom: 4px; }
details.show-all { margin-top: 0; }
details.show-all table { margin-top: 0; }

/* Explain this log (mock-up) */
.explain-btn { background: var(--accent); }
.explain-btn[aria-expanded="true"] { background: none; color: var(--accent); border: 1px solid var(--accent); }
.explain-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin: 12px 0 18px;
}
.explain-panel h3 { font-size: 1rem; margin: 16px 0 6px; }
.explain-panel h3:first-child { margin-top: 4px; }
.explain-panel p, .explain-panel li { max-width: 72ch; }
.mock-label {
  display: inline-block; font-size: 0.78rem; color: var(--text-2); margin: 0 0 6px;
  border: 1px dashed var(--border); border-radius: 6px; padding: 2px 8px;
}
.explain-writing { color: var(--text-2); display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.explain-writing[hidden], .explain-text[hidden] { display: none; }
.spinner.small { width: 16px; height: 16px; border-width: 2px; margin: 0; }
.finding { padding: 12px 18px 10px; margin: 10px 0; }
.finding details { margin: 6px 0 0; }
.finding details details { margin-top: 8px; }

/* Section cards and chapters (section-cards design) */
.chapter-label .n, .nav-chapter .n { margin-right: 6px; opacity: 0.75; }
.chapter-label {
  font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 48px 0 12px;
}
.card-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 22px 16px; margin: 0 0 32px;
}
.card-section .section-head { margin: 0 0 8px; align-items: baseline; }
.card-section h2 { margin: 0; }
.card-section h3 { margin-top: 20px; }
.card-section > :last-child { margin-bottom: 0; }
.figure {
  font-size: 0.85rem; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px;
  white-space: nowrap;
}
/* One box per section: the chart sits straight on the card. */
.card-section .chart-wrap { border: 0; background: none; padding: 0; margin: 14px 0 6px; }
.card-section .card.setup { background: var(--bg); margin: 8px 0 0; }
.sentence strong { font-weight: 700; }
.nav-chapter {
  font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 14px 13px 4px;
}
@media (max-width: 900px) {
  .nav-chapter { display: none; }
  .card-section { padding: 14px 16px; margin-bottom: 24px; }
}

.explain-note { margin: -2px 0 8px; }
.explain-warning { color: var(--critical); font-weight: 600; }
.explain-text h3:first-child { margin-top: 4px; }

/* Dot-grid page background (section-cards design). Faint on purpose: text
   mostly sits on cards, and the dots show in the gaps between them. */
body {
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0;
}
.debrief-title {
  font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 0 0 4px;
}

/* Flags in "What stands out" */
.flag-red { --flag: var(--critical); }
.flag-yellow { --flag: var(--warning); }
.flag-green { --flag: var(--good); }
.flag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 12px; }
.flag-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.9rem; font-weight: 600; text-transform: capitalize;
}
.flag-btn:hover { border-color: var(--text-2); }
.flag-btn[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.flag-count { font-variant-numeric: tabular-nums; }
.flag-hint { margin-left: 4px; }
.flag-icon { width: 16px; height: 16px; flex: none; color: var(--text-2); vertical-align: -3px; }
.finding .sev { display: flex; align-items: center; gap: 6px; }
.finding.flag-red { border-left-color: var(--critical); }
.finding.flag-yellow { border-left-color: var(--warning); }
.finding.flag-green { border-left-color: var(--good); }
.findings-grid {
  display: grid; gap: 12px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
}
.findings-grid .finding { margin: 0; }
.findings-grid .finding[hidden] { display: none; }
.finding ol.steps { margin: 4px 0 8px; padding-left: 22px; color: var(--text-2); }
.finding ol.steps li { margin: 3px 0; }
.finding ol.steps code, .finding .check code { font-size: 0.82em; background: var(--bg); padding: 1px 4px; border-radius: 4px; overflow-wrap: anywhere; }

/* Site settings on the upload page */
.settings-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.settings-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--text-2); }
.settings-row label.tick { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
.settings-row label.grow { flex: 1 1 240px; }
.settings-row select, .settings-row input[type=text] {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; min-width: 0;
}

/* Fix steps and snippets */
.fix-context { margin: 0 0 8px; }
ol.fix { margin: 6px 0 10px; padding-left: 22px; }
ol.fix > li { margin: 10px 0; }
ol.fix > li > p { margin: 0 0 6px; color: var(--text-2); }
ol.fix > li.fix-check > p { color: var(--text); }
.snippet { border: 1px solid var(--border); border-radius: 8px; margin: 6px 0 10px; overflow: hidden; background: var(--bg); }
.snippet-head {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 10px;
  border-bottom: 1px solid var(--border); font-size: 0.78rem; background: var(--surface);
}
.snippet-label { font-weight: 600; color: var(--text-2); }
.snippet .review { color: var(--critical); font-weight: 600; margin-left: auto; }
.copy-btn {
  font-size: 0.78rem; padding: 3px 10px; border-radius: 6px; background: var(--surface);
  color: var(--accent); border: 1px solid var(--border);
}
.copy-btn:hover { border-color: var(--accent); }
.snippet pre { margin: 0; padding: 10px 12px; max-height: 260px; overflow: auto; font-size: 0.8rem; line-height: 1.45; }
.snippet code { white-space: pre; }

/* Homepage promise and data page */
.promise h2 { margin-top: 0; }
.promise p { max-width: 68ch; }
ol.how { padding-left: 22px; margin: 10px 0 12px; }
ol.how li { margin: 6px 0; max-width: 68ch; }
.stays-local { margin: 8px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--good-text); }
.doc h2 { margin-top: 0; }
.doc p, .doc li { max-width: 72ch; }
.two-col { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.two-col h3 { margin: 8px 0 4px; font-size: 0.95rem; }

/* Footer */
/* Footer: a full-width band like the header, with its contents on the page grid
   (text at the sidebar's left edge, logo at the cards' right edge). */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-size: 0.85rem;
}
.site-footer .site-inner { padding-top: 18px; padding-bottom: 22px; }
.footer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; align-items: start; }
.footer-blurb { grid-column: span 4; }
.site-footer p { margin: 4px 0; }
/* Top-aligned with "Pit Wall" on the first line; about the height of two lines. */
.maker-logo { grid-column: span 2; justify-self: end; display: block; margin-top: 3px; }
.maker-logo img { height: 32px; width: auto; display: block; }
@media (max-width: 700px) {
  .footer-blurb, .maker-logo { grid-column: 1 / -1; }
  .maker-logo { justify-self: start; }
}
.site-footer .footer-links a { color: var(--accent); }

/* Raw log viewer */
main.raw { max-width: 1400px; }
.h1-sub { font-weight: 400; font-size: 1.1rem; }
.browse-lines { margin: -2px 0 10px; font-size: 0.9rem; }
.lines-link { margin: 8px 0 4px; font-size: 0.9rem; font-weight: 600; }
.raw-filters { padding: 14px 18px; }
.raw-filters input[type=text] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; min-width: 0; }
.raw-actions { display: flex; gap: 12px; align-items: center; padding-bottom: 2px; }
.raw-count { margin: 10px 0; }
.raw-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.raw-table { font-size: 0.82rem; margin: 0; }
.raw-table th { position: sticky; top: 0; background: var(--surface); white-space: nowrap; }
.raw-table th a { color: var(--text-2); text-decoration: none; }
.raw-table th[aria-sort] a { color: var(--text); }
.raw-table td { vertical-align: top; }
.raw-table td.req code { overflow-wrap: anywhere; }
.raw-table td.clip { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.raw-table .nowrap { white-space: nowrap; }
.raw-table tr.st-4xx .status { color: var(--warning-text); font-weight: 600; }
.raw-table tr.st-5xx .status { color: var(--critical); font-weight: 600; }
.pager { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 14px 0 0; }
.raw-cap { padding: 10px 16px; border-left: 4px solid var(--warning); }

/* Report title with the secondary "Browse every line" button */
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.title-row h1 { margin: 0; }
.btn-secondary {
  display: inline-block; padding: 6px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  color: var(--accent); border: 1px solid var(--accent); background: transparent; text-decoration: none;
}
.btn-secondary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Raw viewer: one-line requests, flagged rows, expandable details */
.raw-filters select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; }
.raw-table td.req { max-width: 420px; }
.raw-table .one-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raw-table .toggle-col { width: 26px; padding-right: 0; }
.row-toggle { background: none; color: var(--text-2); border: 0; padding: 0 4px; font-size: 0.8rem; cursor: pointer; }
.line-row { cursor: pointer; }
.line-row:hover td { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.line-row.flagged.flag-red td { background: color-mix(in srgb, var(--critical) 7%, var(--surface)); }
.line-row.flagged.flag-yellow td { background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
.line-row.flagged.flag-red td:first-child { box-shadow: inset 4px 0 0 var(--critical); }
.line-row.flagged.flag-yellow td:first-child { box-shadow: inset 4px 0 0 var(--warning); }
.raw-table td.flag-cell { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flag-label { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.line-row.flag-red .flag-label { color: var(--critical); }
.line-row.flag-yellow .flag-label { color: var(--warning-text); }
.detail-row td { background: var(--surface-soft); padding: 10px 16px 14px 34px; }
/* The flagged row's coloured edge carries on down its detail panel. */
.detail-row.flag-red td { box-shadow: inset 4px 0 0 var(--critical); }
.detail-row.flag-yellow td { box-shadow: inset 4px 0 0 var(--warning); }
.line-detail { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 0.85rem; }
.line-detail dt { color: var(--text-2); font-weight: 600; }
.line-detail dd { margin: 0; min-width: 0; }
.line-detail code.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.flag-chip { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 0 6px; border-radius: 4px; color: #fff; }
.flag-chip.flag-red { background: var(--critical); }
.flag-chip.flag-yellow { background: var(--warning); color: #0b0b0b; }

/* Bots table and the suggested block list */
.table-scroll { overflow-x: auto; }
.bots-table td, .block-table td { vertical-align: top; }
.status-mix { white-space: normal; }
.status-mix .st { display: inline-block; margin: 0 8px 2px 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-2xx, .st-3xx { color: var(--text-2); }
.st-4xx { color: var(--warning-text); }
.st-5xx { color: var(--critical); font-weight: 600; }
.tag-verified { border-color: var(--good); color: var(--good-text); }
.tag-fake, .tag-partly-fake { border-color: var(--critical); color: var(--critical); }
.tag-unverified { border-style: dashed; color: var(--text-2); }
.bot-types { padding-left: 18px; margin: 6px 0 10px; }
.bot-types li { margin: 4px 0; max-width: 80ch; }
.stopgap { border-left: 3px solid var(--warning); padding: 6px 10px; background: var(--surface-soft); max-width: 80ch; }
.own-traffic { margin: 10px 0 16px; }
.own-traffic h3 { margin: 0 0 6px; }
.own-list { list-style: none; padding: 0; margin: 8px 0 0; }
.own-list li { border-top: 1px solid var(--border); padding: 8px 0; }
.own-list p { margin: 3px 0; }
.block-table td:first-child, .block-table th:first-child { width: 2.2em; }
.bl-formats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 6px; }
.bl-format { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.bl-format[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.bl-export pre { max-height: 320px; overflow: auto; }

/* Browser version: shown once every file is stored for offline use */
.offline-status { border-left: 3px solid var(--good); padding: 6px 10px; background: var(--surface-soft); color: var(--good-text); }
