/* Sheds Experience Redesign V1 — map is the product; chrome disappears */

:root {
  --sheds-bg: var(--shed-forest-900, #121f18);
  --sheds-surface: color-mix(in srgb, var(--shed-forest-800, #1a2b21) 92%, transparent);
  --sheds-surface-solid: var(--shed-forest-800, #1a2b21);
  --sheds-text: var(--shed-cream, #efe6d4);
  --sheds-muted: var(--shed-cream-muted, rgba(239, 230, 212, 0.72));
  --sheds-accent: var(--shed-terracotta, #c45a3c);
  --sheds-accent-deep: var(--shed-terracotta-deep, #a84a32);
  --sheds-border: rgba(239, 230, 212, 0.14);
  --sheds-danger: #e0a898;
  --sheds-info: var(--shed-olive-bright, #849372);
  --sheds-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sheds-safe-top: env(safe-area-inset-top, 0px);
  --sheds-safe-right: env(safe-area-inset-right, 0px);
  --sheds-safe-left: env(safe-area-inset-left, 0px);
  --sheds-sheet-peek: 8.6rem;
  --sheds-fab-size: 3.5rem;
  --sheds-radius: 16px;
  --sheds-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sheds-blur: saturate(140%) blur(12px);
  --wds-field-touch: 48px;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--sheds-bg);
  color: var(--sheds-text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sheds-skip {
  position: absolute;
  left: 0.75rem;
  top: calc(0.75rem + var(--sheds-safe-top));
  z-index: 10000;
  padding: 0.55rem 0.9rem;
  background: var(--sheds-accent);
  color: var(--sheds-on-accent, #efe6d4);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.sheds-skip:focus,
.sheds-skip:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--sheds-text, #efe6d4);
  outline-offset: 2px;
}

.sheds-app {
  position: relative;
  height: 100%;
  min-height: 100dvh;
  max-width: 100vw;
  overflow: hidden;
}

#sheds-map-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sheds-map-canvas {
  position: absolute;
  inset: 0;
}

#sheds-map {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 80% at 50% 20%, #2a3a32 0%, transparent 55%),
    linear-gradient(165deg, #9aa8a0 0%, #b7c0bc 45%, #8f9b94 100%);
}

#sheds-map .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: transparent;
}

/* Belt-and-suspenders: without Leaflet CSS, tiles stay position:static and leave gray gaps */
#sheds-map .leaflet-tile {
  position: absolute !important;
  left: 0;
  top: 0;
  max-width: none !important;
  max-height: none !important;
}

.sheds-map-loading {
  position: absolute;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(40, 70, 52, 0.55), transparent 55%),
    linear-gradient(160deg, #0c1a14 0%, #152820 50%, #0a1410 100%);
  pointer-events: none;
  transition: opacity 0.55s var(--sheds-ease);
}

.sheds-map-loading[hidden],
.sheds-map-loading.is-done {
  opacity: 0;
  visibility: hidden;
}

.sheds-map-loading__pulse {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid rgba(132, 147, 114, 0.22);
  border-top-color: var(--sheds-accent);
  animation: sheds-spin 0.95s linear infinite;
}

.sheds-map-loading__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sheds-muted);
  letter-spacing: 0.01em;
  font-weight: 500;
}

.sheds-map-offline {
  position: absolute;
  left: 50%;
  top: calc(4.25rem + var(--sheds-safe-top));
  transform: translateX(-50%);
  z-index: 520;
  max-width: min(92vw, 22rem);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(20, 16, 12, 0.9);
  border: 1px solid rgba(240, 184, 176, 0.35);
  color: var(--sheds-danger);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: var(--sheds-blur);
}

.sheds-map-tile-status {
  position: absolute;
  left: 50%;
  top: calc(6.6rem + var(--sheds-safe-top));
  transform: translateX(-50%);
  z-index: 521;
  max-width: min(94vw, 26rem);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(14, 22, 18, 0.92);
  border: 1px solid rgba(132, 147, 114, 0.28);
  color: var(--sheds-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: var(--sheds-blur);
}

.sheds-map-tile-status[data-level="error"] {
  border-color: rgba(240, 184, 176, 0.4);
  color: #f0c4bc;
}

.sheds-map-tile-status[data-level="warn"] {
  border-color: rgba(230, 200, 120, 0.4);
  color: #e8d4a0;
}

.sheds-map-tile-status[hidden] {
  display: none;
}

.sheds-tools-grid--compact {
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.sheds-measure-hud,
.sheds-inspect-hud {
  position: absolute;
  z-index: 580;
  left: calc(0.5rem + var(--sheds-safe-left));
  right: calc(0.5rem + var(--sheds-safe-right));
  top: calc(4.85rem + var(--sheds-safe-top));
  max-width: 22rem;
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--sheds-border);
  background: rgba(8, 18, 14, 0.92);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: var(--sheds-text);
  pointer-events: auto;
}

.sheds-inspect-hud {
  max-height: min(44vh, 19rem);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sheds-inspect-hud.is-expanded {
  max-height: min(50vh, 24rem);
}

.sheds-inspect-hud__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sheds-inspect-hud__head .sheds-inspect-hud__kicker {
  margin: 0;
}

.sheds-inspect-hud__close {
  min-height: 2.75rem;
  min-width: 2.75rem;
  flex: 0 0 auto;
  padding: 0.25rem 0.75rem;
}

.sheds-inspect-hud__lede {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--sheds-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.sheds-inspect-hud__body {
  margin: 0;
  flex: 0 1 auto;
  min-height: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow: auto;
  overflow-x: hidden;
  max-height: min(26vh, 12.5rem);
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
}

.sheds-inspect-hud__note {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--sheds-muted);
}

.sheds-inspect-hud.is-expanded .sheds-inspect-hud__body {
  max-height: min(12vh, 5.5rem);
}

.sheds-inspect-hud__more {
  margin: 0;
  border-top: 1px solid var(--sheds-border);
  padding-top: 0.15rem;
}

.sheds-inspect-hud__more[hidden] {
  display: none !important;
}

.sheds-inspect-hud__more-toggle {
  list-style: none;
  cursor: pointer;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--sheds-text);
}

.sheds-inspect-hud__more-toggle::-webkit-details-marker {
  display: none;
}

.sheds-inspect-hud__more-body {
  margin: 0 0 0.2rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow: auto;
  overflow-x: hidden;
  max-height: min(20vh, 9rem);
  -webkit-overflow-scrolling: touch;
  word-break: break-word;
}

html.sheds-session-active .sheds-measure-hud,
html.sheds-session-active .sheds-inspect-hud,
html.sheds-session-active .sheds-scout-hud {
  top: calc(7.85rem + var(--sheds-safe-top));
}

.sheds-measure-hud[hidden],
.sheds-inspect-hud[hidden] {
  display: none !important;
}

.sheds-inspect-hud__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

.sheds-inspect-hud__actions[hidden] {
  display: none !important;
}

.sheds-inspect-hud__actions .sheds-btn {
  min-height: 2.75rem;
  width: 100%;
}

.sheds-scout-hud {
  position: absolute;
  z-index: 582;
  left: calc(0.5rem + var(--sheds-safe-left));
  right: calc(0.5rem + var(--sheds-safe-right));
  top: calc(4.85rem + var(--sheds-safe-top));
  max-width: 22rem;
  max-height: min(58vh, 28rem);
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--sheds-border);
  background: rgba(8, 18, 14, 0.92);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: var(--sheds-text);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  min-width: 0;
}

.sheds-scout-hud[hidden] {
  display: none !important;
}

.sheds-scout-hud .sheds-inspect-hud__head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(8, 18, 14, 0.96);
  padding-bottom: 0.15rem;
}

.sheds-scout-hud .sheds-inspect-hud__body {
  flex: 0 0 auto;
  min-height: 4.2rem;
  max-height: min(18vh, 8rem);
}

.sheds-scout-hud__label,
.sheds-scout-hud__h {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sheds-muted);
}

.sheds-scout-hud__input,
.sheds-scout-hud__note {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--sheds-border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--sheds-text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
}

.sheds-scout-hud__note {
  min-height: 3.4rem;
  resize: vertical;
  max-height: 6.5rem;
}

.sheds-scout-status {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
}

.sheds-scout-status__btn {
  min-height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--sheds-border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--sheds-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.sheds-scout-status__btn[aria-pressed="true"] {
  background: rgba(186, 148, 58, 0.28);
  border-color: rgba(186, 148, 58, 0.7);
}

.sheds-scout-status__btn[data-scout-status="Checked"][aria-pressed="true"] {
  background: rgba(120, 168, 122, 0.28);
  border-color: rgba(120, 168, 122, 0.7);
}

.sheds-scout-status__btn[data-scout-status="Revisit"][aria-pressed="true"] {
  background: rgba(214, 150, 72, 0.28);
  border-color: rgba(214, 150, 72, 0.7);
}

.sheds-scout-hud__block {
  margin: 0;
  padding: 0.2rem 0 0;
}

.sheds-scout-hud__meta,
.sheds-scout-hud__copy {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--sheds-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.sheds-scout-hud__meta {
  color: var(--sheds-muted);
}

.sheds-scout-mark {
  display: block;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border: 2px solid rgba(232, 210, 140, 0.95);
  background: rgba(18, 22, 18, 0.35);
  box-shadow: 0 0 0 1px rgba(8, 12, 10, 0.45);
}

.sheds-scout-mark[data-status="Checked"] {
  border-color: rgba(120, 168, 122, 0.95);
}

.sheds-scout-mark[data-status="Revisit"] {
  border-color: rgba(214, 150, 72, 0.95);
}

.sheds-scout-mark.is-open {
  width: 16px;
  height: 16px;
  background: rgba(232, 210, 140, 0.28);
}

.leaflet-div-icon.sheds-scout-icon {
  background: transparent;
  border: none;
}

.sheds-scout-icon-wrap {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.sheds-scout-mark.is-selected {
  box-shadow: 0 0 0 2px rgba(240, 193, 74, 0.95), 0 0 0 4px rgba(8, 12, 10, 0.55);
}

.sheds-scout-order {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.12rem;
  border-radius: 999px;
  background: rgba(8, 18, 14, 0.92);
  color: #f4ead2;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  pointer-events: none;
}

.sheds-marker-legend__swatch--scout {
  background: transparent;
  border-radius: 2px;
  transform: rotate(45deg);
  border: 2px solid rgba(232, 210, 140, 0.95);
}

.sheds-marker-legend__swatch--plan {
  background: rgba(8, 18, 14, 0.92);
  border-radius: 999px;
  color: #f4ead2;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheds-marker-legend__swatch--plan::after {
  content: "1";
}

.sheds-marker-legend__swatch--track {
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: inset 0 0 0 0 transparent;
  background-image: linear-gradient(90deg, #b89a62, #b89a62);
  height: 4px;
  width: 1rem;
  align-self: center;
}

.sheds-marker-legend__swatch--shedfound {
  background: #e8c547;
  border-radius: 999px;
  border: 2px solid rgba(8, 18, 14, 0.85);
}

.sheds-hunt-select-hud {
  position: absolute;
  z-index: 583;
  left: calc(0.5rem + var(--sheds-safe-left));
  right: calc(0.5rem + var(--sheds-safe-right));
  top: calc(4.85rem + var(--sheds-safe-top));
  max-width: 22rem;
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--sheds-border);
  background: rgba(8, 18, 14, 0.92);
  color: var(--sheds-text);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  overflow-x: hidden;
  box-sizing: border-box;
  min-width: 0;
}

.sheds-hunt-select-hud[hidden] {
  display: none !important;
}

.sheds-hunt-select-hud__lede,
.sheds-hunt-select-hud__count,
.sheds-hunt-plan-hud__count,
.sheds-hunt-plan-hud__dist {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sheds-hunt-plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  max-height: min(28vh, 10.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.sheds-hunt-plan-row {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  gap: 0.35rem;
  align-items: start;
  min-width: 0;
}

.sheds-hunt-plan-row__order {
  font-weight: 700;
  font-size: 0.85rem;
  padding-top: 0.35rem;
}

.sheds-hunt-plan-row__meta {
  min-width: 0;
}

.sheds-hunt-plan-row__name,
.sheds-hunt-plan-row__detail {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sheds-hunt-plan-row__name {
  font-weight: 650;
  font-size: 0.85rem;
}

.sheds-hunt-plan-row__detail {
  font-size: 0.72rem;
  color: var(--sheds-muted);
}

.sheds-hunt-plan-row__moves {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}

.sheds-hunt-plan-row__moves .sheds-btn {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.4rem;
}

.sheds-hunt-plan-row__moves .sheds-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.sheds-hunt-plan-status {
  grid-template-columns: 1fr 1fr 1fr;
}

.sheds-hunt-plan-status [data-hunt-plan-status="Active"][aria-pressed="true"] {
  background: rgba(120, 168, 122, 0.28);
  border-color: rgba(120, 168, 122, 0.7);
}

.sheds-hunt-plan-status [data-hunt-plan-status="Completed"][aria-pressed="true"] {
  background: rgba(90, 120, 150, 0.32);
  border-color: rgba(120, 150, 180, 0.7);
}

.sheds-hunt-plan-hud .sheds-inspect-hud__actions {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sheds-hunt-plan-hud .sheds-inspect-hud__actions .sheds-btn {
  min-height: 2.75rem;
  flex: 1 1 8rem;
}

.sheds-field-hunt-hud {
  position: absolute;
  z-index: 584;
  left: calc(0.5rem + var(--sheds-safe-left));
  right: auto;
  top: calc(4.85rem + var(--sheds-safe-top));
  width: min(22rem, calc(100% - 1rem - var(--sheds-safe-left) - var(--sheds-safe-right)));
  max-height: min(64vh, 28rem);
  overflow: hidden;
  padding: 0.45rem 0.6rem 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--sheds-border);
  background: rgba(8, 18, 14, 0.92);
  color: var(--sheds-text);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  box-sizing: border-box;
  min-width: 0;
}

.sheds-field-hunt-hud[hidden] {
  display: none !important;
}

.sheds-field-hunt-hud__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(8, 18, 14, 0.96);
  margin: -0.15rem -0.15rem 0;
  padding: 0.15rem;
}

.sheds-field-hunt-hud__head .sheds-btn {
  min-height: 2.75rem;
  min-width: 2.75rem;
  flex: 0 0 auto;
}

.sheds-field-hunt-hud__name,
.sheds-field-hunt-hud__progress,
.sheds-field-hunt-hud__spot-name,
.sheds-field-hunt-hud__meta,
.sheds-field-hunt-hud__dist {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.sheds-field-hunt-hud__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.sheds-field-hunt-hud__progress {
  font-size: 0.8rem;
  font-weight: 650;
}

.sheds-field-hunt-hud__spot {
  min-width: 0;
}

.sheds-field-hunt-hud__spot-name {
  font-weight: 650;
  font-size: 0.9rem;
}

.sheds-field-hunt-hud__meta,
.sheds-field-hunt-hud__dist {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--sheds-muted);
}

.sheds-field-hunt-hud__dist {
  color: var(--sheds-text);
}

.sheds-field-hunt-hud__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.sheds-field-hunt-hud__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.15rem;
  background: rgba(8, 18, 14, 0.96);
}

.sheds-field-hunt-hud__status,
.sheds-field-hunt-hud__nav,
.sheds-field-hunt-hud__note-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  min-width: 0;
}

.sheds-field-hunt-hud__touch {
  min-height: 2.75rem;
  min-width: 0;
  flex: 1 1 0;
  padding: 0 0.4rem;
}

.sheds-field-hunt-hud__honesty {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sheds-field-hunt-hud__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.4rem;
  min-width: 0;
}

.sheds-field-hunt-hud__stat {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sheds-field-hunt-hud__stat-k {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sheds-muted);
}

.sheds-field-hunt-obs-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin: 0 0 0.75rem;
}

.sheds-field-hunt-obs-types .sheds-btn {
  min-height: 2.75rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sheds-hunt-track {
  pointer-events: none;
}

.sheds-hunt-obs-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #d4c4a0;
  border: 2px solid rgba(8, 18, 14, 0.9);
  box-shadow: 0 0 0 1px rgba(212, 196, 160, 0.35);
}

.sheds-hunt-obs-mark--shed {
  width: 16px;
  height: 16px;
  background: #e8c547;
  border-color: rgba(8, 18, 14, 0.92);
  box-shadow: 0 0 0 2px rgba(232, 197, 71, 0.45);
}

.sheds-hunt-obs-mark--unmapped {
  border-radius: 2px;
  background: #c8b89a;
}

.sheds-history-track {
  pointer-events: none;
}

.sheds-history-obs-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9aa392;
  border: 2px solid rgba(8, 18, 14, 0.75);
  opacity: 0.85;
}

.sheds-history-obs-mark--shed {
  width: 14px;
  height: 14px;
  background: #c9b05a;
  border-color: rgba(8, 18, 14, 0.85);
  box-shadow: 0 0 0 1px rgba(201, 176, 90, 0.35);
}

.sheds-marker-legend__swatch--history-track {
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background-image: linear-gradient(90deg, #6d7a6c, #6d7a6c);
  height: 3px;
  width: 1rem;
  align-self: center;
  opacity: 0.7;
}

.sheds-sheet__panel--history {
  max-height: min(78vh, 640px);
}

.sheds-sheet__panel--history .sheds-sheet__title {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-top: 0;
  padding-top: 0.15rem;
  padding-bottom: 0.35rem;
  background: var(--sheds-surface-solid);
}

.sheds-history-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}

.sheds-history-tabs__btn {
  min-height: 2.75rem;
}

.sheds-history-tabs__btn[aria-pressed="true"] {
  border-color: rgba(184, 154, 98, 0.55);
}

.sheds-history-empty {
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--sheds-border);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.sheds-history-empty strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.sheds-history-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.sheds-history-list > li {
  margin: 0 0 0.4rem;
}

.sheds-history-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sheds-history-card__date {
  font-weight: 650;
  font-size: 0.95rem;
}

.sheds-history-card__plan,
.sheds-history-card__meta {
  font-size: 0.82rem;
  opacity: 0.88;
  line-height: 1.35;
}

.sheds-history-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.75rem;
}

.sheds-history-stats div {
  min-width: 0;
}

.sheds-history-stats dt {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
  margin: 0 0 0.1rem;
}

.sheds-history-stats dd {
  margin: 0;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.sheds-history-conditions {
  margin: 0 0 0.7rem;
}

.sheds-history-conditions .sheds-scout-hud__h {
  margin: 0 0 0.25rem;
}

.sheds-history-conditions .sheds-note {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.sheds-history-conditions .sheds-history-stats {
  margin-bottom: 0;
}

.sheds-history-conditions .sheds-history-stats dd {
  font-size: 0.86rem;
}

.sheds-history-obs-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.sheds-history-obs-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(230, 240, 200, 0.12);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sheds-history-obs-list li:last-child {
  border-bottom: 0;
}

.sheds-history-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sheds-history-detail-actions .sheds-btn {
  min-height: 2.75rem;
  flex: 1 1 8rem;
}

.sheds-history-legacy {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.88rem;
}

.sheds-history-legacy summary {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.sheds-history-legacy .sheds-tech {
  max-height: 28vh;
  white-space: pre-wrap;
  overflow: auto;
  font-size: 0.75rem;
}

#hunt-history-empty,
#shed-found-history-empty {
  overflow-wrap: anywhere;
}

.leaflet-popup.sheds-hunt-obs-popup .leaflet-popup-content-wrapper {
  background: rgba(8, 18, 14, 0.96);
  color: var(--sheds-text);
  border-radius: 10px;
}

.leaflet-popup.sheds-hunt-obs-popup .leaflet-popup-content {
  margin: 0.55rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.35;
  min-width: 10rem;
}

.leaflet-popup.sheds-hunt-obs-popup .leaflet-popup-tip {
  background: rgba(8, 18, 14, 0.96);
}

.sheds-scout-mark.is-field-active {
  width: 18px;
  height: 18px;
  background: rgba(240, 193, 74, 0.42);
  box-shadow: 0 0 0 3px rgba(240, 193, 74, 0.85), 0 0 0 5px rgba(8, 12, 10, 0.55);
}

#sheds-map-shell.is-field-hunting #search-prompt {
  display: none;
}

#sheds-map-shell.is-field-hunting {
  --sheds-sheet-peek: 0px;
}

#sheds-map-shell.is-field-hunting #plan-card {
  display: none;
}

html.sheds-session-active .sheds-field-hunt-hud {
  top: calc(7.85rem + var(--sheds-safe-top));
}

@media (max-width: 430px) {
  .sheds-field-hunt-hud {
    max-height: min(66vh, 26rem);
    width: calc(100% - 1rem - var(--sheds-safe-left) - var(--sheds-safe-right));
  }

  .sheds-field-hunt-hud__honesty {
    -webkit-line-clamp: 1;
  }

  .sheds-sheet__panel--history {
    max-height: min(76vh, 36rem);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .sheds-history-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.5rem;
  }
}

#hunt-plans-list .sheds-btn,
#choose-hunt-plan-list .sheds-btn,
#scout-spots-list .sheds-btn,
#hunt-history-list .sheds-btn,
#shed-found-history-list .sheds-btn {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

#sheds-map-shell.is-hunting-plan #search-prompt {
  display: none;
}

html.sheds-session-active .sheds-hunt-select-hud,
html.sheds-session-active .sheds-hunt-plan-hud {
  top: calc(7.85rem + var(--sheds-safe-top));
}

@media (max-width: 719px), (max-height: 500px) {
  .sheds-hunt-select-hud,
  .sheds-hunt-plan-hud {
    top: calc(var(--sheds-mobile-header-end, 3.95rem) + var(--sheds-mobile-chrome-gap, 0.45rem));
    max-width: min(20rem, calc(100vw - 1rem));
  }

  .sheds-hunt-plan-hud {
    max-height: min(56vh, 26rem);
  }

  .sheds-hunt-select-hud__lede {
    display: none;
  }
}

.sheds-measure-hud__kicker,
.sheds-inspect-hud__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sheds-accent);
}

