/* FullMap Web: the app's dark glass (PanelColor #161A1D at 90 %), its surfaces and its blue (MainActivity's theme). */
:root {
  --panel: rgba(22, 26, 29, 0.9);
  --panel-solid: #15191c;
  --surface: #15191c;
  --surface-variant: #232a30;
  --background: #101315;
  --ink: #f2f2f2;
  --muted: #9aa3aa;
  --faint: rgba(242, 242, 242, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --primary: #7cc4ff;
  --on-primary: #00243d;
  --primary-container: #1c3a55;
  --on-primary-container: #d3e8ff;
  --danger: #ff6b5e;
  --good: #66bb6a;
  --warn: #ffb74d;
  --rail: 76px;
  --drawer: 372px;
  --layers: 340px;
  --gap: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--background); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#map { position: fixed; inset: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
input[type="text"], input[type="password"], input[type="search"], input[type="url"], select {
  width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); outline: none;
}
input:focus-visible, select:focus-visible { border-color: var(--primary); }
input[type="range"] { accent-color: var(--primary); width: 100%; }
a { color: var(--primary); }
.note { color: var(--muted); font-size: 12px; }
.error { color: var(--danger); }
.icon { display: inline-flex; width: 20px; height: 20px; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* Buttons, as the app's: filled for the main action, outlined chips for the rest. */
.primary, .secondary, .chip, .danger-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 22px; padding: 9px 16px; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.primary { background: var(--primary); color: var(--on-primary); }
.primary:hover { background: #9ad1ff; }
.primary:disabled { opacity: 0.45; cursor: default; }
.secondary { border: 1px solid rgba(124, 196, 255, 0.5); color: var(--primary); }
.secondary:hover { background: rgba(124, 196, 255, 0.1); }
.danger-button { border: 1px solid rgba(255, 107, 94, 0.5); color: var(--danger); }
.danger-button:hover { background: rgba(255, 107, 94, 0.1); }
.chip { padding: 6px 13px; font-weight: 500; font-size: 13px; border: 1px solid var(--line); color: var(--ink); }
.chip:hover { background: var(--faint); }
.chip.on { background: var(--primary-container); border-color: var(--primary); color: var(--on-primary-container); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); flex: none; }
.icon-button:hover { background: var(--faint); }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 24l7-11 4 6 3-4 8 9z' fill='%237cc4ff'/%3E%3C/svg%3E") center / 80% no-repeat; flex: none; }

/* ---- Keys ---- */
.unlock {
  position: fixed; z-index: 10; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px));
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 10px;
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.unlock .brand-row { display: flex; align-items: center; gap: 12px; }
.unlock h1 { margin: 0; font-size: 22px; }
.unlock p { margin: 0; }
.unlock label { display: grid; gap: 6px; font-weight: 600; }

