/* ============================================================================
 * SHOKKER: ON THE MAP — Luxury Editorial 3D Atlas Chrome
 * Apple Maps x Monocle Magazine x Porsche PCM Design Architecture
 *
 * Loaded last in runtime/maplibre/index.html (right after mobile-ux-polish.css).
 * Elevates every map HUD surface, Place Card drawer, All Tools command index,
 * editorial modal, and broadcast SNN chyron with matte obsidian glass, warm bone
 * typography, brushed brass restraint, and razor 1px architectural hairlines.
 * ============================================================================ */

:root {
  --ed-obsidian: #0C0E12;
  --ed-obsidian-deep: #080A0E;
  --ed-obsidian-glass: rgba(12, 14, 18, 0.88);
  --ed-obsidian-drawer: rgba(12, 14, 18, 0.92);
  --ed-obsidian-solid: rgba(12, 14, 18, 0.96);
  --ed-obsidian-elev: #141820;
  --ed-surface-subtle: rgba(243, 239, 230, 0.032);
  --ed-surface-hover: rgba(243, 239, 230, 0.075);

  --ed-bone: #F3EFE6;
  --ed-sand: #B6AFA2;
  --ed-sand-dim: rgba(182, 175, 162, 0.74);

  --ed-brass: #C9A24B;
  --ed-brass-hover: #D6B463;
  --ed-brass-soft: rgba(201, 162, 75, 0.11);
  --ed-brass-border: rgba(201, 162, 75, 0.36);

  /* Strictly reserved for live alerts and SNN broadcast chyron */
  --ed-crimson: #B92B27;
  --ed-crimson-soft: rgba(185, 43, 39, 0.14);
  --ed-crimson-border: rgba(185, 43, 39, 0.42);
  --ed-sage: #7BA686;

  --ed-hairline: rgba(243, 239, 230, 0.12);
  --ed-hairline-subtle: rgba(243, 239, 230, 0.07);
  --ed-hairline-strong: rgba(243, 239, 230, 0.22);

  --ed-shadow-panel: 0 14px 36px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(243, 239, 230, 0.055);
  --ed-shadow-float: 0 22px 56px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(243, 239, 230, 0.06);
  --ed-shadow-modal: 0 28px 72px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(243, 239, 230, 0.06);

  --ed-font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ed-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ed-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ed-radius-xs: 3px;
  --ed-radius-sm: 4px;
  --ed-radius-md: 6px;
  --ed-radius-lg: 8px;
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Re-bind legacy HUD variables cleanly into editorial tokens */
  --bg-glass: var(--ed-obsidian-glass);
  --bg-glass-solid: var(--ed-obsidian-solid);
  --bg-elevated: var(--ed-obsidian-elev);
  --border: var(--ed-hairline);
  --border-subtle: var(--ed-hairline-subtle);
  --border-hover: var(--ed-hairline-strong);
  --border-gold: var(--ed-brass-border);
  --gold: var(--ed-brass);
  --gold-soft: var(--ed-brass-soft);
  --accent-red: var(--ed-crimson);
  --text: var(--ed-bone);
  --text-secondary: var(--ed-sand);
  --muted: var(--ed-sand-dim);
  --font: var(--ed-font-sans);
}

html,
body {
  background-color: var(--ed-obsidian);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================================================
 * 1. SHARED ARCHITECTURAL GLASS BASE (Kill heavy ink borders, neon glows, top stripes)
 * ============================================================================ */
html body .hud-layer .panel,
html body .hud-layer .topbar,
html body .hud-layer .bottom-bar,
html body .hud-layer .spotlight-card,
html body .hud-layer .studio-popover,
html body .hud-layer .status-banner,
html body .spotlight-kiosk-banner,
html body .modal-card {
  background-color: var(--ed-obsidian-glass);
  background-image: none;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-panel);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

/* Crisp focus rings across all editorial HUD controls */
html body .hud-layer :is(button, a, input, select, summary):focus-visible,
html body .modal-card :is(button, a, input, select):focus-visible {
  outline: 1.5px solid var(--ed-brass);
  outline-offset: 2px;
}

/* ============================================================================
 * 2. TOP HUD BAR — Unified Architectural Glass Capsule
 * ============================================================================ */
html body .hud-layer .topbar {
  height: 38px;
  max-height: 40px;
  padding: 0 5px 0 12px;
  gap: 0;
  border-radius: var(--ed-radius-md);
  background-color: var(--ed-obsidian-glass);
  background-image: none;
  border: 1px solid var(--ed-hairline);
  box-shadow: var(--ed-shadow-panel);
}

html body .hud-layer .topbar .weather-pill {
  height: 24px;
  padding: 0 11px 0 0;
  border: none;
  border-right: 1px solid var(--ed-hairline);
  border-radius: 0;
  background: transparent;
  color: var(--ed-bone);
  font-family: var(--ed-font-mono);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  box-shadow: none;
}

html body .hud-layer .topbar .weather-pill:hover {
  color: #FFFFFF;
  background: transparent;
}

html body .hud-layer .topbar .dot-live {
  width: 5px;
  height: 5px;
  background: var(--ed-sage);
  box-shadow: none;
}

html body .hud-layer .topbar .seg-group {
  height: 24px;
  padding: 0 6px;
  gap: 1px;
  border: none;
  border-right: 1px solid var(--ed-hairline);
  border-radius: 0;
  background: transparent;
}

html body .hud-layer .topbar .seg-group button {
  height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: var(--ed-radius-xs);
  background: transparent;
  color: var(--ed-sand);
  font-family: var(--ed-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
  box-shadow: none;
  transition: color 0.16s var(--ed-ease), background-color 0.16s var(--ed-ease);
}

html body .hud-layer .topbar .seg-group button:hover {
  color: var(--ed-bone);
  background: var(--ed-surface-subtle);
}

html body .hud-layer .topbar .seg-group button.active {
  color: var(--ed-bone);
  font-weight: 600;
  background: transparent;
}

html body .hud-layer .topbar .seg-group button.active::after {
  left: 8px;
  right: 8px;
  bottom: 1px;
  height: 1.5px;
  background: var(--ed-brass);
}

html body .hud-layer .topbar .studio-popover-trigger,
html body .hud-layer .topbar #btn-studio-layers {
  height: 28px;
  padding: 0 9px;
  border: none;
  border-radius: var(--ed-radius-sm);
  background: transparent;
  color: var(--ed-sand);
  font-family: var(--ed-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
  box-shadow: none;
  transition: color 0.16s var(--ed-ease), background-color 0.16s var(--ed-ease);
}

html body .hud-layer .topbar #btn-studio-layers {
  border-right: 1px solid var(--ed-hairline);
  border-radius: 0;
  height: 24px;
  margin-right: 4px;
  padding: 0 11px;
}

html body .hud-layer .topbar .studio-popover-trigger:hover,
html body .hud-layer .topbar .studio-popover-trigger.popover-open,
html body .hud-layer .topbar #btn-studio-layers:hover,
html body .hud-layer .topbar #btn-studio-layers.popover-open {
  background: var(--ed-surface-hover);
  color: var(--ed-bone);
}

html body .hud-layer .topbar .studio-layers-dot {
  background: var(--ed-brass-soft);
  border: 1px solid var(--ed-brass-border);
  color: var(--ed-brass);
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  border-radius: var(--ed-radius-xs);
}

html body .hud-layer .topbar #btn-feature-biz {
  height: 27px;
  margin-left: 4px;
  padding: 0 12px;
  background: var(--ed-brass);
  color: var(--ed-obsidian);
  border: 1px solid rgba(243, 239, 230, 0.18);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  clip-path: none;
  font-family: var(--ed-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: background-color 0.16s var(--ed-ease), color 0.16s var(--ed-ease);
}

html body .hud-layer .topbar #btn-feature-biz:hover,
html body .hud-layer .topbar #btn-feature-biz:focus-visible {
  background: var(--ed-brass-hover);
  color: var(--ed-obsidian);
  border-color: rgba(243, 239, 230, 0.30);
}

