:root {
  --cream-50: #fff8f3;
  --cream-100: #ffe9de;
  --cream-200: #f8d5c7;
  --paper: #fffdfb;
  --ink: #334052;
  --ink-soft: #687487;
  --sage: #79aec8;
  --sage-dark: #387b97;
  --sage-soft: #dceff8;
  --teal: #2f829f;
  --teal-soft: #d9f0f7;
  --coral: #ee8d75;
  --coral-soft: #ffe0d5;
  --gold: #dfaa55;
  --gold-soft: #fff0cf;
  --red: #a94f55;
  --red-soft: #ffe2df;
  --line: #e9c9bd;
  --line-strong: #d9ac9d;
  --shadow: 0 14px 34px rgba(105, 76, 76, 0.1);
  --shadow-soft: 0 5px 16px rgba(90, 91, 110, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --page-gutter: 16px;
  --header-height: 70px;
  --nav-height: 74px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ffe7da;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #ffebe1;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Avenir Next", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  padding-block-end: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
summary,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
summary,
label[for],
select {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

h1,
h2,
h3 {
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Avenir Next", "Nunito", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.14;
}

h1 {
  margin-block-end: 8px;
  font-size: 32px;
  font-weight: 760;
}

h2 {
  margin-block-end: 7px;
  font-size: 21px;
  font-weight: 740;
}

h3 {
  margin-block-end: 6px;
  font-size: 16px;
  font-weight: 730;
}

p {
  margin-block-end: 0;
  color: var(--ink-soft);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.hidden,
[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

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

:focus-visible {
  outline: 3px solid #2f829f;
  outline-offset: 3px;
}

.desktop-rail,
.context-sidebar {
  display: none;
}

.app-shell,
.app-body,
.workspace,
.main-column,
.app-page {
  min-width: 0;
}

.app-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: var(--header-height);
  padding: 10px var(--page-gutter);
  border-block-end: 1px solid rgba(217, 172, 157, 0.8);
  background: rgba(233, 247, 252, 0.94);
  backdrop-filter: blur(16px);
}

.mobile-brand,
.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: start;
}

.mobile-brand strong {
  display: none;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: var(--coral);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), var(--shadow-soft);
  color: #fff;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", sans-serif;
  font-size: 23px;
  font-weight: 700;
}

.trip-context {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  padding: 7px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.86);
  text-align: center;
  box-shadow: 0 2px 8px rgba(74, 58, 40, 0.05);
}

.trip-context-route,
.trip-context-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-context-route {
  color: var(--ink);
  font-size: 13px;
  font-weight: 730;
}

.trip-context-meta {
  color: var(--ink-soft);
  font-size: 11px;
}

.avatar-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--coral-soft);
  color: #7f493f;
  font-weight: 760;
}

.main-column {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: 26px var(--page-gutter) 48px;
}

.app-page {
  display: none;
  width: 100%;
}

.app-page.active {
  display: block;
  animation: page-in 180ms ease-out;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 22px;
}

.page-heading > div {
  min-width: 0;
}

.page-heading p:not(.eyebrow) {
  max-width: 620px;
}

.eyebrow {
  margin-block-end: 5px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soft-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-block-end: 9px;
  padding: 4px 9px;
  border: 1px solid #b7d4e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--sage-dark);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button,
.icon-button {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 730;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
}

.primary-button {
  border: 1px solid var(--sage-dark);
  background: var(--sage-dark);
  box-shadow: 0 5px 12px rgba(56, 123, 151, 0.2);
  color: #fff;
}

.primary-button:hover {
  background: #2c6d89;
}

.primary-button:disabled {
  border-color: #aeb5ad;
  background: #aeb5ad;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.danger-button {
  border: 1px solid #d7aaa3;
  background: #fff9f7;
  color: var(--red);
}

.compact {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 14px;
}

.text-button {
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--teal);
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
}

.wizard-scene {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  min-height: 112px;
  margin-block: 14px 18px;
  overflow: hidden;
  border: 1px solid #b7d4e1;
  border-radius: 18px;
  background: var(--sage-soft);
  box-shadow: var(--shadow-soft);
}

.wizard-scene-art {
  position: relative;
  align-self: stretch;
  width: 100%;
  min-height: 112px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-inline-end: 1px solid #b7d4e1;
  background: var(--coral-soft);
  color: var(--teal);
}

.wizard-scene-art img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  object-position: center 40%;
  transform-origin: 50% 88%;
  transition: filter 180ms ease, scale 180ms ease, rotate 180ms ease, translate 180ms ease;
}

.wizard-scene[data-step="1"] .wizard-scene-art img { object-position: center 37%; rotate: -2deg; scale: 1.08; }
.wizard-scene[data-step="2"] .wizard-scene-art img { object-position: center 33%; rotate: 3deg; scale: 1.13; translate: 2px 4px; }
.wizard-scene[data-step="3"] .wizard-scene-art img { object-position: 45% 38%; rotate: -4deg; scale: 1.12; translate: -3px 3px; }
.wizard-scene[data-step="4"] .wizard-scene-art img { object-position: 55% 36%; rotate: 4deg; scale: 1.1; translate: 3px 2px; }
.wizard-scene[data-step="5"] .wizard-scene-art img { object-position: center 30%; rotate: -1deg; scale: 1.16; translate: 0 5px; }
.wizard-scene[data-step="6"] .wizard-scene-art img { object-position: center 35%; rotate: 0deg; scale: 1.09; translate: 0 -1px; }

