@font-face {
  font-family: "Bebas Neue";
  src: url("./assets/fonts/bebas-neue.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* v12 field reliability: honest GPS states and an in-app preflight. */
.dialog-notice {
  position: fixed;
  z-index: 5000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  max-width: 620px;
  margin-inline: auto;
  padding: 15px 18px;
  color: var(--pine-950);
  text-align: center;
  background: var(--sun-light);
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 2px 18px 2px 2px;
  box-shadow: 0 20px 60px rgb(0 10 14 / 48%);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.dialog-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.today-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 42px;
  color: var(--pine-950);
  background: var(--sun-light);
  border-bottom: 1px solid rgb(11 44 35 / 16%);
}

.today-preview-banner small,
.today-preview-banner strong {
  display: block;
}

.today-preview-banner small {
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.today-preview-banner strong {
  margin-top: 2px;
  font-size: 12px;
}

.today-preview-banner button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--white);
  background: var(--pine-950);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.comfort-alert {
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--pine-950);
  background: var(--sun-light);
  border-left: 3px solid var(--sun);
  border-radius: 1px 10px 1px 1px;
  font-size: 11px;
  font-weight: 700;
}

.walk-gps-pill.is-warning {
  border-color: rgb(245 185 65 / 48%);
}

.walk-gps-pill.is-warning > span {
  background: var(--sun);
  box-shadow: 0 0 0 5px rgb(245 185 65 / 13%);
}

.walk-user-wrap.is-stale {
  opacity: 0.55;
  filter: grayscale(0.75);
}

.rehearsal-card {
  margin: 18px 46px 0;
  padding: 18px;
  background: rgb(127 197 206 / 8%);
  border: 1px solid rgb(127 197 206 / 22%);
  border-radius: 2px 18px 2px 2px;
}

.rehearsal-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.rehearsal-head > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 11px;
}

.rehearsal-head small {
  color: var(--river);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.rehearsal-head h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.rehearsal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
}

.rehearsal-grid p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 9px;
  color: rgb(255 255 255 / 68%);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 9%);
  font-size: 10px;
}

.rehearsal-grid p > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  background: rgb(255 255 255 / 10%);
  border-radius: 50%;
}

.rehearsal-grid p.is-pass {
  color: var(--white);
  border-color: rgb(101 220 150 / 28%);
}

.rehearsal-grid p.is-pass > span {
  color: var(--pine-950);
  background: #65dc96;
}

.rehearsal-grid p.is-fail > span {
  color: var(--pine-950);
  background: var(--sun);
}

.rehearsal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.rehearsal-note {
  margin: 11px 0 0;
  color: rgb(255 255 255 / 52%);
  font-size: 10px;
}

.today-dialog.is-preview button:disabled,
.today-dialog.is-preview input:disabled,
.today-dialog.is-preview .comfort-reminder {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 780px) {
  .today-preview-banner {
    padding: 11px 14px;
  }

  .today-preview-banner strong {
    max-width: 57vw;
  }

  .rehearsal-card {
    margin: 16px 22px 0;
    padding: 14px;
  }

  .rehearsal-grid {
    grid-template-columns: 1fr;
  }

  .rehearsal-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --pine-950: #0b211c;
  --pine-900: #102f27;
  --pine-800: #174235;
  --pine-700: #245b48;
  --moss: #77927b;
  --river: #7fc5ce;
  --river-light: #d9f1f2;
  --sun: #f5b941;
  --sun-light: #ffdfa0;
  --granite: #c8c6bb;
  --paper: #eef0e8;
  --fog: #f7f8f3;
  --ink: #13231f;
  --white: #fffef9;
  --danger: #a94531;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --utility: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 28px 80px rgb(8 31 25 / 18%);
  --radius-lg: 30px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--fog);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--pine-950);
  background: var(--sun);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ios-standalone-warning {
  position: fixed;
  z-index: 3900;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 12px;
  left: 12px;
  display: flex;
  max-width: 720px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 14px 16px;
  color: var(--pine-950);
  background: var(--sun-light);
  border: 1px solid rgb(11 33 28 / 24%);
  border-radius: 2px 18px 2px 2px;
  box-shadow: 0 16px 40px rgb(5 22 18 / 32%);
}

.ios-standalone-warning[hidden] {
  display: none;
}

.ios-standalone-warning strong,
.ios-standalone-warning span {
  display: block;
}

.ios-standalone-warning span {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.ios-standalone-warning button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  background: var(--pine-950);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .ios-standalone-warning {
    align-items: stretch;
    flex-direction: column;
  }

  .ios-standalone-warning button {
    width: 100%;
  }
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  overflow: hidden;
  color: var(--white);
  background: var(--pine-950);
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo {
  background-image: url("./assets/photos/yosemite-valley.jpg");
  background-position: center 48%;
  background-size: cover;
  transform: scale(1.03);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(7 27 22 / 90%) 0%, rgb(7 27 22 / 64%) 48%, rgb(7 27 22 / 30%) 75%, rgb(7 27 22 / 52%) 100%),
    linear-gradient(0deg, rgb(7 27 22 / 84%) 0%, transparent 42%, rgb(7 27 22 / 35%) 100%);
}

.contour-art {
  position: absolute;
  right: -3vw;
  bottom: 7%;
  width: min(900px, 65vw);
  opacity: 0.25;
  stroke: var(--sun-light);
  stroke-width: 1.25;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - 72px));
  margin: 0 auto;
  padding: 26px 0 20px;
  border-bottom: 1px solid rgb(255 255 255 / 26%);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgb(255 255 255 / 64%);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 50%;
}

.brand-mark svg {
  width: 23px;
  stroke-width: 1.2;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

.topbar-links a {
  opacity: 0.8;
}

.topbar-links a:hover {
  opacity: 1;
}

.install-button {
  padding: 9px 14px;
  color: var(--white);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 999px;
  cursor: pointer;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 420px);
  gap: clamp(40px, 9vw, 150px);
  align-items: end;
  width: min(1280px, calc(100% - 96px));
  min-height: 650px;
  margin: 0 auto;
  padding: 90px 0 148px;
}

.hero-copy {
  max-width: 750px;
}

.eyebrow,
.section-kicker,
.locator-topline,
.map-status-label,
.day-header > div:nth-child(2) > p,
.verified-label {
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 28px;
  margin: 0 0 22px;
  color: var(--sun-light);
}

.eyebrow span + span::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 14px 3px 0;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(86px, 11.5vw, 174px);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--sun);
  font-style: normal;
  transform: translateX(clamp(28px, 5vw, 78px));
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -4% -3% -5%;
  border: 1px solid rgb(255 223 160 / 48%);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.hero-intro {
  max-width: 610px;
  margin: 36px 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.55;
}

.countdown {
  display: inline-grid;
  grid-template-columns: auto repeat(3, auto);
  gap: 0;
  align-items: stretch;
  margin-top: 28px;
  overflow: hidden;
  color: var(--white);
  background: rgb(9 40 32 / 68%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 2px 22px 2px 2px;
  backdrop-filter: blur(12px);
}

.countdown-label {
  display: flex;
  max-width: 130px;
  align-items: center;
  padding: 10px 16px;
  color: var(--sun-light);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.countdown-unit {
  display: grid;
  min-width: 64px;
  place-content: center;
  padding: 9px 14px;
  border-left: 1px solid rgb(255 255 255 / 16%);
  text-align: center;
}

.countdown-unit strong {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  line-height: 0.9;
}

.countdown-unit small {
  margin-top: 4px;
  color: rgb(255 255 255 / 50%);
  font-family: var(--utility);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.locator-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.button svg {
  width: 18px;
}

.button-sun {
  color: var(--pine-950);
  background: var(--sun);
  box-shadow: 0 12px 30px rgb(245 185 65 / 25%);
}

.button-sun:hover {
  background: #ffc653;
  transform: translateY(-1px);
}

.button-light {
  color: var(--pine-950);
  background: var(--white);
}

.text-link {
  padding-bottom: 4px;
  border-bottom: 1px solid rgb(255 255 255 / 42%);
  font-size: 14px;
  font-weight: 700;
}

.locator-card {
  position: relative;
  align-self: end;
  padding: 28px;
  overflow: hidden;
  color: var(--white);
  background: rgb(13 49 40 / 82%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 2px 38px 2px 2px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.locator-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  color: rgb(255 255 255 / 70%);
}

.signal-dot {
  width: 7px;
  height: 7px;
  background: var(--granite);
  border-radius: 50%;
}

.signal-dot.is-live {
  background: #65dc96;
  box-shadow: 0 0 0 5px rgb(101 220 150 / 12%);
  animation: signal-pulse 1.8s infinite;
}

.locator-index {
  margin-left: auto;
}

.locator-compass {
  position: absolute;
  top: 74px;
  right: 26px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  opacity: 0.55;
}

.compass-n {
  position: absolute;
  top: -2px;
  font-family: var(--utility);
  font-size: 8px;
}

.compass-ring {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
}

.compass-arrow {
  width: 2px;
  height: 32px;
  background: linear-gradient(var(--sun) 0 50%, rgb(255 255 255 / 50%) 50%);
  clip-path: polygon(50% 0, 100% 44%, 70% 44%, 70% 100%, 30% 100%, 30% 44%, 0 44%);
  transform: rotate(18deg);
  transform-origin: center;
}

.locator-label {
  margin: 28px 0 5px;
  color: var(--sun-light);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.locator-card h2 {
  max-width: 270px;
  min-height: 58px;
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}

.locator-distance {
  min-height: 24px;
  margin: 10px 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: 14px;
}

.locator-coords {
  margin: 24px 0 0;
  color: rgb(255 255 255 / 50%);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.drive-progress {
  margin-top: 16px;
  padding: 13px 14px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
}

.drive-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sun-light);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drive-progress > div:first-child strong {
  color: var(--white);
  font-size: 10px;
}

.drive-progress-track {
  height: 4px;
  margin: 9px 0 7px;
  overflow: hidden;
  background: rgb(255 255 255 / 14%);
  border-radius: 999px;
}

.drive-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--river), var(--sun));
  border-radius: inherit;
  transition: width 500ms ease;
}

.drive-progress small {
  display: block;
  color: rgb(255 255 255 / 48%);
  font-size: 9px;
}

.locator-actions {
  gap: 10px;
  margin-top: 18px;
}

.locator-actions .button {
  min-height: 46px;
  flex: 1;
  padding: 0 16px;
  font-size: 13px;
}

.checkin-compact {
  min-height: 46px;
  padding: 0 15px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 999px;
  cursor: pointer;
}

.checkin-compact:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.checkin-compact.is-checked {
  color: var(--pine-950);
  background: #65dc96;
  border-color: #65dc96;
}

.privacy-note {
  margin: 12px 0 0;
  color: rgb(255 255 255 / 44%);
  font-size: 10px;
  text-align: center;
}

.hero-footer {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 1.35fr;
  gap: 1px;
  background: rgb(255 255 255 / 20%);
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.hero-footer > div {
  min-height: 102px;
  padding: 21px 34px;
  background: rgb(7 29 23 / 68%);
  backdrop-filter: blur(14px);
}

.hero-footer span,
.hotel-facts small,
.footer-brand span,
.fact-card small {
  display: block;
  margin-bottom: 5px;
  color: rgb(255 255 255 / 56%);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-footer strong {
  font-size: 14px;
}

.hero-progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
}

.hero-progress-wrap .progress-track {
  grid-column: 1 / -1;
}

.progress-track {
  height: 3px;
  margin-top: 13px;
  overflow: hidden;
  background: rgb(255 255 255 / 20%);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  margin: 0;
  background: var(--sun);
  transition: width 500ms ease;
}

.route-section,
.itinerary-section,
.packing-section {
  padding: clamp(82px, 10vw, 150px) max(5vw, 24px);
}

.route-section {
  background:
    radial-gradient(circle at 88% 7%, rgb(127 197 206 / 23%), transparent 26%),
    var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.65fr);
  gap: 70px;
  align-items: end;
  width: min(1280px, 100%);
  margin: 0 auto 54px;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--pine-700);
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin: 0 11px 3px 0;
  background: var(--sun);
}

.section-heading h2,
.packing-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 98px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.section-heading h2 span {
  color: var(--pine-700);
}

.section-summary {
  max-width: 450px;
  margin: 0 0 5px;
  color: #53645e;
  font-size: 16px;
  line-height: 1.75;
}

.map-shell {
  position: relative;
  width: min(1380px, 100%);
  min-height: 680px;
  margin: 0 auto;
  overflow: hidden;
  background: #b7cbc6;
  border: 1px solid rgb(16 47 39 / 13%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.map-toolbar {
  position: absolute;
  z-index: 700;
  top: 20px;
  right: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.day-switcher,
.map-toolbar-actions {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: rgb(255 254 249 / 92%);
  border: 1px solid rgb(16 47 39 / 14%);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgb(17 43 36 / 14%);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.day-switcher button,
.map-icon-button,
.map-locate-button {
  min-height: 40px;
  padding: 0 16px;
  color: var(--pine-900);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.day-switcher button.is-active {
  color: var(--white);
  background: var(--pine-800);
}

.map-toolbar-actions {
  padding: 4px;
}

.map-icon-button {
  display: grid;
  width: 40px;
  padding: 0;
  place-items: center;
}

.map-icon-button svg,
.map-locate-button svg {
  width: 18px;
}

.map-locate-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--pine-800);
}

#trip-map {
  width: 100%;
  height: 680px;
  background: #cad9d4;
}

.leaflet-control-zoom {
  margin-bottom: 138px !important;
  margin-left: 20px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgb(17 43 36 / 14%) !important;
}

.leaflet-control-zoom a {
  color: var(--pine-900) !important;
  background: var(--white) !important;
  border-color: #e2e3dd !important;
}

.leaflet-control-attribution {
  color: #52645e;
  background: rgb(255 255 255 / 74%) !important;
  font-size: 9px !important;
}

.trip-marker-wrap,
.user-marker-wrap {
  background: none;
  border: 0;
}

.trip-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--pine-800);
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 3px;
  box-shadow: 0 5px 14px rgb(10 34 27 / 30%);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 600;
  transform: rotate(-45deg);
}

.trip-marker > span {
  transform: rotate(45deg);
}

.trip-marker.friday {
  color: var(--pine-950);
  background: var(--sun);
}

.trip-marker.charger {
  color: var(--pine-950);
  background: #65dc96;
  border-radius: 50%;
  font-size: 15px;
}

.leaflet-popup-content strong,
.leaflet-popup-content small {
  display: block;
}

.leaflet-popup-content small {
  margin: 4px 0 8px;
  color: #65736d;
}

.leaflet-popup-content a {
  color: var(--pine-700);
  font-weight: 700;
}

.trip-marker.is-visited {
  color: var(--pine-950);
  background: #6fe09c;
}

.trip-marker.is-nearest {
  animation: marker-pulse 1.8s infinite;
}

.user-marker {
  position: relative;
  width: 22px;
  height: 22px;
  background: #2774ff;
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgb(39 116 255 / 18%), 0 4px 14px rgb(13 50 108 / 35%);
}

.leaflet-tooltip.trip-tooltip {
  padding: 9px 12px;
  color: var(--pine-950);
  background: var(--white);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgb(9 37 29 / 18%);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
}

.leaflet-tooltip.trip-tooltip::before {
  border-top-color: var(--white);
}

.route-animated {
  stroke-dasharray: 8 12;
  animation: route-flow 2s linear infinite;
}

.map-status {
  position: absolute;
  z-index: 700;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 102px;
  padding: 18px 22px;
  color: var(--white);
  background: rgb(12 45 36 / 91%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgb(10 34 27 / 24%);
  backdrop-filter: blur(12px);
}

.map-status-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 600;
}

.map-status-label {
  display: block;
  margin-bottom: 2px;
  color: var(--sun-light);
  font-size: 9px;
}

.map-status strong,
.map-status small {
  display: block;
}

.map-status strong {
  font-size: 16px;
}

.map-status small {
  margin-top: 3px;
  color: rgb(255 255 255 / 58%);
  font-size: 11px;
}

.map-status a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--pine-950);
  background: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.map-status a svg {
  width: 16px;
}

