/* SeaTrack v97.77e — iOS WebKit chrome hard-fix
   Root cause of v97.77d on real iPhone:
   1) html font-size followed --fs-body (18px), so rem chrome ballooned
   2) late CSS (ocean-map) + injected basemap style truncated legal/credit
   3) iOS text inflation without a strong text-size-adjust on body/chrome
   Rules: content scales via --ts; chrome is FIXED px; fit first, never clip. */

html {
  /* v97.78h: rem content scales with --ts; chrome rules below stay hard px */
  font-size: max(13.75px, calc(16px * var(--ts, 1))) !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
body, body * {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
body {
  font-size: var(--fs-body) !important; /* content inherits; rem stays on 16px root */
}

/* ── Header: title + date always visible at ≥320pt ── */
html body .app-header {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 8px 6px !important; /* px, not rem */
  box-sizing: border-box !important;
}
html body .app-header .menu-btn {
  width: 36px !important;
  height: 36px !important;
  margin-right: 4px !important;
  flex: 0 0 auto !important;
}
html body .app-header .brand {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}
html body .app-header .brand-mark {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 auto !important;
}
html body .app-header .brand > div {
  flex: 1 1 auto !important;
  min-width: 72px !important; /* never collapse title away */
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0 !important;
}
html body .app-header .brand h1 {
  display: block !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html body .app-header .brand .tagline {
  display: none !important; /* clock replaces tagline in header */
}
html body .hdr-clock,
html body #hdr-clock,
html body #hdr-clock-t {
  display: flex !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  opacity: 0.9 !important;
  visibility: visible !important;
  margin: 1px 0 0 !important;
}
html body .header-right {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  margin-left: 4px !important;
}
html body .al-bell,
html body #al-bell.al-bell,
html body .fav-btn,
html body #fav-btn.fav-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  flex: 0 0 auto !important;
  font-size: 16px !important;
}
html body .al-bell-count,
html body #al-bell .al-bell-count {
  font: 800 9px/14px system-ui, -apple-system, sans-serif !important;
  min-width: 14px !important;
  height: 14px !important;
  line-height: 14px !important;
}

/* Only extreme narrow: drop clock, never title until postage-stamp */
@media (max-width: 330px) {
  html body .hdr-clock,
  html body #hdr-clock { display: none !important; }
}
@media (max-width: 280px) {
  html body .app-header .brand h1 { display: none !important; }
}

/* ── Tabs: fixed chrome labels, Weather never clips ── */
html body .tab-bar,
html body .tab-bar-v13,
html body .tab-bar-5 {
  padding-left: 2px !important;
  padding-right: 2px !important;
  gap: 0 !important;
  overflow: visible !important;
}
html body .tab-bar-v13 .tab,
html body .tab-bar-5 .tab {
  min-width: 0 !important;
  padding: 4px 0 3px !important;
  gap: 2px !important;
  overflow: visible !important;
  font-size: 12px !important; /* reset inherit from body */
}
html body .tab-bar-v13 .tab .tab-label,
html body .tab-bar-5 .tab .tab-label,
html body .tab-fab .tab-label.fab-lbl {
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
}
html body .tab-bar-v13 .tab-svg {
  width: 22px !important;
  height: 22px !important;
}
html body .tab-bar-v13 .tab .tab-icon {
  width: 44px !important;
  height: 26px !important;
  border-radius: 13px !important;
}
html body .tab-bar-v13 {
  min-height: 56px !important;
}

/* ── Legal line: ALWAYS full "Approximate · not for navigation" ── */
html body #nav-disclaimer.nav-disclaimer,
html body .nav-disclaimer {
  font: 800 10px/1.25 system-ui, -apple-system, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important; /* never ellipsis-truncate */
  width: max-content !important;
  box-sizing: border-box !important;
  top: auto !important;
  left: 8px !important;
  right: auto !important;
  bottom: calc(36px + env(safe-area-inset-bottom, 0px)) !important;
  transform: none !important;
  z-index: 8500 !important;
  pointer-events: none !important;
  visibility: visible !important;
  display: block !important;
  background: rgba(6, 18, 30, 0.82) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(226, 232, 240, 0.18) !important;
  box-shadow: none !important;
  animation: none !important;
  transition: none !important;
}

/* ── Credits: fixed small, compact wrap, not a huge box ── */
html body .st-mt-attr,
html body #map .st-mt-attr {
  font: 600 10px/1.2 system-ui, -apple-system, sans-serif !important;
  max-width: min(210px, calc(100% - 120px)) !important;
  gap: 1px !important;
  bottom: 5px !important;
  left: 8px !important;
  z-index: 8500 !important;
}
html body .st-mt-attr .st-mt-txt {
  font: 700 9px/1.2 system-ui, -apple-system, sans-serif !important;
  padding: 1px 5px !important;
  border-radius: 3px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: min(200px, 58vw) !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
}
html body .st-mt-attr .st-mt-logo img {
  height: 11px !important;
  width: auto !important;
}
html body .maplibregl-ctrl-attrib,
html body .leaflet-control-attribution {
  font-size: 9px !important;
  line-height: 1.2 !important;
}

/* Map control chrome — widths/heights owned by v97.78m uniform column block at file end.
   Keep only non-size chrome tweaks here so the early 40px !important cannot fight --mo-col-w. */
html body .mo-fab .mo-l, html body .mo-l { font-size: 9px !important; }
html body .maplibregl-ctrl-group button,
html body .leaflet-control-zoom a {
  font-size: calc(20px * var(--ts-icon, 1)) !important;
}