/* Whisper-quiet caption strip below topbar */
html body .hud-layer .status-banner {
  background-color: rgba(12, 14, 18, 0.74);
  background-image: none;
  border: 1px solid var(--ed-hairline-subtle);
  border-left: 1px solid var(--ed-hairline-subtle);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  padding: 3px 11px;
  color: var(--ed-sand);
  font-family: var(--ed-font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

html body .hud-layer .status-banner .readout-elev-pill {
  font-family: var(--ed-font-mono);
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ed-brass);
  border-left: 1px solid var(--ed-hairline);
}

/* ============================================================================
 * 3. LEFT EDITORIAL EXPLORER RAIL (#left-panel)
 * ============================================================================ */
html body #left-panel.left-panel {
  padding: 13px 14px 12px;
  gap: 9px;
  background-color: var(--ed-obsidian-glass);
  background-image: none;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-panel);
  scrollbar-color: rgba(243, 239, 230, 0.18) transparent;
}

html body #left-panel.left-panel::-webkit-scrollbar {
  width: 3px;
}

html body #left-panel.left-panel::-webkit-scrollbar-thumb {
  background: rgba(243, 239, 230, 0.18);
  border-radius: 2px;
}

html body #left-panel .brand-row {
  padding: 0 0 9px;
  gap: 6px;
  border-bottom: 1px solid var(--ed-hairline);
}

html body #left-panel .brand-id {
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

html body #left-panel .brand-emblem {
  width: 27px;
  height: 27px;
  border-radius: var(--ed-radius-sm);
  background: var(--ed-brass-soft);
  border: 1px solid var(--ed-brass-border);
  box-shadow: none;
  color: var(--ed-brass);
  font-family: var(--ed-font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

html body #left-panel .brand-eyebrow {
  font-family: var(--ed-font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.11em;
  color: var(--ed-brass);
}

html body #left-panel .brand-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.12;
  color: var(--ed-bone);
  text-shadow: none;
  margin: 2px 0 3px;
}

html body #left-panel .brand-sub,
html body #left-panel .stats-pill {
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ed-sand);
}

html body #left-panel .brand-copy .studio-brand-credit {
  color: var(--ed-sand-dim);
  font-family: var(--ed-font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html body #left-panel .brand-row .btn-sm,
html body #left-panel .brand-row .help-q-btn {
  background: transparent !important;
  border: 1px solid var(--ed-hairline) !important;
  border-radius: var(--ed-radius-sm) !important;
  box-shadow: none !important;
  color: var(--ed-sand) !important;
  font-family: var(--ed-font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 3px 7px !important;
}

html body #left-panel .brand-row .btn-sm:hover,
html body #left-panel .brand-row .help-q-btn:hover {
  background: var(--ed-surface-hover) !important;
  border-color: var(--ed-hairline-strong) !important;
  color: var(--ed-bone) !important;
}

/* Search Input */
html body #left-panel .search-wrap {
  background: rgba(243, 239, 230, 0.035);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  padding: 3px 4px 3px 28px;
}

html body #left-panel .search-wrap:focus-within {
  background: rgba(243, 239, 230, 0.055);
  border-color: var(--ed-brass-border);
  box-shadow: none;
}

html body #left-panel .search-wrap input {
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 12px;
}

html body #left-panel .search-wrap input::placeholder {
  color: var(--ed-sand-dim);
}

html body #left-panel #search-go {
  background: rgba(243, 239, 230, 0.06);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-xs);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 4px 9px;
}

html body #left-panel #search-go:hover {
  background: var(--ed-bone);
  color: var(--ed-obsidian);
  border-color: var(--ed-bone);
}

/* Primary Left-Rail CTA — Crisp Warm Bone Solid */
html body #left-panel #btn-find-my-house.btn-find-house {
  background: var(--ed-bone);
  color: var(--ed-obsidian);
  border: 1px solid var(--ed-bone);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  clip-path: none;
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  padding: 8px 12px;
  transition: background-color 0.16s var(--ed-ease), border-color 0.16s var(--ed-ease);
}

html body #left-panel #btn-find-my-house.btn-find-house:hover,
html body #left-panel #btn-find-my-house.btn-find-house:focus-visible {
  background: #FFFFFF;
  color: var(--ed-obsidian);
  border-color: #FFFFFF;
  transform: none;
  box-shadow: none;
}

/* Accordions (Guided Tours & Quick Places) */
html body #left-panel .studio-tours-menu,
html body #left-panel .quick-places-accordion,
html body #left-panel .shokker-sun-tl-card {
  border-top: 1px solid var(--ed-hairline) !important;
}

html body #left-panel .studio-tours-summary,
html body #left-panel .quick-places-summary,
html body #left-panel .shokker-sun-tl-summary {
  font-family: var(--ed-font-sans) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--ed-bone) !important;
  padding: 8px 2px !important;
}

html body #left-panel .studio-tours-meta {
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  color: var(--ed-sand);
}

html body #left-panel .showcase-btn {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
  padding: 6px 8px;
}

html body #left-panel .showcase-btn.btn-primary {
  background: var(--ed-brass-soft);
  color: var(--ed-bone);
  border-color: var(--ed-brass-border);
  font-weight: 600;
}

html body #left-panel .showcase-btn:hover {
  background: var(--ed-surface-hover);
  color: #FFFFFF;
  border-color: var(--ed-brass-border);
}

/* On This Day Compact Left-Rail Banner */
html body #left-panel .otd-banner {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-left: 2px solid var(--ed-brass);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  padding: 9px 10px;
}

html body #left-panel .otd-banner-kicker {
  font-family: var(--ed-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ed-brass);
}

html body #left-panel .otd-banner-headline {
  font-family: var(--ed-font-serif);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.32;
  color: var(--ed-bone);
}

html body #left-panel .otd-banner-btn {
  background: transparent;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-xs);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 10.5px;
  font-weight: 500;
}

html body #left-panel .otd-banner-btn:hover {
  background: var(--ed-surface-hover);
  border-color: var(--ed-brass-border);
}

/* County Tools Grid — Kill rainbow gradients, neon green/teal pills & comic borders */
html body #left-panel .quick-action-row {
  gap: 5px;
  padding: 9px 0;
  border-top: 1px solid var(--ed-hairline);
  border-bottom: 1px solid var(--ed-hairline);
}

html body #left-panel .quick-action-row .chip,
html body #left-panel .quick-action-row .chip.chip-accent,
html body #left-panel .quick-action-row a.chip {
  background: var(--ed-surface-subtle) !important;
  background-image: none !important;
  border: 1px solid var(--ed-hairline-subtle) !important;
  border-radius: var(--ed-radius-sm) !important;
  box-shadow: none !important;
  color: var(--ed-sand) !important;
  font-family: var(--ed-font-sans) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.005em !important;
  text-transform: none !important;
  padding: 6px 7px !important;
  transition: background-color 0.15s var(--ed-ease), border-color 0.15s var(--ed-ease), color 0.15s var(--ed-ease);
}

html body #left-panel .quick-action-row #btn-todays-paper,
html body #left-panel .quick-action-row #btn-living-wiki,
html body #left-panel .quick-action-row #btn-scenic-tours,
html body #left-panel .quick-action-row #btn-holiday-toggle,
html body #left-panel .quick-action-row #btn-commute,
html body #left-panel .quick-action-row #btn-relocation-atlas,
html body #left-panel .quick-action-row #btn-client-playbooks,
html body #left-panel .quick-action-row #btn-passport,
html body #left-panel .quick-action-row #btn-public-notices,
html body #left-panel .quick-action-row #btn-explainer-cards,
html body #left-panel .quick-action-row #btn-on-this-day,
html body #left-panel .quick-action-row #btn-wildlife-dex,
html body #left-panel .quick-action-row #btn-greene-gas,
html body #left-panel .quick-action-row #btn-stage-shift-demo {
  background: rgba(243, 239, 230, 0.038) !important;
  background-image: none !important;
  border: 1px solid var(--ed-hairline) !important;
  border-left: 2px solid rgba(201, 162, 75, 0.42) !important;
  color: var(--ed-bone) !important;
  font-weight: 500 !important;
  text-align: left;
  padding: 6.5px 9px !important;
}

html body #left-panel .quick-action-row #btn-seller-valuation {
  background: var(--ed-brass-soft) !important;
  background-image: none !important;
  border: 1px solid var(--ed-brass-border) !important;
  border-left: 2px solid var(--ed-brass) !important;
  color: var(--ed-bone) !important;
  font-weight: 600 !important;
  text-align: left;
  padding: 7px 9px !important;
}

