:root {
  color-scheme: light;
  --bg: oklch(97.4% 0.003 85);
  --bg-deep: oklch(93.5% 0.004 85);
  --surface: oklch(96.7% 0.006 145);
  --paper: oklch(100% 0 0);
  --paper-strong: oklch(99.4% 0.002 85);
  --ink: oklch(22% 0.006 85);
  --ink-soft: oklch(38% 0.006 85);
  --muted: oklch(52% 0.006 85);
  --line: oklch(88% 0.004 85);
  --line-strong: oklch(78% 0.004 85);
  --accent: oklch(63% 0.22 17);
  --accent-2: oklch(49% 0.086 195);
  --warning: oklch(58% 0.116 60);
  --danger: oklch(63% 0.22 17);
  --road: oklch(22% 0.006 85);
  --surface-shadow: 0 18px 48px oklch(22% 0.006 85 / 0.09);
  --soft-shadow: 0 10px 28px oklch(22% 0.006 85 / 0.07);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-heavy: cubic-bezier(0.32, 0.72, 0, 1);
  --font-ui: "Plus Jakarta Sans", "Geist", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 1px 1px, oklch(22% 0.006 85 / 0.12) 1px, transparent 0);
  background-size: 16px 16px;
  mix-blend-mode: multiply;
}

body::after {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 34dvh;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, oklch(92% 0.004 85 / 0.62), transparent);
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid oklch(54% 0.09 166);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 90;
  padding: 10px 14px;
  border: 1px solid oklch(22% 0.006 85 / 0.16);
  border-radius: 7px;
  background: oklch(100% 0 0 / 0.94);
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

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

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}

h3 {
  margin-bottom: 7px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
}

.app-page {
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  width: min(1380px, calc(100% - 32px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 16px auto 0;
  padding: 8px 10px;
  border: 1px solid oklch(100% 0.004 145 / 0.68);
  border-radius: 999px;
  background: oklch(98% 0.006 145 / 0.78);
  box-shadow: 0 18px 48px oklch(22% 0.018 160 / 0.12), inset 0 1px 0 oklch(100% 0.004 145 / 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  padding-left: 18px;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: oklch(90% 0.012 150 / 0.72);
}

.topnav a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 38px;
  text-decoration: none;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.topnav a:hover {
  background: var(--paper-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 88px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.breadcrumbs a {
  text-decoration: none;
}

.kicker {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  margin: 0 0 12px;
  padding: 0 10px;
  border: 1px solid oklch(80% 0.016 150 / 0.78);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 70ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.72;
}

.workbench-intro,
.page-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid oklch(100% 0.004 145 / 0.7);
  border-radius: 8px;
  background:
    linear-gradient(145deg, oklch(99% 0.006 145 / 0.95), oklch(93.5% 0.015 150 / 0.88)),
    linear-gradient(90deg, oklch(38% 0.078 166 / 0.1), transparent 42%);
  box-shadow: var(--surface-shadow), inset 0 1px 0 oklch(100% 0.004 145 / 0.76);
  overflow: hidden;
}

.page-intro {
  grid-template-areas:
    "copy media"
    "actions media";
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}

.workbench-intro::after,
.page-intro::after {
  position: absolute;
  inset: 8px;
  border: 1px solid oklch(80% 0.014 150 / 0.58);
  border-radius: 7px;
  content: "";
  pointer-events: none;
}

.hero-copy,
.hero-media,
.intro-actions {
  position: relative;
  z-index: 1;
}

.page-intro .hero-copy {
  display: grid;
  grid-area: copy;
  align-content: center;
}

.page-intro .hero-copy .kicker {
  justify-self: start;
}

.hero-media {
  display: grid;
  width: min(340px, 28vw);
  min-width: 250px;
  margin: 0;
  align-self: stretch;
  grid-template-rows: minmax(170px, 1fr) auto;
  border: 1px solid oklch(100% 0.004 145 / 0.72);
  border-radius: 8px;
  background: oklch(98% 0.006 145 / 0.78);
  box-shadow: 0 16px 34px oklch(22% 0.018 160 / 0.1), inset 0 1px 0 oklch(100% 0.004 145 / 0.74);
  overflow: hidden;
}

.page-intro .hero-media {
  grid-area: media;
  justify-self: end;
}

.hero-media:empty {
  display: none;
}

.hero-media button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: oklch(88% 0.014 150);
  cursor: zoom-in;
  overflow: hidden;
}

.hero-media button::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, oklch(15% 0.018 160 / 0.66), transparent 54%),
    linear-gradient(135deg, oklch(100% 0 0 / 0.08), transparent 36%);
  content: "";
  pointer-events: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 650ms var(--ease-heavy), filter 650ms var(--ease-heavy);
}

.hero-media:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.045);
}

.hero-media button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid oklch(100% 0 0 / 0.28);
  border-radius: 999px;
  background: oklch(18% 0.018 160 / 0.62);
  color: oklch(99% 0.004 145);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 750;
}

.hero-media figcaption {
  display: grid;
  gap: 5px;
  padding: 13px 14px 14px;
}

.hero-media figcaption strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.18;
}

.hero-media figcaption small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.intro-actions {
  display: flex;
  max-width: 100%;
  align-self: end;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.page-intro .intro-actions {
  grid-area: actions;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid oklch(78% 0.016 150);
  border-radius: 999px;
  background: oklch(98.5% 0.006 145);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.9);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), background 240ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px oklch(24% 0.02 160 / 0.1), inset 0 1px 0 oklch(100% 0.004 145 / 0.9);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button.primary {
  border-color: oklch(33% 0.074 166);
  background: var(--accent);
  color: oklch(97% 0.006 145);
}

.button.primary i {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: oklch(100% 0.004 145 / 0.14);
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  transition: transform 240ms var(--ease-out), background 240ms var(--ease-out);
}

.button.primary:hover i {
  background: oklch(100% 0.004 145 / 0.2);
  transform: translateX(2px) translateY(-1px);
}

.summary-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.18fr 1.08fr 0.78fr 0.86fr 0.92fr minmax(220px, 1.74fr);
  gap: 10px;
  margin: 0 0 18px;
}

.summary-item {
  position: relative;
  min-height: 102px;
  padding: 16px 16px 14px;
  border: 1px solid oklch(100% 0.004 145 / 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, oklch(99% 0.006 145), oklch(96% 0.01 150));
  box-shadow: var(--soft-shadow), inset 0 1px 0 oklch(100% 0.004 145 / 0.84);
  animation: settle 620ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 55ms);
}

.summary-time {
  background: linear-gradient(150deg, var(--road), oklch(36% 0.032 164));
  color: oklch(97% 0.006 145);
}

.summary-time span,
.summary-time strong {
  color: inherit;
}

.summary-family {
  background:
    linear-gradient(135deg, oklch(98% 0.012 150), oklch(95% 0.018 95)),
    var(--paper);
}

.summary-item span,
.summary-item strong {
  display: block;
}

.summary-item span,
.tile-label,
.poi-item small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.summary-item strong {
  margin-top: 13px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.summary-family strong {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.5;
}

.summary-time span,
.summary-time strong {
  color: oklch(97% 0.006 145);
}

.field-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid oklch(86% 0.014 150 / 0.86);
  border-radius: 10px;
  background:
    linear-gradient(135deg, oklch(99% 0.006 145 / 0.82), oklch(95% 0.012 150 / 0.86)),
    var(--paper);
  box-shadow: var(--soft-shadow), inset 0 1px 0 oklch(100% 0.004 145 / 0.82);
}

.field-rule {
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 14px 14px 13px;
  border: 1px solid oklch(100% 0.004 145 / 0.78);
  border-radius: 8px;
  background: oklch(100% 0.004 145 / 0.72);
  overflow: hidden;
  animation: settle 620ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 50ms);
}

.field-rule::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent-2);
  content: "";
}

.field-rule-toilet::before {
  background: var(--accent);
}

.field-rule-signal::before {
  background: var(--warning);
}

.field-rule-closeout::before {
  background: var(--road);
}

.field-rule span {
  display: inline-grid;
  height: 28px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid oklch(22% 0.006 85 / 0.08);
  border-radius: 7px;
  background: oklch(97% 0.008 145);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
}

.field-rule p {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.prep-check-card {
  margin-bottom: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(99.6% 0.002 95), oklch(97.8% 0.006 145)),
    var(--paper);
}

.prep-check-card::after {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, oklch(42% 0.025 150 / 0.022) 23px 24px),
    repeating-linear-gradient(0deg, transparent 0 23px, oklch(42% 0.025 150 / 0.018) 23px 24px);
  content: "";
  opacity: 0.5;
  pointer-events: none;
}

.prep-check-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.prep-check-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid oklch(84% 0.016 150 / 0.9);
  border-radius: 8px;
  background: oklch(99.8% 0.002 95 / 0.9);
  box-shadow:
    0 10px 24px oklch(35% 0.012 120 / 0.045),
    inset 0 1px 0 oklch(100% 0.004 145 / 0.86);
  animation: settle 540ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.prep-check-item span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid oklch(100% 0.004 145 / 0.28);
  border-radius: 8px;
  background: var(--road);
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.prep-check-item p {
  margin: 0;
  color: oklch(25% 0.006 85);
  font-size: 0.88rem;
  font-weight: 730;
  line-height: 1.56;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.boarding-coordinate-card {
  margin-bottom: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(99% 0.004 88), oklch(95% 0.018 160)),
    var(--surface);
}

.boarding-coordinate-card.is-hidden {
  display: none;
}

.boarding-coordinate-card .section-heading {
  margin-bottom: 12px;
}

.boarding-coordinate-deck {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.boarding-coordinate {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid oklch(82% 0.024 155 / 0.86);
  border-radius: 8px;
  background: oklch(100% 0.004 145 / 0.74);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.9);
  animation: settle 540ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.boarding-coordinate-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.boarding-coordinate-meta span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--accent-2);
  color: oklch(98% 0.004 145);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.boarding-coordinate-arrival .boarding-coordinate-meta span {
  background: var(--road);
}

.boarding-coordinate-meta small {
  min-width: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: right;
}

.boarding-coordinate-body {
  display: grid;
  gap: 7px;
}

.boarding-coordinate-body strong {
  display: grid;
  gap: 2px;
  color: var(--ink);
  line-height: 1.22;
}

.boarding-coordinate-body code {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid oklch(82% 0.014 150);
  border-radius: 7px;
  background: oklch(96% 0.008 145);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.boarding-coordinate-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.boarding-coordinate-actions {
  margin-top: 4px;
}

.day-cockpit-card {
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, oklch(99% 0.006 145), oklch(95% 0.014 150)),
    var(--paper);
}

.day-cockpit-card .section-heading {
  margin-bottom: 12px;
}

.day-cockpit {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.08fr;
  gap: 10px;
}

.cockpit-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid oklch(86% 0.014 150 / 0.88);
  border-radius: 8px;
  background: oklch(100% 0.004 145 / 0.76);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.82);
  overflow: hidden;
  animation: riseIn 520ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.cockpit-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}

