.hike-launch-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 0.85rem;
  border: 1px solid #132f2730;
  background: #132f27;
  color: #fffdf7;
  padding: 1rem;
}

.hike-launch-symbol {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dce85c;
  color: #132f27;
  font: 400 2rem/1 "Instrument Serif", Georgia, serif;
}

.hike-launch-copy {
  min-width: 0;
}

.hike-launch-copy span,
.hike-launch-copy strong,
.hike-launch-copy small {
  display: block;
}

.hike-launch-copy span {
  color: #dce85c;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hike-launch-copy strong {
  margin-top: 0.15rem;
  font: 400 1.5rem/1.05 "Instrument Serif", Georgia, serif;
}

.hike-launch-copy small {
  margin-top: 0.35rem;
  color: #fffdf7c4;
  font-size: 0.65rem;
  line-height: 1.35;
}

#hike-launch {
  min-height: 48px;
  border: 1px solid #dce85c;
  border-radius: 999px;
  background: #dce85c;
  color: #132f27;
  padding: 0.65rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

#hike-launch:hover,
#hike-launch:focus-visible {
  background: #ffc44d;
  border-color: #ffc44d;
}

.hike-setup-dialog,
.hike-end-dialog,
.hike-summary-dialog {
  width: min(560px, calc(100% - 1rem));
  max-height: calc(100dvh - 1rem);
  border: 0;
  background: #f4f0e5;
  color: #132f27;
  padding: 0;
  overflow: auto;
}

.hike-setup-dialog::backdrop,
.hike-end-dialog::backdrop,
.hike-summary-dialog::backdrop {
  background: #071b15c9;
}

.hike-setup-shell,
.hike-end-shell,
.hike-summary-shell {
  padding: clamp(1.25rem, 5vw, 2.4rem);
}

.hike-setup-shell h2,
.hike-end-shell h2,
.hike-summary-shell h2 {
  max-width: 10ch;
  margin: 0;
  font: 400 clamp(3rem, 11vw, 5rem) / 0.9 "Instrument Serif", Georgia,
    serif;
  letter-spacing: -0.035em;
}

.hike-setup-shell > p:not(.eyebrow),
.hike-end-shell > p:not(.eyebrow),
.hike-summary-shell > p:not(.eyebrow) {
  font-size: 0.76rem;
  line-height: 1.5;
}

.hike-itinerary-choices {
  margin: 1.5rem 0 0.75rem;
  border: 0;
  padding: 0;
}

.hike-itinerary-choices legend {
  margin-bottom: 0.55rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hike-itinerary-choices label,
.hike-voice-choice {
  min-height: 70px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid #132f2730;
  cursor: pointer;
}

.hike-itinerary-choices label:last-child {
  border-bottom: 1px solid #132f2730;
}

.hike-itinerary-choices input,
.hike-voice-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #132f27;
}

.hike-itinerary-choices strong,
.hike-itinerary-choices small,
.hike-voice-choice strong,
.hike-voice-choice small {
  display: block;
}

.hike-itinerary-choices strong,
.hike-voice-choice strong {
  font-size: 0.78rem;
}

.hike-itinerary-choices small,
.hike-voice-choice small {
  margin-top: 0.2rem;
  color: #132f27b3;
  font-size: 0.62rem;
  line-height: 1.35;
}

.hike-itinerary-choices label:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

.hike-voice-choice {
  border-bottom: 1px solid #132f2730;
}

.hike-setup-start {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  margin-top: 1.2rem;
  font-weight: 700;
}

.hike-setup-status {
  min-height: 2.6em;
  margin: 0.8rem 0 0;
  color: #93402d;
  font-size: 0.64rem;
}

.hike-mode-open {
  overflow: hidden;
}

.hike-mode-surface {
  position: fixed;
  z-index: 90;
  inset: 0;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #f4f0e5;
  color: #132f27;
}

.hike-mode-surface[hidden] {
  display: none;
}