html body #left-panel .quick-action-row #btn-snn-news-weather {
  background: var(--ed-crimson-soft) !important;
  background-image: none !important;
  border: 1px solid var(--ed-crimson-border) !important;
  border-left: 2px solid var(--ed-crimson) !important;
  color: var(--ed-bone) !important;
  font-weight: 600 !important;
  text-align: left;
  padding: 7px 9px !important;
}

html body #left-panel .quick-action-row .chip:hover,
html body #left-panel .quick-action-row .chip.chip-accent:hover,
html body #left-panel .quick-action-row a.chip:hover {
  background: var(--ed-surface-hover) !important;
  border-color: var(--ed-brass-border) !important;
  color: #FFFFFF !important;
}

html body #left-panel .quick-action-row #btn-snn-news-weather:hover {
  background: rgba(185, 43, 39, 0.24) !important;
  border-color: var(--ed-crimson) !important;
  color: #FFFFFF !important;
}

/* County Guide Directory Index */
html body #left-panel .cat-section-kicker {
  font-family: var(--ed-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ed-brass);
}

html body #left-panel .cat-section-kicker::before {
  display: none;
}

html body #left-panel .cat-head-tabs {
  border-bottom: 1px solid var(--ed-hairline);
}

html body #left-panel .cat-neighborhood-tab,
html body #left-panel .cat-deals-tab,
html body #left-panel .cat-saved-tab {
  font-family: var(--ed-font-sans) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.005em !important;
  text-transform: none !important;
  color: var(--ed-sand) !important;
}

html body #left-panel .cat-neighborhood-tab:hover,
html body #left-panel .cat-deals-tab:hover,
html body #left-panel .cat-saved-tab:hover,
html body #left-panel .cat-neighborhood-tab.active,
html body #left-panel .cat-neighborhood-tab[aria-expanded="true"] {
  color: var(--ed-bone) !important;
}

html body #left-panel #category-explorer-grid .cat-tile {
  border-bottom: 1px solid var(--ed-hairline-subtle);
  padding: 7px 4px;
}

html body #left-panel #category-explorer-grid .cat-tile-label {
  color: var(--ed-bone);
  font-size: 11.5px;
}

html body #left-panel #category-explorer-grid .cat-tile-count {
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--ed-sand-dim);
}

html body #left-panel #category-explorer-grid .cat-tile.active::before {
  background: var(--ed-brass);
}

html body #left-panel #category-directory-drawer.dir-drawer {
  background: rgba(12, 14, 18, 0.96);
  border: 1px solid var(--ed-hairline);
  border-left: 2px solid var(--ed-brass);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
}

html body #left-panel .dir-title {
  font-family: var(--ed-font-serif);
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ed-bone);
}

/* Preserve TN TREC Rule 1260-02-.12 brokerage parity cleanly */
html body #left-panel .legal-foot {
  background: transparent;
  border-top: 1px solid var(--ed-hairline) !important;
  margin: 4px 0 0;
  padding: 9px 2px 2px !important;
  color: var(--ed-sand) !important;
  border-radius: 0;
}

html body #left-panel .legal-foot a {
  color: var(--ed-brass) !important;
  text-decoration: none;
}

html body #left-panel .legal-foot a:hover {
  text-decoration: underline;
  color: var(--ed-brass-hover) !important;
}

html body #left-panel .studio-panel-footer {
  border-top: 1px solid var(--ed-hairline-subtle);
  color: var(--ed-sand-dim);
}

html body #left-panel .studio-panel-footer strong {
  color: var(--ed-brass);
}

/* ============================================================================
 * 4. PLACE CARD SIDE DRAWER (#right-drawer / #place-drawer / #drawer-body)
 * ============================================================================ */
html body #right-drawer.right-drawer,
html body #place-drawer {
  background-color: var(--ed-obsidian-drawer);
  background-image: none;
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-float);
  padding: 18px 18px 22px;
  gap: 12px;
  color: var(--ed-bone);
  scrollbar-color: rgba(243, 239, 230, 0.20) transparent;
}

html body #right-drawer .drawer-head,
html body #place-drawer .drawer-head {
  top: -18px;
  margin: -18px -18px 4px -18px;
  padding: 16px 18px 13px 18px;
  background: rgba(12, 14, 18, 0.97);
  border-bottom: 1px solid var(--ed-hairline);
  box-shadow: none;
}

html body #right-drawer .pill-row,
html body #place-drawer .pill-row {
  margin-bottom: 6px;
}

html body #right-drawer .pill-tag,
html body #place-drawer .pill-tag {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-left: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-xs);
  padding: 2.5px 7px;
  color: var(--ed-sand);
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html body #right-drawer .pill-tag.gold,
html body #place-drawer .pill-tag.gold {
  background: var(--ed-brass-soft);
  border: 1px solid var(--ed-brass-border);
  color: var(--ed-brass);
}

html body #right-drawer #drawer-title,
html body #right-drawer .card-title,
html body #place-drawer .card-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.12;
  color: var(--ed-bone);
  text-shadow: none;
  margin-top: 2px;
}

html body #right-drawer #drawer-subtitle,
html body #right-drawer .card-addr,
html body #place-drawer .card-addr {
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ed-sand);
  margin-top: 4px;
  line-height: 1.38;
}

html body #right-drawer #drawer-close,
html body #place-drawer #drawer-close {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--ed-sand);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  font-family: var(--ed-font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: background-color 0.15s var(--ed-ease), color 0.15s var(--ed-ease), border-color 0.15s var(--ed-ease);
}

html body #right-drawer #drawer-close:hover,
html body #right-drawer #drawer-close:focus-visible {
  background: var(--ed-surface-hover);
  border-color: var(--ed-hairline-strong);
  color: var(--ed-bone);
  transform: none;
  box-shadow: none;
}

html body #right-drawer #drawer-photo.card-photo,
html body #place-drawer .card-photo {
  height: 178px;
  border-radius: var(--ed-radius-sm);
  border: 1px solid var(--ed-hairline);
  box-shadow: none;
  object-fit: cover;
}

html body #right-drawer #drawer-body.card-section,
html body #place-drawer #drawer-body {
  color: rgba(243, 239, 230, 0.88);
  font-family: var(--ed-font-sans);
  font-size: 12.5px;
  line-height: 1.56;
}

html body #right-drawer #drawer-body h4,
html body #place-drawer #drawer-body h4 {
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-sand);
  padding-top: 10px;
  margin: 10px 0 6px;
  border-top: 1px solid var(--ed-hairline-subtle);
}

html body #right-drawer #drawer-body > div:first-child h4 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

html body #right-drawer #drawer-body a,
html body #place-drawer #drawer-body a {
  color: var(--ed-brass);
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 75, 0.45);
  text-underline-offset: 2px;
}

html body #right-drawer #drawer-body a:hover {
  color: var(--ed-brass-hover);
  text-decoration-color: var(--ed-brass-hover);
}

/* Clean Hairline Metadata & Metrics inside Place Card (Kill nested comic boxes) */
html body #right-drawer .metric-box,
html body #right-drawer .nh-schools-box,
html body #right-drawer .reach-scorecard,
html body #right-drawer .pc-drive-box,
html body #right-drawer .pc-homes-crosslink,
html body #right-drawer .pc-spotlight-ribbon,
html body #right-drawer .pc-claim-bar,
html body #right-drawer .pc-upgrade-banner,
html body #right-drawer .nh-cta-card {
  background: var(--ed-surface-subtle);
  background-image: none;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
}

html body #right-drawer .pc-spotlight-ribbon,
html body #right-drawer .pc-claim-bar,
html body #right-drawer .pc-upgrade-banner {
  border-left: 2px solid var(--ed-brass);
}

html body #right-drawer .pc-spotlight-ribbon-top {
  background: var(--ed-brass-soft);
  color: var(--ed-brass);
  border-bottom: 1px solid var(--ed-hairline);
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

html body #right-drawer .metric-label,
html body #right-drawer .reach-scorecard-title,
html body #right-drawer .pc-claim-bar-head,
html body #right-drawer .pc-upgrade-kicker {
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ed-sand);
}

html body #right-drawer .metric-val,
html body #right-drawer .reach-metric-val {
  font-family: var(--ed-font-mono);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ed-bone);
}

html body #right-drawer .pc-drive-item,
html body #right-drawer .reach-metric {
  background: rgba(12, 14, 18, 0.55);
  border: 1px solid var(--ed-hairline-subtle);
  border-radius: var(--ed-radius-xs);
}

