/* /css/style-light.css */
/* GENERATED by scripts/split-style-css.mjs from css/style.css (#6571 step 7): the subset a signed-out
   landing/login visit can use. Do not edit; edit style.css and run `node scripts/split-style-css.mjs`. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: "tabler-icons-filled";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/icons/tabler-icons-filled-0e7b4a42.woff2") format("woff2");
}
.ti.ti-star-filled,
.ti.ti-heart-filled,
.ti.ti-bookmark-filled,
.ti.ti-rosette-discount-check-filled,
.ti.ti-map-pin-filled,
.ti.ti-point-filled { font-family: "tabler-icons-filled" !important; }
.ti-heart-filled::before { content: "\f67c"; }
.ti-bookmark-filled::before { content: "\fa88"; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable:focus {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-lg);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 10000;
  background: var(--vn-trail-green);
  color: var(--surface-2);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
:root {
  --z-toast: 9999;
  color-scheme: light dark;
  --vn-trail-green: light-dark(#10702A, #66BD80);
  --vn-trail-green-lit: #66BD80;
  --vn-trail-green-light: light-dark(#E3FBEA, rgba(102,189,128,0.16));
  --vn-trail-green-mid: light-dark(#15803d, #85CF99);
  --on-brand-fill: light-dark(rgba(255, 255, 255, 0.12), rgba(12, 26, 16, 0.16));
  --on-brand-fill-hover: light-dark(rgba(255, 255, 255, 0.14), rgba(12, 26, 16, 0.28));
  --on-brand-line: light-dark(rgba(255, 255, 255, 0.6), rgba(12, 26, 16, 0.45));
  --on-brand-line-hover: light-dark(rgba(255, 255, 255, 0.95), rgba(12, 26, 16, 0.8));
  --vn-amber: light-dark(#BA7517, #E8A33D);
  --vn-amber-light: light-dark(#FAEEDA, rgba(232,163,61,0.16));
  --vn-amber-mid: light-dark(#EF9F27, #F2B45A);
  --vn-amber-text: light-dark(#8A5610, #E8A33D);
  --vn-coral: light-dark(#993C1D, #EC8862);
  --vn-coral-light: light-dark(#FAECE7, rgba(226,114,74,0.16));
  --vn-coral-mid: light-dark(#D85A30, #EE9270);
  --error: #C2214F;
  --error-light: light-dark(#F6E0DB, rgba(255,122,153,0.16));
  --error-text: light-dark(#A3123F, #FF7A99);
  --error-solid: #A3123F;
  --text-primary: light-dark(#1a1a1a, #f0f0f0);
  --text-secondary: light-dark(#666666, #b3b3b3);
  --text-muted: light-dark(#4a5851, #9aa79f);
  --surface-1: light-dark(#f5f5f5, #1a1a1a);
  --surface-2: light-dark(#ffffff, #242424);
  --border: light-dark(#e0e0e0, #3a3a3a);
  --border-strong: light-dark(#d0d0d0, #4a4a4a);
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-display-32: 32px;
  --fs-figure-40: 40px;
  --fs-figure-26: 26px;
  --fs-icon-36: 36px;
  --fs-icon-44: 44px;
  --fs-display-46: 46px;
  --tap-min: 44px;
  --screen-side-pad: clamp(40px, calc((100% - 840px) / 2), 220px);
  --logo-hero: 64px;
  --logo-nav: 44px;
  --topbar-h: calc(1.8rem + var(--logo-nav) + 1px);
  --logo-footer: 24px;
  --prose-measure: 68ch;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 6px;
  --space-md: 8px;
  --space-lg: 10px;
  --space-xl: 12px;
  --space-2xl: 14px;
  --space-3xl: 16px;
  --space-4xl: 20px;
  --space-5xl: 32px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-2xl: 32px;
  --sp-3xl: 48px;
  --sp-4xl: 64px;
  --shadow-resting: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.08);
  --shadow-hover: 0 4px 12px rgba(15,23,42,0.10);
  --ease-out: cubic-bezier(0.25, 0.75, 0.35, 1);
  --dur-feedback: 140ms;
  --dur-state: 260ms;
  --dur-view: 380ms;
  --ease-move: cubic-bezier(0.3, 0, 0.15, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --dur-sheet: 440ms;
  --dur-exit: 220ms;
  --dur-lift: 360ms;
  --dur-lift-wide: 420ms;
  --ease-slam: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-strike: 420ms;
  --trace-tick: 50ms;
  --delay-beat: 60ms;
  --dur-highlight: 1800ms;
  --vn-indigo: light-dark(#45477E, #AAB0DA);
  --vn-indigo-light: light-dark(#E9E2DF, rgba(170,176,218,0.16));
  --vn-green: light-dark(#5C6620, #BCC470);
  --vn-green-light: light-dark(#EBE6D4, rgba(188,196,112,0.14));
  --vn-green-mid: light-dark(#22883f, #22c55e);
  --vn-purple: light-dark(#763A6E, #D49ACB);
  --vn-purple-light: light-dark(#EFE0DD, rgba(212,154,203,0.16));
  --vn-sky: light-dark(#2A5E73, #86BACD);
  --vn-sky-light: light-dark(#E5E5DD, rgba(134,186,205,0.16));
  --vn-pandan: light-dark(#1D6A5F, #7CC4B6);
  --vn-pandan-light: light-dark(#E4E6DB, rgba(124,196,182,0.16));
  --vn-batik: light-dark(#5A3E8E, #B9A2E0);
  --vn-batik-light: light-dark(#EBE1E1, rgba(185,162,224,0.16));
  --vn-sky-text: light-dark(#2A5E73, #86BACD);
  --vn-coral-text: light-dark(#993C1D, #EE9270);
  --vn-indigo-text: light-dark(#45477E, #AAB0DA);
  --vn-purple-text: light-dark(#763A6E, #D49ACB);
  --action: var(--vn-trail-green);
  --on-action: var(--surface-2);
  --selected-bg: var(--df-ink);
  --on-selected: var(--df-panel);
  --success: var(--vn-trail-green);
  --success-light: var(--vn-trail-green-light);
  --danger: var(--error);
  --danger-light: var(--error-light);
  --danger-text: var(--error-text);
  --danger-solid: var(--error-solid);
  --on-danger: #ffffff;
  --info: light-dark(#35566E, #9EBCD2);
  --info-light: light-dark(#E7E4DD, rgba(158,188,210,0.16));
  --trip-main-accent: light-dark(#8A5A2B, #C9925C);
  --trip-main-bg: light-dark(#F6EEE4, rgba(201,146,92,0.16));
  --topbar-bg: #10702A;
  --topbar-fg: #ffffff;
  --topbar-fg-muted: rgba(255, 255, 255, 0.85);
  --df-ground: light-dark(#ffe3c4, #0c1410);
  --df-panel: light-dark(#fff7ec, #151d17);
  --df-ink: light-dark(#101a14, #ffeeda);
  --df-ink-soft: light-dark(#4a5851, #9aa79f);
  --df-hair: light-dark(rgba(16, 26, 20, 0.16), rgba(255, 238, 218, 0.18));
  --edge-hairline: 1px solid light-dark(rgba(16, 26, 20, 0.22), rgba(255, 238, 218, 0.24));
  --edge-tone: light-dark(rgba(16, 26, 20, 0.05), rgba(255, 238, 218, 0.07));
  --df-chip-fill: light-dark(rgba(16, 26, 20, 0.06), rgba(255, 238, 218, 0.08));
  --df-chip-fill-hover: light-dark(rgba(16, 26, 20, 0.12), rgba(255, 238, 218, 0.16));
  --df-brand: var(--vn-trail-green);
  --df-brand-fg: var(--surface-2);
  --df-coral: var(--vn-coral);
  --df-amber: var(--vn-amber);
  --df-amber-fg: #1c1509;
  --df-instant-stock: #fdf6ea;
  --df-instant-stock-ink: #5f6b63;
  --df-halftone: radial-gradient(light-dark(rgba(16, 26, 20, 0.16), rgba(255, 238, 218, 0.09)) 0.9px, transparent 1px);
  --df-wash: radial-gradient(85% 60% at 15% -5%, light-dark(rgba(239, 159, 39, 0.30), rgba(232, 163, 61, 0.13)), transparent 60%),
        radial-gradient(75% 55% at 92% 4%, light-dark(rgba(153, 60, 29, 0.11), rgba(226, 114, 74, 0.15)), transparent 62%);
  --df-display: 'Bricolage Grotesque Variable', 'Arial Black', Impact, sans-serif;
  --df-title: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --df-sans: 'Bricolage Grotesque Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --df-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --df-radius-stub: 12px;
  --df-radius-card: 14px;
  --df-radius-print: 3px;
  --df-press: 4px 4px 0 var(--df-ink);
  --df-press-large: 5px 5px 0 var(--df-ink);
  --df-press-hover: 2px 2px 0 var(--df-ink);
  --df-press-active: 0 0 0 var(--df-ink);
  --df-press-lift: 0 1px 0 rgba(9, 20, 13, 0.1), 0 22px 40px -26px rgba(9, 20, 13, 0.75);
  --df-scrim: rgba(16, 26, 20, 0.92);
  --df-scrim-soft: rgba(16, 26, 20, 0.82);
  --df-scrim-60: rgba(16, 26, 20, 0.6);
  --df-pin-apricot: #ffe3c4;
  --df-pin-lamplight: #ffeeda;
  --df-pin-ink: #101a14;
  --df-pin-deep-green: #0d4a21;
  --df-pin-keyline: #062811;
  --df-pin-stock-shade: #e8dcc7;
  --df-pin-night-panel: #1b2520;
  --df-pin-white: #fff;
  --df-pin-trail-green-night: #66BD80;
  --df-pin-field: #fff;
  --df-ghost: color-mix(in srgb, var(--vn-trail-green) 30%, transparent);
  --df-tape: light-dark(rgba(186, 117, 23, 0.42), rgba(232, 163, 61, 0.28));
  --df-invert-bg: light-dark(#0d4a21, #ffeeda);
  --df-invert-fg: light-dark(#ffe3c4, #0c1410);
  --df-invert-soft: light-dark(#b9cbb6, #3e4a42);
  --df-press-lift-sm: 0 1px 0 rgba(9, 20, 13, 0.1), 0 9px 16px -11px rgba(9, 20, 13, 0.7);
  --color-route-amber: var(--vn-amber);
  --color-route-amber-light: var(--vn-amber-light);
  --color-route-amber-mid: var(--vn-amber-mid);
  --color-route-amber-text: var(--vn-amber-text);
  --color-stamp-coral: var(--vn-coral);
  --color-stamp-coral-light: var(--vn-coral-light);
  --color-stamp-coral-mid: var(--vn-coral-mid);
  --radius-control: var(--radius-pill);
  --color-indigo: var(--vn-indigo);
  --color-indigo-light: var(--vn-indigo-light);
  --color-olive: var(--vn-green);
  --color-olive-light: var(--vn-green-light);
  --color-olive-mid: var(--vn-green-mid);
  --color-purple: var(--vn-purple);
  --color-purple-light: var(--vn-purple-light);
  --color-sky: var(--vn-sky);
  --color-sky-light: var(--vn-sky-light);
  --color-pandan: var(--vn-pandan);
  --color-pandan-light: var(--vn-pandan-light);
  --color-batik: var(--vn-batik);
  --color-batik-light: var(--vn-batik-light);
  --color-sky-text: var(--vn-sky-text);
  --color-stamp-coral-text: var(--vn-coral-text);
  --color-indigo-text: var(--vn-indigo-text);
  --color-purple-text: var(--vn-purple-text);
  --color-field-green: var(--topbar-bg);
  --color-ground: var(--df-ground);
  --color-stock: var(--df-panel);
  --color-ink: var(--df-ink);
  --color-ink-soft: var(--df-ink-soft);
  --color-hair: var(--df-hair);
  --radius-stub: var(--df-radius-stub);
  --radius-card: var(--df-radius-card);
  --radius-print: var(--df-radius-print);
  --shadow-press: var(--df-press);
  --shadow-press-large: var(--df-press-large);
  --shadow-lift: var(--df-press-lift);
}
:root[data-theme="dark"] {
  --shadow-resting: 0 1px 3px rgba(0,0,0,0.45);
  --shadow-hover: 0 6px 16px rgba(0,0,0,0.55);
}
.df-ground-print,
.home-screen,
#discover-screen, #shared-trip-screen, #user-profile-screen, #profile-screen, #invite-screen,
#stamps-screen, #friends-screen, #journey-public-screen,
.landing-screen,
.no-longer-member,
.app.active.is-recap-tab {
  background-color: var(--df-ground);
  background-image: var(--df-halftone), var(--df-wash);
  background-size: 6px 6px, auto, auto;
  background-attachment: fixed;
}
.df-ground-working,
#pending-approval-screen,
.modal-content.dp-modal, .gs-body, #createTripModal .modal-content {
  background-color: var(--df-ground);
  background-image: var(--df-wash);
  background-size: auto, auto;
  background-attachment: fixed;
}
.df-ground-trip,
.app.active {
  background-color: var(--df-ground);
  background-image: none;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

body, input, select, textarea, button {
  font-family: var(--df-sans);
}
button {
  font-size: inherit;
  line-height: inherit;
}

body {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  background: var(--df-ground);
}
body.scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.landing-screen,
.app.active.is-recap-tab {
  min-height: 100vh;
}

.btn-large {
  padding: var(--space-2xl) var(--space-4xl);
  min-height: var(--tap-min);
  font-size: var(--fs-md);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transition: background var(--dur-state) var(--ease-out), color var(--dur-state) var(--ease-out), border-color var(--dur-state) var(--ease-out), box-shadow var(--dur-state) var(--ease-out), transform var(--dur-state) var(--ease-out), opacity var(--dur-state) var(--ease-out);
}
.btn-create {
  background: var(--vn-trail-green);
  color: var(--surface-2);
  border: none;
}

.btn-join {
  background: var(--surface-1);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 20, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  animation: modal-backdrop-in var(--dur-view) var(--ease-out) both;
}
.modal.is-leaving {
  display: flex;
  pointer-events: none;
  animation: modal-backdrop-out var(--dur-exit) var(--ease-exit) both;
}

.modal.is-leaving .modal-content {
  animation: modal-sheet-out var(--dur-exit) var(--ease-exit) both;
}

@keyframes modal-backdrop-out {
  to { opacity: 0; }
}

@keyframes modal-sheet-out {
  to { opacity: 0; transform: translateY(var(--sheet-y, 12px)); }
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
}
@keyframes modal-sheet-in {
  from { opacity: 0; transform: translateY(var(--sheet-y, 12px)); }
}

.modal.active .modal-content {
  animation: modal-sheet-in var(--dur-view) var(--ease-out) both;
}

.modal-content {
  background: var(--df-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 681px) {
  .modal-content {
    background: var(--df-panel);
    border: 2px solid var(--df-ink);
    border-radius: var(--df-radius-card);
    color: var(--df-ink);
  }

  .modal-content .modal-close {
    background: var(--df-panel);
    border: 2px solid var(--df-ink);
    color: var(--df-ink);
    box-shadow: var(--df-press);
  }

  .modal-content .modal-close i { color: var(--df-ink); }
}
@media (max-width: 680px) {
  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    max-width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .modal.active .modal-content {
    animation: modal-sheet-rise var(--dur-sheet) var(--ease-out) both;
  }

  .modal.is-leaving .modal-content {
    animation: modal-sheet-drop var(--dur-exit) var(--ease-exit) both;
  }
}

@keyframes modal-sheet-rise {
  from { transform: translateY(100%); }
}

@keyframes modal-sheet-drop {
  to { transform: translateY(100%); }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: 1.5rem;
}
#addExpenseModal .modal-header {
  position: sticky;
  top: -2rem;
  z-index: 5;
  margin: -2rem -2rem 1.5rem;
  padding: 2rem 2rem 1rem;
  background: var(--df-panel);
  border-radius: var(--df-radius-card) var(--df-radius-card) 0 0;
}

.modal-header h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
  flex: 1;
}
.modal-close {
  flex-shrink: 0;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  cursor: pointer;
  color: var(--text-primary);
  transition: background var(--dur-feedback) var(--ease-out), color var(--dur-feedback) var(--ease-out), border-color var(--dur-feedback) var(--ease-out);
  line-height: 1;
  box-shadow: var(--shadow-resting);
  position: relative;
}

.modal-close::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(var(--tap-min), 100%);
  height: max(var(--tap-min), 100%);
  transform: translate(-50%, -50%);
}

.modal-close i {
  color: var(--text-primary);
}

.modal-close:hover {
  background: var(--df-hair);
  border-color: var(--df-ink);
  color: var(--df-ink);
}

.modal-close:hover i {
  color: var(--df-ink);
}

.form-group {
  margin-bottom: 1rem;
}
input[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--error);
}
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus {
  outline-color: var(--error);
  border-color: var(--error);
}
.field-error {
  display: none;
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-xs);
  line-height: 1.5;
  font-weight: 600;
  color: var(--error-text);
}
.field-error.is-visible { display: block; }

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: none;
  letter-spacing: 0;
}
.form-error { color: var(--danger); font-size: var(--fs-xs, 13px); margin-top: var(--space-xs, 4px); }
.form-error[hidden] { display: none; }
.form-error:not([hidden]) { animation: field-error-in var(--dur-feedback) var(--ease-out) both; }
.form-hint {
  text-transform: none;
  letter-spacing: normal;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-muted);
}
.inline-add-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.exp-form-section {
  border: none;
  margin: 0 0 var(--sp-xl);
  padding: 0;
}
.exp-form-section + .exp-form-section {
  border-top: 0.5px solid var(--border);
  padding-top: var(--sp-xl);
}
.exp-form-section-legend {
  padding: 0;
  margin-bottom: var(--sp-md);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--df-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wizard-date-row-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  align-items: center;
}
.wizard-date-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: 0 var(--space-2xs);
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--df-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wizard-cal-nav-btn {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--df-ink);
  cursor: pointer;
  font-size: var(--fs-lg);
}
.wizard-cal-nav-btn:disabled { opacity: 0.35; cursor: default; }
.wizard-cal-months { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.wizard-cal-month { background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub); padding: var(--space-sm) var(--space-md) var(--space-md); }
.wizard-cal-head { display: flex; align-items: center; justify-content: space-between; }
.wizard-cal-head .wizard-cal-title { flex: 1; width: auto; white-space: nowrap; }
.wizard-cal-month-2 { display: none; }
@media (min-width: 768px) {
  .wizard-cal-months { grid-template-columns: 1fr 1fr; }
  .wizard-cal-month-2 { display: block; }
  .wizard-cal-month-2 .wizard-cal-head::before { content: ''; min-width: var(--tap-min); }
  .wizard-cal-nav-btn.is-next-solo { display: none; }
  .wizard-cal-head:has(.is-prev)::after { content: ''; min-width: var(--tap-min); }
}
.wizard-nights-readout { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wizard-dates-row { display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start; }
.wizard-dates-row .wizard-cal { width: 100%; }
@media (min-width: 1024px) {
  .wizard-dates-row { flex-direction: row; }
  .wizard-dates-row .wizard-cal { flex: 1 1 auto; min-width: 0; }
  #wizard-past-slot { flex: 0 0 260px; }
  #wizard-past-slot:empty { display: none; }
  .wizard-dates-row:has(.wizard-past-card) .wizard-cal-months { grid-template-columns: 1fr; }
  .wizard-dates-row:has(.wizard-past-card) .wizard-cal-month-2 { display: none; }
  .wizard-dates-row:has(.wizard-past-card) .wizard-cal-nav-btn.is-next-solo { display: inline-flex; }
  .wizard-dates-row:has(.wizard-past-card) .wizard-cal-head::after,
  .wizard-dates-row:has(.wizard-past-card) .wizard-cal-head::before { display: none; }
  .wizard-dates-row:has(.wizard-past-card) .wizard-cal-title { justify-content: flex-start; }
  .wizard-dates-row:has(.wizard-past-card) .is-prev { order: 2; }
  .wizard-dates-row:has(.wizard-past-card) .is-next { order: 3; }
  .wizard-dates-row:has(.wizard-past-card) ~ .wizard-dates-undecided { display: none; }
  #createTripModal .modal-content.has-band.is-dates { padding-right: 62px; }
  #createTripModal .wizard-footer.is-dates-blocked .wizard-escape-hatch { visibility: hidden; }
}
.wizard-dates-undecided { align-items: flex-start; margin-top: var(--space-md); }
.wizard-dates-undecided .wizard-chip { width: auto; padding: var(--space-sm) var(--space-lg); border-style: dashed; border-radius: 999px; box-shadow: none; background: transparent; font-weight: 600; }
.wizard-past-card .wizard-past-actions .wizard-past-yes,
.wizard-past-card .wizard-past-actions .wizard-past-change { min-height: var(--tap-min); padding-inline: var(--space-lg); border: 2px solid var(--df-ink); border-radius: 999px; box-shadow: var(--df-press); font-family: var(--df-sans); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.wizard-past-card .wizard-past-actions .wizard-past-yes { background: var(--df-brand); color: var(--df-brand-fg); }
.wizard-past-card .wizard-past-actions .wizard-past-change { background: var(--df-panel); color: var(--df-ink); }
.wizard-cal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  min-height: var(--tap-min);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--df-sans);
  font-weight: 600;
  color: var(--df-ink);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  margin-bottom: var(--space-xs);
  font-size: var(--fs-lg);
}
.wizard-cal-title:focus-visible { outline: 2px solid var(--df-ink); outline-offset: -2px; }
.wizard-cal-picker { margin-bottom: var(--space-sm); padding: var(--space-sm); background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub); }
.wizard-cal-picker-year { display: flex; align-items: center; justify-content: space-between; font-family: var(--df-sans); font-weight: 600; color: var(--df-ink); margin-bottom: var(--space-xs); }
.wizard-cal-picker-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xs); }
.wizard-cal-picker-month {
  min-height: var(--tap-min);
  background: transparent;
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  color: var(--df-ink);
  font-family: var(--df-sans);
  cursor: pointer;
}
.wizard-cal-picker-month.is-past-month { border-style: dashed; color: var(--df-ink-soft); }
.wizard-cal-picker-month.is-current { background: var(--df-ink); color: var(--df-panel); }
.wizard-cal-cell.is-past:not(.is-in-range) { color: var(--df-ink-soft); }
.wizard-cal-blank { color: var(--df-ink-soft); opacity: 0.55; }
.wizard-past-card {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  font-family: var(--df-sans);
  color: var(--df-ink);
}
.wizard-past-card { margin-top: 0; }
.wizard-past-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.wizard-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.wizard-cal-dow {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--df-ink);
  text-align: center;
  text-transform: uppercase;
  padding-block: var(--space-xs);
  border-bottom: 2px solid var(--df-ink);
  margin-bottom: var(--space-xs);
}
.wizard-cal-dow:nth-child(n+6) { color: var(--df-brand); }
.wizard-cal-cell {
  min-height: var(--tap-min);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  color: var(--df-ink);
  border-radius: var(--df-radius-stub);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--dur-feedback) var(--ease-out);
}
.wizard-cal-cell:focus-visible { outline: 2px solid var(--df-ink); outline-offset: -2px; }
.wizard-cal-cell.is-weekend { background: var(--df-hair); }
.wizard-cal-cell.is-today { box-shadow: inset 0 0 0 2px var(--df-ink); font-weight: 600; }
@media (hover: hover) {
  .wizard-cal-cell:not(.wizard-cal-blank):not(.is-start):not(.is-end):hover { background: color-mix(in srgb, var(--df-ink) 16%, var(--df-panel)); }
}
.wizard-cal-cell:not(.wizard-cal-blank):active { background: color-mix(in srgb, var(--df-ink) 28%, var(--df-panel)); }
.wizard-cal-grid { grid-template-rows: auto repeat(6, var(--tap-min)); }
.wizard-when-presets { margin-bottom: var(--space-md); }
.wizard-date-hint:empty { display: none; }
@media (min-width: 768px) {
  .wizard-chip-grid.wizard-when-presets { flex-direction: row; flex-wrap: wrap; margin: 0 0 var(--space-md); }
  .wizard-chip-grid.wizard-when-presets .wizard-chip { width: auto; padding: var(--space-sm) var(--space-xl); font-weight: 600; }
  .wizard-chip-grid.wizard-dates-undecided { margin-top: var(--space-sm); margin-bottom: 0; }
}
.wizard-cal-cell.is-in-range, .wizard-cal-cell.is-in-range.is-weekend { background: var(--selected-bg); color: var(--on-selected); border-radius: 0; }
.wizard-cal-cell.is-start,
.wizard-cal-cell.is-end,
.wizard-cal-cell.is-start.is-weekend,
.wizard-cal-cell.is-end.is-weekend { background: var(--df-brand); color: var(--df-brand-fg); font-weight: 600; }
.wizard-cal-cell.is-start { border-radius: 999px 0 0 999px; }
.wizard-cal-cell.is-end { border-radius: 0 999px 999px 0; }
.wizard-cal-cell.is-start.is-end { border-radius: 999px; }
.wizard-cal-blank { cursor: default; }
.wizard-date-hint {
  margin-top: var(--space-sm);
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
  min-height: 1.2em;
}

.trip-destination-input-wrap { position: relative; }
.trip-destination-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  box-shadow: var(--df-press);
  z-index: 10;
  overflow: hidden;
}

.trip-destination-suggestion {
  padding: var(--space-md) var(--space-lg);
  min-height: var(--tap-min);
  font-size: var(--fs-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.trip-destination-suggestion:hover { background: var(--vn-trail-green-light); }
.geonames-credit {
  margin-top: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.geonames-credit a { color: inherit; }

.trip-destination-suggestion-region {
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="number"],
input[type="tel"],
input[type="file"],
select,
textarea {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-xl);
  font-size: var(--fs-sm);
  font-family: inherit;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--surface-1);
  box-sizing: border-box;
}
@media (max-width: 680px), (pointer: coarse) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="time"],
  input[type="number"],
  input[type="tel"],
  input[type="search"],
  input[type="url"],
  input:not([type]),
  input[type="file"],
  select,
  textarea {
    font-size: var(--fs-md);
    height: var(--tap-min);
  }
}

textarea {
  height: auto;
  min-height: 80px;
  padding: var(--space-lg) var(--space-xl);
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  min-height: var(--tap-min);
}

input[type="file"] {
  height: auto;
  padding: var(--space-lg) var(--space-xl);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--vn-trail-green);
  box-shadow: 0 0 0 3px var(--vn-trail-green-light);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--vn-trail-green);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--vn-trail-green-light);
}

.btn-primary {
  width: 100%;
  padding: var(--space-xl);
  min-height: var(--tap-min);
  background: var(--vn-trail-green);
  color: var(--surface-2);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: var(--vn-trail-green-mid);
}

.btn-secondary {
  width: 100%;
  padding: var(--space-lg);
  min-height: var(--tap-min);
  background: var(--surface-1);
  color: var(--text-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--border);
}
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-small:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn-primary:disabled:hover {
  background: var(--vn-trail-green);
}
.btn-secondary:disabled:hover {
  background: var(--surface-1);
}
.itin-toolbar {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.itin-action-btn {
  flex: 1;
  min-width: 140px;
}
.itin-create-actions {
  display: contents;
}
.itin-create-reason {
  flex-basis: 100%;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.itin-decide-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
  flex-wrap: wrap;
}
.itin-more-btn,
.itin-more-menu { display: none; }
.itin-toolbar .itin-toolbar-pill.itin-more-btn { display: none; }
.itin-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 30;
  min-width: 220px;
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.itin-more-menu[hidden] { display: none; }
@media (max-width: 680px) {
  .itin-more-btn,
  .itin-toolbar .itin-toolbar-pill.itin-more-btn { display: inline-flex; justify-content: center; margin-left: 0; }
  .itin-more-menu:not([hidden]) { display: block; }
  #itin-proposals-btn { display: none !important; }
}
@media (max-width: 680px) {
  .itin-create-actions {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    gap: var(--space-md);
  }
  #itin-phone-views .itin-view-label { display: none; }
  #itin-phone-views .itin-view-toggle-btn {
    min-width: var(--tap-min);
    padding: var(--space-md);
  }
  .itin-decide-group { flex-wrap: nowrap; }
}
.itin-toolbar-pill {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 0 var(--space-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}
.itin-toolbar-pill:hover {
  border-color: var(--border-strong);
}
.itin-toolbar .itin-action-btn,
.itin-toolbar .itin-toolbar-pill {
  font-family: var(--df-sans);
  border-radius: var(--radius-pill);
  border: 2px solid var(--df-ink);
  box-shadow: var(--df-press);
  transition: transform var(--dur-feedback) var(--ease-out), box-shadow var(--dur-feedback) var(--ease-out);
}
.itin-toolbar .itin-action-btn:hover,
.itin-toolbar .itin-toolbar-pill:hover {
  border-color: var(--df-ink);
  transform: translate(2px, 2px);
  box-shadow: var(--df-press-hover);
}
.itin-toolbar .itin-action-btn:active,
.itin-toolbar .itin-toolbar-pill:active {
  transform: translate(4px, 4px);
  box-shadow: var(--df-press-active);
}
.itin-toolbar .itin-action-btn:disabled,
.itin-toolbar .itin-action-btn:disabled:hover {
  box-shadow: var(--df-press);
  transform: none;
}
.itin-view-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}
#itin-phone-views,
#members-subtab-toggle {
  border: 2px solid var(--df-ink);
}
#itin-phone-views .itin-view-toggle-btn + .itin-view-toggle-btn,
#members-subtab-toggle .itin-view-toggle-btn + .itin-view-toggle-btn {
  border-left: 2px solid var(--df-ink);
}
.itin-view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  min-height: var(--tap-min);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--df-sans);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur-feedback) var(--ease-out), color var(--dur-feedback) var(--ease-out);
}
.itin-view-toggle-btn + .itin-view-toggle-btn {
  border-left: 1.5px solid var(--border);
}
.itin-view-toggle-btn.active {
  background: var(--selected-bg);
  color: var(--on-selected);
}
@media (min-width: 1024px) {
  #itin-phone-views { display: none; }
}
#members-subtab-toggle .itin-view-toggle-btn {
  flex: 1;
}
.wizard-progress-bar { margin-bottom: 0.75rem; }
.wizard-progress-segments {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.wizard-progress-label {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--df-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wizard-question {
  display: block;
  margin: 0 0 var(--space-lg);
  font-family: var(--df-sans);
  font-size: clamp(1.0625rem, 4.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--df-ink);
}
.wizard-chip .ti { flex: none; font-size: 1.25em; line-height: 1; }

.wizard-chip-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-sm) 0 var(--space-lg);
}
.wizard-chip {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--fs-sm);
  font-family: inherit;
  text-align: left;
  color: var(--df-ink);
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  box-shadow: var(--df-press);
  cursor: pointer;
  transition: transform var(--dur-feedback) var(--df-ease), box-shadow var(--dur-feedback) var(--df-ease), background var(--dur-feedback) var(--df-ease), border-color var(--dur-feedback) var(--df-ease), color var(--dur-feedback) var(--df-ease);
}
.wizard-chip:hover { background: var(--vn-trail-green-light); border-color: var(--vn-trail-green); transform: translate(2px, 2px); box-shadow: var(--df-press-hover); }
.wizard-chip:active { background: var(--vn-trail-green-light); border-color: var(--vn-trail-green); color: var(--vn-trail-green); transform: translate(4px, 4px); box-shadow: var(--df-press-active); }
.wizard-chip.selected {
  background: var(--selected-bg);
  border-color: var(--selected-bg);
  color: var(--on-selected);
  font-weight: 600;
}
.wizard-leg-chip-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-nights-readout {
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
  min-height: 1em;
}
.wizard-recap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--space-md) var(--space-xl);
  font-family: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  color: var(--df-ink-soft);
  background: none;
  border: none;
  border-bottom: 2px dashed var(--df-hair);
  cursor: pointer;
  transition: background var(--dur-feedback) var(--ease-out);
}
.wizard-recap-row:last-child { border-bottom: none; }
.wizard-recap-row:hover { background: var(--vn-trail-green-light); }
.wizard-recap-label {
  font-family: var(--df-sans);
  font-weight: 700;
  color: var(--df-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.wizard-recap-value {
  color: var(--df-ink);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wizard-nav {
  display: flex;
  gap: var(--space-md);
  margin-bottom: 0.75rem;
}
.wizard-nav button {
  flex: 1;
}
.wizard-escape-hatch {
  text-align: center;
  margin-bottom: var(--space-sm);
}
.wizard-quiet-link {
  min-height: var(--tap-min);
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
  text-decoration: underline;
  cursor: pointer;
}
.wizard-quiet-link:hover { color: var(--df-ink); }
.wizard-create-now {
  min-height: var(--tap-min);
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-md, 8px);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--df-ink);
  cursor: pointer;
}
.wizard-create-now:hover { border-color: var(--df-ink); }
.create-trip-budget-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}
.create-trip-budget-currency-sel {
  flex: 1 1 50%;
  min-width: 0;
}
.create-trip-budget-row input {
  flex: 1 1 50%;
  min-width: 0;
}
#createTripModal .create-trip-budget-currency-sel { flex: 0 0 11rem; font-size: var(--fs-md); font-weight: 600; min-height: 3.5rem; padding-inline: var(--space-md); }
#createTripModal [data-wizard-step="budget:amount"] .wizard-chip-grid { margin-top: var(--space-lg); gap: var(--space-md); }
#createTripModal [data-wizard-step="budget:amount"] .wizard-chip { font-size: var(--fs-md); font-weight: 600; padding: var(--space-md) var(--space-xl); }
#createTripModal [data-wizard-step="budget:amount"] .wizard-chip:last-child { border-style: dashed; box-shadow: none; background: transparent; }
#createTripModal #createTripBudget {
  flex: 1 1 auto;
  font: 800 1.75rem/1.2 var(--df-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  min-height: 3.5rem;
}
#createTripModal #createTripBudget:focus { outline: none; border-color: var(--df-brand); box-shadow: 0 0 0 3px var(--df-brand); }
.app {
  display: none;
}
.app.active {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--df-ink);
  font-family: var(--df-sans);
}
.app a:focus-visible,
.app button:focus-visible,
.app [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--df-brand);
  outline-offset: 3px;
}
.app .btn-primary {
  border-radius: var(--radius-pill);
  transition: transform var(--dur-feedback) var(--df-ease), background var(--dur-feedback) var(--df-ease);
}
.app .btn-primary:hover {
  transform: translate(2px, 2px);
}
.app .btn-primary:active {
  transform: translate(4px, 4px);
}
.app .btn-primary:disabled {
  transform: none;
}

.app .btn-secondary {
  --press-bw: 2px;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
  transition: transform var(--dur-feedback) var(--df-ease);
}
.app .btn-secondary:hover {
  background: var(--df-panel);
  transform: translate(2px, 2px);
}
.app .btn-secondary:active {
  transform: translate(4px, 4px);
}
.app .btn-secondary:disabled {
  transform: none;
}

.app .btn-small {
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
}
.app .btn-small:hover {
  background: var(--df-hair);
}
.df-modal-content {
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  font-family: var(--df-sans);
  color: var(--df-ink);
}
.df-modal-content .modal-header h2 {
  font-family: var(--df-title);
  font-weight: 700;
  letter-spacing: 0;
}
.df-modal-content .modal-header h2.person-sheet-title {
  font-family: var(--df-sans);
  font-weight: 600;
}
.df-modal-content .modal-header h2.xk-figure {
  font-family: var(--df-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.df-modal-content .modal-close {
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  color: var(--df-ink);
  box-shadow: var(--df-press);
  transition: transform var(--dur-feedback) var(--df-ease), box-shadow var(--dur-feedback) var(--df-ease);
}
.df-modal-content .modal-close i { color: var(--df-ink); }
.df-modal-content .modal-close:hover {
  background: var(--df-hair);
  border-color: var(--df-ink);
  color: var(--df-ink);
  transform: translate(2px, 2px);
  box-shadow: var(--df-press-hover);
}
.df-modal-content .modal-close:hover i { color: var(--df-ink); }

.df-modal-content .form-label {
  font-family: var(--df-sans);
  color: var(--df-ink-soft);
  letter-spacing: 0.08em;
}
.df-modal-content .form-hint { color: var(--df-ink-soft); }
.modal-content.export-pdf-modal { max-width: 560px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.modal-content.export-pdf-modal .modal-header { padding: 1.5rem 1.5rem 0; margin-bottom: var(--space-md); }
.modal-content.export-pdf-modal .modal-header h2 { font-family: var(--df-title); font-weight: 700; font-size: var(--fs-xl); letter-spacing: 0; }
.exp-pdf-body { padding: 0 1.5rem 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-md); }
.exp-pdf-field[hidden], .exp-pdf-chip[hidden] { display: none; }
.exp-pdf-label { display: block; margin-bottom: var(--sp-sm); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--df-ink-soft); }
.exp-pdf-chips { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.exp-pdf-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--tap-min); padding: 0 var(--sp-md);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--df-ink);
  background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: 999px; cursor: pointer;
  transition: background var(--dur-feedback) var(--df-ease), color var(--dur-feedback) var(--df-ease);
}
.exp-pdf-chip:hover { background: var(--df-chip-fill-hover); }
.exp-pdf-seg { display: inline-flex; padding: 0; gap: 0; overflow: hidden; border: 2px solid var(--df-ink); border-radius: 999px; background: var(--df-panel); }
.exp-pdf-seg-btn {
  min-height: var(--tap-min); padding: 0 var(--sp-md);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--df-ink-soft);
  background: transparent; border: 0; border-radius: 999px; cursor: pointer;
}
.exp-pdf-seg-btn.sel { background: var(--df-ink); color: var(--df-panel); }
.exp-pdf-foot {
  display: grid; gap: var(--sp-sm); padding: var(--sp-md) 1.5rem 1.5rem;
  border-top: 2px solid var(--df-ink);
  background: color-mix(in srgb, var(--df-ground) 70%, var(--df-panel));
}
.exp-pdf-go { width: 100%; font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-sm); }
.exp-pdf-go:disabled { opacity: 0.5; cursor: not-allowed; }
.exp-pdf-json {
  justify-self: center; display: inline-flex; align-items: center; gap: var(--sp-sm);
  min-height: var(--tap-min); padding: 0 var(--sp-sm);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--df-ink);
  background: none; border: 0; cursor: pointer;
}
.exp-pdf-json:hover { text-decoration: underline; }
.exp-pdf-chip .ti { margin-right: var(--sp-xs, 4px); }
.modal-content.sharing-modal { max-width: 520px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 85vh; max-height: 85dvh; }
.modal-content.sharing-modal .modal-header { padding: 1.5rem 1.5rem 0; margin-bottom: var(--space-md); }
.modal-content.sharing-modal .modal-header h2 { font-family: var(--df-title); font-weight: 700; font-size: var(--fs-xl); letter-spacing: 0; }
.sharing-modal-body { padding: 0 1.5rem 1rem; overflow-y: auto; flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--space-lg); }
.sharing-notice { font-size: var(--fs-xs); color: var(--info); background: var(--surface-2); border: 0.5px solid var(--info); border-radius: var(--radius-sm); padding: var(--space-md) var(--space-lg); }
.sharing-eyebrow { display: block; margin-bottom: var(--space-sm); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--df-ink-soft); }
.sharing-all-row { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.sharing-seg { display: inline-flex; border: 2px solid var(--df-ink); border-radius: 999px; background: var(--df-panel); padding: 0; }
.sharing-cat { padding: var(--space-lg) 0 var(--space-sm); border-top: 2px dashed var(--df-hair); }
.sharing-cat-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sharing-cat-name strong { font-weight: 600; }
.sharing-count {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  min-height: var(--tap-min); margin: 0; padding: 0; font: inherit; font-size: var(--fs-xs); color: var(--df-ink-soft);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.sharing-count.is-empty { cursor: default; min-height: 0; }
.sharing-cat .sharing-mask-label { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: var(--fs-xs); color: var(--df-ink-soft); }
.sharing-items { margin: var(--space-md) 0 0; padding: var(--space-sm) var(--space-lg); background: var(--df-ground); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub); display: flex; flex-direction: column; }
.sharing-items[hidden] { display: none; }
.sharing-foot-note { margin: 0; font-size: var(--fs-xs); color: var(--df-ink-soft); }
.sharing-footer {
  padding: var(--space-lg) 1.5rem 1.5rem; border-top: 2px solid var(--df-ink);
  background: color-mix(in srgb, var(--df-ground) 70%, var(--df-panel));
}
.sharing-footer .btn-primary { width: 100%; font-weight: 600; font-size: var(--fs-sm); }
.df-modal-content input:not([type="radio"]):not([type="checkbox"]),
.df-modal-content select,
.df-modal-content textarea {
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  background: var(--df-panel);
  color: var(--df-ink);
}

.df-modal-content .btn-primary {
  border-radius: var(--radius-pill);
  transition: transform var(--dur-feedback) var(--df-ease), background var(--dur-feedback) var(--df-ease);
}
.df-modal-content .btn-primary:hover { transform: translate(2px, 2px); }
.df-modal-content .btn-primary:active { transform: translate(4px, 4px); }
.df-modal-content .btn-primary:disabled { transform: none; }
.btn-primary.btn-danger,
.btn-secondary.btn-danger,
.df-modal-content .btn-primary.btn-danger {
  background: var(--error-solid);
  border-color: var(--error-solid);
  color: var(--df-pin-white);
}
.btn-primary.btn-danger:hover,
.btn-secondary.btn-danger:hover,
.df-modal-content .btn-primary.btn-danger:hover { background: var(--error-solid); filter: brightness(0.9); }
.danger-note {
  font-size: var(--fs-xs);
  color: var(--error-text);
  background: var(--surface-2);
  border: 0.5px solid var(--error-text);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  margin-bottom: 1rem;
}
.df-modal-content .btn-primary.btn-danger-solid {
  background: var(--danger-solid);
  color: var(--on-danger);
}
.df-modal-content .btn-primary.btn-danger-solid:hover { background: var(--danger-solid); filter: brightness(0.9); }
#confirmModalContent { max-width: 380px; }
@media (min-width: 681px) {
  #confirmModalContent.confirm-sheet { max-width: 480px; }
}
#confirmModalBody {
  color: var(--df-ink-soft, var(--text-secondary));
  font-size: var(--fs-xs);
}
.confirm-actions .btn-primary { margin-top: 0; }
#confirmModalContent .confirm-actions .btn-primary,
#confirmModalContent .confirm-actions .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px; font-weight: 600;
}
#confirmModalContent .confirm-actions .btn-secondary { border: 2px solid var(--df-ink); background: var(--df-panel); color: var(--df-ink); }
#confirmModalContent .confirm-actions .btn-primary.btn-danger-solid { border: 2px solid var(--df-ink); --press-bw: 2px; }
#confirmModalContent .confirm-icon { display: none; }
#confirmModalContent #confirmModalTitle { font-size: var(--fs-xl); line-height: 1.2; }
#confirmModalContent #confirmModalBody:not(:has(.confirm-list)) { color: var(--df-ink-soft); font-size: var(--fs-sm); line-height: 1.45; }
.confirm-handle { display: none; }
@media (max-width: 680px) {
  #confirmModalContent { padding-top: 12px; }
  #confirmModalContent .confirm-handle {
    display: block; width: 40px; height: 4px; margin: 0 auto 16px;
    border-radius: 999px; background: var(--df-ink); opacity: 0.35;
  }
  #confirmModalContent .confirm-actions { flex-direction: column-reverse; align-items: stretch; }
  #confirmModalContent .confirm-actions .btn-primary, #confirmModalContent .confirm-actions .btn-secondary { width: 100%; }
}

.df-modal-content .btn-secondary {
  --press-bw: 2px;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
  transition: transform var(--dur-feedback) var(--df-ease);
}
.df-modal-content .btn-secondary:hover { background: var(--df-panel); transform: translate(2px, 2px); }
.df-modal-content .btn-secondary:active { transform: translate(4px, 4px); }
.df-modal-content .btn-secondary:disabled { transform: none; }

.df-modal-content .btn-small {
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
}
.df-modal-content .btn-small:hover { background: var(--df-hair); }
.stop-modal-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.stop-modal-footer .btn-primary,
.stop-modal-footer .btn-secondary { flex: 1 1 0; width: auto; min-width: 0; margin-top: 0; white-space: nowrap; }
.stop-modal-delete-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 2px solid var(--error);
  border-radius: 50%;
  background: var(--df-panel);
  color: var(--error);
  --press-bw: 2px;
  font-size: 16px;
  transition: transform var(--dur-feedback) var(--df-ease), background var(--dur-feedback) var(--df-ease);
}
.stop-modal-delete-btn[hidden] { display: none; }
.stop-modal-delete-btn:hover { background: linear-gradient(var(--error-light), var(--error-light)), var(--df-panel); transform: translate(2px, 2px); }
.stop-modal-delete-btn:active { transform: translate(4px, 4px); }

@media (max-width: 680px) {
  .df-modal-content {
    border-radius: var(--df-radius-card) var(--df-radius-card) 0 0;
  }
}

.app-main {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 1rem) 0 calc(80px + env(safe-area-inset-bottom));
  overflow-x: clip;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
}
.app .home-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.app.active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--df-ground);
  pointer-events: none;
  z-index: 44;
}
.home-topbar-lockup {
  display: block;
  width: auto;
  height: var(--logo-nav);
  flex-shrink: 0;
}

.header-sub {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.3;
  color: var(--topbar-fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-view) var(--ease-out);
}
.app-backdrop.app-backdrop-photo {
  background-image: var(--content-photo);
  background-size: 75% 75%;
  background-position: top right;
  background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(circle at top right, #000 0%, transparent 25%);
  mask-image: radial-gradient(circle at top right, #000 0%, transparent 25%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.app-backdrop.app-backdrop-photo.app-backdrop-photo-visible {
  opacity: 1;
}

.tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  background: var(--df-panel);
  border-top: 2px solid var(--df-ink);
  padding: var(--space-md) max(var(--space-lg), env(safe-area-inset-left)) calc(var(--space-md) + env(safe-area-inset-bottom)) max(var(--space-lg), env(safe-area-inset-right));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 400px) {
  .tabs {
    padding-left: max(var(--space-xs), env(safe-area-inset-left));
    padding-right: max(var(--space-xs), env(safe-area-inset-right));
  }
}
.tabs::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--selected-bg);
  opacity: var(--tab-ind-op, 0);
  transform: translateX(var(--tab-ind-x, 0px));
  transition: transform var(--dur-state) var(--ease-move);
  pointer-events: none;
}
.tabs.tabs-no-anim::after { transition: none; }
.tab {
  flex: 1 1 auto;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  overflow: hidden;
  flex-direction: column;
  padding: var(--space-md) var(--space-xs);
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.3;
  color: var(--df-ink-soft);
  cursor: pointer;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: color var(--dur-feedback) var(--ease-out);
}

.tab.active {
  background: var(--selected-bg);
  color: var(--on-selected);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.tab i {
  font-size: var(--fs-xl);
  transition: transform var(--dur-state) var(--ease-out);
}

.tab.active i {
  transform: translateY(-1px) scale(1.06);
}

.tab-icon-only i {
  font-size: var(--fs-xl);
}
.tab-view-btn { display: none; }

.tab-icon-only span {
  display: none;
}
.tab span {
  white-space: nowrap;
}

.tab-icon-only {
  flex: 0 0 var(--tap-min);
}
.tabs-dense .tab span {
  display: none;
}

.panel {
  display: none;
  padding: 1rem;
}

.panel.active {
  display: block;
}
.tab-phase-hidden {
  display: none !important;
}
@keyframes panel-enter {
  from { opacity: 0; transform: translateX(calc(var(--panel-dir, 1) * 10px)); }
}

.panel.panel-enter {
  animation: panel-enter var(--dur-view) var(--ease-out) both;
}
.panel.panel-leaving {
  display: block;
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  animation: panel-leave var(--dur-feedback) var(--ease-exit) both;
}

@keyframes panel-leave {
  to { opacity: 0; }
}
.screen-arrive {
  animation: panel-enter var(--dur-view) var(--ease-out) both;
}

.toast-msg {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: light-dark(#1a1a1a, var(--surface-2));
  color: light-dark(var(--df-pin-white), var(--text-primary));
  border: 1px solid light-dark(transparent, var(--border));
  padding: var(--space-lg) var(--space-4xl);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 400;
  z-index: var(--z-toast);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  white-space: normal;
  max-width: min(92vw, 420px);
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--dur-state) var(--ease-out), transform var(--dur-state) var(--ease-out), background var(--dur-state) var(--ease-out);
}
.toast-msg.toast-error {
  background: var(--error);
}

.toast-msg.toast-in {
  transform: translateX(-50%) translateY(0);
}
.toast-msg:not(.toast-in) {
  transition-duration: var(--dur-feedback);
}
.toast-msg.has-action {
  pointer-events: auto;
  width: max-content;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.toast-action {
  flex-shrink: 0;
  min-height: var(--tap-min);
  padding: 0 var(--space-lg);
  background: none;
  border: none;
  color: var(--df-pin-trail-green-night);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.toast-action:hover { text-decoration: underline; }
.toast-close {
  flex-shrink: 0;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--df-pin-white);
  cursor: pointer;
}

.toast-close i { font-size: var(--fs-md); }
.version-update-banner {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: light-dark(#1a1a1a, var(--surface-2));
  color: light-dark(var(--df-pin-white), var(--text-primary));
  border: 1px solid light-dark(transparent, var(--border));
  padding: var(--space-lg) var(--space-xl) var(--space-lg) var(--space-3xl);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 400;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: calc(100vw - 32px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.version-update-refresh {
  background: var(--vn-green-mid);
  color: var(--df-pin-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-2xl);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.version-update-dismiss {
  background: none;
  border: none;
  color: var(--df-pin-white);
  opacity: 1;
  font-size: var(--fs-lg);
  line-height: 1;
  cursor: pointer;
  padding: 0 var(--space-2xs);
}
@media (hover: hover) {
  .version-update-dismiss {
    opacity: 0.7;
  }
  .version-update-dismiss:hover {
    opacity: 1;
  }
}
.consent-toggles {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  justify-content: space-between;
}

.consent-row-text { flex: 1 1 auto; min-width: 0; }

.consent-row-title {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.consent-row-desc {
  margin: 2px 0 0;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-muted);
}

.consent-row-desc a { color: inherit; text-decoration: underline; }
.consent-row-desc a,
.consent-policy-link a {
  position: relative;
}
.consent-row-desc a::before,
.consent-policy-link a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(var(--tap-min), 100%);
  height: max(var(--tap-min), 100%);
  transform: translate(-50%, -50%);
}

.consent-subrows {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: calc(-1 * var(--space-xs));
  padding-left: var(--space-lg);
  border-left: 2px solid var(--border);
}
.consent-subrows[hidden] { display: none; }

.consent-subrow .consent-row-title { font-weight: 600; font-size: var(--fs-xs); }
.consent-heading-title {
  margin: 0;
  font-family: var(--df-sans);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.25;
}

.consent-heading-text {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-muted);
}

.consent-expand {
  align-self: flex-start;
  min-height: var(--tap-min);
  margin: calc(-1 * var(--space-sm)) 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.consent-expand:focus-visible { outline: 2px solid var(--vn-green-mid); outline-offset: 2px; }
.consent-row-privacy .consent-row-title { cursor: default; }

.consent-note,
.consent-policy-link {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.consent-policy-link a { color: inherit; text-decoration: underline; }
.consent-switch {
  position: relative;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 13px;
  background: var(--border);
  cursor: pointer;
  transition: background var(--dur-feedback) var(--ease-out);
}

.consent-switch::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: max(var(--tap-min), 100%);
  height: max(var(--tap-min), 100%);
  transform: translate(-50%, -50%);
}

.consent-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--df-pin-white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: transform var(--dur-state) var(--ease-move);
}

.consent-switch:checked { background: var(--vn-green-mid); }
.consent-switch:checked::after { transform: translateX(18px); }
.consent-switch:indeterminate { background: color-mix(in srgb, var(--vn-green-mid) 45%, var(--border)); }
.consent-switch:indeterminate::after { transform: translateX(9px); }
.consent-switch:focus-visible { outline: 2px solid var(--vn-green-mid); outline-offset: 2px; }

.consent-gate-content { max-width: 480px; }

.consent-gate-intro {
  margin: 0 0 var(--space-lg);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-muted);
}

.consent-gate-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.consent-gate-actions > button { flex: 1 1 0; margin: 0; }

.consent-gate-blocked p { margin: 0; line-height: 1.5; }
@media (min-width: 1024px) {
  .app-main {
    max-width: none;
    margin: 0;
    padding: calc(var(--topbar-h) + 1.5rem) 2.5rem 1.5rem;
  }

  .tabs {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
    overflow: visible;
  }

  .tab {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-md);
    padding: 0 var(--space-xl);
    font-size: var(--fs-sm);
    border-radius: var(--radius-pill, 999px);
  }

  .tab-icon-only {
    flex: none;
  }

  .tabs::after {
    display: none;
  }

  .tab i,
  .tab-icon-only i {
    font-size: var(--fs-lg);
  }

  .tab-icon-only span,
  .tabs-dense .tab span {
    display: inline;
  }

  .toast-msg,
  .version-update-banner {
    bottom: 24px;
  }
  .itin-action-btn {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
  }
}
.stat-grid {
  margin-bottom: 1rem;
}
@media (max-width: 1023px) {
  .exp-panel[data-exp-view="balances"] .exp-stub-head,
  .exp-panel[data-exp-view="balances"] .exp-stub-fields,
  .exp-panel[data-exp-view="fund"] .exp-stub-head,
  .exp-panel[data-exp-view="fund"] .exp-stub-fields {
    display: none;
  }
  .exp-panel[data-exp-view="balances"] .exp-stub-compact,
  .exp-panel[data-exp-view="fund"] .exp-stub-compact {
    display: block;
    padding: var(--sp-md) var(--sp-lg);
    font-weight: 400;
  }
}
.budget-eyebrow { white-space: nowrap; font-family: var(--df-sans); font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; }
.budget-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; }
.budget-help-btn {
  min-width: var(--tap-min); min-height: var(--tap-min); border: 0; background: none; color: var(--df-ink);
  font-size: 16px; font-weight: 600; cursor: pointer;
}
@media (min-width: 1024px) {
  .budget-category-modal { align-items: stretch; justify-content: flex-end; padding: 0; }
  .budget-category-modal .modal-content { max-width: 400px !important; height: 100%; max-height: 100%; border-radius: 0; }
}
#panel-budget .section-sub { font-size: 14px; font-weight: 400; line-height: 1.6; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.6rem;
}

.section-head h3 {
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--df-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
#panel-expenses .section-head h3 {
  font-family: var(--df-display);
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--df-ink);
}

.section-sub {
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
  margin: -0.3rem 0 0.6rem;
  line-height: 1.4;
  max-width: var(--prose-measure);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.form-full {
  margin-bottom: var(--space-lg);
}
#panel-expenses input:not([type=file]),
#panel-expenses select,
#edit-expense-modal input:not([type=file]),
#edit-expense-modal select {
  height: 40px;
  box-sizing: border-box;
}
@media (max-width: 680px), (pointer: coarse) {
  #panel-expenses input:not([type=file]),
  #panel-expenses select,
  #edit-expense-modal input:not([type=file]),
  #edit-expense-modal select {
    height: var(--tap-min);
  }
}

#panel-expenses textarea,
#edit-expense-modal textarea {
  height: auto;
  min-height: 60px;
  box-sizing: border-box;
}
.exp-amount-wrap {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.exp-currency-picker {
  position: relative;
  min-width: 60px;
  flex-shrink: 0;
}

.exp-currency-sel {
  width: 100%;
  height: 100%;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
}

.exp-amount-inp {
  flex: 1;
  min-width: 0;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
#exp-tax-toggle, #edit-exp-tax-toggle {
  position: relative;
  flex-shrink: 0;
}
#exp-tax-toggle::before, #edit-exp-tax-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(var(--tap-min), 100%);
  height: max(var(--tap-min), 100%);
  transform: translate(-50%, -50%);
}

.pax-toggle {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.pax-btn {
  min-height: var(--tap-min);
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--fs-xs);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: var(--df-panel);
  color: var(--df-ink-soft);
  font-family: inherit;
  min-width: var(--tap-min);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background var(--dur-feedback) var(--ease-out), color var(--dur-feedback) var(--ease-out), border-color var(--dur-feedback) var(--ease-out);
}

.pax-btn.sel {
  background: var(--selected-bg);
  border-color: var(--selected-bg);
  color: var(--on-selected);
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  padding: var(--space-2xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.cat-food {
  background: var(--vn-pandan-light);
  color: var(--vn-pandan);
}

.cat-transport {
  background: var(--vn-sky-light);
  color: var(--vn-sky-text);
}

.cat-shopping {
  background: var(--vn-batik-light);
  color: var(--vn-batik);
}

.cat-hotel {
  background: var(--vn-indigo-light);
  color: var(--vn-indigo-text);
}

.cat-activity {
  background: var(--vn-green-light);
  color: var(--vn-green);
}

.cat-other {
  background: var(--df-panel);
  color: var(--df-ink-soft);
}
.exp-cat-chip-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: var(--sp-xs);
  padding-bottom: var(--sp-xs);
}
.exp-cat-chip-row .exp-cat-chip {
  flex: 0 0 auto;
  justify-content: center;
  min-width: var(--tap-min);
  padding: var(--sp-sm);
}
.exp-cat-from-stop { font-weight: 400; color: var(--df-ink-soft); }
.split-summary { margin: var(--sp-sm) 0 0; font-size: var(--fs-xs); color: var(--df-ink-soft); }
.split-notequal-link {
  min-height: var(--tap-min);
  padding: 0;
  border: none;
  background: none;
  color: var(--vn-trail-green);
  font: inherit;
  font-size: var(--fs-xs);
  text-decoration: underline;
  cursor: pointer;
}
.bk-split-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); }
.bk-split-row .split-summary { margin: 0; flex: 1; min-width: 0; }
.split-modes { margin-top: var(--sp-xs); }
.split-modes:not(.xk-seg) .split-btn + .split-btn { border-left: 2px solid var(--df-ink); }
.split-modes .split-btn { padding-left: var(--sp-sm); padding-right: var(--sp-sm); }
.stop-cat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
#stopCategoryName, #ideaCategoryName { font-weight: 400; font-size: var(--fs-xs); color: var(--df-ink-soft); text-transform: none; letter-spacing: 0; }

.cat-attraction {
  background: var(--vn-purple-light);
  color: var(--vn-purple-text);
}
.exp-zone {
  margin-bottom: clamp(48px, 6vw, 64px);
}
.exp-zone:last-child {
  margin-bottom: 0;
}

.exp-block + .exp-block {
  margin-top: var(--sp-2xl);
}
.exp-panel .exp-zone-first-head {
  margin-top: 0;
}

.exp-count {
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
}
.exp-ledger-head {
  justify-content: flex-start;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .exp-zone-standing .stat-grid {
    grid-template-columns: 1fr;
  }
}
.exp-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  gap: var(--sp-sm);
  margin-bottom: 1rem;
  padding: 2px;
}
.exp-filters::-webkit-scrollbar { display: none; }
.exp-fund-line {
  display: block;
  width: 100%;
  min-height: var(--tap-min);
  margin-bottom: var(--sp-md);
  padding: 0 var(--sp-lg);
  border: 2px solid var(--df-hair);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--df-ink);
  font-family: inherit;
  font-size: var(--fs-xs);
  text-align: left;
  cursor: pointer;
}
.exp-fund-line:hover { border-color: var(--df-ink); }

.exp-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  position: relative;
  flex: 0 0 auto;
  padding: 0 var(--sp-md);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-feedback) var(--df-ease), color var(--dur-feedback) var(--df-ease), background var(--dur-feedback) var(--df-ease);
}
.exp-filter i { font-size: var(--fs-lg); }
.exp-filter.cmp-food:not(.active) i { color: var(--vn-pandan); }
.exp-filter.cmp-transport:not(.active) i { color: var(--vn-sky-text); }
.exp-filter.cmp-shopping:not(.active) i { color: var(--vn-batik); }
.exp-filter.cmp-hotel:not(.active) i { color: var(--vn-indigo-text); }
.exp-filter.cmp-activity:not(.active) i { color: var(--vn-green); }

.exp-filter:hover {
  background: var(--df-chip-fill-hover);
}

.exp-filter-count {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm);
}

.exp-filter.active {
  border-color: var(--selected-bg);
  background: var(--selected-bg);
  color: var(--on-selected);
}

.exp-list-more {
  margin-top: var(--sp-sm);
}

.exp-pot-section:not(:empty) {
  margin-top: var(--sp-2xl);
}
.exp-view-badge {
  display: inline-block;
  min-width: 1.25em;
  padding: 0 0.4em;
  margin-left: var(--sp-xs);
  border-radius: 999px;
  background: var(--df-ink);
  color: var(--df-panel);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.exp-view-switch {
  width: 100%;
  box-sizing: border-box;
  gap: 2px;
  padding: 4px;
  border: 2px solid var(--df-ink);
  background: var(--df-panel);
}
.exp-view-switch .itin-view-toggle-btn {
  flex: 1;
  min-height: var(--tap-min);
  padding: 0 var(--sp-sm);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--df-ink);
  font-size: var(--fs-md);
  font-weight: 600;
  white-space: nowrap;
}
.exp-view-switch .itin-view-toggle-btn + .itin-view-toggle-btn { border-left: 0; }
.exp-view-switch .itin-view-toggle-btn[aria-pressed="true"] {
  background: var(--df-ink);
  color: var(--df-panel);
}
.exp-view-switch .itin-view-toggle-btn[aria-pressed="true"] .exp-view-badge {
  background: var(--df-panel);
  color: var(--df-ink);
}
@media (max-width: 1023px) {
  .exp-panel[data-exp-view="entries"] [data-exp-view="balances"],
  .exp-panel[data-exp-view="entries"] [data-exp-view="fund"],
  .exp-panel[data-exp-view="balances"] [data-exp-view="entries"],
  .exp-panel[data-exp-view="balances"] [data-exp-view="fund"],
  .exp-panel[data-exp-view="fund"] [data-exp-view="entries"],
  .exp-panel[data-exp-view="fund"] [data-exp-view="balances"] {
    display: none;
  }
}
@media (min-width: 1024px) {
  .exp-view-switch [data-exp-view-btn="entries"] { display: none; }
  .exp-panel[data-exp-view="fund"] #exp-balances-block { display: none; }
  .exp-panel:not([data-exp-view="fund"]) .exp-zone-fund { display: none; }
  .exp-panel[data-exp-view="fund"] .exp-zone-breakdown { display: none; }
}
@media (min-width: 1280px) {
  .exp-zone-ledger {
    grid-column: 1;
    grid-row: 1;
  }
  .exp-panel > .pane-resizer { grid-column: 2; grid-row: 2 / -1; }
  .exp-zone-standing {
    grid-column: 3;
    grid-row: 2 / -1;
    position: sticky;
    top: var(--rail-top);
    max-height: calc(100vh - var(--rail-top) - var(--sp-lg));
    overflow-y: auto;
    padding: 0 var(--sp-xs) var(--sp-xs) 0;
    margin-bottom: 0;
  }
  .exp-zone-standing .stat-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }
}
.expense-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
@keyframes treat-strike {
  from { transform: rotate(-8deg) scale(1.6); opacity: 0; }
  to   { transform: rotate(-8deg) scale(1); opacity: 1; }
}
.form-more-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: var(--tap-min);
  background: none;
  border: none;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-sm);
  font: inherit;
  font-weight: 600;
  color: var(--vn-trail-green);
  cursor: pointer;
  text-align: left;
}
.form-more-chevron {
  transition: transform var(--dur-state) var(--ease-move);
}
.form-more-toggle[aria-expanded="true"] .form-more-chevron {
  transform: rotate(180deg);
}
.form-more-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-view) var(--ease-move);
}
.form-more-details-inner {
  overflow: hidden;
  min-height: 0;
}

.settle-currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  min-height: var(--tap-min);
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  padding: var(--sp-xs) var(--sp-md);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--df-ink-soft);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--dur-feedback) var(--ease-out), color var(--dur-feedback) var(--ease-out), border-color var(--dur-feedback) var(--ease-out);
}
.settle-currency-toggle:hover {
  background: var(--success-light);
  border-color: var(--df-brand);
  color: var(--df-brand);
}
.checklist-columns {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1280px) {
  .checklist-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6px minmax(260px, var(--checklist-pane-width));
    column-gap: 0;
    align-items: start;
  }
  .checklist-columns > .checklist-col:first-child { grid-column: 1; }
  .checklist-columns > .pane-resizer { grid-column: 2; }
  .checklist-rail {
    grid-column: 3;
    position: sticky;
    top: var(--rail-top);
    max-height: calc(100vh - var(--rail-top) - var(--space-3xl));
    overflow-y: auto;
    padding: 0 var(--space-xs) var(--space-xs) 0;
    margin-bottom: calc(-1 * var(--rail-top));
  }
}
.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.app .trip-page-title {
  margin: 0;
  font-family: var(--df-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--df-ink);
}
@media (min-width: 1024px) {
  .app .trip-page-title { font-size: var(--fs-2xl); }
}
.app .bk-title-phone.trip-page-title { margin-bottom: var(--sp-md); }
.app .bk-title.trip-page-title { margin-right: auto; }
.checklist-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-2xl);
  margin-bottom: var(--space-xl);
  background: var(--df-ink);
  color: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
}
.checklist-headline[hidden] { display: none; }
.checklist-stubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.checklist-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.exp-mode-seg { margin-bottom: var(--sp-sm); }
.checklist-filter-seg {
  display: flex;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.checklist-filter-seg button {
  flex: 1;
  min-height: var(--tap-min);
  font: inherit;
  color: var(--df-ink);
  background: var(--df-panel);
  border: 0;
  cursor: pointer;
}
.checklist-filter-seg button.sel {
  color: var(--df-panel);
  background: var(--df-ink);
}

.settle-link-btn {
  background: none;
  border: 2px solid var(--df-ink);
  color: var(--df-ink-soft);
  border-radius: var(--radius-pill);
  padding: var(--sp-sm) var(--sp-md);
  min-height: var(--tap-min);
  font-size: var(--fs-xs);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
}
.settings-section {
  margin-bottom: 1.5rem;
}

.settings-section h4 {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--df-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.set-block-wide {
  grid-column: 1 / -1;
}
.set-block-title,
.set-block .settings-section-title {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--df-ink-soft);
  margin: 0 0 var(--sp-xs);
}
.set-panel-divider {
  border: none;
  border-top: 2px solid var(--df-hair);
  margin: var(--sp-2xl) 0 0;
}

.set-block-hint {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--df-ink-soft);
  margin: 0 0 var(--sp-md);
  max-width: 58ch;
}
.set-label {
  display: block;
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--df-ink-soft);
  margin-bottom: var(--sp-xs);
}
.set-field-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.set-field-row select,
.set-field-row input {
  flex: 1 1 180px;
  min-width: 0;
}
.set-field-suffix {
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--df-ink);
  white-space: nowrap;
}
.set-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-sm);
}
.set-actions .btn-secondary,
.set-actions .btn-primary {
  width: auto;
  margin-top: 0;
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
}
@media (max-width: 480px) {
  .set-actions .btn-secondary,
  .set-actions .btn-primary {
    flex: 1 1 100%;
  }
}
.set-dest-add {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}
.set-dest-add input,
.set-dest-add select {
  flex: 1 1 160px;
  min-width: 0;
}
.set-dest-add .btn-small {
  flex-shrink: 0;
  width: auto;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
}
.set-stub-date-pair {
  display: flex;
  gap: var(--sp-xs);
  align-items: center;
}
.set-stub-date-pair input {
  flex: 1;
  min-width: 0;
}
.set-stub-date-dash {
  color: var(--df-ink-soft);
  font-size: var(--fs-sm);
}
.set-danger {
  border: 2px solid var(--error);
  border-radius: var(--df-radius-card);
  background: var(--df-panel);
  padding: var(--sp-lg);
}
.set-danger-title {
  color: var(--error-text);
}
.set-danger-notice {
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
  border: 2px solid var(--df-hair);
  border-radius: var(--df-radius-stub);
  padding: var(--sp-md) var(--sp-md);
  margin-bottom: var(--sp-md);
}
.set-danger-btn {
  color: var(--error-text);
  border-color: var(--error);
}
.set-panel input:not([type=checkbox]):not([type=radio]),
.set-panel select,
.set-panel textarea {
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  background: var(--df-panel);
  color: var(--df-ink);
}

.set-field-prefix {
  font-size: var(--fs-sm);
  color: var(--df-ink);
  white-space: nowrap;
}
.people-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-2xl);
  align-items: start;
}
@media (min-width: 1280px) {
  .people-top-grid {
    grid-template-columns: minmax(0, 1fr) 6px minmax(260px, var(--people-pane-width));
    column-gap: 0;
  }
  .people-top-grid > #people-roster-card { grid-column: 1; }
  .people-top-grid > .pane-resizer { grid-column: 2; }
  .people-top-grid > #people-access-permissions-card {
    grid-column: 3;
    position: sticky;
    top: var(--rail-top);
    max-height: calc(100vh - var(--rail-top) - var(--space-3xl));
    overflow-y: auto;
  }
}
.people-stat-line {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--df-ink-soft);
  margin: var(--space-lg) 0 var(--space-3xl);
}
.people-card {
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  padding: 0.9rem 1rem;
}
.set-subblock {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 2px dashed var(--df-hair);
}
.set-block-wide {
  container-type: inline-size;
}
.set-panel .pending-section {
  margin-top: var(--sp-lg);
}
.member-list {
  display: flex;
  flex-direction: column;
}
.people-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.people-card-head .people-card-eyebrow { margin-top: var(--space-sm); }
.people-help-btn { background: transparent; color: var(--df-ink); border: 2px solid var(--df-ink); border-radius: 50%; min-width: var(--tap-min); min-height: var(--tap-min); margin: -0.4rem -0.4rem 0 0; }
.perm-role-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-lg) var(--space-xl);
  align-items: start;
  margin: 0 0 var(--space-md);
  padding: var(--space-lg);
  border: 2px dashed var(--df-ink-soft);
  border-radius: var(--radius-lg, 14px);
}
.people-card .set-summary-row { border-bottom: 2px dashed var(--df-ink-soft); }
.people-card .set-summary-row:last-child { border-bottom: 2px dashed var(--df-ink-soft); padding-bottom: var(--sp-md); }
.people-card .set-summary-row-value { color: var(--df-ink); font-weight: 600; }
.perm-role-grid[hidden] { display: none; }
.perm-role-grid dt, .perm-role-grid dd { margin: 0; }
.perm-role-grid dd { font-size: var(--fs-xs); line-height: 1.4; }
.people-card-eyebrow {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
#members-subtab-toggle { margin-bottom: var(--space-md); border-radius: var(--radius-pill); overflow: hidden; }
.member-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  border: 1.6px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  color: var(--df-ink);
}
.member-tag-host { color: var(--vn-trail-green); }
.member-tag-cohost { color: var(--df-ink); }
.member-tag-you { color: var(--df-ink-soft); }
@keyframes member-approve-strike {
  0%   { opacity: 0; transform: rotate(-11deg) scale(1.85); }
  55%  { opacity: 1; transform: rotate(-2.6deg) scale(0.95); }
  78%  { transform: rotate(-2.6deg) scale(1.025); }
  100% { transform: rotate(-2.6deg) scale(1); }
}

@media (min-width: 1024px) {
  #rating-list-section { max-width: 640px; }
}
.scan-area {
  border: 2px dashed var(--df-hair);
  border-radius: var(--df-radius-card);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  margin-bottom: var(--space-xl);
  background: var(--df-panel);
  transition: border-color var(--dur-state) var(--df-ease);
}

.scan-area > i {
  font-size: var(--fs-2xl);
  color: var(--df-ink-soft);
}

.scan-area p {
  font-size: var(--fs-sm);
  color: var(--df-ink-soft);
  margin: var(--space-xs) 0 var(--space-lg);
}

.scan-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}
.exp-scan-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
  margin-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--df-hair);
  color: var(--df-ink-soft);
  font-size: var(--fs-xs);
}
.exp-scan-row-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.exp-scan-row-header:has(#exp-scan-status:empty) { display: none; }
.exp-scan-row-header > i {
  font-size: var(--fs-md);
  flex-shrink: 0;
}
.exp-scan-row .scan-btns {
  gap: var(--sp-sm);
}
.exp-day-chip-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.exp-day-chip-sel {
  width: auto;
  min-width: 100px;
  height: var(--tap-min);
  border-radius: var(--radius-pill);
  padding: var(--sp-xs) var(--sp-md);
  border: 2px solid var(--df-ink);
  background: var(--df-panel);
  font-size: var(--fs-xs);
  font-family: inherit;
}
@media (max-width: 680px), (pointer: coarse) {
  .exp-day-chip-sel {
    font-size: var(--fs-md);
  }
}
.modal-content:has(.exp-modal-sticky-footer) {
  scroll-padding-bottom: calc(var(--tap-min) + 2 * var(--sp-sm) + 1px);
}
.exp-modal-sticky-footer {
  position: sticky;
  bottom: 0;
}
@media (max-width: 680px) {
  .exp-modal-sticky-footer {
    background: var(--df-panel-2, var(--df-panel));
    padding: var(--sp-sm) 0;
    margin: var(--sp-sm) calc(-1 * var(--sp-md)) calc(-1 * var(--sp-md));
    padding-left: var(--sp-md);
    padding-right: var(--sp-md);
    border-top: 1px solid var(--df-hair);
  }
}

.split-btn {
  flex: 1;
  min-height: var(--tap-min);
  padding: var(--sp-sm) var(--sp-md);
  border: none;
  background: var(--df-panel);
  color: var(--df-ink-soft);
  font-size: var(--fs-sm);
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur-feedback) var(--df-ease), color var(--dur-feedback) var(--df-ease);
}

.split-btn:first-child {
  border-right: 2px solid var(--df-ink);
}
.unequal-panel { margin-top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }

.split-btn.active {
  background: var(--selected-bg);
  color: var(--on-selected);
  font-weight: 600;
}

.scan-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--tap-min);
  padding: var(--space-md) var(--space-3xl);
  border-radius: var(--radius-pill);
  border: 2px solid var(--df-ink);
  background: var(--df-panel);
  color: var(--df-ink);
  font-size: var(--fs-sm);
  font-family: inherit;
  cursor: pointer;
  --press-bw: 2px;
  transition: background var(--dur-feedback) var(--df-ease), border-color var(--dur-feedback) var(--df-ease), transform var(--dur-feedback) var(--df-ease);
}

.scan-btn:hover {
  border-color: var(--vn-trail-green);
  color: var(--vn-trail-green);
  transform: translate(2px, 2px);
}
.scan-btn:active {
  transform: translate(4px, 4px);
}

.scan-btn i {
  font-size: var(--fs-sm);
}

.vnd-note {
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
  margin-top: var(--space-xs);
}

.btn-small {
  min-height: var(--tap-min);
  font-size: var(--fs-xs);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: background var(--dur-feedback) var(--ease-out);
}

.btn-small:hover {
  background: var(--surface-1);
}

.btn-small.sent { background: var(--vn-trail-green); border-color: var(--vn-trail-green); color: var(--surface-2); }
.btn-small.sent:hover { background: var(--danger-solid); border-color: var(--danger-solid); color: var(--on-danger); }
.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--df-ink-soft);
  font-size: var(--fs-sm);
}

.empty i {
  font-size: var(--fs-display-32);
  display: block;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}
@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal-content {
    padding: 1.5rem;
  }

  #addExpenseModal .modal-header {
    top: -1.5rem;
    margin: -1.5rem -1.5rem 1.5rem;
    padding: 1.5rem 1.5rem 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  .home-profile-name {
    display: none;
  }
}

#my-trips-screen {
  display: none;
}

#my-trips-screen .btn-large {
  font-size: var(--fs-sm);
  padding: var(--space-2xl) var(--space-3xl);
}
#my-trips-list {
  padding-top: var(--space-2xl);
}
@media (max-width: 1023px) {
  .app .home-profile-name {
    display: none;
  }
}
.trip-subheader {
  padding: 0 1.5rem var(--space-md);
}

.trip-subheader .header-sub {
  color: var(--df-ink-soft);
  white-space: normal;
}
.trip-header { display: block; }
.trip-header-name {
  font-family: var(--df-sans);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.2;
  color: var(--df-ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trip-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-md);
  row-gap: 0;
}
.trip-header-dates {
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  color: var(--df-ink);
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}
.trip-header-dates[role="button"] { cursor: pointer; position: relative; }
.trip-header-dates[role="button"]::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: max(var(--tap-min), 100%);
  transform: translateY(-50%);
}
.trip-header-row:not(:has(.trip-header-dates:not([hidden]), .trip-header-phase:not(:empty))) { display: none; }
.trip-header-phase {
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--df-ink-soft);
}
@media (min-width: 1024px) {
  .trip-header .trip-header-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}
.app-main > .trip-header { padding-top: var(--space-3xl); }
@media (min-width: 1024px) {
  .app-main > .trip-header.is-itinerary,
  .app-main > .trip-header:not(:has(.trip-header-dates:not([hidden]), .trip-header-phase:not(:empty))) { padding-top: 0; }
}
.progress-track {
  width: 100%;
  height: 4px;
  background: var(--df-hair);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 40%;
  background: var(--vn-trail-green);
  border-radius: 2px;
  animation: progress-slide 1.2s ease-in-out infinite;
}

@keyframes progress-slide {
  0%   { transform: translateX(-150%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(250%); }
}
.choice-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.choice-card {
  flex: 1;
  min-width: 140px;
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-feedback) var(--ease-out), background var(--dur-feedback) var(--ease-out);
}

.choice-card:hover {
  border-color: var(--vn-trail-green);
  background: var(--vn-trail-green-light);
}

.choice-card-icon {
  font-size: var(--fs-2xl);
  color: var(--vn-trail-green);
  display: block;
  margin-bottom: var(--space-md);
}

.choice-card-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
}

.choice-card-desc {
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
  line-height: 1.4;
}
.vote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-width: 0;
}
.vote-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vote-row-name { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.vote-row-lead {
  flex: none;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vn-amber-text);
  border: 1.5px solid currentColor;
  border-radius: 3px;
  padding: 0 4px;
  line-height: 15px;
}
.vote-row-detail { font-size: var(--fs-xs); color: var(--df-ink-soft); overflow-wrap: anywhere; }
@keyframes vote-row-landed { from { background: color-mix(in srgb, var(--df-amber) 40%, transparent); } to { background: transparent; } }
.vote-row-who { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--fs-xs); color: var(--df-ink); }
.vote-row-side { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-sm); }
.vote-row-btn, .vote-row-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  min-width: 76px;
  padding: 0 var(--space-lg);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.vote-row-btn { cursor: pointer; }
.vote-row-btn.is-on { background: var(--df-brand); border-color: var(--df-brand); color: var(--df-brand-fg); }
.vote-row-count { border-color: var(--df-hair); color: var(--df-ink-soft); background: transparent; }
.vote-row.is-unavailable .vote-row-name-text { text-decoration: line-through; color: var(--df-ink-soft); }
.vote-row.is-unavailable { opacity: 0.85; }
.home-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--df-ink);
  font-family: var(--df-sans);
}
.home-screen a:focus-visible,
.home-screen button:focus-visible,
.home-screen [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--df-brand);
  outline-offset: 3px;
}
.home-topbar {
  position: relative;
  z-index: 45;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  box-sizing: border-box;
  height: var(--topbar-h);
  background: var(--topbar-bg);
}
.home-topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-height: var(--tap-min);
  min-width: 0;
}
.home-topbar-brand-btn {
  flex-shrink: 0;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.home-topbar-brand-text {
  min-width: 0;
  overflow: hidden;
}

.home-topbar-title {
  font-family: var(--df-sans);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.3;
  color: var(--topbar-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-profile {
  position: relative;
  min-width: 0;
}

.home-profile-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
  max-width: 100%;
  min-height: var(--tap-min);
  border-radius: var(--radius-pill);
  padding: var(--space-xs) var(--space-lg) var(--space-xs) var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.home-profile-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-profile-name {
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-toggle-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  border-bottom: 2px solid var(--df-hair);
  margin-bottom: var(--space-xs);
}
.theme-toggle {
  display: flex;
  gap: var(--space-2xs);
  background: var(--df-chip-fill);
  border-radius: var(--radius-pill);
  padding: var(--space-2xs);
}
.theme-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  background: none;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--df-ink-soft);
  font-size: var(--fs-md);
  cursor: pointer;
}
.theme-toggle-btn:hover { background: var(--df-chip-fill-hover); }
.theme-toggle-btn.sel {
  background: var(--selected-bg);
  color: var(--on-selected);
}
@keyframes notification-badge-pop {
  from { transform: scale(0.4); }
}
.home-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}
@media (min-width: 680px) {
  #my-trips-list .home-trip-section-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5xl) var(--space-4xl);
  }

  #my-trips-list .home-trip-card {
    margin-bottom: 0;
  }
}
.home-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4xl) var(--space-4xl) var(--space-xl);
  background: linear-gradient(rgba(16, 26, 20, 0), var(--df-hair))
              bottom / 100% 24px no-repeat;
  background-attachment: scroll;
}
.home-section-label {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--df-ink-soft);
  margin-bottom: var(--space-xl);
}
.home-masthead {
  margin-bottom: var(--space-4xl);
}

.home-title {
  font-family: var(--df-display);
  font-size: clamp(2.125rem, 5.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--df-ink);
  margin: 0;
}

.home-trip-section { margin-bottom: var(--space-4xl); }
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.home-section-head .home-section-label { margin-bottom: 0; }
.home-section-new,
.home-section-toggle {
  min-height: var(--tap-min);
  padding: 0 var(--space-xl);
  background: none;
  border: 0;
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--df-brand);
  cursor: pointer;
}
.home-section-toggle { display: block; margin-top: var(--space-md); }
.home-section-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}
.home-section-head .home-section-toggle { margin-top: 0; padding: 0; }
.home-section-toggle-foot { display: none; }
@media (max-width: 680px) {
  .home-section-head .home-section-toggle:not(.home-stamps-see-all) { display: none; }
  .home-section-toggle-foot { display: block; padding: 0; }
}
.home-section-new {
  border: 2px solid var(--df-ink);
  border-radius: 999px;
  background: var(--df-panel);
  box-shadow: var(--df-press-hover);
  color: var(--df-ink);
  text-transform: none;
  letter-spacing: 0;
}
.home-trip-card[hidden] { display: none; }
#my-trips-list .home-trip-section-list[hidden] { display: none; }
.home-trip-section-compact .home-trip-card { min-height: 0; }
@media (min-width: 680px) {
  #my-trips-list .home-trip-section-compact .home-trip-section-list,
  #my-trips-list .home-trip-section[data-section="past"] .home-trip-section-list,
  #my-trips-list .home-trip-section[data-section="archived"] .home-trip-section-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  #my-trips-list .home-trip-section-compact .home-trip-section-list,
  #my-trips-list .home-trip-section[data-section="past"] .home-trip-section-list,
  #my-trips-list .home-trip-section[data-section="archived"] .home-trip-section-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.home-trip-card:not(.home-trip-card-hero) .home-trip-meta {
  flex-wrap: nowrap;
  min-width: 0;
}
.home-trip-card:not(.home-trip-card-hero) .home-trip-meta > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-trip-section-compact .home-trip-name,
.home-trip-section[data-section="past"] .home-trip-name,
.home-trip-section[data-section="archived"] .home-trip-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}
.home-empty {
  text-align: center;
  color: var(--df-ink-soft);
  font-size: var(--fs-md);
  padding: var(--space-5xl) var(--space-4xl);
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}
.home-empty i {
  font-size: var(--fs-display-32);
  color: var(--df-brand);
  margin-bottom: var(--space-lg);
  display: block;
}
.home-empty-title {
  font-family: var(--df-sans);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--df-ink);
  margin-bottom: var(--space-xs);
}

.home-empty .btn-primary {
  box-shadow: 3px 3px 0 var(--df-ink);
}
.home-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.home-error {
  text-align: center;
  padding: var(--space-5xl) var(--space-4xl);
  background: var(--df-panel);
  border: 2px solid var(--error);
  border-radius: var(--df-radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}
.home-error i { font-size: var(--fs-display-32); color: var(--error); }
.home-error div { color: var(--df-ink); font-size: var(--fs-sm); }
.home-error button {
  min-width: 140px;
  min-height: var(--tap-min);
  padding: 0 22px;
  background: var(--df-panel);
  color: var(--df-ink);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--df-press);
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-feedback) var(--df-ease),
              box-shadow var(--dur-feedback) var(--df-ease);
}
.home-error button:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--df-press-hover);
}
.home-error button:active {
  transform: translate(4px, 4px);
  box-shadow: var(--df-press-active);
}
.home-error button:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: var(--df-press);
  cursor: default;
}
.home-trip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  box-shadow: var(--df-press);
  margin-bottom: var(--space-4xl);
  overflow: hidden;
  transition: transform var(--dur-feedback) var(--df-ease),
              box-shadow var(--dur-feedback) var(--df-ease);
}
.home-trip-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--df-press-hover);
}
.home-trip-card:active,
.home-trip-card:has(.home-trip-card-open:active) {
  transform: translate(4px, 4px);
  box-shadow: var(--df-press-active);
}
.home-trip-card-hero { min-height: 0; }
.home-trip-card-hero .home-trip-card-open {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-md);
}
.home-trip-action {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--df-brand);
}
.home-hero-kicker {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--df-ink-soft);
}
.home-create-new { align-self: flex-start; min-width: var(--tap-min); }
.home-trip-section-empty-create .home-section-head { min-height: var(--tap-min); margin-bottom: var(--space-2xl); }
.home-trip-section-empty-create .home-trip-section-list { justify-items: center; }
.home-trip-section-empty-create .home-create-new {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: center;
  width: auto;
  min-height: var(--tap-min);
  padding-inline: var(--space-4xl);
}
@media (min-width: 680px) {
  #my-trips-list .home-trip-card-hero { grid-column: 1 / -1; }
}
.home-trip-card-skeleton { cursor: default; }
.home-trip-card-skeleton-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: var(--space-xl) var(--space-4xl);
  border-top: 2px dashed var(--df-hair);
}
.home-trip-card-skeleton:hover,
.home-trip-card-skeleton:active {
  transform: none;
  box-shadow: var(--df-press);
}
.home-trip-card-open {
  display: block;
  width: 100%;
  flex: 1;
  background: none;
  border: none;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: var(--space-3xl) var(--space-3xl) var(--space-4xl);
  user-select: none;
}
.home-trip-card-open:disabled { opacity: 0.55; cursor: default; }
.home-trip-card-open:focus-visible { outline: 3px solid var(--df-brand); outline-offset: -3px; box-shadow: none; }

.home-trip-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.home-trip-name {
  font-family: var(--df-title);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--df-ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-trip-arrow {
  color: var(--df-ink-soft);
  font-size: var(--fs-md);
  flex-shrink: 0;
}
.home-trip-pending-badge {
  background: var(--info-light);
  color: var(--info);
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 3px var(--space-md) 2px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.home-trip-destination {
  display: block;
  font-family: var(--df-sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.3;
  color: var(--df-ink-soft);
  margin-bottom: var(--space-xl);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-trip-destination i {
  font-size: var(--fs-xs);
  margin-right: var(--space-xs);
  vertical-align: middle;
}
.home-trip-meta {
  display: flex;
  gap: var(--space-sm) var(--space-xl);
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.3;
  color: var(--df-ink-soft);
  flex-wrap: wrap;
}
.home-trip-meta i {
  font-size: var(--fs-xs);
  margin-right: var(--space-xs);
  vertical-align: -2px;
}
.home-trip-prep {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.home-trip-prep-item {
  display: block;
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.3;
  color: var(--df-ink-soft);
}
.home-trip-prep-item i {
  font-size: var(--fs-xs);
  margin-right: var(--space-xs);
  vertical-align: -2px;
}
.home-trip-settle {
  display: block;
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.3;
  color: var(--df-ink-soft);
}
.home-trip-settle i {
  font-size: var(--fs-xs);
  margin-right: var(--space-xs);
  vertical-align: -2px;
}
.home-trip-stamp {
  display: inline-block;
  align-self: flex-start;
  margin-top: var(--space-xs);
  padding: 2px var(--space-sm);
  border: 2px solid currentColor;
  border-radius: var(--df-radius-chip, 4px);
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}
.home-trip-stamp-cancelled { color: var(--df-coral); transform: rotate(-2deg); }
.home-trip-stamp-recap { color: var(--df-ink); background: transparent; }
.home-trip-card:not(.home-trip-card-hero) .crew-pile { vertical-align: middle; }
.home-trip-card:not(.home-trip-card-hero) .crew-pile ~ .home-trip-stamp {
  vertical-align: middle;
  margin-top: var(--sp-sm);
  margin-left: var(--sp-md);
}
.home-trip-state-note {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--df-ink-soft);
}
.home-trip-card-cancelled .home-trip-card-open { opacity: 0.65; }
.home-trip-wrapup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-top: 2px dashed var(--df-ink);
  font-size: var(--fs-xs);
  color: var(--df-ink);
}
.home-trip-wrapup-waiting {
  justify-content: flex-start;
  background: var(--info-light);
  color: var(--df-ink);
  font-weight: 600;
}
.home-trip-card-photo-slot,
.home-trip-card-photo {
  --card-photo-h: 132px;
  padding-top: var(--card-photo-h);
}
.home-trip-card-hero.home-trip-card-photo-slot,
.home-trip-card-hero.home-trip-card-photo { --card-photo-h: 168px; }
@media (min-width: 680px) {
  .home-trip-card-photo-slot,
  .home-trip-card-photo { --card-photo-h: 148px; }
  .home-trip-card-hero.home-trip-card-photo-slot,
  .home-trip-card-hero.home-trip-card-photo { --card-photo-h: 208px; }
}
.home-trip-card-photo-slot::before,
.home-trip-card-photo::before,
.home-trip-card-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--card-photo-h);
  border-bottom: 2px solid var(--df-ink);
  pointer-events: none;
}
.home-trip-card-photo-slot::before,
.home-trip-card-photo::before { background: var(--df-ground); }
.home-trip-card-photo::after {
  background-image: var(--trip-card-photo);
  background-size: cover;
  background-position: var(--trip-card-photo-position, center);
  opacity: 0;
  transition: opacity var(--dur-view) var(--ease-out);
}
.home-trip-card-photo.home-trip-card-photo-visible::after { opacity: 1; }
button.home-trip-card-open::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--card-photo-h, 0px);
}
@keyframes home-invite-check-pop {
  from { opacity: 0; transform: scale(0.5); }
}
@keyframes home-card-enter {
  from { opacity: 0; transform: translateY(8px); }
}
.home-trips-trace .home-trip-card,
.home-trips-trace .home-empty {
  animation: home-card-enter var(--dur-state) var(--ease-out) both;
  animation-delay: calc(var(--trace-i, 0) * var(--trace-tick));
}
@keyframes home-card-crossfade {
  from { opacity: 0; }
}
.home-trips-crossfade { position: relative; }
.home-main:has(#my-trips-list[aria-busy="true"]) .home-footer { visibility: hidden; }
.home-trips-ghost {
  position: absolute; inset: 0 0 auto 0; pointer-events: none;
  animation: home-ghost-out var(--dur-state) var(--ease-out) both;
}
@keyframes home-ghost-out { to { opacity: 0; } }
.home-trips-crossfade .home-trip-card,
.home-trips-crossfade .home-empty {
  animation: home-card-crossfade var(--dur-state) var(--ease-out) both;
}
.home-mount-fade > * {
  animation: home-card-crossfade var(--dur-state) var(--ease-out) both;
}
.home-footer {
  flex-shrink: 0;
  padding: var(--space-3xl) var(--space-4xl) var(--space-4xl);
}
@media (max-width: 680px) {
  .home-main {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .home-body {
    flex: none;
    overflow: visible;
    background: none;
  }
  .home-footer {
    padding-bottom: calc(var(--space-4xl) + env(safe-area-inset-bottom));
  }
}

.home-footer .home-section-label {
  margin-bottom: var(--space-xl);
}
.home-legal-notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-3xl);
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--df-ink-soft);
}
.home-legal-notice a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--df-ink-soft);
  text-decoration: underline;
}
.home-legal-notice span { margin: 0 var(--space-sm); }
@media (min-width: 1024px) {
  .home-screen {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .home-main {
    flex: none;
    max-width: none;
    height: auto;
    overflow: visible;
    padding-block: 1.5rem;
    padding-inline: var(--screen-side-pad);
  }
  #my-trips-list .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  #my-trips-list .home-col-main,
  #my-trips-list .home-col-side { min-width: 0; }

  .home-body {
    background: none;
    padding-top: 0;
  }
  .home-masthead {
    margin-bottom: 5px;
  }
  #my-trips-list {
    padding-top: 0;
  }
  #my-trips-list .home-trip-section-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-5xl) var(--space-4xl);
  }

  #my-trips-list .home-trip-card {
    margin-bottom: 0;
  }

  .home-footer {
    margin-top: var(--space-5xl);
  }
}

@media (min-width: 1280px) {
  #my-trips-list .home-grid { gap: 40px; }
}
#itin-date-strip {
  position: sticky;
  top: var(--topbar-h);
  z-index: 20;
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) 0 var(--space-xs);
  background: var(--df-ground);
  border-bottom: 2px solid var(--df-ink);
  overflow-anchor: none;
}
#itinerary-content .day-box {
  scroll-margin-top: calc(var(--topbar-h) + var(--itin-pager-h, 8.5rem) + var(--space-md));
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
.itin-cal-zoom-slot { display: contents; }
.itin-cal-stop-card[hidden] { display: none; }
.itin-cal-stop-card {
  position: relative;
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  box-shadow: var(--df-press);
  background: var(--df-panel);
  overflow-y: auto;
  min-width: 0;
}
.itin-cal-stop-card .stop-summary-row { padding-inline-end: calc(var(--tap-min) + var(--space-xs)); }
.itin-cal-stop-card .itin-stop-card { border: 0; box-shadow: none; margin: 0; }
.itin-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "daylist"
    "ideas";
  gap: var(--space-2xl);
}

#itinerary-content {
  grid-area: daylist;
  display: flex;
  flex-direction: column;
  gap: var(--space-5xl);
  min-width: 0;
}

#itin-ideas-sidebar {
  grid-area: ideas;
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  overflow: hidden;
  background: var(--df-panel);
}
.itin-layout:has(#itin-ideas-sidebar.itin-ideas-hidden) {
  grid-template-areas:
    "daylist";
}
#itin-ideas-sidebar .day-box-stops {
  gap: var(--space-md);
  padding: var(--space-lg);
}

#itin-ideas-sidebar .itin-stop-card {
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  background: var(--df-panel);
  box-shadow: var(--df-press);
  transition: box-shadow var(--dur-feedback) var(--ease-out), transform var(--dur-feedback) var(--ease-out);
}
#itin-ideas-sidebar .itin-stop-card:last-child {
  border: 2px solid var(--df-ink);
}
#itin-ideas-sidebar .itin-stop-card:hover {
  box-shadow: var(--df-press-hover);
  transform: translateY(-1px);
}
#itin-ideas-sidebar .itin-stop-card .stop-draghandle.sortable-chosen,
#itin-ideas-sidebar .stop-summary-row:has(.sortable-chosen) {
  cursor: grabbing;
}
#itin-ideas-sidebar .itin-stop-card:has(.sortable-drag) {
  box-shadow: var(--df-press-hover);
  transform: rotate(-1deg);
}
@keyframes ideas-sidebar-unfold {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes ideas-count-pop {
  from { transform: scale(0.4); }
}
@keyframes idea-card-land {
  from { opacity: 0; transform: translateY(-8px); }
}
@keyframes idea-card-tape-wipe {
  from { transform: rotate(-3deg) scaleX(0); }
  to   { transform: rotate(-3deg) scaleX(1); }
}
.idea-picker-open-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
  border: none;
  background: none;
  color: var(--vn-trail-green);
  font: inherit;
  font-size: var(--fs-xs);
  cursor: pointer;
  padding: 0;
  min-height: var(--tap-min);
}
.idea-picker-open-btn:hover { text-decoration: underline; }
@keyframes itin-trace-box {
  from { opacity: 0; transform: translateY(10px); }
}

@keyframes itin-trace-row {
  from { opacity: 0; transform: translateY(6px); }
}

@keyframes itin-trace-spine {
  from { transform: scaleY(0); }
}
.day-dest-sheet-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}
#dayDestName::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.day-dest-sheet-hint {
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.day-dest-sheet-submit {
  width: 100%;
  margin-top: var(--space-xl);
}
.day-fill-place-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.day-map-delete-zone {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  min-height: 60px;
  padding: var(--space-2xl);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--error);
  background: var(--error-light);
}
:root {
  --day-stops-min: 380px;
  --ideas-col-width: 340px;
  --bookings-pane-width: 340px;
  --expenses-pane-width: 340px;
  --budget-pane-width: 340px;
  --people-pane-width: 340px;
  --checklist-pane-width: 340px;
}
#ideas-col-resizer { display: none; }
.pane-resizer { display: none; }
@media (min-width: 1280px) {
  .itin-layout {
    grid-template-columns:
      minmax(var(--day-stops-min), 1fr)
      6px
      minmax(220px, var(--ideas-col-width));
    grid-template-areas:
      "daylist resizer  ideas";
    align-items: start;
    column-gap: 0;
  }
  .itin-layout:not(.has-day-map) #itin-ideas-sidebar {
    position: sticky;
    top: var(--rail-top);
    max-height: calc(100vh - var(--rail-top) - var(--space-3xl));
    overflow-y: auto;
  }
  #ideas-col-resizer {
    grid-area: resizer;
  }
  #ideas-col-resizer,
  .pane-resizer {
    display: block;
    position: sticky;
    top: var(--rail-top);
    height: calc(100vh - var(--rail-top) - var(--space-3xl));
    cursor: col-resize;
    touch-action: none;
  }
  #ideas-col-resizer::after,
  .pane-resizer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2px;
    width: 2px;
    border-radius: 1px;
    background: var(--df-hair);
    transition: background var(--dur-feedback) var(--ease-out);
  }
  #ideas-col-resizer:hover::after,
  #ideas-col-resizer.dragging::after,
  .pane-resizer:hover::after,
  .pane-resizer.dragging::after {
    background: var(--vn-trail-green);
  }
  #ideas-col-resizer::before,
  .pane-resizer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: max(var(--tap-min), 100%);
    transform: translateX(-50%);
  }
  .itin-layout:has(#itin-ideas-sidebar.itin-ideas-hidden) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "daylist";
  }
  .itin-layout:has(#itin-ideas-sidebar.itin-ideas-hidden) #ideas-col-resizer,
  .itin-layout:has(#itin-ideas-sidebar.collapsed) #ideas-col-resizer {
    display: none;
  }
  .itin-layout:not(.has-day-map):has(#itin-ideas-sidebar.collapsed) {
    grid-template-columns: 1fr 44px;
    grid-template-areas:
      "daylist ideas";
  }
  .itin-layout:not(.has-day-map) #itin-ideas-sidebar.collapsed {
    align-self: stretch;
  }
  .itin-layout:not(.has-day-map) .ideas-sidebar-chevron {
    transform: rotate(90deg);
    transition: transform var(--dur-feedback) var(--ease-out);
  }
}
#itin-right-rail { display: contents; }
.itin-lock-panel { margin-top: var(--space-5xl); }
.itin-lock-card {
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  background: var(--df-panel);
  padding: var(--space-3xl);
  text-align: center;
  border-left-width: var(--space-xs);
}
.itin-lock-card-open { border-left-color: var(--vn-trail-green); }
.itin-lock-card-locked { border-left-color: var(--vn-green); }

.itin-lock-copy {
  font-size: var(--fs-sm);
  color: var(--df-ink);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.itin-lock-copy i { color: var(--vn-trail-green); }
.itin-lock-title {
  font-family: var(--df-display);
  font-size: var(--fs-md);
  color: var(--df-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.itin-lock-title i { color: var(--vn-green); }
#confirm-itinerary-wrap .btn-primary {
  width: auto;
  border-radius: var(--radius-pill);
  border: 2px solid var(--df-ink);
  --press-bw: 2px;
  transition: transform var(--dur-feedback) var(--ease-out);
}
#confirm-itinerary-wrap .btn-primary:hover {
  background: var(--vn-trail-green-mid);
  transform: translate(2px, 2px);
}
#confirm-itinerary-wrap .btn-primary:active {
  transform: translate(4px, 4px);
}

.itin-lock-unlock-btn {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--df-panel);
  border: 2px solid var(--vn-green);
  color: var(--vn-green);
  border-radius: var(--radius-pill);
  min-height: var(--tap-min);
  padding: var(--space-sm) var(--space-2xl);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  --press-o: 4px;
  --press-c: var(--vn-green);
  --press-bw: 2px;
  transition: transform var(--dur-feedback) var(--ease-out);
}
.itin-lock-unlock-btn:hover {
  transform: translate(2px, 2px);
}
.itin-lock-unlock-btn:active {
  transform: translate(4px, 4px);
}
:root { --stop-spine: 22px; }
.cat-pill-label {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#itinerary-content .day-box {
  --lg-pad: var(--space-lg);
  --lg-time: 3.75rem;
  --lg-gut: 28px;
  --lg-x: calc(var(--lg-pad) + var(--lg-time) + (var(--lg-gut) / 2));
}
#itinerary-content .day-box-stops {
  position: relative;
}
#itinerary-content .day-box-stops::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--lg-x) - 1.5px);
  width: 3px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--vn-amber) 0,
    var(--vn-amber) 9px,
    transparent 9px,
    transparent 18px
  );
  pointer-events: none;
}
#itinerary-content .day-box-stops:not(:has(> .itin-stop-card))::before { display: none; }
.stop-expanded-body .stop-time-col,
#itin-ideas-sidebar .stop-time-col { display: none; }
.photo-credit { font-size: var(--fs-xs); line-height: 1.4; overflow-wrap: anywhere; }
.photo-credit a { color: inherit; text-decoration: underline; }
.dtl-prints-credit { text-align: right; }
@keyframes booking-section-enter {
  from { opacity: 0; transform: translateY(-6px); }
}
.affiliate-disclosure {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0 0 var(--space-sm);
}
.booking-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-4xl) var(--space-lg);
  border: 2px dashed var(--df-ink);
  border-radius: var(--df-radius-card);
  font-size: var(--fs-sm);
  color: var(--df-ink-soft);
  text-align: center;
  cursor: pointer;
}
.booking-dropzone i { font-size: var(--fs-xl); }
#panel-bookings { position: relative; }
.bookings-tab-drop-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--vn-trail-green-light);
  border: 2px dashed var(--vn-trail-green);
  border-radius: var(--df-radius-card);
  color: var(--vn-trail-green);
  font-size: var(--fs-md);
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.bookings-tab-drop-overlay i { font-size: var(--fs-xl); }
@keyframes accommodation-confirm-pulse {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes itin-stop-just-added {
  0%, 55% { opacity: 1; }
}
#panel-bookings,
#panel-bookings input,
#panel-bookings select,
#panel-bookings textarea,
#panel-bookings button {
  font-family: var(--df-sans);
}
#panel-bookings .btn-secondary {
  background: var(--df-panel);
  color: var(--df-ink);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  --press-bw: 2px;
  transition: transform var(--dur-feedback) var(--ease-out);
}
#panel-bookings .btn-secondary:hover {
  background: var(--df-panel);
  transform: translate(2px, 2px);
}
#panel-bookings .btn-secondary:active {
  transform: translate(4px, 4px);
}
.stop-menu-popover,
.member-menu-popover,
.booking-menu-popover {
  position: fixed;
  min-width: 160px;
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  z-index: 1000;
  overflow: hidden;
}
.set-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--df-hair);
  background: var(--df-ground);
  color: var(--df-ink-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}
.set-info-btn:hover { background: var(--df-hair); }
.set-info-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(var(--tap-min), 100%);
  height: max(var(--tap-min), 100%);
  transform: translate(-50%, -50%);
}
.set-info-popover {
  position: fixed;
  max-width: 260px;
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  z-index: 1000;
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-xs);
  color: var(--df-ink);
}
.quota-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.quota-hint:empty {
  display: none;
}

.receipt-quota-hint {
  margin-bottom: var(--space-sm);
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  #boot-screen { animation: none; opacity: 1; }
  #boot-screen .rm-trace { animation: none; stroke-dashoffset: 0; }
  #boot-screen .rm-dot { animation: none; opacity: 1; transform: none; }
  .itin-trace .day-box,
  .itin-trace .itin-stop-card,
  .itin-trace .day-box-stops::before,
  .itin-trace .stop-connector,
  .itin-trace-simple,
  .panel.panel-enter,
  .screen-arrive,
  .booking-section-enter,
  .modal.active,
  .modal.active .modal-content,
  .progress-fill,
  .home-trips-trace .home-trip-card,
  .home-trips-trace .home-empty,
  .home-trips-ghost,
  .home-trips-crossfade .home-trip-card,
  .home-trips-crossfade .home-empty,
  .home-mount-fade > *,
  .home-trip-code-copied i,
  .notification-bell-badge-pop,
  .accommodation-confirm-pulse::after,
  .ideas-sidebar-generate-btn.loading .ti-sparkles,
  /* Ideas panel — the body is shown, the badge sits at full size, and a
     just-kept card rests in place with its tape strip on. Only the travel goes. */
  .ideas-sidebar-body-reveal,
  .ideas-sidebar-count-pop,
  .itin-stop-card.idea-card.idea-card-landed,
  .itin-stop-card.idea-card.idea-card-landed::before,
  /* The Recap animations (css/recap.css) are already guarded behind
     no-preference, so this is belt and braces: HOME stays struck and every
     bar stays at its real value. */
  .recap-home.is-struck,
  .recap-cats .cat-bar-fill {
    animation: none;
  }
  .modal.is-leaving,
  .panel.panel-leaving {
    display: none;
  }
  .home-trip-card-photo,
  .home-trip-card-photo::after {
    transition: none;
  }
  .progress-fill {
    width: 100%;
    transform: none;
  }

  .tabs::after,
  .tab i,
  .stop-expanded-body,
  .stop-expand-caret,
  .booking-section-caret,
  .exp-chevron,
  .exp-card-details,
  .treat-stamp.is-striking,
  .exp-disclosure-body,
  .form-more-chevron,
  .form-more-details,
  /* The determinate progress fill. Its scaleX IS the value — it must
     survive — so only the travel between values is dropped; the bar still
     arrives at the correct length, it just does not slide there. (They were
     `transition: width` and were never answered in this block at all; the
     transform swap is what made the omission worth fixing.) */
  .wizard-progress-segment-fill,
  /* Issue #993 — the map stop-list overlay's own collapse/expand
     (css/features/itinerary-map.css). Removing the transition still ends at
     the correct row size for whichever state .collapsed is in — never
     stuck mid-collapse — same as every other disclosure in this list. */
  .map-stop-list-body,
  .map-stop-list-toggle i,
  /* Issue #1140 — the consent switch knob. Without the transition it still
     lands on the correct side for its state. */
  .consent-switch::after {
    transition: none;
  }
  .tab.active i { transform: none; }
  .home-trip-card,
  .home-action-card,
  .home-error button,
  .app .btn-primary,
  .app .btn-secondary,
  .df-modal-content .btn-primary,
  .df-modal-content .btn-secondary,
  .df-modal-content .modal-close,
  .scan-btn,
  .settle-action-btn,
  .x-close-btn,
  /* Issue #911 follow-up — the itinerary toolbar's own Departure Fever
     press (Create Itinerary/Proposals/Decide/member-count), same mechanic. */
  .itin-toolbar .itin-action-btn,
  .itin-toolbar .itin-toolbar-pill,
  .app .btn-primary::before, .app .btn-secondary::before,
  .df-modal-content .btn-primary::before, .df-modal-content .btn-secondary::before,
  #confirm-itinerary-wrap .btn-primary::before, #panel-bookings .btn-secondary::before,
  .scan-btn::before, .settle-action-btn::before {
    transition: none;
  }
  .scan-btn:hover, .settle-action-btn:hover, .scan-btn:active, .settle-action-btn:active {
    transform: none;
  }
  .app .btn-primary:hover, .app .btn-secondary:hover,
  .df-modal-content .btn-primary:hover, .df-modal-content .btn-secondary:hover,
  .app .btn-primary:active, .app .btn-secondary:active,
  .df-modal-content .btn-primary:active, .df-modal-content .btn-secondary:active {
    transform: none;
  }
  .home-trip-card:hover,
  .home-action-card:hover,
  .home-error button:hover,
  .df-modal-content .modal-close:hover,
  .x-close-btn:hover,
  .itin-toolbar .itin-action-btn:hover,
  .itin-toolbar .itin-toolbar-pill:hover {
    transform: none;
    box-shadow: var(--df-press-hover);
  }
  .home-trip-card:active,
  .home-trip-card:has(.home-trip-card-open:active),
  .home-action-card:active,
  .home-error button:active,
  .x-close-btn:active,
  .itin-toolbar .itin-action-btn:active,
  .itin-toolbar .itin-toolbar-pill:active {
    transform: none;
    box-shadow: var(--df-press-active);
  }
  .toast-msg,
  .toast-msg.toast-in {
    transform: translateX(-50%);
    transition: opacity var(--dur-feedback) var(--ease-out);
  }
}
.home-col-side .home-section-head { gap: var(--space-md); }
.home-col-side .home-section-head .home-section-label { white-space: nowrap; }
.home-col-side .home-section-head .home-section-toggle {
  margin-block: calc((var(--tap-min) - 1.3em) / -2);
  padding-inline: var(--space-sm);
  margin-inline-end: calc(var(--space-sm) * -1);
  white-space: nowrap;
  flex-shrink: 0;
}
.exp-tab-add-long { display: none; }
@media (min-width: 1024px) {
  .exp-tab-add-short { display: none; }
  .exp-tab-add-long { display: inline; }
}
@media (min-width: 1024px) {
  .fund-intro-modal .modal-content { width: 440px; max-width: 440px; height: 100%; max-height: none; border-radius: 0; }
}
.xk-bal-switch { display: flex; justify-content: flex-end; margin-bottom: var(--sp-sm); }
.xk-bal-switch[hidden] { display: none; }
.settle-scrim { align-items: flex-end; padding: 0; }
.settle-sheet-chrome { padding: 0; gap: 0; box-shadow: none; overflow: hidden; }
@media (max-width: 680px) {
  .settle-sheet-chrome { height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: none; }
}
@media (min-width: 681px) {
  .settle-scrim { align-items: center; padding: 1rem; }
  .settle-sheet-chrome { border: 2px solid var(--df-ink); border-radius: 18px; max-height: 90dvh; }
}
.settle-sheet-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
@keyframes arrival-strike {
  from { transform: rotate(-11deg) scale(1.85); opacity: 0; }
  to   { transform: rotate(-2.6deg) scale(1); opacity: 1; }
}
.intent-step {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(16, 26, 20, 0.45);
  overflow-y: auto;
}
.intent-step-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 12px);
  padding: 24px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(16, 26, 20, 0.18);
  animation: intent-rise var(--dur-view) var(--ease-out) both;
}
.intent-step-title { margin: 0 0 var(--space-sm); font-size: var(--fs-xl, 1.5rem); outline: none; }
.intent-choice {
  display: flex;
  align-items: center;
  gap: var(--space-md, 12px);
  width: 100%;
  min-height: var(--tap-min);
  padding: var(--space-md, 12px) var(--space-lg);
  text-align: left;
  color: inherit;
  background: var(--surface-2, var(--bg));
  border: 1px solid var(--border, currentColor);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--dur-feedback) var(--ease-out);
}
.intent-choice:hover, .intent-choice:focus-visible { border-color: var(--df-ink); }
.intent-choice .ti { font-size: var(--fs-xl); flex: none; color: var(--df-ink); }
.intent-choice-text { display: flex; flex-direction: column; gap: 2px; }
.intent-skip {
  min-height: var(--tap-min);
  align-self: center;
  background: none;
  border: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@keyframes intent-rise {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .intent-step-card { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-nav-brand img.route-mark-draw,
  .lp-nav-brand img.route-mark-land,
  .auth-form-swap,
  .field-error-in,
  .form-error:not([hidden]) { animation: none; }
}
.xk-figure {
  font-family: var(--df-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--df-ink);
}
.xk-figure--sheet { font-size: var(--fs-figure-26); text-transform: uppercase; }
.xk-seg {
  display: flex;
  padding: 4px;
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
}
.xk-seg-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--df-ink);
  font-family: var(--df-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.xk-seg-btn[aria-checked="true"],
.xk-seg-btn[aria-selected="true"],
.xk-seg-btn[aria-pressed="true"],
.xk-seg-btn.is-on {
  background: var(--df-ink);
  color: var(--df-panel);
}
.xk-field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--df-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--df-ink);
}
.xk-field {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-stub);
  background: var(--df-panel);
  color: var(--df-ink);
  font-family: var(--df-sans);
}
.xk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
  font-family: var(--df-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.xk-pill--primary {
  background: var(--df-brand);
  color: var(--df-brand-fg);
  box-shadow: 3px 3px 0 var(--df-ink);
}
.xk-pill--primary:active { box-shadow: var(--df-press-active); }
.xk-pill:disabled { opacity: 0.55; cursor: default; }
.xk-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-stub);
  background: var(--df-panel);
  color: var(--df-ink);
  font-family: var(--df-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.xk-scrim { background: var(--df-scrim-soft); }
.xk-sheet {
  display: flex;
  flex-direction: column;
  background: var(--df-ground);
  border-top: 2px solid var(--df-ink);
  border-radius: 18px 18px 0 0;
  color: var(--df-ink);
}
.xk-sheet-handle {
  align-self: center;
  width: 40px;
  height: 4px;
  margin: 8px 0 0;
  border-radius: var(--radius-pill);
  background: var(--df-ink);
}
.xk-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}
.xk-sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
  cursor: pointer;
}
@media (max-width: 1023px) {
  .exp-mode-seg:not(.exp-mode-seg--inline) { display: none; }
  .exp-panel[data-exp-view="entries"] .exp-zone-standing { margin-bottom: 0; }
  .exp-panel[data-exp-view="entries"] .exp-stub-head { padding-bottom: 12px; }
  .exp-panel[data-exp-view="entries"] .exp-zone-standing .exp-view-switch-wrap { margin: 12px 0 8px; }
  .exp-panel[data-exp-view="entries"] .exp-filters { margin-bottom: 12px; }
}
@media (max-width: 1023px) {
  .exp-panel[data-exp-view="balances"] .exp-stub-compact,
  .exp-panel[data-exp-view="fund"] .exp-stub-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: 400;
  }
}
@media (min-width: 1024px) {
  .exp-panel[data-exp-view="fund"] .exp-stub-head,
  .exp-panel[data-exp-view="fund"] .exp-stub-fields { display: none; }
  .exp-panel[data-exp-view="fund"] .exp-stub-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: 400;
  }
}
.exp-ledger-head { display: none; }
.exp-ledger-head .exp-count { display: none; }
.exp-fund-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap-min);
  margin-bottom: var(--sp-sm);
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}
.exp-fund-line:hover { border-color: transparent; }
.exp-fund-line b { font-weight: 600; }
.exp-detail-scrim { background: var(--df-scrim-60); align-items: flex-end; padding: 0; }
@media (min-width: 681px) { .exp-detail-scrim { align-items: center; padding: 1rem; } }
.exp-detail-sheet { padding: 12px 16px 16px; gap: 0; box-shadow: none; border-radius: 18px 18px 0 0; }
@media (min-width: 681px) { .exp-detail-sheet { border-radius: 18px; border: 2px solid var(--df-ink); } }
#expense-detail-body { display: flex; flex-direction: column; gap: 16px; }
.bk-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
@media (max-width: 1023px) {
  .bk-head { display: contents; }
  #panel-bookings { padding-bottom: 6rem; }
}
.bk-summary { display: flex; margin-bottom: var(--sp-md); }
.wizard-chip { position: relative; gap: var(--space-sm); }
.wizard-chip:has(> .wizard-chip-input:checked) {
  background: var(--selected-bg);
  border-color: var(--selected-bg);
  color: var(--on-selected);
  font-weight: 600;
}
.wizard-chip:has(> .wizard-chip-input:focus-visible) { outline: 3px solid var(--vn-trail-green); outline-offset: 2px; }
.wizard-chip:has(> .wizard-chip-input:disabled) { cursor: default; opacity: 0.7; }
.wizard-chip:has(> .wizard-chip-input:disabled):hover,
.wizard-chip:has(> .wizard-chip-input:disabled):active { transform: none; box-shadow: var(--df-press); }
.wizard-chip-grid--inline { flex-direction: row; flex-wrap: wrap; }
.wizard-chip-grid--inline .wizard-chip { width: auto; }
.trip-sharing-card { border: 1px dashed var(--border-strong); }
.trip-sharing-auto { margin: 0 0 var(--space-md); font-size: var(--fs-xs); font-weight: 600; color: var(--df-ink-soft); }
#set-drill-share .trip-sharing-card { border: 0; padding: 0; box-shadow: none; background: none; }
#set-drill-share .pf-check { display: flex; align-items: center; gap: var(--space-sm); min-height: var(--tap-min); font-size: var(--fs-sm); color: var(--df-ink); cursor: pointer; }
.exp-form-sheet.xk-sheet { display: block; background: var(--df-ground); }
.exp-form-sheet .xk-sheet-handle { margin: 8px auto 0; }
.exp-form-sheet .xk-sheet-head { padding-left: 0; padding-right: 0; padding-top: 8px; }
.exp-form-sheet .xk-sheet-close { flex: none; min-width: 44px; }
#addExpenseModal .ui-field-control,
#edit-expense-modal .ui-field-control {
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-stub);
  background-color: var(--df-panel);
  color: var(--df-ink);
  font-family: var(--df-sans);
}
.exp-form-sheet .ui-field-label { margin-bottom: 8px; }
.exp-form-sheet .exp-form-section-legend.ui-field-label { margin-bottom: 8px; }
.exp-form-sheet .exp-amount-wrap { gap: 12px; align-items: flex-start; }
.exp-form-sheet .exp-currency-picker { flex: none; width: 100px; min-width: 100px; }
.exp-form-sheet .exp-amount-col { flex: 1; min-width: 0; }
.exp-form-sheet .exp-currency-sel,
.exp-form-sheet .exp-amount-inp {
  width: 100%;
  border-radius: var(--radius-stub) !important;
  border-width: 2px !important;
}
.exp-form-sheet .exp-currency-sel { border-right: 2px solid var(--df-ink) !important; }
#addExpenseModal .exp-amount-inp,
#edit-expense-modal .exp-amount-inp { font-size: 18px; font-weight: 400; }
.exp-form-sheet .exp-scan-row { border-bottom: 0; padding-bottom: 0; }
.exp-form-sheet .exp-scan-row .scan-btns { display: flex; flex-direction: column; gap: var(--sp-sm); }
.exp-form-sheet {
  --exp-sheet-pad: 2rem;
  padding: var(--exp-sheet-pad);
  padding-top: 0;
}
@media (max-width: 480px) {
  .exp-form-sheet { --exp-sheet-pad: 1.5rem; }
}
.exp-form-sheet .exp-modal-sticky-footer {
  background: var(--df-panel);
  border-top: 2px solid var(--df-ink);
  bottom: calc(-1 * var(--exp-sheet-pad));
  padding: var(--sp-sm) var(--exp-sheet-pad) calc(var(--sp-sm) + env(safe-area-inset-bottom));
  margin: var(--sp-sm) calc(-1 * var(--exp-sheet-pad)) calc(-1 * var(--exp-sheet-pad));
}
.exp-form-sheet .exp-footer-pill { width: 100%; min-height: 52px; }
.stop-form-sheet .form-label {
  font-family: var(--df-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--df-ink);
  margin-bottom: 6px;
}
.stop-form-sheet .stop-modal-footer { display: flex; align-items: center; gap: var(--space-md); }
.stop-form-sheet .stop-modal-footer .exp-footer-pill { flex: 1 1 0; width: auto; min-width: 0; margin-top: 0; }
.exp-form-sheet .exp-cat-chip-row { gap: 8px; padding-bottom: 2px; }
.exp-form-sheet .exp-cat-chip.xk-tile {
  flex: 1 1 0;
  width: auto;
  min-width: var(--tap-min);
  max-width: 52px;
  height: 48px;
  min-height: var(--tap-min);
  padding: 0;
  border: 2px solid var(--df-ink);
  background: var(--df-panel);
}
.exp-form-sheet .exp-cat-chip.xk-tile.sel { color: var(--df-panel); border-color: var(--df-ink); }
.exp-form-sheet .exp-cat-chip.xk-tile.sel.cat-food { background: var(--vn-pandan); }
.exp-form-sheet .exp-cat-chip.xk-tile.sel.cat-transport { background: var(--vn-sky); }
.exp-form-sheet .exp-cat-chip.xk-tile.sel.cat-shopping { background: var(--vn-batik); }
.exp-form-sheet .exp-cat-chip.xk-tile.sel.cat-hotel { background: var(--vn-indigo); }
.exp-form-sheet .exp-cat-chip.xk-tile.sel.cat-activity { background: var(--vn-green); }
.exp-form-sheet .exp-cat-chip.xk-tile.sel.cat-other { background: var(--selected-bg); color: var(--on-selected); }
.exp-form-sheet .ui-seg-btn { flex: 1; }
.exp-form-sheet .ui-seg .ui-seg-btn:first-child { border-right: 0; }
.exp-form-sheet .ui-seg .ui-seg-btn + .ui-seg-btn { border-left: 0; }
.exp-form-sheet .split-summary strong { color: var(--df-ink); font-weight: 600; }
.exp-form-sheet .split-summary-row .split-summary { font-size: var(--fs-md); color: var(--df-ink); }
.exp-form-sheet .pax-toggle .pax-btn.sel {
  background: var(--df-ink);
  border-color: var(--df-ink);
  color: var(--on-selected);
}
.exp-form-sheet .split-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}
.exp-form-sheet .split-summary-row .split-summary { margin: 0; flex: 1; min-width: 0; }
.exp-form-sheet .split-notequal-link {
  margin-left: auto;
  color: var(--df-brand);
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: underline;
}
.exp-form-sheet .split-modes { margin-top: var(--sp-sm); }
.exp-form-sheet .form-more-toggle.xk-disclosure {
  margin-top: var(--sp-sm);
  padding: 0;
  border: 0;
  border-top: 2px solid var(--df-ink);
  border-radius: 0;
  background: transparent;
  color: var(--df-ink);
}
.exp-form-sheet .exp-day-chip-wrap { display: block; }
.exp-form-sheet .exp-day-chip-sel { width: 100%; height: 48px; border-radius: var(--radius-stub); }
.exp-link-field { position: relative; }
.exp-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 48px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.exp-link-clear {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--df-ink);
  cursor: pointer;
}
.exp-link-clear[hidden] { display: none; }
.exp-link-sheet { max-height: 85vh; max-height: 85dvh; overflow: hidden; }
.exp-link-search { padding: 0 16px 8px; }
.exp-link-count { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--df-ink); }
.exp-link-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 16px; }
.exp-zone:has(+ .exp-zone-breakdown) { margin-bottom: var(--sp-md); }
.person-sheet-title { display: flex; align-items: center; gap: var(--space-md); }
.invite-card-line { display: flex; align-items: center; gap: var(--space-md); }
.invite-copy-btn { flex-shrink: 0; min-height: var(--tap-min); min-width: var(--tap-min); }
.invite-card-line .invite-copy-btn { width: auto; flex: none; margin-top: 0; min-height: var(--tap-min); min-width: var(--tap-min); }
.no-longer-member {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xl);
  padding: var(--space-xl); text-align: left;
}
.checklist-sheet select { width: 100%; min-height: var(--tap-min); }
.checklist-sheet-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.checklist-sheet-row .form-group { min-width: 0; }
.checklist-sheet-inline { display: flex; gap: var(--space-md); }
.checklist-sheet-inline input { flex: 1; min-width: 0; }
.checklist-sheet-hint { margin: var(--space-sm) 0 0; font-size: var(--fs-xs); color: var(--df-ink-soft); }
.checklist-sheet-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--df-ink);
}
.checklist-sheet-actions { align-items: center; }
.checklist-sheet-actions button { min-height: var(--tap-min); width: auto; margin: 0; padding: 0 var(--space-xl); }
.checklist-sheet input[type="text"],
.checklist-sheet select {
  background: var(--df-ground);
  border: 2px solid var(--df-ink);
}
.checklist-sheet-actions .btn-secondary.btn-danger {
  flex: 0 0 auto;
  min-height: var(--tap-min);
  padding: 0 var(--space-xl);
  font-size: var(--fs-xs);
  background: var(--error-solid);
  border-color: var(--error-solid);
  color: white;
}
.cl-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 0 var(--space-lg);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-stub);
  background: var(--df-panel);
  color: var(--df-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cl-action-primary { background: var(--df-brand); color: var(--df-panel); }
#checklist-add-btn { background: var(--df-brand); color: var(--df-panel); }
.cl-add-long { display: none; }
@media (min-width: 1024px) {
  .cl-add-short { display: none; }
  .cl-add-long { display: inline; }
}
.cl-action:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 2px; }
.exp-panel[data-exp-empty="true"] .exp-zone-breakdown,
.exp-panel[data-exp-empty="true"] .exp-mode-seg,
.exp-panel[data-exp-empty="true"] .exp-filters,
.exp-panel[data-exp-empty="true"] .exp-ledger-head,
.exp-panel[data-exp-empty="true"] .exp-stub-desk { display: none; }
@media (max-width: 1023px) {
  .exp-panel[data-exp-empty="true"] .exp-zone-standing { margin-bottom: var(--sp-md); }
  .exp-zone-standing { display: flex; flex-direction: column; }
  .exp-zone-standing .exp-view-switch-wrap { margin: var(--sp-md) 0; }
  .exp-pot-section:not(:empty) { margin-top: 0; }
  .exp-tab-add,
  .itin-add-pill,
  .bk-add-btn,
  .cl-add-pill {
    position: fixed;
    right: max(var(--sp-md), env(safe-area-inset-right), calc((100% - 680px) / 2 + var(--sp-md)));
    bottom: calc(76px + env(safe-area-inset-bottom) + var(--sp-md));
    z-index: 30;
    background: var(--df-brand);
    color: var(--df-brand-fg);
    border: 2px solid var(--df-ink);
    box-shadow: var(--df-press);
  }
  .exp-panel[data-exp-empty="true"] .exp-tab-add { display: none; }
  .exp-tab-add-short { display: none; }
  .exp-tab-add-long { display: inline; }
  .exp-panel { padding-bottom: 6rem; }
  #panel-checklist { padding-bottom: 6rem; }
}
@media (min-width: 1280px) {
  .exp-zone-ledger { grid-row: 2; }
}
.fund-setup-modal .form-label { display: block; margin: var(--sp-md) 0 var(--sp-xs); }
@media (max-width: 680px) {
  .exp-zone-standing { margin-bottom: var(--sp-lg); }
  .exp-zone-standing .exp-block + .exp-block { margin-top: var(--sp-lg); }
  .exp-zone-standing .exp-block > .stat-grid:last-child { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .discover-card-img-fade { opacity: 1; transition: none; }
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen) .home-profile-trigger {
  background: none;
  padding: 0;
  border-color: transparent;
  justify-content: center;
  min-width: var(--tap-min);
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen) .home-profile-avatar {
  width: 40px;
  height: 40px;
  background: var(--df-pin-apricot);
  color: var(--df-pin-deep-green);
  font-size: var(--fs-md);
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen) .home-profile-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (min-width: 1024px) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen) .home-profile-trigger {
    padding-inline-end: var(--space-md);
  }
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen) .home-profile-name {
    position: static;
    width: auto;
    height: auto;
    max-width: 130px;
    clip: auto;
    color: var(--topbar-fg);
  }
}
@media (max-width: 1023.98px) {
  .wizard-wall { order: 3; }
}

