:root {
  color-scheme: dark;
  --ink: #0b0d0f;
  --ink-raised: #111417;
  --panel: #15191d;
  --panel-strong: #1a1f24;
  --paper: #f3efe7;
  --paper-soft: #d7d2c9;
  --quiet: #92999f;
  --hairline: #293038;
  --gold: #c89b5b;
  --gold-soft: #2b2319;
  --sage: #72aa98;
  --sage-soft: #172722;
  --coral: #dc806f;
  --background: var(--ink);
  --foreground: var(--paper);
  --card: var(--panel);
  --card-foreground: var(--paper);
  --popover: var(--panel-strong);
  --popover-foreground: var(--paper);
  --primary: var(--gold);
  --primary-foreground: #17110a;
  --secondary: var(--panel-strong);
  --secondary-foreground: var(--paper);
  --muted: #1b2025;
  --muted-foreground: var(--quiet);
  --accent: var(--gold-soft);
  --accent-foreground: #edc78e;
  --destructive: var(--coral);
  --border: var(--hairline);
  --input: #22282e;
  --ring: #e5b974;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 24%);
  --shadow-panel: 0 22px 60px rgb(0 0 0 / 22%);
  --viz-series-1: var(--gold);
  --viz-series-2: #d6865d;
  --viz-series-3: var(--sage);
  --viz-series-4: #ba85a8;
  --viz-series-5: #8e86c7;
  --viz-series-6: #5f9aaa;
}

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

html > body {
  min-width: 300px;
  padding: 0;
  color: var(--paper);
  background: var(--ink) !important;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 26rem;
  background: radial-gradient(circle at 75% -40%, rgb(200 155 91 / 13%), transparent 63%);
  content: "";
  pointer-events: none;
}

::selection {
  color: #160f08;
  background: #e6bd81;
}

a {
  color: #e1b878;
  text-decoration-color: rgb(225 184 120 / 42%);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #f1d09d;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring) !important;
  outline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

#europe-trip-dashboard,
main.shell {
  display: grid;
  grid-template-columns: 11.25rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: start;
  width: min(100% - clamp(1.25rem, 4vw, 5rem), 1480px);
  max-width: 1480px;
  margin-inline: auto;
  padding: clamp(1rem, 2.4vw, 2.4rem) 0 clamp(4rem, 7vw, 7rem);
}

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

#europe-trip-dashboard .page-tabs,
main.shell .page-tabs {
  position: sticky;
  top: 2rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.25rem;
  min-height: 0;
  margin: 0;
  padding: 0.45rem;
  border: 1px solid #2a3036;
  border-radius: 14px;
  background: #111417;
  box-shadow: 0 14px 38px rgb(0 0 0 / 28%);
}

#europe-trip-dashboard .page-tabs .nav-brand,
main.shell .page-tabs .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: max-content;
  margin: 0.55rem 0.6rem 1rem;
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-brand svg {
  width: 1.1rem;
  color: var(--gold);
}

#europe-trip-dashboard .page-tabs a,
main.shell .page-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--quiet);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

#europe-trip-dashboard .page-tabs a:hover,
main.shell .page-tabs a:hover {
  color: var(--paper);
  background: #1a1e22;
}

#europe-trip-dashboard .page-tabs a[aria-current="page"],
main.shell .page-tabs a[aria-current="page"] {
  color: #17110a;
  background: var(--gold);
  box-shadow: inset 0 1px rgb(255 255 255 / 24%);
}

.page-tabs svg,
.jump-links svg,
.section-kicker svg,
.btn svg,
.viz-badge svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

#europe-trip-dashboard .version-banner {
  max-width: 60rem;
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--quiet);
  background: transparent;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

#europe-trip-dashboard .version-banner strong {
  color: var(--sage);
  font-weight: 650;
}

#europe-trip-dashboard header.trip-hero,
main.shell header.trip-hero {
  margin: 0 0 clamp(2.6rem, 6vw, 6rem);
  padding: clamp(1rem, 2vw, 2rem) 0 0;
}

.trip-hero .eyebrow,
.section-kicker,
main.shell .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#europe-trip-dashboard .trip-hero h1,
main.shell .trip-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8.2vw, 8.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.trip-hero h1 em {
  color: #e5dfd4;
  font-weight: 400;
}

