: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: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
}

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,
.version-picker {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 24px;
}

.version-picker {
  gap: 9px;
  color: #b9c9d4;
  font-size: 11px;
}

.version-picker select {
  max-width: 210px;
  padding: 7px 30px 7px 10px;
  color: white;
  background: #203851;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

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

.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-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 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: 1fr 130px 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;
}

.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: 18px;
}

.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;
  }

  .version-picker {
    width: 100%;
  }

  .version-picker select {
    flex: 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: 1fr 110px 32px;
  }

  .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;
  }
}
