/* Wasteland Radio: rugged field computer, inset phosphor CRT, and hard keys.
   Restrained overlay keeps the real-world map usable while travelling. */
.wasteland-monitor{display:none}
body[data-theme=wasteland]{
  --sigma-mint:#b7f779;--accent:#b7f779;--accent-rgb:183,247,121;--accent-ink:#151f10;
  --shell-bg:#1c281b;--shell-bg-raised:#202d1f;--shell-ink:#c9f88e;
  --shell-muted:#87ac6f;--shell-stroke:#777c56;--shell-shadow:#080d09e8;--shell-shine:#d2c38d48;
  font-family:'IBM Plex Mono',monospace;
}
body[data-theme=wasteland][data-ui=day]{
  --shell-bg:#263323;--shell-bg-raised:#30402b;--shell-ink:#e2ffb8;
  --shell-muted:#a2c98d;--shell-stroke:#97946b;--shell-shadow:#080d09d0;--shell-shine:#eee0a25c;
}
body[data-theme=wasteland] .top-chrome{padding-top:calc(14px + env(safe-area-inset-top))}
body[data-theme=wasteland] .brand{
  background:linear-gradient(150deg,#4c5036,#2a3327 65%,#1b241b);
  padding:7px 12px 7px 8px;border:2px solid #797c57;border-radius:7px;
  box-shadow:inset 0 2px #c0bc8155,inset 0 -4px #101a15,0 6px 20px #0d140b80;
}
body[data-theme=wasteland] .brand-type strong{
  font:700 17px/1 'IBM Plex Mono',monospace;letter-spacing:.075em;color:#d4f89e;
  text-shadow:0 0 10px #a5f5684d;
}
body[data-theme=wasteland] :is(.studio-launch,.circle-button,.tool-button){
  background:linear-gradient(150deg,#53583c,#343b2b 52%,#252e22);
  border:2px solid #8e9069;border-bottom-color:#242c22;border-right-color:#454a34;
  color:#d8f9ad;border-radius:7px;
  box-shadow:inset 1px 1px #c5c39470,inset -2px -3px #0e180da3,0 4px 0 #1e241a,0 8px 14px #0e170c96;
  backdrop-filter:none;
}
body[data-theme=wasteland] :is(.studio-launch,.circle-button,.tool-button):hover{
  background:linear-gradient(145deg,#6b7249,#46563b);border-color:#c4bc80;color:#f0ffd0;
}
body[data-theme=wasteland] :is(.circle-button,.tool-button):active{transform:translateY(2px);box-shadow:inset 0 2px 6px #141e14,0 1px 0 #1e241a}
body[data-theme=wasteland] .tool-button.active,
body[data-theme=wasteland] .tool-button[aria-pressed=true]{
  background:#233925;border-color:#c3b774;color:#b8ff72;
  box-shadow:inset 0 0 14px #a0ef5a36,0 0 0 2px #20271c,0 3px 0 #1e241a;
}
body[data-theme=wasteland] .map-caption{
  color:#2a4124;text-shadow:0 1px #f2e6bb,0 1px 7px #fff7d9;
  background:#cdbb936e;border:1px solid #776c4b9c;border-radius:3px;
  padding:7px 9px;letter-spacing:.035em;
}
body[data-theme=wasteland] .caption-dash{background:#667e32}
body[data-theme=wasteland] .map-vignette{
  background:linear-gradient(90deg,#2b29141a,transparent 13% 87%,#2b29141a),
    radial-gradient(ellipse at center,transparent 60%,#302c201a 100%);
  opacity:.48;
}
body[data-theme=wasteland] .wasteland-monitor{
  position:absolute;z-index:5;left:28px;top:calc(94px + env(safe-area-inset-top));
  display:block;width:268px;pointer-events:none;color:#abf471;
  background:linear-gradient(#273628,#152317);border:2px solid #6e7250;border-radius:5px;
  box-shadow:inset 0 0 0 2px #0e1a10,inset 0 0 18px #0009,0 8px 17px #151d1599;
  font:700 9px 'IBM Plex Mono',monospace;letter-spacing:.08em;
}
body[data-theme=wasteland] .wasteland-monitor-tabs{
  display:flex;justify-content:space-around;gap:4px;padding:7px 8px 6px;
  border-bottom:1px solid #526b39;color:#789d62;
}
body[data-theme=wasteland] .monitor-selected{color:#d0ff94;border-bottom:2px solid #beee7b;margin-bottom:-7px;padding-bottom:5px}
body[data-theme=wasteland] .wasteland-monitor-readout{display:flex;align-items:center;gap:7px;padding:8px 10px;text-shadow:0 0 7px #7fea5d70}
body[data-theme=wasteland] .monitor-led{width:5px;height:5px;border-radius:50%;background:#c2ff73;box-shadow:0 0 8px #baff6d}
body[data-theme=wasteland] .monitor-frequency{margin-left:auto;color:#d8b66b}
body[data-theme=wasteland] .wasteland-lighting-control{
  display:flex;align-items:center;gap:5px;padding:6px 8px;
  border-top:1px solid #526b3977;background:#111c14aa;
}
body[data-theme=wasteland] .wasteland-lighting-label{color:#8a9e73;margin-right:3px}
body[data-theme=wasteland] .wasteland-lighting-control button{
  pointer-events:auto;cursor:pointer;appearance:none;border:1px solid #4b6842;
  border-radius:2px;padding:4px 5px;background:#202e21;color:#9bb688;
  font:700 9px/1 'IBM Plex Mono',monospace;letter-spacing:0;
}
body[data-theme=wasteland] .wasteland-lighting-control button[aria-pressed=true]{
  background:#b3ed72;color:#1c2d17;border-color:#dbffa1;
  box-shadow:0 0 8px #a4f76f52;
}
body[data-theme=wasteland] .wasteland-lighting-control button:focus-visible{outline:2px solid #f0ffbd;outline-offset:2px}
body[data-theme=wasteland] .wasteland-lighting-indicator{margin-left:auto;color:#d3bb82;font-size:8px;letter-spacing:0}
body[data-theme=wasteland][data-wasteland-time=night] .map-caption{
  background:#18271de8;color:#c3ef9a;border-color:#5c805b;
  text-shadow:0 0 7px #a9f47d5e;
}
body[data-theme=wasteland][data-wasteland-time=night] .caption-dash{background:#adf27a;box-shadow:0 0 9px #a7fa6a}
body[data-theme=wasteland][data-wasteland-time=night] .map-vignette{
  background:radial-gradient(ellipse at center,transparent 54%,#0c170b43 100%);opacity:.73;
}
body[data-theme=wasteland][data-wasteland-time=night] .wasteland-monitor{
  border-color:#77985d;box-shadow:inset 0 0 0 2px #0e1a10,inset 0 0 18px #000a,0 0 16px #76ba5b24;
}
body[data-theme=wasteland][data-wasteland-time=night] .wasteland-ui-glyph,
body[data-theme=wasteland][data-wasteland-time=night] .nav-pointer-wasteland{filter:drop-shadow(0 0 3px #b0fa77a0)}
/* Compatibility devices without WebGL2 still show a distinct day/night map. */
body[data-theme=wasteland][data-renderer=raster][data-wasteland-time=day] .leaflet-tile-pane img{
  filter:grayscale(.75) sepia(.78) saturate(.8) brightness(.82) contrast(1.26);
}
body[data-theme=wasteland][data-renderer=raster][data-wasteland-time=night] .leaflet-tile-pane img{
  filter:grayscale(.94) invert(1) sepia(.83) hue-rotate(65deg) saturate(1.18) brightness(.79) contrast(1.16);
}
body[data-theme=wasteland] .bottom-controls{
  box-sizing:border-box;padding:8px;gap:7px;
  background:linear-gradient(145deg,#6b6b4a 0%,#4a4f36 30%,#343b2c 75%,#242c22);
  border:2px solid #9b986c;border-bottom-color:#262f23;border-right-color:#48513b;
  border-radius:11px;box-shadow:inset 0 2px #c9be8d84,inset 0 -4px #1b261a,0 6px 0 #1b2219,0 18px 34px #0b100b9f;
}
body[data-theme=wasteland] .search-box{
  height:55px;padding:0 13px;gap:10px;
  background:repeating-linear-gradient(to bottom,#94c56a09 0px,#94c56a09 1px,transparent 1px,transparent 4px),linear-gradient(160deg,#15241b,#263e25 58%,#1a2e1d);
  border:2px solid #171d13;border-top-color:#0b140d;border-radius:5px;
  box-shadow:inset 0 2px 9px #000b,inset 0 0 0 1px #6f895371;
}
body[data-theme=wasteland] .search-box input{color:#c9fa95;font:600 14px 'IBM Plex Mono',monospace;letter-spacing:.035em;text-shadow:0 0 7px #a6ff806c}
body[data-theme=wasteland] .search-box input::placeholder{color:#a3c78b}
body[data-theme=wasteland] .search-shortcut{color:#a1d16c;border-color:#5f7c4b}
body[data-theme=wasteland] .styles-launcher{
  height:55px;min-height:55px;background:linear-gradient(145deg,#4f5b3a,#303e2b);
  border:2px solid #929875;border-bottom-color:#1c261a;border-radius:5px;
  box-shadow:inset 0 1px #ced29a66,inset 0 -3px #162317,0 3px 0 #18231a;
  color:#d2f49c;
}
body[data-theme=wasteland] .styles-launcher::after{background:#c1eb7e;opacity:.9;height:2px}
body[data-theme=wasteland] .styles-copy strong{font:700 11px 'IBM Plex Mono',monospace;letter-spacing:.08em;color:#e6fac1}
body[data-theme=wasteland] .styles-copy small{color:#b6cc8a;font-family:'IBM Plex Mono',monospace}
body[data-theme=wasteland] :is(.route-card,.theme-dock,.places-drawer){
  background:repeating-linear-gradient(to bottom,#a4fa5307 0px,#a4fa5307 1px,transparent 1px,transparent 5px),linear-gradient(150deg,#273a28,#111f18 80%);
  border:5px solid #4c543d;outline:2px solid #a0a078;
  color:#d5faa9;border-radius:8px;
  box-shadow:inset 0 0 0 2px #0a120b,inset 0 0 28px #02090599,0 15px 40px #071006d9;
  backdrop-filter:none;
}
body[data-theme=wasteland] :is(.route-card,.theme-dock):before{
  height:4px;background:repeating-linear-gradient(90deg,#b2d47c 0 12px,#647c42 12px 17px);
  border-radius:0;opacity:.5;
}
body[data-theme=wasteland] :is(.route-destination,.dock-heading h2,.drawer-heading h2){font:700 21px/1.24 'IBM Plex Mono',monospace;color:#d9fbaa;text-shadow:0 0 9px #a5e5673d;letter-spacing:.01em}
body[data-theme=wasteland] :is(.route-kicker,.dock-eyebrow){font:700 10px 'IBM Plex Mono',monospace;letter-spacing:.11em;color:#b9ef80}
body[data-theme=wasteland] :is(.route-subline,.route-notice,.dock-foot,.drawer-foot,.places-empty){color:#a9bf8b}
body[data-theme=wasteland] .route-stats{
  background:#12241a;border:2px solid #6d7d4f;border-radius:4px;
  box-shadow:inset 0 2px 8px #0008,inset 0 0 0 1px #263f23;
}
body[data-theme=wasteland] .route-stats strong{font:700 25px 'IBM Plex Mono',monospace;color:#d1ff94;text-shadow:0 0 9px #b7ff5d69}
body[data-theme=wasteland] .route-stats span{font:700 9px 'IBM Plex Mono',monospace;letter-spacing:.08em;color:#9dca71}
body[data-theme=wasteland] .primary-button{
  background:linear-gradient(180deg,#c8fa89,#80ba4f);color:#1b2815;
  border:2px solid #e1ffb8;border-bottom-color:#456a35;border-radius:5px;
  box-shadow:inset 0 1px #faffdf,0 4px 0 #3c522e,0 8px 16px #0009;
  text-shadow:none;font:700 12px 'IBM Plex Mono',monospace;
}
body[data-theme=wasteland] :is(.secondary-button,.utility-button,.origin-summary,.origin-shortcuts button,.route-style-button,.route-close,.theme-close,.drawer-close){
  background:#334633;color:#d1f3a0;border:1px solid #869466;border-radius:4px;
  box-shadow:inset 0 1px #b7d38e3b,inset 0 -2px #162616;
}
body[data-theme=wasteland] .theme-card{background:#253a28;border:1px solid #77805d;border-radius:5px;color:#def3b0}
body[data-theme=wasteland] .theme-card[aria-pressed=true]{background:#375537;border-color:#beee83;box-shadow:0 0 0 2px #111c13,inset 0 0 12px #a1ec7152}
body[data-theme=wasteland] .theme-details strong{color:#e0f9bb;font-family:'IBM Plex Mono',monospace;font-size:11px}
body[data-theme=wasteland] .theme-details small{color:#9eb788}
body[data-theme=wasteland] :is(.search-results,.modal,.place-row,.toast){background:#1b2d1c;border:2px solid #677850;color:#d5f9a7;border-radius:5px}
body[data-theme=wasteland] .search-result{color:#e1fbc2;font-family:'IBM Plex Mono',monospace}
body[data-theme=wasteland] .search-result:hover{background:#3d613a}
body[data-theme=wasteland] .map-tools{gap:10px}
body[data-theme=wasteland] .map-tools .tool-button{width:47px;height:47px}
body[data-theme=wasteland] .maplibregl-ctrl-group{background:#3e4c32;border:2px solid #90956d;border-radius:5px}
@media(max-width:600px){
  body[data-theme=wasteland] .wasteland-monitor{top:calc(119px + env(safe-area-inset-top));left:16px;width:198px;font-size:8px}
  body[data-theme=wasteland] .wasteland-monitor-tabs{padding:5px 6px}
  body[data-theme=wasteland] .monitor-selected{margin-bottom:-5px;padding-bottom:3px}
  body[data-theme=wasteland] .wasteland-monitor-readout{padding:6px 7px}
  body[data-theme=wasteland] .monitor-frequency{font-size:7px}
  body[data-theme=wasteland] .wasteland-lighting-control{gap:3px;padding:5px 5px}
  body[data-theme=wasteland] .wasteland-lighting-label{font-size:7px;margin-right:0}
  body[data-theme=wasteland] .wasteland-lighting-control button{font-size:7px;padding:4px 3px}
  body[data-theme=wasteland] .wasteland-lighting-indicator{font-size:7px}
  body[data-theme=wasteland] .bottom-controls{left:9px;right:9px;width:auto;padding:6px;gap:5px;bottom:calc(10px + env(safe-area-inset-bottom))}
  body[data-theme=wasteland] .search-box{height:51px;padding:0 9px;gap:7px}
  body[data-theme=wasteland] .search-box input{font-size:14px}
  body[data-theme=wasteland] .styles-launcher{height:51px;min-height:51px;min-width:96px;width:96px;padding:0 7px}
  body[data-theme=wasteland] .map-caption{left:15px;top:calc(77px + env(safe-area-inset-top));right:auto;max-width:calc(100% - 30px)}
  body[data-theme=wasteland] .map-tools{top:calc(141px + env(safe-area-inset-top));right:13px;gap:8px}
  body[data-theme=wasteland] .map-tools .tool-button{width:43px;height:43px}
  body[data-theme=wasteland] :is(.route-card,.theme-dock){border-radius:8px 8px 0 0}
}
@media(max-width:370px){body[data-theme=wasteland] .wasteland-monitor{width:170px}}
@media(prefers-reduced-motion:reduce){body[data-theme=wasteland] :is(.monitor-led,.bottom-controls,.route-card){animation:none!important}}
