:root {
  --ink: #15233a;
  --ink-soft: #526075;
  --indigo: #14233b;
  --indigo-2: #233b61;
  --vermilion: #d84f38;
  --vermilion-dark: #aa3828;
  --gold: #d9a441;
  --paper: #f7f4ec;
  --paper-2: #fffdf8;
  --white: #ffffff;
  --line: #dfe2e2;
  --line-dark: #c8cdd2;
  --green: #2d7357;
  --green-soft: #e6f1ec;
  --orange-soft: #fff0e7;
  --blue-soft: #eaf0f7;
  --shadow: 0 18px 50px rgba(20, 35, 59, 0.1);
  --shadow-soft: 0 8px 25px rgba(20, 35, 59, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 3%, rgba(216, 79, 56, 0.08), transparent 21rem),
    linear-gradient(180deg, #fbfaf6 0, var(--paper) 32rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--indigo);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(20, 35, 59, 0.1);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  min-height: 72px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  padding: 0;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper-2);
  background: var(--vermilion);
  border-radius: 50% 50% 46% 54%;
  box-shadow: inset 0 -5px 0 rgba(94, 26, 19, 0.13);
  font-family: Georgia, serif;
  font-weight: 700;
}

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

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.brand small {
  margin-top: -2px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-button {
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-button:hover,
.nav-button:focus-visible,
.nav-button.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 3px 12px rgba(20, 35, 59, 0.08);
}

.nav-count {
  display: inline-grid;
  min-width: 21px;
  min-height: 21px;
  margin-left: 3px;
  place-items: center;
  color: white;
  background: var(--vermilion);
  border-radius: 999px;
  font-size: 0.7rem;
}

.app-view[hidden] {
  display: none;
}

.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 42px 0 90px;
}

.page-shell--narrow {
  width: min(calc(100% - 40px), 900px);
}

.trip-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 390px;
  overflow: hidden;
  color: white;
  background: var(--indigo);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.trip-hero__copy {
  display: flex;
  padding: clamp(32px, 5vw, 64px);
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 17rem),
    linear-gradient(135deg, var(--indigo), #1d3151);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--vermilion);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.trip-hero .eyebrow {
  color: #ffac91;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.hero-lede {
  max-width: 33rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.03rem;
}

.trip-stats {
  display: flex;
  gap: 14px;
}

.trip-stats div {
  display: flex;
  min-width: 80px;
  padding: 11px 14px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.trip-stats strong {
  font-size: 1.1rem;
}

.trip-stats span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trip-hero__image-wrap {
  position: relative;
  min-height: 390px;
}

.trip-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.trip-hero__image-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 35, 59, 0.55), transparent 28%);
  content: "";
  pointer-events: none;
}

.trip-hero__stickers {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 19px;
  display: flex;
  gap: 6px;
}

.trip-hero__stickers span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(20, 35, 59, 0.12);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 6px 18px rgba(20, 35, 59, 0.2);
  font-family: system-ui, sans-serif;
  font-size: 1.25rem;
}

.trip-hero__stamp {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--indigo);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(20, 35, 59, 0.1);
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(20, 35, 59, 0.25);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trip-hero__stamp span {
  display: block;
  margin-bottom: -11px;
  color: var(--vermilion);
  font-family: Georgia, serif;
  font-size: 1.65rem;
}

.status-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  margin-top: 18px;
  gap: 18px;
}

.status-card {
  display: flex;
  min-height: 92px;
  padding: 19px 22px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

button.status-card {
  width: 100%;
  cursor: pointer;
}

.status-card:hover,
.status-card:focus-visible {
  border-color: #b7bdc3;
  transform: translateY(-1px);
}

.status-card__icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--vermilion-dark);
  background: var(--orange-soft);
  border-radius: 50%;
  font-weight: 900;
}

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

.status-card small {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-card strong {
  line-height: 1.3;
}

.status-card__arrow {
  margin-left: auto;
  color: var(--vermilion);
  font-size: 1.4rem;
}

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

.section-heading > div:first-child {
  max-width: 680px;
}

.section-heading h1,
.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.city-filters {
  display: flex;
  max-width: 100%;
  padding-bottom: 3px;
  overflow-x: auto;
  gap: 7px;
  scrollbar-width: none;
}

.city-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 8px 13px;
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  color: white;
  background: var(--indigo);
  border-color: var(--indigo);
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 57px;
  width: 1px;
  background: linear-gradient(var(--vermilion), var(--line-dark) 12%, var(--line-dark) 88%, var(--indigo));
  content: "";
}

.day-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr;
  margin-bottom: 16px;
}

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

