/* TFarm's graphite surfaces, violet accents and compact, touch-friendly rhythm. */
:root {
  color-scheme: dark;
  --bg: #0d1117;
  --card: #161b22;
  --line: #232a33;
  --control-line: #626e7d;
  --fg: #e6edf3;
  --muted: #8b949e;
  --accent: #7c5cff;
  --accent-dark: #4b3fa8;
  --link: #c6b7ff;
  --focus: #b09cff;
  --selected: #7c5cff22;
  --secondary: #1b2430;
  --table-head: #131922;
  --ok: #56d364;
  --ok-bg: #1f3326;
  --danger: #f85149;
  --danger-bg: #3c2529;
  --warning: #f4c76a;
  --warning-bg: #3a2e1d;
  --neutral: #b1c1d4;
  --neutral-bg: #253040;
  --grid: #2b333f;
  --glow: #161b2e;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(1100px 540px at 45% -10%, var(--glow), transparent), var(--bg); color: var(--fg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; letter-spacing: -.5px; }
h2 { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
h3 { font-size: 15px; margin-bottom: 14px; }
p, h1, h2, h3, label, td, small { overflow-wrap: anywhere; }
p + p { margin-top: 10px; }
small, .muted { color: var(--muted); font-size: 13px; }
strong { font-weight: 650; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(135deg, #7050ee, var(--accent-dark)); color: #fff; font-weight: 600; font-size: 13px; line-height: 1.4; cursor: pointer; touch-action: manipulation; text-align: center; }
button:hover, .button:hover { filter: brightness(1.1); text-decoration: none; }
button:disabled { opacity: .5; cursor: wait; }
.secondary { background: var(--secondary); border-color: var(--control-line); color: var(--fg); }
.quiet { background: transparent; color: var(--link); }
.danger { color: var(--danger); }
a.danger { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; }
a.danger:hover { background: var(--danger-bg); }
.danger-button { background: #b62e34; color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--control-line); border-radius: 10px; padding: 10px 12px; color: var(--fg); background: var(--bg); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); margin: 0; }
textarea { min-height: 94px; resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; }
.flag { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
form { margin: 0; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 0; }
legend { color: var(--fg); font-weight: 600; font-size: 15px; padding: 0 8px; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: var(--safe-top) calc(32px + var(--safe-right)) 24px calc(32px + var(--safe-left)); }
.app-header { display: flex; align-items: center; gap: 24px; min-height: 80px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--fg); font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.main-nav a { display: flex; align-items: center; min-height: 44px; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 550; }
.main-nav a:hover { text-decoration: none; background: var(--secondary); color: var(--fg); }
.main-nav a[aria-current], .mobile-tabs [aria-current], .more-nav .active { background: var(--selected); color: var(--link); }
.header-logout { flex-shrink: 0; }
.header-logout button { padding: 8px 12px; }
.mobile-tabs, .mobile-version, .mobile-id { display: none; }
main { min-width: 0; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 0; color: var(--muted); font-size: 12px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px; background: var(--card); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.heading > h1, .heading > h2, .heading > div:first-child { margin: 0 auto 0 0; min-width: 0; }
.page-heading { margin-bottom: 24px; gap: 18px; }
.page-heading .muted { margin-top: 8px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: 1.3px; color: var(--muted); margin-bottom: 7px; }
main > h1 { margin-bottom: 12px; }
main > h1 + p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
section, .card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
section > p + form, section > label + button, section > p + a { margin-top: 16px; }
section > p + label { margin-top: 20px; }
section > label { max-width: 480px; }
.help { margin: 12px 0 20px; max-width: 960px; }
.back-link, .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.text-link { min-width: 44px; justify-content: center; }
.back-link { margin-top: -12px; margin-bottom: 6px; }
.notice { margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--warning); background: var(--warning-bg); border-radius: 10px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 4px 9px; border-radius: 20px; background: var(--neutral-bg); color: var(--neutral); font-size: 10px; font-weight: 650; letter-spacing: .3px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.down { background: var(--danger-bg); color: var(--danger); }
.badge.failing { background: var(--warning-bg); color: var(--warning); }
.badge.paused::before { border-radius: 0; width: 6px; height: 7px; background: transparent; border-inline: 2px solid currentColor; }
.state-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.state-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; min-width: 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.state-total .badge { grid-column: 1 / -1; margin-bottom: 12px; }
.state-total strong { font-size: 36px; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.state-total > span:last-child { font-size: 12px; color: var(--muted); }
.state-total.down { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.section-heading, .group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sort-note, .count, .timezone-note { font-size: 11px; color: var(--muted); background: var(--secondary); padding: 5px 9px; border-radius: 7px; white-space: nowrap; }
.count { margin-left: 6px; font-variant-numeric: tabular-nums; }
.group-panel { padding: 0; overflow: hidden; margin: 16px 0; }
.group-heading { padding: 16px 20px; }
.group-heading h2 { font-size: 16px; margin: 0; }
.group-heading p { font-size: 12px; margin-top: 4px; }
.scroll { min-width: 0; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { font-size: 11px; font-weight: 550; color: var(--muted); background: var(--table-head); white-space: nowrap; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody:last-child tr:last-child td { border-bottom: 0; }
td small { display: block; font-size: 11px; margin-top: 2px; }
.monitor-table { table-layout: fixed; font-variant-numeric: tabular-nums; }
.monitor-table th:first-child { width: 25%; }
.monitor-table th:nth-child(2) { width: 9%; }
.monitor-table th:nth-child(3) { width: 10%; }
.monitor-table th:nth-child(4) { width: 17%; }
.monitor-table th:nth-child(5) { width: 19%; }
.monitor-table th:nth-child(6), .monitor-table th:nth-child(7) { width: 10%; }
.monitor-table td { padding: 8px 14px; }
.monitor-table td:first-child, .monitor-table th:first-child { padding-left: 20px; }
.monitor-table td:last-child, .monitor-table th:last-child { padding-right: 20px; }
.host-row { background: var(--table-head); }
.host-row td { padding-top: 12px; padding-bottom: 12px; }
.host-name { font-weight: 650; color: var(--fg); display: inline-block; }
.identity-cell a { overflow-wrap: anywhere; }
.check-row { font-size: 12px; }
.check-row .identity-cell a { color: var(--fg); }
.check-row .identity-cell small { margin-left: 16px; }
.check-branch { color: var(--muted); margin-right: 8px; }
.check-detail { font-size: 11px; color: var(--muted); }
.last-cell { color: var(--muted); font-size: 11px; }
.spark { display: block; width: 160px; max-width: 100%; height: 32px; }
.empty { text-align: center; padding: 28px 14px; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: end; }
.form-grid > * { min-width: 0; }
.form-grid > fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid > button { justify-self: start; }
.form-grid .flag { align-self: end; }
.inline { display: inline-block; margin: 0; }
.actions, .check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
main > nav { display: flex; flex-wrap: wrap; gap: 12px; }
main > nav a { display: inline-flex; align-items: center; min-height: 44px; }
.wide { width: 100%; }
.settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.settings-section { padding: 18px 22px 22px; background: var(--card); border-radius: var(--radius); }
.settings-section > p, .settings-section > label { margin-bottom: 14px; }
.settings-section .muted { margin-top: 7px; font-size: 12px; }
.token-status { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; color: var(--muted); font-size: 12px; }
.token-status strong { color: var(--fg); font-weight: 500; }
.wide-section, .form-actions { grid-column: 1 / -1; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; justify-content: flex-end; }
.range-panel { padding: 10px 12px 12px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; }
.ranges, .range-presets, .range-step { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ranges { justify-content: space-between; }
.ranges a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 14px; color: var(--muted); font-size: 13px; border-radius: 8px; }
.ranges a:hover { text-decoration: none; background: var(--secondary); color: var(--fg); }
.ranges a[aria-current] { background: var(--selected); color: var(--link); font-weight: 650; }
.range-step { border-left: 1px solid var(--line); padding-left: 8px; }
.range-window { padding: 7px 8px 0; font-size: 12px; }
.graph-help { font-size: 12px; margin: 14px 0; }
.chart { min-width: 0; margin: 18px 0; padding: 18px 18px 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 10px; overflow-wrap: anywhere; }
figcaption small { font-size: 11px; flex-shrink: 0; font-weight: 400; }
.graph:not(.spark) { display: block; width: 100%; height: auto; touch-action: pan-y; }
.plot-bg { fill: var(--card); }
.grid { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.axis { fill: var(--muted); font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.series-line { fill: none; stroke-width: 1.7; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.range-band { opacity: .18; }
.incident-shade { fill: var(--danger); opacity: .1; }
.availability.ok { fill: var(--ok); }
.availability.down { fill: var(--danger); }
.availability.none { fill: var(--neutral-bg); }
.crosshair { fill: none; stroke: var(--muted); stroke-dasharray: 3 3; stroke-width: 1; }
.hover-label { fill: var(--fg); font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.graph-readout { color: var(--muted); font-size: 11px; min-height: 32px; padding: 6px 10px; margin-bottom: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; font-variant-numeric: tabular-nums; }
.legend { font-size: 11px; font-variant-numeric: tabular-nums; }
.legend th, .legend td { padding: 7px 10px; }
.legend th:first-child { width: 36%; }
.legend td:not(:first-child) { white-space: nowrap; }
.swatch { width: 12px; height: 12px; vertical-align: middle; margin-right: 4px; }
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.check-section { margin: 0; padding: 20px; scroll-margin-top: 16px; }
.check-section .heading h2 { font-size: 16px; }
.check-section .chart { padding: 0; border: 0; border-radius: 0; }
.check-section .chart figcaption { display: none; }
.check-section .chart + .chart figcaption { display: flex; }
.check-meta { font-size: 11px; }
.check-error { font-size: 12px; color: var(--danger); margin-top: 8px; }
.check-actions { border-top: 1px solid var(--line); padding-top: 12px; gap: 6px 12px; }
.check-actions a.danger { margin-left: auto; }
.auth-mode .app-header { border: 0; justify-content: center; margin: 0; }
.auth-mode .app-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.auth-mode main { display: grid; place-items: center; flex: 1; padding: 24px 0; }
.auth-mode footer { justify-content: center; padding-bottom: 12px; }
.auth-card { width: min(100%, 420px); margin: 0; padding: 32px; box-shadow: 0 24px 70px #0002; }
.auth-card h1 { font-size: 23px; margin: 12px 0; }
.auth-card .muted { margin-bottom: 24px; }
.auth-card button { margin-top: 20px; }
.auth-logo { display: block; width: 80px; height: 80px; border-radius: 20px; margin-bottom: 20px; }
#auth-message { color: var(--danger); font-size: 13px; margin-top: 14px; }
#auth-message:empty { display: none; }
@media (min-width: 1100px) {
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid > fieldset { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .app-header { gap: 12px; flex-wrap: wrap; padding: 16px 0; }
  .main-nav { order: 3; width: 100%; margin-left: 0; }
  .header-logout { margin-left: auto; }
  .monitor-table th:first-child { width: 23%; }
  .monitor-table th:nth-child(4) { width: 15%; }
  .monitor-table th:nth-child(5) { width: 19%; }
  .monitor-table td, .monitor-table th { padding-inline: 8px; }
  .monitor-table th { white-space: normal; }
  .badge { font-size: 9px; padding-inline: 7px; }
}
@media (max-width: 1000px) {
  .settings-form { grid-template-columns: minmax(0, 1fr); }
  .range-step { border: 0; padding-left: 0; }
  .stack-table { table-layout: fixed; }
  .stack-table th { white-space: normal; }
  .stack-table td, .stack-table th { padding: 10px 8px; }
}
@media (max-width: 760px) {
  .app-shell { padding: var(--safe-top) calc(12px + var(--safe-right)) calc(88px + var(--safe-bottom)) calc(12px + var(--safe-left)); }
  .app-header { min-height: 58px; flex-wrap: nowrap; padding: 10px 0; margin-bottom: 16px; }
  .brand { font-size: 16px; }
  .mobile-version { display: inline; margin-left: auto; color: var(--muted); font-size: 11px; }
  .main-nav, .header-logout { display: none; }
  .mobile-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 30; inset: auto 0 0; padding: 4px var(--safe-right) calc(4px + var(--safe-bottom)) var(--safe-left); background: var(--table-head); border-top: 1px solid var(--line); box-shadow: 0 -3px 18px #0001; }
  .mobile-tabs > a, .more-nav > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; min-width: 44px; border-radius: 8px; color: var(--muted); font-size: 10px; padding: 5px 0; cursor: pointer; }
  .mobile-tabs a:hover { text-decoration: none; }
  .nav-icon { width: 20px; height: 20px; }
  .more-nav > summary { list-style: none; }
  .more-nav > summary::-webkit-details-marker { display: none; }
  .more-nav[open] > summary { color: var(--link); background: var(--selected); }
  .more-sheet { position: absolute; bottom: calc(100% + 8px); right: 12px; left: 12px; padding: 16px; border: 1px solid var(--control-line); border-radius: 16px; background: var(--card); box-shadow: 0 12px 40px #0004; }
  .more-sheet a { display: flex; align-items: center; min-height: 48px; padding: 10px; font-size: 14px; border-radius: 8px; }
  .more-sheet form { margin-top: 8px; }
  .page-heading { margin-bottom: 16px; gap: 12px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .eyebrow { display: none; }
  .page-heading .muted { margin-top: 5px; font-size: 12px; }
  .heading-actions { gap: 6px; }
  button, .button { padding: 10px 12px; font-size: 12px; }
  .heading-actions .button { min-height: 44px; }
  section, .card { padding: 16px; margin: 16px 0; }
  h2 { font-size: 17px; }
  h2 a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .state-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
  .state-total { padding: 14px; border-radius: 12px; }
  .state-total .badge { margin-bottom: 8px; }
  .state-total strong { font-size: 30px; }
  .badge { font-size: 10px; padding: 4px 8px; }
  .section-heading .muted { font-size: 11px; max-width: 215px; }
  .sort-note { font-size: 10px; }
  .group-panel { padding: 0; }
  .group-heading { padding: 12px; }
  .group-heading p { font-size: 11px; }
  .group-heading h2 { font-size: 15px; }
  .monitor-table, .monitor-table tbody { display: block; width: 100%; }
  .monitor-table thead, .stack-table thead, .legend thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .monitor-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 4px 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
  .monitor-table td, .monitor-table td:first-child, .monitor-table td:last-child { display: block; min-width: 0; padding: 0; border: 0; }
  .monitor-table .identity-cell { grid-column: 1; grid-row: 1; }
  .monitor-table .state-cell { grid-column: 2; grid-row: 1; justify-self: end; }
  .monitor-table .latency-cell { grid-column: 1; grid-row: 2; align-self: center; font-size: 12px; }
  .monitor-table .spark-cell { grid-column: 2; grid-row: 2; }
  .monitor-table .spark { width: 96px; height: 26px; }
  .monitor-table .last-cell { grid-column: 1 / -1; font-size: 10px; }
  .monitor-table .uptime-cell { font-size: 11px; }
  .monitor-table .uptime-cell::before, .monitor-table .last-cell::before { content: attr(data-label) ' '; color: var(--muted); font-size: 10px; }
  .monitor-table .check-detail { grid-column: 1 / -1; font-size: 11px; }
  .monitor-table .check-detail:empty { display: none; }
  .monitor-table .check-row { padding-left: 22px; }
  .host-name { min-height: 24px; font-size: 14px; }
  .identity-cell a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .identity-cell small { margin-top: -3px; font-size: 10px; }
  .check-row .identity-cell a { font-size: 12px; }
  .check-row .identity-cell small { margin-left: 0; }
  .check-branch { display: none; }
  .mobile-id { display: inline; color: var(--muted); font-size: .85em; font-weight: 400; }
  .stack-table, .stack-table tbody { display: block; width: 100%; }
  .stack-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table td { display: block; min-width: 0; border: 0; padding: 0; font-size: 12px; }
  .stack-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
  .stack-table td.primary-cell { font-weight: 600; }
  .audit-table td:nth-child(4) { grid-column: 1 / -1; }
  .form-grid, .form-grid > fieldset, .three-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  input:not([type="checkbox"]), select, textarea { font-size: 16px; }
  .form-grid > button { width: 100%; }
  fieldset { padding: 16px; }
  .settings-form { gap: 16px; margin-top: 20px; }
  .settings-section { padding: 12px 16px 16px; }
  .form-actions button { width: 100%; }
  .range-panel { padding: 8px; }
  .ranges { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .range-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .ranges a { padding: 8px 4px; }
  .range-step { display: grid; grid-template-columns: 1fr 2fr 1fr; border-top: 1px solid var(--line); padding-top: 8px; }
  .range-window { font-size: 11px; padding: 8px 4px 0; }
  .graph-help { font-size: 11px; }
  .chart { padding: 14px 10px 8px; border-radius: 12px; }
  figcaption { font-size: 13px; }
  .graph-readout { font-size: 11px; min-height: 48px; }
  .graph:not(.responsive):not(.spark) .axis { font-size: 25px; }
  .graph:not(.spark) .tick-minor { display: none; }
  .legend, .legend tbody { display: block; }
  .legend tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); }
  .legend td { display: block; padding: 2px; border: 0; font-size: 10px; }
  .legend td:first-child { grid-column: 1 / -1; width: auto; margin-bottom: 3px; font-size: 12px; }
  .legend td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; }
  .check-grid { gap: 16px; }
  .check-section { padding: 14px; margin: 0; }
  .check-section .heading h2 { font-size: 15px; }
  .check-actions { gap: 4px 8px; }
  .check-actions a.danger { padding-inline: 8px; }
  .auth-mode .app-shell { padding-bottom: calc(16px + var(--safe-bottom)); }
  .auth-mode main { padding: 16px 4px; }
  .auth-card { padding: 26px; }
  .auth-mode footer { font-size: 10px; }
  footer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