.cockpit-risk::before {
  background: var(--danger);
}

.cockpit-fallback::before {
  background: var(--road);
}

.cockpit-family::before {
  background: var(--weather);
}

.cockpit-card > span {
  display: grid;
  height: 34px;
  place-items: center;
  border: 1px solid oklch(22% 0.006 85 / 0.08);
  border-radius: 8px;
  background: oklch(24% 0.018 155);
  color: oklch(98% 0.004 145);
  font-size: 0.72rem;
  font-weight: 850;
}

.cockpit-card h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.cockpit-card p {
  display: -webkit-box;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 620;
  line-height: 1.48;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.action-line-card {
  margin-bottom: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(25% 0.02 155), oklch(18% 0.014 155)),
    var(--ink);
  color: oklch(96% 0.008 145);
}

.action-line-card::after {
  border-color: oklch(100% 0.004 145 / 0.12);
  opacity: 1;
}

.action-line-card .section-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: start;
  gap: 7px;
  color: inherit;
}

.action-line-card .kicker {
  width: fit-content;
  max-width: 100%;
  border-color: oklch(100% 0.004 145 / 0.22);
  background: oklch(100% 0.004 145 / 0.065);
  color: oklch(86% 0.016 145);
}

.action-line-card h2 {
  color: oklch(98% 0.004 145);
  font-size: clamp(1.38rem, 1.18rem + 0.45vw, 1.86rem);
  line-height: 1.05;
}

.action-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.action-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid oklch(100% 0.004 145 / 0.13);
  border-radius: 8px;
  background: oklch(100% 0.004 145 / 0.055);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.1);
  animation: riseIn 560ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.action-step > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 750;
}

.action-step-finish > span {
  background: var(--road);
}

.action-step small {
  display: block;
  margin-bottom: 7px;
  color: oklch(84% 0.014 145);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
}

.action-step h3 {
  margin-bottom: 7px;
  color: oklch(99% 0.004 145);
  font-size: 1rem;
  line-height: 1.18;
  text-wrap: pretty;
}

.action-step p {
  margin-bottom: 8px;
  color: oklch(85% 0.012 145);
  font-size: 0.86rem;
  line-height: 1.58;
}

.action-step em {
  display: block;
  color: oklch(77% 0.016 145);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.45;
}

.action-line-actions {
  margin-top: 10px;
}

.action-line-actions a,
.action-line-actions button {
  border-color: oklch(100% 0.004 145 / 0.16);
  background: oklch(100% 0.004 145 / 0.08);
  color: oklch(96% 0.006 145);
}

.action-line-actions a:hover,
.action-line-actions button:hover {
  background: oklch(100% 0.004 145 / 0.14);
}

.day-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.day-switcher-bottom {
  margin: 18px 0 0;
}

.day-switch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  min-width: 0;
  gap: 7px 12px;
  min-height: 112px;
  align-content: center;
  align-items: center;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.day-switch-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
  content: "";
}