/* ---- The rail ---- */
.rail {
  position: fixed; z-index: 5; top: 0; left: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 14px 0; background: var(--panel); border-right: 1px solid var(--line); backdrop-filter: blur(14px);
}
.rail .logo { margin-bottom: 12px; }
.rail-gap { flex: 1; }
.rail-button { width: 64px; padding: 9px 0 7px; border-radius: 14px; display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.rail-button .icon { width: 22px; height: 22px; }
.rail-button:hover { background: var(--faint); color: var(--ink); }
.rail-button.on { background: var(--primary-container); color: var(--on-primary-container); }

/* ---- The drawer (left) ---- */
.drawer {
  position: fixed; z-index: 4; top: 0; bottom: 0; left: var(--rail); width: var(--drawer); display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.drawer > header { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px 16px; }
.drawer > header h2 { margin: 0; font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer > header .back { margin-left: -6px; }
.drawer .subtitle { color: var(--muted); font-size: 13px; padding: 0 16px; margin-top: -6px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.drawer-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.drawer-foot .primary { flex: 1; }
.section { display: flex; flex-direction: column; gap: 8px; }
.section-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
.section-title .icon { width: 15px; height: 15px; }
.segments { display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); }
.segments button { flex: 1; padding: 7px 10px; border-radius: 11px; font-weight: 600; font-size: 13px; color: var(--muted); }
.segments button.on { background: var(--surface-variant); color: var(--ink); }
.segments .count { opacity: 0.7; font-weight: 500; }

/* Library cards. */
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.card-item {
  display: grid; grid-template-columns: 6px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px 10px 0; border-radius: 14px;
  background: var(--surface-variant); cursor: pointer; overflow: hidden; border: 1px solid transparent;
}
.card-item:hover { border-color: rgba(124, 196, 255, 0.35); }
.card-item.on { border-color: var(--primary); }
.card-item .bar { align-self: stretch; }
.card-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-item .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-item .meta b { color: var(--ink); font-weight: 600; }
.card-item .text { min-width: 0; }
.badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--primary-container); color: var(--on-primary-container); }
.empty { color: var(--muted); padding: 18px 4px; text-align: center; }

/* Detail views. */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface-variant); border-radius: 12px; padding: 8px 10px; }
.stat .k { color: var(--muted); font-size: 11px; }
.stat .v { font-weight: 700; font-size: 15px; }
.coords { display: grid; gap: 2px; }
.coords button { text-align: left; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; }
.coords button:hover { background: var(--faint); }
.terrain-row { display: flex; gap: 10px; align-items: center; }
.terrain-row canvas { flex: none; cursor: pointer; border-radius: 12px; }
.terrain-row canvas:hover { background: var(--faint); }
.values { display: grid; gap: 3px; flex: 1; }
.value-row { display: grid; grid-template-columns: 12px 84px 1fr; gap: 8px; align-items: center; font-size: 13px; }
.value-row .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); }
.value-row .name { color: var(--muted); }
.value-row .val { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a, .links button { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 14px; border: 1px solid rgba(124, 196, 255, 0.5); color: var(--primary); text-decoration: none; }
.links .icon { width: 14px; height: 14px; }
.wiki { display: flex; gap: 10px; font-size: 13px; }
.wiki img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.swatches button.on { border-color: var(--ink); }
.profile { position: relative; }
.profile canvas { width: 100%; height: 150px; display: block; cursor: crosshair; }
.profile .readout { position: absolute; top: 4px; right: 6px; font-size: 12px; color: var(--muted); pointer-events: none; text-align: right; }
.weather-now { display: flex; align-items: center; gap: 12px; }
.weather-now .big { font-size: 30px; font-weight: 700; }
.days { display: grid; gap: 2px; }
.day { display: grid; grid-template-columns: 84px 26px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; font-size: 13px; cursor: pointer; }
.day:hover, .day.on { background: var(--faint); }
.day .t { text-align: right; font-weight: 600; }
.day .t span { color: var(--muted); font-weight: 500; }
.day .wet { color: #64b5f6; font-size: 12px; }
.hourly { position: relative; }
.hourly canvas { width: 100%; height: 160px; display: block; cursor: crosshair; }

/* Settings. */
.setting { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.setting .label { display: grid; }
.setting .label span:last-child { color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: #3a434a; transition: background 0.15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c9d1d7; transition: transform 0.15s, background 0.15s; }
.switch input:checked + span { background: var(--primary-container); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--primary); }
.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.slider-row input { grid-column: 1 / -1; }
.slider-row .v { font-weight: 600; }

/* ---- Search ---- */
.search {
  position: fixed; z-index: 3; top: var(--gap); left: calc(var(--left) + var(--gap)); width: clamp(200px, calc(100vw - var(--left) - var(--right) - 290px), 440px);
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 48px; border-radius: 24px; background: var(--panel);
  backdrop-filter: blur(14px); box-shadow: var(--shadow); transition: left 0.2s;
}
/* With the layers open their own header closes them: the pills step aside and the search takes the room. */
body.layers-open .search { width: clamp(200px, calc(100vw - var(--left) - var(--right) - 2 * var(--gap)), 440px); }
.search input { border: none; background: none; padding: 0; height: 100%; font-size: 15px; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.results {
  position: absolute; top: 54px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--panel-solid);
  border-radius: 18px; box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; border: 1px solid var(--line);
}
.results li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.results li:hover, .results li.on { background: var(--faint); }
.results .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .where { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .group { grid-template-columns: 1fr; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; cursor: default; padding: 6px 10px 2px; }
.results .group:hover { background: none; }
.results .icon { color: var(--primary); }

/* ---- Top right ---- */
.top-right { position: fixed; z-index: 3; top: var(--gap); right: var(--gap); display: flex; gap: 8px; transition: right 0.2s; }
body.layers-open .top-right { display: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--panel); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-weight: 600; }
.pill:hover { background: rgba(35, 42, 48, 0.95); }
.pill.on { background: var(--primary-container); color: var(--on-primary-container); }
.sync .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.sync.busy .dot { background: var(--warn); animation: pulse 1s infinite alternate; }
.sync.error .dot { background: var(--danger); }
.sync #sync-text { font-weight: 500; font-size: 13px; color: var(--muted); }
@keyframes pulse { to { opacity: 0.3; } }

/* ---- Layers (right) ---- */
.layers {
  position: fixed; z-index: 4; top: 0; right: 0; bottom: 0; width: var(--layers); display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.layers > header { display: flex; gap: 8px; align-items: center; padding: 14px 12px 10px 14px; }
.layers > header .segments { flex: 1; }
.layers-body { flex: 1; overflow-y: auto; padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: grid; gap: 6px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); text-align: left; background: rgba(0, 0, 0, 0.15); align-content: start; }
.tile:hover { border-color: rgba(124, 196, 255, 0.4); }
.tile.on { border: 2px solid var(--primary); padding: 7px; }
.tile .preview { height: 64px; border-radius: 10px; background: var(--surface-variant) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.tile .name { font-weight: 600; font-size: 13px; }
.tile .sub { color: var(--muted); font-size: 11px; margin-top: -4px; }
.tile .key { display: flex; height: 8px; border-radius: 2px; overflow: hidden; gap: 1px; width: 82%; }
.tile .key span { flex: 1; }
.toggle-list { display: grid; gap: 10px; }

/* ---- Map buttons (right), as the app's round dark buttons ---- */
.controls { position: fixed; z-index: 3; right: var(--gap); bottom: 40px; display: flex; flex-direction: column; gap: 10px; align-items: center; transition: right 0.2s; }
body.layers-open .controls { right: calc(var(--layers) + var(--gap)); }
/* With a terrain key at the foot of the map the buttons step up over it, and back down without (as in the app). */
body.has-legend .controls { bottom: 108px; }
.map-button { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); font-weight: 700; font-size: 14px; backdrop-filter: blur(14px); }
.map-button:hover { background: rgba(35, 42, 48, 0.95); }
.map-button.on { background: var(--primary-container); color: var(--on-primary-container); }
.zoom { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.zoom .map-button { border-radius: 0; box-shadow: none; }
.compass-needle { width: 12px; height: 28px; background: linear-gradient(to bottom, #ff5a47 50%, #f2f2f2 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ---- Bottom ---- */
.mapboxgl-ctrl-bottom-left { left: var(--rail); transition: left 0.2s; }
body.drawer-open .mapboxgl-ctrl-bottom-left { left: calc(var(--rail) + var(--drawer)); }
.mapboxgl-ctrl-bottom-right { transition: right 0.2s; }
body.layers-open .mapboxgl-ctrl-bottom-right { right: var(--layers); }
.mapboxgl-ctrl-scale { background: rgba(22, 26, 29, 0.75); color: #fff; border-color: #fff; border-width: 0 2px 2px; }
.cursor {
  position: fixed; z-index: 3; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 12px; font-size: 12px;
  background: var(--panel); font-family: ui-monospace, Consolas, monospace; pointer-events: none; white-space: nowrap;
}
.legend-wrap { position: fixed; z-index: 3; bottom: 40px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.legend {
  pointer-events: auto; background: var(--panel); border-radius: 12px; padding: 6px 12px 4px; width: clamp(220px, calc(100vw - var(--left) - var(--right) - 40px), 340px);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.legend-title { font-size: 11px; font-weight: 600; margin-bottom: 3px; }
.legend-bar { height: 9px; border-radius: 2px; display: flex; gap: 2px; }
.legend-bar.steps span { flex: 1; border-radius: 2px; }
.legend-bar.single { width: 24px; }
.legend-labels { display: flex; font-size: 11px; color: var(--muted); }
.legend-labels > span { flex: 1; text-align: center; }
.legend-labels.ticks { position: relative; height: 15px; }
.legend-labels.ticks > span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.legend-labels.ticks > span:first-child { transform: none; }
.legend-labels.ticks > span:last-child { transform: translateX(-100%); }
.legend-bar.single + .legend-labels > span { flex: none; text-align: left; margin-left: 30px; margin-top: -12px; }
.legend-aspect { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; width: auto; }
.legend-aspect .legend-title { grid-column: 2; grid-row: 1; align-self: end; }
.legend-aspect .rose { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; }
.legend-note { grid-column: 2; font-size: 11px; color: var(--muted); }
.hint {
  position: fixed; z-index: 3; top: 72px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 18px; background: var(--primary-container);
  color: var(--on-primary-container); font-size: 13px; box-shadow: var(--shadow); pointer-events: none; white-space: nowrap;
}
.toast { position: fixed; z-index: 9; bottom: 96px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 18px; background: var(--panel-solid); box-shadow: var(--shadow); font-size: 13px; }

/* Map popups (the terrain box). */
.mapboxgl-popup-content { background: var(--panel-solid); color: var(--ink); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.mapboxgl-popup-tip { border-top-color: var(--panel-solid) !important; border-bottom-color: var(--panel-solid) !important; }
.mapboxgl-popup-close-button { color: var(--muted); font-size: 18px; padding: 2px 8px; }
.probe { display: flex; gap: 10px; align-items: center; }
.probe .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); flex: none; }
.probe .main { font-weight: 700; }
.probe .rest { font-size: 12px; color: var(--muted); }
.probe-actions { display: flex; gap: 6px; margin-top: 8px; }
.probe-actions button { font-size: 12px; padding: 4px 10px; }

/* Route planner. */
.route-point { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #0b6bcb; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); cursor: grab; }
.route-point.first { background: #22c55e; border-color: #fff; width: 18px; height: 18px; }
.route-point.last { background: #ef4444; border-color: #fff; width: 18px; height: 18px; }
.profile-marker { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3); pointer-events: none; }
.planner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.planner-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 13px; padding: 3px 6px; border-radius: 10px; }
.planner-list li:hover { background: var(--faint); }
.planner-list .n { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-variant); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--surface-variant); color: var(--muted); }
.keys { display: flex; flex-wrap: wrap; gap: 8px 14px; }

/* Saving a place, where you are. */
.save-card { display: grid; gap: 8px; width: 236px; }
.save-card .title { font-weight: 700; }
.you-are-here { width: 18px; height: 18px; border-radius: 50%; background: #2f8bff; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(47, 139, 255, 0.25); }
.point-pin { width: 28px; height: 38px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); pointer-events: none; }
.point-pin svg { width: 100%; height: 100%; display: block; }
.map-button.busy { animation: pulse 0.7s infinite alternate; }

/* What sits at the foot or top of the map is centred on the map's free part, between the drawers. */
body { --left: var(--rail); --right: 0px; }
body.drawer-open { --left: calc(var(--rail) + var(--drawer)); }
body.layers-open { --right: var(--layers); }
.legend-wrap, .cursor, .hint, .toast { left: calc((var(--left) + 100vw - var(--right)) / 2); transition: left 0.2s; }

/* ---- Phones: the rail at the bottom, panels as sheets ---- */
@media (max-width: 760px) {
  :root { --rail: 0px; --drawer: 100vw; --layers: 100vw; }
  .rail { top: auto; height: 64px; width: 100%; flex-direction: row; justify-content: space-around; padding: 0 6px; border-right: none; border-top: 1px solid var(--line); }
  .rail .logo, .rail-gap { display: none; }
  .rail-button { width: auto; flex: 1; }
  .drawer, .layers { top: auto; height: 62vh; bottom: 64px; border-radius: 20px 20px 0 0; left: 0; }
  .search, body.drawer-open .search, body.layers-open .search { left: var(--gap); width: calc(100vw - 2 * var(--gap) - 110px); }
  .top-right .pill span:not(.icon):not(.dot) { display: none; }
  .controls { bottom: 84px; }
  body.layers-open .controls, body.layers-open .top-right { right: var(--gap); }
  .cursor { display: none; }
  .legend-wrap { bottom: 74px; }
  body.drawer-open { --left: 0px; }
  body.layers-open { --right: 0px; }
  body.has-legend .controls { bottom: 150px; }
}