.sheds-measure-hud__dist {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.sheds-measure-hud__area {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--sheds-muted);
}

.sheds-measure-hud__area[hidden] {
  display: none !important;
}

.sheds-measure-hud__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.sheds-measure-hud__actions .sheds-btn {
  min-height: 2.4rem;
  flex: 1 1 auto;
}

#sheds-map-shell.is-measuring,
#sheds-map-shell.is-inspecting {
  cursor: crosshair;
}

/* Inspect owns the map: hide SEARCH Field Briefing so it does not compete. */
#sheds-map-shell.is-inspecting {
  --sheds-sheet-peek: 0px;
}

#sheds-map-shell.is-inspecting #plan-card {
  display: none !important;
}

#sheds-map-shell.is-inspecting #search-prompt,
#sheds-map-shell.is-scouting #search-prompt {
  display: none !important;
}

.sheds-measure-vertex {
  background: var(--sheds-accent) !important;
  border: 2px solid #0a1410 !important;
  border-radius: 50%;
  width: 12px !important;
  height: 12px !important;
  margin-left: -6px !important;
  margin-top: -6px !important;
}

@media (max-width: 719px), (max-height: 500px) {
  .sheds-measure-hud,
  .sheds-inspect-hud,
  .sheds-scout-hud {
    top: calc(var(--sheds-mobile-header-end, 3.95rem) + var(--sheds-mobile-chrome-gap, 0.45rem));
    max-width: min(20rem, calc(100vw - 1rem));
  }

  .sheds-inspect-hud {
    max-height: min(52vh, 23rem);
  }

  .sheds-scout-hud {
    max-height: min(56vh, 26rem);
  }

  .sheds-inspect-hud__lede {
    display: none;
  }

  .sheds-inspect-hud__body {
    max-height: min(16vh, 6.5rem);
  }

  html.sheds-session-active .sheds-measure-hud,
  html.sheds-session-active .sheds-inspect-hud,
  html.sheds-session-active .sheds-scout-hud {
    top: var(--sheds-mobile-strip-end, calc(8.35rem + var(--sheds-safe-top)));
  }
}

