/* ==========================================================================
   RutLine Tactical Hunting GIS — Master Stylesheet
   Concept 1: Mobile-First Sub-Freezing Tactical UX
   HartForge Labs
   ========================================================================== */

:root {
  /* Tactical Dark Camo Theme (Default) */
  --bg-primary: #0b0e0c;
  --bg-secondary: #131a16;
  --bg-card: rgba(15, 23, 19, 0.88);
  --bg-card-border: rgba(45, 75, 60, 0.45);
  --bg-pill: rgba(10, 16, 13, 0.85);
  
  --text-primary: #f0f4f2;
  --text-secondary: #9cb3a8;
  --text-muted: #5e7a6d;
  
  --accent-blaze: #ff5722;
  --accent-amber: #ffb300;
  --accent-cyan: #00e5ff;
  --accent-green: #00e676;
  --accent-crimson: #ff2a2a;
  
  --dial-rim: #00e5ff;
  --dial-bg: rgba(12, 19, 15, 0.94);
  --dial-active: #00b4d8;
  
  --map-filter: none;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --icon-perm-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>");
}

/* Crepuscular Red OLED Night Mode (Pre-Dawn Treestand Stealth) */
body.theme-oled-red {
  --bg-primary: #000000;
  background-color: #000000 !important;
  --bg-secondary: #080000;
  --bg-card: rgba(15, 0, 0, 0.96);
  --bg-card-border: rgba(190, 20, 20, 0.45);
  --bg-pill: rgba(10, 0, 0, 0.92);
  
  --text-primary: #ff2a2a;
  --text-secondary: #cc1e1e;
  --text-muted: #7a1111;
  
  --accent-blaze: #ff1e1e;
  --accent-amber: #ff3333;
  --accent-cyan: #ff2222;
  --accent-green: #ee1e1e;
  --accent-crimson: #ff0000;
  
  --dial-rim: #ff1e1e;
  --dial-bg: rgba(15, 0, 0, 0.97);
  --dial-active: #b30000;
  
  --map-filter: grayscale(100%) brightness(0.65) sepia(100%) hue-rotate(320deg) saturate(600%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  touch-action: manipulation;
}

/* ==========================================================================
   Map Container
   ========================================================================== */

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: var(--map-filter);
  transition: filter 0.3s ease;
}

.maplibre-ctrl-bottom-left,
.maplibre-ctrl-bottom-right,
.maplibre-ctrl-top-right,
.maplibre-ctrl-top-left {
  display: none !important; /* Hide default controls for tactical fullscreen */
}

/* ==========================================================================
   HuntZone Master Layout (Visual Match to Reference Mockup)
   ========================================================================== */

/* Top Navigation Header */
.app-header-huntzone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--safe-area-top) + 54px);
  padding: var(--safe-area-top) 16px 0 16px;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.95) 0%, rgba(8, 10, 12, 0.6) 80%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 80;
  pointer-events: auto;
}

.header-action-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.header-action-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.tract-dropdown-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(20, 24, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.tract-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.tract-arrow {
  font-size: 13px;
  color: #f59e0b;
  margin-left: 2px;
}

/* Tract Picker Dropdown Menu */
.tract-picker-menu {
  position: absolute;
  top: calc(var(--safe-area-top) + 56px);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 340px;
  background: rgba(14, 18, 22, 0.97);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
}

.picker-header {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a1a1aa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.picker-section-label {
  padding: 8px 12px 4px 12px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
}

.picker-item:hover, .picker-item:active {
  background: rgba(245, 158, 11, 0.15);
}

.picker-item.active {
  background: rgba(245, 158, 11, 0.22);
  border-left: 3px solid #f59e0b;
}

.picker-item .item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-right: 8px;
  flex: 1;
  text-align: left;
}

.picker-item .item-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-item .item-subtitle {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.picker-item .item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.picker-item .item-acres {
  font-size: 12px;
  font-weight: 800;
  color: #f59e0b;
}

.btn-remove-tract {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 24px;
  min-block-size: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

.btn-remove-tract:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
}

.picker-looked-up-container {
  max-height: 290px;
  overflow-y: auto;
}

.picker-empty-state {
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
}

.picker-empty-state .picker-empty-icon {
  font-size: 26px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.picker-empty-state .picker-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.picker-empty-state .picker-empty-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  max-width: 260px;
  margin: 0 auto;
}

/* Left Elevation Gauge / Ruler */
.elevation-scale-left {
  position: absolute;
  left: 14px;
  top: 110px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 65;
  pointer-events: none;
}

.scale-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 160px;
}

.scale-tick-label {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.scale-bar-track {
  width: 4px;
  height: 160px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
}

.scale-indicator {
  position: absolute;
  top: 35%;
  left: -2px;
  width: 8px;
  height: 38px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Right Floating Controls (Compass North Snap & 3D Pitch) */
.right-floating-controls {
  position: absolute;
  right: 14px;
  top: 84px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-compass-tactical {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 18, 22, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.65);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.btn-compass-tactical:hover {
  border-color: #ef4444;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
}

.btn-compass-tactical:active {
  transform: scale(0.92);
}

.compass-dial-needle {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.compass-snapped {
  animation: compass-snap-pulse 0.45s ease-out;
}

@keyframes compass-snap-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.22); filter: drop-shadow(0 0 8px #ef4444); }
  100% { transform: scale(1); }
}

.btn-3d-tactical {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 18, 22, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.65);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-3d-tactical:hover {
  border-color: #f59e0b;
}

.btn-3d-tactical:active {
  transform: scale(0.92);
}

.btn-3d-text {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Draggable Stand Target Center Pin */
.stand-target-center-pin {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  z-index: 10;
}

.stand-target-center-pin:active {
  cursor: grabbing;
  transform: scale(1.18);
}

.target-center-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  background: rgba(12, 16, 22, 0.85);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s ease;
}

.target-center-ring::before,
.target-center-ring::after {
  content: '';
  position: absolute;
  background: rgba(56, 189, 248, 0.9);
  pointer-events: none;
}
.target-center-ring::before {
  width: 1.5px;
  height: 28px;
  top: -4px;
}
.target-center-ring::after {
  width: 28px;
  height: 1.5px;
  left: -4px;
}

.target-center-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  z-index: 2;
}

/* ScentStream Vector Micro-Range Yardage Badges */
.scentstream-yard-pill {
  background: rgba(10, 14, 20, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.85);
  color: #38bdf8;
  font-family: 'JetBrains Mono', 'Roboto Mono', 'SF Pro Text', Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 6px rgba(56, 189, 248, 0.35);
  transform: translate(3px, -50%);
  white-space: nowrap;
  transition: opacity 0.2s ease;
  user-select: none;
}

/* Bottom Tactical Sheet (Collapsible & Draggable) */
.bottom-tactical-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0c0e11;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0;
  z-index: 75;
  padding: 8px 16px calc(var(--safe-area-bottom) + 10px) 16px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  touch-action: pan-y;
}

/* Collapsed State: Slides down to reveal 90%+ of the tactical map */
.bottom-tactical-sheet.sheet-collapsed {
  transform: translateY(100%);
  pointer-events: none;
}

/* When bottom sheet is expanded (open), smoothly hide bottom action bar & toast banner */
.bottom-tactical-sheet:not(.sheet-collapsed) ~ .tactical-toast-banner {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.bottom-tactical-sheet:not(.sheet-collapsed) ~ .tactical-bottom-action-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.bottom-tactical-sheet.sheet-collapsed ~ .tactical-toast-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.bottom-tactical-sheet.sheet-collapsed ~ .tactical-bottom-action-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bottom-tactical-sheet.sheet-collapsed .sheet-body-content {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}

.bottom-tactical-sheet.sheet-collapsed .sheet-grab-bar {
  background: #f59e0b;
  transform: scaleX(1.35);
}

.sheet-grab-bar-wrap {
  width: 100%;
  padding: 4px 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sheet-grab-bar {
  width: 44px;
  height: 5px;
  background: #d97706;
  border-radius: 3px;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sheet-grab-bar-wrap:hover .sheet-grab-bar {
  background: #f59e0b;
}

.sheet-title-row {
  margin-bottom: 12px;
  gap: 8px 12px;
  flex-wrap: wrap;
}

#view-huntzone .sheet-title-row {
  gap: 8px 12px !important;
  flex-wrap: wrap !important;
}

#huntzone-current-wind-readout {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

#huntzone-live-status-badge {
  line-height: 1.25;
  flex: 0 1 auto;
}

.sheet-title-text {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* Day Selector Pills */
.day-selector-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.day-selector-row::-webkit-scrollbar { display: none; }

.day-pill-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: #14171b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-pill-btn.active {
  border-color: #d97706;
  color: #f59e0b;
  background: rgba(217, 119, 6, 0.12);
}

/* Hourly Forecast Cards Container */
.hourly-forecast-cards-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.hourly-forecast-cards-container::-webkit-scrollbar { display: none; }

.hourly-forecast-card {
  min-width: 86px;
  padding: 10px 8px;
  border-radius: 8px;
  background: #15181d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hourly-forecast-card.active {
  border: 1.5px solid #d97706;
  background: rgba(30, 24, 16, 0.95);
}

.forecast-arrow-wrap {
  margin-bottom: 2px;
}

.forecast-card-dir {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.forecast-card-speed {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
}

.forecast-card-time {
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
}

/* Bottom Segmented Tabs Bar: [ HuntZone ] | [ LandZone ] */
.sheet-bottom-tabs-bar {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.sheet-tab-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  background: #15181d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sheet-tab-btn.active {
  background: #b45309;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.35);
}

/* LandZone Dossier Grid (Compact & Sleek) */
.landzone-dossier-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 2px;
  scrollbar-width: thin;
}

.dossier-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 6px;
  border-left: 2.5px solid #ef4444;
}

.dossier-key {
  font-size: 10px;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 1px;
}

.dossier-val {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  max-width: 74%;
  text-align: right;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  line-height: 1.35;
}

.dossier-val.highlight-amber {
  color: #f59e0b;
  font-size: 12.5px;
}

.phone-call-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.phone-call-wrap .dossier-val {
  max-width: 100%;
}

.quick-call-btn {
  background: #22c55e;
  color: #000 !important;
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 5px;
  text-decoration: none;
}

/* Slide-Up Layers Drawer */
.tactical-layers-drawer {
  position: absolute;
  right: 14px;
  top: 60px;
  background: rgba(14, 18, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px;
  width: 230px;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
}

.drawer-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.layer-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #fff;
  margin-bottom: 10px;
  cursor: pointer;
}

.slider-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 6px;
}

.slider-label-group {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #e4e4e7;
  margin-bottom: 6px;
}

.hud-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  gap: 6px;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-logo-icon {
  width: 20px;
  height: 20px;
  fill: var(--accent-blaze);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 87, 34, 0.6));
}

.hud-brand-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--accent-blaze);
  text-transform: uppercase;
}

.hud-brand-sep {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0 1px;
}

.hud-brand-location {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.hud-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hud-btn:active {
  transform: scale(0.96);
  border-color: var(--accent-cyan);
}

.hud-btn.theme-toggle-btn {
  border-color: rgba(255, 87, 34, 0.4);
}

.hud-btn.theme-toggle-btn:hover,
.hud-btn.theme-toggle-btn:active {
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
}

.hud-btn .indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.hud-btn.stand-locked .indicator-dot {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* Weather Telemetry HUD Pill */
.weather-hud-pill {
  pointer-events: auto;
  align-self: center;
  background: var(--bg-pill);
  border: 1px solid var(--bg-card-border);
  padding: 5px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
}

.weather-hud-pill::-webkit-scrollbar {
  display: none;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.telemetry-divider {
  color: var(--text-muted);
  opacity: 0.6;
}

.wind-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  transition: transform 0.5s ease;
  fill: var(--accent-cyan);
}

.highlight-green {
  color: var(--accent-green);
}

.highlight-amber {
  color: var(--accent-amber);
}

.highlight-cyan {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Stand of the Day (SOTD) Floating Tactical Card
   ========================================================================== */

.sotd-floating-card {
  position: absolute;
  top: calc(var(--safe-area-top) + 84px);
  left: 12px;
  z-index: 10;
  width: min(340px, calc(100% - 24px));
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sotd-floating-card:active {
  transform: scale(0.98);
  border-color: var(--accent-cyan);
}

.sotd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sotd-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sotd-badge {
  background: rgba(0, 230, 118, 0.18);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.4);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

.sotd-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sotd-safety-pct {
  color: var(--accent-green);
}

.sotd-approach-advice {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.35;
  display: none;
}

.sotd-floating-card.expanded .sotd-approach-advice {
  display: block;
}

.sotd-details-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sotd-floating-card.expanded .sotd-details-grid {
  display: grid;
}

.sotd-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 5px;
  text-align: center;
}

.sotd-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sotd-stat-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ==========================================================================
   LiDAR Bare-Earth Blend Slider & Layer Controls
   ========================================================================== */

.maplibregl-ctrl-attrib {
  display: none !important;
}

.lidar-slider-container {
  position: absolute;
  left: 10px;
  bottom: calc(var(--safe-area-bottom) + 44px);
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  max-width: 195px;
}

.lidar-slider-icon {
  width: 14px;
  height: 14px;
  fill: var(--accent-cyan);
  flex-shrink: 0;
}

.lidar-slider-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  flex-shrink: 0;
}

.lidar-slider-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2b4539 0%, var(--accent-cyan) 100%);
  outline: none;
  width: 60px;
}

.lidar-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  cursor: pointer;
}

.lidar-slider-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  cursor: pointer;
}

.lidar-val-readout {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
  min-width: 26px;
  text-align: right;
  flex-shrink: 0;
}

/* Layer quick toggle icons floating above slider */
.layer-toggles-bar {
  position: absolute;
  left: 10px;
  bottom: calc(var(--safe-area-bottom) + 82px);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  max-width: 195px;
  gap: 4px;
}

.layer-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.layer-toggle-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
}

/* ==========================================================================
   Cold-Weather Thumb Radial Dial Menu (≥68dp Target Size)
   ========================================================================== */

.radial-menu-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 220px;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
}

.radial-menu-container.closed .radial-svg {
  opacity: 0;
  transform: scale(0.2) translate(180px, 180px);
  pointer-events: none;
}

.radial-svg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 220px;
  pointer-events: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
  transform-origin: 220px 220px;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.radial-arc-outer {
  fill: none;
  stroke: var(--dial-rim);
  stroke-width: 3;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px var(--dial-rim));
}

.radial-wedge {
  fill: var(--dial-bg);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

.radial-wedge:hover,
.radial-wedge.active {
  fill: rgba(0, 229, 255, 0.28);
  stroke: var(--dial-rim);
  stroke-width: 2.5;
}

body.theme-oled-red .radial-wedge:hover,
body.theme-oled-red .radial-wedge.active {
  fill: rgba(255, 30, 30, 0.35);
  stroke: #ff1e1e;
}

.radial-icon {
  pointer-events: none;
  fill: var(--text-primary);
  transition: transform 0.15s ease;
}

.radial-label {
  pointer-events: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  fill: var(--text-primary);
  text-anchor: middle;
}

/* Central Tactile Rotary Knob (Bottom Right Corner) */
.radial-center-knob,
.radial-center-trigger {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #25332a 0%, #101813 70%, #080c09 100%);
  border: 2.5px solid var(--dial-rim, #00e5ff);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto !important;
  z-index: 50;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  touch-action: manipulation;
}

.radial-center-knob:active,
.radial-center-trigger:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 229, 255, 0.6);
}

.trigger-crosshair {
  width: 28px;
  height: 28px;
  color: var(--dial-rim, #00e5ff);
}
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.radial-center-knob:active {
  transform: scale(0.94);
}

.knob-inner-icon {
  width: 32px;
  height: 32px;
  fill: var(--text-primary);
}

/* ==========================================================================
   Bottom Tactical Telemetry Status Bar
   ========================================================================== */

.tactical-status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--safe-area-bottom) + 38px);
  padding: 4px 14px var(--safe-area-bottom) 14px;
  background: rgba(8, 12, 10, 0.94);
  border-top: 1px solid var(--bg-card-border);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  pointer-events: auto;
}

.status-bar-segments {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-segment {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 5px var(--accent-green);
}

/* ==========================================================================
   Parcel Acreage Inspector Modal (Acreage & Tax Details)
   ========================================================================== */

.tactical-modal-overlay,
.parcel-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 5, 0.72);
  z-index: 1000;
  display: flex;
  align-items: flex-end; /* Mobile bottom sheet */
  justify-content: center;
  padding: 0 0 calc(var(--safe-area-bottom) + 16px) 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tactical-modal-overlay.open,
.parcel-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.tactical-modal-card,
.parcel-modal-card {
  width: calc(100% - 24px);
  max-width: 440px;
  background: rgba(14, 20, 16, 0.96);
  border: 1.5px solid rgba(239, 68, 68, 0.5); /* Crimson onX boundary theme */
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 24px rgba(239, 68, 68, 0.25);
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tactical-modal-overlay.open .tactical-modal-card,
.parcel-modal-overlay.open .parcel-modal-card {
  transform: translateY(0);
}

.parcel-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.parcel-modal-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.parcel-modal-title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.parcel-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.parcel-modal-close:hover,
.parcel-modal-close:active {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  border-color: #ef4444;
}

.parcel-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parcel-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border-left: 3px solid #ef4444;
}

.parcel-stat-key {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.5px;
}

.parcel-stat-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.parcel-stat-val.highlight-amber {
  color: #f59e0b;
  font-size: 15px;
  font-weight: 900;
}

.parcel-stat-row.highlight-row {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.parcel-quick-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #22c55e;
  color: #0b0e0c !important;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.parcel-quick-call-btn:active {
  transform: scale(0.95);
  background: #16a34a;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.modal-title-group h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-crimson);
  letter-spacing: 0.5px;
}

.modal-title-group p {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-info-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 7px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--accent-cyan);
}

.modal-info-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-info-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-timber-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-secondary);
}

.modal-footer {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.modal-action-btn {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-action-btn:active {
  background: var(--accent-cyan);
  color: #000;
}

/* ==========================================================================
   Waypoint Placement Crosshairs Reticle HUD
   ========================================================================== */

.plotting-crosshair-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
  display: none;
  flex-direction: column;
  align-items: center;
}

.plotting-crosshair-hud.active {
  display: flex;
}

.crosshair-reticle {
  width: 72px;
  height: 72px;
  position: relative;
}

.crosshair-reticle::before,
.crosshair-reticle::after {
  content: "";
  position: absolute;
  background-color: var(--accent-blaze);
}

.crosshair-reticle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}

.crosshair-reticle::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}

.crosshair-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--accent-blaze);
  border-radius: 50%;
}

.plotting-confirm-btn {
  pointer-events: auto;
  margin-top: 18px;
  background: var(--accent-blaze);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.6);
}

.plotting-confirm-btn:active {
  transform: scale(0.95);
}

.plotting-cancel-btn {
  pointer-events: auto;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-secondary);
  border: 1px solid var(--text-muted);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  cursor: pointer;
}

/* ==========================================================================
   Map Markers Styling (Treestands, Cams, Rubs, Bedding)
   ========================================================================== */

.map-marker {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.map-marker:hover {
  transform: scale(1.15);
}

.marker-pin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.marker-pin.stand-marker {
  border-color: #76ff03;
  box-shadow: 0 0 12px rgba(118, 255, 3, 0.6);
}

.marker-pin.cam-marker {
  border-color: var(--accent-amber);
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.6);
}

.marker-pin.scrape-marker {
  border-color: #ff9100;
}

.marker-pin.bedding-marker {
  border-color: #00e5ff;
}