.trip-date {
  margin: 1.35rem 0 0;
  color: var(--paper-soft);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

#europe-trip-dashboard .route-string,
main.shell .lede {
  max-width: 75rem;
  margin: 1rem 0 1.8rem;
  color: var(--quiet);
  font-size: clamp(0.84rem, 1.2vw, 1rem);
  font-weight: 450;
}

#europe-trip-dashboard .route-string strong {
  color: inherit;
  font-weight: inherit;
}

#europe-trip-dashboard .trip-hero > .text-small:first-child {
  display: none;
}

#europe-trip-dashboard .trip-hero .viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: clamp(1.8rem, 4vw, 3.7rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--hairline);
  box-shadow: var(--shadow-panel);
}

#europe-trip-dashboard .trip-hero .card.viz-stat {
  min-height: 9.2rem;
  padding: 1.25rem;
  border: 0;
  border-radius: 0;
  background: var(--ink-raised);
  box-shadow: none;
}

#europe-trip-dashboard .trip-hero .viz-stat-value {
  margin-block: auto 0.2rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

#europe-trip-dashboard .trip-hero .quick-facts {
  margin-top: 1rem;
}

#europe-trip-dashboard .quick-facts .viz-badge,
main.shell .pill {
  border: 1px solid var(--hairline);
  color: var(--paper-soft);
  background: transparent;
}

#europe-trip-dashboard .jump-links {
  position: sticky;
  top: 1rem;
  z-index: 35;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  overflow-x: auto;
  margin: 0 0 clamp(2.5rem, 5vw, 4.8rem);
  padding: 0.35rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--ink-raised);
  scrollbar-width: none;
}

#europe-trip-dashboard .jump-links::-webkit-scrollbar {
  display: none;
}

#europe-trip-dashboard .jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: max-content;
  padding: 0.7rem 0.78rem;
  border-radius: 8px;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

#europe-trip-dashboard .jump-links a:hover,
#europe-trip-dashboard .jump-links a.is-active {
  color: var(--paper);
  background: var(--panel-strong);
}

#europe-trip-dashboard header,
#europe-trip-dashboard section,
#europe-trip-dashboard footer,
main.shell header,
main.shell section,
main.shell footer {
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

#europe-trip-dashboard section,
main.shell section {
  scroll-margin-top: 10rem;
}

#europe-trip-dashboard .section-head,
main.shell section > h2 {
  align-items: end;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline);
}

#europe-trip-dashboard .section-head h2,
main.shell section > h2 {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

#europe-trip-dashboard h3,
main.shell h3 {
  color: var(--paper);
  font-weight: 620;
}

#europe-trip-dashboard .text-muted,
main.shell .muted {
  color: var(--quiet);
}

#europe-trip-dashboard .text-small,
main.shell .small {
  font-size: 0.76rem;
  line-height: 1.55;
}

#europe-trip-dashboard .card,
main.shell .card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--paper-soft);
  background: var(--panel);
  box-shadow: 0 1px 0 rgb(255 255 255 / 2%) inset, var(--shadow-sm);
}

#europe-trip-dashboard .viz-badge,
main.shell .tag,
main.shell .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

main.shell .tag {
  border: 1px solid rgb(114 170 152 / 42%);
  color: #a9d6c7;
  background: var(--sage-soft);
}

main.shell .tag.tag-muted {
  border-color: var(--hairline);
  color: var(--paper-soft);
  background: var(--panel-strong);
}

#europe-trip-dashboard .btn,
#europe-trip-dashboard .form-select,
#europe-trip-dashboard .form-control,
main.shell button {
  min-height: 2.45rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--paper-soft);
  background: var(--panel-strong);
  box-shadow: none;
}

#europe-trip-dashboard .btn:hover,
main.shell button:hover {
  border-color: #4b535b;
  color: var(--paper);
  background: #20262b;
}

#europe-trip-dashboard .btn.btn-primary,
#europe-trip-dashboard .btn[aria-pressed="true"],
main.shell button[aria-pressed="true"] {
  border-color: var(--gold);
  color: #17110a;
  background: var(--gold);
}

#europe-trip-dashboard .map-shell {
  overflow: hidden;
  min-height: 18rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: #0f1214;
}

#europe-trip-dashboard #route-map {
  min-height: 18rem;
}

#europe-trip-dashboard .map-sphere {
  fill: #0f1214;
  stroke: var(--hairline);
}

#europe-trip-dashboard .map-country {
  fill: #1c2125;
  stroke: #343b41;
}

#europe-trip-dashboard .map-label {
  fill: var(--paper-soft);
  stroke: var(--ink);
}