.wizard-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; padding: 8px 2px 24px; transition: opacity var(--dur-state) var(--df-ease); }
@media (min-width: 1024px) {
  .wizard-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; padding-top: 12px; }
}
@keyframes wizard-panel-rise { from { transform: translateY(100%); } to { transform: none; } }
@keyframes wizard-panel-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes wizard-panel-fade { from { opacity: 0; } to { opacity: 1; } }
.wizard-stop-list { display: grid; background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: 12px; overflow: hidden; }
.wizard-stop-row { display: flex; align-items: center; gap: var(--space-md); min-height: 56px; padding: var(--space-sm) var(--space-lg); }
.wizard-stop-row + .wizard-stop-row { border-top: 2px dashed var(--df-hair); }
.wizard-stop-pin { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--df-ink); border-radius: 50%; background: var(--df-amber); color: var(--df-amber-fg); font-family: var(--df-sans); font-size: var(--fs-sm); font-weight: 600; }
.wizard-stop-text { display: grid; flex: 1; min-width: 0; }
.wizard-stop-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-stop-text small { font-size: var(--fs-xs); color: var(--df-ink-soft); }
.wizard-stop-remove { min-width: var(--tap-min); min-height: var(--tap-min); padding: 0 var(--space-sm); background: none; border: 0; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--df-brand); cursor: pointer; }
.wizard-stop-remove:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 2px; }
.wizard-footer { display: contents; }
@media (max-width: 1023px) {
  #createTripModal .modal-content { display: flex; flex-direction: column; }
  #createTripModal .modal-content .wizard-footer {
    display: grid; gap: var(--space-xs); margin: auto calc(-1 * 2rem) calc(-1 * 2rem);
    padding: var(--space-md) 2rem var(--space-lg); position: sticky; bottom: calc(-1 * 2rem); z-index: 3;
    background: var(--df-panel); border-top: 2px solid var(--df-ink);
  }
  #createTripModal .wizard-footer .wizard-nav { margin: 0; align-items: center; }
  #createTripModal .wizard-footer .wizard-nav button { min-height: var(--tap-min); font-size: var(--fs-sm); font-weight: 600; justify-content: center; text-align: center; }
  #createTripModal .wizard-footer #wizard-back-btn { flex: none; padding-inline: var(--space-xl); }
  #createTripModal .wizard-footer #wizard-next-btn { background: var(--df-brand); color: var(--df-brand-fg); border: 2px solid var(--df-ink); box-shadow: var(--df-press); }
  #createTripModal .wizard-footer .wizard-escape-hatch { margin: 0; }
  #createTripModal .wizard-footer .wizard-create-now { border: 0; background: none; color: var(--df-brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
  #createTripModal .wizard-footer #create-trip-btn { width: 100%; min-height: var(--tap-min); }
}
@media (max-width: 480px) {
  #createTripModal .wizard-band { margin-inline: -1.5rem; }
  #createTripModal .modal-content .wizard-footer {
    margin-inline: -1.5rem; margin-bottom: -1.5rem; bottom: -1.5rem; padding-inline: 1.5rem;
  }
}
@media (max-width: 1023px) {
  #createTripModal .wizard-footer #wizard-back-btn {
    position: fixed; top: calc(var(--topbar-h) + var(--space-lg)); left: var(--space-lg); z-index: 6;
    width: var(--tap-min); height: var(--tap-min); min-height: var(--tap-min); padding: 0;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--df-panel); border: 2px solid var(--df-ink); color: var(--df-ink);
  }
  #createTripModal .wizard-footer .wizard-back-icon { display: inline-block; font-size: var(--fs-lg); }
  #createTripModal .wizard-footer .wizard-back-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  #createTripModal .modal-content .wizard-progress-bar { margin-left: calc(var(--tap-min) + var(--space-sm)); min-height: var(--tap-min); }
  #createTripModal .modal-content .wizard-progress-segments { margin-left: auto; }
  #createTripModal .wizard-progress-label { display: none; }
  #createTripModal .wizard-band-brand { display: none; }
}
.wizard-back-chevron { display: none; }
@media (max-width: 1023px) {
  #createTripModal .wizard-footer .wizard-back-icon { display: none; }
  #createTripModal .wizard-footer .wizard-back-chevron { display: inline-block; font-size: var(--fs-lg); }
}
.wizard-footer-hint, .wizard-back-icon { display: none; }
@media (min-width: 1024px) {
  #createTripModal .wizard-footer.is-recap {
    display: flex; align-items: center; gap: var(--space-lg);
    margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 2px solid var(--df-ink);
  }
  #createTripModal .wizard-footer.is-recap #wizard-back-btn {
    flex: none; width: var(--tap-min); height: var(--tap-min); min-height: var(--tap-min); padding: 0;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  }
  #createTripModal .wizard-footer.is-recap #create-trip-btn {
    flex: none; width: auto; min-height: 64px; padding-inline: 2.75rem; font-size: var(--fs-lg); font-weight: 600; border-radius: 999px;
    background: var(--df-brand); color: var(--df-brand-fg); border: 2px solid var(--df-ink); box-shadow: var(--df-press);
  }
}
@media (min-width: 1024px) {
  #createTripModal .wizard-question { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 2.25rem; }
  #createTripModal .modal-content.is-dates .wizard-question { margin-bottom: 1rem; }
  #createTripModal .modal-content:not(.has-band) > :not(.wizard-topbar) { width: 100%; max-width: 1044px; margin-inline: auto; }
  #createTripModal .form-hint { margin-top: var(--space-xl); font-size: var(--fs-md); line-height: 1.5; max-width: 34rem; color: var(--df-ink-soft); }
}
@media (min-width: 1024px) {
  #createTripModal .modal-content { display: flex; flex-direction: column; }
  #createTripModal .modal-content .wizard-footer {
    display: flex; align-items: center; gap: var(--space-lg);
    margin-top: auto; padding-top: 1rem; border-top: 2px solid var(--df-ink);
    position: sticky; bottom: 0; background: var(--df-ground);
  }
  #createTripModal .modal-content .wizard-footer.is-recap { padding-top: 0.5rem; }
  #createTripModal .wizard-footer .wizard-nav { display: contents; }
  #createTripModal .wizard-footer #wizard-back-btn {
    order: 0; flex: none; width: var(--tap-min); height: var(--tap-min); min-height: var(--tap-min); padding: 0;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 2px solid var(--df-ink); color: var(--df-ink);
  }
  #createTripModal .wizard-footer .wizard-back-icon { display: inline-block; font-size: var(--fs-lg); }
  #createTripModal .wizard-footer .wizard-back-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  #createTripModal .wizard-footer .wizard-escape-hatch { order: 1; flex: 1; margin: 0; text-align: left; }
  #createTripModal .wizard-footer .wizard-create-now {
    border: 0; background: none; padding-inline: 0; font-size: var(--fs-sm); font-weight: 600;
    color: var(--df-brand); text-decoration: underline; text-underline-offset: 3px;
  }
  #createTripModal .wizard-footer #wizard-next-btn {
    order: 2; flex: none; min-height: 56px; padding-inline: var(--space-3xl, 2.5rem); border-radius: 999px;
    font-size: var(--fs-lg); font-weight: 600; background: var(--df-brand); color: var(--df-brand-fg);
    border: 2px solid var(--df-ink); box-shadow: var(--df-press);
  }
}
@media (min-width: 1024px) {
  #createTripModal .modal-content { --wz-band-w: clamp(430px, 38vw, 760px); --wz-col-w: clamp(640px, 45vw, 860px); }
  #createTripModal .modal-content.has-band { padding-left: calc(var(--wz-band-w) + 62px); padding-right: max(62px, calc(100vw - var(--wz-band-w) - 62px - var(--wz-col-w))); }
  #createTripModal .modal-content .wizard-progress-bar { margin-bottom: 3.25rem; }
  #createTripModal .modal-content:not(.has-band) .wizard-progress-bar { margin-top: 3rem; margin-bottom: 1.75rem; }
}
@media (min-width: 1024px) {
  #createTripModal .modal-content.has-band::before,
  #createTripModal .modal-content.has-band::after { content: ""; flex: 1 1 0; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-wall { transition: none; }
  .trip-header, .trip-header * { transition: none; animation: none; }
  .wizard-cal-cell { transition: none; }
  .wizard-past-card, .wizard-cal-picker { animation: none; }
  .wizard-tag, .wizard-slider input[type=range]::-webkit-slider-thumb { transition: none; }
}
#createTripModal.modal { padding: 0; align-items: stretch; justify-content: stretch; }
#createTripModal .modal-content {
  width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  border-radius: 0; border-inline: 0; box-shadow: none; margin: 0;
}
#createTripModal .modal-content {
  position: relative; overflow-y: auto;
}
#createTripModal .wizard-topbar { position: fixed; top: 0; left: 0; right: 0; }
#createTripModal .wizard-topbar-close {
  flex-shrink: 0; width: var(--tap-min); height: var(--tap-min); padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--df-pin-apricot); border: 2px solid var(--df-pin-keyline); border-radius: 50%; color: var(--df-pin-deep-green); font-size: var(--fs-xl); cursor: pointer;
  box-shadow: 2px 2px 0 rgba(6, 40, 17, 0.45);
  transition: transform var(--dur-feedback) var(--ease-out), box-shadow var(--dur-feedback) var(--ease-out);
}
#createTripModal .wizard-topbar-close:hover { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(6, 40, 17, 0.45); }
#createTripModal .wizard-topbar-close:focus-visible { outline: 3px solid var(--df-pin-apricot); outline-offset: 3px; }
#createTripModal .modal-content, #createTripModal .modal-content:not(.has-band) { padding-top: calc(var(--topbar-h) + var(--space-lg)); }
#createTripModal .wizard-band-brand { display: none; }
#createTripModal .wizard-band { flex-shrink: 0; margin-top: calc(-1 * var(--space-lg) - 2px); }
#createTripModal .wizard-progress-bar { margin: 0 var(--tap-min) var(--space-lg) 0; }
#createTripModal .wizard-progress-segments { gap: 7px; align-items: center; margin: 0 0 0; justify-content: flex-start; }
#createTripModal .wizard-progress-segment { flex: none; width: 10px; height: 10px; }
#createTripModal .wizard-progress-segment.active { width: 30px; }
#createTripModal .wizard-progress-segment::before { width: max(var(--tap-min), 100%); left: 50%; right: auto; transform: translate(-50%, -50%); }
#createTripModal .wizard-progress-segment-track { height: 10px; border-radius: 999px; background: transparent; border: 2px solid var(--df-ink); box-sizing: border-box; }
#createTripModal .wizard-progress-segment-fill { background: var(--df-ink); }
#createTripModal .wizard-progress-bar { display: flex; align-items: center; gap: var(--space-md); }
#createTripModal .wizard-progress-label { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.1em; }
.home-trip-card-draft {
  border-style: dashed;
  box-shadow: none;
}
.home-trip-card-draft:hover,
.home-trip-card-draft:active,
.home-trip-card-draft:has(.home-trip-card-open:active) {
  transform: none;
  box-shadow: none;
}
.home-draft-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--error-text);
  cursor: pointer;
}
.home-draft-dates { display: grid; gap: 2px; text-align: left; }
.home-draft-delete:focus-visible {
  outline: 2px solid var(--df-ink);
  outline-offset: 2px;
}
.wizard-tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg) var(--space-md); padding: 18px 2px var(--space-sm); }
.wizard-tag {
  position: relative; display: grid; align-content: start; justify-items: start; gap: var(--space-sm);
  min-height: 104px; padding: 26px var(--space-md) var(--space-md); font: inherit; text-align: left; cursor: pointer;
  color: var(--df-ink); background: var(--df-panel); border: 2px solid var(--df-ink);
  border-radius: 6px 6px 14px 14px; box-shadow: var(--df-press);
  transition: transform var(--dur-feedback) var(--df-ease), box-shadow var(--dur-feedback) var(--df-ease), background var(--dur-feedback) var(--df-ease);
}
.wizard-tag:nth-child(odd) { transform: rotate(-2deg); }
.wizard-tag:nth-child(even) { transform: rotate(1.6deg); }
.wizard-tag::before { content: ""; position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--df-ink); background: var(--ground, var(--surface-1)); }
.wizard-tag::after { content: ""; position: absolute; top: -14px; left: 50%; width: 2px; height: 22px; background: var(--df-amber); }
.wizard-tag:hover { box-shadow: var(--df-press-hover); }
.wizard-tag:active { box-shadow: var(--df-press-active); transform: translate(3px, 3px); }
.wizard-tag:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 3px; }
.wizard-tag.selected { background: var(--selected-bg); color: var(--on-selected); }
.wizard-tag b { font: 600 1.0625rem/1.15 var(--df-sans); letter-spacing: -0.02em; }
.wizard-tag kbd { position: absolute; right: var(--space-sm); bottom: var(--space-xs); font: 600 0.6875rem/1 var(--df-sans); opacity: 0.6; }
.wizard-tag-faces { display: flex; }
.wizard-tag-faces i { width: 20px; height: 20px; margin-right: -6px; border-radius: 50%; border: 2px solid currentColor; background: var(--df-amber); }
.wizard-tag-faces i:nth-child(2) { background: var(--df-coral); }
.wizard-tag-faces i:nth-child(3) { background: var(--df-brand); }
.wizard-tag-faces i:nth-child(4) { background: var(--df-panel); }
@media (max-width: 680px) { .wizard-tags { grid-template-columns: 1fr 1fr; } }
@media (pointer: coarse) { .wizard-tag kbd { display: none; } }
.wizard-budget-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-md) 0 var(--space-xs); }
.wizard-budget-amount { font: 800 2rem/1 var(--df-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--df-ink); }
.wizard-budget-per { font-size: var(--fs-xs); color: var(--df-ink-soft); }
.wizard-slider { position: relative; padding: 0 14px; margin: 0 0 var(--space-lg); }
.wizard-slider input[type=range] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: var(--tap-min); margin: 0; padding: 0;
  background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; cursor: pointer; font-size: 16px;
}
.wizard-slider input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 9px; border: 2px solid var(--df-ink);
  background: linear-gradient(to right, var(--df-brand) var(--wizard-slider-fill, 50%), var(--df-panel) var(--wizard-slider-fill, 50%));
}
.wizard-slider input[type=range]::-moz-range-track { height: 8px; border-radius: 9px; border: 2px solid var(--df-ink); background: var(--df-panel); }
.wizard-slider input[type=range]::-moz-range-progress { height: 8px; border-radius: 9px; background: var(--df-brand); }
.wizard-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%;
  background: var(--df-panel); border: 2px solid var(--df-ink); box-shadow: 2px 2px 0 var(--df-ink);
}
.wizard-slider input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--df-panel); border: 2px solid var(--df-ink); box-shadow: 2px 2px 0 var(--df-ink); }
.wizard-slider input[type=range]:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 4px; border-radius: 9px; }
.wizard-slider-detents { position: relative; height: 1.25rem; }
.wizard-slider-detents span { position: absolute; transform: translateX(-50%); font: 700 0.625rem/1.2 var(--df-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--df-ink-soft); white-space: nowrap; }
.wizard-slider-detents span:first-child { transform: translateX(-30%); }
.wizard-slider-detents span:last-child { transform: translateX(-70%); }
.wizard-recap-layout { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 1024px) {
  .wizard-recap-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); }
}
.wizard-recap-card .home-trip-card { margin-bottom: 0; cursor: default; }
.wizard-recap-card .home-trip-card:hover,
.wizard-recap-card .home-trip-card:active { transform: none; box-shadow: var(--df-press); }
.home-trip-card-recap { background: var(--df-pin-ink); color: var(--df-pin-lamplight); }
.home-trip-card-recap .home-trip-card-open,
.home-trip-card-recap .home-hero-kicker,
.home-trip-card-recap .home-trip-name { color: var(--df-pin-lamplight); }
.home-trip-card-recap .home-trip-name { font-family: var(--df-title); font-weight: 700; font-size: var(--fs-display-32); line-height: 1.1; white-space: normal; overflow: visible; }
.home-trip-card-recap .home-trip-stamp-place { color: #ff9b7a; font-size: var(--fs-2xl); font-weight: 800; padding: var(--space-xs) var(--space-md); border-width: 3px; transform: rotate(-3deg); }
.home-trip-card-recap .home-trip-field-label { font-size: var(--fs-xs); }
.home-trip-card-recap .home-trip-field-value { font-size: var(--fs-md); }
.home-trip-card-static { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); }
.home-trip-stamp-place { color: var(--df-coral); transform: rotate(-2deg); font-size: var(--fs-md); padding: var(--space-xs) var(--space-md); }
.home-trip-fields { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin-top: var(--space-md); }
.home-trip-field {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: var(--tap-min); min-width: var(--tap-min);
  padding: var(--space-xs) 0; background: none; border: 0; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.home-trip-field-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.home-trip-field-value { font-size: var(--fs-sm); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.home-trip-field:hover .home-trip-field-value,
.home-trip-field:focus-visible .home-trip-field-value { text-decoration-style: solid; }
.home-trip-field:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: var(--df-radius-chip, 4px); }
@media (min-width: 1024px) {
  .wizard-recap-layout { grid-template-columns: minmax(0, 720px) minmax(260px, 300px); justify-content: start; gap: 2.5rem; }
  .home-trip-card-recap .home-trip-card-static { min-height: 300px; box-sizing: border-box; padding: 1.75rem 1.75rem 1.5rem; }
  .home-trip-card-recap .home-trip-fields { margin-top: auto; }
  .home-trip-card-recap .home-trip-name { font-size: 2.5rem; }
  .home-trip-card-recap .home-trip-stamp-place { font-size: var(--fs-2xl); line-height: 1; padding: var(--space-sm) calc(var(--space-lg) + 1.5px); }
  .home-trip-card-recap .home-trip-field-label { font-size: var(--fs-xs); }
  .home-trip-card-recap .home-trip-field-value { font-size: var(--fs-md); }
  .wizard-recap-chips .wizard-chip { min-height: 52px; padding: var(--sp-sm) 1.25rem; font-size: var(--fs-md); }
  #createTripModal .wizard-recap-names-label { font-size: var(--fs-xs); margin-bottom: var(--space-lg); }
  #createTripModal .wizard-recap-hint { font-size: var(--fs-md); line-height: 1.5; }
}
.wizard-recap-names-label { margin: 0 0 var(--space-sm); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--df-ink-soft); }
.wizard-chip-grid.wizard-recap-chips { align-items: flex-start; }
.wizard-recap-chips .wizard-chip { width: auto; border-radius: 999px; padding: var(--space-md) var(--space-xl); }
.wizard-recap-chips .wizard-chip.selected { background: var(--selected-bg); border-color: var(--df-ink); color: var(--on-selected); font-weight: 600; }
.wizard-recap-chips .wizard-chip.wizard-chip-own { border-style: dashed; box-shadow: none; background: transparent; }
.wizard-recap-chips .wizard-chip.wizard-chip-own.selected { background: var(--selected-bg); }
.wizard-recap-names #tripName { margin-top: var(--sp-lg); }
.wizard-recap-hint { margin: var(--space-md) 0 0; font-size: var(--fs-xs); color: var(--df-ink-soft); }
@media (max-width: 1023px) {
  .wizard-recap-hint-desk { display: none; }
}
@media (max-width: 1023px) {
  .wizard-question:has(+ .wizard-recap-layout) { font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; margin-bottom: var(--space-xl); }
  .home-trip-card-recap .home-trip-card-static { min-height: 278px; box-sizing: border-box; padding: 1.25rem 1.3125rem 1.125rem; }
  .home-trip-card-recap .home-trip-fields { margin-top: auto; }
  .wizard-chip-grid.wizard-recap-chips { flex-direction: row; flex-wrap: wrap; gap: var(--space-xl); }
  .wizard-recap-chips .wizard-chip { min-height: 52px; padding: var(--sp-sm) 1.25rem; font-size: var(--fs-md); font-weight: 600; }
  .wizard-recap-names-label { margin-top: var(--space-xl); }
  .wizard-recap-hint { font-size: var(--fs-md); line-height: 1.4; }
  #createTripModal .wizard-footer.is-recap #create-trip-btn {
    min-height: 56px; font-size: var(--fs-lg); font-weight: 600; border-radius: 999px;
    background: var(--df-brand); color: var(--df-brand-fg); border: 2px solid var(--df-ink); box-shadow: var(--df-press);
  }
}
@media (max-width: 1023px) {
  #createTripModal .wizard-question { font-size: var(--fs-xl); line-height: 1.1; margin-bottom: var(--space-xl); }
  #createTripModal .wizard-chip { font-size: var(--fs-md); }
  #createTripModal .wizard-question.wizard-wall-title { font-size: 2.125rem; line-height: 0.95; margin-bottom: 0; }
  #createTripModal .wizard-wall-field { min-height: 56px; gap: var(--space-lg); }
  #createTripModal .wizard-wall-note { font-size: var(--fs-sm); line-height: 1.5; }
  #createTripModal .wizard-dates-undecided .wizard-chip { font-size: var(--fs-md); padding: var(--space-md) var(--space-xl); }
  #createTripModal .wizard-cal-head .wizard-cal-title { order: 0; justify-content: flex-start; font-size: var(--fs-xl); flex: 1; width: auto; }
  #createTripModal .wizard-cal-head .is-prev { order: 1; }
  #createTripModal .wizard-cal-head .is-next { order: 2; }
  #createTripModal .wizard-cal-dow { font-size: var(--fs-xs); }
  #createTripModal .wizard-cal-cell { font-size: var(--fs-md); }
  #createTripModal .wizard-tag { min-height: 130px; padding-top: 30px; }
  #createTripModal .wizard-tag b { font-family: var(--df-sans); font-size: var(--fs-lg); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
  #createTripModal .wizard-tag-faces i { width: 26px; height: 26px; }
  #createTripModal .wizard-tags + .form-hint { font-size: var(--fs-md); line-height: 1.4; margin-top: var(--space-lg); }
  #createTripModal .wizard-footer #wizard-next-btn { font-size: var(--fs-lg); min-height: 56px; border-radius: 999px; }
  #createTripModal .wizard-footer .wizard-create-now { font-size: var(--fs-md); }
}
.wizard-recap-status { margin-top: var(--space-lg); padding: var(--space-md) var(--space-lg); display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub); background: var(--df-panel); color: var(--df-ink); }
.wizard-recap-status.is-error { border-color: var(--danger); }
.wizard-recap-status.is-error strong { color: var(--danger-text); }
.wizard-recap-retry { background: none; border: 0; padding: 0; min-height: var(--tap-min); font: inherit; font-weight: 600; color: var(--df-brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#create-trip-btn:disabled { opacity: 0.5; cursor: not-allowed; }
@keyframes trip-header-arrive { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.trip-header.is-arriving { transform-origin: top center; animation: trip-header-arrive var(--dur-view) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .trip-header.is-arriving { animation: none; opacity: 1; transform: none; }
}
.wizard-question-sub { margin: calc(-1 * var(--space-lg)) 0 var(--space-lg); max-width: 34rem; font-size: var(--fs-md); line-height: 1.5; color: var(--df-ink-soft); }
.wizard-chip-grid.wizard-country-chips { flex-direction: row; flex-wrap: wrap; gap: var(--space-md); }
.wizard-country-chips .wizard-chip { width: auto; border-radius: 999px; padding: var(--space-md) var(--space-xl); font-weight: 600; }
.wizard-country-chips .wizard-chip.selected { background: var(--selected-bg); color: var(--on-selected); border-color: var(--df-ink); }
.wizard-search-row { display: flex; align-items: center; gap: var(--space-md); width: 100%; max-width: 34rem; min-height: 56px; padding: 0 var(--space-xl); font: inherit; font-size: var(--fs-md); text-align: left; color: var(--df-ink-soft); background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub); cursor: pointer; }
.wizard-search-row:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 2px; }
#createTripModal #wizard-next-btn:disabled { background: var(--df-brand); opacity: 0.45; box-shadow: none; cursor: default; }
.wizard-tag kbd { display: none; }
@media (min-width: 1024px) {
  #createTripModal .wizard-footer #wizard-next-btn { margin-left: auto; }
  .wizard-country-chips .wizard-chip { font-size: var(--fs-md); min-height: 52px; }
}
@keyframes day-unfold {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) {
  --pass-inset: 12px;
  --pass-h: 64px;
  --pass-pad: 8px 8px 8px 16px;
  --topbar-h: calc(var(--pass-inset) + var(--pass-h));
  --rail-top: calc(var(--topbar-h) + var(--space-3xl));
}
@media (max-width: 680px) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) {
    --pass-inset: 10px;
    --pass-h: 60px;
    --pass-pad: 6px 6px 6px 12px;
  }
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar {
  margin: var(--pass-inset) var(--pass-inset) 0;
  padding: var(--pass-pad);
  height: var(--pass-h);
  min-height: 0;
  border: 2px solid var(--df-pin-ink);
  border-radius: var(--df-radius-card);
  box-shadow: var(--df-press);
}
@media (max-width: 680px) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar:has(> .gs-trigger) {
    height: auto;
    min-height: var(--pass-h);
  }
}
@media (min-width: 681px) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar:has(> .gs-trigger) { height: var(--pass-h); }
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar .gs-trigger {
    flex: 0 1 300px;
    justify-content: flex-start;
    min-width: 0;
    margin: 0 var(--space-lg) 0 auto;
    padding: 0 var(--space-lg);
  }
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar .gs-trigger-text {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
  }
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar-title {
  font-family: var(--df-sans);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: 1.2;
  color: var(--df-pin-apricot);
}
#app #tripTitle, #shared-trip-screen #shared-trip-topbar-title { font-family: var(--df-title); font-weight: 700; }
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 26px;
  padding-inline-start: var(--space-lg);
  border-inline-start: 2px solid rgba(255, 227, 196, 0.35);
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar-brand-text .header-sub {
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 227, 196, 0.75);
}
@media (max-width: 680px) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar-brand-text { display: none; }
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar :is(.notification-bell-trigger, .home-profile-trigger, .gs-trigger, .discover-back-btn, .discover-signin-btn) {
  background: var(--df-pin-apricot);
  border: 2px solid var(--df-pin-keyline);
  color: var(--df-pin-deep-green);
  box-shadow: 2px 2px 0 rgba(6, 40, 17, 0.45);
  transition: transform var(--dur-feedback) var(--ease-out), box-shadow var(--dur-feedback) var(--ease-out);
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar :is(.notification-bell-trigger, .home-profile-trigger, .gs-trigger, .discover-back-btn, .discover-signin-btn):hover {
  background: var(--df-pin-apricot);
  border-color: var(--df-pin-keyline);
  color: var(--df-pin-deep-green);
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(6, 40, 17, 0.45);
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar :is(.discover-back-btn, .discover-signin-btn) {
  border-radius: var(--radius-pill, 999px);
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding-inline: var(--space-lg);
  gap: var(--space-sm);
  font: 600 var(--fs-sm) var(--df-sans);
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar .notification-bell-trigger { border-radius: 50%; }
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar .home-profile-trigger {
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 4px;
  gap: var(--space-md);
  border-radius: var(--radius-pill, 999px);
  font-weight: 600;
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar .home-profile-avatar {
  width: 32px;
  height: 32px;
  background: var(--vn-amber);
  color: var(--df-amber-fg);
  font-size: var(--fs-sm);
}
@media (min-width: 1024px) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar .home-profile-trigger { padding-inline-end: var(--space-lg); }
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar .home-profile-name { color: var(--df-pin-deep-green); }
}
@media (prefers-reduced-motion: reduce) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar :is(.notification-bell-trigger, .home-profile-trigger, .gs-trigger, .discover-back-btn, .discover-signin-btn):hover {
    transform: none;
    box-shadow: 2px 2px 0 rgba(6, 40, 17, 0.45);
  }
}
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar :is(.home-profile-dropdown, .notification-dropdown) { top: calc(100% + 18px); }
@media (max-width: 680px) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar :is(.home-profile-dropdown, .notification-dropdown) { top: calc(100% + 16px); }
}
@media (max-width: 680px) {
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar:has(> .gs-trigger) :is(.home-profile-dropdown, .notification-dropdown) { top: calc(100% + 72px); }
}
#app .home-topbar { z-index: 45; }
#app .home-topbar .trip-pass-header-badge {
  background: var(--df-pin-apricot);
  border: 2px solid var(--df-pin-keyline);
  color: var(--df-pin-deep-green);
  box-shadow: 2px 2px 0 rgba(6, 40, 17, 0.45);
  transition: transform var(--dur-feedback) var(--ease-out), box-shadow var(--dur-feedback) var(--ease-out);
}
#app .home-topbar .trip-pass-header-badge:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(6, 40, 17, 0.45);
}
#app .home-topbar .trip-pass-header-badge {
  border-radius: var(--radius-pill, 999px);
  font: 700 var(--fs-sm) var(--df-sans);
}
#app .home-topbar .trip-pass-header-badge.is-active { background: var(--df-pin-apricot); color: var(--df-pin-deep-green); }
#app .home-topbar .trip-pass-badge-suggest { background: var(--info); color: var(--df-panel); }
#app .home-topbar-phase:empty { display: none; }
@media (max-width: 1023px) {
  #app .home-topbar-phase { display: none; }
}
#app .home-topbar-brand-text { min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  #app .home-topbar .trip-pass-header-badge:hover {
    transform: none;
    box-shadow: 2px 2px 0 rgba(6, 40, 17, 0.45);
  }
}
@media (min-width: 1024px) {
  #app {
    --pass-tabs-h: 62px;
    --topbar-h: calc(var(--pass-inset) + var(--pass-h) + var(--pass-tabs-h));
  }
  #app .home-topbar {
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
  }
  #app .tabs {
    position: fixed;
    top: calc(var(--pass-inset) + var(--pass-h));
    left: var(--pass-inset);
    right: var(--pass-inset);
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0;
    height: var(--pass-tabs-h);
    z-index: 44;
    box-sizing: border-box;
    padding: 8px 8px 8px 16px;
    background: var(--topbar-bg);
    border: 2px solid var(--df-pin-ink);
    border-top: 0;
    border-radius: 0 0 var(--df-radius-card) var(--df-radius-card);
    box-shadow: var(--df-press);
  }
  #app .tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    border-top: 2px dashed rgba(255, 227, 196, 0.35);
    pointer-events: none;
  }
  #app .tab {
    height: var(--tap-min);
    min-height: var(--tap-min);
    margin-top: 2px;
    font: 400 14px/1.3 var(--df-sans);
    color: var(--df-pin-apricot);
    background: none;
    border: 2px solid transparent;
    box-shadow: none;
  }
  #app .tab:hover { background: rgba(255, 227, 196, 0.12); }
  #app .tab.active,
  #app .tab.active:hover {
    background: var(--df-pin-ink);
    border-color: var(--df-pin-apricot);
    color: var(--df-pin-apricot);
    font-weight: 600;
    box-shadow: 2px 2px 0 rgba(6, 40, 17, 0.45);
  }
  #app .tab:focus-visible { outline: 2px solid var(--df-pin-apricot); outline-offset: 2px; }
  #app .tab.active:focus-visible { outline-color: var(--df-pin-white); }
  #app .tab i { font-size: 18px; }
  #app .tab.active i { transform: none; }
  #app #tab-settings {
    margin-left: auto;
    border-color: rgba(255, 227, 196, 0.35);
  }
  #app #tab-settings.active { border-color: var(--df-pin-keyline); }
  #app .tab-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    width: var(--tap-min);
    height: var(--tap-min);
    min-width: var(--tap-min);
    margin-top: 2px;
    margin-left: calc(-1 * var(--space-xs) - 2px);
    padding: 0;
    color: var(--df-pin-apricot);
    background: none;
    border: 2px solid rgba(255, 227, 196, 0.35);
    border-radius: 0;
    cursor: pointer;
  }
  #app .tab-view-btn[hidden] { display: none; }
  #app .tab-view-btn.feature-itinerary-map { display: none; }
  #app #itinTabMapBtn,
  #app #itinTabCalendarBtn:has(+ #itinTabMapBtn[hidden]) { border-radius: 0 var(--radius-pill, 999px) var(--radius-pill, 999px) 0; }
  #app .tab-view-btn:hover { background: rgba(255, 227, 196, 0.12); }
  #app .tab-view-btn i { font-size: 18px; }
  #app .tab-view-btn.active {
    background: var(--df-pin-apricot);
    border-color: var(--df-pin-keyline);
    color: var(--df-pin-deep-green);
    position: relative;
    box-shadow: 2px 2px 0 rgba(6, 40, 17, 0.45);
  }
  #app .tab-view-btn:focus-visible { outline: 2px solid var(--df-pin-apricot); outline-offset: 2px; }
  #app .tab-view-btn.active:focus-visible { outline-color: var(--df-pin-white); }
}
.home-topbar-actions { display: flex; align-items: center; gap: var(--space-lg); }
.votes-sticker[hidden] { display: none; }
.votes-sticker {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: var(--tap-min);
  padding: 0 14px;
  font: 600 14px/1.3 var(--df-sans);
  color: var(--df-pin-apricot);
  background: none;
  border: 2px solid rgba(255, 227, 196, 0.35);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-feedback) var(--ease-out), transform var(--dur-feedback) var(--ease-out);
}
.votes-sticker:hover { background: rgba(255, 227, 196, 0.12); }
.votes-sticker:active { transform: translateY(1px); }
.votes-sticker:focus-visible { outline: 2px solid var(--df-pin-apricot); outline-offset: 2px; }
.votes-sticker i { font-size: 18px; }
.votes-sticker-badge {
  padding: 0 7px;
  font: 700 11px/18px var(--df-sans);
  color: var(--df-pin-deep-green);
  background: var(--df-pin-apricot);
  border: 1.5px solid var(--df-pin-keyline);
  border-radius: var(--radius-pill);
}
@media (max-width: 1023.98px) {
  #app .votes-sticker-bar:not([hidden]) { display: inline-flex; padding: 0 7px; gap: 4px; }
  #app .votes-sticker-bar .votes-sticker-badge { padding: 0 5px; }
  #app .home-topbar-actions:has(.votes-sticker-bar:not([hidden])) { gap: var(--space-sm); }
}
@media (max-width: 680px) {
  #app .home-topbar .home-profile-caret { display: none; }
  #app .votes-sticker-bar:not([hidden]) { position: relative; justify-content: center; width: var(--tap-min); padding: 0; }
  #app .votes-sticker-bar .votes-sticker-badge-words,
  #app .votes-sticker-bar:has(.votes-sticker-badge) .votes-sticker-count { display: none; }
  #app .votes-sticker-bar :is(.votes-sticker-badge, .votes-sticker-count) { position: absolute; top: -6px; right: -6px; box-sizing: border-box; min-width: 20px; text-align: center; }
  #app .votes-sticker-bar .votes-sticker-count { padding: 0 4px; font: 700 11px/18px var(--df-sans); background: var(--topbar-bg); border: 1.5px solid var(--df-pin-apricot); border-radius: var(--radius-pill); }
}
@media (min-width: 1024px) {
  #app .votes-sticker-pass:not([hidden]) { display: inline-flex; margin-left: auto; margin-top: 2px; }
  #app .votes-sticker-pass:not([hidden]) + #tab-settings { margin-left: 8px; }
}
.votes-modal-content { max-width: 520px; padding: 0; background: var(--df-ground); position: relative; }
.votes-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); margin: 0; padding: 20px 20px 14px; border-bottom: 2px solid var(--df-ink); }
.votes-head-text h2 { margin: 0; font: 700 24px/1.1 var(--df-title); color: var(--df-ink); }
.votes-sub { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--df-ink-soft); }
#votesBody { display: flex; flex-direction: column; gap: var(--space-lg); padding: 16px 16px 20px; }
@media (max-width: 680px) {
  .votes-modal-content::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--df-hair); }
  .votes-head { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .votes-sticker { transition: none; }
  .votes-sticker:active { transform: none; }
}
@media (min-width: 1024px) {
  .app-main:has(> #panel-itinerary.active) { padding-top: calc(var(--topbar-h) + var(--space-lg)); }
  .app-main:has(> #panel-itinerary.active) .trip-header { padding-bottom: var(--space-xs); }
  #panel-itinerary { padding-top: 0; }
  #panel-itinerary .itin-toolbar { margin-bottom: 0; }
  #panel-itinerary .itin-toolbar > .itin-action-btn,
  #panel-itinerary .itin-create-actions > * { margin-bottom: var(--space-lg); }
}
.itin-rail-tabs { display: none; }
.itin-rail-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--tap-min);
  padding: 0 var(--space-lg);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  background: var(--df-panel);
  color: var(--df-ink);
  font-family: var(--df-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}
.itin-rail-tab[aria-selected="true"] { background: var(--df-ink); color: var(--df-panel); box-shadow: var(--df-press); }
.itin-rail-tab:focus-visible { outline: 2px solid var(--vn-trail-green); outline-offset: 2px; }
.itin-rail-tab-count { font-weight: 800; }
.itin-rail-tab-count:not([hidden])::before { content: '('; }
.itin-rail-tab-count:not([hidden])::after { content: ')'; }
.itin-toolbar .itin-toolbar-pill.itin-ideas-pill { margin-left: 0; }

.ideas-drawer-content { padding: 0; display: flex; flex-direction: column; }
.ideas-drawer-content .modal-header { padding: var(--space-lg) var(--space-2xl); margin: 0; flex: none; }
#ideas-drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 var(--space-lg) var(--space-lg); }
#ideas-drawer-body #itin-ideas-sidebar { display: block; box-shadow: none; }
#ideas-drawer-body .ideas-sidebar-chevron { display: none; }
#ideas-drawer-body .ideas-sidebar-toggle { cursor: default; }
@keyframes ideas-drawer-in { from { opacity: 0; transform: translateX(32px); } }
@media (min-width: 681px) {
  .modal.ideas-drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
  .modal.ideas-drawer .ideas-drawer-content {
    max-width: 440px;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-width: 0 0 0 2px;
  }
}
@media (max-width: 680px) {
  .ideas-drawer-content { max-height: 85vh; max-height: 85dvh; }
}
.stop-picked-address { margin: var(--space-xs) 0 0; font-size: var(--fs-sm); color: var(--df-ink-soft, var(--text-muted)); }
.stop-picked-address[hidden] { display: none; }
.stop-picked-address-change { background: none; border: 0; padding: 0 var(--space-xs); min-height: var(--tap-min); color: var(--df-ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.stop-advanced { margin: 0 0 1rem; border: 2px solid var(--df-ink); border-radius: 12px; background: var(--df-ground, var(--bg)); }
.stop-advanced-summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; cursor: pointer; list-style: none; color: var(--df-ink); }
.stop-advanced-summary::-webkit-details-marker { display: none; }
.stop-advanced-summary:focus-visible { outline: 2px solid var(--df-ink); outline-offset: 2px; }
.stop-advanced-main { flex: 1; display: grid; }
.stop-advanced-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.stop-advanced-values { font-size: 12px; line-height: 1.4; color: var(--df-ink-soft, var(--text-muted)); }
.stop-advanced-values[hidden] { display: none; }
.stop-advanced-chev { transition: transform var(--dur-state) var(--ease-move); }
.stop-advanced[open] > .stop-advanced-summary { border-bottom: 2px dashed var(--df-ink); }
.stop-advanced[open] .stop-advanced-chev { transform: rotate(180deg); }
.stop-advanced-grid { display: grid; grid-template-columns: 1fr; column-gap: var(--space-sm); padding: 12px 12px 0; }
@media (min-width: 681px) {
  .stop-advanced-grid { grid-template-columns: 1fr 1fr; }
  .stop-advanced-grid .stop-advanced-full { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .stop-advanced-chev { transition: none; } }
@keyframes trip-entry-march { to { transform: translateX(20px); } }
@keyframes trip-entry-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes trip-chrome-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
::view-transition-group(trip-lift-photo),
::view-transition-group(trip-lift-title) {
  animation-duration: var(--dur-lift);
  animation-timing-function: var(--ease-out);
}
@keyframes trip-lift-away { to { opacity: 0; transform: scale(0.96); } }
@keyframes trip-lift-in { from { opacity: 0; } to { opacity: 1; } }
::view-transition-old(trip-lift-photo), ::view-transition-new(trip-lift-photo) { height: 100%; object-fit: cover; }
::view-transition-group(dpost-lift-photo),
::view-transition-group(dpost-lift-title) {
  animation-duration: var(--dur-lift);
  animation-timing-function: var(--ease-out);
}
@keyframes dpost-feed-rise { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
::view-transition-old(dpost-lift-photo), ::view-transition-new(dpost-lift-photo) { height: 100%; object-fit: cover; }
@keyframes dpost-body-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.topbar-menus { display: contents; }

.home-profile-dropdown,
.notification-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 20px);
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  box-shadow: var(--df-press-large);
  z-index: 50;
}
.home-profile-dropdown.open, .notification-dropdown.open,
.home-profile-dropdown.closing, .notification-dropdown.closing { display: block; }
.home-profile-dropdown.closing, .notification-dropdown.closing { pointer-events: none; }
@media (max-width: 480px) {
  .home-topbar .notification-bell { position: static; }
  :is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar .notification-dropdown { top: calc(100% + var(--space-md)); left: 8px; right: 8px; width: auto; max-width: none; }
}
.tb-band-avatar {
  width: 50px; height: 50px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--df-pin-keyline);
  background: var(--df-pin-apricot);
  color: var(--df-pin-deep-green);
  display: flex; align-items: center; justify-content: center;
  font: 600 var(--fs-lg)/1 var(--df-sans);
  overflow: hidden;
}
.tb-band-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tb-band-name {
  font: 700 var(--fs-lg)/1.15 var(--df-title);
  color: var(--df-pin-apricot);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.home-profile-dropdown-meta {
  font: 400 var(--fs-xs)/1.3 var(--df-sans);
  color: var(--topbar-fg-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tb-figures { display: flex; gap: var(--space-xl); padding-top: var(--space-xs); }
.tb-figures[hidden] { display: none; }
.tb-figure-off { display: none !important; }
:is(#my-trips-screen, #discover-screen, #stamps-screen, #friends-screen, #profile-screen, #pending-approval-screen, #shared-trip-screen, #invite-screen, #user-profile-screen, #app, #createTripModal) .home-topbar :is(.notification-bell-trigger, .home-profile-trigger)[aria-expanded="true"] {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(6, 40, 17, 0.45);
}
.home-profile-dropdown.arriving, .notification-dropdown.arriving { animation: tb-panel-in var(--dur-feedback) var(--ease-out) both; }
.home-profile-dropdown.closing, .notification-dropdown.closing { animation: tb-panel-out var(--dur-feedback) var(--ease-out) both; }

@keyframes tb-panel-in { from { opacity: 0; } }
@keyframes tb-panel-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes tb-band-drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes tb-tear-draw { from { transform: scaleX(0); } }
@keyframes tb-row-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes tb-dot-out { to { transform: scale(0); } }
@keyframes tb-badge-out { to { opacity: 0; transform: scale(0); } }

@media (prefers-reduced-motion: reduce) {
  .home-profile-dropdown.arriving, .notification-dropdown.arriving,
  .arriving .tb-band, .arriving .tb-tear::before,
  .arriving .tb-menu-body > :is(.tb-seg-pair, .home-profile-item),
  .arriving .notif-stub, .arriving .notification-empty,
  .home-profile-dropdown.closing, .notification-dropdown.closing,
  .notif-stub-dot-out, .notification-bell-badge-out { animation: none; }
}
@keyframes idea-heart-pop { 50% { transform: scale(1.25); } }
.itin-book-activities { margin-top: var(--space-lg); padding: var(--space-lg); background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: 12px; }
.itin-book-activities[hidden] { display: none; }
.itin-book-activities-title { margin: 0 0 var(--space-sm); font-family: var(--df-sans); font-size: var(--fs-md); }
.set-page-head { margin: 0 0 var(--sp-lg); }
.set-page-sub { margin: 0 0 var(--sp-xs); font-size: var(--fs-xs); color: var(--df-ink-soft); }
.set-page-sub:empty { display: none; }
.set-page-title { margin: 0; font-family: var(--df-display); font-size: var(--fs-display-32); font-weight: 800; line-height: 1.05; color: var(--df-ink); }

.set-shell { display: block; }
.set-index { display: flex; flex-direction: column; gap: var(--sp-lg); min-width: 0; }
.set-shell[data-view="drill"] .set-index { display: none; }

.set-offline {
  display: flex; align-items: flex-start; gap: var(--sp-sm);
  margin: 0 0 var(--sp-lg); padding: var(--sp-md);
  background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub);
  font-size: var(--fs-xs); color: var(--df-ink);
}
.set-offline[hidden] { display: none; }
.set-offline i { flex: none; font-size: var(--fs-md); }
.set-offline-inline { margin: 0 0 var(--sp-lg); align-items: center; }

.set-drill { min-width: 0; }
.set-drill[hidden] { display: none; }
.set-back {
  display: inline-flex; align-items: center; gap: var(--sp-xs);
  min-height: var(--tap-min); margin: 0 0 var(--sp-lg); padding: 0 var(--sp-md) 0 var(--sp-md);
  background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: 999px;
  box-shadow: var(--df-press); font: inherit; font-weight: 600; color: var(--df-ink); cursor: pointer;
}
.set-drill-head { margin: 0 0 var(--sp-lg); }
.set-drill-eyebrow {
  margin: 0 0 var(--sp-xs); font-family: var(--df-sans); font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--df-ink-soft);
}
.set-drill-title { margin: 0; font-family: var(--df-sans); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.1; color: var(--df-ink); }
.set-drill-title:focus { outline: none; }
.set-drill-pane[hidden] { display: none; }

.set-savebar {
  position: sticky; bottom: calc(var(--sp-md) + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: flex; align-items: center; gap: var(--sp-md); margin-top: var(--sp-lg);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub);
}
.set-savebar[hidden] { display: none; }
.set-savebar-msg { flex: 1 1 auto; font-weight: 600; font-size: var(--fs-xs); }
.set-savebar-msg::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--sp-xs); border-radius: 50%; background: var(--info); border: 1.5px solid var(--df-ink); }
.set-savebar-save:disabled { opacity: 0.5; cursor: not-allowed; }

