:root {
  color-scheme: light;
  --bg: #eaf1ef;
  --surface: #f7faf9;
  --surface-raised: #ffffff;
  --line: #cadbd7;
  --text: #173a3b;
  --muted: #486768;
  --soft: #dbe9e5;
  --accent: #4763FF;
  --accent-hover: #3854e6;
  --accent-ink: #ffffff;
  --focus: #3854e6;
  --success-bg: #dcece3;
  --success-text: #2d624d;
  --warning-bg: #f7eacb;
  --warning-text: #73511c;
  --danger-bg: #f3ded8;
  --danger-text: #923c2f;
  --shadow: 0 10px 30px #133c3508;
  --button-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font: 14px/1.5 "Segoe UI Variable", "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #204C4D;
  --surface: #214344;
  --surface-raised: #2a5556;
  --line: #557779;
  --text: #f0f8f6;
  --muted: #bcd5d0;
  --soft: #315d5c;
  --focus: #b4c2ff;
  --success-bg: #2c5748;
  --success-text: #b0dfc2;
  --warning-bg: #453a25;
  --warning-text: #efce91;
  --danger-bg: #49332d;
  --danger-text: #f4b8a9;
  --shadow: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: transparent; color: var(--text); overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; font-family: var(--button-font); }
button:disabled { opacity: .42; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 4px;
}
svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.55; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button svg { width: 18px; height: 18px; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--line); }
.app-shell { --scan-width: 180px; --rail-width: 86px; height: 100vh; display: flex; flex-direction: column; position: relative; background: var(--bg); border-radius: 54px; overflow: hidden; }
.titlebar { height: 77px; padding-left: 29px; display: flex; align-items: center; justify-content: space-between; flex: none; -webkit-app-region: drag; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 650; letter-spacing: -1.1px; }
.brand-mark { width: 30px; height: 34px; display: grid; place-items: center; color: var(--text); }
.brand-wordmark { display: grid; gap: 1px; line-height: 1; letter-spacing: 0; }
.brand-wordmark strong { font-size: 24px; font-weight: 720; letter-spacing: .08em; }
.brand-wordmark small { font: 9px/1.3 "Segoe UI", sans-serif; letter-spacing: .01em; white-space: nowrap; }
.brand-mark svg { width: 28px; height: 30px; stroke-width: 2.3; }
.preview-label { font: 8px "Segoe UI", sans-serif; color: var(--muted); letter-spacing: 1px; margin: 7px 0 0 4px; }
.titlebar-right { display: flex; align-items: center; gap: 7px; height: 100%; padding-right: 17px; }
.toolbar-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 25px; background: transparent; color: var(--muted); font-size: 11px; -webkit-app-region: no-drag; }
.toolbar-button:hover { background: var(--surface-raised); color: var(--text); }
#theme-button { width: 35px; padding: 7px; }
.window-controls { display: flex; height: 100%; margin-left: 8px; -webkit-app-region: no-drag; }
.window-controls button { width: 34px; border: 0; background: transparent; font-size: 20px; color: var(--muted); }
.window-controls button:hover { background: var(--soft); color: var(--text); }
.window-controls #close:hover { background: #b94335; color: #fff; }
#navigation { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.badge-rail { position: absolute; top: 135px; bottom: 56px; width: var(--rail-width); display: grid; grid-auto-rows: 78px; align-content: center; justify-content: center; gap: 20px; }
.left-badges { left: 10px; }
.right-badges { right: 10px; }
.nav-item { pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 76px; height: 76px; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 4px; border-radius: 50%; background: var(--surface-raised); color: var(--muted); font-size: 9px; font-weight: 550; line-height: 1.15; padding: 9px; box-shadow: inset 0 -4px 0 #34422007; }
.nav-item span { max-width: 58px; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { background: var(--soft); color: var(--text); outline-color: var(--muted); }
.nav-item.active { background: var(--accent); color: var(--accent-ink); border-color: #94a6ff; outline-color: #94a6ff; font-weight: 650; }
.nav-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.workspace { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
#view-heading { padding: 17px calc(var(--rail-width) + 24px) 21px; flex: none; }
#view-heading .page-heading > div { max-width: calc((100% - var(--scan-width) - 44px) / 2); }
#view-heading .page-heading > :last-child:not(:first-child) { max-width: calc((100% - var(--scan-width) - 44px) / 2); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 30px; font-weight: 500; line-height: 1.16; letter-spacing: -1.2px; margin-bottom: 5px; }
h2 { font-size: 19px; font-weight: 550; line-height: 1.3; letter-spacing: -.35px; margin-bottom: 12px; }
h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
p { color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.page-heading p { font-size: 12px; margin-bottom: 0; }
.device-chip { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.device-chip svg { width: 17px; height: 17px; }
#content { flex: 1; min-height: 0; min-width: 0; outline: none; display: grid; grid-template-columns: minmax(0,1fr) var(--scan-width) minmax(0,1fr); align-items: stretch; gap: 22px; padding: 0 calc(var(--rail-width) + 18px) 22px; }
#left-pane { grid-column: 1; }
.right-workspace { grid-column: 3; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#right-pane { flex: 1; }
.side-pane { min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 2px 4px 10px; scrollbar-gutter: stable; }
.side-pane > :first-child { margin-top: 0; }
.panel, .activity-panel { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 17px; }
.panel { padding: 22px; }
.panel > :last-child { margin-bottom: 0; }
.panel p { font-size: 12px; }
.panel-label { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; margin-bottom: 23px; }
.panel-label svg { width: 16px; height: 16px; }
.section-head, .report-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 14px; }
.section-head h2, .report-head h2 { margin: 0; }
.panel .section-head, .panel .report-head { margin-top: 0; }
.section-meta, .meta, .tag { font-size: 10px; color: var(--muted); }
.monitoring-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success-text); flex: none; }
.status-dot.off { background: var(--warning-text); }
.large-reading { display: flex; align-items: center; gap: 17px; font-size: 64px; font-weight: 350; letter-spacing: -4px; line-height: 1; margin: 23px 0; }
.large-reading span { font-size: 11px; color: var(--muted); line-height: 1.5; letter-spacing: 0; }
.mini-fact { display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 11px; margin-bottom: 6px; }
.mini-fact span { color: var(--muted); }
.mini-fact strong { font-weight: 600; }
.ledger-row { width: 100%; display: flex; align-items: center; gap: 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; padding: 14px 0; }
.ledger-row:last-child { border-bottom: 0; padding-bottom: 3px; }
.ledger-row:hover { color: var(--success-text); }
.ledger-icon { display: grid; place-items: center; width: 36px; height: 36px; background: var(--soft); border-radius: 50%; }
.ledger-icon svg { width: 17px; height: 17px; }
.ledger-row > span:nth-child(2) { flex: 1; min-width: 0; }
.ledger-row strong { display: block; font-weight: 550; font-size: 12px; }
.ledger-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.ledger-row > svg:last-child { width: 14px; }
.primary, .secondary, .text-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; border-radius: 999px; padding: 9px 15px; border: 1px solid transparent; font-size: 12px; font-weight: 550; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { border-color: var(--line); background: var(--surface-raised); }
.secondary:hover:not(:disabled) { background: var(--soft); }
.text-button { background: transparent; padding: 7px 2px; color: var(--text); justify-content: flex-start; }
.text-button svg { width: 15px; height: 15px; }
.text-button:hover { color: var(--success-text); text-decoration: underline; text-underline-offset: 4px; }
.danger-button { background: var(--danger-bg); color: var(--danger-text); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button-row .text-button { font-size: 11px; }
/* The full-height spine is informational; only the round button starts/stops. */
#scan-station { position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: var(--scan-width); background: var(--accent); color: var(--accent-ink); border-inline: 1px solid #93a5ff55; }
.scan-switch { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); text-align: center; cursor: default; padding: 0; }
.station-switch-title { position: absolute; top: 35px; left: 10px; right: 10px; font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.scan-switch-action { display: flex; flex-direction: column; align-items: center; gap: 25px; position: absolute; top: 43%; left: 0; right: 0; transform: translateY(-50%); }
.switch-disc { width: 118px; height: 118px; padding: 0; flex: none; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; clip-path: circle(50%); background: #183638; color: #ffffff; box-shadow: 0 0 0 7px #afbdff55; cursor: pointer; }
.switch-disc:hover:not(:disabled) { background: #254c50; }
.switch-disc:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }
.switch-disc svg { width: 41px; height: 41px; stroke-width: 1.6; }
#station-button-label { font-size: 23px; font-weight: 500; letter-spacing: -.6px; }
.switch-track { height: 84px; width: 5px; border-radius: 8px; background: #b6c2ff; }
.scan-switch.running { background: #f0d6a7; color: #46341c; }
#scan-station.is-running .station-status, #scan-station.is-running .station-foot { color: #46341c; }
.scan-switch.running .switch-disc { color: #f0d6a7; background: #46341c; box-shadow: 0 0 0 7px #d1b68070; transform: translateY(10px); }
.scan-switch.running .switch-track { background: #b39c75; }
.station-status { pointer-events: none; position: absolute; bottom: 119px; left: 15px; right: 15px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--accent-ink); }
.station-status svg { width: 19px; height: 19px; }
.station-status strong { display: block; font-size: 11px; font-weight: 650; }
.station-status small { display: block; font-size: 9px; margin-top: 5px; overflow-wrap: anywhere; }
.station-foot { pointer-events: none; position: absolute; bottom: 32px; left: 15px; right: 15px; text-align: center; font-size: 9px; color: var(--accent-ink); line-height: 1.7; margin: 0; }
#scan-options { padding: 0 4px 17px; margin: 2px 4px 17px; border-bottom: 1px solid var(--line); flex: none; }
#scan-options .panel-label { margin-bottom: 13px; }
.scan-choices { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 10px; }
.scan-choices > div { min-width: 0; }
.scan-choices label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.scan-choices select { width: 100%; min-width: 0; font-size: 11px; padding: 9px 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; }
.choice-caption { display: block; font-size: 10px; color: var(--muted); margin-top: 9px; }
#station-scope-note { color: var(--muted); font-size: 10px; margin: 6px 0 0; line-height: 1.6; }
.scan-guide { display: flex; gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.scan-guide:last-child { border-bottom: 0; padding-bottom: 0; }
.scan-guide h2 { font-size: 16px; margin-bottom: 7px; }
.scan-guide p { font-size: 11px; margin-bottom: 7px; }
.step-number { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.scan-limits { border-top: 1px solid var(--line); font-size: 11px; padding-top: 14px; margin-top: 17px; }
.scan-limits summary { font-weight: 600; }
.scan-limits p { margin-top: 12px; font-size: 11px; }
.info-strip { display: flex; align-items: flex-start; gap: 10px; background: var(--warning-bg); color: var(--warning-text); border-radius: 15px; padding: 15px; margin: 16px 0; flex-wrap: wrap; }
.info-strip p { color: inherit; font-size: 11px; margin: 0; flex: 1; min-width: 150px; }
.info-strip svg { width: 18px; height: 18px; }
.muted-note { font-size: 10px; line-height: 1.7; color: var(--muted); padding: 0 4px; margin: 16px 0; overflow-wrap: anywhere; }
.activity-panel { overflow: hidden; }
.activity-row { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 10px; width: 100%; text-align: left; padding: 18px 15px; background: transparent; border: 0; border-bottom: 1px solid var(--line); align-items: center; }
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover { background: var(--soft); }
.activity-row > svg:first-child { width: 18px; color: var(--muted); }
.activity-row > svg:last-child { display: none; }
.activity-body { min-width: 0; }
.activity-body strong { font-size: 11px; font-weight: 600; display: block; }
.activity-body small { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; margin-top: 4px; }
.activity-row time { grid-column: 2 / -1; color: var(--muted); font-size: 10px; }
.pill { border-radius: 99px; background: var(--soft); color: var(--muted); padding: 4px 7px; font-size: 9px; white-space: nowrap; }
.pill.completed { color: var(--success-text); background: var(--success-bg); }
.pill.high { color: var(--danger-text); background: var(--danger-bg); }
.pill.partial, .pill.limited, .pill.medium { color: var(--warning-text); background: var(--warning-bg); }
.empty-activity { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 0; }
.activity-panel .empty-activity { padding: 22px; }
.empty-activity p { margin-bottom: 0; font-size: 11px; }
.empty-icon { border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); }
.empty-large { padding-block: 35px; }
.metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.metric { border: 1px solid var(--line); background: var(--surface); border-radius: 17px; padding: 16px; }
.metric strong { display: block; font-size: 31px; font-weight: 400; letter-spacing: -1px; }
.metric span { display: block; font-size: 10px; color: var(--muted); }
.report-head { flex-wrap: wrap; }
.folder-row { display: flex; align-items: center; gap: 9px; padding: 17px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.folder-row > svg { width: 18px; color: var(--muted); }
.folder-path { flex: 1; min-width: 120px; font-size: 11px; overflow-wrap: anywhere; }
.folder-path small { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.folder-row .secondary, .folder-row .text-button { font-size: 10px; min-height: 32px; }
.feature-list { display: grid; gap: 18px; padding: 15px 4px; }
.feature-list > div { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.feature-list svg { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }
.feature-list strong { font-size: 12px; font-weight: 600; }
.feature-list p { font-size: 11px; margin: 10px 0 0; }
.input-row { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
select, .url-input { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--text); padding: 9px 10px; min-width: 0; }
.url-input { width: 100%; font-size: 12px; }
.module-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--soft); border-radius: 50%; margin-bottom: 20px; }
.setting-row { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding: 20px 0; }
.setting-row:first-child { padding-top: 0; }
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row > div { flex: 1; min-width: 0; }
.setting-row strong { font-size: 12px; font-weight: 600; }
.setting-row p { font-size: 10px; margin: 6px 0 0; }
.setting-row select { font-size: 11px; max-width: 105px; }
.switch { position: relative; flex: none; display: block; width: 39px; height: 24px; margin-top: 2px; }
.switch input { appearance: none; width: 39px; height: 24px; margin: 0; background: var(--line); border: 1px solid var(--muted); border-radius: 99px; cursor: pointer; }
.switch input:checked { background: var(--accent); border-color: #94a6ff; }
.switch input:disabled { opacity: .45; cursor: default; }
.switch span { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); pointer-events: none; }
.switch input:checked + span { left: 19px; background: var(--accent-ink); }
.reminder-options { margin-top: 14px; }
.header-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.header-checks span { background: var(--soft); border-radius: 7px; padding: 5px 7px; font-size: 10px; overflow-wrap: anywhere; }
.eyebrow { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.report-path { font: 10px/1.7 Consolas, monospace; background: var(--soft); border-radius: 12px; padding: 14px; overflow-wrap: anywhere; }
.scope-note { color: var(--muted); font-size: 10px; line-height: 1.7; padding: 0 4px; margin: 18px 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 16px 0; }
.filter { border: 1px solid var(--line); border-radius: 99px; padding: 5px 9px; font-size: 10px; background: var(--surface); }
.filter.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.finding { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); margin: 12px 0; }
.finding summary { display: flex; align-items: center; gap: 10px; padding: 16px 13px; }
.finding summary h3 { font-size: 12px; margin: 0; flex: 1; }
.finding summary::after { content: "+"; color: var(--muted); font-size: 18px; }
.finding[open] summary::after { content: "−"; }
.detail { padding: 0 13px 16px; font-size: 11px; }
.finding-path { overflow-wrap: anywhere; background: var(--soft); border-radius: 10px; padding: 12px; font: 10px/1.6 Consolas, monospace; margin-bottom: 12px; }
.recommendation { padding: 12px; border-radius: 10px; background: var(--success-bg); color: var(--success-text); }
.rule-label { color: var(--muted); font-size: 9px; }
.issue-list { font-size: 10px; padding-left: 18px; overflow-wrap: anywhere; }
.issue-list li { margin: 8px 0; }
#notice { margin: 7px calc(50% + var(--scan-width) / 2 + 24px) 0 calc(var(--rail-width) + 22px); padding: 11px 15px; border-radius: 12px; font-size: 11px; background: var(--warning-bg); color: var(--warning-text); overflow-wrap: anywhere; }
#dismiss-notice { float: right; background: transparent; border: 0; font-size: 18px; margin-left: 12px; }
#protection-reminder { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 7px calc(50% + var(--scan-width) / 2 + 24px) 0 calc(var(--rail-width) + 22px); padding: 13px 16px; background: var(--warning-bg); color: var(--warning-text); border-radius: 14px; }
#protection-reminder strong { font-size: 12px; }
#protection-reminder p { font-size: 10px; color: inherit; margin: 3px 0 0; }
#protection-reminder .button-row { gap: 5px; }
#protection-reminder button { font-size: 10px; }
#scan-progress { display: flex; align-items: center; gap: 12px; margin: 0 calc(50% + var(--scan-width) / 2 + 24px) 12px calc(var(--rail-width) + 22px); padding: 10px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.progress-text { flex: 1; min-width: 0; }
.progress-text strong { display: block; font-size: 11px; font-weight: 600; }
.progress-text small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--success-text); border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
.workspace-footer { display: flex; justify-content: space-between; gap: calc(var(--scan-width) + 50px); padding: 12px 35px; font-size: 9px; color: var(--muted); border-top: 1px solid var(--line); flex: none; }
.loading { padding: 35px 0; color: var(--muted); font-size: 12px; }
.search-provider { display: block; width: 100%; margin: 8px 0 18px; }
.search-option { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; margin-bottom: 18px; }
.search-option input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.search-evidence { border-top: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.search-evidence strong { font-size: 12px; }
.search-evidence small { display: block; font-size: 10px; color: var(--muted); }
.search-evidence p { margin: 8px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 1050px) {
  .app-shell { --scan-width: 154px; --rail-width: 72px; }
  .titlebar { padding-left: 23px; }
  .brand { font-size: 22px; }
  .preview-label { display: none; }
  .titlebar-right { gap: 5px; padding-right: 12px; }
  .toolbar-button { padding-inline: 9px; font-size: 10px; }
  .window-controls { margin-left: 0; }
  .window-controls button { width: 28px; }
  #content { gap: 13px; padding-inline: calc(var(--rail-width) + 12px); }
  #view-heading { padding-inline: calc(var(--rail-width) + 17px); }
  .panel { padding: 16px; }
  .nav-item { width: 62px; height: 62px; font-size: 8px; gap: 4px; padding: 7px; }
  .nav-item svg { width: 18px; height: 18px; }
  .badge-rail { grid-auto-rows: 66px; gap: 17px; }
  .left-badges { left: 5px; } .right-badges { right: 5px; }
  .large-reading { font-size: 49px; gap: 11px; }
  .setting-row { gap: 8px; }
  .setting-row select { max-width: 82px; }
  .device-chip { display: none; }
  .activity-row { grid-template-columns: minmax(0,1fr) auto; padding-inline: 12px; }
  .activity-row > svg:first-child { display: none; }
  .activity-row time { grid-column: 1 / -1; }
  .scan-choices { gap: 5px; }
  .scan-choices select { font-size: 10px; padding-inline: 4px; }
  #station-scope-note { font-size: 9px; }
  .switch-disc { width: 99px; height: 99px; }
  #station-button-label { font-size: 21px; }
  .workspace-footer { font-size: 8px; }
}
@media (max-height: 700px) {
  .titlebar { height: 65px; }
  #view-heading { padding-top: 9px; padding-bottom: 14px; }
  h1 { font-size: 26px; }
  .badge-rail { top: 120px; bottom: 45px; grid-auto-rows: 64px; gap: 14px; }
  .nav-item { width: 62px; height: 62px; font-size: 8px; padding: 6px; }
  .nav-item svg { width: 19px; height: 19px; }
  .scan-switch-action { gap: 22px; }
  .switch-disc { width: 87px; height: 87px; }
  .switch-disc svg { width: 32px; height: 32px; }
  .switch-track { height: 48px; }
  .station-status { bottom: 98px; }
  .station-foot { bottom: 24px; font-size: 8px; }
  .station-switch-title { top: 29px; font-size: 8px; }
  #scan-options { padding-bottom: 12px; margin-bottom: 12px; }
  #station-scope-note { display: none; }
}
@media (forced-colors: active) {
  .nav-item.active, .primary, .switch-disc { border: 2px solid ButtonText; }
  .switch-disc:focus-visible { outline-color: Highlight; }
  .switch input:checked { background: Highlight; }
  .switch span { background: ButtonText; }
}