@keyframes sheds-spin {
  to { transform: rotate(360deg); }
}

@keyframes sheds-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes sheds-sheet-in {
  from { transform: translateY(10%); opacity: 0.9; }
  to { transform: translateY(0); opacity: 1; }
}

/* —— Top HUD: brand only —— */
.sheds-hud-top {
  position: absolute;
  top: calc(0.5rem + var(--sheds-safe-top));
  left: calc(0.5rem + var(--sheds-safe-left));
  right: calc(0.5rem + var(--sheds-safe-right));
  z-index: 550;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.sheds-hud-top > * {
  pointer-events: auto;
}

.sheds-hud-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sheds-hud-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: var(--sheds-surface);
  border: 1px solid var(--sheds-border);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  text-decoration: none;
  color: var(--sheds-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  min-height: var(--wds-field-touch);
}

.sheds-hud-brand__mark {
  /* Option K ~32px tall in map HUD — full shed silhouette, no circular crop */
  width: calc(32px * 360 / 460);
  height: 32px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--sheds-text, #efe6d4);
  display: inline-grid;
  place-items: center;
  overflow: visible;
}

.sheds-hud-brand__mark .sheds-brand-mark {
  width: calc(32px * 360 / 460);
  height: 32px;
  color: inherit;
}

.sheds-hud-brand__name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.sheds-hud-chip {
  appearance: none;
  border: 1px solid var(--sheds-border);
  background: var(--sheds-surface);
  color: var(--sheds-text);
  border-radius: 999px;
  width: var(--wds-field-touch);
  height: var(--wds-field-touch);
  min-height: var(--wds-field-touch);
  padding: 0;
  font: inherit;
  cursor: pointer;
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}

.sheds-hud-chip__glyph {
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
  font-family: "Source Serif 4", Georgia, serif;
  opacity: 0.85;
}

.sheds-hud-chip:focus-visible,
.sheds-hud-brand:focus-visible,
.sheds-fab:focus-visible,
.sheds-suggest__summary:focus-visible,
.sheds-here__chip:focus-visible {
  outline: 2px solid var(--sheds-accent);
  outline-offset: 2px;
}

/* —— You are here —— */
.sheds-here {
  position: absolute;
  top: calc(3.35rem + var(--sheds-safe-top));
  left: calc(0.5rem + var(--sheds-safe-left));
  z-index: 540;
  max-width: min(78vw, 20rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  pointer-events: none;
}

.sheds-here > * {
  pointer-events: auto;
}

.sheds-here__chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--sheds-border);
  background: var(--sheds-surface);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: var(--sheds-text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  min-height: 2.5rem;
}

.sheds-here__label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  word-break: break-word;
}

.sheds-here__track {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--sheds-info);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(8, 22, 16, 0.72);
  border: 1px solid rgba(142, 192, 255, 0.28);
}

.sheds-here__track[hidden] {
  display: none !important;
}

.sheds-here__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  color: var(--sheds-muted);
}

.sheds-here__meta[hidden] {
  display: none !important;
}

.sheds-nav-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sheds-muted);
  flex: 0 0 auto;
}

.sheds-nav-dot[data-state="finding"],
.sheds-nav-dot[data-state="available"] {
  background: var(--sheds-accent);
  animation: sheds-pulse 1.8s ease-in-out infinite;
}

.sheds-nav-dot[data-state="tracking"] {
  background: var(--sheds-info);
  animation: sheds-pulse 1.1s ease-in-out infinite;
}

.sheds-nav-dot[data-state="denied"],
.sheds-nav-dot[data-state="unavailable"],
.sheds-nav-dot[data-state="timeout"] {
  background: var(--sheds-danger);
  animation: none;
}

.sheds-status-panel {
  position: absolute;
  top: calc(3.35rem + var(--sheds-safe-top));
  right: calc(0.5rem + var(--sheds-safe-right));
  left: auto;
  z-index: 545;
  width: min(88vw, 19rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem;
  border-radius: 14px;
  background: var(--sheds-surface);
  border: 1px solid var(--sheds-border);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  animation: sheds-sheet-in 0.28s var(--sheds-ease);
}

.sheds-status-panel[hidden] {
  display: none !important;
}

.sheds-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--sheds-border);
  background: rgba(8, 20, 16, 0.55);
  font-size: 0.7rem;
  color: var(--sheds-muted);
}

.sheds-pill[data-state="available"],
.sheds-pill[data-level="strong"] {
  color: var(--sheds-accent);
}

.sheds-pill[data-state="denied"],
.sheds-pill[data-state="unavailable"],
.sheds-pill[data-state="timeout"],
.sheds-pill[data-level="limited"] {
  color: var(--sheds-danger);
}

/* —— FAB rail: map cluster + app actions (column on desktop; dock on phone) —— */
.sheds-fab-rail {
  position: absolute;
  right: calc(0.5rem + var(--sheds-safe-right));
  bottom: calc(var(--sheds-sheet-peek) + 0.55rem + var(--sheds-safe-bottom));
  z-index: 560;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
  align-items: flex-end;
}