.day-switch-card span {
  grid-column: 1;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.day-switch-card strong {
  display: block;
  grid-column: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.day-switch-card small {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.day-switch-card b {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(97% 0.002 85);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.day-switch-card[href]:hover,
.day-switch-card[href]:focus-visible {
  border-color: oklch(73% 0.14 17);
  box-shadow: 0 18px 34px oklch(24% 0.006 85 / 0.12);
  outline: 0;
  transform: translateY(-2px);
}

.day-switch-card[href]:hover b,
.day-switch-card[href]:focus-visible b {
  border-color: oklch(73% 0.14 17);
  background: oklch(97% 0.018 17);
  color: var(--accent);
}

.day-switch-prev::before {
  background: var(--road);
}

.day-switch-next::before {
  background: var(--danger);
}

.day-switch-overview {
  background: var(--paper);
}

.day-switch-overview::before {
  background: var(--accent-2);
}

.day-switch-card.is-disabled {
  border-style: dashed;
  background: oklch(95% 0.006 100 / 0.72);
  box-shadow: none;
  color: var(--muted);
}

.day-switch-card.is-disabled::before {
  background: oklch(72% 0.01 95);
}

.planner-tabs {
  --tab-fade-bg: oklch(98% 0.006 145 / 0.72);
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  padding: 7px;
  border: 1px solid oklch(100% 0.004 145 / 0.72);
  border-radius: 999px;
  background: oklch(98% 0.006 145 / 0.72);
  box-shadow: var(--soft-shadow), inset 0 1px 0 oklch(100% 0.004 145 / 0.8);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.planner-tabs::-webkit-scrollbar {
  display: none;
}

.planner-tabs a {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  scroll-snap-align: start;
  transition: background 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.planner-tabs a:first-child {
  background: var(--road);
  color: oklch(97% 0.006 145);
}

.planner-tabs a:hover {
  background: oklch(92% 0.014 150);
  transform: translateY(-1px);
}

.daily-section {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid oklch(100% 0.004 145 / 0.78);
  border-radius: 24px;
  background:
    linear-gradient(180deg, oklch(100% 0.004 100 / 0.9), oklch(94.5% 0.009 145 / 0.72)),
    var(--surface);
  box-shadow:
    0 24px 70px oklch(26% 0.012 140 / 0.08),
    inset 0 1px 0 oklch(100% 0 0 / 0.82);
  overflow: clip;
}

.daily-section::before {
  position: absolute;
  inset: 8px;
  border: 1px solid oklch(82% 0.012 145 / 0.42);
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

.daily-section > * {
  position: relative;
  z-index: 1;
}

.daily-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.daily-section-header .kicker {
  margin-bottom: 7px;
}

.daily-section-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 0.98;
  text-wrap: balance;
}

.daily-section-header > p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.55;
  text-align: right;
  text-wrap: pretty;
}

.daily-command-grid,
.execution-workspace-grid,
.field-strategy-grid,
.proof-locker-grid {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.daily-command-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.daily-command-primary,
.daily-command-secondary,
.execution-prelude,
.route-nav-column {
  display: grid;
  min-width: 0;
  gap: 14px;
  align-content: start;
}

.daily-command-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-command-secondary .day-cockpit-card,
.daily-command-secondary .execution-brief,
.daily-command-secondary .priority-card {
  grid-column: 1 / -1;
}

body[data-day-id] .road-card > .section-heading {
  display: grid;
  justify-content: start;
  align-items: start;
  gap: 7px;
  margin-bottom: 16px;
}

body[data-day-id] .road-card > .section-heading .kicker {
  width: max-content;
  margin: 0;
}

body[data-day-id] .road-card > .section-heading h2 {
  justify-self: start;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.25vw, 1.28rem);
  line-height: 1.12;
  text-align: left;
  text-wrap: balance;
}

body[data-day-id] .road-card,
body[data-day-id] .map-card {
  border-radius: 16px;
}

body[data-day-id] .road-card::before,
body[data-day-id] .map-card::before {
  inset: 6px;
  border-radius: 12px;
}

.daily-command .summary-strip,
.daily-command .field-rules,
.daily-command .prep-check-card,
.route-nav-column .route-rail,
.route-nav-column .boarding-coordinate-card,
.execution-prelude .action-line-card,
.execution-prelude .runbook-card {
  margin-bottom: 0;
}

.daily-command .summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-command .summary-family {
  grid-column: 1 / -1;
}

.daily-command .field-rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.priority-card .priority-list {
  gap: 10px;
}

.day-layout.route-nav-layout {
  grid-template-columns: 1fr;
  gap: 16px;
}

.route-nav-column {
  grid-template-rows: auto minmax(0, auto);
}

.side-panel.navigation-side {
  position: static;
  display: grid;
  max-height: none;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  grid-template-rows: none;
  align-items: stretch;
  overflow: visible;
}

.side-panel.navigation-side .map-card {
  display: grid;
  min-height: 0;
  grid-template-rows: auto 540px auto;
  overflow: hidden;
}

.side-panel.navigation-side #stops {
  display: grid;
  max-height: 640px;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.side-panel.navigation-side .road-map,
.side-panel.navigation-side .map-fallback {
  width: 100%;
  height: 540px;
  min-height: 0;
}

.execution-workspace-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.timeline-card {
  min-width: 0;
}

.field-strategy-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.field-strategy-column {
  display: grid;
  min-width: 0;
  gap: 14px;
  align-content: start;
}

.field-strategy-column-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-strategy .field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-locker-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.proof-locker .source-digest,
.proof-locker .booking-actions-card,
.proof-locker .source-checks {
  grid-column: 1;
}

.execution-command-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  background:
    linear-gradient(145deg, oklch(99.6% 0.004 95), oklch(96.8% 0.01 150)),
    var(--paper);
}

.execution-command,
.execution-command-hero,
.execution-command-panels,
.execution-command-panel,
.detail-drawer,
.detail-drawer > summary,
.timeline-detail-drawer,
.timeline-detail-drawer > summary,
.live-check-list,
.live-check-item,
.live-check-item > div {
  min-width: 0;
}

.execution-command {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.execution-command-hero {
  display: grid;
  grid-template-columns: minmax(120px, 0.18fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid oklch(82% 0.014 150 / 0.82);
  border-radius: 12px;
  background:
    linear-gradient(135deg, oklch(99.8% 0.003 95), oklch(95.8% 0.014 150)),
    var(--paper);
  box-shadow:
    0 18px 42px oklch(28% 0.018 155 / 0.08),
    inset 0 1px 0 oklch(100% 0.004 145 / 0.86);
}

.execution-command-start {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid oklch(100% 0.004 145 / 0.72);
  border-radius: 10px;
  background: var(--road);
  color: oklch(98% 0.004 145);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.12);
}

.execution-command-start span {
  color: oklch(88% 0.01 145);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.execution-command-start strong {
  color: inherit;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 0.92rem + 0.42vw, 1.32rem);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.execution-command-hero > p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 0.95rem + 0.38vw, 1.28rem);
  font-weight: 850;
  line-height: 1.36;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.execution-command-nav {
  min-height: 44px;
  margin: 0;
  white-space: nowrap;
}

.execution-command-panels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.execution-command-panel {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(99.2% 0.003 95 / 0.88);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.82);
}

.execution-command-panel > span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: oklch(92% 0.012 150);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.execution-command-panel p,
.execution-command-panel li {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.48;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.execution-command-panel p,
.execution-command-panel ul {
  margin: 0;
}

.execution-command-panel ul {
  display: grid;
  gap: 6px;
  padding-left: 16px;
}

.execution-command-must-keep {
  border-color: oklch(78% 0.03 158 / 0.9);
  background: oklch(98% 0.014 150 / 0.9);
}

.execution-command-must-keep > span {
  background: var(--accent-2);
  color: oklch(98% 0.004 145);
}

.execution-command-can-skip {
  background: oklch(98% 0.006 95 / 0.92);
}

.execution-command-can-skip > span {
  background: oklch(92% 0.022 78);
  color: oklch(42% 0.07 72);
}

.execution-command-late-30,
.execution-command-late-60 {
  background: oklch(98.3% 0.008 65 / 0.9);
}

.execution-command-late-30 > span,
.execution-command-late-60 > span {
  background: var(--warning);
  color: oklch(99% 0.004 95);
}

.execution-command-late-60 {
  border-color: oklch(78% 0.035 35 / 0.72);
}

.execution-command-late-60 > span {
  background: var(--danger);
}

.execution-command-child-anchor {
  background: oklch(98% 0.01 205 / 0.9);
}

.execution-command-child-anchor > span {
  background: oklch(48% 0.06 205);
  color: oklch(98% 0.004 145);
}

.detail-drawer {
  position: relative;
  z-index: 1;
  border-color: var(--line);
}

.detail-drawer > summary,
.timeline-detail-drawer > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
  transition:
    color 220ms var(--ease-out),
    background 220ms var(--ease-out),
    border-color 220ms var(--ease-out);
}

.detail-drawer > summary::-webkit-details-marker,
.timeline-detail-drawer > summary::-webkit-details-marker {
  display: none;
}

.detail-drawer > summary::after,
.timeline-detail-drawer > summary::after {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(99% 0.003 95);
  color: var(--ink);
  content: "+";
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 240ms var(--ease-heavy),
    background 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

.detail-drawer[open] > summary::after,
.timeline-detail-drawer[open] > summary::after {
  background: var(--road);
  color: oklch(98% 0.004 145);
  content: "-";
  transform: rotate(180deg);
}

.detail-drawer > summary:focus-visible,
.timeline-detail-drawer > summary:focus-visible {
  outline: 2px solid oklch(54% 0.09 166);
  outline-offset: 3px;
}

.detail-drawer > summary:hover::after,
.timeline-detail-drawer > summary:hover::after {
  background: oklch(94% 0.01 150);
}

.command-detail {
  padding: 10px;
  border: 1px solid oklch(86% 0.012 150);
  border-radius: 12px;
  background: oklch(98.2% 0.006 145 / 0.72);
}

.command-detail > summary {
  min-height: 48px;
  padding: 0 4px 0 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.command-detail[open] > summary {
  margin-bottom: 10px;
}

.command-detail .summary-strip,
.command-detail .field-rules,
.command-detail .prep-check-card,
.command-detail .action-line-card {
  position: relative;
  z-index: 1;
}

.road-card.detail-drawer > summary {
  min-height: 58px;
  margin: -4px -2px 0;
  padding: 6px 2px 14px;
  border-bottom: 1px solid transparent;
}

.road-card.detail-drawer[open] > summary {
  margin-bottom: 14px;
  border-bottom-color: var(--line);
}

.road-card.detail-drawer > summary .kicker {
  grid-column: 1;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 7px;
}

.road-card.detail-drawer > summary strong {
  display: block;
  grid-column: 1;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.25vw, 1.28rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* 移动端默认折叠抽屉：手机可点开合，桌面/平板保持全开的静态外观。 */
.road-card.js-mobile-collapse > summary {
  cursor: pointer;
  list-style: none;
}

.road-card.js-mobile-collapse > summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 761px) {
  .road-card.js-mobile-collapse > summary {
    cursor: default;
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  .road-card.js-mobile-collapse {
    position: relative;
  }

  .road-card.js-mobile-collapse > summary.section-heading {
    padding-right: 40px;
  }

  .road-card.js-mobile-collapse > summary.section-heading::after {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: oklch(99% 0.003 95);
    color: var(--ink);
    content: "+";
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1;
  }

  .road-card.js-mobile-collapse[open] > summary.section-heading::after {
    background: var(--road);
    color: oklch(98% 0.004 145);
    content: "-";
  }

  .road-card.js-mobile-collapse:not([open]) > summary.section-heading {
    margin-bottom: 0;
  }

  .js-mobile-collapse:not([open]) > :not(summary) {
    display: none;
  }
}

.timeline-command {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 8px 8px 0;
  background: oklch(96.8% 0.01 150 / 0.78);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.48;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.timeline-detail-drawer {
  margin-top: 8px;
  border: 1px solid oklch(88% 0.01 150);
  border-radius: 10px;
  background: oklch(99.2% 0.003 95 / 0.72);
  overflow: hidden;
}

.timeline-detail-drawer > summary {
  min-height: 44px;
  padding: 8px 10px 8px 12px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 850;
}

.timeline-detail-drawer[open] > summary {
  border-bottom: 1px solid var(--line);
  background: oklch(97.2% 0.008 145);
  color: var(--ink);
}

.timeline-detail-drawer > :not(summary) {
  margin-right: 12px;
  margin-left: 12px;
}

.timeline-detail-drawer > :last-child {
  margin-bottom: 12px;
}

.timeline-detail-drawer .timeline-actions {
  margin-top: 12px;
}

.live-check-card {
  overflow: hidden;
}

.live-check-card.is-hidden {
  display: none;
}

.live-check-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.live-check-item {
  display: grid;
  grid-template-columns: minmax(82px, 0.22fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-strong);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.82);
  animation: settle 520ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 42ms);
}

.live-check-item > span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: oklch(92% 0.012 150);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.live-check-weather > span {
  background: oklch(92% 0.022 82);
  color: oklch(43% 0.076 72);
}

.live-check-road > span,
.live-check-transport > span {
  background: oklch(91% 0.023 158);
  color: var(--accent-2);
}

.live-check-ferry > span,
.live-check-operator > span,
.live-check-booking > span {
  background: oklch(92% 0.016 205);
  color: oklch(42% 0.055 205);
}

.live-check-airport > span,
.live-check-official > span {
  background: oklch(92% 0.01 150);
  color: var(--road);
}

.live-check-item h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.live-check-item p,
.live-check-item em {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.48;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.live-check-item em {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-style: normal;
}

.live-check-item .text-link {
  min-height: 38px;
  align-items: center;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid oklch(82% 0.018 150);
  border-radius: 999px;
  background: oklch(98% 0.006 145);
  color: var(--accent);
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background 220ms var(--ease-out);
}

.live-check-item .text-link:hover {
  border-color: oklch(72% 0.05 166);
  background: oklch(95% 0.014 150);
  transform: translateY(-1px);
}

.route-rail {
  position: relative;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid oklch(100% 0.004 145 / 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, oklch(99% 0.006 145), oklch(95% 0.012 150));
  box-shadow: var(--surface-shadow), inset 0 1px 0 oklch(100% 0.004 145 / 0.8);
}

.route-rail::before {
  position: absolute;
  inset: 7px;
  border: 1px solid oklch(82% 0.014 150 / 0.62);
  border-radius: 7px;
  content: "";
  pointer-events: none;
}

.route-rail-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.route-rail-header .kicker {
  margin-bottom: 5px;
}

.route-rail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.route-rail-actions > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.route-plan-link,
.route-plan-note {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  padding: 0 11px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.route-plan-link {
  border: 1px solid oklch(74% 0.035 166 / 0.78);
  background: oklch(96% 0.012 150);
  color: var(--road);
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.route-plan-link:hover,
.route-plan-link:focus-visible {
  border-color: oklch(60% 0.055 166);
  background: oklch(93% 0.018 150);
  outline: 0;
  transform: translateY(-1px);
}

.route-plan-note {
  max-width: 210px;
  border: 1px dashed oklch(78% 0.012 95);
  color: var(--muted);
}

.route-chip-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 10px;
  overflow: visible;
}

.route-chip {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid oklch(84% 0.014 150);
  border-radius: 8px;
  background: oklch(98.5% 0.006 145);
  color: var(--ink);
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.route-chip:hover {
  border-color: oklch(64% 0.052 166);
  background: oklch(96% 0.012 150);
  transform: translateY(-2px);
}

.route-chip span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: span 3;
  place-items: center;
  border-radius: 50%;
  background: var(--road);
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 750;
}

.route-chip strong,
.route-chip em,
.route-chip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-chip strong {
  font-size: 0.82rem;
}

.route-chip em {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

.route-chip small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
}

.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, min(46vw, 620px));
  gap: 18px;
  align-items: start;
}

.content-column {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.side-panel {
  position: sticky;
  top: 80px;
  display: grid;
  max-height: calc(100dvh - 96px);
  min-width: 0;
  grid-template-rows: minmax(390px, 55%) minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.side-panel .map-card {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.side-panel .road-map,
.side-panel .map-fallback {
  height: 100%;
  min-height: 280px;
}

.side-panel #stops {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.side-panel #stops .section-heading {
  margin-bottom: 10px;
}

.side-panel .poi-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.side-panel .poi-list::-webkit-scrollbar {
  width: 7px;
}

.side-panel .poi-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: oklch(70% 0.018 150);
}

.road-card,
.map-card,
.status-tile,
.home-preview,
.day-row {
  position: relative;
  min-width: 0;
  border: 1px solid oklch(100% 0.004 145 / 0.72);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--surface-shadow), inset 0 1px 0 oklch(100% 0.004 145 / 0.8);
}

.road-card::before,
.map-card::before,
.status-tile::before,
.home-preview::before,
.day-row::before {
  position: absolute;
  inset: 7px;
  border: 1px solid oklch(82% 0.014 150 / 0.62);
  border-radius: 7px;
  content: "";
  pointer-events: none;
}

.road-card {
  padding: 22px;
}

.road-card.action-line-card {
  background:
    linear-gradient(135deg, oklch(25% 0.02 155), oklch(18% 0.014 155)),
    var(--ink);
  color: oklch(96% 0.008 145);
}

.road-card.action-line-card::before {
  border-color: oklch(100% 0.004 145 / 0.12);
}

.compact-card {
  padding: 18px;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-heading .kicker {
  margin-bottom: 5px;
}

.priority-list,
.ops-grid,
.plan-stack,
.poi-list {
  position: relative;
  z-index: 1;
  display: grid;
}

.priority-list,
.plan-stack,
.poi-list {
  gap: 0;
}

.priority-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid oklch(86% 0.012 150);
  animation: settle 580ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 60ms);
}

.priority-item:first-child {
  border-top: 0;
  padding-top: 4px;
}

.priority-rank {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 750;
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.18);
}

.priority-s .priority-rank {
  background: var(--danger);
}

.priority-a .priority-rank {
  background: var(--accent);
}

.priority-b .priority-rank {
  background: var(--accent-2);
}

.priority-item p,
.ops-item p,
.execution-card p,
.booking-action p,
.field-card p,
.weather-plan p,
.status-tile p,
.home-preview p {
  margin-bottom: 0;
  color: var(--muted);
}

.execution-brief {
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(98.5% 0.006 150), oklch(96.5% 0.012 95)),
    var(--surface);
}

.execution-brief::after {
  opacity: 0.42;
}

.execution-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.execution-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid oklch(84% 0.016 150);
  border-radius: 8px;
  background: oklch(99% 0.003 95 / 0.82);
  box-shadow: 0 14px 30px oklch(58% 0.04 145 / 0.08);
  animation: settle 540ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.execution-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: oklch(98% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.05;
  text-align: center;
}

.execution-card:nth-child(2) > span {
  background: var(--accent);
}

.execution-card:nth-child(3) > span {
  background: var(--road);
}

.execution-card:nth-child(4) > span {
  background: var(--danger);
}

.execution-card h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.15;
  text-wrap: pretty;
}

.execution-card p {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.58;
  text-wrap: pretty;
}

.booking-actions-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(98% 0.009 150), oklch(97.8% 0.006 60)),
    var(--paper);
}