.hike-mode-header {
  min-height: calc(68px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid #ffffff29;
  background: #132f27;
  color: #fffdf7;
  padding: max(0.55rem, env(safe-area-inset-top)) max(
      0.8rem,
      env(safe-area-inset-right)
    )
    0.55rem max(0.8rem, env(safe-area-inset-left));
}

.hike-mode-header > div:first-child span,
.hike-mode-header > div:first-child strong {
  display: block;
}

.hike-mode-header > div:first-child span {
  color: #dce85c;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hike-mode-header > div:first-child strong {
  margin-top: 0.12rem;
  font: 400 1.35rem/1 "Instrument Serif", Georgia, serif;
}

.hike-gps {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  padding: 0.3rem 0.35rem;
  text-align: left;
  cursor: pointer;
}

.hike-gps:focus-visible {
  outline: 2px solid #dce85c;
  outline-offset: 2px;
}

.hike-gps i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffc44d;
  box-shadow: 0 0 0 5px #ffc44d1f;
}

.hike-gps[data-tone="good"] i {
  background: #dce85c;
}

.hike-gps[data-tone="okay"] i {
  background: #8fcf88;
}

.hike-gps[data-tone="weak"] i,
.hike-gps[data-tone="bad"] i {
  background: #ff8568;
}

.hike-gps span,
.hike-gps strong,
.hike-gps small {
  display: block;
}

.hike-gps strong {
  font-size: 0.59rem;
}

.hike-gps small {
  color: #fffdf7b8;
  font-size: 0.52rem;
}

#hike-minimize {
  min-height: 44px;
  border: 1px solid #ffffff52;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 0.55rem 0.8rem;
  font-size: 0.65rem;
  cursor: pointer;
}

.hike-share-quick {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid #dce85c85;
  border-radius: 999px;
  background: #dce85c;
  color: #132f27;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.hike-share-quick[data-opted-in="true"] {
  background: #132f27;
  color: #dce85c;
}

.hike-share-quick:focus-visible {
  outline: 2px solid #fffdf7;
  outline-offset: 2px;
}

.hike-share-quick:disabled {
  opacity: 0.62;
  cursor: wait;
}

.hike-mode-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}

.hike-mode-main {
  width: min(980px, 100%);
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  grid-template-areas:
    "target crumb"
    "metrics crumb"
    "status status";
  gap: 1px;
  margin: 0 auto;
  background: #132f2730;
  border-inline: 1px solid #132f2730;
}

.hike-target-card {
  grid-area: target;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(0, 1.25fr);
  background: #fffdf7;
}

.hike-target-card[hidden] {
  display: none;
}

.hike-direction {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  background: #dce85c;
  padding: 1.4rem 1rem;
}

.hike-compass-ring {
  width: clamp(132px, 20vw, 190px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #132f2752;
  border-radius: 50%;
}

.hike-compass-ring::before,
.hike-compass-ring::after {
  content: "";
  position: absolute;
  background: #132f2730;
}

.hike-compass-ring::before {
  width: 1px;
  height: 100%;
}

.hike-compass-ring::after {
  width: 100%;
  height: 1px;
}

.hike-compass-ring i {
  position: absolute;
  top: 0.55rem;
  z-index: 2;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 700;
}

#hike-direction-arrow {
  position: relative;
  z-index: 2;
  display: block;
  transform-origin: center;
  font: 400 clamp(5.5rem, 12vw, 8.5rem) / 1 "Instrument Serif", Georgia,
    serif;
  transition: transform 0.22s ease-out;
}

.hike-target-distance {
  text-align: center;
}

.hike-target-distance strong,
.hike-target-distance small {
  display: block;
}

.hike-target-distance strong {
  font: 400 2rem/1 "Instrument Serif", Georgia, serif;
}

.hike-target-distance small {
  margin-top: 0.25rem;
  font-size: 0.58rem;
  font-weight: 700;
}

.hike-target-copy {
  min-width: 0;
  align-self: center;
  padding: clamp(1.2rem, 4vw, 2.2rem);
}

.hike-target-copy > span {
  color: #93402d;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hike-target-copy h2 {
  margin: 0.35rem 0 0;
  font: 400 clamp(2.4rem, 5.5vw, 4.2rem) / 0.9 "Instrument Serif",
    Georgia, serif;
  overflow-wrap: anywhere;
}

.hike-target-copy p {
  min-height: 2.7em;
  margin: 0.65rem 0 1rem;
  color: #132f27bd;
  font-size: 0.68rem;
  line-height: 1.4;
}

.hike-target-copy select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #132f2740;
  border-radius: 0;
  background: #f4f0e5;
  padding: 0.55rem 2rem 0.55rem 0.7rem;
  font-size: 0.68rem;
}

.hike-inline-action {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0.55rem 0;
  color: #93402d;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.hike-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #132f2730;
}

.hike-metrics > div {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f4f0e5;
  padding: 1rem;
}