.day-card__rail {
  position: relative;
  z-index: 2;
  padding-top: 22px;
  text-align: center;
}

.day-number {
  display: grid;
  width: 54px;
  height: 54px;
  margin: auto;
  place-items: center;
  color: white;
  background: var(--indigo);
  border: 6px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(20, 35, 59, 0.15);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.day-card[data-city="Tokyo"] .day-number,
.day-card[data-city="Kyoto"] .day-number {
  background: var(--vermilion);
}

.day-card__surface {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.day-card__surface[open] {
  border-color: #c7ccd0;
  box-shadow: 0 13px 35px rgba(20, 35, 59, 0.1);
}

.day-card.is-fixed .day-card__surface {
  border-color: #8eb9a7;
  box-shadow: 0 10px 30px rgba(45, 115, 87, 0.12);
}

.anchor-pill {
  display: inline-flex;
  padding: 4px 8px;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 22px 24px;
  align-items: center;
  gap: 20px;
  list-style: none;
  cursor: pointer;
}

.day-summary::-webkit-details-marker {
  display: none;
}

.day-summary__meta {
  display: flex;
  margin-bottom: 6px;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.city-pill,
.pace-pill {
  display: inline-flex;
  padding: 4px 8px;
  align-items: center;
  border-radius: 999px;
}

.city-pill {
  color: var(--indigo-2);
  background: var(--blue-soft);
}

.pace-pill {
  color: var(--green);
  background: var(--green-soft);
}

.pace-pill--full {
  color: var(--vermilion-dark);
  background: var(--orange-soft);
}

.day-summary h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.58rem);
}

.day-sticker {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-left: 9px;
  vertical-align: middle;
  place-items: center;
  border: 1px solid #f1ddbb;
  border-radius: 12px;
  background: #fff4df;
  font-family: system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.day-summary__hint {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.day-summary__date {
  min-width: 82px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.day-summary__date strong,
.day-summary__date span {
  display: block;
}

.day-summary__date strong {
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.day-summary__date span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.day-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--line);
}

.day-events {
  margin: 0;
  padding: 20px 0 4px;
  list-style: none;
}

.day-picture {
  max-width: 440px;
  margin: 12px 0 18px;
}

.day-picture img {
  display: block;
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 14px;
}

.day-picture figcaption {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.day-event {
  display: grid;
  grid-template-columns: 112px 1fr;
  padding: 12px 0;
  gap: 18px;
}

.day-event + .day-event {
  border-top: 1px dashed var(--line);
}

.day-event__time {
  color: var(--vermilion-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.day-event__title {
  display: block;
  margin-bottom: 2px;
}

.day-event__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.day-actions {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 14px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--indigo);
  border-radius: 11px;
  color: white;
  background: var(--indigo);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  color: white;
  background: var(--indigo-2);
  transform: translateY(-1px);
}

.button--secondary {
  color: var(--indigo);
  background: transparent;
  border-color: var(--line-dark);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  color: var(--indigo);
  background: var(--blue-soft);
}

.button--quiet {
  color: var(--ink-soft);
  background: white;
  border-color: var(--line-dark);
}

.progress-medallion {
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-content: center;
  border: 10px solid var(--orange-soft);
  border-top-color: var(--vermilion);
  border-radius: 50%;
  text-align: center;
}

.progress-medallion strong,
.progress-medallion span {
  display: block;
}

.progress-medallion strong {
  font-family: Georgia, serif;
  font-size: 1.55rem;
}

.progress-medallion span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.notice {
  display: flex;
  padding: 17px 19px;
  align-items: flex-start;
  gap: 13px;
  border-radius: var(--radius-md);
}

.notice > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.notice strong,
.notice p {
  display: block;
}

.notice p {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.notice--important {
  color: #6f2a1f;
  background: var(--orange-soft);
  border: 1px solid #f2c7b8;
}

.notice--important > span {
  color: white;
  background: var(--vermilion);
}

.fixed-anchors {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #b9d2c7;
  border-radius: var(--radius-md);
  background: var(--green-soft);
}

.fixed-anchors__intro,
.fixed-anchor {
  display: flex;
  min-height: 76px;
  padding: 14px 16px;
  align-items: center;
  gap: 11px;
}

.fixed-anchors__intro {
  color: white;
  background: var(--green);
}

.fixed-anchors__intro > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-weight: 900;
}

.fixed-anchors__intro strong,
.fixed-anchors__intro small,
.fixed-anchor b,
.fixed-anchor span {
  display: block;
}

.fixed-anchors__intro small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.fixed-anchor + .fixed-anchor {
  border-left: 1px solid #b9d2c7;
}

.fixed-anchor b {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fixed-anchor span {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
}

.notice--rail {
  margin-top: 22px;
  color: #243e65;
  background: var(--blue-soft);
  border: 1px solid #c9d6e6;
}

.notice--rail > span {
  color: white;
  background: var(--indigo-2);
}

.booking-scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 26px 0 12px;
  gap: 9px;
}

.booking-scope button {
  display: grid;
  min-height: 82px;
  padding: 11px 10px;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.booking-scope button > span {
  font-size: 1.12rem;
}

.booking-scope button b {
  display: grid;
  min-width: 23px;
  min-height: 23px;
  margin-top: 2px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #eef0f1;
  font-size: 0.7rem;
}

.booking-scope button:hover,
.booking-scope button:focus-visible {
  border-color: #aab4c0;
  background: white;
}

.booking-scope button.is-active {
  color: white;
  background: var(--indigo);
  border-color: var(--indigo);
  box-shadow: var(--shadow-soft);
}

.booking-scope button.is-active b {
  color: white;
  background: var(--vermilion);
}

.booking-toolbar {
  display: flex;
  margin: 26px 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.segmented-control button {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button.is-active {
  color: white;
  background: var(--indigo);
}

.toolbar-summary {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.booking-group {
  margin: 25px 0;
}

.booking-group__title {
  display: flex;
  margin: 0 0 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.booking-group__title span {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  background: #eceff0;
  border-radius: 50%;
}

.booking-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 86px;
  padding: 17px 18px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.booking-item:first-of-type {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.booking-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.booking-item:only-child {
  border-radius: var(--radius-md);
}

.booking-item + .booking-item {
  margin-top: -1px;
}

.booking-item.is-done {
  opacity: 0.7;
  background: #f4f6f4;
}

.booking-item.is-done .booking-item__title {
  text-decoration: line-through;
}

.check-control {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
}

.check-control input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check-control span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #aab1b9;
  border-radius: 8px;
  color: transparent;
  background: white;
  font-size: 0.85rem;
  font-weight: 900;
}

.check-control input:checked + span {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.check-control input:focus-visible + span {
  outline: 3px solid rgba(35, 59, 97, 0.25);
  outline-offset: 2px;
}

.booking-item__meta {
  display: flex;
  margin-bottom: 5px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.booking-item__title {
  display: block;
  margin-bottom: 3px;
  line-height: 1.35;
}

.booking-item__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.urgency-badge,
.category-badge {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.urgency-badge--urgent {
  color: #8c2f21;
  background: #ffe2d6;
}

.urgency-badge--soon {
  color: #72510f;
  background: #fff0c9;
}

.urgency-badge--timed {
  color: #274d76;
  background: #e2ecf7;
}

.urgency-badge--done {
  color: var(--green);
  background: var(--green-soft);
}

.category-badge {
  color: var(--ink-soft);
  background: #eef0f1;
}

.booking-item__link {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 11px;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  color: var(--indigo-2);
  background: white;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.booking-item__link:hover,
.booking-item__link:focus-visible {
  background: var(--blue-soft);
  border-color: #91a6be;
}

.booking-empty {
  padding: 40px 20px;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  text-align: center;
}

.booking-footnote {
  margin-top: 35px;
  padding: 20px;
  border-top: 1px solid var(--line-dark);
  color: var(--ink-soft);
}

.booking-footnote strong {
  color: var(--ink);
}

.booking-footnote p {
  margin: 5px 0 0;
}

.route-map-card {
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
}

.route-map {
  display: block;
  width: 100%;
  height: auto;
}

.route-map__mobile-key {
  display: none;
}

.land-hint {
  fill: none;
  stroke: rgba(35, 59, 97, 0.13);
  stroke-width: 42;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-line-shadow {
  fill: none;
  stroke: white;
  stroke-width: 18;
  stroke-linecap: round;
}

.route-line {
  fill: none;
  stroke: url(#routeStroke);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1 0;
}

.map-stop circle:first-child {
  fill: white;
  stroke: var(--indigo);
  stroke-width: 3;
}

.map-stop circle:nth-child(2) {
  fill: var(--vermilion);
}

.map-stop text {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.map-stop .map-nights {
  fill: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.route-legs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  gap: 14px;
}

.route-leg {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  padding: 20px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
}

.route-leg__number {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: white;
  background: var(--indigo);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 800;
}

.route-leg__copy {
  min-width: 0;
}

.route-leg__copy strong,
.route-leg__copy span {
  display: block;
}

.route-leg__copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.route-leg__map {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--indigo-2);
  background: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.packing-progress {
  width: 220px;
  flex: 0 0 auto;
}

.packing-progress__track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #e0e3e3;
  border-radius: 999px;
}

.packing-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--vermilion), var(--gold));
  border-radius: inherit;
  transition: width 0.25s ease;
}

.packing-progress strong {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: right;
}

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

.packing-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.packing-group__head {
  display: flex;
  padding: 17px 18px;
  align-items: center;
  gap: 11px;
  color: white;
  background: var(--indigo);
}

.packing-group__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.packing-group__head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 0.94rem;
  letter-spacing: 0;
}

.packing-group__head span:last-child {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
}

.packing-group__list {
  margin: 0;
  padding: 7px 17px 13px;
  list-style: none;
}

.packing-item {
  border-bottom: 1px dashed var(--line);
}

.packing-item:last-child {
  border-bottom: 0;
}

.packing-item label {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 11px 1px;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.packing-item input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.packing-item input:checked + span {
  color: var(--ink-soft);
  text-decoration: line-through;
}

.packing-item span {
  font-size: 0.9rem;
}

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

.packing-actions p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.mobile-nav {
  display: none;
}

.auth-gate {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: var(--paper);
}
.auth-gate[hidden] { display: none; }
.auth-card { width: min(100%, 440px); padding: 38px; border-radius: var(--radius-xl); background: white; box-shadow: var(--shadow); text-align: center; }
.auth-card .brand__mark { margin: 0 auto 14px; }
.auth-card h1 { font-family: Georgia, serif; }
.auth-card p { color: var(--ink-soft); }
.trip-overview { margin: 30px 0; }
.trip-overview h2 { font-family: Georgia, serif; }
.overview-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; }
.overview-card, .document-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-2); }
.overview-card strong, .overview-card span, .overview-card small { display: block; }
.overview-card strong { margin-top: 8px; }
.overview-card p { margin: 7px 0 0; }
.overview-card small { color: var(--green); font-weight: 700; }
.document-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.document-form label, .edit-dialog label, .seed-import label { display: grid; gap: 5px; color: var(--ink-soft); font-size: .85rem; font-weight: 700; }
.document-form input, .document-form select, .document-form textarea, .edit-dialog input, .edit-dialog select, .edit-dialog textarea, .seed-import input { width: 100%; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 9px; background: white; color: var(--ink); }
.document-form > label:nth-child(n+7), .document-form .button, .document-form .form-help { grid-column: 1 / -1; }
.ai-consent { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: 10px !important; }
.ai-consent input { width: auto; margin-top: 5px; }
.extraction-details { display: grid; grid-template-columns: minmax(100px, 0.35fr) 1fr; gap: 6px 12px; }
.extraction-details dt { color: var(--ink-soft); font-weight: 800; }
.extraction-details dd { margin: 0; overflow-wrap: anywhere; }
.document-file { display: block; margin-top: 5px; }
.booking-file-count, .document-booking { display: block; color: var(--green); font-size: .78rem; font-weight: 700; }
.form-help, .empty-state { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.documents-list { display: grid; gap: 10px; margin-top: 18px; }
.document-card { display: flex; justify-content: space-between; gap: 14px; }
.document-card h2 { margin: 8px 0 4px; font-size: 1.05rem; }
.document-card p { margin: 0 0 5px; color: var(--ink-soft); }
.document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.document-form button:disabled { opacity: .55; }
.seed-import, .history-panel { margin-top: 20px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.seed-import summary, .history-panel summary { cursor: pointer; font-weight: 800; }
.seed-import p, #history-list p { color: var(--ink-soft); }
.history-panel button { margin-left: 8px; }
.edit-dialog { width: min(calc(100% - 24px), 620px); max-height: 90vh; padding: 24px; border: 0; border-radius: var(--radius-lg); box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.edit-dialog::backdrop { background: rgba(13, 25, 43, .64); }
.edit-dialog form { display: grid; gap: 13px; }
.edit-dialog h2 { margin: 0; font-family: Georgia, serif; }
.edit-dialog label small { font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.booking-edit { align-self: center; margin-left: auto; }

.noscript {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 15px;
  color: white;
  background: var(--vermilion-dark);
  border-radius: 12px;
  text-align: center;
}

:focus-visible {
  outline: 3px solid rgba(216, 79, 56, 0.35);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .page-shell {
    padding-top: 28px;
  }

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

  .trip-hero__copy {
    min-height: 330px;
  }

  .trip-hero__image-wrap {
    min-height: 300px;
  }

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

  .section-heading--controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .city-filters {
    width: 100%;
  }

  .route-legs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 74px;
  }

  .topbar__inner {
    width: min(calc(100% - 28px), var(--content));
    min-height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .page-shell,
  .page-shell--narrow {
    width: min(calc(100% - 24px), var(--content));
    padding-top: 18px;
    padding-bottom: 35px;
  }

  .trip-hero {
    border-radius: 22px;
  }

  .trip-hero__copy {
    min-height: 0;
    padding: 29px 24px 27px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-lede {
    margin-bottom: 23px;
    font-size: 0.96rem;
  }

  .trip-stats {
    gap: 8px;
  }

  .trip-stats div {
    min-width: 0;
    padding: 9px 11px;
    flex: 1;
  }

  .trip-hero__image-wrap {
    min-height: 230px;
  }

  .trip-hero__image-wrap::after {
    background: linear-gradient(180deg, rgba(20, 35, 59, 0.38), transparent 25%);
  }

  .trip-hero__stamp {
    right: 14px;
    bottom: 14px;
    width: 66px;
    height: 66px;
  }

  .status-card {
    min-height: 82px;
    padding: 15px 17px;
  }

  .section-heading {
    margin: 44px 0 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

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

  .day-card__rail {
    padding-top: 18px;
  }

  .day-number {
    width: 41px;
    height: 41px;
    border-width: 5px;
    font-size: 0.88rem;
  }

  .day-card__surface {
    border-radius: 16px;
  }

  .day-summary {
    grid-template-columns: 1fr;
    padding: 17px 17px 16px;
    gap: 10px;
  }

  .day-summary__date {
    display: flex;
    padding: 0;
    align-items: baseline;
    gap: 5px;
    border: 0;
    text-align: left;
    grid-row: 1;
  }

  .day-summary__date strong,
  .day-summary__date span {
    display: inline;
  }

  .day-summary__date strong {
    font-size: 1rem;
  }

  .day-summary__hint {
    display: none;
  }

  .day-body {
    padding: 0 17px 17px;
  }

  .day-event {
    grid-template-columns: 1fr;
    padding: 12px 0;
    gap: 4px;
  }

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

  .button {
    padding-inline: 10px;
  }

  .section-heading--bookings,
  .section-heading--packing {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .section-heading--bookings > div:first-child,
  .section-heading--packing > div:first-child {
    grid-column: 1 / -1;
  }

  .progress-medallion {
    display: none;
  }

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

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

  .booking-scope button {
    min-height: 72px;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
    padding-inline: 8px;
  }

  .booking-item {
    grid-template-columns: auto 1fr;
    padding: 15px;
  }

  .booking-item__link {
    grid-column: 2;
    width: fit-content;
  }

  .fixed-anchors {
    grid-template-columns: 1fr;
  }

  .fixed-anchors__intro {
    min-height: 70px;
  }

  .fixed-anchor {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    min-height: 66px;
    border-top: 1px solid #b9d2c7;
  }

  .fixed-anchor + .fixed-anchor {
    border-left: 0;
  }

  .route-map-card {
    margin-right: -12px;
    margin-left: -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .route-map {
    min-width: 0;
    transform: none;
  }

  .route-map__mobile-key {
    display: block;
    margin: 8px 10px 4px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .route-map__mobile-key b {
    color: var(--ink);
    font-weight: 800;
  }

  .route-leg {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
  }

  .route-leg__map {
    grid-column: 2;
    width: fit-content;
  }

  .packing-progress {
    width: 100%;
    grid-column: 1 / -1;
  }

  .packing-progress strong {
    text-align: left;
  }

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

  .packing-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 10px;
    bottom: 9px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(20, 35, 59, 0.96);
    box-shadow: 0 12px 35px rgba(20, 35, 59, 0.28);
    backdrop-filter: blur(15px);
  }

  .mobile-nav button {
    display: flex;
    min-height: 49px;
    padding: 5px 3px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    border: 0;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    font-size: 0.67rem;
    font-weight: 800;
  }

  .mobile-nav button span {
    font-size: 1.03rem;
  }

  .mobile-nav button.is-active {
    color: white;
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 390px) {
  .brand small {
    display: none;
  }

  .trip-stats div {
    padding-inline: 8px;
  }

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

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

  .day-number {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .day-summary__meta {
    flex-wrap: wrap;
  }

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

@media (max-width: 600px) {
  .document-form { grid-template-columns: 1fr; }
  .document-form > label, .document-form .button, .document-form .form-help { grid-column: 1; }
  .document-card { flex-direction: column; }
  .document-actions { justify-content: flex-start; }
  .booking-edit { margin-left: 4px; }
}

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