:root {
  color-scheme: light;
  --ink: #172a25;
  --muted: #50665c;
  --line: #dbe5df;
  --surface: #fff;
  --background: #f3f6f4;
  --forest: #12362b;
  --accent: #17634b;
  --pale: #e6f2eb;
  font: 15px/1.55 Inter, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
a { color: var(--accent); overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .table:focus-visible, .status-icon:focus-visible { outline: 3px solid #4c9579; outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.18; }
h1 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); letter-spacing: -.045em; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; }
p { margin: 8px 0; }
.muted, small { color: var(--muted); }

.workspace { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 16px; gap: 33px; background: var(--forest); color: #f3faf5; }
.brand { display: inline-flex; align-items: center; gap: 11px; align-self: flex-start; color: inherit; text-decoration: none; font-weight: 750; font-size: 1.13rem; line-height: 1.15; }
.brand small { display: block; margin-top: 4px; color: #b9d5c9; font-size: .75rem; font-weight: 500; }
.brand-mark { display: block; width: 38px; height: 38px; flex-shrink: 0; border: 8px solid #b9e4cb; border-radius: 50%; box-shadow: inset 0 0 0 2px #619882; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { color: #dcf0e5; text-decoration: none; padding: 9px 12px; border-radius: 7px; font-weight: 600; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #285645; color: #fff; }
.account { margin-top: auto; padding-top: 14px; border-top: 1px solid #3f6659; }
.account-details { overflow-wrap: anywhere; margin: 0 4px 8px; }
.account small { display: block; color: #b9d5c9; }
.account-plan { margin-inline-start: 4px; text-decoration: none; }
.plan-request-actions { margin-top: 9px; }
.content { min-width: 0; width: 100%; max-width: 1500px; margin: 0 auto; padding: 36px clamp(18px, 3.2vw, 48px) 60px; }
.public-content { max-width: 1160px; margin: 0 auto; padding: clamp(18px, 5vw, 72px); }
.page-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-heading p { margin: 6px 0 0; }
.back-link { display: inline-block; margin-bottom: 12px; font-size: .875rem; font-weight: 650; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0 0; }
.grid, .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 13px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 15px 18px; }
.metric span { display: block; font-size: .875rem; color: var(--muted); font-weight: 650; }
.metric strong { display: block; margin-top: 4px; font-size: 1.85rem; line-height: 1.15; }
.dashboard-terms { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.dashboard-panels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); }
.dashboard-activity { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; text-align: center; }
.dashboard-bar { display: flex; align-items: end; height: 92px; border-radius: 4px; background: var(--pale); overflow: hidden; }
.dashboard-bar > span { width: 100%; height: var(--bar-height); background: linear-gradient(to bottom, #a33346 var(--failed-share), var(--accent) var(--failed-share)); }
.dashboard-overview { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 10px 0 14px; }
.dashboard-overview dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.dashboard-running { list-style: none; padding: 0; margin: 10px 0 14px; }
.dashboard-running li + li { margin-top: 8px; }
[data-monitor-progress] { display: block; }
[data-countdown] { display: block; font-variant-numeric: tabular-nums; }
[data-countdown][hidden] { display: none; }
.list-panel { padding: 0; overflow: hidden; }
.panel-heading { padding: 17px 19px; border-bottom: 1px solid var(--line); }
.list-panel > .table { border: 0; border-radius: 0; max-height: none; }
.empty-state { padding: 35px 20px; text-align: center; }
.empty-state .button { margin-top: 10px; }
.record-link { font-weight: 750; text-decoration: none; }
.record-link:hover { text-decoration: underline; }
.records td small, .records th small { display: block; margin-top: 3px; }
.records td, .records th { padding: 13px 15px; }
.records thead { position: static; }
.records tbody th { min-width: 145px; }
.badge { display: inline-block; border-radius: 20px; padding: 3px 8px; white-space: nowrap; font-size: .78rem; font-weight: 650; }
.badge.active { background: var(--pale); color: #245642; }
.badge.pending { background: #fff1d6; color: #734b13; }
.badge.blocked { background: #fae7e3; color: #852f27; }
.archive-list { padding-left: 0; list-style: none; }
.archive-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.monitor-actions { gap: 8px 10px; }
.monitor-records .monitor-actions { gap: 6px; }
@media (min-width: 1200px) {
  .monitor-records td:last-child { width: 1%; }
  .monitor-records .monitor-actions { flex-wrap: nowrap; }
}

label { display: block; font-weight: 600; margin: 10px 0; }
label small { display: block; font-weight: 400; margin-top: 3px; }
.optional-label { display: inline; margin-inline-start: 3px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; color: var(--ink); background: white; border: 1px solid #a9bdb1; border-radius: 7px; font: inherit; }
select {
  appearance: none;
  padding-right: 34px;
  background: linear-gradient(45deg, transparent 42%, var(--ink) 43% 62%, transparent 63%) right 18px center / 5px 6px no-repeat,
              linear-gradient(-45deg, transparent 42%, var(--ink) 43% 62%, transparent 63%) right 13px center / 5px 6px no-repeat white;
}
@media (forced-colors: active) { select { appearance: auto; background: Canvas; } }
textarea { resize: vertical; }
button, .button { display: inline-block; background: var(--accent); color: #fff; border: 1px solid #719e8c; border-radius: 7px; padding: 8px 12px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
button:not(:disabled):hover, .button:hover { background: #124d3a; color: #fff; }
button:disabled { opacity: .56; cursor: default; }
.button-control { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 9px; font-size: .85rem; line-height: 1.3; text-align: center; white-space: nowrap; vertical-align: middle; }
.limit { max-width: 10rem; }
.form-panel { max-width: 850px; }
.monitor-source, .monitor-source-panel { min-width: 0; margin: 0; padding: 0; border: 0; }
.monitor-source > legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.monitor-source-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.monitor-source-tabs label { margin: 0; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.monitor-source-tabs label:hover { background: var(--pale); }
.monitor-source-tabs input:checked + label { color: #fff; background: var(--accent); border-color: var(--accent); }
.monitor-source-tabs input:focus-visible + label { outline: 3px solid #4c9579; outline-offset: 2px; }
.monitor-source-panel { display: none; }
.monitor-source:has(#monitor-source-file:checked) [data-source-panel="file"],
.monitor-source:has(#monitor-source-cards:checked) [data-source-panel="cards"],
.monitor-source:has(#monitor-source-catalog:checked) [data-source-panel="catalog"] { display: block; }
.notice, .warning { padding: 10px 13px; border-radius: 7px; }
.notice { color: #21513f; background: var(--pale); }
.impersonation-banner { justify-content: space-between; margin-bottom: 16px; }
.warning { color: #733c0c; background: #fff2da; }

.table { position: relative; overflow: auto; max-height: 65vh; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-spacing: 0; font-size: .875rem; }
td, th { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead { position: sticky; top: 0; background: #eaf2ed; z-index: 1; }
thead tr:first-child th { background: #e3eee7; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f6f9f7; }
tbody th { font-weight: 600; min-width: 195px; }
.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.run-history, .monitor-access { padding-top: 10px; margin-top: 12px; border-top: 1px solid var(--line); }
.run-history > summary small, .monitor-access > summary small { margin-inline-start: 8px; }
.history-layout { display: grid; gap: 16px; margin-top: 12px; }
.calendar { width: min(100%, 335px); border: 1px solid var(--line); border-radius: 9px; padding: 8px; }
.calendar-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; text-align: center; }
.calendar table { table-layout: fixed; margin-top: 5px; }
.calendar thead { position: static; }
.calendar :is(thead, thead tr:first-child th, tbody tr) { background: transparent; }
.calendar :is(th, td) { padding: 2px; border: 0; text-align: center; vertical-align: middle; }
.calendar th { color: var(--muted); font-size: .75rem; }
.history-calendar { min-width: 0; }
.history-calendar .calendar-heading { display: inline-flex; gap: 10px; }
.history-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(36px, 1fr)); gap: 5px; margin-top: 8px; }
.calendar-date { display: grid; grid-template-rows: 1fr 10px; place-items: center; min-height: 38px; padding: 3px; border-radius: 6px; background: var(--pale); color: var(--forest); text-decoration: none; font-weight: 700; }
.history-dates span.calendar-date { grid-template-rows: 1fr; background: transparent; color: var(--muted); font-weight: 400; }
.calendar-date small { color: inherit; font-size: .65rem; line-height: 1; }
a.calendar-date:hover { background: #d1e9dc; }
.calendar-date[aria-current] { background: var(--accent); color: #fff; }
.history-snapshots ul { list-style: none; margin: 8px 0 12px; padding: 0; }
.history-snapshots .badge { padding: 5px 10px; text-decoration: none; }
.history-snapshots .badge:hover { text-decoration: underline; }
.history-snapshots .badge[aria-current="page"] { background: var(--accent); color: #fff; }
.history-snapshots form { margin-top: 10px; }
.access-form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.access-form label { width: min(100%, 340px); margin: 0; }
.comparison-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.comparison-coverage { margin: 0; color: var(--muted); font-size: .875rem; }
.comparison-coverage strong { margin-left: 3px; color: var(--accent); font-variant-numeric: tabular-nums; }
.comparison-rules { margin: 8px 0; font-size: .875rem; }
.comparison-downloads { margin-inline-start: auto; }
.comparison-history { margin-top: 12px; font-size: .875rem; }
.comparison-legend { font-size: .875rem; }
.comparison-legend dl { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: 7px 12px; margin: 8px 0 10px; }
.comparison-legend dd { margin: 0; color: var(--muted); }
#comparison-note { margin: 10px 0 12px; font-size: .8rem; }
.comparison-scroll { max-height: 70vh; border-radius: 10px; }
.comparison-table { line-height: 1.35; }
.comparison-table :is(td, th) { padding: 11px 12px; }
.comparison-table tr > :not(:last-child) { border-inline-end: 1px solid var(--line); }
.comparison-table thead { z-index: 3; }
.comparison-table thead th { background: #edf4ef; font-weight: 700; }
.comparison-table thead a { color: inherit; text-decoration-color: #809a8b; text-underline-offset: 3px; }
.comparison-table thead a:hover { color: var(--accent); }
.comparison-column-heading, .column-sort { display: inline-flex; align-items: center; gap: 5px; }
.comparison-category-note { display: block; margin-top: 3px; font-weight: 400; }
.comparison-table thead .column-sort { text-decoration: none; }
.column-sort span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 4px; color: var(--accent); background: var(--surface); }
.column-sort:hover span, th[aria-sort] .column-sort span { background: var(--accent); color: #fff; }
.comparison-table .tire-column { position: sticky; inset-inline-start: 0; z-index: 2; width: 24%; min-width: 205px; max-width: 255px; }
.comparison-table tbody tr { --comparison-row: var(--surface); background: var(--comparison-row); }
.comparison-table tbody tr:nth-child(even) { --comparison-row: #f6f9f7; }
.comparison-table tbody tr:is(:hover, :focus-within) { --comparison-row: #ede9f8; --comparison-own: #ede9f8; }
.comparison-table tbody .tire-column { background: var(--comparison-row); }
.comparison-table .own-column { width: 13%; min-width: 145px; background: var(--comparison-own, #f0f7f3); }
.comparison-table thead .own-column { background: #e2f0e7; }
.comparison-table tr > :nth-child(n+3) { min-width: 145px; }
.tire-label { display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: 8px; }
.tire-number { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.tire-heading { display: flex; align-items: center; gap: 5px; }
.tire-link { text-decoration: none; }
.tire-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tire-model { min-width: 0; font-weight: 750; overflow-wrap: anywhere; }
.tire-heading:has(.chart-link) .tire-model { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tire-size { display: block; margin-top: 2px; color: var(--ink); font-size: .8rem; }
.tire-spec, .tire-article { color: var(--muted); font-weight: 400; }
.tire-article { overflow-wrap: anywhere; }
.chart-link { position: relative; display: grid; place-items: center; flex: 0 0 18px; height: 16px; margin-inline-start: auto; border: 1px solid #a6bfeb; border-radius: 4px; background: #e8f0ff; color: #1d4fa4; text-decoration: none; }
.chart-link::before { content: ''; width: 10px; height: 9px; background: linear-gradient(currentColor, currentColor) 0 100% / 2px 4px no-repeat, linear-gradient(currentColor, currentColor) 50% 100% / 2px 6px no-repeat, linear-gradient(currentColor, currentColor) 100% 100% / 2px 9px no-repeat; }
.chart-link::after { content: ''; position: absolute; inset: -4px -3px; }
.chart-link:hover { color: #fff; background: #1d4fa4; }
.analytics-chart-link { display: flex; align-items: center; gap: 6px; }
.comparison-price-line { display: flex; align-items: baseline; gap: 5px; }
.comparison-price { font-size: 1rem; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-change { display: inline-block; padding: 2px 6px; border: 1px solid; border-radius: 5px; font-size: .82rem; line-height: 1.2; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.change-up { color: #971b2e; background: #ffeaee; border-color: #e7a0ab; }
.change-down { color: #0c6233; background: #ddf5e5; border-color: #8ecba4; }
.change-same { color: #1d4fa4; background: #e8f0ff; border-color: #a6bfeb; }
.comparison-meta { display: block; margin-top: 2px; font-size: .73rem; }
.stale-price { color: var(--muted); }
.stale-price .comparison-price { font-size: .92rem; font-weight: 650; }
.comparison-price[data-tooltip], .stale-reason { cursor: help; }
.comparison-details { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--muted); font-size: .73rem; white-space: nowrap; }
.status-icon { display: inline-grid; place-items: center; min-width: 16px; min-height: 16px; border-radius: 4px; background: #e5ece8; font-weight: 750; cursor: help; }
.status-icon.positive { color: #17634b; background: #e1efe7; }
.status-icon.pending { color: #734b13; background: #fff1d6; }
.status-icon.negative { color: #971b2e; background: #ffeaee; }
.floating-tooltip { position: fixed; z-index: 10; width: max-content; max-width: min(260px, calc(100vw - 16px)); padding: 5px 7px; border-radius: 5px; background: var(--forest); color: #fff; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.4; }
.comparison-badge { margin-top: 6px; padding: 3px 7px; font-size: .72rem; line-height: 1.25; white-space: normal; }
.comparison-badge.active { box-shadow: inset 0 0 0 1px #90b8a1; }
.comparison-badge.pending { background: #fff0cf; }
.badge.unavailable { background: #eaf0ec; color: var(--muted); }
a.comparison-badge { text-decoration: none; }
a.comparison-badge:hover { text-decoration: underline; }
.pair-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; }
.pair-status .comparison-badge { margin: 0; white-space: nowrap; }
.pair-action { flex: 0 0 24px; min-height: 24px; display: inline-grid; place-items: center; padding: 0; }
.pair-dialog, .competitor-dialog { width: min(560px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); white-space: normal; }
:is(.pair-dialog, .competitor-dialog)::backdrop { background: #172a2566; }
.competitor-modes { display: grid; gap: 12px; margin: 16px 0; }
.competitor-modes small { display: block; margin-top: 3px; }
.pair-dialog .grid { margin: 14px 0; }
.pair-dialog .grid > div { padding: 12px; background: var(--background); border-radius: 7px; overflow-wrap: anywhere; }
.pair-dialog dl { margin: 0; }
.pair-dialog dt { color: var(--muted); }
.pair-dialog dd { margin: 0 0 6px; }
.comparison-empty { text-align: center; vertical-align: middle; color: var(--muted); }
.comparison-empty-mark { display: inline-block; padding-inline: 4px; cursor: help; }
.comparison-candidates { margin: 0; font-size: .8rem; }
.comparison-candidates ul { margin: 6px 0 0; padding-inline-start: 16px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; padding: 0; list-style: none; font-size: .875rem; }
.chart-swatch { display: inline-block; width: 16px; margin-inline-end: 5px; border-top: 3px solid var(--series-color); vertical-align: middle; }
.chart-swatch.review { border-top-style: dashed; }
.chart-plot { position: relative; }
.chart-plot canvas { display: block; width: 100%; height: clamp(230px, 40vh, 420px); }
.chart-tooltip { position: absolute; top: 6px; max-width: 100%; padding: 7px 10px; border-radius: 6px; background: var(--forest); color: #fff; pointer-events: none; font-size: .8rem; }
.chart-tooltip span { display: block; }
.chart-note { font-size: .8rem; }
.chart-table { margin-top: 8px; max-height: 42vh; }
.analytics-trends { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.analytics-trends :is(a, button) { padding: 5px 9px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-decoration: none; font-weight: 650; font-size: .875rem; }
.analytics-trends :is(a, button):hover { background: var(--pale); }
.analytics-trends :is(a[aria-current], button[aria-pressed="true"]) { background: var(--accent); color: #fff; }
.analytics-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 10px; margin-top: 10px; }
.analytics-form label { min-width: 0; margin: 0; }
.analytics-date-caption { font-weight: 650; }
.analytics-date-filter details { position: relative; margin: 5px 0 0; }
.analytics-date-filter summary { padding: 9px 10px; border: 1px solid #a9bdb1; border-radius: 7px; background: var(--surface); overflow-wrap: anywhere; }
.analytics-calendar-panel { position: absolute; inset-block-start: 100%; inset-inline-end: 0; z-index: 4; width: min(335px, calc(100vw - 40px)); margin-top: 6px; padding: 10px; background: var(--surface); box-shadow: 0 6px 20px #172a251c; }
.analytics-calendar-panel .calendar-heading { margin-top: 8px; }
.analytics-calendar-panel .calendar-heading strong { text-transform: capitalize; }
.analytics-calendar-panel td button { width: 100%; min-height: 32px; padding: 2px; border: 1px solid transparent; border-radius: 5px; background: var(--surface); color: var(--ink); font-size: .8rem; }
.analytics-calendar-panel td button:hover, .analytics-calendar-panel td button[aria-pressed="true"] { background: var(--pale); color: var(--accent); }
.analytics-calendar-panel td button[aria-current="date"] { border-color: #719e8c; }
.analytics-calendar-panel td button[data-range-edge] { background: var(--accent); color: #fff; }
.analytics-calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.analytics-records th[scope="rowgroup"] { min-width: 205px; border-inline-end: 1px solid var(--line); border-bottom: 0; }
.analytics-records tbody tr:nth-child(even) { background: transparent; }
.analytics-records tbody:nth-of-type(even) { background: #f6f9f7; }
.analytics-records tbody + tbody tr:first-child > * { border-top: 2px solid var(--line); }
details { margin: 6px 0; }
summary { cursor: pointer; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.source-card { margin: 0; overflow-wrap: anywhere; }
.source-card ul { padding-inline-start: 20px; }
.source-card li + li { margin-top: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.auth-layout { display: grid; grid-template-columns: 1fr .85fr; overflow: hidden; min-height: 550px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.auth-intro { display: flex; flex-direction: column; gap: 30px; padding: clamp(22px, 4vw, 44px); color: #f4faf6; background: linear-gradient(150deg, #14372d, #1e4f3d); }
.auth-copy h2 { font-size: clamp(2.05rem, 4.2vw, 3.25rem); max-width: 12ch; }
.auth-copy p { color: #cee5d8; margin-top: 14px; max-width: 34ch; }
.auth-example { margin-top: auto; overflow: hidden; background: #fff; color: var(--ink); border-radius: 9px; }
.auth-example > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; padding: 11px; }
.auth-example thead { position: static; }
.auth-main { align-self: center; padding: clamp(22px, 4vw, 45px); }
.auth-main h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
.auth-main form { margin-top: 16px; }
.auth-main form .button { width: 100%; margin-top: 9px; }
.auth-main > p:last-child { margin-top: 15px; }

@media (max-width: 980px) {
  .analytics-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-form > button { justify-self: start; }
}

@media (max-width: 720px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 14px 16px; gap: 12px 18px; }
  .sidebar .brand { align-self: center; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav a { padding: 6px 8px; }
  .account { margin: 0 0 0 auto; padding: 0; border: 0; }
  .account-details { display: none; }
  .content { padding-top: 22px; }
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .metric { padding: 10px; }
  .metric span { font-size: .77rem; }
  .monitor-records, .monitor-records tbody, .monitor-records tbody tr, .monitor-records tbody th, .monitor-records td { display: block; }
  .monitor-records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .monitor-records tbody tr { border-bottom: 1px solid var(--line); padding: 9px 15px; }
  .monitor-records tbody tr:last-child { border-bottom: 0; }
  .monitor-records tbody th, .monitor-records td { border: 0; padding: 5px 0; }
  .monitor-records td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--muted); }
  .comparison-panel { padding-inline: 12px; }
  .comparison-legend dl { grid-template-columns: 1fr; }
  .analytics-form { grid-template-columns: minmax(0, 1fr); }
  .analytics-form button { justify-self: start; }
  .analytics-calendar-panel { position: static; width: 100%; box-shadow: none; }
  .comparison-table :is(td, th) { padding-inline: 8px; }
  .comparison-table .tire-column { width: 126px; min-width: 126px; max-width: 126px; }
  .tire-label { gap: 5px; }
  .tire-article { font-size: .66rem; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-intro { gap: 16px; }
  .auth-copy h2 { font-size: 1.65rem; max-width: none; }
  .auth-copy p, .auth-example { display: none; }
}