.wizard-scene[data-species="dog"] .wizard-scene-art img {
  object-position: 51% 39%;
}

.wizard-scene-copy {
  min-width: 0;
  padding: 16px 42px 16px 16px;
}

.wizard-scene-copy > span {
  display: inline-grid;
  width: 30px;
  height: 24px;
  margin-block-end: 6px;
  place-items: center;
  border-radius: 9px;
  background: var(--gold-soft);
  color: #73591f;
  font-size: 10px;
  font-weight: 820;
}

.wizard-scene-copy h2 {
  margin-block-end: 3px;
  font-size: 18px;
}

.wizard-scene-copy p {
  font-size: 12px;
}

.wizard-scene-dots {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: grid;
  gap: 5px;
}

.wizard-scene-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.section-companion {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  min-height: 116px;
  margin-block: -4px 18px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, 0.72);
}

.section-companion > div:last-child {
  min-width: 0;
  padding: 16px 16px 16px 18px;
}

.section-companion h2 {
  margin-block-end: 4px;
  font-size: 18px;
}

.section-companion p:not(.eyebrow) {
  font-size: 13px;
}

.companion-portrait,
.empty-mascot {
  position: relative;
  display: block;
  align-self: stretch;
  width: 100%;
  min-height: 116px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--sage-soft);
  color: var(--teal);
}

.companion-portrait img,
.empty-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 88%;
  transition: filter 180ms ease, scale 180ms ease, rotate 180ms ease, translate 180ms ease;
}

.companion-trip {
  background: #e7f5fb;
}

.companion-trip .companion-portrait img {
  object-position: 51% 38%;
  rotate: -3deg;
  scale: 1.12;
  translate: 0 4px;
}

.companion-pets {
  background: #fff0e9;
}

.companion-pets .companion-portrait {
  background: var(--coral-soft);
}

.companion-pets .companion-portrait img {
  object-position: 50% 31%;
  rotate: 3deg;
  scale: 1.18;
  translate: 0 5px;
}

.companion-more {
  background: #eaf6fb;
}

.companion-more[data-mode="help"] {
  background: #fff0e9;
}

.mascot-pair {
  background: var(--gold-soft);
}

.mascot-pair img {
  position: absolute;
  inset-block: 0;
  width: 66%;
}

.mascot-pair .pair-dog {
  inset-inline-start: -4%;
  object-position: 51% 38%;
  rotate: -5deg;
  scale: 1.1;
}

.mascot-pair .pair-cat {
  inset-inline-end: -5%;
  object-position: 50% 31%;
  rotate: 5deg;
  scale: 1.13;
}

.mascot-prop {
  position: absolute;
  z-index: 3;
  inset-inline-end: 8px;
  inset-block-end: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(56, 123, 151, 0.32);
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.94);
  box-shadow: var(--shadow-soft);
  color: var(--teal);
}

.mascot-prop svg {
  width: 18px;
  height: 18px;
}

.mascot-press:hover img,
.mascot-press:focus-visible img {
  filter: saturate(1.07) brightness(1.02);
  scale: 1.16;
}

.companion-pets .mascot-press:hover img,
.companion-pets .mascot-press:focus-visible img {
  scale: 1.22;
}

.is-reacting .mascot-press img,
.welcome-card.is-reacting .mascot-duo img {
  animation: mascot-pop 560ms ease;
}

@keyframes mascot-pop {
  0%, 100% { translate: 0 0; }
  42% { translate: 0 -8px; }
  70% { translate: 0 2px; }
}

.directory-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-block: -4px 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.82);
}

.directory-status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10px;
  font-weight: 820;
}

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

.directory-status strong {
  font-size: 12px;
}

.directory-status small {
  margin-block-start: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.directory-loading .directory-status-icon {
  background: var(--gold-soft);
  color: #73591f;
}

.directory-partial .directory-status-icon,
.directory-offline .directory-status-icon {
  background: var(--red-soft);
  color: var(--red);
}

.welcome-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
  min-height: 300px;
  margin-block-end: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--coral-soft);
  box-shadow: var(--shadow);
}

.welcome-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 30px 0 30px 24px;
}

.welcome-copy p {
  margin-block-end: 18px;
  color: #4f5d57;
}

.mascot-duo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  border-inline-start: 1px solid rgba(217, 172, 157, 0.72);
  background: var(--sage-soft);
}

.mascot-duo img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transform-origin: 50% 90%;
  transition: filter 180ms ease, scale 180ms ease, rotate 180ms ease;
}

.mascot-duo .milo-home {
  object-position: 52% 42%;
  rotate: -1.5deg;
  scale: 1.03;
}