.hike-metrics span {
  color: #93402d;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hike-metrics strong {
  margin-top: 0.35rem;
  font: 400 clamp(1.65rem, 3.5vw, 2.6rem) / 1 "Instrument Serif", Georgia,
    serif;
  white-space: nowrap;
}

.hike-metrics small {
  font-size: 0.5rem;
}

.hike-breadcrumb-card {
  grid-area: crumb;
  min-width: 0;
  background: #132f27;
  color: #fffdf7;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.hike-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.hike-section-head span {
  color: #dce85c;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hike-section-head h2 {
  margin: 0.25rem 0 0;
  font: 400 2.2rem/0.95 "Instrument Serif", Georgia, serif;
}

.hike-section-head > strong {
  max-width: 16ch;
  color: #fffdf7b5;
  font-size: 0.58rem;
  line-height: 1.35;
  text-align: right;
}

.hike-breadcrumb-map {
  width: 100%;
  min-height: 220px;
  margin: 1.2rem 0 0.7rem;
  border: 1px solid #ffffff29;
  background-image:
    linear-gradient(#ffffff12 1px, transparent 1px),
    linear-gradient(90deg, #ffffff12 1px, transparent 1px);
  background-size: 25% 25%;
}

.hike-breadcrumb-map path {
  fill: none;
  stroke: #dce85c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.hike-breadcrumb-map .hike-track-shadow {
  stroke: #071b15;
  stroke-width: 8;
}

#hike-track-start {
  fill: #ffc44d;
  stroke: #132f27;
  stroke-width: 3;
}

#hike-track-current {
  fill: #dce85c;
  stroke: #fffdf7;
  stroke-width: 3;
}

#hike-route-state {
  min-height: 3.2em;
  margin: 0;
  border-left: 3px solid #ffffff3d;
  padding: 0.55rem 0 0.55rem 0.75rem;
  color: #fffdf7c2;
  font-size: 0.62rem;
  line-height: 1.4;
}

#hike-route-state[data-tone="good"] {
  border-color: #dce85c;
}

#hike-route-state[data-tone="warning"] {
  border-color: #ff8568;
  color: #fff;
}

.hike-step-share {
  margin-top: 0.7rem;
  border-top: 1px solid #ffffff29;
  padding-top: 0.7rem;
}