.map-note {
  width: min(1380px, 100%);
  margin: 14px auto 0;
  color: #64716d;
  font-size: 11px;
}

.map-note span {
  margin-right: 6px;
  color: #67a3ad;
}

.offline-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1380px, 100%);
  margin: 18px auto 0;
  padding: 20px 22px;
  color: var(--white);
  background: var(--pine-900);
  border: 1px solid rgb(16 47 39 / 16%);
  border-radius: 2px 24px 2px 2px;
  box-shadow: 0 16px 42px rgb(10 34 27 / 15%);
}

.offline-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 28px;
  transition: background 200ms ease, transform 200ms ease;
}

.offline-panel.is-loading .offline-symbol {
  animation: offline-bob 900ms ease-in-out infinite alternate;
}

.offline-panel.is-ready .offline-symbol {
  background: #65dc96;
  transform: rotate(-8deg);
}

.offline-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: var(--sun-light);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offline-eyebrow i {
  width: 7px;
  height: 7px;
  background: var(--granite);
  border-radius: 50%;
}

.offline-eyebrow i.is-online {
  background: #65dc96;
}

.offline-eyebrow i.is-offline {
  background: var(--sun);
}

.offline-panel strong,
.offline-panel p {
  display: block;
}

.offline-panel strong {
  font-size: 16px;
}

.offline-panel p {
  margin: 3px 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 11px;
}

.offline-panel .button {
  min-width: 190px;
  font-size: 12px;
}

.offline-panel.is-ready .button {
  color: var(--pine-950);
  background: #65dc96;
}

.itinerary-section {
  background: var(--fog);
}

.itinerary-heading {
  align-items: center;
}

.progress-stamp {
  justify-self: end;
  width: 150px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid #d7dad0;
  transform: rotate(2deg);
  text-align: center;
}

.progress-stamp span {
  display: block;
  color: #5e6f68;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-stamp strong {
  display: block;
  margin: 5px 0;
  color: var(--pine-800);
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.progress-stamp button {
  padding: 0;
  color: #708078;
  background: none;
  border: 0;
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
}

.day-block {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.day-block + .hotel-feature,
.hotel-feature + .day-block,
.hotel-feature + .tesla-plan,
.tesla-plan + .day-block {
  margin-top: clamp(80px, 10vw, 140px);
}

.day-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 0 0 26px;
  border-bottom: 1px solid #cfd4ca;
}

.day-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pine-800);
}

.day-date strong {
  font-family: var(--display);
  font-size: 58px;
  font-weight: 400;
  line-height: 0.8;
}

.day-date span {
  color: #65736d;
  font-family: var(--utility);
  font-size: 9px;
  line-height: 1.4;
}

.day-header > div:nth-child(2) > p {
  margin: 0 0 4px;
  color: #708078;
  font-size: 9px;
}

.day-header h3 {
  margin: 0;
  font-size: 21px;
}

.day-header > a {
  padding-bottom: 4px;
  border-bottom: 1px solid #aab4ad;
  font-size: 12px;
  font-weight: 700;
}

.timeline {
  position: relative;
  margin-left: 22px;
  padding: 20px 0 0 70px;
  border-left: 1px solid #cbd0c7;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  min-height: 125px;
  padding: 20px 0 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -78px;
  width: 14px;
  height: 14px;
  background: var(--fog);
  border: 3px solid var(--pine-700);
  border-radius: 50%;
  transition: 200ms ease;
}

.timeline-item.is-visited::before {
  background: #67db95;
  border-color: var(--pine-700);
  box-shadow: 0 0 0 6px rgb(103 219 149 / 18%);
}

.timeline-time {
  padding-top: 7px;
  color: var(--pine-700);
  font-family: var(--utility);
  font-size: 12px;
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 96px;
  padding: 18px 20px;
  background: transparent;
  border-bottom: 1px solid #d9ddd5;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.timeline-open {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.timeline-card:hover {
  background: var(--white);
  transform: translateX(4px);
}

.timeline-card.has-photo {
  padding-left: 0;
}

.timeline-card.has-photo .timeline-open {
  grid-template-columns: 150px 1fr;
}

.timeline-photo {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border-radius: 2px 22px 2px 2px;
}

.timeline-copy,
.timeline-title,
.timeline-description {
  display: block;
}

.timeline-title {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 700;
}

.timeline-description {
  margin: 0;
  color: #66736e;
  font-size: 13px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.timeline-tags span {
  padding: 4px 7px;
  color: #52635d;
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-check {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--pine-700);
  background: transparent;
  border: 1px solid #bdc7c0;
  border-radius: 50%;
  cursor: pointer;
}

.timeline-check svg {
  width: 18px;
}

.timeline-check.is-checked {
  color: var(--pine-950);
  background: #67db95;
  border-color: #67db95;
}

.hotel-feature {
  position: relative;
  width: min(1320px, 100%);
  min-height: 680px;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  color: var(--white);
  background: var(--pine-950);
  border-radius: 2px 56px 2px 2px;
}

.hotel-feature > img,
.hotel-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hotel-feature > img {
  object-fit: cover;
}

.hotel-overlay {
  background: linear-gradient(90deg, rgb(8 31 25 / 92%) 0%, rgb(8 31 25 / 68%) 43%, rgb(8 31 25 / 15%) 72%);
}

.hotel-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(620px, 58%);
  min-height: 680px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 100px);
}

.hotel-copy .section-kicker {
  color: var(--sun-light);
}

.hotel-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(72px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.78;
  text-transform: uppercase;
}

.hotel-copy > p:not(.section-kicker) {
  margin: 24px 0;
  color: rgb(255 255 255 / 70%);
}

.hotel-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgb(255 255 255 / 20%);
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.hotel-facts strong {
  font-size: 12px;
}

.hotel-copy .button {
  align-self: flex-start;
  margin-top: 26px;
  font-size: 12px;
}

