/* TACTICAL GRID — original topographic field-navigation identity. */
body[data-theme=tactical]{
  --sigma-mint:#b4a16f;--accent:#efb85c;--accent-rgb:239,184,92;--accent-ink:#1a332b;
  --shell-bg:#263a32;--shell-bg-raised:#324a3f;--shell-ink:#f1e9d0;
  --shell-muted:#b3bca5;--shell-stroke:#607d68;
  --shell-shadow:#091a15b3;--shell-shine:#587263;
  --radius-control:10px;--radius-sheet:17px;
  --experience-font:'IBM Plex Mono','Space Grotesk',monospace;
}
body[data-theme=tactical][data-ui=day]{
  --shell-bg:#f0ead4;--shell-bg-raised:#e2dfc8;--shell-ink:#253a30;--shell-muted:#53685a;
  --shell-stroke:#8e9e85;--shell-shadow:#253b3040;--shell-shine:#fff5d5;
}
body[data-theme=tactical] .map-shell,body[data-theme=tactical] .leaflet-container{background:#b3b69a}
body[data-theme=tactical] .world-illustration,body[data-theme=tactical] .grain{display:none}
body[data-theme=tactical] .map-vignette{background:linear-gradient(180deg,#22392d13,transparent 20%,transparent 78%,#213f2b12);mix-blend-mode:normal;pointer-events:none}
body[data-theme=tactical] .map-caption{color:#1b392e;text-shadow:0 1px 0 #e2dfbc;font:700 11px 'IBM Plex Mono',monospace;letter-spacing:.14em}
body[data-theme=tactical] .brand{background:linear-gradient(150deg,#455e4d,#1f392f);border:1px solid #8a9c76;border-radius:10px;box-shadow:inset 0 1px #9bad8455,0 6px 15px #11271950}
body[data-theme=tactical] .brand-type strong{font:700 20px 'Space Grotesk',sans-serif;color:#f6e5b4;letter-spacing:-.055em}
body[data-theme=tactical] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close,.clear-search,.studio-launch,.route-style-button){
  background:linear-gradient(160deg,#415b4b,#273e33);color:#f2dda7;
  border:1px solid #809177;border-radius:9px;
  box-shadow:inset 0 1px #a5b08a44,0 4px 13px #1b2c235e;
}
body[data-theme=tactical] :is(.circle-button,.tool-button):hover{background:#4b6955;border-color:#e1b873}
body[data-theme=tactical] .search-box{background:linear-gradient(135deg,#304a3c,#243b30);border:1px solid #81947a;border-radius:11px;box-shadow:0 5px 24px #19302366}
body[data-theme=tactical] .search-box input{color:#f6efd7;font:600 14px 'IBM Plex Mono',monospace}
body[data-theme=tactical] .search-box input::placeholder{color:#c1cab1;opacity:1}
body[data-theme=tactical] .search-shortcut{color:#eac180}
body[data-theme=tactical] .styles-launcher{background:linear-gradient(135deg,#3d5d48,#263c32);color:#eee4c4;border:1px solid #859977;border-radius:10px;box-shadow:0 5px 18px #142c2055}
body[data-theme=tactical] .styles-launcher:after{background:#e0aa59}
body[data-theme=tactical] .styles-copy strong{color:#f7ebc9}
body[data-theme=tactical] .styles-copy small{color:#b9c5aa}
body[data-theme=tactical] :is(.route-card,.theme-dock,.places-drawer){background:linear-gradient(155deg,#2f483b,#1c322b);border:1px solid #879980;color:#f0e9cd;border-radius:17px;box-shadow:0 18px 44px #11281f91}
body[data-theme=tactical] :is(.route-card,.theme-dock):before{height:3px;background:linear-gradient(90deg,#edb65b,#bd8e45);opacity:.96}
body[data-theme=tactical] :is(.route-kicker,.dock-eyebrow){font:700 10px 'IBM Plex Mono',monospace;letter-spacing:.15em;color:#efbe77}
body[data-theme=tactical] .route-kicker-dot{background:#f1bd62;box-shadow:0 0 0 3px #f1bd6225}
body[data-theme=tactical] :is(.route-destination,.dock-heading h2,.drawer-heading h2){color:#f6efd9;font:700 24px/1.18 'Space Grotesk',sans-serif}
body[data-theme=tactical] :is(.route-subline,.route-notice,.dock-foot,.drawer-foot,.places-empty){color:#b6c4ad}
body[data-theme=tactical] .route-place-symbol{background:#3a5947;border:1px solid #899d77;border-radius:10px}
body[data-theme=tactical] .route-stats{background:#364f41;border:1px solid #6b836a;border-radius:10px}
body[data-theme=tactical] .route-stats strong{color:#f9e6af}
body[data-theme=tactical] :is(.secondary-button,.utility-button,.origin-summary,.origin-shortcuts button){background:#3d5847;color:#f0e5c0;border:1px solid #82977d;border-radius:9px}
body[data-theme=tactical] .primary-button{background:linear-gradient(155deg,#f5cd7c,#dda24a);color:#25362b;border:1px solid #fce3aa;border-radius:10px;font:700 13px 'IBM Plex Mono',monospace;letter-spacing:.02em;box-shadow:0 4px 14px #152e1e70}
body[data-theme=tactical] .theme-card{background:#31493c;border:1px solid #617c68;border-radius:12px}
body[data-theme=tactical] .theme-card[aria-pressed=true]{border:2px solid #edbb64;background:#405a48;box-shadow:0 0 0 1px #b88a40}
body[data-theme=tactical] .theme-details strong{color:#f5ecd2}
body[data-theme=tactical] .theme-details small{color:#acbba7}
body[data-theme=tactical] .selected-badge{background:#dbad59;color:#20372c}
body[data-theme=tactical] .modal{background:#293e34;color:#ece5c8;border:1px solid #788e75}
body[data-theme=tactical] .toast{background:#263d32;color:#f1ddad;border:1px solid #d6a856;border-radius:9px}
body[data-theme=tactical] .place-row{background:#324b3e;border-color:#617d66;border-radius:9px}
body[data-theme=tactical] .place-row-select{color:#eee3bf}
body[data-theme=tactical] :is(.search-box,.styles-launcher,.route-card,.theme-dock,.places-drawer){clip-path:none!important}

.tactical-ui-glyph{display:none;width:23px;height:23px;object-fit:contain;flex-shrink:0}
body[data-theme=tactical] .tactical-ui-glyph{display:inline-block}
body[data-theme=tactical] .tactical-fallback-glyph{display:none!important}
body[data-theme=tactical] :is(.circle-button,.tool-button)>.tactical-ui-glyph{width:27px;height:27px}
body[data-theme=tactical] .search-icon>.tactical-ui-glyph{width:24px;height:24px}
body[data-theme=tactical] .route-place-symbol>.tactical-ui-glyph{width:33px;height:33px}
body[data-theme=tactical] .primary-button>.tactical-ui-glyph{width:26px;height:26px}
body[data-theme=tactical] .studio-launch>.tactical-ui-glyph{width:22px;height:22px}
body[data-theme=tactical] .sigma-marker.sigma-destination{width:38px;height:47px;margin:0;padding:0;background:url('./assets/tactical/destination.svg') center bottom/contain no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;clip-path:none;filter:drop-shadow(0 2px 3px #1b302970)}
body[data-theme=tactical] .sigma-marker.sigma-destination .marker-centre{display:none}
body[data-theme=tactical] .nav-here-dot{width:29px;height:32px;background:url('./assets/tactical/position.svg') center/contain no-repeat;border:0;border-radius:0;box-shadow:none}
body[data-theme=tactical] .nav-here-dot:after{display:none}
.nav-pointer-tactical{display:none}
body[data-theme=tactical] :is(.nav-pointer-aero,.nav-pointer-frontier,.nav-pointer-kawaii,.nav-pointer-neon,.nav-pointer-atomic,.nav-pointer-block,.nav-pointer-coral){display:none}
body[data-theme=tactical] .nav-pointer-tactical{display:block;width:51px;height:56px;object-fit:contain;filter:drop-shadow(0 3px 3px #172e2266)}
/* Canvas-only compatibility fallback when the browser has no WebGL2.
   The real vector style remains semantic and uses no tile filtering. */
body[data-theme=tactical][data-renderer=raster] .leaflet-tile-pane img{filter:grayscale(.43) sepia(.24) saturate(.72) brightness(.94) contrast(1.07)}

/* Day UI changes the instruments, not the geography. */
body[data-theme=tactical][data-ui=day] :is(.route-card,.theme-dock,.places-drawer){background:linear-gradient(150deg,#f2ead3,#d8dec6);color:#2a4134;border-color:#83977d}
body[data-theme=tactical][data-ui=day] :is(.route-destination,.dock-heading h2,.drawer-heading h2,.route-stats strong,.theme-details strong){color:#294337}
body[data-theme=tactical][data-ui=day] :is(.route-subline,.route-notice,.dock-foot,.drawer-foot){color:#536854}
body[data-theme=tactical][data-ui=day] .theme-card{background:#e5e6d1}
body[data-theme=tactical][data-ui=day] .theme-details small{color:#65785f}
body[data-theme=tactical][data-ui=day] .search-box{background:#eef0dc;border-color:#8da082}
body[data-theme=tactical][data-ui=day] .search-box input{color:#283d32}
body[data-theme=tactical][data-ui=day] .search-box input::placeholder{color:#61735f}
body[data-theme=tactical][data-ui=day] .styles-launcher{background:#dfe5cb;color:#283f34}
body[data-theme=tactical][data-ui=day] .styles-copy strong{color:#2f4737}
body[data-theme=tactical][data-ui=day] .styles-copy small{color:#566b57}

@media(max-width:600px){body[data-theme=tactical] :is(.route-card,.theme-dock){border-radius:16px 16px 0 0}}