@media (min-width: 1024px) {
  .set-shell { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--sp-2xl); align-items: start; }
  .set-shell[data-view="drill"] .set-index { display: flex; }
  .set-back { display: none; }
  .set-drill-frame {
    background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub);
    padding: var(--sp-lg) var(--sp-lg) 0; overflow: hidden;
  }
  .set-drill-body { padding-bottom: var(--sp-lg); }
  .set-drill-frame .set-savebar {
    position: static; margin: 0 calc(var(--sp-lg) * -1); border: 0; border-top: var(--edge-hairline);
    border-radius: 0; box-shadow: none; padding: var(--sp-md) var(--sp-lg); background: var(--df-ground);
  }
}
.vf-block { width: 100%; margin-top: var(--space-sm); }
.vf-cancel { box-shadow: none; border-color: var(--df-hair); color: var(--df-ink-soft); }
.vf-hint { margin: var(--space-xs) 0 var(--space-md); font: 400 13px/1.45 var(--df-sans); color: var(--df-ink-soft); }
.vf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 380px) { .vf-pair { grid-template-columns: 1fr; } }
.vf-opts { display: grid; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.vf-opt { display: grid; gap: 2px; text-align: left; min-height: var(--tap-min); padding: 10px 14px; border: 2px solid var(--df-ink); border-radius: var(--radius-md, 12px); background: var(--df-panel); color: var(--df-ink); font-family: var(--df-sans); cursor: pointer; }
.vf-opt b { font-size: var(--fs-md); }
.vf-opt small { font-size: var(--fs-sm); color: var(--df-ink-soft); }
.vf-opt:hover, .vf-opt:focus-visible { background: var(--df-ink); color: var(--df-ground); }
.vf-opt:hover small, .vf-opt:focus-visible small { color: inherit; opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .inv-btn { transition: none; }
}
.set-basics { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-lg); }
.set-basics:disabled { opacity: 0.6; }
.set-basics-field { display: flex; flex-direction: column; gap: var(--sp-xs); min-width: 0; }
.set-basics-field > input[type="text"] { width: 100%; }
.set-basics-msg, .set-basics-leg-msg { margin: 0; min-height: 1.2em; font-size: var(--fs-xs); color: var(--df-ink-soft); }
.set-basics-msg:empty, .set-basics-leg-msg:empty { min-height: 0; }
.set-status { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-lg); }
.set-status:disabled { opacity: 0.6; }
.set-status-line { display: flex; justify-content: space-between; gap: var(--sp-md); margin: 0 0 var(--sp-md); }
.set-status-line strong { font-weight: 600; text-align: right; }
#set-drill-status .set-danger { border-style: dashed; }
#set-drill-status .set-danger .set-danger-btn { color: var(--error-text); border-color: var(--error); }
#set-drill-status .set-danger-title { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; }
#set-drill-status .set-status-block .set-block-hint { margin-top: var(--sp-md); }
.set-money { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-lg); }
.set-money:disabled { opacity: 0.6; }
.set-money-field { display: flex; flex-direction: column; gap: var(--sp-xs); min-width: 0; }
.set-money-field[hidden] { display: none; }
.set-money-box {
  display: flex; align-items: center; gap: var(--sp-sm); min-height: var(--tap-min); padding: 0 var(--sp-md);
  background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub);
}
#set-money-fields .set-money-box > input, #set-money-fields .set-money-box select {
  flex: 1 1 auto; min-width: 0; min-height: var(--tap-min); height: auto; align-self: stretch; margin-block: -2px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0;
}
.set-money-control { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: var(--sp-sm); min-width: 0; }
.set-money-box .set-field-suffix { color: var(--df-ink-soft); font-size: var(--fs-xs); white-space: nowrap; }
.set-rate-group { display: flex; flex-direction: column; gap: var(--sp-sm); }
.set-rate-choice {
  display: flex; align-items: center; gap: var(--sp-md); min-height: var(--tap-min); padding: var(--sp-sm) var(--sp-md);
  background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: var(--df-radius-stub); cursor: pointer;
}
.set-rate-choice:has(input:checked) { box-shadow: var(--df-press); }
.set-rate-choice > span { display: flex; flex-direction: column; gap: 2px; }
.set-rate-choice small { font-size: var(--fs-xs); color: var(--df-ink-soft); }
.set-rate-choice input[type="radio"] { flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--df-ink); }
#trip-reopen-destination-row:empty { display: none; }
#set-drill-pass { display: flex; flex-direction: column; gap: var(--space-2xl); }
#set-drill-pass[hidden] { display: none; }
.set-pass-card {
  margin: 0; padding: var(--sp-md); background: var(--df-panel);
  border: 2px solid var(--df-ink); border-radius: var(--df-radius-card);
}
.set-pass-card > .set-block-title { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--sp-md); }
.set-pass-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-md); margin-top: var(--sp-md); }
.set-pass-actions .btn-primary {
  display: inline-flex; align-items: center; gap: var(--sp-xs); width: auto; margin: 0; min-height: var(--tap-min);
  padding: 0 var(--sp-md); border-radius: var(--radius-pill); border: 2px solid var(--df-ink); box-shadow: 3px 3px 0 var(--df-ink); font-weight: 600;
}
.set-pass-actions .btn-primary:disabled { opacity: 0.5; cursor: default; }
.set-pass-radios { margin: 0 0 var(--sp-md); padding: 0; border: 0; min-width: 0; }
.set-pass-radios:disabled { opacity: 0.6; }
#set-drill-pass .set-rate-choice:has(input:checked) { box-shadow: var(--df-press); }
#set-drill-pass .set-rate-choice.is-edited:has(input:checked) { box-shadow: var(--df-press), 3px 3px 0 var(--info); }
.set-pass-keyrow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); min-height: 32px; font-size: var(--fs-xs); color: var(--df-ink); }
.set-pass-keyrow strong { font-weight: 600; text-align: right; }
.set-pass-keyrow .set-pass-quiet { min-height: 0; padding: 0 0 0 var(--sp-xs); font-size: inherit; color: var(--df-brand); }
#ai-key-mode-member-status { font-size: var(--fs-xs); color: var(--df-ink-soft); }
#ai-key-mode-member-status > div { display: flex; justify-content: space-between; gap: var(--space-lg); padding: 2px 0; }
#set-drill-visibility { display: flex; flex-direction: column; gap: var(--space-2xl); }
#set-drill-visibility[hidden] { display: none; }
#set-drill-visibility .set-vis-radios { margin: 0 0 var(--sp-md); padding: 0; border: 0; min-width: 0; }
#set-drill-discover { display: flex; flex-direction: column; gap: var(--space-2xl); }
#set-drill-discover[hidden] { display: none; }
.day-history-modal { max-width: 520px; }
.dh-header { align-items: flex-start; border-bottom: 2px solid var(--df-ink); margin: 0 -2rem var(--space-md); padding: 0 2rem var(--space-lg); }
.day-history-modal .modal-header h2 { font-family: var(--df-title); font-weight: 700; font-size: var(--fs-xl); letter-spacing: 0; }
.dh-header-text { flex: 1; min-width: 0; }
.dh-eyebrow { font-family: var(--df-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--df-ink-soft); }
.dh-body { max-height: 70vh; max-height: 70dvh; overflow-y: auto; }
@keyframes dh-strike {
  0%   { opacity: 0; transform: rotate(-12deg) scale(1.8); }
  55%  { opacity: 1; transform: rotate(-4deg) scale(0.95); }
  100% { transform: rotate(-4deg) scale(1); }
}
.split-sheet { max-width: 520px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.ss-header { align-items: flex-start; gap: var(--space-sm); margin: 0; padding: 1.25rem 1.5rem 1rem; border-bottom: 2px solid var(--df-ink); }
.ss-header-text { flex: 1; min-width: 0; }
.ss-eyebrow { font-family: var(--df-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--df-ink-soft); }
.split-sheet .modal-header h2 { font-family: var(--df-title); font-weight: 700; font-size: var(--fs-xl); letter-spacing: 0; }
.ss-back { flex: none; min-width: var(--tap-min); min-height: var(--tap-min); margin: -4px 0 0 -12px; border: 0; background: none; color: var(--df-ink); font-size: var(--fs-lg); cursor: pointer; border-radius: 999px; }
.ss-back:focus-visible { outline: 2px solid var(--df-ink); outline-offset: 2px; }
.ss-handle, .dh-handle { background: var(--df-hair); }
.ss-handle { display: none; }
@media (max-width: 680px) { .ss-handle { display: block; margin-top: 10px; } .split-sheet .ss-header { padding-top: 0.75rem; } }
.ss-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: var(--space-md); }
.ss-foot { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; padding: 0.875rem 1.5rem 1.125rem; border-top: 2px solid var(--df-ink); }
.split-sheet { --ss-indigo: var(--vn-indigo); --ss-purple: var(--vn-purple); }
@keyframes ss-lane-l { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes ss-lane-r { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.dh-handle { display: none; }
@media (max-width: 680px) { .day-history-modal .dh-handle { display: block; margin: -1.25rem auto 0.75rem; } }
.offline-copy-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 10px 16px; text-align: center; font-size: 14px; background: var(--df-ink); color: var(--df-panel); }
.itin-add-pill { display: none; }
@media (max-width: 1023px) {
  .itin-add-pill { display: inline-flex; }
  .itin-add-pill[hidden] { display: none; }
  #panel-itinerary { padding-bottom: 6rem; }
}
.tl-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  background: var(--df-panel);
  border-top: 2px solid var(--df-ink);
  padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
}
.tl-bar[hidden] { display: none; }
.tl-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--selected-bg);
  opacity: var(--tab-ind-op, 0);
  transform: translateX(var(--tab-ind-x, 0px));
  transition: transform var(--dur-state) var(--ease-move);
  pointer-events: none;
}
@media (min-width: 1024px) { .tl-bar, .tl-bar[hidden] { display: none; } }
.tl-bar { transition: transform var(--dur-state) var(--ease-move); }
@media (prefers-reduced-motion: reduce) { .tl-bar, .tl-bar::after, .tl-tab i { transition: none; } }
.former-members { margin-top: var(--space-xl); border-top: 2px dashed var(--df-hair); }
.former-members[hidden] { display: none; }
.stub-notice-col {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.stub-notice {
  position: relative;
  background: var(--df-panel);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  color: var(--df-ink);
}
.stub-notice-top { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; }
.stub-notice-label { font-family: var(--df-sans); font-size: var(--fs-xs); font-weight: 600; color: var(--df-ink-soft); letter-spacing: 0.08em; }
.stub-notice-top b { font-family: var(--df-title); font-weight: 600; font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.stub-notice-top small { font-size: var(--fs-sm); color: var(--df-ink-soft); }
.stub-notice-perf { position: relative; height: 0; margin: 0 12px; border-top: 2px dashed var(--df-ink); }
.stub-notice-perf::before,
.stub-notice-perf::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--df-ground);
  border: 2px solid var(--df-ink);
}
.stub-notice-perf::before { left: -23px; clip-path: inset(0 0 0 50%); }
.stub-notice-perf::after { right: -23px; clip-path: inset(0 50% 0 0); }
.stub-notice-bottom { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: var(--fs-sm); font-weight: 600; }
.stub-notice.void .stub-notice-top b { color: var(--df-ink-soft); }
.stub-notice-soft { color: var(--df-ink-soft); font-weight: 400; }
.stub-notice-pill { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border: 2px solid currentColor; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.6; white-space: nowrap; }
.stub-notice-pill.ok { color: var(--df-brand); }
.stub-notice-pill.err { color: var(--danger-text); }
.stub-notice-route {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.stub-notice-route::before {
  content: '';
  position: absolute;
  inset: 0 0 0 -16px;
  background: repeating-linear-gradient(90deg, var(--df-amber) 0 8px, transparent 8px 16px);
  animation: stub-notice-march 1.2s linear infinite;
}
@keyframes stub-notice-march { to { transform: translateX(16px); } }
.stub-notice-title { margin: 8px 0 0; font-family: var(--df-title); font-weight: 600; font-size: var(--fs-2xl); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.stub-notice-body { margin: 0; font-size: var(--fs-md); line-height: 1.5; color: var(--df-ink-soft); }
.stub-notice-mark { width: 48px; height: 48px; color: var(--df-ink); flex: none; }
.stub-notice-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.stub-notice-quiet { min-height: var(--tap-min); border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--df-ink); cursor: pointer; }
@media (max-width: 680px) {
  .stub-notice-col { min-height: calc(100dvh - 140px); }
  .stub-notice-mark { margin-top: auto; }
  .stub-notice-actions { margin-top: auto; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .stub-notice-route::before { animation: none; } }
#auth-panel .stub-notice-title { margin: 8px 0 0; text-align: left; font-family: var(--df-title); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.stub-notice-back { display: none; width: var(--tap-min); height: var(--tap-min); padding: 0; align-items: center; justify-content: center; border: 2px solid var(--df-ink); border-radius: 50%; background: transparent; color: var(--df-ink); font-size: var(--fs-lg); cursor: pointer; }
@media (max-width: 680px) {
  .stub-notice-back { display: inline-flex; }
  .stub-notice-col .stub-notice-actions .stub-notice-quiet:not(:only-child) { margin-top: 0; }
  #reset-password-fields .stub-notice-actions .stub-notice-quiet { display: none; }
}
.ap-pw-wrap { position: relative; }
.ap-pw-wrap input { padding-right: 52px; }
.ap-pw-wrap input::-ms-reveal { display: none; }
.ap-pw-eye { position: absolute; top: 0; bottom: 0; right: 0; margin: auto 0; width: var(--tap-min); height: max(100%, var(--tap-min)); display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--df-ink-soft); font-size: var(--fs-xl); cursor: pointer; }
#auth-reset-password-form .ap-field-hint { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; }
.stub-notice-col .form-group { margin: 0; }
#auth-panel .stub-notice-col .form-label { text-transform: none; letter-spacing: 0; font-size: var(--fs-md); font-weight: 600; color: var(--df-ink); }
#auth-panel .stub-notice-col input[type] { min-height: 50px; border-radius: 12px; background: light-dark(var(--df-pin-field), rgba(255, 238, 218, 0.06)); }
#auth-panel .stub-notice-col input:focus { outline: none; border-color: var(--df-brand); box-shadow: 0 0 0 3px light-dark(#dcefdf, rgba(16, 112, 42, 0.35)); }
#auth-panel .stub-notice-col input[aria-invalid="true"],
#auth-panel .stub-notice-col input[aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-light); outline: none; }
#auth-panel .stub-notice-col .ap-field-error { color: var(--danger-text); font-size: var(--fs-sm); }
#auth-panel .stub-notice-col .ap-field-error.is-visible { display: flex; gap: 6px; align-items: center; }
#auth-panel .stub-notice-col .ap-field-error.is-visible::before { content: "\ea06"; font-family: "tabler-icons"; font-weight: 400; font-size: var(--fs-md); }
.nlm-col { max-width: 460px; }
.nlm-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px; border: 2px solid #8A5610; border-radius: 12px; background: light-dark(#f8e2c2, rgba(186, 117, 23, 0.2)); font-size: var(--fs-sm); line-height: 1.4; }
.nlm-note i { margin-top: 2px; }
@media (min-width: 681px) {
  .nlm-col .stub-notice-actions { margin-top: 8px; align-items: flex-start; }
  .nlm-col .stub-notice-actions .btn-primary { width: auto; }
}
@media (max-width: 680px) {
  #no-longer-member-stub { margin-top: auto; }
  .nlm-col .stub-notice-actions { margin-top: auto; }
}
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 0 var(--sp-xl);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-control);
  background: var(--df-panel);
  color: var(--df-ink);
  box-shadow: var(--df-press);
  font: inherit;
  font-family: var(--df-sans);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-feedback) var(--ease-out), box-shadow var(--dur-feedback) var(--ease-out), color var(--dur-feedback) var(--ease-out);
}
.ui-btn:hover { transform: translate(2px, 2px); box-shadow: var(--df-press-hover); }
.ui-btn:active { transform: translate(4px, 4px); box-shadow: var(--df-press-active); }
.ui-btn:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 3px; box-shadow: var(--df-press); }
.ui-btn--primary { background: var(--df-brand); color: var(--df-brand-fg); }
.ui-btn--secondary { background: var(--df-panel); color: var(--df-ink); }
.ui-btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.ui-btn--ghost:hover { transform: none; box-shadow: none; color: var(--df-brand); }
.ui-btn--ghost:active { transform: none; box-shadow: none; }
.ui-btn--ghost:focus-visible { box-shadow: none; }
.ui-btn--lg { min-height: 56px; padding: 0 var(--sp-xl); box-shadow: var(--df-press-large); }
.ui-btn--lg:hover { box-shadow: 3px 3px 0 var(--df-ink); }
.ui-btn--lg:active { box-shadow: var(--df-press-active); }
.ui-btn--lg:focus-visible { box-shadow: var(--df-press-large); }
.ui-btn:is([disabled], [aria-disabled="true"]):not([aria-busy="true"]) {
  background: var(--df-panel); color: var(--df-ink-soft); border: 2px dashed var(--df-ink-soft);
  cursor: not-allowed; transform: none; box-shadow: none;
}
.ui-btn--ghost:is([disabled], [aria-disabled="true"]):not([aria-busy="true"]) { background: transparent; border-color: transparent; }
.ui-btn[aria-busy="true"] { transform: translate(4px, 4px); box-shadow: none; cursor: progress; position: relative; }
.ui-btn--ghost[aria-busy="true"] { transform: none; }
.ui-btn[aria-busy="true"]::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; flex: none; margin-left: var(--sp-xs, 4px);
  background: var(--df-ink); color: var(--df-ink);
  box-shadow: 8px 0 0 currentColor, 16px 0 0 currentColor; margin-right: 16px;
  opacity: 0; animation: ui-btn-route 1s steps(1, end) 300ms infinite;
}
.ui-btn--primary[aria-busy="true"]::after, .ui-btn--danger[aria-busy="true"]::after { background: var(--df-amber); color: var(--df-amber); }
@keyframes ui-btn-route { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.ui-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  min-height: var(--tap-min);
  padding: 0 var(--sp-lg);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
  color: var(--df-ink);
  font: inherit;
  font-family: var(--df-sans);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--dur-feedback) var(--ease-out), color var(--dur-feedback) var(--ease-out);
}
.ui-chip:hover { background: var(--edge-tone); }
.ui-chip:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 3px; box-shadow: none; }
.ui-chip[aria-pressed="true"], .ui-chip.is-selected { background: var(--selected-bg); border-color: var(--selected-bg); color: var(--on-selected); }
.ui-chip[disabled], .ui-chip[aria-disabled="true"] { border: 2px dashed var(--df-ink-soft); color: var(--df-ink-soft); background: var(--df-panel); cursor: not-allowed; }
.ui-chip[disabled]:hover, .ui-chip[aria-disabled="true"]:hover { background: var(--df-panel); }
.ui-chip[aria-pressed="true"]:hover, .ui-chip.is-selected:hover { background: var(--selected-bg); }