.booking-actions-card.is-hidden {
  display: none;
}

.booking-actions-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.booking-action {
  display: grid;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 15px;
  border: 1px solid oklch(82% 0.018 135);
  border-radius: 8px;
  background: oklch(99% 0.004 95 / 0.9);
  box-shadow: 0 14px 30px oklch(58% 0.04 145 / 0.08);
  animation: settle 560ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.booking-action-label {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 8px;
}

.booking-action-label span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-2);
  color: oklch(98% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.booking-action-label small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.booking-action-body {
  min-width: 0;
}

.booking-action h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.16;
  text-wrap: pretty;
}

.booking-action p,
.booking-action em {
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.booking-action em {
  display: block;
  margin-top: 9px;
  color: var(--accent-2);
  font-style: normal;
}

.booking-check-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.booking-poi {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid oklch(84% 0.014 150);
  border-radius: 8px;
  background: oklch(96.5% 0.006 145 / 0.72);
}

.booking-poi strong {
  display: grid;
  gap: 2px;
}

.booking-poi small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.booking-actions-links {
  margin-top: 12px;
}

.source-digest {
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(97% 0.013 150), oklch(98.5% 0.006 95)),
    var(--paper);
}

.source-digest-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.source-digest-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid oklch(82% 0.016 150);
  border-radius: 8px;
  background: oklch(99% 0.004 145 / 0.88);
  box-shadow: 0 14px 30px oklch(58% 0.04 145 / 0.07);
  animation: settle 560ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.source-digest-overview {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.source-digest-stat {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 14px;
  border: 1px solid oklch(28% 0.014 155 / 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, oklch(24% 0.018 155), oklch(18% 0.012 155)),
    var(--ink);
  color: oklch(96% 0.006 145);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.12);
  animation: riseIn 520ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.source-digest-stat span {
  color: oklch(76% 0.018 145);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.source-digest-stat strong {
  color: oklch(98% 0.004 145);
  font-size: 0.98rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.source-digest-stat p {
  margin: 0;
  color: oklch(83% 0.012 145);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.48;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.source-digest-card > span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: oklch(98% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
}

.source-digest-card h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.18;
  text-wrap: pretty;
}

.source-digest-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
  text-wrap: pretty;
}

.source-digest-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.source-digest-card .text-link {
  margin-top: 12px;
}

.source-digest-empty > span {
  background: var(--danger);
}

.runbook-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(98.8% 0.005 95), oklch(96.2% 0.012 150)),
    var(--paper);
}

.runbook-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.runbook-phase {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid oklch(82% 0.014 150);
  border-radius: 8px;
  background: oklch(99% 0.004 85 / 0.88);
  box-shadow: 0 14px 30px oklch(58% 0.04 145 / 0.07);
  animation: settle 560ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.runbook-phase > span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: oklch(98% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 750;
}

.runbook-phase:nth-child(2) > span {
  background: var(--accent);
}

.runbook-phase:nth-child(3) > span {
  background: var(--accent-2);
}

.runbook-phase:nth-child(4) > span {
  background: var(--warning);
}

.runbook-phase h3 {
  margin-bottom: 9px;
  font-size: 0.98rem;
  line-height: 1.16;
  text-wrap: pretty;
}

.runbook-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runbook-list li {
  position: relative;
  min-width: 0;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.52;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.runbook-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.field-guide {
  overflow: hidden;
}

.field-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-width: 0;
  gap: 14px;
  padding: 15px;
  border: 1px solid oklch(84% 0.014 150);
  border-radius: 8px;
  background: oklch(98.4% 0.004 95);
  animation: settle 560ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 50ms);
}

.field-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: oklch(91% 0.014 150);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.field-card:nth-child(2) > span {
  color: var(--road);
}

.field-card:nth-child(3) > span {
  color: var(--accent-2);
}

.field-card:nth-child(4) > span {
  color: var(--danger);
}

.field-card-body {
  min-width: 0;
}

.field-card h3 {
  margin-bottom: 7px;
  font-size: 1rem;
  line-height: 1.16;
  text-wrap: pretty;
}

.field-card p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.58;
  text-wrap: pretty;
}

.field-card em {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
}

.field-poi {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 8px;
  background: oklch(94.5% 0.012 150);
}

.field-poi strong {
  display: grid;
  gap: 1px;
}

.field-poi .poi-name-zh {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.field-poi .poi-name-en,
.field-poi small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
}

.source-checks {
  overflow: hidden;
}

.source-check-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.source-check {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: oklch(98% 0.004 85);
  animation: settle 520ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.source-meta span,
.source-meta time {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: oklch(90% 0.012 150 / 0.72);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 750;
}

.source-meta time {
  background: oklch(95% 0.008 85);
}

.source-check h3 {
  margin-bottom: 7px;
}

.source-check p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.source-verify-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.source-verify-list li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.46;
}

.source-verify-list li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.source-check-empty {
  border-style: dashed;
  background: oklch(97% 0.004 85);
}

body[data-day-id] .road-card,
body[data-day-id] .map-card,
body[data-day-id] .field-rules,
body[data-day-id] .prep-check-card,
body[data-day-id] .boarding-coordinate-card,
body[data-day-id] .day-cockpit-card,
body[data-day-id] .execution-brief,
body[data-day-id] .booking-actions-card,
body[data-day-id] .source-digest,
body[data-day-id] .runbook-card,
body[data-day-id] .field-guide,
body[data-day-id] .source-checks {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

body[data-day-id] .road-card::before,
body[data-day-id] .map-card::before,
body[data-day-id] .field-rules::after,
body[data-day-id] .prep-check-card::after,
body[data-day-id] .execution-brief::after,
body[data-day-id] .booking-actions-card::after,
body[data-day-id] .source-digest::after,
body[data-day-id] .runbook-card::after {
  border-color: oklch(90% 0.003 85);
  opacity: 0.22;
}

body[data-day-id] .field-rule,
body[data-day-id] .prep-check-item,
body[data-day-id] .boarding-coordinate,
body[data-day-id] .cockpit-card,
body[data-day-id] .execution-card,
body[data-day-id] .booking-action,
body[data-day-id] .source-digest-card,
body[data-day-id] .runbook-phase,
body[data-day-id] .field-card,
body[data-day-id] .source-check,
body[data-day-id] .weather-plan,
body[data-day-id] .ops-item,
body[data-day-id] .priority-item {
  border-color: var(--line);
  background: var(--paper-strong);
  box-shadow: none;
}

body[data-day-id] .field-rule span,
body[data-day-id] .prep-check-item span,
body[data-day-id] .boarding-coordinate-role,
body[data-day-id] .field-card > span,
body[data-day-id] .field-poi,
body[data-day-id] .booking-poi,
body[data-day-id] .source-meta span,
body[data-day-id] .source-meta time {
  border-color: var(--line);
  background: oklch(96% 0.002 85);
}

body[data-day-id] .field-card > span,
body[data-day-id] .source-meta span,
body[data-day-id] .source-meta time {
  color: var(--muted);
}

body[data-day-id] .booking-action-label span,
body[data-day-id] .source-digest-card > span,
body[data-day-id] .runbook-phase:nth-child(2) > span,
body[data-day-id] .runbook-phase:nth-child(3) > span,
body[data-day-id] .runbook-phase:nth-child(4) > span {
  background: var(--accent);
  color: oklch(98% 0.006 85);
}

body[data-day-id] .booking-action em,
body[data-day-id] .field-card em {
  color: var(--accent);
}

body[data-day-id] .prep-check-card {
  background:
    linear-gradient(135deg, oklch(99.8% 0.002 88), oklch(97.8% 0.006 150)),
    var(--paper);
}

body[data-day-id] .prep-check-card::after {
  border-color: oklch(80% 0.012 150 / 0.24);
  opacity: 0.2;
}

body[data-day-id] .prep-check-card .kicker {
  border-color: oklch(70% 0.012 150 / 0.7);
  background: oklch(100% 0.002 95 / 0.86);
  color: oklch(32% 0.008 105);
}

body[data-day-id] .prep-check-item {
  border-color: oklch(78% 0.012 150);
  background: oklch(99.8% 0.002 92);
  box-shadow:
    0 10px 24px oklch(35% 0.012 120 / 0.05),
    inset 0 1px 0 oklch(100% 0 0 / 0.92);
}

body[data-day-id] .prep-check-item span {
  border-color: oklch(20% 0.012 150);
  background: oklch(20% 0.014 150);
  color: oklch(98% 0.004 95);
  box-shadow: 0 7px 14px oklch(28% 0.025 145 / 0.16);
}

body[data-day-id] .prep-check-item p {
  color: oklch(25% 0.006 85);
  font-size: 0.88rem;
  font-weight: 730;
  line-height: 1.56;
}

body[data-day-id] .road-card.action-line-card {
  border-color: oklch(36% 0.025 155);
  background:
    linear-gradient(135deg, oklch(24% 0.024 155), oklch(16% 0.014 155)),
    var(--ink);
  color: oklch(97% 0.006 145);
  box-shadow: 0 22px 48px oklch(18% 0.02 145 / 0.22);
}

body[data-day-id] .road-card.action-line-card::before {
  border-color: oklch(100% 0.004 145 / 0.16);
  opacity: 1;
}

body[data-day-id] .action-line-card::after {
  border-color: oklch(100% 0.004 145 / 0.13);
  opacity: 1;
}

body[data-day-id] .action-line-card .section-heading,
body[data-day-id] .action-line-card h2 {
  color: oklch(98% 0.004 145);
}

body[data-day-id] .road-card.action-line-card > .section-heading h2 {
  color: oklch(98% 0.004 145);
}

body[data-day-id] .action-line-card .kicker {
  border-color: oklch(100% 0.004 145 / 0.24);
  background: oklch(100% 0.004 145 / 0.07);
  color: oklch(88% 0.014 145);
}

body[data-day-id] .action-step {
  border-color: oklch(100% 0.004 145 / 0.16);
  background: oklch(100% 0.004 145 / 0.07);
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.12);
}

body[data-day-id] .action-step > span {
  border-color: oklch(100% 0.004 145 / 0.2);
  background: oklch(58% 0.115 24);
  color: white;
}

body[data-day-id] .action-step-finish > span {
  background: oklch(37% 0.055 150);
}

body[data-day-id] .action-step small {
  color: oklch(84% 0.012 145);
}

body[data-day-id] .action-step h3 {
  color: oklch(99% 0.004 145);
}