#europe-trip-dashboard .map-detail {
  padding: 1rem 1.15rem;
  background: var(--ink-raised);
}

#europe-trip-dashboard .map-detail .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#europe-trip-dashboard .trip-timeline {
  display: grid;
  gap: 0.7rem;
}

#europe-trip-dashboard .trip-timeline::before {
  inset-inline-start: 8rem;
  background: #333a40;
}

#europe-trip-dashboard .timeline-stop {
  grid-template-columns: 7rem 1.25rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0;
}

#europe-trip-dashboard .timeline-date {
  padding-top: 1.15rem;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

#europe-trip-dashboard .timeline-dot {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 1.32rem;
  border: 2px solid var(--ink);
  background: var(--gold);
}

#europe-trip-dashboard .timeline-copy {
  padding: 1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-raised);
  transition: border-color 160ms ease, transform 160ms ease;
}

#europe-trip-dashboard .timeline-copy:hover {
  border-color: #434b52;
  transform: translateY(-1px);
}

#europe-trip-dashboard .timeline-copy h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

#europe-trip-dashboard details {
  margin-top: 0.65rem;
  border-top: 1px solid var(--hairline);
}

#europe-trip-dashboard summary {
  padding: 0.65rem 0 0;
  color: #d9b478;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
}

#europe-trip-dashboard details ul {
  margin-bottom: 0.25rem;
  padding-left: 1.1rem;
  color: #b8b8b4;
}

#europe-trip-dashboard details li + li {
  margin-top: 0.45rem;
}

#europe-trip-dashboard table,
main.shell table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-raised);
}

#europe-trip-dashboard caption {
  padding: 0 0 0.8rem;
  color: var(--quiet);
  font-size: 0.74rem;
}

#europe-trip-dashboard th,
main.shell th {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--quiet);
  background: #121619;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#europe-trip-dashboard td,
main.shell td {
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid #242a2f;
  color: #bfc0bd;
  background: transparent;
}

#europe-trip-dashboard tbody tr:last-child td,
main.shell tbody tr:last-child td {
  border-bottom: 0;
}

#europe-trip-dashboard tbody tr,
main.shell tbody tr {
  transition: background-color 140ms ease, opacity 140ms ease;
}

#europe-trip-dashboard tbody tr:hover,
main.shell tbody tr:hover {
  background: #191e22;
}

#europe-trip-dashboard td strong,
main.shell td strong {
  color: var(--paper);
}

#europe-trip-dashboard tfoot td {
  border-top: 1px solid #4b5156;
  color: var(--paper);
  background: #161b1f;
}

.checklist-toolbar {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.2rem;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-raised);
}

.checklist-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: var(--paper-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.checklist-progress {
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: #262d32;
}

.checklist-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
  transition: width 220ms ease;
}

.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.task-check-head,
.task-check-cell {
  width: 3.4rem !important;
  min-width: 3.4rem;
  text-align: center !important;
}

.task-check-placeholder {
  color: #555d64 !important;
}

.task-check {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.task-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.task-check > span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #555d64;
  border-radius: 50%;
  background: #111417;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.checklist-empty-state {
  margin: 0 0 1.2rem;
  padding: 1rem;
  border: 1px dashed #414950;
  border-radius: var(--radius);
  color: var(--paper-soft);
  background: var(--ink-raised);
}

.task-check > span::before {
  color: #10211b;
  content: "✓";
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 140ms ease, transform 140ms ease;
}

.task-checkbox:focus-visible + span {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.task-checkbox:checked + span {
  border-color: var(--sage);
  background: var(--sage);
}

.task-checkbox:checked + span::before {
  opacity: 1;
  transform: scale(1);
}

.checklist-item.is-complete td:not(.task-check-cell),
.checklist-item.is-complete > :not(.task-check) {
  opacity: 0.7;
}

.checklist-item.is-complete td strong,
.checklist-item.is-complete > strong {
  text-decoration: line-through;
  text-decoration-color: rgb(114 170 152 / 72%);
}

#europe-trip-dashboard .action-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

#europe-trip-dashboard .action-list li {
  position: relative;
  min-height: 8rem;
  padding: 1rem 1rem 1rem 3.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: #aaaead;
  background: var(--ink-raised);
}

#europe-trip-dashboard .action-list .task-check-list {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

#europe-trip-dashboard .action-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--paper);
}

#europe-trip-dashboard .budget-row {
  grid-template-columns: 10rem minmax(0, 1fr) 8rem;
  padding: 0.45rem 0;
}