@media (prefers-reduced-motion: reduce) {
  .ui-btn, .ui-chip { transition: none; }
  .ui-btn[aria-busy="true"]::after { animation: none; opacity: 1; }
}
.ui-seg {
  display: flex;
  gap: var(--sp-xs);
  padding: var(--sp-xs);
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-pill);
  background: var(--df-panel);
}
.ui-seg-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  min-height: var(--tap-min);
  padding: 0 var(--sp-md);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--df-ink);
  font: inherit;
  font-family: var(--df-sans);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-feedback) var(--ease-out), color var(--dur-feedback) var(--ease-out);
}
.ui-seg-btn:hover { background: var(--edge-tone); }
.ui-seg-btn:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 3px; }
.ui-seg-btn[aria-checked="true"], .ui-seg-btn[aria-pressed="true"], .ui-seg-btn.is-selected { background: var(--selected-bg); color: var(--on-selected); }
.ui-seg-btn[aria-checked="true"]:hover, .ui-seg-btn[aria-pressed="true"]:hover, .ui-seg-btn.is-selected:hover { background: var(--selected-bg); }
.ui-seg[aria-disabled="true"] { border: 2px dashed var(--df-ink-soft); }
.ui-seg-btn[disabled], .ui-seg-btn[aria-disabled="true"] { color: var(--df-ink-soft); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ui-seg[aria-disabled="true"] .ui-seg-btn { text-decoration: none; }
.ui-seg[aria-disabled="true"] .ui-seg-btn[aria-checked="true"] { background: var(--edge-tone); }
.ui-seg-btn[disabled]:hover, .ui-seg-btn[aria-disabled="true"]:hover { background: transparent; }
.ui-seg-btn[disabled][aria-checked="true"], .ui-seg-btn[disabled][aria-checked="true"]:hover { background: var(--edge-tone); }
.ui-seg[aria-disabled="true"] .ui-seg-btn[aria-checked="true"]:hover { background: var(--edge-tone); }

.ui-field { display: flex; flex-direction: column; gap: var(--sp-xs); }
.ui-field-label { font-family: var(--df-sans); font-weight: 600; color: var(--df-ink); }
.ui-field-control {
  box-sizing: border-box;
  width: 100%;
  border: 2px solid var(--df-ink);
  border-radius: var(--radius-stub);
  background: var(--df-panel);
  color: var(--df-ink);
}
.ui-field-control:focus { outline: 3px solid var(--df-brand); outline-offset: 3px; border-color: var(--df-ink); box-shadow: none; }
.ui-field-control[aria-invalid="true"] { border-color: var(--error-solid); }
.ui-field-control[disabled] { border: 2px dashed var(--df-ink-soft); background: var(--edge-tone); color: var(--df-ink-soft); -webkit-text-fill-color: var(--df-ink-soft); opacity: 1; cursor: not-allowed; box-shadow: none; }
.ui-field-hint { margin: 0; color: var(--df-ink-soft); }
.ui-field-error { margin: 0; color: var(--error-text); font-weight: 600; }
.ui-value { display: flex; flex-direction: column; gap: var(--sp-xs); }
.ui-value-label { font-family: var(--df-sans); font-size: var(--fs-xs); font-weight: 400; line-height: 1.3; color: var(--df-ink-soft); }
.ui-value-text { font-family: var(--df-sans); font-weight: 600; color: var(--df-ink); overflow-wrap: anywhere; }
.ui-value-rows { margin: 0; padding: 0; border: 2px solid var(--df-ink); border-radius: var(--radius-stub); background: var(--df-panel); }
.ui-value-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-md); padding: var(--sp-md); }
.ui-value-row + .ui-value-row { border-top: var(--edge-hairline); }
.ui-value-row dt { margin: 0; font-family: var(--df-sans); color: var(--df-ink-soft); }
.ui-value-row dd { margin: 0; font-family: var(--df-sans); font-weight: 600; color: var(--df-ink); text-align: right; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .ui-seg-btn { transition: none; }
}
.ui-list {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  background: var(--df-panel);
  overflow: hidden;
}
.ui-list-item + .ui-list-item { border-top: var(--edge-hairline); }
.ui-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  min-height: var(--tap-min);
  padding: var(--sp-sm) var(--sp-lg);
  border: 0;
  background: transparent;
  color: var(--df-ink);
  font: inherit;
  font-family: var(--df-sans);
  text-align: left;
  text-decoration: none;
}
.ui-row-lead, .ui-row-trail { flex: none; display: inline-flex; align-items: center; gap: var(--sp-sm); }
.ui-row-trail { color: var(--df-ink-soft); }
.ui-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-xs); }
.ui-row-title { font-weight: 600; overflow-wrap: anywhere; }
.ui-row-meta { color: var(--df-ink-soft); overflow-wrap: anywhere; }
button.ui-row, a.ui-row {
  width: 100%;
  cursor: pointer;
  transition: background-color var(--dur-feedback) var(--ease-out), color var(--dur-feedback) var(--ease-out);
}
button.ui-row:hover, a.ui-row:hover { background: var(--edge-tone); }
.ui-row:focus-visible { outline: 3px solid var(--df-brand); outline-offset: -3px; }
.ui-row[aria-pressed="true"] { background: var(--selected-bg); color: var(--on-selected); }
.ui-row[aria-pressed="true"] .ui-row-meta, .ui-row[aria-pressed="true"] .ui-row-trail { color: inherit; }
.ui-row[aria-pressed="true"]:hover { background: var(--selected-bg); }
.ui-row[disabled], .ui-row[aria-disabled="true"] { color: var(--df-ink-soft); cursor: not-allowed; }
.ui-row[disabled] .ui-row-title, .ui-row[aria-disabled="true"] .ui-row-title { color: var(--df-ink-soft); }
.ui-row[disabled] .ui-row-lead, .ui-row[aria-disabled="true"] .ui-row-lead { border: 2px dashed var(--df-ink-soft); border-radius: var(--radius-stub); color: var(--df-ink-soft); background: transparent; }
.ui-row[disabled]:hover, .ui-row[aria-disabled="true"]:hover { background: transparent; }
.ui-row[data-cancelled-static] { cursor: default; }
.ui-row[data-cancelled-static] .ui-row-title { color: var(--df-ink); }
.ui-row[data-cancelled-static] .ui-row-lead { border: 0; border-radius: var(--radius-stub); color: var(--df-ink); background: var(--df-chip-fill); }
.ui-row-lead--error { min-width: var(--tap-min); min-height: var(--tap-min); justify-content: center; border: 2px solid var(--error-solid); border-radius: var(--radius-stub); color: var(--error-text); }
.ui-row-meta--error { color: var(--error-text); font-weight: 600; }
.ui-row-retry { display: inline-flex; align-items: center; gap: var(--sp-xs); min-height: var(--tap-min); min-width: var(--tap-min); padding: 0 var(--sp-sm); border: 0; background: transparent; color: var(--error-text); font: inherit; font-family: var(--df-sans); font-weight: 600; cursor: pointer; }
.ui-row-retry:hover { background: var(--edge-tone); }
.ui-row-retry:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 3px; }
.ui-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-sm); padding: var(--sp-lg); border: 2px dashed var(--df-ink-soft); border-radius: var(--radius-stub); text-align: left; }
.ui-empty-disc { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--edge-tone); color: var(--df-ink); font-size: var(--fs-lg); }
.ui-empty-title { margin: 0; font-family: var(--df-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--df-ink); }
.ui-empty-caption { margin: 0; color: var(--df-ink-soft); max-width: 32ch; }
.ui-empty-action { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-xs); }
.ui-empty-action .ui-btn { min-height: var(--tap-min); justify-content: center; white-space: nowrap; }
#panel-expenses:has(.ui-empty-action) .exp-tab-add,
#panel-bookings:has(.ui-empty-action) .bk-add-btn,
#panel-checklist:has(.ui-empty-action) .cl-add-pill,
#panel-itinerary:has(.ui-empty-action) .itin-add-pill { display: none; }
.ui-lock-note { display: flex; align-items: flex-start; gap: var(--sp-md); padding: var(--sp-md); border: 2px dashed var(--df-ink-soft); border-radius: var(--radius-stub); color: var(--df-ink); }
.ui-lock-note-icon { flex: none; font-size: var(--fs-lg); color: var(--df-ink); }
.ui-lock-note-text { flex: 1; min-width: 0; }
.ui-lock-note-title { margin: 0; font-family: var(--df-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--df-ink); }
.ui-lock-note-caption { margin: var(--sp-xs) 0 0; font-size: var(--fs-xs); color: var(--df-ink-soft); }
.trip-lock-host:empty { display: none; }
.trip-lock-host { margin: 0 0 var(--sp-md); }
.ui-notice { display: flex; align-items: flex-start; gap: var(--sp-md); padding: var(--sp-md); border: 2px solid var(--error-solid); border-radius: var(--radius-stub); background: var(--df-panel); }
.ui-notice-icon { flex: none; font-size: var(--fs-lg); color: var(--error-text); }
.ui-notice-text { flex: 1; min-width: 0; }
.ui-notice-title { margin: 0; font-family: var(--df-sans); font-weight: 600; color: var(--error-text); }
.ui-notice-caption { margin: var(--sp-xs) 0 0; color: var(--df-ink-soft); overflow-wrap: anywhere; }
.ui-notice-action { flex: none; align-self: center; }
.ui-sheet-notice { margin: var(--sp-md) 0; scroll-margin-block-end: 96px; }
.ui-notice--stacked { flex-wrap: wrap; }
.ui-notice--stacked .ui-notice-text { flex: 1 1 calc(100% - 40px); }
.ui-notice--stacked .ui-notice-action { flex: 1 1 100%; align-self: flex-start; padding-left: calc(var(--fs-lg) + var(--sp-md)); }
#panel-bookings.tab-load-failed :is(#bookings-summary, #bookings-decide, .pane-resizer, .bk-add-btn),
#panel-expenses.tab-load-failed > :not(.exp-tab-head, .tab-load-notice),
#panel-expenses.tab-load-failed .exp-tab-add { display: none; }
@media (min-width: 1280px) { #panel-expenses.tab-load-failed .tab-load-notice { grid-column: 1 / -1; grid-row: 2; } }
.ui-sheet-loading { display: flex; flex-direction: column; gap: var(--sp-md); }
.modal-content.ui-sheet {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  max-width: 520px;
  padding: var(--sp-lg) var(--sp-xl) var(--sp-xl);
  border: 2px solid var(--df-ink);
  border-radius: var(--df-radius-card);
  background: var(--df-panel);
  color: var(--df-ink);
  box-shadow: none;
}
.ui-sheet-head { display: flex; align-items: center; gap: var(--sp-md); }
.ui-sheet-titles { flex: 1; min-width: 0; }
.ui-sheet-eyebrow { margin: 0 0 var(--sp-xs); font-family: var(--df-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--df-ink-soft); }
.ui-sheet-title { flex: 1; margin: 0; font-family: var(--df-title); font-size: var(--fs-xl); font-weight: 700; line-height: 1.15; color: var(--df-ink); }
.ui-sheet-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--df-ink);
  font: inherit;
  cursor: pointer;
  transition: background-color var(--dur-feedback) var(--ease-out);
}
.ui-sheet-close:hover { background: var(--edge-tone); }
.ui-sheet-close:focus-visible { outline: 3px solid var(--df-brand); outline-offset: 3px; }
.ui-sheet-body { display: flex; flex-direction: column; gap: var(--sp-md); }
.ui-sheet-foot { display: flex; flex-direction: column; gap: var(--sp-sm); padding-top: var(--sp-lg); border-top: var(--edge-hairline); }
@media (max-width: 680px) {
  .modal-content.ui-sheet { max-width: 100%; border-radius: var(--df-radius-card) var(--df-radius-card) 0 0; }
  .modal-content.ui-sheet::before {
    content: "";
    align-self: center;
    width: var(--sp-3xl);
    height: var(--sp-xs);
    margin-bottom: calc(var(--sp-sm) * -1);
    border-radius: var(--radius-pill);
    background: var(--edge-tone);
  }
}
@media (prefers-reduced-motion: reduce) {
  button.ui-row, a.ui-row, .ui-sheet-close { transition: none; }
}
.struck-glyph { display: inline-flex; line-height: 1; }
.struck-glyph svg { display: block; width: 1em; height: 1em; }
.nlm-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; height: 56px; padding: 0 var(--space-xl); background: var(--topbar-bg); border-bottom: 2px solid var(--df-ink); }
.nlm-bar { gap: 10px; color: #FFE3C4; font-family: var(--df-display); font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.02em; }
.nlm-bar svg { flex: none; width: 26px; height: 26px; }
.nlm-col .stub-notice-body { color: var(--df-ink); }
.report-sheet { max-width: 440px; display: flex; flex-direction: column; gap: var(--space-lg); }
.report-sheet .modal-header { margin-bottom: 0; }
.report-sheet .form-group { margin: 0; }
.report-single-target { margin: 0; font-size: var(--fs-sm); color: var(--df-ink-soft); }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid #8A5610; border-radius: 12px; background: light-dark(#f8e2c2, rgba(186, 117, 23, 0.2)); font-size: var(--fs-sm); line-height: 1.4; }
.rs-banner i { margin-top: 1px; }
.rs-banner-err { border-color: var(--danger); background: var(--danger-light); color: var(--danger-text); }
.rs-actions { display: flex; flex-direction: column; gap: 4px; }
.rs-actions .btn-primary { width: 100%; }
@media (min-width: 681px) {
  .rs-actions { flex-direction: row-reverse; justify-content: flex-start; align-items: center; gap: var(--space-sm); }
  .rs-actions .btn-primary { width: auto; }
}
.report-sheet .modal-header { gap: 12px; }
.report-sheet .modal-header > i { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 2px solid var(--df-ink); border-radius: 50%; background: light-dark(#ffe3c4, #2a2118); color: var(--df-ink) !important; }
.report-sheet .modal-header h2 { font-family: var(--df-title); }
.report-sheet .form-label { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--df-ink); margin-bottom: 8px; }
.report-sheet textarea { background: var(--df-panel); border: 2px solid var(--df-ink); border-radius: 12px; }
.report-sheet .btn-primary { box-shadow: var(--df-press); min-height: 52px; border-radius: 999px; }
.rs-chips .ui-chip { box-shadow: 2px 2px 0 var(--df-ink); }
.rs-chips .ui-chip[aria-pressed="true"] { background: var(--df-ink); border-color: var(--df-ink); color: var(--df-panel); }
.crew-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-sm); min-width: 0; }
.crew-row-rest { display: none; }
.crew-row.is-open .crew-row-rest { display: contents; }
.crew-sticker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0 var(--sp-sm) 0 0;
  border: 2px solid var(--df-ink);
  border-radius: 999px;
  background: var(--df-panel);
  color: var(--df-ink);
  font-family: var(--df-sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 18px;
  white-space: nowrap;
}
.crew-sticker-disc { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 22px; margin: 2px; }
.crew-sticker-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--edge-tone); font-size: 12px; }
.crew-sticker.is-you { outline: 2px solid var(--df-ink); outline-offset: 2px; }
.crew-sticker-paid {
  position: absolute; top: calc(-1 * var(--sp-sm)); right: calc(-1 * var(--sp-xs));
  padding: 0 var(--sp-xs); border: 2px solid var(--df-coral); border-radius: 3px;
  color: var(--df-coral); background: var(--df-panel);
  font-size: var(--fs-xs); font-weight: 800; line-height: 14px; letter-spacing: 0.06em;
  transform: rotate(8deg);
}
.crew-sticker-tag {
  margin-left: 0; padding: 0 var(--sp-xs); border: 2px solid var(--df-ink); border-radius: 4px;
  background: var(--df-panel); font-size: 12px; line-height: 14px;
}
.crew-sticker-more { padding: 0 var(--sp-sm); cursor: pointer; }
.crew-sticker-more::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(44px, 100%); height: var(--tap-min); transform: translate(-50%, -50%); }
.vote-row-who { flex-wrap: wrap; }
.vote-row-notyet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.vote-row-nobody { font-size: var(--fs-sm); color: var(--df-ink-soft); }
.vote-row-notyet-label { font-size: var(--fs-xs); color: var(--df-ink-soft); }
@media (prefers-reduced-motion: reduce) { .crew-sticker { transition: none; } }
.crew-sticker-paid.is-striking { animation: crew-paid-strike var(--dur-strike) var(--ease-slam) both; }
@keyframes crew-paid-strike {
  from { transform: rotate(-4deg) scale(1.85); opacity: 0; }
  to   { transform: rotate(8deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .crew-sticker-paid.is-striking { animation: none; } }
.report-sheet { gap: 14px; }
.report-sheet .modal-header > i { width: 48px; height: 48px; }
.report-sheet .modal-header h2 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.15; }
.report-sheet .modal-close { width: 44px; height: 44px; box-shadow: 2px 2px 0 var(--df-ink); }
.report-sheet .modal-close:focus { outline: none; }
.report-sheet .btn-primary { min-height: 48px; box-shadow: 3px 3px 0 var(--df-ink); }
.report-sheet .btn-primary:disabled { opacity: 0.45; box-shadow: none; }
.rs-actions .stub-notice-quiet { min-height: 48px; }
.report-sheet .rs-banner-err { order: 99; }
@media (max-width: 680px) {
  .report-sheet { border: 2px solid var(--df-ink); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 10px 18px 28px; }
  .report-sheet::before { content: ""; display: block; flex: none; width: 42px; height: 5px; border-radius: 9px; background: light-dark(rgba(16, 26, 20, 0.22), rgba(255, 238, 218, 0.25)); margin: 0 auto 2px; }
}
@media (min-width: 681px) {
  .report-sheet { width: 440px; border: 2px solid var(--df-ink); border-radius: 18px; padding: 20px 22px 22px; }
  .rs-actions { flex-direction: row; justify-content: flex-end; }
  .rs-actions .btn-primary { order: 2; }
}

.report-sheet textarea { min-height: 84px; height: 84px; resize: none; }
.report-sheet textarea { font-size: 16px; line-height: 1.45; padding: 10px 12px; }
.report-sheet .btn-primary, .rs-actions .stub-notice-quiet { font-size: 16px; font-weight: 600; }
.report-sheet .form-group { display: flex; flex-direction: column; }
.report-sheet .rs-chips .ui-chip { font-size: 14px; font-weight: 600; }
.gsx-sheet .gsx-body { margin: 0; font-size: var(--fs-md); line-height: 1.45; color: var(--df-ink-soft); }
.gsx-sheet .gsx-body strong { color: var(--df-ink); }
.gsx-sheet.gsx-danger .modal-header > i { border-color: var(--danger); background: var(--danger-light); color: var(--danger-text) !important; }
.gsx-actions .btn-primary, .gsx-actions .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; font-size: 16px; font-weight: 600; box-shadow: 3px 3px 0 var(--df-ink); }
.gsx-actions .btn-secondary { background: var(--df-panel); color: var(--df-ink); border: 2px solid var(--df-ink); }
.gsx-actions .btn-secondary.gsx-danger-btn { background: var(--df-panel); color: var(--danger-text); border-color: var(--danger); box-shadow: 3px 3px 0 var(--danger); }
@media (min-width: 681px) {
  .gsx-actions { flex-direction: row-reverse; justify-content: flex-start; align-items: center; gap: 10px; }
  .gsx-actions .btn-primary, .gsx-actions .btn-secondary { width: auto; }
}
.gsx-actions .btn-primary, .gsx-actions .btn-secondary { white-space: nowrap; }
@media (min-width: 681px) {
  .gsx-actions .btn-primary, .gsx-actions .btn-secondary { padding: 0 14px; font-size: 14px; }
  .gsx-actions .stub-notice-quiet { font-size: 14px; }
}
@media (min-width: 681px) { .gsx-actions .btn-primary { order: 0; } }
@media (min-width: 681px) { .gsx-sheet .modal-header h2 { font-size: var(--fs-lg); } }
.crew-pile { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xs) var(--sp-sm); min-width: 0; margin-top: var(--sp-sm); }
.crew-pile .crew-sticker-more { padding: 0 var(--sp-sm); cursor: inherit; }
.crew-pile .crew-sticker-more::before { content: none; }
@keyframes chit-paid-strike {
  from { transform: rotate(-4deg) scale(1.85); opacity: 0; }
  to   { transform: rotate(-14deg) scale(1); opacity: 0.85; }
}
.saved-tick { display: inline-flex; align-items: center; gap: var(--sp-xs); margin-inline: var(--sp-sm); font-size: var(--fs-xs); font-weight: 600; color: var(--df-ink); white-space: nowrap; animation: saved-tick-in var(--dur-feedback) var(--ease-out) both; transition: opacity var(--dur-state) var(--ease-out); }
.saved-tick.is-leaving { opacity: 0; }
.saved-tick--error { white-space: normal; color: var(--error-text); }
@keyframes saved-tick-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .saved-tick { animation: none; transition: none; } }
.pw-checklist { list-style: none; margin: var(--sp-xs, 4px) 0 0; padding: 0; font-size: var(--fs-xs, 12px); color: var(--df-ink-soft); }
.pw-checklist li::before { content: "○"; display: inline-block; width: 1.25em; }
.pw-checklist li.pw-ok { color: var(--success-text, var(--df-ink)); }
.pw-checklist li.pw-ok::before { content: "✓"; }
:where(.app .btn-primary, .app .btn-secondary, .df-modal-content .btn-primary, .df-modal-content .btn-secondary, #confirm-itinerary-wrap .btn-primary, #panel-bookings .btn-secondary) {
  --press-bw: 0px;
  position: relative;
  isolation: isolate;
}
.app .btn-primary::before, .app .btn-secondary::before, .df-modal-content .btn-primary::before, .df-modal-content .btn-secondary::before, #confirm-itinerary-wrap .btn-primary::before, #panel-bookings .btn-secondary::before, .app .btn-primary::after, .app .btn-secondary::after, .df-modal-content .btn-primary::after, .df-modal-content .btn-secondary::after, #confirm-itinerary-wrap .btn-primary::after, #panel-bookings .btn-secondary::after {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--press-bw, 0px));
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.app .btn-primary::before, .app .btn-secondary::before, .df-modal-content .btn-primary::before, .df-modal-content .btn-secondary::before, #confirm-itinerary-wrap .btn-primary::before, #panel-bookings .btn-secondary::before {
  background: var(--df-ink);
  transform: translate(4px, 4px);
  transition: transform var(--dur-feedback) var(--df-ease);
}
.app .btn-primary::after, .app .btn-secondary::after, .df-modal-content .btn-primary::after, .df-modal-content .btn-secondary::after, #confirm-itinerary-wrap .btn-primary::after, #panel-bookings .btn-secondary::after {
  border: inherit;
  background: inherit;
  transition: background var(--dur-feedback) var(--df-ease);
}
.app .btn-primary:hover::before, .app .btn-secondary:hover::before, .df-modal-content .btn-primary:hover::before, .df-modal-content .btn-secondary:hover::before, #confirm-itinerary-wrap .btn-primary:hover::before, #panel-bookings .btn-secondary:hover::before { transform: translate(2px, 2px); }
.app .btn-primary:active::before, .app .btn-secondary:active::before, .df-modal-content .btn-primary:active::before, .df-modal-content .btn-secondary:active::before, #confirm-itinerary-wrap .btn-primary:active::before, #panel-bookings .btn-secondary:active::before { transform: translate(0, 0); }
.app .btn-primary:disabled::before, .app .btn-secondary:disabled::before, .df-modal-content .btn-primary:disabled::before, .df-modal-content .btn-secondary:disabled::before, #confirm-itinerary-wrap .btn-primary:disabled::before, #panel-bookings .btn-secondary:disabled::before { transform: translate(4px, 4px); }
:where(.scan-btn, .settle-action-btn, .stop-modal-delete-btn) {
  --press-bw: 0px;
  position: relative;
  isolation: isolate;
}
.scan-btn::before, .settle-action-btn::before, .stop-modal-delete-btn::before, .scan-btn::after, .settle-action-btn::after, .stop-modal-delete-btn::after {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--press-bw, 0px));
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.scan-btn::before, .settle-action-btn::before, .stop-modal-delete-btn::before {
  background: var(--df-ink);
  transform: translate(4px, 4px);
  transition: transform var(--dur-feedback) var(--df-ease);
}
.scan-btn::after, .settle-action-btn::after, .stop-modal-delete-btn::after {
  border: inherit;
  background: inherit;
  transition: background var(--dur-feedback) var(--df-ease), border-color var(--dur-feedback) var(--df-ease);
}
.scan-btn:hover::before, .settle-action-btn:hover::before, .stop-modal-delete-btn:hover::before { transform: translate(2px, 2px); }
.scan-btn:active::before, .settle-action-btn:active::before, .stop-modal-delete-btn:active::before { transform: translate(0, 0); }
:where(.itin-lock-unlock-btn, .day-box-autofill-btn) {
  --press-bw: 0px;
  position: relative;
  isolation: isolate;
}
.itin-lock-unlock-btn::before, .day-box-autofill-btn::before, .itin-lock-unlock-btn::after, .day-box-autofill-btn::after {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--press-bw, 0px));
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.itin-lock-unlock-btn::before, .day-box-autofill-btn::before {
  background: var(--press-c, var(--df-ink));
  transform: translate(var(--press-o), var(--press-o));
  transition: transform var(--dur-feedback) var(--ease-out);
}
.itin-lock-unlock-btn::after, .day-box-autofill-btn::after {
  border: inherit;
  background: inherit;
}
.itin-lock-unlock-btn:hover::before, .day-box-autofill-btn:hover::before { transform: translate(calc(var(--press-o) / 2), calc(var(--press-o) / 2)); }
.itin-lock-unlock-btn:active::before, .day-box-autofill-btn:active::before { transform: translate(0, 0); }