body[data-day-id] .action-step p {
  color: oklch(91% 0.008 145);
}

body[data-day-id] .action-step em {
  color: oklch(80% 0.012 145);
}

body[data-day-id] .action-line-actions a,
body[data-day-id] .action-line-actions button {
  border-color: oklch(100% 0.004 145 / 0.2);
  background: oklch(100% 0.004 145 / 0.09);
  color: oklch(98% 0.004 145);
}

body[data-day-id] .action-line-actions a:hover,
body[data-day-id] .action-line-actions button:hover {
  background: oklch(100% 0.004 145 / 0.15);
}

.text-link,
.priority-item a {
  display: inline-flex;
  margin-top: 9px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.timeline::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 44px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, oklch(62% 0.05 166), transparent);
  content: "";
}

.timeline-stop {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  animation: settle 600ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.time-block {
  position: sticky;
  top: 88px;
  z-index: 1;
  display: grid;
  min-height: 62px;
  place-items: center;
  padding: 9px;
  border: 1px solid oklch(100% 0.004 145 / 0.64);
  border-radius: 8px;
  background: linear-gradient(180deg, oklch(96% 0.012 150), oklch(91% 0.018 150));
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.8);
  text-align: center;
}

.time-block strong,
.time-block span {
  display: block;
}

.time-block strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 750;
}

.time-block span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.stop-body {
  padding: 16px 0;
  border-top: 1px solid oklch(86% 0.012 150);
}

.timeline-stop:first-child .stop-body {
  padding-top: 4px;
  border-top: 0;
}

.stop-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.timeline-location {
  display: grid;
  gap: 1px;
  margin: -2px 0 10px;
}

.timeline-coordinate {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 750;
}

.boarding-details {
  display: grid;
  gap: 8px;
  margin: 12px 0 12px;
}

.boarding-point {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid oklch(78% 0.034 166 / 0.8);
  border-radius: 8px;
  background:
    linear-gradient(135deg, oklch(96% 0.014 166), oklch(99% 0.004 85)),
    var(--paper);
}

.boarding-point > span {
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-2);
  color: oklch(98% 0.004 145);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 24px;
}

.boarding-point strong {
  display: grid;
  gap: 2px;
}

.boarding-point small {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 750;
}

.boarding-point p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.timeline-media {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.timeline-media-header {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.timeline-media-header span,
.timeline-media-header small {
  display: inline-flex;
  align-items: center;
}

.timeline-media-header span {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid oklch(82% 0.024 166);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
}

.timeline-media-header small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.timeline-media-single {
  grid-template-columns: minmax(0, 1fr);
}

.timeline-media-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid oklch(100% 0.004 145 / 0.74);
  border-radius: 8px;
  background: oklch(89% 0.014 150);
  box-shadow: 0 16px 34px oklch(22% 0.018 160 / 0.1), inset 0 1px 0 oklch(100% 0.004 145 / 0.22);
  cursor: zoom-in;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 520ms var(--ease-heavy), box-shadow 520ms var(--ease-heavy), filter 520ms var(--ease-heavy);
}

.timeline-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(15% 0.018 160 / 0.78), oklch(15% 0.018 160 / 0.08) 58%, transparent);
  content: "";
  pointer-events: none;
}

.timeline-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms var(--ease-heavy), filter 700ms var(--ease-heavy);
}

.timeline-photo:hover {
  box-shadow: 0 22px 44px oklch(22% 0.018 160 / 0.16), inset 0 1px 0 oklch(100% 0.004 145 / 0.24);
  transform: translateY(-2px);
}

.timeline-photo:hover img {
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.045);
}

.timeline-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  color: oklch(97% 0.006 145);
}

.timeline-photo figcaption span,
.timeline-photo figcaption strong,
.timeline-photo figcaption small,
.timeline-photo-credit {
  display: block;
  min-width: 0;
}

.timeline-photo figcaption span {
  margin-bottom: 5px;
  color: oklch(95% 0.008 145 / 0.76);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.timeline-photo figcaption strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-photo figcaption small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: oklch(95% 0.008 145 / 0.84);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-photo-credit {
  margin-top: 4px;
  overflow: hidden;
  color: oklch(95% 0.008 145 / 0.66);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poi-name-zh,
.poi-name-en {
  display: block;
}

.poi-name-zh {
  color: var(--ink);
  font-weight: 850;
}

.poi-name-en {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.stop-number {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--road);
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 750;
}

.type-pill,
.priority-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 750;
}

.type-pill {
  background: oklch(91% 0.025 166);
  color: var(--accent);
}

.priority-pill {
  background: oklch(92% 0.025 62);
  color: oklch(42% 0.085 62);
}

.stop-execution {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.stop-execution-card {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid oklch(86% 0.012 150);
  border-radius: 8px;
  background: oklch(96.5% 0.01 150);
  color: var(--ink-soft);
}

.stop-execution-card > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
}

.stop-execution-card p,
.stop-execution-list {
  margin: 0;
}

.stop-execution-list {
  display: grid;
  gap: 6px;
  padding-left: 17px;
}

.stop-execution-list li {
  padding-left: 1px;
  font-size: 0.87rem;
  font-weight: 650;
  line-height: 1.5;
}

.stop-execution-card p {
  font-size: 0.87rem;
  font-weight: 650;
  line-height: 1.48;
}

.stop-execution-next {
  border-color: oklch(84% 0.03 208);
  background: oklch(95% 0.018 208);
  color: oklch(38% 0.05 208);
}

.stop-execution-next > span {
  color: oklch(38% 0.05 208);
}

.timeline-handoff {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid oklch(82% 0.018 150);
  border-radius: 8px;
  background:
    linear-gradient(135deg, oklch(96% 0.016 156), oklch(98% 0.008 145)),
    var(--paper);
  color: var(--ink-soft);
  box-shadow: inset 3px 0 0 oklch(54% 0.075 158);
}

.timeline-handoff > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 850;
}

.timeline-handoff strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.28;
}

.timeline-handoff p {
  max-width: 68ch;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.52;
}

.timeline-handoff small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
}

.timeline-handoff-final {
  border-color: oklch(84% 0.024 62);
  background:
    linear-gradient(135deg, oklch(97% 0.015 72), oklch(98% 0.008 145)),
    var(--paper);
  box-shadow: inset 3px 0 0 oklch(63% 0.112 44);
}

.handoff-actions {
  margin-top: 2px;
}

.timeline-actions,
.popup-actions,
.poi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.timeline-actions a,
.timeline-actions button,
.popup-actions a,
.popup-actions button,
.poi-actions a,
.poi-actions button {
  display: inline-flex;
  min-width: 40px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid oklch(82% 0.014 150);
  border-radius: 999px;
  background: oklch(98% 0.006 145);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}

.timeline-actions a:hover,
.timeline-actions button:hover,
.popup-actions a:hover,
.popup-actions button:hover,
.poi-actions a:hover,
.poi-actions button:hover {
  background: oklch(94% 0.012 150);
  transform: translateY(-1px);
}

.copy-fallback {
  display: grid;
  flex: 1 0 100%;
  gap: 7px;
  max-width: 100%;
  margin-top: 2px;
  padding: 10px;
  border: 1px solid oklch(80% 0.024 95);
  border-radius: 8px;
  background:
    linear-gradient(135deg, oklch(98% 0.012 95), oklch(96% 0.012 150)),
    var(--paper);
}

.copy-fallback strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.copy-fallback textarea {
  width: 100%;
  min-height: 58px;
  max-height: 180px;
  padding: 9px;
  border: 1px solid oklch(83% 0.012 150);
  border-radius: 7px;
  background: oklch(99% 0.004 85);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  resize: vertical;
}

.ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.ops-item {
  padding: 15px 0;
  border-top: 1px solid oklch(86% 0.012 150);
  animation: settle 560ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.ops-item:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 4px;
}

.ops-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.weather-plan {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid oklch(86% 0.012 150);
  animation: settle 560ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 65ms);
}

.weather-plan:first-child {
  border-top: 0;
  padding-top: 4px;
}

.weather-plan > span {
  display: grid;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--road);
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
}

.map-card {
  overflow: hidden;
}

.map-card::before {
  z-index: 2;
}

.map-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 13px;
}

.map-header h2 {
  margin: 0;
}

.map-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: oklch(91% 0.024 166);
  color: var(--accent);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 750;
}

.road-map {
  width: 100%;
  max-width: 100%;
  height: clamp(520px, 62dvh, 720px);
  border-top: 1px solid oklch(84% 0.014 150);
  border-bottom: 1px solid oklch(84% 0.014 150);
  background: oklch(88% 0.018 150);
  overflow: hidden;
  contain: paint;
}

.road-map.is-hidden {
  display: none;
}

.map-fallback {
  display: none;
  width: 100%;
  height: clamp(520px, 62dvh, 720px);
  object-fit: contain;
  padding: 10px;
  border-top: 1px solid oklch(84% 0.014 150);
  border-bottom: 1px solid oklch(84% 0.014 150);
  background:
    linear-gradient(135deg, oklch(98% 0.006 145), oklch(94% 0.012 150)),
    var(--paper);
}

.map-fallback.is-visible {
  display: block;
}

.map-legend {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 18px 18px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.road-marker {
  position: relative;
  width: 0 !important;
  height: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-weight: 750;
  white-space: nowrap;
}

.road-marker .marker-index {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid oklch(100% 0.004 145 / 0.82);
  border-radius: 50%;
  box-shadow: 0 8px 18px oklch(20% 0.02 160 / 0.25), inset 0 1px 0 oklch(100% 0.004 145 / 0.18);
  font-size: 0.74rem;
}

.road-marker .marker-label {
  position: absolute;
  top: -22px;
  left: 21px;
  z-index: 1;
  display: grid;
  width: 148px;
  min-width: 0;
  gap: 0;
  padding: 7px 10px 7px 13px;
  border: 1px solid oklch(100% 0.004 145 / 0.68);
  border-radius: 8px;
  box-shadow: 0 10px 20px oklch(20% 0.02 160 / 0.2), inset 0 1px 0 oklch(100% 0.004 145 / 0.16);
  font-family: var(--font-ui);
  font-weight: 800;
  line-height: 1.08;
}

.road-marker .marker-label::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: oklch(100% 0.004 145 / 0.7);
  box-shadow: 0 1px 4px oklch(20% 0.02 160 / 0.18);
  content: "";
  transform: translateY(-50%);
}

.road-marker .marker-label strong,
.road-marker .marker-label em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.road-marker .marker-label strong {
  font-size: 0.72rem;
}

.road-marker .marker-label em {
  color: oklch(97% 0.006 145 / 0.76);
  font-size: 0.6rem;
  font-style: normal;
}

.road-marker.marker-left .marker-label {
  right: 21px;
  left: auto;
  text-align: right;
}

.road-marker.marker-left .marker-label::before {
  right: -13px;
  left: auto;
}

.marker-stop-2 .marker-label {
  top: 12px;
}

