@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #ecedf0;
  --raised: #f6f6f8;
  --ink: #17181c;
  --body: #4d5059;
  --muted: #676a74;
  --line: #d4d5db;
  --grid: #dcdde2;
  --button: #17181c;
  --button-ink: #ffffff;
  --ok: #0b7a3b;
  --warning: #8a5a00;
  --critical: #c9262d;
  --critical-wash: #f8e1e2;
  --warning-wash: #f5ead2;
  --ok-wash: #dcefe2;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #6250d6;
  --series-8: #e34948;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #141518;
    --raised: #1d1e23;
    --ink: #f1f1f3;
    --body: #b7b9c1;
    --muted: #9598a2;
    --line: #33353c;
    --grid: #2a2c32;
    --button: #f1f1f3;
    --button-ink: #17181c;
    --ok: #4cc47c;
    --warning: #e9b44c;
    --critical: #ff6b70;
    --critical-wash: #3b2023;
    --warning-wash: #372c17;
    --ok-wash: #18301f;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #141518;
  --raised: #1d1e23;
  --ink: #f1f1f3;
  --body: #b7b9c1;
  --muted: #9598a2;
  --line: #33353c;
  --grid: #2a2c32;
  --button: #f1f1f3;
  --button-ink: #17181c;
  --ok: #4cc47c;
  --warning: #e9b44c;
  --critical: #ff6b70;
  --critical-wash: #3b2023;
  --warning-wash: #372c17;
  --ok-wash: #18301f;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The footer sits at the bottom of the window on short pages, and after the content on long ones. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.5 var(--sans); }
main { flex: 1 0 auto; width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: not-allowed; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }
main:focus { outline: none; }
b, strong { font-weight: 600; color: var(--ink); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 20; padding: 6px 12px; background: var(--raised); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 56px); background: var(--page); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 600; letter-spacing: -.035em; text-decoration: none; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--body); text-decoration: none; padding: 3px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.site-status { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 13.5px; color: var(--body); }
.live-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); } .dot.warning { background: var(--warning); } .dot.critical { background: var(--critical); }
.model-chip { text-decoration: none; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.model-chip:hover { color: var(--ink); text-decoration: underline; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--ink); }
.icon-button:hover { background: var(--raised); }