.hike-step-share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.hike-step-share-actions[data-opted-in="true"] {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hike-step-share button {
  width: 100%;
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid #ffffff3d;
  border-radius: 12px;
  background: #ffffff0f;
  color: #fffdf7;
  padding: 0.65rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.hike-step-share button:focus-visible {
  outline: 2px solid #dce85c;
  outline-offset: 2px;
}

.hike-step-share button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.hike-step-share button[data-opted-in="true"] {
  border-color: #dce85c7a;
}

.hike-step-share button[hidden] {
  display: none;
}

.hike-step-share .hike-step-share-stop {
  width: auto;
  justify-content: center;
  border-color: #fffdf76b;
  white-space: nowrap;
}

.hike-step-share button span {
  font-size: 0.8rem;
  font-weight: 700;
}

.hike-step-share button strong {
  color: #dce85c;
  font-size: 0.75rem;
  white-space: nowrap;
}

.hike-step-share > small {
  display: block;
  margin-top: 0.4rem;
  color: #fffdf7c4;
  font-size: 0.75rem;
  line-height: 1.45;
}

.hike-step-share-feedback {
  margin: 0.55rem 0 0;
  border-left: 3px solid #dce85c;
  background: #ffffff12;
  color: #fffdf7;
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

.hike-step-share-feedback[hidden] {
  display: none;
}

.hike-step-share-feedback[data-tone="warning"] {
  border-color: #ff8568;
}

.hike-live-status {
  grid-area: status;
  min-height: 56px;
  margin: 0;
  display: flex;
  align-items: center;
  background: #fffdf7;
  border-left: 4px solid #132f2740;
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
  line-height: 1.4;
}

.hike-live-status[data-tone="success"] {
  border-color: #539c68;
}

.hike-live-status[data-tone="info"] {
  border-color: #3b6c70;
}

.hike-live-status[data-tone="warning"] {
  border-color: #93402d;
  background: #fff0e8;
}

.hike-mode-controls {
  min-height: calc(68px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #ffffff29;
  padding-bottom: env(safe-area-inset-bottom);
}

.hike-mode-controls button {
  min-width: 0;
  min-height: 60px;
  border: 0;
  background: #132f27;
  color: #fffdf7;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.hike-mode-controls button:hover,
.hike-mode-controls button:focus-visible,
.hike-mode-controls button[aria-pressed="true"] {
  background: #dce85c;
  color: #132f27;
}

#hike-request-end:hover,
#hike-request-end:focus-visible {
  background: #93402d;
  color: #fff;
}

.hike-mini-hud {
  position: fixed;
  z-index: 82;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: calc(78px + env(safe-area-inset-bottom));
  max-width: min(340px, calc(100vw - 1.5rem));
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #ffffff40;
  border-radius: 999px;
  background: #132f27;
  color: #fffdf7;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  box-shadow: 0 12px 35px #071b154d;
  text-align: left;
  cursor: pointer;
}

.hike-mini-hud > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce85c;
  color: #132f27;
  font: 400 1.8rem/1 "Instrument Serif", Georgia, serif;
}

.hike-mini-hud strong,
.hike-mini-hud small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hike-mini-hud strong {
  font-size: 0.78rem;
}

.hike-mini-hud small {
  margin-top: 0.1rem;
  color: #fffdf7b8;
  font-size: 0.68rem;
}

.hike-end-metrics,
.hike-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1.4rem 0;
  background: #132f2730;
}

.hike-end-metrics > div,
.hike-summary-metrics > div {
  min-width: 0;
  background: #fffdf7;
  padding: 1rem 0.75rem;
}

.hike-end-metrics span,
.hike-end-metrics strong,
.hike-summary-metrics span,
.hike-summary-metrics strong {
  display: block;
}

.hike-end-metrics span,
.hike-summary-metrics span {
  color: #93402d;
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hike-end-metrics strong,
.hike-summary-metrics strong {
  margin-top: 0.3rem;
  font: 400 1.7rem/1 "Instrument Serif", Georgia, serif;
  white-space: nowrap;
}

.hike-end-actions,
.hike-summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.hike-end-actions .button,
.hike-summary-actions .button {
  min-height: 52px;
  justify-content: center;
  text-align: center;
}

#field-hike.active {
  background: #dce85c;
  color: #132f27;
}

@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .field-dock:has(#field-hike) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .field-dock:has(#field-hike) strong {
    font-size: 0.54rem;
    letter-spacing: 0.025em;
  }

  .hike-launch-control {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .hike-launch-symbol {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  #hike-launch {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hike-mode-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "target"
      "metrics"
      "crumb"
      "status";
  }

  .hike-target-card {
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  }

  .hike-direction {
    padding: 1rem 0.65rem;
  }

  .hike-compass-ring {
    width: min(36vw, 142px);
  }

  #hike-direction-arrow {
    font-size: clamp(4.8rem, 21vw, 6.2rem);
  }

  .hike-target-copy {
    padding: 1rem;
  }

  .hike-target-copy h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hike-metrics > div {
    min-height: 88px;
    padding: 0.8rem;
  }

  .hike-breadcrumb-card {
    padding: 1rem;
  }

  .hike-breadcrumb-map {
    min-height: 176px;
  }

  .hike-section-head h2 {
    font-size: 1.9rem;
  }

  .hike-mini-hud {
    right: 0.55rem;
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 359px) {
  .hike-mode-header {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .hike-gps {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hike-gps span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .hike-target-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .hike-compass-ring {
    width: 104px;
  }

  #hike-direction-arrow {
    font-size: 4.4rem;
  }

  .hike-target-copy h2 {
    font-size: 1.8rem;
  }

  .hike-target-copy p {
    font-size: 0.61rem;
  }

  .hike-target-copy select {
    font-size: 0.62rem;
  }

  .hike-metrics strong {
    font-size: 1.4rem;
  }

  .hike-section-head {
    display: block;
  }

  .hike-section-head > strong {
    display: block;
    margin-top: 0.4rem;
    text-align: left;
  }

  .hike-end-actions,
  .hike-summary-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .hike-mode-header {
    min-height: 56px;
    padding-block: max(0.35rem, env(safe-area-inset-top)) 0.35rem;
  }

  .hike-mode-header > div:first-child span {
    display: none;
  }

  .hike-mode-main {
    grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.95fr);
    grid-template-areas:
      "target crumb"
      "metrics crumb"
      "status status";
  }

  .hike-target-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .hike-compass-ring {
    width: 102px;
  }

  #hike-direction-arrow {
    font-size: 4.3rem;
  }

  .hike-target-distance strong {
    font-size: 1.45rem;
  }

  .hike-target-copy {
    padding: 0.65rem;
  }

  .hike-target-copy h2 {
    font-size: 1.9rem;
  }

  .hike-target-copy p {
    min-height: 0;
    margin: 0.3rem 0;
  }

  .hike-target-copy select {
    min-height: 42px;
  }

  .hike-inline-action {
    min-height: 38px;
  }

  .hike-metrics > div {
    min-height: 68px;
    padding: 0.5rem 0.65rem;
  }

  .hike-metrics strong {
    font-size: 1.35rem;
  }

  .hike-breadcrumb-card {
    padding: 0.65rem;
  }

  .hike-section-head h2 {
    font-size: 1.5rem;
  }

  .hike-breadcrumb-map {
    min-height: 118px;
    margin: 0.55rem 0;
  }

  #hike-route-state {
    min-height: 0;
    padding-block: 0.35rem;
    font-size: 0.56rem;
  }

  .hike-step-share {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
  }

  .hike-step-share button {
    min-height: 48px;
    padding-block: 0.45rem;
  }

  .hike-live-status {
    min-height: 42px;
    padding-block: 0.45rem;
  }

  .hike-mode-controls {
    min-height: calc(52px + env(safe-area-inset-bottom));
  }

  .hike-mode-controls button {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hike-direction-arrow {
    transition: none;
  }
}

@media print {
  .hike-launch-control,
  .hike-mode-surface,
  .hike-mini-hud,
  .hike-setup-dialog,
  .hike-end-dialog,
  .hike-summary-dialog {
    display: none !important;
  }
}

/* A blocked phone needs one recovery choice, not four copies of the error. */
.hike-mode-surface[data-location-state="blocked"] .hike-mode-main,
.hike-mode-surface[data-location-state="blocked"]
  .hike-mode-main:not(.has-target) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "now";
  background: #f4f0e5;
}

