@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("assets/barlow-semi-condensed-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #061419;
  --surface: #0a1d24;
  --line: #254047;
  --line-soft: #1a333a;
  --white: #e5f4f1;
  --muted: #a0bbbc;
  --secondary: #86a5a9;
  --mint: #68ebc7;
  --gold: #e7ba76;
  --num: "Barlow Semi Condensed", Bahnschrift, "Arial Narrow", sans-serif;
  --sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  color: var(--white);
  font: 1rem/1.5 var(--sans);
  background: radial-gradient(ellipse at 50% -15%, #15383b 0%, transparent 44%), var(--bg);
}
button, a, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; }
button:disabled { cursor: default; opacity: .38; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, [role="slider"]:focus-visible, [data-link]:focus-visible {
  outline: 2px solid #acf7dc; outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
.icon { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: middle; }
.shell { width: min(100%,1980px); margin: 0 auto; padding: 0 clamp(12px,1.45vw,28px); }
.masthead { min-height: 59px; position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; justify-self: start; width: fit-content; }
.brand img { width: 41px; height: 41px; }
.brand span { display: flex; flex-direction: column; }
.brand b { font-size: 1.1rem; font-weight: 650; line-height: 1.4; letter-spacing: .16em; }
.brand small { font: 600 .69rem/1.2 var(--num); letter-spacing: .17em; color: #a7c8c6; }
.mast-title { display: flex; align-items: center; justify-content: center; gap: clamp(10px,1.55vw,30px); min-width: 0; }
.mast-title h1 { font-size: clamp(1.38rem,1.9vw,2.15rem); line-height: 1.35; letter-spacing: .13em; font-weight: 650; white-space: nowrap; color: #edfcf7; }
.wing { width: clamp(44px,7.2vw,135px); height: 27px; fill: none; stroke: #315b5c; stroke-width: 1; }
.wing .bright { stroke: #77d8c2; stroke-width: 1.5; }
.wing-right { transform: scaleX(-1); }
.head-tools { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px,1.2vw,23px); }
.shift-button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #396458; border-radius: 4px; background: #12372f; color: #b3ecd7; font-size: .8rem; white-space: nowrap; }
.shift-button:hover { background: #1a493e; border-color: #6ba793; }
.shift-button i, .map-legend i, .flag i { display: inline-block; border-radius: 50%; }
.shift-button i { width: 6px; height: 6px; background: #72e9c6; }
.clock { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--num); font-variant-numeric: tabular-nums; }
.clock span { font-size: 1.38rem; letter-spacing: .04em; line-height: 1.25; }
.clock small { font-size: .75rem; color: var(--secondary); letter-spacing: .055em; }
.icon-button, .text-button, .zoom-tools button { display: inline-flex; justify-content: center; align-items: center; }
.icon-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 5px; color: #b3cbcb; background: #0b1e23; }
.icon-button:hover, .text-button:hover, .zoom-tools button:not(:disabled):hover { color: var(--mint); background: #15343a; border-color: #43736d; }
.scene-nav {
  position: relative; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 3px;
  border-block: 1px solid var(--line); background: #091d2399;
}
.scene-nav a {
  height: 38px; display: flex; align-items: center; justify-content: center; gap: .6rem; position: relative;
  font-size: .93rem; color: #a2bdbd; font-weight: 500; letter-spacing: .045em; white-space: nowrap;
}
.scene-nav a:not(:last-child)::after { position: absolute; content: ""; width: 1px; height: 14px; background: #254047; right: -2px; }
.scene-nav a:hover { color: #d3f8e9; background: #16323888; }
.scene-nav a[aria-current] { color: #8ff1d1; background: linear-gradient(0deg, #1b514746, #143c360d); }
.scene-nav a[aria-current]::before {
  content: ""; position: absolute; height: 2px; bottom: -1px; left: 12%; right: 12%;
  background: linear-gradient(90deg, transparent 0%, #62dfbd 18%, #98f4d6 50%, #62dfbd 82%, transparent);
}
.scene-nav .icon { width: 18px; height: 18px; }
main { padding-top: 11px; }
.metrics {
  display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border: 1px solid #2b474b; border-radius: 5px; overflow: hidden;
  background: linear-gradient(110deg,#112d31,#0b2127 52%,#0f282d);
}
.metric {
  --accent: #76e7c7; position: relative; isolation: isolate; min-width: 0;
  padding: 10px clamp(10px,1vw,20px) 9px; border-right: 1px solid #2a4146;
}
.metric:last-child { border-right: 0; }
.metric-1 { --accent:#7dbdd8; } .metric-2 { --accent:#e5bd7c; } .metric-3 { --accent:#91d8a6; }
.metric-4 { --accent:#a6adc9; } .metric-5 { --accent:#59cebe; }
.metric::after { content:""; position:absolute; width: 24px; height: 2px; top:0; left:clamp(10px,1vw,20px); background:var(--accent); opacity:.72; }
.metric-label { display:flex; align-items:center; gap:6px; min-width:0; color:var(--accent); }
.metric-label .icon { width:15px; height:15px; }
.metric-label h2 { margin:0; font-size:clamp(.77rem,.89vw,1rem); line-height:1.32; color:#c5dcda; font-weight:550; }
.metric-data { display:flex; align-items:baseline; gap:5px; width:fit-content; position:relative; z-index:1; margin-top:2px; }
.metric-data strong { font:600 clamp(1.85rem,2.2vw,2.8rem)/1.08 var(--num); letter-spacing:.012em; color:#f1fcf8; font-variant-numeric:tabular-nums; }
.metric-data > span { font:600 .86rem var(--num),var(--sans); color:#b4cacc; }
.metric p { color:#94b0b3; font-size:clamp(.72rem,.79vw,.85rem); line-height:1.35; margin-top:2px; }
.sparkline { position:absolute; color:var(--accent); right:9px; bottom:26%; width:clamp(32px,3.25vw,66px); opacity:.88; }
.board {
  display:grid; gap:clamp(7px,.66vw,13px); margin-top:clamp(7px,.66vw,13px);
  grid-template-columns: minmax(218px,1fr) minmax(350px,2.08fr) minmax(247px,1.08fr);
  grid-template-areas: "balance map trend" "ranking map events" "composition history watchPanel";
  grid-template-rows: minmax(0,1fr) minmax(0,1fr) minmax(0,.82fr);
}
.panel {
  min-width: 0; position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(130deg,#0f272d 0%, #0a1e25 59%, #0a1c22 100%);
}
.balance { grid-area: balance; } .ranking { grid-area: ranking; }
.trend { grid-area: trend; } .events { grid-area: events; }
.composition { grid-area: composition; } .history-panel { grid-area: history; } .watch-panel { grid-area: watchPanel; }
.panel-head {
  min-height: 38px; flex: none; margin: 0 clamp(10px,.9vw,18px); display: flex; align-items: center; justify-content: space-between;
  gap: 6px; border-bottom: 1px solid var(--line-soft);
}
.panel-head h2, .map-head h2 { font-size: clamp(.93rem,1.08vw,1.2rem); font-weight: 600; line-height: 1.45; letter-spacing: .035em; color: #e1f1ed; }
.panel-head h2 { display: flex; align-items: center; gap: .55rem; }
.panel-head h2::before { content: ""; width: 3px; height: .84em; background: #5bdcbb; transform: skew(-10deg); border-radius: 1px; }
.unit-label { color: var(--secondary); font: 600 .88rem var(--num); }
.balance-body { flex: 1; display: flex; align-items: center; justify-content: space-around; gap: 6px; padding: 6px clamp(9px,1vw,18px); min-height: 0; }
.dial { flex: 1 1 49%; position: relative; max-width: 157px; min-width: 0; }
.dial > svg { width: 100%; display: block; }
.dial-track, .dial-fill { stroke-width: 7.5; fill: none; stroke-linecap: round; }
.dial-track { stroke: #233e45; } .dial-fill { stroke: url(#gauge-color); }
.dial-label { position: absolute; inset: 32% 0 auto; display: flex; align-items: center; flex-direction: column; }
.dial-label strong { font: 600 clamp(1.55rem,2.05vw,2.5rem)/1.15 var(--num); letter-spacing: -.015em; color: #e7faf0; }
.dial-label strong small { font-size: .55em; margin-left: 1px; }
.dial-label > span { color: #adcdca; font-size: clamp(.72rem,.84vw,.9rem); white-space: nowrap; }
.readings { flex: 0 1 45%; min-width: 0; }
.readings > div { padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.readings > div:last-child { border-bottom: 0; }
.readings dt { display: flex; align-items: center; gap: 6px; color: #a2bcbd; font-size: .8rem; }
.readings dt::before { content: ""; width: 5px; height: 5px; background: #66dcb9; }
.readings div:nth-child(2) dt::before { background: #72b7c5; }
.readings div:nth-child(3) dt::before { background: #d7bb85; }
.readings dd { font: 600 1.19rem/1.3 var(--num),var(--sans); color: #e3f2ef; padding-left: 11px; }
.readings dd small { font-size: .77rem; font-weight: 500; color: var(--secondary); }
.rank-columns,.rank-list button { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(40px,.66fr) minmax(56px,.83fr); column-gap:6px; align-items:center; text-align:right; }
.rank-columns { margin:5px clamp(10px,.9vw,18px) 1px; color:var(--secondary); font-size:.72rem; line-height:1.45; }
.rank-columns span:first-child { text-align:left; }
.rank-list { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:space-evenly; list-style:none; padding:0 clamp(10px,.9vw,18px) 6px; }
.rank-list button { position:relative; width:100%; min-height:22px; padding:2px 0 5px; color:#cde1df; }
.rank-list button:hover .rank-object { color:var(--mint); }
.rank-object { display:flex; align-items:center; gap:7px; min-width:0; white-space:nowrap; text-align:left; font-size:.86rem; line-height:1.24; }
.rank-number { font:600 .8rem var(--num); color:#75a0a3; }
.rank-list li:first-child .rank-number { color:#91dfbf; }
.rank-amount,.rank-compare { font:600 .98rem/1.2 var(--num),var(--sans); font-variant-numeric:tabular-nums; }
.rank-compare { color:#9cbab9; font-size:.87rem; }
.bar { position:absolute; height:2px; bottom:1px; left:19px; right:0; background:#20393e; overflow:hidden; }
.bar i { display:block; height:100%; background:linear-gradient(90deg,#207c7a,#63bda0); }
.rank-list li:first-child .bar i { background:linear-gradient(90deg,#248b85,#85d8b5); }
.periods, .filter-tabs { display: inline-flex; background: #081b21; border: 1px solid #29434a; border-radius: 4px; padding: 2px; }
.periods button { border-radius: 2px; color: #90acae; font-size: .76rem; line-height: 1.4; padding: 2px 6px; }
.periods button[aria-pressed="true"], .filter-tabs button[aria-pressed="true"] { background: #1a4543; color: #a0f3d5; }
.trend-body { flex:1; display:flex; flex-direction:column; min-height:0; padding:5px clamp(8px,.8vw,15px) 6px; }
.trend-meta { flex:none; display:flex; align-items:center; gap:10px; font-size:.73rem; color:#aec5c4; padding:0 2px; }
.chart-unit { margin-right:auto; color:var(--secondary); font:600 .79rem var(--num); }
.key { display:inline-flex; align-items:center; gap:4px; }
.key::before { content:""; width:12px; border-top:2px solid #70e2bb; }
.key.reference::before { border-top:2px dashed #d6af76; }
.plot { width:100%; flex:1; min-height:60px; position:relative; margin:3px 0 5px; }
.plot > svg { position:absolute; inset:0; width:100%; height:100%; display:block; }
.trend-summary { flex:none; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line-soft); padding-top:5px; gap:5px; }
.trend-summary div { display:flex; align-items:baseline; gap:4px; justify-content:center; }
.trend-summary div+div { border-left:1px solid var(--line-soft); }
.trend-summary dt { color:#94afb0; font-size:.72rem; } .trend-summary dd { font:600 .96rem/1.2 var(--num); color:#d8e9e2; }
.chart-axis line { stroke: #294249; stroke-width: .8; stroke-dasharray: 3 3; }
.chart-axis text { fill: #91adb0; font: 600 11px var(--num),var(--sans); }
.primary-line { fill: none; stroke: #6be8c1; stroke-width: 2.1; stroke-linecap: round; }
.comparison-line { fill: none; stroke: #deb780; stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart-tip { position: absolute; top: 3%; z-index: 2; padding: 6px 9px; font-size: .77rem; color: #c5dcd8; background: #102a2ff5; border: 1px solid #426666; border-radius: 4px; box-shadow: 0 4px 18px #0005; pointer-events: none; }
.chart-tip b, .chart-tip span { display: block; } .chart-tip strong { color: #e7f4ed; }
.subtle-button { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #a5c7c5; font-size: .81rem; padding: 5px 1px; }
.subtle-button:hover { color: #98f3d6; }
.event-feed { flex:1; display:flex; flex-direction:column; min-height:0; padding:2px clamp(9px,.9vw,18px) 5px; }
.event-row { display:grid; grid-template-columns:35px minmax(0,1fr) auto; align-items:center; gap:7px; flex:1; width:100%; padding:3px 0; border-bottom:1px solid var(--line-soft); text-align:left; }
.event-row:last-child { border-bottom:0; }
.event-row time { color:#9bb9ba; font:600 .88rem var(--num); font-variant-numeric:tabular-nums; }
.event-row:hover .event-copy b { color:var(--mint); }
.watch { --level:#f0be72; } .normal { --level:#70dcb7; } .info { --level:#8dbfe4; } .alert { --level:#fa907d; }
.event-copy { min-width:0; }
.event-copy b { font-size:.88rem; line-height:1.4; font-weight:500; color:#d9e8e5; }
.event-state { color:var(--level); font-size:.71rem; white-space:nowrap; padding:1px 5px; background:color-mix(in srgb,var(--level) 8%,transparent); border:1px solid color-mix(in srgb,var(--level) 22%,transparent); border-radius:3px; }
.map-panel {
  grid-area: map; isolation: isolate; overflow: hidden; background: #081c23;
  border-color: #2e5658;
}
.map-panel::before,.map-panel::after { content: ""; position: absolute; z-index: 3; width: 21px; height: 15px; pointer-events: none; }
.map-panel::before { top: 0; left: 0; border-left: 2px solid #5bc9b0; border-top: 2px solid #5bc9b0; border-radius: 5px 0 0; }
.map-panel::after { bottom: 0; right: 0; border-right: 2px solid #478f83; border-bottom: 2px solid #478f83; border-radius: 0 0 5px; }
.map-head { position: relative; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: clamp(10px,.93vw,18px) clamp(12px,1.1vw,22px) 0; }
.map-head h2 { font-size: clamp(1.17rem,1.55vw,1.75rem); letter-spacing: .045em; }
.map-head p { color: #90afb1; font-size: .81rem; margin-top: 4px; }
.layer-wrap { position: relative; }
.map-actions { display:flex; align-items:flex-start; gap:6px; flex:none; }
.text-button { gap: 6px; white-space: nowrap; border: 1px solid #345358; border-radius: 4px; padding: 5px 9px; background: #10282d; color: #c4dcd7; font-size: .82rem; min-height: 30px; }
.text-button .icon { width: 15px; height: 15px; }
.layer-menu { position: absolute; top: calc(100% + 6px); right: 0; width: 130px; background: #10282dfc; border: 1px solid #3e6665; box-shadow: 0 9px 22px #00101499; padding: 6px; border-radius: 4px; }
.layer-menu label { display: flex; align-items: center; gap: 8px; color: #c3d7d5; font-size: .86rem; padding: 6px 4px; cursor: pointer; }
.layer-menu input { accent-color: #67deba; width: 15px; height: 15px; }
.viewport { flex: 1; min-height: 0; container-type: size; position: relative; overflow: hidden; touch-action: pan-y; }
.map-grid { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 50% 56%,#143e3e8c,transparent 70%); }
.map-grid::before {
  content: ""; position: absolute; inset: -8% -30% -16%; transform: perspective(620px) rotateX(39deg);
  background-image: linear-gradient(#315e631f 1px, transparent 1px),linear-gradient(90deg,#315e631f 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(ellipse,#000 28%,transparent 73%);
}
.map-grid::after { position:absolute; content:""; width: 83%; height: 60%; top: 22%; left: 8.5%; border: 1px dashed #4371733d; border-radius: 50%; transform: rotate(-7deg); }
.map-anchor { position:absolute; left:50%; top:50%; width:min(96cqw,189cqh); height:min(64cqw,100cqh); transform:translate(-50%,-50%); pointer-events:none; mix-blend-mode:lighten; }
.viewport[data-mode="station"] .map-anchor { width:min(96cqw,166cqh); }
.map-camera { position: absolute; inset: 0; transform-origin: center; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; user-select: none; mix-blend-mode: lighten; filter: saturate(.7) hue-rotate(13deg) brightness(.77) contrast(1.03); }
.viewport[data-mode="station"] .map-art { filter: saturate(.73) brightness(.85); mask-image: radial-gradient(ellipse 73% 72% at 50% 50%,#000 69%,transparent 100%); }
.viewport[data-mode="forecast"] .map-art, .viewport[data-mode="emergency"] .map-art { filter: saturate(.55) brightness(.65) hue-rotate(12deg); }
.can-pan { cursor: grab; touch-action: none; } .panning { cursor: grabbing; }
.routes, .nodes { width: 100%; height: 100%; position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.network-edge { fill: none; stroke-linecap: round; }
.edge-line { stroke: var(--path-color); stroke-width: 1.65; opacity: .91; }
.edge-glow { stroke: var(--path-color); stroke-width: 5; opacity: .19; filter: blur(1.7px); }
.flow { stroke: #ddfff1; stroke-width: 2; opacity: .85; stroke-dasharray: 3 97; animation: flow 5s linear infinite; animation-delay: var(--delay); }
@keyframes flow { to { stroke-dashoffset: -100; } }
.edge-hit { pointer-events: stroke; stroke: transparent; stroke-width: 16; cursor: pointer; }
.network-edge:has(.edge-hit:hover) .edge-line, .edge-hit:focus-visible { stroke: #f1ffff; stroke-width: 3; }
.viewport[data-mode="lines"] .edge-line { stroke-width: 3; }
.viewport[data-mode="emergency"] .edge-line { stroke-dasharray: 6 5; }
.geo-node { pointer-events: auto; position: absolute; isolation: isolate; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: var(--node-color); transform: translate(-50%,-50%) scale(var(--node-scale,1)); outline-offset: 0; }
.geo-node:hover,.geo-node:focus-visible { z-index: 2; }
.node-beacon { display: grid; place-items: center; position: relative; isolation: isolate; }
.pin .node-beacon { width: 13px; height: 13px; border: 1px solid var(--node-color); background: #0b2e2ddd; border-radius: 50%; box-shadow: 0 0 8px var(--node-color); }
.pin .node-beacon i { width: 5px; height: 5px; border-radius: 50%; background: #d4fff4; }
.symbol .node-beacon { width: 24px; height: 24px; border-radius: 5px; color: var(--node-color); background: #0a252be8; border: 1px solid var(--node-color); box-shadow: 0 0 9px #061c1c; }
.symbol .node-beacon > svg { width: 17px; height: 17px; }
.hub .node-beacon { width: 28px; height: 28px; border-radius: 50%; background: #12433de8; }
.hub .node-beacon > svg { width: 19px; height: 19px; }
.hub .node-beacon::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--node-color); opacity: .54; border-radius: 50%; animation: ping 3.8s ease-out infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(.73); opacity: .65; } 75%,100% { transform: scale(1.28); opacity: 0; } }
.node-label {
  position:absolute; left:50%; top:calc(50% + 9px); transform:translateX(-50%); display:grid; justify-items:center;
  white-space:nowrap; font:500 clamp(.69rem,.79vw,.86rem)/1.3 var(--sans); padding:1px 5px 2px;
  border:1px solid #49716cc9; border-radius:2px; color:#e0f1e9; background:#071c22eb;
}
.node-value { color:#a8e3cc; font:600 clamp(.7rem,.81vw,.9rem)/1.15 var(--num),var(--sans); letter-spacing:.02em; }
.geo-node.symbol .node-label { top:calc(50% + 13px); }
.geo-node.hub .node-label { color:#b6ffdf; border-color:#659f8b; }
.geo-node.watch .node-label,.geo-node.alert .node-label { border-color:color-mix(in srgb,var(--node-color) 65%,transparent); }
.geo-node.watch .node-value,.geo-node.alert .node-value { color:var(--node-color); }
.geo-node:hover .node-label,.geo-node:focus-visible .node-label { background:#123d3a; color:#fff; border-color:#adf6da; }
.sampled-node .node-label { border-left:2px solid #ddf2b7; }
.sampled-edge .edge-line { stroke:#d8f2b6; stroke-width:3; }
.sampled-edge .edge-glow { opacity:.36; stroke-width:7; }
.edge-reading { pointer-events:none; }
.edge-reading rect { fill:#0a2529; stroke:var(--path-color); stroke-width:.7; }
.edge-reading text { fill:var(--path-color); font:600 13px var(--num); }
.no-base .map-art,.no-routes .network,.no-labels .node-name,.no-values .node-value,.no-values .edge-reading,.no-labels.no-values .node-label { display:none; }
.compass { position: absolute; top: 12px; right: 19px; color: #7da5a5; display: flex; align-items: center; flex-direction: column; gap: 1px; pointer-events: none; }
.compass b { font: 600 .76rem var(--num); } .compass svg { width: 13px; height: 22px; }
.zoom-tools { display:flex; border:1px solid #315253; border-radius:4px; background:#0a2026e8; overflow:hidden; }
.zoom-tools button { width:28px; height:28px; color:#bbd3cd; font-size:14px; }
.zoom-tools button + button { border-left:1px solid #264348; }
.map-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; flex:none; margin: 0 clamp(10px,1.05vw,20px); border-top: 1px solid #29434a; }
.map-legend { display: flex; gap: 14px; color: #a3bdbb; font-size: .79rem; }
.map-legend b { font:600 .9rem var(--num); color:#d9e9e2; }
.readout-key { margin-left:auto; margin-right:7px; color:#9dbab9; font-size:.73rem; white-space:nowrap; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 7px; height: 7px; background: var(--legend-color); box-shadow: 0 0 5px color-mix(in srgb, var(--legend-color) 35%, transparent); }
.site-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 1px 6px; color: #83a0a4; font-size: .77rem; }
.site-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.site-foot b { font: 600 .85rem var(--num); }
.foot-mark { width: 12px; height: 9px; border-block: 1px solid #76a59a; position: relative; }
.foot-mark::after { content: ""; position: absolute; width: 8px; height: 1px; background: #76a59a; top: 3px; }
.sep { opacity: .5; }
.dialog-open { overflow: hidden; }
dialog { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(430px,100%); height: 100%; height: 100dvh; max-height: 100dvh; max-width: 100vw; color: var(--white); background: #0c2229; border: 0; border-left: 1px solid #37575c; box-shadow: -12px 0 65px #0005; }
dialog::backdrop { background: #010b10a8; backdrop-filter: blur(2px); }
.detail-shell { display: flex; flex-direction: column; height: 100%; }
.detail-head { padding: 26px 23px; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg,#143439,#0e242a); }
.detail-head small { font-size: .82rem; color: #94b9b6; } .detail-head h2 { margin-top: 5px; font-size: 1.45rem; line-height: 1.45; }
.detail-head .icon-button { flex-shrink: 0; }
.detail-body { padding: 20px 23px 32px; overflow-y: auto; }
.flag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb,var(--level) 33%,transparent); padding: 2px 8px; border-radius: 3px; color: var(--level); background: color-mix(in srgb,var(--level) 8%,transparent); font-size: .82rem; white-space: nowrap; }
.flag i { width: 5px; height: 5px; background: var(--level); }
.facts { margin: 14px 0 24px; }
.facts > div { display:flex; justify-content:space-between; align-items: baseline; padding: 12px 1px; gap: 15px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; } .facts dd { text-align: right; color: #e7f4ef; font-weight: 550; }
.detail-body h3 { font-size: 1rem; margin: 0 0 10px; }
.handover-intro, .handover-log p, .followup p { color: #b7cece; line-height: 1.75; font-size: .91rem; }
.handover-intro { margin-bottom: 19px; }
.handover-log { padding: 0; list-style: none; }
.handover-log li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding-bottom: 17px; }
.handover-log time { align-self: start; color: #8fe1bd; font: 600 1.12rem var(--num); border-top: 1px solid #395754; padding-top: 3px; }
.handover-log h3, .followup h3 { margin: 0 0 3px; }
.handover-log a, .followup a, .handover-back, #portfolio-back { display: inline-block; color: #92e5c5; font-size: .86rem; }
.handover-log a, .followup a { margin-top: 4px; }
.handover-log a:hover, .followup a:hover, .handover-back:hover, #portfolio-back:hover { text-decoration: underline; }
.handover-back { margin-top: 20px; }
.followup { padding: 13px 15px; border-left: 2px solid #e5b068; background: #39332563; }
.followup small { display: block; color: #e8bd7f; margin-bottom: 4px; }
.signoff { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; color: #aac1be; font-size: .84rem; }
.signoff button { padding: 7px 12px; background: #8ceac8; color: #0c3029; font-weight: 650; border-radius: 3px; }
.signoff button[aria-pressed="true"] { background: #193740; color: #c4dfd7; }
.drawer-link { width: 100%; padding: 13px 11px; border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; gap: 8px; text-align: left; background: #102a30; color: #cde6df; font-size: .9rem; }
.drawer-link small { margin-left: auto; color: var(--secondary); }
.drawer-link:hover, .drawer-list button:hover { background: #16373b; }
.drawer-list { list-style: none; padding: 0; }
.drawer-list li { border-bottom: 1px solid var(--line); }
.drawer-list button { width: 100%; display:flex; justify-content:space-between; align-items:center; gap: 12px; padding: 15px 5px; text-align: left; }
.drawer-list button > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.drawer-list b { font-size: .95rem; font-weight: 550; } .drawer-list small { color: var(--muted); font-size: .81rem; }
.filter-tabs { gap: 3px; margin: 0 0 12px; } .filter-tabs button { padding: 5px 14px; border-radius: 2px; font-size: .87rem; }
.event-description { margin: 17px 0; color: #c3d8d6; line-height: 1.85; }
.drawer-actions { display:flex; gap:10px; margin-top: 23px; }
.primary-button { padding: 8px 15px; background: #7ae7be; color: #062d26; border-radius: 4px; font-weight: 650; font-size: .9rem; }
.primary-button:hover { background: #a2f4d5; }
.empty { padding: 22px 0; color: var(--muted); }
.mix-body { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:space-evenly; gap:5px; padding:8px clamp(10px,.9vw,18px); }
.mix-strip { display:flex; height:9px; flex:none; gap:2px; overflow:hidden; border-radius:2px; }
.mix-strip span { min-width:0; }
.mix-entries { display:grid; grid-template-columns:1fr 1fr; column-gap:12px; row-gap:5px; }
.mix-entry { display:flex; flex-direction:column; min-width:0; }
.mix-entry dt { display:flex; align-items:center; gap:5px; font-size:.77rem; color:#abc5c5; }
.mix-entry dt i { width:6px; height:6px; flex:none; border-radius:1px; }
.mix-entry dd { display:flex; align-items:baseline; justify-content:space-between; gap:4px; padding-left:11px; font:600 1.12rem/1.16 var(--num); }
.mix-entry dd span { font-size:.87rem; color:#96b4b3; }
.history-panel { container-type:inline-size; }
.heat-key { display:flex; align-items:center; gap:5px; color:#a4bebb; font:600 .8rem var(--num),var(--sans); }
.heat-key i { width:43px; height:5px; border-radius:1px; }
.matrix-wrap { flex:1; min-height:0; margin:4px clamp(7px,.73vw,14px) 1px; }
.matrix { --label-width:clamp(48px,4.85vw,82px); display:flex; flex-direction:column; gap:2px; width:100%; height:100%; }
.matrix thead { flex:none; height:15px; } .matrix tbody { flex:1; min-height:0; display:flex; flex-direction:column; gap:2px; }
.matrix tr { display:grid; grid-template-columns:var(--label-width) repeat(var(--samples),minmax(0,1fr)); gap:2px; align-items:stretch; }
.matrix tbody tr { flex:1; min-height:0; }
.matrix th,.matrix td { display:grid; align-items:stretch; min-height:0; padding:0; line-height:1; }
.matrix th { font-weight:500; } .matrix th:first-child { text-align:left; }
.matrix thead th { align-items:center; color:#93acad; font:600 .75rem/1 var(--num),var(--sans); }
.matrix tbody th button { display:block; width:100%; min-height:0; padding:0; text-align:left; color:#c5d9d3; font:500 .79rem/1.05 var(--sans); white-space:nowrap; }
.matrix tbody th button:hover { color:#9cf1d1; }
.sample-cell { display:block; width:100%; height:100%; min-width:0; min-height:0; border-radius:2px; padding:0; color:var(--ink); background:var(--cell); font:600 .77rem/1 var(--num); font-variant-numeric:tabular-nums; }
.sample-cell:hover { box-shadow:inset 0 0 0 1px #e5fff2; }
.sample-cell[aria-pressed="true"] { box-shadow:inset 0 0 0 2px #f3ffdd; }
.sample-cell:focus-visible { outline-offset:0; }
.history-foot { flex:none; display:flex; align-items:center; justify-content:space-between; gap:4px; min-height:26px; margin:0 clamp(9px,.9vw,16px) 2px; }
.history-foot output { display:flex; align-items:baseline; gap:7px; color:#a3bdba; font-size:.77rem; }
.history-foot output strong { color:#d6f8e7; font:600 .94rem var(--num),var(--sans); }
.sample-delta { color:#8caaac; }
.history-foot .subtle-button { padding:2px 0; font-size:.76rem; }
.watch-table { flex:1; min-height:0; display:flex; flex-direction:column; padding:4px clamp(9px,.9vw,18px) 6px; }
.watch-columns,.watch-row { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.82fr) minmax(0,.86fr); align-items:center; gap:4px; text-align:right; }
.watch-columns { color:var(--secondary); font-size:.72rem; margin:1px 0 3px; }
.watch-columns span:first-child,.measure-name { text-align:left; }
.watch-row { flex:1; min-height:23px; width:100%; padding:2px 0; border-bottom:1px solid var(--line-soft); }
.watch-row:last-child { border:0; } .watch-row:hover .measure-name { color:var(--mint); }
.measure-name { display:flex; align-items:center; gap:5px; line-height:1.2; font-size:.8rem; color:#c7dcda; }
.measure-name i { display:inline-grid; width:8px; place-items:center; color:var(--level); flex:none; font:600 .91rem var(--num); }
.watch-row strong { font:600 1rem var(--num),var(--sans); color:#def0e9; white-space:nowrap; }
.watch-row strong small { font-size:.73rem; color:#a4c1bf; }
.watch-row.watch strong { color:#efc67d; }
.watch-row .reference { font:600 .86rem var(--num),var(--sans); color:#99b5b5; white-space:nowrap; }
@container (max-width: 545px) {
  .sample-cell { font-size:.71rem; } .matrix { --label-width:54px; }
}
@container (max-width: 445px) {
  .sample-cell span { display:none; } .sample-cell::after { content:attr(data-compact); font-size:.69rem; } .matrix thead th { font-size:.69rem; }
  .sample-delta { display:none; }
}
.geo-node.placed-label .node-label,.geo-node.symbol.placed-label .node-label {
  left:calc(50% + var(--label-x)); top:calc(50% + var(--label-y)); transform:none;
}
@media (min-width: 1051px) {
  .shell { height:clamp(692px,100svh,1360px); display:flex; flex-direction:column; }
  .masthead,.scene-nav,.metrics,.site-foot { flex:none; } main { display:flex; flex-direction:column; min-height:0; flex:1; }
  .board { flex:1; min-height:0; }
}
@media (min-width: 1600px) {
  .masthead { min-height:72px; } .scene-nav a { height:44px; }
  main { padding-top:15px; } .metric { padding-block:15px 13px; }
  .panel-head { min-height:45px; } .rank-object,.event-copy b,.measure-name,.matrix tbody th button { font-size:.97rem; }
  .sample-cell { font-size:.9rem; } .mix-entry dt { font-size:.89rem; } .mix-entry dd { font-size:1.35rem; }
  .map-foot,.history-foot { min-height:36px; } .rank-amount,.watch-row strong { font-size:1.18rem; }
}
@media (min-width:1051px) and (max-height:800px) {
  .masthead { min-height:49px; } .brand img { width:32px; height:32px; } .brand b { font-size:1rem; }
  .mast-title h1 { font-size:1.42rem; } .scene-nav a { height:33px; }
  main { padding-top:7px; } .metric { padding-block:7px 6px; } .metric-data strong { font-size:1.94rem; }
  .board { gap:7px; margin-top:7px; grid-template-rows:minmax(0,.96fr) minmax(0,1fr) minmax(0,.79fr); }
  .panel-head { min-height:32px; } .panel-head h2 { font-size:.94rem; }
  .map-head { padding-top:8px; } .map-head h2 { font-size:1.13rem; } .map-head p { margin-top:2px; }
  .map-foot { min-height:28px; } .site-foot { padding-block:3px; }
  .dial { max-width:130px; } .readings > div { padding-block:2px; }
  .readings dd { font-size:1.04rem; } .readings dt { font-size:.74rem; }
  .history-foot { min-height:22px; } .history-foot .subtle-button { padding:1px 0; }
  .rank-list button { min-height:19px; padding-block:1px 4px; }
  .trend-summary { padding-top:3px; } .mix-body { padding-block:6px; }
}
@media (max-width:1200px) {
  .wing { width:42px; } .mast-title { gap:8px; }
  .metric-label h2 { font-size:.77rem; } .sparkline { width:29px; right:6px; }
  .rank-object { gap:4px; font-size:.8rem; } .event-row { gap:5px; grid-template-columns:31px minmax(0,1fr) auto; }
  .event-copy b,.measure-name { font-size:.78rem; } .event-state { padding-inline:3px; }
}
@media (max-width:1050px) {
  .shell { padding-inline:clamp(10px,1.7vw,17px); } .masthead { min-height:58px; }
  .wing { display:none; } .mast-title h1 { font-size:1.35rem; } .head-tools { gap:10px; } .brand img { width:35px; height:35px; }
  .scene-nav a { height:38px; } .metric { padding:8px 9px; } .metric-label { gap:4px; } .metric-label .icon { width:13px; height:13px; }
  .metric-data strong { font-size:1.72rem; } .sparkline { display:none; }
  .board { grid-template-columns:minmax(0,1.54fr) minmax(227px,1fr); grid-template-rows:160px 155px auto auto auto;
    grid-template-areas:"map trend" "map balance" "history history" "ranking events" "composition watchPanel"; gap:8px; margin-top:8px; }
  .map-head { padding:11px 12px 0; } .map-head h2 { font-size:1.13rem; } .map-head p { font-size:.74rem; }
  .panel-head { min-height:34px; } .map-foot { min-height:30px; } .dial { max-width:108px; }
  .readings > div { padding-block:3px; } .readings dt { font-size:.75rem; line-height:1.16; } .readings dd { font-size:1rem; line-height:1.14; }
  .dial-label strong { font-size:1.64rem; } .dial-label > span { font-size:.69rem; }
  .ranking,.events { min-height:191px; } .history-panel { height:174px; }
  .composition,.watch-panel { min-height:157px; }
  .rank-object,.event-copy b,.measure-name { font-size:.87rem; }
}
@media (min-width:671px) and (max-width:889px) {
  .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .metric { padding:5px 10px; } .metric:nth-child(3n) { border-right:0; } .metric:nth-child(-n+3) { border-bottom:1px solid var(--line); }
  .sparkline { display:block; width:37px; } .clock small { font-size:.64rem; }
  .map-anchor { width:min(95cqw,175cqh); }
  .geo-node .node-label { font-size:.68rem; } .node-value { font-size:.69rem; }
}
@media (max-width:670px) {
  .shell { padding-inline:10px; } .masthead { min-height:50px; grid-template-columns:auto minmax(0,1fr) auto; gap:6px; }
  .brand { gap:5px; } .brand img { width:28px; height:28px; } .brand b { font-size:.91rem; letter-spacing:.08em; } .brand small { font-size:.54rem; }
  .mast-title h1 { font-size:clamp(1.01rem,3.1vw,1.25rem); letter-spacing:.06em; } .clock { display:none; } .head-tools { gap:6px; }
  .shift-button { font-size:.7rem; gap:4px; padding:5px 6px; } .fullscreen { width:28px; height:28px; }
  .scene-nav { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; }
  .scene-nav a { height:32px; font-size:.81rem; gap:4px; } .scene-nav .icon { width:15px; height:15px; }
  .scene-nav a:nth-child(-n+3) { border-bottom:1px solid var(--line-soft); } .scene-nav a:nth-child(3)::after { display:none; }
  main { padding-top:7px; } .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .metric { padding:6px 7px; } .metric:nth-child(3n) { border-right:0; } .metric:nth-child(-n+3) { border-bottom:1px solid var(--line); }
  .metric::after { left:7px; width:17px; } .metric-label .icon { width:12px; height:12px; } .metric-label h2 { font-size:.71rem; }
  .metric-data { gap:3px; margin-top:1px; } .metric-data strong { font-size:1.55rem; } .metric-data > span { font-size:.73rem; }
  .metric p { font-size:.68rem; line-height:1.25; margin-top:2px; }
  .board { grid-template-columns:1fr 1fr; grid-template-rows:auto; grid-template-areas:"map map" "history history" "balance trend" "ranking events" "composition watchPanel"; gap:7px; margin-top:7px; }
  .map-panel { height:clamp(266px,59vw,350px); }
  .map-head { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"mapTitle tools" "caption caption"; align-items:center; gap:2px 5px; padding:9px 10px 0; }
  .map-head > div:first-child { display:contents; }
  .map-head h2 { grid-area:mapTitle; font-size:1.01rem; line-height:1.25; letter-spacing:.015em; }
  .map-head p { grid-area:caption; margin:0; font-size:.71rem; line-height:1.3; }
  .map-actions { grid-area:tools; }
  .map-foot { min-height:27px; margin-inline:10px; } .map-legend { gap:10px; }
  .map-legend span { gap:4px; } .map-legend,.subtle-button { font-size:.74rem; }
  .compass { top:4px; right:10px; } .compass svg { width:9px; height:14px; }
  .map-actions { gap:4px; } .map-actions .text-button { min-height:26px; padding:3px 6px; font-size:.74rem; }
  .zoom-tools button { width:22px; height:24px; }
  .node-label { font-size:.67rem; padding:1px 3px; } .node-value { font-size:.68rem; }
  .geo-node.symbol .node-beacon { width:19px; height:19px; } .geo-node.symbol .node-beacon .icon { width:13px; height:13px; }
  .geo-node.symbol .node-label { top:calc(50% + 10px); }
  .balance,.trend { height:187px; } .history-panel { height:163px; }
  .site-foot { font-size:.7rem; }
}
@media (max-width:510px) {
  .board { grid-template-columns:1fr; grid-template-areas:"map" "history" "trend" "ranking" "watchPanel" "composition" "balance" "events"; }
  .brand small,.fullscreen { display:none; } .metric-label .icon { display:none; }
  .metric-label h2 { font-size:.74rem; } .metric p { font-size:.68rem; }
  .history-panel { height:170px; } .trend { height:207px; } .balance { height:167px; }
  .ranking,.events { min-height:183px; } .composition,.watch-panel { min-height:154px; }
  .node-label { padding-inline:3px; } .node-value { font-size:.65rem; }
  .panel-head { margin-inline:12px; } .history-panel .panel-head { margin-inline:9px; }
  .site-foot>span { gap:3px; }
}
@media (max-width:355px) {
  .map-panel { height:284px; } .map-foot { gap:4px; } .readout-key { margin-right:0; }
  .brand img { width:23px; height:23px; } .brand b { font-size:.82rem; }
  .mast-title h1 { font-size:.91rem; } .metric { padding-inline:5px; }
  .metric-label h2 { font-size:.68rem; } .metric-data strong { font-size:1.4rem; }
  .metric p { font-size:.65rem; } .node-label { padding:0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