.tesla-plan {
  position: relative;
  width: min(1320px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding: clamp(34px, 6vw, 82px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgb(127 197 206 / 22%), transparent 32%),
    linear-gradient(135deg, var(--pine-950), #153f34);
  border-radius: 40px 2px 40px 2px;
  box-shadow: var(--shadow);
}

.tesla-plan::after {
  content: "⚡";
  position: absolute;
  right: -28px;
  bottom: -120px;
  color: rgb(245 185 65 / 6%);
  font-family: var(--display);
  font-size: 420px;
  line-height: 1;
  pointer-events: none;
}

.tesla-plan-head,
.charge-journey,
.charger-backups,
.charge-actions {
  position: relative;
  z-index: 1;
}

.tesla-plan-head {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.tesla-plan .section-kicker {
  color: var(--sun-light);
}

.tesla-plan h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 400;
  line-height: 0.82;
  text-transform: uppercase;
}

.tesla-plan h3 span {
  color: var(--river);
}

.battery-card {
  position: relative;
  width: min(300px, 32vw);
  min-width: 220px;
  height: 116px;
  padding: 8px;
  border: 3px solid rgb(255 255 255 / 58%);
  border-radius: 18px;
}

.battery-cap {
  position: absolute;
  top: 34px;
  right: -14px;
  width: 10px;
  height: 42px;
  background: rgb(255 255 255 / 58%);
  border-radius: 0 5px 5px 0;
}

.battery-fill {
  display: flex;
  width: 90%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
  color: var(--pine-950);
  background: linear-gradient(90deg, #65dc96, var(--sun));
  border-radius: 10px;
}

.battery-fill strong {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  line-height: 0.8;
}

.battery-fill small {
  margin-top: 9px;
  font-family: var(--utility);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.charge-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 62px;
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.charge-journey article {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid rgb(255 255 255 / 18%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.charge-journey article.is-primary {
  background: rgb(127 197 206 / 11%);
}

.charge-step {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 9px;
}

.charge-journey article small,
.charger-backups > a > span {
  color: var(--river);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.charge-journey h4 {
  margin: 7px 0 10px;
  font-size: 18px;
}

.charge-journey p {
  margin: 0;
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
  line-height: 1.65;
}

.charger-backups {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.charger-rule,
.charger-backups > a {
  min-height: 110px;
  padding: 20px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 2px 18px 2px 2px;
}

.charger-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.charger-rule > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--pine-950);
  background: #65dc96;
  border-radius: 50%;
}

.charger-rule p {
  margin: 0;
  color: rgb(255 255 255 / 62%);
  font-size: 11px;
  line-height: 1.55;
}

.charger-rule strong {
  color: var(--white);
}

.charger-backups > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 180ms ease, transform 180ms ease;
}

.charger-backups > a:hover {
  background: rgb(255 255 255 / 12%);
  transform: translateY(-2px);
}

.charger-backups > a > strong,
.charger-backups > a > small {
  display: block;
}

.charger-backups > a > strong {
  margin-top: 6px;
  font-size: 14px;
}

.charger-backups > a > small {
  margin-top: 4px;
  color: rgb(255 255 255 / 48%);
  font-size: 9px;
}

.charge-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.charge-actions .text-link {
  color: var(--white);
}

.conditions-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--pine-950);
}

.conditions-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(6 29 23 / 98%) 0%, rgb(6 29 23 / 91%) 55%, rgb(6 29 23 / 66%) 100%),
    url("./assets/photos/glacier-point.jpg") center / cover;
  opacity: 0.94;
}

.conditions-content {
  position: relative;
  z-index: 1;
  padding: clamp(90px, 10vw, 150px) max(5vw, 24px);
}

.conditions-heading .section-kicker,
.conditions-heading h2 span {
  color: var(--sun-light);
}

.verified-label {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  color: rgb(255 255 255 / 62%);
}

.verified-label span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--pine-950);
  background: #67db95;
  border-radius: 50%;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1280px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.fact-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 30px;
  background: rgb(255 255 255 / 4%);
  border-right: 1px solid rgb(255 255 255 / 18%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  transition: 180ms ease;
}

.fact-card:hover {
  background: rgb(255 255 255 / 9%);
}

.fact-card-highlight {
  color: var(--pine-950);
  background: var(--sun);
}

.fact-card-highlight:hover {
  background: #ffc654;
}

.fact-number {
  margin-bottom: auto;
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
}

.fact-card strong {
  margin-top: 30px;
  font-size: 18px;
}

.fact-card p {
  min-height: 62px;
  margin: 8px 0 22px;
  color: rgb(255 255 255 / 61%);
  font-size: 12px;
  line-height: 1.65;
}

.fact-card-highlight p,
.fact-card-highlight small {
  color: rgb(11 33 28 / 68%);
}

.fact-card small {
  margin: 0;
}

.plan-b-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.plan-b-actions button,
.plan-b-actions a,
.map-popup-action {
  min-height: 38px;
  padding: 0 13px;
  color: var(--pine-950);
  background: var(--sun);
  border: 0;
  border-radius: 999px;
  font: 700 11px/1 var(--body);
  cursor: pointer;
}

.plan-b-actions a {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
}

.forecast-panel {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 50px;
  align-items: center;
  width: min(1280px, 100%);
  margin: 52px auto 0;
  padding: 34px 0 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.forecast-intro .section-kicker {
  color: var(--sun-light);
}

.forecast-intro h3 {
  margin: 0 0 6px;
  font-size: 25px;
}

.forecast-intro > p:last-child {
  margin: 0;
  color: rgb(255 255 255 / 55%);
  font-size: 12px;
}

.forecast-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.forecast-day {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 17px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 16px;
}

.weather-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-size: 22px;
}

.forecast-day strong,
.forecast-day small {
  display: block;
}

.forecast-day strong {
  font-size: 14px;
}

.forecast-day small {
  color: rgb(255 255 255 / 53%);
  font-size: 10px;
}

.forecast-temp {
  font-family: var(--display);
  font-size: 36px;
}

.forecast-skeleton {
  min-height: 92px;
  background: linear-gradient(90deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 11%), rgb(255 255 255 / 5%));
  background-size: 200% 100%;
  border-radius: 16px;
  animation: shimmer 1.5s infinite;
}

.packing-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: start;
  background:
    linear-gradient(135deg, transparent 0 74%, rgb(127 197 206 / 14%) 74% 100%),
    var(--paper);
}

.packing-heading {
  position: sticky;
  top: 50px;
  justify-self: end;
  max-width: 440px;
}

.packing-heading > p:last-child {
  max-width: 360px;
  margin-top: 26px;
  color: #65736d;
}

.packing-list {
  border-top: 1px solid #c7ccc3;
}

.packing-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 17px;
  align-items: center;
  width: 100%;
  padding: 20px 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #c7ccc3;
  text-align: left;
  cursor: pointer;
}

.packing-check {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #96a69e;
  border-radius: 50%;
}

.packing-check svg {
  width: 14px;
  opacity: 0;
}

.packing-item.is-packed .packing-check {
  color: var(--pine-950);
  background: #67db95;
  border-color: #67db95;
}

.packing-item.is-packed .packing-check svg {
  opacity: 1;
}

.packing-item.is-packed .packing-name {
  color: #7b8982;
  text-decoration: line-through;
}

.packing-name {
  font-weight: 700;
}

.packing-meta {
  color: #738079;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.safety-note {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  color: var(--white);
  background: var(--pine-800);
  border-radius: 2px 24px 2px 2px;
}

.safety-note > svg {
  width: 42px;
  color: var(--sun);
}

.safety-note strong {
  display: block;
  margin-bottom: 4px;
}

.safety-note p {
  margin: 0;
  color: rgb(255 255 255 / 61%);
  font-size: 12px;
}

.safety-note a {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 46px max(5vw, 24px);
  color: var(--white);
  background: var(--pine-950);
}

.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand span {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 11px;
}

.credits {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  color: rgb(255 255 255 / 38%);
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 9px;
}

.mobile-nav {
  display: none;
}

.stop-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(820px, calc(100svh - 32px));
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--fog);
  border: 0;
  border-radius: 2px 36px 2px 2px;
  box-shadow: 0 40px 100px rgb(8 28 23 / 42%);
}