/* /css/struck-glyphs.css */
/* GENERATED FILE — do not hand-edit. Source: design/icons/*.svg. Run `npm run generate-icons` to regenerate (#6820). */
/* A glyph as a CSS mask, painted in currentColor: <i class="ti struck-food"> (#6822). */
.struck-activity,
.struck-attraction,
.struck-bookings,
.struck-budget,
.struck-checklist,
.struck-expenses,
.struck-food,
.struck-hotel,
.struck-itinerary,
.struck-other,
.struck-people,
.struck-recap,
.struck-settings,
.struck-shopping,
.struck-transport {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em;
  background-color: currentColor; font-size: inherit;
}
.struck-activity { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M1%2021.5%209.5%207l8.5%2014.5Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M13%2021.5%2018%2012.6l5%208.9Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M9.2%201.5h1.6V7H9.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M10.8%201.5h5l-1.6%201.7%201.6%201.7h-5Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M1%2021.5%209.5%207l8.5%2014.5Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M13%2021.5%2018%2012.6l5%208.9Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M9.2%201.5h1.6V7H9.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M10.8%201.5h5l-1.6%201.7%201.6%201.7h-5Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-attraction { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%208.4%2012%202.4l10%206Z%20M10.3%205.8h3.4v1.5h-3.4Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3.5%209.8h17v2H3.5Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M5%2012.6h2.6v6.6H5Z%20M10.7%2012.6h2.6v6.6h-2.6Z%20M16.4%2012.6H19v6.6h-2.6Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%2019.9h20v2.2H2Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%208.4%2012%202.4l10%206Z%20M10.3%205.8h3.4v1.5h-3.4Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3.5%209.8h17v2H3.5Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M5%2012.6h2.6v6.6H5Z%20M10.7%2012.6h2.6v6.6h-2.6Z%20M16.4%2012.6H19v6.6h-2.6Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%2019.9h20v2.2H2Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-bookings { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%205h20v4.4a2.6%202.6%200%200%200%200%205.2V19H2v-4.4a2.6%202.6%200%200%200%200-5.2Z%20M14.4%206.6h2.2v2.6h-2.2Z%20M14.4%2010.7h2.2v2.6h-2.2Z%20M14.4%2014.8h2.2v2.6h-2.2Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%205h20v4.4a2.6%202.6%200%200%200%200%205.2V19H2v-4.4a2.6%202.6%200%200%200%200-5.2Z%20M14.4%206.6h2.2v2.6h-2.2Z%20M14.4%2010.7h2.2v2.6h-2.2Z%20M14.4%2014.8h2.2v2.6h-2.2Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-budget { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%206.5h19v14.5H2Z%20M14.5%2011h7v5.4h-7Z%20M16.2%2012.6h2.2v2.2h-2.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M4.5%202.6h11.6l1.8%203.2H4.5Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%206.5h19v14.5H2Z%20M14.5%2011h7v5.4h-7Z%20M16.2%2012.6h2.2v2.2h-2.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M4.5%202.6h11.6l1.8%203.2H4.5Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-checklist { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%203h6.6v6.6H2Z%20M3.3%206.5l1.2-1.2%201%201%202-2%201.2%201.2-3.2%203.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%209.9h6.6v6.6H2Z%20M3.3%2013.4l1.2-1.2%201%201%202-2%201.2%201.2-3.2%203.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%2016.8h6.6v6.6H2Z%20M4%2018.8h2.6v2.6H4Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M11%204.8h11v3H11Z%20M11%2011.7h11v3H11Z%20M11%2018.6h11v3H11Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%203h6.6v6.6H2Z%20M3.3%206.5l1.2-1.2%201%201%202-2%201.2%201.2-3.2%203.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%209.9h6.6v6.6H2Z%20M3.3%2013.4l1.2-1.2%201%201%202-2%201.2%201.2-3.2%203.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%2016.8h6.6v6.6H2Z%20M4%2018.8h2.6v2.6H4Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M11%204.8h11v3H11Z%20M11%2011.7h11v3H11Z%20M11%2018.6h11v3H11Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-expenses { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M4.5%202h15v20l-2.5-1.6-2.5%201.6-2.5-1.6-2.5%201.6-2.5-1.6-2.5%201.6Z%20M7.5%206h9v2.4h-9Z%20M7.5%2010.2h9v2.4h-9Z%20M7.5%2014.4h5v2.4h-5Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M4.5%202h15v20l-2.5-1.6-2.5%201.6-2.5-1.6-2.5%201.6-2.5-1.6-2.5%201.6Z%20M7.5%206h9v2.4h-9Z%20M7.5%2010.2h9v2.4h-9Z%20M7.5%2014.4h5v2.4h-5Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-food { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3.6%202h2v5.4h1.3V2h2v5.4h1.3V2h2v7.8a3.6%203.6%200%200%201-2.6%203.5V22H6.2v-8.7a3.6%203.6%200%200%201-2.6-3.5Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M14.6%202c3.4%201.2%205.6%204.8%205.6%209.6v2.6h-2.4V22h-3.2Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3.6%202h2v5.4h1.3V2h2v5.4h1.3V2h2v7.8a3.6%203.6%200%200%201-2.6%203.5V22H6.2v-8.7a3.6%203.6%200%200%201-2.6-3.5Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M14.6%202c3.4%201.2%205.6%204.8%205.6%209.6v2.6h-2.4V22h-3.2Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-hotel { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%204h3v17H2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M5%2013h17v4.4H5Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M19.2%2017.4H22V21h-2.8Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M6.3%209.2h4.8a1%201%200%200%201%201%201v2H6.3Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M13.2%209.2h6.6a2.2%202.2%200%200%201%202.2%202.2V12h-8.8Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%204h3v17H2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M5%2013h17v4.4H5Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M19.2%2017.4H22V21h-2.8Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M6.3%209.2h4.8a1%201%200%200%201%201%201v2H6.3Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M13.2%209.2h6.6a2.2%202.2%200%200%201%202.2%202.2V12h-8.8Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-itinerary { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3%205h18v16H3Z%20M5.6%2010.2h12.8v8.2H5.6Z%20M8%2012.4h4.2v4H8Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M6.6%202h2.8v4.6H6.6Z%20M14.6%202h2.8v4.6h-2.8Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3%205h18v16H3Z%20M5.6%2010.2h12.8v8.2H5.6Z%20M8%2012.4h4.2v4H8Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M6.6%202h2.8v4.6H6.6Z%20M14.6%202h2.8v4.6h-2.8Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-other { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%204h20v4.2H2Z%20M10.4%204h3.2v4.2h-3.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3.4%209.4h17.2V21H3.4Z%20M10.4%209.4h3.2v3.6h-3.2Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M2%204h20v4.2H2Z%20M10.4%204h3.2v4.2h-3.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3.4%209.4h17.2V21H3.4Z%20M10.4%209.4h3.2v3.6h-3.2Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-people { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M4.499999999999999%207.6a3.7%203.7%200%201%200%207.4%200a3.7%203.7%200%201%200%20-7.4%200Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M1.5%2021.5v-2.2c0-3.6%203-6%206.7-6s6.7%202.4%206.7%206v2.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M16.5%208.4a3%203%200%201%200%206%200a3%203%200%201%200%20-6%200Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M17%2021.5v-6.4c0-1.4%201.1-2.5%202.5-2.5h.2c1.7%200%202.8%201.1%202.8%202.8v6.1Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M4.499999999999999%207.6a3.7%203.7%200%201%200%207.4%200a3.7%203.7%200%201%200%20-7.4%200Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M1.5%2021.5v-2.2c0-3.6%203-6%206.7-6s6.7%202.4%206.7%206v2.2Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M16.5%208.4a3%203%200%201%200%206%200a3%203%200%201%200%20-6%200Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M17%2021.5v-6.4c0-1.4%201.1-2.5%202.5-2.5h.2c1.7%200%202.8%201.1%202.8%202.8v6.1Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-recap { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3%202h2.8v20H3Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M5.8%203h15l-2.8%204.8%202.8%204.8h-15Z%20M8.6%207.6l1.3-1.3%201.6%201.6%203.1-3.1%201.3%201.3-4.4%204.4Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3%202h2.8v20H3Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M5.8%203h15l-2.8%204.8%202.8%204.8h-15Z%20M8.6%207.6l1.3-1.3%201.6%201.6%203.1-3.1%201.3%201.3-4.4%204.4Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-settings { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M9.63%204.05L9.92%201.20L14.08%201.20L14.37%204.05L15.95%204.70L18.17%202.89L21.11%205.83L19.30%208.05L19.95%209.63L22.80%209.92L22.80%2014.08L19.95%2014.37L19.30%2015.95L21.11%2018.17L18.17%2021.11L15.95%2019.30L14.37%2019.95L14.08%2022.80L9.92%2022.80L9.63%2019.95L8.05%2019.30L5.83%2021.11L2.89%2018.17L4.70%2015.95L4.05%2014.37L1.20%2014.08L1.20%209.92L4.05%209.63L4.70%208.05L2.89%205.83L5.83%202.89L8.05%204.70ZM8.6%2012a3.4%203.4%200%201%200%206.8%200a3.4%203.4%200%201%200-6.8%200Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M9.63%204.05L9.92%201.20L14.08%201.20L14.37%204.05L15.95%204.70L18.17%202.89L21.11%205.83L19.30%208.05L19.95%209.63L22.80%209.92L22.80%2014.08L19.95%2014.37L19.30%2015.95L21.11%2018.17L18.17%2021.11L15.95%2019.30L14.37%2019.95L14.08%2022.80L9.92%2022.80L9.63%2019.95L8.05%2019.30L5.83%2021.11L2.89%2018.17L4.70%2015.95L4.05%2014.37L1.20%2014.08L1.20%209.92L4.05%209.63L4.70%208.05L2.89%205.83L5.83%202.89L8.05%204.70ZM8.6%2012a3.4%203.4%200%201%200%206.8%200a3.4%203.4%200%201%200-6.8%200Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-shopping { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3.4%208h17.2l-1.3%2014H4.7Z%20M7%2011h2.4v2.6H7Z%20M14.6%2011H17v2.6h-2.4Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M7%208V6.6a5%205%200%200%201%2010%200V8h-2.6V6.6a2.4%202.4%200%200%200-4.8%200V8Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M3.4%208h17.2l-1.3%2014H4.7Z%20M7%2011h2.4v2.6H7Z%20M14.6%2011H17v2.6h-2.4Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M7%208V6.6a5%205%200%200%201%2010%200V8h-2.6V6.6a2.4%202.4%200%200%200-4.8%200V8Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.struck-transport { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M4%202.6h16v15.6H4Z%20M6.4%205h11.2v5.8H6.4Z%20M6.6%2013.4h2.6v2.2H6.6Z%20M14.8%2013.4h2.6v2.2h-2.6Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M5.4%2018.2h3.6v3.4H5.4Z%20M15%2018.2h3.6v3.4H15Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M4%202.6h16v15.6H4Z%20M6.4%205h11.2v5.8H6.4Z%20M6.6%2013.4h2.6v2.2H6.6Z%20M14.8%2013.4h2.6v2.2h-2.6Z%27%2F%3E%3Cpath%20fill-rule%3D%27evenodd%27%20d%3D%27M5.4%2018.2h3.6v3.4H5.4Z%20M15%2018.2h3.6v3.4H15Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }

/* /css/skeleton.css */
/* =========================================================
   SKELETON LOADING PRIMITIVES (issue #157)
   =========================================================
   A small reusable set of loading placeholders used across js/* render
   functions while network data is in flight. Composed from three shapes
   (.skeleton-rect / .skeleton-circle / .skeleton-line) built on one base
   (.skeleton) that owns the shimmer animation, so every placeholder in the
   app animates identically and can be re-themed from one place.

   Usage: pair with the JS helpers in js/skeleton.js (skeletonLine/
   skeletonRect/skeletonCircle build the markup; beginSkeletonLoading/
   endSkeletonLoading manage role="status"/aria-busy on the container).
   Don't hand-roll a new shimmer animation elsewhere — extend this file. */

/* Issue #1000 — this was the original home of the [data-theme] selector
   pattern (#157), added ahead of anything actually setting the attribute.
   Folded into light-dark() now, same as the rest of the app; --surface-1
   isn't reused for the dark value because the skeleton wants to stay a
   touch lighter than the page surface for visibility. */
:root {
  --skeleton-base: light-dark(var(--surface-1), #2a2a2a);
  --skeleton-shine: light-dark(rgba(255,255,255,0.6), rgba(255,255,255,0.06));
  --skeleton-duration: 1.4s;
}

.skeleton {
  position: relative;
  display: block;
  background: var(--skeleton-base);
  overflow: hidden;
}

/* transform-only animation (no layout/paint of geometry) to keep this cheap
   on low-power devices — see prefers-reduced-motion override below. */
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
  animation: skeleton-shimmer var(--skeleton-duration) ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-rect { border-radius: var(--radius-sm); }
.skeleton-circle { border-radius: 50%; }
.skeleton-line { height: 10px; border-radius: var(--radius-xs); }

.skeleton-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.skeleton-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
}

/* /css/landing.css */
/* =========================================================
   LANDING PAGE (issue #184)
   =========================================================
   The pre-auth marketing view. Its job is not to explain Lancong — it is to
   make you want to go somewhere, then hand you the button.

   The design brief: departure fever. The page is built out of the physical
   debris of actually going — rubber passport stamps, taped-down instant
   prints, boarding-pass stubs, a dashed route line — printed the way a cheap
   travel zine is printed, in flat riso inks that sit slightly out of
   register. Nothing here is centred and reverent; things are taped down at an
   angle because that is how a suitcase looks after a trip.

   THE SIGNATURE is .lp-stampword: the hero headline reads "Let's go to —"
   and the destination lands under it as a rubber stamp, rotated and
   over-printed, cycling through places. It is the product's actual question
   ("where?") made kinetic, and it is the ONE loud thing. Everything around it
   is deliberately disciplined — quiet body copy, one type scale, no second
   marquee competing for the same job.

   The page's own component rules stay scoped under #landing-page so they
   can't leak into the auth gate (#auth-panel) that shares #auth-screen with
   it — the two are converted, not merged, per DESIGN.md's "convert a screen
   whole" migration note. What IS shared, deliberately, is the --lp-* token
   block on bare .landing-screen below: both surfaces read the identical
   ground/stock/ink/type values, which is what lets a visitor cross from one
   to the other (landingStart('register') et al.) without the colours
   disagreeing. Every ink a CONTROL is painted in is in turn an alias of
   css/style.css's own --vn-* and --surface-* tokens, not a colour re-picked
   here — the poster owns ground/stock/type/geometry, the product owns the
   brand. See the Brand section of the token block below before changing any
   of it, and see the "Auth gate" section further down for #auth-panel's own
   component set.

   ⚠️ Never write a token pair as `--vn-*` immediately followed by a slash
   inside a comment. That spells a comment terminator, and it silently ends
   the comment early: the parser then discards everything up to and including
   the next {…} block. That exact typo shipped with the first version of this
   file and cost the page its `padding: 0` for months — every "full-bleed"
   band was quietly inset 16px, and the sticky nav floated 32px down from the
   top of the viewport. Nothing warns you; the rest of the file parses fine.

   Mobile-first; the wide layout starts at the app's own 1024px breakpoint.
*/

/* ---------- Tokens ---------- */
/* Declared on bare .landing-screen (#auth-screen's only class, see
   css/style.css) so both states it can be in — the marketing page
   (.lp-mode) and the auth gate beneath it — read the identical values. The
   auth gate used to be exempt from this block entirely, sitting on the
   retired Field Journal look (system font stack, 10px radii, a blurred
   focus glow) while the page one tap away from it was fully converted.
   DESIGN.md is explicit that this system is normative everywhere with no
   exceptions and names the auth gate as the outstanding surface — see the
   "Auth gate" component section below for that conversion. Only the ground
   painting and these tokens are shared; #auth-panel keeps its own component
   rules separate from #landing-page's, per the migration note's "convert a
   screen whole" rule — the two are converted, not merged. */
.landing-screen {
  /* Noon / Night market. A saturated apricot by day, not a neutral paper
     stock — the ground itself should read as sunlight, which is the whole
     argument against the cream this page used to sit on. */
  --lp-ground: var(--df-ground);
  --lp-panel: var(--df-panel);      /* the stock a card or a stub is cut from */
  --lp-ink: var(--df-ink);        /* green-black by day / Lamplight by night */
  --lp-ink-soft: var(--df-ink-soft);   /* 5.9:1 on --lp-ground in light mode */

  /* Instant-film stock, and the only pair that does NOT invert with the
     theme. A photo print is white at midnight too — keeping it light is what
     makes the prints the brightest thing on the night version of the page,
     which is right for photographs of somewhere sunny. Anything set on the
     stock therefore has to stay dark in both themes. */
  --lp-stock: var(--df-instant-stock);
  --lp-stock-ink: var(--df-instant-stock-ink);

  /* ---------- Brand ---------- */
  /* Every ink below is the app's OWN --vn-* token, aliased rather than
     re-picked, so this page cannot drift off-brand and follows the palette if
     it ever moves. The page still owns its ground, stock, type and geometry —
     that is what keeps it a poster rather than app chrome — but the colour a
     control is painted in belongs to the product, not to the poster.
     ⚠️ --vn-trail-green is a DEEP GREEN in light mode and a BRIGHT MINT in dark
     (issue #432). Anything filled with --lp-brand must therefore take
     --lp-brand-fg as its foreground, never a literal white — that is the
     exact bug #432 fixed across 13 rules in the app. */
  --lp-brand: var(--vn-trail-green);
  --lp-brand-fg: var(--surface-2);

  /* The pinned brand green, mirroring --topbar-bg. The app's top bar is the
     literal #10702A in both themes because a full-bleed field of the
     dark-mode mint would be unreadable; the footer poster is this page's
     equivalent field, so it follows the same rule and pins its foreground
     with it. Also the one green safe to set on --lp-stock, which never
     darkens. */
  --lp-brand-field: var(--topbar-bg);
  --lp-brand-field-fg: var(--topbar-fg);

  /* The two supporting brand inks. Coral is the stamp: a rubber stamp is a
     red-orange before it is anything else, and coral is the palette's own
     terracotta rather than a hue invented for this page. Amber is the route
     and the tape. Green is reserved for things you can press. */
  --lp-coral: var(--vn-coral);
  --lp-amber: var(--vn-amber);
  /* ⚠️ --lp-amber is 1.9:1 on --lp-ground: a fill and a mark, never text.
     Copy set ON an amber fill takes --lp-amber-fg, pinned dark because the
     token lightens in dark mode (4.8:1 light, 8.4:1 dark). */
  --lp-amber-fg: var(--df-amber-fg);

  /* The out-of-register second pass — the green landing a hair off the coral,
     which is what a two-ink riso job actually does. */
  --lp-ghost: var(--df-ghost);
  --lp-hair: var(--df-hair);
  --lp-tape: var(--df-tape);

  /* An inverted band: one hard cut in the middle of the page so the scroll
     has a floor to it. Flips with the theme rather than being pinned dark.
     A deep step of the brand green rather than a neutral black — the page
     then has three green fields (nav mark, this band, the footer poster) with
     the apricot ground and the coral stamp between them, instead of one black
     slab reading as a different design. */
  --lp-invert-bg: var(--df-invert-bg);
  --lp-invert-fg: var(--df-invert-fg);
  --lp-invert-soft: var(--df-invert-soft);

  --lp-focus: var(--lp-brand);

  /* The text-safe danger ink for the poster's forms: the same values as the
     app's --error-text (#6634 crimson; it was an alert red, #c62828/#ff6b6b,
     too close to Stamp Coral). 7.3:1 on --lp-panel by day, ~7:1 after dark;
     keylines stay on --error, which clears the 3:1 a UI component needs. */
  --lp-error-ink: var(--error-text);

  --lp-max: 1120px;
  --lp-gutter: clamp(20px, 5vw, 56px);

  /* Bricolage carries the shout: a grotesque with genuinely odd joints, so a
     headline set in it reads as drawn rather than as a system font at 800.
     Bricolage is the one sans face underneath it too. */
  --lp-display: var(--df-display);
  --lp-sans: var(--df-sans);

  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* The landing page's own motion lengths and stagger unit (#6986); the app tiers are too short for a page that reveals on scroll. */
  --lp-dur-slow: 900ms;
  --lp-dur-long: 700ms;
  --lp-dur-hero: 620ms;
  --lp-stagger: 70ms;
  /* Overshoot-then-settle lives in css/style.css as --ease-slam. */

  /* Ground: print (.df-ground-print group in css/style.css) — the shared
     tokens, not a hand-written copy. Landing/sign-in/contact washes are
     therefore the standard strength (#5978); --lp-ground is the same colour.
     Dark-mode note kept from #1000: every token here carries both themes via
     light-dark(); --lp-brand-field/-fg, --lp-amber-fg, --lp-stock and
     --lp-stock-ink are pinned by design and stay plain values. */
  color: var(--lp-ink);
}

/* .landing-screen centers one narrow column in its auth-gate state; in
   landing mode #auth-screen is instead a normal, full-width scrolling
   document. Only these two blocks differ between the states — everything
   else (tokens, ground) is shared above. */
.landing-screen.lp-mode {
  display: block;
  padding: 0;
  min-height: 100vh;
}
.landing-screen:not(.lp-mode) {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: clamp(32px, 7vw, 64px) var(--lp-gutter) clamp(48px, 8vw, 88px);
}

#landing-page,
#contact-page {
  font-family: var(--lp-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lp-ink);
  overflow-x: clip;
}

#landing-page :focus-visible,
#contact-page :focus-visible,
#auth-panel :focus-visible {
  outline: 3px solid var(--lp-focus);
  outline-offset: 3px;
  border-radius: 2px;
}
/* The band's ground flips with the theme, and no single accent clears both
   sides of that flip — so the ring takes the band's own foreground, which is
   guaranteed to contrast with whatever the band is currently painted in. */
.lp-invert :focus-visible { --lp-focus: var(--lp-invert-fg); }

/* =========================================================
   AUTH GATE (#auth-panel)
   =========================================================
   The account gate a visitor lands on one tap after the landing page's own
   CTAs — "Start a trip" here is landingStart('register'), which routes
   straight past the button group below into #auth-register-form. DESIGN.md
   is explicit that Departure Fever is normative everywhere with no
   exceptions and names this surface as the one still on the retired Field
   Journal look (system font stack, 10px radii, a blurred focus glow, near-
   white cards). Converted whole, per the migration note: shape, type and
   shadow change together, and the --lp-* tokens above already make this
   colour-compatible with the poster one tap away.

   Structure: one persistent .ap-card shell around every child #auth-*-form
   / #auth-main-buttons / #auth-retry-btn — js/auth.js only ever toggles
   which child's display is 'block'/'none' (_hideAllAuthForms and friends),
   so the card itself must never remount between Log In / Register / Guest,
   or that toggle has nothing stable to sit inside. */

#auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* The Route Mark horizontal lockup (assets/brand/), full-colour on the light
   apricot ground and all-apricot on the dark one (Coral Dot Rule: no coral dot
   on green or dark). Height is --logo-hero (#3717) and the width follows the
   artwork's ratio; the h1 is the lockup, each <img> carries the name "Lancong"
   (the hidden one is display:none, so only one is ever announced). The
   light/dark swap is .rm-light/.rm-dark in landing.css. */
.ap-lockup {
  margin: 0;
  display: flex;
  justify-content: center;
}

.ap-lockup-img {
  height: var(--logo-hero);
  width: auto;
}

#auth-panel .landing-subtitle {
  margin: 10px 0 28px;
  max-width: 34ch;
  font-family: var(--df-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  color: var(--lp-ink-soft);
}

/* DESIGN.md's Card component. One instance, persistent — see the structure
   note above. */
.ap-card {
  width: 100%;
  padding: 26px 22px 28px;
  background: var(--lp-panel);
  border: 2px solid var(--lp-ink);
  border-radius: 14px;
}

#auth-panel h3 {
  margin: 0 0 20px;
  font-family: var(--lp-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--lp-ink);
}

/* ---------- Buttons ---------- */
/* .btn-large/.btn-create/.btn-join/.btn-primary/.btn-secondary are shared,
   app-wide classes (modals, My Trips action cards, every form's submit/
   cancel pair) — everything here is scoped to #auth-panel specifically so
   this conversion cannot leak into any other screen that also uses them. */

#auth-panel .btn-large,
#auth-panel .btn-primary,
#auth-panel .btn-secondary {
  min-height: var(--tap-min);
  padding: 0 22px;
  border: 2px solid var(--lp-ink);
  border-radius: 999px;
  font-family: var(--lp-sans);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 4px 4px 0 var(--lp-ink);
  transition:
    transform var(--dur-feedback) var(--lp-ease),
    box-shadow var(--dur-feedback) var(--lp-ease);
}
#auth-panel .btn-large:hover,
#auth-panel .btn-primary:hover,
#auth-panel .btn-secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--lp-ink);
}
#auth-panel .btn-large:active,
#auth-panel .btn-primary:active,
#auth-panel .btn-secondary:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--lp-ink);
}
#auth-panel .btn-primary:disabled,
#auth-panel .btn-secondary:disabled,
#auth-panel .btn-large:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
  box-shadow: 4px 4px 0 var(--lp-ink);
}

/* Primary: Trail Green, --lp-brand-fg on top rather than a literal white —
   The Mint Flip Rule (issue #432). */
#auth-panel .btn-primary,
#auth-panel .btn-create {
  background: var(--lp-brand);
  color: var(--lp-brand-fg);
}
#auth-panel .btn-primary:hover,
#auth-panel .btn-create:hover { background: var(--lp-brand); }

/* Secondary: Cut Stock, ink text — same keyline and offset as primary. */
#auth-panel .btn-secondary,
#auth-panel .btn-join {
  background: var(--lp-panel);
  color: var(--lp-ink);
}

/* Sign in with Google (#2182) — Google's branding guidelines: neutral fill,
   1px stroke, unaltered four-colour G. Colours are Google's own, so they are
   fixed values (light-dark() only picks between Google's two themes). The
   panel's offset shadow and pill shape are kept; the guidelines allow a
   custom shape. */
#auth-panel .btn-google {
  gap: 10px;
  background: light-dark(#ffffff, #131314);
  color: light-dark(#1f1f1f, #e3e3e3);
  border: 1px solid light-dark(#747775, #8e918f);
}
#auth-panel .btn-google .google-g { flex: 0 0 18px; }
#auth-panel .btn-google:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 3px;
}

/* Continue as Guest — the one button that isn't fully committing yet, which
   is also the only place on this screen a dashed edge is honest: it reads
   as provisional the way a taped, not-yet-stamped ticket does (The
   Crooked-On-Purpose Rule's spirit, applied to a border instead of a tilt). */
#auth-panel .ap-btn-ghost {
  background: transparent;
  border: 2px dashed var(--lp-ink-soft);
  color: var(--lp-ink-soft);
  box-shadow: none;
}
#auth-panel .ap-btn-ghost:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--lp-ink);
  color: var(--lp-ink);
}
#auth-panel .ap-btn-ghost:active { transform: none; }

.auth-back-link {
  margin-top: 18px;
  background: none;
  border: none;
  color: var(--lp-ink-soft);
  font-family: var(--lp-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: var(--tap-min);
  padding: 0 var(--space-sm);
}
.auth-back-link:hover { color: var(--lp-brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Fields ---------- */
/* DESIGN.md Inputs spec: Cut Stock fill, 2px keyline, 12px radius (cut, not
   pressed — no pill), 44px floor, no glow anywhere. font-size is
   deliberately left to the shared app-wide input rule (css/style.css) —
   14px desktop / 16px below 680px — rather than pinned here, so the auth
   gate keeps the same iOS-zoom fix as every other form in the app. */
#auth-panel .form-group { margin-bottom: 20px; }

#auth-panel .form-label {
  font-family: var(--lp-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-ink-soft);
  margin-bottom: var(--space-md);
}

#auth-panel input[type="text"],
#auth-panel input[type="email"],
#auth-panel input[type="password"],
#auth-panel select {
  height: 44px;
  border: 2px solid var(--lp-ink);
  border-radius: 12px;
  background: var(--lp-panel);
  color: var(--lp-ink);
}
#auth-panel input::placeholder { color: var(--lp-ink-soft); opacity: 1; }

/* No glow anywhere in this system (The Hard Shadow Rule's sibling for
   fields) — a 3px solid ring at a 3px offset instead of the app-wide
   shared rule's box-shadow blur. */
#auth-panel input:focus,
#auth-panel select:focus {
  outline: 3px solid var(--lp-brand);
  outline-offset: 3px;
  border-color: var(--lp-brand);
  box-shadow: none;
}

/* A field currently failing validation — Alert Red keyline, never Stamp
   Coral, which is branded and must not read as danger (DESIGN.md's Inputs
   error spec). */
#auth-panel input[aria-invalid="true"] {
  border-color: var(--error);
}
#auth-panel input[aria-invalid="true"]:focus {
  outline-color: var(--error);
  border-color: var(--error);
}

.ap-field-hint {
  margin: var(--space-sm) 0 0;
  font-family: var(--df-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--lp-ink-soft);
}

.ap-field-error {
  display: none;
  margin: var(--space-sm) 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--lp-error-ink);
}
.ap-field-error.is-visible { display: block; }

/* Invite deferred-claim banner (issue #674 PR3) — a sibling of every
   #auth-*-form inside the one persistent .ap-card (see the structure note
   at the top of this section), so it sits above whichever form
   showLoginForm()/showRegisterForm() (js/auth.js) reveals rather than
   living inside either one. */
.auth-invite-banner {
  margin: 0 0 20px;
  padding: var(--space-md) var(--space-lg);
  background: color-mix(in srgb, var(--lp-brand) 12%, var(--lp-panel));
  border: 2px solid var(--lp-ink);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: var(--lp-ink);
}

/* "Where are you from?" searchable country combobox — a real listbox, not
   a native <select> (see the markup comment in index.html for why). */
.reg-country-group { position: relative; }
.reg-country-listbox {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 20;
  margin: var(--space-sm) 0 0;
  padding: var(--space-sm) 0;
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  background: var(--lp-panel);
  border: 2px solid var(--lp-ink);
  border-radius: 12px;
}
.reg-country-option {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: var(--space-sm) var(--space-lg);
  color: var(--lp-ink);
  cursor: pointer;
}
.reg-country-option.active,
.reg-country-option:hover { background: var(--lp-brand); color: var(--lp-panel); }
.reg-country-empty {
  padding: var(--space-sm) var(--space-lg);
  color: var(--lp-ink-soft);
}

/* ---------- Desktop ---------- */
/* A real wide-viewport treatment — the card was previously the identical
   320px column at every width. Widens the card and its type rather than
   introducing a second layout; a four-field form doesn't earn a multi-
   column composition. */
@media (min-width: 1024px) {
  #auth-panel { max-width: 440px; }

  #auth-panel .landing-subtitle { margin-bottom: 34px; }

  .ap-card { padding: 34px 32px 36px; }

  #auth-panel h3 { font-size: 1.25rem; margin-bottom: 24px; }
}

/* ---------- Shared primitives ---------- */

/* The stencil voice: eyebrows, stub metadata, footer meta. Tracked out and
   uppercase, the way anything printed onto a ticket is. */
.lp-footer-links,
.ct-label {
  font-family: var(--lp-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Buttons are stickers: a flat block of ink with a hard offset shadow, which
   presses into the page when you push it. No gradients, no blur — the whole
   page is printed in flat inks. */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 0 22px;
  border: 2px solid var(--lp-ink);
  border-radius: 999px;
  background: var(--lp-panel);
  color: var(--lp-ink);
  font-family: var(--lp-sans);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--lp-ink);
  transition:
    transform var(--dur-feedback) var(--lp-ease),
    box-shadow var(--dur-feedback) var(--lp-ease),
    background var(--dur-feedback) var(--lp-ease),
    color var(--dur-feedback) var(--lp-ease);
}
.lp-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--lp-ink); }
.lp-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--lp-ink); }

