.speed-legacy-anchor{display:block;scroll-margin-top:100px}
.speed-radar{--speed-bg:#07100b;--speed-ink:#d5e9dd;--speed-muted:#819d8e;--speed-line:#193c2a;--speed-bright:#30f799;padding:24px 0;scroll-margin-top:100px}
:root[data-theme="light"] .speed-radar{--speed-bg:#f0f6ef;--speed-ink:#183328;--speed-muted:#476453;--speed-line:#b3cfc0;--speed-bright:#087645}
.speed-radar-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:18px}.speed-radar-head h2{margin:0;font-size:1.6rem;line-height:1.25}
.speed-search{display:block;width:min(100%,270px)}.speed-search span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.speed-search input{box-sizing:border-box;width:100%;padding:11px 14px;border:1px solid var(--speed-line);border-radius:4px;background:var(--speed-bg);color:var(--speed-ink);font:inherit;font-size:.9rem}.speed-search input::placeholder{color:var(--speed-muted);opacity:1}.speed-search input:focus-visible{outline:2px solid var(--speed-bright);outline-offset:3px}
.speed-radar-note,.speed-radar-time,.speed-radar-status{font-size:.85rem;line-height:1.7;opacity:.78}.speed-radar-time{font-variant-numeric:tabular-nums}.speed-radar-status{min-height:1.7em}.speed-radar[data-state=current] .speed-radar-status{color:var(--speed-bright);opacity:1}:root[data-theme="light"] .speed-radar[data-state=current] .speed-radar-status{color:#087645}.speed-radar[data-state=stale] .speed-radar-status{color:#bd913f;opacity:1}
.speed-radar-scroll{border:1px solid var(--speed-line);border-radius:4px;background:var(--speed-bg);color:var(--speed-ink);overflow:hidden}
.speed-radar-scroll table{width:100%;border-collapse:collapse;table-layout:fixed;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums;font-size:.9rem;line-height:1.4}.speed-radar-scroll th,.speed-radar-scroll td{padding:18px 16px;border-bottom:1px solid var(--speed-line);text-align:left;vertical-align:middle}.speed-radar-scroll thead th{padding-top:13px;padding-bottom:13px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--speed-muted)}
.speed-radar-scroll thead th:nth-child(1){width:21%}.speed-radar-scroll thead th:nth-child(2){width:31%}.speed-radar-scroll thead th:nth-child(3){width:14%}.speed-radar-scroll thead th:nth-child(4){width:17%}.speed-radar-scroll thead th:nth-child(5){width:10%}.speed-radar-scroll thead th:nth-child(6){width:7%}.speed-radar-scroll tr:last-child>*{border-bottom:0}.speed-radar-scroll th.speed-model{font-weight:650;overflow-wrap:anywhere}
.speed-radar .speed-harness{color:var(--speed-muted);font-size:.78rem}.speed-harness-entry{display:inline-flex;gap:5px;align-items:baseline;margin:3px 13px 3px 0;white-space:nowrap}.speed-harness-entry small{font-size:inherit}.speed-radar .speed-value{text-align:right;white-space:nowrap}.speed-value strong{color:var(--speed-bright);font-size:1.35rem;font-weight:750}.speed-value small{color:var(--speed-muted);font-size:.72rem;font-weight:400}.speed-radar .speed-requests,.speed-radar .speed-devices,.speed-radar-scroll thead th:nth-child(3),.speed-radar-scroll thead th:nth-child(5),.speed-radar-scroll thead th:nth-child(6){text-align:right}
.speed-trend svg{display:block;width:100%;max-width:160px;height:34px;overflow:visible;color:var(--speed-bright)}.speed-trend path{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.speed-trend circle{fill:currentColor}.speed-trend .speed-trend-hit{fill:transparent;cursor:help}.speed-radar-empty{padding:20px;color:var(--speed-muted)}.speed-radar-links{font-size:.85rem;line-height:1.8}.speed-radar-links a{color:inherit;text-underline-offset:4px}.speed-radar a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(max-width:720px){.speed-radar{padding:20px 0}.speed-radar-head{gap:14px}.speed-radar-head h2{font-size:1.4rem}.speed-search{width:100%}.speed-radar-scroll table,.speed-radar-scroll tbody{display:block}.speed-radar-scroll thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.speed-radar-scroll tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"model value" "harness harness" "trend requests" "trend devices";gap:7px 12px;padding:17px 14px;border-bottom:1px solid var(--speed-line)}.speed-radar-scroll tbody tr:last-child{border-bottom:0}.speed-radar-scroll th,.speed-radar-scroll td{padding:0;border:0;width:auto;min-width:0}.speed-model{grid-area:model;font-size:.9rem}.speed-radar .speed-harness{grid-area:harness;font-size:.73rem}.speed-value{grid-area:value}.speed-value strong{font-size:1.2rem}.speed-value small{font-size:.66rem}.speed-trend{grid-area:trend;align-self:center}.speed-trend svg{width:132px;max-width:100%}.speed-requests{grid-area:requests}.speed-devices{grid-area:devices}.speed-requests,.speed-devices{font-size:.73rem}.speed-requests::before,.speed-devices::before{content:attr(data-label) " ";color:var(--speed-muted)}.speed-harness-entry{margin:2px 12px 2px 0}}

.speed-trend-button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;max-width:168px;min-height:50px;padding:3px 4px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--speed-bright);font:inherit;text-align:left;cursor:pointer}.speed-trend-button:hover{background:color-mix(in srgb,var(--speed-bright) 7%,transparent);border-color:var(--speed-line)}.speed-trend-button:focus-visible,.speed-history-close:focus-visible{outline:2px solid var(--speed-bright);outline-offset:3px}.speed-trend-caption,.speed-trend-held{color:var(--speed-muted);font-size:.65rem;line-height:1.25;white-space:nowrap}.speed-trend-unavailable{height:34px;display:flex;align-items:center;color:var(--speed-muted)}.speed-trend-held{font-size:.6rem}
.speed-history-dialog:not([open]){display:none}.speed-history-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);margin:auto;padding:22px;border:1px solid var(--speed-line);border-radius:12px;background:var(--speed-bg);color:var(--speed-ink);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #0008}.speed-history-dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}.speed-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.speed-history-head h3{margin:0;font-size:1.1rem;line-height:1.6;overflow-wrap:anywhere}.speed-history-close{flex:none;min-height:44px;padding:8px 12px;border:1px solid var(--speed-line);border-radius:5px;background:transparent;color:var(--speed-ink);font:inherit;cursor:pointer}.speed-history-meta,.speed-history-coverage,.speed-history-source{font-size:.76rem;line-height:1.7;color:var(--speed-muted)}.speed-history-meta{margin:10px 0 20px}.speed-history-chart{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px}.speed-history-y{height:200px;display:flex;flex-direction:column;justify-content:space-between;text-align:right;font-size:.72rem;color:var(--speed-muted)}.speed-history-plot{min-width:0}.speed-history-plot svg{display:block;width:100%;height:200px;color:var(--speed-bright);background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(50% - 1px),var(--speed-line) calc(50% - 1px),var(--speed-line) 50%)}.speed-history-plot path{fill:none;stroke:currentColor;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.speed-history-plot circle{fill:currentColor}.speed-history-axis{display:flex;justify-content:space-between;gap:8px;margin-top:10px;font-size:.65rem;color:var(--speed-muted)}.speed-history-axis time{text-align:center}.speed-history-axis time:first-child{text-align:left}.speed-history-axis time:last-child{text-align:right}.speed-history-empty{grid-column:1/-1;min-height:100px;display:flex;align-items:center;justify-content:center;font-size:.85rem;color:var(--speed-muted)}.speed-history-coverage{margin:16px 0 10px}.speed-history-source{display:inline-block;padding:6px 0;text-underline-offset:4px}
@media(max-width:480px){.speed-history-dialog{padding:16px 12px}.speed-history-head{gap:8px}.speed-history-head h3{font-size:.93rem}.speed-history-meta{font-size:.68rem}.speed-history-chart{grid-template-columns:36px minmax(0,1fr);gap:7px}.speed-history-y,.speed-history-plot svg{height:170px}.speed-history-axis{font-size:.58rem}.speed-history-coverage{font-size:.7rem}}

