/* BugOutBot v2 — Waypoints, Guide me back, trail drawing, map-screen bar.
   Theme tokens only; red mode keeps everything red-on-black. */

.wp-view, .wg-view { gap: 12px; }
/* Red mode: keep these screens strictly red-on-black (no cream text). */
[data-theme="red"] :is(.wp-view, .wg-view, .wp-mapbar) { --ui-title: #ff9a6a; --bob-ink: #ff9a6a; --ui-sub: #d0683e; color: var(--bob-ink); }
.need-btn.is-waypoint { --c: #f08a6a; }
[data-theme="red"] .need-btn.is-waypoint { --c: #ff7a45; }

/* sprites */
.wp-sprite { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wp-sprite .need-svg { display: block; width: 24px; height: 24px; shape-rendering: crispEdges; image-rendering: pixelated; }
.wp-sprite.is-tile { width: 48px; height: 48px; border-radius: var(--ui-r-tile); background: var(--ui-tile-neutral); border: 1px solid var(--ui-hairline); }
.wp-sprite.is-tile .need-svg { width: 32px; height: 32px; }
.wp-sprite.is-btn .need-svg { width: 32px; height: 32px; }
[data-theme="red"] :is(.wp-sprite, .wt-sprite) { filter: grayscale(1) sepia(1) hue-rotate(-30deg) saturate(4) brightness(.85); }

/* rows / small bits */
.wp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.wp-row .tool-btn { color: var(--ui-title); background: var(--ui-surface); border-color: var(--ui-hairline-strong); }
.wp-row .wp-go { flex: 1.5 1 auto; white-space: nowrap; }
.wp-row :is(.wp-rename, .wp-delete) { flex: 1 1 auto; min-width: 0; padding-left: 8px; padding-right: 8px; }
.wp-row .tool-btn.is-primary { background: var(--bob-accent); color: #1a1712; border-color: transparent; }
[data-theme="red"] .wp-row .tool-btn.is-primary { color: #160400; }
.wp-tip { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--ui-sub); }
.wp-empty { margin: 6px 0; font-size: 14px; color: var(--ui-sub); }

/* type chips */
.wp-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 10px; }
.wp-type { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 8px 4px;
  border-radius: var(--ui-r-tile); border: 1px solid var(--ui-hairline-strong); background: var(--ui-tile-neutral);
  color: var(--ui-title); font: 700 12px/1.15 system-ui, sans-serif; cursor: pointer; }
.wp-type.is-on { border-color: var(--bob-accent); box-shadow: inset 0 0 0 1px var(--bob-accent); background: var(--ui-surface); }
.wp-types.is-small .wp-type { min-height: 52px; font-size: 11px; }

/* big mark button */
.wp-mark-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px;
  border-radius: var(--ui-r); border: 0; background: var(--bob-accent); color: #1a1712;
  font: 900 18px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(224, 96, 42, .9); }
.wp-mark-btn:active { transform: scale(.985); }
[data-theme="red"] .wp-mark-btn { color: #160400; }
[data-theme="red"] .wp-mark-btn .wp-sprite { filter: grayscale(1) brightness(.15); }

/* pending fix card */
.wp-pending { margin-top: 10px; padding: 12px; border-radius: var(--ui-r-tile); background: var(--ui-surface);
  border: 1px solid var(--ui-hairline-strong); border-left: 4px solid var(--ui-sub); display: flex; flex-direction: column; gap: 6px; }
.wp-pending.is-good { border-left-color: #3aaa3a; }
.wp-pending.is-warn { border-left-color: #f0a830; }
.wp-pending.is-bad  { border-left-color: #e8402a; }
[data-theme="red"] .wp-pending.is-good { border-left-color: #ff6b2b; }
[data-theme="red"] .wp-pending.is-warn, [data-theme="red"] .wp-pending.is-bad { border-left-color: #ff3b1a; }
.wp-pending-head { display: flex; align-items: center; gap: 8px; color: var(--ui-title); }
.wp-pending-msg { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ui-title); }
.wp-pending .tool-input { max-width: none; }

/* saved pins */
.wp-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.wp-card { padding: 12px; border-radius: var(--ui-r-tile); background: var(--ui-surface); border: 1px solid var(--ui-hairline); box-shadow: var(--ui-elev); }
.wp-card.is-new { border-color: var(--bob-accent); }
.wp-card .tool-input { max-width: none; margin-bottom: 6px; }
.wp-card-head { display: flex; gap: 12px; align-items: flex-start; }
.wp-card-text { min-width: 0; }
.wp-card-name { margin: 0; font-size: 17px; font-weight: 900; color: var(--ui-title); word-break: break-word; }
.wp-card-meta { margin: 2px 0 0; font-size: 12px; color: var(--ui-sub); }
.wp-card-note { margin: 4px 0 0; font-size: 13px; color: var(--ui-title); font-style: italic; }
.wp-card-dist { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--bob-accent); }
.wp-card-coords { margin: 8px 0 0; font: 600 11px ui-monospace, monospace; color: var(--ui-sub); }
.wp-confirm { margin-top: 10px; font-size: 13px; color: var(--ui-title); }
.wp-del-yes { color: #fff !important; background: #b8321a !important; border-color: #b8321a !important; }
[data-theme="red"] .wp-del-yes { color: #ffd8c8 !important; background: #a01800 !important; }
.wp-confirm-text { font-size: 13px; color: var(--ui-title); font-weight: 700; }

/* track switch */
.wp-switch { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; min-height: 48px; padding: 8px 12px;
  border-radius: var(--ui-r-tile); border: 1px solid var(--ui-hairline-strong); background: var(--ui-surface);
  color: var(--ui-title); font: 800 15px system-ui, sans-serif; cursor: pointer; text-align: left; }
.wp-switch-knob { position: relative; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; background: var(--ui-hairline-strong); transition: background .15s; }
.wp-switch-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ui-title); transition: transform .15s; }
.wp-switch.is-on .wp-switch-knob { background: var(--bob-accent); }
.wp-switch.is-on .wp-switch-knob::after { transform: translateX(18px); }
.wp-trail-info { margin: 8px 0 0; font-size: 12px; color: var(--ui-sub); line-height: 1.4; }

/* trail drawing / Make a map */
.wt-wrap { display: flex; flex-direction: column; }
.wt-wrap.is-empty :is(.wt-hint, .wt-tools, .wt-tools-msg) { display: none; }
.wt-name-row { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.wt-name-k { font: 800 11px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-sub); }
.wt-name-row .tool-input { max-width: none; }
.wt-box { position: relative; margin-top: 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ui-hairline-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), var(--ui-elev); }
.wt-box.is-pressing { box-shadow: 0 0 0 2px var(--bob-accent); }
.wt-svg-host { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.wt-box.is-empty .wt-svg-host { touch-action: pan-y; cursor: default; }
.wt-svg-host:active { cursor: grabbing; }
.wt-svg { display: block; width: 100%; height: auto; }
.wt-bg { fill: #eef0e6; }
.wt-grid { stroke: rgba(26, 30, 24, .08); stroke-width: 1; stroke-dasharray: 2 3; }
/* scale bar: checkered, 8-bit */
.wt-scale-plate { fill: rgba(255, 255, 255, .78); stroke: rgba(26, 30, 24, .12); }
.wt-scale-seg { fill: #1a1e18; }
.wt-scale-seg.is-alt { fill: #fffdf9; }
.wt-scale-edge { fill: none; stroke: #1a1e18; stroke-width: 1; }
.wt-scale text, .wt-north text { font: 800 10px system-ui, sans-serif; fill: #1a1e18; }
.wt-north path { fill: #e8402a; }
.wt-north circle { fill: rgba(255, 255, 255, .78); stroke: rgba(26, 30, 24, .12); }
.wt-north text { text-anchor: middle; }
/* your walk */
.wt-trail-casing { fill: none; stroke: rgba(61, 110, 140, .18); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.wt-trail { fill: none; stroke: #3d6e8c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 6; }
.wt-dir { fill: none; stroke: #3d6e8c; stroke-width: 1.8; stroke-linecap: square; }
.wt-trail-start { fill: #3aaa3a; stroke: #fff; stroke-width: 1.5; shape-rendering: crispEdges; }
.wt-trail-end { fill: #eef0e6; stroke: #3d6e8c; stroke-width: 2; shape-rendering: crispEdges; }
.wt-line { stroke: #e0602a; stroke-width: 2.5; stroke-dasharray: 7 5; stroke-linecap: round; }
/* pins: pixel sprite on a small plate, stem to the exact spot */
.wt-pin-plate { fill: rgba(255, 253, 249, .92); stroke: rgba(26, 30, 24, .28); stroke-width: 1; }
.wt-pin-stem { stroke: #1a1e18; stroke-width: 1.5; }
.wt-pin.is-sel .wt-pin-plate, .wt-pin.is-target .wt-pin-plate { stroke: var(--bob-accent); stroke-width: 2.5; }
.wt-pin-dot { fill: #1a1e18; stroke: #fff; stroke-width: 1.5; }
.wt-pin.is-target .wt-pin-dot, .wt-pin.is-sel .wt-pin-dot { fill: #e0602a; }
.wt-pin-label, .wt-you-label { font: 800 10px system-ui, sans-serif; fill: #1a1e18; paint-order: stroke; stroke: #eef0e6; stroke-width: 3px; stroke-linejoin: round; }
.wt-you-label { fill: #1d5fb8; }
.wt-sprite { shape-rendering: crispEdges; }
/* you */
.wt-acc { fill: rgba(42, 116, 216, .12); stroke: rgba(42, 116, 216, .45); stroke-width: 1; }
.wt-cone { fill: rgba(42, 116, 216, .22); }
.wt-you-dot { fill: #2a74d8; stroke: #fff; stroke-width: 2.5; }
.wt-you-dir { fill: #2a74d8; }
/* empty state */
.wt-empty { font: 900 14px system-ui, sans-serif; fill: #3a4234; text-anchor: middle; }
.wt-empty.is-sub { font-weight: 700; font-size: 11.5px; fill: #5a6450; }
.wt-empty.is-dim { font-weight: 600; font-size: 10px; opacity: .8; }
/* map buttons */
.wt-ctl { position: absolute; right: 7px; top: 50px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.wt-box.is-empty .wt-ctl { display: none; }
.wt-ctl-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 8px;
  border: 1px solid var(--ui-hairline-strong); background: color-mix(in srgb, var(--ui-surface) 90%, transparent); color: var(--ui-title);
  font: 900 20px/1 ui-monospace, monospace; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.wt-ctl-btn:active { transform: translateY(1px); box-shadow: none; }
.wt-ctl-btn:disabled { opacity: .4; }
.wt-ctl-btn[hidden] { display: none; }
.wt-box.is-moved .wt-ctl-btn.is-fit { background: var(--bob-accent); color: #1a1712; border-color: transparent; }
/* press-and-hold ring, drop pop, toast */
.wt-overlay { position: absolute; inset: 0; pointer-events: none; }
.wt-hold, .wt-drop { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; }
.wt-hold { border: 3px solid var(--bob-accent); clip-path: inset(0 0 0 0); animation: wt-hold .53s linear forwards; opacity: .9; }
@keyframes wt-hold { from { transform: scale(1.5); opacity: .2; } to { transform: scale(.55); opacity: 1; } }
.wt-drop { background: var(--bob-accent); animation: wt-drop .8s ease-out forwards; }
@keyframes wt-drop { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.wt-toast { position: absolute; left: 50%; top: 10px; transform: translate(-50%, -8px); padding: 6px 12px; border-radius: 999px;
  background: var(--ui-title); color: var(--ui-surface); font: 800 12px system-ui, sans-serif; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.wt-hint { margin: 6px 2px 0; font-size: 12px; font-weight: 700; color: var(--ui-sub); text-align: center; }
/* tapped pin card */
.wt-info { margin-top: 8px; padding: 10px 12px; border-radius: var(--ui-r-tile); background: var(--ui-surface);
  border: 1px solid var(--ui-hairline-strong); border-left: 4px solid var(--bob-accent); }
.wt-info[hidden] { display: none; }
.wt-info-head { display: flex; gap: 10px; align-items: center; }
.wt-info-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wt-info-name { font-size: 16px; font-weight: 900; color: var(--ui-title); word-break: break-word; }
.wt-info-dist { font-size: 14px; font-weight: 800; color: var(--bob-accent); }
.wt-info-coords { font: 600 11px ui-monospace, monospace; color: var(--ui-sub); }
.wt-info .wp-row { margin-top: 8px; }
.wt-tools .tool-btn { flex: 1 1 auto; }
.wt-tools-msg { margin: 6px 0 0; font-size: 12px; color: var(--ui-sub); min-height: 1em; }
.wt-tools-msg:empty { display: none; }

[data-theme="night"] .wt-bg { fill: #121611; }
[data-theme="night"] .wt-grid { stroke: rgba(232, 225, 208, .08); }
[data-theme="night"] :is(.wt-scale-plate, .wt-north circle) { fill: rgba(18, 22, 17, .85); stroke: rgba(232, 225, 208, .14); }
[data-theme="night"] .wt-scale-seg { fill: #ece6d6; }
[data-theme="night"] .wt-scale-seg.is-alt { fill: #121611; }
[data-theme="night"] .wt-scale-edge { stroke: #ece6d6; }
[data-theme="night"] :is(.wt-scale text, .wt-north text) { fill: #ece6d6; }
[data-theme="night"] :is(.wt-pin-label, .wt-you-label) { fill: #ece6d6; stroke: #121611; }
[data-theme="night"] .wt-you-label { fill: #8cbcf5; }
[data-theme="night"] .wt-pin-plate { fill: rgba(28, 33, 26, .94); stroke: rgba(232, 225, 208, .3); }
[data-theme="night"] .wt-pin-stem { stroke: #ece6d6; }
[data-theme="night"] .wt-pin-dot { fill: #ece6d6; stroke: #121611; }
[data-theme="night"] .wt-trail-casing { stroke: rgba(126, 200, 240, .14); }
[data-theme="night"] :is(.wt-trail, .wt-dir) { stroke: #7ec8f0; }
[data-theme="night"] .wt-trail-start { fill: #5cc85c; stroke: #121611; }
[data-theme="night"] .wt-trail-end { fill: #121611; stroke: #7ec8f0; }
[data-theme="night"] .wt-you-dot { fill: #5b9be8; stroke: #121611; }
[data-theme="night"] .wt-you-dir { fill: #5b9be8; }
[data-theme="night"] .wt-acc { fill: rgba(91, 155, 232, .12); stroke: rgba(91, 155, 232, .45); }
[data-theme="night"] .wt-cone { fill: rgba(91, 155, 232, .25); }
[data-theme="night"] .wt-empty { fill: #c8c2b0; }
[data-theme="night"] .wt-empty.is-sub { fill: #9ba394; }
[data-theme="red"] .wt-bg { fill: #0d0200; }
[data-theme="red"] .wt-grid { stroke: rgba(255, 90, 40, .12); }
[data-theme="red"] :is(.wt-scale-plate, .wt-north circle) { fill: rgba(13, 2, 0, .85); stroke: rgba(255, 90, 40, .25); }
[data-theme="red"] .wt-scale-seg { fill: #ff6b2b; }
[data-theme="red"] .wt-scale-seg.is-alt { fill: #0d0200; }
[data-theme="red"] .wt-scale-edge { stroke: #ff6b2b; }
[data-theme="red"] :is(.wt-scale text, .wt-north text, .wt-pin-label, .wt-you-label, .wt-empty) { fill: #ff8a52; stroke: #0d0200; }
[data-theme="red"] :is(.wt-scale text, .wt-north text, .wt-empty) { stroke: none; }
[data-theme="red"] .wt-empty.is-sub { fill: #d0683e; }
[data-theme="red"] .wt-north path { fill: #ff3b1a; }
[data-theme="red"] .wt-trail-casing { stroke: rgba(184, 50, 26, .25); }
[data-theme="red"] :is(.wt-trail, .wt-dir) { stroke: #b8321a; }
[data-theme="red"] .wt-trail-start { fill: #ff6b2b; stroke: #0d0200; }
[data-theme="red"] .wt-trail-end { fill: #0d0200; stroke: #b8321a; }
[data-theme="red"] .wt-line { stroke: #ff6b2b; }
[data-theme="red"] .wt-pin-plate { fill: rgba(22, 4, 0, .94); stroke: rgba(255, 90, 40, .35); }
[data-theme="red"] .wt-pin-stem { stroke: #ff6b2b; }
[data-theme="red"] .wt-pin-dot { fill: #ff3b1a; stroke: #0d0200; }
[data-theme="red"] .wt-acc { fill: rgba(255, 60, 20, .1); stroke: rgba(255, 90, 40, .45); }
[data-theme="red"] .wt-cone { fill: rgba(255, 90, 40, .22); }
[data-theme="red"] .wt-you-dot { fill: #ff6b2b; stroke: #0d0200; }
[data-theme="red"] .wt-you-dir { fill: #ff6b2b; }
[data-theme="red"] .wt-box.is-moved .wt-ctl-btn.is-fit { color: #160400; }
[data-theme="red"] .wt-toast { background: #ff6b2b; color: #160400; }

/* map-screen bar */
.wp-mapbar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--ui-r);
  background: var(--ui-surface); border: 1px solid var(--ui-hairline-strong); box-shadow: var(--ui-elev); }
.wp-mapbar-btn { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 48px; padding: 6px 14px 6px 8px;
  border-radius: var(--ui-r-tile); border: 0; background: var(--bob-accent); color: #1a1712; font: 900 15px system-ui, sans-serif; cursor: pointer; }
[data-theme="red"] .wp-mapbar-btn { color: #160400; }
[data-theme="red"] .wp-mapbar-btn .wp-sprite { filter: grayscale(1) brightness(.15); }
.wp-mapbar-note { margin: 0; font-size: 12px; line-height: 1.35; color: var(--ui-sub); }

/* ---------- Guide me back ---------- */
.wg-head { display: flex; gap: 12px; align-items: center; }
.wg-name { margin: 2px 0 0; font-size: 22px; font-weight: 900; color: var(--ui-title); word-break: break-word; }
.wg-meta { margin: 2px 0 0; font-size: 12px; color: var(--ui-sub); }
.wg-arrived { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--ui-r);
  background: #2f7a3a; color: #f4fff2; text-align: center; animation: wg-pop .35s ease-out; }
.wg-arrived[hidden] { display: none; }
.wg-arrived strong { font-size: 28px; font-weight: 900; letter-spacing: .01em; }
.wg-arrived-sub { font-size: 13px; }
[data-theme="red"] .wg-arrived { background: #a01800; color: #ffe0d0; }
@keyframes wg-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.wg-top { display: flex; justify-content: center; }
.wg-dial-wrap { width: min(72vw, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--ui-surface);
  border: 1px solid var(--ui-hairline-strong); box-shadow: var(--ui-elev); }
.wg-dial { display: block; width: 100%; height: 100%; }
.wg-bezel { fill: none; stroke: var(--ui-hairline-strong); stroke-width: 2; }
.wg-tick { stroke: var(--ui-sub); stroke-width: 1.2; }
.wg-tick.is-major { stroke: var(--ui-title); stroke-width: 2.5; }
.wg-n { font: 900 16px system-ui, sans-serif; fill: #e8402a; text-anchor: middle; }
.wg-ring, .wg-arrow { transition: transform .2s linear; }
.wg-arrow-body { fill: var(--bob-accent); stroke: #1a1712; stroke-width: 2; stroke-linejoin: round; }
.wg-arrow-hi { fill: rgba(255, 255, 255, .25); }
.wg-hub { fill: #1a1712; }
.wg-lubber { fill: var(--ui-title); }
.wg-dial-wrap.is-idle .wg-arrow { opacity: .3; }
.wg-view.is-arrived .wg-arrow-body { fill: #3aaa3a; }
[data-theme="night"] .wg-arrow-body { stroke: #050604; }
[data-theme="red"] .wg-n { fill: #ff3b1a; }
[data-theme="red"] .wg-arrow-body { fill: #ff6b2b; stroke: #160400; }
[data-theme="red"] .wg-arrow-hi { fill: rgba(255, 160, 120, .2); }
[data-theme="red"] .wg-view.is-arrived .wg-arrow-body { fill: #ff3b1a; }
.wg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wg-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--ui-r-tile);
  background: var(--ui-surface); border: 1px solid var(--ui-hairline); box-shadow: var(--ui-elev); min-width: 0; }
.wg-k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ui-sub); }
.wg-big { font-size: 28px; font-weight: 900; line-height: 1.05; color: var(--ui-title); font-variant-numeric: tabular-nums; }
.wg-sub { font-size: 12px; color: var(--ui-sub); line-height: 1.3; }
.wg-hint { margin: 0; padding: 10px 12px; border-radius: var(--ui-r-tile); background: var(--ui-tile-neutral);
  font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ui-title); }
.wg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wg-chip { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--ui-sub);
  background: var(--ui-tile-neutral); border: 1px solid var(--ui-hairline); }
.wg-chip.is-warn { color: #b86a00; border-color: rgba(240, 168, 48, .6); }
[data-theme="night"] .wg-chip.is-warn { color: #f0b860; }
[data-theme="red"] .wg-chip.is-warn { color: #ff6b2b; border-color: rgba(255, 90, 40, .5); }
.wg-nocompass[hidden] { display: none; }
.wg-nc-h { margin: 12px 0 4px; font-size: 15px; font-weight: 900; color: var(--ui-title); }
.wg-nc-steps { margin: 0; padding-left: 1.3em; font-size: 14px; color: var(--ui-title); }
.wg-nc-steps li { margin-bottom: 4px; }
.wp-safety ul { margin: 10px 0 0; padding-left: 1.15em; font-size: 14px; }
.wp-safety li { margin-bottom: 4px; }
/* Map layers */
.wt-layers { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.wt-svg-host { position: relative; }
.wt-box.has-layers .wt-bg { fill-opacity: 0; }
.wt-box.has-layers .wt-grid { stroke-opacity: .35; }
.wt-layers-panel { margin-top: 10px; border: 1px solid var(--ui-hairline-strong); border-radius: 12px; padding: 8px 10px; }
.wt-layers-sum { font-weight: 800; cursor: pointer; }
.wt-layer-row { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--ui-hairline-strong); }
.wt-layer-name { display: flex; gap: 8px; align-items: flex-start; }
.wt-layer-name small, .wt-layer-slider small { opacity: .75; }
.wt-layer-slider { display: flex; gap: 8px; align-items: center; padding-left: 26px; }
.wt-layer-slider input { flex: 1; }
.wt-layer-note, .wt-dl-est, .wt-layer-credit { font-size: .82rem; opacity: .85; }
.wt-dl-h { margin: 12px 0 6px; }
[data-theme="red"] .wt-layers { filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(4) brightness(.6); }
[data-theme="red"] .wt-layers-panel input[type="checkbox"], [data-theme="red"] .wt-layers-panel input[type="range"] { accent-color: #c00; color: #c00; background-color: transparent; }

/* ---- Full-screen mapping (Make a map) ---- */
.wt-expand { position: absolute; left: 8px; top: 8px; z-index: 3; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ui-hairline-strong);
  background: var(--bob-accent); color: #1a1712; font-weight: 900; font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.wt-box.is-empty .wt-expand { display: none; }
.wt-fs-bar, .wt-fs-sheet { display: none; }
html.bob-mapfull, html.bob-mapfull body { overflow: hidden !important; overscroll-behavior: none; }
html.bob-mapfull .app-shell, html.bob-mapfull .bottom-nav, html.bob-mapfull .topbar, html.bob-mapfull .brand-bar,
html.bob-mapfull .hatchet-bar, html.bob-mapfull .search-panel, html.bob-mapfull .menu-sheet { visibility: hidden !important; }
.wt-box.is-full { position: fixed; inset: 0; z-index: 10000; margin: 0; border: 0; border-radius: 0; visibility: visible;
  width: 100vw; height: 100vh; height: 100dvh; background: var(--ui-surface, #fffdf9); touch-action: none; }
.wt-box.is-full:fullscreen { width: 100%; height: 100%; }
.wt-box.is-full .wt-svg-host, .wt-box.is-full .wt-svg { width: 100%; height: 100%; }
.wt-box.is-full .wt-bg { rx: 0; }
.wt-box.is-full .wt-expand { display: none; }
/* zoom / me / fit move down out of the safe area and grow to glove size */
.wt-box.is-full .wt-ctl { right: calc(10px + env(safe-area-inset-right)); top: calc(50% - 128px); gap: 12px; }
.wt-box.is-full .wt-ctl-btn { width: 56px; height: 56px; font-size: 26px; border-radius: 14px; }
.wt-box.is-full .wt-ctl-btn svg { width: 26px; height: 26px; }
.wt-box.is-full .wt-fs-bar { display: flex; position: absolute; z-index: 4; left: calc(10px + env(safe-area-inset-left)); right: calc(10px + env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom)); gap: 12px; justify-content: space-between; flex-wrap: wrap; pointer-events: none; }
.wt-fs-btn { pointer-events: auto; flex: 1 1 0; min-width: 64px; min-height: 56px; padding: 0 10px; border-radius: 14px; border: 2px solid var(--ui-hairline-strong);
  background: var(--ui-surface, #fffdf9); color: var(--ui-title, #1a1712); font-weight: 900; font-size: 15px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.wt-fs-btn.is-exit { background: var(--bob-accent); color: #1a1712; border-color: transparent; }
.wt-fs-btn:active { transform: translateY(1px); }
.wt-box.is-full .wt-fs-sheet { position: absolute; z-index: 5; left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right));
  bottom: calc(80px + env(safe-area-inset-bottom)); max-height: 55%; overflow: auto; border-radius: 14px; touch-action: pan-y; }
.wt-box.is-full .wt-fs-sheet:has(> :not([hidden])) { display: block; }
.wt-box.is-full .wt-fs-sheet .wt-layers-panel { display: none; background: var(--ui-surface, #fffdf9); margin: 0 0 8px; }
.wt-box.is-full.is-sheet-open .wt-fs-sheet .wt-layers-panel { display: block; }
.wt-box.is-full .wt-fs-sheet .wt-info { background: var(--ui-surface, #fffdf9); border-radius: 12px; padding: 10px; }
.wt-box.is-full .wt-toast { top: calc(12px + env(safe-area-inset-top)); }
.wt-box.is-full .wt-scale { transform: translateY(calc(-74px - env(safe-area-inset-bottom))); }
/* No real map under the pins: say so on the map, with a way to fix it. */
.wt-nomap { position: absolute; left: 8px; right: 50px; bottom: 36px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  background: rgba(255, 253, 249, .94); border: 1px solid var(--ui-hairline-strong, #d9d3c3); border-left: 4px solid #e8692c; border-radius: 10px; padding: 6px 8px; font-size: 12.5px; flex-direction: row; flex-wrap: wrap; align-items: center; line-height: 1.3; color: #2a2620; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.wt-nomap[hidden] { display: none; }
.wt-nomap-btn { font: inherit; font-weight: 800; padding: 6px 12px; min-height: 36px; border-radius: 8px; border: 0; background: #e8692c; color: #fff; cursor: pointer; }
.wt-box.is-full .wt-nomap { left: 12px; right: 84px; bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); font-size: 15px; }
.wt-box.is-full .wt-nomap-btn { min-height: 48px; padding: 10px 16px; }
[data-theme="night"] .wt-nomap { background: rgba(18, 22, 17, .94); color: #e8e4d4; }
[data-theme="red"] .wt-nomap { background: rgba(13, 2, 0, .95); color: #c00; border-color: #600; border-left-color: #c00; }
[data-theme="red"] .wt-nomap-btn { background: #600; color: #f33; }

/* Phone landscape: full-screen map controls must clear the short height;
   shrink the "guide me back" dial so it doesn't overflow the viewport. */
@media (orientation: landscape) and (max-height: 500px) {
  .wg-dial-wrap { width: min(40vw, 46vh, 200px); }
  .wt-box.is-full .wt-ctl {
    top: calc(10px + env(safe-area-inset-top, 0px));
    gap: 8px;
  }
  .wt-box.is-full .wt-ctl-btn { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
  .wt-box.is-full .wt-ctl-btn svg { width: 22px; height: 22px; }
  .wt-box.is-full .wt-fs-bar {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .wt-fs-btn { min-height: 44px; min-width: 56px; font-size: 14px; }
  .wt-box.is-full .wt-fs-sheet {
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    max-height: 70%;
  }
  .wt-box.is-full .wt-scale { transform: translateY(calc(-56px - env(safe-area-inset-bottom, 0px))); }
  .wt-box.is-full .wt-nomap { right: 64px; font-size: 13px; }
  .wt-box.is-full .wt-nomap-btn { min-height: 40px; padding: 8px 12px; }
}