html body #right-drawer .pc-drive-val {
  font-family: var(--ed-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ed-bone);
}

/* Place Card Buttons — Solid Warm Bone / Brushed Brass & Hairline Ghost (Zero Candy Gradients) */
html body #right-drawer .btn-primary,
html body #right-drawer .nh-ask-cta {
  background: var(--ed-bone);
  background-image: none;
  color: var(--ed-obsidian);
  border: 1px solid var(--ed-bone);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  clip-path: none;
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  padding: 7px 11px;
}

html body #right-drawer .btn-primary:hover,
html body #right-drawer .nh-ask-cta:hover {
  background: #FFFFFF;
  color: var(--ed-obsidian);
  border-color: #FFFFFF;
}

html body #right-drawer .btn-gold,
html body #right-drawer .pc-claim-btn-primary {
  background: var(--ed-brass);
  background-image: none;
  color: var(--ed-obsidian);
  border: 1px solid var(--ed-brass);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  clip-path: none;
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  padding: 7px 11px;
}

html body #right-drawer .btn-gold:hover,
html body #right-drawer .pc-claim-btn-primary:hover {
  background: var(--ed-brass-hover);
  color: var(--ed-obsidian);
  border-color: var(--ed-brass-hover);
}

html body #right-drawer .btn-sm:not(#drawer-close):not(.btn-primary):not(.btn-gold),
html body #right-drawer .pc-claim-btn-secondary,
html body #right-drawer .pc-save-btn {
  background: var(--ed-surface-subtle);
  background-image: none;
  color: var(--ed-bone);
  border: 1px solid var(--ed-hairline);
  border-left: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  font-family: var(--ed-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
  padding: 6.5px 10px;
}

html body #right-drawer .btn-sm:not(#drawer-close):not(.btn-primary):not(.btn-gold):hover,
html body #right-drawer .pc-claim-btn-secondary:hover,
html body #right-drawer .pc-save-btn:hover {
  background: var(--ed-surface-hover);
  color: #FFFFFF;
  border-color: var(--ed-brass-border);
}

html body #right-drawer .pc-save-btn.saved-active {
  background: var(--ed-brass-soft);
  color: var(--ed-brass);
  border-color: var(--ed-brass-border);
}

/* Harmonize Place Card History Library chip & Postcard banner framing */
html body #right-drawer [data-shl-place-story] {
  background: var(--ed-surface-subtle) !important;
  background-image: none !important;
  border: 1px solid var(--ed-hairline) !important;
  border-left: 2px solid var(--ed-brass) !important;
  border-radius: var(--ed-radius-sm) !important;
  color: var(--ed-bone) !important;
  box-shadow: none !important;
  font-family: var(--ed-font-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html body #right-drawer [data-shl-place-story]:hover {
  background: var(--ed-surface-hover) !important;
  border-color: var(--ed-brass-border) !important;
  color: #FFFFFF !important;
}

html body #right-drawer .lab-frame,
html body #right-drawer .lab-banner {
  border-color: var(--ed-hairline) !important;
  border-radius: var(--ed-radius-sm) !important;
  box-shadow: none !important;
}

/* ============================================================================
 * 5. BOTTOM ROW — Spotlight Plate, Studio Dock, Welcome Bar & 3D Camera Dock
 * ============================================================================ */
html body .hud-layer #spotlight-card.spotlight-card {
  background-color: var(--ed-obsidian-glass);
  background-image: none;
  border: 1px solid var(--ed-hairline);
  border-left: 2px solid var(--ed-brass);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-panel);
  padding: 11px 13px 12px;
}

html body .hud-layer #spotlight-card .spot-eyebrow {
  font-family: var(--ed-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ed-brass);
}

html body .hud-layer #spotlight-card .spot-arrow-btn {
  background: transparent;
  border: 1px solid var(--ed-hairline) !important;
  border-radius: var(--ed-radius-xs) !important;
  color: var(--ed-sand);
}

html body .hud-layer #spotlight-card .spot-arrow-btn:hover {
  background: var(--ed-surface-hover);
  border-color: var(--ed-hairline-strong) !important;
  color: var(--ed-bone);
}

html body .hud-layer #spotlight-card .spot-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: none;
  line-height: 1.18;
  color: var(--ed-bone);
  text-shadow: none;
  margin: 4px 0 2px;
}

html body .hud-layer #spotlight-card .spot-sub {
  font-family: var(--ed-font-sans);
  font-size: 11px;
  color: var(--ed-sand);
}

html body .hud-layer #spotlight-card #spot-fly {
  background: var(--ed-bone);
  color: var(--ed-obsidian);
  border: 1px solid var(--ed-bone);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  clip-path: none;
  font-family: var(--ed-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
}

html body .hud-layer #spotlight-card #spot-fly:hover {
  background: #FFFFFF;
  color: var(--ed-obsidian);
  border-color: #FFFFFF;
}

html body .hud-layer #spotlight-card #spot-partner {
  background: transparent;
  border: 1px solid var(--ed-hairline);
  border-left: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-sand);
  font-family: var(--ed-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
}

html body .hud-layer #spotlight-card #spot-partner:hover {
  background: var(--ed-surface-hover);
  border-color: var(--ed-hairline-strong);
  color: var(--ed-bone);
}

/* Bottom Studio Dock (.bottom-bar) */
html body .hud-layer .bottom-bar {
  height: 38px;
  padding: 0 6px;
  gap: 2px;
  background-color: var(--ed-obsidian-glass);
  background-image: none;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-panel);
}

html body .hud-layer .bottom-bar .studio-dock-tour {
  background: var(--ed-brass-soft) !important;
  border: 1px solid var(--ed-brass-border) !important;
  border-radius: var(--ed-radius-sm) !important;
  box-shadow: none !important;
  color: var(--ed-bone) !important;
  font-family: var(--ed-font-sans) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.005em !important;
  text-transform: none !important;
}

html body .hud-layer .bottom-bar .studio-dock-tour:hover {
  background: var(--ed-brass) !important;
  color: var(--ed-obsidian) !important;
  border-color: var(--ed-brass) !important;
}

html body .hud-layer .bottom-bar .btn-sm:not(.studio-dock-tour),
html body .hud-layer .bottom-bar #btn-walk-street-level,
html body .hud-layer .bottom-bar #btn-all-tools-launcher,
html body .hud-layer .bottom-bar [id*="all-tools"] {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  border-radius: var(--ed-radius-sm) !important;
  box-shadow: none !important;
  color: var(--ed-sand) !important;
  font-family: var(--ed-font-sans) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.005em !important;
  text-transform: none !important;
}

html body .hud-layer .bottom-bar #btn-walk-street-level {
  border-color: var(--ed-hairline) !important;
  color: var(--ed-bone) !important;
}

html body .hud-layer .bottom-bar .btn-sm:not(.studio-dock-tour):hover,
html body .hud-layer .bottom-bar #btn-walk-street-level:hover,
html body .hud-layer .bottom-bar #btn-all-tools-launcher:hover,
html body .hud-layer .bottom-bar [id*="all-tools"]:hover {
  background: var(--ed-surface-hover) !important;
  border-color: var(--ed-hairline) !important;
  color: var(--ed-bone) !important;
}

html body .hud-layer .bottom-bar #btn-all-tools-launcher {
  border-left: 1px solid var(--ed-hairline) !important;
  border-radius: 0 var(--ed-radius-sm) var(--ed-radius-sm) 0 !important;
  padding-left: 11px !important;
  color: var(--ed-bone) !important;
  font-weight: 600 !important;
}

html body .hud-layer .bottom-bar #tour-counter {
  font-family: var(--ed-font-mono);
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ed-sand);
}

html body .hud-layer .bottom-bar #tour-select {
  background: rgba(243, 239, 230, 0.035);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 11px;
}

/* First-Visit Welcome Bar — Luxury Glass Editorial Front Door */
@media (min-width: 961px) {
  html body #shokker-first-visit-welcome {
    left: calc(50% + 120px);
    width: min(760px, calc(100vw - 384px));
  }
}