.mascot-duo .miso-home {
  border-inline-start: 1px solid rgba(217, 172, 157, 0.72);
  object-position: center;
  rotate: 2deg;
  scale: 1.06;
}

.mascot-duo:hover .milo-home {
  rotate: 1deg;
  scale: 1.06;
}

.mascot-duo:hover .miso-home {
  rotate: -1deg;
  scale: 1.09;
}

.mascot-nudge {
  position: absolute;
  z-index: 3;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(56, 123, 151, 0.38);
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.92);
  box-shadow: var(--shadow-soft);
  color: var(--teal);
}

.mascot-nudge svg {
  width: 20px;
  height: 20px;
}

.journey-launchpad {
  display: flex;
  gap: 10px;
  margin-block: 0 20px;
  padding-block: 2px 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.launch-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex: 1 0 156px;
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  text-align: start;
}

.launch-tile strong,
.launch-tile small {
  display: block;
}

.launch-tile strong {
  line-height: 1.2;
}

.launch-tile small {
  margin-block-start: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.launch-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 820;
}

.plan-tile .launch-icon {
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.airport-tile .launch-icon {
  background: var(--gold-soft);
  color: #73591f;
}

.pet-tile .launch-icon {
  background: var(--coral-soft);
  color: #824d40;
}

.mascot-checkin {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-block-end: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--coral-soft);
  box-shadow: var(--shadow-soft);
}

.mascot-checkin-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: stretch;
  min-height: 96px;
  overflow: hidden;
}

.mascot-checkin-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mascot-checkin-pair img:first-child {
  object-position: 52% 40%;
}

.mascot-checkin-pair img + img {
  border-inline-start: 1px solid var(--line-strong);
}

.mascot-checkin > div:last-child {
  min-width: 0;
  padding: 12px 14px 12px 0;
}

.mascot-checkin h2 {
  margin-block-end: 3px;
  font-size: 18px;
}

.mascot-checkin p:not(.eyebrow) {
  font-size: 12px;
}

.active-trip-card,
.next-action-card,
.trust-note,
.privacy-banner,
.inline-alert,
.trip-hero,
.eligibility-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.active-trip-card {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 18px;
  margin-block-end: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.route-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.route-visual span {
  display: grid;
  min-width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #b7d4e1;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
}

.route-visual i {
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: var(--line-strong);
}

.active-trip-copy {
  min-width: 0;
}

.active-trip-copy h2,
.active-trip-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-ring {
  display: grid;
  width: 66px;
  height: 66px;
  place-content: center;
  border: 7px solid var(--sage-soft);
  border-top-color: var(--teal);
  border-radius: 50%;
  text-align: center;
}

.score-ring strong {
  font-size: 16px;
  line-height: 1;
}

.score-ring small {
  margin-block-start: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  text-transform: uppercase;
}

.score-ring.large {
  width: 82px;
  height: 82px;
  border-width: 8px;
}

.score-ring.large strong {
  font-size: 19px;
}

.next-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-block-end: 22px;
  padding: 18px;
  border-color: var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff2eb;
}

.next-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
}

.next-copy {
  min-width: 0;
}

.next-copy h2 {
  font-size: 18px;
}

.next-copy > p:not(.eyebrow) {
  font-size: 14px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-block-start: 10px;
}

.task-meta span,
.assumption-chips span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 670;
}

.home-grid {
  margin-block: 26px;
}

.section-heading,
.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block-start: 12px;
}

.readiness-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.74);
}

.readiness-symbol,
.status-symbol {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

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

.readiness-item small {
  color: var(--ink-soft);
  font-size: 11px;
}

.readiness-count {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
}

.trust-note,
.privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.66);
  box-shadow: none;
}

.trust-note p,
.privacy-banner p {
  font-size: 13px;
}

.trust-icon,
.privacy-banner > span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

/* Wizard */
.wizard-heading {
  margin-block-end: 16px;
}

.step-progress {
  margin-block-end: 22px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2cbbd;
}

