:root {
  color-scheme: dark;
  --paper: #0c121d;
  --surface: #141e2c;
  --surface-raised: #1a2739;
  --white: #0d1623;
  --ink: #e0e8f3;
  --muted: #97a8be;
  --line: #263449;
  --line-dark: #3a4d66;
  --accent: #80baff;
  --accent-strong: #2c70d2;
  --accent-soft: #1b304e;
  --hover: #1c2a3e;
  --success: #83d8bb;
  --success-soft: #17372f;
  --warning: #edc37d;
  --warning-soft: #3c301d;
  --danger: #f39aab;
  --danger-soft: #3e2430;
  --clay: var(--accent);
  --clay-dark: var(--accent);
  --clay-soft: var(--accent-soft);
  --sage: var(--accent);
  --sage-soft: var(--accent-soft);
  --deep: #0d1523;
  --sidebar-width: 236px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font: 14px/1.58 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--paper); color: var(--ink) }
body.signed-in { padding-left: var(--sidebar-width) }
a { color: var(--clay-dark); text-underline-offset: .22em }
h1, h2, h3, p { margin: 0 }
h1 { font-size: clamp(26px, 2.6vw, 31px); line-height: 1.3; letter-spacing: -.025em; font-weight: 650 }
h2 { font-size: 17px; line-height: 1.4; font-weight: 650 }
h3 { font-size: 15px; line-height: 1.4; font-weight: 650 }
code, time { font: .91em var(--mono) }
time { font-variant-numeric: tabular-nums }
svg { flex: none }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--clay); outline-offset: 3px }
h1:focus-visible { outline: none }
.sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap }

button, .button, input, select, textarea { font: inherit; color: inherit }
button, .button {
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--surface);
  font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .16s ease;
}
:is(button, .button):hover { background: var(--hover) }
button:disabled { opacity: .56; cursor: default }
.primary { color: #fff; background: var(--accent-strong); border-color: #488ee8; box-shadow: inset 0 1px #ffffff12, 0 2px 5px #0002 }
.primary:hover { background: #3674ce }
.icon-button { padding: 7px; min-width: 36px }
label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 600; min-width: 0 }
input, select, textarea {
  min-height: 38px; max-width: 100%; min-width: 0; width: 100%; padding: 7px 9px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line-dark); border-radius: 4px; font-weight: 400;
}
textarea { resize: vertical }
input:where([type="checkbox"],[type="radio"]) { accent-color: var(--clay-dark); width: auto; min-height: 0 }
input::placeholder { color: var(--muted) }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar-width);
  display: flex; flex-direction: column; overflow-y: auto; background: var(--deep); color: var(--ink);
}
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 20px }
.brand { display: inline-flex; gap: 11px; align-items: center; color: inherit; text-decoration: none }
.brand-logo { display: block; flex: none; width: 34px; height: 34px; object-fit: contain; border-radius: 4px }
.gap-venue { min-width: 140px; max-width: 340px; white-space: normal; overflow-wrap: anywhere }
.gap-venue strong { font-weight: 500 }
.gap-venue small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5 }
.brand b, .brand small { display: block }
.brand b { font: 650 16px/1.15 var(--mono); letter-spacing: .07em }
.brand small { font-size: 12px; letter-spacing: .03em; margin-top: 4px }
.sidebar .brand small { color: #8396af }
.side-nav { display: grid; gap: 20px; padding: 5px 14px 20px }
.nav-group { display: grid; gap: 4px }
.nav-group p { margin: 0 0 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: .09em; color: #8396af }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 8px 10px;
  color: #c2d0e2; text-decoration: none; border: 1px solid transparent; border-radius: 4px;
}
.side-nav a svg { color: #8c9fb8 }
.side-nav a:hover { background: #17263b }
.side-nav a[aria-current] { color: #eaf3ff; background: #1a2d49; border-color: #345272; font-weight: 650 }
.side-nav a[aria-current]::before { position: absolute; inset: 8px auto 8px -1px; content: ""; width: 2px; background: var(--accent) }
.side-nav a[aria-current] svg { color: #89c8ff }
.sidebar-foot {
  margin-top: auto; padding: 15px 19px; border-top: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #b5c4d7;
}
.sidebar :is(#signout, #close-nav) { background: transparent; border-color: #34475f; color: var(--ink); font-size: 12px }
.sidebar :is(#signout, #close-nav):hover { background: var(--hover) }
#open-nav, #close-nav, .nav-backdrop { display: none }

.top {
  position: sticky; top: 0; z-index: 10; min-height: 63px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px 18px; padding: 10px clamp(18px, 3vw, 43px); border-bottom: 1px solid var(--line); background: var(--paper);
}
.top-location, .top-actions { display: flex; align-items: center; gap: 10px; min-width: 0 }
.top > .top-location { flex: 1 1 310px; flex-wrap: wrap }
.top > .top-actions { flex: 0 0 auto; flex-wrap: nowrap; margin-left: auto }
.top-actions { flex-wrap: wrap }
.top button { flex: none; white-space: nowrap }
.top-location .login-brand { color: var(--ink) }
.signed-in .login-brand { display: none }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted) }
.breadcrumb strong { color: var(--ink); font-weight: 650 }
#updated { color: var(--muted); white-space: nowrap }
#refresh { flex: none }
.shell { width: 100%; max-width: 1410px; margin: auto; padding: 34px clamp(20px, 3vw, 44px) 60px }

.access { display: grid; grid-template-columns: 1fr 1fr; max-width: 780px; margin: clamp(18px, 8vh, 86px) auto; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--surface) }
.access-intro { min-height: 332px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; color: var(--ink); background: var(--deep) }
.access-intro > svg { width: 36px; height: 36px; color: var(--accent) }
.access-intro h1 { font-size: clamp(26px, 3.4vw, 36px) }
.access-intro p { color: #b5c4d7; margin-top: 12px; max-width: 24em }
.access-intro > span { color: #7d97b7; font: 10px var(--mono); letter-spacing: .13em }
.access-main { align-self: center; padding: 30px }
.access-main h2 { font-size: 22px }
#login { margin-top: 19px; display: grid; gap: 12px }
#login .primary { margin-top: 5px }
#login-message { margin-top: 12px }

.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 14px; margin: 0 0 23px }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 58ch }
.notice, .form-error, .upgrade-steps { padding: 9px 12px; border-left: 3px solid var(--sage); background: var(--sage-soft); color: var(--ink); overflow-wrap: anywhere }
.notice { margin-bottom: 13px }
.form-error, .notice.error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger) }
.subline { color: var(--muted); font-size: 13px }
.metrics, .health, .resources { display: grid; border: 1px solid var(--line); border-radius: 4px; background: var(--surface) }
.metrics { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 23px }
.metrics div { min-width: 0; padding: 14px 17px }
.metrics div + div { border-left: 1px solid var(--line) }
.metrics span, .health div > span:first-child, .resources span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px }
.metrics strong { font: 600 29px/1.2 var(--mono); font-variant-numeric: tabular-nums }
.good-text { color: var(--success) }

.overview-grid, .workspace { display: grid; gap: 18px; align-items: start }
.overview-grid { grid-template-columns: minmax(0,1fr) minmax(242px,.52fr) }
.overview-grid:not(:has(.platform:not([hidden]))) { grid-template-columns: minmax(0,1fr) }
.workspace { grid-template-columns: minmax(170px,214px) minmax(0,1fr) }
.station-main, .panel, .station-picker { min-width: 0 }
.panel, .station-picker { background: var(--surface); border: 1px solid var(--line); border-radius: 5px }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 11px; padding: 14px 16px; border-bottom: 1px solid var(--line) }
.section-head :is(span,a) { font-size: 12px; color: var(--muted) }
.section-head a { color: var(--clay-dark) }
.fleet-body .table-wrap { border: 0; border-radius: 0 }
.fleet-link { display: inline-grid; gap: 3px; min-width: 95px; color: var(--ink); font-weight: 650 }
.fleet-link code { color: var(--muted); font-weight: 400 }
.site-delete { min-height: 30px; padding: 3px 10px; border-color: #70404e; color: var(--danger); background: transparent; font-size: 12px; white-space: nowrap }
.site-delete:hover { border-color: #94452c; color: #fff; background: #94452c }
#fleet td:last-child, #fleet th:last-child { width: 64px; text-align: right }
.platform-list, .platform-jobs { padding: 3px 16px }
.platform-list > div, .platform-jobs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0 }
.platform-list > div:last-child, .platform-jobs > div:last-child { border-bottom: 0 }
.platform-jobs { border-top: 1px solid var(--line); padding-bottom: 5px; background: #111b29; color: var(--muted); font-size: 12px }
.platform-jobs strong { text-align: right; font-weight: 500; color: var(--ink) }

.station-picker > header { padding: 12px; border-bottom: 1px solid var(--line) }
.station-picker header > div { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; margin-bottom: 9px }
#station-list-count { font: 12px var(--mono); color: var(--muted) }
#station-search { min-height: 34px; font-size: 12px }
#sites { display: grid; gap: 4px; padding: 6px; overflow: auto; max-height: min(57vh,510px) }
.site { display: block; padding: 8px; border: 1px solid transparent; border-radius: 4px; color: var(--ink); text-decoration: none }
.site:hover { background: var(--hover) }
.site[aria-current] { background: var(--clay-soft); border-color: #4373a8 }
.site-name { display: block; overflow-wrap: anywhere }
.site-meta { display: flex; gap: 4px 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 4px }
.site-meta code { overflow-wrap: anywhere }
.station-head { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 13px; padding: 17px 18px 12px }
.station-identity { flex: 1 1 235px; min-width: 0 }
.station-identity > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px }
.station-head h2 { font-size: 22px; overflow-wrap: anywhere }
.station-head p { font-size: 12px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere }
.station-head .top-actions { gap: 6px }
.tabs { display: flex; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto }
.tabs button { border-radius: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); min-height: 43px; white-space: nowrap }
.tabs button:hover { background: var(--hover) }
.tabs button[aria-selected=true] { border-color: var(--clay-dark); color: var(--clay-dark) }
.tabs button:focus-visible { outline-offset: -3px }
.tabs span { font: 12px var(--mono) }
.search-tabs { max-width: 1130px; padding-inline: 0; margin: 0 0 16px; gap: 6px; flex-wrap: wrap }
.search-tabs a {
  display: flex; align-items: center; padding: 8px 14px; min-height: 43px; white-space: nowrap;
  color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent
}
.search-tabs a:hover { background: var(--hover) }
.search-tabs a[aria-current] { color: var(--clay-dark); border-color: var(--clay-dark); background: var(--hover) }
.search-tabs a:focus-visible { outline-offset: -3px }
.search-disclosure { margin-top: 18px; max-width: 1130px }
.search-disclosure > summary { padding: 13px 16px; cursor: pointer; font-weight: 650 }
.search-disclosure > summary:focus-visible { outline-offset: -3px }
.search-disclosure[open] > summary { border-bottom: 1px solid var(--line) }
.search-section-note { display: grid; gap: 8px; padding: 13px 16px }
.search-reuse-body { display: grid; gap: 12px }
.search-reuse-count { font-weight: 650 }
.search-reuse-rules { margin: 0; padding-inline-start: 22px }
.search-reuse-rules li + li { margin-top: 4px }
.search-reuse-policy { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line) }
.search-reuse-policy form { max-width: 340px }
.search-reuse-policy .config-actions { margin-top: 0 }
.search-example { max-width: 1130px; margin-top: 6px; color: var(--muted); font-size: 13px }
.search-example summary { width: fit-content; padding: 2px 0; color: var(--clay-dark); cursor: pointer }
.search-example p { margin-top: 4px; max-width: 72ch }
.search-section-note { padding-bottom: 0; color: var(--muted); font-size: 13px }
#search-history #record-library { margin-top: 0; border: 0; border-radius: 0 }
#search-history #record-library > header { background: transparent }
#calls-rows table[aria-label="搜索记录"] tbody tr { cursor: pointer }
#calls-rows .table-wrap { max-height: min(62vh, 640px); overflow: auto }
#calls-rows thead th { position: sticky; top: 0; z-index: 1 }
#search-channel-settings { gap: 8px; margin: 0 0 16px; padding: 0 }
#search-channel-settings a { display: flex; align-items: center; min-height: 43px; padding: 8px 18px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 4px }
#search-channel-settings a[aria-current] { color: #fff; background: var(--clay-dark); border-color: var(--clay-dark) }
.traffic-resources { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 18px }
.live-console-head { margin: 20px 0 10px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 0 }
.live-console-head > div { display: grid; gap: 4px }
.live-console-head h3 { margin: 0 }
.live-requests .table-wrap { max-height: 390px; overflow: auto; background: var(--deep); border-color: var(--line) }
.live-requests table { color: #d2dfee; font-family: var(--mono); font-size: 12px }
.live-requests th { position: sticky; top: 0; z-index: 1; background: #172436; color: #c0d0e5 }
.live-requests td { border-bottom-color: var(--line); white-space: normal; overflow-wrap: anywhere }
.live-requests tbody tr:hover { background: #172436 }
.live-requests .http-route { min-width: 170px }
.live-requests .http-summary { min-width: 220px; color: #acbed4 }
.weather-tabs { max-width: 1130px; padding-inline: 0 }
#weather-gaps-link { margin-inline-start: auto }
.weather-call-days summary { cursor: pointer; white-space: nowrap; color: var(--clay-dark) }
.weather-call-days ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 220px; overflow: auto }
.weather-call-days li + li { margin-top: 6px }
.view { padding: 16px 18px 20px; min-width: 0; animation: enter .17s ease-out }
@keyframes enter { from {opacity: .74; transform: translateY(3px)} }
.view h3 { margin-bottom: 10px }
.health, .resources { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 18px; overflow: hidden }
.resources { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 0 }
.health div, .resources div { padding: 8px 11px; background: #111c2c; box-shadow: 1px 0 var(--line), 0 1px var(--line) }
.resources strong { font: 600 15px var(--mono); overflow-wrap: anywhere }
.badge { display: inline-block; padding: 1px 6px; font-size: 11px; font-weight: 650; line-height: 1.55; white-space: nowrap; border-radius: 3px; background: var(--surface-raised); color: var(--muted) }
.badge.good { background: var(--success-soft); color: var(--success) }
.badge.warn { background: var(--warning-soft); color: var(--warning) }
.badge.bad { background: var(--danger-soft); color: var(--danger) }
.badge.info { background: #1a3043; color: #a6d5fa }
.empty { color: var(--muted); text-align: center; padding: 25px 12px; overflow-wrap: anywhere }
#queue { margin-bottom: 14px }
.queue-note { margin: 0 0 11px }

.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 10px; margin-bottom: 12px }
.filters label { flex: 1 1 123px }
.filter-actions { display: flex; flex-wrap: wrap; gap: 7px }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; font-variant-numeric: tabular-nums }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap }
th { color: var(--muted); background: #182537; font-weight: 650; font-size: 12px }
tbody tr:last-child td { border-bottom: 0 }
tbody tr:hover { background: #19283c }
td details summary, .window summary { color: var(--clay-dark); cursor: pointer }
.log-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px }
.log-switch button[aria-pressed=true] { color: var(--accent); background: var(--clay-soft); border-color: #4373a8 }
#logs .table-wrap { background: var(--deep); color: #d2dfee; border-color: var(--line) }
#logs :is(th, td) { border-bottom-color: var(--line) }
#logs th { background: #172436; color: #c0d0e5 }
#logs tbody tr:hover { background: #172436 }
.receipt pre {
  white-space: pre-wrap; min-width: 156px; max-width: 280px; margin: 7px 0 0; padding: 9px 11px;
  color: #d2dfee; background: var(--deep); border-radius: 4px; font: 12px/1.65 var(--mono)
}
.usage-head { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 12px }
.usage-head:has(label) { justify-content: flex-start }
.usage-head label { width: min(100%,220px) }
#usage-stats, .usage-history { margin-top: 14px }

.platform-list a { color: var(--ink); text-decoration: none }
.platform-list a:hover { color: var(--clay-dark); text-decoration: underline }
.config-layout, .asset-layout {
  display: grid; align-items: start; gap: 18px; max-width: 1130px;
  animation: enter .17s ease-out;
}
.config-layout { grid-template-columns: minmax(0,1.55fr) minmax(255px,1fr) }
.asset-layout { grid-template-columns: minmax(0,1.4fr) minmax(298px,1fr) }
.config-form { padding: 17px 16px 16px }
.map-tiles-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
#map-tiles-message { margin: 12px 0 0; font-size: 13px; line-height: 1.6 }
#map-tiles-message:empty { margin: 0 }
#map-tiles-status dd { overflow-wrap: anywhere }
.config-form input:not([type="checkbox"]), .config-form textarea { font: 13px/1.55 var(--mono) }
.config-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-top: 13px; margin-top: 4px; border-top: 1px solid var(--line);
}
.config-facts dl { margin: 0; padding: 6px 16px }
.config-facts dl > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 6px 12px; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.config-facts dl > div:last-child { border-bottom: 0 }
.config-facts dt { font-weight: 600 }
.config-facts dd { margin: 0 }
.config-facts .config-guide { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: #111b29 }
.config-guide dt { font-size: 12px }
.config-guide dd { margin: 4px 0 11px; color: var(--muted); font-size: 13px }
.config-guide dd:last-child { margin-bottom: 0 }
.asset-table .table-wrap { border: 0; border-radius: 0 }
.asset-label { display: grid; gap: 3px; font-weight: 600 }
.asset-label code { color: var(--muted); font-weight: 400 }
.asset-choose { min-height: 29px; padding: 3px 8px; font-size: 12px }
.asset-state { padding: 7px 9px; border-left: 2px solid var(--sage); background: var(--sage-soft); font-size: 12px }
.library-section { margin-top: 18px; max-width: 1130px }
.weather-settings + .service-panel { margin-top: 18px }
.library-section .section-head p { color: var(--muted); font-size: 13px; margin-top: 4px }
.library-body { padding: 14px 16px }
.library-filters { justify-content: start }
.library-filters label { flex: 0 1 190px }
.library-pages { display: flex; justify-content: end; gap: 8px; margin-top: 10px }
.library-dialog { width: min(830px, calc(100% - 26px)) }
.library-reference { overflow-wrap: anywhere }
.json-editor { font: 13px/1.6 var(--mono) }
.record-preview {
  max-height: 40vh; overflow: auto; margin: 0; padding: 12px;
  border-radius: 4px; background: var(--deep); color: #d2dfee;
  font: 12px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.search-call-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 16px;
  margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px
}
.search-call-meta dt { color: var(--muted); font-size: 12px }
.search-call-meta dd { margin: 3px 0 0; overflow-wrap: anywhere }
.search-call-meta .search-call-query { grid-column: 1 / -1 }
.search-call-results h3 { margin-bottom: 6px }
.search-call-results h4 { margin: 10px 0 4px; font-size: 13px }
.search-result-list { margin: 0; padding: 0 0 0 23px; overflow-wrap: anywhere }
.search-result-list li { padding: 8px 0; border-bottom: 1px solid var(--line) }
.search-result-list a, .search-result-url { overflow-wrap: anywhere; font-size: 12px }
.rail-section-title { padding-top: 12px; border-top: 1px solid var(--line) }
.service-panel { max-width: 1060px }
.service-panel h2 { margin-bottom: 14px }
.service-form { display: grid; gap: 12px }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px }
.checkbox { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 500 }
#rail-inventory, #rail-import, #rail-detail { margin-bottom: 17px }
#rail-detail, #rail-edit { border-top: 1px solid var(--line); padding-top: 12px }
#rail-detail summary { cursor: pointer; font-weight: 650 }
#rail-detail > * + * { margin-top: 10px }

dialog {
  width: min(520px, calc(100% - 26px)); max-height: calc(100% - 25px); padding: 0; overflow: auto;
  border: 1px solid var(--line-dark); border-radius: 6px; color: var(--ink); background: var(--surface); box-shadow: 0 18px 55px #00000040
}
dialog::backdrop { background: #030812b8 }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; background: #182537; border-bottom: 1px solid var(--line) }
.dialog-head button { min-height: 34px; padding: 2px 10px; font-size: 20px }
.dialog-form { display: grid; gap: 11px; padding: 15px 17px 17px }
.dialog-form p { color: var(--muted); font-size: 13px }
.target { display: grid; gap: 4px; padding: 8px 10px; background: var(--sage-soft); border-left: 3px solid var(--sage) }
.target span { color: var(--muted); font-size: 12px }
.upgrade-steps { margin: 0; padding-left: 29px; font-size: 13px }
.upgrade-steps li + li { margin-top: 4px }
.window-fields { display: grid; gap: 7px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 8px 0 }

@media (max-width: 1150px) {
  :root { --sidebar-width: 213px }
  .shell { padding-inline: 24px }
  .overview-grid { grid-template-columns: minmax(0,1fr) minmax(218px,.56fr) }
  .workspace { grid-template-columns: minmax(160px,185px) minmax(0,1fr) }
}
@media (max-width: 960px) {
  .overview-grid, .config-layout, .asset-layout { grid-template-columns: minmax(0,1fr) }
}
@media (max-width: 820px) {
  body.signed-in { padding-left: 0 }
  .sidebar { width: min(278px,calc(100% - 40px)); visibility: hidden; transform: translateX(-100%); transition: transform .18s ease, visibility .18s }
  .sidebar.drawer-open { visibility: visible; transform: none }
  #open-nav, #close-nav, .nav-backdrop { display: inline-flex }
  .nav-backdrop { position: fixed; inset: 0; z-index: 15; background: #030812b8; padding: 0; border: 0; border-radius: 0 }
  .nav-backdrop:hover { background: #030812b8 }
  body:has(.drawer-open) { overflow: hidden }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 13px }
  #sites { grid-template-columns: repeat(auto-fill,minmax(min(100%,160px),1fr)); max-height: 155px }
}
@media (max-width: 580px) {
  .top { min-height: 53px; padding-inline: 13px }
  .shell { padding: 22px 14px 36px }
  h1 { font-size: 28px }
  .breadcrumb > :not(strong), #updated { display: none }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .metrics div { padding: 10px 12px }
  .metrics div:nth-child(3) { border-left: 0 }
  .metrics div:nth-child(n+3) { border-top: 1px solid var(--line) }
  .access, .service-grid, .window-fields { grid-template-columns: minmax(0,1fr) }
  .access-intro { min-height: 0; padding: 22px; gap: 17px }
  .access-main { padding: 20px }
  .view, .station-head { padding-inline: 12px }
  .tabs { padding-inline: 6px }
  .search-tabs { padding-inline: 0; gap: 3px }
  .search-tabs a { padding-inline: 9px }
  .health { grid-template-columns: repeat(2,minmax(0,1fr)) }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}

.asset-open { display: inline-grid; justify-items: start; text-align:left; border:0; padding:2px 0; min-height:0; background:transparent; color:var(--clay-dark) }
.asset-open:hover { background:transparent; text-decoration:underline }
#rail-detail { padding:0; margin:auto }
#rail-detail .dialog-form { padding:14px 18px }
#map-outline { display:block; max-width:100%; height:auto; margin-top:8px; border:1px solid var(--line); border-radius:4px; background:#111c2b }
.venue-pages { display:flex; align-items:center; flex-wrap:wrap; gap:8px }
.venue-pages .subline { flex:1 }
#venue-batch > * + * { margin-top:8px }
.venue-table th:first-child { width:48px }
.venue-table input:not([type=checkbox]) { min-width:78px; min-height:30px; padding:3px 6px }
.venue-table input[type=text] { min-width:150px }
.call-summary { display:block; min-width:120px; max-width:44em; white-space:normal; overflow-wrap:anywhere }
#calls-rows .call-summary > code.subline { display:block; margin-top:3px; color:var(--muted) }

.guide-toggle { border-color: var(--sage); color: var(--success); background: var(--sage-soft) }
.guide-toggle[aria-expanded=true] { color: #fff; background: var(--deep); border-color: var(--deep) }
.guide-inline { min-height: 29px; padding: 3px 8px; font-size: 12px; color: var(--clay-dark); background: transparent }
.service-guide { max-width: 1280px; margin: 0 0 20px; overflow: hidden; scroll-margin-top: 78px }
.service-guide-head { padding: 22px 24px; border-bottom: 1px solid var(--line); background: #172438 }
.guide-eyebrow { color: var(--clay-dark); font: 600 10px/1.5 var(--mono); letter-spacing: .1em }
.service-guide-head h2 { margin-top: 6px; font-size: 23px; letter-spacing: -.02em }
.guide-lead { max-width: 82ch; margin-top: 10px; color: var(--muted) }
.guide-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 0; padding: 0; list-style: none }
.guide-tags li { padding: 3px 8px; border: 1px solid var(--line-dark); border-radius: 3px; color: #a6d5fa; background: var(--surface); font-size: 12px }
.service-guide-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,1.04fr); align-items: stretch }
.guide-topics { min-width: 0; padding: 3px 22px }
.guide-topic { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 78px }
.guide-topic:last-child { border-bottom: 0 }
.guide-topic h3 { margin-bottom: 8px; color: var(--clay-dark) }
.guide-topic p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere }
.guide-topic p + p { margin-top: 8px }
.guide-points { margin: 10px 0 0; padding-left: 19px; color: var(--muted); font-size: 13px }
.guide-points li + li { margin-top: 5px }
.guide-facts { margin: 12px 0 0; border-top: 1px solid var(--line) }
.guide-facts > div { display: grid; grid-template-columns: minmax(92px,.42fr) minmax(0,1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line) }
.guide-facts dt { font-size: 12px; font-weight: 650 }
.guide-facts dd { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere }
.guide-demo { min-width: 0; padding: 20px; border-left: 1px solid var(--line); color: var(--ink); background: var(--deep) }
.guide-demo > header h3 { margin-top: 5px; font-size: 19px }
.guide-demo > header .subline { margin-top: 6px; color: var(--muted) }
.guide-demo .guide-eyebrow { color: var(--accent) }
.guide-example-switch { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px }
.guide-example-switch:empty { display: none }
.guide-example-switch button { min-height: 32px; padding: 4px 9px; border-color: #34475f; color: #c2d0e2; background: var(--surface); font-size: 12px }
.guide-example-switch button:hover, .guide-step:hover { background: var(--hover) }
.guide-example-switch button[aria-pressed=true] { border-color: #4a7caf; color: var(--ink); background: var(--accent-soft) }
.guide-step-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(100px,1fr)); gap: 6px; margin: 16px 0 10px }
.guide-step { min-width: 0; min-height: 42px; padding: 6px 8px; border-color: #34475f; color: #b9cbdf; background: transparent; font-size: 12px; text-align: left }
.guide-step[aria-pressed=true] { border-color: #4a7caf; color: var(--ink); background: var(--accent-soft) }
.guide-step[aria-pressed=true]:hover { background: #25426a }
.guide-step-detail { min-width: 0; padding: 16px; border-radius: 4px; color: var(--ink); background: var(--surface) }
.guide-step-detail h4 { margin: 0; font-size: 16px }
.guide-step-detail > p { margin-top: 8px; color: var(--muted); font-size: 13px }
.guide-code { margin: 12px 0 0; padding: 11px 12px; overflow-x: auto; border-left: 3px solid var(--sage); border-radius: 2px; color: #bdcfe4; background: #0e1827; font: 12px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere }
.guide-step-detail .guide-facts { margin-bottom: -7px }

@media (max-width: 1180px) {
  .service-guide-layout { grid-template-columns: minmax(0,1fr) }
  .guide-demo { border-left: 0; border-top: 1px solid var(--line) }
}
@media (max-width: 580px) {
  .service-guide-head { padding: 18px 16px }
  .service-guide-head h2 { font-size: 20px }
  .guide-topics { padding-inline: 16px }
  .guide-demo { padding: 16px }
  .guide-step-list { display: flex; overflow-x: auto; padding-bottom: 4px }
  .guide-step { flex: 0 0 126px }
  .guide-facts > div { grid-template-columns: minmax(0,1fr); gap: 2px }
}

.map-usage { white-space: normal; max-width: 23em; color: var(--muted) }
.rail-figure { margin: 0; padding:8px; border:1px solid var(--line); border-radius:6px; background:var(--paper) }
#rail-diagram { display:block; width:100%; height:auto; border-radius:4px }
.rail-figure figcaption { padding:7px 5px 2px }

/* Weather database: a full-width record index with a two-pane collection workbench. */
.weather-database {
  --weather-ink: var(--ink);
  --weather-muted: var(--muted);
  --weather-line: var(--line);
  --weather-soft: #111b2a;
  --weather-mint: #172d42;
  --weather-mint-strong: #233f5c;
  max-width: 1480px;
  border-color: var(--line);
  border-radius: 5px;
  color: var(--weather-ink);
  background: var(--surface);
  box-shadow: 0 12px 36px #00000028;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.weather-database button, .weather-database input, .weather-database select { font: inherit; }
.weather-database .primary { border-color: #488ee8; color: #fff; background: var(--accent-strong); }
.weather-database .primary:hover { color: #fff; background: #3674ce; }
.weather-database button:focus-visible, .weather-database input:focus-visible, .weather-database select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.weather-database-head { align-items: center; min-height: 112px; padding: 25px 28px; border-bottom: 1px solid var(--weather-line); }
.weather-kicker { display: block; margin-bottom: 7px; color: #91aac7; font: 600 10px/1.5 var(--mono); letter-spacing: .13em; }
.weather-database-head h2 { font-size: 27px; font-weight: 650; letter-spacing: -.035em; }
.weather-database-head p { margin-top: 7px; color: var(--weather-muted); font-size: 13px; }
.weather-database-head .primary { min-width: 104px; }
.weather-filter-grid { display: grid; grid-template-columns: minmax(160px,1.4fr) repeat(2,minmax(135px,1fr)) minmax(135px,.9fr) auto; align-items: end; gap: 14px; padding: 20px 28px 22px; border-bottom: 1px solid var(--weather-line); background: var(--surface); }
.weather-filter-grid label { min-width: 0; color: var(--weather-muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.weather-filter-grid input, .weather-filter-grid select { width: 100%; min-height: 38px; margin-top: 7px; border-color: var(--line-dark); border-radius: 3px; color: var(--weather-ink); background: var(--surface); }
.weather-filter-actions { display: flex; flex: none; gap: 8px; min-width: max-content; }
.weather-filter-actions button { flex: none; min-width: 72px; min-height: 38px; padding-inline: 14px; border-radius: 3px; white-space: nowrap; }
.weather-city-combobox { position: relative; display: block; margin-top: 7px; }
#weather-filter-city-button { width: 100%; min-height: 38px; justify-content: space-between; border-color: var(--line-dark); border-radius: 3px; color: var(--weather-ink); background: var(--surface); font-weight: 400; text-align: left; }
#weather-filter-city-button::after { content: "⌄"; margin-left: 8px; color: var(--weather-muted); }
.weather-filter-city-menu { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; display: block; width: max(100%,280px); padding: 8px; border: 1px solid #425a78; border-radius: 4px; background: var(--surface); box-shadow: 0 12px 30px #00000066; }
#weather-filter-city-search { min-height: 35px; margin: 0 0 7px; font-size: 12px; }
.weather-filter-city-options { display: block; max-height: 238px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.weather-filter-city-option { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; width: 100%; min-height: 36px; padding: 7px 9px; border: 0; border-bottom: 1px solid var(--weather-line); border-radius: 2px; color: var(--weather-ink); background: var(--surface); font-size: 12px; font-weight: 400; text-align: left; white-space: nowrap; }
.weather-filter-city-option small { color: var(--weather-muted); font: 10px var(--mono); }
.weather-filter-city-option:hover, .weather-filter-city-option[aria-selected="true"] { color: #fff; background: #28558a; }
.weather-filter-city-option:hover small, .weather-filter-city-option[aria-selected="true"] small { color: #dbe9f8; }
.weather-record-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 10px 28px; border-bottom: 1px solid var(--weather-line); color: var(--weather-muted); background: var(--weather-soft); font-size: 11px; }
.weather-record-meta span + span::before { content: "·"; margin-right: 24px; color: #627a96; }
.weather-database > #weather-message { margin: 0; padding: 12px 28px 0; border: 0; color: var(--weather-muted); background: transparent; font-size: 12px; }
.weather-database > #weather-message.bad { color: var(--danger); }
.weather-record-table { padding: 10px 28px 0; }
.weather-record-table table { min-width: 920px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.weather-record-table th { padding: 11px 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #a9b9cd; background: var(--weather-soft); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-align: left; white-space: nowrap; }
.weather-record-table td { height: 53px; padding: 10px 13px; border-bottom: 1px solid var(--weather-line); font-size: 12px; white-space: nowrap; }
.weather-record-table tbody tr { transition: background-color .15s ease; }
.weather-record-table tbody tr:hover { background: #192b40; }
.weather-record-table td:first-child { color: var(--weather-ink); font-family: var(--mono); font-size: 11px; }
.weather-record-table td:nth-child(3), .weather-record-table td:nth-child(4), .weather-record-table td:nth-child(5) { font-family: var(--mono); }
.weather-record-actions { display: flex; align-items: center; gap: 5px; }
.weather-record-actions button { min-height: 27px; padding: 2px 9px; border-radius: 3px; font-size: 11px; }
.weather-record-actions .asset-choose { border-color: var(--line-dark); color: var(--weather-ink); background: var(--surface); }
.weather-record-actions .asset-choose:hover { color: #fff; background: var(--weather-ink); }
.weather-delete { border-color: transparent; color: var(--danger); background: transparent; }
.weather-delete:hover { border-color: #834b5d; background: var(--danger-soft); }
.weather-auto-source { color: #a5cdf4; background: var(--weather-mint); }
.weather-record-table .badge { border-radius: 3px; font-size: 10px; }
.weather-record-table .subline { margin-top: 4px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.weather-database > #weather-pages { padding: 14px 28px 0; }
.weather-table-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 19px 28px 23px; color: var(--weather-muted); font-size: 11px; }
.weather-table-tools label { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.weather-table-tools input { max-width: 265px; font-size: 11px; }
.weather-table-tools button { min-height: 30px; border-radius: 3px; font-size: 11px; }
.weather-backfill { padding: 28px; border-top: 1px solid var(--line); background: var(--weather-soft); }
.weather-backfill > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.weather-backfill h3 { color: var(--weather-ink); font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.weather-backfill header p { max-width: 72ch; margin-top: 7px; color: var(--weather-muted); font-size: 12px; }
.weather-backfill > header button { flex: 0 0 auto; border-radius: 3px; }
.weather-job-grid { display: grid; grid-template-columns: minmax(330px,390px) minmax(0,1fr); align-items: stretch; gap: 0; margin-top: 23px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.weather-city-picker { min-width: 0; margin: 0; padding: 20px; border: 0; border-right: 1px solid var(--line); background: var(--weather-mint); }
.weather-city-picker legend { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; color: var(--weather-ink); font-size: 13px; font-weight: 650; }
.weather-city-count { color: #a0b4cc; font-family: var(--mono); font-size: 10px; font-weight: 500; }
#weather-city-search { width: 100%; min-height: 37px; margin-top: 14px; padding: 7px 10px; border: 1px solid #435b78; border-radius: 3px; color: var(--weather-ink); background: var(--surface); font-size: 12px; }
.weather-city-bulk { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.weather-city-bulk button { min-height: 27px; padding: 3px 7px; border-color: #3c5572; border-radius: 3px; color: #b6cae3; background: #152b42; font-size: 10px; }
.weather-city-bulk button:hover { color: #fff; background: #2e5e94; }
.weather-city-bulk button:disabled { color: #7287a1; background: transparent; }
.weather-city-options { height: 248px; margin-top: 12px; overflow-y: auto; overscroll-behavior: contain; border-block: 1px solid #3b5470; scrollbar-width: thin; scrollbar-color: #58759a transparent; }
.weather-city-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 3px; border-bottom: 1px solid #28415a; cursor: pointer; }
.weather-city-option:last-child { border-bottom: 0; }
.weather-city-option:hover { background: #1b3652; }
.weather-city-option:has(input:checked) { background: #233f5c; }
.weather-city-option input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: var(--accent-strong); }
.weather-city-option span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; flex: 1; }
.weather-city-option strong { color: #d7e6f6; font-size: 12px; font-weight: 600; }
.weather-city-option small { overflow: hidden; color: #9bb3cc; font-family: var(--mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.weather-city-selected { min-height: 33px; margin-top: 10px; color: #91abc6; font-size: 10px; line-height: 1.65; }
.weather-job-settings { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; }
.weather-job-settings-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--weather-line); }
.weather-job-settings-head strong { font-size: 13px; }
.weather-job-settings-head span { color: var(--weather-muted); font-size: 10px; }
.weather-job-settings > label, .weather-date-fields label { color: var(--weather-muted); font-size: 11px; font-weight: 600; }
.weather-job-settings input:not([type=checkbox]) { width: 100%; min-height: 38px; margin-top: 7px; border-color: var(--line-dark); border-radius: 3px; color: var(--weather-ink); background: var(--surface); }
.weather-date-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0 17px; }
.weather-refresh-option { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 18px; color: #c1d1e4 !important; font-weight: 500 !important; line-height: 1.5; }
.weather-refresh-option input { margin: 2px 0 0; accent-color: var(--accent-strong); }
.weather-refresh-option small { flex-basis: 100%; padding-left: 23px; color: var(--weather-muted); font-size: 10px; font-weight: 400; }
.weather-job-submit { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 23px; }
.weather-job-submit p { max-width: 40ch; color: var(--weather-muted); font-size: 10px; line-height: 1.7; }
.weather-job-submit button { flex: 0 0 auto; min-height: 38px; padding-inline: 17px; border-radius: 3px; }
.weather-backfill > #weather-job-message { margin-top: 15px; border: 0; padding: 0; background: transparent; font-size: 11px; }
#weather-job-rows { margin-top: 19px; }
#weather-job-rows table { min-width: 680px; background: var(--surface); }
#weather-job-rows th { padding: 10px 12px; color: var(--weather-muted); background: #172638; font-size: 10px; }
#weather-job-rows td { padding: 10px 12px; border-bottom-color: var(--weather-line); font-size: 11px; }
.weather-region-manager { margin-top: 20px; border-top: 1px solid var(--line); }
.weather-region-manager > summary { padding-top: 16px; color: var(--weather-muted); font-size: 11px; }
.weather-region-manager > form { padding: 18px 0 0; }
#weather-region-rows { max-height: 480px; margin-top: 14px; overflow: auto; background: var(--surface); }
@media (max-width: 1280px) {
  .weather-filter-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .weather-filter-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 2px; }
}
@media (max-width: 1100px) {
  .weather-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .weather-filter-actions { align-self: end; }
  .weather-job-grid { grid-template-columns: minmax(290px,340px) minmax(0,1fr); }
  .weather-job-settings-head, .weather-job-submit { align-items: flex-start; flex-direction: column; }
  .weather-job-submit { gap: 12px; }
}
@media (max-width: 780px) {
  .weather-job-grid { grid-template-columns: minmax(0,1fr); }
  .weather-city-picker { border-right: 0; border-bottom: 1px solid var(--line); }
  .weather-city-options { height: 220px; }
}
@media (max-width: 620px) {
  .weather-database-head, .weather-backfill > header { align-items: flex-start; flex-direction: column; }
  .weather-database-head, .weather-filter-grid, .weather-backfill { padding-inline: 17px; }
  .weather-filter-grid { grid-template-columns: minmax(0,1fr); }
  .weather-filter-actions { justify-content: flex-start; }
  .weather-record-meta, .weather-record-table, .weather-table-tools { padding-inline: 17px; }
  .weather-record-meta span + span::before { margin-right: 10px; }
  .weather-database > #weather-message { padding-inline: 17px; }
  .weather-table-tools { justify-content: flex-start; }
  .weather-table-tools label { width: 100%; align-items: flex-start; flex-direction: column; }
  .weather-date-fields { grid-template-columns: minmax(0,1fr); }
  .weather-job-settings, .weather-city-picker { padding: 17px; }
  .weather-city-option span { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* Graphite workspace: native controls, cool accents and quiet surface depth. */
html { scrollbar-gutter: stable; scrollbar-color: #3f5572 transparent; scrollbar-width: thin }
body { -webkit-font-smoothing: antialiased }
button, .button { border-radius: 7px; font-weight: 550; transition: background-color .14s, border-color .14s, color .14s, box-shadow .14s }
button:not(:disabled):active, .button:active { transform: translateY(1px) }
button:not(:disabled):hover, .button:hover { border-color: #56708f }
button:disabled { opacity: .45 }
.primary:not(:disabled):hover { border-color: #70aaff; box-shadow: inset 0 1px #ffffff1a, 0 2px 7px #0003 }
input, select, textarea { border-radius: 7px; box-shadow: inset 0 1px 2px #0002; transition: border-color .14s, box-shadow .14s }
input:focus, select:focus, textarea:focus { border-color: #6aa9f4; box-shadow: 0 0 0 3px #4d91ed1f; outline: none }
input:where([type=checkbox],[type=radio]) { box-shadow: none }
input::placeholder { color: #7f93ad; opacity: 1 }
label { font-weight: 500 }
input[type=file] { padding: 6px; font-size: 12px }
input::file-selector-button { padding: 5px 10px; margin-right: 10px; border: 1px solid var(--line-dark); border-radius: 5px; color: var(--ink); background: var(--surface-raised); cursor: pointer }
select option { color: var(--ink); background: var(--white) }
.sidebar { border-right: 1px solid #2b3a50; background: linear-gradient(180deg,#121d2e,#0e1725); box-shadow: 5px 0 24px #0000001c }
.sidebar-head { min-height: 96px; padding: 23px 20px 25px }
.brand { gap: 10px }
.brand-logo { border-radius: 8px; box-shadow: 0 0 0 1px #7287a32e, 0 3px 9px #0003 }
.brand b { font-size: 17px; letter-spacing: .025em; font-weight: 650 }
.brand small { margin-top: 4px; font-size: 11px; letter-spacing: .015em }
.side-nav { gap: 21px; padding-inline: 12px }
.nav-group p { font-size: 10px; letter-spacing: .055em; color: #8d9db4 }
.side-nav a { gap: 10px; min-height: 40px; padding-inline: 12px; border-radius: 7px; color: #b6c5d8; font-size: 13px; transition: background-color .14s, color .14s, border-color .14s }
.side-nav a svg { width: 17px; height: 17px; color: #8b9eb7 }
.side-nav a:hover { color: #edf5ff; background: #1a293f }
.side-nav a[aria-current] { color: #e6f1ff; background: #1b3150; border-color: #34557d; box-shadow: inset 0 1px #91beff08; font-weight: 600 }
.side-nav a[aria-current]::before { inset: 11px auto 11px -1px; border-radius: 2px; background: #76baff }
.side-nav a[aria-current] svg { color: #8cc7ff }
.sidebar-foot { min-height: 70px; margin-inline: 14px; padding: 14px 4px; border-top-color: #29374b; color: #99abc2 }
.sidebar :is(#signout,#close-nav) { min-height: 31px; border-radius: 6px; color: #b8c9de; border-color: #344862; background: #162338 }
.top { min-height: 65px; background: #101927ed; border-bottom-color: #29384e; box-shadow: 0 1px #0002; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px) }
.breadcrumb { gap: 11px; font-size: 12px; color: #90a4be }
.breadcrumb > span[aria-hidden] { color: #536b89 }
.breadcrumb strong { color: #d5e5f8; font-weight: 550 }
.top button { min-height: 33px; border-color: #354b67; background: #19283d; font-size: 12px }
.top button:hover { background: #243a58 }
#updated { color: #92a7c2; font-size: 11px }
.shell { max-width: 1500px; padding-top: 34px }
.page-head { margin-bottom: 22px; align-items: center }
.page-head p { margin-top: 7px; color: #9aaec7; font-size: 13px; line-height: 1.75 }
.page-head > div:first-child { min-width: 0 }
.page-head h1 { color: #e8eff9 }
.panel, .station-picker { border-color: #29394e; border-radius: 11px; box-shadow: 0 5px 18px #00000012, inset 0 1px #ffffff03 }
.section-head { min-height: 53px; padding: 15px 19px; align-items: center; background: #18243880; border-radius: 10px 10px 0 0 }
.section-head h2 { color: #dce9f8; font-size: 14px; font-weight: 600 }
.section-head h3 { font-size: 13px }
.section-head :is(span,a) { font-size: 11px }
.section-head a { color: var(--accent) }
.config-layout, .asset-layout { max-width: none; gap: 19px }
.config-form { padding: 20px }
.config-form input:not([type=checkbox]), .config-form textarea { font-size: 12px }
.config-actions { padding-top: 17px; margin-top: 5px; gap: 9px }
.config-facts dl { padding-inline: 19px; font-size: 12px }
.config-facts dl > div { padding-block: 12px }
.config-facts dt { font-weight: 500; color: #9fb2ca }
.config-facts dd { color: #d4e3f5 }
.config-facts .config-guide { padding: 17px 19px; border-radius: 0 0 10px 10px; background: #111c2c }
.config-guide dt { color: #b8cce5; font-weight: 550 }
.config-guide dd { color: var(--muted); font-size: 12px; line-height: 1.8 }
.subline, .asset-state { line-height: 1.75 }
.asset-state { border-radius: 0 6px 6px 0 }
.metrics, .health, .resources { border-radius: 10px; overflow: hidden; background: #142134; border-color: #2b415e }
.metrics { margin-bottom: 23px; box-shadow: 0 5px 20px #00000012 }
.metrics div { padding: 18px 20px }
.metrics strong { color: #d9e9ff; font-weight: 550; font-size: 29px; letter-spacing: -.04em }
.metrics strong.good-text { color: var(--success) }
.metrics span { color: #9fb4ce; font-size: 12px }
.health div, .resources div { padding: 12px 14px; background: #132033 }
.badge { padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 550; letter-spacing: .015em }
.badge.info { background: #1b344b; color: #9ecfff }
.notice, .form-error { border-radius: 0 7px 7px 0; font-size: 12px }
.table-wrap { border-radius: 8px; border-color: #2c3d53; background: #121e2e }
table { font-size: 12px }
th, td { padding: 12px 13px; border-bottom-color: #25364c }
th { color: #aebfd5; background: #1a2a40; font-size: 11px; font-weight: 550; letter-spacing: .015em }
td { color: #cbd9eb }
tbody tr { transition: background-color .12s }
tbody tr:hover { background: #1b2e48 }
tbody tr:last-child td { border-bottom: 0 }
code, time { letter-spacing: -.015em }
td code, td time { color: #a9c1df }
#calls-rows .call-summary { color: #d4e2f4; line-height: 1.7 }
#calls-rows .call-summary > code.subline { color: #90a8c6; font-size: 10px }
.library-section, .search-tabs, .weather-tabs, .search-disclosure, .search-example { max-width: none }
.library-body { padding: 17px 19px }
.filters { gap: 12px; margin-bottom: 16px }
.filters label { font-size: 11px }
.filters input, .filters select { min-height: 35px; font-size: 12px }
.tabs { gap: 8px }
.tabs button { font-size: 12px; font-weight: 500 }
.tabs button[aria-selected=true] { color: #c7e2ff; border-color: #72b6ff }
.search-tabs { gap: 7px; margin-bottom: 20px; border-bottom-color: #2d4059 }
.search-tabs a { min-height: 41px; padding: 8px 13px 10px; border-radius: 7px 7px 0 0; font-size: 12px; font-weight: 500 }
.search-tabs a[aria-current] { color: #bedcff; border-color: #73b5ff; background: #19304c }
.search-tabs a:hover { color: #d5eaff; background: #162b43 }
#search-channel-settings { gap: 7px }
#search-channel-settings a { min-height: 35px; padding: 6px 15px; border-radius: 7px; font-size: 12px; background: #131f30 }
#search-channel-settings a[aria-current] { color: #e4f0ff; border-color: #4775aa; background: #23456e }
.site { border-radius: 7px; font-size: 12px }
.site[aria-current] { background: #1d3555; border-color: #41658e }
.station-picker > header { background: #18263b80; border-radius: 10px 10px 0 0 }
.station-head { padding: 20px; background: #142237; border-radius: 10px 10px 0 0 }
.platform-jobs { padding-block: 9px; border-radius: 0 0 10px 10px }
.platform-list > div { padding-block: 12px }
#resource-usage { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); color: #97abc5; font-size: 11px; line-height: 1.8 }
.live-requests th, #logs th { background: #1c2b40 }
.live-requests tbody tr:hover, #logs tbody tr:hover { background: #1c3049 }
.site-delete { color: var(--danger); border-color: #754353; border-radius: 6px }
.site-delete:hover { color: #ffe5eb; background: #59303d; border-color: #a25b72 }
.guide-toggle { color: #adcfff; background: #1b304a; border-color: #3b5b83; font-size: 12px }
.guide-toggle:hover { background: #25446c; color: #e5f2ff }
.service-guide-head { background: #18273c }
.guide-demo { background: #0e1929 }
.guide-tags li { border-radius: 5px; background: #192f47 }
.record-preview, .receipt pre, .guide-code { border: 1px solid #2a405d; border-radius: 7px; background: #0b1523 }
#map-outline, .rail-figure { background: #0e1929; border-color: #304760; border-radius: 8px }
.asset-open { color: #b7d6fc }
.asset-open:hover { color: #e3f0ff }
dialog { border-color: #465c7b; border-radius: 14px; box-shadow: 0 28px 90px #0009, 0 0 0 1px #0003; animation: ops-dialog .18s ease-out }
dialog::backdrop { background: #040a15b8 }
.dialog-head { min-height: 56px; padding: 12px 19px; background: #1b2b42; border-bottom-color: #344962 }
.dialog-head h2 { font-size: 15px; font-weight: 600 }
.dialog-head button { width: 29px; min-height: 29px; padding: 0; color: #b3c6e1; background: #21334b; border-color: #3e5573; border-radius: 7px }
.dialog-form { padding: 21px; gap: 15px }
.target { border-radius: 0 7px 7px 0 }
.access { max-width: 850px; margin-top: clamp(25px,9vh,100px); border-radius: 16px; border-color: #354c6c; background: #141f30; box-shadow: 0 24px 70px #0005; animation: ops-reveal .25s ease-out }
.access-intro { min-height: 410px; padding: 38px; background: linear-gradient(145deg,#203b5e,#132137 75%); border-right: 1px solid #354c6c }
.access-logo { width: 60px; height: 60px; border-radius: 13px; object-fit: contain; box-shadow: 0 7px 22px #0005, 0 0 0 1px #688ab74a }
.access-intro h1 { max-width: 9em; font-size: 29px; letter-spacing: -.035em }
.access-intro p { max-width: 23em; font-size: 13px; color: #afc6e2; line-height: 1.9 }
.access-intro > span { color: #87a4c8; letter-spacing: .09em; font-size: 10px }
.access-main { padding: 37px }
.access-main h2 { color: #e3edfa; font-size: 22px; font-weight: 600 }
.local-console-file body > :not(.local-console-entry) {display:none!important}
.local-console-entry {min-height:100vh;display:grid;align-content:center;padding:28px}
.local-console-entry[hidden] {display:none}
.local-console-entry .access {width:min(850px,100%);margin:0 auto}
.local-entry-label {display:block;color:var(--accent);font:11px var(--mono);letter-spacing:.08em;margin-bottom:12px}
.local-console-entry .access-main > p {color:var(--muted);font-size:13px;line-height:1.9;margin:14px 0 22px}
#local-console-form {display:grid;gap:10px}
#local-console-form small {color:var(--muted);font-size:12px;line-height:1.8;margin-bottom:10px}
#local-console-form input {min-width:0;width:100%}
@media (max-width:700px) {.local-console-entry {padding:16px}}
#login { gap: 17px; margin-top: 25px }
#login input { min-height: 41px; font-size: 14px }
#login .primary { min-height: 41px; margin-top: 10px }
.weather-database { border-radius: 11px; border-color: #2c4059; box-shadow: 0 6px 24px #0002 }
.weather-database-head { background: #17263b; border-radius: 10px 10px 0 0 }
.weather-database-head > div:first-child { flex: 1 1 360px }
.weather-database-head h2 { margin-top: 3px; font-size: 20px; font-weight: 600 }
.weather-database h2 { color: #e0ecfc }
.weather-filter-grid input, .weather-filter-grid select, .weather-job-settings input:not([type=checkbox]), #weather-filter-city-button, #weather-city-search { border-radius: 7px; color: var(--ink); background: #0f1a2b; border-color: #3e5776 }
.weather-filter-city-menu { border-radius: 8px; background: #18283e; box-shadow: 0 12px 32px #0006; border-color: #496787 }
.weather-filter-city-menu input { color: var(--ink); background: #101d30 }
.weather-filter-city-option { border-radius: 5px; color: #c3d6ee }
.weather-record-meta { color: #97adca; background: #101e30 }
.weather-record-table table, #weather-job-rows table, #weather-region-rows { background: #142235 }
.weather-record-table th, #weather-job-rows th { color: #b1c6e0; background: #1c304b }
.weather-record-table td { color: #cadcf0 }
.weather-record-table tbody tr:hover { background: #1d3551 }
.weather-record-actions .asset-choose { color: #cce0f9; background: #1c304b; border-color: #3b587b; border-radius: 6px }
.weather-record-actions .asset-choose:hover { color: #f0f6ff; background: #2c4a70; border-color: #7095c1 }
.weather-backfill { background: #101c2d; border-top-color: #304a6b }
.weather-job-grid { border-radius: 10px; border-color: #385476; background: #142338 }
.weather-city-picker { background: #172e47; border-color: #385476 }
.weather-city-picker legend { color: #d0e5ff }
.weather-city-options { background: #102135; border-radius: 7px; border-color: #345477; scrollbar-color: #496e99 #102135 }
.weather-city-option { border-color: #263e5b }
.weather-city-option strong { color: #d6e7fc }
.weather-city-option:hover { background: #1d3c5c }
.weather-city-option:has(input:checked) { background: #244a71 }
.weather-city-bulk button { border-radius: 5px; color: #bad6f8; background: #1d3b5b; border-color: #466a94 }
.weather-job-submit button { border-radius: 7px }
.weather-table-tools { border-color: #314661 }
@keyframes ops-reveal { from { opacity: 0; transform: translateY(5px) } to { opacity: 1; transform: none } }
@keyframes ops-dialog { from { opacity: 0; transform: translateY(5px) scale(.99) } to { opacity: 1; transform: none } }
@media (max-width: 1150px) { :root { --sidebar-width: 213px } }
@media (max-width: 820px) {
  .sidebar { width: min(278px,calc(100% - 40px)); box-shadow: 8px 0 35px #0006 }
  .shell { padding-top: 25px }
}
@media (max-width: 580px) {
  .top { min-height: 58px; gap: 8px; padding-inline: 13px }
  .top > .top-location { flex: 1 1 150px }
  .top > .top-actions { gap: 6px }
  .shell { padding: 23px 14px 36px }
  .page-head { margin-bottom: 17px }
  .page-head h1 { font-size: 26px }
  .config-form, .library-body { padding: 16px }
  .section-head { padding-inline: 16px }
  .metrics div { padding: 13px 15px }
  .metrics strong { font-size: 25px }
  .access { margin-top: 22px }
  .access-intro { min-height: 0; padding: 27px; gap: 24px; border-right: 0; border-bottom: 1px solid #354c6c }
  .access-intro h1 { font-size: 25px }
  .access-intro p { max-width: none }
  .access-main { padding: 26px }
  .access-main h2 { font-size: 20px }
  .dialog-form { padding: 17px }
  .weather-database-head { border-radius: 10px 10px 0 0 }
  .weather-database-head > div:first-child { flex: auto }
}
@media (prefers-reduced-transparency: reduce) { .top { background: #101927; backdrop-filter: none; -webkit-backdrop-filter: none } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}

/* 登录成功过场：线路完成一次汇聚，字标分层显现，再以光线擦除进入控制台。 */
.login-intro-active { overflow: hidden }
.login-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f5f5f2;
  background: #060810;
  isolation: isolate;
}
.login-intro.is-leaving { pointer-events: none }
.login-intro-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background-image: linear-gradient(#83d8bb08 1px,transparent 1px),linear-gradient(90deg,#83d8bb08 1px,transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 58% 48% at 50% 50%,#000,transparent);
  animation: login-field 1.25s cubic-bezier(.2,.7,.2,1) both;
}
.login-intro-field::before,
.login-intro-field::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36vw;
  height: 1px;
  background: linear-gradient(90deg,transparent,#5dda8852);
  transform-origin: right;
  animation: login-horizon .7s .06s cubic-bezier(.16,1,.3,1) both;
}
.login-intro-field::before { left: 0 }
.login-intro-field::after { right: 0; transform-origin: left; background: linear-gradient(90deg,#5dda8852,transparent) }
.login-intro-field > i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74vw,920px);
  height: min(74vw,920px);
  border: 1px solid #5dda880c;
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.login-intro-field > i:nth-child(2) { width: min(52vw,640px); height: min(52vw,640px) }
.login-intro-field > i:nth-child(3) { width: min(30vw,360px); height: min(30vw,360px); border-color: #5dda8814 }
.login-intro-code,
.login-intro-session {
  position: absolute;
  top: max(30px,env(safe-area-inset-top));
  color: #ffffff59;
  font: 9px var(--mono);
  letter-spacing: .18em;
  animation: login-caption .38s .06s ease-out both;
}
.login-intro-code { left: max(34px,env(safe-area-inset-left)) }
.login-intro-session { right: max(34px,env(safe-area-inset-right)); animation-delay: .12s }
.login-intro-code b,
.login-intro-session b { color: #5dda88; font-weight: 400 }
.login-intro-sequence {
  position: relative;
  display: grid;
  place-items: center;
  width: min(720px,calc(100vw - 40px));
  height: 220px;
}
.login-intro-axis {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,transparent,#5dda8833 18%,#5dda8859 50%,#5dda8833 82%,transparent);
  transform-origin: center;
  animation: login-axis .62s .08s cubic-bezier(.16,1,.3,1) both;
}
.login-intro-aperture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.login-intro-aperture path { stroke: #5dda88; stroke-width: 1; vector-effect: non-scaling-stroke }
.aperture-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .48;
  animation: login-draw .75s .1s cubic-bezier(.65,0,.35,1) forwards;
}
.aperture-ticks {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .75;
  animation: login-draw .28s .56s ease-out forwards;
}
.login-intro-packet {
  position: absolute;
  top: calc(50% - 1px);
  width: 64px;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg,transparent,#b8ffd1);
  box-shadow: 0 0 12px #5dda884d;
  animation: login-packet-left .7s .12s cubic-bezier(.3,.7,.2,1) both;
}
.packet-left { left: 0 }
.packet-right { right: 0; transform: scaleX(-1); animation-name: login-packet-right }
.login-intro-mark {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  align-items: center;
  gap: 0 22px;
  width: min(400px,calc(100vw - 72px));
  padding: 22px 20px 0;
  text-align: left;
  background: #060810;
  transition: opacity .2s ease,transform .24s cubic-bezier(.4,0,1,1);
}
.login-intro.is-leaving .login-intro-mark { opacity: 0; transform: translateY(-5px) }
.login-intro-emblem {
  position: relative;
  width: 48px;
  height: 48px;
  animation: login-emblem .5s .2s cubic-bezier(.16,1,.3,1) both;
}
.login-intro-emblem::before,
.login-intro-emblem::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: #5dda88;
  opacity: .8;
}
.login-intro-emblem::before { top: -5px; left: -5px; border-top: 1px solid; border-left: 1px solid }
.login-intro-emblem::after { right: -5px; bottom: -5px; border-right: 1px solid; border-bottom: 1px solid }
.login-intro-emblem img { display: block; width: 48px; height: 48px; border-radius: 2px }
.login-intro-emblem > i {
  position: absolute;
  inset: -5px;
  border: 1px solid #5dda8833;
  transform-origin: left bottom;
  animation: login-frame .4s .5s cubic-bezier(.16,1,.3,1) both;
}
.login-intro-wordmark { min-width: 0 }
.login-intro-mark h2 {
  margin: 0;
  color: #f5f5f2;
  font-size: clamp(31px,4vw,40px);
  animation: login-wordmark .6s .27s cubic-bezier(.16,1,.3,1) both;
}
.login-intro-mark p {
  margin: 10px 0 0;
  color: #ffffff70;
  font: 8px/1.4 var(--mono);
  letter-spacing: .24em;
  animation: login-caption .4s .47s cubic-bezier(.2,.7,.2,1) both;
}
.login-intro-track {
  position: relative;
  grid-column: 1 / -1;
  height: 1px;
  margin-top: 27px;
  overflow: hidden;
  background: #ffffff14;
  animation: login-caption .3s .5s ease-out both;
}
.login-intro-track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#5dda88,#b8ffd1 70%,#5dda88);
  box-shadow: 0 0 10px #5dda8840;
  transform-origin: left;
  animation: login-track .62s .5s cubic-bezier(.65,0,.35,1) both;
}
.login-intro-status {
  position: absolute;
  left: max(34px,env(safe-area-inset-left));
  bottom: max(32px,env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 18px;
  color: #ffffff59;
  font: 9px var(--mono);
  letter-spacing: .12em;
  animation: login-caption .35s .9s ease-out both;
}
.login-intro-status > span { display: flex; align-items: center; gap: 8px; color: #a4d9b8; font-family: inherit }
.login-intro-status i { width: 4px; height: 4px; background: #5dda88; box-shadow: 0 0 8px #5dda8873 }
.login-intro-status b { font-weight: 400 }
.login-intro-wipe {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  opacity: 0;
  background: #5dda88;
  box-shadow: 0 0 22px #5dda8833;
  transform: scaleX(.1);
  pointer-events: none;
}
.login-intro.is-leaving .login-intro-wipe { animation: login-wipe .26s cubic-bezier(.65,0,.35,1) both }
.login-intro.is-leaving .login-intro-code,
.login-intro.is-leaving .login-intro-session,
.login-intro.is-leaving .login-intro-status,
.login-intro.is-leaving .login-intro-skip,
.login-intro.is-leaving .login-intro-aperture,
.login-intro.is-leaving .login-intro-packet { opacity: 0; transition: opacity .12s ease }
.login-intro-skip {
  position: absolute;
  right: max(28px,env(safe-area-inset-right));
  bottom: max(24px,env(safe-area-inset-bottom));
  min-height: 36px;
  padding: 6px 0 6px 12px;
  gap: 10px;
  border: 0;
  color: #ffffff66;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 400;
}
.login-intro-skip:hover { color: #f5f5f2; background: transparent }
.login-intro-skip kbd {
  padding: 2px 5px;
  border: 1px solid #ffffff24;
  border-radius: 2px;
  color: #ffffff73;
  font: 9px var(--mono);
}
@keyframes login-field {
  0% { opacity: 0; transform: scale(1.035) }
  35%,80% { opacity: 1 }
  100% { opacity: .55; transform: none }
}
@keyframes login-horizon { from { opacity: 0; transform: scaleX(0) } to { opacity: 1; transform: scaleX(1) } }
@keyframes login-axis { from { opacity: 0; transform: scaleX(.06) } to { opacity: 1; transform: scaleX(1) } }
@keyframes login-draw { to { stroke-dashoffset: 0 } }
@keyframes login-packet-left {
  0% { opacity: 0; transform: translateX(0) }
  15% { opacity: .9 }
  80% { opacity: .9 }
  100% { opacity: 0; transform: translateX(min(34vw,250px)) }
}
@keyframes login-packet-right {
  0% { opacity: 0; transform: scaleX(-1) translateX(0) }
  15% { opacity: .9 }
  80% { opacity: .9 }
  100% { opacity: 0; transform: scaleX(-1) translateX(min(34vw,250px)) }
}
@keyframes login-emblem {
  from { opacity: 0; transform: translateY(9px) scale(.94) }
  to { opacity: 1; transform: none }
}
@keyframes login-frame { from { opacity: 0; transform: scale(.75) } to { opacity: 1; transform: none } }
@keyframes login-wordmark {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-8px) }
  to { opacity: 1; clip-path: inset(-10% -10% -10% -10%); transform: none }
}
@keyframes login-caption { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes login-track { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes login-wipe {
  0% { opacity: 0; transform: scaleX(.1) scaleY(1) }
  35% { opacity: .8; transform: scaleX(1) scaleY(1) }
  100% { opacity: 0; transform: scaleX(1) scaleY(120); }
}
@media (max-width: 700px) {
  .login-intro-session { display: none }
  .login-intro-sequence { width: calc(100vw - 24px) }
  .login-intro-status { left: max(22px,env(safe-area-inset-left)); bottom: max(25px,env(safe-area-inset-bottom)) }
  .login-intro-status b { display: none }
}
@media (max-width: 580px) {
  .login-intro-code { top: max(25px,env(safe-area-inset-top)); left: max(22px,env(safe-area-inset-left)) }
  .login-intro-mark { width: calc(100vw - 54px); gap: 0 20px; padding-inline: 10px }
  .login-intro-mark h2 { font-size: clamp(27px,8.8vw,34px); letter-spacing: .12em }
  .login-intro-mark p { font-size: 7px; letter-spacing: .18em }
  .login-intro-emblem,.login-intro-emblem img { width: 42px; height: 42px }
  .login-intro-mark { grid-template-columns: 42px minmax(0,1fr) }
  .login-intro-skip { right: 20px; bottom: max(18px,env(safe-area-inset-bottom)) }
  .login-intro-field { background-size: 48px 48px }
}
@media (prefers-reduced-motion: reduce) {
  .login-intro, .login-intro * { animation: none !important; transition: none !important }
}

/* 登录接入页：品牌视觉与表单分离，不影响本地文件入口。 */
body:not(.signed-in) { background: #060810; color: #f5f5f2 }
body:not(.signed-in) .top {
  min-height: 73px;
  padding: 14px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid #ffffff14;
  background: #060810;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:not(.signed-in) .login-brand .brand-logo { width: 30px; height: 30px; border-radius: 3px }
body:not(.signed-in) .login-brand b { color: #f5f5f2 }
body:not(.signed-in) .login-brand small { color: #ffffff73 }
body:not(.signed-in) #content.shell {
  display: grid;
  align-items: center;
  max-width: 1240px;
  min-height: calc(100svh - 73px);
  padding: 42px clamp(28px, 5vw, 64px) 50px;
}
#content > #access.access {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
#content > #access .access-intro {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 560px;
  justify-content: flex-start;
  gap: 0;
  overflow: clip;
  padding: 12px 64px 12px 0;
  border: 0;
  border-right: 1px solid #ffffff20;
  border-radius: 0;
  background: transparent;
}
#content > #access .access-product {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
#content > #access .access-product > span {
  color: #ffffff80;
  font: 10px/1.4 var(--mono);
  letter-spacing: .16em;
}
#content > #access .access-logo {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  box-shadow: none;
  object-fit: contain;
}
#content > #access .access-copy { position: relative; z-index: 2; margin-top: 74px }
#content > #access .access-intro .access-index {
  margin: 0 0 24px;
  color: #5dda88;
  font: 10px/1.4 var(--mono);
  letter-spacing: .18em;
}
#content > #access .access-intro h1 { max-width: none; color: #f5f5f2 }
#content > #access .access-intro h1 > span {
  display: block;
  font: 600 clamp(88px, 10vw, 136px)/.86 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.075em;
}
#content > #access .access-intro h1 > small {
  display: block;
  margin-top: 26px;
  color: #ffffff80;
  font: 10px/1.4 var(--mono);
  letter-spacing: .28em;
}
#content > #access .access-visual {
  position: absolute;
  z-index: 1;
  inset: 235px -24px 45px -56px;
  color: #ffffff;
  pointer-events: none;
}
#content > #access .access-visual svg { display: block; width: 100%; height: 100% }
#content > #access .access-grid { color: #ffffff; opacity: .045 }
#content > #access .access-rail-lines {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1;
  opacity: .13;
}
#content > #access .access-route-base {
  fill: none;
  stroke: #5dda88;
  stroke-width: 1;
  opacity: .24;
}
#content > #access .access-route-flow {
  fill: none;
  stroke: #5dda88;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 22 490;
  animation: access-route-flow 7s linear infinite;
}
#content > #access .access-nodes { fill: #060810; stroke: #5dda88; stroke-width: 1.5 }
#content > #access .access-node-pulses {
  fill: none;
  stroke: #5dda88;
  stroke-width: 1;
  opacity: .25;
  animation: access-node-pulse 3.2s ease-in-out infinite;
}
#content > #access .access-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding-top: 36px;
  color: #ffffff59;
  font: 9px/1.5 var(--mono);
  letter-spacing: .12em;
}
#content > #access .access-main {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 350px;
  padding: 24px 0 24px 56px;
}
#content > #access .access-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5dda88;
  font: 10px/1.4 var(--mono);
  letter-spacing: .14em;
}
#content > #access .access-kicker::before { content: ""; width: 18px; height: 1px; background: #5dda88 }
#content > #access .access-main h2 {
  margin-top: 20px;
  color: #f5f5f2;
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -.035em;
}
#content > #access #login { gap: 23px; margin-top: 40px }
#content > #access #login label {
  gap: 4px;
  color: #ffffff8c;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
}
#content > #access #login input {
  min-height: 50px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #ffffff38;
  border-radius: 0;
  background: transparent;
  color: #f5f5f2;
  caret-color: #5dda88;
  font-size: 15px;
}
#content > #access #login input::placeholder { color: #ffffff42 }
#content > #access #login input:hover { border-bottom-color: #ffffff80 }
#content > #access #login input:focus-visible {
  border-bottom-color: #5dda88;
  outline: 2px solid #5dda88;
  outline-offset: 4px;
}
#content > #access #login input:-webkit-autofill {
  box-shadow: inset 0 0 0 1000px #060810;
  -webkit-text-fill-color: #f5f5f2;
}
#content > #access #login .primary {
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin-top: 15px;
  padding: 0 17px;
  border: 1px solid #5dda88;
  border-radius: 2px;
  background: #5dda88;
  color: #111318;
  box-shadow: 0 8px 30px #5dda8812;
  font-weight: 650;
}
#content > #access #login .primary:hover { border-color: #80e6a3; background: #80e6a3 }
#content > #access #login .primary:active { border-color: #43b96c; background: #43b96c }
#content > #access #login .primary > span[aria-hidden] {
  font-size: 18px;
  transition: transform .18s ease;
}
#content > #access #login .primary:hover > span[aria-hidden] { transform: translateX(3px) }
#content > #access #login-message {
  margin-top: 22px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #f39aab66;
  background: transparent;
  color: #f39aab;
  font-size: 12px;
  line-height: 1.7;
}
@keyframes access-route-flow { to { stroke-dashoffset: -512 } }
@keyframes access-node-pulse { 0%, 100% { opacity: .12 } 50% { opacity: .42 } }
@media (max-width: 900px) {
  #content > #access .access-intro { padding-right: 40px }
  #content > #access .access-main { padding-left: 40px }
}
@media (max-width: 700px) {
  body:not(.signed-in) .top { min-height: 65px; padding: 12px 20px }
  body:not(.signed-in) #content.shell {
    display: block;
    min-height: calc(100svh - 65px);
    padding: 30px 24px 40px;
  }
  #content > #access.access { max-width: 520px; grid-template-columns: minmax(0, 1fr) }
  #content > #access .access-intro {
    min-height: 240px;
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid #ffffff20;
  }
  #content > #access .access-logo { width: 34px; height: 34px }
  #content > #access .access-copy { margin-top: 40px }
  #content > #access .access-intro .access-index { margin-bottom: 18px }
  #content > #access .access-intro h1 > span { font-size: clamp(72px, 22vw, 96px) }
  #content > #access .access-intro h1 > small { margin-top: 20px }
  #content > #access .access-visual { inset: 116px -18px -30px 28%; opacity: .65 }
  #content > #access .access-foot { display: none }
  #content > #access .access-main { max-width: none; padding: 30px 0 0 }
  #content > #access .access-main h2 { margin-top: 14px; font-size: 26px }
  #content > #access #login { margin-top: 27px }
}
@media (max-width: 380px) {
  body:not(.signed-in) #content.shell { padding-inline: 20px }
}

/* Tessera 控制台：与登录页一致的墨色、细线与暖黄操作层级。 */
body.signed-in {
  --sidebar-width: 224px;
  --paper: #060810;
  --surface: #0b0e14;
  --surface-raised: #10151d;
  --white: #080b11;
  --ink: #f0f1ed;
  --muted: #979aa1;
  --line: #ffffff16;
  --line-dark: #ffffff2c;
  --accent: #5dda88;
  --accent-strong: #5dda88;
  --accent-soft: #5dda8812;
  --hover: #ffffff08;
  --success: #83d8bb;
  --success-soft: #83d8bb10;
  --warning: #5dda88;
  --warning-soft: #5dda8810;
  --danger: #f39aab;
  --danger-soft: #f39aab10;
  --clay: #5dda88;
  --clay-dark: #5dda88;
  --clay-soft: #5dda8812;
  --sage: #5dda88;
  --sage-soft: #5dda8810;
  --deep: #060810;
  background: var(--paper);
  color: var(--ink);
}
html:has(body.signed-in) { scrollbar-color: #ffffff30 transparent }
body.signed-in :is(button,.button,input,select,textarea) { border-radius: 2px; box-shadow: none }
body.signed-in :is(button,.button) {
  border-color: #ffffff26;
  background: transparent;
  color: #d9dad6;
  font-weight: 550;
  transition: background-color .14s,border-color .14s,color .14s;
}
body.signed-in :is(button,.button):not(:disabled):hover {
  border-color: #5dda8880;
  background: #5dda880b;
  color: #5dda88;
}
body.signed-in .primary,
body.signed-in .weather-database .primary {
  border-color: #5dda88;
  background: #5dda88;
  color: #111318;
  box-shadow: none;
  font-weight: 650;
}
body.signed-in .primary:not(:disabled):hover,
body.signed-in .weather-database .primary:not(:disabled):hover {
  border-color: #80e6a3;
  background: #80e6a3;
  color: #111318;
  box-shadow: none;
}
body.signed-in :is(input,select,textarea) {
  min-height: 40px;
  border-color: #ffffff2c;
  background: #080b11;
  color: var(--ink);
  box-shadow: none;
}
body.signed-in :is(input,select,textarea):focus {
  border-color: #5dda88;
  box-shadow: none;
  outline: none;
}
body.signed-in :is(input,select,textarea):focus-visible {
  outline: 2px solid #5dda88;
  outline-offset: 2px;
}
body.signed-in :is(input,textarea)::placeholder { color: #6f737c }
body.signed-in input::file-selector-button {
  border: 1px solid #ffffff2c;
  border-radius: 2px;
  background: #10151d;
  color: var(--ink);
}
body.signed-in label { color: #a5a8ae }
body.signed-in a { color: var(--accent) }

/* 固定导航与顶栏 */
body.signed-in .sidebar {
  border-right: 1px solid #ffffff16;
  background: #060810;
  box-shadow: none;
}
body.signed-in .sidebar-head {
  min-height: 73px;
  padding: 17px 20px;
  border-bottom: 1px solid #ffffff16;
}
body.signed-in .sidebar .brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  box-shadow: none;
}
body.signed-in .sidebar .brand b { color: #f5f5f2; font-size: 16px; letter-spacing: .02em }
body.signed-in .sidebar .brand small { color: #777c85; font-size: 10px; letter-spacing: .04em }
body.signed-in .side-nav { gap: 25px; padding: 24px 14px }
body.signed-in .nav-group { gap: 3px }
body.signed-in .nav-group p {
  margin: 0 0 7px 11px;
  color: #6f747d;
  font-size: 9px;
  letter-spacing: .13em;
}
body.signed-in .side-nav a {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #a9adb4;
  font-size: 12px;
}
body.signed-in .side-nav a svg { color: #737881 }
body.signed-in .side-nav a:hover { border-color: transparent; background: #ffffff07; color: #f0f1ed }
body.signed-in .side-nav a[aria-current] {
  border-color: #5dda8830;
  background: #5dda8810;
  color: #5dda88;
  box-shadow: none;
  font-weight: 600;
}
body.signed-in .side-nav a[aria-current]::before { inset: 10px auto 10px -1px; background: #5dda88 }
body.signed-in .side-nav a[aria-current] svg { color: #5dda88 }
body.signed-in .sidebar-foot {
  min-height: 65px;
  margin-inline: 14px;
  padding: 14px 4px;
  border-top-color: #ffffff16;
  color: #8d929a;
}
body.signed-in .sidebar :is(#signout,#close-nav) {
  min-height: 31px;
  border-color: #ffffff20;
  border-radius: 2px;
  background: transparent;
  color: #a9adb4;
}
body.signed-in .top {
  min-height: 73px;
  padding: 12px clamp(24px,3vw,42px);
  border-bottom-color: #ffffff16;
  background: #060810;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.signed-in .breadcrumb { color: #727781; font-size: 11px }
body.signed-in .breadcrumb strong { color: #e7e8e4; font-weight: 550 }
body.signed-in .breadcrumb > span[aria-hidden] { color: #4e535c }
body.signed-in .top button { min-height: 34px; border-color: #ffffff22; background: transparent }
body.signed-in #updated { color: #777c85; font-size: 10px }

/* 内容框架与数据总览 */
body.signed-in #content.shell {
  max-width: 1600px;
  padding: 35px clamp(24px,3vw,44px) 64px;
}
body.signed-in .page-head {
  align-items: flex-end;
  margin-bottom: 27px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ffffff16;
}
body.signed-in .page-head h1 {
  color: #f5f5f2;
  font-size: clamp(27px,2.5vw,34px);
  font-weight: 550;
  letter-spacing: -.035em;
}
body.signed-in .page-head p { margin-top: 8px; color: #858a93; font-size: 12px; line-height: 1.7 }
body.signed-in .page-head .top-actions { gap: 8px }
body.signed-in .metrics,
body.signed-in .health,
body.signed-in .resources {
  overflow: hidden;
  border: 1px solid #ffffff16;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
}
body.signed-in .metrics { margin-bottom: 25px }
body.signed-in .metrics div { padding: 20px 22px }
body.signed-in .metrics div + div { border-left-color: #ffffff16 }
body.signed-in .metrics span { margin-bottom: 8px; color: #838891; font-size: 11px }
body.signed-in .metrics strong {
  color: #f5f5f2;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.045em;
}
body.signed-in .metrics strong.good-text { color: var(--success) }
body.signed-in .overview-grid { grid-template-columns: minmax(0,1.65fr) minmax(250px,.65fr); gap: 20px }
body.signed-in .workspace { grid-template-columns: minmax(180px,205px) minmax(0,1fr); gap: 20px }
body.signed-in .station-picker { position: sticky; top: 96px }
body.signed-in .panel,
body.signed-in .station-picker {
  border-color: #ffffff16;
  border-radius: 3px;
  background: #0b0e14;
  box-shadow: none;
}
body.signed-in .section-head {
  min-height: 52px;
  padding: 14px 18px;
  border-bottom-color: #ffffff16;
  border-radius: 0;
  background: transparent;
}
body.signed-in .section-head h2 { color: #e8e9e5; font-size: 13px; font-weight: 600 }
body.signed-in .section-head :is(span,a) { color: #858a93; font-size: 11px }
body.signed-in .section-head a { color: var(--accent) }
body.signed-in .platform-jobs,
body.signed-in .station-picker > header,
body.signed-in .station-head { border-radius: 0; background: transparent }
body.signed-in .station-head { padding: 21px 20px 17px }
body.signed-in .station-head h2 { color: #f0f1ed; font-weight: 550 }
body.signed-in .station-picker > header { border-bottom-color: #ffffff16 }
body.signed-in .site { border-radius: 2px }
body.signed-in .site[aria-current] { border-color: #5dda8838; background: #5dda8810 }
body.signed-in .tabs { border-bottom-color: #ffffff16 }
body.signed-in .tabs button { min-height: 44px; color: #858a93 }
body.signed-in .tabs button[aria-selected=true] { border-color: #5dda88; background: transparent; color: #5dda88 }
body.signed-in .view,
body.signed-in .config-layout,
body.signed-in .asset-layout { animation: none }
body.signed-in .view { padding: 20px }
body.signed-in .health div,
body.signed-in .resources div { background: #0b0e14; box-shadow: 1px 0 #ffffff16,0 1px #ffffff16 }

/* 服务页导航、配置与表格 */
body.signed-in .search-tabs {
  gap: 24px;
  max-width: none;
  margin-bottom: 24px;
  padding: 0;
  border-bottom-color: #ffffff16;
}
body.signed-in .search-tabs a {
  min-height: 43px;
  padding: 8px 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #858a93;
  background: transparent;
  font-size: 12px;
}
body.signed-in .search-tabs a:hover { border-color: transparent; background: transparent; color: #f0f1ed }
body.signed-in .search-tabs a[aria-current] {
  border-bottom-color: #5dda88;
  background: transparent;
  color: #5dda88;
}
body.signed-in #search-channel-settings { gap: 8px; margin-bottom: 22px }
body.signed-in #search-channel-settings a {
  min-height: 36px;
  padding: 6px 14px;
  border-color: #ffffff20;
  border-radius: 2px;
  background: transparent;
  color: #92969e;
}
body.signed-in #search-channel-settings a[aria-current] {
  border-color: #5dda88;
  background: #5dda88;
  color: #111318;
}
body.signed-in .config-layout,
body.signed-in .asset-layout { max-width: none; gap: 20px }
body.signed-in .config-form,
body.signed-in .library-body { padding: 21px }
body.signed-in .config-actions { padding-top: 17px; border-top-color: #ffffff16 }
body.signed-in .config-facts dl > div { border-bottom-color: #ffffff16 }
body.signed-in .config-facts dt { color: #8e939c }
body.signed-in .config-facts dd { color: #d5d6d2 }
body.signed-in .config-facts .config-guide {
  border-top-color: #ffffff16;
  border-radius: 0;
  background: #080b11;
}
body.signed-in .config-guide dt { color: #d7d8d4 }
body.signed-in .config-guide dd { color: #858a93 }
body.signed-in .asset-state,
body.signed-in .target {
  border-left-color: #5dda88;
  border-radius: 0;
  background: #5dda880c;
}
body.signed-in .table-wrap {
  border-color: #ffffff16;
  border-radius: 2px;
  background: transparent;
}
body.signed-in table { font-size: 12px }
body.signed-in th,
body.signed-in .live-requests th,
body.signed-in #logs th,
body.signed-in .weather-record-table th,
body.signed-in #weather-job-rows th {
  border-bottom-color: #ffffff1c;
  background: #0d1118;
  color: #8f949d;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .05em;
}
body.signed-in td,
body.signed-in .weather-record-table td,
body.signed-in #weather-job-rows td { border-bottom-color: #ffffff12; color: #d0d2cf }
body.signed-in tbody tr:hover,
body.signed-in .live-requests tbody tr:hover,
body.signed-in #logs tbody tr:hover,
body.signed-in .weather-record-table tbody tr:hover { background: #ffffff05 }
body.signed-in :is(td code,td time) { color: #aeb2b9 }
body.signed-in .live-requests .table-wrap,
body.signed-in #logs .table-wrap { background: #080b11 }
body.signed-in .badge { border-radius: 2px; background: #ffffff0b }
body.signed-in .badge.info { background: #5dda8812; color: #5dda88 }
body.signed-in .notice,
body.signed-in .form-error,
body.signed-in .upgrade-steps { border-radius: 0; font-size: 12px }
body.signed-in .log-switch button[aria-pressed=true] { border-color: #5dda8845; background: #5dda8810; color: #5dda88 }

/* 说明、弹窗与天气工作台的显式蓝色覆盖。 */
body.signed-in .guide-toggle { border-color: #5dda8845; background: #5dda880c; color: #5dda88 }
body.signed-in .guide-toggle[aria-expanded=true] { border-color: #5dda88; background: #5dda88; color: #111318 }
body.signed-in .service-guide-head { border-bottom-color: #ffffff16; background: transparent }
body.signed-in .guide-demo { border-left-color: #ffffff16; background: #080b11 }
body.signed-in .guide-tags li { border-color: #ffffff20; border-radius: 2px; background: transparent; color: #a9adb4 }
body.signed-in .guide-example-switch button,
body.signed-in .guide-step { border-color: #ffffff20; border-radius: 2px; background: transparent; color: #a9adb4 }
body.signed-in .guide-example-switch button[aria-pressed=true],
body.signed-in .guide-step[aria-pressed=true] { border-color: #5dda8845; background: #5dda8810; color: #5dda88 }
body.signed-in .guide-step[aria-pressed=true]:hover { background: #5dda8818 }
body.signed-in .guide-step-detail { border-radius: 2px; background: #0b0e14 }
body.signed-in .guide-code { border-left-color: #5dda88; border-radius: 0; background: #060810 }
body.signed-in .record-preview,
body.signed-in .receipt pre,
body.signed-in #map-outline,
body.signed-in .rail-figure { border-color: #ffffff16; border-radius: 2px; background: #060810; color: #c8cbc7 }
body.signed-in dialog {
  border-color: #ffffff2c;
  border-radius: 3px;
  background: #0b0e14;
  box-shadow: 0 24px 80px #0008;
  animation: none;
}
body.signed-in dialog::backdrop { background: #000000b8 }
body.signed-in .dialog-head { border-bottom-color: #ffffff16; background: transparent }
body.signed-in .dialog-head button { border-color: #ffffff20; border-radius: 2px; background: transparent; color: #a9adb4 }
body.signed-in .weather-database {
  --weather-soft: #0b0e14;
  --weather-mint: #0b0e14;
  --weather-mint-strong: #5dda8814;
  border-color: #ffffff16;
  border-radius: 3px;
  background: #0b0e14;
  box-shadow: none;
}
body.signed-in .weather-database-head { border-radius: 0; background: transparent }
body.signed-in .weather-kicker { color: #5dda88 }
body.signed-in .weather-filter-grid,
body.signed-in .weather-backfill { border-color: #ffffff16; background: transparent }
body.signed-in .weather-filter-grid :is(input,select),
body.signed-in #weather-filter-city-button,
body.signed-in #weather-city-search,
body.signed-in .weather-job-settings input:not([type=checkbox]) {
  border-color: #ffffff2c;
  border-radius: 2px;
  background: #080b11;
  color: var(--ink);
}
body.signed-in .weather-filter-city-menu { border-color: #ffffff2c; border-radius: 2px; background: #0b0e14; box-shadow: 0 16px 45px #0008 }
body.signed-in .weather-filter-city-option { border-radius: 0; background: transparent; color: #c8cbc7 }
body.signed-in .weather-filter-city-option:hover,
body.signed-in .weather-filter-city-option[aria-selected=true] { background: #5dda8812; color: #5dda88 }
body.signed-in .weather-filter-city-option:hover small,
body.signed-in .weather-filter-city-option[aria-selected=true] small { color: #9bd8b1 }
body.signed-in .weather-record-meta { border-color: #ffffff16; background: #080b11 }
body.signed-in .weather-record-table table,
body.signed-in #weather-job-rows table,
body.signed-in #weather-region-rows { background: transparent }
body.signed-in .weather-record-actions .asset-choose { border-color: #ffffff20; border-radius: 2px; background: transparent; color: #c8cbc7 }
body.signed-in .weather-record-actions .asset-choose:hover { border-color: #5dda8860; background: #5dda880c; color: #5dda88 }
body.signed-in .weather-auto-source { background: #5dda8810; color: #5dda88 }
body.signed-in .weather-job-grid { border-color: #ffffff16; border-radius: 2px; background: transparent }
body.signed-in .weather-city-picker { border-color: #ffffff16; background: #080b11 }
body.signed-in .weather-city-picker legend,
body.signed-in .weather-city-option strong { color: #d7d8d4 }
body.signed-in .weather-city-options { border-color: #ffffff20; border-radius: 0; background: transparent; scrollbar-color: #ffffff30 transparent }
body.signed-in .weather-city-option { border-color: #ffffff12 }
body.signed-in .weather-city-option:hover { background: #ffffff05 }
body.signed-in .weather-city-option:has(input:checked) { background: #5dda8812 }
body.signed-in .weather-city-option :is(input),
body.signed-in .weather-refresh-option input { accent-color: #5dda88 }
body.signed-in .weather-city-bulk button { border-color: #ffffff20; border-radius: 2px; background: transparent; color: #a9adb4 }
body.signed-in .weather-city-bulk button:hover { background: #5dda880c; color: #5dda88 }

@media (max-width: 1150px) {
  body.signed-in #content.shell { padding-inline: 26px }
  body.signed-in .overview-grid { grid-template-columns: minmax(0,1fr) }
}
@media (max-width: 820px) {
  body.signed-in { padding-left: 0 }
  body.signed-in .sidebar { width: min(278px,calc(100% - 40px)); box-shadow: none }
  body.signed-in .station-picker { position: static }
  body.signed-in .workspace { grid-template-columns: minmax(0,1fr) }
}
@media (max-width: 580px) {
  body.signed-in .top { min-height: 61px; padding-inline: 14px }
  body.signed-in #content.shell { padding: 24px 14px 40px }
  body.signed-in .page-head { align-items: flex-start; margin-bottom: 20px; padding-bottom: 18px }
  body.signed-in .page-head h1 { font-size: 27px }
  body.signed-in .page-head > .top-actions { width: 100% }
  body.signed-in .metrics div { padding: 16px }
  body.signed-in .metrics div:nth-child(3) { border-left: 0 }
  body.signed-in .metrics div:nth-child(n+3) { border-top: 1px solid #ffffff16 }
  body.signed-in .metrics strong { font-size: 29px }
  body.signed-in .section-head { padding-inline: 15px }
  body.signed-in .view,
  body.signed-in .config-form,
  body.signed-in .library-body { padding: 16px }
  body.signed-in .search-tabs { gap: 18px; flex-wrap: nowrap; overflow-x: auto }
  body.signed-in .search-tabs a { flex: none }
  body.signed-in .guide-demo { border-left: 0 }
}

/* 登录页彩蛋：指针驱动的线路网络与短时信号校准。 */
#content > #access .access-product {
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
#content > #access .access-product:hover { background: transparent }
#content > #access .access-product:hover > span { color: #f5f5f2 }
#content > #access .access-product:focus-visible { outline: 1px solid #5dda88; outline-offset: 7px }
#content > #access .access-product > span { transition: color .18s ease }
#content > #access .access-visual {
  --pointer-x: 50%;
  --pointer-y: 50%;
  -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 9%,#000 86%,transparent 100%),linear-gradient(180deg,transparent 0,#000 13%,#000 84%,transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg,transparent 0,#000 9%,#000 86%,transparent 100%),linear-gradient(180deg,transparent 0,#000 13%,#000 84%,transparent 100%);
  mask-composite: intersect;
}
#content > #access .access-grid-active {
  color: #5dda88;
  opacity: 0;
  mask-image: radial-gradient(circle 130px at var(--pointer-x) var(--pointer-y),#000 0,transparent 100%);
  transition: opacity .2s ease;
}
#content > #access .access-visual.has-pointer .access-grid-active { opacity: .2 }
#content > #access .access-nodes circle { transition: r .16s ease,fill .16s ease,opacity .16s ease }
#content > #access .access-pointer-layer { opacity: 0; transition: opacity .16s ease }
#content > #access .access-visual.has-pointer .access-pointer-layer { opacity: 1 }
#content > #access .access-pointer-links {
  fill: none;
  stroke: #5dda88;
  stroke-width: .65;
  stroke-dasharray: 2 5;
  opacity: .42;
}
#content > #access .access-pointer-orbit { fill: none; stroke: #5dda88; stroke-width: .7; opacity: .55 }
#content > #access .access-pointer-core { fill: #5dda88 }
#content > #access .access-game {
  position: absolute;
  z-index: 8;
  inset: 68px 38px 36px 0;
  display: grid;
  grid-template-rows: auto auto minmax(170px,1fr) auto;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid #ffffff24;
  border-bottom: 1px solid #ffffff24;
  background: #060810;
  color: #f5f5f2;
}
#content > #access .access-game[hidden] { display: none !important }
#content > #access .access-game-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 16px;
}
#content > #access .access-game-head > div > span {
  display: block;
  margin-bottom: 9px;
  color: #5dda88;
  font: 9px/1.4 var(--mono);
  letter-spacing: .16em;
}
#content > #access .access-game-head h2 { margin: 0; font-size: 25px; font-weight: 520; letter-spacing: -.03em }
#content > #access .access-game-actions { display: flex; align-items: center; gap: 6px }
#content > #access .access-game-actions button {
  width: auto;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 9px;
  border-color: #ffffff24;
  background: transparent;
  color: #a7abb2;
  box-shadow: none;
  font-size: 10px;
  font-weight: 450;
}
#content > #access .access-game-actions button:hover { border-color: #5dda88; background: transparent; color: #5dda88 }
#content > #access .access-game-actions button:disabled { opacity: .35; cursor: default; border-color: #ffffff18; color: #777c85 }
#content > #access #access-game-sound[aria-pressed=true] { color: #5dda88 }
#content > #access #access-game-close { padding: 0; font-size: 20px; font-weight: 300 }
#content > #access .access-game-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-top: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
}
#content > #access .access-game-stats > div { padding: 12px 10px 12px 0 }
#content > #access .access-game-stats > div + div { padding-left: 13px; border-left: 1px solid #ffffff14 }
#content > #access .access-game-stats span { display: block; color: #6f747d; font: 8px/1.4 var(--mono); letter-spacing: .12em }
#content > #access .access-game-stats strong {
  display: block;
  margin-top: 5px;
  color: #dedfdb;
  font: 500 17px/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
}
#content > #access #access-game-life { color: #5dda88 }
#content > #access .access-game-board { position: relative; min-width: 0; min-height: 170px; outline: none; overflow: hidden }
#content > #access .access-game-board:focus-visible { outline: 1px solid #5dda88; outline-offset: -3px }
#content > #access #access-game-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair }
#content > #access .access-game-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 0 }
#content > #access .access-game-controls p { margin: 0; color: #858a93; font-size: 11px; line-height: 1.6 }
#content > #access #access-game-start {
  flex: none;
  min-height: 36px;
  padding: 7px 13px;
  border-color: #5dda88;
  background: #5dda88;
  color: #111318;
  box-shadow: none;
  font-size: 11px;
}
#content > #access #access-game-start:hover { border-color: #80e6a3; background: #80e6a3; color: #111318 }
#content > #access .access-intro:has(.access-game:not([hidden])) .access-copy { visibility: hidden }
@media (max-width: 900px) {
  #content > #access .access-game { right: 24px }
  #content > #access .access-game-controls { align-items: flex-start }
}
@media (max-width: 700px) {
  #content > #access .access-game {
    position: fixed;
    z-index: 60;
    inset: 65px 0 0;
    grid-template-rows: auto auto minmax(220px,1fr) auto;
    padding: 20px 24px 28px;
    border: 0;
  }
  #content > #access .access-game-head { padding-top: 6px }
  #content > #access .access-game-head h2 { font-size: 30px }
  #content > #access .access-game-board { min-height: 220px }
  #content > #access .access-game-controls { padding-top: 20px }
}
@media (max-width: 380px) {
  #content > #access .access-game { padding-inline: 20px }
  #content > #access .access-game-head { gap: 10px }
  #content > #access .access-game-actions { gap: 4px }
  #content > #access .access-game-actions button { padding-inline: 6px }
  #content > #access .access-game-stats strong { font-size: 15px }
  #content > #access .access-game-controls { flex-direction: column; align-items: stretch }
  #content > #access #access-game-start { width: 100% }
}
@media (prefers-reduced-motion: reduce) {
  #content > #access .access-grid-active,
  #content > #access .access-pointer-layer,
  #content > #access .access-nodes circle { transition: none }
}


/* Operational depth: precise hierarchy, live data cues and quiet motion. */
body.signed-in {
  --ease-enter: cubic-bezier(.22,.94,.44,1);
  --ease-hover: cubic-bezier(.52,.08,.18,1);
}
body.signed-in :is(button,.button,a,input,select,textarea) {
  transition-timing-function: var(--ease-hover);
}
body.signed-in :is(button,.button):active:not(:disabled) { transform: translateY(1px) }
body.signed-in :is(#overview-page,#stations-page,#services-page):not([hidden]) > .page-head {
  animation: tessera-page-in .34s var(--ease-enter) both;
}
body.signed-in .side-nav a::before {
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .2s var(--ease-hover), background-color .2s var(--ease-hover);
}
body.signed-in .side-nav a[aria-current]::before { transform: scaleY(1) }
body.signed-in .side-nav a { transition: color .16s,border-color .16s,background-color .16s }
body.signed-in .side-nav a:hover { border-color: #ffffff10 }

body.signed-in .page-head h1 { font-weight: 560; letter-spacing: -.045em }
body.signed-in .metrics {
  counter-reset: metric;
  border-color: #ffffff1e;
  border-radius: 4px;
  background: #090d12;
  box-shadow: 0 14px 36px #00000024, inset 0 1px #ffffff03;
}
body.signed-in .metrics > div {
  --ratio: 0;
  position: relative;
  counter-increment: metric;
  padding: 24px 22px 25px;
  overflow: hidden;
}
body.signed-in .metrics > div::before {
  content: "0" counter(metric);
  position: absolute;
  top: 17px;
  right: 18px;
  color: #4f565f;
  font: 9px var(--mono);
  letter-spacing: .08em;
}
body.signed-in .metrics > div::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: #747b84;
  transform: scaleX(var(--ratio));
  transform-origin: left;
  transition: transform .46s var(--ease-enter);
}
body.signed-in .metrics > div:nth-child(2)::after { background: #5dda88 }
body.signed-in .metrics > div:nth-child(3)::after { background: #d2b47e }
body.signed-in .metrics > div:nth-child(2) { background: #5dda8803 }
body.signed-in .metrics > div:nth-child(3) { background: #d2b47e03 }
body.signed-in .metrics span { color: #969ba3; letter-spacing: .025em }
body.signed-in .metrics strong { font-size: clamp(34px,3.4vw,42px); line-height: 1.05; font-weight: 520 }
body.signed-in .metrics > div:nth-child(3) strong { color: #d7c49f }
body.signed-in .metrics > div:nth-child(4) strong { color: #a2a6ad }

body.signed-in .overview-grid { gap: 24px }
body.signed-in .overview-grid > .panel,
body.signed-in .station-picker {
  border-color: #ffffff1b;
  box-shadow: 0 12px 34px #0000001f, inset 0 1px #ffffff02;
}
body.signed-in .section-head h2 { letter-spacing: .015em }
body.signed-in .fleet-body th { background: #090d12 }
body.signed-in .fleet-body td { padding-top: 15px; padding-bottom: 15px }
body.signed-in .fleet-body tbody tr { transition: background-color .18s var(--ease-hover) }
body.signed-in .fleet-body tbody tr:hover { background: #5dda8806 }
body.signed-in .fleet-link { color: #e7eae5; text-decoration: none; transition: color .16s }
body.signed-in .fleet-link:hover { color: #5dda88 }
body.signed-in .fleet-link code { color: #727983; font-size: 10px }
body.signed-in #fleet td:nth-child(3) { color: #e4e7e2; font-family: var(--mono) }

body.signed-in #resource-usage {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 17px 18px;
  border-bottom: 1px solid #ffffff12;
  background: #080c11;
}
body.signed-in #resource-usage > span {
  min-width: 0;
  color: #d6d9d4;
  font: 500 12px/1.45 var(--mono);
  overflow-wrap: anywhere;
}
body.signed-in #resource-usage > span::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: #6f767f;
  font: 10px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
}
body.signed-in #resource-usage > span:last-child { grid-column: 1 / -1 }
body.signed-in .platform-list { counter-reset: service; padding: 3px 18px }
body.signed-in .platform-list > div { counter-increment: service; align-items: center; padding: 0 }
body.signed-in .platform-list a {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 13px 0 13px 31px;
  color: #d7dbd6;
  text-decoration: none;
}
body.signed-in .platform-list a::before {
  content: "0" counter(service);
  position: absolute;
  left: 0;
  color: #515861;
  font: 9px var(--mono);
}
body.signed-in .platform-list a::after {
  content: "";
  position: absolute;
  inset: auto 0 6px 31px;
  height: 1px;
  background: #5dda88;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--ease-hover);
}
body.signed-in .platform-list a:hover { color: #5dda88; text-decoration: none }
body.signed-in .platform-list a:hover::after { transform: scaleX(1) }
body.signed-in .platform-list .badge { flex: none }
body.signed-in .platform-list .badge::before,
body.signed-in #station-status .badge::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
}
body.signed-in .platform-list .badge,
body.signed-in #station-status .badge { display: inline-flex; align-items: center }
body.signed-in .platform-jobs { padding: 8px 18px; background: #080c11 }
body.signed-in .platform-jobs strong { font-size: 11px; font-weight: 500 }

body.signed-in .workspace { grid-template-columns: minmax(190px,220px) minmax(0,1fr); gap: 24px }
body.signed-in .station-picker { overflow: hidden; background: #090d12 }
body.signed-in .station-picker > header { padding: 15px; background: #0c1117 }
body.signed-in #sites { gap: 5px; padding: 7px }
body.signed-in .site {
  position: relative;
  padding: 11px 10px 11px 13px;
  transition: color .16s,border-color .16s,background-color .16s;
}
body.signed-in .site::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 2px;
  background: #5dda88;
  transform: scaleY(0);
  transition: transform .2s var(--ease-hover);
}
body.signed-in .site[aria-current]::before { transform: scaleY(1) }
body.signed-in .site[aria-current] { background: #5dda880c; border-color: #5dda882c }
body.signed-in .site-name { font-weight: 560 }
body.signed-in .site-meta code { color: #777f89; font-size: 10px }

body.signed-in #details {
  overflow: hidden;
  border-color: #ffffff24;
  background: #0a0e13;
  box-shadow: 0 20px 52px #00000030, inset 0 1px #ffffff03;
}
body.signed-in .station-head {
  position: relative;
  padding: 26px 24px 22px;
  background: #0d1218;
  box-shadow: inset 0 -1px #ffffff10;
}
body.signed-in .station-head h2 { font-size: 28px; font-weight: 560; letter-spacing: -.035em }
body.signed-in .station-head p { max-width: 74ch; line-height: 1.8; color: #8d939c }
body.signed-in #station-status .badge.good::before { animation: tessera-status-in .65s var(--ease-enter) }
body.signed-in .tabs { padding: 0 18px; background: #090d12 }
body.signed-in .tabs button { position: relative; border-bottom-color: transparent; transition: color .18s }
body.signed-in .tabs button::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  background: #5dda88;
  transform: scaleX(0);
  transition: transform .22s var(--ease-hover);
}
body.signed-in .tabs button[aria-selected=true]::after { transform: scaleX(1) }
body.signed-in .view { padding: 23px 24px }
body.signed-in .view > h3 { margin-bottom: 11px; color: #c8ccc7; font-size: 12px; letter-spacing: .035em }
body.signed-in .health,
body.signed-in .resources {
  gap: 1px;
  border-color: #ffffff16;
  border-radius: 4px;
  background: #ffffff14;
}
body.signed-in .health div,
body.signed-in .resources div { padding: 15px 16px; background: #0c1117; box-shadow: none }
body.signed-in .health div > span:first-child,
body.signed-in .resources span { color: #828993; font-size: 11px }
body.signed-in .health .badge { margin-top: 4px }
body.signed-in .resources strong { font-size: 17px; font-weight: 500 }

body.signed-in dialog[open] { animation: tessera-dialog-in .24s var(--ease-enter) both }
body.signed-in dialog { border-color: #ffffff30; box-shadow: 0 28px 90px #000000a8 }

/* Map and railway explorer. No perpetual animation or rendering loop. */
.canvas-explorer {
  position: relative;
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 4px;
  background: #05090d;
  box-shadow: inset 0 1px #ffffff03;
}
.canvas-explorer .explorable-canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.canvas-explorer .explorable-canvas[data-dragging="true"] { cursor: grabbing }
.canvas-explorer .explorable-canvas:focus-visible { outline: 1px solid #5dda88; outline-offset: -2px }
.canvas-explorer-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #ffffff1e;
  border-radius: 4px;
  background: #070b10ed;
  opacity: .76;
  transition: opacity .16s;
}
.canvas-explorer:hover .canvas-explorer-controls,
.canvas-explorer:focus-within .canvas-explorer-controls { opacity: 1 }
.canvas-explorer-controls button {
  min-width: 29px;
  min-height: 28px;
  padding: 3px 7px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #c9cec8;
  font: 500 11px var(--mono);
}
.canvas-explorer-controls button:hover { background: #5dda8814; color: #5dda88 }
.canvas-explorer-zoom {
  min-width: 39px;
  color: #737c86;
  font: 9px var(--mono);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.canvas-explorer-hint {
  position: absolute;
  left: 11px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 2px;
  background: #070b10d9;
  color: #68727c;
  font-size: 9px;
  letter-spacing: .025em;
  pointer-events: none;
}
body.signed-in #map-outline { background: transparent }
body.signed-in .rail-figure { padding: 8px; background: #080c11 }
body.signed-in .rail-figure .canvas-explorer { margin-top: 0 }

/* Venue fields use a restrained three-channel code: place / longitude / latitude. */
body.signed-in #venue-rows .table-wrap { border-color: #ffffff1a; background: #080c11 }
body.signed-in .venue-table th:nth-child(2) { color: #e1e5df }
body.signed-in .venue-table th:nth-child(3) { color: #8fc8d8 }
body.signed-in .venue-table th:nth-child(4) { color: #d8bd86 }
body.signed-in .venue-table th:nth-child(5) { color: #9c9faa }
body.signed-in .venue-table tbody tr:nth-child(even) { background: #ffffff05 }
body.signed-in .venue-table tbody tr:hover { background: #5dda8806 }
body.signed-in .venue-table tbody tr:has(input[type="checkbox"]:checked) { background: #5dda880d }
body.signed-in .venue-table td { padding: 10px 12px; transition: background-color .16s }
body.signed-in .venue-table input:not([type="checkbox"]) {
  min-height: 32px;
  border-radius: 3px;
  background: #0b1016;
  border-color: #ffffff18;
  transition: border-color .16s,background-color .16s;
}
body.signed-in .venue-table input[type="text"] {
  color: #edf0eb;
  border-left: 2px solid #dce5df5c;
  background: #f5f5f202;
  font-weight: 550;
}
body.signed-in .venue-table input[aria-label^="经度"] {
  color: #9dd5e2;
  border-left: 2px solid #8fc8d86b;
  background: #5fa8c708;
  font-family: var(--mono);
}
body.signed-in .venue-table input[aria-label^="纬度"] {
  color: #e2ca9c;
  border-left: 2px solid #d8bd866b;
  background: #edc37d06;
  font-family: var(--mono);
}
body.signed-in .venue-table input:not([type="checkbox"]):hover { border-color: #ffffff38 }
body.signed-in .venue-table input:not([type="checkbox"]):focus { border-color: currentColor; background: #0d141b }
body.signed-in .venue-table td:last-child { color: #969ba6; font: 10px var(--mono); letter-spacing: .07em }
body.signed-in .venue-table input[type="checkbox"] { accent-color: #5dda88 }

@keyframes tessera-page-in {
  from { opacity: 0; clip-path: inset(0 0 0 14px) }
  to { opacity: 1; clip-path: inset(0) }
}
@keyframes tessera-dialog-in {
  from { opacity: 0; clip-path: inset(8px 0) }
  to { opacity: 1; clip-path: inset(0) }
}
@keyframes tessera-status-in {
  from { box-shadow: 0 0 0 0 #5dda8840 }
  to { box-shadow: 0 0 0 5px #5dda8800 }
}

@media (hover: none) {
  .canvas-explorer-controls { opacity: 1 }
  .canvas-explorer-controls button { min-height: 36px }
}
@media (max-width: 900px) {
  body.signed-in .workspace { grid-template-columns: minmax(0,1fr) }
  body.signed-in .station-picker { position: static }
}
@media (max-width: 700px) {
  body.signed-in .metrics > div { padding: 19px 16px 21px }
  body.signed-in .metrics > div::before { top: 13px; right: 13px }
  body.signed-in .station-head { padding: 21px 18px 18px }
  body.signed-in .station-head h2 { font-size: 24px }
  body.signed-in .view { padding: 19px 16px }
  .canvas-explorer-hint { display: none }
  .canvas-explorer-controls { top: 7px; right: 7px }
}
@media (max-width: 420px) {
  body.signed-in #resource-usage { gap: 12px; padding-inline: 14px }
  body.signed-in .metrics strong { font-size: 31px }
  .canvas-explorer-controls button { min-width: 32px; min-height: 36px; padding-inline: 5px }
  .canvas-explorer-zoom { min-width: 34px }
}

/* 品牌字标：本地方正几何字体，仅用于 Tessera 的独立英文标识。 */
@font-face {
  font-family: "Tessera Display";
  src: url("/assets/fonts/tessera-display.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0020-00FE;
}
:root { --brand-font: "Tessera Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif }
.brand b,
.login-intro-mark h2,
#content > #access .access-intro h1 > span {
  font-family: var(--brand-font);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  font-synthesis: none;
}
.brand b { letter-spacing: .13em; line-height: 1.2 }
body.signed-in .sidebar .brand b { letter-spacing: .13em }
.login-intro-mark h2 { letter-spacing: .14em; line-height: 1.08 }
#content > #access .access-intro h1 > span {
  font-size: clamp(68px,8vw,112px);
  line-height: .98;
  letter-spacing: .09em;
}
@media (max-width: 700px) {
  #content > #access .access-intro h1 > span {
    font-size: clamp(46px,14vw,68px);
    letter-spacing: .075em;
  }
}

/* 全站墨色层级：导航与输入区下沉，内容面板浮起，浮层保持最高明度。 */
body.signed-in {
  --paper: #0a0b0d;
  --surface: #121316;
  --surface-raised: #1a1c20;
  --surface-header: #17191c;
  --surface-inset: #0c0e10;
  --white: #0e1012;
  --deep: #070809;
  --line: #262a31;
  --line-dark: #34383f;
  --hover: #ffffff07;
  background: var(--paper);
}
body.signed-in .sidebar {
  border-right-color: #202328;
  background: #060708;
}
body.signed-in .sidebar-head { background: #08090b; border-bottom-color: #202328 }
body.signed-in .sidebar-foot { background: #060708; border-top-color: #262a31 }
body.signed-in .top { background: #0d0f11; border-bottom-color: #262a31 }
body.signed-in #content.shell { background: transparent }

/* 一级内容面板只用细边界和轻微顶部反光，不叠加沉重阴影。 */
body.signed-in :is(.panel,.station-picker,.metrics,#details,.weather-database) {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 12px 30px #0000001a,inset 0 1px #ffffff03;
}
body.signed-in :is(.section-head,.station-picker > header,.station-head,.service-guide-head,.weather-database-head) {
  border-bottom-color: var(--line);
  background: var(--surface-header);
}
body.signed-in .tabs { border-bottom-color: var(--line); background: #0e1012 }
body.signed-in .search-tabs { background: transparent }
body.signed-in .metrics > div { background: var(--surface) }
body.signed-in .metrics > div + div { border-left-color: var(--line) }
body.signed-in :is(.health,.resources) {
  border-color: var(--line);
  background: var(--line);
  box-shadow: none;
}
body.signed-in :is(.health,.resources) > div { background: var(--surface); box-shadow: none }

/* 输入、日志与证据读取区采用下沉色，和可阅读的面板内容区分。 */
body.signed-in :is(input,select,textarea) {
  border-color: #2a2e35;
  background: var(--surface-inset);
}
body.signed-in :is(input,select,textarea):hover { border-color: #3a3f47 }
body.signed-in input::file-selector-button { border-color: #34383f; background: var(--surface-raised) }
body.signed-in .weather-filter-grid :is(input,select),
body.signed-in #weather-filter-city-button,
body.signed-in #weather-city-search,
body.signed-in .weather-job-settings input:not([type=checkbox]) {
  border-color: #2a2e35;
  background: var(--surface-inset);
}
body.signed-in .table-wrap,
body.signed-in .live-requests .table-wrap,
body.signed-in #logs .table-wrap,
body.signed-in #venue-rows .table-wrap {
  border-color: var(--line);
  background: #0e1012;
}
body.signed-in th,
body.signed-in .live-requests th,
body.signed-in #logs th,
body.signed-in .weather-record-table th,
body.signed-in #weather-job-rows th,
body.signed-in .fleet-body th {
  border-bottom-color: #30343b;
  background: var(--surface-header);
}
body.signed-in td,
body.signed-in .weather-record-table td,
body.signed-in #weather-job-rows td { border-bottom-color: #ffffff10 }
body.signed-in tbody tr:nth-child(even) { background: #ffffff02 }
body.signed-in tbody tr:hover { background: #ffffff05 }
body.signed-in .weather-database { --weather-soft: var(--surface); --weather-mint: var(--surface-inset) }
body.signed-in :is(.config-facts .config-guide,.guide-demo,.guide-code,.record-preview,.receipt pre,.rail-figure,.weather-record-meta,.weather-city-picker,#resource-usage,.platform-jobs) {
  border-color: var(--line);
  background: var(--surface-inset);
}
body.signed-in .guide-step-detail { background: #141619 }
body.signed-in .weather-filter-grid,
body.signed-in .weather-backfill,
body.signed-in .weather-job-grid { border-color: var(--line); background: #0e1012 }
body.signed-in .weather-city-options { border-color: var(--line); background: #0e1012 }
body.signed-in .canvas-explorer { border-color: var(--line); background: #080a0c }
body.signed-in #map-outline { background: #080a0c }
body.signed-in .canvas-explorer-controls { border-color: #34383f; background: #14171bef }
body.signed-in .canvas-explorer-hint { background: #0d0f11e6 }
body.signed-in .venue-table input:not([type="checkbox"]):focus { background: #101317 }

/* 模态与临时浮层高于普通卡片，边框和阴影只用于这一层。 */
body.signed-in dialog {
  border-color: #363b43;
  background: var(--surface-raised);
  box-shadow: 0 28px 90px #000000a8;
}
body.signed-in .dialog-head { border-bottom-color: #30343b; background: #1e2024 }
body.signed-in .weather-filter-city-menu {
  border-color: #363b43;
  background: var(--surface-raised);
  box-shadow: 0 18px 50px #0000008c;
}
@media (max-width: 820px) {
  body.signed-in .sidebar { box-shadow: 20px 0 60px #00000070 }
}
@media (max-width: 580px) {
  body.signed-in .metrics div:nth-child(n+3) { border-top-color: var(--line) }
}
