/* Pebble — one stylesheet, no build step. Colours are role tokens that swap
   with the OS colour scheme. */

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --sunken: #efede7;
  --border: #e2dfd6;
  --border-strong: #cdc9bd;
  --text: #1b1a18;
  --text-2: #54524c;
  --muted: #76736b;
  --accent: #2a5fb0;
  --accent-ink: #ffffff;
  --focus: #2a78d6;

  /* Status colours: always paired with an icon and a label. */
  --critical: #d03b3b;
  --serious: #ec835a;
  --warning: #e0a008;
  --low: #8d95a3;
  --good: #0ca30c;
  --good-ink: #006300;
  --critical-ink: #a92a2a;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(30 25 15 / 0.05);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141413;
    --surface: #1c1c1a;
    --sunken: #242422;
    --border: #32312e;
    --border-strong: #4a4944;
    --text: #edece8;
    --text-2: #bdbbb2;
    --muted: #98968d;
    --accent: #86b1f2;
    --accent-ink: #0d1f38;
    --focus: #86b1f2;
    --warning: #fab219;
    --low: #7f8796;
    --good-ink: #5fd05f;
    --critical-ink: #f08a8a;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.5rem; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.75rem; font-weight: 650; }
h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1rem 0 0.4rem; font-weight: 650; }