.progress-track span {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.step-progress > p {
  display: flex;
  justify-content: space-between;
  margin-block: 8px 12px;
  font-size: 12px;
}

.step-progress > p strong {
  color: var(--ink);
}

.step-list {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  flex: 1;
  min-width: 0;
}

.step-button {
  display: grid;
  width: 100%;
  min-height: 44px;
  place-items: center;
  padding: 4px;
  border: 0;
  background: transparent;
}

.step-button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.step-button small {
  display: none;
  margin-block-start: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.step-button.active span,
.step-button.complete span {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: #fff;
}

.step-button.active small {
  color: var(--sage-dark);
  font-weight: 760;
}

.wizard-step {
  display: none;
  min-height: 430px;
}

.wizard-step.active {
  display: block;
}

.step-copy {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-block-end: 22px;
}

.step-kicker {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--coral-soft);
  color: #824d40;
  font-weight: 800;
}

.choice-fieldset,
.compact-fieldset {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

fieldset legend {
  margin-block-end: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
}

.pet-choice-grid,
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.visual-choice,
.mode-choice {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.visual-choice {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  min-height: 108px;
}

.visual-choice input,
.mode-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visual-choice:has(input:checked),
.mode-choice:has(input:checked) {
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.visual-choice img {
  width: 76px;
  height: 108px;
  object-fit: cover;
  object-position: center;
}

.visual-choice:first-of-type img {
  object-position: 52% 44%;
}

.visual-choice > span {
  min-width: 0;
  padding: 12px;
}

.visual-choice strong,
.visual-choice small,
.mode-choice strong,
.mode-choice small {
  display: block;
}

.visual-choice small,
.mode-choice small {
  margin-block-start: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-col,
.form-grid.three-col {
  grid-template-columns: minmax(0, 1fr);
}

.form-grid + .check-row,
.form-grid + .inline-alert {
  margin-block-start: 18px;
}

.field {
  display: block;
  min-width: 0;
}

.autocomplete-field input[aria-expanded="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.field > span {
  display: block;
  margin-block-end: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 710;
}

.field b {
  color: var(--red);
}

.field small {
  display: block;
  margin-block-start: 4px;
  color: var(--ink-soft);
  font-size: 11px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8791a0;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: #fff9f7;
}

.suggestion-menu {
  position: fixed;
  z-index: 150;
  max-height: min(340px, 46vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(51, 64, 82, 0.18);
}

.suggestion-menu button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 7px 9px;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  text-align: start;
}

.suggestion-menu button:last-child {
  border-block-end: 0;
}

.suggestion-menu button:hover,
.suggestion-menu button:focus-visible {
  background: var(--sage-soft);
}

.suggestion-code {
  display: grid;
  min-height: 34px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10px;
  font-weight: 820;
}

.suggestion-menu strong,
.suggestion-menu small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-menu strong {
  font-size: 13px;
}

.suggestion-menu small {
  margin-block-start: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.suggestion-empty {
  padding: 14px;
  font-size: 12px;
}

.directory-source-note {
  margin-block: -3px 12px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.check-row,
.confirm-row,
.unknown-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.check-row {
  min-height: 64px;
  padding: 12px;
  border-block-start: 1px solid var(--line);
}

.check-row:last-child {
  border-block-end: 1px solid var(--line);
}

.check-row input,
.confirm-row input,
.unknown-check input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin-block-start: 2px;
  accent-color: var(--teal);
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row small {
  margin-block-start: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.route-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-block-end: 18px;
  padding: 18px;
  border: 1px solid #b7d4e1;
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
}

.route-arrow {
  justify-self: center;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f5dcd2;
}

.segmented-control label {
  position: relative;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
}

.segmented-control span {
  display: grid;
  min-height: 40px;
  place-items: center;
  padding: 5px 8px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
  text-align: center;
}

.segmented-control input:checked + span {
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}

.inline-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-color: #dfbe8a;
  border-radius: 13px;
  background: var(--gold-soft);
  box-shadow: none;
  color: #5e4d2b;
  font-size: 13px;
}

.inline-alert strong {
  flex: 0 0 auto;
}

.mode-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  column-gap: 10px;
  min-height: 96px;
  padding: 14px;
}

.mode-choice .mode-icon {
  grid-row: 1 / span 2;
}

.mode-icon,
.record-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.measurement-panel {
  margin-block: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.62);
}

.measurement-copy {
  margin-block-end: 14px;
}

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

.health-record-grid {
  display: grid;
  gap: 12px;
  margin-block-end: 18px;
}

.record-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.record-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 14px;
}

.record-heading h3,
.record-heading p {
  margin: 0;
}

.record-heading p {
  font-size: 12px;
}

.record-card .field + .field,
.record-card .field + .unknown-check {
  margin-block-start: 11px;
}

.unknown-check {
  color: var(--ink-soft);
  font-size: 12px;
}

.review-route {
  margin-block-end: 16px;
  padding: 18px;
  border: 1px solid #b7d4e1;
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
}

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

.review-route strong {
  font-size: 20px;
}

.review-route span {
  margin-block-start: 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

.review-grid {
  display: grid;
  gap: 12px;
}

.review-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-title h3 {
  margin: 0;
}

.review-panel ul,
.detail-section ul {
  margin: 12px 0 0;
  padding-inline-start: 20px;
}

.review-panel li,
.detail-section li {
  margin-block: 7px;
  color: var(--ink-soft);
}

.eligibility-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #fff1e9;
}

.eligibility-panel h3 {
  margin-block-end: 4px;
}

.source-disclosure,
.assumption-drawer,
.passport-drawer,
.help-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.76);
}

.source-disclosure summary,
.assumption-drawer summary,
.passport-drawer summary,
.help-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 15px;
  color: var(--ink);
  font-weight: 720;
  list-style: none;
}

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

summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--ink-soft);
}

details[open] > summary::after {
  content: "-";
}

.source-disclosure > div,
.assumption-drawer > div,
.help-list details > div {
  padding: 0 15px 15px;
}

.source-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 0;
  border-block-start: 1px solid var(--line);
}