.hike-mode-surface[data-location-state="blocked"] .hike-now-grid {
  grid-template-columns: minmax(0, 1fr);
}

.hike-mode-surface[data-location-state="blocked"] .hike-now-glance {
  align-self: start;
}

.hike-mode-surface[data-location-state="blocked"]
  .hike-now-card:nth-child(n + 2),
.hike-mode-surface[data-location-state="blocked"] .hike-more-nearby,
.hike-mode-surface[data-location-state="blocked"] .hike-field-glance,
.hike-mode-surface[data-location-state="blocked"] .hike-target-card,
.hike-mode-surface[data-location-state="blocked"] .hike-breadcrumb-card,
.hike-mode-surface[data-location-state="blocked"] .hike-live-status {
  display: none;
}

/* På tur shows the next decision; diagnostics keep running silently. */
.hike-gps small,
#hike-target-bearing {
  display: none;
}

.hike-metrics {
  grid-template-columns: minmax(0, 1fr);
  background: transparent;
}

.hike-metrics > div {
  display: none;
}

.hike-metrics > div:first-child {
  display: flex;
  min-height: 82px;
}

#hike-route-state,
.hike-live-status {
  display: none;
}

#hike-route-state[data-tone="warning"],
.hike-live-status[data-tone="warning"] {
  display: flex;
}

/* v159 · one self-explanatory field glance, powered by the existing GPS watch */
.hike-mode-main {
  grid-template-areas:
    "now now"
    "practical crumb"
    "target crumb"
    "status status";
}

.hike-mode-main:not(.has-target) {
  grid-template-areas:
    "now now"
    "practical crumb"
    "status status";
}

.hike-now-glance {
  grid-area: now;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  background: #f4f0e5;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.hike-now-head {
  align-self: center;
}

.hike-now-head > span {
  color: #93402d;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hike-now-head h1 {
  max-width: 10ch;
  margin: 0.25rem 0 0;
  font: 400 clamp(2.8rem, 6vw, 4.6rem) / 0.86 "Instrument Serif",
    Georgia, serif;
  letter-spacing: -0.035em;
}

.hike-now-head p {
  max-width: 24ch;
  margin: 0.7rem 0 0;
  color: #132f27bd;
  font-size: 0.66rem;
  line-height: 1.4;
}