.sheds-fab-rail > * {
  pointer-events: auto;
}

.sheds-map-ctrls,
.sheds-app-dock {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  align-items: flex-end;
  pointer-events: none;
}

.sheds-map-ctrls > *,
.sheds-app-dock > * {
  pointer-events: auto;
}

.sheds-fab-rail__legend {
  display: none;
}

/* Horizontal zoom pair — one rail row instead of two stacked zoom FABs */
.sheds-zoom-pair {
  display: flex;
  flex-direction: row;
  gap: 0.2rem;
  padding: 0.18rem;
  border-radius: 14px;
  border: 1px solid var(--sheds-border);
  background: rgba(6, 14, 11, 0.55);
}

.sheds-fab {
  appearance: none;
  width: auto;
  min-width: 5.1rem;
  height: auto;
  min-height: 2.4rem;
  border-radius: 14px;
  border: 1px solid var(--sheds-border);
  background: rgba(8, 20, 15, 0.92);
  color: var(--sheds-text);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem 0.3rem 0.45rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  transition: background 0.18s ease, box-shadow 0.18s ease;
  font: inherit;
}

.sheds-fab:active {
  filter: brightness(1.05);
}

.sheds-fab--primary,
.sheds-fab[aria-pressed="true"] {
  background: var(--sheds-accent);
  color: var(--sheds-on-accent, #efe6d4);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(196, 90, 60, 0.28);
}

.sheds-fab--zoom {
  min-width: 2.55rem;
  min-height: 2.35rem;
  padding: 0.28rem 0.4rem;
  flex-direction: column;
  gap: 0.05rem;
  box-shadow: none;
  background: rgba(8, 20, 15, 0.88);
}

.sheds-fab--zoom .sheds-fab__label {
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}

.sheds-fab__glyph {
  width: 1.25rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.sheds-fab__icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  flex: 0 0 auto;
}

.sheds-fab__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.sheds-fab[hidden] {
  display: none !important;
}

.sheds-legend-float {
  position: absolute;
  left: calc(0.5rem + var(--sheds-safe-left));
  bottom: calc(var(--sheds-sheet-peek) + 0.75rem + var(--sheds-safe-bottom));
  z-index: 530;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  max-width: min(92vw, 22rem);
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  background: rgba(6, 16, 12, 0.94);
  border: 1px solid var(--sheds-border);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  font-size: 0.68rem;
  color: var(--sheds-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

/* Relative Search Interest panel — forest tokens; proof chrome is query-gated */
.sheds-radar-p0 {
  position: absolute;
  top: calc(0.55rem + var(--sheds-safe-top));
  left: calc(0.5rem + var(--sheds-safe-left));
  z-index: 540;
  max-width: min(92vw, 17.5rem);
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 14px;
  background: rgba(6, 16, 12, 0.94);
  border: 1px solid var(--sheds-border);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  color: var(--sheds-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  font-size: 0.72rem;
  line-height: 1.35;
}

.sheds-radar-p0[hidden] {
  display: none !important;
}

.sheds-radar-p0__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.sheds-radar-p0__kicker {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sheds-muted, #a8b5ae);
  font-weight: 650;
}

.sheds-radar-p0__toggle {
  font-size: 0.65rem !important;
  padding: 0.2rem 0.45rem !important;
}

.sheds-radar-p0__lede {
  margin: 0 0 0.45rem;
  color: var(--sheds-muted, #a8b5ae);
}

.sheds-radar-p0__frames {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.sheds-radar-p0__frame {
  appearance: none;
  flex: 1 1 0;
  margin: 0;
  padding: 0.35rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--sheds-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.sheds-radar-p0__frame[aria-pressed="true"] {
  background: rgba(72, 140, 78, 0.28);
  border-color: rgba(72, 140, 78, 0.55);
}

.sheds-radar-p0__frame-label {
  margin: 0 0 0.4rem;
  color: var(--sheds-muted, #a8b5ae);
}

.sheds-radar-p0__status {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--sheds-muted, #a8b5ae);
}

.sheds-radar-p0 .sheds-data-credit,
.sheds-search-legend .sheds-data-credit,
.sheds-inspect-hud .sheds-data-credit {
  margin: 0.35rem 0 0.45rem;
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--sheds-muted, #a8b5ae);
}

.sheds-radar-p0 .sheds-data-credit a,
.sheds-search-legend .sheds-data-credit a,
.sheds-inspect-hud .sheds-data-credit a {
  color: var(--sheds-accent, #c45a3c);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.sheds-radar-p0 .sheds-data-credit a:focus-visible,
.sheds-search-legend .sheds-data-credit a:focus-visible,
.sheds-inspect-hud .sheds-data-credit a:focus-visible {
  outline: 2px solid var(--sheds-accent, #c45a3c);
  outline-offset: 2px;
}

.sheds-radar-p0__proof {
  margin: 0.35rem 0 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sheds-radar-p0-explain {
  position: absolute;
  top: calc(9.5rem + var(--sheds-safe-top));
  left: calc(0.5rem + var(--sheds-safe-left));
  z-index: 541;
  max-width: min(92vw, 18rem);
  max-height: min(42vh, 16rem);
  overflow: auto;
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 14px;
  background: rgba(6, 16, 12, 0.96);
  border: 1px solid var(--sheds-border);
  color: var(--sheds-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  font-size: 0.7rem;
}

.sheds-radar-p0-explain[hidden] {
  display: none !important;
}

.sheds-radar-p0-explain__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.sheds-radar-p0-explain__kicker {
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--sheds-muted, #a8b5ae);
}

.sheds-radar-p0-explain__body {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.7rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .sheds-radar-p0 {
    max-width: min(96vw, 15.5rem);
    font-size: 0.68rem;
  }
  .sheds-radar-p0-explain {
    top: calc(10.25rem + var(--sheds-safe-top));
    max-width: min(96vw, 16rem);
  }
}

.sheds-legend-float__toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.sheds-legend-float__chev {
  display: none;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid var(--sheds-muted);
  border-bottom: 2px solid var(--sheds-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.75;
}

.sheds-legend-float__body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  align-items: center;
}

.sheds-legend-float__status {
  flex: 1 1 100%;
  color: var(--sheds-muted);
  font-size: 0.62rem;
  letter-spacing: 0.01em;
}

.sheds-legend-float[hidden] {
  display: none !important;
}

.sheds-swatch {
  width: 0.85rem;
  height: 0.55rem;
  border-radius: 2px;
  display: inline-block;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.sheds-swatch--low { background: rgba(90, 130, 110, 0.55); }
.sheds-swatch--mid { background: rgba(190, 150, 55, 0.65); }
.sheds-swatch--high { background: rgba(90, 150, 70, 0.75); }
.sheds-swatch--search-higher { background: rgba(52, 118, 74, 0.85); }
.sheds-swatch--search-moderate { background: rgba(186, 148, 58, 0.75); }
.sheds-swatch--search-lower { background: rgba(92, 98, 90, 0.65); }

.sheds-search-legend {
  position: absolute;
  left: calc(0.5rem + var(--sheds-safe-left));
  bottom: calc(var(--sheds-sheet-peek) + 5.85rem + var(--sheds-safe-bottom));
  z-index: 532;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  align-items: stretch;
  max-width: min(16.5rem, calc(100vw - 5.5rem));
  padding: 0.28rem 0.45rem 0.35rem;
  border-radius: 14px;
  background: rgba(6, 16, 12, 0.92);
  border: 1px solid var(--sheds-border);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  color: var(--sheds-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  pointer-events: auto;
}

.sheds-search-legend__toggle {
  appearance: none;
  margin: 0;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  min-height: 2.4rem;
  cursor: pointer;
}

.sheds-search-legend__toggle[aria-pressed="true"] {
  color: #d7ecd0;
}

.sheds-search-legend__toggle:focus-visible {
  outline: 2px solid var(--sheds-accent);
  outline-offset: 2px;
}

.sheds-search-legend__body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  font-size: 0.68rem;
  line-height: 1.25;
}

.sheds-search-legend__body[hidden] {
  display: none !important;
}

.sheds-search-legend__status {
  flex: 1 1 100%;
  color: var(--sheds-muted);
  font-size: 0.62rem;
}

html.sheds-sheet-open .sheds-search-legend {
  opacity: 0.35;
  pointer-events: none;
}

#sheds-map-shell.is-inspecting .sheds-search-legend {
  bottom: calc(0.75rem + var(--sheds-safe-bottom));
}

/* —— Story sheet: primary intelligence over the map —— */
.sheds-sheet-field,
.sheds-suggest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 570;
  margin: 0;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(132, 147, 114, 0.28);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(18, 36, 26, 0.98) 0%, rgba(7, 18, 13, 0.98) 42%);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  box-shadow:
    0 -18px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(132, 147, 114, 0.08);
  max-height: var(--sheds-sheet-peek);
  overflow: hidden;
  transition: max-height 0.4s var(--sheds-ease);
  padding-bottom: var(--sheds-safe-bottom);
}

.sheds-suggest[data-has-plan="true"] {
  border-color: rgba(132, 147, 114, 0.38);
}

.sheds-suggest[data-expanded="true"] {
  max-height: min(60vh, 30rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

html.sheds-sheet-open .sheds-fab-rail,
html.sheds-sheet-open .sheds-legend-float,
html.sheds-sheet-open .leaflet-control-zoom,
html.sheds-sheet-open .leaflet-control-layers,
html.sheds-sheet-open .leaflet-control-attribution {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--sheds-ease);
}

.sheds-sheet-field__grab {
  width: 2.55rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(242, 246, 242, 0.26);
  margin: 0.5rem auto 0.1rem;
}

.sheds-suggest__summary {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto;
  gap: 0.12rem 0.55rem;
  text-align: left;
  padding: 0.3rem 1.1rem 0.85rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-height: 4.2rem;
}

.sheds-suggest__eyebrow {
  grid-column: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sheds-accent);
  margin: 0;
}

.sheds-suggest__kicker {
  grid-column: 1;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--sheds-text);
  font-weight: 650;
  line-height: 1.25;
}

.sheds-suggest[data-has-plan="false"] .sheds-suggest__kicker {
  color: var(--sheds-muted);
  text-transform: none;
  letter-spacing: 0;
}

.sheds-suggest__chev {
  grid-row: 1 / span 4;
}

.sheds-today__status {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.86rem;
  color: var(--sheds-muted);
  line-height: 1.4;
}

.sheds-today__windows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.55rem 0 0.35rem;
}

.sheds-today__window {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.45rem;
  border-radius: 12px;
  background: rgba(6, 16, 12, 0.7);
  border: 1px solid var(--sheds-border);
  min-height: 4.5rem;
}

.sheds-today__window.is-best {
  border-color: rgba(132, 147, 114, 0.55);
  box-shadow: inset 0 0 0 1px rgba(132, 147, 114, 0.2);
}

.sheds-today__window-label {
  font-size: 0.78rem;
  font-weight: 650;
}

.sheds-today__window-band {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sheds-accent);
}

.sheds-today__window-why {
  font-size: 0.72rem;
  color: var(--sheds-muted);
  line-height: 1.3;
}

.sheds-today__areas {
  margin: 0.55rem 0 0.25rem;
}

.sheds-today__section-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sheds-muted);
}

.sheds-today__areas ul,
.sheds-today__signals {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sheds-today__areas li,
.sheds-today__signals li {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--sheds-text);
}

.sheds-today__area-why {
  display: block;
  color: var(--sheds-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.sheds-today__tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--sheds-border);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sheds-muted);
  vertical-align: middle;
}

.sheds-today__signals li[data-kind="fact"] .sheds-today__tag { color: #9fd0ff; border-color: rgba(159, 208, 255, 0.35); }
.sheds-today__signals li[data-kind="analysis"] .sheds-today__tag { color: var(--sheds-accent); border-color: rgba(132, 147, 114, 0.35); }
.sheds-today__signals li[data-kind="pattern"] .sheds-today__tag { color: #c6b4ff; border-color: rgba(198, 180, 255, 0.35); }
.sheds-today__signals li[data-kind="uncertain"] .sheds-today__tag { color: #f0c090; border-color: rgba(240, 192, 144, 0.35); }

.sheds-today__uncertain {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #f0c090;
  line-height: 1.4;
}

.sheds-fieldset {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem 0.85rem;
  border: 1px solid var(--sheds-border);
  border-radius: 12px;
}

.sheds-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--sheds-muted);
}

.sheds-legend-float__mode {
  flex: 1 1 auto;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sheds-accent);
  margin-bottom: 0;
}

@media (max-width: 40rem) {
  .sheds-today__windows {
    grid-template-columns: 1fr;
  }
}

.sheds-suggest__glance {
  grid-column: 1;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.sheds-suggest:not([data-expanded="true"]) .sheds-suggest__summary {
  padding-bottom: 0.55rem;
}

.sheds-suggest__conf {
  grid-column: 1;
  font-size: 0.78rem;
  color: var(--sheds-muted);
  line-height: 1.3;
  margin-top: 0.05rem;
}

.sheds-suggest__stars {
  /* legacy alias if referenced */
  color: var(--sheds-muted);
}

.sheds-suggest__chev {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--sheds-muted);
  border-bottom: 2px solid var(--sheds-muted);
  transform: rotate(45deg);
  transition: transform 0.28s var(--sheds-ease);
  margin-right: 0.15rem;
  opacity: 0.7;
}

.sheds-suggest[data-expanded="true"] .sheds-suggest__chev {
  transform: rotate(-135deg);
  margin-top: 0.35rem;
}

.sheds-suggest__details {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--sheds-border);
}

.sheds-suggest__details[hidden] {
  display: none !important;
}

.sheds-plan__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0.85rem 0 0.35rem;
}

.sheds-plan__stats[hidden] {
  display: none !important;
}

.sheds-plan__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.4rem;
  border-radius: 12px;
  background: rgba(6, 16, 12, 0.7);
  border: 1px solid var(--sheds-border);
  font-size: 0.84rem;
  font-weight: 650;
  text-align: center;
}

.sheds-plan__stat-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sheds-muted);
  font-weight: 600;
}