.lp-btn-lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1.0625rem;
  box-shadow: 5px 5px 0 var(--lp-ink);
}
.lp-btn-lg:hover { box-shadow: 3px 3px 0 var(--lp-ink); }
.lp-btn-lg:active { box-shadow: 0 0 0 var(--lp-ink); }

/* The brand green, and --lp-brand-fg on top of it rather than a literal
   white — see the #432 warning in the token block. */
.lp-btn-primary { background: var(--lp-brand); color: var(--lp-brand-fg); }
.lp-btn-secondary { background: var(--lp-panel); color: var(--lp-ink); }

/* Inside the inverted band the ink that draws the border and the shadow is
   the band's foreground, not the page's. */
.lp-invert .lp-btn {
  border-color: var(--lp-invert-fg);
  box-shadow: 4px 4px 0 var(--lp-invert-fg);
}
.lp-invert .lp-btn:hover { box-shadow: 2px 2px 0 var(--lp-invert-fg); }
.lp-invert .lp-btn:active { box-shadow: 0 0 0 var(--lp-invert-fg); }

.lp-btn-quiet {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-weight: 700;
}
.lp-btn-quiet:hover { background: transparent; box-shadow: none; transform: none; color: var(--lp-brand); }
.lp-btn-quiet:active { transform: none; box-shadow: none; }