.hike-now-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hike-now-card {
  min-width: 0;
  min-height: 174px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #132f2730;
  border-radius: 18px;
  background: #fffdf7;
  color: #132f27;
  padding: 1rem 3.25rem 1rem 1rem;
  text-align: left;
  cursor: pointer;
}

.hike-now-card:first-child {
  border-color: #132f27;
  background: #132f27;
  color: #fffdf7;
}

.hike-now-card:disabled {
  cursor: wait;
  opacity: 0.68;
}

.hike-now-card > span {
  color: #93402d;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hike-now-card:first-child > span {
  color: #dce85c;
}

.hike-now-card > small {
  margin-top: 0.3rem;
  color: currentColor;
  font-size: 0.61rem;
  font-weight: 700;
  opacity: 0.72;
}

.hike-now-card > strong {
  margin-top: 0.75rem;
  font: 400 clamp(1.55rem, 3.2vw, 2.25rem) / 0.95 "Instrument Serif",
    Georgia, serif;
  hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
}

.hike-now-card > p {
  display: -webkit-box;
  margin: auto 0 0;
  overflow: hidden;
  color: currentColor;
  font-size: 0.64rem;
  line-height: 1.4;
  opacity: 0.78;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hike-now-card > i {
  width: 38px;
  height: 38px;
  position: absolute;
  right: 0.85rem;
  top: calc(50% - 19px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce85c;
  color: #132f27;
  font: 400 1.75rem/1 "Instrument Serif", Georgia, serif;
  transition: transform 0.22s ease-out;
}

.hike-now-card:not(:disabled):focus-visible,
.hike-now-card[aria-pressed="true"] {
  border-color: #132f27;
  background: #dce85c;
  color: #132f27;
}

.hike-now-card:not(:disabled):focus-visible > span,
.hike-now-card[aria-pressed="true"] > span {
  color: #93402d;
}

.hike-now-card:not(:disabled):focus-visible > i,
.hike-now-card[aria-pressed="true"] > i {
  background: #132f27;
  color: #fffdf7;
}

.hike-more-nearby {
  min-height: 44px;
  grid-column: 2;
  justify-self: start;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #132f27;
  padding: 0;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .hike-now-card:not(:disabled):hover {
    border-color: #132f27;
    background: #dce85c;
    color: #132f27;
  }

  .hike-now-card:not(:disabled):hover > span {
    color: #93402d;
  }

  .hike-now-card:not(:disabled):hover > i {
    background: #132f27;
    color: #fffdf7;
  }
}

.hike-field-glance {
  grid-area: practical;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  background: #f4f0e5;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.hike-field-glance-head {
  align-self: center;
}

.hike-field-glance-head span {
  color: #93402d;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hike-field-glance-head h2 {
  margin: 0.25rem 0 0;
  font: 400 clamp(2.2rem, 4vw, 3.5rem) / 0.9 "Instrument Serif",
    Georgia, serif;
  letter-spacing: -0.035em;
}

.hike-field-glance-head p {
  max-width: 22ch;
  margin: 0.7rem 0 0;
  color: #132f27bd;
  font-size: 0.66rem;
  line-height: 1.4;
}

.hike-field-glance-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hike-field-card {
  min-width: 0;
  min-height: 126px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid #132f2730;
  border-radius: 18px;
  background: #fffdf7;
  color: #132f27;
  padding: 1rem 3.25rem 1rem 1rem;
  text-align: left;
  cursor: pointer;
}

.hike-field-card:not(:disabled):focus-visible,
.hike-field-card[aria-pressed="true"] {
  border-color: #132f27;
  background: #dce85c;
}

.hike-field-card:disabled {
  cursor: wait;
  opacity: 0.68;
}

.hike-field-card > span,
.hike-field-card > strong,
.hike-field-card > small {
  display: block;
}

.hike-field-card > span {
  color: #93402d;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hike-field-card > strong {
  margin-top: 0.35rem;
  font: 400 clamp(1.45rem, 3vw, 2.1rem) / 0.98 "Instrument Serif",
    Georgia, serif;
  overflow-wrap: anywhere;
}

.hike-field-card > small {
  margin-top: 0.5rem;
  color: #132f27bd;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
}

.hike-field-card > i {
  width: 38px;
  height: 38px;
  position: absolute;
  right: 0.85rem;
  top: calc(50% - 19px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce85c;
  color: #132f27;
  font: 400 1.75rem/1 "Instrument Serif", Georgia, serif;
  transition: transform 0.22s ease-out;
}

.hike-field-card:not(:disabled):focus-visible > i,
.hike-field-card[aria-pressed="true"] > i {
  background: #132f27;
  color: #fffdf7;
}

@media (hover: hover) and (pointer: fine) {
  .hike-field-card:not(:disabled):hover {
    border-color: #132f27;
    background: #dce85c;
  }

  .hike-field-card:not(:disabled):hover > i {
    background: #132f27;
    color: #fffdf7;
  }
}

.hike-proximity-nudge {
  grid-column: 1;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border-left: 3px solid #dce85c;
  background: #132f27;
  color: #fffdf7;
  padding: 0.45rem 0.45rem 0.45rem 0.8rem;
  font-size: 0.63rem;
  line-height: 1.35;
}

.hike-proximity-nudge[hidden] {
  display: none;
}

.hike-proximity-nudge[data-state="blocked"] {
  border-color: #ff8568;
}

.hike-proximity-nudge button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #dce85c;
  color: #132f27;
  padding: 0.55rem 0.9rem;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.hike-proximity-nudge button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hike-target-card {
  min-height: 360px;
}

.hike-target-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hike-breadcrumb-map {
  min-height: 188px;
}

.hike-mode-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .hike-mode-main {
    grid-template-areas:
      "now"
      "practical"
      "target"
      "crumb"
      "status";
  }

  .hike-mode-main:not(.has-target) {
    grid-template-areas:
      "now"
      "practical"
      "crumb"
      "status";
  }

  .hike-now-glance,
  .hike-field-glance {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1rem;
  }

  .hike-now-head h1 {
    max-width: 12ch;
    font-size: 2.8rem;
  }

  .hike-now-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hike-now-card {
    min-height: 142px;
  }

  .hike-more-nearby {
    grid-column: 1;
  }

  .hike-field-glance-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0.65rem;
  }

  .hike-field-glance-head p {
    grid-column: 1 / -1;
    margin-top: -0.25rem;
  }

  .hike-field-glance-head h2 {
    font-size: 2.25rem;
  }

  .hike-field-card {
    min-height: 126px;
    border-radius: 14px;
    padding: 0.85rem 2.8rem 0.85rem 0.85rem;
  }

  .hike-field-card > strong {
    font-size: clamp(1.28rem, 5.8vw, 1.8rem);
  }

  .hike-field-card > i {
    width: 34px;
    height: 34px;
    right: 0.65rem;
    top: calc(50% - 17px);
    font-size: 1.55rem;
  }

  .hike-proximity-nudge {
    grid-column: 1;
  }

  .hike-target-card {
    min-height: 0;
  }
}

@media (max-width: 359px) {
  .hike-now-grid,
  .hike-field-glance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hike-now-card {
    min-height: 152px;
  }

  .hike-field-card {
    min-height: 104px;
  }
}

@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .hike-mode-main {
    grid-template-areas:
      "now crumb"
      "practical crumb"
      "target crumb"
      "status status";
  }

  .hike-mode-main:not(.has-target) {
    grid-template-areas:
      "now crumb"
      "practical crumb"
      "status status";
  }

  .hike-now-glance,
  .hike-field-glance {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.65rem;
  }

  .hike-now-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0.5rem;
  }

  .hike-now-head h1 {
    max-width: none;
    font-size: 2rem;
  }

  .hike-now-head p {
    grid-column: 1 / -1;
    margin: -0.25rem 0 0;
    font-size: 0.58rem;
  }

  .hike-now-card {
    min-height: 132px;
  }

  .hike-now-card > strong {
    font-size: 1.35rem;
  }

  .hike-now-card > p {
    font-size: 0.58rem;
  }

  .hike-more-nearby {
    grid-column: 1;
  }

  .hike-field-glance-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0.5rem;
  }

  .hike-field-glance-head p {
    grid-column: 1 / -1;
    margin: -0.25rem 0 0;
    font-size: 0.58rem;
  }

  .hike-field-glance-head h2 {
    font-size: 1.8rem;
  }

  .hike-field-card {
    min-height: 86px;
    border-radius: 12px;
    padding-block: 0.6rem;
  }

  .hike-field-card > strong {
    font-size: 1.25rem;
  }

  .hike-field-card > small {
    margin-top: 0.25rem;
  }

  .hike-proximity-nudge {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hike-now-card > i,
  .hike-field-card > i {
    transition: none;
  }
}