.marker-icon {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.marker-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Tactical Notification Toast */
.tactical-toast {
  position: absolute;
  top: calc(var(--safe-area-top) + 52px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.tactical-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tactical Wind Button (Toggle Giant Concentric Target Rings) */
.btn-wind-tactical {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 18, 22, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.btn-wind-tactical:hover {
  border-color: #22c55e;
  color: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
}

.btn-wind-tactical:active {
  transform: scale(0.92);
}

.btn-wind-tactical.active {
  border-color: #22c55e;
  color: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.45);
}

/* Tactical Map Toast (Top HUD Alert - No Bottom Menu Overlap) */
.tactical-toast-banner {
  position: fixed;
  top: 66px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #f8fafc;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(250, 204, 21, 0.2);
  z-index: 90;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  letter-spacing: 0.3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.tactical-toast-banner.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Bottom Tactical Action Bar ([ MY LOCATION ] | [ 🎯 1-MI ANALYZE ] | Center Amber FAB [✕] | [ COORDINATES ] | [ + WAYPOINT ]) */
.tactical-bottom-action-bar {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-content: safe center;
  gap: 12px;
  z-index: 68;
  padding: 6px 16px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  pointer-events: auto;
}

.tactical-bottom-action-bar::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge */
}

.tactical-bottom-action-bar > * {
  pointer-events: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.tactical-pill-btn {
  background: rgba(14, 18, 22, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.tactical-pill-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

.tactical-pill-btn:active {
  transform: scale(0.95);
}

.btn-amber-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #fbbf24;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.55);
  transition: all 0.2s ease;
}

.btn-amber-fab:hover {
  transform: scale(1.06);
  background: #d97706;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.7);
}

.btn-amber-fab:active {
  transform: scale(0.92);
}

/* Tactical Map Attribution (Google | MapLibre + Public Map Data Credits) */
.tactical-map-attribution {
  position: absolute;
  bottom: max(6px, calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 4px)) !important;
  left: calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 12px);
  right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.tactical-map-attribution .attr-left,
.tactical-map-attribution .attr-right {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .tactical-map-attribution {
    left: calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 8px);
    right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px);
    gap: 6px;
    font-size: 8.5px;
  }

  .tactical-map-attribution .attr-data-prefix {
    display: none;
  }
}

.tactical-map-attribution .attr-google {
  font-weight: 800;
  color: #ffffff;
}

.tactical-map-attribution .attr-maplibre {
  font-weight: 700;
  color: #ffffff;
}

/* Legend Floating Button */
.btn-legend-tactical {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 18, 22, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.btn-legend-tactical:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.btn-legend-tactical:active {
  transform: scale(0.92);
}

.btn-legend-tactical.active {
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

/* Tactical Legend Modal */
.tactical-legend-modal {
  position: absolute;
  top: calc(var(--safe-area-top) + 64px);
  right: 16px;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 160px);
  background: rgba(12, 16, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
  z-index: 50;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  animation: legend-slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes legend-slide-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.legend-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legend-title-text {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.legend-subtitle-text {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.btn-close-legend {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-legend:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.legend-body-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.legend-icon-wrap {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}

.legend-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legend-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.legend-item-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.legend-toggle-ctrl {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* On-Map Parcel Landowner Labels with Smooth Zoom Fade */
.on-map-parcel-label {
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  white-space: pre-line;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

.tactical-crosshair-pin {
  transition: opacity 0.25s ease;
  will-change: opacity;
}

/* Header Right Group & Account Pill */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-account-pill,
.btn-squad-pill,
.btn-install-pill,
.btn-offline-pill {
  width: auto !important;
  height: 36px;
  padding: 0 12px;
  border-radius: 20px !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-account-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  cursor: pointer;
  height: 36px;
  transition: all 0.2s ease;
}

.btn-account-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.account-pill-text {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Favorite Parcel Toggle Button in LandZone */
.btn-favorite-parcel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-favorite-parcel:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

.btn-favorite-parcel.active {
  background: rgba(245, 158, 11, 0.20);
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.btn-favorite-parcel.active .star-icon {
  filter: drop-shadow(0 0 4px #f59e0b);
}

/* LandZone Hunter Field Notes Section */
.landzone-notes-card {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notes-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notes-badge-icon {
  font-size: 14px;
}

.notes-title-text {
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.notes-sync-status {
  font-size: 10px;
  color: #94a3b8;
  font-style: italic;
}

.parcel-notes-textarea {
  width: 100%;
  min-height: 72px;
  max-height: 160px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.4;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.parcel-notes-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.notes-actions-bar {
  display: flex;
  justify-content: flex-end;
}

.btn-save-parcel-notes {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  border: none;
  border-radius: 8px;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save-parcel-notes:hover {
  background: #fbbf24;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* Tactical Auth & Anti-Bot Modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: auth-fade-in 0.25s ease-out;
}

@keyframes auth-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: #0f141a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-brand {
  font-size: 16px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.auth-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

.btn-close-auth {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-close-auth:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.auth-tabs-row {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.auth-form-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

/* Tactical Anti-Bot Slider Puzzle */
.bot-puzzle-container {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-puzzle-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.puzzle-title {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
}

.puzzle-status {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.puzzle-status.verified {
  color: #22c55e;
}

.bot-slider-track {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.bot-target-cutout {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px dashed #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.2s ease;
}

.bot-target-cutout.locked {
  border: 2px solid #22c55e;
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.6);
}

.bot-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #38bdf8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bot-slider-thumb:active {
  cursor: grabbing;
}

.bot-slider-thumb.verified {
  border-color: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

.bot-slider-thumb.verified svg {
  stroke: #22c55e;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  background: #f59e0b;
  border: none;
  border-radius: 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auth-submit:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #64748b;
  cursor: not-allowed;
}

.btn-auth-submit:not(:disabled):hover {
  background: #fbbf24;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.auth-error-msg {
  font-size: 11px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

/* Logged-In Hunter Profile Card */
.auth-profile-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
}

.profile-avatar {
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1.5px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-username {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.profile-meta {
  font-size: 11px;
  color: #22c55e;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-stat-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 20px;
  font-weight: 900;
  color: #f59e0b;
}

.stat-name {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-profile-location {
  padding: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1.5px solid #38bdf8;
  border-radius: 10px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-profile-location:hover {
  background: rgba(56, 189, 248, 0.22);
}

.btn-profile-logout {
  padding: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid #ef4444;
  border-radius: 10px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-profile-logout:hover {
  background: rgba(239, 68, 68, 0.22);
}

/* ==========================================================================
   HUNTING ATLAS & 1-MILE CORRIDOR ANALYZE BUTTON
   ========================================================================== */

.btn-analyze-pill {
  background: rgba(26, 32, 22, 0.94) !important;
  border-color: rgba(250, 204, 21, 0.6) !important;
  color: #fef08a !important;
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
  transition: all 0.2s ease;
}

.btn-analyze-pill:hover,
.btn-analyze-pill:active {
  background: rgba(250, 204, 21, 0.2) !important;
  border-color: #facc15 !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.45);
}

.atlas-rankings-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px 2px;
  -webkit-overflow-scrolling: touch;
}

.atlas-rank-card {
  min-width: 170px;
  flex: 0 0 auto;
  background: #111822;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.atlas-rank-card.active {
  border-color: #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.28);
  background: #17202e;
}

.atlas-rank-card.rank-prime .rank-top-badge {
  color: #22c55e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.atlas-rank-card.rank-great .rank-top-badge {
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
}

.atlas-rank-card.rank-moderate .rank-top-badge {
  color: #fb923c;
  font-size: 10px;
  font-weight: 800;
}

.atlas-rank-card.rank-fair .rank-top-badge {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.rank-day-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.rank-score-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.rank-big-score {
  font-size: 26px;
  font-weight: 900;
  color: #facc15;
  line-height: 1;
}

.rank-max-score {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.rank-condition-tag {
  font-size: 10.5px;
  color: #cbd5e1;
}

.rank-hours-tag {
  font-size: 10px;
  color: #4ade80;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.12);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.atlas-hourly-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.atlas-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.6px;
}

.atlas-hourly-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  -webkit-overflow-scrolling: touch;
}

.atlas-hour-card {
  min-width: 110px;
  flex: 0 0 auto;
  background: #111720;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.atlas-hour-card.active {
  border-color: #facc15;
  background: #172233;
}

.hour-prob-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 12px;
  line-height: 1;
}

.hour-prob-badge.prob-peak {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.hour-prob-badge.prob-high {
  background: rgba(250, 204, 21, 0.2);
  color: #facc15;
  border: 1px solid #eab308;
}

.hour-prob-badge.prob-moderate {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
  border: 1px solid #ea580c;
}

.hour-prob-badge.prob-low {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hour-time-label {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.hour-weather-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #cbd5e1;
}

.hour-temp-tag {
  font-size: 11px;
  color: #e2e8f0;
  font-weight: 700;
}

.hour-period-tag {
  font-size: 9.5px;
  color: #38bdf8;
  font-weight: 700;
}

/* ==========================================================================
   CENTER SCREEN TACTICAL RETICLE & HUNTER GPS LOCATION MARKER
   ========================================================================== */

.screen-center-crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 90;
  display: none; /* Default OFF for uncluttered view */
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 8px rgba(245, 158, 11, 0.45));
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.gate-locked .screen-center-crosshair {
  display: none !important;
}

.hunter-gps-pulse-marker {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
}

.hunter-gps-pulse-outer {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.35);
  animation: hunterGpsPulse 2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.hunter-gps-pulse-inner {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 10px #38bdf8, 0 2px 6px rgba(0,0,0,0.8);
}

@keyframes hunterGpsPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ==========================================================================
   MANDATORY GATED LANDING SCREEN (LOCKED UNTIL ACCOUNT CREATED OR LOGGED IN)
   ========================================================================== */

body.gate-locked #map,
body.gate-locked .app-header-huntzone,
body.gate-locked .left-map-hud-stack,
body.gate-locked .elevation-scale-left,
body.gate-locked #left-tilt-cluster,
body.gate-locked #btn-left-tilt,
body.gate-locked .right-floating-controls,
body.gate-locked .bottom-tactical-sheet,
body.gate-locked .tactical-bottom-action-bar,
body.gate-locked .tactical-map-attribution,
body.gate-locked .tactical-toast-banner {
  filter: blur(10px) brightness(0.32);
  pointer-events: none !important;
  user-select: none !important;
}

.landing-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 11, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.landing-gate-overlay.gate-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.landing-gate-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0d121b;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 32px rgba(245, 158, 11, 0.12);
  padding: 26px 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: gateCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gateCardPop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.gate-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.gate-brand-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding-right: 84px;
  gap: 10px;
}

.gate-brand-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  line-height: 1.15;
}

.gate-brand-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #f59e0b;
}

.gate-brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.25;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .landing-gate-card .gate-brand-line {
    padding-right: 78px;
    gap: 8px;
  }

  .landing-gate-card .gate-brand-sub {
    font-size: 9.5px;
    letter-spacing: 0.8px;
  }
}

.gate-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.gate-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.gate-tagline {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
  max-width: 90%;
}

.gate-tabs {
  display: flex;
  background: #070a0f;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.gate-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gate-tab-btn.active {
  background: #1e293b;
  color: #f59e0b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.gate-auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.gate-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gate-field-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.gate-input, .gate-select, .gate-textarea {
  background: #070a0f;
  border: 1.5px solid #1e293b;
  border-radius: 9px;
  color: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gate-input:focus, .gate-select:focus, .gate-textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.gate-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #e2e8f0;
  cursor: pointer;
}

/* Anti-Bot Target Slider inside Gate */
.gate-bot-challenge-card {
  background: #070a0f;
  border: 1.5px solid #1e293b;
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gate-challenge-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gate-challenge-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #f59e0b;
}

.gate-challenge-status {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.gate-challenge-status.verified {
  color: #22c55e !important;
}

.gate-slider-wrapper {
  position: relative;
  width: 100%;
}

.gate-slider-track {
  position: relative;
  width: 100%;
  height: 38px;
  background: #0f172a;
  border: 1.5px dashed rgba(245, 158, 11, 0.4);
  border-radius: 19px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.gate-target-cutout {
  position: absolute;
  top: 3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gate-target-cutout.locked {
  background: rgba(34, 197, 94, 0.3);
  border-color: #22c55e;
  transform: scale(1.15);
}

.gate-slider-thumb {
  position: absolute;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  transition: transform 0.1s ease;
  z-index: 5;
}

.gate-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.gate-slider-thumb.verified {
  background: #22c55e !important;
  box-shadow: 0 0 12px #22c55e !important;
}

.gate-challenge-hint {
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.35;
}

.gate-auth-error {
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #ef4444;
  font-size: 11px;
  font-weight: 600;
}

.gate-btn-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.gate-btn-close:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #ffffff;
}

.gate-challenge-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gate-auto-align-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-auto-align-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #f59e0b;
  color: #ffffff;
}

.gate-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 2px 0;
}

.gate-divider-line {
  flex: 1;
  height: 1px;
  background: #1e293b;
}

.gate-divider-text {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #64748b;
  white-space: nowrap;
}

.gate-btn-guest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(19, 78, 74, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(20, 184, 166, 0.5);
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.gate-btn-guest:hover {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.35) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: #14b8a6;
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.35);
  transform: translateY(-1px);
}

.gate-btn-guest:active {
  transform: translateY(0);
}

.gate-guest-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.gate-guest-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gate-guest-text strong {
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.gate-guest-text small {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.gate-btn-submit {
  padding: 12px;
  background: #f59e0b;
  border: none;
  border-radius: 10px;
  color: #0c1017;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-btn-submit:hover:not(:disabled) {
  background: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.gate-btn-submit:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.gate-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}

.gate-feature-pill {
  padding: 3px 8px;
  background: #070a0f;
  border: 1px solid #1e293b;
  border-radius: 999px;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   HUNTING SQUAD & BUDDY MANAGER STYLING
   ========================================================================== */

.btn-squad-pill {
  border-color: #22c55e !important;
  color: #22c55e !important;
}

.btn-squad-pill:hover {
  background: rgba(34, 197, 94, 0.15);
}

.squad-card, .waypoint-card, .waypoint-dossier-card {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  background: #0d121b;
  border: 1.5px solid #22c55e;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 24px rgba(34, 197, 94, 0.15);
  padding: 22px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.squad-header, .waypoint-header, .dossier-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.squad-brand, .waypoint-brand {
  font-size: 16px;
  font-weight: 800;
  color: #22c55e;
}

.squad-subtitle, .waypoint-subtitle {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.btn-close-modal:hover {
  color: #ffffff;
}

.squad-add-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.squad-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.squad-search-row {
  display: flex;
  gap: 8px;
}

.squad-input {
  flex: 1;
  background: #070a0f;
  border: 1.5px solid #1e293b;
  border-radius: 9px;
  color: #ffffff;
  padding: 9px 12px;
  font-size: 12px;
  outline: none;
}

.btn-squad-action {
  padding: 9px 14px;
  background: #22c55e;
  border: none;
  border-radius: 9px;
  color: #0c1017;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-squad-action:hover {
  background: #4ade80;
}

.squad-add-msg {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

.squad-roster-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.squad-roster-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.squad-roster-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.squad-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #070a0f;
  border: 1px solid #1e293b;
  border-radius: 9px;
}

.squad-member-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.squad-member-name {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}

.squad-member-badge {
  font-size: 10px;
  font-weight: 700;
}

.squad-member-stats {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.squad-member-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-locate-buddy {
  padding: 5px 9px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  border-radius: 6px;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-remove-buddy {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}

.btn-remove-buddy:hover {
  color: #ef4444;
}

.squad-empty-state {
  text-align: center;
  padding: 18px 12px;
  background: #070a0f;
  border: 1px dashed #1e293b;
  border-radius: 9px;
}

/* ==========================================================================
   TACTICAL SQUAD MARKER ON MAP
   ========================================================================== */

.tactical-squad-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 15;
  transition: transform 0.15s ease;
}

.tactical-squad-marker:hover {
  transform: scale(1.15);
  z-index: 20;
}

.squad-marker-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c1017;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.marker-owner .squad-marker-pin {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
}

.marker-friend .squad-marker-pin {
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
}

.marker-icon {
  font-size: 14px;
}

.squad-marker-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  background: rgba(10, 14, 20, 0.94);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.marker-owner .marker-badge-owner {
  color: #38bdf8;
  font-weight: 800;
  font-size: 9.5px;
}

.marker-friend .marker-badge-owner {
  color: #22c55e;
  font-weight: 800;
  font-size: 9.5px;
}

.marker-badge-title {
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

/* Waypoint Dossier */
.dossier-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.dossier-type-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #f59e0b;
}

.dossier-meta {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.dossier-creator {
  font-weight: 700;
  color: #38bdf8;
}

.dossier-notes-box {
  background: #070a0f;
  border: 1px solid #1e293b;
  border-radius: 9px;
  padding: 10px 12px;
}

.dossier-notes-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-bottom: 4px;
}

.dossier-notes-text {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.4;
  margin: 0;
}

.btn-delete-waypoint {
  width: 100%;
  padding: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid #ef4444;
  border-radius: 9px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete-waypoint:hover {
  background: rgba(239, 68, 68, 0.28);
}

.dossier-protected-notice {
  width: 100%;
  padding: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px dashed rgba(34, 197, 94, 0.4);
  border-radius: 9px;
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.waypoint-coords-row {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.waypoint-coords-row > .gate-field-group {
  min-width: 0;
}

.waypoint-card input:not([type="checkbox"]):not([type="radio"]),
.waypoint-card select,
.waypoint-card textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-add-waypoint-pill {
  border-color: #22c55e !important;
  color: #22c55e !important;
}

/* -------------------------------------------------------------
   OPTION 2: ZERO-CELL OFFLINE FIELD PACKS & WILDERNESS MODE
   ------------------------------------------------------------- */

.btn-install-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3));
  border: 1.5px solid #22c55e !important;
  color: #4ade80 !important;
  border-radius: 20px !important;
  padding: 0 11px !important;
  height: 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-install-pill:hover {
  background: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.install-pill-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #86efac;
}

.btn-offline-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-offline-pill:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.offline-pill-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.wilderness-mode-banner {
  position: fixed;
  top: calc(58px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  max-inline-size: min(92vw, 640px);
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #22c55e;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  padding: 5px 12px 5px 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: pulse-glow 2s infinite ease-in-out;
}

.wilderness-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
  font-size: 11.5px;
  color: #f8fafc;
}

.wilderness-title {
  font-weight: 800;
  color: #22c55e;
  letter-spacing: 0.5px;
}

.wilderness-title-compact {
  display: none;
}

.btn-wilderness-dismiss {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 20px;
  block-size: 20px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.btn-wilderness-dismiss:hover {
  background: rgba(148, 163, 184, 0.28);
  color: #ffffff;
}

.btn-wilderness-dismiss::after {
  content: "";
  position: absolute;
  inset: -12px;
}

@media (prefers-reduced-motion: reduce) {
  .wilderness-mode-banner {
    animation: none;
  }
}

@media (max-width: 767px) {
  .wilderness-mode-banner {
    top: calc(52px + env(safe-area-inset-top, 0px));
    left: calc(50% + 4px);
    max-inline-size: calc(100vw - 196px);
    padding: 4px 8px 4px 10px;
  }

  .wilderness-banner-content {
    gap: 6px;
    font-size: 10.5px;
  }

  .wilderness-title-full,
  .wilderness-desc {
    display: none;
  }

  .wilderness-title-compact {
    display: inline;
    font-size: 10.5px;
    letter-spacing: 0.35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.offline-card {
  background: #090d16;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  width: 95%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}

.offline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offline-brand {
  font-size: 16px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.offline-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.offline-section {
  margin-bottom: 18px;
}

.offline-status-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.offline-badge-ready {
  background: #065f46;
  color: #34d399;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.offline-badge-warning {
  background: #78350f;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.offline-status-text {
  font-size: 11.5px;
  color: #cbd5e1;
}

.btn-offline-download {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1.5px solid #38bdf8;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.btn-offline-download:hover {
  filter: brightness(1.15);
}

.offline-msg {
  font-size: 11px;
  margin-top: 8px;
  text-align: center;
}

.offline-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 8px;
  display: block;
}

.regional-packs-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.regional-pack-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.regional-pack-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.regional-pack-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.regional-pack-size {
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
}

.regional-pack-desc {
  font-size: 10.5px;
  color: #64748b;
  margin: 4px 0 8px 0;
}

.btn-install-regional {
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  border-radius: 6px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-install-regional:hover {
  background: rgba(56, 189, 248, 0.3);
}

.offline-roster-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.offline-packs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.offline-pack-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offline-pack-title {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}

.offline-pack-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
}

.offline-pack-tags {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.offline-pwa-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(6, 78, 59, 0.25));
  border: 1.5px solid rgba(34, 197, 94, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.offline-pwa-content {
  flex: 1;
}

.offline-pwa-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.offline-pwa-desc {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.35;
}

.btn-pwa-install {
  padding: 8px 14px;
  background: #22c55e;
  border: none;
  border-radius: 8px;
  color: #032514;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
}

.btn-pwa-install:hover {
  background: #4ade80;
  transform: translateY(-1px);
}

.offline-radius-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 7px 11px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.radius-picker-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.radius-radio-opt {
  font-size: 11px;
  color: #e2e8f0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.radius-radio-opt input {
  accent-color: #38bdf8;
  cursor: pointer;
}

.btn-pack-apply {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  border-radius: 6px;
  color: #38bdf8;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 6px;
}

.btn-pack-apply:hover {
  background: rgba(56, 189, 248, 0.3);
}

.btn-landzone-download-offline {
  width: 100%;
  padding: 9px 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(3, 105, 161, 0.3));
  border: 1.5px solid #38bdf8;
  border-radius: 8px;
  color: #7dd3fc;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-landzone-download-offline:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.pack-tag {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-pack-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #ef4444;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.offline-wilderness-box {
  background: rgba(34, 197, 94, 0.08);
  border: 1px dashed rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  padding: 12px;
}

.wilderness-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* v25.0 County-by-County & WMU Offline Manager (Mobile-Safe Responsive) */
.offline-card,
.offline-card * {
  box-sizing: border-box;
}

.offline-card {
  max-width: min(560px, calc(100vw - 20px));
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.offline-quota-wrap {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.offline-quota-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.offline-quota-text {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.btn-offline-detect {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 6px;
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.offline-quota-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.offline-quota-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.offline-detected-loc {
  font-size: 10.5px;
  color: #7dd3fc;
  margin-top: 6px;
  font-weight: 600;
}

.offline-tabs-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.offline-tab-btn {
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.7);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offline-tab-btn.active {
  background: rgba(2, 132, 199, 0.28);
  border-color: #38bdf8;
  color: #f8fafc;
}

.offline-density-bar {
  flex-wrap: wrap;
  gap: 8px;
}

.offline-select-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px;
  margin-bottom: 8px;
}

.offline-field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.offline-field-label span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #94a3b8;
}

.offline-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 7px;
  color: #f8fafc;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.offline-estimate-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 8px;
}

.offline-progress-wrap {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 9px;
  padding: 9px 11px;
  margin-bottom: 10px;
}

.offline-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.offline-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: #bae6fd;
  flex: 1;
  min-width: 0;
}

.offline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.offline-native-progress {
  appearance: none;
  border: 0 solid;
  overflow: clip;
  display: block;
  inline-size: 100%;
  block-size: 8px;
  --progress-bar-radius: 999px;
  border-radius: var(--progress-bar-radius);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.35);
}

.offline-native-progress::-webkit-progress-bar {
  background: transparent;
}

.offline-native-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.2s ease;
}

.offline-native-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .offline-progress-fill,
  .offline-native-progress::-webkit-progress-value {
    transition: none;
  }

  .offline-native-progress::-moz-progress-bar {
    transition: none;
  }
}

.btn-offline-cancel {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #fca5a5;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 600px) {
  .offline-card {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .offline-select-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .offline-tabs-row {
    gap: 4px;
  }
  .offline-tab-btn {
    font-size: 10.5px;
    padding: 7px 4px;
  }
  .offline-pwa-card {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-pwa-install {
    width: 100%;
    text-align: center;
  }
  .offline-pack-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* -------------------------------------------------------------
   OPTION 3: SQUAD BEACONING & PEER SCENT DRIFT HUD
   ------------------------------------------------------------- */

.squad-beacon-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.beacon-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.beacon-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.beacon-radio-dot {
  font-size: 20px;
}

/* Tactical Switch */
.tactical-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.tactical-switch.is-disabled,
.tactical-switch.disabled,
.tactical-switch:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

.tactical-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tactical-switch input:disabled {
  cursor: not-allowed;
}

.tactical-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}

.tactical-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.tactical-switch input:checked + .tactical-slider {
  background-color: #ff6600;
}

.tactical-switch input:checked + .tactical-slider:before {
  transform: translateX(20px);
}

.squad-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.squad-select {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #f8fafc;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.squad-alert-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.btn-alert-action {
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-alert-buck {
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid #f59e0b;
  color: #f59e0b;
}

.btn-alert-blood {
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid #ef4444;
  color: #ef4444;
}

.btn-alert-clear {
  background: rgba(34, 197, 94, 0.12);
  border: 1.5px solid #22c55e;
  color: #22c55e;
}

.btn-alert-action:hover {
  filter: brightness(1.2);
}

.squad-alert-pill {
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  animation: pulse-glow 1.5s infinite ease-in-out;
}

/* Buddy Beacon Map Marker */
.tactical-beacon-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.beacon-pulse-halo {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ff6600;
  background: rgba(255, 102, 0, 0.2);
  top: -8px;
  left: -8px;
  animation: radar-pulse 2s infinite ease-out;
  pointer-events: none;
}

.beacon-pin-dot {
  width: 28px;
  height: 28px;
  background: #ff6600;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 102, 0, 0.8);
  z-index: 2;
}

.beacon-icon {
  font-size: 13px;
}

.beacon-info-badge {
  margin-top: 4px;
  background: rgba(9, 13, 22, 0.92);
  border: 1px solid rgba(255, 102, 0, 0.6);
  border-radius: 6px;
  padding: 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.beacon-name {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
}

.beacon-dist {
  font-size: 9px;
  font-weight: 700;
  color: #facc15;
}

.beacon-alert-tag {
  background: #ef4444;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
}

.beacon-emergency .beacon-pin-dot {
  background: #ef4444 !important;
  box-shadow: 0 0 20px #ef4444 !important;
}

.beacon-emergency .beacon-pulse-halo {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.3) !important;
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Scent Warning Toast */
.squad-scent-warning-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1300;
  background: rgba(180, 83, 9, 0.95);
  border: 1.5px solid #f59e0b;
  border-radius: 20px;
  color: #fef3c7;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  display: none;
  animation: pulse-glow 2s infinite ease-in-out;
}

.badge-broadcasting {
  background: rgba(255, 102, 0, 0.2);
  color: #ff6600 !important;
  border: 1px solid rgba(255, 102, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 9.5px;
}

.card-emergency {
  border: 1.5px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE ENHANCEMENTS (Header & Action Bar Protection)
   ========================================================================== */

/* Legacy 640px header rules removed in favor of v11.1 unified responsive rules */

/* ==========================================================================
   Tactical 1-Mile Area Biological Terrain Intelligence Modal
   ========================================================================== */
.area-analysis-card {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  background: #0b1118;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(250, 204, 21, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.analysis-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.analysis-title-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.analysis-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-pill-tag {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 12px;
}

.analysis-pill-sub {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 12px;
}

.analysis-main-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.analysis-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.6px;
}

.metric-val {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.analysis-scroll-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 6px;
}

.analysis-section-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.8px;
}

.section-box-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

.drivers-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.driver-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.driver-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.driver-title {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}

.driver-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid currentColor;
}

.driver-principle {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
}

.driver-reasoning {
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.driver-citation {
  font-size: 10px;
  color: #64748b;
  font-style: italic;
  margin-top: 2px;
}

.stands-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stand-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stand-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.stand-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stand-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.stand-prob {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
}

.stand-why {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.btn-fly-stand {
  background: #1e293b;
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-fly-stand:hover {
  background: #facc15;
  color: #0f172a;
}

.strategy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.strategy-col {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.strat-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 4px;
}

.morning-col .strat-label { color: #facc15; }
.evening-col .strat-label { color: #38bdf8; }

.strat-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
}

.analysis-footer-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn-intel-tactical {
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.2s;
}

.btn-intel-tactical:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* ==========================================================================
   Acreage Envelope Selector (50ac Default to 250ac)
   ========================================================================== */
.acreage-selector-container {
  position: absolute;
  bottom: calc(var(--safe-area-bottom, 0px) + 98px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(11, 17, 24, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75), 0 0 16px rgba(250, 204, 21, 0.1);
  display: none; /* Default OFF - toggles on tap of 50 AC ANALYZE */
  padding: 6px 12px;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
}

.acreage-hud-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acreage-hud-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  white-space: nowrap;
}

.acreage-stepper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.btn-step-acre {
  background: transparent;
  border: none;
  color: #facc15;
  font-size: 16px;
  font-weight: 800;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-step-acre:hover {
  background: rgba(250, 204, 21, 0.2);
}

.acre-val-display {
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  padding: 0 6px;
  min-width: 62px;
  text-align: center;
  letter-spacing: 0.4px;
}

.acreage-pills-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pill-acre {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pill-acre:hover {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
}

.pill-acre.active {
  background: #facc15;
  color: #0f172a;
  border-color: #facc15;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

@media (max-width: 480px) {
  .acreage-selector-container {
    padding: 5px 8px;
    gap: 6px;
  }
  .acreage-hud-title {
    display: none;
  }
  .pill-acre {
    padding: 3px 6px;
    font-size: 10px;
  }
}

/* Report Button Pulse Alert on Acreage Switch */
@keyframes pulse-intel-flash {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.85); border-color: #f59e0b; }
  50% { box-shadow: 0 0 25px 10px rgba(245, 158, 11, 0.95); border-color: #fef08a; background: #b45309; }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); border-color: #f59e0b; }
}

.intel-pulse-flash {
  animation: pulse-intel-flash 1.0s infinite ease-in-out !important;
  border: 2.5px solid #f59e0b !important;
  color: #fef08a !important;
}

/* Basemap Selector in Layers Drawer */
.drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #a1a1aa;
  margin: 10px 0 6px 0;
  text-transform: uppercase;
}

.basemap-pills-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.pill-basemap {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.pill-basemap:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #ffffff;
}

.pill-basemap.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Global Contours Toggle Card */
.contour-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.contour-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contour-title {
  font-size: 12px;
  font-weight: 700;
  color: #4ade80;
}

.contour-desc {
  font-size: 10px;
  color: #94a3b8;
}

/* Floating Contour Button */
.btn-contour-tactical {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-size: 16px;
}

.btn-contour-tactical:hover {
  border-color: #22c55e;
  transform: scale(1.05);
}

.btn-contour-tactical.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.active-3d {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

/* Parcel Best Spots Card */
.parcel-best-spots-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.spots-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spots-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spots-badge-icon {
  font-size: 14px;
}

.spots-title-text {
  font-size: 12px;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spots-count-pill {
  font-size: 10px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 2px 6px;
}

.parcel-spots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.spot-item-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 8px;
  transition: all 0.2s;
}

.spot-item-card:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

.spot-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.spot-name-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spot-rank-badge {
  background: #f59e0b;
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  border-radius: 4px;
  padding: 1px 4px;
}

.spot-name-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.spot-score-pill {
  font-size: 10px;
  font-weight: 800;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.spot-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
  margin-bottom: 6px;
}

.spot-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: #cbd5e1;
}

.spot-wind-tag {
  color: #38bdf8;
  font-weight: 600;
}

.btn-fly-spot {
  background: #2563eb;
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-fly-spot:hover {
  background: #1d4ed8;
}

/* Spot Tactical Dossier Modal */
.spot-detail-modal-card {
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.2);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.analysis-body-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
  margin-right: -4px;
}

.analysis-body-scroll::-webkit-scrollbar {
  width: 6px;
}
.analysis-body-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.analysis-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.45);
  border-radius: 4px;
}
.analysis-body-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.75);
}

.spot-modal-rating-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.spot-modal-parcel {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.6px;
  margin-top: 3px;
  text-transform: uppercase;
}

.spot-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.spot-title-bar .analysis-main-title {
  margin: 0;
  min-width: 0;
  flex: 1 1 170px;
}

.spot-title-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-spot-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-block-size: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-spot-quick-action:hover,
.btn-spot-quick-action:focus-visible {
  border-color: rgba(251, 191, 36, 0.8);
  color: #fde68a;
}

.btn-spot-quick-action:focus-visible,
.btn-spot-rename-save:focus-visible,
.btn-spot-rename-cancel:focus-visible,
.spot-rename-input:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.btn-spot-fav-toggle[aria-pressed="true"] {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fde68a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.btn-spot-fav-toggle .spot-fav-icon {
  color: #f59e0b;
  font-size: 13px;
  line-height: 1;
}

.spot-rename-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.spot-rename-form[hidden] {
  display: none !important;
}

.spot-rename-label {
  display: block;
  margin-block-end: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spot-rename-input-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.spot-rename-input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  background: #0b1118;
  color: #f8fafc;
  font: inherit;
  font-size: max(1rem, 16px);
  box-sizing: border-box;
}

.btn-spot-rename-save,
.btn-spot-rename-cancel {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-spot-rename-save {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #fbbf24;
  color: #0b0f14;
}

.btn-spot-rename-cancel {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.stand-eval-fav-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fde68a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.spot-reasoning-content {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.5;
}

.spot-reason-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 8px;
  border-radius: 6px;
  border-left: 2.5px solid #f59e0b;
}

.spot-reason-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.spot-reason-text {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

.spot-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spot-spec-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.spot-modal-actions-footer {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background: #0b1118;
  z-index: 10;
}

.btn-deploy-stand-action {
  flex: 1.6;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid #3b82f6;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.btn-deploy-stand-action:hover,
.btn-deploy-stand-action:active {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-secondary-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.btn-secondary-action:hover,
.btn-secondary-action:active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

@media (max-width: 768px) {
  .spot-detail-modal-card {
    max-height: 90vh;
    padding: 16px 14px 14px 14px;
    gap: 10px;
    border-radius: 16px;
  }
  .analysis-body-scroll {
    gap: 10px;
    padding-right: 4px;
  }
  .spot-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .spot-modal-actions-footer {
    padding-top: 10px;
    margin-top: 6px;
    gap: 8px;
  }
  .btn-deploy-stand-action {
    padding: 10px 12px;
    font-size: 12px;
  }
  .btn-secondary-action {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* Tactical Interactive Parcel Spot Map Markers */
.tactical-spot-marker {
  position: absolute !important;
  width: max-content !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 45;
  pointer-events: auto;
  user-select: none;
}

.tactical-spot-marker:hover {
  z-index: 50;
}

.tactical-spot-marker:hover .spot-marker-pin,
.tactical-spot-marker:hover .spot-marker-rating {
  transform: scale(1.12);
}

.spot-marker-rating {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
  border: 1px solid #fef08a;
  white-space: nowrap;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.spot-marker-pin {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #ef4444 20%, #dc2626 65%, #991b1b 100%);
  border: 2.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.85), 0 4px 10px rgba(0, 0, 0, 0.7);
}

.spot-marker-rank {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.spot-marker-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.75);
  pointer-events: none;
  animation: spot-halo-pulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes spot-halo-pulse {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Pillars 1-4 Tactical Controls & Styles */
.rut-phase-pills-row,
.time-of-day-pills-row,
.sign-type-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pill-rut-phase,
.pill-time-of-day,
.pill-sign-type {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-rut-phase:hover,
.pill-time-of-day:hover,
.pill-sign-type:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.pill-rut-phase.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #fef08a;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.pill-time-of-day.active {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border-color: #bae6fd;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.pill-sign-type.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #bbf7d0;
  color: #0f172a;
  font-weight: 800;
}

.btn-open-sign-logger-card {
  width: 100%;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed #38bdf8;
  color: #38bdf8;
  font-weight: 800;
  font-size: 12px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all 0.2s;
}

.btn-open-sign-logger-card:hover {
  background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.sign-logger-modal-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 18px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.25);
}

.tactical-input,
.tactical-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
  margin-top: 4px;
}

.tactical-input:focus,
.tactical-textarea:focus {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.btn-submit-sign {
  flex: 2;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 1px solid #86efac;
  color: #0f172a;
  font-weight: 800;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancel-sign {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Ground-Truth Whitetail Sign Map Markers */
.ground-truth-sign-marker {
  position: absolute !important;
  width: max-content !important;
  height: auto !important;
  cursor: pointer;
  z-index: 42;
  pointer-events: auto;
  user-select: none;
}

.ground-truth-sign-marker:hover {
  z-index: 48;
}

.sign-marker-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid #f59e0b;
  border-radius: 20px;
  padding: 2.5px 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  width: auto;
  max-width: max-content;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sign-marker-badge:hover,
.sign-marker-badge:active {
  transform: scale(1.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.95);
}

.sign-marker-icon {
  font-size: 13px;
}

.sign-marker-name {
  font-size: 10px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
}

/* ==========================================================================
   Tactical Loading / Splash Screen (RutLine by HartForge Labs LLC)
   ========================================================================== */
.app-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: radial-gradient(circle at 50% 38%, #142018 0%, #080d0a 60%, #020302 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.app-splash-screen.splash-fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-inner-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
}

.splash-top-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.38);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.16);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.splash-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: splash-pulse-glow 1.4s ease-in-out infinite alternate;
}

.splash-chip-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #f8fafc;
  font-family: monospace;
}

.splash-emblem-wrap {
  position: relative;
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.splash-radar-pulse {
  position: absolute;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.34) 0%, rgba(245, 158, 11, 0.12) 50%, rgba(249, 115, 22, 0) 75%);
  animation: splash-pulse-glow 2s ease-in-out infinite alternate;
  pointer-events: none;
}

.splash-radar-ring {
  position: absolute;
  border: 1.5px dashed rgba(249, 115, 22, 0.45);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  animation: splash-radar-spin 12s linear infinite;
  pointer-events: none;
}

.splash-radar-ring-outer {
  position: absolute;
  border: 1px dotted rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  width: 208px;
  height: 208px;
  animation: splash-radar-spin-reverse 20s linear infinite;
  pointer-events: none;
}

.splash-radar-sweep {
  position: absolute;
  width: 208px;
  height: 208px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 197, 94, 0.14) 0deg, transparent 65deg, transparent 360deg);
  animation: splash-radar-spin 4s linear infinite;
  pointer-events: none;
}

.splash-emblem-img {
  width: 146px;
  height: 146px;
  filter: drop-shadow(0 8px 30px rgba(249, 115, 22, 0.55)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95));
  z-index: 2;
  transition: transform 0.3s ease;
  animation: splash-emblem-float 3s ease-in-out infinite alternate;
}

.splash-branding {
  margin-bottom: 22px;
}

.splash-brand-title {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #facc15 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 18px rgba(249, 115, 22, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.1;
}

.splash-brand-nod {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 12px;
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.splash-brand-nod .nod-gear {
  font-size: 12px;
}

.splash-brand-nod .nod-text {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 2.2px;
  color: #facc15;
  font-family: monospace;
}

.splash-telemetry-box {
  width: 100%;
  max-width: 330px;
  margin-bottom: 20px;
}

.splash-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
  position: relative;
}

.splash-progress-bar {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, #f97316 0%, #facc15 50%, #22c55e 100%);
  border-radius: 4px;
  transition: width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.9);
}

.splash-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.9px;
  min-height: 16px;
}

.splash-pct {
  color: #22c55e;
  font-weight: 900;
  font-family: monospace;
}

.splash-features-grid {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.splash-feat-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #cbd5e1;
  font-family: monospace;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.splash-skip-note {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
  letter-spacing: 1.2px;
  opacity: 0.85;
}

@keyframes splash-radar-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes splash-radar-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes splash-pulse-glow {
  0% { transform: scale(0.95); opacity: 0.45; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes splash-emblem-float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

/* ==========================================================================
   Tactical Active Stand Marker & ScentStream Badge
   ========================================================================== */
.tactical-active-stand-pin {
  position: absolute !important;
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 55;
  width: max-content !important;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.tactical-active-stand-pin.crosshair-hidden,
.tactical-active-stand-pin[style*="display: none"] {
  display: none !important;
}

.tactical-active-stand-pin:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.08);
}

.stand-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 15, 24, 0.96);
  border: 1.5px solid #22c55e;
  border-radius: 14px;
  padding: 3px 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.95), 0 0 12px rgba(34, 197, 94, 0.6);
  margin-bottom: 4px;
  white-space: nowrap;
}

.stand-pin-icon {
  font-size: 13px;
  line-height: 1;
}

.stand-pin-title {
  font-size: 11px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-transform: uppercase;
}

.stand-pin-score {
  font-size: 10px;
  font-weight: 800;
  color: #050807;
  background: #facc15;
  border-radius: 8px;
  padding: 1px 5px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.stand-pin-reticle {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stand-pin-ring {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.85);
}

.stand-pin-cross-v {
  position: absolute;
  width: 2px;
  height: 34px;
  background: #22c55e;
  pointer-events: none;
}

.stand-pin-cross-h {
  position: absolute;
  width: 34px;
  height: 2px;
  background: #22c55e;
  pointer-events: none;
}

.stand-pin-center-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  z-index: 2;
  pointer-events: none;
}

.stand-pin-wind-arrow {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: #f97316;
  background: rgba(10, 14, 20, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.75);
  border-radius: 10px;
  padding: 2px 7px;
  font-family: monospace;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

/* ==========================================================================
   Tactical Urban & Non-Huntable Municipal Zone Warning HUD
   HartForge Labs Whitetail Intelligence
   ========================================================================== */

.hud-urban-warning {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  width: calc(100% - 24px);
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(28, 10, 10, 0.96) 0%, rgba(15, 6, 6, 0.98) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.85);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.35), 0 0 16px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: pulseUrbanAlert 2.5s infinite ease-in-out;
  pointer-events: auto;
}

@keyframes pulseUrbanAlert {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35), 0 0 12px rgba(0, 0, 0, 0.9);
    border-color: rgba(239, 68, 68, 0.85);
  }
  50% {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.65), 0 0 22px rgba(239, 68, 68, 0.4);
    border-color: rgba(248, 113, 113, 1);
  }
}

.urban-warning-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.urban-warning-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8));
  flex-shrink: 0;
}

.urban-warning-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.urban-warning-text strong {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fca5a5;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.urban-warning-text span {
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.3;
}

.btn-fly-state-forest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.4);
  transition: all 0.2s ease;
}

.btn-fly-state-forest:hover,
.btn-fly-state-forest:active {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.6);
}

/* Urban Restricted Card in Parcel Drawer & Modal */
.urban-restricted-card {
  padding: 14px;
  background: linear-gradient(135deg, rgba(30, 10, 10, 0.95), rgba(16, 6, 6, 0.98));
  border: 1.5px solid rgba(239, 68, 68, 0.8);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.urban-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.urban-card-icon {
  font-size: 22px;
}

.urban-card-title {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.urban-card-title strong {
  font-size: 12.5px;
  font-weight: 900;
  color: #f87171;
  letter-spacing: 0.5px;
}

.urban-card-sub {
  font-size: 11px;
  color: #cbd5e1;
}

.urban-score-badge {
  font-size: 11px;
  font-weight: 900;
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border: 1px solid #ef4444;
  padding: 3px 8px;
  border-radius: 12px;
  font-family: monospace;
}

.urban-card-reason {
  font-size: 11.5px;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0;
}

.urban-card-citation {
  font-size: 10.5px;
  color: #fca5a5;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 8px;
  border-radius: 6px;
  font-family: monospace;
}

.urban-nearest-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nearest-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.nearest-tract-name {
  font-size: 12px;
  font-weight: 800;
  color: #4ade80;
}

.btn-fly-public-land {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border: 1px solid #22c55e;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease;
}

.btn-fly-public-land:hover,
.btn-fly-public-land:active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.6);
}

/* Stand Pin Urban Restricted Variant */
.tactical-active-stand-pin.urban-restricted .stand-pin-outer-ring {
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.9);
}

.tactical-active-stand-pin.urban-restricted .stand-pin-cross-v,
.tactical-active-stand-pin.urban-restricted .stand-pin-cross-h {
  background: #ef4444;
}

.tactical-active-stand-pin.urban-restricted .stand-pin-label-pill {
  border-color: #ef4444;
  color: #fca5a5;
}

.tactical-active-stand-pin.urban-restricted .stand-pin-wind-arrow {
  border-color: #ef4444;
  color: #fca5a5;
}

/* ==========================================================================
   Spots Toggle Buttons (Floating Toolbar & Drawer)
   ========================================================================== */
.btn-spots-tactical {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  padding: 0;
}

.btn-spots-tactical:hover {
  border-color: #ef4444;
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.btn-spots-tactical.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
}

.btn-spots-tactical:not(.active) {
  opacity: 0.45;
  filter: grayscale(0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-drawer-toggle-spots {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 12px;
  color: #fca5a5;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-toggle-spots:hover,
.btn-drawer-toggle-spots:active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   Tactical Crosshair & Add Pin (+) Interactive HUD
   ========================================================================== */
.crosshair-marker-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.crosshair-marker-wrap:active {
  cursor: grabbing;
}

/* Clickable + ADD Badge above crosshair */
.crosshair-add-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(10, 15, 24, 0.95);
  border: 2px solid #22c55e;
  border-radius: 18px;
  padding: 4px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.95), 0 0 14px rgba(34, 197, 94, 0.7);
  margin-bottom: 6px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
}

.crosshair-add-badge:hover,
.crosshair-add-badge:active {
  background: rgba(34, 197, 94, 0.25);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.95);
}

.crosshair-add-plus {
  font-size: 17px;
  font-weight: 900;
  color: #22c55e;
  line-height: 1;
}

.crosshair-add-text {
  font-size: 11px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Stand Pin Add More Button (+) */
.stand-pin-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid #22c55e;
  color: #22c55e;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
}

.stand-pin-more-btn:hover,
.stand-pin-more-btn:active {
  background: #22c55e;
  color: #0f172a;
  transform: scale(1.15);
}

/* Center + inside crosshair reticle */
.crosshair-center-plus {
  position: absolute;
  font-size: 15px;
  font-weight: 900;
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
  pointer-events: none;
  line-height: 1;
}

/* Drag to aim hint */
.crosshair-hint-label {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  background: rgba(10, 15, 24, 0.88);
  padding: 2px 7px;
  border-radius: 8px;
  margin-top: 5px;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Tactical Action Popover (Opened when tapping + symbol) */
.crosshair-action-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: rgba(10, 15, 24, 0.98);
  backdrop-filter: blur(12px);
  border: 1.5px solid #22c55e;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.95), 0 0 20px rgba(34, 197, 94, 0.45);
  padding: 10px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  animation: popoverFadeIn 0.18s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.popover-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #22c55e;
}

.popover-header {
  font-size: 10px;
  font-weight: 900;
  color: #22c55e;
  letter-spacing: 1px;
  text-align: center;
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
  padding-bottom: 6px;
  text-transform: uppercase;
}

.popover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.popover-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 52px;
}

.popover-item:hover,
.popover-item:active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  transform: translateY(-1px);
}

.popover-item-danger:hover,
.popover-item-danger:active {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.popover-item-icon {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 3px;
}

.popover-item-name {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.popover-item-sub {
  font-size: 8px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

.popover-custom-btn {
  width: 100%;
  padding: 7px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  color: #facc15;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.popover-custom-btn:hover,
.popover-custom-btn:active {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #ffffff;
}

/* ==========================================================================
   How To Use / Field Guide Modal & Toolbar Styles
   ========================================================================== */
.btn-guide-tactical {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 18, 22, 0.94);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 8px;
  padding: 0;
}

.btn-guide-tactical:hover {
  border-color: #38bdf8;
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.btn-guide-tactical:active {
  transform: scale(0.92);
}

.btn-drawer-guide-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-guide-action:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.how-to-use-modal-card {
  max-width: 580px !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.guide-p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.guide-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-bullet {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  padding-left: 4px;
}

.guide-bullet strong {
  color: #f1f5f9;
}

.guide-bullet em {
  color: #38bdf8;
  font-style: normal;
  font-weight: 700;
}

/* Live Wind Badge on Reticle Origin */
.crosshair-wind-tag {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45), 0 4px 12px rgba(0, 0, 0, 0.6);
  border-radius: 9999px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  animation: pulse-wind-tag 2.4s ease-in-out infinite alternate;
}

.crosshair-wind-tag span {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fbbf24;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

@keyframes pulse-wind-tag {
  0% {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
  }
  100% {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
  }
}

.btn-corridors-tactical {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #facc15;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  padding: 0;
  font-size: 19px;
}

.btn-corridors-tactical:hover {
  border-color: #facc15;
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4);
}

.btn-corridors-tactical.active {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.2);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.6);
  opacity: 1;
  filter: none;
}

.btn-corridors-tactical:not(.active) {
  opacity: 1;
  filter: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.screen-center-crosshair.active,
body.targeting-active .screen-center-crosshair {
  display: flex !important;
}

.acreage-selector-container.active {
  display: flex !important;
}

.btn-mark-tactical {
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(34, 197, 94, 0.55);
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  padding: 0;
}

.btn-mark-tactical:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: #22c55e;
  transform: scale(1.05);
}

.btn-mark-tactical.active {
  background: rgba(34, 197, 94, 0.28);
  border-color: #4ade80;
  color: #4ade80;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.75);
}

/* AI Terrain Inspector Right-Rail Button */
.btn-inspector-tactical {
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  padding: 0;
}

.btn-inspector-tactical:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  transform: scale(1.05);
}

.btn-inspector-tactical.active {
  background: rgba(56, 189, 248, 0.28);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.75);
}

/* On-Map 3-Tier Corridor Legend Key Pill */
#corridor-legend,
.corridor-map-legend-pill {
  position: fixed;
  bottom: 92px;
  left: 14px;
  z-index: 1050;
  background: rgba(9, 14, 22, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  max-width: 390px;
}

.corridor-legend-pill-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #facc15;
}

.corridor-legend-inspect-btn {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.corridor-legend-inspect-btn:hover {
  background: rgba(56, 189, 248, 0.3);
}

.corridor-legend-tiers-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #e2e8f0;
}

.corridor-tier-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.tier-swatch {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
}

.tier-swatch-yellow {
  background: #facc15;
  box-shadow: 0 0 6px #facc15;
}

.tier-swatch-green {
  background: repeating-linear-gradient(90deg, #22c55e, #22c55e 5px, transparent 5px, transparent 8px);
}

.tier-swatch-blue {
  background: repeating-linear-gradient(90deg, #38bdf8, #38bdf8 3px, transparent 3px, transparent 6px);
}

/* AI Terrain Inspector & Calibration Floating HUD */
.terrain-inspector-hud {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4500;
  width: min(94vw, 680px);
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  background: rgba(9, 14, 22, 0.95);
  backdrop-filter: blur(14px);
  border: 1.5px solid #38bdf8;
  border-radius: 14px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
}

.inspector-hud-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.inspector-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inspector-mode-pill {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.inspector-tile-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  font-family: monospace;
}

.inspector-subtitle {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}

.btn-close-inspector {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inspector-metrics-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.inspector-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  color: #e2e8f0;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.inspector-modes-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.inspector-mode-btn,
.inspector-tool-btn,
.inspector-refine-pill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.inspector-mode-btn:hover,
.inspector-tool-btn:hover:not(:disabled),
.inspector-refine-pill:hover {
  border-color: #38bdf8;
}

.inspector-mode-btn.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #7dd3fc;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.28);
}

.inspector-tool-btn.active,
.inspector-refine-pill.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fde68a;
}

.inspector-tool-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.inspector-finish-btn {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
  color: #86efac;
}

.inspector-history-btns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.inspector-ai-refine-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px 8px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
}

.ai-refine-caption {
  font-size: 10.5px;
  font-weight: 700;
  color: #7dd3fc;
  margin-right: auto;
}

.inspector-brushes-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.inspector-brush-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.brush-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px solid #ffffff;
  display: inline-block;
  flex-shrink: 0;
}

.inspector-brush-btn:hover {
  border-color: #38bdf8;
}

.inspector-brush-btn.active {
  background: rgba(34, 197, 94, 0.22);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.inspector-reset-btn {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.inspector-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: #94a3b8;
}

.inspector-radius-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.inspector-rad-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.inspector-rad-pill.active {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.inspector-status-note {
  color: #38bdf8;
  font-weight: 700;
}

.inspector-expanded-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.inspector-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-minimize-inspector {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-minimize-inspector:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.inspector-minimized-bar {
  display: none;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.terrain-inspector-hud.inspector-minimized {
  width: auto;
  max-width: min(94vw, 460px);
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  top: 56px;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.terrain-inspector-hud.inspector-minimized .inspector-expanded-wrap {
  display: none;
}

.terrain-inspector-hud.inspector-minimized .inspector-minimized-bar {
  display: inline-flex;
}

.btn-expand-inspector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-mini-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--inspector-brush-color, #22c55e);
  border: 1.5px solid #ffffff;
  flex-shrink: 0;
}

.inspector-mini-brush {
  white-space: nowrap;
  flex-shrink: 0;
}

.inspector-mini-status {
  font-size: 10.5px;
  font-weight: 700;
  color: #7dd3fc;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-mini-chevron {
  font-size: 10.5px;
  font-weight: 800;
  color: #38bdf8;
  padding-left: 2px;
  flex-shrink: 0;
}

.btn-close-inspector-mini {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.inspector-mini-expand-compact {
  display: none;
}

@media (max-width: 640px) {
  .terrain-inspector-hud:not(.inspector-minimized) {
    top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 52px) !important;
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 118px) !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px;
    gap: 5px;
  }

  .terrain-inspector-hud:not(.inspector-minimized) .inspector-subtitle {
    font-size: 10px;
  }

  .terrain-inspector-hud:not(.inspector-minimized) .inspector-metric-chip {
    padding: 2px 5px;
    font-size: 10px;
  }

  .terrain-inspector-hud:not(.inspector-minimized) .inspector-mode-btn,
  .terrain-inspector-hud:not(.inspector-minimized) .inspector-tool-btn,
  .terrain-inspector-hud:not(.inspector-minimized) .inspector-brush-btn {
    padding: 4px 6px;
    font-size: 10px;
  }

  .terrain-inspector-hud.inspector-minimized {
    top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 52px) !important;
    left: calc(50% + 4px);
    max-width: calc(100vw - 196px);
    padding: 4px 6px 4px 8px;
  }

  .inspector-mini-icon,
  .inspector-mini-status,
  .inspector-mini-expand-word {
    display: none;
  }

  .inspector-mini-expand-compact {
    display: inline;
  }

  .btn-expand-inspector {
    gap: 4px;
    font-size: 10.5px;
    padding: 1px 3px;
  }

  .btn-close-inspector-mini {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
}

/* ==========================================================================
   v8.4 STREAMLINED UI, LABELED RIGHT RAIL, QUICK TOOLS & MODAL SCROLL GUARD
   ========================================================================== */
.btn-guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  background: rgba(14, 165, 233, 0.16) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  font-size: 11.5px;
  font-weight: 800;
  width: auto !important;
  height: 36px !important;
}

.btn-guide-pill:hover {
  background: rgba(14, 165, 233, 0.28) !important;
  border-color: #38bdf8 !important;
}

.guide-pill-text {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .guide-pill-text {
    display: none;
  }
  .btn-guide-pill {
    padding: 6px 9px !important;
  }
}

.right-floating-controls {
  top: 78px !important;
  gap: 7px !important;
}

.rail-labeled-btn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 3px 2px !important;
  background: rgba(12, 16, 22, 0.92) !important;
  backdrop-filter: blur(10px);
}

.rail-btn-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #cbd5e1;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.drawer-quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.drawer-tool-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 7px 9px;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-tool-chip:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}

.btn-wind-intel-pill {
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.55) !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
}

.btn-wind-intel-pill:hover {
  background: rgba(56, 189, 248, 0.18) !important;
}

/* Modal & Dialog Scroll Chaining Containment (modern-web-guidance: prevent-page-scroll-under-modal-dialog) */
.auth-modal-overlay,
.tactical-modal-overlay,
.tactical-legend-modal {
  overflow: hidden;
  overscroll-behavior: contain;
}

.analysis-body-scroll,
.analysis-scroll-content,
.legend-body-scroll,
.how-to-use-scroll {
  overscroll-behavior: contain;
}

/* ==========================================================================
   v8.5 Static Map Markers (Zero Pan Drift) & Anti-Overlap Sheet Layout
   ========================================================================== */

/* 1. Never transition transform on MapLibre marker roots (prevents pan lag & drift) */
.maplibregl-marker {
  transition: none !important;
  will-change: transform;
}

/* Hide any legacy floating parcel name DOM markers */
.on-map-parcel-label {
  display: none !important;
}

/* Lock active stand / mark pin to a fixed 32x32 center box so popovers/badges never shift its geographic anchor */
.tactical-active-stand-pin {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
  transition: none !important;
}

.tactical-active-stand-pin:active {
  transform: none;
}

.tactical-active-stand-pin .stand-pin-circle {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
}

.tactical-active-stand-pin .stand-pin-wind-badge {
  position: absolute !important;
  bottom: 36px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  pointer-events: none;
}

.tactical-active-stand-pin .stand-pin-label {
  position: absolute !important;
  top: 35px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 0 !important;
  white-space: nowrap !important;
  pointer-events: none;
}

.tactical-active-stand-pin .crosshair-action-popover {
  position: absolute !important;
  bottom: 42px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-bottom: 0 !important;
  z-index: 300 !important;
}

/* Lock Marked Waypoint / Sign / Camera / Stand pins (.tactical-squad-marker) to a fixed 30x30 center anchor */
.tactical-squad-marker {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  transition: none !important;
}

.tactical-squad-marker:hover {
  /* Never override transform on .maplibregl-marker root! Scale inner circle instead */
  z-index: 45;
}

.tactical-squad-marker .squad-pin-circle {
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  transition: transform 0.15s ease;
}

.tactical-squad-marker:hover .squad-pin-circle {
  transform: scale(1.15);
}

.tactical-squad-marker .squad-pin-label {
  position: absolute !important;
  top: 33px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 0 !important;
  white-space: nowrap !important;
  pointer-events: none;
}

/* 2. Prevent Bottom Sheet (LandZone / HuntZone / Atlas) from overlapping Top Header or Legend Pill */
.bottom-tactical-sheet {
  z-index: 95 !important;
  max-height: calc(100dvh - 74px) !important;
  display: flex !important;
  flex-direction: column !important;
}

.bottom-tactical-sheet:not(.sheet-collapsed) .sheet-body-content {
  max-height: calc(100dvh - 156px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  padding-right: 4px;
  flex: 1 1 auto;
}

.bottom-tactical-sheet .sheet-bottom-tabs-bar {
  flex-shrink: 0;
  padding-top: 6px;
}

.sheet-grab-bar-wrap {
  position: relative;
  flex-shrink: 0;
  min-height: 24px;
}

.sheet-close-pill-btn {
  display: none;
  position: absolute;
  right: 2px;
  top: 0px;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.sheet-close-pill-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #f87171;
  color: #ffffff;
}

.bottom-tactical-sheet:not(.sheet-collapsed) .sheet-close-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Auto-hide floating 100-AC Pathway Legend Pill when bottom sheet is expanded so it never overlaps LandZone / Field Notes */
#corridor-legend,
.corridor-map-legend-pill {
  z-index: 68 !important;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

body:has(.bottom-tactical-sheet:not(.sheet-collapsed)) #corridor-legend,
body:has(.bottom-tactical-sheet:not(.sheet-collapsed)) .corridor-map-legend-pill {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Responsive 3-button bottom dock on mobile viewports so all 3 buttons fit without clipping */
@media (max-width: 560px) {
  .tactical-bottom-action-bar {
    left: 8px !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    transform: none !important;
    gap: 6px !important;
    justify-content: space-between !important;
    padding: 0 !important;
  }

  .tactical-bottom-action-bar .tactical-pill-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 6px !important;
    height: 40px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }

  .tactical-toast-banner {
    left: 10px !important;
    right: 66px !important;
    width: auto !important;
    max-width: calc(100vw - 76px) !important;
    transform: none !important;
  }
}

/* ==========================================================================
   v10.1 SPECTRAL CAMERA BLOOD TRACKER & RECOVERY GIS
   ========================================================================== */

.btn-blood-tactical {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(14, 18, 22, 0.94);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-blood-tactical.active-blood-rail {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.42);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.55);
}

@media (max-height: 860px) {
  .right-floating-controls {
    top: 72px !important;
    gap: 5px !important;
  }
  .rail-labeled-btn {
    width: 44px !important;
    height: 43px !important;
    border-radius: 12px !important;
  }
}

/* Active Blood Trail Floating Map HUD Bar */
.blood-trail-map-hud {
  position: fixed;
  top: calc(var(--safe-area-top, 0px) + 64px);
  left: 12px;
  right: 70px;
  transform: none;
  z-index: 82;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(239, 68, 68, 0.65);
  border-radius: 999px;
  padding: 5px 8px 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(239, 68, 68, 0.28);
  backdrop-filter: blur(10px);
}

.blood-trail-hud-text {
  font-size: 11.5px;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blood-trail-hud-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blood-hud-btn {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.blood-hud-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.blood-hud-btn-clear {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

/* Static Zero-Drift Map Blood Markers */
.blood-trail-map-pin {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  transition: none !important;
  cursor: pointer;
}

.blood-pin-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.94);
  border: 2px solid #ff2a55;
  box-shadow: 0 0 10px rgba(255, 42, 85, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
}

.blood-pin-tag {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 42, 85, 0.55);
  color: #fecdd3;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

/* Blood Tracker Modal & 100% Full-Screen Spectral Viewport */
.blood-tracker-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 12000 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #020956 !important;
}

.blood-tracker-card {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  background: #020956;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blood-tracker-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 10px) calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 12px) 12px calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 12px);
  background: linear-gradient(180deg, rgba(5, 10, 26, 0.92) 0%, rgba(5, 10, 26, 0.65) 75%, rgba(5, 10, 26, 0) 100%);
  border-bottom: none;
  gap: 6px;
}

.blood-header-left {
  flex: 1 1 auto;
  min-width: 170px;
}

.blood-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blood-lock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  flex-shrink: 0;
}

.blood-main-title {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.blood-speck-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #ff4d4d;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.blood-source-sub {
  font-size: 9px;
  font-weight: 700;
  color: #93c5fd;
  margin-top: 2px;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.blood-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.blood-top-btn {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.blood-top-btn.active {
  background: rgba(250, 204, 21, 0.25);
  border-color: #facc15;
  color: #fde047;
}

/* Full-Screen Spectral Viewport Container */
.blood-viewport-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  background: #020956;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.blood-scanner-canvas {
  width: 100vw !important;
  height: 100dvh !important;
  object-fit: cover;
  display: block;
}

/* Top Filter Pills Floating inside Full-Screen Viewport */
.blood-filter-bar {
  position: absolute;
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 84px);
  left: calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 8px);
  right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px);
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 24;
}

.blood-filter-pill {
  background: rgba(7, 11, 18, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 9.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.blood-filter-pill.active {
  background: rgba(37, 99, 235, 0.88);
  border-color: #93c5fd;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
}

/* Bottom Full-Screen Viewport Bar: Quick Pin + "Improve Detection" (Center) + Trail Drawer Toggle + "?" Help Button */
.blood-viewport-bottom-bar {
  position: absolute;
  bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 16px);
  left: calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 8px);
  right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  z-index: 24;
  pointer-events: none;
  transition: bottom 0.24s ease;
}

.blood-viewport-bottom-bar.drawer-open {
  bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 284px);
}

@media (max-width: 640px) {
  .blood-filter-bar {
    top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 128px);
  }

  .blood-viewport-bottom-bar.drawer-open {
    bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 324px);
  }
}

.btn-blood-quick-pin {
  pointer-events: auto;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(185, 28, 28, 0.92));
  border: 1.5px solid #fca5a5;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 7px 9px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
  white-space: nowrap;
}

.blood-bottom-right-group {
  pointer-events: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-blood-drawer-toggle {
  pointer-events: auto;
  background: rgba(9, 14, 28, 0.86);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 800;
  padding: 7px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.btn-improve-detection {
  pointer-events: auto;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  background: rgba(5, 10, 35, 0.76);
  border: 1.5px solid rgba(74, 222, 128, 0.5);
  color: #84cc16;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-improve-detection.active {
  background: rgba(20, 83, 45, 0.88);
  border-color: #4ade80;
  color: #4ade80;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.55);
}

.btn-blood-help-circle {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

/* Help Overlay inside Full-Screen Viewport */
.blood-help-sheet {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(7, 11, 18, 0.96);
  display: flex;
  flex-direction: column;
  padding: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 16px) calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 16px) calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 20px) calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.blood-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #f8fafc;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 8px;
}

.blood-help-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.42;
}

.blood-help-item {
  background: rgba(30, 41, 59, 0.55);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

/* Floating Collapsible Bottom Tactical Controls Drawer over Full-Screen Scanner */
.blood-controls-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 8px calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 12px) calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 14px) calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 12px);
  background: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid rgba(59, 130, 246, 0.45);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.blood-controls-footer.minimized {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}

.blood-drawer-handle-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding-bottom: 2px;
}

.blood-drawer-pill-bar {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.blood-drawer-title-hint {
  font-size: 9px;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.5px;
}

.blood-sensitivity-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blood-sens-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.blood-sensitivity-row input[type="range"] {
  flex: 1;
  accent-color: #ef4444;
  height: 5px;
  cursor: pointer;
}

.blood-sens-val {
  font-size: 11px;
  font-weight: 900;
  color: #f87171;
  min-width: 32px;
  text-align: right;
}

.blood-sign-pills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.blood-type-pill {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 4px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.blood-type-pill.active {
  background: rgba(220, 38, 38, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.blood-hit-advice-box {
  font-size: 10.5px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.85);
  border-left: 3px solid #ef4444;
  padding: 6px 8px;
  border-radius: 5px;
  line-height: 1.35;
}

.blood-trail-stats-line {
  font-size: 11px;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 6px 8px;
  border-radius: 6px;
}

.blood-boundary-alert-box {
  font-size: 10.5px;
  color: #fde047;
  background: rgba(161, 98, 7, 0.25);
  border: 1px solid rgba(250, 204, 21, 0.5);
  padding: 6px 8px;
  border-radius: 6px;
}

.blood-action-buttons-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

.btn-blood-primary {
  flex: 1.3;
  min-width: 0;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 1px solid #f87171;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-blood-secondary {
  flex: 1;
  min-width: 0;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
  font-size: 10px;
  font-weight: 800;
  padding: 8px 5px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-blood-clear {
  flex-shrink: 0;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 11px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
}

/* ============================================================================
   v10.2 MOBILE-FRIENDLY RIGHT-RAIL CONSOLIDATION, BOTTOM HIDE-ALL BUTTON,
   ADDRESS SEARCH BAR, AND MARKER "-" DELETE ICON
   ============================================================================ */

/* 1. Floating Tactical Address / Location Search Bar */
.tactical-address-search-bar {
  position: fixed;
  top: 56px;
  left: 10px;
  right: 76px;
  max-width: 460px;
  z-index: 4400;
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#acreage-selector-container:not(.active) {
  display: none !important;
}

.address-search-input-wrap,
.address-search-form {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.address-search-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.tactical-address-input,
.address-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 2px;
}

.tactical-address-input::placeholder,
.address-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.btn-address-clear,
.btn-address-search-clear {
  background: rgba(148, 163, 184, 0.2);
  border: none;
  color: #e2e8f0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-address-go,
.btn-address-search-go {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.address-search-results-dropdown,
.address-search-results {
  margin-top: 5px;
  background: rgba(9, 13, 22, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.78);
  max-height: 220px;
  overflow-y: auto;
}

.address-result-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 7px 9px;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.address-result-item:hover {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.2);
}

.address-result-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.address-result-text strong {
  font-size: 11.5px;
  color: #f8fafc;
  line-height: 1.25;
}

.address-result-text small {
  font-size: 10px;
  color: #94a3b8;
}

.picker-address-search-box {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.picker-address-row {
  display: flex;
  gap: 5px;
}

.picker-address-input {
  flex: 1;
  min-width: 0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 7px;
  padding: 6px 8px;
  color: #f8fafc;
  font-size: 11.5px;
}

.btn-picker-address-go {
  background: #0ea5e9;
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
}

/* Searched Address Static Map Pin */
.searched-address-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 65;
}

.searched-address-pin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(9, 13, 22, 0.95);
  border: 2px solid #38bdf8;
  color: #f8fafc;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
  white-space: nowrap;
}

/* 2. Consolidated Right-Side Toggleable Button Dock */
.right-floating-controls {
  position: fixed !important;
  top: 56px !important;
  right: 8px !important;
  z-index: 4300 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 5px !important;
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.rail-collapse-btn,
.btn-rail-collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 74px;
  height: 36px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid #f59e0b;
  color: #fde047;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8), 0 0 14px rgba(245, 158, 11, 0.45);
  transition: all 0.18s ease;
}

.btn-rail-collapse-toggle .tools-toggle-icon {
  font-size: 13px;
  line-height: 1;
}

.right-floating-controls.collapsed .btn-rail-collapse-toggle {
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.96) 0%, rgba(69, 26, 3, 0.98) 100%);
  border-color: #facc15;
  color: #fef08a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.85), 0 0 16px rgba(250, 204, 21, 0.55);
}

.right-rail-buttons-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 58px;
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 5px 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  max-height: calc(100dvh - 118px);
  overflow-y: auto;
  scrollbar-width: none;
}

.right-rail-buttons-grid::-webkit-scrollbar {
  display: none;
}

.right-rail-buttons-grid .rail-card-btn {
  width: 50px !important;
  height: 39px !important;
  min-height: 39px !important;
  flex-shrink: 0 !important;
  padding: 2px 1px !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.5px !important;
  transition: all 0.18s ease !important;
  overflow: hidden !important;
}

.right-rail-buttons-grid .rail-card-btn .rail-label {
  font-size: 6.8px !important;
  font-weight: 800 !important;
  letter-spacing: 0px !important;
  line-height: 1 !important;
  max-width: 48px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.right-rail-buttons-grid .rail-card-btn.active {
  background: rgba(245, 158, 11, 0.26) !important;
  border-color: #facc15 !important;
  color: #fef08a !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.45) !important;
}

.rail-analyze-toggle.active {
  background: rgba(34, 197, 94, 0.28) !important;
  border-color: #4ade80 !important;
  color: #bbf7d0 !important;
}

/* 3. Bottom Bar with Single "Hide Buttons" / "Show Buttons" Toggle */
.tactical-bottom-action-bar {
  position: fixed !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 168px !important;
  max-width: 240px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 4600 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  pointer-events: auto !important;
}

.btn-hide-all-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.72);
  transition: all 0.2s ease;
}

.btn-hide-all-controls:hover {
  border-color: #facc15;
  color: #fef08a;
}

.btn-hide-all-controls.active-hidden-mode {
  background: rgba(245, 158, 11, 0.92);
  border-color: #fde047;
  color: #090d16;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.6);
}

/* Global Fullscreen Clean Map State when "Hide Buttons" is toggled ON */
body.all-ui-buttons-hidden #right-floating-controls,
body.all-ui-buttons-hidden #tactical-address-search-bar,
body.all-ui-buttons-hidden #tactical-pathway-legend,
body.all-ui-buttons-hidden #tactical-corridor-legend-bar,
body.all-ui-buttons-hidden #corridor-legend,
body.all-ui-buttons-hidden #acreage-selector-container,
body.all-ui-buttons-hidden #map-scale-ruler,
body.all-ui-buttons-hidden .left-map-hud-stack,
body.all-ui-buttons-hidden .elevation-scale-left,
body.all-ui-buttons-hidden #left-tilt-cluster,
body.all-ui-buttons-hidden #btn-left-tilt,
body.all-ui-buttons-hidden .tactical-header,
body.all-ui-buttons-hidden .app-header-huntzone,
body.all-ui-buttons-hidden #bottom-sheet {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-6px);
}

/* Never allow the bottom action bar (Show Buttons pill) to disappear while all-ui-buttons-hidden is active */
body.all-ui-buttons-hidden .tactical-bottom-action-bar,
body.all-ui-buttons-hidden #tactical-action-bar,
body.all-ui-buttons-hidden .bottom-tactical-sheet:not(.sheet-collapsed) ~ .tactical-bottom-action-bar,
body.all-ui-buttons-hidden .bottom-tactical-sheet.sheet-collapsed ~ .tactical-bottom-action-bar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 12px) !important;
  width: min(540px, calc(100vw - 16px)) !important;
  transform: translateX(-50%) translateY(0) !important;
  z-index: 9999 !important;
}

/* 4. Marker "-" (Minus) Delete Button & Popover on Marked Map Spots */
.marker-delete-popover {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(9, 13, 22, 0.96);
  border: 1.5px solid rgba(239, 68, 68, 0.75);
  border-radius: 999px;
  padding: 3px 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
  z-index: 120;
  pointer-events: auto;
}

.btn-marker-minus-icon,
.stand-pin-delete-minus-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 1.5px solid #fca5a5;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.55);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-marker-minus-icon:hover,
.stand-pin-delete-minus-btn:hover {
  transform: scale(1.12);
  background: #dc2626;
}

.btn-marker-info-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.btn-marker-close-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  background: rgba(51, 65, 85, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-marker-close-icon:hover {
  transform: scale(1.12);
  background: rgba(71, 85, 105, 1);
  color: #ffffff;
}

.popover-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-bottom: 6px;
}

.popover-header-row .popover-header {
  margin-bottom: 0 !important;
}

/* ============================================================================
   v10.5 FULL VERTICAL UI SCROLLING & 1-TAP PROPERTY / LANDZONE ACCESS
   ============================================================================ */

/* 1. Top App Header always stays at top of stacking hierarchy */
.app-header-huntzone {
  z-index: 5400 !important;
}

/* 2. Layers & Quick Tools Drawer (#layers-drawer): Full vertical touch scrolling & z-index above search/rail/bottom bars */
.tactical-layers-drawer {
  position: fixed !important;
  top: 56px !important;
  right: 10px !important;
  width: min(320px, calc(100vw - 20px)) !important;
  max-height: calc(100dvh - 72px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  z-index: 5200 !important;
  padding: 0 14px 26px 14px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.88) !important;
}

.drawer-header-row {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(14, 18, 22, 0.99);
  padding: 12px 0 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.drawer-header-row .drawer-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.btn-close-layers-drawer {
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-close-layers-drawer:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #f87171;
}

/* 3. Tract Picker Menu (#tract-picker-menu): Above Address Search Bar & Scrollable */
.tract-picker-menu {
  position: fixed !important;
  top: 56px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(350px, calc(100vw - 20px)) !important;
  max-height: calc(100dvh - 72px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  z-index: 5300 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9) !important;
}

/* 4. Bottom Tactical Sheet (#bottom-sheet): Full smooth vertical scroll & top-level z-index when open */
.bottom-tactical-sheet {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 5100 !important;
  max-height: calc(100dvh - 58px) !important;
  display: flex !important;
  flex-direction: column !important;
}

.bottom-tactical-sheet.sheet-collapsed {
  transform: translateY(calc(100% + 24px)) !important;
  pointer-events: none !important;
  z-index: 95 !important;
}

.bottom-tactical-sheet .sheet-top-tabs-bar {
  flex-shrink: 0;
  margin-top: 2px;
  margin-bottom: 10px;
  padding-top: 0 !important;
}

.bottom-tactical-sheet .sheet-tab-btn {
  font-size: 11.5px !important;
  padding: 9px 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-tactical-sheet:not(.sheet-collapsed) .sheet-body-content {
  max-height: calc(100dvh - 148px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  padding-right: 4px;
  padding-bottom: 28px !important;
  flex: 1 1 auto;
}

/* Remove nested scroll traps inside LandZone so the entire Property sheet scrolls seamlessly as one unit */
.landzone-dossier-grid,
.parcel-spots-list {
  max-height: none !important;
  overflow: visible !important;
}

/* 5. Bottom Action Bar (#tactical-action-bar): Direct 1-Tap "🏡 Property / LandZone" + "👁️ Hide Buttons" */
.tactical-bottom-action-bar {
  position: fixed !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(540px, calc(100vw - 16px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 16px) !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 4600 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  pointer-events: auto !important;
}

.tactical-bottom-action-bar .btn-property-landzone-pill,
.btn-property-landzone-pill {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1.52 1 0 !important;
  min-width: 0 !important;
  overflow: hidden;
  height: 40px;
  padding: 0 5px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.95), rgba(120, 53, 15, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #f59e0b;
  color: #fef08a;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 0px !important;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.78), 0 0 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-property-landzone-pill.visible {
  display: inline-flex !important;
}

.btn-property-landzone-pill:hover,
.btn-property-landzone-pill.active-property-sheet {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border-color: #fde047 !important;
  color: #090d16 !important;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.65) !important;
}

.tactical-bottom-action-bar .btn-wind-intel-pill {
  flex: 0.88 1 0 !important;
  min-width: 0 !important;
  max-width: 155px !important;
  height: 40px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(15, 23, 42, 0.94) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.7) !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.78), 0 0 14px rgba(56, 189, 248, 0.35) !important;
  transition: all 0.2s ease !important;
}

.tactical-bottom-action-bar .btn-wind-intel-pill:hover,
.tactical-bottom-action-bar .btn-wind-intel-pill:active {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6) !important;
}

.tactical-bottom-action-bar .btn-hide-all-controls {
  flex: 0.98 1 0 !important;
  min-width: 0 !important;
  max-width: 155px !important;
  height: 40px !important;
  padding: 0 7px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
}

.tactical-bottom-action-bar:has(.btn-property-landzone-pill.visible) .btn-hide-all-controls {
  flex: 0.98 1 0 !important;
  max-width: none !important;
}

.btn-location-tactical {
  border: 1.5px solid rgba(56, 189, 248, 0.65) !important;
  background: rgba(14, 23, 42, 0.94) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.btn-location-tactical:hover,
.btn-location-tactical:active {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38bdf8 !important;
}

.btn-location-tactical .rail-btn-label {
  color: #7dd3fc !important;
  font-weight: 900 !important;
}

/* When "Hide Buttons" is toggled ON, hide the Property button too so only "Show Buttons" pill stays on the clean map */
body.all-ui-buttons-hidden #btn-bottom-property-landzone,
body.all-ui-buttons-hidden #layers-drawer,
body.all-ui-buttons-hidden #tract-picker-menu {
  display: none !important;
}

/* ==========================================================================
   RutLine Pro Subscription & 7-Day Free Trial ($25/Year) Tactical UI
   ========================================================================== */

/* Header Subscription Pill */
.btn-sub-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid #f59e0b;
  border-radius: 999px;
  color: #fbbf24;
  font-weight: 800;
  font-size: 11.5px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.btn-sub-pill:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

/* Subscription Paywall Modal Card */
.subscription-card {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.98), rgba(9, 13, 22, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  width: 94%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 32px rgba(245, 158, 11, 0.18);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  animation: subModalFadeIn 0.22s ease-out;
}

@keyframes subModalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.sub-modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sub-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sub-badge-trial {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.sub-badge-active {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.sub-badge-expired {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.sub-modal-headline {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.sub-modal-banner {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.sub-pricing-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.05));
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sub-plan-name {
  font-size: 11px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.sub-price-line {
  font-size: 16px;
  color: #f8fafc;
  font-weight: 700;
}

.sub-price-line strong {
  font-size: 20px;
  color: #fde047;
}

.sub-trial-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.sub-pricing-badge {
  text-align: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 65px;
}

.sub-badge-value {
  font-size: 17px;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.1;
}

.sub-badge-sub {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.sub-features-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
}

.sub-features-title {
  font-size: 10.5px;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.sub-features-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.35;
}

.sub-check {
  color: #22c55e;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  margin-top: 1px;
}

.sub-modal-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.btn-sub-primary {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #0f172a;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.4px;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-sub-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-sub-primary:active {
  transform: translateY(0);
}

.sub-test-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.sub-test-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.btn-sub-test-tool {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sub-test-tool:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #94a3b8;
  color: #ffffff;
}

/* VIP Tester / Field Staff Clearance Box */
.sub-tester-box {
  background: rgba(14, 23, 42, 0.75);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-tester-title {
  font-size: 11px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.sub-tester-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.3;
}

.sub-tester-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-tester-code {
  flex: 1;
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f8fafc;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
}

.input-tester-code:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.btn-redeem-tester {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 11.5px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-redeem-tester:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #0f172a;
}

.tester-code-feedback {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .sub-pricing-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .sub-pricing-badge {
    width: 100%;
  }
  .btn-sub-pill .sub-pill-text {
    font-size: 10px;
  }
  .sub-tester-input-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   RutLine Tactical Arsenal & onX Killer Feature Suite
   1. Stand Intel ("Which Stand Should I Hunt Today?")
   2. "Kill Hour" Barometric Pressure & Movement Radar
   3. Landowner Permission Letter (Print & Share PDF)
   4. "Back to Truck" Zero-Cell Survival Compass
   5. onX Hunt vs RutLine Pro Comparison Table
   ========================================================================== */

/* Top Header Kill Hour Chip */
.btn-kill-hour-pill {
  background: rgba(56, 189, 248, 0.12);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  color: #38bdf8;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-kill-hour-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* Stand Picker Modal Card */
.stand-picker-card,
.kill-hour-card,
.backtrack-card {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.98), rgba(9, 13, 22, 0.98));
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  width: 94%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 32px rgba(56, 189, 248, 0.15);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.stand-picker-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.stand-picker-title {
  margin: 6px 0 2px 0;
  font-size: 18px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.3px;
}

.stand-picker-wind-summary {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.stand-picker-wind-summary strong {
  color: #fbbf24;
}

.stand-picker-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stand-eval-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stand-eval-card:hover {
  transform: translateY(-1px);
}

.stand-eval-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.stand-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.badge-green-light {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.badge-caution {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-burned {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.stand-eval-name {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
}

.stand-eval-score {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.stand-eval-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.stand-eval-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-stand-fly {
  flex: 1;
  min-width: 140px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
}

.btn-stand-fly:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: #38bdf8;
  color: #ffffff;
}

.stand-picker-empty {
  text-align: center;
  padding: 30px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

/* Kill Hour Radar Modal */
.kill-hour-hero {
  text-align: center;
  padding: 18px 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(2, 132, 199, 0.06));
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
}

.kill-hour-score-num {
  font-size: 32px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.5px;
  line-height: 1;
}

.kill-hour-score-label {
  font-size: 11px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.6px;
  margin-top: 6px;
}

.kill-hour-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kill-metric-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kill-metric-name {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.kill-metric-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
}

.kill-hour-summary-box {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.kill-summary-title {
  font-size: 9.5px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.kill-summary-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Permission Letter Modal & Print Styles */
.permission-letter-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  width: 94%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.letter-modal-header {
  padding: 16px 20px;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.letter-toolbar {
  padding: 10px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
}

.btn-letter-action {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-print-pdf {
  background: #0284c7;
  color: #ffffff;
}

.btn-print-pdf:hover {
  background: #0369a1;
}

.btn-share-letter {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-share-letter:hover {
  background: #cbd5e1;
}

.permission-letter-scroll {
  padding: 24px 28px;
  overflow-y: auto;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}

.letter-paper {
  font-size: 13.5px;
  color: #1e293b;
}

.letter-date {
  margin-bottom: 16px;
  font-weight: 700;
}

.letter-recipient {
  margin-bottom: 20px;
  line-height: 1.4;
}

.letter-salutation {
  margin-bottom: 14px;
  font-weight: 700;
}

.letter-p {
  margin: 0 0 14px 0;
  text-align: justify;
}

.letter-bullets {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.letter-bullets li {
  margin-bottom: 8px;
}

.letter-signoff {
  margin-top: 24px;
  line-height: 1.4;
}

@media print {
  body * {
    visibility: hidden;
  }
  #permission-letter-modal,
  #permission-letter-modal .permission-letter-card,
  #permission-letter-modal .permission-letter-scroll,
  #permission-letter-modal .permission-letter-content,
  #permission-letter-modal .letter-paper,
  #permission-letter-modal .letter-paper * {
    visibility: visible;
  }
  #permission-letter-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff !important;
    display: block !important;
  }
  .permission-letter-card {
    box-shadow: none;
    border: none;
    max-width: 100%;
    max-height: 100%;
  }
  .no-print {
    display: none !important;
  }
  .slip-method-option {
    min-block-size: 0 !important;
    padding: 1px 0 !important;
  }
  .slip-method-checkbox {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    accent-color: #0f172a;
  }
  .slip-method-checkbox::before {
    display: none !important;
  }
}

/* Backtrack Compass Modal */
.backtrack-dial-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.backtrack-compass-housing {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, #0f172a 40%, #090d16 100%);
  border: 3px solid rgba(245, 158, 11, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.2);
}

.backtrack-compass-needle {
  width: 120px;
  height: 120px;
  position: absolute;
  transition: transform 0.3s ease-out;
}

.backtrack-compass-cardinal {
  position: absolute;
  font-weight: 900;
  font-size: 11px;
  color: #94a3b8;
}

.backtrack-compass-cardinal.N { top: 8px; color: #ef4444; }
.backtrack-compass-cardinal.E { right: 8px; }
.backtrack-compass-cardinal.S { bottom: 8px; }
.backtrack-compass-cardinal.W { left: 8px; }

.backtrack-readout-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.backtrack-dist {
  font-size: 28px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: -0.5px;
}

.backtrack-bearing {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.backtrack-coords {
  font-size: 10.5px;
  color: #64748b;
  font-family: monospace;
}

.backtrack-status-msg {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.backtrack-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-backtrack-tool {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-backtrack-tool:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: #f59e0b;
}

.flashlight-red-active {
  background: #3b0707 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.6) !important;
}

/* onX Hunt vs RutLine Pro Comparison Table */
.onx-comparison-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onx-comparison-title {
  font-size: 11px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.onx-table-wrapper {
  overflow-x: auto;
}

.onx-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.onx-comp-table th {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.onx-comp-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

/* Truck Map Marker Pin */
.truck-map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.truck-marker-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(245, 158, 11, 0.4);
}

.truck-marker-label {
  font-size: 8px;
  font-weight: 900;
  color: #fde047;
  background: rgba(9, 13, 22, 0.85);
  padding: 1px 4px;
  border-radius: 4px;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Guided Tactical Tour & Upfront Whitetail Coverage Styles
   ========================================================================== */

/* 1. Landing Gate Tour Button */
.gate-btn-tour {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 10px 0 8px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.35) 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.gate-btn-tour:hover,
.gate-btn-tour:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32) 0%, rgba(217, 119, 6, 0.50) 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.gate-tour-icon {
  font-size: 22px;
  line-height: 1;
}

.gate-tour-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.gate-tour-text strong {
  font-size: 13px;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.3px;
}

.gate-tour-text small {
  font-size: 10px;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.3;
}

.gate-tour-arrow {
  font-size: 18px;
  font-weight: 900;
  color: #f59e0b;
  transition: transform 0.18s ease;
}

.gate-btn-tour:hover .gate-tour-arrow {
  transform: translateX(3px);
}

/* 2. Upfront 44 Whitetail States Coverage Disclosure */
.gate-coverage-box {
  margin: 6px 0 10px 0;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.gate-coverage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  background: rgba(14, 21, 35, 0.9);
  transition: background 0.18s ease;
}

.gate-coverage-header:hover {
  background: rgba(30, 41, 59, 0.95);
}

.gate-coverage-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coverage-globe {
  font-size: 16px;
}

.coverage-text-col {
  display: flex;
  flex-direction: column;
}

.coverage-text-col strong {
  font-size: 11.5px;
  font-weight: 800;
  color: #38bdf8;
}

.coverage-sub-tag {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
}

.coverage-toggle-arrow {
  font-size: 14px;
  color: #38bdf8;
  transition: transform 0.2s ease;
}

.coverage-toggle-arrow.open {
  transform: rotate(180deg);
}

.gate-coverage-details {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.coverage-honest-p {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.coverage-regions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .coverage-regions-grid {
    grid-template-columns: 1fr;
  }
}

.coverage-region-badge {
  background: rgba(9, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.region-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.2px;
}

.region-list {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  word-break: break-word;
}

.coverage-status-footer {
  font-size: 9.5px;
  color: #94a3b8;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tier1-dot {
  color: #22c55e;
  margin-right: 3px;
}

/* 3. Guided Tour Tactical HUD Modal */
.feature-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 35000 !important;
  pointer-events: none;
}

.guided-tour-hud {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35000 !important;
  width: min(94vw, 560px);
  pointer-events: none;
  animation: tourSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tourSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

body.guided-tour-active .auth-modal-overlay {
  background: rgba(0, 0, 0, 0.45) !important;
}

/* On-Map Tactical Survival Compass HUD */
.survival-compass-hud,
#compass-hud {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 15000 !important;
  width: min(340px, calc(100vw - 40px));
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid #38bdf8;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.3);
  padding: 12px 14px;
  pointer-events: auto !important;
  animation: compassFadeIn 0.25s ease-out;
}
@keyframes compassFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.compass-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}
.compass-hud-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compass-hud-icon {
  font-size: 20px;
}
.compass-hud-title {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
}
.compass-hud-sub {
  font-size: 8.5px;
  color: #94a3b8;
  letter-spacing: 0.3px;
  display: block;
}
.btn-compass-hud-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
  font-size: 11px;
}
.compass-hud-body {
  display: flex;
  gap: 12px;
  align-items: center;
}
.compass-hud-dial-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.compass-hud-dial {
  width: 72px;
  height: 72px;
}
.compass-hud-bearing-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fde047;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
}
.compass-hud-targets-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.compass-hud-target-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.target-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.target-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #94a3b8;
}
.target-coords {
  font-size: 10.5px;
  font-weight: 800;
  color: #f8fafc;
}
.target-status-badge {
  font-size: 8px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
}
.badge-locked {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
}
.badge-active {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.5);
}
.compass-hud-footer-note {
  font-size: 8px;
  color: #4ade80;
  font-weight: 700;
  margin-top: 2px;
}

.tour-hud-card,
#tour-card {
  pointer-events: auto !important;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #f59e0b;
  border-radius: 18px;
  padding: 16px 18px 14px 18px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 158, 11, 0.28);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tour-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.tour-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-step-pill {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid #f59e0b;
  color: #fde047;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.tour-live-chip {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #4ade80;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}

.tour-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  width: 100%;
}

.btn-tour-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-tour-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

.tour-description {
  margin: 2px 0 6px 0;
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}

.tour-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.tour-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #eab308, #22c55e);
  transition: width 0.25s ease;
}

.tour-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.btn-tour-nav {
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-tour-back {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
}

.btn-tour-back:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.95);
  color: #ffffff;
}

.btn-tour-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-tour-next {
  background: #f59e0b;
  border: 1px solid #d97706;
  color: #0f172a;
}

.btn-tour-next:hover {
  background: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.55);
}

.tour-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.tour-dot.active {
  width: 14px;
  border-radius: 999px;
  background: #f59e0b;
}

/* ============================================================================
   v11.1 ULTRA-CLEAN STREAMLINED TOP BAR & DRAWER QUICK-ACCESS HUB
   ============================================================================ */

/* Top Header Actions Base Rules */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.header-action-btn.btn-kill-hour-pill,
.header-action-btn.btn-sub-pill,
.header-action-btn.btn-offline-pill,
.header-action-btn.btn-squad-pill,
.header-action-btn.btn-account-pill,
.header-action-btn.btn-guide-pill,
.header-action-btn.btn-install-pill {
  width: auto !important;
  min-width: 0 !important;
  border-radius: 999px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.btn-kill-hour-pill {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.btn-kill-hour-pill:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38bdf8 !important;
}

.btn-sub-pill {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1.5px solid #f59e0b !important;
  color: #fbbf24 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.btn-sub-pill:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: #fbbf24 !important;
}

.btn-menu-hamburger {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

.btn-menu-hamburger:hover {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  transform: scale(1.05);
}

/* Default Desktop (> 768px) Display */
.kill-score-full { display: inline; font-size: 11px; font-weight: 900; }
.kill-score-short { display: none; }
.kill-hour-sub { display: inline; font-size: 9.5px; color: #94a3b8; font-weight: 700; margin-left: 2px; }
.sub-full { display: inline; font-size: 11px; }
.sub-short { display: none; }
#btn-back { display: none !important; }

/* Responsive Mobile Rules (<= 768px): Maximum Cleanliness & Zero Overlap */
@media (max-width: 768px) {
  .app-header-huntzone {
    padding: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 6px) calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px) 0 calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 8px) !important;
    height: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 52px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }

  .tract-dropdown-container {
    max-width: 140px !important;
    height: 34px !important;
    padding: 4px 8px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }

  .tract-dropdown-container .antler-logo-svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }

  .tract-title {
    max-width: 82px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Tuck all secondary desktop pills into the ☰ Drawer */
  .desktop-only-pill {
    display: none !important;
  }

  .header-right-group {
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  .btn-kill-hour-pill {
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
    gap: 3px !important;
  }

  .kill-score-full { display: none !important; }
  .kill-score-short { display: inline !important; font-size: 11.5px !important; font-weight: 900 !important; }
  .kill-hour-sub { display: none !important; }

  .btn-sub-pill {
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }

  .sub-full { display: none !important; }
  .sub-short { display: inline !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: 0.04em !important; }

  .btn-menu-hamburger {
    width: 32px !important;
    height: 32px !important;
  }

  .tactical-address-search-bar {
    top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 58px) !important;
    left: calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 8px) !important;
    right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px) !important;
    max-width: none !important;
  }
}

/* Tactical Command Quick-Access Hub inside #layers-drawer */
.drawer-command-hub {
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-account-bar:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.55);
}

.drawer-account-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-account-avatar {
  font-size: 18px;
  line-height: 1;
}

.drawer-account-text {
  display: flex;
  flex-direction: column;
}

.drawer-account-name {
  color: #f8fafc;
  font-weight: 800;
  font-size: 12.5px;
}

.drawer-account-tier {
  color: #38bdf8;
  font-weight: 700;
  font-size: 10.5px;
}

.drawer-btn-account {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.drawer-hub-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.drawer-hub-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.drawer-hub-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.hub-card-icon {
  font-size: 18px;
  line-height: 1;
}

.hub-card-text {
  display: flex;
  flex-direction: column;
}

.hub-card-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #f8fafc;
}

.hub-card-desc {
  font-size: 10px;
  color: #94a3b8;
}

/* ============================================================================
 * v12.1 — EMAIL VERIFICATION & MODERN WEB GUIDANCE (:user-invalid / :user-valid)
 * ============================================================================ */
.btn-send-email-code {
  flex-shrink: 0;
  padding: 0 12px;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(2, 132, 199, 0.45));
  color: #e0f2fe;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-send-email-code:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.48), rgba(2, 132, 199, 0.65));
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.btn-send-email-code:disabled {
  opacity: 0.6;
  cursor: wait;
}

.email-verification-banner {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #e0f2fe;
  font-size: 11px;
  line-height: 1.4;
}

.email-verification-banner .code-dispatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed rgba(56, 189, 248, 0.3);
}

.email-verification-banner .code-badge {
  font-family: monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #4ade80;
  background: rgba(15, 23, 42, 0.85);
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(74, 222, 128, 0.45);
}

.email-verification-banner .btn-autofill-code {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(74, 222, 128, 0.5);
  background: rgba(22, 163, 74, 0.28);
  color: #bbf7d0;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.field-user-invalid-msg {
  display: none;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #f87171;
}

input:user-invalid,
input.user-invalid-fallback {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.08) !important;
}

input:user-valid {
  border-color: #22c55e !important;
}

.gate-email-input-row:has(input:user-invalid) ~ .field-user-invalid-msg,
.gate-email-input-row:has(input.user-invalid-fallback) ~ .field-user-invalid-msg,
input:user-invalid ~ .field-user-invalid-msg,
input.user-invalid-fallback ~ .field-user-invalid-msg {
  display: block;
}

.auth-modal-backdrop {
  z-index: 9500 !important;
}

.auth-modal-backdrop {
  z-index: 12000 !important;
}

.auth-modal-overlay,
#squad-modal,
#auth-modal,
#offline-modal,
#waypoint-modal {
  z-index: 20000 !important;
}

/* ============================================================================
 * v12.2 — ENSURE "MY LOCATION" BUTTON (#btn-my-location) IS NEVER HIDDEN
 * BEHIND THE FLOATING ADDRESS SEARCH BAR (#tactical-address-search-bar)
 * ============================================================================ */
.right-floating-controls {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 96px) !important;
  right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px) !important;
  z-index: 4450 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 5px !important;
}

#btn-my-location.btn-location-tactical {
  flex-shrink: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}

#btn-my-location.btn-location-tactical .rail-btn-label {
  font-size: 7.5px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
  white-space: nowrap !important;
  max-width: 44px !important;
}

.right-rail-buttons-grid {
  max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 185px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

.tactical-toast-banner {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 96px) !important;
  z-index: 5600 !important;
}

/* ============================================================================
 * v12.3 — 1-TAP LANDOWNER PERMISSION SLIP & SIGNABLE RELEASE CARD
 * ============================================================================ */
#permission-letter-modal {
  z-index: 22000 !important;
  overscroll-behavior: contain;
}

.btn-landzone-permission-slip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1.5px solid #fde047;
  color: #090d16;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.25px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.18s ease;
}

.btn-landzone-permission-slip:hover,
.btn-landzone-permission-slip:active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.5);
}

.letter-hunter-inputs-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
  padding: 10px 16px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 560px) {
  .letter-hunter-inputs-bar {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 14px;
  }
}

.letter-hunter-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.letter-hunter-field label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #94a3b8;
}

.letter-hunter-field input {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  padding: 5px 8px;
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 600;
}

.letter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px !important;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
}

