:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --panel: rgba(16, 24, 44, 0.82);
  --panel-2: rgba(22, 32, 57, 0.9);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.15);
  --text: #f5f8ff;
  --muted: #9aa8c2;
  --soft: #70809e;
  --travel: #65a7ff;
  --travel-soft: rgba(101,167,255,0.13);
  --pilot: #7bd4a6;
  --pilot-soft: rgba(123,212,166,0.13);
  --warning: #f3c977;
  --danger: #ff8d8d;
  --shadow: 0 22px 80px rgba(0,0,0,.28);
  --radius: 20px;
  --radius-sm: 13px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(57,98,185,.22), transparent 29rem),
    radial-gradient(circle at 88% 12%, rgba(24,120,92,.15), transparent 32rem),
    linear-gradient(180deg, #090e1a 0%, #070b14 55%, #060910 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgba(101,167,255,.8); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 26px 18px 18px;
  border-right: 1px solid var(--border); background: rgba(7,11,20,.8); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 20px; background: linear-gradient(145deg,#4c8dff,#8bb8ff); box-shadow: 0 10px 30px rgba(76,141,255,.3); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy span { color: var(--muted); font-size: 13px; }
.nav { display: grid; gap: 5px; }
.nav-group-label { margin: 15px 10px 5px; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #65738e; }
.nav-item { border: 0; background: transparent; color: #a9b5ca; min-height: 43px; border-radius: 12px; display: flex; align-items: center; gap: 11px; padding: 0 12px; text-align: left; font-weight: 650; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.045); color: #eef4ff; }
.nav-item.active { background: rgba(101,167,255,.13); color: #fff; }
.nav-item.travel-nav.active { background: var(--travel-soft); color: #d9eaff; }
.nav-item.pilot-nav.active { background: var(--pilot-soft); color: #d9ffeb; }
.nav-icon { width: 22px; text-align: center; font-size: 17px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding: 17px 9px 5px; color: var(--muted); }
.sidebar-foot small { display: block; margin-top: 6px; line-height: 1.4; }
.version-row { display: flex; gap: 8px; align-items: center; color: #dce6f8; }
.status-dot { width: 8px; height: 8px; background: #62daa0; border-radius: 50%; box-shadow: 0 0 0 5px rgba(98,218,160,.08); }

.main { min-width: 0; padding: 30px 34px 70px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.topbar h1 { margin: 4px 0 5px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.05; }
.topbar p { margin: 0; color: var(--muted); max-width: 760px; }
.context-chip, .eyebrow, .panel-kicker { font-size: 10px; font-weight: 850; letter-spacing: .15em; color: #8294b4; }
.top-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.primary, .secondary, .world-link, .file-button, .link-btn { border-radius: 12px; transition: .18s ease; }
.primary { border: 1px solid transparent; color: #07101d; background: #84b7ff; padding: 10px 15px; font-weight: 800; box-shadow: 0 8px 26px rgba(92,157,255,.18); }
.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary.pilot-button { background: #83ddb0; color: #07130d; box-shadow: 0 8px 26px rgba(80,196,139,.15); }
.primary.travel-button { background: #84b7ff; color: #07101d; }
.secondary { border: 1px solid var(--border-strong); color: #dce6f8; background: rgba(255,255,255,.035); padding: 10px 15px; font-weight: 750; }
.secondary:hover { background: rgba(255,255,255,.07); }

.page { display: none; animation: pageIn .18s ease; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(17,25,45,.9), rgba(12,19,34,.88)); box-shadow: var(--shadow); }

.separation-banner { display: grid; grid-template-columns: 1.3fr .8fr; gap: 26px; align-items: center; padding: 27px 29px; margin-bottom: 18px; position: relative; overflow: hidden; }
.separation-banner:after { content:""; position:absolute; width: 260px; height:260px; border-radius:50%; right:-100px; top:-120px; background: radial-gradient(circle, rgba(101,167,255,.13), transparent 68%); pointer-events:none; }
.separation-copy h2 { margin: 5px 0 8px; font-size: clamp(24px,2.6vw,34px); letter-spacing: -.035em; }
.separation-copy p { margin: 0; color: #b2bfd4; line-height: 1.6; max-width: 780px; }
.split-legend { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.legend-item { min-width: 0; display:flex; align-items:center; gap: 10px; border:1px solid var(--border); border-radius:15px; padding:14px; }
.legend-item > span { font-size: 23px; }
.legend-item div { display:grid; gap:3px; }
.legend-item b { font-size:14px; }
.legend-item small { color:var(--muted); }
.travel-tone { background: var(--travel-soft); }
.travel-tone > span { color: var(--travel); }
.pilot-tone { background: var(--pilot-soft); }
.pilot-tone > span { color: var(--pilot); }
.divider-arrow { align-self:center; color:#60708c; font-size:24px; font-weight:900; }

.world-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.world-card { padding: 23px; position: relative; overflow:hidden; }
.travel-world { border-color: rgba(101,167,255,.2); }
.pilot-world { border-color: rgba(123,212,166,.2); }
.world-card:before { content:""; position:absolute; inset:0 auto auto 0; width:100%; height:2px; opacity:.8; }
.travel-world:before { background: linear-gradient(90deg,var(--travel),transparent 75%); }
.pilot-world:before { background: linear-gradient(90deg,var(--pilot),transparent 75%); }
.world-head { display:flex; gap:13px; align-items:flex-start; }
.world-icon { flex:0 0 auto; width:43px; height:43px; display:grid; place-items:center; border-radius:13px; font-size:20px; background:rgba(255,255,255,.045); border:1px solid var(--border); }
.travel-world .world-icon { color: var(--travel); background: var(--travel-soft); }
.pilot-world .world-icon { color: var(--pilot); background: var(--pilot-soft); }
.world-head h2, .world-head h3 { margin:4px 0 4px; letter-spacing:-.03em; }
.world-head h2 { font-size:24px; }
.world-head h3 { font-size:20px; }
.world-head p { margin:0; color:var(--muted); line-height:1.45; }
.world-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:20px 0 14px; }
.world-metrics > div { padding:12px; border:1px solid var(--border); border-radius:13px; background:rgba(255,255,255,.025); display:grid; gap:5px; }
.world-metrics span { color:var(--muted); font-size:11px; }
.world-metrics b { font-size:19px; letter-spacing:-.02em; }
.next-card { border:1px solid rgba(101,167,255,.16); background:rgba(101,167,255,.055); border-radius:15px; padding:15px; min-height:116px; }
.pilot-next { border-color:rgba(123,212,166,.16); background:rgba(123,212,166,.055); }
.route-row { display:grid; grid-template-columns:82px 1fr 82px; align-items:end; gap:12px; margin-top:13px; }
.route-row strong { display:block; font-size:25px; letter-spacing:-.03em; }
.route-row span { display:block; color:var(--muted); font-size:11px; margin-top:2px; }
.route-row .right { text-align:right; }
.route-center { text-align:center; min-width:0; }
.route-center small { color:#9cafc9; font-size:10px; }
.route-line { display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; margin:7px 0 5px; color:var(--travel); }
.route-line i { height:1px; background:rgba(101,167,255,.45); }
.route-line b { font-size:15px; }
.pilot-last { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:14px; }
.pilot-last .pilot-summary-main { display:grid; gap:4px; }
.pilot-last b { font-size:17px; }
.pilot-last span, .pilot-last small { color:var(--muted); }
.pilot-summary-time { text-align:right; }
.pilot-summary-time strong { display:block; color:#cffff0; font-size:22px; }
.world-link { width:100%; display:flex; justify-content:space-between; align-items:center; border:0; background:transparent; padding:12px 2px 0; font-weight:800; color:#cbd8eb; }
.travel-link { color:#bcd8ff; }
.pilot-link { color:#bcf3d7; }
.subtle-link { color:#9da9bd; }
.dual-links { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.roadmap-card { padding:23px; }
.panel-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.panel-head h3 { margin:4px 0 4px; font-size:20px; letter-spacing:-.025em; }
.panel-head p { margin:0; color:var(--muted); font-size:13px; }
.pill { display:inline-flex; align-items:center; border-radius:999px; padding:6px 9px; font-size:10px; font-weight:850; white-space:nowrap; border:1px solid var(--border); }
.pill.neutral { color:#aebbd0; background:rgba(255,255,255,.035); }
.pilot-pill { color:#baf1d5; border-color:rgba(123,212,166,.22); background:var(--pilot-soft); }
.flow-grid { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:13px; align-items:center; margin-top:19px; }
.flow-item { min-height:68px; display:flex; align-items:center; gap:11px; padding:12px; border-radius:14px; border:1px solid rgba(101,167,255,.14); background:rgba(101,167,255,.045); }
.flow-item > b { flex:0 0 auto; width:29px; height:29px; border-radius:9px; display:grid; place-items:center; background:rgba(101,167,255,.14); color:#bdd9ff; }
.flow-item div { display:grid; gap:3px; }
.flow-item strong { font-size:13px; }
.flow-item span { font-size:11px; color:var(--muted); line-height:1.35; }
.flow-arrow { color:#63738f; }
.flow-separator { height:1px; background:var(--border); margin:16px 0; }
.pilot-flow { margin-top:0; }
.pilot-flow .flow-item { border-color:rgba(123,212,166,.14); background:rgba(123,212,166,.045); }
.pilot-flow .flow-item > b { background:rgba(123,212,166,.14); color:#c7f4dc; }

.section-intro { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:18px; padding:3px 2px; }
.section-intro h2 { margin:4px 0 4px; font-size:29px; letter-spacing:-.035em; }
.section-intro p { margin:0; color:var(--muted); max-width:750px; }
.travel-intro .eyebrow { color:#79b4ff; }
.pilot-intro .eyebrow { color:#82d8ad; }

.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.metric { padding:17px; display:grid; gap:7px; min-height:105px; }
.metric > span { color:#a6b3c9; font-size:12px; }
.metric strong { font-size:27px; letter-spacing:-.04em; }
.metric small { color:#71809b; }
.travel-metrics .metric { border-color:rgba(101,167,255,.13); }
.pilot-metrics .metric, .stats-metrics .metric { border-color:rgba(123,212,166,.13); }

.toolbar { display:flex; justify-content:space-between; gap:14px; padding:12px; margin-bottom:12px; }
.segmented { display:flex; gap:3px; padding:3px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid var(--border); flex-wrap:wrap; }
.segmented button { border:0; background:transparent; color:#8e9bb4; padding:8px 11px; border-radius:9px; font-weight:750; font-size:12px; }
.segmented button.active { color:#f3f7ff; background:rgba(101,167,255,.16); box-shadow:inset 0 0 0 1px rgba(101,167,255,.13); }
#statsMode button.active { background:rgba(123,212,166,.16); box-shadow:inset 0 0 0 1px rgba(123,212,166,.13); }
.search { display:flex; align-items:center; gap:8px; min-width:min(320px,40vw); padding:0 11px; border:1px solid var(--border); border-radius:11px; background:rgba(255,255,255,.025); color:#667895; }
.search input { width:100%; border:0; outline:0; background:transparent; color:var(--text); padding:8px 0; }
.search input::placeholder { color:#66748c; }
.table-card { overflow:hidden; margin-bottom:13px; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:790px; }
th { text-align:left; color:#7585a1; font-size:10px; letter-spacing:.05em; text-transform:uppercase; font-weight:850; padding:13px 15px; background:rgba(255,255,255,.018); border-bottom:1px solid var(--border); }
td { padding:14px 15px; border-bottom:1px solid rgba(255,255,255,.055); color:#c7d1e2; font-size:13px; }
tbody tr { transition:.15s ease; }
tbody tr[data-id]:hover { background:rgba(255,255,255,.035); cursor:pointer; }
tbody tr.selected { background:rgba(101,167,255,.07); }
.pilot-table tbody tr.selected { background:rgba(123,212,166,.07); }
.status { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:5px 8px; font-size:10px; font-weight:850; border:1px solid var(--border); }
.status.done { color:#b8efd2; background:rgba(123,212,166,.08); border-color:rgba(123,212,166,.17); }
.status.future { color:#bdd8ff; background:rgba(101,167,255,.09); border-color:rgba(101,167,255,.17); }
.route-state { color:#aebdd3; font-weight:750; }
.route-state.missing { color:#d8b77c; }
.detail-card { padding:21px; min-height:150px; }
.empty-state { min-height:105px; display:grid; place-items:center; align-content:center; gap:6px; color:#8391aa; text-align:center; }
.empty-state b { color:#c7d2e3; }
.detail-header { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.detail-header h3 { margin:3px 0; font-size:22px; }
.detail-header p { margin:0; color:var(--muted); }
.detail-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin-top:17px; }
.detail-box { padding:12px; border-radius:12px; border:1px solid var(--border); background:rgba(255,255,255,.024); display:grid; gap:5px; }
.detail-box span { color:#75849e; font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.detail-box b { font-size:13px; }
.detail-note { grid-column:1/-1; }

.pilot-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr); gap:14px; }
.panel { padding:20px; }
.pilot-layout .panel { min-width:0; }
.link-btn { border:0; background:transparent; color:#9ddebE; font-weight:800; padding:4px 0; }
.map-panel { overflow:hidden; }
.map-demo { margin-top:15px; height:310px; border-radius:15px; overflow:hidden; border:1px solid rgba(123,212,166,.12); background:linear-gradient(180deg,#0a1720,#08131b); }
.map-demo svg { width:100%; height:100%; display:block; }
.map-demo pattern path { stroke:rgba(140,190,180,.08); stroke-width:1; }
.map-demo .track { fill:none; stroke:#71d5a3; stroke-width:3.2; stroke-linecap:round; filter:drop-shadow(0 0 8px rgba(113,213,163,.22)); }
.map-demo .map-point { fill:#d2ffE7; stroke:#4db984; stroke-width:3; }
.map-demo text { fill:#aac8bd; font: 13px system-ui; }
.map-meta { display:flex; justify-content:space-between; gap:10px; margin-top:12px; color:#8fa19e; font-size:12px; }
.map-meta b { color:#d6fbe8; }

.filter-card { padding:13px; margin-bottom:13px; }
.filter-row { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.date-controls { display:flex; gap:8px; }
.date-controls label { display:flex; align-items:center; gap:8px; color:#8d9bb2; font-size:11px; }
.date-controls input, .date-controls select { color:#e1e8f3; background:#0b1323; border:1px solid var(--border-strong); border-radius:9px; padding:8px 9px; }
.hidden { display:none !important; }
.filter-summary { margin-top:10px; color:#72829c; font-size:11px; padding:0 4px; }
.chart-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-bottom:13px; }
.bar-chart { height:250px; display:flex; align-items:flex-end; justify-content:space-around; gap:20px; padding:28px 14px 5px; }
.bar-wrap { height:100%; flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; position:relative; min-width:55px; }
.bar { width:min(54px,65%); min-height:5px; border-radius:9px 9px 4px 4px; background:linear-gradient(180deg,#8ab9ff,#4b83dd); box-shadow:0 9px 25px rgba(73,129,220,.14); }
.bar.green { background:linear-gradient(180deg,#8be0b4,#4ca577); box-shadow:0 9px 25px rgba(76,165,119,.14); }
.bar-value { margin-bottom:7px; color:#d7e1f1; font-weight:800; font-size:12px; }
.bar-label { margin-top:7px; color:#77859e; font-size:11px; }
.table-heading { padding:18px 18px 0; }

.import-worlds { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin-bottom:15px; }
.import-world { padding:21px; }
.import-list { display:grid; gap:9px; margin-top:18px; }
.import-row { display:flex; justify-content:space-between; align-items:center; gap:16px; border:1px solid var(--border); border-radius:13px; padding:13px; background:rgba(255,255,255,.02); }
.import-row > div { display:grid; gap:4px; }
.import-row b { font-size:13px; }
.import-row span { color:var(--muted); font-size:11px; line-height:1.4; }
.import-row.planned { opacity:.86; }
.file-button { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; padding:8px 11px; color:#cce1ff; border:1px solid rgba(101,167,255,.2); background:rgba(101,167,255,.08); font-size:11px; font-weight:800; }
.file-button.pilot-file { color:#caf3dc; border-color:rgba(123,212,166,.2); background:rgba(123,212,166,.08); }
.hidden-file { display:none; }
.storage-card { padding:21px; }
.storage-paths { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.storage-paths > div { display:grid; gap:6px; padding:13px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.02); }
.storage-paths code { color:#b8c8e0; }
.storage-paths span { color:var(--muted); font-size:11px; }

.mobile-nav { display:none; }

dialog { width:min(720px,calc(100vw - 30px)); border:1px solid var(--border-strong); border-radius:20px; padding:0; color:var(--text); background:#0b1221; box-shadow:0 30px 120px rgba(0,0,0,.65); }
dialog::backdrop { background:rgba(2,5,10,.73); backdrop-filter:blur(5px); }
.dialog-card { padding:22px; }
.dialog-head { display:flex; justify-content:space-between; gap:15px; align-items:flex-start; margin-bottom:17px; }
.dialog-head h3 { margin:4px 0 3px; font-size:23px; }
.dialog-head p { margin:0; color:var(--muted); }
.icon-close { width:34px; height:34px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.035); color:#bfc9d8; font-size:22px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.form-grid label, .full-label { display:grid; gap:6px; color:#8d9bb2; font-size:11px; }
.form-grid .span-2 { grid-column:1/-1; }
.form-grid input, .form-grid select, .full-label textarea { width:100%; border:1px solid var(--border-strong); border-radius:10px; background:#080f1d; color:#e7edf8; padding:10px 11px; }
.full-label { margin-top:11px; }
.full-label textarea { resize:vertical; }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.toast { position:fixed; right:22px; bottom:22px; max-width:min(440px,calc(100vw - 44px)); padding:12px 15px; border-radius:12px; background:#152139; color:#eef4ff; border:1px solid rgba(255,255,255,.12); box-shadow:0 15px 60px rgba(0,0,0,.45); opacity:0; pointer-events:none; transform:translateY(8px); transition:.2s ease; z-index:50; }
.toast.show { opacity:1; transform:none; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 210px minmax(0,1fr); }
  .main { padding:26px 25px 74px; }
  .separation-banner { grid-template-columns:1fr; }
  .pilot-layout { grid-template-columns:1fr; }
  .map-demo { height:280px; }
  .metric-grid { grid-template-columns:repeat(2,1fr); }
  .detail-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 820px) {
  body { padding-bottom:72px; }
  .app-shell { display:block; }
  .sidebar { display:none; }
  .main { padding:20px 15px 28px; }
  .topbar { align-items:flex-start; margin-bottom:19px; }
  .topbar .top-actions { display:none; }
  .topbar h1 { font-size:30px; }
  .world-grid, .chart-grid, .import-worlds { grid-template-columns:1fr; }
  .flow-grid { grid-template-columns:1fr; }
  .flow-arrow { transform:rotate(90deg); text-align:center; height:9px; line-height:7px; }
  .toolbar { flex-direction:column; }
  .search { min-width:0; width:100%; }
  .section-intro { align-items:flex-start; }
  .section-intro > button { flex:0 0 auto; }
  .filter-row { align-items:flex-start; flex-direction:column; }
  .date-controls { width:100%; }
  .date-controls label { flex:1; justify-content:space-between; }
  .date-controls input, .date-controls select { flex:1; min-width:0; }
  .mobile-nav { display:grid; grid-template-columns:repeat(5,1fr); position:fixed; left:8px; right:8px; bottom:8px; z-index:40; padding:6px; border:1px solid var(--border-strong); border-radius:17px; background:rgba(10,16,29,.92); backdrop-filter:blur(18px); box-shadow:0 14px 50px rgba(0,0,0,.4); }
  .mobile-nav button { border:0; background:transparent; color:#71819b; border-radius:12px; padding:6px 2px; display:grid; place-items:center; gap:2px; }
  .mobile-nav button span { font-size:17px; line-height:1; }
  .mobile-nav button small { font-size:9px; font-weight:750; }
  .mobile-nav button.active { color:#edf4ff; background:rgba(255,255,255,.055); }
  .toast { bottom:88px; }
}

@media (max-width: 580px) {
  .main { padding-left:11px; padding-right:11px; }
  .separation-banner, .world-card, .roadmap-card, .panel, .import-world, .storage-card { padding:17px; }
  .split-legend { grid-template-columns:1fr auto 1fr; gap:7px; }
  .legend-item { padding:10px 8px; gap:7px; }
  .legend-item > span { font-size:18px; }
  .legend-item b { font-size:12px; }
  .legend-item small { font-size:9px; }
  .world-metrics { gap:6px; }
  .world-metrics > div { padding:10px 8px; }
  .world-metrics span { font-size:9px; }
  .world-metrics b { font-size:17px; }
  .route-row { grid-template-columns:62px 1fr 62px; gap:7px; }
  .route-row strong { font-size:21px; }
  .dual-links { grid-template-columns:1fr; gap:0; }
  .metric-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .metric { min-height:92px; padding:13px; }
  .metric strong { font-size:23px; }
  .section-intro { flex-direction:column; }
  .section-intro > button { width:100%; }
  .segmented { width:100%; }
  .segmented button { flex:1; padding:8px 6px; font-size:10px; }
  .detail-grid { grid-template-columns:1fr 1fr; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .span-2 { grid-column:auto; }
  .storage-paths { grid-template-columns:1fr; }
  .import-row { align-items:flex-start; flex-direction:column; }
  .file-button { width:100%; }
  .bar-chart { gap:8px; padding-left:3px; padding-right:3px; }
  .bar { width:min(45px,70%); }
}