code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--sunken); padding: 0.1em 0.35em; border-radius: 4px; }
code.wrap { overflow-wrap: anywhere; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Top bar */

.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 52px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.logo { width: 22px; height: 22px; fill: var(--muted); }
.top-nav { display: flex; gap: 4px; flex: 1; }
.top-nav a, .top-user a { color: var(--text-2); padding: 6px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
.top-nav a:hover, .top-user a:hover { background: var(--sunken); text-decoration: none; }
.top a[aria-current] { color: var(--text); font-weight: 600; }
.top-user { display: flex; align-items: center; gap: 8px; }

.page { max-width: 1200px; margin: 0 auto; padding: 24px 20px 64px; }

.crumbs { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.lede { font-size: 1.05rem; color: var(--text-2); margin: 0 0 1.25rem; max-width: 75ch; }

/* Building blocks */

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > h2 { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 550; line-height: 1.2; white-space: nowrap;
  padding: 7px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  cursor: pointer;
}
.btn:hover { background: var(--sunken); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-danger { color: var(--critical-ink); }

.link { font: inherit; background: none; border: 0; padding: 6px 10px; color: var(--text-2); cursor: pointer; border-radius: var(--radius-sm); white-space: nowrap; }
.link:hover { background: var(--sunken); }
.link-danger { color: var(--critical-ink); padding: 2px 6px; }

.field { display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; font-weight: 600; color: var(--text-2); min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hint { font-size: 0.82rem; font-weight: 400; color: var(--muted); margin: 0; }
.none { color: var(--muted); margin: 0; }

input:not([type=checkbox]), select, textarea {
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 7px 10px; width: 100%; min-width: 0;
}
textarea { resize: vertical; line-height: 1.45; }
textarea.mono { font-family: var(--mono); font-size: 0.88rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--text-2); white-space: nowrap; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fieldset legend { font-size: 0.85rem; font-weight: 600; color: var(--text-2); padding: 0 6px; }
.form-wide { max-width: 980px; }
.form-actions { display: flex; gap: 10px; }
.inline-form { display: flex; gap: 6px; }
.inline-create { display: flex; gap: 8px; }
.inline-create input { max-width: 260px; }

.alert { border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 16px; border: 1px solid var(--border); background: var(--surface); }
.stack > .alert { margin: 0; }
.alert-error { border-color: color-mix(in srgb, var(--critical) 45%, var(--border)); background: color-mix(in srgb, var(--critical) 9%, var(--surface)); }
.alert-ok { border-color: color-mix(in srgb, var(--good) 45%, var(--border)); background: color-mix(in srgb, var(--good) 8%, var(--surface)); }
.alert-secret { border-color: color-mix(in srgb, var(--warning) 60%, var(--border)); background: color-mix(in srgb, var(--warning) 10%, var(--surface)); }
.alert-secret p { margin: 0 0 8px; }
.secret { display: inline-block; font-size: 0.95rem; padding: 6px 10px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; user-select: all; }

.badge {
  display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 600; line-height: 1;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap;
}
.badge-open { border-color: var(--text-2); color: var(--text); }
.badge-resolved { background: var(--sunken); border-color: var(--border); }
.badge-off { color: var(--critical-ink); }

.tag {
  display: inline-block; font-size: 0.78rem; line-height: 1; padding: 4px 7px; border-radius: 5px;
  background: var(--sunken); color: var(--text-2); white-space: nowrap;
}
.tag-sdk { font-family: var(--mono); font-size: 0.76rem; color: var(--text); border: 1px solid var(--border); background: transparent; }

/* Severity: a signal-strength glyph plus the word. */

.sev { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.sev-icon { width: 14px; height: 14px; flex: none; }
.sev-icon rect { fill: var(--border-strong); }
.sev-critical .sev-icon rect { fill: var(--critical); }
.sev-high .sev-icon rect:nth-child(-n+3) { fill: var(--serious); }
.sev-medium .sev-icon rect:nth-child(-n+2) { fill: var(--warning); }
.sev-low .sev-icon rect:nth-child(1) { fill: var(--low); }

/* Affected / not affected */

.state { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; color: var(--text); }
.state-icon { font-weight: 700; }
.state-affected .state-icon, .ref-affected .state-icon, .compare-actual .state-icon { color: var(--critical); }
.state-unaffected .state-icon, .ref-unaffected .state-icon, .compare-expected .state-icon { color: var(--good); }
.mixed { font-size: 0.75rem; color: var(--muted); border-bottom: 1px dotted var(--muted); cursor: help; }

/* Dashboard */

.overview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow);
}
.tile:hover { border-color: var(--border-strong); text-decoration: none; }
.tile-active { border-color: var(--text-2); box-shadow: inset 0 0 0 1px var(--text-2); }
.tile-label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); min-height: 1.3em; display: flex; align-items: center; }
.tile-value { font-size: 1.9rem; font-weight: 650; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.sdks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: var(--surface);
}
.chip:hover { border-color: var(--border-strong); text-decoration: none; }
.chip-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-count { font-variant-numeric: tabular-nums; opacity: 0.7; }

.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.toolbar .btn { margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; }
.tabs a { white-space: nowrap; padding: 8px 12px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--text); }
.tab-count { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 2px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.filters select { width: auto; }
.filter-q { flex: 1 1 240px; }
.filter-version { flex: 0 1 210px; font-family: var(--mono); font-size: 0.85rem; }
.filters-clear { font-size: 0.9rem; }

.pebbles { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pebbles li + li { border-top: 1px solid var(--border); }
.row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 250px) 120px; gap: 16px; align-items: start;
  padding: 14px 18px; color: var(--text);
}
.row:hover { background: color-mix(in srgb, var(--sunken) 55%, var(--surface)); text-decoration: none; }
.row-sev { padding-top: 2px; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-id { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.row-summary { margin: 2px 0 0; color: var(--text-2); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.row-versions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 2px; }
.ref { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 0.8rem; color: var(--text); overflow-wrap: anywhere; }
.row-none { font-size: 0.82rem; color: var(--muted); }
.row-seen { font-size: 0.85rem; color: var(--text-2); text-align: right; padding-top: 2px; }
.row-seen-label { display: block; font-size: 0.75rem; color: var(--muted); }
.row-resolved .row-title { font-weight: 500; color: var(--text-2); }

.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.pager-info { color: var(--muted); font-size: 0.9rem; }

.empty { text-align: center; padding: 64px 20px; color: var(--text-2); }
.empty h1, .empty h2 { font-size: 1.2rem; text-transform: none; letter-spacing: 0; color: var(--text); margin-bottom: 6px; }
.empty-code { font-size: 3rem; font-weight: 700; color: var(--border-strong); margin: 0; line-height: 1; }

/* Pebble page */

.pebble-head { margin-bottom: 18px; }
.pebble-id { color: var(--muted); font-weight: 400; }
.pebble-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pebble-by { color: var(--muted); font-size: 0.88rem; }

.banner { border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; background: var(--surface); }
.banner-resolved { border-left-color: var(--muted); }
.banner-gone { border-left-color: var(--good); }
.banner .md { margin-top: 6px; }

.pebble-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pebble-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pebble-main > .lede { margin-bottom: 4px; }
.pebble-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare h2 { display: flex; align-items: center; gap: 7px; }
.compare-actual { border-top: 3px solid var(--critical); }
.compare-expected { border-top: 3px solid var(--good); }

.track-summary { margin: 0 0 16px; color: var(--text-2); }
.line { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 14px; align-items: center; margin-bottom: 14px; }
.line-name { font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.line-kind { display: block; font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.line-axis { grid-column: 2; font-size: 0.72rem; color: var(--muted); }
.runs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.run {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); border-top-width: 3px; background: var(--surface); min-width: 0;
}
.run + .run::before { content: "›"; position: absolute; left: -15px; top: 50%; translate: 0 -55%; color: var(--muted); font-size: 1.1rem; }
.run-affected { border-top-color: var(--critical); background: color-mix(in srgb, var(--critical) 5%, var(--surface)); }
.run-unaffected { border-top-color: var(--good); background: color-mix(in srgb, var(--good) 5%, var(--surface)); }
.run-refs { font-size: 0.9rem; overflow-wrap: anywhere; }
.run-refs code, .refs code, .track-summary code { background: none; padding: 0; font-weight: 600; }
.run-count { font-size: 0.75rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 4px -4px 0; }
table.refs { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.refs th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; padding: 8px 10px 6px 4px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.refs td { padding: 8px 10px 8px 4px; border-bottom: 1px solid var(--border); vertical-align: top; white-space: nowrap; }
.refs tr:last-child td { border-bottom: 0; }
.refs .num { text-align: right; font-variant-numeric: tabular-nums; }
.refs .ref-note { white-space: normal; color: var(--text-2); min-width: 180px; }
.ref-extra { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

.observe { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.observe summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--text-2); }
.observe-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; margin: 12px 0 8px; }
.observe-form .field-wide { grid-column: span 3; }

.activity > h2 { margin: 8px 0 12px; }
.events { list-style: none; margin: 0 0 16px; padding: 0 0 0 18px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.event { position: relative; }
.event::before { content: ""; position: absolute; left: -24px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong); }
.event-resolved::before { background: var(--muted); border-color: var(--muted); }
.event-head { color: var(--text-2); font-size: 0.92rem; }
.event-head strong { color: var(--text); }
.event-time { color: var(--muted); margin-left: 6px; font-size: 0.85rem; }
.event-change { font-family: var(--mono); font-size: 0.85rem; }
.event-body { margin-top: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }

.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 0.9rem; align-items: baseline; }
.facts dt { color: var(--muted); font-size: 0.82rem; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts select { padding: 3px 8px; width: auto; }
.links { margin: 0; padding: 0; list-style: none; font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.side-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.cli-hint pre { margin: 0; overflow-x: auto; font-size: 0.82rem; color: var(--text-2); }
.cli-hint code { background: none; padding: 0; }

/* Rendered markdown */

.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md pre, .md table, .md blockquote { margin: 0 0 0.8em; }
.md h1, .md h2, .md h3, .md h4 { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--text); margin: 1.2em 0 0.4em; font-weight: 650; }
.md ul, .md ol { padding-left: 1.4em; }
.md li + li { margin-top: 0.2em; }
.md blockquote { border-left: 3px solid var(--border-strong); padding-left: 12px; color: var(--text-2); }
.md pre { position: relative; background: var(--sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; line-height: 1.45; font-size: 0.86rem; tab-size: 4; overflow-wrap: normal; }
.md pre code { background: none; padding: 0; font-size: inherit; }
/* chroma lays lines out as flex rows, which doubles every line break inside a
   <pre>; plain inline flow is what we want. */
.md .chroma .line, .md .chroma .cl { display: inline; }
.md table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 0.9rem; }
.md th, .md td { border: 1px solid var(--border); padding: 5px 10px; text-align: left; }
.md th { background: var(--sunken); }
.md img { max-width: 100%; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 1em 0; }
.code-wrap { position: relative; margin: 0 0 0.8em; }
.code-wrap pre { margin: 0; }
.copy {
  position: absolute; top: 6px; right: 6px; font: 0.75rem var(--sans); padding: 3px 8px;
  border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface); color: var(--text-2);
  cursor: pointer; opacity: 0; transition: opacity 0.12s;
}
.code-wrap:hover .copy, .copy:focus-visible { opacity: 1; }

/* Login */

.login { max-width: 360px; margin: 9vh auto 0; }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; margin-bottom: 4px; }
.login-brand .logo { width: 30px; height: 30px; }
.login-tag { color: var(--text-2); margin: 0 0 20px; }
.login-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* Account and users */

.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tokens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tokens li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.tokens li:first-child { border-top: 0; padding-top: 0; }
.user-create { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 10px; }
.user-create .field { flex: 1 1 200px; }
.users { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.user-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.user-name { font-size: 1.05rem; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.user-disabled .user-name { color: var(--muted); text-decoration: line-through; }
.user-tokens { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.user-token { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.9rem; }

@media (max-width: 960px) {
  .overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pebble-layout { grid-template-columns: minmax(0, 1fr); }
  .pebble-side { position: static; }
  .row { grid-template-columns: 92px minmax(0, 1fr); }
  .row-versions { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .row-seen { grid-column: 2; text-align: left; }
  .row-seen-label { display: inline; font-size: inherit; }
  .field-row-4, .observe-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .observe-form .field-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .page { padding: 16px 16px 48px; }
  .top-inner { padding: 0 12px; gap: 4px; }
  .top-nav a, .top-user a, .top-user .link { padding: 6px 7px; }
  .top-user { gap: 0; }
  .brand-name { display: none; }
  .tabs a { padding: 8px 9px; }
  .inline-create input { max-width: none; }
  .user-token, .tokens li { flex-wrap: wrap; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare, .field-row, .columns { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; }
  .row-versions, .row-seen { grid-column: 1; }
  .line { grid-template-columns: minmax(0, 1fr); }
  .line-axis { grid-column: 1; }
  .runs { flex-direction: column; gap: 6px; }
  .run + .run::before { content: none; }
  .toolbar { flex-wrap: wrap-reverse; }
  .toolbar .btn { margin-left: auto; }
}