.letter-toolbar .btn-letter-action {
  flex: 1 1 auto;
  min-width: 115px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 8px;
}

.btn-download-letter {
  background: #0f172a;
  color: #f8fafc;
}

.btn-download-letter:hover {
  background: #1e293b;
}

.btn-sms-letter {
  background: #16a34a;
  color: #ffffff;
}

.btn-sms-letter:hover {
  background: #15803d;
}

.permission-slip-status-msg {
  margin: 8px 16px 0 16px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #22c55e;
  font-size: 11.5px;
  font-weight: 800;
}

.permission-letter-scroll {
  padding: 18px 20px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  max-height: calc(90dvh - 210px) !important;
}

.letter-doc-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.letter-doc-kicker {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #0f172a;
}

.letter-doc-sub {
  font-size: 10px;
  color: #475569;
}

.letter-doc-parcel-chip {
  background: #f1f5f9;
  border: 1px solid #94a3b8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #0f172a;
}

.letter-recipient {
  background: #f8fafc;
  border-left: 3.5px solid #0284c7;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px !important;
  font-size: 12.5px;
}

.permission-slip-cut-line {
  margin: 16px 0 10px 0;
  border-top: 2px dashed #475569;
  padding-top: 6px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #334155;
}

.permission-slip-box {
  border: 2px solid #0f172a;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  color-scheme: light;
}