.sheds-plan__body {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.sheds-plan__why-wrap {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: var(--sheds-muted);
}

.sheds-plan__why-wrap summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--sheds-text);
  font-weight: 600;
}

.sheds-plan__why {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--sheds-muted);
}

.sheds-plan__meta {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: var(--sheds-muted);
  line-height: 1.4;
}

.sheds-plan__meta a {
  color: var(--sheds-accent);
}

.sheds-plan__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.sheds-plan__actions[hidden] {
  display: none !important;
}

.sheds-plan__actions .sheds-btn {
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
  box-shadow: none;
  flex: 1 1 calc(50% - 0.45rem);
  justify-content: center;
}

.sheds-plan__note-label {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.7rem;
  color: var(--sheds-muted);
}

.sheds-plan__note {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.25rem;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--sheds-border);
  background: #08140f;
  color: var(--sheds-text);
  font: inherit;
  font-size: 0.88rem;
}

.sheds-plan__note:focus-visible {
  outline: 2px solid var(--sheds-accent);
  outline-offset: 2px;
}

.sheds-btn {
  appearance: none;
  border: 1px solid var(--sheds-border);
  background: rgba(14, 32, 24, 0.94);
  color: var(--sheds-text);
  border-radius: 12px;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.sheds-btn:focus-visible {
  outline: 2px solid var(--sheds-accent);
  outline-offset: 2px;
}

.sheds-btn--primary {
  background: var(--sheds-accent);
  color: #0a1410;
  border-color: transparent;
}

.sheds-btn--ghost {
  background: rgba(8, 18, 14, 0.82);
}

.sheds-sheet {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.sheds-sheet.is-open {
  display: flex;
}

.sheds-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 8, 0.55);
}

.sheds-sheet__panel {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(82vh, 720px);
  overflow: auto;
  background: var(--sheds-surface-solid);
  border: 1px solid var(--sheds-border);
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem calc(1rem + var(--sheds-safe-bottom));
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
  animation: sheds-sheet-in 0.32s var(--sheds-ease);
}

.sheds-sheet__panel--tools {
  max-height: min(70vh, 520px);
}

.sheds-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sheds-tools-grid .sheds-btn {
  box-shadow: none;
  justify-content: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  text-align: center;
}