.source-link strong,
.source-link small {
  display: block;
}

.source-link small {
  margin-block-start: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.confirm-row {
  margin-block-start: 16px;
  padding: 14px;
  border: 1px solid #d6b9b2;
  border-radius: 13px;
  background: var(--red-soft);
  color: #663e38;
  font-size: 13px;
}

.wizard-actions {
  position: sticky;
  inset-block-end: calc(var(--nav-height) + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 24px calc(var(--page-gutter) * -1) -48px;
  padding: 12px var(--page-gutter);
  border-block-start: 1px solid var(--line);
  background: rgba(234, 247, 252, 0.97);
  backdrop-filter: blur(14px);
}

.save-exit {
  justify-self: center;
}

.error-summary {
  margin-block-end: 18px;
  padding: 14px 16px;
  border: 1px solid #d49d96;
  border-radius: 13px;
  background: var(--red-soft);
  color: #713f39;
}

.error-summary ul {
  margin: 7px 0 0;
  padding-inline-start: 20px;
}

/* Trip */
.empty-state {
  max-width: 520px;
  margin: 28px auto;
  text-align: center;
}

.empty-state img {
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: 51% 38%;
  box-shadow: var(--shadow);
}

.empty-mascot {
  width: 180px;
  height: 180px;
  min-height: 180px;
  margin: 0 auto 15px;
  border: 1px solid #b7d4e1;
  border-radius: 50%;
  background: var(--sage-soft);
  box-shadow: var(--shadow);
}

.empty-mascot img {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-position: 51% 38%;
  rotate: -3deg;
  scale: 1.08;
}

.empty-state p:not(.eyebrow) {
  margin-block-end: 18px;
}

.trip-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-block-end: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
}

.airport-journey-panel {
  margin-block: 18px 24px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: #fff1e9;
  box-shadow: var(--shadow-soft);
}

.airport-panel-heading {
  align-items: flex-start;
  margin-block-end: 12px;
}

.airport-panel-heading h2 {
  margin: 0;
}

.airport-route-map {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 9px;
  margin-block: 14px 18px;
}

.airport-route-map > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #b7d4e1;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 820;
}

.airport-route-map > i {
  position: relative;
  height: 2px;
  background: #dba999;
}

.airport-route-map > i::before,
.airport-route-map > i::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
}

.airport-route-map > i::before {
  inset-inline-start: 22%;
}

.airport-route-map > i::after {
  inset-inline-end: 22%;
}

.airport-route-map > i > b {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--gold-soft);
  transform: translate(-50%, -50%);
}

.airport-guide-grid {
  display: grid;
  gap: 11px;
}

.airport-guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.airport-guide-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
}

.airport-guide-code {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
}

.airport-guide-copy {
  min-width: 0;
}

.airport-guide-copy strong,
.airport-guide-copy small {
  display: block;
}

.airport-guide-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.airport-guide-copy small {
  margin-block-start: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.relief-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 0 13px 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff4ed;
}

.relief-callout > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #73591f;
  font-size: 11px;
  font-weight: 820;
}

.relief-callout strong,
.relief-callout small {
  display: block;
}

.relief-callout strong {
  font-size: 12px;
}

.relief-callout small {
  margin-block-start: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.38;
}

.airport-fallback {
  margin: 0 13px 13px;
  padding: 11px;
  border: 1px solid #b7d4e1;
  border-radius: 12px;
  background: #eaf6fb;
}

.airport-fallback-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 8px;
}

.airport-fallback-title span {
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--sage);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.airport-fallback-title strong {
  font-size: 12px;
}

.airport-fallback-grid {
  display: grid;
  gap: 6px;
}

.airport-fallback-grid p {
  padding-block-start: 6px;
  border-block-start: 1px solid #c9e1eb;
  font-size: 11px;
  line-height: 1.4;
}

.airport-fallback > small {
  display: block;
  margin-block-start: 8px;
  color: var(--ink-soft);
  font-size: 10px;
}

.verification-plan {
  margin-block: 10px 14px;
  padding: 11px 12px;
  border-inline-start: 4px solid var(--sage);
  background: var(--sage-soft);
}

.verification-plan strong {
  display: block;
  margin-block-end: 4px;
  font-size: 12px;
}

.verification-plan p {
  font-size: 11px;
  line-height: 1.45;
}

.airport-guide-card details {
  border-block-start: 1px solid var(--line);
}

.airport-guide-card summary {
  min-height: 46px;
  padding: 11px 13px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 760;
  list-style: none;
}

.airport-guide-card summary::after {
  float: inline-end;
}

.airport-guide-detail {
  display: grid;
  gap: 9px;
  padding: 0 13px 13px;
}

.airport-guide-detail p {
  padding-block-start: 9px;
  border-block-start: 1px solid var(--line);
  font-size: 12px;
}

.airport-guide-detail strong {
  color: var(--ink);
}

.countdown-block {
  display: grid;
  width: 88px;
  min-height: 88px;
  place-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--gold-soft);
  text-align: center;
}