.marker-stop-3 .marker-label {
  top: -38px;
}

.marker-stop-4 .marker-label {
  right: 21px;
  left: auto;
  top: 14px;
  text-align: right;
}

.marker-stop-4 .marker-label::before {
  right: -13px;
  left: auto;
}

.marker-stop-5 .marker-label {
  top: 4px;
}

.marker-stop-6 .marker-label {
  top: -34px;
}

.marker-stop-7 .marker-label {
  top: -35px;
}

.marker-stop-6 .marker-index {
  top: -18px;
}

.marker-stop-7 .marker-index {
  top: 18px;
}

.marker-stop-6::before,
.marker-stop-7::before {
  position: absolute;
  left: 0;
  z-index: 0;
  width: 2px;
  border-radius: 999px;
  background: oklch(22% 0.018 160 / 0.5);
  content: "";
  transform: translateX(-50%);
}

.marker-stop-6::before {
  top: -18px;
  height: 18px;
}

.marker-stop-7::before {
  top: 0;
  height: 18px;
}

.marker-stop-6::after,
.marker-stop-7::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper-strong);
  box-shadow: 0 0 0 2px oklch(22% 0.018 160 / 0.48);
  content: "";
  transform: translate(-50%, -50%);
}

.marker-fuel,
.marker-cruise {
  background: var(--danger);
}

.marker-view {
  background: var(--accent-2);
}

.marker-walk {
  background: var(--accent);
}

.marker-rest {
  background: var(--warning);
}

.marker-road {
  background: var(--road);
}

.marker-fuel .marker-index,
.marker-fuel .marker-label,
.marker-cruise .marker-index,
.marker-cruise .marker-label {
  background: var(--danger);
}

.marker-view .marker-index,
.marker-view .marker-label {
  background: var(--accent-2);
}

.marker-walk .marker-index,
.marker-walk .marker-label {
  background: var(--accent);
}

.marker-rest .marker-index,
.marker-rest .marker-label {
  background: var(--warning);
}

.marker-road .marker-index,
.marker-road .marker-label {
  background: var(--road);
}

.leaflet-container {
  font-family: var(--font-ui);
  max-width: 100%;
  overflow: hidden !important;
  contain: paint;
}

.leaflet-control-layers,
.leaflet-bar a {
  border-color: oklch(82% 0.014 150) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border: 1px solid oklch(100% 0.004 145 / 0.7);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 18px 42px oklch(20% 0.02 160 / 0.18);
}

.marker-popup h3 {
  margin: 0 0 8px;
}

.marker-popup h3 strong,
.marker-popup h3 em {
  display: block;
}

.marker-popup h3 em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.marker-popup p {
  margin-bottom: 8px;
}

.popup-type {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 750;
  text-transform: uppercase;
}

.marker-popup dl {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.marker-popup dl div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
}

.marker-popup dt {
  color: var(--muted);
  font-weight: 800;
}

.marker-popup dd {
  margin: 0;
}

.home-shell {
  padding-top: 32px;
}

.trip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.trip-hero-copy,
.trip-hero-card,
.stay-card,
.day-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.trip-hero-copy {
  display: grid;
  align-content: end;
  min-height: 430px;
  padding: 34px;
  overflow: hidden;
}

.trip-hero-copy::after {
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: min(34vw, 420px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  content: "";
  opacity: 0.46;
}

.trip-hero-copy h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: 4.8rem;
  line-height: 0.95;
  text-wrap: balance;
}

.home-page .trip-hero-copy .lede {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trip-hero-card {
  display: grid;
  grid-template-rows: 320px auto;
  overflow: hidden;
}

.trip-hero-card figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.trip-hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-hero-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 8px;
  border-radius: 999px;
  background: oklch(22% 0.006 85 / 0.58);
  color: oklch(100% 0 0 / 0.78);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-hero-card > div {
  padding: 22px;
}

.trip-hero-card span,
.stay-card span,
.day-card-date,
.day-card-meta span,
.section-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trip-hero-card strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.18rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.trip-hero-card p {
  margin: 0;
  color: var(--muted);
}

.day-jump-card {
  position: relative;
  min-width: 0;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, oklch(99.2% 0.004 85), oklch(95.5% 0.011 150)),
    var(--paper);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.day-jump-card::after {
  position: absolute;
  inset: 7px;
  border: 1px solid oklch(82% 0.014 150 / 0.52);
  border-radius: 7px;
  content: "";
  pointer-events: none;
}

.day-jump-card .section-heading,
.day-jump-strip {
  position: relative;
  z-index: 1;
}

.day-jump-card .section-heading {
  margin-bottom: 12px;
}

.day-jump-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.day-jump-link {
  display: grid;
  min-width: 0;
  min-height: 82px;
  align-content: start;
  gap: 5px;
  padding: 12px;
  border: 1px solid oklch(83% 0.014 150 / 0.88);
  border-radius: 8px;
  background: oklch(100% 0.004 145 / 0.76);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 1px 0 oklch(100% 0.004 145 / 0.86);
  animation: settle 420ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 20ms);
  transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.day-jump-link:hover {
  border-color: var(--accent);
  background: oklch(99% 0.012 17);
  box-shadow: 0 14px 30px oklch(63% 0.12 17 / 0.12), inset 0 1px 0 oklch(100% 0.004 145 / 0.86);
  transform: translateY(-2px);
}

.day-jump-link:active {
  transform: translateY(0) scale(0.985);
}

.day-jump-link span {
  display: inline-grid;
  width: fit-content;
  min-height: 25px;
  place-items: center;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--road);
  color: oklch(98% 0.004 145);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
}

.day-jump-link strong {
  display: -webkit-box;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.22;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.day-jump-link small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.28;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Consolidated trip-overview card: key stats + south-to-north route legs in one shell. */
.overview-dashboard {
  display: grid;
  gap: 18px;
  margin: 0 0 22px;
}

.overview-dashboard > .section-heading {
  margin-bottom: 0;
}

.overview-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  overflow: hidden;
}

.overview-stat {
  min-width: 0;
  padding: 15px 16px;
  background: var(--paper);
  animation: settle 480ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 40ms);
}

.overview-stat span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.overview-stat strong {
  display: block;
  margin: 9px 0 5px;
  font-size: 1.3rem;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.overview-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
}

.overview-narrative {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.overview-narrative .route-narrative-card {
  min-height: 148px;
  padding: 14px 14px 14px 34px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.overview-narrative .route-narrative-card::before {
  top: 16px;
  left: 12px;
}

.overview-narrative .route-narrative-card::after {
  display: none;
}

.overview-narrative .route-narrative-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.planner-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 42vw);
  gap: 20px;
  align-items: start;
  margin: 0 0 24px;
}

.planner-itinerary {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.planner-map-panel {
  position: sticky;
  top: 96px;
  min-width: 0;
  align-self: start;
}

.planner-map-panel .overview-map-card {
  display: grid;
  height: min(760px, calc(100dvh - 96px));
  min-height: 620px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.planner-map-panel .road-map,
.planner-map-panel .map-fallback {
  height: 100%;
  min-height: 0;
}

.overview-map-card {
  overflow: hidden;
}

.overview-map {
  height: clamp(520px, 68dvh, 760px);
}

.route-narrative-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 12px 12px 12px 42px;
  border-radius: 8px;
  background: oklch(97.5% 0.004 85);
  animation: settle 480ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 45ms);
}

.route-narrative-card::before {
  position: absolute;
  top: 16px;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--road);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
}

.route-narrative-card::after {
  position: absolute;
  top: 30px;
  bottom: -11px;
  left: 20px;
  width: 2px;
  background: var(--line-strong);
  content: "";
}

.route-narrative-card:last-child::after {
  display: none;
}

.route-narrative-card span,
.route-narrative-card small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.route-narrative-card strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.22;
}

.route-narrative-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.5;
}

.route-narrative-card small {
  color: var(--accent);
}

.route-narrative-south-island::before {
  background: var(--accent);
}

.route-narrative-cook-strait::before {
  background: var(--warning);
}

.route-narrative-north-island::before {
  background: var(--road);
}

@media (min-width: 981px) {
  .route-narrative-card {
    gap: 4px;
    padding: 10px 10px 10px 36px;
  }

  .route-narrative-card::before {
    top: 14px;
    left: 12px;
  }

  .route-narrative-card::after {
    top: 28px;
    left: 18px;
  }

  .route-narrative-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.stay-section,
.itinerary-section {
  margin-top: 20px;
}

.planner-itinerary .itinerary-section {
  margin-top: 4px;
}

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

.stay-card {
  padding: 18px;
  animation: settle 520ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 38ms);
}

.stay-card strong,
.stay-card small {
  display: block;
}

.stay-card strong {
  margin-top: 13px;
  font-size: 1.08rem;
}

.stay-card small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 650;
}

.stay-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.itinerary-grid {
  display: grid;
  gap: 10px;
}

.day-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(150px, auto);
  gap: 16px;
  align-items: center;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  animation: settle 520ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 25ms);
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.day-card.is-ready {
  border-color: oklch(78% 0.11 17);
}

.day-card.is-ready:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 42px oklch(63% 0.12 17 / 0.13);
  transform: translateY(-2px);
}

.day-card-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--road);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 750;
}

.day-card.is-ready .day-card-number {
  background: var(--accent);
}

.day-card-main h3 {
  margin: 5px 0 2px;
  font-size: 1.05rem;
}

.day-card-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.day-card-base {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.day-card-base small {
  color: var(--muted);
  font-size: inherit;
  font-weight: 650;
}

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

.day-card-tags em {
  padding: 5px 8px;
  border-radius: 999px;
  background: oklch(96% 0.004 85);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
}

.day-card-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.day-card-legs {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid oklch(88% 0.009 150);
}

.day-card-legs > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.day-leg {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 3px 9px;
  align-items: start;
}

.day-leg b {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: oklch(96% 0.004 85);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.day-leg strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
}

.day-leg small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.45;
}

.day-card-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.day-card-meta strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.day-card-meta b {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: oklch(96% 0.004 85);
  color: var(--muted);
  font-size: 0.72rem;
}

.day-card.is-ready .day-card-meta b {
  background: oklch(96% 0.032 17);
  color: var(--accent);
}

.overview-marker {
  position: relative;
  width: 0 !important;
  height: 0 !important;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-ui);
  white-space: nowrap;
}

.overview-marker > span {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  min-width: 38px;
  height: 28px;
  place-items: center;
  padding: 0 8px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--road);
  box-shadow: 0 10px 20px oklch(22% 0.006 85 / 0.22);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 750;
  transform: translate(-50%, -50%);
}

.overview-marker b {
  position: absolute;
  top: -18px;
  left: 28px;
  z-index: 1;
  display: grid;
  width: 126px;
  gap: 0;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 12px 26px oklch(22% 0.006 85 / 0.18);
  color: var(--ink);
  font-style: normal;
}

.overview-marker b strong,
.overview-marker b em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-marker b strong {
  font-size: 0.72rem;
  line-height: 1.05;
}