.lp-textlink {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--lp-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--lp-brand);
  text-underline-offset: 5px;
  cursor: pointer;
}
.lp-textlink:hover { color: var(--lp-brand); }

/* ---------- Nav ---------- */

/* The bar is the app's own top bar, not a tint of the poster behind it: the
   same pinned --topbar-bg green, carrying pale pills the way that bar carries
   its logo and profile pills. A visitor therefore meets the product's chrome
   before they have logged into it, and the landing → app transition has no
   seam at the top of the window.

   Opaque, and with no backdrop-filter. The old bar was a 90% tint of
   --lp-ground over a ground that carries a halftone screen and two radial
   washes, so at the top of the page it read as a ghost band: the dots blurred
   inside it and crisp immediately below, with the washes discontinuous at its
   edges. A solid field cannot do that, and it is also the only way the bar is
   unmistakable against BOTH the apricot ground and the cream panel band it
   sticks over. No keyline either — chrome does not need the poster's 2px ink
   vocabulary to separate from anything, and the app's own bar has none. */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--lp-brand-field);
  color: var(--lp-brand-field-fg);
}

/* White on green: --lp-brand is a deep green in light mode and would vanish
   into the bar. Same reasoning as the footer poster. */
.lp-nav :focus-visible { --lp-focus: var(--lp-brand-field-fg); }

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 10px var(--lp-gutter);
}