.slip-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 6px;
  margin-bottom: 8px;
  font-size: 10.5px;
}

.slip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  font-size: 11px;
  margin-bottom: 8px;
}

@media (max-width: 500px) {
  .slip-grid {
    grid-template-columns: 1fr;
  }
}

.slip-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 6px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.slip-methods-heading {
  color: #0f172a;
}

.slip-method-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-block-size: 44px;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  color: #0f172a;
}

.slip-method-option:hover {
  background: rgba(2, 132, 199, 0.08);
}

.slip-method-checkbox {
  --checkbox-size: 1.3em;
  --checkbox-icon-size: 0.85em;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  inline-size: var(--checkbox-size);
  aspect-ratio: 1;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid #334155;
  border-radius: 3px;
  background-color: #ffffff;
  color: #0f172a;
  cursor: pointer;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.slip-method-checkbox::before {
  content: "";
  inline-size: var(--checkbox-icon-size);
  aspect-ratio: 1;
  background-color: #ffffff;
  -webkit-mask: var(--icon-perm-check) no-repeat center / contain;
  mask: var(--icon-perm-check) no-repeat center / contain;
  scale: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .slip-method-checkbox::before {
    transition: scale 150ms ease;
  }
}

@media (forced-colors: active) {
  .slip-method-checkbox:checked {
    background-color: Highlight;
    border-color: Highlight;
  }
  .slip-method-checkbox::before {
    background-color: HighlightText;
  }
}

.slip-method-checkbox:checked {
  background-color: #0f172a;
  border-color: #0f172a;
}

.slip-method-checkbox:checked::before {
  scale: 1;
}

.slip-method-checkbox:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: 2px;
}

.slip-method-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.slip-waiver-text {
  font-size: 10px;
  line-height: 1.35;
  color: #334155;
  margin: 0 0 12px 0;
}