.sheds-sheet__title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.sheds-sheet__lede {
  margin: 0 0 0.85rem;
  color: var(--sheds-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sheds-ethics-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--sheds-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.sheds-ethics-list li { margin-bottom: 0.55rem; }
.sheds-ethics-list strong { color: var(--sheds-text); }

.sheds-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.sheds-field label {
  font-size: 0.8rem;
  color: var(--sheds-muted);
}

.sheds-field input,
.sheds-field select,
.sheds-field textarea {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--sheds-border);
  background: #08140f;
  color: var(--sheds-text);
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.sheds-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.sheds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sheds-error {
  color: var(--sheds-danger);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.5rem;
}

.sheds-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.sheds-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.sheds-note {
  font-size: 0.78rem;
  color: var(--sheds-muted);
  line-height: 1.4;
  margin: 0.35rem 0 0;
}

.sheds-tech {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border-radius: 10px;
  background: #08140f;
  font-size: 0.7rem;
  overflow: auto;
  max-height: 8rem;
  color: var(--sheds-muted);
}

.sheds-div-icon {
  background: transparent !important;
  border: none !important;
}

.sheds-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0a1410;
  border: 2px solid #08140f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sheds-marker--shed { background: #d4e85a; border-radius: 50%; }
.sheds-marker--deer { background: #a8c4a0; }
.sheds-marker--sign { background: #e4c56d; }
.sheds-marker--trail { background: #7eb6ff; border-radius: 4px; }
.sheds-marker--bed { background: #8fbf7a; }
.sheds-marker--feed { background: #e6a15c; }
.sheds-marker--fence { background: #d9d2c5; }
.sheds-marker--winter { background: #9ec9e8; }
.sheds-marker--search { background: #888; color: #fff; }
.sheds-marker--access { background: #f0b8b0; }
.sheds-marker--note { background: #cfc6e8; }
.sheds-marker--other { background: #aeb6c2; }

.leaflet-control-attribution {
  max-width: min(42vw, 12rem);
  font-size: 0.55rem !important;
  margin-left: 0.35rem !important;
  margin-right: 0 !important;
  margin-bottom: calc(var(--sheds-sheet-peek) + 0.25rem) !important;
  background: rgba(7, 18, 13, 0.65) !important;
  color: var(--sheds-muted) !important;
  border-radius: 6px !important;
  z-index: 400 !important;
}

.leaflet-bottom.leaflet-right {
  display: none !important; /* zoom moved into labeled field rail */
}

.leaflet-bottom.leaflet-left {
  bottom: 0.15rem !important;
  left: 0.15rem !important;
  z-index: 420;
}

/* When Today's Search is expanded, keep attribution from floating through copy. */
#sheds-map-shell:has(#plan-card[data-expanded="true"]) .leaflet-control-attribution {
  display: none !important;
}

.leaflet-top.leaflet-right {
  top: calc(3.2rem + var(--sheds-safe-top)) !important;
  right: calc(0.5rem + var(--sheds-safe-right)) !important;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  border: none !important;
}

.leaflet-control-layers {
  background: rgba(8, 20, 15, 0.92) !important;
  border: 1px solid var(--sheds-border) !important;
  border-radius: 10px !important;
  color: var(--sheds-text) !important;
}

.leaflet-control-layers::before {
  content: "Map";
  display: block;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sheds-muted);
  padding: 0.25rem 0.45rem 0;
}

.sheds-heat-layer {
  opacity: 0.95;
  transition: opacity 0.4s var(--sheds-ease);
  pointer-events: none;
}

.sheds-search-areas-layer {
  pointer-events: none;
}

.sheds-user-pulse {
  /* legacy class — opacity-only pulse; prefer .sheds-user-marker */
  animation: sheds-pulse 2s ease-in-out infinite;
}

.sheds-user-marker {
  /* Leaflet path class hook — no transform animation (avoids screen oscillation) */
}

.sheds-search-target {
  background: transparent !important;
  border: none !important;
}

.sheds-search-target__mark {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  background: #e0a046;
  border: 2px solid #1a1208;
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px rgba(224, 160, 70, 0.35);
}

.sheds-search-target__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1208;
  background: #e0a046;
  border-radius: 4px;
  padding: 0.1rem 0.28rem;
  text-align: center;
  line-height: 1.2;
}

.sheds-map-tip {
  font-size: 0.75rem !important;
}

@media (max-width: 520px) {
  :root {
    --sheds-fab-size: 2.75rem;
    /* Compact Field Briefing peek — map-first; expand for full briefing */
    --sheds-sheet-peek: 4.5rem;
    --sheds-dock-h: 3.6rem;
  }

  .sheds-plan__stats {
    grid-template-columns: 1fr 1fr;
  }

  .sheds-grid-2 {
    grid-template-columns: 1fr;
  }

  .sheds-here {
    max-width: min(58vw, 13.5rem);
  }

  .sheds-sheet-field__grab {
    margin: 0.3rem auto 0.05rem;
  }

  .sheds-suggest__summary {
    min-height: 0;
    padding: 0.05rem 1rem 0.45rem;
    gap: 0.04rem 0.45rem;
  }

  .sheds-suggest__kicker {
    font-size: 0.88rem;
  }

  .sheds-suggest__glance {
    font-size: 0.82rem;
  }

  .sheds-suggest__conf {
    font-size: 0.74rem;
  }
}

@media (min-width: 720px) and (min-height: 501px) {
  .sheds-plan__actions .sheds-btn {
    flex: 0 0 auto;
  }

  .sheds-suggest[data-expanded="true"],
  .sheds-suggest:not([data-expanded="true"]) {
    max-width: 26rem;
    left: 0.75rem;
    right: auto;
    bottom: calc(0.75rem + var(--sheds-safe-bottom));
    border-radius: 20px;
    border: 1px solid var(--sheds-border);
    border-left: 3px solid var(--sheds-accent);
    margin-bottom: 0;
    max-height: none;
    /* Collapsed card must fully fit — never clip under overflow:hidden shell */
    height: auto;
    padding-bottom: 0.55rem;
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(132, 147, 114, 0.12);
  }

  .sheds-suggest:not([data-expanded="true"]) {
    max-height: none;
    overflow: visible;
  }

  .sheds-suggest[data-expanded="true"] {
    max-height: min(70vh, 32rem);
    overflow: auto;
  }

  .sheds-legend-float {
    /* Plan card (~9rem) + gap — keep legend fully above Today's Search */
    bottom: calc(10.25rem + var(--sheds-safe-bottom));
  }

  .sheds-search-legend {
    bottom: calc(14.35rem + var(--sheds-safe-bottom));
    max-width: min(18rem, 22vw);
  }

  /*
   * Escape: Leaflet attribution used mobile sheet-peek offset and sat in the
   * ~1rem gap between legend and Today's Search (lower-left sandwich clip).
   * Park it above the legend stack instead.
   */
  .leaflet-control-attribution {
    margin-bottom: calc(15.1rem + var(--sheds-safe-bottom)) !important;
  }

  .sheds-fab-rail {
    bottom: calc(0.85rem + var(--sheds-safe-bottom));
  }

  /* Desktop: keep legend body always visible (toggle is decorative header). */
  .sheds-legend-float__toggle {
    pointer-events: none;
  }

  .sheds-legend-float__body {
    display: flex !important;
  }

  .sheds-legend-float__chev {
    display: none !important;
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  :root {
    --sheds-sheet-peek: 4.25rem;
  }

  .sheds-suggest[data-expanded="true"] { max-height: 70vh; }
  .sheds-sheet__panel { max-height: 90vh; }
  .sheds-suggest__glance { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sheds-sheet__panel,
  .sheds-pill,
  .sheds-skip,
  .sheds-fab,
  .sheds-suggest,
  .sheds-nav-dot,
  .sheds-map-loading,
  .sheds-heat-layer,
  .leaflet-fade-anim .leaflet-tile {
    transition: none !important;
    animation: none !important;
  }

  .sheds-nav-dot[data-state="finding"],
  .sheds-nav-dot[data-state="available"],
  .sheds-nav-dot[data-state="tracking"] {
    animation: none;
  }
}

.reduced-motion .sheds-sheet__panel,
.reduced-motion .sheds-skip,
.reduced-motion .sheds-fab,
.reduced-motion .sheds-suggest {
  transition: none;
  animation: none;
}

/* —— Sprint 6: outdoor readability & one-handed field chrome —— */
.sheds-here__chip,
.sheds-hud-chip,
.sheds-fab {
  background: rgba(6, 16, 12, 0.94);
  border-color: rgba(220, 236, 180, 0.28);
  color: var(--sheds-text);
}

/* Restore high-contrast primary after outdoor readability base (Locate / pressed). */
.sheds-fab--primary,
.sheds-fab[aria-pressed="true"]:not(.sheds-fab--session) {
  background: var(--sheds-accent);
  color: var(--sheds-on-accent, #efe6d4);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(196, 90, 60, 0.28);
}

.sheds-fab:disabled,
.sheds-fab[aria-disabled="true"] {
  opacity: 0.45;
  color: rgba(245, 248, 244, 0.55);
  cursor: not-allowed;
}

.sheds-here__label {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--sheds-text);
}

.sheds-suggest__kicker {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sheds-suggest__glance {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sheds-text);
}

.sheds-suggest__conf {
  color: var(--sheds-accent);
  font-weight: 600;
}

.sheds-obs-location {
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(132, 147, 114, 0.1);
  border: 1px solid rgba(132, 147, 114, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sheds-text);
  word-break: break-word;
}

.sheds-actions--compact {
  margin: 0 0 0.75rem;
  gap: 0.5rem;
}

.sheds-actions--compact .sheds-btn {
  min-height: var(--wds-field-touch);
  font-weight: 600;
}

.sheds-sheet__panel .sheds-field label,
.sheds-sheet__panel .sheds-check {
  font-weight: 600;
  color: var(--sheds-text);
}

.sheds-sheet__panel select,
.sheds-sheet__panel textarea,
.sheds-sheet__panel input[type="number"],
.sheds-sheet__panel input[type="text"] {
  min-height: var(--wds-field-touch);
  font-size: 1rem;
  background: #0a1812;
  color: var(--sheds-text);
  border: 1px solid rgba(210, 230, 200, 0.28);
}

.sheds-map-offline {
  font-weight: 600;
  background: rgba(12, 22, 18, 0.96);
  border: 1px solid rgba(132, 147, 114, 0.35);
  color: var(--sheds-text);
}

@media (max-width: 480px) {
  .sheds-here {
    max-width: min(58vw, 13rem);
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .sheds-suggest {
    max-height: 4.6rem;
  }

  .sheds-suggest[data-expanded="true"] {
    max-height: min(88vh, 22rem);
  }
}


/* Sheds 2.0 Phase 1 — channel panel + YOU vs TARGET */
.sheds-channels {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--sheds-border, rgba(255,255,255,0.12));
  border-radius: 12px;
  background: rgba(8, 14, 22, 0.35);
}
.sheds-channel__k {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.12rem;
}
.sheds-channel p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
}
.sheds-channel__why {
  margin-top: 0.2rem !important;
  font-size: 0.75rem !important;
  opacity: 0.8;
}
.sheds-channel__limits {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  opacity: 0.78;
  line-height: 1.35;
}
.sheds-map-tip--you {
  background: #c4a574 !important;
  color: #0c1410 !important;
  border: none !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.65rem !important;
}
.sheds-map-tip--target {
  background: #e0a046 !important;
  color: #1a1208 !important;
  border: none !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.65rem !important;
}
.sheds-user-marker {
  filter: drop-shadow(0 0 0 2px rgba(10, 18, 32, 0.85));
}
.sheds-search-target__label {
  min-width: 3.2rem;
}

/* Phase 2 — SEARCH LOCATION (distinct from YOU / TARGET) */
.sheds-search-prompt {
  position: absolute;
  z-index: 620;
  left: 0.75rem;
  right: 0.75rem;
  top: 3.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(12, 18, 28, 0.92);
  border: 1px solid rgba(120, 190, 220, 0.35);
  color: #e8eef6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}
.sheds-search-prompt[hidden] {
  display: none !important;
}
.sheds-search-prompt__text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.88rem;
  line-height: 1.35;
}
.sheds-search-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.sheds-search-prompt__radius {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.9;
}
.sheds-search-prompt__radius select {
  font: inherit;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: inherit;
  padding: 0.25rem 0.4rem;
}
.sheds-search-loc {
  background: transparent !important;
  border: none !important;
}
.sheds-search-loc__mark {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border: 2.5px solid #5ec8e8;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(14, 22, 34, 0.85),
    inset 0 0 0 3px rgba(14, 22, 34, 0.9);
  background:
    linear-gradient(#5ec8e8, #5ec8e8) center/2px 100% no-repeat,
    linear-gradient(#5ec8e8, #5ec8e8) center/100% 2px no-repeat;
}
.sheds-search-loc__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0a1220;
  background: #5ec8e8;
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  text-align: center;
  line-height: 1.2;
}
.sheds-map-tip--search {
  background: #5ec8e8 !important;
  color: #0a1220 !important;
  border: none !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.65rem !important;
}
.sheds-search-area-ring {
  /* Leaflet path class hook */
}
@media (max-width: 520px) {
  .sheds-search-prompt {
    top: 3.2rem;
    padding: 0.45rem 0.55rem;
  }
  .sheds-search-prompt__text {
    font-size: 0.82rem;
  }
}
@media (max-width: 520px) {
  .sheds-channels {
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
  }
  .sheds-channel p {
    font-size: 0.82rem;
  }
}

/* Phase 3 Field Workflow */
.sheds-area-list { list-style: none; margin: 0; padding: 0; }
.sheds-area-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sheds-area-list__name { font-weight: 600; margin: 0 0 0.2rem; }
.sheds-area-list__meta { margin: 0 0 0.4rem; font-size: 0.8rem; opacity: 0.85; }
.sheds-area-list__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sheds-field-plan h3 { margin: 0.85rem 0 0.25rem; font-size: 0.95rem; }
.sheds-field-plan p { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.sheds-field-plan__gis { font-weight: 600; }
.sheds-session-summary p { margin: 0.35rem 0; }
.sheds-guidance-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(100,140,120,0.35);
}
.sheds-guidance-pill--combined { background: rgba(180,140,60,0.35); }
.sheds-guidance-pill--observed { background: rgba(90,120,160,0.4); }

/* Phase 4 — Validation + UX polish */
.sheds-marker-legend {
  position: absolute;
  top: calc(3.5rem + var(--sheds-safe-top));
  right: calc(0.65rem + var(--sheds-safe-right));
  z-index: 650;
  max-width: min(18rem, calc(100vw - 5.5rem));
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--sheds-surface);
  border: 1px solid var(--sheds-border);
  backdrop-filter: var(--sheds-blur);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.sheds-marker-legend__title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sheds-muted);
}
.sheds-marker-legend__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.sheds-marker-legend__list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.8rem;
  line-height: 1.35;
}
.sheds-marker-legend__swatch {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.sheds-marker-legend__swatch--you {
  background: #c4a574;
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.28);
}
.sheds-marker-legend__swatch--search {
  background: #5ec8e8;
  border-radius: 2px;
}
.sheds-marker-legend__swatch--target {
  background: #e8a84a;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border: none;
  border-radius: 0;
}
.sheds-marker-legend__swatch--obs {
  background: #8eb0ff;
  border-radius: 2px;
  transform: rotate(45deg);
}

.sheds-session-strip {
  position: absolute;
  left: calc(0.65rem + var(--sheds-safe-left));
  right: calc(4.6rem + var(--sheds-safe-right));
  top: calc(3.4rem + var(--sheds-safe-top));
  z-index: 640;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(12, 36, 24, 0.94);
  border: 1px solid rgba(212, 232, 90, 0.35);
  backdrop-filter: var(--sheds-blur);
  -webkit-backdrop-filter: var(--sheds-blur);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.sheds-session-strip[hidden] {
  display: none !important;
}
.sheds-session-strip__row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.sheds-session-strip__state {
  font-weight: 700;
  font-size: 0.82rem;
  color: #d4e85a;
}
.sheds-session-strip__meta {
  flex: 1 1 auto;
  font-size: 0.78rem;
  color: var(--sheds-muted);
  min-width: 0;
}
.sheds-session-strip .sheds-btn {
  flex: 0 0 auto;
  color: #0a1410;
  font-weight: 700;
}

.sheds-coach {
  position: absolute;
  left: calc(0.75rem + var(--sheds-safe-left));
  right: calc(0.75rem + var(--sheds-safe-right));
  bottom: calc(var(--sheds-sheet-peek) + 5.2rem + var(--sheds-safe-bottom));
  z-index: 700;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0.9rem 1rem 1rem;
  border-radius: 14px;
  background: var(--sheds-surface);
  border: 1px solid var(--sheds-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}
.sheds-coach__title {
  margin: 0 0 0.55rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.sheds-coach__list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--sheds-muted);
}
.sheds-coach__list li + li { margin-top: 0.35rem; }
.sheds-coach__list strong { color: var(--sheds-text); }
.sheds-coach__actions { display: flex; justify-content: flex-end; }

.sheds-trip {
  display: grid;
  gap: 0.65rem;
}
.sheds-trip__block {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sheds-trip__k {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sheds-muted);
}
.sheds-trip__block p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.sheds-trip__block .sheds-channel__why,
.sheds-trip__block .sheds-note {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  opacity: 0.88;
}

.sheds-advanced {
  margin: 1rem 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}
.sheds-advanced > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
}
.sheds-advanced > summary::-webkit-details-marker { display: none; }
.sheds-advanced > summary::before {
  content: "▸ ";
  opacity: 0.7;
}
.sheds-advanced[open] > summary::before { content: "▾ "; }
.sheds-advanced .sheds-tools-grid { margin-top: 0.65rem; }

.sheds-fab--session[aria-pressed="true"] {
  background: rgba(212, 232, 90, 0.22);
  border-color: rgba(212, 232, 90, 0.55);
  color: #e8f5a8;
}

@media (max-width: 520px) {
  .sheds-coach {
    bottom: calc(var(--sheds-sheet-peek) + var(--sheds-dock-h, 3.6rem) + 0.75rem + var(--sheds-safe-bottom));
    max-width: none;
  }
  .sheds-trip__block {
    padding: 0.5rem 0.55rem;
  }
  .sheds-marker-legend {
    max-width: calc(100vw - 1.5rem);
    left: calc(0.65rem + var(--sheds-safe-left));
    right: calc(0.65rem + var(--sheds-safe-right));
  }
}

/* =============================================================================
 * Mobile field chrome — phones + short landscape (iPhone landscape is often >719px wide)
 * Desktop left briefing card uses min-width 720 AND min-height 501.
 * ============================================================================= */
@media (max-width: 719px), (max-height: 500px) {
  :root {
    --sheds-sheet-peek: 4.35rem;
    --sheds-dock-h: 3.45rem;
    /* >= 42px touch target for Locate / zoom */
    --sheds-map-ctrl-size: 2.65rem;
    --sheds-mobile-chrome-gap: 0.45rem;
    /* Below header chips with intentional air */
    --sheds-mobile-header-end: calc(3.95rem + var(--sheds-safe-top));
    /* Single-row strip under header + chrome gap; keep ≥8px air below strip */
    --sheds-mobile-strip-end: calc(8.35rem + var(--sheds-safe-top));
    /* Reserve full wrapped SEARCH prompt height + ≥8px before YOU chip (390px wraps ~8rem) */
    --sheds-prompt-stack: 8.85rem;
  }

  .sheds-hud-brand {
    min-height: 2.45rem;
    padding: 0.26rem 0.55rem 0.26rem 0.32rem;
  }

  .sheds-hud-brand__name {
    font-size: 1rem;
  }

  .sheds-hud-chip {
    width: 2.45rem;
    height: 2.45rem;
    min-height: 2.45rem;
  }

  /* Session strip: compact single row — End Search stays obvious without a giant banner */
  .sheds-session-strip {
    left: calc(0.5rem + var(--sheds-safe-left));
    right: calc(0.5rem + var(--sheds-safe-right));
    top: calc(var(--sheds-mobile-header-end) + var(--sheds-mobile-chrome-gap));
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.4rem 0.32rem 0.55rem;
    z-index: 540;
  }

  .sheds-session-strip__row {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.3rem;
  }

  .sheds-session-strip__state {
    font-size: 0.78rem;
    flex: 0 0 auto;
  }

  .sheds-session-strip__meta {
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .sheds-session-strip .sheds-btn {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    min-height: 2.625rem;
    min-width: 5.75rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Default map ctrls / prompt below header (clear of ? / i chips) */
  .sheds-map-ctrls {
    position: absolute;
    top: calc(var(--sheds-mobile-header-end) + var(--sheds-mobile-chrome-gap));
    right: calc(0.5rem + var(--sheds-safe-right));
    gap: 0.3rem;
    align-items: flex-end;
  }

  .sheds-search-prompt {
    left: calc(0.5rem + var(--sheds-safe-left));
    right: calc(4.05rem + var(--sheds-safe-right));
    top: calc(var(--sheds-mobile-header-end) + var(--sheds-mobile-chrome-gap));
    z-index: 535;
    padding: 0.4rem 0.5rem;
    gap: 0.35rem 0.5rem;
  }

  .sheds-search-prompt__text {
    font-size: 0.8rem;
    flex: 1 1 8rem;
  }

  /* Presence chip sits under prompt when the SEARCH prompt is open */
  #sheds-map-shell:has(#search-prompt:not([hidden])) .sheds-here {
    top: calc(var(--sheds-mobile-header-end) + var(--sheds-mobile-chrome-gap) + var(--sheds-prompt-stack));
    max-width: min(55vw, 12.5rem);
  }

  /* Active search: stack chrome under compact strip */
  html.sheds-session-active .sheds-map-ctrls,
  html.sheds-session-active .sheds-search-prompt,
  html.sheds-session-active .sheds-marker-legend {
    top: var(--sheds-mobile-strip-end);
  }

  html.sheds-session-active .sheds-here {
    top: var(--sheds-mobile-strip-end);
    max-width: min(52vw, 12rem);
  }

  /* ID :has beats class-only session rule — keep presence below prompt while searching */
  html.sheds-session-active #sheds-map-shell:has(#search-prompt:not([hidden])) .sheds-here {
    top: calc(var(--sheds-mobile-strip-end) + var(--sheds-prompt-stack));
  }

  html.sheds-session-active .sheds-here__track {
    display: none;
  }

  /* FAB rail becomes a full-bleed positioning shell */
  .sheds-fab-rail {
    inset: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: stretch;
    gap: 0;
    z-index: 560;
  }

  /* Hide Leaflet basemap control on field chrome — Layers lives under More */
  .leaflet-top.leaflet-right {
    display: none !important;
  }

  .sheds-map-ctrls .sheds-fab--map {
    width: var(--sheds-map-ctrl-size);
    min-width: var(--sheds-map-ctrl-size);
    height: var(--sheds-map-ctrl-size);
    min-height: var(--sheds-map-ctrl-size);
    padding: 0;
    justify-content: center;
    border-radius: 14px;
    background: rgba(8, 22, 16, 0.96);
    color: var(--sheds-text);
    border: 1px solid rgba(239, 230, 212, 0.28);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  }

  .sheds-map-ctrls .sheds-fab--map.sheds-fab--primary {
    background: var(--sheds-accent, #c45a3c);
    color: var(--sheds-on-accent, #efe6d4);
    border-color: transparent;
  }

  .sheds-map-ctrls .sheds-fab--map .sheds-fab__label {
    display: none;
  }

  .sheds-map-ctrls .sheds-fab__icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .sheds-zoom-pair {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.15rem;
    background: rgba(6, 14, 11, 0.72);
  }

  .sheds-fab--zoom {
    width: var(--sheds-map-ctrl-size);
    min-width: var(--sheds-map-ctrl-size);
    height: var(--sheds-map-ctrl-size);
    min-height: var(--sheds-map-ctrl-size);
    padding: 0;
    border-radius: 12px;
    flex-direction: row;
    justify-content: center;
    background: rgba(8, 22, 16, 0.96);
    color: var(--sheds-text);
    border: 1px solid rgba(230, 240, 200, 0.35);
  }

  .sheds-fab--zoom .sheds-fab__label {
    display: none;
  }

  .sheds-fab--zoom .sheds-fab__glyph {
    font-size: 1.35rem;
    line-height: 1;
    width: auto;
  }

  /* Bottom action dock — Search | Note | Plan | More */
  .sheds-app-dock {
    position: absolute;
    left: calc(0.4rem + var(--sheds-safe-left));
    right: calc(0.4rem + var(--sheds-safe-right));
    bottom: calc(var(--sheds-sheet-peek) + 0.3rem + var(--sheds-safe-bottom));
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.22rem;
    border-radius: 14px;
    background: rgba(6, 16, 12, 0.96);
    border: 1px solid rgba(220, 236, 180, 0.3);
    backdrop-filter: var(--sheds-blur);
    -webkit-backdrop-filter: var(--sheds-blur);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  }

  .sheds-app-dock .sheds-fab {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 2.65rem;
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.12rem;
    padding: 0.22rem 0.15rem;
    border-radius: 11px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--sheds-text);
  }

  .sheds-app-dock .sheds-fab__icon {
    width: 1.1rem;
    height: 1.1rem;
  }

  .sheds-app-dock .sheds-fab__label {
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.02em;
  }

  .sheds-app-dock .sheds-fab--session[aria-pressed="true"] {
    background: rgba(212, 232, 90, 0.22);
    border-color: rgba(212, 232, 90, 0.45);
    color: #e8f5a8;
  }

  .sheds-app-dock .sheds-fab:focus-visible {
    outline-offset: 0;
  }

  /* Hide floating chrome while Field Briefing is expanded (map + briefing only) */
  #sheds-map-shell:has(#plan-card[data-expanded="true"]) .sheds-app-dock,
  #sheds-map-shell:has(#plan-card[data-expanded="true"]) .sheds-map-ctrls,
  #sheds-map-shell:has(#plan-card[data-expanded="true"]) .sheds-legend-float {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Compact Field Briefing bottom sheet */
  .sheds-suggest:not([data-expanded="true"]) .sheds-suggest__eyebrow,
  .sheds-suggest:not([data-expanded="true"]) .sheds-suggest__conf {
    display: none;
  }

  .sheds-suggest:not([data-expanded="true"]) .sheds-suggest__summary {
    grid-template-rows: auto auto;
    padding: 0.05rem 1rem 0.5rem;
    min-height: 0;
  }

  .sheds-suggest:not([data-expanded="true"]) .sheds-suggest__chev {
    grid-row: 1 / span 2;
    transform: rotate(-135deg);
    margin-top: 0.35rem;
  }

  .sheds-suggest:not([data-expanded="true"]) .sheds-suggest__glance {
    white-space: nowrap;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--sheds-muted);
  }

  .sheds-suggest:not([data-expanded="true"]) .sheds-suggest__glance::after {
    content: " ↑";
    opacity: 0.75;
  }

  .sheds-suggest[data-expanded="true"] {
    max-height: min(58dvh, 28rem);
  }

  /* Collapsible landscape legend */
  .sheds-legend-float {
    left: calc(0.5rem + var(--sheds-safe-left));
    bottom: calc(var(--sheds-sheet-peek) + var(--sheds-dock-h) + 0.65rem + var(--sheds-safe-bottom));
    max-width: min(10.75rem, calc(100vw - 5rem));
    padding: 0;
    overflow: hidden;
  }

  .sheds-search-legend {
    left: calc(0.5rem + var(--sheds-safe-left));
    bottom: calc(var(--sheds-sheet-peek) + var(--sheds-dock-h) + 3.35rem + var(--sheds-safe-bottom));
    max-width: min(11.25rem, calc(100vw - 5rem));
    padding: 0.15rem 0.4rem 0.2rem;
  }

  .sheds-search-legend__toggle {
    min-height: 2.2rem;
    font-size: 0.68rem;
  }

  .sheds-legend-float__toggle {
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    min-height: 2.2rem;
  }

  .sheds-legend-float__toggle:focus-visible {
    outline: 2px solid var(--sheds-accent);
    outline-offset: -2px;
  }

  .sheds-legend-float__chev {
    display: block;
  }

  .sheds-legend-float[data-expanded="true"] .sheds-legend-float__chev {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
  }

  .sheds-legend-float:not([data-expanded="true"]) .sheds-legend-float__body {
    display: none;
  }

  .sheds-legend-float[data-expanded="true"] .sheds-legend-float__body {
    display: flex;
    padding: 0 0.55rem 0.5rem;
  }

  .sheds-legend-float__mode {
    font-size: 0.62rem;
  }

  /* Search prompt positioning is set above with map ctrls */

  .sheds-coach {
    bottom: calc(var(--sheds-sheet-peek) + var(--sheds-dock-h) + 0.65rem + var(--sheds-safe-bottom));
    left: calc(0.5rem + var(--sheds-safe-left));
    right: calc(0.5rem + var(--sheds-safe-right));
  }

  .leaflet-control-attribution {
    margin-bottom: calc(var(--sheds-sheet-peek) + var(--sheds-dock-h) + 0.35rem + var(--sheds-safe-bottom)) !important;
    max-width: 55vw;
    font-size: 0.62rem !important;
  }

  .sheds-marker-legend {
    top: var(--sheds-mobile-header-end);
    z-index: 650;
  }
}

/* Very narrow phones: keep End Search full-width so it stays easy to tap;
   SEARCH prompt actions wrap — reserve more stack for YOU chip. */
@media (max-width: 380px) {
  :root {
    --sheds-prompt-stack: 10.25rem;
  }
}

@media (max-width: 359px) {
  .sheds-session-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }

  .sheds-session-strip .sheds-btn {
    width: 100%;
    min-width: 0;
  }

  :root {
    --sheds-mobile-strip-end: calc(9.65rem + var(--sheds-safe-top));
    --sheds-prompt-stack: 10.35rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --sheds-sheet-peek: 3.2rem;
    --sheds-dock-h: 3rem;
    --sheds-mobile-header-end: calc(3.75rem + var(--sheds-safe-top));
    --sheds-mobile-strip-end: calc(8.15rem + var(--sheds-safe-top));
    --sheds-prompt-stack: 6.25rem;
    --sheds-mobile-chrome-gap: 0.4rem;
  }

  .sheds-app-dock {
    padding: 0.14rem;
  }

  .sheds-app-dock .sheds-fab {
    min-height: 2.4rem;
  }

  .sheds-suggest:not([data-expanded="true"]) .sheds-suggest__glance {
    display: none;
  }

  .sheds-legend-float:not([data-expanded="true"]) {
    max-width: 9.5rem;
  }

  .sheds-session-strip__meta {
    display: none;
  }

  .sheds-hud-chip {
    width: 2.25rem;
    height: 2.25rem;
    min-height: 2.25rem;
  }
}


/* V2.0 Phase 1 — Why these bands today */
.sheds-why-bands {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--sheds-safe-bottom, 12px) + 72px);
  z-index: 620;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sheds-forest-ink, #1a241c) 88%, transparent);
  color: var(--sheds-forest-cream, #f3efe4);
  border: 1px solid color-mix(in srgb, var(--sheds-forest-olive, #6d7a52) 55%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.sheds-why-bands__summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sheds-why-bands__summary::-webkit-details-marker { display: none; }
.sheds-why-bands__body {
  padding: 0 14px 12px;
  font-size: 0.86rem;
  line-height: 1.35;
}
.sheds-why-bands__status { margin: 0 0 8px; opacity: 0.95; }
.sheds-why-bands__list {
  margin: 0 0 8px;
  padding-left: 1.1rem;
}
.sheds-why-bands__list li { margin: 0 0 4px; }
.sheds-why-bands__note {
  margin: 0;
  opacity: 0.72;
  font-size: 0.78rem;
}
@media (max-width: 390px) {
  .sheds-why-bands {
    bottom: calc(var(--sheds-safe-bottom, 10px) + 64px);
    max-width: none;
  }
}
@media (max-width: 320px) {
  .sheds-why-bands__summary { font-size: 0.86rem; padding: 8px 10px; }
  .sheds-why-bands__body { font-size: 0.8rem; padding: 0 10px 10px; }
}