#europe-trip-dashboard .budget-track {
  height: 0.52rem;
  background: #242a2f;
}

#europe-trip-dashboard .budget-max {
  background: rgb(200 155 91 / 28%);
}

#europe-trip-dashboard .budget-min {
  background: var(--gold);
}

#europe-trip-dashboard .gear-flow li {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--ink-raised);
}

#europe-trip-dashboard .gear-flow li.checklist-item {
  padding-left: 3.1rem;
}

#europe-trip-dashboard .gear-flow .task-check-list {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

#europe-trip-dashboard .footer-note,
main.shell footer {
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  color: var(--quiet);
}

main.shell .decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-color: rgb(200 155 91 / 48%);
  background: var(--gold-soft);
}

main.shell .decision p,
main.shell .risk-card p,
main.shell .arrow {
  color: var(--quiet);
}

main.shell .big {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
}

main.shell .cost-grid,
main.shell .route-grid,
main.shell .risk-grid {
  gap: 0.7rem;
}

main.shell .cost-card,
main.shell .route-card,
main.shell .risk-card,
main.shell .normalization {
  padding: 1.1rem;
}

main.shell .cost-value {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

main.shell .bar {
  background: #252b30;
}

main.shell .bar span {
  background: var(--gold);
}

main.shell .route .stop {
  border-color: var(--hairline);
  color: var(--paper-soft);
  background: #191e22;
}

main.shell .best {
  color: #a9d6c7;
  background: rgb(23 39 34 / 54%);
}

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

@media (max-width: 1120px) {
  #europe-trip-dashboard,
  main.shell {
    grid-template-columns: minmax(0, 1fr);
  }

  #europe-trip-dashboard .page-tabs,
  main.shell .page-tabs {
    top: 0;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    margin-bottom: 2.5rem;
    scrollbar-width: none;
    box-shadow:
      -3rem 0 0 var(--ink),
      3rem 0 0 var(--ink),
      0 14px 38px rgb(0 0 0 / 28%);
  }

  #europe-trip-dashboard .page-tabs .nav-brand,
  main.shell .page-tabs .nav-brand {
    margin: 0 0.6rem;
  }

  #europe-trip-dashboard .page-tabs a,
  main.shell .page-tabs a {
    justify-content: center;
    min-width: max-content;
  }

  #europe-trip-dashboard .jump-links {
    top: 4rem;
    box-shadow:
      -3rem 0 0 var(--ink),
      3rem 0 0 var(--ink);
  }

  #europe-trip-dashboard .trip-hero .viz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #europe-trip-dashboard .trip-hero .card.viz-stat:nth-child(5):last-child {
    grid-column: 1 / -1;
    min-height: 7rem;
  }
}