.slip-signature-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 500px) {
  .slip-signature-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.slip-sig-line {
  border-bottom: 1.5px solid #0f172a;
  height: 18px;
  margin-bottom: 3px;
}

.slip-sig-col span {
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
}

/* ==========================================================================
   RUTLINE UNIVERSAL MARKER DRAG & CONFIRM/CANCEL CONTROLS
   ========================================================================== */
.rutline-drag-confirm-popup {
  z-index: 99999 !important;
  pointer-events: auto !important;
}

.rutline-drag-confirm-popup .maplibregl-popup-content {
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1.5px solid #22c55e !important;
  border-radius: 28px !important;
  padding: 6px 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 14px rgba(34, 197, 94, 0.45) !important;
  color: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.rutline-drag-confirm-popup .maplibregl-popup-tip {
  border-top-color: #22c55e !important;
}

.rutline-drag-confirm-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drag-confirm-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f1f5f9;
  white-space: nowrap;
}

.drag-confirm-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-drag-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.btn-drag-confirm {
  background: #15803d;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.btn-drag-confirm:active,
.btn-drag-confirm:hover {
  transform: scale(1.08);
  background: #16a34a;
  filter: brightness(1.15);
}

.btn-drag-cancel {
  background: #991b1b;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.btn-drag-cancel:active,
.btn-drag-cancel:hover {
  transform: scale(1.08);
  background: #dc2626;
  filter: brightness(1.15);
}

/* Enable smooth drag-and-drop on mobile touchscreens for all tactical markers */
.tactical-active-stand-pin,
.tactical-active-stand-pin *,
.tactical-spot-marker,
.tactical-spot-marker *,
.truck-map-marker,
.truck-map-marker *,
.blood-trail-map-pin,
.blood-trail-map-pin *,
.tactical-squad-marker,
.tactical-squad-marker * {
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Retain tap interactions for buttons inside markers & popovers */
.tactical-active-stand-pin button,
.tactical-spot-marker button,
.tactical-squad-marker button,
.rutline-drag-confirm-pill button,
.crosshair-action-popover button,
.crosshair-action-popover input {
  touch-action: auto !important;
  pointer-events: auto !important;
}

.rutline-drag-confirm-pill-standalone {
  position: absolute;
  z-index: 999999 !important;
  transform: translate(-50%, -100%);
  background: rgba(15, 23, 42, 0.98);
  border: 1.5px solid #22c55e;
  border-radius: 28px;
  padding: 6px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 16px rgba(34, 197, 94, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto !important;
  user-select: none;
  animation: popIn 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rutline-drag-confirm-pill-standalone::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #22c55e;
}

/* Hide + and - buttons on Stand badge unless selected, and enable Truck/Blood button taps */
.truck-map-marker button,
.blood-trail-map-pin button {
  touch-action: auto !important;
  pointer-events: auto !important;
}

.stand-pin-badge:not(.stand-selected) .stand-pin-more-btn,
.stand-pin-badge:not(.stand-selected) .stand-pin-delete-minus-btn {
  display: none !important;
}

.stand-pin-badge.stand-selected .stand-pin-more-btn,
.stand-pin-badge.stand-selected .stand-pin-delete-minus-btn {
  display: inline-flex !important;
}

.tactical-active-stand-pin .stand-pin-badge {
  position: absolute !important;
  bottom: 36px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-bottom: 0 !important;
  cursor: pointer;
}

.tactical-active-stand-pin .stand-pin-wind-arrow {
  position: absolute !important;
  top: 36px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 0 !important;
  white-space: nowrap !important;
}

.rutline-delete-confirm-pill {
  border-color: #ef4444 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 16px rgba(239, 68, 68, 0.55) !important;
}

.rutline-delete-confirm-pill::after {
  border-top-color: #ef4444 !important;
}

/* 1-Sq-Mi Pathway Legend Minimize & Expand Controls */
.corridor-legend-minimized-bar {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #facc15;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  padding: 2px 4px;
  white-space: nowrap;
}

.corridor-mini-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.corridor-mini-chevron {
  color: #94a3b8;
  font-size: 11px;
  margin-left: 2px;
}

.corridor-legend-expanded-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.corridor-legend-minimize-btn {
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.corridor-legend-minimize-btn:hover,
.corridor-legend-minimize-btn:active {
  background: rgba(148, 163, 184, 0.32);
  color: #ffffff;
}

#corridor-legend,
.corridor-map-legend-pill {
  max-width: min(390px, calc(100vw - 84px)) !important;
}

.corridor-map-legend-pill.legend-minimized {
  padding: 6px 12px !important;
  border-radius: 999px !important;
  max-width: max-content !important;
}

.corridor-map-legend-pill.legend-minimized .corridor-legend-expanded-body {
  display: none !important;
}

.corridor-map-legend-pill.legend-minimized .corridor-legend-minimized-bar {
  display: inline-flex !important;
}

/* Live 3D Terrain & Pathway Analysis In-Progress HUD Overlay */
.analysis-progress-overlay {
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9850;
  pointer-events: none;
  display: flex;
  justify-content: center;
  width: auto;
  max-width: calc(100vw - 32px);
}

.analysis-progress-card {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 40px 11px 16px;
  background: rgba(10, 15, 28, 0.96);
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78), 0 0 18px rgba(245, 158, 11, 0.32);
  backdrop-filter: blur(12px);
}

.btn-dismiss-analysis-progress {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(250, 204, 21, 0.65);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 10;
  transition: all 0.15s ease;
}

.btn-dismiss-analysis-progress:hover,
.btn-dismiss-analysis-progress:active {
  background: rgba(239, 68, 68, 0.85);
  border-color: #fca5a5;
  color: #ffffff;
}

.analysis-progress-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, 0.25);
  border-top-color: #facc15;
  border-right-color: #22c55e;
  animation: rutlineAnalysisSpin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes rutlineAnalysisSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.analysis-progress-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.analysis-progress-title {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #facc15;
  text-transform: uppercase;
}

.analysis-progress-sub {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
}

/* STANDS (Red Dots) button & touch-friendly Minimize button */
.corridor-legend-minimize-btn {
  min-height: 26px !important;
  padding: 4px 10px !important;
  font-size: 10.5px !important;
  touch-action: manipulation;
}
.corridor-legend-minimized-bar {
  min-height: 28px !important;
  padding: 4px 8px !important;
  touch-action: manipulation;
}

/* ============================================================================
 * v12.2 — MOBILE & DESKTOP LANDING GATE, AUTH, SUBSCRIPTION & DRAWER UI REFINEMENTS
 * ============================================================================ */

/* 1. Landing Gate & Auth Modal Overlays: Safe-area padded & scrollable without colliding with Dynamic Island or Home Indicator */
.landing-gate-overlay {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: calc(16px + max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px))) !important;
  padding-right: calc(14px + max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px))) !important;
  padding-bottom: max(40px, calc(16px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  padding-left: calc(14px + max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px))) !important;
  scroll-padding-top: calc(16px + max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)));
  scroll-padding-bottom: max(40px, calc(16px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px))));
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

.landing-gate-overlay[style*="display: none"],
.landing-gate-overlay[style*="display:none"] {
  display: none !important;
}

.landing-gate-card {
  margin: auto !important;
  box-sizing: border-box !important;
  max-width: 480px !important;
  width: 100% !important;
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 24px 20px 20px 20px !important;
}

.auth-modal-overlay {
  display: flex;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: calc(16px + max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px))) !important;
  padding-right: calc(12px + max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px))) !important;
  padding-bottom: max(40px, calc(16px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  padding-left: calc(12px + max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px))) !important;
  scroll-padding-top: calc(16px + max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)));
  scroll-padding-bottom: max(40px, calc(16px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px))));
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

.auth-card {
  margin: auto !important;
  box-sizing: border-box !important;
  max-width: 420px !important;
  width: 100% !important;
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.subscription-card {
  margin: auto !important;
  box-sizing: border-box !important;
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 2. Email Row & Send Code Button Alignment */
.email-input-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#gate-btn-send-code[style*="display: none"],
#auth-btn-send-code[style*="display: none"],
.btn-send-email-code[style*="display: none"] {
  display: none !important;
}

#gate-btn-send-code,
#auth-btn-send-code,
.btn-send-email-code {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  line-height: 1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  border-radius: 9px !important;
  border: 1px solid rgba(56, 189, 248, 0.55) !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.32), rgba(2, 132, 199, 0.52)) !important;
  color: #e0f2fe !important;
  cursor: pointer !important;
}

#gate-input-username,
#auth-username,
#gate-input-email,
#auth-input-email {
  height: 44px !important;
  flex: 1 !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  font-size: 13px !important;
  padding: 0 12px !important;
  line-height: 44px !important;
}

/* 3. 6-Digit Email Verification Code Input */
#gate-input-verification-code,
#auth-verification-code,
#gate-input-code,
#auth-input-code {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 44px !important;
  min-height: 44px !important;
  display: block !important;
  font-size: 14px !important;
  letter-spacing: 1px !important;
  padding: 0 12px !important;
  line-height: 44px !important;
}

#gate-verification-group,
#auth-verification-group {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 4. Human Hunter Target-Lock Header */
.gate-challenge-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.gate-challenge-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  color: #f59e0b !important;
  white-space: nowrap !important;
}

.gate-auto-align-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  padding: 5px 10px !important;
  height: 26px !important;
  box-sizing: border-box !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #f59e0b !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.gate-auto-align-btn:hover {
  background: rgba(245, 158, 11, 0.35) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
}

.gate-challenge-status-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin-top: 1px !important;
  margin-bottom: 2px !important;
}

.gate-challenge-status {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
}

.gate-challenge-status.verified {
  color: #22c55e !important;
}

.bot-puzzle-label-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.puzzle-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  white-space: nowrap !important;
}

.puzzle-status {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
}

/* 5. Bottom Guest Button (#gate-btn-guest & .btn-guest-explore) */
#gate-btn-guest,
.gate-btn-guest,
.btn-guest-explore {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 16px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  margin-bottom: 16px !important;
  background: linear-gradient(135deg, rgba(19, 78, 74, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1.5px solid rgba(20, 184, 166, 0.5) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  text-align: left !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

#gate-btn-guest:hover,
.gate-btn-guest:hover {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.35) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-color: #14b8a6 !important;
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.35) !important;
}

.gate-btn-guest .gate-guest-icon {
  font-size: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.gate-btn-guest .gate-guest-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  line-height: 1.2 !important;
}

.gate-btn-guest .gate-guest-text strong {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #e2e8f0 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
}

.gate-btn-guest .gate-guest-text small {
  font-size: 9.5px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

@media (max-width: 380px) {
  .gate-btn-guest .gate-guest-text strong {
    font-size: 11.5px !important;
  }
  .gate-btn-guest .gate-guest-text small {
    font-size: 8.5px !important;
  }
}

/* 6. Subscription Modal Promo Code & VIP Button */
.sub-tester-input-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#input-tester-code,
#tester-code-input,
.input-tester-code {
  flex: 1 !important;
  min-width: 0 !important;
  height: 42px !important;
  box-sizing: border-box !important;
  padding: 0 12px !important;
  line-height: 42px !important;
  background: rgba(9, 13, 22, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  color: #f8fafc !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

#btn-redeem-tester-code,
.btn-redeem-tester {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}

.btn-sub-primary {
  width: 100% !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* 7. Layers Drawer Clean Edges & Full-Bleed Sticky Header */
.tactical-layers-drawer {
  padding: 0 14px max(28px, env(safe-area-inset-bottom, 24px)) 14px !important;
}

.drawer-header-row {
  margin: 0 -14px 10px -14px !important;
  padding: 12px 14px 10px 14px !important;
  background: #0e1216 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* --- PRECISION REFINEMENTS FOR 360x800 & RETICLE LOCK / GUEST BUTTON --- */
.gate-bot-challenge-card {
  padding: 10px 12px !important;
  box-sizing: border-box !important;
}

.gate-challenge-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.gate-challenge-title {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  color: #f59e0b !important;
  white-space: nowrap !important;
}

.gate-auto-align-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  padding: 4px 8px !important;
  height: 24px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  border-radius: 5px !important;
  flex-shrink: 0 !important;
}

#gate-btn-guest,
.gate-btn-guest,
.btn-guest-explore {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  margin-bottom: 16px !important;
  white-space: normal !important;
}

.gate-btn-guest .gate-guest-icon {
  font-size: 24px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.gate-btn-guest .gate-guest-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.gate-btn-guest .gate-guest-text strong {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #e2e8f0 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
}

.gate-btn-guest .gate-guest-text small {
  font-size: 9px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}

@media (max-width: 380px) {
  .gate-btn-guest .gate-guest-text strong {
    font-size: 11px !important;
  }
  .gate-btn-guest .gate-guest-text small {
    font-size: 8.5px !important;
  }
}

/* ==========================================================================
   SUBAGENT 2: MAP HUD, MODALS & BOTTOM SHEETS UI REFINEMENTS (MOBILE & DESKTOP)
   ========================================================================== */

/* 1. Tactical HUD, Right Rail & Corridor Pathway Legend */
.rail-labeled-btn .rail-btn-label {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

#btn-analyze-1mi .rail-btn-label {
  font-size: 7px !important;
  letter-spacing: 0px !important;
}

@media (max-width: 480px) {
  #corridor-legend,
.corridor-map-legend-pill {
    max-width: calc(100vw - 78px) !important;
    left: 8px !important;
    bottom: 84px !important;
    padding: 8px 10px !important;
  }
  .corridor-legend-pill-title {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .corridor-legend-pill-title > span {
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
  }
  .corridor-legend-pill-title > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100% !important;
  }
  .corridor-legend-inspect-btn,
  .corridor-legend-minimize-btn {
    padding: 3px 6px !important;
    font-size: 9.5px !important;
    flex: 1 1 auto !important;
    text-align: center !important;
  }
}

/* 2. Biological Kill Hour Radar Modal (#kill-hour-modal) */
#kill-hour-modal .kill-hour-card {
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 28px !important;
  box-sizing: border-box !important;
}

/* 3. 4-Day Hunting Atlas Modal & Bottom Sheet (#view-atlas / #bottom-sheet) */
@media (max-width: 480px) {
  .sheet-top-tabs-bar {
    gap: 4px !important;
    padding: 0 4px !important;
  }
  .sheet-tab-btn {
    font-size: 11px !important;
    padding: 8px 2px !important;
    letter-spacing: 0.1px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
  }
}

.atlas-rankings-scroll,
.atlas-hourly-scroll {
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
}

/* 4. Offline Field Packs Modal (#offline-modal) */
#offline-modal .offline-card {
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 28px !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .offline-radius-picker {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px 10px !important;
  }
  .radius-picker-label {
    width: 100% !important;
    margin-bottom: 2px !important;
  }
  .radius-radio-opt {
    flex: 1 1 auto !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .offline-pwa-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .btn-pwa-install {
    width: 100% !important;
    text-align: center !important;
    padding: 10px 14px !important;
  }
}

/* 5. Hunting Squad / Friends Modal (#squad-modal) */
#squad-modal .squad-card {
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 28px !important;
  box-sizing: border-box !important;
}

.tactical-switch {
  flex-shrink: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  box-sizing: border-box !important;
}

.tactical-switch.is-disabled,
.tactical-switch.disabled,
.tactical-switch:has(input:disabled) {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.tactical-switch input:disabled + .tactical-slider {
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

.beacon-toggle-row {
  align-items: center !important;
  gap: 10px !important;
}

.btn-alert-action {
  font-size: 9.5px !important;
  line-height: 1.25 !important;
  padding: 8px 3px !important;
  word-break: break-word !important;
}

@media (max-width: 480px) {
  .squad-search-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .squad-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-squad-action {
    width: 100% !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
}

/* 6. Parcel Inspector & Spot Tactical Intelligence Modal (#spot-tactical-modal) */
.spot-detail-modal-card {
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding-bottom: 20px !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .spot-modal-actions-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-top: 12px !important;
  }
  .btn-deploy-stand-action {
    width: 100% !important;
    flex: none !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
  }
  .spot-modal-actions-footer > div {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .btn-secondary-action {
    flex: 1 !important;
    padding: 10px 8px !important;
    font-size: 11.5px !important;
  }
}

/* 7. Sign Logger Modal (#sign-logger-modal), Blood Tracker & How-To Guide */
.tactical-modal-overlay,
#sign-logger-modal {
  z-index: 20000 !important;
}

.sign-logger-modal-card {
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.modal-actions-row {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  margin-top: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-submit-sign {
  flex: 2 !important;
  padding: 11px 14px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.btn-cancel-sign {
  flex: 1 !important;
  padding: 11px 14px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.blood-sign-pills-row {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  flex-wrap: nowrap !important;
}
.blood-sign-pills-row::-webkit-scrollbar {
  display: none !important;
}

#btn-drop-blood-pin {
  padding: 6px 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

#how-to-use-modal .how-to-use-modal-card {
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
}

/* Refinements for Sign Logger visibility and Blood Tracker button sizing */
.tactical-modal-overlay[style*="display: flex"],
.tactical-modal-overlay.open,
#sign-logger-modal[style*="display: flex"],
#sign-logger-modal.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  z-index: 20000 !important;
}

.sign-logger-modal-card {
  margin: auto !important;
  transform: none !important;
}

.btn-blood-primary,
#btn-drop-blood-pin {
  font-size: 10px !important;
  padding: 8px 4px !important;
  white-space: nowrap !important;
  letter-spacing: 0px !important;
  box-sizing: border-box !important;
}

.btn-blood-secondary,
#btn-tap-map-blood-pin {
  font-size: 9.5px !important;
  padding: 8px 4px !important;
  white-space: nowrap !important;
  letter-spacing: 0px !important;
  box-sizing: border-box !important;
}

/* Sign logger top-bar layout */
.sign-logger-modal-card .modal-top-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

.sign-logger-modal-card .modal-title-group {
  flex: 1 !important;
  min-width: 0 !important;
}

.sign-logger-modal-card .btn-modal-close {
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #94a3b8 !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.sign-logger-modal-card .btn-modal-close:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  border-color: #ef4444 !important;
}

/* Final 360px Mobile Micro-Overflow Polish */
.gate-challenge-header-row,
.bot-challenge-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.gate-challenge-header-row .gate-challenge-title,
.gate-challenge-header-row .challenge-label,
.bot-challenge-header .challenge-label {
  font-size: 9.5px !important;
  letter-spacing: 0.2px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#gate-btn-auto-align,
.gate-auto-align-btn,
#gate-btn-snap-target,
#auth-btn-snap-target,
.btn-snap-target {
  padding: 3px 7px !important;
  font-size: 9.5px !important;
  height: 24px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

#gate-btn-guest,
.gate-btn-guest,
.btn-guest-explore {
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#gate-btn-guest span,
.gate-btn-guest span,
.btn-guest-explore span {
  white-space: normal !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  min-width: 0 !important;
}

#input-tester-code,
#tester-code-input {
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  padding: 0 10px !important;
  min-width: 0 !important;
}

/* Right-Rail Toolbar Tools: Colored Icons by Default, Halo Selection State on Click */
/* Styled cleanly via the unified Right-Rail Halo Selection System below */

/* Hide Stand # badge text until user clicks/taps the stand spot (.stand-selected), and hide when clicking away */
.tactical-active-stand-pin .stand-pin-badge:not(.stand-selected) {
  display: none !important;
}

.tactical-active-stand-pin .stand-pin-badge.stand-selected {
  display: inline-flex !important;
}

/* Remove "SCENTSTREAM ACTIVE" label beneath stand reticle */
.stand-pin-wind-arrow {
  display: none !important;
}

/* ============================================================================
 * R-3: HUNTING SQUAD MODAL & GUEST ACCOUNT ENHANCEMENTS
 * ============================================================================ */
.squad-guest-banner {
  display: flex;
  gap: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.9));
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  padding: 14px 16px;
  box-sizing: border-box;
  margin-bottom: 2px;
}

.squad-guest-banner-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.squad-guest-banner-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.squad-guest-banner-title {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.squad-guest-banner-text {
  font-size: 12px;
  line-height: 1.45;
  color: #e2e8f0;
  margin: 0;
}

.btn-squad-signup-cta {
  margin-top: 8px;
  padding: 10px 16px;
  background: #22c55e;
  border: none;
  border-radius: 8px;
  color: #052e16;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: all 0.15s ease;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.btn-squad-signup-cta:hover {
  background: #4ade80;
  transform: translateY(-1px);
}

.squad-invite-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
}

.squad-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.squad-invite-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.squad-invite-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.squad-invite-code {
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 1px;
  color: #22c55e;
}

.squad-waypoints-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.squad-waypoints-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

/* AA-4: Guide and Account Pill Hit Area & Stacking Fix */
.header-right-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  z-index: 100 !important;
  position: relative !important;
}
.header-action-btn.btn-account-pill {
  position: relative !important;
  z-index: 101 !important;
  flex-shrink: 0 !important;
  pointer-events: auto !important;
}
.header-action-btn.btn-guide-pill {
  position: relative !important;
  z-index: 105 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: inline-flex !important;
}

/* BB-5: Tactical Toast Banner guaranteed visibility above modals and bottom sheet */
.tactical-toast-banner.visible,
.bottom-tactical-sheet:not(.sheet-collapsed) ~ .tactical-toast-banner.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
  z-index: 15000 !important;
}

/* CC-2: Placement toast pinned above Spot Details, solid and fully opaque */
.tactical-toast-banner.placement-toast.visible {
  top: calc(var(--safe-area-top, 0px) + 6px) !important;
  z-index: 2147483000 !important;
  opacity: 1 !important;
  background: rgba(15, 23, 42, 1) !important;
  border: 1.5px solid #facc15 !important;
  transition: none !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
}

/* EE: compass dial centered, tappable truck/stand cards, whole-app red night vision */
.backtrack-dial-wrap { align-items: center; }
.backtrack-compass-housing { margin-left: auto; margin-right: auto; }
#compass-card-truck, #compass-card-stand { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#compass-card-truck:active, #compass-card-stand:active { filter: brightness(1.3); }
body.night-vision-red::after { content: ''; position: fixed; inset: 0; background: #ff1a1a; mix-blend-mode: multiply; pointer-events: none; z-index: 2147483640; }

/* GG: right-rail Location menu; toast always centered on screen */
.rail-location-menu { position: fixed; z-index: 4600; min-width: 200px; flex-direction: column; gap: 4px; padding: 6px; background: rgba(9, 13, 22, 0.97); border: 1.5px solid rgba(56, 189, 248, 0.45); border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8); }
.location-menu-item { text-align: left; padding: 12px 14px; border-radius: 10px; background: rgba(30, 41, 59, 0.7); border: 1px solid rgba(148, 163, 184, 0.3); color: #f8fafc; font-size: 13px; font-weight: 700; cursor: pointer; }
.location-menu-item:active { background: rgba(56, 189, 248, 0.25); }
.tactical-toast-banner { left: 50% !important; right: auto !important; top: calc(var(--safe-area-top, 0px) + 104px) !important; width: max-content !important; max-width: calc(100vw - 84px) !important; white-space: normal !important; text-align: center; text-overflow: clip !important; transform: translateX(-50%) translateY(-10px) !important; z-index: 15000 !important; }
.tactical-toast-banner.visible,
.bottom-tactical-sheet:not(.sheet-collapsed) ~ .tactical-toast-banner.visible { transform: translateX(-50%) translateY(0) !important; z-index: 15000 !important; }
.tactical-toast-banner.placement-toast.visible { top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 8px) !important; bottom: auto !important; left: 50% !important; transform: translateX(-50%) translateY(0) !important; z-index: 2147483000 !important; }

/* Visual Audit P0: Feature Tour pill sizing, mobile minimized legend clearance, compact landing gate */
.header-action-btn.btn-tour-pill { width: auto !important; min-width: 0 !important; height: 34px !important; padding: 0 11px !important; gap: 5px !important; border-radius: 999px !important; flex-shrink: 0 !important; white-space: nowrap !important; display: inline-flex !important; align-items: center !important; font-size: 12px !important; font-weight: 700 !important; }
@media (max-width: 640px) {
  .corridor-map-legend-pill.legend-minimized { max-width: calc(100vw - 76px) !important; padding: 5px 9px !important; overflow: hidden !important; }
  .corridor-legend-minimized-bar { font-size: 9.5px !important; gap: 5px !important; letter-spacing: 0.3px !important; }
  .tactical-toast-banner { left: calc(50% - 30px) !important; top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 146px) !important; font-size: 11.5px !important; padding: 7px 12px !important; max-width: calc(100vw - 88px) !important; }
  .tactical-toast-banner.placement-toast.visible { left: 50% !important; top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 8px) !important; bottom: auto !important; max-width: calc(100vw - 24px) !important; }
}
.landing-gate-card { padding: 14px 16px !important; gap: 8px !important; }
.landing-gate-card .gate-header { gap: 4px !important; }
.landing-gate-card .gate-sub-desc,
.landing-gate-card .gate-subtitle { font-size: 11.5px !important; line-height: 1.3 !important; margin: 0 !important; }
.landing-gate-card .gate-auth-form { gap: 8px !important; }
.landing-gate-card .gate-bot-challenge-box { padding: 8px 10px !important; gap: 6px !important; }
.landing-gate-card .gate-divider { margin: 2px 0 !important; }
.landing-gate-card .gate-legal-footer { margin: 4px 0 0 0 !important; }

/* Visual Audit P1 & P2: rail contrast, Compass label, scale backdrop, mobile footer, modal grids */
.rail-labeled-btn .rail-btn-label { font-size: 8.5px !important; letter-spacing: 0 !important; text-overflow: clip !important; overflow: visible !important; }
.right-rail-buttons-grid button:disabled,
.right-rail-buttons-grid button.disabled { opacity: 0.62 !important; color: rgba(226, 232, 240, 0.72) !important; }
.elevation-scale-left { background: rgba(10, 14, 20, 0.65) !important; backdrop-filter: blur(4px) !important; border-radius: 8px !important; padding: 6px 8px !important; }
.scale-tick-label { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important; }
#btn-guide-start-tour { white-space: normal !important; text-align: center !important; padding: 10px 14px !important; line-height: 1.2 !important; }
#btn-picker-red-dots { width: 100% !important; display: flex !important; justify-content: center !important; box-sizing: border-box !important; }
#spot-tactical-modal .spot-specs-grid > .spot-spec-item:last-child { grid-column: 1 / -1 !important; }
body.spots-visible .searched-address-marker { opacity: 0.28 !important; pointer-events: none !important; }
@media (max-width: 640px) {
  #tactical-action-bar { bottom: max(24px, calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 24px)) !important; gap: 5px !important; max-width: calc(100vw - 12px) !important; }
  #tactical-action-bar > button,
  #tactical-action-bar .tactical-action-pill { font-size: 10px !important; padding: 6px 9px !important; white-space: nowrap !important; }
}

/* v20.9: Reclaim top space now that search bar is on-demand under Location menu */
.tactical-address-search-bar { z-index: 4700 !important; }
.right-floating-controls { top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 60px) !important; }
.right-rail-buttons-grid { max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 155px) !important; }
.elevation-scale-left { top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 64px) !important; }
.tactical-toast-banner { top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 64px) !important; }
@media (max-width: 768px) {
  .tactical-toast-banner { top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 108px) !important; }
}

/* =========================================================================
   Desktop Platform Detection & Max-Width Constraints (v22.0)
   ========================================================================= */
@media (min-width: 769px) {
  body.is-desktop .tactical-address-search-bar,
  .tactical-address-search-bar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(520px, calc(100vw - 140px)) !important;
    max-width: 520px !important;
  }

  #tactical-action-bar {
    width: auto !important;
    max-width: min(620px, calc(100vw - 120px)) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  #corridor-legend,
  .corridor-map-legend-pill {
    max-width: min(460px, calc(100vw - 120px)) !important;
  }

  .tactical-toast-banner {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: 540px !important;
    width: auto !important;
  }

  #layers-drawer,
  #parcel-spots-drawer {
    max-width: 440px !important;
  }

  #bottom-sheet,
  .bottom-tactical-sheet {
    left: 50% !important;
    right: auto !important;
    width: min(640px, calc(100vw - max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) - max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) - 32px)) !important;
    max-width: 640px !important;
    transform: translateX(-50%) !important;
    border-radius: 18px 18px 0 0 !important;
    max-height: min(680px, calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - 64px)) !important;
    padding-bottom: max(14px, calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 12px)) !important;
  }

  #bottom-sheet.sheet-collapsed,
  .bottom-tactical-sheet.sheet-collapsed {
    transform: translate(-50%, calc(100% + 24px)) !important;
  }

  .auth-card,
  .waypoint-card,
  .area-analysis-card,
  .spot-detail-modal-card,
  .landing-gate-card,
  .modal-card {
    max-width: 520px !important;
    width: min(520px, calc(100vw - 48px)) !important;
  }

  .auth-card input,
  .auth-card select,
  .auth-card textarea,
  .auth-card button:not(.btn-close-modal),
  .waypoint-card input,
  .waypoint-card select,
  .waypoint-card textarea,
  .waypoint-card button:not(.btn-close-modal),
  .area-analysis-card input,
  .area-analysis-card select,
  .area-analysis-card textarea,
  .area-analysis-card button:not(.btn-close-modal),
  .spot-detail-modal-card button:not(.btn-close-modal),
  .modal-card input,
  .modal-card select,
  .modal-card textarea,
  .modal-card button:not(.btn-close-modal) {
    max-width: 480px !important;
  }
}

/* ============================================================================
   HARD TRIAL EXPIRED PAYWALL LOCK
   Blocks background map, tactical tools, and dismiss affordances until Pro/VIP
   ============================================================================ */
html:has(body.trial-expired-locked),
body.trial-expired-locked {
  overflow: hidden !important;
  max-width: 100vw !important;
}

body.trial-expired-locked #map,
body.trial-expired-locked .app-header-huntzone,
body.trial-expired-locked .tactical-header,
body.trial-expired-locked .header-right-group,
body.trial-expired-locked .right-tactical-rail,
body.trial-expired-locked #tactical-action-bar,
body.trial-expired-locked #layers-drawer,
body.trial-expired-locked #parcel-spots-drawer,
body.trial-expired-locked #corridor-legend,
body.trial-expired-locked .hud-top-bar,
body.trial-expired-locked .top-tactical-bar,
body.trial-expired-locked .elevation-profile-bar,
body.trial-expired-locked #bottom-tactical-bar {
  pointer-events: none !important;
  user-select: none !important;
  filter: blur(4px) brightness(0.45) !important;
}

body.trial-expired-locked .app-header-huntzone,
body.trial-expired-locked .tactical-header,
body.trial-expired-locked .header-right-group {
  max-width: 100vw !important;
  overflow: hidden !important;
}

body.trial-expired-locked #subscription-modal {
  z-index: 99000 !important;
  pointer-events: auto !important;
  background: rgba(2, 6, 23, 0.86) !important;
  backdrop-filter: blur(8px) !important;
}

#subscription-modal[data-hard-locked="true"] #btn-close-subscription {
  display: none !important;
}

body.trial-expired-locked #auth-modal,
#auth-modal {
  z-index: 99500 !important;
}

@media (max-width: 768px) {
  .header-right-group .header-action-btn.desktop-only-pill,
  .desktop-only-pill {
    display: none !important;
  }
}

/* ============================================================================
   RIGHT-RAIL TOOLBAR: V3 MACHINED TURRET ("SCOPE DIAL") + VECTOR SVG ICONS
   Recessed dark circular scope dial well + top-right LED status pip.
   ============================================================================ */
.right-rail-buttons-grid > .rail-labeled-btn {
  position: relative !important;
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 3px 2px 2px !important;
  gap: 2px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #1b222c 0%, #0e131a 100%) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.65) !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  color: #f8fafc !important;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box !important;
}

.right-rail-buttons-grid > .rail-labeled-btn .rail-turret-well {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070a0f;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  flex: none;
  box-sizing: border-box;
}

.right-rail-buttons-grid > .rail-labeled-btn .rail-turret-svg {
  width: 15px;
  height: 15px;
  display: block;
  flex: none;
  color: var(--rail-halo-color, #38bdf8);
}

.right-rail-buttons-grid > .rail-labeled-btn .rail-turret-pip {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.28);
  pointer-events: none;
}