html body #shokker-explorer-passport-toast {
  top: 84px !important;
  background-color: var(--ed-obsidian-drawer) !important;
  border: 1px solid var(--ed-hairline) !important;
  border-left: 2px solid var(--ed-brass) !important;
  box-shadow: var(--ed-shadow-panel) !important;
}
@media (max-width: 720px) {
  html body #shokker-explorer-passport-toast {
    top: auto !important;
    bottom: 118px !important;
    height: auto !important;
    max-height: 96px !important;
  }
}

html body #shokker-first-visit-welcome {
  background-color: var(--ed-obsidian-drawer);
  background-image: none;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-float);
  padding: 13px 15px 12px;
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

html body #shokker-first-visit-welcome .sfvw-eyebrow {
  padding: 0;
  background: transparent;
  border: none;
  clip-path: none;
  color: var(--ed-brass);
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html body #shokker-first-visit-welcome .sfvw-heading {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--ed-bone);
  text-shadow: none;
}

html body #shokker-first-visit-welcome #shokker-welcome-dismiss {
  background: transparent;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  color: var(--ed-sand);
  font-family: var(--ed-font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 4px 10px;
}

html body #shokker-first-visit-welcome #shokker-welcome-dismiss:hover {
  background: var(--ed-surface-hover);
  border-color: var(--ed-hairline-strong);
  color: var(--ed-bone);
}

html body #shokker-first-visit-welcome .sfvw-front-door-input {
  background: rgba(243, 239, 230, 0.04);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

html body #shokker-first-visit-welcome .sfvw-front-door-input:focus {
  border-color: var(--ed-brass-border);
}

html body #shokker-first-visit-welcome .sfvw-front-door-btn,
html body #shokker-first-visit-welcome .sfvw-cta-clip {
  background: var(--ed-brass);
  color: var(--ed-obsidian);
  border: 1px solid var(--ed-brass);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  clip-path: none;
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
}

html body #shokker-first-visit-welcome .sfvw-front-door-btn:hover,
html body #shokker-first-visit-welcome .sfvw-cta-clip:hover {
  background: var(--ed-brass-hover);
  color: var(--ed-obsidian);
}

html body #shokker-first-visit-welcome .sfvw-primary-btn,
html body #shokker-first-visit-welcome .sfvw-card {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-left: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  padding: 9px 11px;
  transition: background-color 0.15s var(--ed-ease), border-color 0.15s var(--ed-ease);
}

html body #shokker-first-visit-welcome .sfvw-primary-btn:hover,
html body #shokker-first-visit-welcome .sfvw-card:hover {
  background: var(--ed-surface-hover);
  border-color: var(--ed-brass-border);
  box-shadow: none;
  transform: none;
}

html body #shokker-first-visit-welcome .sfvw-card-title {
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ed-bone);
}

html body #shokker-first-visit-welcome .sfvw-card-sub {
  color: var(--ed-sand);
  font-size: 10.5px;
}

html body #shokker-first-visit-welcome .sfvw-secondary-chip {
  background: transparent;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  font-family: var(--ed-font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  color: var(--ed-sand);
}

html body #shokker-first-visit-welcome .sfvw-secondary-chip:hover {
  color: var(--ed-bone);
  border-color: var(--ed-hairline-strong);
  background: var(--ed-surface-subtle);
}

/* Popovers, 3D Camera Dock & Floating Toasts */
html body .hud-layer .studio-popover {
  background-color: rgba(12, 14, 18, 0.95);
  background-image: none;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-float);
}

html body .hud-layer .studio-popover-header,
html body .hud-layer .studio-popover-label,
html body #studio-layers-list .studio-section-head {
  font-family: var(--ed-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ed-brass);
}

html body .hud-layer .studio-layers-grid button,
html body .hud-layer .studio-layer-toggle,
html body #studio-layers-list button {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline-subtle);
  border-radius: var(--ed-radius-sm) !important;
  color: var(--ed-sand);
  font-family: var(--ed-font-sans);
}

html body .hud-layer .studio-layers-grid button:hover,
html body .hud-layer .studio-layer-toggle:hover,
html body #studio-layers-list button:hover {
  background: var(--ed-surface-hover);
  border-color: var(--ed-hairline-strong);
  color: var(--ed-bone);
}

html body .hud-layer .studio-layers-grid button.active,
html body .hud-layer .studio-layer-toggle.active,
html body .hud-layer .studio-layer-toggle[aria-pressed="true"] {
  background: var(--ed-brass-soft);
  border-color: var(--ed-brass-border);
  color: var(--ed-bone);
}

html body .hud-layer .studio-layers-grid button.active::before,
html body .hud-layer .studio-layer-toggle.active::before,
html body .hud-layer .studio-layer-toggle[aria-pressed="true"]::before {
  background: var(--ed-brass);
  box-shadow: none;
}

html body .shokker-cam-dock,
html body .shokker-cam-tip,
html body .shokker-orbit-hud,
html body .shokker-toast,
html body .clean-view-exit-pill,
html body #shokker-explorer-passport-toast {
  background-color: var(--ed-obsidian-glass);
  background-image: none;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-panel);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

html body .shokker-dock-btn {
  background: transparent;
  color: var(--ed-sand);
}

html body .shokker-dock-btn:hover {
  background: var(--ed-surface-hover);
  color: var(--ed-bone);
  border-color: var(--ed-hairline);
}

html body .shokker-dock-compass {
  background: rgba(12, 14, 18, 0.90);
  border: 1px solid var(--ed-hairline);
}

html body .shokker-dock-compass:hover {
  border-color: var(--ed-brass-border);
  background: var(--ed-brass-soft);
}

/* ============================================================================
 * 6. ALL TOOLS COMMAND LAUNCHER (#shokker-command-launcher-overlay)
 *    Monocle x Linear Razor-Hairline Architectural Command Index
 * ============================================================================ */
html body #shokker-command-launcher-overlay {
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  padding: 20px;
}

html body #shokker-command-launcher-overlay .scl-dialog {
  width: min(1040px, 100%);
  max-height: min(88vh, 840px);
  background: var(--ed-obsidian-solid);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-modal);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

html body #shokker-command-launcher-overlay .scl-head {
  padding: 22px 28px 18px;
  background: var(--ed-obsidian);
  border-bottom: 1px solid var(--ed-hairline);
  align-items: flex-start;
  gap: 18px;
}

html body #shokker-command-launcher-overlay .scl-kicker {
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-brass);
  margin-bottom: 4px;
}

html body #shokker-command-launcher-overlay .scl-title {
  margin: 0 0 5px;
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ed-bone);
}

html body #shokker-command-launcher-overlay .scl-sub {
  font-family: var(--ed-font-sans);
  font-size: 12.5px;
  color: var(--ed-sand);
  line-height: 1.45;
}

html body #shokker-command-launcher-overlay .scl-sub strong {
  font-family: var(--ed-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-bone);
  padding: 1px 5px;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-xs);
  background: var(--ed-surface-subtle);
}

html body #shokker-command-launcher-overlay .scl-close {
  width: 36px;
  height: 36px;
  border-radius: var(--ed-radius-sm);
  border: 1px solid var(--ed-hairline);
  background: transparent;
  color: var(--ed-sand);
  font-size: 20px;
  display: inline-grid;
  place-items: center;
}

html body #shokker-command-launcher-overlay .scl-close:hover {
  background: var(--ed-surface-hover);
  border-color: var(--ed-hairline-strong);
  color: var(--ed-bone);
}

html body #shokker-command-launcher-overlay .scl-body {
  padding: 22px 28px 26px;
  gap: 26px;
  scrollbar-color: rgba(243, 239, 230, 0.18) transparent;
}

html body #shokker-command-launcher-overlay .scl-ambient-bar {
  padding: 12px 16px;
  margin-bottom: 0;
  border-radius: var(--ed-radius-sm);
  border: 1px solid var(--ed-hairline);
  background: var(--ed-surface-subtle);
}

html body #shokker-command-launcher-overlay .scl-ambient-title {
  color: var(--ed-bone);
  font-size: 12px;
  font-weight: 600;
}

html body #shokker-command-launcher-overlay .scl-ambient-sub {
  color: var(--ed-sand);
  font-size: 11px;
}

html body #shokker-command-launcher-overlay .scl-section-title {
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ed-brass);
  padding-bottom: 9px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--ed-hairline);
}

/* Razor-hairline Command Index Matrix (Zero puffy rounded card soup, clean obsidian trailing slots) */
html body #shokker-command-launcher-overlay .scl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--ed-hairline);
  border-left: 1px solid var(--ed-hairline);
  border-radius: 0;
  overflow: visible;
}