.stop-dialog::backdrop {
  background: rgb(5 24 19 / 72%);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgb(9 37 29 / 78%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
}

.dialog-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.dialog-body {
  padding: 32px;
}

.dialog-time {
  color: var(--pine-700);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-body h2 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: 54px;
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.dialog-description {
  color: #596a63;
  line-height: 1.7;
}

.dialog-note {
  margin: 22px 0;
  padding: 16px;
  color: var(--pine-900);
  background: var(--river-light);
  border-left: 3px solid var(--river);
  font-size: 12px;
}

.dialog-location {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 24px 0;
  background: #ccd2c9;
  border: 1px solid #ccd2c9;
}

.dialog-location span {
  padding: 13px;
  background: var(--paper);
}

.dialog-location small,
.dialog-location strong {
  display: block;
}

.dialog-location small {
  color: #77847e;
  font-family: var(--utility);
  font-size: 8px;
  text-transform: uppercase;
}

.dialog-location strong {
  margin-top: 3px;
  font-family: var(--utility);
  font-size: 10px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dialog-actions .button {
  flex: 1;
  min-width: 140px;
  font-size: 12px;
}

.dialog-actions .button:first-child {
  color: var(--white);
  background: var(--pine-800);
}

.dialog-actions .button.is-checked {
  color: var(--pine-950);
  background: #67db95;
}

.toast {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--pine-900);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgb(8 28 23 / 35%);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  animation: reveal-up 800ms both;
}

.locator-card.reveal {
  animation-delay: 160ms;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-breathe {
  from { transform: scale(1.03); }
  to { transform: scale(1.085); }
}

@keyframes signal-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgb(101 220 150 / 12%); }
  50% { box-shadow: 0 0 0 9px rgb(101 220 150 / 4%); }
}

@keyframes marker-pulse {
  0%, 100% { box-shadow: 0 5px 14px rgb(10 34 27 / 30%), 0 0 0 0 rgb(245 185 65 / 50%); }
  50% { box-shadow: 0 5px 14px rgb(10 34 27 / 30%), 0 0 0 10px rgb(245 185 65 / 0%); }
}

@keyframes route-flow {
  to { stroke-dashoffset: -20; }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes offline-bob {
  from { transform: translateY(-2px); }
  to { transform: translateY(3px); }
}

@media (max-width: 1040px) {
  .hero-content {
    grid-template-columns: 1fr 340px;
    gap: 40px;
    width: min(100% - 56px, 1160px);
  }

  .hero-footer > div {
    padding: 18px 20px;
  }

  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-card {
    min-height: 280px;
  }

  .hotel-copy {
    width: 68%;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-bottom: 86px;
  }

  html.is-standalone-app .topbar {
    padding-top: calc(18px + env(safe-area-inset-top));
  }

  html.is-standalone-app .skip-link:focus {
    top: calc(10px + env(safe-area-inset-top));
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .hero {
    min-height: auto;
  }

  .hero-photo {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgb(7 27 22 / 95%) 0%, rgb(7 27 22 / 45%) 62%, rgb(7 27 22 / 56%) 100%),
      linear-gradient(90deg, rgb(7 27 22 / 52%), transparent);
  }

  .topbar {
    width: calc(100% - 36px);
    padding-top: 18px;
  }

  .topbar-links a {
    display: none;
  }

  .topbar-links {
    gap: 0;
  }

  .brand {
    font-size: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    width: calc(100% - 36px);
    min-height: 0;
    padding: 82px 0 34px;
  }

  .eyebrow {
    gap: 10px;
    font-size: 9px;
  }

  .eyebrow span + span::before {
    width: 12px;
    margin-right: 7px;
  }

  .hero h1 {
    font-size: clamp(83px, 27vw, 118px);
    line-height: 0.78;
  }

  .hero h1 em {
    font-size: 0.86em;
    transform: translateX(14px);
  }

  .hero-intro {
    max-width: 480px;
    margin-top: 30px;
    font-size: 15px;
  }

  .countdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(100%, 390px);
  }

  .countdown-label {
    grid-column: 1 / -1;
    max-width: none;
    justify-content: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
  }

  .countdown-unit {
    min-width: 0;
  }

  .countdown-unit:nth-child(2) {
    border-left: 0;
  }

  .hero-actions {
    gap: 17px;
  }

  .hero-actions .button {
    min-height: 48px;
    padding: 0 17px;
    font-size: 12px;
  }

  .text-link {
    font-size: 12px;
  }

  .locator-card {
    padding: 22px;
    border-radius: 2px 30px 2px 2px;
  }

  .locator-compass {
    width: 66px;
    height: 66px;
  }

  .locator-card h2 {
    max-width: 240px;
    min-height: 52px;
    font-size: 22px;
  }

  .hero-footer {
    position: relative;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }

  .hero-footer > div {
    min-height: 78px;
    padding: 15px 18px;
  }

  .hero-footer strong {
    font-size: 11px;
  }

  .hero-footer span {
    font-size: 8px;
  }

  .hero-progress-wrap {
    grid-column: 1 / -1;
  }

  .contour-art {
    right: -35%;
    bottom: 17%;
    width: 130%;
  }

  .route-section,
  .itinerary-section,
  .packing-section {
    padding: 76px 18px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 38px;
  }

  .section-heading h2,
  .packing-heading h2 {
    font-size: clamp(54px, 18vw, 76px);
  }

  .section-summary {
    font-size: 14px;
  }

  .map-shell {
    min-height: 620px;
    border-radius: 22px;
  }

  #trip-map {
    height: 620px;
  }

  .map-toolbar {
    top: 12px;
    right: 12px;
    left: 12px;
    align-items: flex-start;
  }

  .day-switcher {
    max-width: calc(100% - 54px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .day-switcher button {
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .map-toolbar-actions {
    margin-left: 8px;
  }

  .map-locate-button {
    width: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .map-icon-button {
    display: none;
  }

  .map-status {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: auto 1fr;
    gap: 12px;
    min-height: 118px;
    padding: 14px;
    border-radius: 15px;
  }

  .map-status-number {
    width: 40px;
    height: 40px;
  }

  .map-status strong {
    font-size: 13px;
  }

  .map-status a {
    grid-column: 1 / -1;
    min-height: 38px;
    justify-content: center;
    padding: 8px 13px;
  }

  .offline-panel {
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 17px;
    border-radius: 2px 18px 2px 2px;
  }

  .offline-symbol {
    width: 38px;
    height: 38px;
  }

  .offline-panel strong {
    font-size: 13px;
  }

  .offline-panel .button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .leaflet-control-zoom {
    display: none;
  }

  .progress-stamp {
    justify-self: start;
  }

  .day-header {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .day-header > a {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 5px;
  }

  .day-date strong {
    font-size: 50px;
  }

  .day-header h3 {
    font-size: 17px;
  }

  .timeline {
    margin-left: 7px;
    padding-left: 28px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px 0 22px;
  }

  .timeline-item::before {
    left: -36px;
  }

  .timeline-time {
    font-size: 10px;
  }

  .timeline-card,
  .timeline-card.has-photo {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px 0;
  }

  .timeline-open,
  .timeline-card.has-photo .timeline-open {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-card:hover {
    background: transparent;
    transform: none;
  }

  .timeline-photo {
    grid-column: 1 / -1;
    width: 100%;
    height: 190px;
    border-radius: 2px 24px 2px 2px;
  }

  .timeline-title {
    font-size: 18px;
  }

  .timeline-description {
    font-size: 12px;
  }

  .hotel-feature {
    min-height: 620px;
    border-radius: 2px 34px 2px 2px;
  }

  .hotel-feature > img {
    object-position: 62% center;
  }

  .hotel-overlay {
    background: linear-gradient(0deg, rgb(8 31 25 / 96%) 0%, rgb(8 31 25 / 74%) 56%, rgb(8 31 25 / 17%) 100%);
  }

  .hotel-copy {
    width: 100%;
    min-height: 620px;
    justify-content: flex-end;
    padding: 36px 24px;
  }

  .hotel-copy h3 {
    font-size: 76px;
  }

  .hotel-facts {
    gap: 9px;
  }

  .hotel-facts strong {
    font-size: 10px;
  }

  .tesla-plan {
    padding: 36px 20px;
    border-radius: 28px 2px 28px 2px;
  }

  .tesla-plan-head {
    display: grid;
  }

  .tesla-plan h3 {
    font-size: clamp(58px, 18vw, 78px);
  }

  .battery-card {
    width: min(300px, calc(100% - 14px));
    min-width: 0;
    height: 104px;
  }

  .charge-journey {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .charge-journey article {
    min-height: 0;
    padding: 24px;
  }

  .charge-step {
    margin-bottom: 18px;
  }

  .charger-backups {
    grid-template-columns: 1fr;
  }

  .charger-rule,
  .charger-backups > a {
    min-height: 0;
  }

  .charge-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .charge-actions .text-link {
    align-self: center;
  }

  .conditions-content {
    padding: 76px 18px;
  }

  .verified-label {
    justify-self: start;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .fact-card {
    min-height: 240px;
    padding: 24px;
  }

  .fact-number {
    font-size: 58px;
  }

  .forecast-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .forecast-days {
    grid-template-columns: 1fr;
  }

  .packing-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .packing-heading {
    position: static;
    justify-self: start;
  }

  .packing-meta {
    display: none;
  }

  .safety-note {
    grid-column: 1;
    grid-template-columns: auto 1fr;
  }

  .safety-note a {
    grid-column: 2;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 13px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 8500;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 7px env(safe-area-inset-bottom);
    color: #7c8983;
    background: rgb(255 254 249 / 94%);
    border-top: 1px solid #dfe3dc;
    box-shadow: 0 -8px 30px rgb(14 41 33 / 9%);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font-size: 9px;
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav a.is-active {
    color: var(--pine-800);
  }

  .mobile-nav button {
    position: relative;
    color: var(--pine-800);
  }

  .mobile-locate-ring {
    display: grid;
    width: 48px;
    height: 48px;
    margin-top: -25px;
    place-items: center;
    color: var(--white);
    background: var(--pine-800);
    border: 5px solid var(--fog);
    border-radius: 50%;
    box-shadow: 0 5px 16px rgb(13 50 40 / 24%);
  }

  .mobile-locate-ring svg {
    width: 19px;
  }

  .stop-dialog {
    max-height: calc(100svh - 24px);
  }

  .dialog-photo {
    height: 220px;
  }

  .dialog-body {
    padding: 24px;
  }

  .dialog-body h2 {
    font-size: 46px;
  }

  .toast {
    right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }
}

/* Trip-day command center */
.today-mode-open {
  color: var(--pine-950) !important;
  background: var(--sun) !important;
  border-color: var(--sun) !important;
}

.today-dialog,
.emergency-dialog,
.memory-dialog,
.memory-book-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100svh - 28px);
  padding: 0;
  overflow: auto;
  color: var(--white);
  background: var(--pine-950);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 2px 38px 2px 2px;
  box-shadow: 0 40px 120px rgb(2 17 13 / 65%);
}

.today-dialog::backdrop,
.emergency-dialog::backdrop,
.memory-dialog::backdrop,
.memory-book-dialog::backdrop {
  background: rgb(3 19 15 / 80%);
  backdrop-filter: blur(9px);
}

.today-head {
  position: relative;
  display: flex;
  min-height: 185px;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 78px 34px 42px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgb(11 33 28 / 95%), rgb(11 33 28 / 55%)),
    url("./assets/photos/tunnel-view.jpg") center 46% / cover;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.today-head::after {
  position: absolute;
  right: 13%;
  bottom: -76px;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(245 185 65 / 25%);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgb(245 185 65 / 5%), 0 0 0 58px rgb(245 185 65 / 3%);
  content: "";
}

.today-head > div,
.today-gps-pill {
  position: relative;
  z-index: 1;
}

.today-head h2,
.emergency-head h2,
.memory-head h2,
.memory-book-head h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.82;
  text-transform: uppercase;
}

.today-head > div > p:last-child,
.emergency-head > p:last-child,
.memory-head > p:last-child,
.memory-book-head > div > p:last-child {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
}

.today-gps-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 9px;
  min-width: 185px;
  padding: 12px 14px;
  color: var(--white);
  text-align: left;
  background: rgb(7 28 22 / 76%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 2px 16px 2px 2px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.today-gps-pill > span {
  grid-row: 1 / 3;
  width: 10px;
  height: 10px;
  align-self: center;
  background: #8b9892;
  border-radius: 50%;
}

.today-gps-pill > span.is-live {
  background: #65df96;
  box-shadow: 0 0 0 5px rgb(101 223 150 / 15%);
}

.today-gps-pill strong,
.today-gps-pill small {
  line-height: 1.25;
}

.today-gps-pill strong {
  font-size: 11px;
}

.today-gps-pill small {
  color: rgb(255 255 255 / 48%);
  font-family: var(--utility);
  font-size: 8px;
  text-transform: uppercase;
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 1px;
  padding: 1px;
  background: rgb(255 255 255 / 11%);
}

.today-grid > section {
  background: #102f27;
}

.today-next {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px 22px;
  min-height: 350px;
  align-content: center;
  padding: 42px;
  overflow: hidden;
}

.today-next::after {
  position: absolute;
  right: -65px;
  bottom: -98px;
  color: rgb(255 255 255 / 2.5%);
  font-family: var(--display);
  font-size: 330px;
  line-height: 1;
  content: "NEXT";
}

.today-next-topline {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  color: var(--sun);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.today-next-topline time {
  color: rgb(255 255 255 / 52%);
}

.today-next-number {
  position: relative;
  z-index: 1;
  color: var(--sun);
  font-family: var(--display);
  font-size: 104px;
  line-height: 0.82;
}

.today-next-copy {
  position: relative;
  z-index: 1;
}

.today-next-copy h3 {
  max-width: 560px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 74px);
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
}

.today-next-copy > p {
  max-width: 590px;
  margin: 14px 0 0;
  color: rgb(255 255 255 / 67%);
  font-size: 13px;
}

.today-next-meta {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.today-next-meta span {
  padding: 6px 9px;
  color: var(--river-light);
  background: rgb(127 197 206 / 10%);
  border: 1px solid rgb(127 197 206 / 20%);
  font-family: var(--utility);
  font-size: 8px;
  text-transform: uppercase;
}

.today-next-actions {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
}

.today-next-actions .button {
  min-height: 48px;
  font-size: 11px;
}

.today-next-actions .button:not(.button-sun) {
  color: var(--white);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 17%);
}

.today-next-actions .text-button {
  min-height: 48px;
  padding: 0 13px;
  color: rgb(255 255 255 / 62%);
}

.brief-card,
.comfort-card {
  min-height: 350px;
  padding: 28px;
}

.today-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.today-card-head > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-size: 18px;
}

.today-card-head small,
.brief-facts small,
.comfort-nearest small {
  display: block;
  color: rgb(255 255 255 / 43%);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.today-card-head h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.today-card-head button {
  padding: 7px 10px;
  color: var(--river-light);
  background: transparent;
  border: 1px solid rgb(127 197 206 / 25%);
  border-radius: 999px;
  font-size: 9px;
  cursor: pointer;
}

.brief-weather {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 84px;
  padding: 17px 0;
}

.brief-weather > strong,
.brief-weather > span:not(.brief-weather-icon) {
  display: block;
}

.brief-weather-icon {
  color: var(--sun);
  font-size: 38px;
}

.brief-weather p {
  margin: 0;
}

.brief-weather p strong,
.brief-weather p span {
  display: block;
}

.brief-weather p strong {
  font-size: 13px;
}

.brief-weather p span,
.brief-weather > span:not(.brief-weather-icon) {
  margin-top: 3px;
  color: rgb(255 255 255 / 52%);
  font-size: 10px;
}

.brief-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgb(255 255 255 / 10%);
}

.brief-facts > span {
  padding: 10px;
  background: #0d2922;
}

.brief-facts strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

.brief-condition {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin: 15px 0 0;
  color: rgb(255 255 255 / 60%);
  font-size: 10px;
}

.brief-condition span {
  color: var(--sun);
}

.brief-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: rgb(255 255 255 / 40%);
  font-size: 9px;
}

.brief-footer a {
  color: var(--river-light);
}

.comfort-card {
  background: #173d33 !important;
}

.comfort-card .today-card-head > span {
  background: var(--river);
}

.comfort-clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.comfort-clocks button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 8px;
  padding: 13px;
  color: var(--white);
  text-align: left;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 2px 13px 2px 2px;
  cursor: pointer;
}

.comfort-clocks button.is-due {
  background: rgb(245 185 65 / 11%);
  border-color: rgb(245 185 65 / 40%);
}

.comfort-clocks button > span {
  grid-row: 1 / 3;
  color: var(--river);
  font-size: 20px;
}

.comfort-clocks strong,
.comfort-clocks small {
  display: block;
  line-height: 1.25;
}

.comfort-clocks strong {
  font-size: 12px;
}

.comfort-clocks small {
  color: rgb(255 255 255 / 46%);
  font-size: 9px;
}

.comfort-nearest {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  color: var(--pine-950);
  background: var(--river-light);
  border-radius: 2px 12px 2px 2px;
}

.comfort-nearest > span {
  font-size: 20px;
}

.comfort-nearest p {
  margin: 0;
}

.comfort-nearest small {
  color: #55726b;
}

.comfort-nearest strong {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.comfort-reminder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  color: rgb(255 255 255 / 76%);
  cursor: pointer;
}

.comfort-reminder input {
  width: 18px;
  height: 18px;
  accent-color: var(--sun);
}

.comfort-reminder strong,
.comfort-reminder small {
  display: block;
}

.comfort-reminder strong {
  font-size: 10px;
}

.comfort-reminder small {
  margin-top: 2px;
  color: rgb(255 255 255 / 42%);
  font-size: 8px;
}

.today-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.today-tools button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  min-height: 92px;
  align-content: center;
  padding: 20px 28px;
  color: var(--white);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.today-tools button:first-child {
  border-right: 1px solid rgb(255 255 255 / 10%);
}

.today-tools button > span {
  display: grid;
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-size: 20px;
}

.today-tools button:last-child > span {
  background: var(--river);
}

.today-tools strong,
.today-tools small {
  display: block;
}

.today-tools strong {
  font-size: 14px;
}

.today-tools small {
  color: rgb(255 255 255 / 44%);
  font-size: 9px;
}

.today-privacy {
  margin: 0;
  padding: 12px 26px calc(12px + env(safe-area-inset-bottom));
  color: rgb(255 255 255 / 36%);
  font-family: var(--utility);
  font-size: 8px;
  text-align: center;
}

.today-privacy span {
  color: #65df96;
}

.timeline-item.is-skipped {
  opacity: 0.58;
}

.timeline-item.is-skipped .timeline-photo {
  filter: grayscale(1);
}

.timeline-skipped {
  display: block;
  margin: 0 22px 12px;
  padding: 8px 10px;
  color: var(--pine-800);
  background: var(--river-light);
  font-family: var(--utility);
  font-size: 8px;
  text-transform: uppercase;
}

.dialog-actions .memory-stop-action {
  color: var(--pine-950) !important;
  background: var(--sun) !important;
}

.dialog-actions .restore-stop-action {
  color: var(--pine-950) !important;
  background: var(--river) !important;
}

/* Offline emergency card */
.emergency-dialog {
  width: min(780px, calc(100% - 32px));
}

.emergency-head,
.memory-head {
  padding: 48px 70px 32px 36px;
  background: linear-gradient(135deg, #173d33, #0b211c);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.emergency-head h2,
.memory-head h2 {
  font-size: clamp(58px, 9vw, 92px);
}

.emergency-location {
  margin: 24px;
  padding: 22px;
  color: var(--pine-950);
  background: var(--river-light);
  border-radius: 2px 18px 2px 2px;
}

.emergency-location > small,
.emergency-location > strong,
.emergency-location > span {
  display: block;
}

.emergency-location > small {
  color: #58736c;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.emergency-location > strong {
  margin-top: 8px;
  font-family: var(--utility);
  font-size: clamp(14px, 3vw, 22px);
}

.emergency-location > span {
  margin-top: 4px;
  color: #5d716b;
  font-size: 10px;
}

.emergency-location > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.emergency-location .button {
  min-height: 44px;
  font-size: 10px;
}

.emergency-location .button:not(.button-sun) {
  color: var(--white);
  background: var(--pine-800);
}

.emergency-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 24px;
  background: rgb(255 255 255 / 12%);
}

.emergency-actions a {
  min-height: 116px;
  padding: 20px;
  background: #12342b;
}

.emergency-actions a.emergency-primary {
  color: var(--pine-950);
  background: var(--sun);
}

.emergency-actions span,
.emergency-actions strong,
.emergency-actions small {
  display: block;
}

.emergency-actions span {
  color: var(--river);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.emergency-actions .emergency-primary span,
.emergency-actions .emergency-primary small {
  color: rgb(11 33 28 / 62%);
}

.emergency-actions strong {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.emergency-actions small {
  margin-top: 8px;
  color: rgb(255 255 255 / 45%);
  font-size: 9px;
}

.emergency-source {
  margin: 0;
  padding: 0 24px 28px;
  color: rgb(255 255 255 / 34%);
  font-size: 8px;
}

/* Private memory editor + book */
.memory-dialog {
  width: min(690px, calc(100% - 32px));
}

.memory-dialog form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.memory-dialog form > label > span {
  display: block;
  margin-bottom: 6px;
  color: rgb(255 255 255 / 48%);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.memory-dialog select,
.memory-dialog textarea {
  width: 100%;
  padding: 13px;
  color: var(--white);
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 2px 12px 2px 2px;
  font: inherit;
}

.memory-dialog select option {
  color: var(--ink);
}

.memory-photo-field {
  position: relative;
  display: block;
  padding: 18px;
  background: rgb(127 197 206 / 8%);
  border: 1px dashed rgb(127 197 206 / 40%);
  border-radius: 2px 14px 2px 2px;
  cursor: pointer;
}

.memory-photo-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.memory-photo-field strong,
.memory-photo-field small {
  display: block;
}

.memory-photo-field strong {
  color: var(--river-light);
  font-size: 13px;
}

.memory-photo-field small {
  margin-top: 3px;
  color: rgb(255 255 255 / 42%);
  font-size: 9px;
}

.memory-preview {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  border-radius: 2px 18px 2px 2px;
}

.memory-form-actions,
.memory-book-head > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memory-form-actions .button,
.memory-book-head .button {
  min-height: 46px;
  font-size: 10px;
}

.memory-form-actions .text-button {
  color: rgb(255 255 255 / 58%);
}

.memory-book-dialog {
  width: min(1040px, calc(100% - 32px));
}

.memory-book-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 72px 34px 36px;
  background:
    linear-gradient(100deg, rgb(11 33 28 / 94%), rgb(11 33 28 / 62%)),
    url("./assets/photos/sentinel-bridge.jpg") center 58% / cover;
}

.memory-book-head h2 {
  font-size: clamp(58px, 8vw, 94px);
}

.memory-book-head .button:not(.button-sun) {
  color: var(--white);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 18%);
}

.memory-book-list {
  display: grid;
  gap: 1px;
  padding: 1px;
  background: rgb(255 255 255 / 10%);
}

.memory-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 1fr;
  min-height: 250px;
  background: #102f27;
}

.memory-entry > img,
.memory-entry-placeholder {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.memory-entry-placeholder {
  display: grid;
  place-items: center;
  color: var(--river);
  background: #153a31;
  font-size: 70px;
}

.memory-entry > div:last-child {
  align-self: center;
  padding: 34px;
}

.memory-entry small {
  color: var(--river);
  font-family: var(--utility);
  font-size: 8px;
  text-transform: uppercase;
}

.memory-entry h3 {
  margin: 11px 0 22px;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.memory-entry button {
  padding: 0;
  color: rgb(255 255 255 / 38%);
  background: transparent;
  border: 0;
  font-size: 8px;
  cursor: pointer;
}

.memory-entry-number {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 9px;
}

.memory-empty {
  padding: 70px 24px;
  text-align: center;
  background: #102f27;
}

.memory-empty > span {
  color: var(--river);
  font-size: 70px;
}

.memory-empty h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
}

.memory-empty p {
  color: rgb(255 255 255 / 50%);
  font-size: 11px;
}

@media (max-width: 780px) {
  .today-dialog,
  .emergency-dialog,
  .memory-dialog,
  .memory-book-dialog {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .today-dialog > .dialog-close,
  .emergency-dialog > .dialog-close,
  .memory-dialog > .dialog-close,
  .memory-book-dialog > .dialog-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
  }

  .today-head {
    display: block;
    min-height: 164px;
    padding: calc(28px + env(safe-area-inset-top)) 58px 22px 18px;
  }

  .today-head h2 {
    font-size: 68px;
  }

  .today-head > div > p:last-child {
    max-width: 76vw;
    margin-top: 8px;
    font-size: 10px;
  }

  .today-gps-pill {
    position: absolute;
    top: calc(72px + env(safe-area-inset-top));
    right: 10px;
    min-width: 0;
    padding: 8px;
  }

  .today-gps-pill small {
    display: none;
  }

  .today-grid {
    display: block;
  }

  .today-grid > section {
    border-bottom: 1px solid rgb(255 255 255 / 11%);
  }

  .today-next {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 24px 18px;
  }

  .today-next-number {
    font-size: 60px;
  }

  .today-next-copy h3 {
    font-size: 44px;
  }

  .today-next-copy > p {
    font-size: 11px;
  }

  .today-next-meta {
    flex-wrap: wrap;
  }

  .today-next-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .today-next-actions .button,
  .today-next-actions .text-button {
    width: 100%;
    min-width: 0;
  }

  .brief-card,
  .comfort-card {
    min-height: 0;
    padding: 22px 18px;
  }

  .today-tools {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .today-tools button {
    min-height: 110px;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 16px;
  }

  .today-tools button > span {
    grid-row: auto;
    width: 34px;
    height: 34px;
  }

  .today-tools small {
    line-height: 1.25;
  }

  .emergency-head,
  .memory-head {
    padding: calc(38px + env(safe-area-inset-top)) 58px 24px 20px;
  }

  .emergency-head h2,
  .memory-head h2 {
    font-size: 58px;
  }

  .emergency-location,
  .emergency-actions {
    margin: 16px;
  }

  .emergency-actions {
    grid-template-columns: 1fr;
  }

  .emergency-actions a {
    min-height: 92px;
  }

  .memory-book-head {
    display: block;
    padding: calc(38px + env(safe-area-inset-top)) 58px 24px 18px;
  }

  .memory-book-head > div:last-child {
    margin-top: 18px;
  }

  .memory-entry {
    grid-template-columns: 1fr;
  }

  .memory-entry > img,
  .memory-entry-placeholder {
    height: 240px;
    min-height: 240px;
  }

  .memory-entry > div:last-child {
    padding: 24px 20px;
  }

  .memory-entry h3 {
    font-size: 34px;
  }
}

@media print {
  body.printing-memory-book > *:not(.memory-book-dialog) {
    display: none !important;
  }

  body.printing-memory-book .memory-book-dialog {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    overflow: visible;
    color: #13231f;
    background: #fff;
    border: 0;
  }

  body.printing-memory-book .dialog-close,
  body.printing-memory-book .memory-book-head .button,
  body.printing-memory-book .memory-entry button {
    display: none !important;
  }

  body.printing-memory-book .memory-book-head {
    color: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.printing-memory-book .memory-book-list {
    display: block;
    background: #fff;
  }

  body.printing-memory-book .memory-entry {
    break-inside: avoid;
    margin: 0 0 14px;
    color: #13231f;
    background: #eef0e8;
  }

  body.printing-memory-book .memory-entry small {
    color: #245b48;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Unified phone controls, night theme, and the high-legibility road HUD. */
.utility-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--white);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.utility-toggle[aria-pressed="true"] {
  color: var(--pine-950);
  background: var(--sun);
  border-color: var(--sun);
}

.topbar-links {
  gap: 10px;
}

.topbar-links > a {
  margin-right: 12px;
}

.brand small,
.countdown-label,
.countdown-unit small,
.compass-n,
.locator-coords,
.drive-progress > div:first-child,
.offline-eyebrow,
.progress-stamp span,
.day-date span,
.day-header > div:nth-child(2) > p,
.timeline-tags span,
.battery-fill small,
.charge-step,
.charge-journey article small,
.charger-backups > a > span,
.dialog-location small {
  font-size: 10px;
}

.drive-progress small,
.charger-backups > a > small,
.packing-meta,
.credits {
  font-size: 11px;
}

.charge-journey p,
.charger-rule p,
.fact-card p,
.safety-note p,
.dialog-note {
  font-size: 13px;
}

.install-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(900px, calc(100svh - 28px));
  padding: 0;
  overflow: auto;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 8%, rgb(127 197 206 / 18%), transparent 32%),
    linear-gradient(145deg, #102f27, #091b24);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 2px 38px 2px 2px;
  box-shadow: 0 40px 100px rgb(2 14 18 / 55%);
}

.install-dialog::backdrop {
  background: rgb(3 14 18 / 76%);
  backdrop-filter: blur(8px);
}

.install-dialog-head {
  position: relative;
  padding: 46px 46px 30px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.install-dialog-head .section-kicker {
  color: var(--sun-light);
}

.install-dialog-head h2 {
  max-width: 560px;
  margin: 7px 0 12px;
  font-family: var(--display);
  font-size: clamp(54px, 9vw, 82px);
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
}

.install-dialog-head > p:last-child {
  max-width: 570px;
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-size: 15px;
}

.install-badge {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-size: 24px;
}

.install-steps {
  margin: 0;
  padding: 0 46px;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.install-steps li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--pine-950);
  background: var(--river);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 11px;
}

.install-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.install-steps p {
  margin: 0;
  color: rgb(255 255 255 / 58%);
  font-size: 14px;
}

.install-readiness {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 24px 46px 0;
  padding: 18px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 2px 18px 2px 2px;
}

.install-readiness > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--pine-950);
  background: var(--granite);
  border-radius: 50%;
  font-weight: 700;
}

.install-readiness.is-ready > span {
  background: #65dc96;
}

.install-readiness.is-error > span {
  background: var(--sun);
}

.install-readiness strong,
.install-readiness p {
  display: block;
  margin: 0;
}

.install-readiness p {
  margin-top: 3px;
  color: rgb(255 255 255 / 56%);
  font-size: 12px;
}

.install-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px 46px 42px;
}

.text-button {
  padding: 10px;
  color: var(--white);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Live Leg Progress — one route rail for the active checkpoint. */
.live-leg {
  --leg-accent: var(--river);
  --leg-fill: linear-gradient(90deg, var(--sun) 0%, var(--river) 100%);
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 13px 14px 12px;
  color: var(--white);
  background: rgb(5 34 32 / 86%);
  border: 1px solid rgb(127 197 206 / 22%);
  border-radius: 2px 16px 2px 2px;
  cursor: default;
}

.live-leg[hidden] {
  display: none !important;
}

.live-leg-top,
.live-leg-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-leg-top > span,
.live-leg-top > strong,
.live-leg-bottom > span {
  min-width: 0;
}

.live-leg-top > span {
  overflow: hidden;
  color: var(--sun-light);
  font-family: var(--utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-leg-top > strong {
  flex: 0 0 auto;
  color: var(--white);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.live-leg-track {
  position: relative;
  height: 6px;
  margin: 12px 7px 10px 0;
  background: rgb(255 255 255 / 16%);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%);
}

.live-leg-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--leg-fill);
  border-radius: inherit;
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.live-leg-dot {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  display: block;
  width: 14px;
  height: 14px;
  background: var(--leg-accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(127 197 206 / 16%), 0 4px 10px rgb(0 0 0 / 32%);
  transform: translate(-50%, -50%);
  transition: left 650ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease;
}

.live-leg-finish {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  display: block;
  width: 12px;
  height: 12px;
  background: #143a33;
  border: 2px solid var(--sun);
  border-radius: 50% 50% 50% 2px;
  box-shadow: 0 0 0 3px rgb(245 185 65 / 12%);
  transform: translate(50%, -50%) rotate(-45deg);
}

.live-leg-bottom > span {
  overflow: hidden;
  color: rgb(255 255 255 / 56%);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-leg-bottom > span:last-child {
  flex: 0 0 auto;
  color: rgb(255 255 255 / 42%);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-leg[data-tone="live"] .live-leg-dot {
  animation: live-leg-pulse 2.2s ease-out infinite;
}

.live-leg[data-tone="approximate"] {
  --leg-accent: var(--sun);
}

.live-leg[data-tone="stale"],
.live-leg[data-tone="preview"] {
  --leg-accent: #94a19d;
  --leg-fill: linear-gradient(90deg, #596b65, #94a19d);
}

.live-leg[data-tone="stale"] .live-leg-top > span,
.live-leg[data-tone="preview"] .live-leg-top > span {
  color: #b4bfbb;
}

.live-leg[data-tone="arrived"] {
  --leg-accent: #65dc96;
  --leg-fill: linear-gradient(90deg, var(--sun), #65dc96);
  border-color: rgb(101 220 150 / 38%);
}

.live-leg[data-tone="arrived"] .live-leg-top > span {
  color: #86e5aa;
}

.live-leg--timeline {
  grid-column: 1 / -1;
  margin: 0 -4px;
  box-shadow: 0 12px 28px rgb(8 44 38 / 12%);
}

.live-leg--today {
  margin-top: 16px;
  background: rgb(3 28 28 / 68%);
}

.live-leg--dock {
  margin-top: 8px;
  padding: 0 8px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.live-leg--dock .live-leg-top > span,
.live-leg--dock .live-leg-bottom > span:last-child {
  color: var(--river);
}

.live-leg--dock .live-leg-track {
  margin-top: 9px;
  margin-bottom: 7px;
}

@keyframes live-leg-pulse {
  0% { box-shadow: 0 0 0 0 rgb(127 197 206 / 38%), 0 4px 10px rgb(0 0 0 / 32%); }
  72% { box-shadow: 0 0 0 10px rgb(127 197 206 / 0%), 0 4px 10px rgb(0 0 0 / 32%); }
  100% { box-shadow: 0 0 0 0 rgb(127 197 206 / 0%), 0 4px 10px rgb(0 0 0 / 32%); }
}

.road-dock {
  position: fixed;
  z-index: 8400;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: none;
  grid-template-columns: minmax(130px, 0.55fr) minmax(280px, 1.5fr) auto;
  gap: 22px;
  align-items: center;
  width: min(1040px, calc(100% - 36px));
  min-height: 122px;
  margin: auto;
  padding: 16px 18px;
  color: var(--white);
  background: rgb(8 28 34 / 94%);
  border: 1px solid rgb(127 197 206 / 30%);
  border-radius: 2px 24px 2px 2px;
  box-shadow: 0 20px 60px rgb(1 14 18 / 42%);
  backdrop-filter: blur(18px);
}

.road-dock-exit {
  position: absolute;
  top: -10px;
  right: -8px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: #294b43;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(0 0 0 / 24%);
}

body.road-mode .road-dock {
  display: grid;
}

body.road-mode {
  padding-bottom: 158px;
}

.road-dock-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-right: 1px solid rgb(255 255 255 / 14%);
}

.road-dock-status > span {
  width: 9px;
  height: 9px;
  background: var(--granite);
  border-radius: 50%;
}

.road-dock-status > span.is-live {
  background: #65dc96;
  box-shadow: 0 0 0 5px rgb(101 220 150 / 12%);
}

.road-dock-status small,
.road-dock-next small {
  color: var(--river);
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.road-dock-status strong {
  color: var(--sun);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}

.road-dock-next small,
.road-dock-next strong,
.road-dock-next span {
  display: block;
}

.road-dock-next strong {
  margin: 1px 0;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.road-dock-next span {
  color: rgb(255 255 255 / 62%);
  font-size: 14px;
}

.road-dock-next .live-leg-top > span {
  color: var(--sun-light);
  font-size: 8px;
}

.road-dock-next .live-leg-top > strong {
  margin: 0;
  color: var(--white);
  font-size: 10px;
  white-space: nowrap;
}

.road-dock-next .live-leg-bottom > span {
  color: rgb(255 255 255 / 56%);
  font-size: 9px;
}

.road-dock-next .live-leg-bottom > span:last-child {
  color: var(--river);
  font-size: 8px;
}

.road-dock-actions {
  display: flex;
  gap: 8px;
}

.road-dock-actions button,
.road-dock-actions a {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.road-dock-actions button {
  color: var(--white);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 25%);
}

.road-dock-actions a {
  display: inline-flex;
  align-items: center;
  color: var(--pine-950);
  background: var(--sun);
}

.road-dock-actions [aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

body.road-mode .timeline-description,
body.road-mode .section-summary,
body.road-mode .packing-heading > p:last-child {
  font-size: 17px;
}

body.road-mode .timeline-time,
body.road-mode .timeline-tags span,
body.road-mode .map-status-label,
body.road-mode .map-status small,
body.road-mode .offline-eyebrow,
body.road-mode .offline-panel p,
body.road-mode .packing-meta {
  font-size: 12px;
}

body.road-mode .timeline-title,
body.road-mode .map-status strong,
body.road-mode .offline-panel strong {
  font-size: 20px;
}

body.road-mode button,
body.road-mode .button {
  min-height: 50px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #182329;
  --fog: #0c151d;
  --ink: #edf1eb;
  --white: #fffef9;
  --granite: #9da9a8;
  --river-light: #16333b;
  --shadow: 0 28px 80px rgb(0 0 0 / 34%);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .route-section,
html[data-theme="dark"] .itinerary-section {
  background: var(--fog);
}

html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .day-header h3,
html[data-theme="dark"] .timeline-title,
html[data-theme="dark"] .packing-heading h2,
html[data-theme="dark"] .packing-name {
  color: var(--ink);
}

html[data-theme="dark"] .section-summary,
html[data-theme="dark"] .map-note,
html[data-theme="dark"] .day-date span,
html[data-theme="dark"] .day-header > div:nth-child(2) > p,
html[data-theme="dark"] .timeline-description,
html[data-theme="dark"] .packing-heading > p:last-child,
html[data-theme="dark"] .packing-meta,
html[data-theme="dark"] .dialog-description {
  color: #a7b4b0;
}

html[data-theme="dark"] .progress-stamp,
html[data-theme="dark"] .timeline-tags span,
html[data-theme="dark"] .dialog-location span {
  background: #18252a;
  border-color: #314046;
}

html[data-theme="dark"] .progress-stamp,
html[data-theme="dark"] .day-header,
html[data-theme="dark"] .timeline,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .packing-list,
html[data-theme="dark"] .packing-item {
  border-color: #314046;
}

html[data-theme="dark"] .timeline-item::before {
  background: var(--fog);
}

html[data-theme="dark"] .timeline-card:hover {
  background: #132127;
}

html[data-theme="dark"] .packing-section {
  background:
    linear-gradient(135deg, transparent 0 74%, rgb(127 197 206 / 8%) 74% 100%),
    var(--paper);
}

html[data-theme="dark"] .stop-dialog {
  color: var(--ink);
  background: #101b21;
}

html[data-theme="dark"] .dialog-time,
html[data-theme="dark"] .timeline-time,
html[data-theme="dark"] .day-date,
html[data-theme="dark"] .progress-stamp strong {
  color: var(--river);
}

html[data-theme="dark"] .dialog-note {
  color: #dcebea;
  background: #16333b;
}

html[data-theme="dark"] .dialog-location {
  background: #314046;
  border-color: #314046;
}

html[data-theme="dark"] .mobile-nav {
  color: #9aa8a5;
  background: rgb(12 21 29 / 95%);
  border-color: #26353a;
}

html[data-theme="dark"] .mobile-nav a.is-active,
html[data-theme="dark"] .mobile-nav button {
  color: var(--river);
}

html[data-theme="dark"] .mobile-locate-ring {
  color: var(--pine-950);
  background: var(--river);
  border-color: var(--fog);
}

/* Walk Mode — an offline Yosemite field compass. */
.walk-dialog {
  width: min(1180px, calc(100% - 24px));
  height: min(920px, calc(100svh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 4%, rgb(127 197 206 / 16%), transparent 30%),
    linear-gradient(150deg, #123d33 0%, #0a2025 48%, #07171d 100%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 2px 38px 2px 2px;
  box-shadow: 0 50px 130px rgb(0 10 15 / 65%);
}

.walk-dialog::backdrop {
  background: rgb(2 12 17 / 82%);
  backdrop-filter: blur(12px);
}

.walk-close {
  position: absolute;
  z-index: 900;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: rgb(4 22 25 / 64%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.walk-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding: 30px 78px 22px 34px;
}

.walk-head .section-kicker {
  margin: 0 0 4px;
  color: var(--sun-light);
}

.walk-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.walk-head > div:first-child > p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgb(255 255 255 / 66%);
  font-size: 14px;
}

.walk-gps-pill {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 9px;
  align-items: center;
  min-width: 152px;
  padding: 11px 14px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 2px 16px 2px 2px;
}

.walk-gps-pill > span {
  grid-row: 1 / 3;
  width: 9px;
  height: 9px;
  background: #7d8986;
  border-radius: 50%;
}

.walk-gps-pill.is-live > span {
  background: #65dc96;
  box-shadow: 0 0 0 5px rgb(101 220 150 / 12%);
}

.walk-gps-pill strong,
.walk-gps-pill small {
  display: block;
}

.walk-gps-pill strong {
  font-size: 13px;
}

.walk-gps-pill small {
  color: rgb(255 255 255 / 48%);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.walk-route-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 34px 18px;
}

.walk-route-picker button {
  min-width: 0;
  padding: 12px 14px;
  color: rgb(255 255 255 / 62%);
  text-align: left;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  cursor: pointer;
}

.walk-route-picker button:first-child {
  border-radius: 2px 0 0 14px;
}

.walk-route-picker button:last-child {
  border-radius: 0 14px 2px 0;
}

.walk-route-picker button[aria-selected="true"] {
  color: var(--pine-950);
  background: var(--sun);
  border-color: var(--sun);
  box-shadow: 0 10px 26px rgb(245 185 65 / 18%);
}

.walk-route-picker span,
.walk-route-picker strong,
.walk-route-picker small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walk-route-picker span,
.walk-route-picker small {
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.walk-route-picker strong {
  margin: 2px 0;
  color: var(--white);
  font-size: 15px;
}

.walk-route-picker button[aria-selected="true"] strong {
  color: var(--pine-950);
}

.walk-stage {
  position: relative;
  height: clamp(390px, 48vh, 560px);
  margin: 0 16px;
  overflow: hidden;
  background: #d9e3dc;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 2px 30px 2px 2px;
}

.walk-map {
  width: 100%;
  height: 100%;
  background: #d9e3dc;
}

.walk-map .leaflet-control-attribution {
  max-width: 55vw;
  overflow: hidden;
  color: #34534d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walk-map-stamp {
  position: absolute;
  z-index: 550;
  top: 18px;
  left: 18px;
  padding: 10px 13px;
  color: var(--white);
  background: rgb(7 31 31 / 86%);
  border-left: 3px solid var(--sun);
  border-radius: 1px 12px 1px 1px;
  box-shadow: 0 8px 26px rgb(4 24 24 / 22%);
  backdrop-filter: blur(10px);
}

.walk-map-stamp span,
.walk-map-stamp strong {
  display: block;
}

.walk-map-stamp span {
  color: var(--sun-light);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.walk-map-stamp strong {
  margin-top: 1px;
  font-size: 14px;
}

.walk-map-locate {
  position: absolute;
  z-index: 550;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  background: rgb(7 31 31 / 88%);
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.walk-hud {
  position: absolute;
  z-index: 560;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 0.55fr) minmax(220px, 1fr);
  gap: 1px;
  overflow: hidden;
  color: var(--white);
  background: rgb(6 31 30 / 93%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 2px 22px 2px 2px;
  box-shadow: 0 18px 42px rgb(0 18 20 / 34%);
  backdrop-filter: blur(18px);
}

.walk-course,
.walk-metric,
.walk-next {
  min-width: 0;
  padding: 14px 18px;
  border-right: 1px solid rgb(255 255 255 / 12%);
}

.walk-course {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.walk-status-dot {
  width: 13px;
  height: 13px;
  background: #7d8986;
  border: 3px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
}

.walk-status-dot.is-live {
  background: #65dc96;
  box-shadow: 0 0 0 7px rgb(101 220 150 / 12%);
}

.walk-status-dot.is-near {
  background: var(--sun);
}

.walk-status-dot.is-warning {
  background: #ff775f;
  box-shadow: 0 0 0 7px rgb(255 119 95 / 12%);
}

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

.walk-hud small {
  color: var(--river);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.walk-hud strong {
  margin-top: 2px;
  font-size: 16px;
}

.walk-hud span {
  margin-top: 2px;
  color: rgb(255 255 255 / 56%);
  font-size: 11px;
}

.walk-metric strong {
  color: var(--sun-light);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: 0.95;
}

.walk-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
}

.walk-actions button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0 10px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
  color: var(--white);
  text-align: left;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 2px 14px 2px 2px;
  cursor: pointer;
}

.walk-actions button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--river);
  background: rgb(127 197 206 / 12%);
  border-radius: 50%;
}

.walk-actions button strong,
.walk-actions button small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walk-actions button strong {
  align-self: end;
  font-size: 13px;
}

.walk-actions button small {
  align-self: start;
  color: rgb(255 255 255 / 48%);
  font-size: 9px;
}

.walk-actions .walk-primary {
  color: var(--pine-950);
  background: var(--sun);
  border-color: var(--sun);
}

.walk-actions .walk-primary > span {
  color: var(--pine-950);
  background: rgb(255 255 255 / 38%);
}

.walk-actions .walk-primary small {
  color: rgb(8 37 31 / 64%);
}

.walk-actions .walk-primary.is-live {
  background: #65dc96;
  border-color: #65dc96;
}

.walk-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.walk-foot {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 14px;
  color: rgb(255 255 255 / 48%);
  font-size: 10px;
}

.walk-foot p {
  margin: 0;
}

.walk-foot p span {
  margin-right: 6px;
  color: var(--river);
}

.walk-foot a {
  flex: none;
  color: var(--river);
  font-weight: 700;
}

.walk-marker-wrap,
.walk-user-wrap,
.walk-car-wrap {
  background: transparent;
  border: 0;
}

.walk-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 4px;
  box-shadow: 0 6px 18px rgb(7 35 32 / 30%);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.walk-marker.comfort {
  color: var(--white);
  background: #147783;
}

.walk-user-marker {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  background: rgb(23 125 138 / 20%);
  border: 1px solid rgb(23 125 138 / 32%);
  border-radius: 50%;
  animation: walk-pulse 2s ease-out infinite;
}

.walk-user-marker i {
  position: absolute;
  inset: 7px;
  background: #177d8a;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgb(0 40 45 / 36%);
}

.walk-car-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: #161d22;
  border: 3px solid var(--white);
  border-radius: 11px 11px 11px 2px;
  box-shadow: 0 7px 18px rgb(0 0 0 / 32%);
  font-family: var(--display);
  font-size: 20px;
}

@keyframes walk-pulse {
  0% { box-shadow: 0 0 0 0 rgb(23 125 138 / 34%); }
  70% { box-shadow: 0 0 0 14px rgb(23 125 138 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(23 125 138 / 0%); }
}

/* Context-aware movement controls. */
.trail-launcher {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 1350px;
  min-height: 132px;
  margin: 24px auto 0;
  padding: 24px 28px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, transparent 0 68%, rgb(127 197 206 / 12%) 68% 100%),
    var(--pine-900);
  border: 1px solid rgb(127 197 206 / 26%);
  border-radius: 2px 28px 2px 2px;
  box-shadow: 0 18px 48px rgb(10 42 34 / 14%);
}

.trail-launcher::after {
  content: "";
  position: absolute;
  right: 190px;
  bottom: -16px;
  width: 170px;
  height: 80px;
  border-top: 2px dashed rgb(245 185 65 / 38%);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.trail-launcher-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50% 50% 50% 8px;
  font-family: var(--display);
  font-size: 40px;
  box-shadow: 0 10px 28px rgb(245 185 65 / 22%);
}

.trail-launcher .section-kicker {
  margin: 0 0 3px;
  color: var(--river);
}

.trail-launcher h3 {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 32px);
}

.trail-launcher div > p:last-child {
  max-width: 720px;
  margin: 5px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 13px;
}

.trail-launcher > .button {
  position: relative;
  z-index: 1;
  min-width: 182px;
  justify-content: center;
}

.timeline-mode-hint {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 2px -4px -4px;
  padding: 11px 12px;
  background: #eef5f0;
  border: 1px solid #d6e2da;
  border-radius: 2px 14px 2px 2px;
  cursor: default;
}

.timeline-mode-hint.mode-walk {
  background: #fff6df;
  border-color: #eed9a5;
}

.timeline-mode-hint.mode-shuttle {
  background: #e8f4f5;
  border-color: #c9dfe1;
}

.timeline-mode-hint.mode-road {
  background: #edf2ee;
}

.timeline-mode-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--pine-800);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 700;
}

.mode-walk .timeline-mode-symbol {
  color: var(--pine-950);
  background: var(--sun);
}

.mode-shuttle .timeline-mode-symbol {
  background: #217985;
}

.timeline-mode-hint span:nth-child(2),
.timeline-mode-hint small,
.timeline-mode-hint strong {
  display: block;
  min-width: 0;
}

.timeline-mode-hint small {
  color: var(--pine-700);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-mode-hint strong {
  margin-top: 2px;
  color: #53645c;
  font-size: 11px;
  font-weight: 400;
}

.timeline-mode-hint > button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--white);
  background: var(--pine-800);
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.timeline-mode-hint.mode-walk > button {
  color: var(--pine-950);
  background: var(--sun);
}

.timeline-mode-hint.mode-shuttle > button {
  background: #217985;
}

.shuttle-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(920px, calc(100svh - 28px));
  padding: 0;
  overflow: auto;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 6%, rgb(127 197 206 / 20%), transparent 34%),
    linear-gradient(150deg, #123b36, #0a2028 62%, #071820);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 2px 38px 2px 2px;
  box-shadow: 0 45px 110px rgb(0 12 18 / 62%);
}

.shuttle-dialog::backdrop {
  background: rgb(2 12 17 / 80%);
  backdrop-filter: blur(10px);
}

.shuttle-head {
  padding: 38px 50px 26px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.shuttle-head .section-kicker {
  margin: 18px 0 4px;
  color: var(--river);
}

.shuttle-head h2 {
  max-width: 620px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 86px);
  font-weight: 400;
  line-height: 0.86;
  text-transform: uppercase;
}

.shuttle-head > p:last-child {
  max-width: 620px;
  margin: 13px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 14px;
}

.shuttle-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--pine-950);
  background: var(--river);
  border-radius: 50% 50% 50% 6px;
  font-family: var(--utility);
  font-weight: 700;
}

.shuttle-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 20px 50px 0;
}

.shuttle-facts > span {
  padding: 14px 16px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
}

.shuttle-facts small,
.shuttle-facts strong {
  display: block;
}

.shuttle-facts small {
  color: var(--river);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.shuttle-facts strong {
  margin-top: 3px;
  font-size: 13px;
}

.shuttle-steps {
  margin: 0;
  padding: 12px 50px 0;
  list-style: none;
}

.shuttle-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.shuttle-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 9px;
}

.shuttle-steps strong,
.shuttle-steps p {
  display: block;
  margin: 0;
}

.shuttle-steps strong {
  font-size: 14px;
}

.shuttle-steps p {
  margin-top: 3px;
  color: rgb(255 255 255 / 54%);
  font-size: 12px;
}

.shuttle-actions {
  display: flex;
  gap: 10px;
  padding: 22px 50px 12px;
}

.shuttle-actions .button {
  flex: 1;
  justify-content: center;
  text-align: center;
}

.shuttle-caution {
  margin: 0;
  padding: 8px 50px 30px;
  color: rgb(255 255 255 / 44%);
  font-size: 10px;
}

.shuttle-caution span {
  margin-right: 5px;
  color: var(--river);
}

.context-mode-dock {
  position: fixed;
  z-index: 8300;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 13px;
  align-items: center;
  width: min(760px, calc(100% - 36px));
  min-height: 76px;
  margin: auto;
  padding: 10px 10px 10px 14px;
  color: var(--white);
  background: rgb(7 31 30 / 95%);
  border: 1px solid rgb(127 197 206 / 32%);
  border-radius: 2px 22px 2px 2px;
  box-shadow: 0 18px 52px rgb(1 17 20 / 36%);
  backdrop-filter: blur(18px);
  animation: context-dock-in 220ms ease-out both;
}

.context-mode-dock[hidden],
body.road-mode .context-mode-dock {
  display: none;
}

.context-mode-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--pine-950);
  background: var(--sun);
  border-radius: 50% 50% 50% 6px;
  font-family: var(--utility);
  font-weight: 700;
}

.context-mode-dock[data-mode="shuttle"] .context-mode-symbol {
  background: var(--river);
}

.context-mode-dock[data-mode="road"] .context-mode-symbol {
  color: var(--white);
  background: #315f55;
}

.context-mode-copy {
  min-width: 0;
}

.context-mode-copy small,
.context-mode-copy strong,
.context-mode-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-mode-copy small {
  color: var(--river);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-mode-copy strong {
  margin-top: 1px;
  font-size: 15px;
}

.context-mode-copy span {
  color: rgb(255 255 255 / 50%);
  font-size: 10px;
}

.context-mode-dock > button:not(.context-mode-hide) {
  min-height: 46px;
  padding: 0 18px;
  color: var(--pine-950);
  background: var(--sun);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.context-mode-dock[data-mode="shuttle"] > button:not(.context-mode-hide) {
  background: var(--river);
}

.context-mode-dock[data-mode="road"] > button:not(.context-mode-hide) {
  color: var(--white);
  background: #315f55;
}

.context-mode-hide {
  width: 30px;
  height: 30px;
  padding: 0;
  color: rgb(255 255 255 / 54%);
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

@keyframes context-dock-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .charge-journey {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .topbar-links > a,
  .utility-toggle span:last-child {
    display: none;
  }

  .topbar-links > a {
    margin: 0;
  }

  .topbar-links {
    gap: 5px;
  }

  .utility-toggle,
  .install-button {
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    font-size: 16px;
  }

  .install-button {
    font-size: 0;
  }

  .install-button::before {
    content: "+";
    font-size: 20px;
    line-height: 1;
  }

  .brand small {
    font-size: 9px;
  }

  .install-dialog-head {
    padding: 34px 22px 24px;
  }

  .install-dialog-head h2 {
    font-size: 54px;
  }

  .install-steps {
    padding: 0 22px;
  }

  .install-readiness {
    margin: 22px 22px 0;
  }

  .install-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 22px 34px;
  }

  .charge-journey {
    grid-template-columns: 1fr;
  }

  body.road-mode {
    padding-bottom: calc(248px + env(safe-area-inset-bottom));
  }

  body.road-mode .road-dock {
    right: 9px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 9px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: auto;
    min-height: 158px;
    padding: 12px;
  }

  .road-dock-status {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .road-dock-next strong {
    max-width: 52vw;
    font-size: 18px;
  }

  .road-dock-next span {
    font-size: 12px;
  }

  .live-leg {
    padding: 12px;
  }

  .live-leg--timeline {
    margin: 0;
  }

  .live-leg--today {
    margin-top: 14px;
  }

  .live-leg--dock {
    margin-top: 7px;
    padding: 0 6px 0 0;
  }

  .live-leg-top > span {
    max-width: 58vw;
  }

  .live-leg-bottom > span:first-child {
    max-width: 54vw;
  }

  .live-leg-bottom > span:last-child {
    font-size: 7px;
  }

  .road-dock-actions button {
    display: none;
  }

  .road-dock-actions a {
    min-height: 48px;
    padding: 0 14px;
    font-size: 13px;
  }

  body.road-mode .packing-meta {
    display: block;
    grid-column: 2;
  }

  html[data-theme="dark"] .toast {
    background: #15252b;
  }

  .walk-dialog {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .walk-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .walk-head {
    display: block;
    padding: calc(16px + env(safe-area-inset-top)) 58px 12px 14px;
  }

  .walk-head h2 {
    font-size: 43px;
  }

  .walk-head > div:first-child > p:last-child {
    display: none;
  }

  .walk-gps-pill {
    position: absolute;
    z-index: 5;
    top: calc(68px + env(safe-area-inset-top));
    right: 12px;
    min-width: 0;
    padding: 6px 8px;
    background: rgb(255 255 255 / 9%);
  }

  .walk-gps-pill small {
    display: none;
  }

  .walk-route-picker {
    display: flex;
    gap: 7px;
    padding: 0 12px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .walk-route-picker::-webkit-scrollbar {
    display: none;
  }

  .walk-route-picker button {
    flex: 0 0 148px;
    padding: 9px 11px;
    border-radius: 2px 12px 2px 2px !important;
    scroll-snap-align: start;
  }

  .walk-route-picker span {
    display: none;
  }

  .walk-stage {
    height: min(49svh, 490px);
    margin: 0 7px;
    border-radius: 2px 20px 2px 2px;
  }

  .walk-map-stamp {
    top: 10px;
    left: 10px;
    padding: 7px 9px;
  }

  .walk-map-locate {
    top: 10px;
    right: 10px;
    min-height: 38px;
  }

  .walk-hud {
    right: 7px;
    bottom: 7px;
    left: 7px;
    grid-template-columns: 1fr 1fr;
    border-radius: 2px 16px 2px 2px;
  }

  .walk-course {
    grid-column: 1 / -1;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .walk-metric,
  .walk-next {
    padding: 9px 12px;
  }

  .walk-metric strong {
    font-size: 24px;
  }

  .walk-hud strong {
    font-size: 14px;
  }

  .walk-hud span {
    font-size: 9px;
  }

  .walk-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px 7px;
  }

  .walk-actions button {
    min-height: 51px;
    padding: 6px 8px;
  }

  .walk-actions button > span {
    width: 30px;
    height: 30px;
  }

  .walk-foot {
    padding: 0 10px calc(8px + env(safe-area-inset-bottom));
  }

  .walk-foot p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .walk-foot a {
    display: none;
  }

  .trail-launcher {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding: 18px;
  }

  .trail-launcher::after {
    display: none;
  }

  .trail-launcher-mark {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }

  .trail-launcher h3 {
    font-size: 20px;
  }

  .trail-launcher div > p:last-child {
    font-size: 11px;
  }

  .trail-launcher > .button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
  }

  .timeline-mode-hint {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    margin: 2px 0 0;
    padding: 10px;
  }

  .timeline-mode-hint > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .shuttle-dialog {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .shuttle-head {
    padding: calc(28px + env(safe-area-inset-top)) 22px 22px;
  }

  .shuttle-head h2 {
    font-size: 57px;
  }

  .shuttle-facts {
    padding: 16px 14px 0;
  }

  .shuttle-facts > span {
    padding: 11px 9px;
  }

  .shuttle-facts strong {
    font-size: 11px;
  }

  .shuttle-steps {
    padding: 8px 22px 0;
  }

  .shuttle-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 22px 10px;
  }

  .shuttle-caution {
    padding: 6px 22px calc(22px + env(safe-area-inset-bottom));
  }

  .context-mode-dock {
    right: 7px;
    bottom: calc(73px + env(safe-area-inset-bottom));
    left: 7px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    width: auto;
    min-height: 68px;
    padding: 8px;
    border-radius: 2px 17px 2px 2px;
  }

  .context-mode-symbol {
    width: 40px;
    height: 40px;
  }

  .context-mode-copy span {
    display: none;
  }

  .context-mode-copy strong {
    max-width: 34vw;
    font-size: 13px;
  }

  .context-mode-dock > button:not(.context-mode-hide) {
    min-height: 42px;
    max-width: 34vw;
    padding: 0 12px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .context-mode-hide {
    position: absolute;
    top: -10px;
    right: -2px;
    width: 25px;
    height: 25px;
    color: var(--white);
    background: #27443e;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50%;
    font-size: 14px;
  }
}

/* v12 cascade guards for controls defined later in this sheet. */
body.road-mode .road-dock-exit,
body.road-mode .context-mode-hide,
body.road-mode .dialog-close,
body.road-mode .walk-close {
  min-height: 0;
}

@media (max-width: 780px) {
  .walk-dialog {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 1024px) and (orientation: landscape) {
  .walk-dialog {
    overflow-y: auto;
  }

  .walk-stage {
    height: min(66svh, 410px);
  }
}