/* Search stays readable but not rem-tied to a scaled root */
html body #spot-search,
html body #spot-search::placeholder {
  font-size: var(--fs-body) !important;
}

/* ═══ v97.78c — real-device chrome (Dynamic Type / standalone / Larger Text) ═══
   Avoid font: … system-ui/-apple-system shorthands on chrome — iOS can still
   inflate those. Use named faces + explicit px. Equal 5 tab slots. Search icon. */
html, body {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
/* Chrome faces: no system-ui / -apple-system keywords */
html body .app-header,
html body .app-header .brand h1,
html body .hdr-clock,
html body #hdr-clock-t,
html body .tab-bar,
html body .tab-bar .tab,
html body .tab-bar .tab-label,
html body .tab-fab .tab-label,
html body .nav-disclaimer,
html body .st-mt-attr,
html body .st-mt-attr .st-mt-txt,
html body .sr-map-chip,
html body .sr-map-chip-t,
html body #hdr-search,
html body .al-bell,
html body .fav-btn,
html body .menu-btn {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Brand: never collapse title; shrink/hide date first */
html body .app-header .brand {
  flex: 1 1 auto !important;
  min-width: 96px !important;
  overflow: hidden !important;
}
html body .app-header .brand > div {
  flex: 1 1 auto !important;
  min-width: 88px !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body .app-header .brand h1 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  margin: 0 !important;
}
html body .hdr-clock,
html body #hdr-clock,
html body #hdr-clock-t {
  display: block !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
@media (max-width: 360px) {
  html body .hdr-clock,
  html body #hdr-clock { font-size: 9px !important; }
}
@media (max-width: 340px) {
  html body .hdr-clock,
  html body #hdr-clock { display: none !important; }
}
@media (max-width: 280px) {
  html body .app-header .brand h1 { font-size: 13px !important; }
}

/* Equal 5 slots (Map Wind Log Tides Weather) — FAB same width as others */
html body .tab-bar,
html body .tab-bar-5,
html body .tab-bar-v13,
html body .tab-bar.tab-bar-5.tab-bar-v13.has-fab {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-flow: unset !important;
  gap: 0 !important;
  align-items: stretch !important;
  overflow: visible !important;
}
html body .tab-bar .tab,
html body .tab-bar-v13 .tab,
html body .tab-bar .tab-fab {
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  flex: unset !important;
  overflow: visible !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body .tab-bar .tab .tab-label,
html body .tab-bar-v13 .tab .tab-label,
html body .tab-fab .tab-label,
html body .tab-fab .tab-label.fab-lbl {
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-width: 100% !important;
  display: block !important;
  text-align: center !important;
}

/* Credit: ALWAYS visible, 9–10px, 1–2 lines (legal) */
html body .st-mt-attr,
html body #map .st-mt-attr,
html body .map-stage > .st-mt-attr {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
  max-width: min(200px, 58vw) !important;
  gap: 1px !important;
  bottom: 5px !important;
  left: 8px !important;
  z-index: 8500 !important;
  pointer-events: auto !important;
}
html body .st-mt-attr[hidden] { display: none !important; } /* only when intentionally hidden off-map */
html body .map-stage > .st-mt-attr:not([hidden]),
html body #map .st-mt-attr:not([hidden]) {
  display: flex !important; /* override [hidden] mishaps on main map */
}
html body .st-mt-attr .st-mt-txt {
  font-size: 9px !important;
  line-height: 1.25 !important;
  padding: 1px 5px !important;
  max-width: min(200px, 58vw) !important;
  white-space: normal !important;
  overflow: visible !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
}
html body .st-mt-attr .st-mt-logo img { height: 10px !important; }
html body #nav-disclaimer.nav-disclaimer,
html body .nav-disclaimer {
  font-size: 9px !important;
  line-height: 1.2 !important;
  padding: 1px 5px !important;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Menu open: hide floating map chrome that leaks beside the drawer */
body:has(#side-menu.open) #cl-banner,
body:has(.side-menu.open) #cl-banner,
body:has(#side-menu.open) #al-unread-pill,
body:has(.side-menu.open) #al-unread-pill,
body:has(#side-menu.open) #wn-toast,
body:has(.side-menu.open) #wn-toast,
body:has(#side-menu.open) #cf-flash,
body:has(.side-menu.open) #cf-flash,
body:has(#side-menu.open) .pr-navbar,
body:has(.side-menu.open) .pr-navbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#al-unread-pill { display: none !important; } /* v97.78d: badge on ≡ replaces pill */
/* v97.78e: #cl-banner never on map — closures only in Alerts */
#cl-banner, .cl-banner { display: none !important; visibility: hidden !important; pointer-events: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }


/* Search: hide native WebKit clear so we only have #search-clear + #search-x */
html body #spot-search::-webkit-search-cancel-button,
html body #spot-search::-webkit-search-decoration,
html body #spot-search::-webkit-search-results-button,
html body #spot-search::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}
html body #spot-search {
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Header search button (same chrome size as bell/fav) */
html body #hdr-search.hdr-search {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148,163,184,.28) !important;
  background: rgba(8,20,34,.55) !important;
  color: #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body #hdr-search svg { width: 18px !important; height: 18px !important; display: block !important; }

/* Search overlay (replaces permanent bar) */
html body #search-bar.search-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 12000 !important;
  display: none !important;
  flex-direction: column !important;
  background: rgba(2, 10, 18, 0.55) !important;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 10px !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}
html body #search-bar.search-bar.search-open {
  display: flex !important;
}
html body #search-bar .search-sheet {
  background: rgba(10, 18, 28, 0.97) !important;
  border: 1px solid rgba(94,234,212,.35) !important;
  border-radius: 14px !important;
  padding: 10px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.5) !important;
  max-height: min(70vh, 520px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
html body #search-bar .search-sheet-top {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html body #search-bar .search-field {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html body #search-bar .search-x {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(94,234,212,.7) !important;
  background: rgba(8,30,52,.95) !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1 !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
}
html body #search-bar .search-results {
  position: static !important;
  max-height: min(52vh, 380px) !important;
  overflow: auto !important;
  margin: 0 !important;
  width: 100% !important;
}
/* Map starts under header — no reserved search row */
html body .search-bar:not(.search-open) { height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }

body.st-menu-open #cl-banner,
body.st-menu-open #al-unread-pill,
body.st-menu-open #wn-toast,
body.st-menu-open #cf-flash,
body.st-menu-open .pr-navbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* search overlay open: same floating chrome must not peek above the sheet */
body:has(#search-bar.search-open) #cl-banner,
body:has(#search-bar.search-open) #al-unread-pill,
body:has(#search-bar.search-open) #wn-toast,
body:has(#search-bar.search-open) #cf-flash {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* One clear control inside the field — never a second native/backspace glyph */
html body #search-bar #search-clear {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(148,163,184,.22) !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  padding: 0 !important;
  z-index: 2 !important;
}
html body #search-bar #search-clear[hidden] { display: none !important; }
html body #search-bar .search-field { position: relative !important; }

/* v97.78e: credit must never clip or sit under Locate/Layers */
html body .st-mt-attr,
html body #map .st-mt-attr,
html body .map-stage > .st-mt-attr {
  max-width: min(188px, calc(100vw - 120px)) !important;
}
html body .st-mt-attr .st-mt-txt {
  max-width: 100% !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  font-size: 9px !important;
}
@media (max-width: 360px) {
  html body .st-mt-attr,
  html body #map .st-mt-attr,
  html body .map-stage > .st-mt-attr {
    max-width: min(140px, calc(100vw - 180px)) !important;
  }
}
/* v97.78h: mo-stack is top-right under zoom — no bottom credit lift needed */

/* ═══ v97.78h — chrome + icons scale with --ts-icon (Normal largest; XS ~28% smaller)
   Credit / Approximate stay FIXED. Tap targets ≥36px. Fit first. ═══ */

/* Header buttons — tap floor 36; glyph scales */
html body .app-header .menu-btn,
html body .al-bell,
html body #al-bell.al-bell,
html body .fav-btn,
html body #fav-btn.fav-btn,
html body #hdr-search.hdr-search {
  width: var(--tap-chrome, 36px) !important;
  height: var(--tap-chrome, 36px) !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: none !important;
  font-size: calc(16px * var(--ts-icon, 1)) !important;
}
html body #hdr-search svg,
html body .menu-btn svg,
html body .al-bell svg,
html body .fav-btn svg {
  width: calc(18px * var(--ts-icon, 1)) !important;
  height: calc(18px * var(--ts-icon, 1)) !important;
}
html body .al-bell-count,
html body #al-bell .al-bell-count {
  font-size: max(8px, calc(9px * var(--ts-icon, 1))) !important;
  min-width: max(12px, calc(14px * var(--ts-icon, 1))) !important;
  height: max(12px, calc(14px * var(--ts-icon, 1))) !important;
  line-height: max(12px, calc(14px * var(--ts-icon, 1))) !important;
}

/* Logo + brand + date */
html body .app-header .brand-mark,
html body .app-header .brand-mark img,
html body .app-header .brand-mark svg {
  width: var(--icon-brand, 28px) !important;
  height: var(--icon-brand, 28px) !important;
}
html body .app-header .brand h1 {
  font-size: max(12px, calc(15px * var(--ts-chrome, 1))) !important;
}
html body .hdr-clock,
html body #hdr-clock,
html body #hdr-clock-t {
  font-size: var(--fs-chrome-meta) !important;
}

/* Tabs: icons + labels */
html body .tab-bar-v13 .tab-svg,
html body .tab-bar .tab-svg,
html body .tab-bar .tab .tab-icon svg {
  width: var(--icon-tab) !important;
  height: var(--icon-tab) !important;
}
html body .tab-bar-v13 .tab .tab-icon,
html body .tab-bar .tab .tab-icon {
  width: calc(44px * var(--ts-icon, 1)) !important;
  height: max(22px, calc(26px * var(--ts-icon, 1))) !important;
  border-radius: calc(13px * var(--ts-icon, 1)) !important;
}
html body .tab-bar-v13 .tab .tab-label,
html body .tab-bar-5 .tab .tab-label,
html body .tab-bar .tab .tab-label,
html body .tab-fab .tab-label,
html body .tab-fab .tab-label.fab-lbl {
  font-size: var(--fs-chrome-label) !important;
}

/* Log FAB disc + fishing glyph */
html body .tab-fab .fab-disc,
html body .tab-fab .fab-disc.fab-fishbtn {
  width: max(58px, calc(84px * var(--ts-icon, 1))) !important;
  height: max(36px, calc(52px * var(--ts-icon, 1))) !important;
  top: calc(-22px * var(--ts-icon, 1)) !important;
}
html body .tab-fab .fab-fishsvg,
html body .tab-fab .fab-disc svg {
  width: max(58px, calc(84px * var(--ts-icon, 1))) !important;
  height: max(36px, calc(52px * var(--ts-icon, 1))) !important;
}
html body .tab-fab .fab-disc:not(.fab-fishbtn) {
  width: max(44px, calc(58px * var(--ts-icon, 1))) !important;
  height: max(44px, calc(58px * var(--ts-icon, 1))) !important;
}
html body .tab-fab .fab-plus {
  width: max(16px, calc(20px * var(--ts-icon, 1))) !important;
  height: max(16px, calc(20px * var(--ts-icon, 1))) !important;
  font-size: max(12px, calc(17px * var(--ts-icon, 1))) !important;
}

/* Map +/- Locate Layers */
/* v97.78m: size for mo-fab / lm-btn / zoom owned by uniform column block at file end.
   Keep icon font sizing only here. */
html body .maplibregl-ctrl-group button,
html body .leaflet-control-zoom a {
  font-size: calc(20px * var(--ts-icon, 1)) !important;
}
html body .mo-fab svg,
html body .lm-btn svg,
html body .mo-fab .mo-ic {
  width: var(--icon-chrome) !important;
  height: var(--icon-chrome) !important;
  font-size: calc(14px * var(--ts-icon, 1)) !important;
}
html body .mo-fab .mo-l,
html body .mo-l,
html body .mo-badge,
html body .mo-fab .badge,
html body .layers-badge {
  font-size: max(8px, calc(9px * var(--ts-icon, 1))) !important;
}

/* Menu icons (every row) */
html body .side-menu .sm-item svg,
html body #side-body .sm-item svg,
html body .side-menu .sm-ic,
html body #side-body .sm-ic,
html body .side-menu .sm-item .ic,
html body .side-menu button svg {
  width: calc(22px * var(--ts-icon, 1)) !important;
  height: calc(22px * var(--ts-icon, 1)) !important;
  font-size: calc(18px * var(--ts-icon, 1)) !important;
  flex: 0 0 auto !important;
}
html body .side-menu .sm-item,
html body #side-body .sm-item {
  min-height: max(36px, calc(44px * var(--ts-icon, 1))) !important;
  font-size: var(--fs-body) !important;
}

/* Content icons reinforce (weather / fan / wind arrows / list / spots) */
html body .wx-ic,
html body .weather-card svg,
html body .wx2-now svg,
html body .wdv-fan,
html body .wx-fan,
html body .st-fan,
html body .w16-fan,
html body .wdv-now .fan-ic,
html body .mk-ic,
html body .mk-cat svg,
html body .spot-ic,
html body .spot-row svg,
html body .sm-disp-prev svg {
  width: calc(1.35em * var(--ts-icon, 1)) !important;
  height: calc(1.35em * var(--ts-icon, 1)) !important;
  font-size: calc(22px * var(--ts-icon, 1)) !important;
}
html body #wdv svg.wdv-arr,
html body .wdv-arr,
html body .w16-arr,
html body .tdv-arr {
  width: calc(14px * var(--ts-icon, 1)) !important;
  height: calc(14px * var(--ts-icon, 1)) !important;
}

/* Credits + Approximate — FIXED (do not follow --ts-icon) */
html body .st-mt-attr,
html body #map .st-mt-attr,
html body .map-stage > .st-mt-attr,
html body .st-mt-attr .st-mt-txt {
  font-size: 9px !important;
}
html body #nav-disclaimer.nav-disclaimer,
html body .nav-disclaimer {
  font-size: 9px !important;
}


/* ═══ v97.78h polish — menu titles equal; close/logo scale; tab labels ≥10px ═══ */
html body .tab-bar-v13 .tab .tab-label,
html body .tab-bar-5 .tab .tab-label,
html body .tab-bar .tab .tab-label,
html body .tab-fab .tab-label,
html body .tab-fab .tab-label.fab-lbl {
  font-size: max(10px, var(--fs-chrome-label)) !important;
}

html body .side-menu .sm-item,
html body #side-body .sm-item,
html body .side-menu .sm-item.sm-alerts,
html body #side-body .sm-item.sm-alerts {
  font-size: var(--fs-label) !important;
  font-weight: 650 !important;
}
html body #side-body .sm-tx,
html body .side-menu .sm-tx,
html body #side-body .sm-ti,
html body .side-menu .sm-ti,
html body #side-body .sm-balab,
html body .side-menu .sm-balab {
  font-size: var(--fs-label) !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
  color: inherit !important;
}
html body #side-body .sm-tx {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}
html body #side-body .sm-item .sm-st,
html body #side-body .sm-item small,
html body .side-menu .sm-item .sm-st {
  font-size: var(--fs-caption) !important;
  font-weight: 400 !important;
  opacity: 0.65 !important;
}

html body .sm-head img {
  width: calc(28px * var(--ts-icon, 1)) !important;
  height: calc(28px * var(--ts-icon, 1)) !important;
}
html body .sm-x,
html body .sm-head .sm-x {
  font-size: calc(18px * var(--ts-icon, 1)) !important;
  width: max(36px, calc(40px * var(--ts-icon, 1))) !important;
  height: max(36px, calc(40px * var(--ts-icon, 1))) !important;
  min-width: 36px !important;
  min-height: 36px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body .sm-head b {
  font-size: max(12px, calc(17px * var(--ts-icon, 1))) !important;
  font-weight: 700 !important;
}


/* ═══ v97.78k — chrome uses --ts-chrome (capped); content keeps --ts-icon; L/XL reflow ═══ */
/* Header taps only — mo-fab / lm-btn / zoom sized by v97.78m uniform column block */
html body .app-header .menu-btn,
html body .app-header #hdr-search,
html body .app-header .fav-btn,
html body .app-header .al-bell {
  width: var(--tap-chrome, 40px) !important;
  height: var(--tap-chrome, 40px) !important;
  min-width: 36px !important;
  min-height: 36px !important;
}
html body .tab-bar-v13 .tab-svg,
html body .tab-bar .tab-svg {
  width: var(--icon-tab) !important;
  height: var(--icon-tab) !important;
}
html body .tab-fab .fab-disc,
html body .tab-fab .fab-disc.fab-fishbtn,
html body .tab-fab .fab-fishsvg,
html body .tab-fab .fab-disc svg {
  width: max(58px, calc(84px * var(--ts-chrome, 1))) !important;
  height: max(36px, calc(52px * var(--ts-chrome, 1))) !important;
}
html body .app-header .brand-mark,
html body .app-header .brand-mark img,
html body .app-header .brand img {
  width: var(--icon-brand) !important;
  height: var(--icon-brand) !important;
}
html body .sm-head img {
  width: calc(28px * var(--ts-chrome, 1)) !important;
  height: calc(28px * var(--ts-chrome, 1)) !important;
}
html body .sm-x,
html body .sm-head .sm-x {
  font-size: calc(18px * var(--ts-chrome, 1)) !important;
  width: max(36px, calc(40px * var(--ts-chrome, 1))) !important;
  height: max(36px, calc(40px * var(--ts-chrome, 1))) !important;
}
html body .sm-head b {
  font-size: max(12px, calc(17px * var(--ts-chrome, 1))) !important;
}
html body .tab-bar .tab .tab-label,
html body .tab-fab .tab-label {
  font-size: max(10px, var(--fs-chrome-label)) !important;
}
/* Credit / Approximate — soft grow, stay clear of Log/tabs */
html body .st-mt-attr .st-mt-txt,
html body #nav-disclaimer.nav-disclaimer,
html body .nav-disclaimer {
  font-size: var(--fs-chrome-credit) !important;
}

/* —— Normal + Large + XL accessibility reflow (fit first; Normal now ≈ old Large) —— */
/* L/XL forecast rows: line1 = day + condition; line2 = icon · temps · rain · wind */
html[data-ts="n"] .wx2-day,
html[data-ts="l"] .wx2-day,
html[data-ts="xl"] .wx2-day {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 12px !important;
  row-gap: 6px !important;
  padding: 10px 28px 10px 4px !important;
  position: relative !important;
  grid-template-columns: none !important;
}
html[data-ts="n"] .wx2-day .wx2-dn,
html[data-ts="l"] .wx2-day .wx2-dn,
html[data-ts="xl"] .wx2-day .wx2-dn {
  flex: 1 1 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
  align-items: baseline !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}
html[data-ts="n"] .wx2-day .wx2-dc,
html[data-ts="l"] .wx2-day .wx2-dc,
html[data-ts="xl"] .wx2-day .wx2-dc {
  display: inline !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}
html[data-ts="n"] .wx2-day .wx2-di,
html[data-ts="l"] .wx2-day .wx2-di,
html[data-ts="xl"] .wx2-day .wx2-di,
html[data-ts="n"] .wx2-day .wx2-hl,
html[data-ts="l"] .wx2-day .wx2-hl,
html[data-ts="xl"] .wx2-day .wx2-hl,
html[data-ts="n"] .wx2-day .wx2-rain,
html[data-ts="l"] .wx2-day .wx2-rain,
html[data-ts="xl"] .wx2-day .wx2-rain,
html[data-ts="n"] .wx2-day .wx2-dw,
html[data-ts="l"] .wx2-day .wx2-dw,
html[data-ts="xl"] .wx2-day .wx2-dw {
  flex: 0 0 auto !important;
  grid-column: auto !important;
  text-align: left !important;
  justify-self: start !important;
  white-space: nowrap !important;
}
html[data-ts="n"] .wx2-day .wx2-dw,
html[data-ts="l"] .wx2-day .wx2-dw,
html[data-ts="xl"] .wx2-day .wx2-dw {
  white-space: nowrap !important;
  text-align: left !important;
}
html[data-ts="n"] .wx2-day .wx2-chev,
html[data-ts="l"] .wx2-day .wx2-chev,
html[data-ts="xl"] .wx2-day .wx2-chev {
  position: absolute !important;
  right: 6px !important;
  top: 10px !important;
  grid-column: auto !important;
  justify-self: end !important;
}
html[data-ts="n"] .wx2-chips,
html[data-ts="l"] .wx2-chips,
html[data-ts="xl"] .wx2-chips,
html[data-ts="n"] .ba-chips,
html[data-ts="l"] .ba-chips,
html[data-ts="xl"] .ba-chips,
html[data-ts="n"] .sm-seg,
html[data-ts="l"] .sm-seg,
html[data-ts="xl"] .sm-seg,
html[data-ts="n"] .st-picker,
html[data-ts="l"] .st-picker,
html[data-ts="xl"] .st-picker,
html[data-ts="n"] .species-chip,
html[data-ts="l"] .species-chip,
html[data-ts="xl"] .coach-loc-chips {
  flex-wrap: wrap !important;
  overflow: visible !important;
}
html[data-ts="n"] .st-picker,
html[data-ts="l"] .st-picker,
html[data-ts="xl"] .st-picker {
  flex-wrap: wrap !important;
  overflow-x: visible !important;
}
html[data-ts="n"] .w16-row,
html[data-ts="l"] .w16-row,
html[data-ts="xl"] .w16-row {
  grid-template-columns: 1fr 1fr !important;
  row-gap: 4px !important;
}
html[data-ts="xl"] .w16-row {
  grid-template-columns: 1fr !important;
}
html[data-ts="n"] .ww-grid,
html[data-ts="l"] .ww-grid,
html[data-ts="xl"] .ww-grid,
html[data-ts="n"] .wx2-main,
html[data-ts="l"] .wx2-main,
html[data-ts="xl"] .wx2-main {
  grid-template-columns: 1fr !important;
  flex-wrap: wrap !important;
}
html[data-ts="n"] .wx2-main,
html[data-ts="l"] .wx2-main,
html[data-ts="xl"] .wx2-main {
  display: flex !important;
  flex-wrap: wrap !important;
}
html[data-ts="n"] .wx2-side,
html[data-ts="l"] .wx2-side,
html[data-ts="xl"] .wx2-side {
  margin-left: 0 !important;
  text-align: left !important;
  width: 100% !important;
}
html[data-ts="n"] .wx2-wind,
html[data-ts="l"] .wx2-wind,
html[data-ts="xl"] .wx2-wind {
  flex-wrap: wrap !important;
}
html[data-ts="n"] #side-body .sm-tx,
html[data-ts="l"] #side-body .sm-tx,
html[data-ts="xl"] #side-body .sm-tx,
html[data-ts="n"] #side-body .sm-item,
html[data-ts="l"] #side-body .sm-item,
html[data-ts="xl"] #side-body .sm-item,
html[data-ts="n"] .spot-name,
html[data-ts="l"] .spot-name,
html[data-ts="xl"] .spot-name,
html[data-ts="n"] .al-row-t b,
html[data-ts="l"] .al-row-t b,
html[data-ts="xl"] .al-row-t b,
html[data-ts="n"] .al-row-t small,
html[data-ts="l"] .al-row-t small,
html[data-ts="xl"] .al-row-t small,
html[data-ts="n"] .cd-cfc-tx b,
html[data-ts="l"] .cd-cfc-tx b,
html[data-ts="xl"] .cd-cfc-tx b,
html[data-ts="n"] .cd-cfs-ttl b,
html[data-ts="l"] .cd-cfs-ttl b,
html[data-ts="xl"] .cd-cfs-ttl b {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}
html[data-ts="n"] .cd-mini,
html[data-ts="l"] .cd-mini,
html[data-ts="xl"] .cd-mini {
  white-space: normal !important;
}
html[data-ts="n"] .drawer,
html[data-ts="l"] .drawer,
html[data-ts="xl"] .drawer,
html[data-ts="n"] .cd-panel,
html[data-ts="l"] .cd-panel,
html[data-ts="xl"] .cd-panel,
html[data-ts="n"] .side-menu,
html[data-ts="l"] .side-menu,
html[data-ts="xl"] .side-menu {
  overflow-x: hidden !important;
}
html[data-ts="xl"] .wx2-t { font-size: min(56px, calc(40px * var(--ts, 1))) !important; max-width: 100%; }
html[data-ts="xl"] .wx2-ic { font-size: min(48px, calc(36px * var(--ts, 1))) !important; }
html[data-ts="n"] .tab-bar .tab .tab-label,
html[data-ts="l"] .tab-bar .tab .tab-label,
html[data-ts="xl"] .tab-bar .tab .tab-label {
  white-space: nowrap !important;
  overflow: visible !important;
  font-size: max(10px, var(--fs-chrome-label)) !important;
}


/* 78k brand reflow: zero clip of SeaTrack title at Large/XL on narrow phones */
@media (max-width: 360px) {
  html[data-ts="n"] body .app-header .brand h1,
  html[data-ts="l"] body .app-header .brand h1,
  html[data-ts="xl"] body .app-header .brand h1 {
    font-size: max(12px, calc(13.5px * min(1.15, var(--ts-chrome, 1)))) !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  html[data-ts="n"] body .app-header .brand > div,
  html[data-ts="l"] body .app-header .brand > div,
  html[data-ts="xl"] body .app-header .brand > div {
    min-width: 0 !important;
    overflow: visible !important;
  }
}
@media (max-width: 330px) {
  html[data-ts="xl"] body .app-header .brand h1 {
    font-size: 13px !important;
  }
  html[data-ts="n"] body .app-header .brand h1,
  html[data-ts="l"] body .app-header .brand h1 {
    font-size: 13px !important;
  }
}


/* 78k: Normal/Step sliders removed — ladder locked */

/* 78k no mid-word: headings & labels never break inside a word */
html body h1, html body h2, html body h3, html body h4,
html body .subhead,
html body .tab-label,
html body .tab-fab .tab-label,
html body .sm-ti, html body .sm-tx,
html body .sm-unit-l,
html body label,
html body .wx2-fhead h3,
html body .wx2-fhead .subhead,
html body .wx2-dn,
html body .wx2-dc,
html body .drawer-head h2,
html body .cd-sheet h2,
html body .al-sheet h2,
html body .al-row-t b,
html body .spot-name,
html body .cd-cfc-tx b,
html body .cd-cfs-ttl b {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}

/* L/XL: Forecast heading alone; 3/5/7-day seg on its own row below */
html[data-ts="n"] .wx2-fhead,
html[data-ts="l"] .wx2-fhead,
html[data-ts="xl"] .wx2-fhead {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
}
html[data-ts="n"] .wx2-fhead .subhead,
html[data-ts="l"] .wx2-fhead .subhead,
html[data-ts="xl"] .wx2-fhead .subhead,
html[data-ts="n"] .wx2-fhead h3,
html[data-ts="l"] .wx2-fhead h3,
html[data-ts="xl"] .wx2-fhead h3 {
  white-space: nowrap !important;
  overflow: visible !important;
  max-width: 100% !important;
  flex: none !important;
}
html[data-ts="n"] .wx2-fhead .wx2-seg,
html[data-ts="l"] .wx2-fhead .wx2-seg,
html[data-ts="xl"] .wx2-fhead .wx2-seg {
  width: 100% !important;
  align-self: stretch !important;
  display: flex !important;
}
html[data-ts="n"] .wx2-fhead .wx2-seg button,
html[data-ts="l"] .wx2-fhead .wx2-seg button,
html[data-ts="xl"] .wx2-fhead .wx2-seg button {
  flex: 1 1 0 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}


/* ═══ v97.78k2 — Layers never truncates; unified legal chip; wind headers no mid-word ═══ */

/* Layers / Locate / zoom: label uses chrome scale (capped); no ellipsis; column wide enough for "Layers" */
html body .mo-fab .mo-l {
  font-size: max(8px, calc(9px * var(--ts-chrome, 1))) !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  white-space: nowrap !important;
  hyphens: none !important;
  word-break: keep-all !important;
}
html body .mo-b .mo-l,
html body .mo-pop .mo-l {
  font-size: calc(10px * var(--ts, 1)) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
  text-align: center !important;
  line-height: 1.15 !important;
}
/* v97.78m: unequal fixed widths removed — see v97.78m column block at file end */

/* Unified legal chip — Approximate + credit; above map markers */
html body .st-mt-attr,
html body #map .st-mt-attr,
html body .map-stage > .st-mt-attr {
  z-index: 12000 !important;
  max-width: min(240px, calc(100% - 148px)) !important;
  gap: 3px !important;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  left: 8px !important;
  align-items: flex-start !important;
}
html body .st-mt-attr .st-legal {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  background: rgba(6, 18, 30, 0.88) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(226, 232, 240, 0.2) !important;
  border-radius: 6px !important;
  padding: 3px 7px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  max-width: 100% !important;
  width: max-content !important;
  box-sizing: border-box !important;
}
html body .st-mt-attr #nav-disclaimer.nav-disclaimer,
html body .st-mt-attr .nav-disclaimer,
html body #nav-disclaimer.nav-disclaimer {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: auto !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font: 800 10px/1.25 system-ui, -apple-system, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #e2e8f0 !important;
  pointer-events: none !important;
  animation: none !important;
  transition: none !important;
  display: block !important;
  visibility: visible !important;
  -webkit-appearance: none !important;
}
html body .st-mt-attr .st-mt-txt {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  font: 700 9px/1.3 system-ui, -apple-system, sans-serif !important;
  color: #e2e8f0 !important;
}
/* Markers stay under the legal chip */
html body .map-stage .leaflet-marker-pane,
html body .map-stage .leaflet-shadow-pane,
html body #map .maplibregl-marker,
html body .map-stage .st-cluster {
  z-index: 600 !important;
}
html body .st-cluster {
  position: relative;
  z-index: 600 !important;
}

/* Wind table headers — never mid-word break; soft size at L/XL */
html body .wdv-th,
html body .wdv-table .wdv-th,
html body .tdv-table .tdv-th,
html body .tdv-th {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}
html[data-ts="l"] body .wdv-th,
html[data-ts="xl"] body .wdv-th {
  font-size: max(11px, calc(12px * var(--ts-chrome, 1))) !important;
}
html[data-ts="xl"] body .wdv-table,
html[data-ts="l"] body .wdv-table {
  column-gap: 6px !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto !important;
}
@media (max-width: 340px) {
  html[data-ts="xl"] body .wdv-th,
  html[data-ts="l"] body .wdv-th,
  html[data-ts="xl"] body .wdv-td,
  html[data-ts="l"] body .wdv-td {
    font-size: max(10px, calc(11px * var(--ts-chrome, 1))) !important;
  }
  html[data-ts="xl"] body .wdv-table,
  html[data-ts="l"] body .wdv-table {
    column-gap: 4px !important;
    margin-left: 2px !important;
    margin-right: 2px !important;
  }
}


/* 78k3: Approximate is text-only inside .st-legal (no nested pill) — highest specificity */
html body .st-mt-attr .st-legal #nav-disclaimer.nav-disclaimer,
html body .st-mt-attr .st-legal .nav-disclaimer {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 1px 0 !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}


/* ═══ v97.78l — map chrome top-right; Layers bottom sheet fits XS..XL ═══ */
.map-stage .leaflet-top.leaflet-right,
html body .leaflet-top.leaflet-right,
html body .map-stage .leaflet-top.leaflet-right {
  top: 8px !important; /* map-stage already sits under the header */
  right: 10px !important;
  margin-top: 0 !important;
}
html body .mo-stack {
  right: 10px !important;
  bottom: auto !important;
  z-index: 1130 !important;
  align-items: flex-end !important;
}
html body .mo-pop {
  position: fixed !important;
  left: 10px !important;
  right: 10px !important;
  width: auto !important;
  max-width: none !important;
  top: auto !important;
  z-index: 12050 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box !important;
}
html body .mo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 8px !important;
}
html[data-ts="l"] body .mo-grid,
html[data-ts="xl"] body .mo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (max-width: 400px) {
  html body .mo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
html body .mo-b {
  height: auto !important;
  min-height: max(44px, calc(40px * var(--ts, 1))) !important;
  padding: 8px 6px !important;
  overflow: visible !important;
}
html body .mo-b .mo-ic {
  font-size: calc(16px * var(--ts-icon, var(--ts, 1))) !important;
}
html body .mo-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}
html body .mo-x {
  min-width: 36px !important;
  min-height: 36px !important;
}
html body .mo-gh,
html body .mo-extra-h,
html body .mo-zones-list span,
html body .mo-nn,
html body .mo-seg button {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}
body.mo-layers-open .st-mt-attr,
body.mo-layers-open .st-mt-attr .st-legal,
body.mo-layers-open #nav-disclaimer,
body.mo-layers-open .st-legal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html body .mo-pop {
  z-index: 13000 !important;
}


/* ═══ v97.78m — uniform map chrome column (zoom / Locate / Layers) ═══ */
:root {
  --mo-col-w: max(56px, calc(44px * var(--ts-icon, var(--ts-chrome, 1))));
  --mo-col-gap: 8px;
  --mo-col-radius: 12px;
  --mo-col-border: 1px solid rgba(255, 255, 255, .14);
  --mo-col-bg: rgba(8, 20, 34, .88);
  --mo-col-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
html[data-ts="l"],
html[data-ts="xl"] {
  --mo-col-w: max(64px, calc(50px * var(--ts-icon, var(--ts-chrome, 1))));
}
html body .mo-stack {
  width: var(--mo-col-w) !important;
  right: 10px !important;
  align-items: stretch !important;
  gap: var(--mo-col-gap) !important;
  box-sizing: border-box !important;
}
html body .mo-stack > .lm-btn,
html body .mo-stack > .mo-fab {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: var(--mo-col-radius) !important;
  border: var(--mo-col-border) !important;
  background: var(--mo-col-bg) !important;
  box-shadow: var(--mo-col-shadow) !important;
  box-sizing: border-box !important;
}
html body .mo-stack > .lm-btn {
  height: var(--mo-col-w) !important;
  min-height: var(--mo-col-w) !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body .mo-stack > .mo-fab {
  height: auto !important;
  min-height: var(--mo-col-w) !important;
  padding: 4px 2px 5px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}
html body .mo-stack > .mo-fab .mo-l {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 100% !important;
  text-align: center !important;
  font-size: max(8px, calc(9px * var(--ts-chrome, var(--ts-icon, 1)))) !important;
}
html body .map-stage .leaflet-top.leaflet-right,
html body .leaflet-top.leaflet-right {
  right: 10px !important;
}
html body .leaflet-control-zoom.leaflet-bar,
html body .map-stage .leaflet-control-zoom.leaflet-bar,
html body .maplibregl-ctrl-group {
  width: var(--mo-col-w) !important;
  min-width: var(--mo-col-w) !important;
  max-width: var(--mo-col-w) !important;
  margin: 0 !important;
  border-radius: var(--mo-col-radius) !important;
  border: var(--mo-col-border) !important;
  background: var(--mo-col-bg) !important;
  box-shadow: var(--mo-col-shadow) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html body .leaflet-control-zoom a,
html body .maplibregl-ctrl-group button {
  width: 100% !important;
  min-width: 0 !important;
  height: var(--mo-col-w) !important;
  min-height: var(--mo-col-w) !important;
  line-height: var(--mo-col-w) !important;
  font-size: calc(20px * var(--ts-icon, 1)) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Beat earlier html[data-ts] width overrides */
html[data-ts="xs"] body .mo-stack,
html[data-ts="s"] body .mo-stack,
html[data-ts="n"] body .mo-stack,
html[data-ts="l"] body .mo-stack,
html[data-ts="xl"] body .mo-stack,
html[data-ts="xs"] body .leaflet-control-zoom.leaflet-bar,
html[data-ts="s"] body .leaflet-control-zoom.leaflet-bar,
html[data-ts="n"] body .leaflet-control-zoom.leaflet-bar,
html[data-ts="l"] body .leaflet-control-zoom.leaflet-bar,
html[data-ts="xl"] body .leaflet-control-zoom.leaflet-bar {
  width: var(--mo-col-w) !important;
  min-width: var(--mo-col-w) !important;
}
html[data-ts="xs"] body .mo-stack > .lm-btn,
html[data-ts="s"] body .mo-stack > .lm-btn,
html[data-ts="n"] body .mo-stack > .lm-btn,
html[data-ts="l"] body .mo-stack > .lm-btn,
html[data-ts="xl"] body .mo-stack > .lm-btn,
html[data-ts="xs"] body .mo-stack > .mo-fab,
html[data-ts="s"] body .mo-stack > .mo-fab,
html[data-ts="n"] body .mo-stack > .mo-fab,
html[data-ts="l"] body .mo-stack > .mo-fab,
html[data-ts="xl"] body .mo-stack > .mo-fab,
html[data-ts="xs"] body .leaflet-control-zoom a,
html[data-ts="s"] body .leaflet-control-zoom a,
html[data-ts="n"] body .leaflet-control-zoom a,
html[data-ts="l"] body .leaflet-control-zoom a,
html[data-ts="xl"] body .leaflet-control-zoom a {
  width: 100% !important;
  min-width: 0 !important;
}
html[data-ts="xs"] body .mo-stack > .lm-btn,
html[data-ts="s"] body .mo-stack > .lm-btn,
html[data-ts="n"] body .mo-stack > .lm-btn,
html[data-ts="l"] body .mo-stack > .lm-btn,
html[data-ts="xl"] body .mo-stack > .lm-btn,
html[data-ts="xs"] body .leaflet-control-zoom a,
html[data-ts="s"] body .leaflet-control-zoom a,
html[data-ts="n"] body .leaflet-control-zoom a,
html[data-ts="l"] body .leaflet-control-zoom a,
html[data-ts="xl"] body .leaflet-control-zoom a {
  height: var(--mo-col-w) !important;
  min-height: var(--mo-col-w) !important;
  line-height: var(--mo-col-w) !important;
}