html body #shokker-command-launcher-overlay .scl-tile {
  padding: 14px 16px;
  gap: 5px;
  border: none;
  border-right: 1px solid var(--ed-hairline-subtle);
  border-bottom: 1px solid var(--ed-hairline-subtle);
  border-radius: 0;
  background: rgba(243, 239, 230, 0.018);
  color: var(--ed-bone);
  box-shadow: none;
  transform: none;
  transition: background-color 0.15s var(--ed-ease), box-shadow 0.15s var(--ed-ease);
}

html body #shokker-command-launcher-overlay .scl-tile:hover,
html body #shokker-command-launcher-overlay .scl-tile:focus-visible {
  background: rgba(201, 162, 75, 0.08);
  box-shadow: inset 2px 0 0 var(--ed-brass);
  transform: none;
  outline: none;
}

html body #shokker-command-launcher-overlay .scl-tile-title {
  font-family: var(--ed-font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ed-bone);
  line-height: 1.32;
}

html body #shokker-command-launcher-overlay .scl-tile-desc {
  font-family: var(--ed-font-sans);
  font-size: 11.5px;
  line-height: 1.46;
  color: var(--ed-sand);
}

html body #shokker-command-launcher-overlay .scl-footer {
  padding: 13px 28px;
  border-top: 1px solid var(--ed-hairline);
  background: var(--ed-obsidian);
  color: var(--ed-sand);
  font-size: 11.5px;
}

html body #shokker-command-launcher-overlay .scl-footer strong {
  color: var(--ed-bone);
}

html body #shokker-command-launcher-overlay .scl-footer a {
  color: var(--ed-brass);
}

/* ============================================================================
 * 7. EDITORIAL MODALS
 *    Generic Detail Modal, Graphic-Atlas Shells, Today's Paper, On This Day,
 *    Wildlife Field Guide, Jobs Board & Help Controls Guide
 * ============================================================================ */

/* 7a. Generic Detail Modal (.modal-card) & Self-Serve Checkout */
html body .modal-backdrop {
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html body .modal-card,
html body .shk-checkout-modal {
  background-color: var(--ed-obsidian-solid);
  background-image: none;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-modal);
  padding: 24px 26px;
  color: var(--ed-bone);
}

html body .modal-card #modal-title,
html body .shk-checkout-modal .shk-co-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ed-bone);
  line-height: 1.14;
}

html body .modal-card #modal-close {
  background: transparent;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-sand);
}

html body .modal-card #modal-close:hover {
  background: var(--ed-surface-hover);
  color: var(--ed-bone);
}

/* 7b. Shared Graphic-Atlas Modal Family (.sg-atlas-modal — SNN News Desk, Living Wiki, etc.) */
html body .sg-atlas-backdrop {
  background: rgba(8, 10, 14, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html body .sg-atlas-modal {
  background: var(--ed-obsidian);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-modal);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

html body .sg-atlas-modal::before {
  height: 2px;
  flex: 0 0 2px;
  background: linear-gradient(90deg, var(--ed-brass) 0%, rgba(201, 162, 75, 0.16) 100%);
  border-bottom: none;
}

html body .sg-atlas-masthead {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--ed-hairline);
}

html body .sg-atlas-masthead::after {
  display: none;
}

html body .sg-atlas-kicker {
  background: transparent;
  color: var(--ed-brass);
  border: none;
  box-shadow: none;
  clip-path: none;
  padding: 0;
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

html body .sg-atlas-edition-tag {
  background: var(--ed-surface-subtle);
  color: var(--ed-sand);
  border: 1px solid var(--ed-hairline);
  font-family: var(--ed-font-mono);
}

html body .sg-atlas-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.08;
  color: var(--ed-bone);
  text-shadow: none;
}

html body .sg-atlas-title-accent {
  color: var(--ed-brass);
  font-style: italic;
}

html body .sg-atlas-subtitle {
  color: var(--ed-sand);
  text-shadow: none;
  margin-top: 6px;
}

html body .sg-atlas-close {
  background: rgba(12, 14, 18, 0.85);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 16px;
  font-weight: 500;
}

html body .sg-atlas-close:hover {
  background: var(--ed-surface-hover);
  border-color: var(--ed-hairline-strong);
  transform: none;
  box-shadow: none;
}

html body .sg-atlas-portals,
html body .sg-atlas-controls {
  background: #10131A;
  border-bottom: 1px solid var(--ed-hairline);
  padding: 10px 28px;
}

html body .sg-atlas-press-pass,
html body .sg-atlas-tab {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

/* 7c. Today's Paper — The Greene County Chronicle Archival Broadsheet */
html body #shokker-daily-chronicle-modal {
  background: rgba(8, 10, 14, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html body #shokker-daily-chronicle-modal .gcc-sheet {
  background: #F5EFE2;
  color: #161411;
  border: 1px solid rgba(243, 239, 230, 0.22);
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow-modal);
  font-family: var(--ed-font-serif);
}

html body #shokker-daily-chronicle-modal .gcc-press-bar {
  background: var(--ed-obsidian);
  border-bottom: 1px solid var(--ed-hairline);
  padding: 14px 24px;
}

html body #shokker-daily-chronicle-modal .gcc-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--ed-brass) 0%, rgba(201, 162, 75, 0.25) 100%);
  border-bottom: none;
}

html body #shokker-daily-chronicle-modal .gcc-edition-stamp {
  background: var(--ed-crimson);
  border: none;
  box-shadow: none;
  border-radius: var(--ed-radius-xs);
  font-family: var(--ed-font-mono);
}

html body #shokker-daily-chronicle-modal .gcc-scroll {
  padding: 20px 28px 22px;
}

html body #shokker-daily-chronicle-modal .gcc-masthead {
  border-bottom: 2px double rgba(22, 20, 17, 0.45);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

html body #shokker-daily-chronicle-modal .gcc-masthead-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: none;
  color: #12100D;
  text-shadow: none;
}

html body #shokker-daily-chronicle-modal .gcc-masthead-meta {
  border-top: 1px solid rgba(22, 20, 17, 0.28);
  padding-top: 7px;
  margin-top: 8px;
}

html body #shokker-daily-chronicle-modal .gcc-year-badge {
  background: #161411;
  color: #F5EFE2;
  border: none;
  box-shadow: none;
  border-radius: var(--ed-radius-xs);
}

html body #shokker-daily-chronicle-modal .gcc-headline-block {
  border-bottom: 1px solid rgba(22, 20, 17, 0.22);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

html body #shokker-daily-chronicle-modal .gcc-headline {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.12;
  color: #12100D;
}

html body #shokker-daily-chronicle-modal .gcc-photo-frame {
  border: 1px solid rgba(22, 20, 17, 0.35);
  box-shadow: none;
}

html body #shokker-daily-chronicle-modal .gcc-fly-btn {
  background: #161411;
  color: var(--ed-bone);
  border: 1px solid #161411;
  box-shadow: none;
  border-radius: var(--ed-radius-sm);
  font-family: var(--ed-font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

html body #shokker-daily-chronicle-modal .gcc-fly-btn:hover {
  background: var(--ed-brass);
  color: var(--ed-obsidian);
  border-color: var(--ed-brass);
  transform: none;
}

html body #shokker-daily-chronicle-modal .gcc-copy-btn {
  background: transparent;
  color: #161411;
  border: 1px solid rgba(22, 20, 17, 0.32);
  box-shadow: none;
  border-radius: var(--ed-radius-sm);
  font-family: var(--ed-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: none;
}

html body #shokker-daily-chronicle-modal .gcc-dyk-box {
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(22, 20, 17, 0.18);
  border-left: 2px solid #9A7020;
  box-shadow: none;
  border-radius: var(--ed-radius-xs);
}

/* 7d. On This Day Almanac Modal (#shokker-on-this-day-modal) */
html body #shokker-on-this-day-modal {
  background: rgba(8, 10, 14, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html body #shokker-on-this-day-modal .otd-dialog {
  background: var(--ed-obsidian);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-modal);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

html body #shokker-on-this-day-modal .otd-header {
  padding: 22px 26px 18px;
  background: var(--ed-obsidian);
  border-bottom: 1px solid var(--ed-hairline);
}