@media (max-height: 860px) {
  .right-rail-buttons-grid > .rail-labeled-btn {
    width: 44px !important;
    height: 43px !important;
    min-height: 43px !important;
    border-radius: 11px !important;
    padding: 2px 1px !important;
    gap: 1.5px !important;
  }
  .right-rail-buttons-grid > .rail-labeled-btn .rail-turret-well {
    width: 23px;
    height: 23px;
    min-width: 23px;
    min-height: 23px;
  }
  .right-rail-buttons-grid > .rail-labeled-btn .rail-turret-svg,
  .right-rail-buttons-grid > .rail-labeled-btn #compass-needle-svg {
    width: 13.5px;
    height: 13.5px;
  }
  .right-rail-buttons-grid > .rail-labeled-btn .rail-turret-pip {
    top: 3.5px;
    right: 3.5px;
    width: 4.5px;
    height: 4.5px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .right-rail-buttons-grid > .rail-labeled-btn,
  .right-rail-buttons-grid > .rail-labeled-btn .rail-turret-well,
  .right-rail-buttons-grid > .rail-labeled-btn .rail-turret-pip {
    transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
  }
  .right-rail-buttons-grid > .rail-labeled-btn:active {
    transform: scale(0.94) !important;
  }
}

.right-rail-buttons-grid > .rail-labeled-btn .rail-btn-label {
  color: #cbd5e1 !important;
  font-size: 8px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  text-overflow: clip !important;
  overflow: visible !important;
}

.right-rail-buttons-grid > #btn-my-location .rail-btn-label,
.right-rail-buttons-grid > #btn-tactical-compass .rail-btn-label {
  font-size: 7.2px !important;
}

.right-rail-buttons-grid > #btn-analyze-1mi .rail-btn-label {
  font-size: 7px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Vibrant colored SVG icon for Wind even when deselected */
.right-rail-buttons-grid > #btn-toggle-wind svg {
  color: #22d3ee !important;
}

/* Per-tool halo color tokens */
#btn-my-location {
  --rail-halo-color: #38bdf8;
  --rail-halo-glow: rgba(56, 189, 248, 0.65);
  --rail-halo-bg: rgba(56, 189, 248, 0.20);
}
#btn-toggle-spots {
  --rail-halo-color: #ef4444;
  --rail-halo-glow: rgba(239, 68, 68, 0.65);
  --rail-halo-bg: rgba(239, 68, 68, 0.20);
}
#btn-park-truck {
  --rail-halo-color: #f97316;
  --rail-halo-glow: rgba(249, 115, 22, 0.65);
  --rail-halo-bg: rgba(249, 115, 22, 0.20);
}
#btn-tactical-compass {
  --rail-halo-color: #38bdf8;
  --rail-halo-glow: rgba(56, 189, 248, 0.65);
  --rail-halo-bg: rgba(56, 189, 248, 0.20);
}
#btn-compass-north {
  --rail-halo-color: #ef4444;
  --rail-halo-glow: rgba(239, 68, 68, 0.65);
  --rail-halo-bg: rgba(239, 68, 68, 0.20);
}
#btn-analyze-1mi {
  --rail-halo-color: #facc15;
  --rail-halo-glow: rgba(250, 204, 21, 0.65);
  --rail-halo-bg: rgba(250, 204, 21, 0.20);
}
#btn-toggle-corridors {
  --rail-halo-color: #facc15;
  --rail-halo-glow: rgba(250, 204, 21, 0.65);
  --rail-halo-bg: rgba(250, 204, 21, 0.22);
}
#btn-toggle-wind {
  --rail-halo-color: #22d3ee;
  --rail-halo-glow: rgba(34, 211, 238, 0.65);
  --rail-halo-bg: rgba(34, 211, 238, 0.20);
}
#btn-toggle-parcels {
  --rail-halo-color: #f59e0b;
  --rail-halo-glow: rgba(245, 158, 11, 0.65);
  --rail-halo-bg: rgba(245, 158, 11, 0.20);
}
#btn-cycle-basemap {
  --rail-halo-color: #22c55e;
  --rail-halo-glow: rgba(34, 197, 94, 0.65);
  --rail-halo-bg: rgba(34, 197, 94, 0.20);
}
#btn-toggle-3d {
  --rail-halo-color: #f59e0b;
  --rail-halo-glow: rgba(245, 158, 11, 0.65);
  --rail-halo-bg: rgba(245, 158, 11, 0.20);
}
#btn-terrain-inspector {
  --rail-halo-color: #38bdf8;
  --rail-halo-glow: rgba(56, 189, 248, 0.65);
  --rail-halo-bg: rgba(56, 189, 248, 0.20);
}
#btn-mark-waypoint {
  --rail-halo-color: #22c55e;
  --rail-halo-glow: rgba(34, 197, 94, 0.65);
  --rail-halo-bg: rgba(34, 197, 94, 0.20);
}
#btn-blood-tracker {
  --rail-halo-color: #ef4444;
  --rail-halo-glow: rgba(239, 68, 68, 0.65);
  --rail-halo-bg: rgba(239, 68, 68, 0.20);
}

/* Subtle neutral hover cue gated to pointer devices; colored halo appears ONLY when selected */
@media (hover: hover) {
  .right-rail-buttons-grid > .rail-labeled-btn:not(.active):not(.active-3d):not(.active-blood-rail):not(.compass-snapped):not([aria-pressed="true"]):not([aria-expanded="true"]):hover {
    border-color: rgba(203, 213, 225, 0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.78) !important;
  }
}

/* Selected V3 Turret state: outer halo + lit scope well + corner LED pip */
.right-rail-buttons-grid > .rail-labeled-btn:is(.active, .active-3d, .active-blood-rail, .compass-snapped, [aria-pressed="true"], [aria-expanded="true"]) {
  border-color: var(--rail-halo-color, #facc15) !important;
  background: linear-gradient(180deg, #1e2632 0%, #0e131a 100%) !important;
  box-shadow: 0 0 12px var(--rail-halo-glow, rgba(250, 204, 21, 0.65)), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  opacity: 1 !important;
  filter: none !important;
}

.right-rail-buttons-grid > .rail-labeled-btn:is(.active, .active-3d, .active-blood-rail, .compass-snapped, [aria-pressed="true"], [aria-expanded="true"]) .rail-turret-well {
  border-color: var(--rail-halo-color, #facc15);
  background: radial-gradient(circle, var(--rail-halo-bg, rgba(250, 204, 21, 0.2)) 0%, #070a0f 85%);
  box-shadow: 0 0 10px var(--rail-halo-glow, rgba(250, 204, 21, 0.65)), inset 0 1px 4px rgba(0, 0, 0, 0.85);
}

.right-rail-buttons-grid > .rail-labeled-btn:is(.active, .active-3d, .active-blood-rail, .compass-snapped, [aria-pressed="true"], [aria-expanded="true"]) .rail-turret-pip {
  background: var(--rail-halo-color, #facc15);
  box-shadow: 0 0 6px var(--rail-halo-color, #facc15);
}

.right-rail-buttons-grid > .rail-labeled-btn:is(.active, .active-3d, .active-blood-rail, .compass-snapped, [aria-pressed="true"], [aria-expanded="true"]) .rail-btn-label {
  color: #ffffff !important;
}

@media (forced-colors: active) {
  .right-rail-buttons-grid > .rail-labeled-btn:is(.active, .active-3d, .active-blood-rail, .compass-snapped, [aria-pressed="true"], [aria-expanded="true"]),
  .right-rail-buttons-grid > .rail-labeled-btn:is(.active, .active-3d, .active-blood-rail, .compass-snapped, [aria-pressed="true"], [aria-expanded="true"]) .rail-turret-well {
    border-color: Highlight !important;
  }
  .right-rail-buttons-grid > .rail-labeled-btn:is(.active, .active-3d, .active-blood-rail, .compass-snapped, [aria-pressed="true"], [aria-expanded="true"]) .rail-turret-pip {
    background: Highlight !important;
    forced-color-adjust: none;
  }
}

.right-rail-buttons-grid > .rail-labeled-btn:focus-visible {
  outline: 2px solid #f59e0b !important;
  outline-offset: 2px !important;
}

.right-rail-buttons-grid > .rail-labeled-btn:is(:disabled, .disabled) {
  opacity: 0.62 !important;
  color: rgba(226, 232, 240, 0.72) !important;
}

/* ==========================================================================
   LANDZONE INTELLIGENCE, CONTACT BOOK CRM, DASH PASS & QR E-SIGN ARSENAL
   ========================================================================== */
#view-landzone,
.landzone-dossier-grid,
.lz-permission-crm-card,
.lz-free-lookup-bar,
.lz-same-owner-card {
  max-width: 100%;
  box-sizing: border-box;
}

.lz-intel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px 0;
}

.lz-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
  max-width: 100%;
  word-break: break-word;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
}

.lz-badge-green {
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
}

.lz-badge-amber {
  background: rgba(217, 119, 6, 0.24);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fef08a;
}

.lz-badge-sky {
  background: rgba(2, 132, 199, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
  color: #bae6fd;
}

.lz-badge-red {
  background: rgba(220, 38, 38, 0.22);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.lz-badge-purple {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(196, 181, 253, 0.55);
  color: #e9d5ff;
}

.lz-mailing-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.lz-mailing-wrap .dossier-val {
  max-width: 100%;
}

.lz-inline-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.lz-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.48);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.lz-mini-btn:hover,
.lz-mini-btn[aria-pressed="true"] {
  background: rgba(245, 158, 11, 0.24);
  border-color: #fbbf24;
  color: #fef08a;
}

.phone-call-wrap {
  flex-wrap: wrap;
}

.quick-sms-btn {
  background: #0284c7;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.quick-sms-btn:hover {
  background: #0369a1;
}

.lz-free-lookup-bar {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.lz-lookup-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.lz-lookup-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #7dd3fc;
}

.lz-lookup-sub {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.lz-lookup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lz-lookup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.42);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
}

.lz-lookup-btn:hover {
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.25);
}

.lz-lookup-btn-amber {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

.lz-lookup-btn-sky {
  border-color: rgba(56, 189, 248, 0.55);
  color: #bae6fd;
}

.lz-same-owner-card {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.lz-multilot-notice {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.58);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  box-sizing: border-box;
}

.lz-multilot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.lz-multilot-body {
  font-size: 11.5px;
  line-height: 1.45;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.lz-multilot-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lz-multilot-item {
  font-size: 11px;
  line-height: 1.35;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.34);
  color: #fef3c7;
  font-weight: 700;
  word-break: break-word;
}

.lz-cluster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.lz-cluster-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #fde047;
}

.lz-cluster-sub {
  font-size: 11px;
  color: #cbd5e1;
}

.lz-homestead-callout {
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #dcfce7;
  font-size: 11.5px;
  line-height: 1.4;
}

.lz-same-owner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lz-sibling-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fef3c7;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}

.lz-sibling-chip:hover {
  border-color: #fde047;
  background: rgba(245, 158, 11, 0.22);
}

.lz-squad-crm-banner {
  margin: 0 0 12px 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.5);
  color: #f3e8ff;
  font-size: 11.5px;
  line-height: 1.45;
}

.lz-permission-crm-card {
  margin: 0 0 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.lz-crm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.lz-crm-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #86efac;
  letter-spacing: 0.35px;
}

.lz-crm-sync-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #bbf7d0;
}

.lz-crm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

@media (max-width: 540px) {
  .lz-crm-grid {
    grid-template-columns: 1fr;
  }
}

.lz-crm-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lz-crm-field-wide {
  grid-column: 1 / -1;
}

.lz-crm-field label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #cbd5e1;
}

.lz-crm-field input,
.lz-crm-field select,
.lz-crm-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #f8fafc;
  font-size: max(1rem, 15px);
  font-weight: 600;
  font-family: inherit;
}

.lz-crm-field textarea {
  min-height: 58px;
  resize: vertical;
}

.lz-crm-field input:focus,
.lz-crm-field select:focus,
.lz-crm-field textarea:focus {
  outline: 2px solid #f59e0b;
  outline-offset: 1px;
  border-color: #f59e0b;
}

.lz-crm-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  padding: 4px 2px;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
}

.lz-crm-share-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #22c55e;
  cursor: pointer;
}

.lz-crm-actions {
  margin-top: 8px;
}

.btn-lz-save-crm {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  border: 1px solid #4ade80;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.btn-lz-save-crm:hover {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.lz-crm-save-msg {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid #4ade80;
  color: #dcfce7;
}

.btn-landzone-dash-pass {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1.5px solid #7dd3fc;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}

.btn-landzone-dash-pass:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

#permission-letter-modal .permission-letter-card {
  max-width: 740px;
  max-height: 92dvh;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

#permission-letter-modal .permission-letter-scroll {
  max-height: none !important;
  overflow-y: visible !important;
  padding: 16px 20px !important;
}

.letter-hunter-field input {
  min-height: 40px;
  font-size: max(1rem, 14px);
}

.perm-controls-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.perm-pitch-fieldset {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 6px 8px 8px 8px;
  margin: 0;
  min-width: 0;
}

.perm-pitch-fieldset legend {
  padding: 0 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.4px;
}

.perm-chip-row,
.perm-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.perm-pitch-btn,
.perm-mode-btn {
  min-height: 36px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #1e293b;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  flex: 1 1 auto;
}

.perm-pitch-btn.active {
  background: #b45309;
  border-color: #fbbf24;
  color: #ffffff;
}

.perm-mode-btn.active {
  background: #0284c7;
  border-color: #7dd3fc;
  color: #ffffff;
}

.btn-qr-esign {
  background: #7c3aed;
  color: #ffffff;
}

.btn-qr-esign:hover {
  background: #6d28d9;
}

.perm-esign-quickbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  background: #ede9fe;
  border-bottom: 1px solid #c4b5fd;
  color: #3b0764;
}

.perm-esign-status-badge {
  font-size: 11.5px;
  font-weight: 900;
}

.perm-esign-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.perm-mini-action {
  min-height: 36px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #6d28d9;
  background: #ffffff;
  color: #4c1d95;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.letter-window-envelope {
  border: 1px dashed #64748b;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 11.5px;
}

@media (max-width: 520px) {
  .letter-window-envelope {
    grid-template-columns: 1fr;
  }
}

.letter-qr-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  border: 1.5px solid #4c1d95;
  border-radius: 8px;
  background: #faf5ff;
}

.letter-qr-box img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  background: #ffffff;
  padding: 4px;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
}

.dash-pass-card {
  border: 4px solid #0f172a;
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dash-pass-banner {
  background: #0f172a;
  color: #fde047;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.dash-pass-banner h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.dash-pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
}

@media (max-width: 500px) {
  .dash-pass-grid {
    grid-template-columns: 1fr;
  }
}

.dash-pass-field {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px 10px;
}

.dash-pass-field span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.dash-pass-field strong {
  font-size: 13.5px;
  color: #0f172a;
  word-break: break-word;
}

/* ============================================================================
   V3 MACHINED TURRET — FULL-UI UNIFICATION, ZERO-SCROLL RAIL,
   BOTTOM-LEFT PATHWAYS BAR & 5 LIVE LAYOUT VARIANTS
   ============================================================================ */

/* --- 1. Unified Top Header Modules (Match V3 Turret Gunmetal Chassis) --- */
.app-header-huntzone {
  height: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 52px) !important;
  padding: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 6px) calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 10px) 0 calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 10px) !important;
  background: linear-gradient(180deg, rgba(10, 14, 21, 0.92) 0%, rgba(10, 14, 21, 0.65) 75%, transparent 100%) !important;
  box-sizing: border-box !important;
}

.app-header-huntzone .header-right-group {
  gap: 5px !important;
  min-inline-size: 0;
}

.app-header-huntzone .tract-dropdown-container,
.app-header-huntzone .header-action-btn,
.app-header-huntzone .header-action-btn.btn-kill-hour-pill,
.app-header-huntzone .header-action-btn.btn-sub-pill,
.app-header-huntzone .header-action-btn.btn-offline-pill,
.app-header-huntzone .header-action-btn.btn-squad-pill,
.app-header-huntzone .header-action-btn.btn-account-pill,
.app-header-huntzone .header-action-btn.btn-tour-pill,
.app-header-huntzone .header-action-btn.btn-guide-pill,
.app-header-huntzone .header-action-btn.btn-support-pill,
.app-header-huntzone .header-action-btn.btn-install-pill,
.app-header-huntzone .header-action-btn.btn-menu-hamburger,
.turret-header-combo-btn,
.turret-header-wind-btn {
  background: linear-gradient(180deg, #1b222c 0%, #0e131a 100%) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.68) !important;
  border-radius: 10px !important;
  min-block-size: 32px !important;
  height: 32px !important;
  color: #e2e8f0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.app-header-huntzone .tract-dropdown-container {
  padding: 0 11px !important;
  gap: 6px !important;
  border-color: rgba(245, 158, 11, 0.44) !important;
}

.app-header-huntzone .tract-dropdown-container .tract-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

.app-header-huntzone .btn-kill-hour-pill {
  padding: 0 9px !important;
  border-color: rgba(245, 158, 11, 0.48) !important;
  color: #fde68a !important;
}

.app-header-huntzone .btn-sub-pill {
  padding: 0 9px !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fde68a !important;
}

.app-header-huntzone .btn-offline-pill {
  padding: 0 9px !important;
  border-color: rgba(148, 163, 184, 0.36) !important;
  color: #cbd5e1 !important;
}

.app-header-huntzone .btn-squad-pill {
  padding: 0 9px !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #e2e8f0 !important;
}

.app-header-huntzone .btn-account-pill {
  padding: 0 9px !important;
  border-color: rgba(148, 163, 184, 0.36) !important;
  color: #e2e8f0 !important;
}

.app-header-huntzone .btn-tour-pill {
  padding: 0 9px !important;
  border-color: rgba(192, 132, 252, 0.42) !important;
  color: #e9d5ff !important;
}

.app-header-huntzone .btn-guide-pill {
  padding: 0 9px !important;
  border-color: rgba(56, 189, 248, 0.38) !important;
  color: #bae6fd !important;
}

.app-header-huntzone .btn-support-pill {
  padding: 0 9px !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
  color: #fde68a !important;
}

.app-header-huntzone .btn-install-pill {
  padding: 0 9px !important;
  border-color: rgba(34, 197, 94, 0.46) !important;
  color: #86efac !important;
}

.app-header-huntzone .btn-menu-hamburger {
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #f8fafc !important;
}

@media (hover: hover) {
  .app-header-huntzone .tract-dropdown-container:hover,
  .app-header-huntzone .header-action-btn:hover,
  .turret-header-combo-btn:hover,
  .turret-header-wind-btn:hover {
    border-color: rgba(250, 204, 21, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 12px rgba(250, 204, 21, 0.25) !important;
  }
}

/* Compact header fit on medium desktop screens (769px - 1180px) so all pills stay cleanly inside viewport */
@media (min-width: 769px) and (max-width: 1180px) {
  .app-header-huntzone .btn-tour-pill .tour-pill-text,
  .app-header-huntzone .btn-offline-pill .offline-pill-text {
    display: none !important;
  }
  .app-header-huntzone .header-action-btn {
    padding: 0 7px !important;
  }
}

/* --- 2. Left Elevation Scale Housing (Machined Gunmetal + Zoom Scrub + Quick Tilt) --- */
.left-map-hud-stack {
  position: absolute;
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 60px);
  left: calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 10px);
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  pointer-events: none;
}

.left-map-hud-stack .elevation-scale-left,
.elevation-scale-left {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  pointer-events: auto !important;
  user-select: none;
  background: linear-gradient(180deg, rgba(27, 34, 44, 0.92) 0%, rgba(14, 19, 26, 0.94) 100%) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 10px !important;
  padding: 7px 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.72) !important;
}

.scale-bar-hit {
  width: 18px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  touch-action: none;
  outline: none;
}

.scale-bar-hit:focus-visible {
  outline: 2px solid #f59e0b;
  border-radius: 6px;
}

.elevation-scale-left .scale-bar-track {
  background: #070a0f !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.elevation-scale-left .scale-indicator {
  background: linear-gradient(180deg, #f8fafc 0%, #fbbf24 100%) !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.55) !important;
  cursor: grab;
}

.elevation-scale-left .scale-tick-label {
  font-size: 10.5px !important;
  color: #cbd5e1 !important;
}

.left-tilt-cluster {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.left-tilt-cluster .btn-left-tilt-tactical {
  width: 100%;
}

.left-tilt-stepper-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.btn-left-tilt-step {
  pointer-events: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #212936 0%, #161c25 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn-left-tilt-step:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.72);
  color: #fde68a;
  background: linear-gradient(180deg, #2a3444 0%, #1b222d 100%);
}

.btn-left-tilt-step:active:not(:disabled) {
  background: linear-gradient(180deg, rgba(61, 45, 18, 0.95), rgba(32, 24, 14, 0.98));
  border-color: rgba(245, 158, 11, 0.92);
  color: #fbbf24;
}

.btn-left-tilt-step:disabled {
  opacity: 0.36;
  cursor: default;
}

.btn-left-tilt-step:focus-visible {
  outline: 2px solid #f59e0b !important;
  outline-offset: 2px !important;
}

.btn-left-tilt-tactical {
  pointer-events: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #212936 0%, #171d26 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 14px rgba(0, 0, 0, 0.65);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn-left-tilt-tactical .left-tilt-svg {
  color: #fbbf24;
  flex-shrink: 0;
}

.btn-left-tilt-tactical:hover {
  border-color: rgba(245, 158, 11, 0.68);
}

.btn-left-tilt-tactical:is(.active, .active-3d, [aria-pressed="true"]) {
  background: linear-gradient(180deg, rgba(61, 45, 18, 0.96), rgba(32, 24, 14, 0.98));
  border-color: rgba(245, 158, 11, 0.92);
  color: #fde68a;
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.32), 0 0 12px rgba(245, 158, 11, 0.34);
}

.btn-left-tilt-tactical:focus-visible {
  outline: 2px solid #f59e0b !important;
  outline-offset: 2px !important;
}

/* --- 3. Bottom-Center Tactical Bar (Machined V3 Turret Pills) --- */
.tactical-bottom-action-bar {
  bottom: 10px !important;
  gap: 6px !important;
}

.tactical-bottom-action-bar .btn-wind-intel-pill,
.tactical-bottom-action-bar .btn-property-landzone-pill,
.tactical-bottom-action-bar .btn-hide-all-controls {
  border-radius: 10px !important;
  height: 36px !important;
  min-block-size: 34px !important;
  padding: 0 12px !important;
  background: linear-gradient(180deg, #1b222c 0%, #0e131a 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.72) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
}

.tactical-bottom-action-bar .btn-wind-intel-pill {
  border: 1.5px solid rgba(245, 158, 11, 0.48) !important;
  color: #f8fafc !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

.tactical-bottom-action-bar .btn-property-landzone-pill {
  border: 1.5px solid rgba(245, 158, 11, 0.72) !important;
  color: #fde68a !important;
  flex: 0 0 auto !important;
  padding: 0 14px !important;
}

.tactical-bottom-action-bar .btn-property-landzone-pill.active-property-sheet {
  border-color: #facc15 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.tactical-bottom-action-bar .btn-hide-all-controls {
  border: 1.5px solid rgba(148, 163, 184, 0.36) !important;
  color: #e2e8f0 !important;
  flex: 0 0 auto !important;
}

@media (min-width: 769px) {
  .tactical-bottom-action-bar .btn-hide-all-controls,
  .tactical-bottom-action-bar:has(.btn-property-landzone-pill.visible) .btn-hide-all-controls {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 768px) {
  body:not([data-ui-variant="v5"]) .tactical-bottom-action-bar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
    gap: 3px !important;
    justify-content: center !important;
  }
  body:not([data-ui-variant="v5"]) .tactical-bottom-action-bar .wind-chip-icon {
    font-size: 10.5px !important;
    margin-right: 2px !important;
  }
  body:not([data-ui-variant="v5"]) .tactical-bottom-action-bar .btn-wind-intel-pill,
  body:not([data-ui-variant="v5"]) .tactical-bottom-action-bar .btn-property-landzone-pill,
  body:not([data-ui-variant="v5"]) .tactical-bottom-action-bar .btn-hide-all-controls,
  body:not([data-ui-variant="v5"]) .tactical-bottom-action-bar:has(.btn-property-landzone-pill.visible) .btn-hide-all-controls {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 38px !important;
    min-block-size: 38px !important;
    padding: 0 4.5px !important;
    gap: 2px !important;
    font-size: 8.2px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 359px) {
  body:not([data-ui-variant="v5"]) .tactical-bottom-action-bar {
    flex-wrap: wrap !important;
  }
}

/* --- 4. SCREENSHOT 3 FIX: Move 3-Layer Pathway Bar to Flush Bottom-Left --- */
@media (min-width: 769px) {
  #corridor-legend,
  .corridor-map-legend-pill {
    left: 10px !important;
    right: auto !important;
    bottom: 20px !important;
    max-width: min(370px, calc(50% - 210px)) !important;
    background: linear-gradient(180deg, #1b222c 0%, #0e131a 100%) !important;
    border: 1.5px solid rgba(250, 204, 21, 0.44) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.78) !important;
    z-index: 4650 !important;
  }

  #corridor-legend.legend-minimized,
  .corridor-map-legend-pill.legend-minimized {
    max-width: max-content !important;
    border-radius: 10px !important;
    padding: 5px 10px !important;
  }

  #corridor-legend:not(.legend-minimized),
  .corridor-map-legend-pill:not(.legend-minimized) {
    max-width: min(410px, calc(100% - 90px)) !important;
    z-index: 4800 !important;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  #corridor-legend:not(.legend-minimized),
  .corridor-map-legend-pill:not(.legend-minimized) {
    bottom: 58px !important;
  }
}

@media (max-width: 768px) {
  #corridor-legend,
  .corridor-map-legend-pill {
    left: 8px !important;
    right: auto !important;
    bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 64px) !important;
    background: linear-gradient(180deg, #1b222c 0%, #0e131a 100%) !important;
    border: 1.5px solid rgba(250, 204, 21, 0.44) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.78) !important;
  }
  .corridor-map-legend-pill.legend-minimized {
    border-radius: 10px !important;
    padding: 5px 9px !important;
  }
}

.corridor-legend-minimized-bar {
  color: #fde68a !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

.corridor-legend-inspect-btn,
.corridor-legend-minimize-btn {
  border-radius: 7px !important;
  background: linear-gradient(180deg, #1f2937 0%, #0f172a 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* --- 5. SCREENSHOT 3 FIX: Right-Side Toolbar Zero-Scroll Fit (All 14 Visible) --- */
.right-floating-controls {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 60px) !important;
  right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px) !important;
  gap: 3px !important;
}

.btn-rail-collapse-toggle {
  min-width: 50px !important;
  height: 24px !important;
  min-height: 24px !important;
  min-block-size: 24px !important;
  padding: 0 7px !important;
  border-radius: 8px !important;
  font-size: 9.5px !important;
  background: linear-gradient(180deg, #1b222c 0%, #0e131a 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.58) !important;
  color: #fde047 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.68) !important;
}

.right-rail-buttons-grid {
  width: 50px !important;
  padding: 3px !important;
  gap: 2px !important;
  border-radius: 12px !important;
  background: rgba(8, 12, 18, 0.84) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 110px) !important;
}

/* In V1 (14-button fallback), size buttons fluidly with dvh so ALL 14 buttons fit with ZERO scrolling */
body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) .right-rail-buttons-grid > .rail-labeled-btn:not(.turret-combo-btn) {
  width: 44px !important;
  height: clamp(28px, calc((100dvh - 134px) / 14), 41px) !important;
  min-height: 0 !important;
  min-block-size: 28px !important;
  padding: 2px 1px 1.5px !important;
  gap: 1px !important;
  border-radius: 9px !important;
}

body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) .right-rail-buttons-grid > .rail-labeled-btn:not(.turret-combo-btn) .rail-turret-well {
  width: clamp(15px, calc((100dvh - 134px) / 28), 20px) !important;
  height: clamp(15px, calc((100dvh - 134px) / 28), 20px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-width: 1px !important;
}

body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) .right-rail-buttons-grid > .rail-labeled-btn:not(.turret-combo-btn) .rail-turret-svg,
body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) .right-rail-buttons-grid > .rail-labeled-btn:not(.turret-combo-btn) #compass-needle-svg {
  width: 11px !important;
  height: 11px !important;
}

body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) .right-rail-buttons-grid > .rail-labeled-btn:not(.turret-combo-btn) .rail-btn-label,
body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) #btn-my-location.btn-location-tactical .rail-btn-label,
body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) #btn-tactical-compass .rail-btn-label,
body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) #btn-analyze-1mi .rail-btn-label {
  font-size: 6.5px !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
}

body:not([data-ui-variant^="v3"]):not([data-ui-variant="v2"]):not([data-ui-variant="v4"]):not([data-ui-variant="v5"]) .right-rail-buttons-grid > .rail-labeled-btn:not(.turret-combo-btn) .rail-turret-pip {
  top: 2.5px !important;
  right: 2.5px !important;
  width: 4px !important;
  height: 4px !important;
}

/* --- 6. SCREENSHOT 2 FIX: V3 Machined Turret Spot Tactical Modal Buttons --- */
.spot-detail-modal-card {
  background: linear-gradient(180deg, #121822 0%, #090d14 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.44) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 54px rgba(0, 0, 0, 0.92) !important;
}

.spot-detail-modal-card .spot-modal-actions-footer {
  background: linear-gradient(180deg, rgba(13, 18, 25, 0.95) 0%, #080c12 100%) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.spot-detail-modal-card .btn-turret-modal-action,
.spot-detail-modal-card .btn-deploy-stand-action,
.spot-detail-modal-card .btn-secondary-action {
  background: linear-gradient(180deg, #1b222c 0%, #0e131a 100%) !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.65) !important;
  padding: 10px 14px !important;
  min-block-size: 40px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.spot-detail-modal-card .btn-turret-modal-action.turret-cyan,
#btn-spot-deploy-stand {
  border-color: rgba(245, 158, 11, 0.82) !important;
  color: #fde68a !important;
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.22), 0 0 12px rgba(245, 158, 11, 0.2), 0 4px 12px rgba(0, 0, 0, 0.7) !important;
}

.spot-detail-modal-card .btn-turret-modal-action.turret-emerald {
  border-color: rgba(148, 163, 184, 0.36) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.65) !important;
}

.spot-detail-modal-card .btn-turret-modal-action.turret-amber,
#btn-spot-compare-all {
  border-color: rgba(250, 204, 21, 0.52) !important;
  color: #fef08a !important;
}

.spot-detail-modal-card .btn-turret-modal-action.turret-danger,
#btn-spot-delete {
  border-color: rgba(239, 68, 68, 0.56) !important;
  color: #fecaca !important;
}

.spot-detail-modal-card .btn-turret-modal-action.turret-slate,
#btn-spot-dismiss {
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #cbd5e1 !important;
}

@media (hover: hover) {
  .spot-detail-modal-card .btn-turret-modal-action:hover {
    filter: brightness(1.14);
    transform: translateY(-1px);
  }
}

