:root {
  --ink: #182322;
  --muted: #5c6a67;
  --paper: #f4f7f4;
  --surface: #ffffff;
  --line: #d8e0dc;
  --navy: #162a43;
  --teal: #0b8b8f;
  --blue: #2473a8;
  --saffron: #d98717;
  --rose: #c34f69;
  --accent: var(--teal);
  --accent-soft: #d9eeee;
  --shadow: 0 20px 50px rgba(22, 42, 67, 0.09);
  --display: "Songti SC", "STSong", "Noto Serif SC", serif;
  --body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --utility: "Avenir Next", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html[data-theme="blue"] {
  --accent: var(--blue);
  --accent-soft: #dceaf5;
}

html[data-theme="saffron"] {
  --accent: var(--saffron);
  --accent-soft: #f6e8d0;
}

html[data-theme="rose"] {
  --accent: var(--rose);
  --accent-soft: #f4dfe5;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: white;
  background: rgba(22, 42, 67, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.brand-mark {
  padding-right: 14px;
  color: #c7e5e5;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.source-stamp {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dce7ef;
  font-size: 13px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #66d0b8;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(102, 208, 184, 0.15);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  min-height: 690px;
  padding: clamp(78px, 10vw, 132px) clamp(20px, 7vw, 110px);
  color: white;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

.hero::after {
  position: absolute;
  right: -180px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 74px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 50%;
  content: "";
  opacity: 0.4;
  transition: border-color 300ms ease;
}

.hero-copy,
.route-board {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7cdddc;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 104px);
  font-weight: 620;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #8de2dd;
}

.hero-intro {
  max-width: 670px;
  margin: 34px 0 26px;
  color: #d6e1e8;
  font-size: clamp(16px, 1.5vw, 19px);
}

.constraint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.constraint-list span {
  padding: 7px 11px;
  color: #e5eef3;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
}

.route-board {
  padding: 26px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 20px 24px 0 color-mix(in srgb, var(--accent) 76%, transparent);
  transform: rotate(1deg);
  transition: box-shadow 300ms ease;
}

.route-board-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-board-head span:last-child {
  color: var(--accent);
  font-weight: 800;
}

.route-thread {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 44px 0 40px;
}

.route-thread::before {
  position: absolute;
  top: 54px;
  right: 22px;
  left: 22px;
  height: 3px;
  background: var(--accent);
  content: "";
  transform-origin: left;
  animation: route-in 700ms ease both;
}

.route-stop {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 58px;
  text-align: center;
}

.route-node {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: white;
  background: var(--accent);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
  font-family: var(--utility);
  font-size: 8px;
}

.route-stop strong {
  font-family: var(--display);
  font-size: 18px;
}

.route-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 21px;
  border-top: 1px dashed var(--line);
}

.route-summary div {
  display: grid;
  gap: 4px;
}

.route-summary small {
  color: var(--muted);
  font-size: 11px;
}

.route-summary strong {
  color: var(--navy);
  font-family: var(--utility);
  font-size: 22px;
}

.plan-switcher,
.decision-panel,
.flight-section,
.itinerary-section,
.cost-section,
.reality-check {
  width: min(1240px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.plan-switcher {
  position: relative;
  z-index: 4;
  margin-top: -52px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.reality-check > h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.matrix-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 13px;
  color: var(--muted);
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter-chip span {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: white;
  background: var(--navy);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 9px;
}

.filter-chip.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.filter-chip.active span {
  color: var(--navy);
  background: white;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.plan-matrix {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 12px;
}

.plan-matrix th,
.plan-matrix td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.plan-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #dce7ef;
  background: var(--navy);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.plan-matrix tbody tr {
  background: white;
  transition: background 160ms ease;
}

.plan-matrix tbody tr:hover,
.plan-matrix tbody tr.active {
  background: var(--accent-soft);
}

.plan-matrix tbody tr:last-child th,
.plan-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.plan-matrix tbody th span,
.plan-matrix tbody th strong,
.plan-matrix tbody th small,
.plan-matrix td strong,
.plan-matrix td small {
  display: block;
}

.plan-matrix tbody th span,
.plan-matrix tbody th small,
.plan-matrix td small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.plan-matrix tbody th strong {
  font-family: var(--display);
  font-size: 17px;
}

.matrix-price,
.matrix-delta {
  color: var(--navy);
  font-family: var(--utility);
  font-weight: 800;
  white-space: nowrap;
}

.matrix-delta.saving {
  color: #1a806d;
}

.matrix-open {
  padding: 6px 10px;
  color: white;
  background: var(--accent);
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.matrix-note {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 10px;
}

.plan-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.plan-tab {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 130px;
  padding: 17px;
  color: var(--ink);
  text-align: left;
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.plan-tab:hover {
  transform: translateY(-3px);
}

.plan-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.plan-tab > span {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.plan-tab strong {
  font-family: var(--display);
  font-size: 22px;
}

.plan-tab small {
  align-self: end;
  color: var(--navy);
  font-family: var(--utility);
  font-weight: 700;
}

.plan-tab em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.plan-tab i {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding-top: 100px;
}

.decision-main,
.score-card,
.tradeoff {
  background: var(--surface);
  border: 1px solid var(--line);
}

.decision-main {
  padding: clamp(24px, 4vw, 48px);
}

.plan-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
}

.plan-title-row h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.plan-tagline {
  margin: 12px 0 0;
  color: var(--muted);
}

.price-seal {
  display: grid;
  min-width: 170px;
  padding: 16px 18px;
  color: white;
  background: var(--navy);
}

.price-seal span,
.price-seal small {
  color: #b9c9d5;
  font-size: 10px;
}

.price-seal strong {
  margin: 3px 0;
  font-family: var(--utility);
  font-size: 28px;
}

.verdict {
  max-width: 820px;
  margin: 34px 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
}

.stay-line {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stay-line span {
  flex: none;
  color: var(--accent);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 800;
}

.stay-line strong {
  font-size: 14px;
}

.plan-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.plan-facts div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f8faf9;
}

.plan-facts span {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 9px;
}

.plan-facts strong {
  font-size: 12px;
  line-height: 1.45;
}

.score-card {
  padding: 28px;
}

.score-card h3,
.tradeoff h3,
.official-costs h3 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 24px;
}

.score-row {
  display: grid;
  grid-template-columns: 58px 1fr 32px;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
  font-size: 12px;
}

.score-track {
  height: 7px;
  overflow: hidden;
  background: #e7ece9;
}

.score-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 380ms ease;
}

.score-track .score-0 { width: 0; }
.score-track .score-1 { width: 20%; }
.score-track .score-2 { width: 40%; }
.score-track .score-3 { width: 60%; }
.score-track .score-4 { width: 80%; }
.score-track .score-5 { width: 100%; }

.score-row b {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
}

.tradeoff-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tradeoff {
  padding: 28px 32px;
}

.tradeoff.good {
  border-top: 4px solid #2c9d84;
}

.tradeoff.bad {
  border-top: 4px solid #d47748;
}

.tradeoff ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tradeoff li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.tradeoff li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 2px;
  background: currentColor;
  content: "";
}

.flight-section,
.itinerary-section,
.cost-section,
.reality-check {
  padding-top: 112px;
}

.flight-list {
  display: grid;
  gap: 18px;
}

.flight-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 180px;
  min-height: 230px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(22, 42, 67, 0.06);
}

.flight-ticket::before,
.flight-ticket::after {
  position: absolute;
  right: 168px;
  z-index: 2;
  width: 24px;
  height: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.flight-ticket::before {
  top: -13px;
}

.flight-ticket::after {
  bottom: -13px;
}

.ticket-number {
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.flight-copy {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 24px;
  align-content: center;
  padding: 30px 36px;
}

.flight-date {
  grid-row: span 4;
  color: var(--accent);
  font-family: var(--utility);
  font-size: 20px;
  font-weight: 800;
}

.flight-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
}

.flight-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.flight-time {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  margin-top: 15px;
}

.flight-time strong {
  font-family: var(--utility);
  font-size: 20px;
}

.flight-time span {
  color: var(--muted);
  font-size: 12px;
}

.fare-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.fare-line span {
  color: var(--muted);
  font-size: 12px;
}

.fare-line strong {
  color: var(--navy);
  font-family: var(--utility);
  font-size: 24px;
}

.flight-note {
  margin: 8px 0 0 !important;
  padding: 8px 10px;
  color: #7c542e !important;
  background: #fff3df;
  border-left: 3px solid #d98717;
  font-size: 11px !important;
}

.ticket-qr {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 20px;
  text-align: center;
  border-left: 1px dashed #b9c5c0;
}

.ticket-qr img {
  width: 112px;
  height: 112px;
}

.ticket-qr a {
  margin-top: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  text-underline-offset: 3px;
}

.ticket-qr small {
  color: var(--muted);
  font-size: 9px;
}

.empty-state {
  padding: clamp(32px, 7vw, 90px);
  background: var(--surface);
  border: 1px dashed var(--accent);
  text-align: center;
}

.empty-state span {
  color: var(--accent);
  font-family: var(--utility);
  font-size: 11px;
}

.empty-state h3 {
  max-width: 720px;
  margin: 18px auto 12px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
}

.empty-state p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 80px;
  width: 2px;
  background: var(--accent);
  content: "";
}

.day-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 210px;
}

.day-index {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  align-content: start;
  padding-top: 28px;
  color: var(--navy);
  font-family: var(--utility);
  font-weight: 800;
}

.day-index i {
  position: absolute;
  top: 35px;
  left: 72px;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border: 4px solid var(--accent);
  border-radius: 50%;
}

.day-body {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px 40px;
  padding: 26px 30px 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.day-card:last-child .day-body {
  border-bottom: 1px solid var(--line);
}

.day-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  color: var(--accent);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.day-meta b {
  padding: 3px 8px;
  color: var(--muted);
  background: #edf1ef;
  border-radius: 999px;
}

.day-body h3 {
  margin: 5px 0 3px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.day-route {
  grid-row: span 2;
  align-self: center;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.day-route small {
  color: var(--muted);
  font-size: 10px;
}

.day-route p {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 650;
}

.day-bottom {
  align-self: end;
}

.day-bottom span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.day-bottom p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cost-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.cost-ledger,
.calculator {
  background: var(--surface);
  border: 1px solid var(--line);
}

.cost-ledger {
  padding: 30px;
}

.disclosure {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.disclosure > span {
  align-self: start;
  padding: 4px 8px;
  color: white;
  background: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.disclosure.fixed > span {
  background: #2c8c77;
}

.disclosure.unknown > span {
  background: #bd6f3f;
}

.disclosure p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.official-costs {
  margin-top: 32px;
}

.official-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}

.official-row span {
  display: grid;
}

.official-row strong {
  font-size: 14px;
}

.official-row small {
  color: var(--muted);
  font-size: 10px;
}

.official-row b {
  flex: none;
  color: var(--navy);
  font-family: var(--utility);
}

.calculator {
  position: sticky;
  top: 90px;
  overflow: hidden;
}

.calculator-head {
  padding: 26px;
  color: white;
  background: var(--navy);
}

.calculator-head div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.calculator-head span {
  color: #b9c9d5;
  font-size: 12px;
}

.calculator-head strong {
  font-family: var(--utility);
  font-size: 26px;
}

.calculator-head small {
  display: block;
  margin-top: 8px;
  color: #9fb1bf;
  font-size: 9px;
}

.calculator > label {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: center;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.calculator input {
  width: 100%;
  padding: 8px 9px;
  color: var(--ink);
  background: #f7f9f8;
  border: 1px solid #cdd7d2;
  border-radius: 0;
  text-align: right;
}

.money-input {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
}

.money-input b {
  color: var(--muted);
  font-family: var(--utility);
}

.calculator-total {
  display: grid;
  padding: 25px;
  background: var(--accent-soft);
}

.calculator-total span {
  color: var(--muted);
  font-size: 11px;
}

.calculator-total strong {
  color: var(--navy);
  font-family: var(--utility);
  font-size: 34px;
}

.calculator-total small {
  color: var(--muted);
  font-size: 10px;
}

.reality-check {
  padding-bottom: 120px;
}

.reality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.reality-grid article {
  min-height: 250px;
  padding: 28px;
  color: white;
  background: var(--navy);
}

.reality-grid article:nth-child(2) {
  color: var(--ink);
  background: var(--accent-soft);
}

.reality-grid article:nth-child(3),
.reality-grid article:nth-child(4) {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.reality-grid span {
  color: var(--accent);
  font-family: var(--utility);
  font-size: 11px;
}

.reality-grid h3 {
  margin: 42px 0 10px;
  font-family: var(--display);
  font-size: 26px;
}

.reality-grid p {
  margin: 0;
  opacity: 0.76;
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 50px clamp(20px, 7vw, 110px);
  color: #d2dee6;
  background: var(--navy);
}

footer strong {
  font-family: var(--display);
  font-size: 20px;
}

footer p {
  max-width: 700px;
  margin: 8px 0 0;
  color: #91a5b3;
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 18px;
  align-content: start;
}

.footer-links a {
  color: white;
  font-size: 12px;
  text-underline-offset: 4px;
}

@keyframes route-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .route-board {
    max-width: 620px;
  }

  .plan-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .plan-facts,
  .reality-grid {
    grid-template-columns: 1fr 1fr;
  }

  .decision-panel {
    grid-template-columns: 1fr;
  }

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

  .calculator {
    position: static;
  }

  .reality-grid article {
    min-height: 190px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 58px;
  }

  .brand-mark,
  .source-stamp span:last-child {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .route-board {
    padding: 20px;
    box-shadow: 10px 14px 0 color-mix(in srgb, var(--accent) 76%, transparent);
  }

  .route-stop strong {
    font-size: 14px;
  }

  .route-summary strong {
    font-size: 16px;
  }

  .plan-switcher,
  .decision-panel,
  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check {
    width: min(100% - 24px, 1240px);
  }

  .plan-switcher {
    padding: 18px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 14px;
  }

  .plan-tabs {
    grid-template-columns: 1fr;
  }

  .plan-facts,
  .reality-grid {
    grid-template-columns: 1fr;
  }

  .plan-tab {
    min-height: 88px;
  }

  .decision-panel,
  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check {
    padding-top: 78px;
  }

  .plan-title-row {
    display: grid;
  }

  .price-seal {
    width: 100%;
  }

  .stay-line {
    display: grid;
    gap: 7px;
  }

  .tradeoff-grid,
  .tradeoff ul {
    grid-template-columns: 1fr;
  }

  .flight-ticket {
    grid-template-columns: 34px 1fr;
  }

  .flight-copy {
    grid-template-columns: 1fr;
    padding: 25px 20px;
  }

  .flight-date {
    grid-row: auto;
  }

  .fare-line {
    align-items: end;
  }

  .ticket-qr {
    grid-column: 2;
    padding: 22px;
    border-top: 1px dashed #b9c5c0;
    border-left: 0;
  }

  .flight-ticket::before,
  .flight-ticket::after {
    display: none;
  }

  .timeline::before {
    left: 18px;
  }

  .day-card {
    grid-template-columns: 48px 1fr;
  }

  .day-index span {
    display: none;
  }

  .day-index i {
    left: 10px;
  }

  .day-body {
    grid-template-columns: 1fr;
    padding: 23px 20px;
  }

  .day-route {
    grid-row: auto;
    padding: 15px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .disclosure {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .disclosure > span {
    justify-self: start;
  }

  .calculator > label {
    grid-template-columns: 1fr 110px;
    padding: 12px 16px;
  }

  footer {
    display: grid;
  }
}

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

.lock-section {
  padding-top: 112px;
}

.hard-constraint-note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  margin-bottom: 18px;
  padding: 16px 20px;
  color: #f1f6f5;
  background: var(--navy);
  border-left: 5px solid var(--accent);
}

.hard-constraint-note strong {
  font-size: 12px;
}

.hard-constraint-note span {
  color: #cfdcdd;
  font-size: 11px;
}

.lock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.lock-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 18px 20px;
  background: var(--surface);
}

.lock-card.locked {
  background: color-mix(in srgb, var(--accent-soft) 55%, white);
}

.lock-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.lock-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.lock-card button {
  min-width: 78px;
  padding: 8px 10px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
}

.lock-card button[aria-pressed="true"] {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.lock-status {
  min-height: 32px;
  padding: 9px 12px;
  color: var(--muted);
  background: #edf1ef;
  font-size: 10px;
}

.poi-guide {
  margin-top: 14px;
  border: 1px solid var(--line);
}

.poi-guide > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  color: var(--navy);
  background: #f4f7f5;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.poi-guide > summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.poi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.poi-card {
  min-width: 0;
  padding: 18px;
  background: white;
  box-shadow: inset 4px 0 0 #8e9b97;
}

.poi-card.role-must {
  box-shadow: inset 4px 0 0 #e85d3f;
}

.poi-card.role-skip {
  opacity: 0.68;
  box-shadow: inset 4px 0 0 #7d8582;
}

.poi-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.poi-card-head > div:first-child {
  min-width: 0;
}

.poi-card-head span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.poi-card h4 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.25;
}

.poi-card-head small {
  color: var(--muted);
  font-size: 9px;
}

.poi-rating {
  flex: none;
  display: grid;
  align-content: start;
  justify-items: end;
}

.poi-rating b {
  color: var(--navy);
  font-family: var(--utility);
  font-size: 16px;
}

.poi-rating span {
  color: var(--muted);
  font-size: 8px;
}

.poi-why {
  margin: 13px 0;
  color: #46534f;
  font-size: 10px;
}

.poi-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.poi-card dl div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
}

.poi-card dt {
  color: var(--muted);
  font-size: 8px;
}

.poi-card dd {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}

.poi-alert {
  margin-top: 12px;
  padding: 10px 12px;
  color: #744b1a;
  background: #fff3df;
  border-left: 3px solid #d98717;
}

.poi-alert.closed,
.poi-alert.stale {
  color: #7a3038;
  background: #fbe8ea;
  border-left-color: #c34f69;
}

.poi-alert.open {
  color: #276353;
  background: #e5f2ed;
  border-left-color: #2c8c77;
}

.poi-alert strong,
.poi-alert p,
.poi-alert small {
  display: block;
  margin: 0;
  font-size: 8px;
}

.poi-alert p {
  margin-top: 3px;
  font-size: 9px;
}

.poi-alert a {
  text-underline-offset: 2px;
}

.poi-card-foot {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.poi-card-foot label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poi-card-foot label > span,
.poi-card-foot > a {
  color: var(--muted);
  font-size: 8px;
}

.poi-card-foot select {
  max-width: 130px;
  padding: 6px 8px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
}

.map-side {
  min-width: 0;
  background: #f7f9f8;
}

.map-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px 14px 0;
}

.map-legend span {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 7px;
}

.map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.map-legend .must { background: #e85d3f; }
.map-legend .flexible { background: white; border: 2px solid #2473a8; }
.map-legend .skip { background: #a8b0ad; }

.map-stop-list li.role-flexible > span {
  color: #2473a8;
  background: white;
  border: 2px solid #2473a8;
}

.map-stop-list li.role-skip {
  opacity: 0.48;
  text-decoration: line-through;
}

.map-stop-list li.role-skip > span {
  background: #818b87;
}

.map-stop-list em {
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
}

@media (max-width: 760px) {
  .hard-constraint-note,
  .lock-grid,
  .poi-grid {
    grid-template-columns: 1fr;
  }

  .hard-constraint-note {
    gap: 6px;
  }

  .poi-guide > summary,
  .poi-card-foot label {
    align-items: flex-start;
    flex-direction: column;
  }

  .poi-card-foot select {
    max-width: none;
    width: 100%;
  }
}

@media print {
  .site-header,
  .plan-switcher,
  .ticket-qr,
  .calculator,
  footer {
    display: none !important;
  }

  body,
  .hero {
    color: black;
    background: white;
  }

  .hero {
    min-height: auto;
    padding: 40px;
  }

  .hero-copy,
  .route-board {
    color: black;
  }

  .decision-panel,
  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check {
    width: 100%;
    padding-top: 30px;
  }
}

/* v1.1 — collaborative trip operations layer */
html[data-theme="indigo"] {
  --accent: #5f63b8;
  --accent-soft: #e8e8f8;
}

body {
  padding-bottom: 92px;
}

textarea,
select {
  font: inherit;
}

.header-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 24px;
}

.revision-note {
  padding: 7px 10px;
  color: #d5e2e9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.sample-stamp {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 9px;
}

.plan-revision-bar {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr);
  gap: 12px 24px;
  margin: calc(clamp(24px, 4vw, 48px) * -1) calc(clamp(24px, 4vw, 48px) * -1) 34px;
  padding: 18px clamp(24px, 4vw, 48px);
  color: #dce8ee;
  background: #173047;
  border-bottom: 3px solid var(--accent);
}

.plan-revision-bar > div {
  display: grid;
  gap: 3px;
  align-content: center;
}

.plan-revision-bar > div span,
.plan-revision-bar label span {
  color: #9fb3bf;
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-revision-bar > div strong {
  width: max-content;
  padding: 3px 8px;
  color: #0e4f43;
  background: #bcecdf;
  border-radius: 999px;
  font-size: 11px;
}

.plan-revision-bar > div strong.archived {
  color: #74450a;
  background: #ffe1a9;
}

.plan-revision-bar label {
  display: grid;
  gap: 5px;
}

.plan-revision-bar select {
  width: 100%;
  padding: 9px 34px 9px 11px;
  color: white;
  background: #24445c;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
}

.plan-revision-bar p {
  grid-column: 1 / -1;
  margin: 0;
  color: #afc2cd;
  font-size: 11px;
  line-height: 1.6;
}

.route-summary strong {
  font-size: clamp(17px, 2vw, 22px);
}

.quick-read {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 80px));
  margin: -72px auto 84px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-read article {
  min-height: 178px;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}

.quick-read article:last-child {
  border-right: 0;
}

.quick-read span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.quick-read strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 26px;
}

.quick-read p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plan-switcher {
  margin-top: 0;
}

.plan-matrix {
  min-width: 1360px;
}

.matrix-baggage {
  max-width: 130px;
  color: var(--muted);
  font-size: 10px;
}

.matrix-baggage.available {
  color: #146c5b;
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 800;
}

.decision-panel,
.fare-section,
.hotel-section {
  width: min(1240px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.fare-section,
.hotel-section {
  padding-top: 112px;
}

.hidden-cost-callout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  margin-top: 18px;
  padding: 17px 20px;
  background: #fff7e9;
  border-left: 4px solid #d98717;
}

.hidden-cost-callout span {
  color: #8c5a1c;
  font-size: 12px;
  font-weight: 800;
}

.hidden-cost-callout p {
  margin: 0;
  color: #6d5b43;
  font-size: 13px;
}

.fare-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.schedule-flex {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 16px;
  color: #3e5662;
  background: #e7eff2;
  border-left: 3px solid #6795aa;
  font-size: 11px;
}

.schedule-flex strong {
  color: var(--navy);
}

.fare-card {
  position: relative;
  display: grid;
  min-height: 230px;
  padding: 30px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(22, 42, 67, 0.06);
}

.fare-card::after {
  position: absolute;
  right: -54px;
  bottom: -64px;
  width: 150px;
  height: 150px;
  border: 24px solid var(--accent-soft);
  border-radius: 50%;
  content: "";
}

.fare-card-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.fare-card-top span {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 750;
}

.fare-card-top strong {
  color: var(--navy);
  font-family: var(--utility);
  font-size: clamp(28px, 4vw, 44px);
}

.fare-card-top sup {
  color: #bd6f3f;
  font-size: 14px;
}

.fare-card p {
  position: relative;
  z-index: 1;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

.fare-card button,
.flight-mode-tabs button,
.map-toggle,
.custom-costs-head button,
.cost-dock button,
.feedback-fab,
.selection-feedback,
.dialog-actions button {
  cursor: pointer;
}

.fare-card button {
  position: relative;
  z-index: 1;
  justify-self: start;
  align-self: end;
  padding: 9px 14px;
  color: white;
  background: var(--navy);
  border: 0;
}

.fare-card.unavailable {
  background: #f2f4f3;
  border-style: dashed;
  box-shadow: none;
}

.fare-card.unavailable .fare-card-top strong {
  max-width: 220px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 18px;
  text-align: right;
}

.flight-mode-tabs {
  display: flex;
  gap: 10px;
  margin: -10px 0 22px;
}

.flight-mode-tabs button {
  padding: 10px 15px;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.flight-mode-tabs button.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.flight-mode-tabs button:disabled {
  color: #99a5a0;
  background: #e8ecea;
  cursor: not-allowed;
}

.baggage-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #a87046;
  background: #fff6ea;
}

.baggage-status span {
  display: block;
  color: #7f522e;
  font-size: 10px;
  font-weight: 800;
}

.baggage-status p {
  margin: 2px 0 0;
  color: #6e6255;
  font-size: 11px;
}

.baggage-status.confirmed {
  background: #e7f4ef;
  border-color: #2c8c77;
}

.baggage-status.confirmed span {
  color: #1a6b59;
}

.hotel-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hotel-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(22, 42, 67, 0.07);
}

.hotel-photo {
  overflow: hidden;
  background: var(--accent-soft);
}

.hotel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.hotel-card:hover .hotel-photo img {
  transform: scale(1.035);
}

.hotel-copy {
  display: grid;
  align-content: start;
  padding: 24px;
}

.hotel-copy > span {
  color: var(--accent);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
}

.hotel-copy h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.25;
}

.hotel-en {
  margin: 3px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.hotel-copy dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.hotel-copy dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.hotel-copy dt {
  color: var(--muted);
  font-size: 10px;
}

.hotel-copy dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.hotel-note {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 10px;
}

.hotel-copy a {
  justify-self: start;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.weather-status {
  margin: -12px 0 24px 160px;
  padding: 11px 14px;
  color: #37515f;
  background: #e6eef2;
  border-left: 3px solid #669bb5;
  font-size: 11px;
}

.day-card {
  min-height: 260px;
}

.day-body {
  display: block;
  min-width: 0;
  padding: 28px 30px 32px;
}

.day-meta {
  display: flex;
}

.day-photo {
  position: relative;
  height: 230px;
  margin: 18px -30px 20px;
  overflow: hidden;
  background: var(--accent-soft);
}

.day-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 7px;
  color: white;
  background: rgba(13, 31, 48, 0.76);
  font-size: 8px;
}

.day-route {
  margin-top: 16px;
  padding: 14px 16px;
  border: 0;
  background: var(--accent-soft);
}

.day-route p {
  line-height: 1.55;
}

.day-ops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
}

.day-ops div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.day-ops div:last-child {
  border-right: 0;
}

.day-ops span,
.day-weather span {
  color: var(--muted);
  font-size: 9px;
}

.day-ops strong {
  font-size: 12px;
}

.day-weather {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  color: #255065;
  background: #e8f2f6;
  font-size: 11px;
}

.day-weather.muted {
  color: var(--muted);
  background: #eef1ef;
}

.day-reminders {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  margin-top: 12px;
  padding: 14px;
  background: #fff8e9;
  border-left: 3px solid #d98717;
}

.day-reminders > span {
  color: #8a5a1f;
  font-size: 11px;
  font-weight: 800;
}

.day-reminders ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #665b4c;
  font-size: 11px;
}

.day-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.map-toggle {
  padding: 7px 10px;
  color: var(--accent);
  background: white;
  border: 1px solid var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.day-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(210px, 0.8fr);
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
}

.day-map-panel[hidden] {
  display: none;
}

.day-map {
  min-height: 390px;
  background: #dce7e5;
}

.leaflet-container {
  font-family: var(--body);
}

.map-stop-list {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 14px;
  list-style: none;
  background: #f7f9f8;
}

.map-stop-list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.map-stop-list li > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: white;
  background: #e85d3f;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

.map-stop-list p {
  display: grid;
  margin: 0;
}

.map-stop-list strong {
  font-size: 11px;
}

.map-stop-list small {
  color: var(--muted);
  font-size: 9px;
}

.cost-layout-v11 {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.calculator-head strong {
  font-size: 20px;
}

.cost-server-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px 18px;
  background: #f5f8f6;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 3px 0 0 #79918c;
}

.cost-server-bar > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cost-server-bar strong {
  color: var(--navy);
  font-size: 11px;
}

.cost-server-bar small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-server-bar.is-dirty {
  background: #fff8e9;
  box-shadow: inset 3px 0 0 #d99438;
}

.cost-server-bar.is-conflict,
.cost-server-bar.is-error {
  background: #fff0ed;
  box-shadow: inset 3px 0 0 #c95345;
}

.cost-server-actions {
  display: flex;
  gap: 7px;
}

.cost-server-actions button {
  padding: 7px 9px;
  color: var(--navy);
  background: white;
  border: 1px solid #aebdb8;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.cost-server-actions #saveCosts {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.calculator button:disabled,
.calculator input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.calculator-grid label {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
}

.calculator-grid label:first-child {
  border-right: 1px solid var(--line);
}

.calculator-grid span {
  font-size: 12px;
  font-weight: 700;
}

.calculator-grid input {
  width: 100%;
  padding: 7px;
  border: 1px solid var(--line);
  text-align: right;
}

.cost-breakdown {
  display: grid;
  padding: 12px 18px;
}

.cost-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11px;
}

.cost-breakdown strong {
  color: var(--navy);
  font-family: var(--utility);
}

.custom-costs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  background: #edf1ef;
}

.custom-costs-head h3 {
  margin: 0;
  font-size: 12px;
}

.custom-costs-head > div {
  display: grid;
  gap: 2px;
}

.custom-costs-head small {
  color: var(--muted);
  font-size: 8px;
}

.custom-costs-head button {
  padding: 6px 10px;
  color: white;
  background: var(--navy);
  border: 0;
  font-size: 10px;
}

.custom-cost-list {
  display: grid;
  gap: 8px;
  padding: 12px 18px;
}

.custom-empty {
  margin: 4px 0;
  color: var(--muted);
  font-size: 10px;
}

.custom-cost-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) 120px minmax(170px, 1.2fr) 32px;
  gap: 8px;
}

.custom-cost-row > input,
.custom-cost-row .money-input {
  min-width: 0;
  border: 1px solid var(--line);
}

.custom-cost-row > input,
.custom-cost-row .money-input input {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  background: white;
}

.custom-cost-row .money-input {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.custom-cost-row .money-input b {
  font-size: 11px;
}

.custom-cost-row > button {
  color: #a34848;
  background: #f7e7e7;
  border: 0;
  cursor: pointer;
}

.custom-cost-row .cost-note-input {
  color: #52645f;
  background: #fbfcfb;
}

.calculator-total {
  padding: 18px 25px;
  background: #f4f7f5;
  border-top: 1px solid var(--line);
}

.calculator-total strong {
  font-size: 24px;
}

.source-links {
  margin-top: 30px;
}

.source-links h3 {
  font-size: 14px;
}

.source-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-links a {
  padding: 5px 8px;
  color: var(--accent);
  border: 1px solid var(--line);
  font-size: 9px;
  text-underline-offset: 3px;
}

.reality-grid {
  grid-template-columns: repeat(5, 1fr);
}

.reality-grid h3 {
  font-size: 22px;
}

.cost-dock {
  position: fixed;
  right: 26px;
  bottom: 20px;
  z-index: 25;
  display: flex;
  gap: 24px;
  align-items: center;
  min-width: 360px;
  padding: 14px 16px;
  color: white;
  background: rgba(22, 42, 67, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(9, 24, 39, 0.28);
  backdrop-filter: blur(12px);
}

.cost-dock div {
  display: grid;
  flex: 1;
}

.cost-dock span {
  color: #b8c9d4;
  font-size: 9px;
}

.cost-dock strong {
  font-family: var(--utility);
  font-size: 13px;
}

.cost-dock button {
  padding: 8px 10px;
  color: var(--navy);
  background: #8de2dd;
  border: 0;
  font-size: 10px;
  font-weight: 800;
}

.feedback-fab {
  position: fixed;
  right: 26px;
  bottom: 92px;
  z-index: 24;
  padding: 10px 16px;
  color: white;
  background: var(--accent);
  border: 0;
  box-shadow: 0 10px 30px rgba(22, 42, 67, 0.2);
  font-size: 11px;
  font-weight: 800;
}

.selection-feedback {
  position: fixed;
  z-index: 70;
  padding: 8px 12px;
  color: white;
  background: var(--navy);
  border: 0;
  box-shadow: 0 8px 24px rgba(22, 42, 67, 0.24);
  font-size: 10px;
}

.feedback-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: white;
  border: 0;
  box-shadow: 0 28px 80px rgba(9, 24, 39, 0.35);
}

.feedback-dialog::backdrop {
  background: rgba(12, 25, 38, 0.72);
  backdrop-filter: blur(3px);
}

.feedback-dialog form {
  padding: 28px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.dialog-head span {
  color: var(--accent);
  font-family: var(--utility);
  font-size: 10px;
}

.dialog-head h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 30px;
}

.dialog-head button {
  width: 36px;
  height: 36px;
  color: var(--navy);
  background: #edf1ef;
  border: 0;
  cursor: pointer;
  font-size: 24px;
}

.feedback-dialog form > p {
  color: var(--muted);
  font-size: 12px;
}

.feedback-dialog label {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
}

.feedback-dialog textarea {
  width: 100%;
  padding: 13px;
  resize: vertical;
  border: 1px solid var(--line);
}

.selected-quote {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--accent-soft);
}

.selected-quote span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.selected-quote blockquote {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 15px;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.dialog-actions small {
  color: var(--muted);
}

.dialog-actions button {
  flex: none;
  padding: 10px 18px;
  color: white;
  background: var(--accent);
  border: 0;
  font-weight: 800;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.footer-links button {
  padding: 0;
  color: white;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.photo-credits {
  display: grid;
  flex-basis: 100%;
  gap: 4px;
  margin-top: 18px;
}

.photo-credits[hidden] {
  display: none;
}

.photo-credits a {
  color: #91a5b3;
  font-size: 9px;
}

footer {
  flex-wrap: wrap;
}

.alert-center {
  padding-top: 82px;
}

.alert-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 14px;
  padding: 12px 14px 12px 18px;
  color: #40534f;
  background: #edf4f1;
  border-left: 4px solid var(--accent);
  font-size: 12px;
}

.alert-toolbar button {
  flex: none;
  padding: 9px 13px;
  color: white;
  background: var(--navy);
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

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

.alert-card,
.alert-empty {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid #c3832f;
}

.alert-card.state-open {
  border-top-color: #2c8c77;
}

.alert-card.state-weather {
  border-top-color: #2473a8;
}

.alert-card.state-closed,
.alert-card.state-stale {
  background: #fff1ed;
  border-top-color: #bf4e3f;
}

.alert-card-head,
.alert-freshness {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.alert-card-head span {
  padding: 4px 8px;
  color: white;
  background: #a66a21;
  font-size: 10px;
  font-weight: 800;
}

.state-open .alert-card-head span { background: #2c8c77; }
.state-weather .alert-card-head span { background: #2473a8; }
.state-closed .alert-card-head span,
.state-stale .alert-card-head span { background: #bf4e3f; }

.alert-card-head small {
  color: var(--muted);
  font-size: 10px;
}

.alert-card h3 {
  margin: 20px 0 10px;
  font-family: var(--display);
  font-size: 24px;
}

.alert-card h3 small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 500;
}

.alert-card > p,
.alert-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.alert-freshness {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: #6a7773;
  font-size: 9px;
}

.alert-card > a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.alert-empty {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .alert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hotel-list {
    grid-template-columns: 1fr 1fr;
  }

  .reality-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 124px;
  }

  .site-header {
    position: relative;
    display: grid;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header-actions {
    justify-content: space-between;
    gap: 10px;
  }

  .source-stamp {
    display: none;
  }

  .revision-note {
    font-size: 9px;
  }

  .plan-revision-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 26px;
  }

  .plan-revision-bar p {
    grid-column: 1;
  }

  .quick-read {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    margin-top: -35px;
    margin-bottom: 54px;
  }

  .quick-read article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fare-compare,
  .alert-grid,
  .hotel-list,
  .cost-layout-v11,
  .reality-grid {
    grid-template-columns: 1fr;
  }

  .fare-card-top {
    display: grid;
  }

  .fare-card.unavailable .fare-card-top strong {
    text-align: left;
  }

  .flight-mode-tabs {
    display: grid;
  }

  .weather-status {
    margin-left: 48px;
  }

  .day-photo {
    height: 190px;
    margin-right: -20px;
    margin-left: -20px;
  }

  .day-ops,
  .day-map-panel {
    grid-template-columns: 1fr;
  }

  .day-ops div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .day-ops div:last-child {
    border-bottom: 0;
  }

  .day-reminders,
  .hidden-cost-callout {
    grid-template-columns: 1fr;
  }

  .day-bottom {
    align-items: start;
  }

  .day-map {
    min-height: 310px;
  }

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

  .calculator-grid label:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .custom-cost-row {
    grid-template-columns: minmax(0, 1fr) 100px 32px;
  }

  .custom-cost-row .cost-note-input {
    grid-column: 1 / 3;
  }

  .custom-cost-row > button {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .cost-server-bar {
    grid-template-columns: 1fr;
  }

  .cost-server-bar small {
    white-space: normal;
  }

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

  .cost-dock {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
  }

  .feedback-fab {
    right: 12px;
    bottom: 88px;
  }

  .alert-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  .quick-read,
  .cost-dock,
  .feedback-fab,
  .selection-feedback,
  .flight-mode-tabs,
  .map-toggle,
  .feedback-dialog,
  .alert-toolbar button,
  .lock-section,
  .poi-card-foot {
    display: none !important;
  }
}
/* v1.4 — compact travel field guide */
@media screen {
  .trip-jumpbar {
    position: sticky;
    top: 66px;
    z-index: 28;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 clamp(20px, 5vw, 72px);
    color: var(--navy);
    background: rgba(247, 249, 247, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(22, 42, 67, 0.06);
    backdrop-filter: blur(12px);
  }

  .trip-jumpbar-current,
  .trip-jumpbar-links {
    display: flex;
    align-items: center;
  }

  .trip-jumpbar-current {
    gap: 9px;
    min-width: 0;
    padding-right: 22px;
    border-right: 1px solid var(--line);
  }

  .trip-jumpbar-current span,
  .trip-jumpbar-current b {
    color: var(--muted);
    font-family: var(--utility);
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
  }

  .trip-jumpbar-current strong {
    overflow: hidden;
    max-width: 260px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .trip-jumpbar-current b {
    color: var(--accent);
  }

  .trip-jumpbar-links {
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .trip-jumpbar-links::-webkit-scrollbar {
    display: none;
  }

  .trip-jumpbar-links a {
    position: relative;
    display: grid;
    place-items: center;
    align-self: stretch;
    padding: 0 13px;
    color: #51615d;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
  }

  .trip-jumpbar-links a::after {
    position: absolute;
    right: 13px;
    bottom: 0;
    left: 13px;
    height: 2px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
  }

  .trip-jumpbar-links a:hover,
  .trip-jumpbar-links a.active {
    color: var(--navy);
  }

  .trip-jumpbar-links a:hover::after,
  .trip-jumpbar-links a.active::after {
    transform: scaleX(1);
  }

  #planHeading,
  #alertHeading,
  #lockHeading,
  #flightHeading,
  #hotelHeading,
  #itineraryHeading,
  #costHeading {
    scroll-margin-top: 128px;
  }

  .hero {
    min-height: 580px;
    gap: clamp(36px, 5vw, 74px);
    padding: 62px clamp(20px, 7vw, 110px) 86px;
  }

  .hero h1 {
    font-size: clamp(48px, 5.9vw, 82px);
    line-height: 1.01;
  }

  .hero-intro {
    margin: 24px 0 18px;
    font-size: clamp(15px, 1.3vw, 17px);
  }

  .constraint-list {
    gap: 6px;
  }

  .constraint-list span {
    padding: 5px 9px;
    font-size: 10px;
  }

  .route-board {
    padding: 22px;
  }

  .route-thread {
    padding: 30px 0 28px;
  }

  .route-thread::before {
    top: 40px;
  }

  .route-summary {
    gap: 16px;
    padding-top: 15px;
  }

  .quick-read {
    width: min(1180px, calc(100% - 56px));
    margin: -46px auto 44px;
  }

  .quick-read article {
    min-height: 118px;
    padding: 18px 22px;
  }

  .quick-read span {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .quick-read strong {
    font-size: 21px;
  }

  .quick-read p {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.5;
  }

  .plan-switcher,
  .decision-panel,
  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check,
  .alert-center,
  .lock-section,
  .fare-section,
  .hotel-section {
    width: min(1280px, calc(100% - 40px));
  }

  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check,
  .lock-section,
  .fare-section,
  .hotel-section {
    padding-top: 64px;
  }

  .alert-center {
    padding-top: 54px;
  }

  .section-heading {
    gap: 26px;
    margin-bottom: 20px;
  }

  .section-heading.compact {
    margin-bottom: 15px;
  }

  .section-heading h2,
  .reality-check > h2 {
    font-size: clamp(30px, 3vw, 42px);
  }

  .section-heading > p {
    max-width: 520px;
    font-size: 12px;
    line-height: 1.55;
  }

  .section-kicker {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .plan-switcher {
    padding: 22px;
  }

  .matrix-toolbar {
    margin-bottom: 10px;
  }

  .filter-chip {
    padding: 6px 10px;
    font-size: 11px;
  }

  .plan-matrix th,
  .plan-matrix td {
    padding: 9px 11px;
  }

  .plan-matrix tbody th strong {
    font-size: 15px;
  }

  .matrix-note {
    margin: 6px 0 12px;
    line-height: 1.45;
  }

  .plan-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }

  .plan-tab {
    min-height: 88px;
    padding: 12px;
  }

  .plan-tab strong {
    padding-right: 40px;
    font-size: 17px;
    line-height: 1.25;
  }

  .plan-tab i {
    top: 9px;
    right: 9px;
    max-width: 64px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .plan-tab em,
  .plan-tab small {
    font-size: 8px;
  }

  .decision-panel {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 16px;
    padding-top: 64px;
  }

  .decision-main {
    padding: 30px;
  }

  .plan-revision-bar {
    gap: 8px 18px;
    margin: -30px -30px 22px;
    padding: 12px 30px;
  }

  .plan-revision-bar select {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 11px;
  }

  .plan-revision-bar p {
    font-size: 9px;
    line-height: 1.45;
  }

  .plan-title-row h2 {
    font-size: clamp(36px, 4vw, 54px);
  }

  .plan-tagline {
    margin-top: 7px;
    font-size: 12px;
  }

  .price-seal {
    min-width: 150px;
    padding: 12px 14px;
  }

  .price-seal strong {
    font-size: 22px;
  }

  .verdict {
    margin: 20px 0;
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.4;
  }

  .stay-line {
    gap: 14px;
    padding-top: 13px;
  }

  .hidden-cost-callout {
    grid-template-columns: 128px 1fr;
    gap: 14px;
    margin-top: 12px;
    padding: 12px 15px;
  }

  .plan-facts {
    margin-top: 14px;
  }

  .plan-facts div {
    padding: 10px;
  }

  .score-card {
    padding: 20px;
  }

  .score-card h3,
  .tradeoff h3,
  .official-costs h3 {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .score-row {
    margin: 10px 0;
  }

  .tradeoff-grid {
    gap: 16px;
  }

  .tradeoff {
    padding: 18px 22px;
  }

  .tradeoff ul {
    gap: 7px 20px;
  }

  .tradeoff li {
    font-size: 12px;
  }

  .alert-toolbar {
    margin: 14px 0 10px;
    padding: 9px 11px 9px 14px;
    font-size: 10px;
  }

  .alert-card,
  .alert-empty {
    padding: 17px;
  }

  .alert-card h3 {
    margin: 12px 0 7px;
    font-size: 20px;
  }

  .alert-card > p,
  .alert-empty p {
    font-size: 11px;
  }

  .alert-freshness {
    margin-top: 11px;
    padding-top: 8px;
  }

  .hard-constraint-note {
    grid-template-columns: 185px 1fr;
    margin-bottom: 10px;
    padding: 11px 15px;
  }

  .lock-card {
    min-height: 72px;
    padding: 12px 15px;
  }

  .lock-status {
    min-height: 27px;
    padding: 6px 10px;
  }

  .fare-compare {
    gap: 14px;
  }

  .fare-card {
    min-height: 174px;
    padding: 20px;
  }

  .fare-card-top strong {
    font-size: clamp(24px, 3vw, 34px);
  }

  .fare-card p {
    margin: 13px 0;
    font-size: 11px;
  }

  .schedule-flex {
    padding: 9px 12px;
  }

  .flight-mode-tabs {
    margin: -5px 0 14px;
  }

  .flight-mode-tabs button {
    padding: 7px 11px;
    font-size: 10px;
  }

  .flight-list {
    gap: 11px;
  }

  .flight-ticket {
    grid-template-columns: 44px minmax(0, 1fr) 142px;
    min-height: 0;
  }

  .flight-ticket::before,
  .flight-ticket::after {
    right: 130px;
    width: 18px;
    height: 18px;
  }

  .flight-ticket::before {
    top: -10px;
  }

  .flight-ticket::after {
    bottom: -10px;
  }

  .flight-copy {
    grid-template-columns: 72px 1fr;
    gap: 3px 17px;
    padding: 18px 22px;
  }

  .flight-date {
    font-size: 15px;
  }

  .flight-copy h3 {
    font-size: clamp(21px, 2.2vw, 28px);
  }

  .flight-time {
    gap: 6px 12px;
    margin-top: 8px;
  }

  .flight-time strong {
    font-size: 16px;
  }

  .fare-line {
    margin-top: 8px;
    padding-top: 8px;
  }

  .fare-line strong {
    font-size: 19px;
  }

  .flight-note,
  .baggage-status {
    margin-top: 6px !important;
    padding: 6px 8px;
  }

  .flight-copy > .flight-note,
  .flight-copy > .baggage-status {
    grid-column: 2;
  }

  .ticket-qr {
    padding: 12px;
  }

  .ticket-qr img {
    width: 86px;
    height: 86px;
  }

  .hotel-list {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 14px;
  }

  .hotel-card {
    grid-template-rows: 160px 1fr;
  }

  .hotel-copy {
    padding: 17px;
  }

  .hotel-copy h3 {
    margin-top: 5px;
    font-size: 20px;
  }

  .hotel-en {
    margin-bottom: 10px;
  }

  .hotel-copy dl {
    gap: 4px;
  }

  .hotel-copy dl div {
    padding-top: 5px;
  }

  .hotel-note {
    margin: 10px 0 7px;
  }

  .weather-status {
    margin: -7px 0 14px 108px;
    padding: 8px 11px;
  }

  .timeline::before {
    left: 51px;
  }

  .day-card {
    grid-template-columns: 108px 1fr;
    min-height: 0;
  }

  .day-index {
    padding-top: 20px;
    font-size: 12px;
  }

  .day-index i {
    top: 25px;
    left: 43px;
    width: 16px;
    height: 16px;
  }

  .day-body {
    padding: 18px 22px 20px;
  }

  .day-body h3 {
    font-size: clamp(22px, 2.6vw, 30px);
  }

  .day-route {
    padding: 10px 12px;
  }

  .day-ops {
    margin-top: 8px;
  }

  .day-ops div {
    padding: 8px 10px;
  }

  .day-weather {
    margin-top: 8px;
    padding: 7px 9px;
  }

  .day-reminders {
    grid-template-columns: 120px 1fr;
    gap: 12px;
    margin-top: 8px;
    padding: 10px;
  }

  .day-reminders ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 22px;
  }

  .poi-guide {
    margin-top: 8px;
  }

  .poi-guide > summary {
    padding: 9px 11px;
  }

  .day-bottom {
    margin-top: 8px;
  }

  .cost-ledger {
    padding: 22px;
  }

  .disclosure {
    grid-template-columns: 112px 1fr;
    gap: 16px;
    padding: 13px 0;
  }

  .official-costs,
  .source-links {
    margin-top: 20px;
  }

  .reality-check {
    padding-bottom: 72px;
  }

  .reality-grid {
    gap: 12px;
    margin-top: 20px;
  }

  .reality-grid article {
    min-height: 174px;
    padding: 18px;
  }

  .reality-grid h3 {
    margin: 20px 0 7px;
    font-size: 19px;
  }

  .reality-grid p {
    font-size: 11px;
  }

  footer {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

@media screen and (min-width: 761px) {
  .day-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
    gap: 9px 18px;
  }

  .day-meta,
  .day-ops,
  .day-weather,
  .day-reminders,
  .poi-guide,
  .day-bottom,
  .day-map-panel {
    grid-column: 1 / -1;
  }

  .day-body h3 {
    grid-column: 1;
    margin: 3px 0;
  }

  .day-photo {
    grid-column: 2;
    grid-row: 2 / span 2;
    height: 164px;
    margin: 0;
  }

  .day-route {
    grid-column: 1;
    align-self: stretch;
    margin-top: 0;
  }

  .day-body:not(.has-photo) h3,
  .day-body:not(.has-photo) .day-route {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 980px) {
  .trip-jumpbar-current {
    display: none;
  }

  .trip-jumpbar-links {
    width: 100%;
    justify-content: flex-start;
  }

  .plan-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .plan-tab {
    flex: 0 0 190px;
    scroll-snap-align: start;
  }
}

@media screen and (max-width: 760px) {
  .trip-jumpbar {
    top: 0;
    min-height: 42px;
    padding: 0 8px;
  }

  .trip-jumpbar-links a {
    padding: 0 10px;
    font-size: 9px;
  }

  #planHeading,
  #alertHeading,
  #lockHeading,
  #flightHeading,
  #hotelHeading,
  #itineraryHeading,
  #costHeading {
    scroll-margin-top: 54px;
  }

  .hero {
    gap: 34px;
    padding: 44px 20px 70px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-intro {
    margin-top: 18px;
    line-height: 1.6;
  }

  .quick-read {
    display: flex;
    width: calc(100% - 24px);
    margin-top: -34px;
    margin-bottom: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .quick-read article {
    flex: 0 0 82%;
    min-height: 108px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .plan-switcher,
  .decision-panel,
  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check,
  .alert-center,
  .lock-section,
  .fare-section,
  .hotel-section {
    width: min(100% - 24px, 1280px);
  }

  .decision-panel,
  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check,
  .lock-section,
  .fare-section,
  .hotel-section {
    padding-top: 46px;
  }

  .alert-center {
    padding-top: 42px;
  }

  .section-heading {
    margin-bottom: 15px;
  }

  .section-heading h2,
  .reality-check > h2 {
    font-size: 30px;
  }

  .section-heading > p {
    margin-top: 8px;
    font-size: 11px;
  }

  .plan-switcher {
    padding: 14px;
  }

  .plan-tab {
    flex-basis: 176px;
    min-height: 82px;
  }

  .decision-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .decision-main {
    padding: 20px;
  }

  .plan-revision-bar {
    margin: -20px -20px 18px;
    padding: 12px 20px;
  }

  .plan-title-row {
    gap: 14px;
  }

  .plan-title-row h2 {
    font-size: 38px;
  }

  .verdict {
    margin: 16px 0;
  }

  .price-seal {
    padding: 10px 13px;
  }

  .score-card,
  .tradeoff {
    padding: 17px;
  }

  .alert-toolbar {
    gap: 8px;
  }

  .hard-constraint-note {
    gap: 5px;
  }

  .fare-compare {
    gap: 10px;
  }

  .fare-card {
    min-height: 0;
    padding: 17px;
  }

  .flight-ticket {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .flight-copy {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .flight-copy > .flight-note,
  .flight-copy > .baggage-status {
    grid-column: 1;
  }

  .ticket-qr {
    display: grid;
    grid-column: 2;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    justify-items: start;
    padding: 12px 16px;
    text-align: left;
  }

  .ticket-qr img {
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
  }

  .ticket-qr a {
    align-self: end;
    margin-top: 0;
  }

  .ticket-qr small {
    align-self: start;
  }

  .hotel-list {
    grid-template-columns: 1fr;
  }

  .hotel-card {
    grid-template-columns: 118px 1fr;
    grid-template-rows: 1fr;
  }

  .hotel-copy {
    padding: 14px;
  }

  .hotel-copy dl div {
    grid-template-columns: 62px 1fr;
  }

  .weather-status {
    margin: 0 0 12px 48px;
  }

  .timeline::before {
    left: 18px;
  }

  .day-card {
    grid-template-columns: 48px 1fr;
  }

  .day-index i {
    left: 10px;
  }

  .day-body {
    display: block;
    padding: 16px;
  }

  .day-photo {
    height: 150px;
    margin: 12px -16px 14px;
  }

  .day-route {
    margin-top: 10px;
  }

  .day-ops {
    grid-template-columns: repeat(3, 1fr);
  }

  .day-ops div {
    padding: 7px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .day-reminders {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .cost-ledger {
    padding: 16px;
  }

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

  .reality-grid article {
    min-height: 150px;
  }

  .reality-grid article:last-child {
    grid-column: 1 / -1;
  }

  .cost-dock {
    gap: 12px;
    padding: 9px 11px;
  }

  .feedback-fab {
    padding: 8px 12px;
  }
}

/* v1.9 — evidence-led hotel shortlist and honest slow-day semantics */
@media screen {
  .hotel-source-note.verified {
    color: #285a4c;
    background: #eaf6f1;
    border-left-color: #218268;
  }

  .hotel-source-note.verified strong {
    color: #155b49;
  }

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

  .hotel-candidate-drawer {
    border-top: 1px solid var(--line);
  }

  .hotel-candidate-drawer > summary {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 12px 46px 12px 18px;
    cursor: pointer;
    list-style: none;
    color: var(--navy);
    background: linear-gradient(90deg, #f0f7f5, #f9fbfa);
    border-left: 5px solid #218268;
  }

  .hotel-candidate-drawer > summary::-webkit-details-marker {
    display: none;
  }

  .hotel-candidate-drawer > summary > span {
    display: grid;
    gap: 3px;
  }

  .hotel-candidate-drawer > summary b {
    font-size: 16px;
  }

  .hotel-candidate-drawer > summary small,
  .hotel-candidate-drawer > summary em {
    color: #536c65;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
  }

  .hotel-candidate-drawer > summary em {
    white-space: nowrap;
  }

  .hotel-candidate-drawer > summary i {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 11px;
    height: 11px;
    border-right: 2px solid #218268;
    border-bottom: 2px solid #218268;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 160ms ease;
  }

  .hotel-candidate-drawer:not([open]) > summary i {
    transform: translateY(-35%) rotate(-45deg);
  }

  .hotel-candidate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f4f7f6;
  }

  .hotel-candidate {
    display: grid;
    grid-template-rows: 138px 1fr auto;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cedbd7;
    box-shadow: 0 8px 24px rgba(22, 42, 67, 0.06);
  }

  .hotel-candidate.has-warning {
    border-bottom: 3px solid #d98717;
  }

  .hotel-candidate-photo {
    position: relative;
    overflow: hidden;
    background: #dfe9e7;
  }

  .hotel-candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
  }

  .hotel-candidate:hover .hotel-candidate-photo img {
    transform: scale(1.025);
  }

  .hotel-candidate-photo span {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    color: #fff;
    background: rgba(17, 55, 67, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.38);
    font-size: 11px;
    font-weight: 800;
  }

  .hotel-candidate-copy {
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 14px 14px 11px;
  }

  .hotel-candidate-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
  }

  .hotel-candidate-title h4 {
    margin: 0;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.3;
  }

  .hotel-candidate-title small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
  }

  .hotel-score {
    display: grid;
    gap: 2px;
    min-width: 62px;
    text-align: right;
  }

  .hotel-score strong {
    color: #16775f;
    font-family: var(--utility);
    font-size: 16px;
  }

  .hotel-score span {
    max-width: 105px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
  }

  .hotel-area,
  .hotel-why {
    margin: 0;
    line-height: 1.55;
  }

  .hotel-area {
    color: #16775f;
    font-size: 12px;
    font-weight: 800;
  }

  .hotel-why {
    color: #465a55;
    font-size: 13px;
  }

  .hotel-room-proof,
  .hotel-price-sample {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
  }

  .hotel-room-proof {
    color: #285d70;
    background: #eaf4f7;
    border-left: 3px solid #2a83a2;
  }

  .hotel-room-proof span,
  .hotel-price-sample > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .hotel-room-proof strong {
    font-size: 13px;
    line-height: 1.4;
  }

  .hotel-room-proof small,
  .hotel-price-sample small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
  }

  .hotel-price-sample {
    color: #155b49;
    background: #ecf7f2;
    border-left: 3px solid #218268;
  }

  .hotel-price-sample.mismatch {
    color: #705921;
    background: #fff8e9;
    border-left-color: #d98717;
  }

  .hotel-price-sample strong {
    font-family: var(--display);
    font-size: 20px;
  }

  .hotel-price-sample p {
    margin: 2px 0 0;
    color: #596660;
    font-size: 11px;
    line-height: 1.45;
  }

  .hotel-warning {
    padding: 9px 10px;
    color: #6d4c18;
    background: #fff5df;
    border-left: 3px solid #d98717;
  }

  .hotel-warning strong {
    font-size: 11px;
  }

  .hotel-warning p {
    margin: 3px 0 0;
    font-size: 11px;
    line-height: 1.5;
  }

  .hotel-evidence-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .hotel-evidence-links a {
    color: #176b7d;
    font-size: 11px;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .hotel-booking {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: center;
    padding: 10px 12px;
    color: #fff;
    background: var(--navy);
  }

  .hotel-booking img {
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
    padding: 4px;
    background: #fff;
  }

  .hotel-booking a {
    align-self: end;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .hotel-booking small {
    align-self: start;
    color: #bcd4d8;
    font-size: 10px;
    line-height: 1.35;
  }

  .day-route.route-transfer {
    background: #eef4f6;
    border-left-color: #2a83a2;
  }

  .day-route.route-transfer > div small {
    color: #176b7d;
  }

  .day-route.route-slow {
    background: #edf7f3;
    border-left-color: #218268;
  }

  .day-route.route-slow > div small {
    color: #16775f;
  }

  .day-route li.is-branch,
  .map-stop-list li.is-branch {
    border-style: dashed;
  }

  .day-index span {
    max-width: 92px;
    line-height: 1.35;
  }
}

.hotel-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
}

.hotel-price-actions button,
.hotel-price-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 8px;
  font: 800 13px/1.3 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.hotel-price-actions button {
  color: #fff;
  background: #183d59;
  border: 1px solid #183d59;
  box-shadow: 0 5px 12px rgba(24, 61, 89, 0.15);
}

.hotel-price-actions a {
  color: #8a4c09;
  background: #fffdf7;
  border: 1px solid #d99b44;
}

.hotel-price-actions button:hover,
.hotel-price-actions button:focus-visible {
  background: #0f5874;
  border-color: #0f5874;
}

.hotel-price-actions a:hover,
.hotel-price-actions a:focus-visible {
  color: #713a00;
  background: #fff4d9;
  border-color: #bd7414;
}

.hotel-price-actions button:focus-visible,
.hotel-price-actions a:focus-visible {
  outline: 3px solid rgba(42, 131, 162, 0.28);
  outline-offset: 2px;
}

.hotel-price-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hotel-price-actions button[data-saved="true"] {
  color: #155b49;
  background: #dff2e9;
  border-color: #6fb39f;
  box-shadow: none;
  cursor: default;
  opacity: 1;
}

.hotel-price-sample .hotel-price-action-status {
  margin-top: 3px;
  color: #655631;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

@media screen and (max-width: 1120px) {
  .hotel-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 700px) {
  .hotel-candidate-drawer > summary {
    display: grid;
    gap: 7px;
    padding-right: 42px;
  }

  .hotel-candidate-drawer > summary em {
    white-space: normal;
  }

  .hotel-candidate-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .hotel-candidate {
    grid-template-rows: 150px 1fr auto;
  }

  .hotel-candidate-title {
    grid-template-columns: 1fr;
  }

  .hotel-score {
    display: flex;
    gap: 7px;
    align-items: baseline;
    text-align: left;
  }

  .hotel-score span {
    max-width: none;
  }

  .day-index span {
    max-width: 76px;
    font-size: 11px;
  }
}

/* v1.8 — plan dispatch brief, booking reminders and floating field index */
@media screen {
  .hero-brief {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 780px;
    margin: 28px 0 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-brief article {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 112px;
    padding: 15px 16px;
    background: rgba(13, 35, 55, 0.72);
  }

  .hero-brief span {
    color: #89d9d4;
    font-family: var(--utility);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
  }

  .hero-brief strong {
    color: #f6fbfb;
    font-size: 15px;
    font-weight: 680;
    line-height: 1.5;
  }

  .hotel-source-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 18px;
    align-items: baseline;
    margin: -2px 0 18px;
    padding: 12px 15px;
    color: #64583f;
    background: #fff8e9;
    border-left: 4px solid #d98717;
  }

  .hotel-source-note strong {
    color: #765826;
    font-size: 13px;
  }

  .hotel-source-note span {
    font-size: 13px;
    line-height: 1.55;
  }

  .hotel-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 16px;
  }

  .stay-reminder-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 13px 34px rgba(22, 42, 67, 0.07);
  }

  .stay-reminder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 11px 16px;
    color: #edf5f7;
    background: var(--navy);
    border-left: 5px solid var(--accent);
  }

  .stay-reminder-card.sea-view .stay-reminder-head {
    background: linear-gradient(110deg, #123a58, #176f88);
    border-left-color: #75d5dd;
  }

  .stay-reminder-head span {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
  }

  .stay-reminder-head em {
    padding: 3px 8px;
    color: #dff4f1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
  }

  .stay-date-band {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) 42px minmax(92px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 17px 18px;
    background: color-mix(in srgb, var(--accent-soft) 42%, white);
    border-bottom: 1px solid var(--line);
  }

  .stay-date-band > div {
    display: grid;
    gap: 2px;
  }

  .stay-date-band small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .stay-date-band strong {
    color: var(--navy);
    font-family: var(--display);
    font-size: 25px;
    line-height: 1.1;
  }

  .stay-date-band i {
    position: relative;
    height: 1px;
    background: color-mix(in srgb, var(--accent) 55%, var(--line));
  }

  .stay-date-band i::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    content: "";
    transform: translateY(-50%) rotate(45deg);
  }

  .stay-date-band b {
    padding: 6px 9px;
    color: #fff;
    background: var(--accent);
    font-size: 13px;
    white-space: nowrap;
  }

  .stay-reminder-body {
    display: grid;
    gap: 13px;
    padding: 17px 18px 18px;
  }

  .stay-reminder-body dl {
    display: grid;
    gap: 10px;
    margin: 0;
  }

  .stay-reminder-body dl div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
  }

  .stay-reminder-body dt,
  .stay-checks > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
  }

  .stay-reminder-body dd {
    margin: 0;
    color: #304440;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
  }

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

  .stay-checks ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
    color: #4d5d58;
    font-size: 13px;
  }

  .stay-reminder-body > p {
    margin: 0;
    padding: 9px 11px;
    color: #6d654f;
    background: #fbf8ef;
    font-size: 12px;
    line-height: 1.55;
  }

  .map-language-note {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    color: #315368;
    background: #e8f2f6;
    border-bottom: 1px solid #d4e4ea;
  }

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

  .map-language-note span {
    font-size: 12px;
    line-height: 1.55;
  }

  .day-map,
  .leaflet-container {
    cursor: grab;
  }

  .day-map:active,
  .leaflet-container:active {
    cursor: grabbing;
  }

  .leaflet-tooltip.map-label-zh {
    padding: 4px 7px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(22, 42, 67, 0.2);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(22, 42, 67, 0.15);
    font-size: 12px;
    font-weight: 800;
  }

  .leaflet-tooltip.map-label-zh.role-skip {
    opacity: 0.68;
    text-decoration: line-through;
  }

  .leaflet-popup-content {
    display: grid;
    gap: 2px;
    min-width: 132px;
    margin: 13px 16px;
    font-family: var(--body);
  }

  .leaflet-popup-content strong { color: var(--navy); font-size: 15px; }
  .leaflet-popup-content small { color: var(--muted); font-size: 11px; }
  .leaflet-popup-content span { color: var(--accent); font-size: 12px; font-weight: 750; }

  .trip-map-reset button {
    width: 44px;
    height: 30px;
    padding: 0;
    color: var(--navy);
    background: #fff;
    border: 0;
    cursor: pointer;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 800;
  }

  .trip-map-reset button:hover {
    color: #fff;
    background: var(--navy);
  }

  .maplibregl-canvas {
    outline: 0;
  }
}

@media screen and (min-width: 981px) {
  .trip-jumpbar {
    position: fixed;
    top: 50%;
    left: 18px;
    z-index: 34;
    display: block;
    width: 184px;
    min-height: 0;
    padding: 0;
    overflow: visible;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(22, 42, 67, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(22, 42, 67, 0.18);
    transform: translateY(-50%);
    transition: width 180ms ease, border-radius 180ms ease;
    backdrop-filter: blur(14px);
  }

  .trip-jumpbar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    color: #dbe9eb;
    background: var(--navy);
    border: 0;
    border-radius: 13px 13px 0 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
  }

  .trip-jumpbar-toggle i {
    width: 8px;
    height: 8px;
    border-right: 2px solid #89d9d4;
    border-bottom: 2px solid #89d9d4;
    transform: rotate(135deg);
    transition: transform 160ms ease;
  }

  .trip-jumpbar-panel {
    display: block;
  }

  .trip-jumpbar-panel[hidden] {
    display: none;
  }

  .trip-jumpbar-current {
    display: grid;
    gap: 2px;
    padding: 12px 13px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trip-jumpbar-current span,
  .trip-jumpbar-current b {
    font-size: 11px;
  }

  .trip-jumpbar-current strong {
    max-width: none;
    font-size: 13px;
  }

  .trip-jumpbar-links {
    display: grid;
    grid-template-columns: 1fr;
    max-height: min(430px, calc(100vh - 180px));
    overflow-y: auto;
  }

  .trip-jumpbar-links a {
    display: flex;
    justify-content: space-between;
    min-height: 39px;
    padding: 8px 13px 8px 16px;
    border-bottom: 1px solid #edf1ef;
    font-size: 12px;
  }

  .trip-jumpbar-links a:last-child {
    border-bottom: 0;
  }

  .trip-jumpbar-links a::after {
    top: 7px;
    right: auto;
    bottom: 7px;
    left: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .trip-jumpbar-links a:hover::after,
  .trip-jumpbar-links a.active::after {
    transform: scaleY(1);
  }

  .trip-jumpbar.collapsed {
    width: 48px;
    border-color: transparent;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 12px 30px rgba(22, 42, 67, 0.24);
  }

  .trip-jumpbar.collapsed .trip-jumpbar-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    min-height: 108px;
    padding: 10px 8px;
    border-radius: 24px;
  }

  .trip-jumpbar.collapsed .trip-jumpbar-toggle span {
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
  }

  .trip-jumpbar.collapsed .trip-jumpbar-toggle i {
    transform: rotate(-45deg);
  }

  #planHeading,
  #alertHeading,
  #lockHeading,
  #activityHeading,
  #flightHeading,
  #hotelHeading,
  #itineraryHeading,
  #costHeading {
    scroll-margin-top: 84px;
  }
}

@media screen and (max-width: 980px) {
  .trip-jumpbar {
    position: sticky;
    top: 66px;
    z-index: 28;
    display: block;
    min-height: 46px;
    padding: 0 clamp(20px, 5vw, 72px);
    transform: none;
  }

  .trip-jumpbar-toggle {
    display: none;
  }

  .trip-jumpbar-panel,
  .trip-jumpbar-panel[hidden] {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }

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

  .hero-brief article {
    min-height: 0;
  }
}

@media screen and (max-width: 720px) {
  .trip-jumpbar {
    top: 58px;
    padding: 0 12px;
  }

  .trip-jumpbar-panel,
  .trip-jumpbar-panel[hidden] {
    display: block;
  }

  .hero-brief {
    margin-top: 22px;
  }

  .hero-brief article {
    padding: 12px 13px;
  }

  .hotel-source-note {
    grid-template-columns: 1fr;
  }

  .stay-reminder-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .stay-date-band {
    grid-template-columns: minmax(82px, 1fr) 28px minmax(82px, 1fr);
  }

  .stay-date-band b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .stay-reminder-body dl div,
  .stay-checks {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* v1.5 — readable travel field guide */
@media screen {
  body {
    font-size: 17px;
  }

  .plan-switcher,
  .decision-panel,
  .alert-center,
  .lock-section,
  .fare-section,
  .flight-section,
  .hotel-section,
  .itinerary-section,
  .cost-section,
  .reality-check {
    margin-right: auto;
    margin-left: auto;
  }

  .trip-jumpbar-current span,
  .trip-jumpbar-current b {
    font-size: 10px;
  }

  .trip-jumpbar-current strong {
    font-size: 13px;
  }

  .trip-jumpbar-links a {
    font-size: 12px;
  }

  .hero-intro {
    font-size: clamp(17px, 1.45vw, 19px);
  }

  .constraint-list span {
    font-size: 11px;
  }

  .route-board-head,
  .route-summary small {
    font-size: 12px;
  }

  .route-stop span {
    font-size: 10px;
  }

  .quick-read span {
    font-size: 10px;
  }

  .quick-read strong {
    font-size: 23px;
  }

  .quick-read p {
    font-size: 13px;
    line-height: 1.55;
  }

  .section-kicker {
    font-size: 11px;
  }

  .section-heading > p {
    font-size: 14px;
    line-height: 1.65;
  }

  .filter-chip,
  .matrix-note {
    font-size: 12px;
  }

  .filter-chip span,
  .plan-matrix thead th {
    font-size: 11px;
  }

  .plan-matrix {
    font-size: 13px;
  }

  .plan-matrix tbody th span,
  .plan-matrix tbody th small,
  .plan-matrix td small {
    font-size: 11px;
    line-height: 1.45;
  }

  .plan-matrix tbody th strong {
    font-size: 18px;
  }

  .matrix-baggage {
    font-size: 12px;
  }

  .plan-tab > span,
  .plan-tab i,
  .plan-tab em,
  .plan-tab small {
    font-size: 10px;
  }

  .plan-tab strong {
    font-size: 19px;
  }

  .plan-revision-bar select {
    font-size: 12px;
  }

  .plan-revision-bar p {
    font-size: 11px;
    line-height: 1.55;
  }

  .plan-tagline,
  .stay-line strong,
  .hidden-cost-callout p {
    font-size: 14px;
  }

  .price-seal span,
  .price-seal small,
  .hidden-cost-callout span {
    font-size: 11px;
  }

  .plan-facts span,
  .score-row b {
    font-size: 11px;
  }

  .plan-facts strong,
  .score-row span {
    font-size: 13px;
  }

  .tradeoff li {
    font-size: 14px;
    line-height: 1.6;
  }

  .alert-toolbar {
    font-size: 13px;
    line-height: 1.55;
  }

  .alert-toolbar button {
    font-size: 12px;
  }

  .alert-card-head span,
  .alert-card-head small,
  .alert-card h3 small {
    font-size: 11px;
  }

  .alert-card h3 {
    font-size: 22px;
  }

  .alert-card > p,
  .alert-empty p {
    font-size: 14px;
    line-height: 1.65;
  }

  .alert-freshness {
    font-size: 11px;
    line-height: 1.45;
  }

  .alert-card > a {
    font-size: 12px;
  }

  .hard-constraint-note,
  .lock-card p,
  .lock-status {
    font-size: 13px;
    line-height: 1.55;
  }

  .lock-card span,
  .lock-card button {
    font-size: 12px;
  }

  .fare-card-top span,
  .schedule-flex,
  .flight-mode-tabs button {
    font-size: 12px;
  }

  .fare-card p,
  .flight-note,
  .baggage-status p {
    font-size: 13px;
    line-height: 1.55;
  }

  .baggage-status span,
  .ticket-qr small {
    font-size: 11px;
  }

  .hotel-copy > span,
  .hotel-copy dt,
  .hotel-en {
    font-size: 11px;
  }

  .hotel-copy dd,
  .hotel-copy a {
    font-size: 13px;
  }

  .hotel-note {
    font-size: 12px;
    line-height: 1.55;
  }

  .weather-status,
  .day-route small,
  .day-ops span,
  .day-weather span,
  .map-stop-list small {
    font-size: 11px;
  }

  .day-ops strong,
  .day-weather,
  .day-reminders > span,
  .day-reminders ul,
  .day-bottom p {
    font-size: 13px;
    line-height: 1.55;
  }

  .map-toggle,
  .map-stop-list strong {
    font-size: 12px;
  }

  .poi-guide > summary small,
  .poi-card-head small,
  .poi-card dt,
  .poi-rating span,
  .poi-card-foot label > span,
  .poi-card-foot > a,
  .poi-card-foot select {
    font-size: 11px;
  }

  .poi-card-head span {
    font-size: 10px;
  }

  .poi-why {
    font-size: 13px;
    line-height: 1.6;
  }

  .poi-card dd,
  .poi-alert strong,
  .poi-alert small {
    font-size: 12px;
  }

  .poi-alert p {
    font-size: 13px;
  }

  .disclosure > span,
  .official-row small,
  .calculator-head small,
  .calculator-total small {
    font-size: 11px;
  }

  .calculator > label,
  .calculator-head span,
  .calculator-total span {
    font-size: 13px;
  }

  .reality-grid span {
    font-size: 12px;
  }

  .reality-grid p {
    font-size: 13px;
    line-height: 1.6;
  }
}

@media screen and (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .trip-jumpbar-links a {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 11px;
  }

  .section-heading > p {
    font-size: 13px;
  }

  .plan-tab strong {
    font-size: 18px;
  }

  .alert-card > p,
  .alert-empty p,
  .tradeoff li,
  .fare-card p,
  .day-reminders ul,
  .poi-why {
    font-size: 13px;
  }
}

/* v1.6 — always-visible plan choice */
@media screen {
  .plan-matrix th:last-child,
  .plan-matrix td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    width: 108px;
    min-width: 108px;
    padding-right: 10px;
    padding-left: 10px;
    background: var(--surface);
    box-shadow: -12px 0 18px rgba(22, 42, 67, 0.1);
    text-align: center;
  }

  .plan-matrix thead th:last-child {
    z-index: 5;
    color: #dce7ef;
    background: var(--navy);
  }

  .plan-matrix tbody tr.active td:last-child {
    background: color-mix(in srgb, var(--accent-soft) 76%, white);
  }

  .plan-matrix tbody tr:hover td:last-child {
    background: #f4f8f6;
  }

  .plan-matrix tbody tr.active:hover td:last-child {
    background: color-mix(in srgb, var(--accent-soft) 76%, white);
  }

  .matrix-open {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* v1.7 — denser readable field drawers and human edit ledger */
@media screen {
  .activity-section {
    width: min(1280px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
    padding-top: 58px;
  }

  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check,
  .lock-section,
  .fare-section,
  .hotel-section {
    padding-top: 58px;
  }

  .alert-center {
    padding-top: 46px;
  }

  .section-heading {
    margin-bottom: 17px;
  }

  .section-heading > p {
    max-width: 590px;
  }

  .activity-ledger {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(22, 42, 67, 0.06);
  }

  .activity-ledger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    color: #eef6f5;
    background: var(--navy);
    border-left: 5px solid var(--accent);
  }

  .activity-ledger-head > div {
    display: grid;
    gap: 3px;
  }

  .activity-ledger-head span {
    color: #a9c0c8;
    font-size: 12px;
  }

  .activity-ledger-head strong {
    font-family: var(--display);
    font-size: 20px;
  }

  .activity-ledger-head p {
    margin: 0;
    color: #c9d8dc;
    font-size: 12px;
  }

  .activity-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-item {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 12px;
    min-height: 148px;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .activity-item:nth-child(2n) {
    border-right: 0;
  }

  .activity-mark {
    width: 11px;
    height: 11px;
    margin-top: 4px;
    background: var(--accent);
    border: 3px solid #dff0ec;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--accent);
  }

  .type-feedback .activity-mark { background: #d98717; box-shadow: 0 0 0 1px #d98717; }
  .type-plan_lock .activity-mark { background: #e85d3f; box-shadow: 0 0 0 1px #e85d3f; }
  .type-cost_sheet .activity-mark { background: #2473a8; box-shadow: 0 0 0 1px #2473a8; }

  .activity-meta,
  .activity-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
  }

  .activity-meta span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
  }

  .activity-meta time,
  .activity-context,
  .activity-transition {
    color: var(--muted);
    font-size: 12px;
  }

  .activity-copy h3 {
    margin: 8px 0 6px;
    font-family: var(--display);
    font-size: 19px;
    line-height: 1.3;
  }

  .activity-copy p,
  .activity-copy blockquote {
    margin: 6px 0 0;
    color: #4f5e59;
    font-size: 13px;
    line-height: 1.6;
  }

  .activity-copy blockquote {
    padding-left: 10px;
    color: #786041;
    border-left: 3px solid #e1b976;
  }

  .activity-foot {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .activity-transition {
    padding: 3px 7px;
    color: #32564d;
    background: #e8f2ef;
  }

  .activity-empty {
    grid-column: 1 / -1;
    padding: 26px 24px;
  }

  .activity-empty strong {
    color: var(--navy);
    font-size: 16px;
  }

  .activity-empty p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }

  .poi-guide {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
    box-shadow: 0 7px 20px rgba(22, 42, 67, 0.05);
  }

  .poi-guide > summary,
  .map-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 58px;
    padding: 11px 48px 11px 15px;
    color: var(--navy);
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 72%, white), #f8faf9);
    border: 0;
    border-left: 5px solid var(--accent);
    cursor: pointer;
    list-style: none;
    text-align: left;
  }

  .poi-guide > summary::-webkit-details-marker {
    display: none;
  }

  .poi-guide > summary > span,
  .map-toggle > span {
    display: grid;
    gap: 2px;
  }

  .poi-guide > summary b,
  .map-toggle b {
    font-size: 14px;
    font-weight: 850;
  }

  .poi-guide > summary small,
  .map-toggle small {
    color: #526a64;
    font-size: 12px;
    font-weight: 650;
  }

  .poi-guide > summary > em,
  .map-toggle > em {
    color: #416159;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
  }

  .poi-guide > summary i,
  .map-toggle i {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-68%) rotate(45deg);
    transition: transform 160ms ease;
  }

  .poi-guide:not([open]) > summary i,
  .map-toggle[aria-expanded="false"] i {
    transform: translateY(-34%) rotate(-45deg);
  }

  .map-disclosure {
    grid-column: 1 / -1;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, #2473a8 45%, var(--line));
  }

  .map-toggle {
    min-height: 54px;
    color: var(--navy);
    background: linear-gradient(90deg, #e8f2f6, #f8faf9);
    border-left-color: #2473a8;
  }

  .map-toggle i {
    border-color: #2473a8;
  }

  .day-map-panel {
    margin-top: 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .day-map {
    position: relative;
    min-height: 300px;
  }

  .map-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #49655f;
    font-size: 13px;
  }

  .day-route {
    display: grid;
    gap: 9px;
    padding: 11px 13px;
  }

  .day-route > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
  }

  .day-route > div small {
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
  }

  .day-route > div span {
    color: var(--muted);
    font-size: 12px;
  }

  .day-route ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .day-route li {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  }

  .day-route li b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    font-size: 10px;
  }

  .day-route li span {
    color: var(--navy);
    font-size: 12px;
    font-weight: 750;
  }

  .day-route li em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
  }

  .map-legend span,
  .map-stop-list em {
    font-size: 11px;
  }

  .day-route li.role-flexible b {
    color: #2473a8;
    background: #fff;
    border: 2px solid #2473a8;
  }

  .day-route.transfer p,
  .day-route.empty p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .day-body {
    padding: 16px 20px 18px;
  }

  .day-photo {
    height: 150px;
  }

  .day-reminders {
    padding: 9px 11px;
  }

  .poi-card {
    padding: 15px;
  }

  .feedback-fab {
    min-width: 142px;
    min-height: 52px;
    padding: 13px 22px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(22, 42, 67, 0.3);
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  .feedback-dialog .feedback-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 12px;
    color: #635844;
    background: #fff7e8;
    border-left: 3px solid #d98717;
    font-size: 12px;
    line-height: 1.55;
  }

  .feedback-consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
  }
}

@media screen and (max-width: 760px) {
  .activity-section {
    width: min(100% - 24px, 1280px);
    padding-top: 38px;
  }

  .decision-panel,
  .flight-section,
  .itinerary-section,
  .cost-section,
  .reality-check,
  .lock-section,
  .fare-section,
  .hotel-section {
    padding-top: 38px;
  }

  .alert-center {
    padding-top: 34px;
  }

  .activity-ledger-head {
    display: grid;
    gap: 8px;
    padding: 14px 15px;
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .activity-item,
  .activity-item:nth-child(2n) {
    min-height: 0;
    padding: 16px 14px;
    border-right: 0;
  }

  .poi-guide > summary,
  .map-toggle {
    align-items: flex-start;
    min-height: 66px;
    padding: 11px 40px 11px 12px;
  }

  .poi-guide > summary > em,
  .map-toggle > em {
    max-width: 118px;
    text-align: right;
  }

  .day-map {
    min-height: 250px;
  }

  .day-reminders {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .feedback-fab {
    right: 12px;
    bottom: 92px;
    min-width: 132px;
    min-height: 48px;
    padding: 11px 18px;
    font-size: 14px;
  }
}

/* v2.0 — keep each city's hotel evidence readable as one full-width group */
@media screen {
  .hotel-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media screen and (max-width: 960px) {
  .hotel-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .hotel-candidate-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* v2.1 — decision-to-execution workbench, per-person ledger and place research links */
@media screen {
  .execution-section {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    padding: 54px 0 8px;
    scroll-margin-top: 78px;
  }

  .execution-heading {
    margin-bottom: 20px;
  }

  .execution-stage-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    color: white;
    background: var(--navy);
    border: 1px solid #243d5d;
    border-radius: 18px 18px 6px 6px;
    box-shadow: 0 18px 44px rgba(22, 42, 67, 0.14);
  }

  .execution-stage {
    display: grid;
    gap: 3px;
    align-content: center;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
  }

  .execution-stage span,
  .execution-stage small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.45;
  }

  .execution-stage strong {
    overflow: hidden;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .execution-stage.active-stage {
    background: rgba(255, 255, 255, 0.07);
    border-style: dashed;
  }

  .execution-stage.active-stage.has-plan {
    background: rgba(11, 139, 143, 0.2);
    border-color: rgba(137, 230, 224, 0.65);
    border-style: solid;
  }

  .execution-stage-arrow {
    display: grid;
    place-items: center;
    color: #90a9c2;
    font-size: 23px;
    font-style: normal;
  }

  .execution-activate,
  .execution-save-actions button,
  .execution-block-head button,
  .execution-coordinate button,
  .execution-custom-actions button {
    min-height: 42px;
    padding: 8px 14px;
    color: var(--navy);
    background: white;
    border: 1px solid #c7d3dd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
  }

  .execution-activate {
    align-self: stretch;
    max-width: 205px;
    color: white;
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
  }

  .execution-activate:disabled {
    color: #b8e2df;
    background: #31546a;
    box-shadow: none;
    cursor: default;
  }

  .execution-status {
    min-height: 42px;
    padding: 10px 16px;
    color: #445550;
    background: #edf3f0;
    border: 1px solid #d1ddd8;
    border-top: 0;
    font-size: 14px;
  }

  .execution-status[data-state="saved"] {
    color: #17615e;
    background: #e5f4f0;
  }

  .execution-status[data-state="dirty"],
  .execution-status[data-state="picking"] {
    color: #7d4a08;
    background: #fff5df;
  }

  .execution-status[data-state="warning"],
  .execution-status[data-state="conflict"],
  .execution-status[data-state="error"] {
    color: #873a2c;
    background: #fff0eb;
  }

  .execution-empty {
    display: grid;
    place-items: center;
    min-height: 130px;
    padding: 26px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 18px 18px;
  }

  .execution-empty[hidden] {
    display: none;
  }

  .execution-empty strong {
    font-family: var(--display);
    font-size: 20px;
  }

  .execution-empty p {
    max-width: 680px;
    margin: 4px 0 0;
    color: var(--muted);
  }

  .execution-workbench {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow);
  }

  .execution-workbench[hidden] {
    display: none;
  }

  .execution-workbench-head {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #f6f9f7;
    border-bottom: 1px solid var(--line);
  }

  .execution-workbench-head span,
  .execution-workbench-head small,
  .execution-block-head span,
  .execution-block-head small,
  .execution-day-title > div > span {
    color: var(--muted);
    font-size: 13px;
  }

  .execution-workbench-head h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 23px;
  }

  .execution-save-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  .execution-save-actions button.primary,
  .execution-block-head button.primary,
  .execution-custom-actions button.primary {
    color: white;
    background: var(--navy);
    border-color: var(--navy);
  }

  .execution-day-tabs {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    padding: 0 12px;
    background: #e7edea;
    scrollbar-width: thin;
  }

  .execution-day-tabs button {
    display: grid;
    flex: 1 0 112px;
    gap: 1px;
    min-height: 76px;
    padding: 9px 11px;
    text-align: left;
    color: #40514d;
    background: transparent;
    border: 0;
    border-bottom: 4px solid transparent;
    cursor: pointer;
  }

  .execution-day-tabs button:hover {
    background: rgba(255, 255, 255, 0.6);
  }

  .execution-day-tabs button.active {
    color: var(--navy);
    background: #fff;
    border-bottom-color: var(--accent);
  }

  .execution-day-tabs span,
  .execution-day-tabs small {
    font-size: 12px;
    line-height: 1.35;
  }

  .execution-day-tabs strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .execution-day-editor {
    padding: 18px;
  }

  .execution-day-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(400px, 1.04fr);
    gap: 18px;
    align-items: start;
  }

  .execution-form-panel {
    display: grid;
    gap: 12px;
  }

  .execution-day-title,
  .execution-block-head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
  }

  .execution-day-title h4,
  .execution-block-head h5 {
    margin: 0;
    color: var(--navy);
    font-family: var(--display);
  }

  .execution-day-title h4 {
    font-size: 21px;
  }

  .execution-block-head h5 {
    font-size: 18px;
  }

  .execution-day-title label,
  .execution-candidate-select,
  .execution-field-grid label,
  .execution-custom-form label {
    display: grid;
    gap: 5px;
  }

  .execution-day-title label {
    flex: 0 0 132px;
  }

  .execution-day-title label span,
  .execution-candidate-select span,
  .execution-field-grid label span,
  .execution-custom-form label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
  }

  .execution-day-title input,
  .execution-candidate-select select,
  .execution-field-grid input,
  .execution-custom-form input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bdcbc5;
    border-radius: 7px;
    font-size: 15px;
  }

  .execution-editor-block {
    display: grid;
    gap: 12px;
    padding: 15px;
    background: #fbfcfb;
    border: 1px solid var(--line);
    border-left: 4px solid #a9bbb4;
    border-radius: 8px;
  }

  .execution-editor-block.hotel-block {
    border-left-color: var(--saffron);
  }

  .execution-editor-block.generated-block {
    border-left-color: var(--accent);
  }

  .execution-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
  }

  .execution-coordinate,
  .execution-custom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
  }

  .execution-coordinate span,
  .execution-custom-actions > span {
    color: #5a6965;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
  }

  .execution-fixed-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .execution-point-chip {
    display: grid;
    gap: 1px;
    padding: 7px 10px;
    background: #fff1ed;
    border: 1px solid #f0c7bb;
    border-radius: 7px;
  }

  .execution-point-chip small {
    color: #78635d;
    font-size: 11px;
  }

  .execution-return {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #3c4d48;
    font-size: 14px;
  }

  .execution-return input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
  }

  .execution-custom-list {
    display: grid;
    gap: 6px;
  }

  .execution-custom-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #eef6fb;
    border: 1px solid #c8deec;
    border-radius: 7px;
  }

  .execution-custom-row > span {
    display: grid;
    min-width: 0;
  }

  .execution-custom-row small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .execution-custom-row button {
    padding: 5px 9px;
    color: #8d4135;
    background: transparent;
    border: 1px solid #e1b9b0;
    border-radius: 6px;
    cursor: pointer;
  }

  .execution-custom-form {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 8px;
  }

  .execution-custom-actions {
    grid-column: 1 / -1;
  }

  .execution-muted,
  .execution-routing-note,
  .execution-map-panel > p,
  .execution-route-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
  }

  .execution-map-panel {
    position: sticky;
    top: 82px;
    overflow: hidden;
    background: #f7faf8;
    border: 1px solid #bdcbc5;
    border-radius: 10px;
  }

  .execution-map-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--navy);
    color: white;
  }

  .execution-map-head > div {
    display: grid;
  }

  .execution-map-head span,
  .execution-map-head small {
    color: #bbcad7;
    font-size: 12px;
  }

  .execution-map-head strong {
    font-size: 14px;
  }

  .execution-map {
    min-height: 520px;
    background: #dce7e1;
  }

  .execution-map.is-picking,
  .execution-map.is-picking .leaflet-interactive {
    cursor: crosshair;
  }

  .execution-map-panel > p {
    padding: 10px 13px;
  }

  .execution-generated-head {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .execution-generated-head span {
    color: var(--muted);
    font-size: 12px;
  }

  .execution-route-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .execution-route-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .execution-route-list li > b {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    color: white;
    background: var(--navy);
    border-radius: 50%;
    font-size: 12px;
  }

  .execution-route-list li > span {
    display: flex;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
  }

  .execution-route-list small {
    color: var(--muted);
    font-size: 12px;
  }

  .execution-guide-notes {
    padding: 11px 12px;
    background: #fff7e8;
    border-left: 3px solid var(--saffron);
  }

  .execution-guide-notes ul {
    margin: 6px 0 0;
    padding-left: 19px;
    color: #594d39;
    font-size: 13px;
    line-height: 1.6;
  }

  .xhs-place-link {
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
    color: inherit;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .xhs-place-link:hover {
    color: #b63f5b;
    text-decoration-color: currentColor;
  }

  .xhs-place-link i {
    color: #c34f69;
    font-family: var(--utility);
    font-size: 0.72em;
    font-style: normal;
    font-weight: 800;
  }

  .map-popup-xhs {
    font-size: 15px;
  }

  .plan-matrix tr.execution-active > th {
    box-shadow: inset 4px 0 0 var(--saffron);
  }

  .plan-matrix tr.execution-active > th::after {
    display: block;
    width: fit-content;
    margin-top: 5px;
    padding: 2px 6px;
    color: #76500f;
    background: #fff1ca;
    border-radius: 4px;
    content: "正在执行";
    font-size: 11px;
    font-weight: 750;
  }

  .cost-breakdown div {
    align-content: start;
  }

  .cost-breakdown div small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
  }

  .calculator-group-total {
    display: inline-flex;
    width: fit-content;
    margin-top: 2px;
    padding: 4px 8px;
    color: #4b5e58;
    background: #e7eeea;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 650;
  }
}

@media screen and (max-width: 1040px) {
  .execution-stage-rail {
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  }

  .execution-activate {
    grid-column: 1 / -1;
    max-width: none;
    min-height: 48px;
  }

  .execution-day-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .execution-map-panel {
    position: static;
  }

  .execution-map {
    min-height: 430px;
  }
}

@media screen and (max-width: 760px) {
  .execution-section {
    width: min(100% - 24px, 1280px);
    padding-top: 38px;
  }

  .execution-stage-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .execution-stage-arrow {
    height: 16px;
    transform: rotate(90deg);
  }

  .execution-workbench-head,
  .execution-day-title,
  .execution-block-head,
  .execution-generated-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .execution-day-title label {
    flex-basis: auto;
  }

  .execution-day-editor {
    padding: 11px;
  }

  .execution-field-grid,
  .execution-custom-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .execution-custom-actions {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .execution-map {
    min-height: 330px;
  }

  .execution-route-list li > span {
    display: grid;
    gap: 0;
  }
}