/* Ticket 284 · head and density. The head carries the title, the data window and the sync status
   (same data-speed-time / data-speed-status hooks, now above the table instead of under ten rows);
   the note and links stay below as the footer. The trend cell puts its caption on one line under
   the curve, so a row is ~66px instead of ~100px. No value, unit, caption or state is removed. */
.speed-radar-head{align-items:flex-end;gap:12px 24px;margin-bottom:14px}
.speed-radar-heading{display:flex;flex-direction:column;gap:6px;min-width:0}
.speed-radar-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 16px;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.speed-radar-meta p{margin:0;font-size:inherit;line-height:inherit}
.speed-radar-meta .speed-radar-time{color:var(--speed-muted);opacity:1}
.speed-radar-meta .speed-radar-status{display:inline-flex;align-items:center;gap:6px;min-height:0;color:var(--speed-muted);opacity:1}
.speed-radar-meta .speed-radar-status::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:currentColor}
.speed-radar-note{margin:12px 0 0;color:var(--speed-muted);font-size:12px;line-height:1.7;opacity:1}
.speed-radar-links{margin:2px 0 0;font-size:12px;line-height:1.8}
.speed-trend-button{flex-direction:row;flex-wrap:wrap;align-items:center;gap:3px 8px;min-height:0;max-width:176px;padding:2px 4px}
.speed-trend-button>:is(svg,.speed-trend-unavailable){flex:1 0 100%}
.speed-trend .speed-trend-button>svg{height:28px}
.speed-trend .speed-trend-unavailable{height:28px}
.speed-trend-held::before{content:"· "}
/* Station page: the station head ("模型速度 / Speed") is the page title. The module sits right under
   it without the chapter rule, and its title is one step smaller than the station title. */
.home-station-page .ru-chapter>section.speed-radar{border-top:0;padding-top:4px}
.home-station-page .speed-radar-head h2{font-size:20px;line-height:1.3;letter-spacing:.01em}
@media(max-width:720px){
 .speed-radar-head{align-items:stretch}
 .home-station-page .speed-radar-head h2{font-size:18px}
 .speed-radar-meta{font-size:11px;gap:2px 12px}
 .speed-trend-button{max-width:100%}
}

/* Ticket 376: the stale/held sync note uses the radar warning token, so it keeps contrast on the
   light theme (#9a5b00 on paper) and stays amber on dark; wording, timestamps and order unchanged. */
:root .speed-radar[data-state=stale] .speed-radar-status{color:var(--warn,#bd913f)}