/* Layout */
.page { max-width: 1520px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px) 56px; }
.section { padding-top: 44px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 14px; }
h2 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.body-text { color: var(--body); max-width: 68ch; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: center; padding-top: 52px; min-height: 480px; }
.hero-solo { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 44px; }
.hero h1 { font-size: clamp(42px, 5.1vw, 76px); font-weight: 600; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
.hero h1.tone-critical { color: var(--ink); }
.hero-copy { margin-top: 26px; max-width: 54ch; font-size: 17px; line-height: 1.75; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.hero-chart-title { margin-bottom: 6px; color: var(--body); font-size: 14px; }
.hero-chart-title b { font-weight: 600; }
.cluster-stats { margin-top: 10px; }
.cluster-stats .stat.is-bad b { color: var(--critical); }
.cluster-subhead { margin-top: 22px; }
.hero-switch { margin-bottom: 14px; }
/* The panel starts at the top of the hero, whatever the view, so the switch stays in the same place.
   Centering it moved the switch every time a view of another height was chosen. */
.hero-panel { align-self: start; min-height: 380px; }
.watched-head { margin: 22px 0 8px; font-size: 16px; font-weight: 600; }
.watched-head:first-child { margin-top: 0; }
.workflow-filters { margin: 4px 0 16px; gap: 10px; }
.workflow-filters input[type=search] { flex: 1 1 320px; max-width: 520px; }
.workflow-filters .select-button { flex: 0 1 220px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; background: transparent; border: 1px solid var(--muted); border-radius: 999px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.button:hover { border-color: var(--ink); }
.button.primary { background: var(--button); border-color: var(--button); color: var(--button-ink); }
.button.primary:hover { opacity: .88; }
.button.large { padding: 13px 26px; font-size: 16.5px; }
.button.compact { padding: 4px 12px; font-size: 13.5px; }
.button.danger { color: var(--critical); border-color: var(--critical); }
.button[disabled] { opacity: .5; }
.link-button { padding: 0; background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.link-button:hover { color: var(--ink); }

/* Segmented control */
.segments { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.segments button { padding: 3px 11px; background: none; border: 0; border-radius: 999px; color: var(--body); font-size: 13.5px; }
.segments button:hover { color: var(--ink); }
.segments button[aria-pressed="true"], .segments button[aria-selected="true"] { background: var(--button); color: var(--button-ink); }
.control-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }

/* Investigate: choosing problems, the focus bar, and evidence under the answer. */
.rail-pick { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; cursor: pointer; }
.rail-pick input { margin: 3px 0 0; accent-color: var(--button); }
.rail-pick:hover b { text-decoration: underline; text-underline-offset: 2px; }
.rail-pick.is-chosen { margin: 0 -8px; padding-left: 8px; padding-right: 8px; background: var(--raised); border-radius: 8px; }
.rail-hint { margin: -2px 0 6px; color: var(--muted); font-size: 12.5px; }
.focus-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 2px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.focus-label { color: var(--muted); font-size: 13px; }
.focus-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 4px 2px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; overflow-wrap: anywhere; }
.focus-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--muted); font-size: 15px; line-height: 1; }
.focus-chip button:hover { background: var(--raised); color: var(--ink); }
.evidence-origin { padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11.5px; }
.evidence-dash { margin: 18px 0 4px; }
.evidence-dash h3 { margin-bottom: 8px; font-size: 14.5px; }
.evidence-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.evidence-chart { min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.evidence-chart figcaption { margin-bottom: 6px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* Cost savings */
.savings-stats { margin: 14px 0 22px; }
.savings-list { display: grid; gap: 0; max-width: 900px; border-top: 1px solid var(--line); }
.savings-list li { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.savings-list li > p { max-width: 72ch; color: var(--body); font-size: 14px; }
.savings-list .form-grid { max-width: 640px; }
.savings-list .segments { justify-self: start; }
.noise-title { margin-top: 30px; font-size: 18px; }
.noise-steps { list-style: none; counter-reset: none; }
.heartbeat-state { margin: 10px 0 12px; }
.heartbeat-form { display: grid; gap: 12px; max-width: 900px; }

/* Source picker: a pill like the segmented controls, naming which connection a part of the page shows.
   It only appears when there is more than one to choose from. */
.source-pick { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13.5px; }
.source-pick-box { position: relative; display: inline-flex; min-width: 0; }
.source-pick .select-button { max-width: 260px; padding: 5px 34px 5px 14px; background-color: var(--page); border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.hero-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.hero-controls .hero-switch { margin-bottom: 0; }
.hero-controls:has(> .hero-switch[hidden]):has(> .hero-pick:empty) { display: none; }
.golden-source { margin-top: 6px; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.golden-source::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--muted); vertical-align: 1px; }
.panel-source { flex: none; max-width: 40%; overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.main-badge { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.connection-group { min-width: 0; }
.connection-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.connection-forms { display: grid; gap: 22px; }
.connection-forms > form + form { padding-top: 20px; border-top: 1px solid var(--line); }
.connection-title { margin-bottom: 10px; font-size: 15px; overflow-wrap: anywhere; }

/* Attention lists */
.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 8px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-icon { margin-top: 3px; width: 16px; height: 16px; }
.row-title { font-weight: 500; overflow-wrap: anywhere; }
.row-detail { grid-column: 2 / 4; color: var(--body); font-size: 13.5px; overflow-wrap: anywhere; }
.row-cause { color: var(--muted); font-size: 12.5px; }
.row-cause.is-root { color: var(--warning); font-weight: 500; }
.row.is-related { padding-left: 18px; border-left: 2px solid var(--line); }
.row-side { color: var(--muted); font-size: 13px; white-space: nowrap; }
.empty { padding: 22px 0; color: var(--body); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.icon-critical { color: var(--critical); } .icon-warning { color: var(--warning); } .icon-ok { color: var(--ok); } .icon-info { color: var(--muted); }
.scroll-rows { max-height: 340px; overflow-y: auto; }

/* Panels */
.dash-bar { position: sticky; top: 61px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 0; background: var(--page); border-bottom: 1px solid var(--line); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.panel { min-width: 0; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 4px; }
.panel-head h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-actions { display: flex; gap: 2px; margin-left: auto; opacity: .75; }
.panel:hover .panel-actions, .panel:focus-within .panel-actions { opacity: 1; }
.panel-actions button, .panel-actions a { padding: 2px 8px; background: none; border: 0; border-radius: 999px; color: var(--body); font-size: 13px; text-decoration: none; }
.panel-actions button:hover, .panel-actions a:hover { background: var(--raised); color: var(--ink); }
.panel-query { display: block; overflow: hidden; margin-bottom: 8px; color: var(--muted); font: 400 11.5px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.chart-box { position: relative; min-height: 120px; }
.chart-message { display: grid; place-items: center; min-height: 190px; padding: 16px; color: var(--body); text-align: center; font-size: 14px; }
.chart-message.is-error { color: var(--critical); overflow-wrap: anywhere; }
.chart-tooltip { position: absolute; z-index: 4; min-width: 150px; max-width: 320px; padding: 8px 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); }
.tip-time { margin-bottom: 4px; color: var(--muted); }
.tip-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.tip-row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-row b { font-variant-numeric: tabular-nums; }
.swatch { width: 10px; height: 3px; border-radius: 2px; }
.legend-table-wrap { max-height: 136px; margin-top: 8px; overflow: auto; }
.legend-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.legend-table th { position: sticky; top: 0; padding: 2px 8px; background: var(--page); color: var(--muted); font-weight: 500; text-align: right; }
.legend-table th:first-child { text-align: left; padding-left: 0; }
.legend-table td { padding: 2px 8px; text-align: right; white-space: nowrap; }
.legend-table td:first-child { max-width: 0; width: 60%; padding-left: 0; text-align: left; }
.legend-name { display: flex; align-items: center; gap: 7px; width: 100%; padding: 0; background: none; border: 0; text-align: left; }
.legend-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-name[aria-pressed="false"] { opacity: .45; }
.legend-note { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.uplot { font-family: var(--sans); }
.u-over { touch-action: pan-y; }

/* Investigate */
.investigate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px 48px; align-items: start; padding-top: 28px; }
.conv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.conv-head h1 { flex: 1 1 280px; min-width: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; overflow-wrap: anywhere; }
.conv-outcome { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line); }
.conv-outcome textarea.input { min-height: 40px; }
.conv-outcome .button { margin-bottom: 4px; }
.messages { display: grid; gap: 26px; padding: 26px 0; }
.message-user { justify-self: end; max-width: min(78%, 640px); padding: 10px 16px; background: var(--raised); border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-meta { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.message-status { display: flex; align-items: center; gap: 8px; color: var(--body); font-size: 14px; }
.spinner { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { margin: 6px 0; padding: 7px 12px; background: var(--warning-wash); border-radius: 8px; font-size: 13.5px; }
.error-note { margin: 6px 0; padding: 9px 12px; background: var(--critical-wash); border-radius: 8px; overflow-wrap: anywhere; }
.past-note { margin-bottom: 10px; font-size: 13.5px; color: var(--body); }
.evidence { margin-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence > summary { padding: 8px 0; color: var(--body); font-size: 14px; cursor: pointer; }
.evidence-item { padding: 8px 0; border-top: 1px solid var(--line); }
.evidence-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.evidence-head code { min-width: 0; flex: 1 1 280px; overflow-wrap: anywhere; }
pre.result { max-height: 240px; margin: 6px 0 0; padding: 8px 10px; overflow: auto; background: var(--raised); border-radius: 6px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.markdown { max-width: 76ch; line-height: 1.6; overflow-wrap: anywhere; }
.markdown h1, .markdown h2, .markdown h3 { margin: 18px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.markdown h2:first-child, .markdown h1:first-child { margin-top: 0; }
.markdown p { margin: 6px 0; }
.markdown ul, .markdown ol { margin: 6px 0; padding-left: 22px; }
.markdown ul { list-style: disc; } .markdown ol { list-style: decimal; }
.markdown code { padding: 1px 4px; background: var(--raised); border-radius: 4px; }
.markdown pre { padding: 10px 12px; overflow: auto; background: var(--raised); border-radius: 8px; }
.markdown pre code { padding: 0; background: none; }
.markdown table { display: block; overflow: auto; border-collapse: collapse; }
.markdown th, .markdown td { padding: 4px 10px; border: 1px solid var(--line); text-align: left; }
.starter { padding: 24px 0; }
.starter h1 { max-width: 16em; font-size: clamp(34px, 4vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.starter p { margin-top: 14px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.suggestions button { padding: 6px 13px; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--body); text-align: left; overflow-wrap: anywhere; }
.suggestions button:hover { border-color: var(--ink); color: var(--ink); }
.composer { position: sticky; bottom: 12px; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 30px rgba(0, 0, 0, .08); }
.composer textarea { display: block; width: 100%; min-height: 54px; max-height: 240px; padding: 2px 4px; background: none; border: 0; resize: vertical; outline: none; }
.composer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.composer-row .select-button { max-width: 220px; padding: 5px 32px 5px 13px; background-color: transparent; border-radius: 999px; font-size: 13.5px; }
.composer-send { display: flex; gap: 8px; margin-left: auto; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--body); }
.check input { accent-color: var(--ink); margin: 0; }
.privacy-note { margin-top: 6px; color: var(--warning); font-size: 13px; }

/* Live context rail */
.rail { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; min-width: 0; }
.rail-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.rail-group { margin-top: 18px; }
.rail-group h3 { margin-bottom: 4px; font-size: 14px; }
.rail-item { padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; overflow-wrap: anywhere; }
.rail-item small { display: block; color: var(--muted); font-size: 12.5px; }
.rail-none { padding: 6px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.stale-banner { margin-bottom: 18px; padding: 10px 14px; background: var(--critical-wash); border-radius: 10px; overflow-wrap: anywhere; }
.setup-banner { margin-top: 24px; padding: 12px 16px; background: var(--warning-wash); border-radius: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 8px 12px 8px 0; color: var(--muted); font-weight: 500; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr.clickable:hover { background: var(--raised); }
.cell-title { min-width: 240px; max-width: 460px; overflow-wrap: anywhere; font-weight: 500; }
.cell-title a { text-decoration: none; }
.cell-title a:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 13px; font-weight: 500; }
.badge.ok { color: var(--ok); } .badge.warning { color: var(--warning); } .badge.critical { color: var(--critical); } .badge.neutral { color: var(--body); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 20px; margin: 30px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 7px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--body); margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.page-title { padding-top: 40px; font-size: clamp(36px, 4.4vw, 62px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
.page-lede { margin-top: 12px; max-width: 66ch; font-size: 17px; color: var(--body); }

/* Forms */
.field { display: grid; align-content: start; gap: 4px; min-width: 0; }
.field > span, .field > label { font-size: 13.5px; font-weight: 500; }
.field small { color: var(--muted); font-size: 12.5px; }
.input, select.input, textarea.input { width: 100%; min-width: 0; padding: 8px 11px; background: var(--raised); border: 1px solid var(--line); border-radius: 9px; }
.input:hover { border-color: var(--muted); }
textarea.input { min-height: 74px; resize: vertical; }
textarea.query-input { font: 400 13px/1.45 var(--mono); }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.span-1 { grid-column: span 1; } .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.form-result { margin-top: 12px; padding: 9px 12px; border-radius: 9px; overflow-wrap: anywhere; }
.form-result.ok { background: var(--ok-wash); } .form-result.bad { background: var(--critical-wash); }

/* Connections */
.collectors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.collector { display: grid; align-content: start; gap: 2px; min-height: 72px; padding: 12px 14px; border-left: 1px solid var(--line); }
.collector:first-child { border-left: 0; }
.collector b { font-size: 15px; }
.collector.is-active { background: var(--raised); box-shadow: inset 0 -3px 0 var(--ink); }
.collector.is-off b { color: var(--muted); font-weight: 500; }
.collector span { color: var(--muted); font-size: 12.5px; }
.collector.is-active span { color: var(--ok); font-weight: 500; }
.connect-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px 56px; align-items: start; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.provider-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 8px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.provider-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.provider-option input { margin: 4px 0 0; accent-color: var(--ink); }
.provider-option b { font-size: 15.5px; }
.provider-option span { grid-column: 2; color: var(--body); font-size: 13.5px; }
.compliance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.compliance li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--body); font-size: 14px; }
.compliance b { display: block; }

/* Accounts and public pages */
.account-area { display: flex; align-items: center; gap: 10px; }
.account-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); text-decoration: none; }
.row-buttons { display: inline-flex; gap: 6px; }
.verification { margin-bottom: 12px; padding: 9px 12px; background: var(--raised); border-radius: 10px; }
.workflow-links { padding: 10px 0; border-bottom: 1px solid var(--line); }
.narrow-page { max-width: 460px; margin: 0 auto; padding: 56px 16px 72px; }
.narrow-page h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
.narrow-page .lede { margin: 12px 0 22px; color: var(--body); }
.stack { display: grid; gap: 14px; }
.stack .button { justify-self: start; }
.after-form { margin-top: 18px; color: var(--body); font-size: 14px; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; align-items: center; padding: 64px 0 40px; }
.landing-hero h1 { font-size: clamp(46px, 6vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -.05em; text-wrap: balance; }
.landing-hero svg { width: 100%; height: auto; display: block; }
.landing-hero svg text { font-family: var(--sans); }
.illustration-note { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.steps-grid li { padding-top: 14px; border-top: 2px solid var(--ink); }
.steps-grid b { display: block; margin-bottom: 4px; font-size: 17px; letter-spacing: -.01em; }
.steps-grid p { color: var(--body); font-size: 15px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; }
.plain-list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--body); }
.plain-list b { color: var(--ink); }
.site-footer { flex: none; background: var(--raised); border-top: 1px solid var(--line); color: var(--body); font-size: 13.5px; }
.site-footer-inner { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(3, auto); gap: 20px clamp(28px, 5vw, 72px); align-items: start; max-width: 1520px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 56px) 20px; }
.footer-brand p { max-width: 42ch; margin: 6px 0 0; line-height: 1.45; }
.footer-brand .footer-fine { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.footer-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.footer-logo { display: inline-flex; }
.footer-col h2 { margin: 2px 0 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.footer-legal ul { grid-template-columns: repeat(2, auto); column-gap: 26px; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
.legal { max-width: 74ch; padding-top: 40px; }
.legal h1 { font-size: clamp(36px, 4vw, 54px); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
.legal h2 { margin-top: 28px; font-size: 20px; }
.legal p, .legal li { margin-top: 8px; color: var(--body); line-height: 1.6; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal-draft { margin-top: 16px; padding: 10px 14px; background: var(--warning-wash); border-radius: 10px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 18px 0; }
.stat b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13.5px; }
.meter { height: 6px; margin-top: 5px; background: var(--grid); border-radius: 3px; overflow: hidden; width: 160px; }
.meter i { display: block; height: 100%; background: var(--ink); }
.read-only-banner { margin: 18px 0; padding: 12px 16px; background: var(--raised); border-left: 4px solid var(--ink); border-radius: 0 10px 10px 0; }
.workflow-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 28px 44px; align-items: start; margin-top: 24px; }
.workflow-list a { display: block; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.workflow-list a[aria-current="true"] { font-weight: 600; }
.workflow-list small { display: block; color: var(--muted); font-weight: 400; }
.key-box { padding: 10px 12px; background: var(--raised); border-radius: 9px; font: 400 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }
button.collector { background: none; border: 0; border-left: 1px solid var(--line); text-align: left; cursor: pointer; color: inherit; font: inherit; }
button.collector:first-child { border-left: 0; }
button.collector[aria-pressed="true"] { background: var(--raised); box-shadow: inset 0 -3px 0 var(--ink); }
button.collector b, button.collector span { display: block; }

/* Workflow pipeline */
.page-head { padding-top: 40px; margin-bottom: 0; justify-content: space-between; }
.page-head .page-title { padding-top: 0; }
.list-note { margin-bottom: 8px; }
.workflow-detail { min-width: 0; }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 10px; }
.run-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; padding: 12px 16px; background: var(--raised); border-radius: 12px; }
.run-meter { flex: 1 1 140px; display: block; height: 6px; overflow: hidden; background: var(--grid); border-radius: 3px; }
.run-meter i { display: block; height: 100%; background: var(--ok); transition: width .2s; }
.pipeline { display: flex; gap: 0; margin: 20px 0 0; padding: 4px 2px 14px; overflow-x: auto; counter-reset: step; }
.pipe-step { position: relative; flex: 1 0 168px; min-width: 168px; max-width: 280px; padding-right: 34px; }
.pipe-step:last-child { padding-right: 0; flex-basis: 134px; min-width: 134px; }
/* The arrow from one step to the next. */
.pipe-step:not(:last-child)::after { content: ""; position: absolute; top: 28px; right: 6px; width: 22px; height: 2px; background: var(--muted); }
.pipe-step:not(:last-child)::before { content: ""; position: absolute; top: 24px; right: 5px; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
.pipe-step.is-done:not(:last-child)::after, .pipe-step.is-skipped:not(:last-child)::after { background: var(--ok); }
.pipe-step.is-done:not(:last-child)::before, .pipe-step.is-skipped:not(:last-child)::before { border-color: var(--ok); }
.pipe-step > button { display: flex; align-items: flex-start; gap: 9px; width: 100%; height: 100%; min-height: 58px; padding: 9px 11px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.pipe-step > button:hover { border-color: var(--muted); }
.pipe-step.is-selected > button { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pipe-marker { display: grid; flex: none; place-items: center; width: 24px; height: 24px; margin-top: 1px; background: var(--page); border: 1.5px solid var(--muted); border-radius: 50%; color: var(--body); font-size: 12.5px; font-weight: 600; }
.pipe-marker svg { width: 14px; height: 14px; }
.pipe-text { min-width: 0; }
.pipe-text b { display: -webkit-box; overflow: hidden; font-size: 13.5px; font-weight: 500; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.pipe-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.pipe-step.is-done .pipe-marker { background: var(--ok); border-color: var(--ok); color: var(--page); }
.pipe-step.is-skipped .pipe-marker { background: var(--page); border-color: var(--muted); border-style: dashed; color: var(--muted); }
.pipe-step.is-current .pipe-marker { background: var(--ink); border-color: var(--ink); color: var(--page); }
.pipe-step.is-current small { color: var(--ink); font-weight: 500; }
.pipe-step.is-pending > button { opacity: .72; }
.step-panel { display: grid; gap: 8px; padding: 16px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; }
.step-panel h3 { font-size: 16.5px; overflow-wrap: anywhere; }
.step-panel p { color: var(--body); font-size: 14.5px; overflow-wrap: anywhere; }
.step-panel .notice { color: var(--ink); }
.command-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.command { flex: 1 1 260px; min-width: 0; padding: 8px 11px; background: var(--page); border-radius: 8px; overflow-wrap: anywhere; }
.step-actions { display: grid; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.step-actions .input { background: var(--page); }
.finish-panel { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--ok); border-radius: 14px; }
.finish-panel h3 { margin-bottom: 10px; }
.finish-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.finish-row .select-button { flex: 0 1 190px; }
.finish-row input { flex: 1 1 240px; }
.workflow-detail > p.small { margin-top: 10px; }
.step-editor { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.nowrap { white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; }

/* Overview */
.golden-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.golden { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.golden h3 { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.golden > b { display: block; margin: 2px 0; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.golden.is-over > b { color: var(--critical); }

/* Results and accounts */
.result-cause { margin: 14px 0 0; padding: 12px 16px; background: var(--ok-wash); border-radius: 10px; }
.result-cause h3 { margin-bottom: 2px; font-size: 13.5px; }
.conv-visibility { padding: 8px 0; border-bottom: 1px solid var(--line); }
.conv-outcome-read { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 56px; margin-top: 30px; max-width: 1100px; align-items: start; }
.account-forms h2 { font-size: 20px; }
.invite-name { flex: 1 1 180px; max-width: 260px; }
.invite-email { flex: 1 1 220px; max-width: 320px; }
.select-button.verdict-select { min-width: 132px; padding: 5px 32px 5px 12px; font-size: 13.5px; }
.verdict-expiry, .verdict-ended { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; max-width: 260px; line-height: 1.4; }
.verdict-ended { color: var(--warning, #b7791f); display: block; }
.verdict-expiry .linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.noise-hint { margin-top: 3px; color: var(--warning); }

/* Projects */
.daily-chart { display: block; width: 100%; height: auto; }
.daily-chart .chart-grid { stroke: var(--grid); stroke-width: 1; }
.daily-chart .chart-label { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bar-critical { fill: var(--critical); background: var(--critical); }
.bar-warning { fill: var(--warning); background: var(--warning); }
.chart-legend { display: flex; gap: 16px; margin-bottom: 6px; color: var(--body); font-size: 13px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.source-picker { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.section-head .page-title { margin: 0; }

/* Dialogs */
dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 24px; background: var(--page); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; overflow-y: auto; }
dialog.wide { width: min(1060px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 10, 14, .5); }
.dialog-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.dialog-head h2 { flex: 1; min-width: 0; font-size: 21px; overflow-wrap: anywhere; }
pre.prompt-text { max-height: 58vh; margin: 8px 0 0; padding: 12px; overflow: auto; background: var(--raised); border-radius: 10px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; margin-bottom: 14px; }
.facts dt { color: var(--muted); font-size: 12.5px; }
.facts dd { overflow-wrap: anywhere; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 30; max-width: calc(100vw - 32px); padding: 9px 18px; background: var(--button); color: var(--button-ink); border-radius: 999px; font-weight: 500; transform: translate(-50%, 80px); visibility: hidden; transition: transform .18s, visibility .18s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 36px; }
  .investigate, .connect-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; }
  .landing-hero, .workflow-layout, .two-col { grid-template-columns: minmax(0, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .collectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collector:nth-child(4) { border-left: 0; }
  .collector:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .evidence-charts { grid-template-columns: minmax(0, 1fr); }
  .site-header { gap: 6px 14px; }
  .site-nav { order: 3; width: 100%; gap: 16px; }
  .model-chip { display: none; }
  .account-name { display: none; }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-bar { position: static; }
  .status-grid, .panels, .compliance { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid > * { grid-column: span 2; }
  .form-grid > .keep-half { grid-column: span 1; }
  .provider-grid { grid-template-columns: minmax(0, 1fr); }
  .conv-outcome { grid-template-columns: minmax(0, 1fr); }
  .golden-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  /* A small screen shows the pipeline top to bottom. */
  .pipeline { flex-direction: column; overflow: visible; gap: 22px; }
  .pipe-step, .pipe-step:last-child { flex: none; width: 100%; max-width: none; padding-right: 0; }
  .pipe-step:not(:last-child)::after { top: auto; bottom: -17px; right: auto; left: 22px; width: 2px; height: 14px; }
  .pipe-step:not(:last-child)::before { top: auto; bottom: -19px; right: auto; left: 19px; transform: rotate(135deg); }
  .message-user { max-width: 92%; }
  .composer { position: static; }
  .collectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collector:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .collector:nth-child(-n+2) { border-top: 0; }
  .collector:nth-child(even) { border-left: 1px solid var(--line); }
  .composer-send { margin-left: 0; width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition: none !important; }
  .spinner { border-top-color: var(--line); }
}

/* Dropdowns: one look for every choice list. The native select stays hidden behind it (select.js). */
select.select-native, .select-native { position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0 !important; opacity: 0; pointer-events: none; }
.select-button { position: relative; display: inline-flex; align-items: center; min-width: 0; padding: 8px 36px 8px 11px; background: var(--raised); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.select-button:hover:not(:disabled) { border-color: var(--muted); }
.select-button[aria-expanded="true"] { border-color: var(--ink); }
.select-button:disabled { color: var(--muted); cursor: not-allowed; opacity: .7; }
.select-button::after { content: ""; position: absolute; top: 50%; right: 14px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .12s; pointer-events: none; }
.select-button[aria-expanded="true"]::after { transform: translateY(-25%) rotate(225deg); }
.select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-list { position: fixed; z-index: 60; max-width: min(420px, calc(100vw - 16px)); max-height: 320px; margin: 0; padding: 5px; overflow-y: auto; list-style: none; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); outline: none; }
.select-item { position: relative; padding: 7px 34px 7px 11px; border-radius: 8px; color: var(--ink); font-size: 14px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.select-item.is-active { background: var(--page); }
.select-item[aria-selected="true"] { font-weight: 600; }
.select-item[aria-selected="true"]::after { content: ""; position: absolute; top: 50%; right: 13px; width: 5px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-65%) rotate(45deg); }
.select-item[aria-disabled="true"] { color: var(--muted); cursor: default; }
@media (prefers-reduced-motion: reduce) { .select-button::after { transition: none; } }

/* On small screens a wide table scrolls by itself instead of widening the page. */
@media (max-width: 860px) { table.data-table { display: block; max-width: 100%; overflow-x: auto; } }

/* How long a false alarm or expected label lasts (projects.js) */
.label-dialog .field-label { font-weight: 600; margin: 16px 0 8px; }
.label-lengths { display: flex; flex-wrap: wrap; gap: 8px; }
.label-length { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.label-length:has(input:checked) { border-color: var(--ink, currentColor); background: var(--wash, rgba(0, 0, 0, .04)); font-weight: 500; }
.label-length input { margin: 0; accent-color: currentColor; }
.label-custom { display: flex; gap: 8px; margin-top: 10px; max-width: 260px; }
.label-custom .input { flex: 1; }
.label-dialog textarea { width: 100%; resize: vertical; }