@media (max-width: 760px) {
  #europe-trip-dashboard,
  main.shell {
    width: min(100% - 1.2rem, 1480px);
    padding-top: 0.6rem;
  }

  #europe-trip-dashboard .page-tabs,
  main.shell .page-tabs {
    top: 0;
    overflow-x: auto;
    margin-bottom: 2.4rem;
    border-radius: 12px;
    scrollbar-width: none;
  }

  #europe-trip-dashboard .page-tabs .nav-brand,
  main.shell .page-tabs .nav-brand {
    margin-inline: 0.1rem 0.2rem;
    font-size: 0;
  }

  .nav-brand svg {
    width: 1.15rem;
  }

  #europe-trip-dashboard .page-tabs a,
  main.shell .page-tabs a {
    min-width: max-content;
    gap: 0.32rem;
    padding-inline: 0.5rem;
    font-size: 0.72rem;
  }

  #europe-trip-dashboard .trip-hero h1,
  main.shell .trip-hero h1 {
    font-size: clamp(3.25rem, 17vw, 5.5rem);
  }

  #europe-trip-dashboard .trip-hero .viz-grid {
    grid-template-columns: 1fr 1fr;
  }

  #europe-trip-dashboard .trip-hero .card.viz-stat {
    min-height: 6.3rem;
    padding: 0.8rem;
  }

  #europe-trip-dashboard .trip-hero .card.viz-stat:last-child {
    min-height: 6.3rem;
  }

  #europe-trip-dashboard .trip-hero .viz-stat-value {
    margin-block: 0.55rem 0.15rem;
  }

  #europe-trip-dashboard .jump-links {
    top: 3.95rem;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    overflow-x: visible;
  }

  #europe-trip-dashboard .jump-links a {
    grid-column: span 3;
    justify-content: center;
    min-width: 0;
    padding-inline: 0.3rem;
    white-space: nowrap;
  }

  #europe-trip-dashboard .jump-links a:nth-child(n + 5) {
    grid-column: span 4;
  }

  #europe-trip-dashboard section {
    scroll-margin-top: 11.5rem;
  }

  #europe-trip-dashboard .timeline-stop {
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  #europe-trip-dashboard .trip-timeline::before {
    inset-inline-start: 0.35rem;
  }

  #europe-trip-dashboard .timeline-date {
    grid-column: 2;
    padding: 0 0 0.2rem;
    text-align: left;
  }

  #europe-trip-dashboard .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 0.25rem;
  }

  #europe-trip-dashboard .timeline-copy {
    grid-column: 2;
    padding: 0.9rem;
  }

  .checklist-toolbar {
    grid-template-columns: 1fr;
  }

  .checklist-actions {
    justify-content: flex-start;
  }

  #europe-trip-dashboard .action-list {
    grid-template-columns: 1fr;
  }

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

  #europe-trip-dashboard .gear-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  #europe-trip-dashboard table,
  #europe-trip-dashboard thead,
  #europe-trip-dashboard tbody,
  #europe-trip-dashboard tfoot,
  #europe-trip-dashboard tr,
  #europe-trip-dashboard th,
  #europe-trip-dashboard td {
    display: block;
    width: 100%;
  }

  #europe-trip-dashboard table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  #europe-trip-dashboard thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  #europe-trip-dashboard tbody {
    display: grid;
    gap: 0.55rem;
  }

  #europe-trip-dashboard tr {
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--ink-raised);
  }

  #europe-trip-dashboard td {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.22rem 0;
    border: 0;
    background: transparent;
  }

  #europe-trip-dashboard td::before {
    content: attr(data-label);
    color: var(--quiet);
    font-size: 0.66rem;
    font-weight: 600;
  }

  #europe-trip-dashboard .task-check-cell {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: block;
    min-width: 1.75rem;
    width: 1.75rem !important;
    padding: 0;
  }

  #europe-trip-dashboard .task-check-cell::before {
    display: none;
  }

  #europe-trip-dashboard .task-check-placeholder {
    display: none !important;
  }

  #europe-trip-dashboard tr:not(.checklist-item) {
    padding-left: 0.75rem;
  }

  #europe-trip-dashboard tfoot tr {
    padding-left: 0.75rem;
  }

  main.shell .table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  main.shell .table-shell table,
  main.shell .table-shell tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  main.shell .table-shell thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  main.shell .table-shell tbody {
    display: grid;
    gap: 0.7rem;
  }

  main.shell .table-shell tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: var(--ink-raised);
  }

  main.shell .table-shell td {
    display: grid;
    grid-template-columns: 6.8rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--hairline);
  }

  main.shell .table-shell td:first-child {
    display: block;
    width: auto;
    color: var(--paper);
    background: var(--panel-strong);
  }

  main.shell .table-shell td:nth-child(2)::before,
  main.shell .table-shell td:nth-child(3)::before {
    color: var(--quiet);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  main.shell .table-shell td:nth-child(2)::before {
    content: "Original plan";
  }

  main.shell .table-shell td:nth-child(3)::before {
    content: "Trip plan";
  }

  main.shell .table-shell td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  #europe-trip-dashboard .map-shell,
  #europe-trip-dashboard #route-map {
    min-height: 0;
  }

  #europe-trip-dashboard #route-map {
    aspect-ratio: 1000 / 460;
  }

  #europe-trip-dashboard #route-map .map-label,
  #europe-trip-dashboard #route-map .map-panel-label {
    display: none;
  }
}

@media (max-width: 370px) {
  #europe-trip-dashboard .page-tabs,
  main.shell .page-tabs {
    gap: 0.05rem;
    padding-inline: 0.25rem;
  }

  #europe-trip-dashboard .page-tabs a,
  main.shell .page-tabs a {
    gap: 0;
    padding-inline: 0.35rem;
    font-size: 0.68rem;
  }

  #europe-trip-dashboard .page-tabs a svg,
  main.shell .page-tabs a svg {
    display: none;
  }

  #europe-trip-dashboard .jump-links a {
    gap: 0;
    font-size: 0.68rem;
  }

  #europe-trip-dashboard .jump-links a svg {
    display: none;
  }
}

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