.lp-nav-brand {
  display: flex;
  align-items: center;
}

/* The Route Mark: the all-apricot horizontal lockup, the only treatment that
   goes on green (brand/logo/README.md — the coral dot never sits on green).
   --logo-nav tall (44px, ~122px wide, over the lockup's 120px minimum; #3717),
   the same height as the bar's 44px controls. Width follows from height, so
   it is never stretched. */
.lp-nav-brand img {
  display: block;
  width: auto;
  height: var(--logo-nav);
}

.lp-nav-actions { display: flex; align-items: center; gap: 8px; }

/* On the green field the two controls swap roles with the rest of the page:
   the quiet one is pale text at the app's own --topbar-fg-muted weight
   (4.98:1 on this green), and the CTA is the pale pill. */
.lp-nav .lp-btn-quiet {
  color: color-mix(in srgb, var(--lp-brand-field-fg) 85%, transparent);
}
.lp-nav .lp-btn-quiet:hover { color: var(--lp-brand-field-fg); }

.lp-nav .lp-btn-primary {
  border-color: var(--lp-brand-field-fg);
  background: var(--lp-brand-field-fg);
  color: var(--lp-brand-field);
  box-shadow: 3px 3px 0 rgba(6, 40, 17, 0.45);
}
.lp-nav .lp-btn-primary:hover { box-shadow: 1px 1px 0 rgba(6, 40, 17, 0.45); }
.lp-nav .lp-btn-primary:active { box-shadow: 0 0 0 rgba(6, 40, 17, 0.45); }

/* The nav's own CTA is redundant beside the hero's on a small screen, where
   both are on the first viewport anyway. */
.lp-nav-cta { display: none; }

/* ---------- Hero ---------- */

.lp-hero {
  display: grid;
  gap: clamp(48px, 8vw, 64px);
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 76px) var(--lp-gutter) clamp(56px, 9vw, 104px);
}

.lp-eyebrow {
  display: block;
  font-family: var(--lp-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  max-width: 34ch;
  color: var(--lp-ink-soft);
  line-height: 1.7;
}

.lp-hero-title {
  margin: 20px 0 0;
  font-family: var(--lp-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* The destination sits on its own line, always. A stamp that shared a line
   with "Let's go to" would re-wrap the whole headline every time the word
   changed length — the cycle has to be able to run without the page moving
   underneath it. */
.lp-stamp-slot {
  display: block;
  margin-top: 0.14em;
  padding-left: 0.14em;   /* the rotation swings the left edge outward */
}

/* ★ THE SIGNATURE — a rubber stamp, struck slightly crooked and printed
   twice: the double keyline is the stamp's die, the text-shadow is the
   second ink pass landing out of register. */
.lp-stampword {
  display: inline-block;
  padding: 0.04em 0.2em 0.09em;
  border: 0.055em solid currentColor;
  border-radius: 0.14em;
  box-shadow: inset 0 0 0 0.022em currentColor;
  color: var(--lp-coral);
  text-shadow: 0.028em 0.036em 0 var(--lp-ghost);
  transform: rotate(-2.6deg);
  transform-origin: 30% 60%;
}

.lp-hero-sub {
  margin: 26px 0 0;
  max-width: 44ch;
  font-size: 1.0625rem;
  color: var(--lp-ink-soft);
}

.lp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.lp-hero-note {
  margin: 22px 0 0;
  font-size: 0.875rem;
  color: var(--lp-ink-soft);
}
/* Inline inside a sentence, so it cannot be a 44px-tall box without wrecking
   the line. Expand the tappable area instead, per the --tap-min note in
   CLAUDE.md — the glyphs stay on the baseline, the hit box does not. */
.lp-hero-note .lp-textlink {
  position: relative;
  font-size: inherit;
  min-height: 0;
}
.lp-hero-note .lp-textlink::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: max(var(--tap-min), 100%);
  transform: translate(-50%, -50%);
}

/* ---------- Prints ---------- */
/* Every photograph on this page is an instant print: a stock border wider at
   the foot than at the head, taped down at an angle. No captions — a print
   stuck to a wall does not carry a label, and the picture is doing the
   arguing on its own. */

.lp-print {
  position: relative;
  display: block;
  padding: 10px 10px 34px;
  background: var(--lp-stock);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(9, 20, 13, 0.1),
    0 22px 40px -26px rgba(9, 20, 13, 0.75);
}

/* Tape. Two torn strips holding the print to the page — the reason anything
   on this page is allowed to sit at an angle. */
.lp-print::before,
.lp-print::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 74px;
  height: 26px;
  background: var(--lp-tape);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.lp-print::before { left: 9%; transform: rotate(-4deg); }
.lp-print::after { right: 9%; transform: rotate(3.4deg); }

.lp-print-window {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  background: color-mix(in srgb, var(--lp-ink) 12%, var(--lp-stock));
}

.lp-print-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The hero print's frame is reserved from first paint (#6571): the photos
   arrive from an API call seconds after the page, and revealing the figure
   then moved the whole hero (CLS 0.3). js/landing.js sets .lp-hero-no-photo
   only once the fetch has settled with nothing to show; the hero is then a
   single centred column of copy — a deliberate state, not a broken one.
   .lp-hero-has-photo still marks the opposite outcome. */
.lp-hero-photo { display: block; }
.lp-hero-no-photo .lp-hero-photo { display: none; }

.lp-hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  margin: 0;
  transform: rotate(-2deg);
}

/* Two more prints under the top one, just their edges showing. A stack, not
   a single specimen — you took more than one photo. */
.lp-hero-photo .lp-stack-a,
.lp-hero-photo .lp-stack-b {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--lp-stock);
  box-shadow: 0 10px 24px -18px rgba(9, 20, 13, 0.8);
}
.lp-hero-photo .lp-stack-a { transform: rotate(4.5deg) translate(6px, 4px); }
.lp-hero-photo .lp-stack-b { transform: rotate(-6deg) translate(-8px, 8px); }
.lp-hero-photo .lp-print { position: relative; }

.lp-hero-bg {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: color-mix(in srgb, var(--lp-ink) 12%, var(--lp-stock));
}

.lp-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--lp-dur-slow) var(--lp-ease);
}
.lp-hero-bg img.is-active { opacity: 1; }

/* No photograph credit or caption on the stock's bottom margin — a print
   taped to a wall does not explain itself. Credits were removed deliberately
   (#1423); the blank margin is the instant-print look, not a missing line. */

/* ---------- Bands and sections ---------- */

.lp-section {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--lp-gutter);
}

/* A full-bleed band of flat ink. .lp-band is the wrapper; the section inside
   keeps the page's measure. */
.lp-band {
  border-block: 2px solid var(--lp-ink);
}
.lp-band-panel { background: var(--lp-panel); }

.lp-invert {
  background: var(--lp-invert-bg);
  color: var(--lp-invert-fg);
  border-block-color: var(--lp-invert-bg);
}
.lp-invert .lp-section-sub,
.lp-invert .lp-step p,
.lp-invert .lp-eyebrow { color: var(--lp-invert-soft); }

.lp-section-head { max-width: 52ch; margin-bottom: clamp(34px, 5vw, 54px); }


.lp-section-title {
  margin: 0;
  font-family: var(--lp-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.125rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lp-section-sub {
  margin: 16px 0 0;
  font-size: 1rem;
  color: var(--lp-ink-soft);
}

.lp-section-foot { margin-top: 38px; }

/* ---------- The wall of prints ---------- */

/* Breaks the page's measure and runs the full width of the viewport, because
   a wall of photos does not stop where the body copy stops. */
.lp-wall { max-width: none; padding-inline: 0; }

.lp-wall-head {
  max-width: var(--lp-max);
  margin-inline: auto;
  padding-inline: var(--lp-gutter);
}

.lp-wall-row {
  /* Reserve the tallest print (3:4 window + the stock border) plus the
     row's vertical padding while the photos load, so the sections below
     don't move when they land (#6571). */
  min-height: calc(clamp(210px, 58vw, 258px) * 4 / 3 + 44px + 60px);
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* Vertical: room for the tape, the rotation and the focus ring, which the
     scroll container would otherwise clip. Horizontal: line the first print
     up with the page's measure while still letting the row run off the right
     edge — 100% here is the viewport width, since .lp-wall is full-bleed. */
  padding-block: 30px;
  padding-inline: max(
    var(--lp-gutter),
    calc((100% - var(--lp-max)) / 2 + var(--lp-gutter))
  );
  margin-block: -30px;
  scrollbar-width: thin;
}

.lp-photo-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 58vw, 258px);
  margin: 0;
  scroll-snap-align: center;
  transition: transform var(--dur-state) var(--lp-ease);
}

/* A wall is a rhythm of formats and angles, not a row of identical tiles.
   Cycling four tilts and four ratios by position gives that rhythm without
   needing dimensions the LandingPhoto row does not store. */
.lp-photo-card:nth-child(4n + 1) { transform: rotate(-2.4deg); }
.lp-photo-card:nth-child(4n + 2) { transform: rotate(1.8deg) translateY(-14px); }
.lp-photo-card:nth-child(4n + 3) { transform: rotate(-1.2deg) translateY(10px); }
.lp-photo-card:nth-child(4n + 4) { transform: rotate(3deg); }

.lp-photo-card:nth-child(4n + 1) .lp-print-window { aspect-ratio: 4 / 5; }
.lp-photo-card:nth-child(4n + 2) .lp-print-window { aspect-ratio: 1 / 1; }
.lp-photo-card:nth-child(4n + 3) .lp-print-window { aspect-ratio: 5 / 4; }
.lp-photo-card:nth-child(4n + 4) .lp-print-window { aspect-ratio: 3 / 4; }

/* Straightening a crooked print is what you actually do when you look at one
   on a wall. */
.lp-photo-card:hover,
.lp-photo-card:focus-within { transform: rotate(0deg) scale(1.03); }

/* ---------- What it does ---------- */

.lp-cards {
  display: grid;
  gap: 18px;
}

.lp-card {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--lp-panel);
  border: 2px solid var(--lp-ink);
  border-radius: 14px;
}

/* Each card is over-printed with a different ink, cycled by position — a
   sheet of stickers comes off the press in colour order. */
.lp-card:nth-child(3n + 1) { --lp-card-ink: var(--lp-brand); }
.lp-card:nth-child(3n + 2) { --lp-card-ink: var(--lp-coral); }
.lp-card:nth-child(3n + 3) { --lp-card-ink: var(--lp-amber); }

.lp-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 22px;
  width: 46px;
  height: 8px;
  border-radius: 0 0 6px 6px;
  background: var(--lp-card-ink);
}

.lp-card h3 {
  margin: 0;
  font-family: var(--lp-display);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
}

.lp-card p {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  color: var(--lp-ink-soft);
}

/* ---------- Three steps, as a route ---------- */

.lp-steps {
  position: relative;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 4px 18px;
}

/* The pin. Numbered because the content genuinely is a sequence — you cannot
   share a code before there is a trip to share. */
.lp-step-num {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--lp-invert-fg);
  border-radius: 50%;
  /* A waypoint takes the colour of the route it sits on, so the pin is amber
     like the dashes rather than green. Green stays reserved for controls —
     and a green pin would in any case near-vanish into this band's own
     green-black ground in light mode. */
  background: var(--lp-amber);
  color: var(--lp-amber-fg);
  font-family: var(--lp-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.lp-step h3 {
  margin: 4px 0 0;
  font-family: var(--lp-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lp-step p {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 0.9375rem;
  color: var(--lp-invert-soft);
}

/* The route between the pins: a dashed line, the one on every map that shows
   a journey rather than a road. Vertical while the steps stack. */
.lp-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 25px;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--lp-amber) 0 9px,
    transparent 9px 18px
  );
}

/* ---------- Discover stubs ---------- */

/* The shelf is the feed's grid card (.discover-card, css/discover.css). Only the
   layout is landing's: two columns on a phone, up to three on wider screens, and
   no report/share on a public shelf (H03 shows the counts alone). */
.lp-discover-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 6px 2px 10px;
}
@media (min-width: 900px) {
  .lp-discover-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lp-discover-row .discover-report-btn,
.lp-discover-row .discover-share-btn { display: none; }

/* ---------- FAQ ---------- */

.lp-faq {
  display: grid;
  gap: 12px;
}

.lp-faq-item {
  background: var(--lp-panel);
  border: 2px solid var(--lp-ink);
  border-radius: 12px;
  overflow: hidden;
}

.lp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--tap-min);
  padding: 16px 18px;
  font-family: var(--lp-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }

.lp-faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    linear-gradient(var(--lp-brand-fg), var(--lp-brand-fg)) 50% 50% / 11px 2.5px no-repeat,
    linear-gradient(var(--lp-brand-fg), var(--lp-brand-fg)) 50% 50% / 2.5px 11px no-repeat,
    var(--lp-brand);
  transition: transform var(--dur-state) var(--lp-ease);
}
.lp-faq-item[open] summary::after { transform: rotate(135deg); }

.lp-faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--lp-ink-soft);
}
.lp-faq-item p a { color: var(--lp-brand); text-underline-offset: 3px; }

/* ---------- Footer ---------- */

/* The last thing on the page is a poster, not a section: one full-bleed
   field of brand green with the instruction set as large as it will go. It
   uses --lp-brand-field rather than --lp-brand for the same reason the app
   pins --topbar-bg — a full-bleed field of the dark-mode mint would be
   unreadable — which also means the page opens and closes on the same green
   the app's own top bar is painted in. */
.lp-footer {
  max-width: none;
  padding: clamp(64px, 10vw, 116px) var(--lp-gutter) 36px;
  background: var(--lp-brand-field);
  border-top: 2px solid var(--lp-ink);
  color: var(--lp-brand-field-fg);
}

.lp-footer-cta {
  max-width: var(--lp-max);
  margin: 0 auto;
  text-align: center;
}

.lp-footer-cta h2 {
  margin: 0 0 8px;
  font-family: var(--lp-display);
  font-weight: 800;
  font-size: clamp(4rem, 22vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.lp-footer-cta p {
  margin: 0 auto 30px;
  max-width: 34ch;
  font-size: 1.0625rem;
}

.lp-footer .lp-btn {
  /* A pale pill carrying the green, the way the app's top bar holds its
     white logo/profile pills against the same field. */
  border-color: var(--lp-brand-field-fg);
  background: var(--lp-brand-field-fg);
  color: var(--lp-brand-field);
  box-shadow: 5px 5px 0 rgba(6, 40, 17, 0.45);
}
.lp-footer .lp-btn:hover { box-shadow: 3px 3px 0 rgba(6, 40, 17, 0.45); }
.lp-footer .lp-btn:active { box-shadow: 0 0 0 rgba(6, 40, 17, 0.45); }
.lp-footer :focus-visible { --lp-focus: var(--lp-brand-field-fg); }

.lp-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--lp-max);
  margin: clamp(56px, 9vw, 92px) auto 0;
  padding-top: 20px;
  border-top: 2px solid color-mix(in srgb, var(--lp-brand-field-fg) 45%, transparent);
}

/* The wordmark artwork (#3717), all apricot on the Field Green footer, in
   place of "LANCONG" set in the label face: DESIGN.md allows no other typeface
   for the wordmark. Width follows from height, so it never stretches. */
.lp-footer-brand {
  display: block;
  width: auto;
  height: var(--logo-footer);
  flex-shrink: 0;
}

.lp-footer-links { display: flex; align-items: center; gap: 12px; }
.lp-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: inherit;
  text-underline-offset: 3px;
}
.lp-footer-links a:hover { text-decoration-thickness: 2px; }

/* Business identity line (#35) — the Consumer Protection (Electronic Trade
   Transactions) Regulations 2024 require an online business to display its
   name, registration number and contact details, and Lancong sells trip
   passes. Deliberately a full-width third row rather than a third flex item:
   .lp-footer-meta is a space-between row, so without the 100% basis this
   would sit between the brand and the links and pull them apart. */
.lp-footer-entity {
  flex-basis: 100%;
  font-size: 0.7rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--lp-brand-field-fg) 80%, var(--lp-brand-field));
}
/* The contact link is the one part of this line a visitor acts on, so it takes
   the footer's full pale colour (white on Field Green, well past 4.5:1) rather
   than the browser's default blue (1.51:1) and is underlined like the links. */
.lp-footer-entity a {
  color: var(--lp-brand-field-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Contact page (issue #1006) ---------- */

/* /contact, sharing #auth-screen and every token above with the landing page
   (js/contact.js explains why it lives there). One shout — the headline —
   then a quiet list of stubs. A channel you can press (mailto:, tel:, a web
   link) is a boarding-pass stub that presses into the page like .lp-dcard; a
   channel with no link is informational and, per DESIGN.md, does not move. */
#contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.ct-main { flex: 1 0 auto; width: 100%; }
.ct-head { margin-bottom: clamp(28px, 4vw, 44px); }
.ct-head .lp-section-title { font-size: 40px; }
@media (min-width: 900px) { .ct-head .lp-section-title { font-size: 64px; text-wrap: nowrap; } }
.ct-head .lp-section-sub { max-width: 52ch; color: var(--lp-ink); line-height: 1.5; }

/* #6862 (slice 8 of #6363), W-C1 to W-C4: the channels are one keylined list, not separate cards. */
.ct-cards { min-width: 0; }
.ct-list { background: var(--lp-panel); border: 2px solid var(--lp-ink); border-radius: 14px; overflow: hidden; }
.ct-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--lp-hair, rgba(16, 26, 20, 0.14));
  background: transparent;
  color: var(--lp-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.ct-row:last-child { border-bottom: 0; }
a.ct-row:hover, button.ct-row:hover { background: color-mix(in srgb, var(--lp-ink) 6%, transparent); }
.ct-row-static, .ct-row-skeleton { cursor: default; }
.ct-ri {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--lp-ink);
  border-radius: 999px;
  background: var(--lp-ground, transparent);
  font-size: 20px;
  color: var(--lp-ink);
}
.ct-ri-skeleton { border-color: var(--lp-hair, rgba(16, 26, 20, 0.14)); background: var(--lp-hair, rgba(16, 26, 20, 0.08)); }
.ct-body { display: flex; flex-direction: column; flex: 1; gap: 2px; min-width: 0; line-height: 1.3; }
.ct-label { color: var(--lp-ink-soft); font-size: 12px; letter-spacing: 0.08em; }
.ct-value { font-size: var(--fs-md, 16px); font-weight: 600; overflow-wrap: anywhere; }
.ct-desc { font-size: 14px; color: var(--lp-ink-soft); }
.ct-chev { flex: none; font-size: 18px; color: var(--lp-ink-soft); }
.ct-row-skeleton .ct-body { gap: 8px; }
.ct-row-skeleton .skeleton { animation: none; background: color-mix(in srgb, var(--lp-ink) 14%, transparent); }

/* Empty and error states: prose, not rows. */
.ct-state { max-width: 52ch; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ct-state p { margin: 0; color: var(--lp-ink-soft); }
.ct-state a { color: var(--lp-ink); text-decoration-color: var(--lp-brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ct-banner { display: flex; gap: 10px; align-items: flex-start; align-self: stretch; padding: 10px 12px; border: 2px solid var(--df-coral); border-radius: 12px; background: light-dark(#fbe0d8, rgba(226, 106, 69, 0.18)); color: var(--df-coral); font-size: 14px; line-height: 1.4; }
.ct-banner i { margin-top: 1px; }
.ct-fallback { align-self: stretch; padding: 16px; border: 2px solid var(--lp-ink); border-radius: 14px; background: var(--lp-panel); }
.ct-fallback-lead { font-size: 14px; color: var(--lp-ink-soft); line-height: 1.45; }
.ct-fallback-mail { display: block; margin: 2px 0 6px; font-size: 18px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Desktop: the shout and intro on the left, the list on the right. */
@media (min-width: 900px) {
  .ct-main { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 64px; align-items: start; }
  .ct-head { margin-bottom: 0; }
}

/* W-C1 to W-C4: the top bar is the landing world's lp-nav on the page ground: Route Mark and name, a dashed hairline, a Back pill. */
.ct-nav { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 var(--lp-gutter); border-bottom: 2px dashed var(--lp-hair); }
.ct-nav-brand { display: flex; align-items: center; gap: 10px; color: var(--lp-ink); font-family: var(--lp-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.ct-nav-brand svg { flex: none; width: 32px; height: 32px; }
.ct-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--lp-ink); border-radius: 999px; background: var(--lp-panel); color: var(--lp-ink); font: inherit; font-weight: 600; box-shadow: 3px 3px 0 var(--lp-ink); cursor: pointer; }
.ct-back:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--lp-ink); }
.ct-legal { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; font-size: 14px; color: var(--lp-ink-soft); }
.ct-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Entrances ---------- */
/* .is-visible is added by initLandingReveal()'s IntersectionObserver
   (js/landing.js), which falls back to marking everything visible when there
   is no observer — so no rule here may leave content hidden by default in a
   way JS is required to undo. Guarding the whole block on
   prefers-reduced-motion: no-preference means the hidden start state simply
   never exists for a reader who opted out. */
@media (prefers-reduced-motion: no-preference) {
  .lp-reveal,
  .lp-pop {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity var(--dur-view) var(--lp-ease),
      transform var(--dur-view) var(--lp-ease);
  }
  /* .lp-pop lands rather than arrives — it is a sticker being pressed down. */
  .lp-pop { transition-timing-function: var(--ease-slam); }
  .lp-reveal.is-visible,
  .lp-pop.is-visible {
    opacity: 1;
    transform: none;
  }

  /* A print's resting tilt is layout, not motion, so it fades in where the
     text cards travel — a transform entrance would have to fight the tilt
     each card already carries. The transform transition stays for hover. */
  .lp-photo-card {
    opacity: 0;
    transition:
      opacity var(--dur-view) var(--lp-ease) var(--dur-state),
      transform var(--dur-state) var(--lp-ease);
  }
  .lp-photo-card.is-visible { opacity: 1; }

  /* The steps are revealed by their <ol>'s own .lp-timeline observation, not
     individually — one observer entry for a group that reads as one run. */
  .lp-timeline .lp-step {
    opacity: 0;
    transform: translateX(-14px);
    transition:
      opacity var(--dur-view) var(--lp-ease),
      transform var(--dur-view) var(--lp-ease);
  }
  .lp-timeline.is-visible .lp-step { opacity: 1; transform: none; }

  /* The route draws itself before the pins arrive on it — it maps to the real
     act it is named after, which is what earns it the motion. */
  .lp-timeline::before { scale: 1 0; transform-origin: top center; transition: scale var(--lp-dur-long) var(--lp-ease); }
  .lp-timeline.is-visible::before { scale: 1 1; }

  /* Staggered so each run reads top-down rather than arriving as one block. */
  .lp-card:nth-child(2), .lp-step:nth-child(2) { transition-delay: calc(var(--lp-stagger) * 1); }
  .lp-card:nth-child(3), .lp-step:nth-child(3) { transition-delay: calc(var(--lp-stagger) * 2); }
  .lp-card:nth-child(4) { transition-delay: calc(var(--lp-stagger) * 3); }
  .lp-card:nth-child(5) { transition-delay: calc(var(--lp-stagger) * 4); }
  .lp-card:nth-child(6) { transition-delay: calc(var(--lp-stagger) * 5); }

  /* Page load: the hero settles in one short sequence rather than five
     unrelated ones. */
  .lp-hero-copy > * { animation: lp-rise var(--dur-view) var(--lp-ease) both; }
  .lp-hero-copy > *:nth-child(2) { animation-delay: calc(var(--lp-stagger) * 1); }
  .lp-hero-copy > *:nth-child(3) { animation-delay: calc(var(--lp-stagger) * 2); }
  .lp-hero-copy > *:nth-child(4) { animation-delay: calc(var(--lp-stagger) * 3); }
  .lp-hero-copy > *:nth-child(5) { animation-delay: calc(var(--lp-stagger) * 4); }
  .lp-hero-photo { animation: lp-drop var(--lp-dur-hero) var(--lp-ease) var(--dur-state) both; }

  /* ★ The stamp coming down. js/landing.js adds .is-struck for one animation
     on load and on every swap; the resting transform in .lp-stampword is what
     it lands on, so an interrupted or unsupported animation still leaves the
     word correctly placed. */
  .lp-stampword.is-struck { animation: lp-strike var(--dur-strike) var(--ease-slam) both; }
}

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes lp-drop {
  from { opacity: 0; transform: rotate(-9deg) translateY(-26px); }
  to { opacity: 1; transform: rotate(-2deg); }
}

@keyframes lp-strike {
  0% { opacity: 0; transform: rotate(-11deg) scale(1.85); }
  55% { opacity: 1; transform: rotate(-2.6deg) scale(0.95); }
  78% { transform: rotate(-2.6deg) scale(1.025); }
  100% { transform: rotate(-2.6deg) scale(1); }
}

/* Every travelling effect above resolves here to its FINISHED state, never a
   hidden one — same rule the app-wide block in css/style.css follows. Note
   .lp-photo-card is deliberately absent from the transform reset: its tilt is
   layout, not motion, and zeroing it here would flatten the wall. */
@media (prefers-reduced-motion: reduce) {
  .lp-reveal,
  .lp-pop,
  .lp-timeline .lp-step,
  .lp-hero-copy > *,
  .lp-hero-photo {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .lp-hero-photo { transform: rotate(-2deg); }
  .lp-photo-card { opacity: 1; transition: none; }
  .lp-photo-card:hover, .lp-photo-card:focus-within { transform: none; }
  .lp-timeline::before { scale: 1 1; }
  .lp-stampword { animation: none; }
  .lp-hero-bg img { transition: none; }
  .lp-btn { transition: none; }
}

/* ---------- Narrow ---------- */

/* The fanned prints under the hero shot need gutter to fan into, and at phone
   width there is only 20px of it — the back sheet's corner used to be absorbed
   by the stray 16px of page padding this file spent months accidentally
   carrying (see the ⚠️ at the top). With the page genuinely full-bleed the fan
   has to tuck in on its own. */
@media (max-width: 680px) {
  /* The fan's reach scales with the print's own width, so the print gives back
     a little of the column and the angles ease off — together that keeps the
     back sheet's corner inside a 20px gutter instead of 5px outside it. */
  .lp-hero-photo { width: min(100% - 26px, 440px); }
  .lp-hero-photo .lp-stack-a { transform: rotate(3deg) translate(4px, 3px); }
  .lp-hero-photo .lp-stack-b { transform: rotate(-3.5deg) translate(-4px, 5px); }
}

/* ---------- Wide ---------- */

@media (min-width: 700px) {
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .lp-nav-cta { display: inline-flex; }

  .lp-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(48px, 6vw, 88px);
  }
  /* With no photo the copy is the whole hero, so it becomes a centred poster
     rather than a column of text against an empty half-page. */
  .lp-hero.lp-hero-no-photo {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    text-align: center;
  }
  .lp-hero.lp-hero-no-photo .lp-eyebrow,
  .lp-hero.lp-hero-no-photo .lp-hero-sub { margin-inline: auto; }
  .lp-hero.lp-hero-no-photo .lp-hero-ctas { justify-content: center; }
  /* The rotation swings the stamp's left edge out; on a centred line the
     optical centre needs the compensating pad removed. */
  .lp-hero.lp-hero-no-photo .lp-stamp-slot { padding-left: 0; }

  .lp-cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }

  /* Three pins along one horizontal route, which is what a journey drawn on a
     map actually looks like. */
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .lp-step { grid-template-columns: 1fr; gap: 0; }
  .lp-step-num { grid-row: auto; margin-bottom: 18px; }
  /* Ends ON the last pin rather than running past it: with three equal
     columns and a 34px gap, one column width in from the right edge is
     (100% - 68px)/3, and the pin's centre is 26px inside that. */
  .lp-steps::before {
    top: 25px;
    bottom: auto;
    left: 26px;
    right: calc((100% - 68px) / 3 - 26px);
    width: auto;
    height: 3px;
    background: repeating-linear-gradient(
      to right,
      var(--lp-amber) 0 9px,
      transparent 9px 18px
    );
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .lp-timeline::before { scale: 0 1; transform-origin: left center; }
  .lp-timeline.is-visible::before { scale: 1 1; }
}

/* Route Mark light/dark pair: the full-colour symbol on a light ground, the
   all-apricot one on a dark ground (Coral Dot Rule). Both <img>s are in the
   markup; data-theme (always resolved to light/dark by index.html's boot
   script and setThemePreference()) decides which shows. */
.rm-dark { display: none; }
:root[data-theme="dark"] .rm-light { display: none; }
:root[data-theme="dark"] .rm-dark { display: block; }

/* Issue #2310 (#2192) — sign-in motion (the
   classes are added by js/auth.js). Tokens only.
   The Route Mark draws in along its length (a left-to-right reveal, under 1s)
   and the dot, at the right end, lands last. Never blocks input. */
@keyframes route-mark-draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.lp-nav-brand img.route-mark-draw {
  animation: route-mark-draw var(--dur-view) var(--ease-out) both;
}
@keyframes route-mark-land {
  50% { transform: scale(1.06); }
}
.lp-nav-brand img.route-mark-land {
  transform-origin: left center;
  animation: route-mark-land var(--dur-state) var(--ease-out);
}
@keyframes auth-form-swap-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.auth-form-swap { animation: auth-form-swap-in var(--dur-view) var(--ease-out) both; }
/* Validation message eases in; colour stays Alert Red (--error-text), never coral. */
@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.field-error-in, .ap-field-error.field-error-in { animation: field-error-in var(--dur-feedback) var(--ease-out) both; }

/* Phone: the legal links sit under the list, as W-C2 draws them. */
@media (max-width: 899px) {
  .ct-main { display: flex; flex-direction: column; }
  .ct-head { display: contents; }
  .ct-head .lp-section-title { order: 1; }
  #contact-intro { order: 2; margin-bottom: 20px; }
  .ct-cards { order: 3; }
  .ct-legal { order: 4; }
}

/* #6571 step 6: these screens are hidden by default in discover.css and the stamps sheet, which now load only once the app does. Repeated
   here (same selector, same position in the cascade as before) so the landing page does not lay them out, and fetch
   the icon fonts for their markup, while the app's scripts are still coming. */
#discover-screen, #shared-trip-screen, #user-profile-screen, #profile-screen, #invite-screen, #pending-approval-screen,
#stamps-screen, #friends-screen {
  display: none;
}

