/* Public field only. Account, pairing, analysis, and the shared audio dock keep
   their own styles. A quiet map surface with one, continuous telemetry line. */
html[data-sensor-view="map"] {
  --sensor-header-height: 72px;
  --sensor-telemetry-height: 32px;
  --sensor-field-top: calc(var(--sensor-header-height) + var(--sensor-telemetry-height));
  --sensor-field-line: rgba(151, 212, 198, .23);
}
html[data-sensor-view="map"] body .sensor-topbar {
  position: fixed;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: var(--sensor-header-height);
  min-height: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--sensor-field-line);
  background: rgba(2, 8, 11, .97);
  box-shadow: none;
}
html[data-sensor-view="map"] body .sensor-home-back {
  margin: 0;
  min-width: 78px;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 10px;
  border-color: var(--sensor-field-line);
  background: rgba(130, 190, 177, .045);
  box-shadow: inset 0 1px rgba(222, 255, 247, .03);
}
html[data-sensor-view="map"] body .sensor-map-brand {
  display: block;
  color: #dfece8;
  font: 500 22px/1.2 var(--font-ja);
  letter-spacing: .12em;
  white-space: nowrap;
}
html[data-sensor-view="map"] body .sensor-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  min-width: 0;
  height: 100%;
  gap: 22px;
  /* Reserve both the guide replay and BGM buttons so they do not cover nav links. */
  padding-right: 112px;
}
html[data-sensor-view="map"] body .sensor-topbar nav {
  display: flex;
  align-self: stretch;
  justify-content: end;
  flex-wrap: nowrap;
  gap: clamp(16px, 2.1vw, 34px);
}
html[data-sensor-view="map"] body .sensor-topbar nav a {
  position: relative;
  display: grid;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  color: #aebbb9;
  background: none;
  font: 600 11px/1.4 var(--font-ja);
  letter-spacing: .07em;
  white-space: nowrap;
  place-items: center;
  box-shadow: none;
}
html[data-sensor-view="map"] body .sensor-topbar nav a[aria-current] { color: #a5ecda; }
html[data-sensor-view="map"] body .sensor-topbar nav a:focus-visible { outline: 1px solid #a5ecda; outline-offset: -5px; }
html[data-sensor-view="map"] body .sensor-topbar nav a[aria-current]::after {
  position: absolute;
  inset: auto 0 13px;
  height: 1px;
  content: "";
  background: #a5ecda;
}
html[data-sensor-view="map"] body .sensor-topbar nav :is([data-nav="terms"], .sensor-nav-logout, a[href="../#world"]) { display: none; }
html[data-sensor-view="map"] body .gaia-mode-entry-guide-replay { top: 13px; }

/* Keep all telemetry values and their focusable explanations. */
html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync {
  position: fixed;
  inset: var(--sensor-header-height) 0 auto;
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-width: 0;
  height: var(--sensor-telemetry-height);
  padding: 0 30px;
  border: 0;
  border-bottom: 1px solid var(--sensor-field-line);
  background: rgba(2, 12, 15, .96);
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
  pointer-events: auto;
}
html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync::before,
html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync footer { display: none; }
html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync header {
  display: flex;
  align-items: center;
  gap: 12px;
}
html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync header span { color: #92d9c6; font: 600 9px/1 var(--font-console); letter-spacing: .09em; }
html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync header span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: #87e4c7;
  box-shadow: 0 0 0 3px rgba(135, 228, 199, .07), 0 0 8px rgba(135, 228, 199, .3);
  content: "";
}
html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync header strong { color: #d7e6e1; font: 500 11px/1 var(--font-console); text-shadow: none; }
html[data-sensor-view="map"] body .sensor-topbar .sensor-depth-track {
  position: static;
  grid-column: 2;
  grid-row: 1;
  height: 2px;
  margin: 0;
  background: rgba(172, 205, 198, .16);
}
html[data-sensor-view="map"] body .sensor-topbar .sensor-depth-track i { box-shadow: none; background: linear-gradient(90deg, #70e3b9, #72d9dd 45%, #99a1ed 72%, #b887e8); }
html[data-sensor-view="map"] body .sensor-topbar .sensor-sync-stats { display: flex; gap: 20px; grid-column: 3; grid-row: 1; margin: 0; }
html[data-sensor-view="map"] body .sensor-topbar .sensor-sync-stats span { display: flex; align-items: baseline; gap: 6px; min-height: 0; padding: 0; border: 0; font: 500 8px/1 var(--font-console); color: #8baba5; }
html[data-sensor-view="map"] body .sensor-topbar .sensor-sync-stats b { display: inline; margin: 0; color: #cedbd7; font: 500 13px/1 var(--font-console); }
html[data-sensor-view="map"] .sensor-sync-stats .sensor-sync-metric::after { left: auto; right: 0; }

#map.sensor-public-map:not([hidden]) { top: var(--sensor-field-top); height: calc(100dvh - var(--sensor-field-top)); }
#map .sensor-world-map {
  background: radial-gradient(ellipse at 20% 45%, rgba(12, 82, 65, .16), transparent 66%), #020c10;
}
#map .sensor-world-map::before, #map .sensor-world-grid { display: none; }
#map .sensor-world-map::after { opacity: .18; background-size: 80px 80px; }
#map .sensor-sense-field { opacity: .74; }
#map .sensor-resonance-link { opacity: calc(var(--resonance-strength, .4) * .42); filter: none; }
#map .sensor-map-marker:not([data-location-editing="true"]) { box-shadow: 0 0 0 1px rgba(var(--sensor-accent-rgb), .55), 0 0 var(--sensor-glow) rgba(var(--sensor-accent-rgb), .23); }
#map .sensor-map-marker[aria-current]:not([data-location-editing="true"]) { box-shadow: 0 0 0 1.5px rgba(var(--sensor-accent-rgb), .95), 0 0 0 5px rgba(var(--sensor-accent-rgb), .09), 0 0 32px rgba(var(--sensor-accent-rgb), .38); }
#map .sensor-map-marker-state { padding: 3px 6px; border-color: rgba(var(--signal-rgb), .3); font-weight: 500; font-size: 7px; box-shadow: none; }
#map .sensor-map-marker[data-active="true"] .sensor-map-marker-state { border-color: rgba(var(--sensor-accent-rgb), .3); }
#map .sensor-page-head { top: 22px; left: 30px; right: auto; width: 440px; margin: 0; container-type: inline-size; }
#map .sensor-page-head > div { padding: 12px 16px 14px; border-left: 0; background: none; }
#map .sensor-page-head p { margin-bottom: 10px; color: #8fc6b8; font-size: 8px; letter-spacing: .13em; }
#map .sensor-page-head h1 { margin: 0; color: #e0eeea; font: 500 29px/1.25 var(--font-ja); letter-spacing: .13em; white-space: nowrap; }
#map .sensor-map-lead { top: 110px; left: 47px; max-width: 365px; margin: 0; padding: 0; border: 0; color: #a6bbb5; background: linear-gradient(90deg, rgba(2, 12, 15, .72), transparent); font: 400 10px/1.9 var(--font-ui-ja); box-shadow: none; }
#map .sensor-map-hud-top { bottom: 13px; left: 24px; right: 24px; color: #6a9489; font-size: 7px; opacity: .65; }
#map .sensor-map-basis { bottom: 30px; right: 24px; color: #608278; font-size: 7px; opacity: .6; }

/* Small, consistent map tools, with full 44px hit areas. */
#map .sensor-map-tool { position: absolute; z-index: 9; right: 26px; display: grid; place-items: center; width: 46px; min-width: 46px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--sensor-field-line); border-radius: 8px; color: #c6dcd5; background: rgba(3, 15, 19, .86); box-shadow: inset 0 1px rgba(229, 255, 247, .03); cursor: pointer; }
#map #public-map-search-open { top: 18px; }
#map #refresh-map { top: 216px; right: 26px; width: 46px; min-width: 46px; height: 44px; min-height: 44px; border-radius: 8px; }
#map #refresh-map span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
#map .sensor-map-navigation { top: 74px; right: 26px; display: grid; grid-template-columns: 46px; gap: 0; padding: 0; border: 1px solid var(--sensor-field-line); border-radius: 8px; background: rgba(3, 15, 19, .86); box-shadow: none; }
#map .sensor-map-navigation button { display: grid; place-items: center; width: 44px; min-width: 44px; min-height: 44px; height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--sensor-field-line); border-radius: 0; color: #c6dcd5; background: none; }
#map .sensor-map-navigation #public-map-reset { min-height: 44px; border: 0; }
#map .sensor-map-navigation output { position: absolute; top: calc(100% + 65px); left: 0; width: 100%; min-height: 0; padding: 0; color: #73978b; font-size: 8px; pointer-events: none; }
#map :is(.sensor-map-tool, .sensor-map-navigation button) svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
#map :is(.sensor-map-tool, .sensor-map-navigation button):hover { color: #c6ffeb; background: rgba(105, 173, 151, .1); }
#map :is(button, a):focus-visible { outline: 2px solid #a4e9d2; outline-offset: 3px; }

/* Selected node: identity, readings, then actions; no nested card chrome. */
#map .sensor-map-card {
  top: 28%; right: 92px; bottom: auto; left: auto;
  width: clamp(310px, 23vw, 350px); min-height: 0;
  max-height: calc(100% - 140px);
  margin: 0; padding: 12px 16px 16px;
  overflow-y: auto;
  border: 1px solid rgba(164, 216, 199, .3);
  border-radius: 10px;
  background: rgba(3, 16, 20, .92);
  box-shadow: 0 12px 40px rgba(0, 5, 9, .28), inset 0 1px rgba(234, 255, 246, .035);
  backdrop-filter: blur(12px);
}
@media (min-width: 1280px) { #map .sensor-map-card { left: calc(50% + 96px); right: auto; } }
#map .sensor-map-card::before, #map .sensor-map-card::after { display: none; }
#map .sensor-map-card-toolbar { height: 32px; margin: 0 0 12px; padding: 0; border: 0; }
#map .sensor-console-label { margin: 0; color: #8cd3c0; font: 500 8px/1 var(--font-console); letter-spacing: .13em; }
#map .sensor-map-card-actions { gap: 0; margin-right: -9px; }
#map .sensor-map-card-toolbar button { position: relative; display: grid; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; color: #91b8aa; background: none; box-shadow: none; font-size: 0; }
#map .sensor-map-card-toolbar button:hover { color: #d6fff0; background: rgba(144, 207, 185, .07); }
#map .sensor-map-card .sensor-map-card-share { display: none; }
#map .sensor-map-card :is(.sensor-map-card-expand, .sensor-map-card-close)::before,
#map .sensor-map-card :is(.sensor-map-card-expand, .sensor-map-card-close)::after { position: absolute; top: 50%; left: 50%; width: 12px; height: 1px; content: ""; background: currentColor; transform: translate(-50%, -50%); }
#map .sensor-map-card .sensor-map-card-expand::after { transform: translate(-50%, -50%) rotate(90deg); }
#map .sensor-map-card .sensor-map-card-expand[aria-expanded="true"]::after { opacity: 0; }
#map .sensor-map-card .sensor-map-card-close::before { transform: translate(-50%, -50%) rotate(45deg); }
#map .sensor-map-card .sensor-map-card-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
#map .sensor-map-card .sensor-map-owner { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 0; border: 0; border-radius: 0; background: none; }
#map .sensor-map-card .sensor-map-owner > :is(.sensor-owner-avatar, .sensor-owner-profile-trigger) { width: 48px; height: 48px; border-radius: 50%; }
#map .sensor-owner-profile-trigger::after { display: none; }
#map .sensor-map-owner small { color: #9fafaa; font: 500 10px/1.4 var(--font-ui-ja); }
#map .sensor-map-owner h2 { margin-top: 4px; color: #e5eeeb; font: 500 15px/1.4 var(--font-ui-ja); letter-spacing: .015em; }
#map .sensor-map-owner .sensor-state { grid-column: auto; color: #a3dccc; font: 500 10px/1.2 var(--font-console); letter-spacing: .02em; }
#map .sensor-map-owner .sensor-state[data-state="DEMO"] { color: #cfbd86; }
#map .sensor-map-card .sensor-observation-hud { margin: 16px 0 0; padding: 13px 0 0; overflow: visible; border: 0; border-top: 1px solid var(--sensor-field-line); border-radius: 0; background: none; }
#map .sensor-observation-hud > header { display: none; }
#map .sensor-metric-hud-grid { gap: 0; }
#map .sensor-metric-hud-grid article { padding: 0 8px; border-color: rgba(160, 201, 187, .12); background: none; }
#map .sensor-metric-hud-grid article:first-child { padding-left: 0; }
#map .sensor-metric-hud-grid article:last-child { padding-right: 0; }
#map .sensor-metric-hud-grid small { min-height: 14px; color: #90aaa2; font: 500 10px/1.4 var(--font-ui-ja); letter-spacing: 0; }
#map .sensor-metric-hud-grid small::after { display: none; }
#map .sensor-metric-hud-grid strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; margin-top: 7px; color: #e1ebe6; font: 500 16px/1.3 var(--font-console); letter-spacing: -.03em; }
#map .sensor-metric-hud-grid strong > span { white-space: nowrap; }
#map .sensor-metric-hud-grid .sensor-reading-unit { color: #adc0b8; font: 500 10px/1.3 var(--font-ui-ja); letter-spacing: 0; }
#map .sensor-sparkline { display: none; }
#map .sensor-relationship-bar { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; margin-top: 17px; padding: 0; border: 0; }
#map .sensor-relationship-bar button { min-height: 44px; padding: 0 13px; border: 1px solid var(--sensor-field-line); border-radius: 7px; color: #c8d8d0; background: rgba(117, 163, 148, .035); box-shadow: none; font: 500 11px/1.4 var(--font-ui-ja); }
#map .sensor-relationship-bar .sensor-like-trigger { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; color: #adcec1; background: none; font: 400 24px/1 var(--font-ja); }
#map .sensor-relationship-bar .sensor-like-trigger[aria-pressed="true"] { color: #f0a2b3; }
#map .sensor-relationship-bar .sensor-analyze-trigger::after { right: 13px; font-size: 16px; color: #87bbaa; }
#map .sensor-map-card[data-expanded="false"] > :is(.sensor-node-meta, .sensor-oracle, .sensor-public-location-action, .sensor-map-socials),
#map .sensor-map-card[data-expanded="false"] > p:not(.sensor-demo-disclosure) { display: none; }
#map .sensor-map-card .sensor-demo-disclosure { margin: 10px 0 0; padding: 0; border: 0; color: #b5a982; background: none; font: 400 10px/1.5 var(--font-ui-ja); }
#map .sensor-map-card[data-expanded="true"] { top: 18px; bottom: auto; width: clamp(310px, 23vw, 350px); max-height: calc(100% - 120px); }
#map .sensor-map-card[data-expanded="true"] .sensor-sparkline { display: block; margin-top: 10px; }
#map .sensor-map-card[data-expanded="true"] .sensor-map-card-share { display: block; width: auto; padding: 0 8px; font: 500 10px/1 var(--font-ui-ja); }
.sensor-selection-link { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; opacity: 0; }
.sensor-selection-link[data-visible="true"] { opacity: 1; }
.sensor-selection-link path { fill: none; stroke: rgba(144, 215, 191, .45); stroke-width: .8; }
#map .sensor-map-console:has(.is-dragging) .sensor-selection-link { opacity: 0; }

#map .sensor-world-map > .sensor-map-directory-toggle { width: 44px; min-height: 130px; padding: 14px 9px; border-color: var(--sensor-field-line); border-radius: 10px 0 0 10px; color: #cfddd6; background: rgba(3, 16, 19, .88); box-shadow: none; font: 500 11px/1.6 var(--font-ui-ja); letter-spacing: .12em; }
#map .sensor-world-map > .sensor-map-directory-toggle b { background: none; color: #a0c8b9; font-size: 11px; }
#map .sensor-map-directory, #map .sensor-map-directory[data-open="true"] { position: absolute; top: 16px; bottom: 20px; border-color: var(--sensor-field-line); border-radius: 12px 0 0 12px; background: rgba(3, 17, 21, .97); box-shadow: -20px 0 64px rgba(0, 5, 8, .34); }
#map .sensor-public-card { border-radius: 8px; box-shadow: none; background: rgba(107, 172, 147, .035); }
#map .sensor-public-card[aria-current] { border-color: #679f8d; background: rgba(107, 172, 147, .08); }
#map:has(.sensor-map-directory[data-open="true"]) .sensor-map-card { visibility: hidden; pointer-events: none; }
#map #public-sensor-directory-close { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
#map .sensor-map-filters button { min-height: 44px; font-size: 10px; }

#map .sensor-oracle-receipt[hidden] { display: none; }

@media (min-width: 761px) and (max-width: 1150px) {
  html[data-sensor-view="map"] body .sensor-topbar { gap: 18px; padding-inline: 18px; }
  html[data-sensor-view="map"] body .sensor-map-brand { font-size: 18px; letter-spacing: .04em; }
  html[data-sensor-view="map"] body .sensor-topbar nav { gap: 14px; }
  html[data-sensor-view="map"] body .sensor-topbar nav a { font-size: 10px; letter-spacing: 0; }
  html[data-sensor-view="map"] body .sensor-topbar-actions { gap: 15px; }
  #map .sensor-page-head { width: 310px; }
  #map .sensor-map-card { right: 76px; width: 310px; }
}
@media (min-width: 761px) and (max-width: 950px) {
  html[data-sensor-view="map"] body .sensor-topbar { grid-template-columns: auto minmax(0, 1fr); }
  html[data-sensor-view="map"] body .sensor-map-brand { display: none; }
  #map .sensor-map-card { right: 68px; width: 280px; }
  #map .sensor-page-head { width: 270px; }
  #map .sensor-page-head h1 { font-size: 25px; }
}
@media (max-width: 760px) {
  html[data-sensor-view="map"] { --sensor-header-height: 104px; --sensor-telemetry-height: 30px; }
  html[data-sensor-view="map"] body .sensor-topbar { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 48px 44px; gap: 0 14px; padding: 6px 14px; }
  html[data-sensor-view="map"] body .sensor-map-brand { display: none; }
  html[data-sensor-view="map"] body .sensor-home-back { grid-row: 1; min-width: 72px; }
  html[data-sensor-view="map"] body .sensor-topbar-actions { display: contents; }
  html[data-sensor-view="map"] body .sensor-topbar nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; width: 100%; gap: 8px; overflow-x: auto; }
  html[data-sensor-view="map"] body .sensor-topbar nav a { flex: 0 0 auto; min-height: 44px; padding: 0; font-size: 10px; letter-spacing: 0; }
  html[data-sensor-view="map"] body .sensor-topbar nav a[aria-current]::after { bottom: 1px; }
  html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync { grid-template-columns: auto minmax(30px, 1fr) auto; padding: 0 15px; gap: 13px; }
  html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync header { gap: 7px; }
  html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync header span { font-size: 8px; letter-spacing: .03em; }
  html[data-sensor-view="map"] body .sensor-topbar .sensor-global-sync header strong { font-size: 10px; }
  html[data-sensor-view="map"] body .sensor-topbar .sensor-sync-stats span { font-size: 7px; }
  html[data-sensor-view="map"] body .sensor-topbar .sensor-sync-stats b { font-size: 10px; }
  html[data-sensor-view="map"] body .sensor-topbar .sensor-sync-stats span:not(:first-child) { display: none; }
  #map .sensor-page-head { top: 17px; left: 16px; right: auto; width: calc(100% - 136px); }
  #map .sensor-page-head > div { padding: 5px 10px 9px; }
  #map .sensor-page-head h1 { font-size: min(23px, 7.6cqw); letter-spacing: .04em; }
  #map .sensor-page-head p { font-size: 6px; letter-spacing: .04em; margin-bottom: 8px; }
  #map .sensor-map-lead { display: block; top: 86px; left: 26px; width: calc(100% - 105px); font-size: 9px; line-height: 1.6; }
  #map .sensor-map-lead br { display: none; }
  #map .sensor-map-tool, #map .sensor-map-navigation { right: 14px; }
  #map .sensor-map-navigation { top: 74px; }
  #map #refresh-map { top: 216px; right: 14px; }
  #map .sensor-map-navigation output { display: none; }
  #map .sensor-world-map > .sensor-map-directory-toggle { position: absolute; top: 18px; right: 68px; display: grid; grid-template-columns: 12px auto; gap: 3px; width: 44px; min-height: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--sensor-field-line); border-radius: 8px; writing-mode: horizontal-tb; transform: none; }
  #map .sensor-world-map > .sensor-map-directory-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #map .sensor-world-map > .sensor-map-directory-toggle::before { position: static; display: block; width: 11px; height: 9px; border: 0; background: repeating-linear-gradient(to bottom, #82b5a2 0 1px, transparent 1px 4px); transform: none; content: ""; }
  #map .sensor-world-map > .sensor-map-directory-toggle b { margin: 0; min-width: 0; padding: 0; border: 0; font-size: 10px; }
  #map .sensor-map-card, #map .sensor-map-card[data-expanded="false"] {
    top: auto; right: 12px; bottom: 14px; left: 12px;
    width: auto; max-height: min(290px, calc(100% - 120px));
    padding: 8px 14px 12px; border-radius: 10px;
    overflow-y: auto; background: rgba(3, 16, 20, .96);
  }
  #map .sensor-map-card[data-expanded="false"] > :is(.sensor-observation-hud, .sensor-relationship-bar, .sensor-demo-disclosure) { display: block; }
  #map .sensor-map-card[data-expanded="false"] > .sensor-relationship-bar { display: grid; }
  #map .sensor-map-card-toolbar { height: 27px; margin-bottom: 10px; }
  #map .sensor-map-card .sensor-map-owner { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  #map .sensor-map-card .sensor-map-owner > :is(.sensor-owner-avatar, .sensor-owner-profile-trigger) { width: 44px; height: 44px; }
  #map .sensor-map-owner h2 { font-size: 14px; }
  #map .sensor-map-card .sensor-observation-hud { margin-top: 12px; padding-top: 10px; }
  #map .sensor-metric-hud-grid strong { font-size: 15px; }
  #map .sensor-metric-hud-grid article { padding-inline: 8px; }
  #map .sensor-relationship-bar { margin-top: 12px; }
  #map .sensor-map-card[data-expanded="true"] { top: 10px; bottom: 14px; width: auto; max-height: none; }
  #map .sensor-map-location-editor { top: auto; bottom: 14px; left: 12px; right: 12px; width: auto; max-height: min(290px, 48dvh); overflow-y: auto; padding: 14px; border-radius: 10px; transform: none; }
  #map .sensor-selection-link { display: none; }
  #map .sensor-map-directory, #map .sensor-map-directory[data-open="true"] { top: 12px; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: none; border-radius: 12px; }
  #map .sensor-map-hud-top, #map .sensor-map-basis { display: none; }
}
@media (max-width: 760px) and (max-height: 650px) {
  #map .sensor-page-head { top: 11px; }
  #map .sensor-map-lead { display: none; }
  #map .sensor-map-card[data-expanded="false"] { bottom: 10px; max-height: 235px; padding-bottom: 10px; }
  #map .sensor-map-card[data-expanded="false"] .sensor-map-card-toolbar { height: 23px; margin-bottom: 8px; }
  #map .sensor-map-card .sensor-observation-hud { margin-top: 9px; padding-top: 8px; }
  #map .sensor-relationship-bar { margin-top: 9px; }
  #map .sensor-map-card .sensor-demo-disclosure { margin-top: 7px; font-size: 9px; }
  #map .sensor-map-card[data-expanded="false"] .sensor-map-card-toolbar { position: sticky; top: -8px; z-index: 1; background: #031014; }
}
@media (prefers-reduced-motion: reduce) {
  #map .sensor-selection-link, #map .sensor-map-card, #map .sensor-map-directory { transition: none; }
}

/* In short landscape windows the tall directory tab covers the zoom controls.
   Reuse the compact directory control beside Search, outside the zoom rail. */
@media (min-width: 761px) and (max-height: 430px) {
  #map .sensor-world-map > .sensor-map-directory-toggle {
    position: absolute; top: 18px; right: 82px; display: grid;
    grid-template-columns: 12px auto; gap: 3px;
    width: 44px; min-height: 44px; height: 44px; padding: 0 8px;
    border: 1px solid var(--sensor-field-line); border-radius: 8px;
    writing-mode: horizontal-tb; transform: none;
  }
  #map .sensor-world-map > .sensor-map-directory-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #map .sensor-world-map > .sensor-map-directory-toggle::before { position: static; display: block; width: 11px; height: 9px; border: 0; background: repeating-linear-gradient(to bottom, #82b5a2 0 1px, transparent 1px 4px); transform: none; content: ""; }
  #map .sensor-world-map > .sensor-map-directory-toggle b { margin: 0; min-width: 0; padding: 0; border: 0; font-size: 10px; }
}