/* --- 7. Combo Turret Controls & Flyout Menu Styling --- */
.turret-combo-btn,
.turret-header-combo-btn,
.turret-header-wind-btn,
.v5-dock-turret-btn {
  display: none !important;
}

.app-header-huntzone .turret-header-combo-btn,
.app-header-huntzone .turret-header-wind-btn {
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.turret-combo-btn .turret-combo-caret {
  position: absolute;
  top: 2px;
  left: 3.5px;
  font-size: 7px;
  line-height: 1;
  color: rgba(203, 213, 225, 0.72);
  pointer-events: none;
}

.turret-combo-flyout {
  position: fixed;
  z-index: 6200;
  min-width: 240px;
  max-width: min(300px, calc(100% - 16px));
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: linear-gradient(180deg, #161d27 0%, #0b0f16 100%);
  border: 1.5px solid var(--flyout-accent, rgba(56, 189, 248, 0.58));
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 38px rgba(0, 0, 0, 0.88), 0 0 18px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.turret-flyout-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 5px 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.turret-flyout-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--flyout-accent, #38bdf8);
  box-shadow: 0 0 8px var(--flyout-accent, #38bdf8);
  flex-shrink: 0;
}

.turret-flyout-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 9px;
  background: linear-gradient(180deg, #1c2430 0%, #101620 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.turret-flyout-item.is-active {
  border-color: var(--flyout-accent, #facc15);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.turret-flyout-ico {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #070a0f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.turret-flyout-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
}

.turret-flyout-text strong {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.turret-flyout-text small {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
}

.turret-flyout-led {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.28);
  flex-shrink: 0;
}

.turret-flyout-item.is-active .turret-flyout-led {
  background: var(--flyout-accent, #22c55e);
  box-shadow: 0 0 8px var(--flyout-accent, #22c55e);
}

@media (hover: hover) {
  .turret-flyout-item:hover {
    border-color: var(--flyout-accent, #38bdf8);
    background: linear-gradient(180deg, #242f3e 0%, #141c28 100%);
  }
}

/* Keep tactical address search bar strictly above variant switcher bar when open */
.tactical-address-search-bar {
  z-index: 6150 !important;
}

/* --- 8. Top Variant Switcher Bar (#ui-variant-preview-bar) --- */
.ui-variant-preview-bar {
  position: fixed;
  top: calc(var(--safe-area-top, 0px) + 52px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4620;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  max-width: calc(100% - 140px);
  background: linear-gradient(180deg, rgba(22, 29, 39, 0.96) 0%, rgba(10, 14, 21, 0.97) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.variant-bar-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fde047;
  padding: 0 4px;
  white-space: nowrap;
}

.variant-switch-pill {
  padding: 5px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1b222c 0%, #0e131a 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.variant-switch-pill.active {
  border-color: #facc15;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.variant-bar-close {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-weight: 900;
  cursor: pointer;
}

/* ============================================================================
   V3 PERMANENT BASE ARCHITECTURE — SPLIT HORIZON PODS + V3 NAMING VARIANTS
   ============================================================================ */
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone > *,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .tract-dropdown-container,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .tract-picker-menu,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .header-right-group {
  pointer-events: auto !important;
}

body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .header-right-group {
  background: linear-gradient(180deg, rgba(17, 23, 32, 0.9) 0%, rgba(9, 13, 19, 0.94) 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 3px 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .btn-sub-pill,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .btn-offline-pill,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .btn-account-pill,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .btn-tour-pill,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .btn-guide-pill,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .btn-support-pill,
body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .app-header-huntzone .btn-install-pill {
  display: none !important;
}

body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .turret-header-combo-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 0 10px !important;
  border-color: rgba(245, 158, 11, 0.48) !important;
  color: #fde68a !important;
}

body[data-ui-variant^="v3"] .right-rail-buttons-grid {
  width: 56px !important;
  gap: 3.5px !important;
  padding: 4px !important;
}

body:is([data-ui-variant^="v3"], [data-ui-variant="v4"]) .right-rail-buttons-grid > .rail-labeled-btn:not([data-v3-active="1"]) {
  display: none !important;
}

body[data-ui-variant^="v3"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] {
  display: flex !important;
  width: 48px !important;
  height: clamp(36px, calc((100dvh - 146px) / 8), 44px) !important;
  min-height: 0 !important;
  min-block-size: 36px !important;
  padding: 3px 2px 2px !important;
  gap: 2px !important;
  border-radius: 11px !important;
}

body:is([data-ui-variant="v3b"], [data-ui-variant="v3e"]) .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] {
  height: clamp(38px, calc((100dvh - 146px) / 7), 45px) !important;
  min-block-size: 38px !important;
}

body[data-ui-variant^="v3"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] .rail-turret-well {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

body[data-ui-variant^="v3"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] .rail-turret-svg {
  width: 13px !important;
  height: 13px !important;
}

body[data-ui-variant^="v3"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] .rail-btn-label,
body[data-ui-variant^="v3"] #btn-toggle-spots .rail-btn-label,
body[data-ui-variant^="v3"] #btn-toggle-wind .rail-btn-label,
body[data-ui-variant^="v3"] #btn-toggle-parcels .rail-btn-label,
body[data-ui-variant^="v3"] #btn-mark-waypoint .rail-btn-label {
  font-size: 6.8px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-width: 100% !important;
}

#rt-combo-tools {
  --rail-halo-color: #f59e0b;
  --rail-halo-glow: rgba(245, 158, 11, 0.55);
  --rail-halo-bg: rgba(245, 158, 11, 0.22);
}

.btn-rail-collapse-toggle.blood-active-cap {
  border-color: #f43f5e !important;
  color: #fecdd3 !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* Visible active cue on open menu triggers */
[data-combo][aria-expanded="true"],
#btn-collapse-right-rail[data-flyout-open="true"] {
  border-color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

@media (max-width: 768px) {
  .ui-variant-preview-bar {
    max-width: calc(100% - 20px);
    top: calc(var(--safe-area-top, 0px) + 52px);
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

body.all-ui-buttons-hidden .ui-variant-preview-bar,
body.all-ui-buttons-hidden .turret-combo-flyout {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .app-header-huntzone .header-action-btn,
  .tactical-bottom-action-bar > button,
  .turret-flyout-item,
  .variant-switch-pill,
  .spot-detail-modal-card .btn-turret-modal-action {
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease, filter 0.16s ease;
  }
}

.app-header-huntzone button:focus-visible,
.tactical-bottom-action-bar button:focus-visible,
.turret-flyout-item:focus-visible,
.variant-switch-pill:focus-visible,
.spot-detail-modal-card button:focus-visible,
.auth-modal-overlay button:focus-visible,
.right-rail-buttons-grid > .rail-labeled-btn:focus-visible,
.rail-labeled-btn:focus-visible {
  outline: 2px solid #f59e0b !important;
  outline-offset: 2px !important;
}

/* ============================================================================
   V4 FINAL 5-BUTTON TURRET RIGHT RAIL & UNIFORM MACHINED TOOLS COLOR SCHEME
   - Matches machined gunmetal + warm tactical amber (#fbbf24 / #f59e0b) UI
   - Keeps GIS map canvas layers, pathway tier colors, and terrain brushes intact
   - Explicitly isolates printable light-mode landowner documents
   ============================================================================ */

:root {
  --rutline-gunmetal-top: #1b222d;
  --rutline-gunmetal-bot: #11161d;
  --rutline-gunmetal-cell: #161c24;
  --rutline-gunmetal-btn-top: #212936;
  --rutline-gunmetal-btn-bot: #171d26;
  --rutline-amber: #f59e0b;
  --rutline-amber-bright: #fbbf24;
  --rutline-amber-soft: #fde68a;
  --rutline-border-subtle: rgba(148, 163, 184, 0.22);
  --rutline-border-amber: rgba(245, 158, 11, 0.48);
  --rutline-text-primary: #f8fafc;
  --rutline-text-secondary: #cbd5e1;
  --rutline-text-muted: #94a3b8;
}

/* --- 5-Button V4 Machined Turret Right Rail --- */
body[data-ui-variant="v4"] .right-floating-controls {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 60px) !important;
  right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px) !important;
  gap: 4px !important;
}

body[data-ui-variant="v4"] #btn-collapse-right-rail {
  min-width: 58px !important;
  background: linear-gradient(180deg, var(--rutline-gunmetal-btn-top), var(--rutline-gunmetal-btn-bot)) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.55) !important;
  color: var(--rutline-amber-bright) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(251, 191, 36, 0.16) !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid {
  width: 58px !important;
  background: linear-gradient(180deg, rgba(22, 28, 36, 0.94), rgba(14, 18, 24, 0.96)) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  padding: 4px !important;
  gap: 5px !important;
  overflow: visible !important;
  max-height: none !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: clamp(46px, calc((100dvh - 160px) / 5), 56px) !important;
  min-height: 46px !important;
  min-block-size: 46px !important;
  padding: 4px 2px 3px !important;
  gap: 2.5px !important;
  border-radius: 11px !important;
  background: linear-gradient(180deg, var(--rutline-gunmetal-btn-top) 0%, var(--rutline-gunmetal-btn-bot) 100%) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 10px rgba(0, 0, 0, 0.45) !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"]:hover {
  border-color: rgba(245, 158, 11, 0.68) !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"]:is(.active, [aria-expanded="true"], [data-flyout-open="true"]) {
  background: linear-gradient(180deg, rgba(61, 45, 18, 0.96), rgba(32, 24, 14, 0.98)) !important;
  border-color: rgba(245, 158, 11, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.35), 0 0 14px rgba(245, 158, 11, 0.32) !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] .rail-turret-well {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  background: #0c1016 !important;
  border: 1px solid rgba(245, 158, 11, 0.36) !important;
  color: var(--rutline-amber-bright) !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] .rail-turret-svg {
  width: 13px !important;
  height: 13px !important;
  color: var(--rutline-amber-bright) !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] .rail-btn-label {
  white-space: pre-line !important;
  text-align: center !important;
  line-height: 1.08 !important;
  font-size: 6.7px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #e2e8f0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"]:is(.active, [aria-expanded="true"], [data-flyout-open="true"]) .rail-btn-label {
  color: var(--rutline-amber-soft) !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] .rail-turret-pip {
  background: rgba(148, 163, 184, 0.4) !important;
}

body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"]:is(.active, [aria-expanded="true"], [data-flyout-open="true"]) .rail-turret-pip {
  background: var(--rutline-amber-bright) !important;
  box-shadow: 0 0 8px var(--rutline-amber) !important;
}

@media (max-height: 700px) {
  body[data-ui-variant="v4"] .right-floating-controls {
    top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 58px) !important;
  }
  body[data-ui-variant="v4"] .right-rail-buttons-grid {
    gap: 4px !important;
    padding: 3px !important;
  }
  body[data-ui-variant="v4"] .right-rail-buttons-grid > .rail-labeled-btn[data-v3-active="1"] {
    height: clamp(42px, calc((100dvh - 150px) / 5), 50px) !important;
    min-height: 42px !important;
    min-block-size: 42px !important;
  }
}

/* --- Uniform Machined Gunmetal + Amber Combo Flyout Drawer --- */
.turret-combo-flyout {
  background: linear-gradient(180deg, var(--rutline-gunmetal-top) 0%, var(--rutline-gunmetal-bot) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.58) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(251, 191, 36, 0.14) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: auto !important;
  scrollbar-color: rgba(245, 158, 11, 0.55) #11161d !important;
}

.turret-flyout-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: #f1f5f9 !important;
}

.turret-flyout-header-dot {
  background: var(--rutline-amber-bright) !important;
  box-shadow: 0 0 8px var(--rutline-amber) !important;
}

.turret-flyout-item {
  background: linear-gradient(180deg, var(--rutline-gunmetal-btn-top) 0%, var(--rutline-gunmetal-btn-bot) 100%) !important;
  border: 1px solid var(--rutline-border-subtle) !important;
}

.turret-flyout-item:hover {
  border-color: rgba(245, 158, 11, 0.68) !important;
  background: linear-gradient(180deg, #2a3342 0%, #1c232e 100%) !important;
}

.turret-flyout-item.is-active {
  border-color: rgba(245, 158, 11, 0.9) !important;
  background: linear-gradient(180deg, rgba(61, 45, 18, 0.94), rgba(32, 24, 14, 0.96)) !important;
}

.turret-flyout-item .turret-flyout-ico {
  background: rgba(15, 19, 25, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.turret-flyout-item .turret-flyout-text strong {
  color: var(--rutline-text-primary) !important;
}

.turret-flyout-item .turret-flyout-text small {
  color: var(--rutline-text-muted) !important;
}

.turret-flyout-item .turret-flyout-led {
  background: rgba(148, 163, 184, 0.35) !important;
}

.turret-flyout-item.is-active .turret-flyout-led {
  background: var(--rutline-amber-bright) !important;
  box-shadow: 0 0 8px var(--rutline-amber) !important;
}

@media (max-width: 640px) {
  .turret-combo-flyout {
    max-width: calc(100vw - 82px) !important;
  }
}

/* --- Uniform Machined Tools Surfaces Across All Modals, Drawers, Sheets & Popups --- */
.auth-modal-overlay .kill-hour-card,
.auth-modal-overlay .spot-detail-modal-card,
.auth-modal-overlay .stand-picker-card,
.auth-modal-overlay .stand-detail-card,
.auth-modal-overlay .backtrack-card,
.auth-modal-overlay .offline-card,
.auth-modal-overlay .auth-modal-card,
.auth-modal-overlay .auth-card,
.auth-modal-overlay .squad-modal-card,
.auth-modal-overlay .subscription-card,
.auth-modal-overlay .permission-letter-card,
.auth-modal-overlay .landowner-card,
#layers-drawer,
.tactical-drawer,
#bottom-sheet,
#wind-drawer-panel,
#terrain-inspector-panel,
#tour-card {
  color-scheme: dark;
  background: linear-gradient(180deg, var(--rutline-gunmetal-top) 0%, var(--rutline-gunmetal-bot) 100%) !important;
  border-color: var(--rutline-border-amber) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: var(--rutline-text-primary);
}

#layers-drawer .layers-drawer-header,
.stand-picker-top,
.spot-modal-header-top,
.letter-modal-header {
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

/* Uniform Sub-Badges inside Modals & Drawers (Semantic wind safety pills remain excluded) */
.auth-modal-overlay .sub-badge,
.auth-modal-overlay .spot-modal-badge,
.auth-modal-overlay .spot-modal-rating-badge,
#kill-hour-radar .sub-badge,
.tour-step-pill,
.tour-live-chip {
  background: rgba(245, 158, 11, 0.14) !important;
  color: var(--rutline-amber-bright) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  font-weight: 900 !important;
}

/* Kill Hour Radar Modal (#kill-hour-modal) & Inline Radar (#kill-hour-radar) Uniform Scheme */
#kill-hour-modal .kill-hour-hero {
  background: linear-gradient(180deg, var(--rutline-gunmetal-btn-top) 0%, var(--rutline-gunmetal-cell) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.12) !important;
}

#kill-hour-modal .kill-hour-score-num {
  color: var(--rutline-amber-bright) !important;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.25) !important;
}

#kill-hour-modal .kill-hour-score-label {
  color: var(--rutline-text-secondary) !important;
}

#kill-hour-modal .kill-metric-box,
#kill-hour-radar .radar-metric-cell {
  background: var(--rutline-gunmetal-cell) !important;
  border: 1px solid var(--rutline-border-subtle) !important;
  border-left: 3px solid rgba(245, 158, 11, 0.72) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
}

#kill-hour-modal .kill-metric-name,
#kill-hour-radar .radar-metric-label {
  color: var(--rutline-text-muted) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
}

#kill-hour-modal .kill-metric-val,
#kill-hour-radar .radar-metric-val {
  color: var(--rutline-text-primary) !important;
  font-weight: 700 !important;
}

#kill-hour-modal .kill-hour-summary-box {
  background: var(--rutline-gunmetal-cell) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
}

#kill-hour-modal .kill-summary-title {
  color: var(--rutline-amber-bright) !important;
}

#kill-hour-modal .kill-summary-desc {
  color: var(--rutline-text-secondary) !important;
}

#kill-hour-radar {
  margin-top: 14px;
  background: var(--rutline-gunmetal-cell) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 12px;
  padding: 12px;
}

#kill-hour-radar .radar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

#kill-hour-radar .radar-section-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

#kill-hour-radar .radar-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--rutline-text-primary);
}

#kill-hour-radar .radar-movement-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--rutline-amber-bright) !important;
}

#kill-hour-radar .radar-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  font-size: 11px;
}

/* Truck Placement, Offline Compass & Waypoint GPS Cards */
.truck-modal-desc {
  font-size: 12px;
  color: var(--rutline-text-secondary);
  margin: 6px 0 12px 0;
  line-height: 1.4;
}

.truck-modal-status {
  font-size: 11px;
  color: var(--rutline-amber-bright);
  margin-bottom: 10px;
  font-weight: 700;
}

.truck-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#compass-live-heading-pill {
  color: var(--rutline-amber-bright) !important;
}

#compass-card-truck,
#compass-card-stand {
  background: var(--rutline-gunmetal-cell) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

#compass-card-truck > div:first-child,
#compass-card-stand > div:first-child {
  color: var(--rutline-amber-bright) !important;
}

#backtrack-dist-val,
#compass-stand-dist-val {
  color: var(--rutline-text-primary) !important;
}

#backtrack-bearing-val,
#compass-stand-bearing-val {
  color: var(--rutline-text-secondary) !important;
}

.wp-gps-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--rutline-gunmetal-cell) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 8px;
  padding: 8px 12px;
}

.wp-gps-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--rutline-text-muted);
  letter-spacing: 0.06em;
}

.wp-gps-readout {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--rutline-amber-bright) !important;
}

.tour-hud-header .btn-tour-close {
  margin-inline-start: auto;
}

.tour-hud-header .tour-title {
  flex: 1 0 100%;
  width: auto;
}

/* Uniform Modal Action & Close Buttons */
.auth-modal-overlay .btn-close-modal,
.btn-tour-close {
  background: rgba(30, 38, 49, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  color: #e2e8f0 !important;
}

.auth-modal-overlay .btn-close-modal:hover,
.btn-tour-close:hover {
  border-color: var(--rutline-amber) !important;
  color: var(--rutline-amber-soft) !important;
}

.auth-modal-overlay .btn-primary-action,
.auth-modal-overlay .btn-deploy-stand-action,
.auth-modal-overlay .btn-feature-tour-trigger,
.auth-modal-overlay .btn-backtrack-primary,
.tour-next-btn,
.btn-tour-next,
#btn-tour-next {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border: 1px solid #fbbf24 !important;
  color: #0b0f17 !important;
  font-weight: 900 !important;
}

.auth-modal-overlay .btn-secondary-action,
.auth-modal-overlay .btn-backtrack-tool,
.auth-modal-overlay .btn-backtrack-secondary,
.auth-modal-overlay .btn-tactical-outline,
.auth-modal-overlay .btn-open-terrain-inspector,
.auth-modal-overlay .btn-guide-permission,
.auth-modal-overlay .btn-picker-red-dots,
#layers-drawer .drawer-action-btn,
.tour-prev-btn,
.btn-tour-back,
#btn-tour-prev {
  background: linear-gradient(180deg, var(--rutline-gunmetal-btn-top) 0%, var(--rutline-gunmetal-btn-bot) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: var(--rutline-text-primary) !important;
  font-weight: 800 !important;
}

.auth-modal-overlay .btn-secondary-action:hover,
.auth-modal-overlay .btn-backtrack-tool:hover,
.auth-modal-overlay .btn-tactical-outline:hover,
.auth-modal-overlay .btn-open-terrain-inspector:hover,
.auth-modal-overlay .btn-guide-permission:hover,
.auth-modal-overlay .btn-picker-red-dots:hover,
#layers-drawer .drawer-action-btn:hover,
.tour-prev-btn:hover,
.btn-tour-back:hover,
#btn-tour-prev:hover {
  border-color: rgba(245, 158, 11, 0.72) !important;
  color: var(--rutline-amber-soft) !important;
}

.auth-modal-overlay .btn-backtrack-primary {
  padding: 12px !important;
}

.auth-modal-overlay .btn-backtrack-secondary {
  padding: 12px !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: var(--rutline-amber-soft) !important;
}

.auth-modal-overlay .btn-backtrack-danger {
  background: linear-gradient(180deg, #291c20 0%, #1b1316 100%) !important;
  border: 1px solid rgba(248, 113, 113, 0.48) !important;
  color: #fca5a5 !important;
  padding: 10px !important;
}

.btn-picker-red-dots {
  margin-top: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}

.btn-open-terrain-inspector {
  flex: 1;
}

.btn-guide-permission {
  margin-right: 0;
}

/* Guide & Analysis Modal Uniform Badges, Subtitles, Italics & Footer Layout */
.auth-modal-overlay .analysis-pill-sub {
  background: rgba(245, 158, 11, 0.14) !important;
  color: var(--rutline-amber-bright) !important;
  border: 1px solid var(--rutline-border-amber) !important;
}

.auth-modal-overlay .spot-modal-parcel,
#how-to-use-modal .spot-modal-parcel {
  color: var(--rutline-text-secondary) !important;
}

/* Guide Modal Sections (.analysis-section-box) */
.auth-modal-overlay .analysis-section-box {
  background: var(--rutline-gunmetal-cell) !important;
  border: 1px solid var(--rutline-border-subtle) !important;
}

.auth-modal-overlay .analysis-section-box .section-box-title {
  color: var(--rutline-amber-bright) !important;
}

.auth-modal-overlay .guide-p,
.auth-modal-overlay .guide-bullet {
  color: var(--rutline-text-secondary) !important;
}

.auth-modal-overlay .guide-bullet em,
#how-to-use-modal .guide-bullet em {
  color: var(--rutline-amber-soft) !important;
}

#how-to-use-modal .spot-modal-actions-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  background: transparent !important;
}

#how-to-use-modal .spot-modal-actions-footer > button {
  min-height: 44px;
  margin-right: 0 !important;
  padding: 9px 12px !important;
  font-size: 12px !important;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#how-to-use-modal #btn-open-permission-letter {
  flex: 1.25 1 180px !important;
}

#how-to-use-modal #btn-guide-start-tour {
  flex: 0.85 1 128px !important;
}

#how-to-use-modal #btn-guide-done {
  flex: 1.15 1 170px !important;
}

@media (max-width: 640px) {
  #how-to-use-modal .spot-modal-actions-footer {
    flex-direction: column !important;
    flex-shrink: 0 !important;
  }

  #how-to-use-modal #btn-open-permission-letter,
  #how-to-use-modal #btn-guide-start-tour,
  #how-to-use-modal #btn-guide-done {
    flex: none !important;
    width: 100% !important;
    min-height: 40px !important;
  }
}

/* Uniform Dark Form Controls (modern-web-guidance compliant) */
.auth-modal-overlay input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.auth-modal-overlay select,
.auth-modal-overlay textarea,
#layers-drawer input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]),
#layers-drawer select,
#bottom-sheet input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]),
#bottom-sheet select,
#bottom-sheet textarea {
  color-scheme: dark;
  background-color: #11161d !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 8px;
}

.auth-modal-overlay textarea,
#bottom-sheet textarea {
  resize: vertical;
}

.auth-modal-overlay input:not([type="range"]):user-invalid,
.auth-modal-overlay select:user-invalid,
.auth-modal-overlay textarea:user-invalid,
#bottom-sheet input:not([type="range"]):user-invalid {
  border-color: #f87171 !important;
}

.auth-modal-overlay input[type="checkbox"],
.auth-modal-overlay input[type="radio"],
#layers-drawer input[type="checkbox"],
#bottom-sheet input[type="checkbox"] {
  color-scheme: light dark;
  accent-color: #f59e0b !important;
}

/* Uniform Gunmetal + Amber Theme for Tract Picker (#tract-picker-menu) & Layers Drawer (#layers-drawer) */
#tract-picker-menu.tract-picker-menu {
  background: linear-gradient(180deg, var(--rutline-gunmetal-top, #1b222d) 0%, var(--rutline-gunmetal-bot, #11161d) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  color: #f8fafc !important;
}

#tract-picker-menu .picker-header {
  color: #fde68a !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

#tract-picker-menu #picker-address-input {
  flex: 1;
  color-scheme: dark;
  background: #11161d !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 8px;
  padding: 6px 9px;
  color: #f8fafc !important;
  font-size: 12px;
}

#tract-picker-menu #btn-picker-address-go,
#tactical-address-search-bar #btn-address-search-go {
  background: linear-gradient(180deg, rgba(61, 45, 18, 0.96), rgba(32, 24, 14, 0.98)) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.85) !important;
  color: #fde68a !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
}

#tract-picker-menu .picker-isolation-banner {
  padding: 6px 12px;
  background: #161c24 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #cbd5e1 !important;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

#tract-picker-menu .picker-account-scope-tag {
  color: #fbbf24 !important;
  font-weight: 800;
}

#tract-picker-menu .picker-looked-up-header {
  background: #12171f !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
}

#tract-picker-menu .picker-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
  cursor: pointer;
}

#tract-picker-menu .picker-item:hover {
  background: rgba(245, 158, 11, 0.12) !important;
}

#tract-picker-menu .picker-item.active {
  background: rgba(245, 158, 11, 0.18) !important;
  border-left: 3px solid #f59e0b !important;
}

#tract-picker-menu .picker-tabpanel {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

#tract-picker-menu .picker-tabs-bar {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: #12171f !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
}

#tract-picker-menu .picker-tabs-bar::-webkit-scrollbar {
  display: none;
}

#tract-picker-menu .picker-tab-btn {
  position: relative;
  flex: 1 1 0;
  min-inline-size: max-content;
  min-block-size: 38px;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

#tract-picker-menu .picker-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(245, 158, 11, 0.07);
}

#tract-picker-menu .picker-tab-btn[aria-selected="true"] {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
}

#tract-picker-menu .picker-tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid #f59e0b;
}

#tract-picker-menu .picker-tab-btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: -2px;
}

#tract-picker-menu .picker-tab-star {
  color: #f59e0b;
  font-size: 12px;
  line-height: 1;
}

#tract-picker-menu .picker-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

#tract-picker-menu .picker-tab-btn[aria-selected="true"] .picker-tab-count {
  background: rgba(245, 158, 11, 0.24);
  color: #fde68a;
}

#tract-picker-menu .picker-item-star {
  color: #fbbf24;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

#tract-picker-menu .btn-fav-signin {
  margin-top: 10px;
  min-block-size: 34px;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(61, 45, 18, 0.96), rgba(32, 24, 14, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.85);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

#tract-picker-menu .btn-fav-signin:hover,
#tract-picker-menu .btn-fav-signin:focus-visible {
  border-color: #fde047;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

#layers-drawer .contour-toggle-card {
  background: linear-gradient(180deg, #1b222d 0%, #141922 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
}

#layers-drawer .contour-toggle-card .contour-title {
  color: #fbbf24 !important;
}

#layers-drawer .pill-time-of-day.active,
#layers-drawer .pill-rut-phase.active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.92), rgba(217, 119, 6, 0.95)) !important;
  border-color: #fbbf24 !important;
  color: #0b0f14 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35) !important;
}

#layers-drawer .btn-open-sign-logger-card {
  background: linear-gradient(180deg, #212936 0%, #171d26 100%) !important;
  border: 1.5px dashed rgba(245, 158, 11, 0.55) !important;
  color: #fde68a !important;
}

#layers-drawer .btn-open-sign-logger-card:hover {
  border-color: #fbbf24 !important;
  background: linear-gradient(180deg, rgba(61, 45, 18, 0.96), rgba(32, 24, 14, 0.98)) !important;
}

#layers-drawer #drawer-link-privacy {
  color: #fbbf24 !important;
}

/* Dark Tactical Override for MapLibre Popups (prevents default vendor #fff box & tip behind trail/map popups) */
.rutline-trail-popup .maplibregl-popup-content {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

.maplibregl-popup:not(.rutline-drag-confirm-popup):not(.rutline-trail-popup) .maplibregl-popup-content {
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.98) 0%, rgba(10, 15, 24, 0.99) 100%) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.82) !important;
}

.maplibregl-popup:not(.rutline-drag-confirm-popup).maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup:not(.rutline-drag-confirm-popup).maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup:not(.rutline-drag-confirm-popup).maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: #101722 !important;
}

.maplibregl-popup:not(.rutline-drag-confirm-popup).maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup:not(.rutline-drag-confirm-popup).maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup:not(.rutline-drag-confirm-popup).maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: #0a0f18 !important;
}

.maplibregl-popup:not(.rutline-drag-confirm-popup).maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: #0f172a !important;
}

.maplibregl-popup:not(.rutline-drag-confirm-popup).maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: #0f172a !important;
}

.maplibregl-popup:not(.rutline-drag-confirm-popup) .maplibregl-popup-close-button {
  width: 22px !important;
  height: 22px !important;
  top: 6px !important;
  right: 6px !important;
  border-radius: 6px !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #94a3b8 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3 !important;
}

.maplibregl-popup:not(.rutline-drag-confirm-popup) .maplibregl-popup-close-button:hover,
.maplibregl-popup:not(.rutline-drag-confirm-popup) .maplibregl-popup-close-button:focus-visible {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.18) !important;
  outline: none !important;
}

/* Light Printable Landowner Documents Isolation (modern-web-guidance component-specific-light-dark-theme) */
#permission-letter-content,
.permission-letter-content,
.letter-window-envelope,
.dash-pass-card {
  color-scheme: only light !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

#permission-letter-content input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]),
#permission-letter-content select,
#permission-letter-content textarea,
.permission-letter-content input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.permission-letter-content select,
.permission-letter-content textarea,
.letter-window-envelope input,
.dash-pass-card input {
  color-scheme: only light !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

#permission-letter-content input[type="checkbox"],
#permission-letter-content input[type="radio"],
.permission-letter-content input[type="checkbox"],
.permission-letter-content input[type="radio"] {
  color-scheme: light dark;
  accent-color: #b45309 !important;
}

@media (max-width: 420px) {
  body:not([data-ui-variant="v5"]) #tactical-action-bar:not([data-custom-pos="1"]) {
    gap: 3px !important;
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
  }
  body:not([data-ui-variant="v5"]) #tactical-action-bar > button {
    font-size: 8.2px !important;
    padding: 0 5px !important;
  }
}

/* =========================================================================
   REA Full-App Functional & Zero-Clipping Guardrails (v33.6)
   ========================================================================= */

/* 1. Hide collapsed bottom sheet from screen readers, tab order, and offscreen hitboxes */
.bottom-tactical-sheet.sheet-collapsed,
#bottom-sheet.sheet-collapsed {
  visibility: hidden !important;
  pointer-events: none !important;
}