.overview-marker b em {
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 750;
}

.overview-point-queenstown b {
  top: 56px;
  left: -72px;
}

.overview-point-te-anau b {
  top: -9px;
  left: -159px;
}

.overview-point-milford b {
  top: -31px;
  left: -154px;
}

.overview-point-wanaka b {
  top: -13px;
  left: 137px;
}

.overview-point-fox-glacier b {
  top: -55px;
  left: -134px;
}

.overview-point-arthurs-pass b {
  top: -64px;
  left: 58px;
}

.overview-point-christchurch b {
  top: -9px;
  left: 95px;
}

.overview-point-kaikoura b {
  top: -34px;
  left: 52px;
}

.overview-point-picton b {
  top: -44px;
  left: 42px;
}

.overview-point-wellington b {
  top: 10px;
  left: 46px;
}

.overview-point-taupo b {
  top: -48px;
  left: 54px;
}

.overview-point-rotorua b {
  top: 6px;
  left: 63px;
}

.overview-point-waitomo b {
  top: -21px;
  left: -146px;
}

.overview-point-auckland b {
  top: -50px;
  left: 30px;
}

.overview-marker-highlight > span,
.overview-marker-highlight b,
.overview-dot-highlight {
  background: var(--accent);
  color: var(--paper);
}

.overview-marker-weather > span,
.overview-marker-weather b,
.overview-dot-weather {
  background: var(--accent-2);
  color: var(--paper);
}

.overview-marker-transfer > span,
.overview-marker-transfer b,
.overview-dot-transfer {
  background: var(--muted);
  color: var(--paper);
}

.overview-marker-ferry > span,
.overview-marker-ferry b,
.overview-dot-ferry {
  background: var(--warning);
  color: var(--paper);
}

.overview-dot-base {
  background: var(--road);
}

.overview-popup h3 {
  line-height: 1.2;
}

.poi-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid oklch(86% 0.012 150);
  animation: settle 520ms var(--ease-heavy) both;
  animation-delay: calc(var(--i) * 35ms);
}

.poi-item:first-child {
  border-top: 0;
  padding-top: 4px;
}

.poi-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--road);
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 750;
}

.poi-item strong,
.poi-item small {
  display: block;
}

.poi-item strong {
  min-width: 0;
}

.poi-item small {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.poi-main {
  min-width: 0;
}

.poi-field-grid {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.poi-field-grid p {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.poi-field-grid span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
}

.poi-actions {
  grid-column: 2;
  margin-top: 2px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  margin: 22px 0 18px;
}

.status-tile {
  min-height: 150px;
  padding: 20px;
  animation: settle 620ms var(--ease-heavy) both;
}

.status-tile:nth-child(1) {
  grid-row: span 2;
}

.status-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.55rem;
  line-height: 1;
}

.route-stack {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid oklch(86% 0.012 150);
}

.route-stack span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.route-stack b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.tile-label {
  display: inline-flex;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.home-preview {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1px;
  margin: 18px 0 26px;
  overflow: hidden;
}

.home-preview figure {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
}

.home-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-preview figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 8px;
  border: 1px solid oklch(100% 0.004 145 / 0.24);
  border-radius: 999px;
  background: oklch(15% 0.018 160 / 0.52);
  color: oklch(97% 0.006 145 / 0.76);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-preview > div {
  padding: 28px;
}

.day-list {
  margin-top: 26px;
}

.day-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  text-decoration: none;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.day-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px oklch(24% 0.02 160 / 0.11), inset 0 1px 0 oklch(100% 0.004 145 / 0.8);
}

.day-row small {
  display: block;
  color: var(--muted);
}

.day-number {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--road);
  color: oklch(97% 0.006 145);
  font-family: var(--font-mono);
  font-weight: 750;
}

.row-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  place-items: center;
  padding: 28px;
  background: oklch(18% 0.015 160 / 0.88);
  color: oklch(97% 0.006 145);
  backdrop-filter: blur(14px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - 140px);
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid oklch(100% 0.004 145 / 0.36);
  border-radius: 50%;
  background: oklch(96% 0.006 145);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.mobile-dock {
  display: none;
}

.error-card {
  margin-top: 40px;
}

.js-fallback-card {
  display: block;
  margin: -4px 0 18px;
  border-color: oklch(80% 0.032 62);
  background:
    linear-gradient(135deg, oklch(98% 0.015 82), oklch(96% 0.014 150)),
    var(--paper);
}

html.js-enabled .js-fallback-card {
  display: none;
}

html.js-enabled body.app-loading-slow:not(.day-loaded):not(.home-loaded) .js-fallback-card,
body.home-error .js-fallback-card {
  display: block;
}

body.day-loaded .js-fallback-card,
body.home-loaded .js-fallback-card {
  display: none !important;
}

.fallback-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(220px, 1fr);
  gap: 18px;
}

.fallback-grid p {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.58;
}

.fallback-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

body.capture-map {
  background: oklch(94% 0.012 150);
}

body.capture-map::before,
body.capture-map::after,
body.capture-map .topbar,
body.capture-map .breadcrumbs,
body.capture-map .page-intro,
body.capture-map .summary-strip,
body.capture-map .field-rules,
body.capture-map .prep-check-card,
body.capture-map .day-cockpit-card,
body.capture-map .action-line-card,
body.capture-map .booking-actions-card,
body.capture-map .daily-section-header,
body.capture-map .daily-command,
body.capture-map .execution-workspace,
body.capture-map .field-strategy,
body.capture-map .proof-locker,
body.capture-map .route-nav-column,
body.capture-map .day-switcher,
body.capture-map .planner-tabs,
body.capture-map .route-rail,
body.capture-map .content-column,
body.capture-map .compact-card,
body.capture-map .mobile-dock {
  display: none;
}

body.capture-map .shell {
  width: 100%;
  padding: 0;
}

body.capture-map .day-layout {
  display: block;
}

body.capture-map .route-navigation {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.capture-map .side-panel {
  position: static;
  display: block;
  max-height: none;
  overflow: visible;
}

body.capture-map .map-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.capture-map .map-card::before,
body.capture-map .map-header,
body.capture-map .map-legend {
  display: none;
}

body.capture-map .road-map,
body.capture-map .map-fallback {
  height: 720px;
  border: 0;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1120px) {
  h1 {
    font-size: 3.2rem;
  }

  .trip-hero {
    grid-template-columns: 1fr;
  }

  .trip-hero-copy {
    min-height: 270px;
  }

  .trip-hero-copy h1 {
    font-size: 3.55rem;
  }

  .trip-hero-card {
    grid-template-rows: 150px auto;
  }

  .page-intro {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
  }

  .page-intro .hero-media {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 190px) auto;
  }

  .page-intro .hero-media figcaption {
    align-content: end;
  }

  .day-jump-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-family {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .field-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boarding-coordinate-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-cockpit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .execution-command-hero {
    grid-template-columns: minmax(118px, 0.24fr) minmax(0, 1fr);
  }

  .execution-command-nav {
    grid-column: 2;
    justify-self: start;
  }

  .execution-command-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booking-action {
    grid-template-columns: 62px minmax(0, 1fr);
  }

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

  .source-digest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-digest-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-layout {
    grid-template-columns: 1fr;
  }

  .content-column,
  .side-panel,
  .side-panel .map-card,
  .side-panel #stops {
    width: 100%;
    max-width: none;
  }

  .side-panel {
    position: static;
    max-height: none;
    grid-template-rows: none;
    overflow: visible;
  }

  .side-panel .map-card,
  .side-panel #stops {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .side-panel .poi-list {
    overflow: visible;
    padding-right: 0;
  }

  .side-panel .road-map,
  .side-panel .map-fallback,
  .road-map,
  .map-fallback {
    height: 520px;
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .planner-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .planner-map-panel {
    position: static;
    order: -1;
  }

  .planner-map-panel .overview-map-card {
    height: auto;
    min-height: 0;
  }

  .planner-map-panel .road-map,
  .planner-map-panel .map-fallback {
    height: min(62dvh, 520px);
    min-height: 390px;
  }
}