html body #shokker-on-this-day-modal .otd-header-kicker {
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ed-brass);
}

html body #shokker-on-this-day-modal .otd-header-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ed-bone);
}

html body #shokker-on-this-day-modal .otd-toolbar {
  padding: 13px 26px;
  background: #10131A;
  border-bottom: 1px solid var(--ed-hairline);
}

html body #shokker-on-this-day-modal .otd-body {
  padding: 22px 26px 26px;
}

html body #shokker-on-this-day-modal .otd-card {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-md);
  padding: 22px 24px;
}

html body #shokker-on-this-day-modal .otd-headline {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ed-bone);
  line-height: 1.18;
}

html body #shokker-on-this-day-modal .otd-subhead {
  color: var(--ed-brass);
  font-family: var(--ed-font-serif);
  font-style: italic;
  font-size: 15px;
}

html body #shokker-on-this-day-modal .otd-story {
  color: rgba(243, 239, 230, 0.88);
  line-height: 1.68;
}

html body #shokker-on-this-day-modal .otd-year-badge {
  background: var(--ed-brass);
  color: var(--ed-obsidian);
  font-family: var(--ed-font-mono);
  font-variant-numeric: tabular-nums;
  border-radius: var(--ed-radius-xs);
}

html body #shokker-on-this-day-modal .otd-date-tag {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  color: var(--ed-sand);
  font-family: var(--ed-font-mono);
  border-radius: var(--ed-radius-xs);
}

html body #shokker-on-this-day-modal .otd-btn,
html body #shokker-on-this-day-modal .otd-close-btn {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-bone);
}

html body #shokker-on-this-day-modal .otd-btn-gold {
  background: var(--ed-brass-soft);
  border-color: var(--ed-brass-border);
  color: var(--ed-brass);
}

html body #shokker-on-this-day-modal .otd-hero-grid {
  background: rgba(12, 14, 18, 0.65);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
}

/* 7e. Wildlife Field Guide (#shokker-wildlife-collector-dex) */
html body #shokker-wildlife-collector-dex {
  background: rgba(8, 10, 14, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--ed-font-sans);
  color: var(--ed-bone);
}

html body #shokker-wildlife-collector-dex .wdex-shell {
  background: var(--ed-obsidian);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-modal);
}

html body #shokker-wildlife-collector-dex .wdex-head {
  padding: 20px 26px 16px;
  background: var(--ed-obsidian);
  border-bottom: 1px solid var(--ed-hairline);
}

html body #shokker-wildlife-collector-dex .wdex-kicker {
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ed-brass);
}

html body #shokker-wildlife-collector-dex .wdex-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ed-bone);
}

html body #shokker-wildlife-collector-dex .wdex-rank-pill {
  border-radius: var(--ed-radius-xs);
  background: var(--ed-brass-soft);
  border: 1px solid var(--ed-brass-border);
  color: var(--ed-brass);
  font-family: var(--ed-font-mono);
  font-size: 11px;
  font-weight: 600;
}

html body #shokker-wildlife-collector-dex .wdex-bar {
  height: 5px;
  border-radius: 2px;
  background: rgba(243, 239, 230, 0.10);
}

html body #shokker-wildlife-collector-dex .wdex-bar-fill {
  background: var(--ed-brass);
}

html body #shokker-wildlife-collector-dex .wdex-toolbar,
html body #shokker-wildlife-collector-dex .wdex-tabs {
  background: #10131A;
  border-bottom: 1px solid var(--ed-hairline);
  padding: 11px 26px;
}

html body #shokker-wildlife-collector-dex .wdex-tab,
html body #shokker-wildlife-collector-dex .wdex-toggle {
  background: transparent;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-sand);
  font-weight: 500;
}

html body #shokker-wildlife-collector-dex .wdex-tab.active,
html body #shokker-wildlife-collector-dex .wdex-tab.flora-tab.active,
html body #shokker-wildlife-collector-dex .wdex-toggle.active {
  background: var(--ed-brass-soft);
  border-color: var(--ed-brass-border);
  color: var(--ed-bone);
}

html body #shokker-wildlife-collector-dex .wdex-grid {
  padding: 20px 26px;
  gap: 16px;
}

html body #shokker-wildlife-collector-dex .wdex-card {
  background: #12151D;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
}

html body #shokker-wildlife-collector-dex .wdex-card:hover {
  border-color: var(--ed-brass-border);
  transform: none;
}

html body #shokker-wildlife-collector-dex .wdex-card.is-collected {
  border-color: rgba(123, 166, 134, 0.55);
  box-shadow: none;
}

html body #shokker-wildlife-collector-dex .wdex-name {
  font-family: var(--ed-font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ed-bone);
}

html body #shokker-wildlife-collector-dex .wdex-sci {
  color: var(--ed-sand);
}

html body #shokker-wildlife-collector-dex .wdex-hab {
  color: var(--ed-sage);
  font-family: var(--ed-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

html body #shokker-wildlife-collector-dex .wdex-note {
  color: rgba(243, 239, 230, 0.80);
}

html body #shokker-wildlife-collector-dex .wdex-btn {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-bone);
  font-weight: 500;
}

html body #shokker-wildlife-collector-dex .wdex-btn.primary {
  background: var(--ed-bone);
  color: var(--ed-obsidian);
  border-color: var(--ed-bone);
  font-weight: 600;
}

html body #shokker-wildlife-collector-dex .wdex-btn.spot {
  background: rgba(123, 166, 134, 0.14);
  border-color: rgba(123, 166, 134, 0.42);
  color: var(--ed-bone);
}

html body #shokker-wildlife-collector-dex .wdex-foot {
  background: var(--ed-obsidian);
  border-top: 1px solid var(--ed-hairline);
  padding: 12px 26px;
}

/* 7f. Greene County Jobs Board (#shokker-greene-jobs-modal) */
html body #shokker-greene-jobs-modal .gjm-title {
  font-family: var(--ed-font-serif);
  font-optical-sizing: auto;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow: none;
  color: var(--ed-bone);
}

html body #shokker-greene-jobs-modal .gjm-live-dot {
  background: var(--ed-brass);
  box-shadow: none;
}

html body #shokker-greene-jobs-modal .gjm-pin-toggle,
html body #shokker-greene-jobs-modal .gjm-tab-btn {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

html body #shokker-greene-jobs-modal .gjm-tab-btn.active,
html body #shokker-greene-jobs-modal .gjm-pin-toggle.active {
  background: var(--ed-brass);
  color: var(--ed-obsidian);
  border-color: var(--ed-brass);
  box-shadow: none;
}

html body #shokker-greene-jobs-modal .gjm-job-row {
  background: #12151D;
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  padding: 16px 20px;
}

html body #shokker-greene-jobs-modal .gjm-job-row:hover {
  background: #171B24;
  border-color: var(--ed-brass-border);
  transform: none;
  box-shadow: none;
}

html body #shokker-greene-jobs-modal .gjm-job-row.featured {
  background: rgba(201, 162, 75, 0.06);
  border-color: var(--ed-brass-border);
  border-left: 2px solid var(--ed-brass);
}

html body #shokker-greene-jobs-modal .gjm-job-employer {
  color: var(--ed-brass);
}

html body #shokker-greene-jobs-modal .gjm-job-title {
  font-family: var(--ed-font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ed-bone);
}

html body #shokker-greene-jobs-modal .gjm-job-pay {
  color: var(--ed-brass);
  font-variant-numeric: tabular-nums;
}

html body #shokker-greene-jobs-modal .gjm-btn {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  box-shadow: none;
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

html body #shokker-greene-jobs-modal .gjm-btn.fly {
  background: var(--ed-bone);
  color: var(--ed-obsidian);
  border-color: var(--ed-bone);
}

html body #shokker-greene-jobs-modal .gjm-btn.apply {
  background: var(--ed-brass);
  color: var(--ed-obsidian);
  border-color: var(--ed-brass);
}

/* 7g. Help & Controls Guide (#shokker-help-controls-panel & .qh-modal) */
html body #shokker-help-controls-panel {
  background: var(--ed-obsidian-solid);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-modal);
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

html body #shokker-help-controls-panel .hg-header {
  background: var(--ed-obsidian);
  border-bottom: 1px solid var(--ed-hairline);
  padding: 18px 20px 14px;
}