.bottom-tactical-sheet:not(.sheet-collapsed),
#bottom-sheet:not(.sheet-collapsed) {
  visibility: visible !important;
}

/* 2. Prevent mobile #tactical-address-search-bar from overlapping top-left scale & right turret rail */
@media (max-width: 768px) {
  body:has(#tactical-address-search-bar:not([style*="display: none"])) .left-map-hud-stack:not([data-custom-pos="1"]) {
    top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 104px) !important;
  }

  body:has(#tactical-address-search-bar:not([style*="display: none"])) .right-floating-controls:not([data-custom-pos="1"]) {
    top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 104px) !important;
  }

  body:has(#tactical-address-search-bar:not([style*="display: none"])) .right-rail-buttons-grid {
    max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 165px) !important;
  }

  .survival-compass-hud,
  #compass-hud {
    bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 64px) !important;
    left: calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 10px) !important;
    right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 10px) !important;
    width: auto !important;
  }
}

/* 3. Compact-height guardrails (360x640, 375x667, 1280x680): clear scale stack & expanded legend */
@media (max-height: 700px) {
  .left-map-hud-stack .scale-bar-hit,
  .left-map-hud-stack .scale-bar-track,
  .left-map-hud-stack .scale-labels {
    height: 96px !important;
  }

  .btn-minimize-left-hud {
    top: 37px;
  }

  #corridor-legend:not(.legend-minimized),
  .corridor-map-legend-pill:not(.legend-minimized) {
    max-height: min(300px, calc(100dvh - 360px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    box-sizing: border-box !important;
  }

  .spot-detail-modal-card .spot-modal-actions-footer {
    gap: 5px !important;
    padding-top: 8px !important;
  }

  .spot-detail-modal-card .spot-modal-actions-footer button,
  .spot-detail-modal-card .btn-turret-modal-action {
    min-block-size: 34px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
}

/* 4. Tactical Survival Compass HUD (#compass-hud) V4 uniform gunmetal + warm amber theme */
.survival-compass-hud,
#compass-hud {
  background: linear-gradient(180deg, rgba(22, 29, 39, 0.96) 0%, rgba(11, 15, 23, 0.98) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.88), 0 0 18px rgba(245, 158, 11, 0.22) !important;
}

.compass-hud-title {
  color: #fbbf24 !important;
}

/* 5. Ensure #layers-drawer sits above active analysis progress toast and scrolls below sticky header */
#layers-drawer,
.tactical-layers-drawer {
  z-index: 10200 !important;
  scroll-padding-top: 58px !important;
}

/* 6. Original Full-Size Top-Left Distance Legend + Left-Edge Minimize Arrow Tab */
.left-map-hud-stack {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), left 0.22s ease;
}

.btn-minimize-left-hud {
  pointer-events: auto !important;
  position: absolute;
  left: calc(100% - 1px);
  top: 68px;
  width: 18px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #212936 0%, #141a23 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.72);
  z-index: 66;
  transition: background 0.16s ease, border-color 0.16s ease, width 0.18s ease;
}

.btn-minimize-left-hud:hover {
  border-color: rgba(251, 191, 36, 0.92);
  color: #fde68a;
}

.btn-minimize-left-hud:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 1px;
}

.left-map-hud-stack.left-hud-minimized {
  left: 0 !important;
  transform: translateX(-100%) !important;
}

.left-map-hud-stack.left-hud-minimized .elevation-scale-left,
.left-map-hud-stack.left-hud-minimized .left-tilt-cluster,
.left-map-hud-stack.left-hud-minimized .btn-left-tilt-tactical {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.left-map-hud-stack.left-hud-minimized .btn-minimize-left-hud {
  left: 100% !important;
  top: 8px !important;
  width: 20px !important;
  height: 42px !important;
  border-radius: 0 9px 9px 0 !important;
  border-color: rgba(245, 158, 11, 0.78) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 480px) {
  #corridor-legend,
  .corridor-map-legend-pill {
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #corridor-legend .corridor-legend-expanded-body,
  #corridor-legend .corridor-legend-tiers-row {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  #corridor-legend .corridor-tier-item {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: left !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }
  #corridor-legend .corridor-tier-item .tier-swatch {
    flex-shrink: 0 !important;
  }
  #corridor-legend .corridor-tier-item > span:not(.tier-swatch) {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* ==========================================================================
   10-ft Truck Walk-In Tracker, Current Sit Marker, Crumb Compass & Past Walks
   ========================================================================== */
.autowalk-setting-card {
  margin-top: 4px;
}

.btn-open-past-walks-card {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 0, 0.45);
  background: rgba(255, 107, 0, 0.12);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.btn-open-past-walks-card:hover {
  background: rgba(255, 107, 0, 0.22);
}

.past-walks-count-pill {
  background: #ff6b00;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
}

.truck-autowalk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  cursor: pointer;
}

.current-sit-map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 48;
}

.current-sit-pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 107, 0, 0.55);
}

.current-sit-label {
  font-size: 8px;
  font-weight: 900;
  color: #ffffff;
  background: rgba(255, 107, 0, 0.92);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.compass-orbit-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.35s ease-out;
}

.compass-orbit-trail-pill {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff6b00;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.compass-trail-guidance-card {
  margin: 4px 0 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.48);
}

.compass-trail-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 6px;
}

.btn-trail-mode {
  padding: 5px 4px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-trail-mode.active {
  background: rgba(255, 107, 0, 0.24);
  border-color: #ff6b00;
  color: #fed7aa;
}

.compass-trail-readout {
  font-size: 11px;
  font-weight: 900;
  color: #fdba74;
  text-align: center;
  letter-spacing: 0.3px;
}

.past-walks-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 2px;
}

.past-walk-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-left: 3px solid #ff6b00;
  border-radius: 10px;
  padding: 9px 10px;
}

.past-walk-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
}

.past-walk-meta {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
}

.walk-private-badge { color: #94a3b8; font-weight: 700; }
.walk-shared-badge { color: #4ade80; font-weight: 800; }
.walk-buddy-badge { color: #38bdf8; font-weight: 800; }

.past-walk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.btn-walk-action {
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-walk-action.active {
  background: rgba(255, 107, 0, 0.25);
  border-color: #ff6b00;
  color: #fed7aa;
}

.btn-walk-action.danger {
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.walk-pocket-blackout-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  touch-action: manipulation;
}

/* =========================================================================
   Compass Tactical Mini-Map, On-Map HUD & Main-Map Path Guidance Arrow
   ========================================================================= */

#backtrack-compass-modal .backtrack-card {
  gap: 8px;
  padding: 15px 16px;
}

#backtrack-compass-modal .backtrack-dial-wrap {
  padding: 4px 0 2px;
}

#backtrack-compass-modal .backtrack-compass-housing {
  width: 148px;
  height: 148px;
}

.compass-trail-arrow-pointer {
  position: absolute;
  width: 112px;
  height: 112px;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.3s ease-out;
}

.compass-minimap-wrap {
  background: rgba(9, 13, 22, 0.92);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.compass-minimap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.compass-minimap-title-group {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.compass-minimap-title {
  font-size: 10px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compass-minimap-scale {
  font-size: 9px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-minimap-orient {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 9.5px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.compass-minimap-canvas {
  display: block;
  width: 100%;
  height: 136px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #070b12;
}

.btn-use-compass-on-map {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.26) 0%, rgba(234, 88, 12, 0.24) 100%) !important;
  border: 1.5px solid #f59e0b !important;
  color: #fef3c7 !important;
  font-weight: 900 !important;
}

#compass-hud {
  width: min(372px, calc(100vw - 40px));
}

.compass-hud-title-wrap {
  min-width: 0;
  flex: 1;
}

.compass-hud-title-col {
  min-width: 0;
  overflow: hidden;
}

.compass-hud-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-compass-hud-chip {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 3px 6px;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.btn-compass-hud-chip.active {
  background: rgba(245, 158, 11, 0.26);
  border-color: #f59e0b;
  color: #fde68a;
}

.compass-hud-path-strip {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compass-hud-path-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.5);
  border-radius: 8px;
  padding: 5px 8px;
}

.compass-hud-turn-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compass-hud-path-text {
  min-width: 0;
  flex: 1;
}

.compass-hud-path-cue {
  font-size: 11px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compass-hud-path-sub {
  font-size: 9px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compass-hud-trail-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.hunter-gps-heading-cone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  clip-path: polygon(50% 100%, 10% 0%, 90% 0%);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.05) 0%, rgba(56, 189, 248, 0.58) 100%);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease;
  z-index: 0;
}

@media (max-width: 768px) {
  #backtrack-compass-modal .backtrack-card {
    gap: 6px;
    padding: 12px 13px;
  }

  #backtrack-compass-modal .stand-picker-title {
    font-size: 15px;
  }

  #backtrack-compass-modal .backtrack-compass-housing {
    width: 124px;
    height: 124px;
  }

  .compass-trail-arrow-pointer {
    width: 96px;
    height: 96px;
  }

  .compass-minimap-canvas {
    height: 112px;
  }

  #compass-hud {
    padding: 9px 11px !important;
  }

  #compass-hud .compass-hud-dial {
    width: 62px !important;
    height: 62px !important;
  }

  #compass-hud .compass-hud-header {
    margin-bottom: 6px;
    padding-bottom: 5px;
  }

  #compass-hud .compass-hud-sub {
    display: none;
  }
}

/* =========================================================================
   Native v1.2 First-Launch Permissions & App / Field Settings Modals
   ========================================================================= */

.drawer-hub-card-settings {
  grid-column: 1 / -1;
  border-color: rgba(245, 158, 11, 0.45) !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
}

.field-setup-card,
.field-settings-card {
  gap: 10px;
}

.first-launch-perm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.first-launch-perm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.first-launch-perm-item.bg-disclosure-row {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.08);
}

.first-launch-perm-info {
  min-width: 0;
  flex: 1;
}

.first-launch-perm-title {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}

.first-launch-perm-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

.perm-status-pill {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.85);
}

.perm-status-pill.granted {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.55);
  color: #4ade80;
}

.perm-status-pill.denied {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
}

.perm-status-pill.prompt {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

button.perm-status-pill {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

button.perm-status-pill:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.28);
  border-color: rgba(245, 158, 11, 0.75);
}

button.perm-status-pill:disabled {
  cursor: default;
  opacity: 0.96;
}

.first-launch-perm-item[role="button"]:hover {
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(30, 41, 59, 0.9);
}

.first-launch-perm-item[role="button"]:focus-visible,
button.perm-status-pill:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.field-settings-section {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-settings-heading {
  font-size: 10px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.6px;
}

.perm-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.perm-action-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.perm-row-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #e2e8f0;
}

.btn-setting-mini {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.settings-legal-light-banner,
.settings-storage-readout {
  font-size: 10.5px;
  font-weight: 700;
  color: #fde047;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 8px;
  padding: 6px 8px;
  line-height: 1.35;
}

.settings-storage-readout {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(148, 163, 184, 0.25);
}

.field-setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  padding: 3px 0;
}

.field-setting-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #f59e0b;
  cursor: pointer;
}

.field-setting-label {
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
}

.setting-pills-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 5px;
}

.btn-setting-pill {
  padding: 6px 6px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-setting-pill.active {
  background: rgba(245, 158, 11, 0.24);
  border-color: #f59e0b;
  color: #fef3c7;
}

.settings-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}

/* Safe-Area Clearance Across All Modal Overlays, Cards, Fixed Map Header, Bottom Action Bar, Drawers & Floating HUDs */
.auth-modal-overlay:not(.blood-tracker-modal-overlay),
.tactical-modal-overlay,
#support-ticket-modal {
  align-items: flex-start !important;
  padding-top: calc(16px + max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px))) !important;
  padding-bottom: max(40px, calc(16px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  padding-left: calc(12px + max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px))) !important;
  padding-right: calc(12px + max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px))) !important;
  scroll-padding-top: calc(16px + max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)));
  scroll-padding-bottom: max(40px, calc(16px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px))));
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

body.rutline-native-app #blood-tracker-modal.blood-tracker-modal-overlay,
#blood-tracker-modal.blood-tracker-modal-overlay {
  padding: 0 !important;
  align-items: stretch !important;
}

.auth-modal-overlay > .auth-card,
.auth-modal-overlay > .auth-modal-card,
.auth-modal-overlay > .squad-card,
.auth-modal-overlay > .subscription-card,
.auth-modal-overlay > .stand-picker-card,
.auth-modal-overlay > .kill-hour-card,
.auth-modal-overlay > .permission-letter-card,
.auth-modal-overlay > .backtrack-card,
.auth-modal-overlay > .offline-card,
.auth-modal-overlay > .waypoint-card,
.auth-modal-overlay > .waypoint-dossier-card,
.auth-modal-overlay > .area-analysis-card,
.auth-modal-overlay > .how-to-use-modal-card,
.auth-modal-overlay > .spot-detail-modal-card,
.auth-modal-overlay > .field-settings-card,
.auth-modal-overlay > .support-ticket-card,
.tactical-modal-overlay > .sign-logger-modal-card,
.tactical-modal-overlay > .tactical-modal-card,
.tactical-modal-overlay > .parcel-modal-card,
#support-ticket-modal > .support-ticket-card {
  margin: auto !important;
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)))) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  scroll-padding-top: 16px;
  scroll-padding-bottom: 24px;
  box-sizing: border-box !important;
}

/* Global Runtime-Synced Safe-Area Insets for Fixed Map Header, Bottom Action Bar, Drawers & Floating HUDs */
.app-header-huntzone {
  box-sizing: border-box !important;
  height: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 52px) !important;
  padding: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 6px) calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 10px) 0 calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 10px) !important;
}

.left-map-hud-stack:not([data-custom-pos="1"]) {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 60px) !important;
  left: calc(max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) + 10px);
}

body[data-ui-variant="v4"] .right-floating-controls:not([data-custom-pos="1"]) {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 60px) !important;
  right: calc(max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) + 8px) !important;
}

#tract-picker-menu,
.tract-picker-menu {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 58px) !important;
  max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 74px) !important;
}

#wilderness-mode-banner,
.wilderness-mode-banner {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 58px) !important;
}

#tactical-action-bar,
.tactical-bottom-action-bar {
  bottom: max(24px, calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 24px)) !important;
}

@media (max-width: 768px) {
  #tactical-action-bar,
  .tactical-bottom-action-bar,
  body.all-ui-buttons-hidden .tactical-bottom-action-bar,
  body.all-ui-buttons-hidden #tactical-action-bar,
  body.all-ui-buttons-hidden .bottom-tactical-sheet:not(.sheet-collapsed) ~ .tactical-bottom-action-bar,
  body.all-ui-buttons-hidden .bottom-tactical-sheet.sheet-collapsed ~ .tactical-bottom-action-bar {
    bottom: max(24px, calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 24px)) !important;
  }

  #bottom-sheet,
  .bottom-tactical-sheet {
    max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - 64px) !important;
    padding-bottom: max(14px, calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 12px)) !important;
  }

  #bottom-sheet:not(.sheet-collapsed) .sheet-body-content,
  .bottom-tactical-sheet:not(.sheet-collapsed) .sheet-body-content {
    max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 154px) !important;
  }
}

#layers-drawer,
.tactical-layers-drawer {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 58px) !important;
  max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 70px) !important;
  padding-bottom: max(28px, calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 16px)) !important;
}

.guided-tour-hud {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 62px) !important;
}

.terrain-inspector-hud {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 62px) !important;
}

.terrain-inspector-hud.inspector-minimized {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 58px) !important;
}

/* Draggable Standless ScentStream Origin Green Dot (44x44 touch hit zone) */
.scent-origin-dot-marker {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 65;
}

.scent-origin-dot-marker:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 50%;
}

.scent-origin-dot-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #86efac 0%, #22c55e 45%, #15803d 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.42), 0 0 12px rgba(74, 222, 128, 0.65), 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scent-origin-dot-core {
    transition: none;
  }
}

.scent-origin-dot-marker:hover .scent-origin-dot-core {
  transform: scale(1.12);
}

.scent-origin-dot-marker.is-dragging,
.scent-origin-dot-marker:active {
  cursor: grabbing;
}

.scent-origin-dot-marker.is-dragging .scent-origin-dot-core,
.scent-origin-dot-marker:active .scent-origin-dot-core {
  transform: scale(1.26);
  box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.52), 0 0 16px rgba(74, 222, 128, 0.75), 0 3px 12px rgba(0, 0, 0, 0.85);
}

/* Guide, Tour & Legend Typography Polish */
.how-to-use-modal-card .analysis-main-title,
.how-to-use-modal-card .section-box-title,
.guided-tour-hud .tour-title {
  text-wrap: balance;
}

.how-to-use-modal-card .guide-p,
.how-to-use-modal-card .guide-bullet,
.guided-tour-hud .tour-description,
#tactical-legend-modal .legend-item-desc {
  text-wrap: pretty;
}

.tactical-legend-modal {
  top: calc(max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) + 60px) !important;
  max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 128px) !important;
  z-index: 10200 !important;
}

/* ============================================================================
   PER-DEVICE MOVABLE TOOLBARS & BUTTON LAYOUT EDITOR
   ============================================================================ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#right-floating-controls[data-custom-pos="1"],
#left-map-hud-stack:not(.left-hud-minimized)[data-custom-pos="1"],
#tactical-action-bar[data-custom-pos="1"],
#blood-filter-bar[data-custom-pos="1"],
#blood-viewport-bottom-bar[data-custom-pos="1"] {
  left: var(--custom-hud-left) !important;
  top: var(--custom-hud-top) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
}

#tactical-action-bar[data-custom-pos="1"] {
  width: max-content !important;
  max-width: calc(100vw - var(--safe-area-left, 0px) - var(--safe-area-right, 0px) - 12px) !important;
}

#blood-filter-bar[data-custom-pos="1"],
#blood-viewport-bottom-bar[data-custom-pos="1"] {
  width: max-content !important;
  max-width: calc(100vw - var(--safe-area-left, 0px) - var(--safe-area-right, 0px) - 12px) !important;
}

#right-floating-controls[data-dock-side="left"] {
  align-items: flex-start !important;
}

#left-map-hud-stack[data-dock-side="right"] .btn-minimize-left-hud {
  left: auto !important;
  right: calc(100% - 1px) !important;
  border-radius: 9px 0 0 9px !important;
}

#right-floating-controls[data-rail-axis="horizontal"] {
  align-items: flex-start !important;
}

#right-floating-controls[data-rail-axis="horizontal"] #right-rail-buttons-list {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  max-width: calc(100vw - var(--safe-area-left, 0px) - var(--safe-area-right, 0px) - 16px) !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: none;
  gap: 4px !important;
  padding: 4px !important;
}

#right-floating-controls[data-rail-axis="horizontal"] #right-rail-buttons-list > .rail-labeled-btn[data-v3-active="1"] {
  width: 48px !important;
  min-width: 48px !important;
  height: 46px !important;
  min-height: 46px !important;
  flex-shrink: 0 !important;
}

.layout-toolbar-handle {
  display: none;
}

body.rutline-layout-edit-mode #right-rail-buttons-list,
body.rutline-layout-edit-mode #right-floating-controls,
body.rutline-layout-edit-mode #left-map-hud-stack,
body.rutline-layout-edit-mode #tactical-action-bar,
body.rutline-layout-edit-mode #blood-filter-bar,
body.rutline-layout-edit-mode #blood-viewport-bottom-bar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.rutline-layout-edit-mode #right-rail-buttons-list {
  position: relative !important;
}

body.rutline-layout-edit-mode [data-layout-toolbar] {
  pointer-events: auto !important;
  outline: 1.5px dashed rgba(251, 191, 36, 0.58) !important;
  outline-offset: 2px;
  border-radius: 10px;
}

body.rutline-layout-edit-mode [data-layout-toolbar] > *,
body.rutline-layout-edit-mode #right-rail-buttons-list > button[data-v3-active="1"] {
  pointer-events: auto !important;
  touch-action: none !important;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab !important;
}

body.rutline-layout-edit-mode [data-layout-toolbar][data-layout-selected="1"] {
  outline: 2px solid #facc15 !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.22) !important;
}

body.rutline-layout-edit-mode .layout-toolbar-handle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-inline-size: 28px;
  min-block-size: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1.5px solid #f59e0b;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.95), rgba(30, 41, 59, 0.96));
  color: #fef08a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto !important;
  flex-shrink: 0;
  z-index: 2;
}

@media (pointer: coarse) {
  body.rutline-layout-edit-mode .layout-toolbar-handle::after {
    content: '';
    position: absolute;
    inset: -8px;
  }
}

body.rutline-layout-edit-mode .layout-toolbar-handle.dragging,
html.rutline-is-reordering,
html.rutline-is-reordering * {
  cursor: grabbing !important;
}

body.rutline-layout-edit-mode .layout-toolbar-handle:focus-visible,
.layout-item-grip:focus-visible,
.button-layout-editor-hud button:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

.layout-item-grabbed {
  position: relative !important;
  z-index: 24500 !important;
  scale: 1.04;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.72), 0 0 0 2px #facc15 !important;
  pointer-events: none !important;
}

[data-drop="1"]::before {
  content: '';
  position: fixed;
  left: calc(var(--drop-x, -9999px) - 3px);
  top: calc(var(--drop-y, -9999px) - 3px);
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #facc15;
  border: 1.5px solid #0b0f19;
  pointer-events: none;
  z-index: 25001;
}

[data-drop="1"]::after {
  content: '';
  position: fixed;
  left: var(--drop-x, -9999px);
  top: var(--drop-y, -9999px);
  width: var(--drop-w, 3px);
  height: var(--drop-h, 3px);
  border-radius: 3px;
  background: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.85);
  pointer-events: none;
  z-index: 25000;
}

@media (forced-colors: active) {
  [data-drop="1"]::before,
  [data-drop="1"]::after {
    background: Highlight;
    border-color: Highlight;
  }
}

/* Floating Button Layout Editor HUD (works above both Map & Blood Tracker) */
.button-layout-editor-hud {
  position: fixed;
  left: 50%;
  bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) + 64px);
  transform: translateX(-50%);
  width: min(440px, calc(100vw - max(env(safe-area-inset-left, 0px), var(--safe-area-left, 0px)) - max(env(safe-area-inset-right, 0px), var(--safe-area-right, 0px)) - 12px));
  max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px)) - 76px);
  overflow-y: auto;
  z-index: 26000 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 29, 39, 0.98) 0%, rgba(11, 15, 23, 0.99) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85);
  color: #f8fafc;
  font-size: 11.5px;
}

.button-layout-editor-hud[data-editor-scope="blood"]:not([data-hud-moved="1"]) {
  top: calc(var(--safe-area-top, 0px) + 225px);
  bottom: auto;
}

.layout-hud-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: nowrap;
}

.layout-hud-drag-grip {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fde68a;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.layout-hud-scopes {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.layout-scope-btn,
.layout-mini-btn,
.layout-keys-help-btn,
.layout-action-btn,
.layout-chip-step-btn,
.layout-item-grip {
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: #e2e8f0;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  min-inline-size: 26px;
  min-block-size: 26px;
  white-space: nowrap;
}

.layout-scope-btn.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: #facc15;
  color: #fef08a;
}

.layout-keys-help-panel {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #cbd5e1;
}

.layout-hud-selected-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.layout-selected-meta {
  font-size: 11px;
  color: #cbd5e1;
}

.layout-selected-meta strong {
  color: #fde68a;
}

.layout-nudge-group {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  padding: 1px 0;
}

.layout-mini-btn:disabled,
.layout-mini-btn[aria-disabled="true"],
.layout-chip-step-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.layout-hud-order-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.layout-order-caption {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}

.layout-order-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  gap: 5px;
  flex: 1;
  min-inline-size: 0;
  padding: 2px 0;
}

.layout-order-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  scroll-snap-align: start;
  gap: 2px;
  padding: 2px 4px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.layout-order-chip:has(.layout-item-grip[aria-pressed="true"]) {
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.layout-chip-name {
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
  padding: 0 2px;
  white-space: nowrap;
}

.layout-item-grip,
.layout-chip-step-btn {
  padding: 2px 4px;
  min-inline-size: 24px;
  min-block-size: 24px;
  font-size: 10px;
}

@media (pointer: coarse) {
  .layout-scope-btn,
  .layout-mini-btn,
  .layout-keys-help-btn,
  .layout-action-btn,
  .layout-chip-step-btn,
  .layout-item-grip {
    position: relative;
    min-inline-size: 26px;
    min-block-size: 28px;
  }

  .layout-chip-step-btn::after,
  .layout-item-grip::after,
  .layout-mini-btn::after,
  .layout-scope-btn::after,
  .layout-action-btn::after {
    content: '';
    position: absolute;
    inset: -7px -5px;
  }
}

.layout-item-grip[aria-pressed="true"] {
  background: rgba(245, 158, 11, 0.35);
  border-color: #facc15;
  color: #fef08a;
}

.layout-item-key-hint {
  display: none;
  font-size: 9px;
  color: #fde68a;
  margin-left: 2px;
}

.layout-order-chip:has(.layout-item-grip:is(:focus-visible, [aria-pressed="true"])) .layout-item-key-hint {
  display: inline;
}

.layout-hud-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.layout-action-save {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #facc15;
  color: #ffffff;
}

/* Native Google Play Companion Mode (Android): never show external checkout or billing buttons */
html.rutline-native-android #btn-modal-subscribe,
body.rutline-native-android #btn-modal-subscribe,
html.rutline-native-android #btn-manage-billing,
body.rutline-native-android #btn-manage-billing,
html.rutline-native-app:not(.rutline-native-ios) #btn-modal-subscribe,
body.rutline-native-app:not(.rutline-native-ios) #btn-modal-subscribe,
html.rutline-native-app:not(.rutline-native-ios) #btn-manage-billing,
body.rutline-native-app:not(.rutline-native-ios) #btn-manage-billing,
/* Native App Store / Play Store hygiene: hide competitor comparison, early-access warning, VIP code box, and PWA install card */
html.rutline-native-app #subscription-modal .onx-comparison-card,
body.rutline-native-app #subscription-modal .onx-comparison-card,
html.rutline-native-app #sub-early-access-disclaimer,
body.rutline-native-app #sub-early-access-disclaimer,
html.rutline-native-app .sub-tester-box,
body.rutline-native-app .sub-tester-box,
html.rutline-native-app .offline-pwa-card,
body.rutline-native-app .offline-pwa-card {
  display: none !important;
}

.native-only-copy {
  display: none !important;
}

html.rutline-native-app .native-only-copy,
body.rutline-native-app .native-only-copy {
  display: block !important;
}

html.rutline-native-app .web-only-copy,
body.rutline-native-app .web-only-copy {
  display: none !important;
}

html.rutline-native-ios .android-only-copy,
body.rutline-native-ios .android-only-copy {
  display: none !important;
}

/* Native iOS Pro Safari Checkout Modal: ensure CTA + Safari handoff note fit cleanly on mobile without bottom clipping */
html.rutline-native-ios #subscription-modal .subscription-card,
body.rutline-native-ios #subscription-modal .subscription-card {
  gap: 10px;
  padding: 18px 18px;
}

html.rutline-native-ios #subscription-modal .sub-features-card,
body.rutline-native-ios #subscription-modal .sub-features-card {
  padding: 10px 12px;
}

html.rutline-native-ios #subscription-modal .sub-features-grid,
body.rutline-native-ios #subscription-modal .sub-features-grid {
  gap: 7px;
}

/* Field Flight Recorder Log Viewer */
.field-log-viewer {
  margin: 8px 0 0;
  padding: 8px 10px;
  max-height: 190px;
  overflow: auto;
  border-radius: 6px;
  background: #06090f;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.field-log-copy-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-log-copy-wrap > button {
  flex: 1 1 auto;
  min-inline-size: 24px;
  min-block-size: 36px;
}

.field-log-status-tip {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  opacity: 0;
  transition: opacity 0.16s ease;
  white-space: nowrap;
}

.field-log-status-tip[data-visible="true"] {
  opacity: 1;
}

.field-log-status-tip[data-failed="true"] {
  color: #f87171;
}

@media (prefers-reduced-motion: reduce) {
  .field-log-status-tip {
    transition: none;
  }
}

/* Universal In-App Support Modal */
#support-ticket-modal {
  z-index: 100200 !important;
  animation: none !important;
  background: rgba(5, 8, 13, 0.84) !important;
  box-sizing: border-box;
}

.support-ticket-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 32px - max(env(safe-area-inset-top, 0px), var(--safe-area-top, 0px)) - max(24px, max(env(safe-area-inset-bottom, 0px), var(--safe-area-bottom, 0px))));
  overflow-y: auto;
  box-sizing: border-box;
  padding: 18px 20px !important;
  gap: 12px;
  background: linear-gradient(180deg, #1b222d 0%, #11161d 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9) !important;
}

@media (max-width: 520px) {
  .support-ticket-card {
    padding: 14px 14px !important;
  }
}

.support-ticket-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-ticket-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 520px) {
  .support-field-row {
    grid-template-columns: 1fr;
  }
}

.support-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.support-field-label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.support-ticket-card input,
.support-ticket-card select,
.support-ticket-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .support-ticket-card input,
  .support-ticket-card select,
  .support-ticket-card textarea {
    font-size: 16px;
  }
}

.support-input-readonly {
  opacity: 0.85;
  cursor: default;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #93c5fd !important;
  font-weight: 700;
}

.support-files-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.support-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 11.5px;
  color: #e2e8f0;
  min-width: 0;
}

.support-file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.support-file-chip-remove {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.support-diag-details {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(10, 15, 24, 0.72);
  font-size: 11px;
  color: #93c5fd;
}

.support-diag-details summary {
  cursor: pointer;
  font-weight: 700;
}

.support-diag-preview {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-ticket-error {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
  font-size: 12px;
  font-weight: 600;
}

.support-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.support-success-box {
  text-align: center;
  padding: 14px 8px 6px;
}

.support-ticket-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
  font-size: 12.5px;
}

/* Web-only Android Google Play + Apple App Store links (hidden inside native Capacitor builds) */
html.rutline-native-app .web-only-beta-links,
body.rutline-native-app .web-only-beta-links {
  display: none !important;
}

.web-only-beta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.gate-native-beta-row {
  margin: 6px 0 2px;
  color: #94a3b8;
}

.offline-beta-links {
  justify-content: flex-start;
  margin-top: 6px;
}

.web-only-beta-links .beta-links-label {
  color: #94a3b8;
  font-weight: 700;
}

.web-only-beta-links a {
  color: #4ade80;
  font-weight: 700;
  text-decoration: underline;
}

.web-only-beta-links .beta-links-sep {
  color: #64748b;
}




