/* HandyMaps Core — tokens, reset, base shell, header, map base, POI/search foundations */

:root {
  --bg: #f6f1e7;
  --bg-2: #fffdf8;
  --card: rgba(255, 253, 248, .88);
  --card-strong: rgba(255, 255, 252, .96);
  --ink: #171b1c;
  --muted: #6f6a60;
  --line: rgba(122, 94, 43, .18);
  --line-dark: rgba(89, 70, 34, .24);
  --accent: #d4af62;
  --accent-2: #b9954e;
  --warning: #f2b84b;
  --danger: #fb7185;
  /* Shared surface/text tokens used across the active stylesheet layers. */
  --hm-white: #fff;
  --hm-text-light: #edf7f4;
  --hm-text-on-accent: #06130f;
  --hm-surface-06: rgba(255,255,255,.06);
  --hm-surface-08: rgba(255,255,255,.08);
  --hm-surface-10: rgba(255,255,255,.1);
  --hm-surface-13: rgba(255,255,255,.13);
  --hm-surface-14: rgba(255,255,255,.14);
  --hm-panel: rgba(255, 253, 248, .94);
  --hm-panel-strong: rgba(255, 255, 252, .98);
  --hm-panel-soft: rgba(248, 243, 233, .96);
  --hm-control: rgba(122, 94, 43, .07);
  --hm-control-hover: rgba(122, 94, 43, .13);
  --hm-popup: #fffdf8;
  --shadow: 0 22px 70px rgba(7, 17, 31, .18);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  font-family: Rubik, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body, #app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  color: var(--ink);
  background: radial-gradient(circle at 20% 15%, rgba(212,175,98,.12), transparent 26%),
        linear-gradient(145deg, #f6f1e7, #fffdf8 70%);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app-shell {
  width: 100%;
  height: 100%;
  grid-template-rows: 68px minmax(0, 1fr);
  isolation: isolate;
}
.app-header {
  display: grid;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: inset 0 -10px 22px rgba(16,24,21,.08);
}
.brand img { width: auto; height: 34px; max-width: 170px; object-fit: contain; object-position: left center; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: -.02em; }
.brand small {
  margin-top: 2px;
  color: #9cb6b3;
  white-space: nowrap;
}
.header-search-wrap {
  position: relative;
  margin: 0 12px;
  max-width: 100%;
  width: auto;
  margin-right: 0;
}
.search-box {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--hm-surface-10);
  border: 1px solid var(--hm-surface-14);
}
.search-box svg { flex: none; }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}
.search-kbd {
  font-size: 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 2px 6px;
}
.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(247,249,245,.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.search-suggestions[hidden] { display: none; }
.suggestion-row {
  border-radius: 11px;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
}
.suggestion-row:hover { background: rgba(16,24,21,.06); }
.suggestion-row strong, .suggestion-row small { display: block; }
.suggestion-row strong { font-size: 11px; }
.suggestion-row small {
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}
.header-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-chip {
  height: 40px;
  min-width: 92px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 40px;
  background: rgba(255,255,255,.08);
}
.stat-chip small, .stat-chip strong { display: block; }
.stat-chip small {
  color: #9cb6b3;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.stat-chip strong {
  margin-top: 3px;
  font-size: 12px;
  color: #f7fbfa;
  white-space: nowrap;
}
.map-layout { min-height: 0; }
.map-stage { min-height: 0; }
.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right { display: none !important; }
.map-glass-top {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.map-title-card, .coordinate-card, .status-card, .tile-debug-card, .sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(20,31,27,.12);
  backdrop-filter: blur(22px) saturate(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.06);
}
.map-title-card {
  max-width: 450px;
  padding: 14px 16px;
  pointer-events: auto;
}
.eyebrow {
  margin: 0 0 4px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.map-title-card h1 {
  margin: 0;
  line-height: 1;
  letter-spacing: -.04em;
}
.map-title-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.tile-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(16,24,21,.07);
  font-size: 9px;
  color: #42534d;
  max-width: 100%;
}
.tile-source-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(55,201,145,.35);
  -webkit-animation: pulse 2.4s ease-out infinite;
  animation: pulse 2.4s ease-out infinite;
}
.map-tools {
  position: absolute;
  z-index: 15;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
}
.tool-group {
  display: grid;
  gap: 5px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.tool-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.tool-btn:hover, .tool-btn.active {
  background: #101815;
  color: #fff;
}
.coordinate-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 12;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  min-width: 220px;
  font-size: 10px;
}
.coordinate-card strong { font-size: 11px; }
.coordinate-card span { color: var(--muted); }
.tile-debug-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 12;
  padding: 10px 12px;
  min-width: 190px;
  font-size: 10px;
}
.tile-debug-card strong, .tile-debug-card span { display: block; }
.tile-debug-card span {
  margin-top: 3px;
  color: var(--muted);
}
.info-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-card { padding: 16px; }
.sidebar-card h2 {
  margin: 3px 0 8px;
  letter-spacing: -.03em;
}
.sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.sidebar-card code {
  display: block;
  margin-top: 8px;
  padding: 9px;
  border-radius: 11px;
  background: rgba(16,24,21,.07);
  font-size: 10px;
  color: #27342f;
  overflow-wrap: anywhere;
}
.bounds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.bound-item {
  padding: 10px;
  border-radius: 13px;
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line);
}
.bound-item small, .bound-item strong { display: block; }
.bound-item small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.bound-item strong {
  margin-top: 4px;
  font-size: 11px;
}
.action-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.button {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  padding: 0 12px;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.button:hover { transform: translateY(-1px); }
.status-card { padding: 14px; }
.status-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.status-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.status-row.warning i { background: var(--warning); }
.status-row.danger i { background: var(--danger); }
.screensaver {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 12px;
  background: rgba(225, 234, 230, .48);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  transition: opacity .32s ease, visibility .32s ease;
}
.screensaver.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.welcome-screen {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.screen-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  background: rgba(247,249,245,.78);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.welcome-hero {
  grid-column: 1 / 7;
  grid-row: 1 / 7;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(182,221,235,.88), rgba(225,239,232,.76));
}
.welcome-hero h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 4.8vw, 70px);
  line-height: .95;
  letter-spacing: -.06em;
}
.welcome-hero p:last-child {
  max-width: 510px;
  color: #526b65;
  font-size: 12px;
  line-height: 1.6;
}
.welcome-meta {
  grid-column: 7 / 13;
  grid-row: 1 / 5;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.welcome-map {
  grid-column: 7 / 13;
  grid-row: 9 / 13;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(232,239,225,.86), rgba(166,216,229,.5));
}
.welcome-data {
  grid-column: 1 / 7;
  grid-row: 7 / 13;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  padding: 14px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mini-card small, .mini-card strong, .mini-card span { display: block; }
.mini-card small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mini-card strong {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -.03em;
}
.mini-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.welcome-map h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.welcome-map p {
  color: #526b65;
  max-width: 430px;
  font-size: 11px;
  line-height: 1.55;
}
.enter-zone {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  background: rgba(255,255,255,.64);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.progress-track {
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(16,24,21,.1);
  margin-bottom: 10px;
}
.progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-animation: shimmer 1.6s linear infinite;
  animation: shimmer 1.6s linear infinite;
}
.enter-map {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: #101815;
  color: #fff;
  font-weight: 900;
}
.abstract-map {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
}
.abstract-map::before, .abstract-map::after {
  content: "";
  position: absolute;
  height: 2px;
  border-radius: 99px;
  background: rgba(237,165,29,.55);
  box-shadow: 0 0 0 5px rgba(255,255,255,.22);
}
.abstract-map::before {
  width: 74%;
  left: -5%;
  top: 38%;
  transform: rotate(17deg);
}
.abstract-map::after {
  width: 60%;
  right: -4%;
  top: 63%;
  transform: rotate(-14deg);
}
.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #101815;
  box-shadow: 0 4px 12px rgba(16,24,21,.16);
}
.pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}
.pin::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(16,24,21,.24);
  border-radius: 50%;
  -webkit-animation: pulse 2.2s ease-out infinite;
  animation: pulse 2.2s ease-out infinite;
}
.pin.a {
  left: 26%;
  top: 38%;
}
.pin.b {
  right: 22%;
  top: 52%;
}
.pin.c {
  right: 36%;
  bottom: 22%;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 3000;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16,24,21,.92);
  color: #fff;
  font-size: 11px;
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  transition: .24s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@-webkit-keyframes pulse {0% { transform: scale(.75); opacity: .65; box-shadow: 0 0 0 0 rgba(55,201,145,.35); } 80% { transform: scale(1.5); opacity: 0; box-shadow: 0 0 0 14px rgba(55,201,145,0); } 100% { opacity: 0; }}
@keyframes pulse {0% { transform: scale(.75); opacity: .65; box-shadow: 0 0 0 0 rgba(55,201,145,.35); } 80% { transform: scale(1.5); opacity: 0; box-shadow: 0 0 0 14px rgba(55,201,145,0); } 100% { opacity: 0; }}
@-webkit-keyframes shimmer {from { -webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg); } to { -webkit-filter: hue-rotate(18deg); filter: hue-rotate(18deg); }}
@keyframes shimmer {from { -webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg); } to { -webkit-filter: hue-rotate(18deg); filter: hue-rotate(18deg); }}
.category-list, .location-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.category-row {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255,255,255,.62);
  color: var(--ink);
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  text-align: left;
  transition: .2s ease;
}
.category-row:hover {
  background: rgba(255,255,255,.86);
  transform: translateY(-1px);
}
.category-row[aria-pressed="false"] { opacity: .48; }
.category-dot {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #101815;
  font-weight: 900;
  box-shadow: inset 0 -8px 18px rgba(16,24,21,.09);
}
.category-copy strong, .category-copy small { display: block; }
.category-copy small {
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}
.category-switch {
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: rgba(16,24,21,.14);
  position: relative;
}
.category-switch::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  left: 2px;
  top: 2px;
  transition: .2s ease;
}
.category-row[aria-pressed="true"] .category-switch::after { transform: translateX(15px); }
.poi-counter {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.poi-counter span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(16,24,21,.07);
  font-size: 9px;
  color: #42534d;
}
.location-row {
  width: 100%;
  border: 0;
  border-radius: 13px;
  background: rgba(255,255,255,.6);
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  display: grid;
  grid-template-columns: 9px minmax(0,1fr);
  gap: 8px;
  align-items: start;
}
.location-row:hover { background: #fff; }
.location-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 3px;
}
.location-row strong, .location-row small { display: block; }
.location-row strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.location-row small {
  margin-top: 2px;
  color: var(--muted);
}
.poi-popup { min-width: 220px; }
.poi-popup-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.poi-popup-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--hm-text-on-accent);
  flex: none;
}
.poi-popup strong, .poi-popup small, .poi-popup span { display: block; }
.poi-popup strong {
  font-size: 13px;
  line-height: 1.22;
}
.poi-popup small {
  margin-top: 3px;
  font-size: 10px;
}
.poi-popup span {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 9px;
}
.poi-popup a {
  margin-top: 9px;
  display: inline-flex;
  text-decoration: none;
  font-weight: 850;
  font-size: 10px;
}
.maplibregl-popup-content {
  border-radius: 16px !important;
  padding: 0 !important;
  background: var(--hm-popup) !important;
  color: var(--ink) !important;
  border: 0px solid var(--line) !important;
  box-shadow: 0 18px 50px rgba(7,17,31,.18) !important;
}
.maplibregl-popup-tip { border-top-color: var(--hm-popup) !important; border-bottom-color: var(--hm-popup) !important; }
.maplibregl-popup-close-button { color: var(--ink) !important; background: transparent !important; }
.poi-popup { color: var(--ink) !important; }
.poi-popup small { color: var(--muted) !important; }
.poi-popup span { background: var(--hm-control) !important; color: var(--ink) !important; }
.poi-popup a { color: var(--accent-2) !important; }
html[data-theme="dark"] {
  --hm-panel: rgba(16, 21, 22, .94);
  --hm-panel-strong: rgba(20, 26, 27, .98);
  --hm-panel-soft: rgba(24, 30, 31, .96);
  --hm-control: rgba(212, 175, 98, .08);
  --hm-control-hover: rgba(212, 175, 98, .15);
  --hm-popup: #141a1b;
}
html[data-theme="dark"] .maplibregl-popup-content { color: #edf7f4 !important; border-color: rgba(212,175,98,.22) !important; box-shadow: 0 18px 50px rgba(0,0,0,.42) !important; }
html[data-theme="dark"] .maplibregl-popup-tip { border-top-color: var(--hm-popup) !important; border-bottom-color: var(--hm-popup) !important; }
.header-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.filter-button {
  height: 40px;
  min-width: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 850;
  font-size: 11px;
}
.filter-button:hover, .filter-button[aria-expanded="true"] {
  background: #f8faf6;
  color: #101815;
}
.filter-button b {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.header-filter-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 55;
  width: min(380px, calc(100vw - 34px));
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(247,249,245,.95);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.header-filter-popover[hidden] { display: none !important; }
.filter-popover-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.filter-popover-head small, .filter-popover-head strong { display: block; }
.filter-popover-head small {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.filter-popover-head strong {
  margin-top: 2px;
  font-size: 15px;
}
.filter-popover-head span {
  font-size: 9px;
  color: var(--muted);
}
.header-category-list { margin-top: 0 !important; }
.search-suggestions {
  max-height: min(480px, calc(100vh - 112px));
  overflow: auto;
}
.suggestion-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.suggestion-row[aria-selected="true"], .suggestion-row.is-active {
  background: #101815 !important;
  color: #fff;
}
.suggestion-row[aria-selected="true"] small, .suggestion-row.is-active small { color: rgba(255,255,255,.72); }
.suggestion-row em {
  flex: none;
  font-style: normal;
  font-size: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(16,24,21,.08);
  color: var(--muted);
}
.suggestion-row[aria-selected="true"] em, .suggestion-row.is-active em {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.rotation-disabled-note {
  font-size: 9px;
  color: #9cb6b3;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .header-search-row { grid-template-columns: 1fr; }
  .filter-button { width: 100%; }
  .header-filter-popover {
    left: 0;
    right: 0;
    width: auto;
  }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-rows: auto minmax(0, 1fr); }
  .map-layout { grid-template-columns: 1fr; }
  .welcome-screen {
    display: flex;
    flex-direction: column;
    overflow: auto;
    scrollbar-width: none;
  }
  .welcome-screen::-webkit-scrollbar { display: none; }
  .screen-card { min-height: 190px; }
  .welcome-hero { min-height: 420px; }
  .welcome-map { min-height: 420px; }
  .welcome-data, .welcome-meta { min-height: 220px; }
}
@media (max-width: 720px) {
  .screensaver { padding: 10px; }
  .header-stats { display: none; }
  .welcome-meta, .welcome-data { grid-template-columns: 1fr; }
  .tile-debug-card { display: none; }
}

/* v26 shared SVG sprite icon system */
.hm-sprite-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  fill: currentColor;
  color: currentColor;
  vertical-align: -.125em;
  pointer-events: none;
}
.hm-brand-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  fill: currentColor;
  color: currentColor;
  vertical-align: -.125em;
  pointer-events: none;
}
.tool-btn .hm-sprite-icon { width: 17px; height: 17px; }
.theme-toggle-btn .hm-sprite-icon { width: 15px; height: 15px; }
.sidebar-toggle-btn .hm-sprite-icon { width: 19px; height: 19px; }
.search-leading-icon { width: 17px; height: 17px; opacity: .8; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