html body #shokker-help-controls-panel .hg-kicker {
  font-family: var(--ed-font-mono);
  color: var(--ed-brass);
}

html body #shokker-help-controls-panel .hg-title {
  font-family: var(--ed-font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ed-bone);
}

html body #shokker-help-controls-panel .hg-sub {
  color: var(--ed-sand);
}

html body #shokker-help-controls-panel .hg-section,
html body .qh-modal .qh-cam-hero,
html body .qh-modal .qh-col,
html body .qh-modal .qh-card {
  background: var(--ed-surface-subtle);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
}

html body #shokker-help-controls-panel .hg-control-key,
html body .qh-modal .qh-kbd {
  font-family: var(--ed-font-mono);
  color: var(--ed-brass);
}

/* ============================================================================
 * 8. BOTTOM SNN BREAKING NEWS TICKER (#shokker-snn-live-ticker)
 *    Bloomberg x Monocle Broadcast Chyron
 * ============================================================================ */
html body #shokker-snn-live-ticker {
  height: 31px;
  background: var(--ed-obsidian);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid var(--ed-hairline);
  box-shadow: none;
  color: var(--ed-bone);
  font-family: var(--ed-font-sans);
}

html body #shokker-snn-live-ticker.mode-nws {
  border-top-color: var(--ed-crimson);
}

html body #shokker-snn-live-ticker.mode-school {
  border-top-color: var(--ed-brass);
}

html body #shokker-snn-live-ticker .snn-tk-badge {
  background: var(--ed-crimson);
  color: var(--ed-bone);
  padding: 0 13px;
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-right: 1px solid var(--ed-hairline);
}

html body #shokker-snn-live-ticker.mode-school .snn-tk-badge {
  background: #8F6D22;
}

html body #shokker-snn-live-ticker .snn-tk-dot {
  width: 5px;
  height: 5px;
  background: var(--ed-bone);
  box-shadow: none;
}

html body #shokker-snn-live-ticker .snn-tk-item {
  color: rgba(243, 239, 230, 0.90);
  font-family: var(--ed-font-sans);
  font-size: 11.5px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  height: 30px;
}

html body #shokker-snn-live-ticker .snn-tk-item:hover {
  color: #FFFFFF;
}

html body #shokker-snn-live-ticker .snn-tk-tag {
  font-family: var(--ed-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(243, 239, 230, 0.055);
  color: var(--ed-brass);
  border: 1px solid var(--ed-hairline);
}

html body #shokker-snn-live-ticker .snn-tk-item.tone-alert .snn-tk-tag {
  background: var(--ed-crimson-soft);
  color: #FCA5A5;
  border-color: var(--ed-crimson-border);
}

html body #shokker-snn-live-ticker .snn-tk-item.tone-warn .snn-tk-tag {
  background: var(--ed-brass-soft);
  color: var(--ed-brass-hover);
  border-color: var(--ed-brass-border);
}

html body #shokker-snn-live-ticker .snn-tk-item.tone-info .snn-tk-tag,
html body #shokker-snn-live-ticker .snn-tk-item.tone-ok .snn-tk-tag {
  background: rgba(243, 239, 230, 0.05);
  color: var(--ed-sand);
  border-color: var(--ed-hairline);
}

html body #shokker-snn-live-ticker .snn-tk-sep {
  color: rgba(243, 239, 230, 0.22);
  font-size: 8px;
}

html body #shokker-snn-live-ticker .snn-tk-controls {
  background: var(--ed-obsidian);
  border-left: 1px solid var(--ed-hairline);
}

html body #shokker-snn-live-ticker .snn-tk-ctrl {
  color: var(--ed-sand);
  height: 30px;
}

html body #shokker-snn-live-ticker .snn-tk-ctrl:hover {
  color: var(--ed-bone);
  background: var(--ed-surface-hover);
}

html body #shokker-snn-ticker-restore {
  background: var(--ed-obsidian-solid);
  border: 1px solid var(--ed-hairline);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-bone);
  font-family: var(--ed-font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
}

/* ============================================================================
 * 9. MOBILE EDITORIAL HARMONY & STRICT >= 44px TAP TARGETS (<= 768px / 680px)
 * ============================================================================ */
html body #btn-mob-greene-arcade {
  display: none;
}

@media (max-width: 768px) {
  html body #btn-mob-greene-arcade {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: var(--ed-radius-sm);
    border: 1px solid var(--ed-brass-border);
    background: var(--ed-brass-soft);
    color: var(--ed-bone);
    font-family: var(--ed-font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
  }

  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  html body #shokker-command-launcher-overlay {
    padding: 8px;
  }

  html body #shokker-command-launcher-overlay .scl-head {
    padding: 16px 16px 12px;
  }

  html body #shokker-command-launcher-overlay .scl-body {
    padding: 14px 16px 18px;
  }

  html body #shokker-command-launcher-overlay .scl-footer {
    padding: 10px 16px;
  }

  html body #shokker-command-launcher-overlay .scl-grid {
    grid-template-columns: 1fr;
  }

  html body #shokker-command-launcher-overlay .scl-close,
  html body #shokker-command-launcher-overlay .scl-tile,
  html body #right-drawer #drawer-close,
  html body #right-drawer .btn-primary,
  html body #right-drawer .btn-gold,
  html body #right-drawer .btn-sm,
  html body #right-drawer .pc-claim-btn-primary,
  html body #right-drawer .pc-claim-btn-secondary,
  html body #right-drawer .pc-save-btn,
  html body .modal-card #modal-close {
    min-height: 44px;
  }

  html body #shokker-command-launcher-overlay .scl-close,
  html body #right-drawer #drawer-close,
  html body .modal-card #modal-close {
    min-width: 44px;
  }
}

@media (max-width: 680px) {
  html body #shokker-mobile-bar {
    background-color: var(--ed-obsidian-drawer);
    background-image: none;
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    border: 1px solid var(--ed-hairline);
    border-radius: var(--ed-radius-md);
    box-shadow: var(--ed-shadow-panel);
    gap: 4px;
    padding: 4px;
  }

  html body #shokker-mobile-search-btn {
    min-height: 44px;
    height: 44px;
    padding: 0 7px;
    gap: 5px;
    background: var(--ed-surface-subtle);
    border: 1px solid var(--ed-hairline);
    border-radius: var(--ed-radius-sm);
    color: var(--ed-bone);
    font-family: var(--ed-font-sans);
    font-size: 12px;
  }

  html body #shokker-mobile-search-btn .smob-emblem {
    background: var(--ed-brass-soft);
    border: 1px solid var(--ed-brass-border);
    border-radius: var(--ed-radius-xs);
    color: var(--ed-brass);
    font-family: var(--ed-font-serif);
    font-weight: 500;
  }

  html body #shokker-mobile-search-btn .smob-search-label {
    color: var(--ed-sand);
  }

  html body #shokker-mobile-bar #btn-mob-greene-arcade {
    padding: 0 8px;
    font-size: 11.5px;
  }

  html body #shokker-mobile-menu-btn {
    min-height: 44px;
    height: 44px;
    padding: 0 8px;
    background: var(--ed-brass);
    color: var(--ed-obsidian);
    border: 1px solid var(--ed-brass);
    border-radius: var(--ed-radius-sm);
    font-family: var(--ed-font-sans);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: none;
  }

  html body #btn-mobile-all-tools,
  html body #shokker-mobile-studio-btn {
    min-height: 44px;
    height: 44px;
    padding: 0 7px;
    background: var(--ed-surface-subtle);
    border: 1px solid var(--ed-hairline);
    border-radius: var(--ed-radius-sm);
    color: var(--ed-bone);
    font-family: var(--ed-font-sans);
    font-size: 11.5px;
    font-weight: 500;
  }

  html body #left-panel .quick-action-row .chip,
  html body #left-panel .quick-action-row .chip.chip-accent,
  html body #left-panel .quick-action-row a.chip,
  html body #left-panel #btn-find-my-house.btn-find-house,
  html body #left-panel #search-go,
  html body #left-panel #search-clear,
  html body #left-panel #btn-help-shortcuts {
    min-height: 44px !important;
  }

  html body #right-drawer.right-drawer {
    border-radius: var(--ed-radius-lg) var(--ed-radius-lg) 0 0;
  }

  html body #shokker-snn-live-ticker .snn-tk-ctrl {
    min-width: 36px;
  }
}
