:root { color-scheme: dark; --black:#050506; --panel:#0c0b0d; --line:#34202a; --muted:#a9959e; --white:#f4eef0; --red:#f22f4a; --orange:#ff7040; }
* { box-sizing:border-box; }
html, body { width:100%; min-height:100%; margin:0; background:var(--black); color:var(--white); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
body { height:100vh; overflow:hidden; }
.crossing-topbar { height:82px; display:flex; align-items:center; justify-content:space-between; padding:0 30px; background:#050505; border-bottom:1px solid #3e1c22; position:relative; z-index:5; }
.crossing-topbar:after { content:""; position:absolute; bottom:-1px; left:0; height:1px; width:28%; background:linear-gradient(90deg,var(--red),transparent); }
.crossing-brand { display:flex; align-items:center; gap:16px; min-width:0; text-decoration:none; color:var(--white); }
.crossing-brand .brand-title { display:block; margin:0; color:var(--white); font-size:19px; font-weight:900; letter-spacing:3px; line-height:1.1; white-space:nowrap; }
.crossing-brand .version { color:#e94553; font-size:11px; letter-spacing:1px; }
.crossing-brand small { display:block; margin-top:5px; color:#a0999c; font:8px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:2.1px; white-space:nowrap; }
.eyebrow,.section-kicker,.data-status,.map-kicker,.map-location,.map-legend,.map-attribution { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:1.2px; }
.eyebrow { color:#a9959e; font-size:9px; }
.crossing-heading h1 { margin:4px 0 0; font-size:19px; line-height:1.1; letter-spacing:-.5px; }
.crossing-heading h1 span { color:var(--red); }
.crossing-header-stats { position:static; top:auto; right:auto; left:auto; z-index:auto; display:flex; flex:0 0 auto; align-items:center; gap:clamp(12px,2vw,28px); margin:0; }
.crossing-header-stats div { display:flex; flex-direction:column; gap:3px; min-width:54px; }
.crossing-header-stats strong { color:#fff6f6; font:700 19px/1 monospace; }
.crossing-header-stats span { color:#aa9ba0; font:8px/1.2 monospace; letter-spacing:1px; white-space:nowrap; }
.crossing-connection { display:flex; align-items:center; gap:9px; font:10px monospace; letter-spacing:1px; }
.crossing-connection .status-dot { display:inline-block; flex:0 0 6px; width:6px; height:6px; border-radius:50%; }
.crossing-connection strong { color:#ff6976; }
.crossing-connection .status-dot { background:#ff3549; box-shadow:0 0 12px #ff354980; }
.crossing-connection .connection-detail { padding-left:12px; border-left:1px solid var(--line); color:#a0999c; letter-spacing:0; }
.crossing-connection .status-dot.offline { background:#ff875c; box-shadow:0 0 10px #ff875c80; }
.crossing-header-period { flex-shrink:0; color:#c7b9bd; font:10px/1 monospace; letter-spacing:.8px; text-transform:uppercase; white-space:nowrap; }
.crossing-nav { display:inline-block; flex-shrink:0; padding:8px 10px; border:1px solid #39212a; color:#f18a99; text-decoration:none; font-size:11px; }
.crossing-nav:hover { border-color:#f22f4a; color:#fff; background:#f22f4a12; }
.crossing-nav span { margin-left:15px; color:var(--orange); }
.crossing-topbar .page-nav { display:flex; align-items:center; gap:7px; }
.crossing-topbar .nav-compact { display:none; }
.crossing-page-heading { margin:0 0 12px; }
.crossing-page-heading h1 { margin:5px 0 0; color:var(--white); font-size:23px; line-height:1.05; letter-spacing:-.7px; }
.crossing-page-heading h1 span { color:var(--red); }
.crossing-layout { height:calc(100vh - 82px); display:grid; grid-template-columns:minmax(0,1fr) 390px; min-height:0; }
.channel-map-panel { min-width:0; min-height:0; position:relative; overflow:hidden; background:#080a0b; border-right:1px solid var(--line); }
#crossing-map { position:absolute; inset:0; }
.map-fallback { position:absolute; z-index:3; top:50%; left:50%; width:min(78%,460px); margin:0; padding:14px 18px; transform:translate(-50%,-50%); border:1px solid rgba(255,65,91,.36); background:rgba(8,7,9,.9); color:#eadfe1; font-size:.85rem; line-height:1.6; text-align:center; }
.map-fallback[hidden] { display:none; }
.map-overlay { z-index:2; position:absolute; pointer-events:none; }
.map-kicker { left:20px; top:18px; display:flex; align-items:center; gap:9px; color:#c9b8be; font-size:9px; background:#08090bd9; border:1px solid #ffffff14; padding:10px 12px; }
.map-kicker i { width:7px; height:7px; border-radius:50%; background:var(--red); box-shadow:0 0 12px var(--red); }
.map-country-tag { padding:7px 10px; color:#fff; background:#07090bd9; border:1px solid #ffffff28; font:700 10px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:1.5px; white-space:nowrap; text-shadow:0 2px 8px #000; pointer-events:none; }
.map-legend { left:20px; bottom:26px; display:grid; grid-template-columns:22px auto; gap:4px 10px; align-items:center; padding:11px 14px; color:#eee; background:#07090be8; border:1px solid #56303b; font-size:10px; letter-spacing:.5px; }
.map-legend strong { color:#ff6478; }
.map-legend small { grid-column:2; color:#b7a7ad; font-size:8px; }
.legend-line { width:22px; height:2px; background:var(--red); box-shadow:0 0 10px #fa334d; }
.map-attribution { right:8px; bottom:6px; color:#b9b9b9; background:#07090be8; padding:5px 7px; font-size:8px; letter-spacing:.2px; pointer-events:auto; }
.map-attribution a { color:#e7dce0; }
.crossing-data { height:100%; overflow-y:auto; background:linear-gradient(180deg,#100b0e,#09090b 52%); padding:16px 18px 24px; scrollbar-color:#50313b #100b0e; }
.data-status { display:flex; align-items:center; gap:8px; min-height:26px; color:#c9b8be; font-size:9px; }
.status-lamp { width:7px; height:7px; border-radius:50%; background:#a78b95; box-shadow:0 0 9px #a78b95; }
.status-lamp[data-state="ok"] { background:#56d7a1; box-shadow:0 0 9px #56d7a1; }
.status-lamp[data-state="stale"],.status-lamp[data-state="error"] { background:#ff9a54; box-shadow:0 0 9px #ff9a54; }
#refresh-crossings { margin-left:auto; border:1px solid #3c2730; color:#e7dce0; background:#120e10; width:28px; height:26px; cursor:pointer; font-size:17px; }
.data-block { border-top:1px solid var(--line); padding:17px 0 15px; }
.section-kicker { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#e58a97; font-size:8px; }
.section-kicker span:last-child { color:#aa969e; text-align:right; }
.data-block h2 { margin:7px 0 4px; font-size:18px; letter-spacing:.6px; }
.data-explainer { margin:0; color:#bbaeb3; font-size:11px; line-height:1.5; }
.source-inline { display:inline-block; margin-top:7px; color:#ff8997; font:8px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.5px; text-decoration:none; }
.source-inline:hover { text-decoration:underline; color:#fff; }
.headline-stats,.weekly-stats { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:13px 0 11px; }
.headline-stats > div,.weekly-stats > div { min-width:0; background:#160d11; border:1px solid #42212c; padding:10px 11px; }
.headline-stats strong,.weekly-stats strong { display:block; color:#fff; font:700 27px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.headline-stats span,.weekly-stats span { display:block; margin-top:7px; color:#b6a3aa; font:8px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.8px; }
.daily-table { border:1px solid #2a1a21; }
.daily-head,.daily-row { display:grid; grid-template-columns:1.2fr 1fr .7fr; align-items:center; gap:8px; padding:7px 9px; }
.daily-head { color:#97858d; background:#171115; font:8px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.8px; }
.daily-head span:nth-child(n+2),.daily-row span:nth-child(n+2) { text-align:right; }
.daily-row { border-top:1px solid #281a20; color:#e9dfe2; font:11px ui-monospace,SFMono-Regular,Menlo,monospace; }
.daily-row span:nth-child(2) { color:#ff7384; }
.loading,.load-error { padding:10px; color:#b6a3aa; font-size:11px; line-height:1.5; }
.history-block { padding-bottom:13px; }
.history-controls { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:10px 0 5px; }
.history-ranges { display:flex; gap:4px; }
.history-ranges button,.history-controls select,.history-pagination button { border:1px solid #49303a; border-radius:2px; background:#120d10; color:#c9b8be; padding:5px 7px; font:8px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.5px; cursor:pointer; }
.history-ranges button.active { color:#fff; border-color:#a53b4d; background:#4a1723; box-shadow:0 0 12px #f22f4a22; }
.history-controls select { color:#eee; }
#arrival-history { display:block; width:100%; height:170px; border-bottom:1px solid #39242b; }
.history-summary { margin:6px 0 9px; color:#b7a7ad; font:9px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; }
.history-detail { border:1px solid #302029; }
.history-detail summary { padding:8px 9px; color:#e4d4d9; background:#120d10; cursor:pointer; font:9px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.5px; }
.history-table { border:0; border-top:1px solid #302029; }
.history-table .daily-row { font-size:10px; }
.history-pagination { display:flex; justify-content:space-between; align-items:center; padding:7px 8px; color:#a9959e; font:9px ui-monospace,SFMono-Regular,Menlo,monospace; }
.history-pagination button:disabled { opacity:.4; cursor:default; }
.weekly-block { padding-bottom:12px; }
.weekly-block h2 { font-size:16px; }
.weekly-stats { margin:10px 0 0; }
.weekly-stats strong { font-size:22px; }
.perspective-block { border-top:1px solid #57303b; background:linear-gradient(125deg,#160d11 0%,#0c0b0d 70%); padding:14px 12px 13px; }
.perspective-block h2 { margin:7px 0 10px; font-size:14px; letter-spacing:.8px; }
.perspective-weekly { display:flex; align-items:baseline; gap:8px; }
.perspective-weekly strong { color:#fff; font:700 25px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.perspective-weekly span,.perspective-total span { color:#b8a8ae; font-size:10px; line-height:1.45; }
.perspective-groups { margin:6px 0 12px; color:#f28b9a; font:11px ui-monospace,SFMono-Regular,Menlo,monospace; }
.people-scale { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:4px; margin:8px 0 3px; }
.people-scale-tile { display:block; height:9px; overflow:hidden; border:1px solid #54303a; background:#211419; }
.people-scale-tile i { display:block; height:100%; background:linear-gradient(90deg,#ff7040,#f22f4a); box-shadow:0 0 10px #f22f4a99; }
.people-scale-more { grid-column:1/-1; color:#cbb7be; font:8px ui-monospace,SFMono-Regular,Menlo,monospace; }
.people-scale-caption { margin:5px 0 10px; color:#9e8e94; font:8px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace; }
.perspective-daily { display:flex; align-items:baseline; gap:8px; }
.perspective-daily strong { color:#ff8b72; font:700 17px/1 ui-monospace,SFMono-Regular,Menlo,monospace; white-space:nowrap; }
.perspective-daily span { color:#b8a8ae; font-size:9px; line-height:1.45; }
.perspective-total { display:flex; align-items:baseline; gap:8px; padding-top:10px; border-top:1px solid #322129; }
.perspective-total strong { color:#ffb078; font:700 18px/1 ui-monospace,SFMono-Regular,Menlo,monospace; white-space:nowrap; }
.perspective-note { margin:9px 0 0; color:#9e8e94; font-size:9px; line-height:1.5; }
.prevention-block { border-top:1px solid #533127; }
.prevention-block .section-kicker { color:#ffae72; }
.prevention-block .weekly-stats > div { border-color:#543121; background:#19100c; }
.prevention-block .weekly-stats strong { color:#ffc18e; font-size:21px; }
.prevention-block p,.source-notes p { color:#b7a7ad; font-size:10px; line-height:1.55; }
.source-notes { border-top:1px solid var(--line); padding-top:10px; }
.source-notes a { color:#ff7e8d; font:9px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.5px; text-decoration:none; }
.source-notes a:hover { text-decoration:underline; }
.maplibregl-ctrl-group { border:1px solid #50313b!important; background:#0b0a0d!important; }
.maplibregl-ctrl-group button { filter:invert(.85) sepia(.12) saturate(.4); }
.maplibregl-ctrl-attrib { color:#b8b8b8!important; background:#08090bd9!important; }
.maplibregl-ctrl-attrib a { color:#eee!important; }
@media(max-width:1120px) and (min-width:901px) {
  .crossing-topbar { gap:12px; padding:0 18px; }
  .crossing-brand { gap:9px; }
  .crossing-brand .brand-title { font-size:15px; letter-spacing:1.6px; }
  .crossing-brand small { font-size:7px; letter-spacing:1px; }
  .crossing-header-stats { gap:10px; }
  .crossing-header-stats strong { font-size:16px; }
  .crossing-header-stats span { font-size:7px; letter-spacing:.5px; }
  .crossing-connection { font-size:8px; gap:5px; }
  .crossing-header-period { font-size:9px; }
  .crossing-nav { padding:8px; font-size:10px; }
}
@media(max-width:900px) and (min-width:761px) {
  .crossing-connection,.crossing-topbar .page-nav { display:none; }
  .crossing-topbar { gap:12px; padding:0 18px; }
}
@media(max-width:900px) {
  body { height:auto; min-height:100vh; overflow:auto; }
  .crossing-layout { height:auto; min-height:0; display:flex; flex-direction:column; }
  .channel-map-panel { height:58vh; min-height:410px; border-right:0; border-bottom:1px solid var(--line); }
  .crossing-data { height:auto; overflow:visible; padding:13px 16px 24px; }
}
@media(max-width:760px) {
  .crossing-topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:40px 30px; height:auto; min-height:78px; gap:2px 8px; padding:5px 10px 4px; }
  .crossing-brand { grid-column:1; grid-row:1; }
  .crossing-brand { gap:8px; }
  .crossing-brand .brand-title { font-size:13px; letter-spacing:1.2px; }
  .crossing-brand small { margin-top:3px; font-size:6px; letter-spacing:.7px; }
  .crossing-header-stats { grid-column:1; grid-row:2; justify-content:space-between; width:100%; gap:4px; }
  .crossing-header-stats div { flex-direction:row; align-items:baseline; gap:5px; }
  .crossing-header-stats strong { font-size:14px; }
  .crossing-header-stats span { font-size:6px; letter-spacing:.35px; }
  .crossing-connection { display:none; }
  .crossing-header-period { grid-column:2; grid-row:2; justify-self:end; font-size:8px; }
  .crossing-topbar .page-nav { display:flex; grid-column:2; grid-row:1; justify-self:end; gap:4px; }
  .crossing-topbar .nav-wide { display:none; }
  .crossing-topbar .nav-compact { display:inline; }
  .crossing-nav { display:inline-flex; padding:5px 6px; font-size:7px; letter-spacing:.1px; white-space:nowrap; }
  .crossing-nav span { margin-left:4px; }
}
@media(max-width:450px) {
  .crossing-topbar { grid-template-columns:minmax(0,1fr) auto; }
  .channel-map-panel { height:54vh; min-height:350px; }
  .map-country-tag { font-size:8px; letter-spacing:1px; }
  .map-legend { left:10px; bottom:22px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