.countdown-block strong {
  font-size: 30px;
  line-height: 1;
}

.countdown-block span {
  margin-block-start: 5px;
  color: #675b43;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.trip-state-copy {
  min-width: 0;
}

.trip-state-copy h2 {
  margin-block: 8px 5px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-verified,
.status-on-track {
  background: var(--sage-soft);
  color: #2f718c;
}

.status-partial,
.status-action-needed {
  background: var(--gold-soft);
  color: #765b20;
}

.status-stale,
.status-conflicting,
.status-blocked {
  background: var(--red-soft);
  color: var(--red);
}

.status-source-unavailable,
.status-not-researched,
.status-needs-verification {
  background: #edf0f3;
  color: #687487;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.trip-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 24px 14px;
}

.phase-tabs {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 3px 3px 7px;
  scrollbar-width: thin;
}

.phase-tabs button,
.explore-tabs button,
.more-tabs button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.75);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.phase-tabs button.active,
.explore-tabs button.active,
.more-tabs button.active {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: #fff;
}

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

.checklist-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 251, 0.76);
  box-shadow: var(--shadow-soft);
}

.checklist-list {
  margin-block-start: 9px;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  min-height: 76px;
  padding: 13px 0;
  border-block-start: 1px solid var(--line);
}

.checklist-item:first-child {
  border-block-start: 0;
}

.checklist-item > input {
  width: 23px;
  min-height: 23px;
  margin-block-start: 2px;
  accent-color: var(--teal);
}

.checklist-copy {
  min-width: 0;
}

.checklist-copy strong,
.checklist-copy small {
  display: block;
}

.checklist-copy strong {
  line-height: 1.28;
}

.checklist-copy small {
  margin-block-start: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.checklist-copy .due-overdue {
  color: var(--red);
  font-weight: 760;
}

.checklist-item.completed .checklist-copy strong {
  color: #7b837f;
  text-decoration: line-through;
}

.checklist-open {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--teal);
  font-size: 18px;
}

.phase-empty {
  padding: 30px 12px;
  text-align: center;
}

.phase-empty strong,
.phase-empty span {
  display: block;
}

.phase-empty span {
  margin-block-start: 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

.assumption-drawer {
  margin-block-start: 16px;
}

.assumption-drawer summary span {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: #7f4f43;
  font-size: 11px;
  text-align: center;
}

.assumption-list p {
  padding: 9px 0;
  border-block-start: 1px solid var(--line);
  font-size: 13px;
}

.generated-stamp {
  margin-block-start: 14px;
  font-size: 11px;
  text-align: center;
}

/* Pets */
.privacy-banner {
  margin-block-end: 16px;
  background: var(--teal-soft);
  border-color: #b9d4d1;
}

.pets-layout {
  display: grid;
  gap: 14px;
}

.pet-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-block: 2px 7px;
}

.pet-list-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 150px;
  min-height: 58px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.8);
  text-align: start;
}

.pet-list-button.active {
  border: 2px solid var(--teal);
  background: var(--teal-soft);
}

.pet-list-button img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.pet-list-button strong,
.pet-list-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-list-button small {
  color: var(--ink-soft);
  font-size: 11px;
}

.pet-editor {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 251, 0.82);
  box-shadow: var(--shadow-soft);
}

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: 20px;
  padding-block-end: 18px;
  border-block-end: 1px solid var(--line);
}

.profile-photo {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
}

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

.profile-photo-row small {
  display: block;
  margin-block-start: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-block-start: 20px;
}

.passport-drawer {
  margin-block-start: 16px;
}

.pet-passport {
  margin: 0 14px 14px;
  padding: 17px;
  border: 2px solid var(--teal);
  border-radius: 13px;
  background: #e4f3f8;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.passport-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-block-end: 14px;
  border-block-end: 1px solid #b7c1a8;
}

.passport-head img {
  width: 72px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.passport-head small,
.passport-head strong {
  display: block;
}

.passport-head small {
  color: #54624e;
  text-transform: uppercase;
}

.passport-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-block-start: 14px;
}

.passport-facts span {
  display: block;
  color: #5c6856;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.passport-facts strong {
  display: block;
  margin-block-start: 2px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* Explore and help */
.more-tabs,
.explore-tabs {
  display: flex;
  gap: 8px;
  margin-block-end: 18px;
  overflow-x: auto;
}

.more-panel {
  display: none;
}

.more-panel.active {
  display: block;
}

.explore-controls {
  display: grid;
  gap: 10px;
  margin-block-end: 14px;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 13px;
  width: 19px;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.search-field input {
  padding-inline-start: 42px;
}

.coverage-summary {
  margin-block-end: 12px;
  padding: 12px 14px;
  border-inline-start: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 224, 213, 0.72);
  color: #704e49;
  font-size: 13px;
}

.explore-results {
  display: grid;
  gap: 10px;
}

.result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.result-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  text-align: start;
}

.result-code {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  font-weight: 820;
}

.result-copy {
  min-width: 0;
}

.result-copy strong,
.result-copy small {
  display: block;
}