@media (max-width: 900px) {
  .daily-section {
    gap: 14px;
    margin-right: -4px;
    margin-left: -4px;
    padding: 14px;
    border-radius: 10px;
  }

  .daily-section-header {
    display: grid;
    gap: 8px;
  }

  .daily-section-header > p {
    max-width: none;
    text-align: left;
  }

  .daily-command-grid,
  .execution-workspace-grid,
  .field-strategy-grid,
  .proof-locker-grid {
    grid-template-columns: 1fr;
  }

  .daily-command .summary-strip,
  .daily-command .field-rules {
    grid-template-columns: 1fr;
  }

  .execution-command-card,
  .execution-command,
  .execution-command-hero,
  .execution-command-panels,
  .execution-command-panel,
  .detail-drawer,
  .timeline-detail-drawer,
  .live-check-card,
  .live-check-list,
  .live-check-item {
    width: 100%;
    max-width: 100%;
  }

  .execution-command-hero,
  .execution-command-panels {
    grid-template-columns: 1fr;
  }

  .execution-command-hero {
    gap: 10px;
    padding: 12px;
  }

  .execution-command-start {
    width: 100%;
  }

  .execution-command-nav {
    grid-column: auto;
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .command-detail {
    padding: 8px;
  }

  .road-card.detail-drawer > summary,
  .command-detail > summary,
  .timeline-detail-drawer > summary {
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  .timeline-detail-drawer > :not(summary) {
    margin-right: 10px;
    margin-left: 10px;
  }

  .live-check-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .live-check-item .text-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .proof-locker .source-checks,
  .field-strategy .weather-card {
    grid-column: auto;
  }

  .field-strategy-grid {
    grid-template-areas: none;
  }

  .field-strategy-column-primary,
  .field-strategy .field-grid {
    grid-template-columns: 1fr;
  }

  .day-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .side-panel {
    order: -1;
    width: 100%;
    max-height: none;
    gap: 14px;
    overflow: visible;
  }

  .side-panel.navigation-side {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    overflow: visible;
  }

  .side-panel.navigation-side .map-card {
    grid-template-rows: auto auto auto;
  }

  .side-panel.navigation-side #stops {
    max-height: none;
    grid-template-rows: auto;
    overflow: visible;
  }

  .side-panel .map-card,
  .side-panel #stops,
  .side-panel .road-map,
  .side-panel .map-fallback {
    width: 100%;
    max-width: none;
  }

  .side-panel .road-map,
  .side-panel .map-fallback {
    height: min(62dvh, 520px);
    min-height: 390px;
  }

  .side-panel .poi-list {
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  .road-marker .marker-label {
    width: 124px;
  }

  .road-marker.marker-left .marker-label {
    right: auto;
    left: 21px;
    text-align: left;
  }

  .road-marker.marker-left .marker-label::before {
    right: auto;
    left: -13px;
  }

  .marker-stop-7.marker-left .marker-label {
    right: 21px;
    left: auto;
    text-align: right;
  }

  .marker-stop-7.marker-left .marker-label::before {
    right: -13px;
    left: auto;
  }

  .marker-stop-2 .marker-label {
    top: 18px;
  }

  .marker-stop-3 .marker-label {
    top: -34px;
  }

  .marker-stop-4 .marker-label {
    right: 21px;
    left: auto;
    top: 12px;
    text-align: right;
  }

  .marker-stop-4 .marker-label::before {
    right: -13px;
    left: auto;
  }

  .marker-stop-5 .marker-label {
    top: 2px;
  }

  .marker-stop-6 .marker-label {
    top: -32px;
  }

  .marker-stop-7 .marker-label {
    top: -32px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 110px;
  }

  body {
    background: var(--bg);
  }

  body::after {
    height: 22dvh;
  }

  h1 {
    font-size: 2.18rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 1.04rem;
  }

  .topbar {
    top: calc(8px + env(safe-area-inset-top));
    width: calc(100% - 20px);
    min-height: 58px;
    margin-top: 8px;
    padding: 7px;
    gap: 10px;
  }

  .brand {
    padding-left: 12px;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand small {
    max-width: 128px;
    overflow: hidden;
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topnav {
    display: none;
  }

  .shell {
    width: calc(100% - 22px);
    padding: 26px 0 calc(112px + env(safe-area-inset-bottom));
  }

  .home-shell {
    padding-top: 36px;
  }

  .trip-hero {
    gap: 12px;
  }

  .trip-hero-copy {
    min-height: 330px;
    padding: 22px;
  }

  .trip-hero-copy::after {
    right: 22px;
    bottom: 22px;
    width: 54%;
  }

  .trip-hero-copy h1 {
    font-size: 2.18rem;
  }

  .home-page .trip-hero-copy .lede {
    font-size: 0.98rem;
  }

  .js-fallback-card {
    margin: 0 0 14px;
  }

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

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

  .trip-hero-card {
    grid-template-rows: 140px auto;
  }

  .trip-hero-card > div {
    padding: 16px;
  }

  .trip-hero-card strong {
    font-size: 1.04rem;
  }

  .trip-hero-card p {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .overview-narrative,
  .stay-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .overview-stats {
    grid-template-columns: 1fr 1fr;
  }

  .overview-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .day-jump-card {
    margin-bottom: 14px;
    padding: 14px;
  }

  .day-jump-strip {
    display: grid;
    grid-auto-columns: minmax(132px, 40vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 8px;
    margin: 0 -14px;
    padding: 0 14px 4px;
    background:
      linear-gradient(to right, oklch(97% 0.006 145), transparent 28px),
      linear-gradient(to left, oklch(97% 0.006 145), transparent 28px);
    background-attachment: local, local;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .day-jump-strip::-webkit-scrollbar {
    display: none;
  }

  .day-jump-link {
    min-height: 88px;
    scroll-snap-align: start;
  }

  .planner-itinerary {
    gap: 12px;
  }

  .overview-narrative .route-narrative-card {
    min-height: 0;
  }

  .overview-map {
    height: min(68dvh, 560px);
    min-height: 430px;
  }

  .overview-marker b {
    display: none;
  }

  .day-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .day-card-number {
    width: 40px;
    height: 40px;
    font-size: 0.76rem;
  }

  .day-card-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .day-leg {
    grid-template-columns: 1fr;
  }

  .day-leg b {
    width: fit-content;
    justify-content: flex-start;
  }

  .day-leg small {
    grid-column: 1;
  }

  .breadcrumbs {
    margin: 0 0 14px;
    font-size: 0.74rem;
  }

  .workbench-intro,
  .page-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 14px;
    padding: 20px;
  }

  .page-intro {
    grid-template-areas:
      "copy"
      "actions"
      "media";
  }

  .page-intro .hero-media {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 170px auto;
  }

  .hero-media figcaption {
    padding: 12px 13px 13px;
  }

  .intro-actions {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .day-switcher {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 14px;
  }

  .day-switcher-bottom {
    margin-top: 14px;
  }

  .day-switch-card {
    min-height: 92px;
    padding: 14px 14px 14px 16px;
  }

  .day-switch-card strong {
    font-size: 0.94rem;
  }

  .summary-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    overflow: visible;
  }

  .summary-item {
    min-width: 0;
    min-height: 96px;
  }

  .field-rules {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px;
  }

  .field-rule {
    min-height: 0;
    padding: 13px;
  }

  .prep-check-card {
    margin-bottom: 14px;
  }

  .prep-check-list {
    grid-template-columns: 1fr;
  }

  .prep-check-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .boarding-coordinate-deck {
    grid-template-columns: 1fr;
  }

  .boarding-coordinate-meta {
    display: grid;
    justify-content: stretch;
  }

  .boarding-coordinate-meta small {
    text-align: left;
  }

  .day-cockpit {
    grid-template-columns: 1fr;
  }

  .cockpit-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 13px;
  }

  .cockpit-card > span {
    height: 32px;
    font-size: 0.68rem;
  }

  .action-line {
    grid-template-columns: 1fr;
  }

  .action-step {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 13px;
  }

  .action-step > span {
    width: 32px;
    height: 32px;
    font-size: 0.68rem;
  }

  .planner-tabs {
    --tab-fade-bg: var(--bg);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 14px;
    padding: 6px;
    border-radius: 999px;
    background: oklch(98% 0.006 145 / 0.78);
    overflow: visible;
  }

  .planner-tabs a {
    min-width: 0;
    padding: 0 7px;
    font-size: 0;
  }

  .planner-tabs a::after {
    font-size: 0.75rem;
    line-height: 1;
  }

  .planner-tabs a:nth-child(1)::after {
    content: "总控";
  }

  .planner-tabs a:nth-child(2)::after {
    content: "路线";
  }

  .planner-tabs a:nth-child(3)::after {
    content: "时间";
  }

  .planner-tabs a:nth-child(4)::after {
    content: "策略";
  }

  .planner-tabs a:nth-child(5)::after {
    content: "核查";
  }

  .route-rail {
    margin-bottom: 14px;
    padding: 14px;
  }

  .route-rail-header {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .route-chip-track {
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  }

  .route-chip {
    min-width: 0;
  }

  .day-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .side-panel {
    order: -1;
    gap: 14px;
  }

  .content-column {
    gap: 14px;
  }

  .road-card,
  .compact-card {
    padding: 18px;
  }

  .map-header {
    padding: 16px 16px 12px;
  }

  .side-panel .road-map,
  .side-panel .map-fallback,
  .road-map,
  .map-fallback {
    height: min(62dvh, 520px);
    min-height: 390px;
  }

  .map-legend {
    padding: 11px 16px 16px;
  }

  .road-marker .marker-index {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .road-marker .marker-label {
    left: 18px;
    width: 96px;
    padding: 5px 7px 5px 8px;
  }

  .road-marker.marker-left .marker-label {
    left: 18px;
  }

  .road-marker.marker-left .marker-label::before {
    right: auto;
    left: -13px;
  }

  .marker-stop-7.marker-left .marker-label {
    right: 18px;
    left: auto;
    text-align: right;
  }

  .marker-stop-7.marker-left .marker-label::before {
    right: -13px;
    left: auto;
  }

  .road-marker .marker-label strong {
    font-size: 0.66rem;
  }

  .road-marker .marker-label em {
    font-size: 0.54rem;
  }

  .marker-stop-2 .marker-label {
    top: 18px;
  }

  .marker-stop-3 .marker-label {
    top: -32px;
  }

  .marker-stop-4 .marker-label {
    right: 18px;
    left: auto;
    top: -10px;
    text-align: right;
  }

  .marker-stop-4 .marker-label::before {
    right: -13px;
    left: auto;
  }

  .marker-stop-5 .marker-label {
    top: -30px;
  }

  .marker-stop-6 .marker-label {
    top: -28px;
  }

  .marker-stop-7 .marker-label {
    top: 18px;
  }

  .priority-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .priority-rank {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

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

  .execution-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 13px;
  }

  .execution-card > span {
    width: 36px;
    height: 36px;
    font-size: 0.64rem;
  }

  .source-digest-grid {
    grid-template-columns: 1fr;
  }

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

  .booking-action {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 13px;
  }

  .booking-action-label span {
    min-height: 36px;
    font-size: 0.62rem;
  }

  .source-digest-overview {
    grid-template-columns: 1fr;
  }

  .source-digest-card {
    padding: 13px;
  }

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

  .runbook-phase {
    padding: 13px;
  }

  .runbook-phase h3 {
    font-size: 0.96rem;
  }

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

  .field-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 13px;
  }

  .field-card > span {
    width: 36px;
    height: 36px;
    font-size: 0.62rem;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline,
  .timeline-stop,
  .stop-body {
    max-width: 100%;
    min-width: 0;
  }

  .timeline-stop {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 26px;
    overflow: hidden;
  }

  .timeline-media-duo {
    grid-template-columns: 1fr;
  }

  .timeline-photo {
    aspect-ratio: 16 / 10;
  }

  .time-block {
    position: relative;
    top: auto;
    left: -26px;
    display: inline-flex;
    width: fit-content;
    max-width: calc(100% + 26px);
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    text-align: left;
  }

  .stop-body {
    padding: 12px 0 18px;
  }

  .stop-execution-list {
    padding-left: 16px;
  }

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

  .ops-item:nth-child(-n + 2) {
    border-top: 1px solid oklch(86% 0.012 150);
    padding-top: 15px;
  }

  .ops-item:first-child {
    border-top: 0;
    padding-top: 4px;
  }

  .weather-plan {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .weather-plan > span {
    width: max-content;
    padding: 0 14px;
  }

  .poi-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .poi-actions {
    grid-column: 2;
    margin-top: 2px;
  }

  .dashboard-grid,
  .home-preview {
    grid-template-columns: 1fr;
  }

  .status-tile:nth-child(1) {
    grid-row: auto;
  }

  .home-preview figure {
    min-height: 220px;
  }

  .home-preview > div {
    padding: 22px;
  }

  .day-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .row-meta {
    grid-column: 2;
  }

  .mobile-dock {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 31;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid oklch(100% 0.004 145 / 0.68);
    border-radius: 999px;
    background: oklch(98% 0.006 145 / 0.86);
    box-shadow: 0 18px 42px oklch(18% 0.02 160 / 0.18), inset 0 1px 0 oklch(100% 0.004 145 / 0.9);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a,
  .mobile-dock button {
    display: grid;
    min-height: 44px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-dock .dock-copy {
    border: 1px solid oklch(82% 0.02 150 / 0.9);
    background: oklch(100% 0.004 145 / 0.78);
    color: var(--road);
  }

  .mobile-dock .dock-primary {
    background: var(--accent);
    color: oklch(97% 0.006 145);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.94rem;
  }

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

  .summary-item {
    min-width: 0;
  }

  .road-map,
  .map-fallback {
    min-height: 360px;
  }
}