.result-copy small {
  margin-block-start: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.result-detail {
  padding: 0 14px 15px 70px;
}

.result-detail ul {
  margin: 0 0 12px;
  padding-inline-start: 19px;
}

.result-detail li,
.result-detail p {
  margin-block: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.result-detail-grid {
  display: grid;
  gap: 9px;
  margin-block-end: 12px;
}

.airport-fact {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--cream-50);
}

.airport-fact strong,
.airport-fact span {
  display: block;
}

.airport-fact span {
  margin-block-start: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  gap: 12px;
  margin-block-end: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--coral-soft);
}

.help-hero > div {
  padding: 20px 0 20px 20px;
}

.help-hero img {
  width: 130px;
  height: 170px;
  object-fit: cover;
  object-position: center;
}

.help-list {
  display: grid;
  gap: 9px;
  margin-block-end: 16px;
}

.glossary p {
  padding-block: 8px;
  border-block-start: 1px solid var(--line);
}

/* Dialog and toast */
.requirement-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: min(820px, calc(100dvh - 24px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(32, 38, 35, 0.28);
}

.requirement-dialog::backdrop {
  background: rgba(31, 38, 35, 0.52);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(820px, calc(100dvh - 24px));
}

.dialog-header,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-block-end: 1px solid var(--line);
  background: var(--cream-50);
}

.dialog-header h2 {
  margin: 0;
}

.dialog-body {
  overflow-y: auto;
  padding: 0 18px;
}

.detail-section {
  padding-block: 17px;
  border-block-end: 1px solid var(--line);
}

.detail-section:last-child {
  border-block-end: 0;
}

.assumption-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: 10px;
}

.dialog-footer {
  justify-content: flex-end;
  border-block: 1px solid var(--line) 0;
}

.attachment-name {
  margin-block-start: 8px;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 200;
  inset-inline: 16px;
  inset-block-end: calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px);
  max-width: 430px;
  margin-inline: auto;
  padding: 12px 15px;
  border: 1px solid #49634f;
  border-radius: 12px;
  background: #2f4538;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 13px;
  font-weight: 680;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.bottom-nav {
  position: fixed;
  z-index: 90;
  inset-inline: 0;
  inset-block-end: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 6px 7px env(safe-area-inset-bottom);
  border-block-start: 1px solid var(--line-strong);
  background: rgba(236, 248, 252, 0.97);
  box-shadow: 0 -8px 24px rgba(74, 98, 112, 0.1);
  backdrop-filter: blur(16px);
}

.bottom-link {
  display: grid;
  min-width: 0;
  min-height: 56px;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 4px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #687487;
}

.bottom-link svg {
  width: 21px;
  height: 21px;
}

.bottom-link span {
  font-size: 10px;
  font-weight: 710;
}

.bottom-link.active {
  background: var(--sage-soft);
  color: var(--sage-dark);
}

@media (max-width: 440px) {
  .welcome-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 156px;
    min-height: 0;
  }

  .welcome-copy {
    padding: 24px 20px 20px;
  }

  .welcome-copy h2 {
    font-size: 19px;
  }

  .welcome-copy p {
    font-size: 13px;
  }

  .mascot-duo,
  .mascot-duo img {
    min-height: 156px;
  }

  .mascot-duo {
    border-block-start: 1px solid rgba(217, 172, 157, 0.72);
    border-inline-start: 0;
  }

  .mascot-duo .milo-home {
    object-position: 52% 42%;
  }

  .mascot-checkin {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .section-companion {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 108px;
  }

  .section-companion > div:last-child {
    padding: 13px 12px 13px 14px;
  }

  .section-companion h2 {
    font-size: 16px;
  }

  .section-companion p:not(.eyebrow) {
    font-size: 12px;
  }

  .companion-portrait {
    min-height: 108px;
  }

  .mascot-prop {
    width: 31px;
    height: 31px;
    inset-inline-end: 6px;
    inset-block-end: 6px;
  }

  .active-trip-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .active-trip-card .route-visual {
    grid-column: 1 / -1;
  }

  .next-action-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .next-action-card .primary-button {
    grid-column: 2;
    justify-self: start;
  }

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

  .trip-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .trip-hero .score-ring {
    display: none;
  }

  .trip-toolbar {
    align-items: flex-start;
  }

  .airport-guide-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .airport-guide-top .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .result-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .result-summary .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .result-detail {
    padding-inline-start: 14px;
  }
}

@media (min-width: 520px) {
  .mobile-brand strong {
    display: inline;
  }

  .journey-launchpad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .launch-tile {
    min-width: 0;
  }

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

  .form-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field.wide,
  .wide-record {
    grid-column: 1 / -1;
  }

  .route-fields {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
  }

  .route-arrow {
    align-self: center;
    margin-block-start: 18px;
  }

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

  .explore-controls {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
}

@media (min-width: 768px) {
  :root {
    --page-gutter: 28px;
  }

  h1 {
    font-size: 38px;
  }

  .main-column {
    padding-block-start: 34px;
  }

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

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

  .step-button small {
    display: block;
  }

  .step-button {
    min-height: 60px;
  }

  .pet-choice-grid {
    gap: 16px;
  }

  .visual-choice {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 145px;
  }

  .visual-choice img {
    width: 116px;
    height: 145px;
  }

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

  .mode-choice {
    display: block;
    min-height: 130px;
  }

  .mode-choice .mode-icon {
    margin-block-end: 12px;
  }

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

  .wizard-actions {
    margin-inline: 0;
    margin-block-end: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
}

@media (min-width: 1024px) {
  body {
    padding-block-end: 0;
  }

  .app-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
  }

  .desktop-rail {
    position: sticky;
    inset-block-start: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 16px;
    border-inline-end: 1px solid var(--line-strong);
    background: #e3f3f9;
  }

  .brand-button {
    min-height: 50px;
    padding: 5px 8px;
  }

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

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    color: var(--ink-soft);
    font-size: 11px;
  }

  .rail-nav {
    display: grid;
    gap: 7px;
    margin-block-start: 34px;
  }

  .rail-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #617084;
    font-weight: 700;
    text-align: start;
  }

  .rail-link.active {
    border-color: #b7d4e1;
    background: var(--sage-soft);
    color: var(--sage-dark);
    box-shadow: var(--shadow-soft);
  }

  .rail-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block-start: auto;
    padding: 12px;
    border-block-start: 1px solid var(--line-strong);
  }

  .rail-trust strong,
  .rail-trust small {
    display: block;
  }

  .rail-trust strong {
    font-size: 12px;
  }

  .rail-trust small {
    color: var(--ink-soft);
    font-size: 10px;
  }

  .app-header {
    padding-inline: 34px;
  }

  .mobile-brand,
  .avatar-button {
    display: none;
  }

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

  .trip-context {
    margin-inline-start: 0;
    text-align: start;
  }

  .trip-context-route,
  .trip-context-meta {
    display: inline;
  }

  .trip-context-meta::before {
    content: "  /  ";
    color: var(--line-strong);
  }

  .bottom-nav {
    display: none;
  }

  .main-column {
    max-width: 880px;
    padding-block-end: 70px;
  }

  .wizard-actions {
    inset-block-end: 14px;
  }

  .toast {
    inset-block-end: 22px;
  }

  .pets-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: start;
  }

  .pet-list {
    display: grid;
    overflow: visible;
  }

  .pet-list-button {
    width: 100%;
  }
}

@media (min-width: 1220px) {
  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 880px) 310px;
    justify-content: center;
    gap: 34px;
    padding-inline: 32px;
  }

  .main-column {
    margin-inline: 0;
    padding-inline: 0;
  }

  .context-sidebar {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 28px);
    display: grid;
    align-self: start;
    gap: 14px;
    max-height: calc(100vh - var(--header-height) - 48px);
  }

  .context-card,
  .source-health-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 251, 0.78);
    box-shadow: var(--shadow-soft);
  }

  .context-card:not(.mascot-context),
  .source-health-card {
    padding: 16px;
  }

  .mascot-context {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr);
    align-items: center;
    background: var(--coral-soft);
  }

  .mascot-context img {
    width: 102px;
    height: 150px;
    object-fit: cover;
    object-position: 51% 44%;
    transform-origin: 50% 88%;
    transition: rotate 180ms ease, scale 180ms ease, translate 180ms ease;
  }

  .mascot-context[data-mascot-route="home"] img { rotate: -2deg; scale: 1.04; }
  .mascot-context[data-mascot-route="plan"] img { object-position: 50% 34%; rotate: 3deg; scale: 1.12; translate: 0 4px; }
  .mascot-context[data-mascot-route="trip"] img { rotate: -4deg; scale: 1.09; translate: 0 4px; }
  .mascot-context[data-mascot-route="pets"] img { object-position: 50% 31%; rotate: -2deg; scale: 1.14; translate: 0 5px; }
  .mascot-context[data-mascot-route="more"] img { object-position: 50% 34%; rotate: 5deg; scale: 1.12; translate: 0 4px; }

  .mascot-context > div {
    padding: 14px 14px 14px 0;
  }

  .mascot-context h2 {
    font-size: 16px;
  }

  .mascot-context p,
  .source-health-card p,
  .context-card p {
    font-size: 12px;
  }

  .source-health-card > div {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

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

@media print {
  body {
    padding: 0;
    background: #fff;
    color: #000;
  }

  .desktop-rail,
  .app-header,
  .bottom-nav,
  .context-sidebar,
  .trip-toolbar,
  .next-action-card,
  .page-heading button,
  .checklist-open {
    display: none !important;
  }

  .app-shell,
  .workspace {
    display: block;
  }

  .main-column {
    max-width: none;
    padding: 0;
  }

  .app-page {
    display: none !important;
  }

  #tripPage.active {
    display: block !important;
  }

  .trip-dashboard,
  .checklist-panel {
    display: block !important;
    border: 0;
    box-shadow: none;
  }

  .checklist-item {
    break-inside: avoid;
  }
}
