/* ============================================================
 * TRAVEL ENGINE STYLES — structural only.
 * Rule: identity colouring uses tokens exclusively. The only
 * literals allowed are true structurals (scrims, focus rings).
 * ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 8% 3%, color-mix(in srgb, var(--illustration) 18%, transparent), transparent 31rem),
    radial-gradient(circle at 96% 28%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 30rem),
    linear-gradient(165deg, var(--bg), var(--bg-2));
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
html.onboarding, body.onboarding { overflow-anchor: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- boot splash ---------- */
.boot-splash { min-height: 100vh; display: grid; place-content: center; gap: 14px; justify-items: center; }
.boot-mark {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.boot-word { color: var(--muted); font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- app shell ---------- */
#app { position: relative; max-width: var(--maxw); margin: 0 auto; padding-bottom: calc(var(--tab-h) + 14px); }
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
  background: color-mix(in srgb, var(--header) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.app-header-journey-brand {
  position: sticky; z-index: 22; top: 0;
  min-height: 82px; gap: 10px;
  padding: calc(7px + env(safe-area-inset-top, 0px)) var(--gutter) 7px;
  background:
    radial-gradient(circle at 9% 16%, color-mix(in srgb, var(--illustration) 15%, transparent), transparent 34%),
    linear-gradient(102deg, color-mix(in srgb, var(--header) 94%, #fff), color-mix(in srgb, var(--tv-wash) 88%, #fff));
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: 0 5px 16px rgba(62,49,31,.08);
}
.header-home-control {
  flex: 0 0 62px; width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 16px;
}
.header-home-control img {
  width: 58px; height: 58px; object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(73,48,25,.18));
}
.header-home-control:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.header-journey-copy { flex: 1 1 auto; min-width: 0; display: grid; align-content: center; gap: 2px; }
.header-journey-brand {
  overflow: hidden; color: var(--accent); font-family: var(--font-display);
  font-size: 14px; font-weight: 900; letter-spacing: .15em; line-height: 1.05;
  text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap;
}
.app-header-journey-brand .app-destination-label {
  gap: 5px; font-size: 25px; letter-spacing: -.45px;
}
.app-header-journey-brand .app-destination-label .destination-label-pin { width: 27px; height: 27px; }
.app-header-journey-brand .header-avatar {
  flex: 0 0 56px; width: 56px; height: 66px; display: grid; justify-items: center; align-content: center;
  gap: 1px; overflow: visible; border: 0; border-radius: 0; background: transparent;
}
.app-header-journey-brand .header-avatar-pic {
  width: 48px; height: 48px; aspect-ratio: 1 / 1; overflow: hidden; border: 3px solid color-mix(in srgb, var(--header) 78%, #fff);
  border-radius: 50%; background: var(--tv-wash); box-shadow: 0 4px 10px rgba(45,58,52,.16);
}
.app-header-journey-brand .header-avatar-name {
  display: block; max-width: 58px; overflow: hidden; color: var(--tv-accent-deep);
  font-size: 8px; font-weight: 900; letter-spacing: .13em; line-height: 1;
  text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap;
}
.app-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.2px; }
.app-wordmark img { height: 30px; width: auto; }
.destination-label { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink); font-family: var(--font-display); font-weight: 800; }
.destination-label-pin { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; font-size: 23px; line-height: 1; }
.destination-label-pin img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(93, 48, 31, .18)); }
.destination-label-name { display: grid; min-width: 0; }
.destination-label-kicker { color: var(--accent); font-family: var(--font-body); font-size: 8px; font-weight: 800; letter-spacing: .16em; line-height: 1.1; text-transform: uppercase; }
.destination-label-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-destination-label { gap: 7px; font-size: 19px; letter-spacing: .1px; }
.app-destination-label .destination-label-pin { width: 30px; height: 30px; }
.app-destination-label .destination-label-text { line-height: 1.1; }
.view-destination-label { margin: 0; font-size: 26px; letter-spacing: -.3px; }
.view-destination-label .destination-label-pin { width: 39px; height: 39px; font-size: 27px; }
.app-header-today {
  position: absolute; z-index: 22; top: calc(12px + env(safe-area-inset-top, 0px)); right: var(--gutter);
  width: auto; padding: 0; background: transparent; border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.app-header-today .app-wordmark,
.app-header-today .header-avatar-name { display: none; }
.app-header-today .header-avatar-pic {
  width: 76px; height: 76px; border-color: rgba(248,239,218,.94);
  background: rgba(255,250,238,.86); box-shadow: 0 5px 14px rgba(63,48,28,.15);
}
.app-header-journey {
  position: sticky; z-index: 22; top: 0; right: auto; width: 100%;
}
.app-header-journey .header-avatar-name { display: none; }
.app-header-journey .header-avatar-pic { width: 42px; height: 42px; border-color: rgba(248,239,218,.92); background: rgba(255,250,238,.82); }
.app-header-journey .destination-label-pin img { display: none; }
.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;
}
.header-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--tv-ring); overflow: hidden; background: var(--tv-wash);
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

.view { padding: 4px var(--gutter) 24px; animation: fadein 280ms var(--ease-glide); }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 410px) {
  .app-header-journey-brand { min-height: 74px; gap: 7px; padding-top: calc(5px + env(safe-area-inset-top, 0px)); padding-bottom: 5px; }
  .header-home-control { flex-basis: 54px; width: 54px; height: 54px; }
  .header-home-control img { width: 51px; height: 51px; }
  .header-journey-brand { font-size: 12px; }
  .app-header-journey-brand .app-destination-label { font-size: 22px; }
  .app-header-journey-brand .app-destination-label .destination-label-pin { width: 24px; height: 24px; }
  .app-header-journey-brand .header-avatar { flex-basis: 50px; width: 50px; height: 60px; }
  .app-header-journey-brand .header-avatar-pic { width: 43px; height: 43px; }
  .app-header-journey-brand .header-avatar-name { font-size: 7px; }
}

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: flex-start; overflow-x: auto;
  max-width: var(--maxw); margin: 0 auto;
  background: color-mix(in srgb, var(--header) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  height: var(--tab-h); padding: 3px 5px env(safe-area-inset-bottom, 0px);
  scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 76px; min-width: 76px; display: grid; place-items: center; gap: 2px;
  padding: 4px 3px 3px; border-radius: 17px; color: var(--muted);
  font-size: 10.5px; font-weight: 700; scroll-snap-align: center;
  transition: color .16s ease, background .16s ease;
}
.tab .tab-glyph {
  font-size: 23px; line-height: 1; display: grid; place-items: center;
  width: 44px; height: 38px; border: 1px solid transparent; border-radius: 14px;
  filter: saturate(1.12) contrast(1.02);
  transition: filter .18s ease, transform .18s var(--ease-spring),
    background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tab .tab-glyph img { width: 32px; height: 32px; object-fit: contain; }
.tab.active {
  color: color-mix(in srgb, var(--sun) 58%, var(--ink));
  background: transparent;
}
/* The icons stay lively in every state; gold sits behind the selected art so
 * selection never depends on draining colour from the other destinations. */
.tab.active .tab-glyph {
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.88), transparent 35%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--selected) 72%, #fff),
      color-mix(in srgb, var(--sun) 45%, var(--selected)));
  border-color: color-mix(in srgb, var(--sun) 58%, #fff);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--sun) 26%, transparent),
    inset 0 1px rgba(255,255,255,.8);
  filter: saturate(1.18) contrast(1.04);
  transform: translateY(-1px) scale(1.08);
}
.tab:active .tab-glyph { transform: scale(.96); }
.tab.active:active .tab-glyph { transform: translateY(0) scale(1); }

/* ---------- cards & common ---------- */
.card {
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 52%, transparent) 0%, transparent 46%),
    color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  border: 1px solid color-mix(in srgb, #fff 68%, var(--line));
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin: 12px 0;
  transition: transform 120ms var(--ease-glide);
}
.card:active { transform: scale(.985); }
.card-plain { box-shadow: none; }
.h1 { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
.h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 18px 0 6px; }
.sub { color: var(--muted); font-size: 13.5px; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.grow { flex: 1; }
.center { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--tv-accent); color: #fff;
  border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 15px;
  transition: transform 0.08s ease, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-ghost { background: var(--wash); color: var(--ink); }
.btn-danger { background: var(--danger); }
.btn-small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--wash); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600;
}
.chip.on { background: var(--tv-wash); border-color: var(--tv-ring); color: var(--tv-accent-deep); }

/* ---------- lists / segments ---------- */
.day-head {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 10px 2px 6px; font-weight: 800; font-size: 14px; color: var(--ink-soft);
}
.seg-row {
  display: flex; align-items: center; gap: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 48%, transparent), transparent 46%),
    color-mix(in srgb, var(--card) 78%, transparent);
  border: 1px solid color-mix(in srgb, #fff 58%, var(--line));
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 8px 0;
  box-shadow: 0 5px 18px rgba(70, 58, 32, .07), inset 0 1px 0 rgba(255,255,255,.72);
  transition: transform 120ms var(--ease-glide), background 160ms ease;
}
.seg-row:active { background: var(--wash); transform: scale(.985); }
.kind-icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--wash); border-radius: 12px; font-size: 22px;
}
.kind-icon img { width: 30px; height: 30px; object-fit: contain; }
/* Content-list art stands on the card itself. The old nested squircle made
 * detailed food and activity illustrations look like tiny app icons. */
.journey-plan-list-row .kind-icon,
.journey-day-plan .kind-icon,
.glance-plan .kind-icon,
.today-search-hit .kind-icon {
  width: 52px; height: 52px; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 30px;
}
.journey-plan-list-row .kind-icon img,
.journey-day-plan .kind-icon img,
.glance-plan .kind-icon img,
.today-search-hit .kind-icon img { width: 45px; height: 45px; object-fit: contain; }
.seg-row .kind-icon {
  width: 76px; height: 76px; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 60px;
}
.seg-row .kind-icon img { width: 72px; height: 72px; object-fit: contain; }
.seg-main { flex: 1; min-width: 0; }
.seg-title {
  font-weight: 700; font-size: 15px; line-height: 1.18;
  white-space: normal; overflow-wrap: anywhere;
}
.seg-sub { color: var(--muted); font-size: 12.5px; }
.seg-time { color: var(--ink-soft); font-size: 12.5px; font-weight: 700; flex: none; }

/* ---------- journey map ---------- */
.journey-snapshot { padding: 12px 12px 10px; display: grid; gap: 10px; }
.journey-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.journey-head-title { font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.journey-head-sub { font-size: 12px; color: var(--muted); text-align: right; }

.journey-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(140% 92% at 16% 4%, color-mix(in srgb, #dceffa 58%, transparent) 0%, rgba(220, 240, 250, 0) 58%),
    radial-gradient(125% 84% at 86% 70%, color-mix(in srgb, #ddeaf3 48%, transparent) 0%, rgba(220, 237, 247, 0) 56%),
    linear-gradient(180deg, #d4e6f2 0%, #e6f0f7 50%, #ecf2f7 100%);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44);
}
.journey-route { width: 100%; height: 100%; display: block; }

.journey-ocean-line,
.journey-world,
.journey-land-aus,
.journey-land-sg,
.journey-route-base,
.journey-route-done {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.journey-world {
  fill: color-mix(in srgb, #eef6fd 82%, transparent);
  stroke: color-mix(in srgb, #9bc0d3 54%, transparent);
  stroke-width: 1.15;
}
.journey-land-aus,
.journey-land-sg {
  fill: color-mix(in srgb, #dfebd8 70%, #d4edcf);
  stroke: color-mix(in srgb, #8fb68d 64%, transparent);
  stroke-width: 0.8;
}
.journey-ocean-line { stroke: color-mix(in srgb, #8dbbd1 72%, transparent); stroke-width: 4.2; }
.journey-route-base {
  stroke: color-mix(in srgb, #fff 64%, transparent);
  stroke-width: 3.1;
  stroke-dasharray: 6 9;
  filter: drop-shadow(0 2px 4px rgba(42, 36, 25, .20));
}
.journey-route-done {
  stroke: color-mix(in srgb, #ffffff 26%, #ffe29b);
  stroke-width: 2.9;
  opacity: 0.96;
  transition: stroke-dashoffset 420ms var(--ease-glide);
}

.journey-route-shadow {
  position: absolute;
  left: calc(var(--j-x) - 1px);
  top: calc(var(--j-y) - 1px);
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 234, 154, 0.46) 0%, rgba(255, 234, 154, 0.12) 35%, rgba(255, 234, 154, 0) 66%);
  transform: translate(-50%, -50%);
  animation: journeyGlow 3.2s ease-in-out infinite;
}

.journey-plane {
  position: absolute;
  left: var(--j-x);
  top: var(--j-y);
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(var(--j-r, -20deg));
  transform-origin: center;
  font-size: 20px;
  color: #fef8de;
  filter: drop-shadow(0 3px 4px rgba(25, 23, 18, .42));
  animation: journeyPlane 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes journeyGlow {
  0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.56; }
  52% { transform: translate(-50%, -50%) scale(1); opacity: 0.92; }
  100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.56; }
}

@keyframes journeyPlane {
  0% { transform: translate(-50%, -45%) rotate(var(--j-r, -20deg)); }
  50% { transform: translate(-50%, -55%) rotate(var(--j-r, -20deg)); }
  100% { transform: translate(-50%, -45%) rotate(var(--j-r, -20deg)); }
}

.journey-stop {
  position: absolute;
  left: var(--j-x);
  top: var(--j-y);
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}
.journey-stop:active { transform: translate(-50%, -50%) scale(.98); }

.journey-stop-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wash);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  box-shadow: 0 1px 6px rgba(43, 39, 30, .2);
  font-size: 11px;
}
.journey-stop-label {
  max-width: 68px;
  overflow: hidden;
  transform: translateY(-2px);
  display: grid;
}
.journey-stop-name {
  font-size: 11px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.journey-stop-time {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.journey-stop.is-active .journey-stop-dot {
  background: var(--tv-accent);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.journey-stop.is-flight .journey-stop-dot { color: #fff; background: #6fa3c6; }

.journey-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 0 4px;
}
.journey-strip-cell {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wash) 84%, transparent);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 9px;
  min-width: 0;
  scroll-snap-align: start;
}
.journey-strip-cell:active { transform: scale(.98); }
.journey-strip-cell.is-active { background: var(--tv-wash); color: var(--tv-accent-deep); }
.journey-strip-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 420px) {
  .journey-head { flex-direction: column; align-items: flex-start; }
  .journey-head-sub { text-align: left; }
  .journey-stop-label { display: none; }
  .journey-stop-dot { width: 20px; height: 20px; font-size: 10px; }
  .journey-stop { gap: 0; }
}

/* The illustrated journey is a story layer over the editable itinerary.
 * Every moving piece still comes from a segment; the art can disappear safely. */
.journey-masthead { 
  position: relative; min-height: 142px; overflow: hidden; display: flex; align-items: flex-end;
  margin: 0 0 14px; padding: 18px; border-radius: 24px;
  background: linear-gradient(110deg, #e8f3f3 0%, #f8e8c7 100%);
  box-shadow: 0 12px 28px rgba(69,54,32,.12), inset 0 1px rgba(255,255,255,.82);
}
.journey-masthead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(250,248,242,.98) 0%, rgba(250,248,242,.82) 42%, rgba(250,248,242,.04) 80%);
}
.journey-masthead-copy { position: relative; z-index: 2; max-width: 68%; }
.journey-masthead-kicker { color: var(--tv-accent-deep); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.journey-masthead-title { margin: 3px 0 4px; color: var(--ink); font-family: var(--font-display); font-size: clamp(27px, 8vw, 38px); line-height: .95; }
.journey-masthead-sub { margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.journey-masthead-art { position: absolute; z-index: 1; right: -3px; bottom: -18px; width: 47%; max-width: 190px; height: auto; filter: drop-shadow(0 10px 8px rgba(66,54,38,.18)); transform: rotate(5deg); animation: journeyMastheadFloat 5s ease-in-out infinite alternate; }
.journey-masthead.has-country-hero { min-height: 0; aspect-ratio: 1672 / 941; align-items: stretch; background: #f8edd9; }
.journey-masthead.has-country-hero::after,
.journey-masthead.has-country-hero .journey-masthead-copy { display: none; }
.journey-masthead.has-country-hero .journey-masthead-art { inset: 0; width: 100%; max-width: none; height: 100%; object-fit: contain; object-position: center; filter: none; transform: none; animation: none; }
.journey-metric-hotspot {
  --metric-halo: rgba(236, 139, 116, .54);
  position: absolute; z-index: 5; top: 60%; bottom: 5%; border: 0; border-radius: 18px;
  background: transparent; cursor: pointer; isolation: isolate; -webkit-tap-highlight-color: transparent;
}
.journey-metric-hotspot::after {
  content: ""; position: absolute; inset: -3px; z-index: -1; border: 3px solid var(--metric-halo);
  border-radius: inherit; opacity: 0; transform: scale(.94);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--metric-halo) 62%, transparent), 0 10px 24px color-mix(in srgb, var(--metric-halo) 22%, transparent);
  pointer-events: none;
}
.journey-metric-hotspot.is-plans { left: 3%; width: 31%; --metric-halo: rgba(226, 116, 84, .62); }
.journey-metric-hotspot.is-days { left: 35.5%; width: 29.5%; --metric-halo: rgba(230, 172, 34, .68); }
.journey-metric-hotspot.is-country { left: 66%; width: 30%; --metric-halo: rgba(94, 126, 99, .62); }
.journey-metric-hotspot.is-opening::after { animation: journeyMetricHalo 380ms cubic-bezier(.2,.78,.28,1) both; }
.journey-metric-hotspot:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--metric-halo) 72%, #fff); outline-offset: -4px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--metric-halo) 28%, transparent);
}
.journey-metric-hotspot:active { background: rgba(255,255,255,.12); transform: scale(.98); }
@keyframes journeyMetricHalo {
  0% { opacity: 0; transform: scale(.93); box-shadow: 0 0 0 0 color-mix(in srgb, var(--metric-halo) 68%, transparent); }
  34% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.08); box-shadow: 0 0 0 13px transparent; }
}
.journey-summary-fallback { margin-bottom: 14px; }
.journey-summary-home { margin: 0 0 13px; }
.journey-summary-composite {
  position: relative; overflow: hidden; aspect-ratio: 1672 / 941;
  border-radius: 24px; background: #fffaf0;
  box-shadow: 0 12px 28px rgba(69,54,32,.12);
}
.journey-summary-composite > img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.journey-summary-composite .journey-metric-hotspot {
  top: 59%; bottom: 5.5%; color: transparent;
}
.journey-summary-composite .journey-metric-hotspot > img,
.journey-summary-composite .journey-metric-preview-copy,
.journey-summary-composite .journey-metric-preview-fallback { visibility: hidden; }
.journey-summary-home.has-summary-art .today-tools { margin-top: 10px; }
.journey-summary-home .journey-masthead { margin-bottom: 0; }
.journey-summary-home .today-journey-summary.has-country-hero {
  aspect-ratio: 1672 / 535; border-radius: 0 0 23px 23px;
}
.journey-summary-home .today-journey-summary.has-country-hero .journey-masthead-art {
  top: 0; bottom: auto; height: 176%; object-fit: contain; object-position: top center;
}
.journey-hero-add {
  position: absolute; z-index: 7; top: 12px; right: 58px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(129,100,43,.25); border-radius: 50%;
  background: rgba(255,250,237,.88); color: #8b651c;
  box-shadow: 0 6px 15px rgba(73,53,25,.17), inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.journey-hero-add span { font: 500 27px/1 var(--font-display); transform: translateY(-1px); }
.journey-metric-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px;
}
.journey-metric-grid .journey-metric-hotspot {
  position: relative; inset: auto; width: auto; min-width: 0; min-height: 92px;
  display: grid; grid-template-columns: minmax(0, 54px) 1fr; align-items: center; gap: 4px;
  padding: 8px 7px; border: 1px solid rgba(91,70,44,.11); border-radius: 18px;
  color: var(--ink); text-align: left; overflow: visible;
  box-shadow: 0 7px 18px rgba(67,52,31,.11), inset 0 1px rgba(255,255,255,.8);
}
.journey-metric-grid .journey-metric-hotspot.is-plans { background: #f8b28a; }
.journey-metric-grid .journey-metric-hotspot.is-days { background: #fbcd78; }
.journey-metric-grid .journey-metric-hotspot.is-country { background: #ccd7c3; }
.journey-metric-grid .journey-metric-hotspot > img {
  width: 54px; height: 62px; object-fit: cover; object-position: center;
  border-radius: 18px; clip-path: inset(11% round 16px); transform: scale(1.2);
  filter: drop-shadow(0 6px 7px rgba(64,46,24,.2));
}
.journey-metric-preview-fallback { display: grid; place-items: center; font-size: 32px; }
.journey-metric-preview-copy { min-width: 0; display: grid; line-height: 1; }
.journey-metric-preview-copy strong { font-family: var(--font-display); font-size: clamp(24px, 7vw, 32px); }
.journey-metric-preview-copy small {
  margin-top: 5px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.sheet.journey-metric-detail-sheet {
  height: min(90dvh, 850px); max-height: min(90dvh, 850px);
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 30px 30px 0 0; overflow: hidden;
  transition: transform 240ms var(--ease-spring);
}
.sheet.journey-metric-detail-sheet.is-plans { background: #f8b28a; }
.sheet.journey-metric-detail-sheet.is-days { background: #fbcd78; }
.sheet.journey-metric-detail-sheet.is-country { background: #ccd7c3; }
.sheet.journey-metric-detail-sheet.is-pulling { transition: none; }
.journey-metric-detail-sheet .sheet-body { height: calc(100% - 19px); overflow: hidden; }
.journey-metric-modal {
  position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 13px; animation: journeyMetricReveal 460ms var(--ease-spring) both;
}
@keyframes journeyMetricReveal {
  from { opacity: 0; transform: translateY(20px) scale(.92) rotateX(-9deg); }
  to { opacity: 1; transform: none; }
}
.journey-metric-modal-hero {
  min-height: 124px; display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px;
  padding: 14px; border-radius: 24px; box-shadow: inset 0 1px rgba(255,255,255,.84), 0 10px 22px rgba(68,52,29,.11);
}
.journey-metric-modal-hero.is-plans { background: linear-gradient(135deg, #fbc19f, #ed9f75); color: #6f382d; }
.journey-metric-modal-hero.is-days { background: linear-gradient(135deg, #fdd485, #fac977); color: #654817; }
.journey-metric-modal-hero.is-country { background: linear-gradient(135deg, #d3dfcb, #b6c6af); color: #345746; }
.journey-metric-modal-close {
  position: absolute; z-index: 3; top: 8px; right: 8px; width: 28px; height: 28px;
  display: grid; place-items: center; padding: 0; border: 1px solid rgba(54,50,42,.1); border-radius: 999px;
  background: rgba(255,255,255,.58); color: rgba(35,42,42,.64); font: 700 19px/1 var(--font-body);
  box-shadow: 0 3px 8px rgba(60,45,27,.08); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .journey-metric-hotspot.is-opening::after { animation: none; opacity: .72; transform: scale(1); }
}
.journey-metric-modal-hero img,
.journey-metric-modal-fallback { width: 108px; height: 108px; object-fit: cover; filter: drop-shadow(0 7px 8px rgba(69,54,32,.2)); }
.journey-metric-modal-hero img { clip-path: inset(11% round 18px); transform: scale(1.2); }
.journey-metric-modal-hero > div { display: grid; gap: 2px; min-width: 0; text-transform: capitalize; }
.journey-metric-modal-hero small { font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.journey-metric-modal-hero strong { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.journey-metric-modal-hero span { font-size: 13px; font-weight: 900; }
.journey-plan-list { display: grid; align-content: start; max-height: none; overflow: auto; gap: 7px; padding-right: 2px; }
.journey-plan-list-row {
  display: grid; grid-template-columns: 26px 42px 1fr; align-items: center; gap: 8px;
  width: 100%; padding: 8px; border: 1px solid rgba(125,88,69,.12); border-radius: 15px;
  background: rgba(255,255,255,.72); color: var(--ink); text-align: left;
}
.journey-plan-number { color: #9e5a44; font-size: 10px; font-weight: 900; text-align: center; }
.journey-plan-list-row .kind-icon { width: 38px; height: 38px; }
.journey-plan-copy { display: grid; gap: 2px; min-width: 0; }
.journey-plan-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.journey-plan-copy small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.journey-calendar { min-height: 0; display: grid; align-content: start; overflow: auto; padding: 12px; border-radius: 22px; background: linear-gradient(155deg, #fff7d9, #f8d86e); box-shadow: inset 0 1px #fff; }
.journey-calendar-week,
.journey-calendar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.journey-calendar-week { grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; color: #89651d; font-size: 8px; font-weight: 900; text-align: center; }
.journey-calendar-day {
  min-height: 66px; display: grid; place-items: center; align-content: center; gap: 1px;
  padding: 5px; border: 1px solid rgba(151,112,31,.14); border-radius: 14px;
  background: rgba(255,255,255,.63); color: #654817;
}
.journey-calendar-day.has-plans { background: rgba(255,251,231,.96); box-shadow: 0 5px 12px rgba(116,82,20,.12); }
.journey-calendar-day.is-selected { border-color: #ae761d; background: #fff8dc; box-shadow: 0 0 0 3px rgba(181,123,27,.26), 0 7px 15px rgba(116,82,20,.18); transform: translateY(-2px); }
.journey-calendar-day small { font-size: 7px; font-weight: 900; text-transform: uppercase; }
.journey-calendar-day strong { font-family: var(--font-display); font-size: 20px; }
.journey-calendar-day span { font-size: 7px; font-weight: 800; }
.journey-day-agenda { display: grid; gap: 8px; margin-top: 12px; padding: 11px; border: 1px solid rgba(142,99,24,.2); border-radius: 17px; background: rgba(255,251,228,.78); box-shadow: inset 0 1px rgba(255,255,255,.84); }
.journey-day-agenda-head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 7px; color: #654817; }
.journey-day-agenda-head > span { padding: 4px 6px; border-radius: 999px; background: rgba(244,197,82,.32); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.journey-day-agenda-head strong { font-family: var(--font-display); font-size: 14px; }
.journey-day-agenda-head small { font-size: 8px; font-weight: 800; text-align: right; }
.journey-day-agenda-list { display: grid; gap: 6px; }
.journey-day-agenda-row { display: grid; grid-template-columns: 46px 38px 1fr; align-items: center; gap: 7px; width: 100%; padding: 7px; border: 1px solid rgba(142,99,24,.14); border-radius: 12px; background: rgba(255,255,255,.72); color: var(--ink); text-align: left; }
.journey-day-agenda-row time { color: #9a6621; font-size: 9px; font-weight: 900; }
.journey-day-agenda-row .kind-icon { width: 34px; height: 34px; border-radius: 0; background: transparent; box-shadow: none; }
.journey-day-agenda-row .kind-icon img { width: 34px; height: 34px; object-fit: contain; }
.journey-day-agenda-row > span { min-width: 0; display: grid; gap: 1px; }
.journey-day-agenda-row strong, .journey-day-agenda-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-day-agenda-row strong { font-size: 10px; }
.journey-day-agenda-row small, .journey-day-agenda-empty { color: var(--muted); font-size: 8px; }
.journey-day-agenda-empty { margin: 2px 0; text-align: center; }
.journey-country-detail { display: grid; gap: 10px; }
.journey-country-detail-art { width: 100%; aspect-ratio: 3 / 1; max-height: none; object-fit: cover; object-position: center; border-radius: 20px; background: #c6e7e3; box-shadow: 0 12px 24px rgba(39,91,92,.15); }
.journey-country-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.journey-country-facts div { display: grid; place-items: center; padding: 10px 5px; border-radius: 14px; background: #edf2e8; color: #345746; }
.journey-country-facts strong { font-family: var(--font-display); font-size: 20px; }
.journey-country-facts span { font-size: 8px; font-weight: 900; text-transform: uppercase; }
.journey-country-detail p,
.journey-metric-empty { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.sheet.journey-country-overview-sheet {
  width: min(100%, 460px); height: min(95dvh, 930px); max-height: min(95dvh, 930px);
  padding: 10px 10px calc(13px + env(safe-area-inset-bottom, 0px));
  border: 1px solid #ead8b9; border-radius: 31px 31px 0 0;
  background:
    radial-gradient(circle at 22% 10%, rgba(255,255,255,.72), transparent 28%),
    linear-gradient(145deg, #fffaf0, #f9edd8);
  box-shadow: 0 -18px 50px rgba(54,42,27,.19), inset 0 1px #fff;
  overflow: hidden;
}
.sheet.journey-country-overview-sheet::before {
  content: ""; position: absolute; inset: 9px; z-index: 0; border: 1px dashed #d9bd91;
  border-radius: 24px 24px 8px 8px; pointer-events: none;
}
.journey-country-overview-sheet .sheet-grab,
.journey-country-overview-sheet .sheet-body { position: relative; z-index: 1; }
.journey-country-overview-sheet .sheet-body { height: calc(100% - 19px); overflow: hidden; }
.country-overview {
  position: relative; height: 100%; display: grid; align-content: start; gap: 12px;
  padding: 9px 9px 5px; overflow: auto; overscroll-behavior: contain;
}
.country-overview-heading { display: grid; gap: 2px; padding: 4px 54px 0 5px; }
.country-overview-heading h2 {
  margin: 0; color: #061d45; font-family: var(--font-display); font-size: 31px; line-height: 1;
}
.country-overview-heading p { margin: 3px 0 0; color: #6f6b70; font-size: 13px; }
.country-overview-close {
  position: absolute; z-index: 8; top: 0; right: 1px; width: 46px; height: 46px; padding: 0;
  border: 2px solid #b94d39; border-radius: 50%; background: linear-gradient(145deg, #f47b60, #d85640);
  box-shadow: inset 0 0 0 3px #ef9c86, inset 0 0 0 5px #c94e39, 0 5px 11px rgba(96,49,34,.24);
}
.country-overview-close::before,
.country-overview-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 23px; height: 3px;
  border-radius: 99px; background: #fff4de; box-shadow: 0 1px #9b3e2d;
}
.country-overview-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.country-overview-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.country-overview-rail {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 4px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.country-overview-rail::-webkit-scrollbar { display: none; }
.country-overview-tab {
  flex: 0 0 auto; min-width: 128px; min-height: 54px; display: grid;
  grid-template-columns: 50px auto; align-items: center; gap: 8px; padding: 7px 11px;
  border: 1px dashed #d6ba8c; border-radius: 17px; background: rgba(255,250,239,.7);
  color: #102851; text-align: left;
}
.country-overview-tab.is-selected {
  border: 1px solid #83aeb0; background: linear-gradient(145deg, #d9efed, #bcdad8);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 5px 12px rgba(42,92,96,.14);
}
.country-overview-tab img { width: 50px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(51,43,31,.2)); }
.country-overview-tab strong { font-size: 13px; white-space: nowrap; }
.country-overview-empty-slot {
  flex: 0 0 54px; height: 54px; border: 2px dashed #dec69d; border-radius: 14px; background: rgba(255,255,255,.2);
}
.country-overview-count { flex: 0 0 auto; color: #68636a; font-size: 11px; white-space: nowrap; }
.country-overview-hero {
  position: relative; min-height: 260px; aspect-ratio: 1.38; overflow: hidden;
  border: 1px solid #e1c9a5; border-radius: 25px; background: #d8eff0;
  box-shadow: inset 0 0 0 4px rgba(255,250,239,.72), 0 8px 18px rgba(63,49,29,.13);
  touch-action: pan-y;
}
.country-overview-hero-art,
.country-overview-hero-fallback { width: 100%; height: 100%; object-fit: cover; }
.country-overview-hero-fallback {
  display: grid; place-items: center;
  background: linear-gradient(145deg, #d9ece8, #f6ddb4);
}
.country-overview-hero-fallback::before {
  content: ""; width: 45%; height: 45%; background-image: var(--country-flag); background-size: contain;
  background-position: center; background-repeat: no-repeat; filter: drop-shadow(0 8px 8px rgba(49,41,31,.2));
}
.country-overview-arrow {
  position: absolute; z-index: 5; top: 45%; width: 42px; height: 42px; padding: 0;
  border: 1px solid #bba273; border-radius: 50%; background: rgba(255,250,239,.9);
  box-shadow: 0 5px 14px rgba(43,39,29,.22), inset 0 1px #fff;
}
.country-overview-arrow::before,
.country-overview-change-arrow::before {
  content: ""; display: block; width: 10px; height: 10px; margin: auto;
  border-right: 3px solid #1f6267; border-bottom: 3px solid #1f6267;
}
.country-overview-arrow.is-previous { left: 11px; }
.country-overview-arrow.is-previous::before { transform: rotate(135deg) translate(-1px,-1px); }
.country-overview-arrow.is-next { right: 11px; }
.country-overview-arrow.is-next::before { transform: rotate(-45deg) translate(-1px,-1px); }
.country-overview-arrow:disabled { opacity: .48; }
.country-overview-destination,
.country-overview-date {
  position: absolute; z-index: 4; bottom: 15px; display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; border: 1px solid #ead8b9; border-radius: 17px;
  background: rgba(255,249,236,.92); box-shadow: 0 5px 12px rgba(54,43,29,.15);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.country-overview-destination { left: 12px; }
.country-overview-date { right: 12px; color: #3f4755; font-size: 11px; font-weight: 800; }
.country-overview-destination > img { width: 28px; height: 37px; object-fit: contain; }
.country-overview-destination > span { display: grid; gap: 2px; }
.country-overview-destination-kicker { color: #315f65; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.country-overview-destination-name { color: #071f48; font-family: var(--font-display); font-size: 21px; line-height: 1; }
.country-overview-date img { width: 23px; height: 23px; object-fit: contain; }
.country-overview-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.country-overview-fact {
  min-width: 0; min-height: 116px; display: grid; place-items: center; align-content: center; gap: 3px;
  padding: 9px 5px; border: 1px dashed #ddc59c; border-radius: 19px; background: rgba(255,251,241,.78);
  color: #071f48; box-shadow: 0 5px 12px rgba(54,43,29,.08), inset 0 1px #fff;
}
.country-overview-fact img { width: 54px; height: 54px; object-fit: contain; }
.country-overview-fact strong { font-family: var(--font-display); font-size: 31px; line-height: 1; }
.country-overview-fact span { color: #65636b; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.country-overview-info {
  min-height: 54px; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px;
  padding: 9px 13px; border: 1px solid #9bbec0; border-radius: 17px; background: #d8eceb;
  color: #233e64; font-size: 11px; line-height: 1.35; box-shadow: inset 0 1px rgba(255,255,255,.72);
}
.country-overview-info img { width: 34px; height: 34px; object-fit: contain; }
.country-overview-change {
  min-height: 50px; display: grid; grid-template-columns: 38px 1fr 24px; align-items: center; gap: 7px;
  width: 100%; padding: 7px 12px; border: 1px dashed #dec59a; border-radius: 17px;
  background: rgba(255,250,239,.78); color: #0b234a; text-align: left;
}
.country-overview-change > img { width: 32px; height: 32px; object-fit: contain; }
.country-overview-change strong { font-size: 12px; }
.country-overview-change-arrow::before { transform: rotate(-45deg); }
.country-overview-done {
  min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 2px solid #b94f39; border-radius: 18px; background: linear-gradient(145deg, #f47b60, #d95640);
  color: #fff9e8; box-shadow: inset 0 0 0 3px #ed9179, inset 0 0 0 5px #c84f3a, 0 7px 13px rgba(93,49,34,.22);
  font-family: var(--font-display); font-size: 21px;
}
.country-overview-done img { width: 32px; height: 32px; object-fit: contain; }
.country-place-list { padding: 6px 0 12px; }
@media (max-width: 410px) {
  .country-overview { gap: 10px; padding-inline: 5px; }
  .country-overview-heading h2 { font-size: 28px; }
  .country-overview-rail { gap: 6px; }
  .country-overview-tab { min-width: 122px; padding-inline: 8px; }
  .country-overview-empty-slot { flex-basis: 44px; height: 50px; }
  .country-overview-count { font-size: 10px; }
  .country-overview-hero { min-height: 238px; }
  .country-overview-destination, .country-overview-date { bottom: 10px; padding: 8px 10px; }
  .country-overview-destination-name { font-size: 18px; }
  .country-overview-date { font-size: 9px; }
  .country-overview-fact { min-height: 103px; }
  .country-overview-fact img { width: 46px; height: 46px; }
  .country-overview-fact strong { font-size: 27px; }
}
.journey-metric-artwork { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.journey-metric-artwork summary { padding: 11px 13px; color: var(--ink-soft); font-size: 10px; font-weight: 900; cursor: pointer; }
.journey-metric-approved-options { display: flex; gap: 8px; overflow-x: auto; padding: 0 10px 10px; }
.journey-metric-approved-option { flex: 0 0 82px; display: grid; gap: 4px; place-items: center; padding: 7px; border: 2px solid transparent; border-radius: 13px; background: var(--card); color: var(--ink); }
.journey-metric-approved-option.selected { border-color: var(--tv-accent); }
.journey-metric-approved-option img { width: 55px; height: 55px; object-fit: cover; clip-path: inset(11% round 13px); transform: scale(1.16); filter: drop-shadow(0 5px 6px rgba(64,46,24,.18)); }
.journey-metric-approved-option span { font-size: 8px; font-weight: 800; }
.journey-metric-modal-done { width: 100%; }

/* Expense entry stays fast, but no longer drops people into a generic form. */
.sheet.expense-editor-sheet { max-height: min(91vh, 820px); padding-top: 9px; border-radius: 30px 30px 0 0; }
.expense-editor { display: grid; gap: 13px; padding-bottom: 6px; }
.expense-editor-hero {
  display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 13px;
  min-height: 112px; padding: 15px; border-radius: 24px;
  background: linear-gradient(135deg, #fff3c8, #e6b45c 58%, #c9863d);
  color: #4d371f; box-shadow: inset 0 1px rgba(255,255,255,.82), 0 10px 22px rgba(87,58,23,.13);
}
.expense-editor-coin { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,250,220,.72); font-size: 48px; filter: drop-shadow(0 7px 6px rgba(87,58,23,.18)); animation: expenseCoinFloat 2.8s ease-in-out infinite alternate; }
@keyframes expenseCoinFloat { to { transform: translateY(-4px) rotate(4deg); } }
.expense-editor-hero > div { display: grid; gap: 2px; }
.expense-editor-hero small { font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.expense-editor-hero h2 { font-family: var(--font-display); font-size: 25px; line-height: 1; }
.expense-editor-hero p { font-size: 9px; line-height: 1.35; }
.expense-amount-row { display: grid; grid-template-columns: minmax(0,1fr) 100px; gap: 9px; }
.expense-amount-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid color-mix(in srgb, #d69b3d 32%, var(--line)); border-radius: 18px; background: #fffaf0; }
.expense-amount-field > span { color: #9b6a28; font-size: 10px; font-weight: 900; }
.expense-amount-field .input { min-width: 0; padding: 0; border: 0; background: transparent; font-family: var(--font-display); font-size: 28px; box-shadow: none; }
.expense-currency-field .field { height: 100%; }
.expense-currency-field .input { height: 100%; }
.expense-editor-section { display: grid; gap: 7px; }
.expense-editor-section > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.expense-category-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.expense-category-choice {
  display: grid; place-items: center; gap: 3px; min-height: 62px; padding: 7px;
  border: 2px solid transparent; border-radius: 16px; background: color-mix(in srgb, var(--tv-wash) 68%, #fff);
  color: var(--ink); text-transform: capitalize;
}
.expense-category-choice.selected { border-color: #d5a343; background: #fff5d6; box-shadow: 0 5px 12px rgba(110,75,23,.10); }
.expense-category-choice span { font-size: 25px; }
.expense-category-choice small { font-size: 8px; font-weight: 900; }
.expense-split-panel { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(135deg, rgba(255,255,255,.86), color-mix(in srgb, var(--tv-wash) 55%, #fff)); }
.expense-split-toggle { display: flex; align-items: center; gap: 9px; }
.expense-split-toggle input { width: 21px; height: 21px; accent-color: #d5a343; }
.expense-split-toggle span { display: grid; gap: 1px; }
.expense-split-toggle strong { font-size: 10px; }
.expense-split-toggle small { color: var(--muted); font-size: 8px; }
.expense-participant-picker { display: flex; gap: 9px; overflow-x: auto; transition: opacity .2s; }
.expense-split-panel.is-off .expense-participant-picker { opacity: .35; pointer-events: none; }
.expense-participant { display: grid; place-items: center; gap: 3px; min-width: 62px; padding: 6px; border: 2px solid transparent; border-radius: 15px; background: rgba(255,255,255,.72); color: var(--ink); }
.expense-participant.selected { border-color: #d5a343; background: #fff6dc; }
.expense-participant img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.expense-participant span { max-width: 58px; overflow: hidden; font-size: 8px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.expense-editor-actions { display: flex; align-items: center; gap: 9px; margin-top: 2px; }

/* The expense sheet uses the same stitched travel-kit hierarchy as the approved cost card. */
.sheet.expense-editor-sheet { max-height: min(94vh, 920px); }
.expense-editor { gap: 15px; padding: 1px 1px 12px; }
.expense-editor-hero { grid-template-columns: 101px 1fr; min-height: 132px; padding: 16px 18px; border: 2px dashed rgba(165,112,51,.48); border-radius: 27px; background: linear-gradient(135deg, #fff6d9, #f8d585 58%, #f0ba5b); color: #422717; box-shadow: inset 0 1px rgba(255,255,255,.92), 0 11px 23px rgba(87,58,23,.14); }
.expense-editor-wallet-art { position: relative; display: block; width: 96px; height: 92px; object-fit:contain; filter: drop-shadow(0 8px 8px rgba(79,49,20,.2)); animation: expenseCoinFloat 2.8s ease-in-out infinite alternate; }
.expense-editor-wallet-receipt { position: absolute; top: 0; left: 28px; width: 47px; height: 59px; padding-top: 13px; border-radius: 7px; background: #fff2cf; color: #9c7a51; font-size: 23px; font-weight: 900; line-height: .55; text-align: center; transform: rotate(8deg); box-shadow: inset 0 0 0 1px rgba(114,76,35,.18); }
.expense-editor-wallet { position: absolute; bottom: 6px; left: 2px; display: grid; place-items: center; width: 77px; height: 55px; border: 3px solid #235e63; border-radius: 13px; background: linear-gradient(145deg, #3f9a9d, #166167); color: #d8eee2; font-size: 30px; box-shadow: inset 0 2px rgba(255,255,255,.25); }
.expense-editor-wallet-coin { position: absolute; right: 1px; bottom: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f4bd38; color: #845915; font-family: var(--font-display); font-size: 18px; box-shadow: inset 0 2px #ffde7d, 0 3px 4px rgba(80,45,10,.2); }
.expense-editor-hero small { font-size: 9px; letter-spacing: .16em; }
.expense-editor-hero h2 { font-size: 34px; line-height: .96; }
.expense-editor-hero p { color: #694226; font-size: 11px; font-weight: 700; }
.expense-title-field { display: grid; gap: 6px; }
.expense-title-control { position: relative; }
.expense-title-control .input { padding-right: 46px; }
.expense-title-pencil {
  position: absolute; right: 13px; top: 50%; translate: 0 -50%;
  width: 31px; height: 31px; object-fit:contain;
  pointer-events: none;
}
.expense-amount-row {
  grid-template-columns: minmax(0,1fr) 124px; gap: 0; padding: 8px 9px;
  border: 1px solid #ead8b8; border-radius: 22px;
  background: linear-gradient(135deg, #fffefa, #fff7e7);
  box-shadow: inset 0 1px rgba(255,255,255,.98), 0 7px 14px rgba(81,55,28,.11);
}
.expense-amount-field {
  grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 6px 10px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.expense-amount-field > span { padding: 5px 8px; border-radius: 11px; background: #f2bf4d; color: #704812; font-size: 11px; }
.expense-amount-field .input { font-size: 52px; letter-spacing: -.06em; }
.expense-currency-field {
  position:relative; padding-left: 12px; border-left: 1px solid #e0cfb1;
}
.expense-currency-field .field { gap: 5px; }
.expense-currency-field .field-label { font-size: 10px; }
.expense-currency-field .input {
  height: 100%; min-height: 53px; padding: 10px 38px 10px 12px;
  border-color: #dfcfb5; border-radius: 14px; background: #fffdf8; font-size: 17px;
  box-shadow: 0 4px 8px rgba(76,52,26,.1); appearance:none; -webkit-appearance:none;
}
.expense-select-chevron { position:absolute; right:13px; bottom:17px; width:17px; height:11px; object-fit:contain; pointer-events:none; }
.expense-category-picker { gap: 9px; }
.expense-category-choice { min-height: 108px; padding: 8px 4px; border: 1px solid #e7d8bd; border-radius: 18px; background: linear-gradient(145deg, #fffefa, #f9f0de); box-shadow: inset 0 1px rgba(255,255,255,.95), 0 5px 10px rgba(71,47,21,.08); }
.expense-category-choice.selected { border: 3px solid #d5a343; background: linear-gradient(145deg, #fff8df, #f6dda3); box-shadow: 0 5px 12px rgba(110,75,23,.16); }
.expense-category-choice > img { width:66px; height:66px; object-fit:contain; filter:drop-shadow(0 4px 4px rgba(74,49,22,.18)); }
.expense-category-choice small { font-size: 10px; }
.expense-split-panel { padding: 13px; border-color: #e1d0b7; background: linear-gradient(135deg, #fffefa, #f9f0de); box-shadow: 0 5px 12px rgba(71,47,21,.07); }
.expense-paid-field { display: grid; gap: 6px; }
.expense-paid-control { position: relative; }
.expense-paid-control .input {
  position:absolute; inset:0; z-index:3; width:100%; min-height:52px;
  opacity:0; cursor:pointer;
}
.expense-paid-chevron { position:absolute; right:13px; top:50%; translate:0 -50%; width:17px; height:11px; object-fit:contain; pointer-events:none; }
.expense-paid-name {
  display:flex; align-items:center; min-height:52px; padding:0 42px 0 55px;
  border:1px solid var(--line); border-radius:14px; background:#fffdf8;
  color:var(--ink); font-size:15px; box-shadow:0 3px 8px rgba(76,52,26,.08);
}
.expense-paid-face {
  position: absolute; z-index: 2; left: 8px; top: 50%; translate: 0 -50%;
  width: 38px; height: 38px; border-radius: 50%; object-fit: contain;
  background: #5fa5a4; box-shadow: 0 2px 5px rgba(55,48,37,.18); pointer-events: none;
}
.expense-date-field { position:relative; }
.expense-date-field .input { padding-right:48px; }
.expense-date-field input[type="date"]::-webkit-calendar-picker-indicator { opacity:0; width:38px; height:100%; cursor:pointer; }
.expense-date-calendar { position:absolute; right:11px; bottom:7px; width:38px; height:38px; object-fit:contain; pointer-events:none; }
.expense-split-panel { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.expense-split-panel .expense-participant-picker { grid-column: 2; grid-row: 1; overflow: visible; }
.expense-split-panel .expense-participant {
  min-width: 0; padding: 0; margin-left: -10px; border: 0; background: transparent;
}
.expense-split-panel .expense-participant:first-child { margin-left: 0; }
.expense-split-panel .expense-participant img {
  width: 39px; height: 39px; border: 2px solid #fff7e8; box-shadow: 0 2px 5px rgba(55,48,37,.18);
}
.expense-split-panel .expense-participant span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
@media (max-width: 410px) {
  .expense-editor-hero { grid-template-columns: 88px 1fr; min-height: 120px; padding: 14px 15px; }
  .expense-editor-wallet-art { scale: .9; transform-origin: left center; }
  .expense-editor-hero h2 { font-size: 31px; }
  .expense-editor-hero p { font-size: 10px; }
  .expense-amount-row { grid-template-columns: minmax(0,1fr) 111px; }
  .expense-amount-field .input { font-size: 45px; }
  .expense-category-choice { min-height: 98px; }
  .expense-category-choice > img { width:58px; height:58px; }
}
@keyframes journeyMastheadFloat { from { transform: rotate(4deg) translateY(2px); } to { transform: rotate(7deg) translateY(-5px); } }
.journey-summary { padding: 14px; }
.journey-summary-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.journey-summary-stats .count-cell {
  min-width: 0; padding: 10px 6px 12px; text-align: center;
  border-radius: 15px; background: color-mix(in srgb, var(--wash) 72%, #fff);
}
.journey-summary-stats .count-art,
.journey-summary-stats .count-art-fallback { display: block; width: 36px; height: 36px; margin: 0 auto 4px; object-fit: contain; }
.journey-summary-stats .count-art-fallback { display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.78); font-size: 20px; }
.journey-summary-stats .count-num { display: block; font-family: var(--font-display); font-size: 25px; font-weight: 900; }
.journey-summary-stats .count-lab { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.journey-metric-card { position: relative; min-height: 102px; cursor: pointer; perspective: 600px; }
.journey-metric-front, .journey-metric-back { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 8px 5px; border-radius: inherit; backface-visibility: hidden; transition: transform .42s var(--ease-spring), opacity .24s ease; }
.journey-metric-front { transform: rotateY(0deg); }
.journey-metric-back { gap: 6px; transform: rotateY(180deg); background: color-mix(in srgb, var(--tv-wash) 82%, #fff); opacity: 0; pointer-events: none; }
.journey-metric-card.is-flipped .journey-metric-front { transform: rotateY(-180deg); opacity: 0; pointer-events: none; }
.journey-metric-card.is-flipped .journey-metric-back { transform: rotateY(0deg); opacity: 1; pointer-events: auto; }
.journey-metric-back small { color: var(--ink-soft); font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.journey-metric-change, .journey-metric-done { border: 0; border-radius: 999px; padding: 5px 8px; color: var(--tv-accent-deep); background: rgba(255,255,255,.8); font: inherit; font-size: 8px; font-weight: 900; }
.journey-metric-done { color: var(--muted); background: transparent; }
.journey-metric-options { display: none; width: 100%; max-height: 78px; overflow: auto; padding: 2px; }
.journey-metric-card.is-choosing .journey-metric-options { display: grid; gap: 4px; }
.journey-metric-option { display: grid; grid-template-columns: 21px 1fr; align-items: center; gap: 4px; width: 100%; padding: 3px; border: 1px solid transparent; border-radius: 8px; background: rgba(255,255,255,.7); color: var(--ink-soft); font: inherit; font-size: 7px; font-weight: 800; text-align: left; }
.journey-metric-option.selected { border-color: var(--tv-ring); color: var(--tv-accent-deep); }
.journey-metric-option img { width: 20px; height: 20px; object-fit: contain; }
.journey-story { display: grid; gap: 14px; margin: 18px 0 30px; }
.journey-story.no-heading { margin-top: 0; }
.journey-story-heading,
.journey-singapore-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.journey-kicker {
  display: block; color: var(--tv-accent-deep); font-size: 10px; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
}
.journey-story-title { margin: 2px 0 0; font-family: var(--font-display); font-size: 25px; line-height: 1; }
.journey-live-chip,
.journey-map-live {
  max-width: 47%; flex: none; padding: 6px 9px; border-radius: 999px;
  background: var(--tv-wash); color: var(--tv-accent-deep); font-size: 10px;
  line-height: 1.15; font-weight: 800; text-align: right;
}

.journey-australia-card {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 25px;
  background-image: var(--journey-australia-map, linear-gradient(145deg, #ceeafa, #f7dfaa));
  background-position: center; background-size: cover;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 14px 35px rgba(69, 54, 32, .16), inset 0 1px rgba(255,255,255,.75);
}
.journey-flight-overview {
  background-color: #58b6bf;
  background-image: var(--journey-ocean-texture, linear-gradient(155deg, #78cbd1 0%, #58b6bf 50%, #3f99a7 100%));
  background-position: center;
  background-size: cover;
}
.journey-flight-interactive {
  position: absolute; inset: 0; z-index: 1; touch-action: none; cursor: grab;
  transform: translate3d(var(--map-x, 0px), var(--map-y, 0px), 0) scale(var(--map-scale, 1)) rotate(var(--map-rotate, 0deg));
  transform-origin: center; transition: transform .18s ease-out;
}
.journey-flight-interactive.is-gesturing { cursor: grabbing; transition: none; }
.journey-flight-land {
  position: absolute; z-index: 1;
  overflow: hidden; border: 0; border-radius: 0;
  background-color: transparent; background-position: center; background-size: contain; background-repeat: no-repeat;
  box-shadow: none; mix-blend-mode: normal;
}
.journey-flight-land.is-origin {
  right: -2%; bottom: -4%; width: 63%; height: 72%;
  background-image: var(--journey-origin-map, linear-gradient(145deg, #cce6b1, #f4d89b));
}
.journey-flight-land.is-destination {
  left: 5%; top: 2%; width: 25%; height: 57%;
  background-image: var(--journey-destination-map, linear-gradient(145deg, #b8e1ad, #f7cf8e));
}
/* Ready-to-depart overview: keep the complete Australia land artwork centred
 * as the hero while Singapore remains visible in the distance. Playback
 * removes this class before entering the closer runway camera sequence. */
.journey-flight-interactive.is-idle .journey-flight-land.is-origin {
  left: 14%; right: auto; bottom: 1%; width: 74%; height: 94%;
}
.journey-flight-interactive.is-idle .journey-flight-land.is-destination {
  left: 2%; top: 5%; width: 21%; height: 48%;
}
.journey-water-detail {
  position: absolute; z-index: 1; height: auto; object-fit: contain;
  pointer-events: none; filter: drop-shadow(0 2px 3px rgba(28,72,77,.2));
}
.journey-water-detail.is-detail-1 { left: 42%; top: 8%; width: 6.5%; rotate: -5deg; }
.journey-water-detail.is-detail-2 { left: 29%; top: 66%; width: 5.5%; rotate: 7deg; }
.journey-water-detail.is-detail-3 { left: 72%; top: 9%; width: 7%; rotate: 4deg; }
.journey-water-detail.is-detail-4 { left: 35%; top: 18%; width: 7%; rotate: -4deg; }
.journey-water-detail.is-detail-5 { left: 9%; top: 69%; width: 2.2%; rotate: -8deg; }
.journey-water-detail.is-detail-6 { left: 31%; top: 71%; width: 2.1%; rotate: 7deg; }
.journey-water-detail.is-detail-7 { left: 73%; top: 17%; width: 2%; rotate: -4deg; }
.journey-water-detail.is-detail-8 { left: 84%; top: 22%; width: 2.1%; rotate: 5deg; }
.journey-water-detail.is-detail-9 { left: 27%; top: 79%; width: 6%; }
.journey-water-detail.is-detail-10 { left: 16%; top: 84%; width: 5.5%; }
.journey-water-detail.is-detail-11 { left: 54%; top: 20%; width: 6%; rotate: -7deg; }
.journey-water-detail.is-detail-12 { left: 49%; top: 13%; width: 9%; }
.journey-flight-place {
  position: absolute; z-index: 2; max-width: 86%; padding: 5px 8px; border-radius: 10px;
  background: rgba(255,250,238,.86); color: #43372a; box-shadow: 0 3px 10px rgba(48,40,27,.18);
  font-size: 9px; font-weight: 900;
}
.journey-island { position: absolute; z-index: 2; width: 24px; height: 9px; border-radius: 70% 35% 60% 40%; background: #c9ab71; box-shadow: 0 3px 0 #76a87d, 0 5px 7px rgba(36,94,104,.22); opacity: .92; }
.journey-island::before { content: ""; position: absolute; width: 5px; height: 8px; left: 10px; top: -5px; border-radius: 80% 20% 70% 30%; background: #5d956b; transform: rotate(-20deg); }
.journey-island::after { content: ""; position: absolute; width: 3px; height: 3px; left: 6px; top: 3px; border-radius: 50%; background: #f9e5aa; box-shadow: 8px -1px 0 #f9e5aa; }
.island-one { left: 44%; top: 31%; transform: rotate(-12deg) scale(.78); }
.island-two { left: 57%; top: 63%; transform: rotate(18deg) scale(.58); }
.island-three { left: 39%; top: 59%; transform: rotate(-4deg) scale(.48); }
.journey-boat { position: absolute; z-index: 3; width: 21px; height: 13px; filter: drop-shadow(0 2px 2px rgba(27,78,89,.28)); animation: journeyBoatDrift 7s ease-in-out infinite alternate; }
.journey-boat::before { content: ""; position: absolute; left: 1px; bottom: 0; width: 19px; height: 6px; border-radius: 2px 2px 9px 9px; background: #f4eee0; border-bottom: 3px solid #c66b4d; }
.journey-boat::after { content: ""; position: absolute; left: 9px; bottom: 6px; width: 0; height: 0; border-right: 0 solid transparent; border-left: 8px solid transparent; border-bottom: 11px solid #fff4cf; }
.boat-one { left: 47%; top: 53%; }
.boat-two { left: 66%; top: 42%; font-size: 11px; animation-delay: -2s; }
@keyframes journeyBoatDrift { from { transform: translateX(-4px) rotate(-3deg); } to { transform: translateX(6px) rotate(3deg); } }
.journey-flight-land.is-origin .journey-flight-place { right: 5%; bottom: 19%; }
.journey-flight-land.is-destination .journey-flight-place { left: 3%; top: 8%; }
.journey-sea-life {
  position: absolute; z-index: 2; width: 0; height: 0; opacity: .62;
  border-right: 7px solid transparent; border-bottom: 17px solid #4f7f8a; border-left: 7px solid transparent;
  filter: drop-shadow(0 2px 2px rgba(22,80,90,.24));
  animation: journeySeaLife 4.6s ease-in-out infinite;
}
.journey-sea-life.is-shark { left: 45%; top: 60%; }
.journey-flight-status {
  position: absolute; z-index: 7; top: 12px; right: 12px;
  min-width: 34px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px;
  background: rgba(255,250,239,.9); color: #385966; box-shadow: 0 4px 12px rgba(27,72,82,.22);
  font-size: 10px; font-weight: 900; text-align: center;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.journey-map-reset,
.journey-map-hint { position: absolute; z-index: 8; bottom: 83px; }
.journey-map-reset { right: 12px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(255,250,239,.8); color: #385966; font-size: 9px; font-weight: 800; }
.journey-flight-play {
  position: absolute; z-index: 9; left: 12px; top: 50px;
  min-width: 62px; min-height: 34px; border: 1px solid rgba(255,255,255,.78); border-radius: 999px;
  padding: 7px 11px; background: rgba(255,250,239,.9); color: #3f5860;
  box-shadow: 0 4px 13px rgba(27,72,82,.18); backdrop-filter: blur(7px);
  font: inherit; font-size: 10px; font-weight: 900; white-space: nowrap;
}
.journey-map-hint { right: 12px; bottom: 61px; color: rgba(255,255,255,.86); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(26,77,87,.55); }
.journey-map-tag,
.journey-map-corner {
  position: absolute; z-index: 6; left: 12px; top: 12px; padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.72); border-radius: 12px;
  background: rgba(255,250,240,.82); box-shadow: 0 4px 14px rgba(50,39,21,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #463c30; font-size: 11px; font-weight: 900;
}
.journey-sydney-pin {
  position: absolute; z-index: 5; left: 82%; top: 78%; display: flex;
  align-items: center; gap: 5px; transform: translate(-50%, -50%);
  color: #4a3729; font-size: 10px; font-weight: 900; text-shadow: 0 1px 2px #fff;
}
.journey-pin-dot {
  width: 11px; height: 11px; border: 3px solid white; border-radius: 50%;
  background: #e15e55; box-shadow: 0 2px 6px rgba(62,40,28,.35);
}
.journey-flight-arc { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.journey-flight-arc path {
  fill: none; stroke: rgba(255,250,225,.98); stroke-width: .58;
  stroke-linecap: round; stroke-dasharray: 1.15 2.5;
  filter: drop-shadow(0 1px 1px rgba(25,79,88,.62));
}
.journey-airport-pin {
  position: absolute; z-index: 5; width: 12px; height: 12px; border: 3px solid #fffaf0;
  border-radius: 50%; background: #df654f; box-shadow: 0 2px 7px rgba(43,64,65,.38);
  transform: translate(-50%, -50%);
}
.journey-airport-pin.is-origin { left: 80.5%; top: 69.5%; }
.journey-airport-pin.is-destination { left: 22.1%; top: 17.9%; }
.journey-family-plane {
  position: absolute; z-index: 4; left: var(--plane-x); top: var(--plane-y);
  width: clamp(74px, 24%, 132px); height: auto;
  transform: translate(-50%, -50%) rotate(var(--plane-r)) scaleX(var(--plane-flip, 1)) scale(var(--plane-scale, 1));
  transform-origin: 50% 55%; filter: drop-shadow(0 8px 8px rgba(39,34,26,.28));
  transition: left 1.1s var(--ease-glide), top 1.1s var(--ease-glide), transform 1.1s var(--ease-glide), opacity .5s ease;
  animation: journeyFamilyPlane 2.8s ease-in-out infinite;
}
.journey-family-plane.is-flight-control { cursor: pointer; outline: none; }
.journey-family-plane.is-flight-control:focus-visible { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 5px var(--tv-accent)); }
.journey-plane-fallback { display: grid; place-items: center; font-size: 46px; }
.journey-australia-copy {
  position: absolute; z-index: 6; left: 12px; right: 12px; bottom: 12px;
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 15px;
  background: linear-gradient(100deg, rgba(255,250,239,.92), rgba(255,250,239,.67));
  box-shadow: 0 5px 18px rgba(48,38,25,.12);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.journey-australia-copy strong { font-size: 13px; }
.journey-australia-copy span { color: #625849; font-size: 11px; }

.journey-ocean-leg {
  position: relative; min-height: 136px; padding: 14px 2px 3px;
}
.journey-ocean-leg small {
  position: absolute; left: 50%; bottom: 3px; min-width: 46px;
  margin-top: 0; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--tv-accent-deep); box-shadow: 0 3px 10px rgba(54,47,34,.09);
  font-size: 10px; font-weight: 900; text-align: center; transform: translateX(-50%);
}
.journey-ocean-flight-control {
  position: absolute; top: 6px; left: 50%; min-width: 76px; min-height: 34px;
  margin: 0; padding: 7px 13px; border: 1px solid color-mix(in srgb, var(--tv-ring) 56%, #fff);
  border-radius: 999px; background: var(--card); color: var(--tv-accent-deep);
  box-shadow: 0 5px 14px rgba(54,47,34,.12); font-size: 10px; font-weight: 900; transform: translateX(-50%);
}
.journey-city {
  position: absolute; top: 48px; z-index: 3; color: var(--ink-soft);
  font-family: var(--font-display); font-size: 12px; font-weight: 900;
}
.journey-city.is-origin { left: 2px; }
.journey-city.is-destination { right: 2px; }
.journey-ocean-track,
.journey-home-track {
  position: absolute; display: block; left: 24px; right: 24px; top: 92px; height: 4px; border-radius: 99px;
  background: color-mix(in srgb, var(--tv-accent) 82%, #4f7c64);
}
.journey-ocean-endpoint {
  position:absolute; z-index:3; top:50%; width:13px; height:13px;
  border:3px solid #fffaf0; border-radius:50%; background:#df654f;
  box-shadow:0 2px 7px rgba(73,43,31,.32); transform:translate(-50%,-50%);
}
.journey-ocean-endpoint.is-origin { left:0; }
.journey-ocean-endpoint.is-destination { left:100%; }
.journey-ocean-done { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--tv-accent); }
.journey-ocean-plane,
.journey-home-plane {
  position: absolute; z-index: 2; top: 50%; width: 58px; height: auto;
  transform: translate(-50%, -51%); filter: drop-shadow(0 4px 4px rgba(42,35,25,.23));
  transition: left 1s var(--ease-glide);
}
.journey-ocean-plane { transform: translate(-50%, -51%) scaleX(-1); }
.journey-ocean-plane.is-returning { transform: translate(-50%, -51%) scaleX(1); }
.journey-home-plane { transform: translate(-50%, -51%); }

.journey-singapore-card {
  overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 70%, #fff);
  border-radius: 26px; background: var(--card);
  box-shadow: 0 16px 40px rgba(72,59,35,.12);
}
.journey-singapore-head { padding: 15px 15px 12px; }
.journey-singapore-head h3 { margin: 3px 0 0; font-family: var(--font-display); font-size: 20px; }
.journey-singapore-map {
  position: relative; width: 100%;
  /* Keep the complete portrait map inside one usable phone screen together
     with its title and day controls. On short phones the map scales down
     instead of cropping either end. */
  height: min(760px, calc((100vw - 32px) * 16 / 9), calc(100svh - 220px));
  min-height: 348px;
  overflow: hidden;
  background-image: var(--journey-singapore-map, linear-gradient(165deg, #caedf1, #bedda6 50%, #8ed3db));
  background-position: center; background-size: contain; background-repeat: no-repeat;
  background-color: #fff9ef;
  border-block: 1px solid rgba(255,255,255,.7);
}
.journey-map-day-controls {
  position: absolute; z-index: 9; top: 10px; right: 12px;
  display: flex; align-items: center; gap: 7px; padding: 4px 6px;
  border: 1px solid rgba(119,91,52,.2); border-radius: 999px;
  background: rgba(255,250,239,.9); box-shadow: 0 4px 12px rgba(55,44,28,.16);
  backdrop-filter: blur(5px);
}
.journey-map-day-arrow {
  width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  border: 1px solid color-mix(in srgb, var(--tv-accent) 44%, #c9b996);
  border-radius: 50%; background: #fffaf0; color: var(--tv-accent-deep);
  font-family: var(--font-display); font-size: 27px; line-height: 1;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 2px 5px rgba(55,44,28,.12);
}
.journey-map-day-arrow:disabled { opacity: .34; }
.journey-map-day-label {
  min-width: 42px; color: #4e4233; font-size: 10px; font-weight: 900;
  text-align: center; text-transform: uppercase; letter-spacing: .08em;
}
.journey-map-autoplay {
  min-height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--tv-accent) 50%, #b98a52);
  border-radius: 999px; background: linear-gradient(145deg, #f3c65d, #dea73c); color: #43301c;
  font: 900 10px/1 var(--font-display); letter-spacing: .04em; box-shadow: inset 0 1px rgba(255,255,255,.58), 0 2px 5px rgba(55,44,28,.16);
}
.journey-map-autoplay.is-playing { background: linear-gradient(145deg, #ef7c61, #d8523e); color: #fffaf3; }
.journey-activity-marker {
  /* The active activity belongs to the travelling group, but must never cover
     them. Keep it as a compact thought bubble above their heads instead. */
  position: absolute; z-index: 8; left: var(--family-x); top: var(--family-y); width: 51px; height: 51px; max-height: 59px;
  object-fit: contain; transform: translate(-50%, -265%); transform-origin: 50% 100%; pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(38,45,38,.28)); transition: left .7s ease, top .7s ease, opacity .25s ease;
}
.journey-activity-marker img { display:block; width:100%; height:100%; object-fit:contain; }
.journey-activity-marker::before,
.journey-activity-marker::after {
  content: ""; position: absolute; z-index: -1; border: 1px solid rgba(161,119,63,.32); border-radius: 50%;
  background: rgba(255,250,239,.92); box-shadow: 0 2px 3px rgba(38,45,38,.16);
}
.journey-activity-marker::before { width: 9px; height: 9px; right: 20%; bottom: -11px; }
.journey-activity-marker::after { width: 5px; height: 5px; right: 5%; bottom: -19px; }
.journey-activity-marker.is-hidden { opacity: 0; }
.journey-day-plan.is-playing {
  background: color-mix(in srgb, var(--sun) 18%, #fff9ef); outline: 2px solid color-mix(in srgb, var(--sun) 52%, transparent);
  outline-offset: -2px;
}
@media (max-width: 600px) {
  .journey-map-day-controls {
    right: calc(100% - min(420px, calc(100% - 12px)));
  }
}
.journey-singapore-route { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.journey-singapore-route path {
  fill: none; stroke: rgba(255,252,232,.96); stroke-width: 1.35;
  stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 .6px .7px rgba(52,63,38,.58));
}
.journey-map-corner { display: grid; }
.journey-map-corner span { font-family: var(--font-display); font-size: 17px; }
.journey-map-corner small { font-size: 9px; color: #6a5e4c; }
.journey-attraction-pin {
  position: absolute; z-index: 3; left: var(--pin-x); top: var(--pin-y);
  display: grid; justify-items: center; border: 0; padding: 0;
  background: none; color: #372f25; transform: translate(-50%, -50%);
  opacity: .74; transition: opacity .2s ease, transform .2s ease;
}
.journey-attraction-pin.is-day,
.journey-attraction-pin.is-current { z-index: 5; opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
.journey-attraction-number {
  position: relative; width: 29px; height: 29px; display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--tv-accent) 68%, #8b6c32);
  border-radius: 50% 50% 50% 12px; background: linear-gradient(145deg, #fffaf0, #f1dfb9);
  color: var(--tv-accent-deep); box-shadow: 0 4px 9px rgba(50,39,24,.24), inset 0 1px rgba(255,255,255,.9);
  font-size: 10.5px; font-weight: 950; transform: rotate(-9deg);
}
.journey-attraction-number > span { transform: rotate(9deg); }
.journey-attraction-number::after {
  content: ""; position: absolute; width: 5px; height: 5px; right: -2px; bottom: -2px;
  border-radius: 50%; background: var(--tv-accent); box-shadow: 0 1px 3px rgba(50,39,24,.25);
}
.journey-attraction-pin.is-current .journey-attraction-number {
  background: linear-gradient(145deg, color-mix(in srgb, var(--sun) 38%, #fff), #efd290);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 25%, transparent), 0 4px 10px rgba(50,39,24,.28);
}
.journey-attraction-label {
  display: none; width: max-content; max-width: 96px; margin-top: 3px; padding: 3px 5px;
  border-radius: 6px; background: rgba(255,251,242,.88); font-size: 8px; font-weight: 900;
}
.journey-attraction-pin.is-current .journey-attraction-label { display: block; }
.journey-family-marker {
  position: absolute; z-index: 7; left: var(--family-x); top: var(--family-y);
  width: 76px; max-height: 92px; object-fit: contain;
  transform: translate(-50%, -88%); transform-origin: 50% 100%;
  filter: drop-shadow(0 7px 6px rgba(47,38,25,.36));
  transition: left .9s var(--ease-glide), top .9s var(--ease-glide), opacity .25s ease;
  animation: journeyFigurine 2.4s ease-in-out infinite;
  pointer-events: none;
}
.journey-family-marker.is-vehicle { width: 96px; max-height: 82px; transform: translate(-50%, -68%); }
.journey-family-marker.is-hidden { opacity: 0; }
.journey-family-fallback { display: grid; place-items: center; font-size: 40px; }
.journey-day-tabs {
  display: flex; gap: 7px; overflow-x: auto; padding: 12px 12px 7px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.journey-day-tabs::-webkit-scrollbar { display: none; }
.journey-day-tab {
  flex: 0 0 68px; display: grid; gap: 2px; padding: 8px 6px; border: 1px solid var(--line);
  border-radius: 13px; background: var(--bg); color: var(--ink-soft); scroll-snap-align: start;
}
.journey-day-tab strong { font-size: 11px; }
.journey-day-tab span { color: var(--muted); font-size: 9px; }
.journey-day-tab.is-selected {
  border-color: color-mix(in srgb, var(--tv-accent) 55%, var(--line));
  background: var(--tv-wash); color: var(--tv-accent-deep); box-shadow: inset 0 -2px var(--tv-accent);
}
.journey-day-panel { display: grid; gap: 3px; padding: 8px 12px 14px; }
.journey-day-panel-title { font-size: 13px; }
.journey-day-panel-sub { min-height: 16px; color: var(--muted); font-size: 10px; }
.journey-day-panel-rows { display: grid; gap: 6px; margin-top: 7px; }
.journey-day-plan {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px; background: color-mix(in srgb, var(--wash) 48%, #fff); text-align: left;
}
.journey-day-plan .kind-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.journey-day-plan-main { min-width: 0; display: grid; gap: 1px; }
.journey-day-plan-main strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.journey-day-plan-main small { overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }

.journey-home-leg {
  position: relative; z-index: 3; margin-top: -4px; padding: 2px 8px 8px;
  border: 0; background: transparent; opacity: .82;
}
.journey-home-leg.is-active { opacity: 1; }
.journey-home-route { position: relative; height: 54px; font-size: 9px; font-weight: 900; }
.journey-home-route .journey-home-track {
  position: absolute; left: 15px; right: 15px; top: 14px; height: 3px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tv-accent) 48%, #bcae94) 0 5px, transparent 5px 10px);
}
.journey-home-pin {
  position: absolute; z-index: 3; top: 50%; width: 11px; height: 11px;
  border: 3px solid #fffaf0; border-radius: 50%; background: #df654f;
  box-shadow: 0 2px 6px rgba(43,64,65,.28); transform: translate(-50%, -50%);
}
.journey-home-pin.is-origin { left: 0; }
.journey-home-pin.is-destination { left: 100%; }
.journey-home-city { position: absolute; top: 28px; color: var(--ink-soft); }
.journey-home-city.is-origin { left: 3px; }
.journey-home-city.is-destination { right: 2px; }
.journey-home-plane {
  width: 54px; transition: left .2s linear;
  transform: translate(-50%, -51%);
}
.journey-home-plane.is-moving-home { transform: translate(-50%, -51%); }

@keyframes journeyFamilyPlane {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
@keyframes journeyFigurine {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -4px; }
}
@keyframes journeySeaLife {
  0%, 100% { translate: -3px 0; rotate: -2deg; }
  50% { translate: 4px -3px; rotate: 2deg; }
}
@media (max-width: 390px) {
  .journey-story-title { font-size: 22px; }
  .journey-family-plane { width: 82px; }
  .journey-family-marker { width: 66px; }
  .journey-family-marker.is-vehicle { width: 84px; }
  .journey-day-tab { flex-basis: 61px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-family-plane,
  .journey-family-marker { animation: none; }
}

/* Attendee faces stay recognisable at row size; pack art can replace every one. */
.attendee-faces { display: flex; flex: none; align-items: center; padding-left: 6px; }
.attendee-face {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--card); background: var(--wash);
  box-shadow: 0 4px 10px rgba(57,48,34,.18); margin-left: -14px;
}
.attendee-face:first-child { margin-left: 0; }
.seg-row .attendee-face {
  width: 36px; height: 36px; margin-left: -10px; border-width: 2px;
}
.attendee-faces.is-detail { padding: 0; }
.attendee-faces.is-detail .attendee-face {
  width: 60px; height: 60px; margin-left: -16px;
  border-width: 3px; border-color: rgba(255,255,255,.88);
  box-shadow: 0 5px 14px rgba(57,48,34,.2);
}
.attendee-faces.is-detail .attendee-face:first-child { margin-left: 0; }

.attendee-picker { display: flex; flex-wrap: wrap; gap: 11px; padding: 5px 1px; }
.attendee-option {
  position: relative; width: 61px; height: 61px; padding: 3px; border: 2px solid transparent;
  border-radius: 50%; background: color-mix(in srgb, var(--wash) 72%, #fff);
  box-shadow: 0 4px 12px rgba(57,48,34,.12); opacity: .48;
  transition: transform .2s var(--ease-bounce), opacity .2s ease, box-shadow .2s ease;
}
.attendee-option.selected {
  border-color: color-mix(in srgb, var(--sun) 72%, var(--tv-accent));
  background: color-mix(in srgb, var(--sun) 16%, #fff); opacity: 1;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 18%, transparent), 0 5px 15px rgba(57,48,34,.16);
  transform: translateY(-2px);
}
.attendee-option-head { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.attendee-option-check {
  position: absolute; right: -2px; bottom: -1px; width: 20px; height: 20px;
  display: grid; place-items: center; border: 2px solid white; border-radius: 50%;
  background: var(--tv-accent); color: white; font-size: 10px; font-weight: 900;
}
.attendee-option:not(.selected) .attendee-option-check { display: none; }

.segment-detail { display: grid; gap: 13px; padding-bottom: 10px; }
.segment-detail-hero {
  position: relative; display: grid; justify-items: center; overflow: hidden;
  margin: -5px -2px 0; padding: 22px 17px 19px; border-radius: 23px;
  background:
    radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--sun) 25%, transparent), transparent 45%),
    linear-gradient(150deg, color-mix(in srgb, var(--tv-wash) 76%, #fff), var(--card));
  border: 1px solid color-mix(in srgb, var(--tv-ring) 45%, var(--line));
  text-align: center;
}
.segment-detail-hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; }
.segment-detail-hero.has-scene {
  min-height: 264px; align-items: end; justify-items: stretch; padding: 20px;
  background:
    radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--sun) 22%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--tv-wash) 82%, #fff), #fffaf1);
  text-align: left;
}
.segment-detail-hero.has-scene::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--tv-wash) 94%, #fff) 0%,
    color-mix(in srgb, var(--tv-wash) 76%, transparent) 46%,
    transparent 75%);
}
.segment-detail-scene {
  position: absolute; z-index: 1; right: 1%; top: 4%; width: 58%; height: 89%;
  object-fit: contain; object-position: center;
  transform: translate3d(0, var(--segment-parallax, 0), 0) scale(var(--segment-scale, 1));
  transform-origin: 72% 52%; transition: filter .25s ease;
  filter: saturate(.98) drop-shadow(0 13px 14px rgba(60,48,31,.2));
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.72) 13%, #000 31%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.72) 13%, #000 31%, #000 88%, transparent 100%);
}
.segment-detail-hero.has-scene .segment-detail-hero-copy {
  width: 67%; justify-items: start; align-self: end;
}
.segment-detail-hero.has-scene .kind-icon {
  width: 144px; height: 144px; margin: -5px 0 8px; border-radius: 0; background: transparent; box-shadow: none; font-size: 84px;
}
.segment-detail-hero.has-scene .kind-icon img { width: 136px; height: 136px; }
.segment-detail-hero.has-scene h2 { max-width: 100%; font-size: 24px; }
.segment-detail-hero .kind-icon {
  width: 144px; height: 144px; margin-bottom: 9px; border-radius: 36px;
  background: rgba(255,255,255,.74); box-shadow: 0 11px 25px rgba(65,52,32,.16);
  font-size: 84px;
}
.segment-detail-hero .kind-icon img { width: 136px; height: 136px; }
.segment-detail-kind,
.segment-detail-label {
  color: var(--tv-accent-deep); font-size: 9px; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase;
}
.segment-detail-hero h2 {
  max-width: 96%; margin: 4px 0 5px; font-family: var(--font-display);
  font-size: 25px; line-height: 1.08;
}
.segment-detail-when { margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.segment-detail-where { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.segment-detail-going {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 17px; background: color-mix(in srgb, var(--wash) 58%, #fff);
  border: 1px solid var(--line);
}
.segment-detail-going > div { display: grid; gap: 2px; }
.segment-detail-going small { color: var(--muted); font-size: 9px; }
.segment-detail-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.place-action-strip {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; overflow: hidden;
  border: 1px solid rgba(188,159,113,.38); border-radius: 24px;
  background: linear-gradient(150deg, #fffefb, #fff8ec 56%, #f3faf6);
  box-shadow: 0 14px 29px rgba(63,48,34,.11), inset 0 1px rgba(255,255,255,.98);
}
.calendar-action-strip { grid-template-columns: minmax(0, 1fr); }
.segment-action {
  min-height: 50px; padding: 9px 10px; border: 1px solid color-mix(in srgb, var(--tv-ring) 42%, var(--line));
  border-radius: 15px; background: color-mix(in srgb, var(--tv-wash) 42%, #fff);
  color: var(--tv-accent-deep); font-size: 11px; font-weight: 850;
}
.place-action {
  min-width: 0; min-height: 104px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 0; border-right: 1px solid rgba(188,159,113,.24); border-radius: 0; background: transparent;
}
.place-action:last-child { border-right: 0; }
.place-action-label { overflow: hidden; max-width: 100%; color:#172846; font-family:var(--font-display); font-size:10px; text-overflow: ellipsis; white-space:nowrap; }
.place-action-icon {
  position: relative; width: 20px; height: 20px; display: inline-block; flex: 0 0 auto;
  color: var(--tv-accent-deep); filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--tv-accent) 20%, transparent));
}
.place-action-icon:is(img) {
  width: 59px; height: 59px; border: 0; border-radius: 0; object-fit: contain;
  background: transparent; filter: drop-shadow(0 7px 7px rgba(66,45,29,.20));
}
.place-action img.place-action-icon {
  width: 59px; height: 59px; border: 0; border-radius: 0; object-fit: contain;
  background: transparent; filter: drop-shadow(0 7px 7px rgba(66,45,29,.20));
}
.calendar-export-action {
  min-height: 102px; display: grid; grid-template-columns: 74px minmax(0,1fr) auto; align-items: center; gap: 13px;
  padding: 12px 16px; border-color: rgba(195,157,107,.34); border-radius:24px;
  background: linear-gradient(135deg, #fff3e9, #fffdf8 53%, #f0faf7);
  box-shadow: 0 14px 28px rgba(63,48,34,.10), inset 0 1px rgba(255,255,255,.96); text-align: left;
}
.calendar-export-copy { display: grid; gap: 1px; }
.calendar-export-action strong { color:#153f4a; font-family:var(--font-display); font-size:14px; }
.calendar-export-action small { color: var(--muted); font-size:8px; font-weight:750; }
.calendar-export-icon {
  position: relative; width: 44px; height: 48px; display: grid; place-items: end center;
  padding-bottom: 7px; overflow: hidden; border: 1px solid #dedbd5; border-radius: 7px;
  background: #fff; color: #1f2733; box-shadow: 0 4px 9px rgba(58,45,30,.13);
}
.calendar-export-icon::before { content: ""; position: absolute; inset: 0 0 auto; height: 13px; background: #ef3f43; }
.calendar-export-icon i { font-family: var(--font-display); font-size: 19px; font-style: normal; line-height: 1; }
.calendar-export-icon:is(img) {
  width: 72px; height: 72px; padding: 0; border: 0; border-radius: 0; object-fit: contain;
  background: transparent; filter: drop-shadow(0 7px 7px rgba(66,45,29,.18));
}
.calendar-export-add {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border-radius:999px;
  background: linear-gradient(145deg, #ff7865, #e84e43); color: #fff;
  box-shadow: 0 6px 14px rgba(198,64,52,.24), inset 0 1px rgba(255,255,255,.38);
  font-size: 11px; font-weight:900;
}
.calendar-export-add b { font-size: 16px; line-height: .7; }
.segment-action.is-edit { background: var(--tv-accent); color: white; border-color: transparent; }
.segment-detail-contact-note { margin: -4px 3px 0; color: var(--muted); font-size: 10px; text-align: center; }
.segment-detail-card {
  padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  box-shadow: 0 7px 20px rgba(60,50,34,.07);
}
.segment-detail-card:has(.segment-detail-notes) {
  position: relative; overflow: hidden; padding-left: 27px;
  background:
    linear-gradient(90deg, transparent 17px, rgba(223,103,103,.18) 18px, rgba(223,103,103,.18) 19px, transparent 20px),
    repeating-linear-gradient(180deg, #fffdf8 0, #fffdf8 25px, rgba(87,139,168,.12) 26px);
}
.segment-detail-card:has(.segment-detail-notes)::after {
  content: none;
}
.segment-detail-card h3 { margin: 0 0 9px; font-family: var(--font-display); font-size: 16px; }
.activity-information {
  overflow: hidden; border-color: color-mix(in srgb, var(--tv-accent) 28%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--tv-wash) 54%, #fff), #fffaf0);
}
.activity-hours-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px;
}
.activity-hours-head h3 { margin: 2px 0 0; font-size: 17px; }
.activity-hours-clock {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px;
  background: var(--tv-accent); color: #fff; box-shadow: 0 5px 12px color-mix(in srgb, var(--tv-accent) 28%, transparent);
  font-size: 22px; font-weight: 900;
}
.activity-hours-state {
  max-width: 92px; padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--sun) 55%, #d9c49a);
  border-radius: 999px; background: color-mix(in srgb, var(--sun) 20%, #fff);
  color: #7a4c24; font-size: 8px; font-weight: 900; line-height: 1.15; text-align: center;
}
.activity-hours-note { margin: 10px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.activity-practical { border-top: 1px dashed color-mix(in srgb, var(--tv-accent) 28%, var(--line)); }
.activity-practical-row {
  display: grid; grid-template-columns: minmax(84px, .7fr) minmax(0, 1.3fr); gap: 10px;
  padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 10px; line-height: 1.35;
}
.activity-practical-row span { color: var(--muted); }
.activity-practical-row strong { color: var(--ink-soft); text-align: right; }
.activity-source-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.activity-source-row small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.activity-source-row .btn { flex: 0 0 auto; min-height: 32px; padding: 6px 9px; font-size: 9px; }
.segment-detail-fact,
.segment-cost-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  font-size: 11px;
}
.segment-detail-fact span { color: var(--muted); }
.segment-detail-fact strong { text-align: right; }
.segment-detail-notes { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.place-map-section {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 132px; overflow: hidden; padding: 14px 14px 14px 11px;
  border-color: color-mix(in srgb, #4e8a83 36%, var(--line)); border-style: dashed;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.74), transparent 42%),
    linear-gradient(135deg, #edf8ed, #eaf6f5 64%, #fffaf0);
}
.place-map-art { position: relative; display: grid; place-items: center; min-height: 96px; }
.place-map-art-icon { position: relative; z-index: 2; width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(57,76,60,.18)); }
.place-map-route-line {
  position: absolute; z-index: 1; left: 6px; right: 1px; top: 59%; height: 23px;
  border-top: 4px dashed rgba(47,131,126,.34); border-radius: 50%; transform: rotate(-12deg);
}
.place-map-copy { min-width: 0; display: grid; gap: 3px; }
.place-map-copy h3 { margin: 3px 0 2px; color: #122a47; font-family: var(--font-display); font-size: 19px; line-height: 1.05; }
.place-map-copy .place-map-address { margin: 0; }
.place-map-go {
  min-width: 72px; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 999px;
  background: linear-gradient(145deg, #ff7865, #e84e43); color: #fff;
  box-shadow: 0 7px 14px rgba(198,64,52,.24), inset 0 1px rgba(255,255,255,.38);
  font-family: var(--font-display); font-size: 15px; font-weight: 950;
}
.place-map-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.place-map-heading h3 { margin: 2px 0 0; }
.place-map-address { color: var(--muted); font-size: 11px; }
.place-map {
  position: relative; height: 230px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tv-ring) 42%, var(--line));
  border-radius: 20px; background:
    linear-gradient(27deg, transparent 47%, rgba(255,255,255,.38) 48% 52%, transparent 53%),
    linear-gradient(153deg, transparent 44%, rgba(255,255,255,.31) 45% 49%, transparent 50%),
    color-mix(in srgb, var(--tv-wash) 56%, #dce8dc);
  box-shadow: inset 0 1px rgba(255,255,255,.85); touch-action: pan-y;
}
.place-map.is-live { background: #dce8dc; touch-action: pan-x pan-y; }
.place-map.is-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.place-map.is-unavailable { display: grid; align-content: center; justify-items: center; gap: 6px; padding: 20px; color: var(--ink-soft); text-align: center; }
.place-map.is-unavailable strong { color: var(--ink); font-family: var(--font-display); }
.place-map-group-label { position: absolute; z-index: 3; left: 50%; top: 50%; pointer-events: none; transform: translate(-50%, -115%); filter: drop-shadow(0 3px 5px rgba(55,48,38,.22)); }
.place-map-group-label .place-group-heads { padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--card) 90%, transparent); }
.place-map-source { color: var(--muted); font-size: 8px; text-align: right; }
.place-map-world {
  --place-map-zoom: 1; position: absolute; inset: -15%; transform: scale(var(--place-map-zoom));
  transform-origin: 50% 54%; transition: transform .28s var(--ease-settle);
}
.place-map-road {
  position: absolute; display: block; height: 16px; border: 5px solid rgba(255,255,255,.92);
  border-left: 0; border-right: 0; border-radius: 50%; background: #e9d9bd; box-shadow: 0 1px 0 rgba(110,94,72,.12);
}
.place-map-road::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px dashed rgba(126,107,75,.36); }
.place-map-road.road-one { width: 130%; left: -15%; top: 53%; transform: rotate(-16deg); }
.place-map-road.road-two { width: 108%; left: -7%; top: 28%; transform: rotate(28deg); }
.place-map-road.road-three { width: 90%; left: 13%; top: 73%; transform: rotate(10deg); }
.place-map-water { position: absolute; left: -8%; bottom: -12%; width: 52%; height: 39%; border-radius: 48% 52% 0 0; background: #b9dfe2; opacity: .82; }
.place-map-park { position: absolute; right: 3%; top: 4%; width: 37%; height: 30%; border-radius: 48% 38% 55% 42%; background: #b9d5a8; box-shadow: inset 0 0 0 7px rgba(255,255,255,.22); }
.place-group-pin {
  position: absolute; z-index: 4; left: 50%; top: 46%; width: 100px; height: 118px;
  transform: translate(-50%, -86%); display: grid; justify-items: center; align-content: end;
  filter: drop-shadow(0 8px 8px rgba(55,48,38,.22));
}
.place-group-heads { position: relative; z-index: 3; display: flex; justify-content: center; padding: 4px 8px; }
.place-group-head {
  width: 36px; height: 36px; margin-left: -8px; border: 3px solid #fff; border-radius: 50%;
  background: var(--card); object-fit: cover; box-shadow: 0 2px 5px rgba(50,43,32,.18);
}
.place-group-head:first-child { margin-left: 0; transform: translateY(3px) rotate(-5deg); }
.place-group-head:last-child { transform: translateY(3px) rotate(5deg); }
.place-group-cone {
  position: relative; z-index: 2; width: 62px; height: 47px; margin-top: -6px;
  clip-path: polygon(12% 0, 88% 0, 57% 82%, 50% 100%, 43% 82%);
  background: linear-gradient(155deg, color-mix(in srgb, var(--sun) 55%, #fff), color-mix(in srgb, var(--tv-accent) 72%, #fff));
  border-radius: 15px; box-shadow: inset 0 1px rgba(255,255,255,.76);
}
.place-group-cone i {
  position: absolute; left: 50%; bottom: -2px; width: 10px; height: 18px;
  background: var(--tv-accent-deep); clip-path: polygon(50% 100%, 0 0, 100% 0); transform: translateX(-50%);
}
.place-map-label {
  position: absolute; z-index: 3; left: 50%; top: 59%; transform: translateX(-50%);
  max-width: 78%; padding: 5px 10px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px;
  background: rgba(255,255,255,.84); color: var(--ink); font-size: 9px; font-weight: 900; white-space: nowrap;
}
.place-map-controls {
  position: absolute; z-index: 8; right: 9px; top: 9px; display: grid; overflow: hidden;
  border: 1px solid rgba(52,53,52,.12); border-radius: 12px; background: rgba(255,255,255,.86); box-shadow: 0 4px 12px rgba(50,44,34,.12);
}
.place-map-controls button { width: 34px; height: 32px; color: var(--ink); font-size: 19px; font-weight: 750; }
.place-map-controls button + button { border-top: 1px solid rgba(52,53,52,.11); }
.place-map-coordinates { color: var(--muted); font-size: 8px; text-align: right; }
.segment-detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.segment-detail-section-head h3 { margin: 0; }
.segment-detail-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  padding: 4px 2px 2px; border-top: 1px solid var(--line);
}
.segment-detail-delete {
  padding: 9px 4px; border: 0; background: none; color: #a25551;
  font-size: 10px; font-weight: 750;
}

/* ---------- greeting (Today) ---------- */
.greet-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--tv-wash), var(--card) 70%);
  border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 18px; margin: 12px 0 15px;
}
.greet-hello { color: var(--muted); font-size: 14px; font-weight: 600; }
.greet-name { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--tv-accent-deep); letter-spacing: -0.5px; }
.greet-sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.greet-avatar {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--tv-ring); background: var(--card); overflow: hidden;
}
.greet-avatar img { width: 100%; height: 100%; object-fit: cover; }

.trip-day-card {
  position: relative; min-height: 194px; margin: 12px 0 15px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tv-ring) 46%, rgba(255,255,255,.68));
  border-radius: 24px; background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--sun) 23%, transparent), transparent 27%),
    linear-gradient(125deg, color-mix(in srgb, var(--tv-wash) 82%, #fff), var(--card));
  box-shadow: 0 16px 36px rgba(70,58,32,.17);
}
.trip-day-art {
  position: absolute; inset: -2%; background-image: var(--trip-day-art);
  /*
   * The approved day scenes are authored as complete panoramic banners with
   * the travellers already composed in the clear right-hand third. Preserve
   * that composition instead of cropping from the right on narrower phones,
   * which pulled the family into the pale copy wash.
   */
  background-size: 100% 100%; background-position: center; transform: scale(1.015);
  animation: tripDayDrift 24s ease-in-out infinite alternate;
}
.trip-day-card:not(.has-art) .trip-day-art { display: none; }
.trip-day-wash {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(94deg,
    color-mix(in srgb, var(--tv-wash) 86%, #fff) 0%,
    color-mix(in srgb, var(--tv-wash) 82%, #fff) 42%,
    color-mix(in srgb, var(--tv-wash) 62%, transparent) 60%,
    transparent 82%);
}
.trip-day-body {
  position: relative; z-index: 2; display: flex; width: 66%; min-width: 216px;
  min-height: 194px; flex-direction: column; padding: 15px 0 13px 16px;
}
.trip-day-top { display: flex; flex-direction: column; gap: 1px; }
.trip-day-count {
  color: var(--tv-accent-deep); font-size: 10px; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
}
.trip-day-date { color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.trip-day-status {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 5px;
  margin-top: 8px; padding: 3px 8px; border-radius: 999px;
  color: #147846; background: rgba(255,255,255,.7); border: 1px solid rgba(42,173,104,.3);
  font-size: 8.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
}
.trip-day-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2FBE71;
  box-shadow: 0 0 0 3px rgba(47,190,113,.15); animation: tripDayLive 1.8s ease-in-out infinite;
}
.trip-day-event { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 8px; }
.trip-day-event .kind-icon {
  width: 72px; height: 72px; flex: 0 0 72px; border-radius: 0;
  background: transparent; box-shadow: none; overflow: visible;
}
.trip-day-event .kind-icon img { width: 64px; height: 64px; object-fit: contain; }
.trip-day-event .kind-icon.is-featured-scale img {
  width: calc(64px * var(--today-icon-scale, 1));
  height: calc(64px * var(--today-icon-scale, 1));
  max-width: none;
  transform: translate(-18%, -4%);
  transform-origin: center;
}
@media (max-width: 410px) {
  .trip-day-event .kind-icon.is-featured-scale img {
    width: calc(58px * var(--today-icon-scale, 1));
    height: calc(58px * var(--today-icon-scale, 1));
    transform: translate(-16%, -3%);
  }
}
.trip-day-free-icon { font-size: 28px; line-height: 1; }
.trip-day-main { display: flex; min-width: 0; flex-direction: column; }
.trip-day-main strong {
  overflow: hidden; color: var(--ink); font-family: var(--font-display); font-size: 17px;
  font-weight: 850; line-height: 1.08; white-space: nowrap; text-overflow: ellipsis;
}
.trip-day-main span {
  overflow: hidden; margin-top: 2px; color: var(--ink-soft); font-size: 9.5px;
  font-weight: 700; white-space: nowrap; text-overflow: ellipsis;
}
.trip-day-next {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(70,58,32,.12);
  color: var(--ink-soft); font-size: 9px;
}
.trip-day-next > span { color: var(--tv-accent-deep); font-weight: 900; text-transform: uppercase; }
.trip-day-next > strong { overflow: hidden; max-width: 70%; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.trip-day-next > small { font-size: 9px; font-weight: 800; }
.trip-day-open {
  align-self: flex-start; margin-top: auto; padding: 5px 10px; border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px; background: rgba(255,253,248,.78); color: var(--tv-accent-deep);
  box-shadow: 0 3px 10px rgba(70,58,32,.1); font-size: 8.5px; font-weight: 900;
  letter-spacing: .07em; text-transform: uppercase;
}
.trip-day-open:active { transform: scale(.96); }
@keyframes tripDayDrift {
  from { transform: scale(1.015); }
  to { transform: scale(1.035); }
}
@keyframes tripDayLive {
  50% { box-shadow: 0 0 0 6px rgba(47,190,113,0); opacity: .72; }
}

.countdown-scene {
  display: block; width: 100%; height: 176px; margin: 12px 0 15px;
  border-radius: 24px; perspective: 1500px; text-align: left;
  color: var(--ink); box-shadow: 0 16px 36px rgba(70,58,32,.17);
  transition: height 420ms var(--ease-glide);
}
.count-rotor {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 620ms var(--ease-settle);
}
.countdown-scene.flipped .count-rotor { transform: rotateY(180deg); }
.count-face {
  position: absolute; top: 0; left: 0; right: 0; display: block; overflow: hidden;
  border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid color-mix(in srgb, var(--tv-ring) 46%, rgba(255,255,255,.68));
}
.count-face-front {
  height: 100%; width: 100%; text-align: left; color: var(--ink);
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--sun) 23%, transparent), transparent 27%),
    linear-gradient(125deg, color-mix(in srgb, var(--tv-wash) 82%, #fff), var(--card));
}
.countdown-scene.can-flip .count-face-front { cursor: pointer; }
.countdown-scene.can-flip .count-face-front:active .count-cta { transform: scale(.96); }
.countdown-scene.has-art .count-face-front {
  background-image:
    linear-gradient(90deg, rgba(255,252,245,.26) 0%, rgba(255,252,245,.10) 48%, transparent 64%),
    var(--countdown-art);
  background-size: cover; background-position: center;
}
.count-flight-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.count-flight-route {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
}
.count-flight-path {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
  stroke-dasharray: 8 9;
  stroke-dashoffset: 0;
  animation: flightTrail 3.8s linear infinite;
}
.count-plane {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  animation: planeFly 3.8s linear infinite;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 2;
}
.countdown-scene.has-flight .count-copy { z-index: 2; }
.count-copy {
  position: relative; z-index: 2; display: flex; width: 54%; height: 100%;
  flex-direction: column; padding: 13px 0 11px 15px;
}
.count-eyebrow, .count-back-label {
  display: block; color: var(--tv-accent-deep); font-size: 9.5px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.count-hero {
  display: flex; align-items: baseline; gap: 7px; margin: 4px 0 3px;
}
.count-value {
  display: inline-block; font-family: var(--font-display); font-size: 43px;
  line-height: .95; font-weight: 900; letter-spacing: -.06em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sun) 78%, #fff) 0%, var(--sun) 55%, color-mix(in srgb, var(--sun) 72%, var(--ink)) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(70,58,32,.22));
}
.count-value.tick { animation: countTick 420ms var(--ease-spring); }
@keyframes countTick {
  0% { opacity: .3; transform: perspective(500px) rotateX(-78deg) translateY(7px); }
  100% { opacity: 1; transform: none; }
}
@keyframes flightTrail {
  0% { stroke-dashoffset: 0; opacity: .78; }
  55% { opacity: 1; }
  100% { stroke-dashoffset: -17; opacity: .83; }
}
@keyframes planeFly {
  0%   { opacity: 0; transform: translate(4%, 82%) rotate(-20deg) scale(0.92); }
  12%  { opacity: 1; }
  30%  { transform: translate(26%, 66%) rotate(-12deg) scale(1); }
  48%  { transform: translate(46%, 45%) rotate(0deg) scale(1); }
  62%  { transform: translate(58%, 37%) rotate(8deg) scale(1); }
  78%  { transform: translate(74%, 26%) rotate(12deg) scale(1); }
  92%  { opacity: 0.94; transform: translate(88%, 15%) rotate(18deg) scale(0.98); }
  100% { opacity: 0; transform: translate(96%, 8%) rotate(24deg) scale(0.95); }
}
.count-unit {
  color: var(--ink); font-size: 12px; font-weight: 900;
  letter-spacing: .11em; text-transform: uppercase;
}
.count-detail {
  display: block; max-width: 100%; overflow: hidden; color: var(--ink-soft);
  font-size: 9.5px; line-height: 1.35;
  white-space: nowrap; text-overflow: ellipsis;
}
.count-cta {
  display: inline-flex; align-items: center; align-self: flex-start;
  margin-top: auto; padding: 6px 11px; border-radius: 999px;
  background: rgba(255,253,248,.78); border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 3px 10px rgba(70,58,32,.12), inset 0 1px 0 rgba(255,255,255,.9);
  color: var(--tv-accent-deep); font-size: 9px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform 120ms var(--ease-glide);
  animation: countHint 2.8s ease-in-out infinite;
}
@keyframes countHint { 50% { opacity: .7; transform: translateX(2px); } }
.count-face-back {
  min-height: 176px; transform: rotateY(180deg); padding: 16px 16px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), transparent 46%),
    color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(26px) saturate(1.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}
.count-close {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 2px 8px rgba(70,58,32,.12); color: var(--muted);
  font-size: 18px; line-height: 1; z-index: 2;
}
.count-close:active { transform: scale(.92); }
.count-back-list { display: flex; flex-direction: column; margin: 7px 0 0; }
.count-back-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
}
.count-back-row:first-child { border-top: 0; }
.count-more-row { display: none; }
.count-back-list.show-more .count-more-row { display: flex; animation: fadein 220ms var(--ease-glide); }
.count-back-when {
  flex: 0 0 43px; color: var(--tv-accent-deep); font-size: 8.5px;
  font-weight: 800; text-transform: uppercase;
}
.count-back-row .kind-icon { width: 28px; height: 28px; border-radius: 9px; }
.count-back-row .kind-icon img { width: 20px; height: 20px; }
.count-back-main { display: flex; min-width: 0; flex-direction: column; }
.count-back-main strong {
  display: block; overflow: hidden; color: var(--ink); font-size: 11.5px;
  line-height: 1.2; white-space: nowrap; text-overflow: ellipsis;
}
.count-back-main small {
  display: block; overflow: hidden; color: var(--muted); font-size: 9.5px;
  line-height: 1.2; white-space: nowrap; text-overflow: ellipsis;
}
.count-view-more {
  display: block; margin: 8px auto 6px; padding: 5px 13px; border-radius: 999px;
  background: rgba(255,255,255,.54); border: 1px solid rgba(255,255,255,.7);
  color: var(--tv-accent-deep); font-size: 9.5px; font-weight: 800;
}
.count-open-full {
  display: flex; width: 100%; align-items: center; justify-content: center;
  margin-top: 8px; padding: 11px 14px; border-radius: 15px;
  color: #fff; background: linear-gradient(180deg, var(--tv-accent), var(--tv-accent-deep));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tv-accent) 28%, transparent);
  font-size: 12px; font-weight: 900; letter-spacing: .02em;
}
.count-open-full:active { transform: scale(.98); }

/* ---------- budget ---------- */
.budget-overview-card {
  position:relative;
  display:grid; grid-template-columns:88px minmax(0,1fr) 80px; align-items:center; gap:12px;
  min-height:142px; padding:21px 17px; overflow:hidden; border:1px solid rgba(187,151,78,.34); border-radius:26px;
  background:linear-gradient(120deg,#fff0c7,#fffaf1 53%,#eaf3e3); box-shadow:0 15px 28px rgba(78,54,25,.13),inset 0 1px rgba(255,255,255,.92);
}
.budget-overview-card::after,
.budget-empty-card::after {
  content:""; position:absolute; inset:8px; border:1px dashed rgba(161,115,56,.38);
  border-radius:20px; pointer-events:none;
}
.budget-wallet-art { position:relative; width:84px; height:82px; object-fit:contain; filter:drop-shadow(0 8px 7px rgba(70,50,25,.2)); }
.budget-wallet-pass { position:absolute; left:17px; top:2px; width:47px; height:48px; padding-top:9px; border-radius:9px; background:#f5e3bd; color:#d87853; text-align:center; font-size:21px; transform:rotate(8deg); box-shadow:inset 0 1px rgba(255,255,255,.8),0 3px 6px rgba(73,51,25,.12); }
.budget-wallet-body { position:absolute; left:4px; bottom:2px; width:68px; height:51px; padding:16px 0 0 15px; border-radius:14px 16px 16px 12px; background:linear-gradient(145deg,#2e7780,#15545d); color:#d7e8dc; font-size:22px; box-shadow:inset 0 1px rgba(255,255,255,.24); }
.budget-wallet-coin { position:absolute; right:0; bottom:0; display:grid; place-items:center; width:31px; height:31px; border:2px solid #b88226; border-radius:50%; background:linear-gradient(135deg,#ffe58d,#d79827); color:#77501a; font-size:12px; font-weight:900; }
.budget-overview-copy { display:grid; gap:2px; min-width:0; }
.budget-overview-copy p { color:var(--muted); font-size:12px; }
.budget-overview-copy .money-big { color:#162545; font-size:clamp(31px,8vw,43px); line-height:1; }
.budget-overview-progress { display:grid; justify-items:center; align-content:center; gap:3px; width:78px; height:78px; border:9px solid #347c80; border-right-color:#d9ad3b; border-radius:50%; background:#fffdf4; box-shadow:inset 0 1px rgba(255,255,255,.8); }
.budget-overview-progress span { max-width:45px; color:#5c6670; font-size:7px; font-weight:900; line-height:1.05; text-align:center; }
.budget-overview-progress strong { color:#347c80; font-size:14px; }
.budget-empty-card { position:relative; display:grid; align-content:center; justify-items:center; gap:10px; min-height:430px; padding:34px 24px 25px; border:1px solid rgba(184,145,78,.3); border-radius:28px; background:linear-gradient(145deg,#fffdf7,#fff4df); box-shadow:0 14px 27px rgba(81,55,24,.11), inset 0 1px rgba(255,255,255,.9); text-align:center; }
.budget-receipt-art { position:relative; width:160px; height:122px; object-fit:contain; filter:drop-shadow(0 10px 10px rgba(75,52,25,.16)); transform:scale(1.12); transform-origin:center; }
.budget-receipt-wallet { position:absolute; left:20px; top:20px; width:91px; height:54px; padding-top:11px; border-radius:14px; background:linear-gradient(145deg,#29717b,#17545c); color:#e9e4c3; font-size:31px; line-height:1; transform:rotate(-4deg); box-shadow:inset 0 1px rgba(255,255,255,.24); }
.budget-receipt-paper { position:absolute; left:47px; top:2px; width:44px; height:72px; padding-top:14px; border-radius:6px; background:#fff5df; color:#9d8a67; font-size:35px; line-height:.7; transform:rotate(8deg); box-shadow:0 3px 8px rgba(65,45,22,.18); }
.budget-receipt-coin { position:absolute; left:4px; bottom:0; display:grid; place-items:center; width:29px; height:29px; border:2px solid #be8827; border-radius:50%; background:#f8ce5d; color:#7a551b; font-size:12px; font-weight:900; }
.budget-empty-card h3 { font-family:var(--font-display); font-size:27px; line-height:1; }
.budget-empty-card p { color:var(--muted); font-size:13px; }
.budget-empty-add { margin:9px 0 12px; padding:15px 28px; border-radius:17px; background:linear-gradient(145deg,#f27e5c,#d75542); box-shadow:0 8px 12px rgba(157,65,43,.22), inset 0 1px rgba(255,255,255,.35); font-size:15px; font-weight:900; text-transform:uppercase; }
.budget-empty-categories { display:flex; justify-content:space-between; width:min(100%,330px); padding-top:18px; border-top:1px dashed rgba(155,111,58,.35); filter:drop-shadow(0 3px 4px rgba(65,45,22,.09)); }
.budget-empty-categories img { width:40px; height:40px; object-fit:contain; }
.budget-category-bar-label { display:inline-flex; align-items:center; gap:6px; text-transform:capitalize; }
.budget-category-bar-label img { width:26px; height:26px; object-fit:contain; }
.budget-settlement-grid { display:grid; gap:10px; margin-bottom:10px; }
.budget-settlement-person {
  display:grid; gap:11px; padding:14px;
  border:1px solid color-mix(in srgb, var(--tv-ring) 38%, var(--line));
  border-radius:22px; background:linear-gradient(145deg,#fffdf8,#f7f5eb 56%,#edf6f1);
  box-shadow:0 9px 22px rgba(64,49,29,.09), inset 0 1px #fff;
}
.budget-settlement-person > header { display:flex; align-items:center; gap:10px; }
.budget-settlement-person > header > div { display:grid; gap:2px; min-width:0; }
.budget-settlement-person > header strong { font-family:var(--font-display); font-size:18px; }
.budget-settlement-avatar { width:52px; height:52px; border:3px solid #fff; border-radius:50%; object-fit:cover; box-shadow:0 5px 12px rgba(57,48,34,.16); }
.budget-settlement-net { color:var(--ink-soft); font-size:10px; font-weight:850; }
.budget-settlement-net.is-credit { color:#28766f; }
.budget-settlement-net.is-debit { color:#b94e42; }
.budget-settlement-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.budget-settlement-totals > div { display:grid; gap:2px; padding:9px 10px; border-radius:14px; background:rgba(255,255,255,.7); border:1px solid rgba(183,157,112,.2); }
.budget-settlement-totals small { color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.06em; }
.budget-settlement-totals strong { color:#162545; font-size:14px; }
.budget-settlement-categories { display:grid; gap:5px; }
.budget-settlement-categories > div { display:grid; grid-template-columns:26px minmax(0,1fr) auto; align-items:center; gap:7px; font-size:10px; text-transform:capitalize; }
.budget-settlement-categories img { width:26px; height:26px; object-fit:contain; }
.budget-settlement-categories strong { font-size:11px; }
.budget-settlement-empty { color:var(--muted); font-size:9px; }
.budget-settlement-relations { display:flex; flex-wrap:wrap; gap:5px; }
.budget-settlement-relations span,
.budget-settlement-relations.is-clear { padding:5px 8px; border-radius:999px; background:#fff4dc; color:#6f542d; font-size:9px; font-weight:850; }
.budget-settlement-relations.is-clear { justify-self:start; background:#eaf5ef; color:#2c6c62; }
.budget-transfer-card { margin-top:0; }
.budget-transfer-title { display:block; margin-bottom:7px; font-family:var(--font-display); font-size:15px; }
.budget-settlement-note { margin:7px 4px 10px; color:var(--muted); font-size:9px; line-height:1.4; }
@media (max-width:410px) {
  .budget-overview-card { min-height:130px; grid-template-columns:80px minmax(0,1fr) 70px; gap:9px; padding:18px 14px; }
  .budget-overview-progress { width:70px; height:70px; border-width:8px; }
  .budget-empty-card { min-height:390px; padding-inline:20px; }
  .budget-empty-categories { font-size:24px; }
}
.money-big { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.balance-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.balance-row:first-child { border-top: none; }

/* Settle-up row: two faces with money flying between them. Tap to replay. */
.settle-row {
  width: 100%; background: none; border: none; border-top: 1px solid var(--line);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  flex-wrap: wrap; row-gap: 2px;
}
.settle-row:first-child { border-top: none; }
.settle-face {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--wash); object-fit: cover; border: 1.5px solid var(--line);
}
.settle-track { position: relative; width: 46px; height: 46px; flex: none; }
.settle-coin {
  position: absolute; top: 50%; left: 0;
  width: 34px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; transform: translate(-6px, -50%);
  opacity: 0; border: 1px solid rgba(255, 215, 100, 0.7);
  background: radial-gradient(circle at 30% 30%, #ffef9a 0%, #ffdb67 26%, #ffd45a 32%, #c88623 74%, #8b5d12 100%);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(74, 42, 6, 0.35), 0 4px 10px rgba(0,0,0,0.25);
  color: #4a2e0a; font-weight: 800;
  text-align: center; letter-spacing: -0.4px; text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.coin-face {
  display: grid; place-items: center; pointer-events: none; font-size: 13px; line-height: 1;
}
.coin-face-a { border-right: 1px solid rgba(0, 0, 0, 0.25); }
.coin-face-j { border-left: 1px solid rgba(255, 255, 255, 0.25); }
.settle-coin.throwing { animation: coin-throw 900ms cubic-bezier(.34,.8,.4,1) 1; }
@keyframes coin-throw {
  0%   { opacity: 0; transform: translate(-6px, -50%) scale(.75) rotate(0deg); }
  15%  { opacity: 1; }
  50%  { transform: translate(20px, -190%) scale(1.08) rotate(360deg); }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translate(44px, -50%) scale(.75) rotate(720deg); }
}
.settle-text { flex: 1 1 100%; order: 3; font-size: 13.5px; color: var(--ink-soft); }
.settle-amt { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .settle-coin.throwing { animation: none; opacity: 1; transform: translate(20px, -50%); }
}
.tv-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tv-accent); flex: none; }
.cat-bar { height: 8px; border-radius: 4px; background: var(--tv-accent); min-width: 4px; }

/* ---------- docs ---------- */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.doc-type-chip { display:grid; place-items:center; width:52px; min-height:42px; padding:5px; flex:none; border:1px solid #dbcaa9; border-radius:12px; background:#fff8e9; color:#295d69; font:900 10px/1 var(--font-display); letter-spacing:.06em; }
.doc-type-chip.is-private { color:#9a6047; background:#fff3e9; }
.private-veil { filter: blur(5px); opacity: 0.6; }

/* ---------- packs / more ---------- */
.pack-card { display: flex; gap: 12px; align-items: center; }
.trip-settings-card {
  position: relative; width: 100%; min-height: 92px; display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  padding: 10px 13px 10px 9px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tv-ring) 38%, var(--line));
  border-radius: 21px; background:
    radial-gradient(circle at 11% 18%, rgba(255,255,255,.86), transparent 31%),
    linear-gradient(135deg, color-mix(in srgb, var(--tv-wash) 74%, #fff), color-mix(in srgb, var(--sun) 10%, #fff));
  box-shadow: 0 9px 24px rgba(65,52,31,.09); text-align: left;
}
.trip-settings-card:active { transform: scale(.99); }
.trip-settings-art { position: relative; width: 70px; height: 70px; display: grid; place-items: center; }
.trip-settings-art img {
  position: relative; z-index: 2; width: 68px; height: 68px; object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(54,45,31,.16)); animation: tripSettingsFloat 3.4s ease-in-out infinite;
}
.trip-settings-art img[src*="family-characters"],
.trip-settings-art img[src*="head"] { object-fit: cover; border: 3px solid var(--tv-ring); border-radius: 50%; background: var(--card); }
.trip-settings-trail {
  position: absolute; z-index: 1; left: 3px; bottom: 7px; width: 48px; height: 24px;
  border-bottom: 2px dashed color-mix(in srgb, var(--tv-accent) 42%, transparent);
  border-radius: 50%; transform: rotate(-9deg);
}
.trip-settings-copy { min-width: 0; display: grid; gap: 2px; }
.trip-settings-copy strong { overflow: hidden; font-family: var(--font-display); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.trip-settings-copy small { color: var(--muted); font-size: 10.5px; }
.trip-settings-kicker { color: var(--tv-accent-deep); font-size: 8.5px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.trip-settings-action {
  align-self: start; padding: 5px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--sun) 19%, #fff); color: color-mix(in srgb, var(--sun) 44%, var(--ink));
  font-size: 9px; font-weight: 900; white-space: nowrap;
}
@keyframes tripSettingsFloat { 50% { transform: translateY(-3px) rotate(1.5deg); } }
@media (max-width: 390px) {
  .trip-settings-card { grid-template-columns: 62px minmax(0, 1fr); min-height: 84px; }
  .trip-settings-art, .trip-settings-art img { width: 61px; height: 61px; }
  .trip-settings-action { position: absolute; right: 10px; top: 8px; }
  .trip-settings-copy { padding-right: 38px; }
}
.pack-icon { font-size: 30px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--wash); border-radius: 12px; flex: none; }
.pack-icon img { width: 42px; height: 42px; object-fit: contain; }
.custom-kind-picker {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.custom-kind-choice {
  min-width: 0; display: grid; justify-items: center; gap: 4px;
  padding: 8px 4px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); color: var(--ink); font-size: 9px; font-weight: 800;
}
.custom-kind-choice.is-selected {
  border-color: var(--tv-accent);
  background: color-mix(in srgb, var(--tv-wash) 72%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tv-accent) 18%, transparent);
}
.custom-kind-choice-art {
  width: 44px; height: 44px; display: grid; place-items: center;
}
.custom-kind-choice-art img { width: 42px; height: 42px; object-fit: contain; }
.pack-preview-art { width: 58px; height: 58px; display: grid; place-items: center; }
.pack-preview-art img { width: 54px; height: 54px; object-fit: contain; }
.pack-meta { flex: 1; min-width: 0; }
.pack-name { font-weight: 700; }
.pack-sub { color: var(--muted); font-size: 12.5px; }
.booking-documents-card {
  position: relative; isolation: isolate; width: 100%; min-height: 190px; display: grid;
  grid-template-columns: minmax(132px, .72fr) minmax(0, 1.35fr) auto; align-items: center; gap: 17px;
  overflow: hidden; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--tv-accent) 25%, #d9c5a7);
  border-radius: 31px; background: linear-gradient(118deg, #fff5e2 0%, #fffaf3 54%, #edf5e7 100%);
  box-shadow: 0 19px 35px rgba(83,57,28,.15), inset 0 1px rgba(255,255,255,.94); color: var(--ink); text-align: left;
}
.booking-documents-card::before {
  content: ""; position: absolute; inset: 9px; z-index: -1; border: 1px dashed rgba(150,104,56,.36); border-radius: 21px; pointer-events: none;
}
.booking-document-art-image { display: block; width: 100%; max-width: 168px; height: 151px; object-fit: contain; justify-self: center; filter: drop-shadow(0 12px 13px rgba(67,45,26,.19)); }
.booking-document-art { position: relative; display: block; width: 122px; height: 112px; filter: drop-shadow(0 10px 10px rgba(67,45,26,.18)); }
.booking-document-wallet { position: absolute; left: 7px; bottom: 3px; width: 108px; height: 59px; border-radius: 14px 13px 19px 17px; background: linear-gradient(145deg, #c98245, #9e5e2e); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 8px 10px rgba(85,45,18,.2); }
.booking-document-wallet::after { content: ""; position: absolute; right: -7px; top: 19px; width: 33px; height: 25px; border-radius: 0 11px 11px 0; background: #e37855; border: 2px solid #a55a38; }
.booking-document { position: absolute; z-index: 1; display: grid; place-items: center; width: 58px; height: 79px; border: 1px solid rgba(133,89,51,.19); border-radius: 10px; background: linear-gradient(150deg, #fffdf6, #f7e7cd); color: #d96d4d; font-size: 29px; font-style: normal; box-shadow: 0 6px 9px rgba(72,50,28,.16); }
.booking-document-flight { left: 9px; top: 7px; transform: rotate(-10deg); }
.booking-document-stay { left: 46px; top: 10px; color: #2d7677; transform: rotate(8deg); }
.booking-document-place { left: 72px; top: 34px; width: 42px; height: 52px; color: #d66a4c; font-size: 32px; transform: rotate(13deg); }
.booking-documents-copy { display: grid; gap: 5px; min-width: 0; padding: 4px 0; }
.booking-documents-copy strong { font-family: var(--font-display); font-size: clamp(23px, 5vw, 34px); line-height: .98; letter-spacing: -.75px; }
.booking-documents-copy small { color: var(--muted); font-size: 14px; }
.booking-documents-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.booking-documents-kinds i { display:inline-flex; align-items:center; gap:5px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(154,126,88,.18); color: var(--ink); font-size: 10px; font-style: normal; font-weight: 800; }
.booking-kind-art { width: 19px; height: 19px; object-fit: contain; flex: 0 0 auto; }
.booking-documents-status { position: absolute; top: 18px; right: 19px; padding: 7px 11px; border-radius: 999px; background: rgba(255,252,244,.88); box-shadow: 0 4px 9px rgba(70,50,28,.12); color: var(--ink-soft); font-size: 10px; font-weight: 850; }
.booking-documents-open { justify-self: end; align-self: end; padding: 15px 21px; border-radius: 18px; background: linear-gradient(145deg, #f78465, #dd5e46); box-shadow: inset 0 1px rgba(255,255,255,.42), 0 8px 13px rgba(143,58,41,.26); color: white; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .55px; }
.booking-documents-card:active { transform: translateY(1px) scale(.995); }
.booking-filter-bar { display:flex; gap:7px; flex-wrap:wrap; margin:12px 2px 10px; }
.booking-filter { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:34px; padding:0 12px; border:1px solid #decda8; border-radius:999px; background:#fffaf0; color:#345b63; font:800 11px/1 var(--font-display); }
.booking-filter-art { width:19px; height:19px; object-fit:contain; flex:0 0 auto; }
.empty-art { width:132px; height:116px; object-fit:contain; margin:0 auto 10px; filter:drop-shadow(0 10px 10px rgba(67,45,26,.15)); }
.booking-filter[aria-pressed="true"] { background:#e6f0ea; border-color:#81a49a; color:#143e47; box-shadow:inset 0 1px rgba(255,255,255,.8); }
.booking-filter-empty { margin:12px 4px; color:var(--muted); }
@media (max-width: 520px) {
  .booking-documents-card {
    min-height: 218px;
    grid-template-columns:minmax(136px, 38%) minmax(0, 1fr);
    gap: 12px;
    padding: 20px 17px;
    border-radius: 25px;
  }
  .booking-document-art-image { width: 148px; height: 176px; }
  .booking-document-art { width: 88px; height: 88px; transform: scale(.76); transform-origin: left center; }
  .booking-documents-copy { gap: 7px; padding-block: 13px 24px; }
  .booking-documents-copy strong { font-size: 28px; }
  .booking-documents-copy small { font-size: 12px; }
  .booking-documents-kinds { margin-top: 5px; gap: 5px; }
  .booking-documents-kinds i { padding: 6px 7px; font-size: 8.5px; gap:4px; }
  .booking-kind-art { width: 17px; height: 17px; }
  .booking-filter-art { width: 17px; height: 17px; }
  .booking-documents-status { top: 15px; right: 15px; padding: 8px 12px; font-size: 9px; }
  .booking-documents-open { position: absolute; right: 15px; bottom: 15px; padding: 12px 17px; border-radius: 14px; font-size: 11px; }
}
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; padding: 3px 8px; border-radius: 999px; background: var(--wash); color: var(--ink-soft); text-transform: uppercase; }
.badge.active { background: var(--tv-wash); color: var(--tv-accent-deep); }

.theme-entry-card {
  width: 100%; min-height: 92px; display: grid; grid-template-columns: 76px minmax(0,1fr) auto;
  align-items: center; gap: 10px; padding: 8px 12px 8px 7px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 21px;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--illustration, var(--sun)) 23%, transparent), transparent 35%),
    linear-gradient(135deg, color-mix(in srgb, var(--card) 82%, var(--wash)), var(--card));
  box-shadow: 0 9px 24px rgba(65,52,31,.09); text-align: left;
}
.theme-entry-card:active { transform: scale(.99); }
.theme-entry-art, .theme-entry-art img { width: 72px; height: 72px; object-fit: contain; }
.theme-entry-copy { min-width: 0; display: grid; gap: 1px; }
.theme-entry-copy strong { overflow: hidden; font-family: var(--font-display); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.theme-entry-copy small { color: var(--muted); font-size: 10px; }
.theme-entry-kicker { color: var(--accent-deep); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.theme-entry-action { align-self: start; padding: 5px 8px; border-radius: 999px; background: var(--selected, var(--wash)); color: var(--accent-deep); font-size: 9px; font-weight: 900; }
.theme-picker-sheet { display: grid; gap: 12px; }

.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-card {
  border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card); text-align: left; transition: border-color 0.15s, transform 0.1s;
}
.theme-card:active { transform: scale(0.98); }
.theme-card.selected { border-color: var(--tv-accent); }
.theme-swatch { height: 64px; display: flex; }
.theme-swatch i { flex: 1; }
.theme-card .pack-name { padding: 10px 12px 2px; font-size: 14px; }
.theme-card .pack-sub { padding: 0 12px 12px; }

/* ---------- traveller cards ---------- */
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.tv-card {
  text-align: center; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 16px 10px 14px; transition: border-color 0.15s;
}
.tv-card.selected { border-color: var(--tv-accent); background: var(--tv-wash); }
.tv-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; overflow: hidden; border: 3px solid var(--tv-ring); background: var(--wash); }
.tv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tv-name { font-weight: 800; font-size: 15px; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(20, 18, 26, 0.42); opacity: 0; transition: opacity 0.25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--card); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%); transition: transform 320ms var(--ease-glide);
  max-height: 86vh; overflow: auto;
}
.sheet.is-dragging {
  transition: none;
  user-select: none;
  -webkit-user-select: none;
}
.sheet-wrap.open { pointer-events: auto; }
.sheet-wrap.open .sheet-scrim { opacity: 1; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-grab {
  width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px;
  cursor: grab; touch-action: none;
}
.sheet.is-dragging .sheet-grab { cursor: grabbing; }
.sheet-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.confirm-msg { margin: 6px 0 16px; color: var(--ink-soft); }

/* ---------- forms ---------- */
.field { display: block; margin: 12px 0; }
.field-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.input {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px; font-size: 15px; outline: none;
}
.input:focus { border-color: var(--tv-accent); }
.kind-picker { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.segment-category-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.segment-category-current {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--tv-ring) 44%, var(--line)); border-radius: 15px;
  background: color-mix(in srgb, var(--tv-wash) 55%, #fff);
}
.segment-category-current-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #fff; font-size: 32px; }
.segment-category-current-icon img { width: 47px; height: 47px; object-fit: contain; }
.segment-category-current > span:last-child { display: grid; gap: 1px; }
.segment-category-current small { color: var(--tv-accent-deep); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.segment-category-current strong { font-size: 14px; }
.segment-category-choice {
  min-height: 82px; display: grid; grid-template-columns: 54px 1fr; align-content: center; gap: 1px 9px;
  padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); text-align: left;
}
.segment-category-choice > .segment-category-art { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--tv-wash) 72%, #fff); font-size: 30px; }
.segment-category-choice > .segment-category-art img { width: 47px; height: 47px; object-fit: contain; }
.segment-category-choice strong { font-size: 11px; line-height: 1.15; }
.segment-category-choice small { overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.segment-category-choice.selected {
  border-color: color-mix(in srgb, var(--sun) 64%, var(--tv-ring));
  background: color-mix(in srgb, var(--sun) 12%, #fff); box-shadow: 0 5px 13px rgba(72,57,34,.09);
}
.sheet.segment-editor-sheet {
  max-height: 92vh; border: 1px solid rgba(255,255,255,.78); border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 12% 2%, rgba(255,255,255,.96), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--card) 88%, transparent), color-mix(in srgb, var(--tv-wash) 42%, var(--card)));
  box-shadow: 0 -18px 70px rgba(47,36,31,.24), inset 0 1px rgba(255,255,255,.95);
  backdrop-filter: blur(24px) saturate(1.16); -webkit-backdrop-filter: blur(24px) saturate(1.16);
}
.segment-editor-sheet .sheet-grab {
  background: linear-gradient(90deg, color-mix(in srgb, var(--tv-ring) 34%, transparent), rgba(255,255,255,.9), color-mix(in srgb, var(--tv-ring) 34%, transparent));
  box-shadow: 0 1px rgba(255,255,255,.8);
}
.segment-editor-sheet .segment-category-current {
  border-color: color-mix(in srgb, var(--tv-ring) 45%, rgba(255,255,255,.8));
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.92), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--tv-wash) 72%, rgba(255,255,255,.48)), rgba(255,255,255,.5));
  box-shadow: 0 12px 28px rgba(55,45,38,.1), inset 0 1px rgba(255,255,255,.95), inset 0 -1px color-mix(in srgb, var(--tv-ring) 15%, transparent);
}
.segment-editor-sheet .segment-category-current-icon,
.segment-editor-sheet .segment-category-art {
  background: linear-gradient(145deg, rgba(255,255,255,.82), color-mix(in srgb, var(--tv-wash) 55%, rgba(255,255,255,.38)));
  box-shadow: 0 8px 18px rgba(59,47,36,.1), inset 0 1px rgba(255,255,255,.98);
}
.segment-editor-sheet .segment-category-choice {
  border-color: color-mix(in srgb, var(--line) 64%, rgba(255,255,255,.8));
  background:
    linear-gradient(160deg, rgba(255,255,255,.78), color-mix(in srgb, var(--card) 64%, var(--tv-wash)));
  box-shadow: 0 10px 24px rgba(56,44,34,.075), inset 0 1px rgba(255,255,255,.95);
  transition: transform .18s var(--ease-bounce), box-shadow .18s ease, border-color .18s ease;
}
.segment-editor-sheet .segment-category-choice:active { transform: scale(.975); }
.segment-editor-sheet .segment-category-choice.selected {
  border-color: color-mix(in srgb, var(--sun) 72%, var(--tv-ring));
  background:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--sun) 22%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--selected) 58%, #fff), color-mix(in srgb, var(--tv-wash) 52%, #fff));
  box-shadow: 0 13px 30px color-mix(in srgb, var(--sun) 14%, rgba(61,45,27,.12)), inset 0 1px rgba(255,255,255,.96);
}
.segment-editor-sheet .input {
  border-color: color-mix(in srgb, var(--line) 67%, rgba(255,255,255,.8));
  background: linear-gradient(145deg, rgba(255,255,255,.72), color-mix(in srgb, var(--tv-wash) 35%, var(--card)));
  box-shadow: inset 0 1px rgba(255,255,255,.96), inset 0 -2px 5px rgba(86,61,47,.045), 0 7px 18px rgba(62,48,36,.055);
}
.segment-editor-sheet .input:focus {
  border-color: color-mix(in srgb, var(--tv-accent) 70%, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tv-accent) 14%, transparent), inset 0 1px rgba(255,255,255,.96);
}
.segment-editor-sheet .attendee-option {
  background: linear-gradient(145deg, rgba(255,255,255,.78), color-mix(in srgb, var(--selected) 32%, var(--card)));
  box-shadow: 0 9px 22px rgba(58,44,32,.1), inset 0 1px rgba(255,255,255,.96);
}
.segment-kind-popout { display: grid; gap: 8px; }
.segment-kind-choice {
  min-height: 70px; display: grid; grid-template-columns: 58px 1fr 22px; align-items: center; gap: 10px;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: left;
}
.segment-kind-choice > .segment-kind-art { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--wash); font-size: 34px; }
.segment-kind-choice > .segment-kind-art img { width: 50px; height: 50px; object-fit: contain; }
.segment-kind-choice strong { font-size: 13px; }
.segment-kind-choice i { color: var(--tv-accent-deep); font-style: normal; font-weight: 900; text-align: center; }
.segment-kind-choice.selected { border-color: var(--tv-ring); background: var(--tv-wash); }
@media (prefers-reduced-motion: reduce) {
  .segment-detail-scene { transform: none !important; }
}

/* ---------- toasts ---------- */
#toast-root { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 200; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600;
  border-radius: 12px; padding: 10px 18px; max-width: min(92vw, 480px);
  opacity: 0; transform: translateY(-8px); transition: all 0.3s; white-space: pre-line;
}
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--danger); color: #fff; }
.toast-success { background: var(--tv-accent-deep); color: #fff; }

/* ---------- onboarding wizard ---------- */
.wizard {
  /* Setup is the neutral front door. A world saved on an existing device
   * must not recolour the wizard before that world is deliberately chosen. */
  --tv-accent: #238fa0;
  --tv-accent-deep: #167688;
  --tv-wash: #e9f5f4;
  --tv-ring: #78b8c1;
  min-height: 100vh; display: flex; flex-direction: column; max-width: var(--maxw);
  margin: 0 auto; padding: calc(20px + env(safe-area-inset-top, 0px)) 22px 30px;
  overflow-anchor: none;
}
/* Progress dots — the active one grows into a numbered pill. */
.wiz-dots { display: flex; gap: 7px; justify-content: center; align-items: center; margin-bottom: 20px; }
.wiz-dot {
  width: 9px; height: 9px; border-radius: 999px; background: var(--line);
  display: grid; place-items: center; transition: all .22s ease;
  font-size: 11px; font-weight: 800; color: transparent;
}
.wiz-dot.done { background: color-mix(in srgb, var(--tv-accent) 40%, var(--line)); }
.wiz-dot.on {
  width: 24px; height: 24px; background: var(--tv-accent); color: #fff;
}
.wiz-body { flex: 1; }
.wiz-head { margin-bottom: 18px; }
.wiz-head.with-mascot { position: relative; padding-top: 76px; }
.wiz-mascot {
  position: absolute; top: -8px; left: -10px; width: 92px; height: auto;
  pointer-events: none;
}
.wiz-head.with-mascot .wiz-title { position: relative; }
.wiz-title {
  font-family: var(--font-display); font-size: 38px; font-weight: 800;
  letter-spacing: -1.1px; line-height: 1.06; margin-bottom: 10px;
}
.wiz-sub { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.wiz-nav { display: flex; gap: 10px; margin-top: 22px; }
.wiz-nav .btn { border-radius: 999px; padding: 15px 26px; font-size: 16px; }
.wiz-hero { text-align: center; padding: 40px 0 26px; }
.wiz-mark { font-size: 64px; }

/* ---------- welcome screen ---------- */
.wizard.welcome {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
.wel-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wel-hero { width: 100%; height: auto; margin: 6px 0 4px; display: block; }
.wel-title {
  font-family: var(--font-display); font-size: 52px; font-weight: 800;
  letter-spacing: -1.8px; line-height: 1; margin-bottom: 14px;
}
.wel-lead { font-size: 18.5px; color: var(--ink-soft); margin-bottom: 10px; }
.wel-sub { font-size: 15.5px; color: var(--muted); max-width: 20em; margin-bottom: 22px; }
.wel-assure {
  display: flex; align-items: stretch; gap: 0; width: 100%;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 16px;
  overflow: hidden;
}
.wel-assure-txt {
  flex: 1; padding: 13px 10px; font-size: 13.5px; font-weight: 700;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  display: grid; place-items: center;
}
.wel-assure-ic { padding: 13px 15px; display: grid; place-items: center; color: var(--tv-accent-deep); }
.wel-assure-ic svg { width: 26px; height: 22px; }
.wel-cta {
  position: relative; width: 100%; border-radius: 22px; padding: 21px 52px;
  font-size: 23px; font-weight: 800; box-shadow: var(--shadow);
}
.wel-cta-label { flex: 1; text-align: center; }
.wel-arrow {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  font-size: 23px; font-weight: 400;
}
.wel-foot { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* character picker */
.char-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; }
.char-opt { flex: none; width: 84px; text-align: center; border: 2px solid var(--line); border-radius: 14px; padding: 10px 4px; background: var(--card); }
.char-opt.selected { border-color: var(--tv-accent); background: var(--tv-wash); }
.char-opt img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 4px; }
.char-opt .sub { font-size: 11px; }

/* ---------- trip type picker ---------- */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.type-card {
  position: relative; border: 2px solid transparent; border-radius: 22px;
  background: var(--card); box-shadow: var(--shadow);
  padding: 16px 12px 18px; text-align: center; cursor: pointer;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.type-card:active { transform: scale(.97); }
.type-card.selected {
  border-color: var(--tv-accent);
  background: color-mix(in srgb, var(--tv-wash) 70%, var(--card));
}
.type-art { line-height: 1; margin-bottom: 10px; }
.type-art img { width: 100%; max-width: 116px; height: 96px; object-fit: contain; margin: 0 auto; display: block; }
.type-label { font-weight: 800; font-size: 17px; letter-spacing: -0.2px; }
.type-sub { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.25; }
/* Tick badge — only visible on the chosen card. */
.type-check {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tv-accent); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  opacity: 0; transform: scale(.5); transition: all .18s ease;
}
.type-card.selected .type-check { opacity: 1; transform: scale(1); }

/* ---------- +/− people stepper ---------- */
.stepper { display: inline-flex; align-items: center; gap: 20px; margin: 10px 0 6px; }
.stepper-btn {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: var(--card);
  font-size: 30px; font-weight: 700; line-height: 1; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.stepper-btn:active { background: var(--tv-wash); border-color: var(--tv-accent); }
.stepper-count { font-size: 64px; font-weight: 800; min-width: 84px; line-height: 1; }
.stepper-faces {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px;
  font-size: 24px; margin: 8px 0 2px; min-height: 30px;
}

/* ---------- document dropzone ---------- */
.dropzone {
  width: 100%; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--wash); padding: 30px 18px; text-align: center; cursor: pointer;
  color: inherit; font: inherit;
}
.dropzone:active { border-color: var(--tv-accent); background: var(--tv-wash); }
.dropzone-mark { font-size: 40px; line-height: 1; }
.dropzone-title { font-weight: 700; font-size: 16px; margin-top: 8px; }
.dropzone-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.fine-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.fine-list li { margin: 5px 0; }
.fine-list strong { color: var(--ink-soft); }

/* Scan proposals — tick to include, untick to leave out. */
.prop-row { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; opacity: .45; }
.prop-row.on { opacity: 1; }
.prop-row.duplicate { opacity: .58; cursor: default; }
.prop-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: transparent; font-size: 13px; font-weight: 700; }
.prop-row.on .prop-tick { background: var(--tv-accent); border-color: var(--tv-accent); color: #fff; }
.prop-row.duplicate .prop-tick { width: auto; padding: 0 8px; border-radius: 999px; font-size: 9px; }

/* ---------- photos ---------- */
.head-row { display: flex; gap: 12px; overflow-x: auto; padding: 6px 0 10px; scroll-padding-left: var(--gutter, 11px); }
.head-opt { flex: none; width: 66px; text-align: center; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
.head-face, .head-all {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center;
  object-fit: cover; background: var(--wash); border: 2px solid var(--line); font-size: 22px; color: var(--muted);
}
.head-opt.selected .head-face, .head-opt.selected .head-all { border-color: var(--tv-accent); }
.head-all img { width: 43px; height: 43px; object-fit: contain; display: block; }
.head-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-count { font-size: 10.5px; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.photo-cell { position: relative; aspect-ratio: 1; border: none; padding: 0; background: var(--wash); cursor: pointer; overflow: hidden; border-radius: 8px; }
.photo-cell > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-owner {
  position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid #fff; object-fit: cover; background: var(--card);
}
.photo-full { width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--wash); }
.photo-welcome {
  display: grid; gap: 14px; padding: 14px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--illustration) 42%, var(--line));
  border-radius: 27px; background:
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--selected) 65%, transparent), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--card) 90%, var(--illustration)), color-mix(in srgb, var(--bg-2) 80%, var(--card)));
  box-shadow: 0 18px 42px rgba(53,43,29,.12), inset 0 1px rgba(255,255,255,.75);
}
.photo-welcome-scene {
  position: relative; min-height: 235px; overflow: hidden; border-radius: 21px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--illustration) 78%, #cceaf0) 0 54%, transparent 54%),
    repeating-linear-gradient(0deg, transparent 0 21px, color-mix(in srgb, var(--tv-accent) 10%, transparent) 22px),
    color-mix(in srgb, var(--selected) 48%, #fff);
}
.photo-welcome-pack-art {
  position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px);
  object-fit: contain; filter: drop-shadow(0 15px 20px rgba(54,42,26,.18));
}
.photo-sun { position: absolute; right: 21px; top: 19px; width: 38px; height: 38px; border-radius: 50%; background: var(--tv-sun); box-shadow: 0 0 0 9px color-mix(in srgb, var(--tv-sun) 19%, transparent); }
.photo-cloud { position: absolute; width: 52px; height: 17px; border-radius: 20px; background: rgba(255,255,255,.78); }
.photo-cloud::before, .photo-cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.photo-cloud::before { left: 8px; width: 25px; height: 25px; }
.photo-cloud::after { right: 6px; width: 19px; height: 19px; }
.photo-cloud-a { left: 24px; top: 27px; }
.photo-cloud-b { right: 78px; top: 70px; transform: scale(.72); }
.photo-journal {
  position: absolute; z-index: 3; left: 50%; bottom: 24px; width: 148px; height: 125px;
  border: 2px solid color-mix(in srgb, var(--tv-accent-deep) 30%, transparent); border-radius: 11px 23px 23px 11px;
  background: color-mix(in srgb, var(--card) 92%, var(--selected));
  box-shadow: 0 15px 28px rgba(56,40,24,.2); transform: translateX(-50%) rotate(-3deg);
}
.photo-journal::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; border-left: 2px dashed color-mix(in srgb, var(--tv-accent) 30%, transparent); }
.photo-journal-ring { position: absolute; left: -6px; top: 17px; width: 14px; height: 7px; border: 3px solid var(--tv-accent-deep); border-radius: 8px; box-shadow: 0 24px 0 -3px var(--tv-accent-deep), 0 48px 0 -3px var(--tv-accent-deep), 0 72px 0 -3px var(--tv-accent-deep); }
.photo-journal-line { position: absolute; left: 31px; right: 17px; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--tv-accent) 19%, transparent); }
.photo-journal-line.is-one { top: 32px; }
.photo-journal-line.is-two { top: 47px; width: 57px; }
.photo-journal-stamp { position: absolute; right: 17px; bottom: 17px; width: 42px; height: 42px; display: grid; place-items: center; border: 2px dashed var(--tv-accent); border-radius: 50%; color: var(--tv-accent-deep); font-style: normal; transform: rotate(10deg); }
.photo-polaroid {
  position: absolute; z-index: 4; width: 69px; height: 82px; padding: 6px 6px 18px; border-radius: 7px;
  background: #fffdf8; box-shadow: 0 10px 20px rgba(45,34,22,.18);
}
.photo-polaroid i { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, var(--illustration), var(--selected)); color: var(--tv-accent-deep); font: 700 25px/1 var(--font-display); }
.photo-polaroid-a { left: 17px; bottom: 17px; transform: rotate(-9deg); }
.photo-polaroid-b { right: 17px; bottom: 29px; transform: rotate(8deg); }
.photo-camera {
  position: absolute; z-index: 5; right: 65px; bottom: 9px; width: 60px; height: 42px; border-radius: 11px;
  background: var(--tv-accent-deep); box-shadow: 0 8px 16px rgba(35,35,35,.18);
}
.photo-camera::before { content: ""; position: absolute; left: 9px; top: -8px; width: 21px; height: 10px; border-radius: 5px 5px 0 0; background: inherit; }
.photo-camera i { position: absolute; left: 21px; top: 9px; width: 25px; height: 25px; border: 5px solid color-mix(in srgb, var(--illustration) 78%, #fff); border-radius: 50%; }
.photo-ticket { position: absolute; z-index: 2; left: 25px; top: 88px; padding: 7px 11px; border: 1px dashed var(--tv-accent-deep); border-radius: 7px; color: var(--tv-accent-deep); background: color-mix(in srgb, var(--card) 78%, transparent); font-size: 8px; font-weight: 900; letter-spacing: .14em; transform: rotate(6deg); }
.photo-welcome-copy { display: grid; gap: 3px; text-align: center; }
.photo-welcome-copy h2 { font-family: var(--font-display); font-size: 25px; }
.photo-welcome-copy p { max-width: 420px; margin: auto; color: var(--muted); font-size: 12px; line-height: 1.45; }
.photo-welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-album-preview {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 11px;
  border: 1px dashed color-mix(in srgb, var(--tv-accent) 38%, var(--line)); border-radius: 17px;
  background: color-mix(in srgb, var(--card) 74%, transparent);
}
.photo-album-preview > span { display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; gap: 0 9px; align-items: center; }
.photo-album-preview i { grid-row: 1 / 3; width: 35px; height: 35px; border-radius: 10px; background: linear-gradient(145deg, var(--illustration), var(--selected)); }
.photo-album-preview strong { font-size: 11px; }
.photo-album-preview small { color: var(--muted); font-size: 9px; }
.photo-album-preview b { color: var(--tv-accent-deep); font: 500 24px/1 var(--font-display); }

.pack-import-preview { display: grid; gap: 13px; }
.pack-preview-hero {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 14px;
  border-radius: 22px; background: linear-gradient(140deg, var(--illustration), var(--selected));
  box-shadow: inset 0 1px rgba(255,255,255,.76);
}
.pack-preview-hero > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: color-mix(in srgb, var(--card) 78%, transparent); font-size: 36px; }
.pack-preview-hero small { color: var(--tv-accent-deep); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.pack-preview-hero h2 { font-family: var(--font-display); font-size: 22px; line-height: 1.05; }
.pack-preview-hero p { color: var(--ink-soft); font-size: 10px; }
.pack-preview-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.pack-preview-facts > span { min-width: 0; display: grid; gap: 2px; padding: 10px; border-radius: 15px; background: color-mix(in srgb, var(--control) 76%, var(--card)); }
.pack-preview-facts strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pack-preview-facts small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.pack-preview-ok, .pack-preview-warnings { padding: 11px; border-radius: 15px; font-size: 10px; }
.pack-preview-ok { color: #276848; background: #e8f5ec; }
.pack-preview-warnings { display: grid; gap: 4px; color: #785522; background: #fff3cd; }
.pack-preview-warnings p { font-size: 9px; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.empty .semantic-empty-art img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  object-fit: contain;
}

@media (min-width: 700px) {
  body { background: color-mix(in srgb, var(--bg) 92%, var(--ink) 4%); }
  #app, .tabbar { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  #app { background: var(--bg); min-height: 100vh; }
}

/* ---------- login / profile picker ---------- */
.login {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px var(--gutter, 11px); gap: 26px;
}
.login-brand { text-align: center; }
.login-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.login-kicker {
  margin-top: 9px; color: var(--accent-deep); font-size: 10px; font-weight: 900;
  letter-spacing: .18em; text-transform: uppercase;
}
.login-note {
  max-width: 280px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.login-setup-action {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(12px, var(--gutter, 11px));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.login-setup-plus {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 18px; line-height: 1;
}
.login-sub { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.login-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 14px; width: 100%; max-width: 420px;
}
.login-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; cursor: pointer; box-shadow: var(--shadow);
  font: inherit; color: inherit; transition: transform .12s ease;
}
.login-card:active { transform: scale(.96); }
.login-avatar {
  width: 82px; height: 82px; border-radius: 50%; overflow: hidden;
  background: var(--wash); border: 2px solid var(--line); display: grid; place-items: center;
}
.login-avatar.big { width: 104px; height: 104px; margin: 0 auto 4px; }
.login-avatar img { width: 100%; height: 100%; object-fit: cover; }
.login-name { font-weight: 700; font-size: 15px; }
.login-lock {
  position: absolute; top: 10px; right: 12px; padding: 4px 6px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em;
}

.pin-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pin-dots { display: flex; gap: 14px; }
.pin-dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--line); background: transparent; transition: background .15s ease;
}
.pin-dot.on { background: var(--accent); border-color: var(--accent); }
.pin-dots.shake { animation: pinshake .4s ease; }
@keyframes pinshake {
  0%,100% { transform: translateX(0) }
  20% { transform: translateX(-9px) } 40% { transform: translateX(9px) }
  60% { transform: translateX(-6px) } 80% { transform: translateX(6px) }
}
.pin-pad { display: grid; grid-template-columns: repeat(3, 74px); gap: 12px; }
.pin-key {
  height: 74px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); font-size: 25px; font-weight: 600; font-family: inherit;
  color: inherit; cursor: pointer;
}
.pin-key:active { background: var(--wash); transform: scale(.94); }
.pin-key.ghost { background: transparent; border-color: transparent; font-size: 21px; color: var(--muted); }

/* ---------- local blank-canvas setup preview ---------- */
.setup-preview-mode { background: var(--bg); }
.setup-preview {
  --setup-accent: var(--accent, #238fa0);
  --setup-deep: var(--accent-deep, #167688);
  min-height: 100dvh; max-width: var(--maxw); margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter, 11px) calc(24px + env(safe-area-inset-bottom, 0px));
}
.setup-preview-header { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; min-height: 58px; }
.setup-home-art { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--control); overflow: hidden; }
.setup-home-art img { width: 100%; height: 100%; object-fit: contain; }
.setup-preview-brand { min-width: 0; }
.setup-preview-brand h1 { font: 800 clamp(20px, 5.7vw, 27px)/1 var(--font-display); letter-spacing: -.55px; }
.setup-preview-kicker, .setup-eyebrow { color: var(--setup-deep); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.setup-preview-tools { display: flex; justify-content: flex-end; }
.setup-preview-tools .btn { white-space: nowrap; }
.setup-preview-dots { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 7px; padding: 10px 0 6px; }
.setup-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); color: transparent; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.setup-dot.is-current { width: 22px; height: 22px; color: #fff; background: var(--setup-accent); }
.setup-dot.is-done { background: color-mix(in srgb, var(--setup-accent) 42%, var(--line)); }
.setup-preview-main { display: grid; gap: 17px; padding-top: 13px; }
.setup-preview-heading h2 { font: 800 clamp(27px, 7.5vw, 37px)/1.05 var(--font-display); letter-spacing: -1px; }
.setup-preview-heading p { max-width: 34em; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.42; }
.setup-hero-panel, .setup-empty-shell, .setup-upgrade-card { border: 1px solid var(--line); border-radius: 25px; background: var(--card); box-shadow: var(--shadow); }
.setup-hero-panel { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 16px; padding: 17px; background: linear-gradient(140deg, color-mix(in srgb, var(--control) 74%, var(--card)), var(--card)); }
.setup-hero-art { width: 100px; height: 100px; display: grid; place-items: center; border-radius: 24px; background: color-mix(in srgb, var(--setup-accent) 12%, var(--card)); }
.setup-art img { width: 100%; height: 100%; object-fit: contain; }
.setup-hero-copy h3 { margin-top: 5px; font: 800 22px/1.08 var(--font-display); }
.setup-hero-copy p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.42; }
.setup-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.setup-feature-card { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.setup-feature-art { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--setup-accent) 10%, var(--card)); }
.setup-feature-card strong { font-size: 12px; line-height: 1.2; }
.setup-feature-card p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.setup-pack-choice { display: grid; gap: 9px; }
.setup-pack-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.setup-pack-card.is-selected { border-color: var(--setup-accent); background: color-mix(in srgb, var(--setup-accent) 10%, var(--card)); box-shadow: inset 0 0 0 1px var(--setup-accent); }
.setup-pack-art { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--control); }
.setup-pack-copy { display: grid; gap: 3px; min-width: 0; }
.setup-pack-copy strong { font-size: 13px; }
.setup-pack-copy small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.setup-pack-state { color: var(--setup-deep); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.setup-tester-note { display: flex; gap: 9px; align-items: center; padding: 11px; border: 1px solid color-mix(in srgb, var(--setup-accent) 30%, var(--line)); border-radius: 17px; background: color-mix(in srgb, var(--setup-accent) 7%, var(--card)); }
.setup-tester-art { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.setup-tester-note strong { color: var(--setup-deep); font-size: 11px; letter-spacing: .08em; }
.setup-tester-note p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.setup-form-stack { display: grid; gap: 13px; }
.setup-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.setup-choice { min-height: 54px; padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); color: inherit; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-align: left; cursor: pointer; }
.setup-choice.is-selected { border-color: var(--setup-accent); background: color-mix(in srgb, var(--setup-accent) 12%, var(--card)); box-shadow: inset 0 0 0 1px var(--setup-accent); }
.setup-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.setup-traveller-list { display: grid; gap: 10px; }
.setup-profile-pack-picker { display: grid; gap: 9px; padding: 11px; border: 1px solid color-mix(in srgb, var(--setup-accent) 28%, var(--line)); border-radius: 19px; background: color-mix(in srgb, var(--setup-accent) 6%, var(--card)); }
.setup-profile-pack-heading { display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; min-width: 0; }
.setup-profile-pack-heading-art { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--control); overflow: hidden; }
.setup-profile-pack-heading-art img { width: 100%; height: 100%; object-fit: contain; }
.setup-profile-pack-heading strong { display: block; margin-top: 2px; font-size: 13px; }
.setup-profile-pack-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.setup-profile-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.setup-profile-pack-card { display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 0; min-height: 138px; padding: 8px 5px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: inherit; font: inherit; text-align: center; cursor: pointer; }
.setup-profile-pack-card.is-selected { border-color: var(--setup-accent); background: color-mix(in srgb, var(--setup-accent) 12%, var(--card)); box-shadow: inset 0 0 0 1px var(--setup-accent); }
.setup-profile-pack-card.is-installed { cursor: default; opacity: .72; }
.setup-profile-pack-card.is-installed .setup-profile-pack-state { color: var(--muted); }
.setup-profile-pack-avatar { width: 51px; height: 51px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,.86); border-radius: 50%; background: var(--control); box-shadow: 0 3px 8px rgba(57,45,31,.15); }
.setup-profile-pack-avatar img { width: 100%; height: 100%; object-fit: cover; }
.setup-profile-pack-copy { display: grid; gap: 2px; min-width: 0; }
.setup-profile-pack-copy strong { font-size: 11px; line-height: 1.15; }
.setup-profile-pack-copy small { color: var(--muted); font-size: 8.5px; line-height: 1.25; }
.setup-profile-pack-state { color: var(--setup-deep); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.setup-traveller-row { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.setup-person-art { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--control); overflow: hidden; }
.setup-traveller-fields { display: grid; gap: 7px; min-width: 0; }
.setup-traveller-fields .input { min-width: 0; }
.setup-entitlement-note { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 11px; line-height: 1.38; }
.setup-note-art { flex: none; width: 28px; height: 28px; display: grid; place-items: center; }
.setup-upgrade-card { display: grid; gap: 10px; padding: 17px; border-color: color-mix(in srgb, var(--setup-accent) 48%, var(--line)); background: color-mix(in srgb, var(--setup-accent) 8%, var(--card)); }
.setup-upgrade-art { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--control); }
.setup-upgrade-card h3 { font: 800 22px/1.1 var(--font-display); }
.setup-upgrade-card p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.setup-upgrade-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.setup-preview-nav { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.setup-shell-top { display: flex; align-items: center; gap: 12px; padding: 17px; border-bottom: 1px solid var(--line); }
.setup-location-art { width: 48px; height: 48px; display: grid; place-items: center; }
.setup-shell-top h3 { margin-top: 3px; font: 800 29px/1 var(--font-display); }
.setup-shell-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 13px 17px; }
.setup-shell-facts span { display: grid; gap: 2px; min-width: 0; }
.setup-shell-facts strong { font-size: 18px; }
.setup-shell-facts small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.setup-shell-empty { padding-bottom: 16px; overflow: hidden; }
.setup-shell-empty { text-align: center; }
.setup-empty-art { width: 72px; height: 72px; margin: 17px auto 9px; display: grid; place-items: center; border-radius: 20px; background: var(--control); }
.setup-shell-empty strong { display: block; padding: 0 17px; font-size: 15px; }
.setup-shell-empty p { padding: 5px 17px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
@media (max-width: 390px) {
  .setup-preview-tools .btn-small { padding-inline: 8px; font-size: 10px; }
  .setup-hero-panel { grid-template-columns: 74px 1fr; gap: 11px; padding: 13px; }
  .setup-hero-art { width: 74px; height: 74px; border-radius: 19px; }
  .setup-hero-copy h3 { font-size: 19px; }
  .setup-feature-grid { grid-template-columns: 1fr; gap: 8px; }
  .setup-feature-card { grid-template-columns: 34px 1fr; align-items: center; padding: 9px; }
  .setup-feature-art { width: 34px; height: 34px; }
  .setup-feature-card p { margin-top: 3px; }
  .setup-pack-card { grid-template-columns: 36px 1fr; }
  .setup-pack-art { width: 36px; height: 36px; }
  .setup-pack-state { grid-column: 2; }
  .setup-choice { font-size: 13px; }
  .setup-profile-pack-card { min-height: 130px; padding-inline: 4px; }
  .setup-profile-pack-avatar { width: 46px; height: 46px; }
}

/* ---------- exact six-screen setup reference skin ----------
 * The approved setup pages are master-owned scene assets. The real controls
 * remain layered over the literal artwork so setup stays keyboard/touch
 * operable without approximating the supplied leather composition.
 */
.setup-preview-mode,
.setup-preview-mode body {
  background: #f8eee1;
}
.setup-preview-mode #app {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.setup-preview {
  position: relative;
  container-type: inline-size;
  width: min(100%, 440px);
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #f8eee1;
}
.setup-reference-art {
  display: block;
  width: 100%;
  min-height: 100dvh;
  background: #f8eee1;
}
.setup-reference-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.setup-preview-header,
.setup-preview-main {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  padding: 0;
  pointer-events: none;
}
.setup-preview-header > :not(.setup-preview-tools),
.setup-preview-heading,
.setup-preview-main > :not(.setup-preview-nav):not(.setup-form-stack):not(.setup-date-grid) {
  opacity: 0;
  pointer-events: none;
}
.setup-preview-tools {
  position: absolute;
  z-index: 4;
  left: 5.5%;
  top: 10.4%;
  width: 55%;
  height: 3.9%;
  display: block;
  pointer-events: auto;
}
.setup-step-welcome .setup-preview-tools { top: 11.8%; }
.setup-preview-tools .btn,
.setup-preview-nav .btn {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.setup-preview-tools .btn:focus-visible,
.setup-preview-nav .btn:focus-visible,
.setup-pack-card:focus-visible,
.setup-choice:focus-visible,
.setup-traveller-row .input:focus-visible,
.setup-traveller-row select:focus-visible,
.setup-date-grid .input:focus-visible {
  outline: 3px solid #0f6972;
  outline-offset: -3px;
  background: rgba(15,105,114,.08);
}
.setup-preview-main > .setup-form-stack {
  position: absolute;
  inset: 0;
  display: block;
  gap: 0;
  pointer-events: none;
}
.setup-preview-nav {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  pointer-events: none;
}
.setup-step-count {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.setup-preview-nav .btn {
  position: absolute;
  z-index: 5;
}
.setup-preview-nav .btn:not(.btn-ghost) {
  right: 4.4%;
  bottom: 7.0%;
  width: 45%;
  height: 7.0%;
}
.setup-preview-nav .btn.btn-ghost {
  left: 4.2%;
  bottom: 7.0%;
  width: 27%;
  height: 7.0%;
}
.setup-step-welcome .setup-preview-nav .btn:not(.btn-ghost) {
  right: 5.6%;
  top: 180.8cqw;
  bottom: auto;
  width: 45.7%;
  height: 17.5cqw;
}

/* The stitched controls are painted at different positions on each literal
 * reference page. Keep the real semantic button exactly on the visible
 * leather surface so Safari's focus/activation feedback cannot drift away
 * from the artwork. */
.setup-step-features .setup-preview-nav .btn:not(.btn-ghost) {
  right: 4.8%;
  top: 195.9cqw;
  bottom: auto;
  width: 44.9%;
  height: 14.7cqw;
}
.setup-step-features .setup-preview-nav .btn.btn-ghost {
  left: 4.0%;
  top: 195.9cqw;
  bottom: auto;
  width: 22.8%;
  height: 14.7cqw;
}
.setup-step-destination .setup-preview-nav .btn:not(.btn-ghost) {
  right: 4.1%;
  top: 185.2cqw;
  bottom: auto;
  width: 36.6%;
  height: 15.4cqw;
}
.setup-step-destination .setup-preview-nav .btn.btn-ghost {
  left: 3.6%;
  top: 185.2cqw;
  bottom: auto;
  width: 27.0%;
  height: 15.4cqw;
}
.setup-step-dates .setup-preview-nav .btn:not(.btn-ghost) {
  right: 4.1%;
  top: 183.3cqw;
  bottom: auto;
  width: 36.5%;
  height: 15.7cqw;
}
.setup-step-dates .setup-preview-nav .btn.btn-ghost {
  left: 3.6%;
  top: 183.3cqw;
  bottom: auto;
  width: 27.0%;
  height: 15.7cqw;
}
.setup-step-travellers .setup-preview-nav .btn:not(.btn-ghost) {
  right: 3.9%;
  top: 184.2cqw;
  bottom: auto;
  width: 37.3%;
  height: 16.1cqw;
}
.setup-step-travellers .setup-preview-nav .btn.btn-ghost {
  left: 3.6%;
  top: 184.2cqw;
  bottom: auto;
  width: 27.0%;
  height: 16.1cqw;
}
.setup-step-ready .setup-preview-nav .btn:not(.btn-ghost) {
  right: 3.6%;
  top: 200.1cqw;
  bottom: auto;
  width: 38.2%;
  height: 13.2cqw;
}
.setup-step-ready .setup-preview-nav .btn.btn-ghost {
  left: 3.6%;
  top: 200.1cqw;
  bottom: auto;
  width: 27.0%;
  height: 13.2cqw;
}

/* Step 2: Basic/Traveller pack rows stay real controls. */
.setup-step-features .setup-feature-grid,
.setup-step-features .setup-tester-note {
  opacity: 0;
  pointer-events: none;
}
.setup-step-features .setup-pack-choice {
  position: absolute;
  z-index: 4;
  left: 4%;
  top: 57%;
  width: 92%;
  height: 20.5%;
  display: block;
  pointer-events: none;
}
.setup-step-features .setup-pack-card {
  position: absolute;
  left: 0;
  width: 100%;
  height: 47%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  opacity: .001;
  pointer-events: auto;
}
.setup-step-features .setup-pack-card:nth-child(2) { top: 53%; }
.setup-step-features .setup-pack-card.is-selected:nth-child(2)::after {
  content: "";
  position: absolute;
  right: 2.5%;
  top: 8%;
  width: 22px;
  height: 22px;
  border: 3px double #fff4e7;
  border-radius: 50%;
  background: #d86649;
  box-shadow: 0 3px 6px rgba(82,48,29,.28);
}

/* Step 3: all four destination cards and the real destination field. */
.setup-step-destination .setup-choice-grid {
  position: absolute;
  z-index: 4;
  left: 3.4%;
  top: 34.1%;
  width: 93%;
  height: 35.7%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.1% 3.2%;
  pointer-events: none;
}
.setup-step-destination .setup-choice {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: transparent;
  box-shadow: none;
  opacity: .001;
  pointer-events: auto;
}
.setup-step-destination .setup-form-stack > .field {
  position: absolute;
  z-index: 4;
  left: 4.6%;
  top: 75.1%;
  width: 90.7%;
  height: 5.8%;
  margin: 0;
  pointer-events: none;
}
.setup-step-destination .setup-form-stack > .field .field-label { display: none; }
.setup-step-destination .setup-form-stack > .field .input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: #04133b;
  box-shadow: none;
  opacity: .01;
  pointer-events: auto;
}

/* Step 4: native date controls occupy the stitched input artwork. */
.setup-step-dates .setup-date-grid {
  position: absolute;
  z-index: 4;
  left: 8.8%;
  top: 62.2%;
  width: 82.2%;
  height: 7.4%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14.5%;
  pointer-events: none;
}
.setup-step-dates .setup-date-grid .field { margin: 0; pointer-events: none; }
.setup-step-dates .setup-date-grid label { display: none; }
.setup-step-dates .setup-date-grid .input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: #04133b;
  box-shadow: none;
  opacity: .01;
  pointer-events: auto;
}

/* Step 5: preserve the real traveller fields and entitlement interactions. */
.setup-step-travellers .setup-profile-pack-picker { display: none; }
.setup-step-travellers .setup-traveller-list {
  position: absolute;
  z-index: 4;
  left: 27.5%;
  top: 42.8%;
  width: 65%;
  height: 14.4%;
  display: block;
  pointer-events: none;
}
.setup-step-travellers .setup-traveller-row {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.setup-step-travellers .setup-person-art { display: none; }
.setup-step-travellers .setup-traveller-fields {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8%;
  height: 100%;
  pointer-events: none;
}
.setup-step-travellers .setup-traveller-fields .input,
.setup-step-travellers .setup-traveller-fields select {
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: #04133b;
  box-shadow: none;
  opacity: .01;
  pointer-events: auto;
}
.setup-step-travellers .setup-form-stack > .btn {
  position: absolute;
  z-index: 4;
  left: 3.2%;
  top: 62.2%;
  width: 93.6%;
  height: 6.7%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  opacity: .001;
  pointer-events: auto;
}
.setup-step-travellers .setup-entitlement-note {
  opacity: 0;
  pointer-events: none;
}

/* Step 6: the three reference action rows remain functional hotspots. */
.setup-step-ready .setup-empty-shell { opacity: 0; pointer-events: none; }
.setup-step-ready .setup-form-stack > .btn {
  position: absolute;
  z-index: 4;
  left: 3.5%;
  width: 93%;
  height: 5.8%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  opacity: .001;
  pointer-events: auto;
}
.setup-step-ready .setup-form-stack > .btn:nth-of-type(1) { top: 72.9%; }
.setup-step-ready .setup-form-stack > .btn:nth-of-type(2) { top: 78.9%; }
.setup-step-ready .setup-form-stack > .btn:nth-of-type(3) { top: 85.0%; }

/* ---------- interactive regions layered over the literal setup scenes ----------
 * The reference artwork continues to own the invariant header and decoration.
 * Dynamic areas are opaque stitched surfaces so a painted sample state never
 * leaks through a real neutral/selected value.
 */
.setup-preview-nav .btn {
  isolation: isolate;
  overflow: hidden;
  transition: transform 135ms ease, background-color 135ms ease, box-shadow 135ms ease;
}
.setup-preview-nav .btn.is-tactile-pressed {
  transform: none;
  background: rgba(116, 46, 24, .11);
  box-shadow: inset 0 0 0 3px rgba(110, 44, 24, .18), inset 0 4px 7px rgba(81, 38, 21, .18);
}
.setup-preview-nav .btn.is-tactile-pressed.btn-ghost {
  background: rgba(29, 78, 99, .09);
  box-shadow: inset 0 0 0 3px rgba(29, 78, 99, .14), inset 0 4px 7px rgba(25, 57, 73, .14);
}
.setup-pack-card::before,
.setup-choice::before,
.setup-date-panel::before,
.setup-traveller-list::before,
.setup-empty-shell::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(184, 132, 76, .53);
  border-radius: inherit;
  pointer-events: none;
}
.setup-selection-tick {
  position: absolute;
  z-index: 3;
  right: -7px;
  top: -10px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(72, 42, 29, .24));
}
.setup-selection-tick img { width: 100%; height: 100%; object-fit: contain; }

/* Step 2: both pack choices begin neutral. */
.setup-step-features .setup-pack-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 11px;
  padding: 9px 15px;
  border: 1px solid #dfc7a8;
  border-radius: 19px;
  background: #fff7ea;
  color: #061a3f;
  box-shadow: 0 4px 10px rgba(76, 51, 31, .14);
  opacity: 1;
}
.setup-step-features .setup-pack-card::before { inset: 4px; }
.setup-step-features .setup-pack-card .setup-pack-art {
  width: 51px;
  height: 51px;
  border-radius: 14px;
  background: transparent;
}
.setup-step-features .setup-pack-card .setup-pack-copy {
  display: grid;
  gap: 3px;
}
.setup-step-features .setup-pack-card .setup-pack-copy strong {
  font-size: 13px;
  line-height: 1.15;
}
.setup-step-features .setup-pack-card .setup-pack-copy small {
  color: #5e6268;
  font-size: 10px;
  line-height: 1.25;
}
.setup-step-features .setup-pack-card.is-selected {
  border-color: #8fbabe;
  background: #dbecee;
  color: #061a3f;
  box-shadow: 0 0 0 2px rgba(63, 144, 153, .24), 0 6px 14px rgba(58, 108, 112, .2);
}
.setup-step-features .setup-pack-card.is-selected:nth-child(2)::after { content: none; }

/* Step 3: catalogue-backed neutral/selected destination cards and chips. */
.setup-step-destination .setup-choice-grid {
  pointer-events: auto;
}
.setup-step-destination .setup-choice {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 0;
  padding: 9px;
  border: 1px solid #dfc7a8;
  border-radius: 20px;
  background: #fff7ea;
  color: #061a3f;
  box-shadow: 0 5px 12px rgba(77, 52, 33, .14);
  opacity: 1;
}
.setup-step-destination .setup-choice.is-selected {
  border-color: #84b8bd;
  background: #d9ebed;
  color: #061a3f;
  box-shadow: 0 0 0 2px rgba(44, 142, 151, .23), 0 6px 14px rgba(51, 103, 108, .19);
}
.setup-step-destination .setup-choice strong {
  max-width: 100%;
  font: 800 18px/1.08 var(--font-display);
  text-align: center;
}
.setup-country-flag {
  width: 92px;
  height: 66px;
  display: grid;
  place-items: center;
}
.setup-country-flag img { width: 100%; height: 100%; object-fit: contain; }
.setup-choice-later .setup-country-flag { width: 62px; height: 62px; }
.setup-choice-later strong { font-size: 15px !important; }
.setup-step-destination .setup-destination-panel {
  position: absolute;
  z-index: 4;
  left: 4.5%;
  top: 71.2%;
  width: 91%;
  min-height: 11.2%;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #dec6a8;
  border-radius: 16px;
  background: #fff7ea;
  box-shadow: 0 4px 9px rgba(77, 52, 33, .13);
  opacity: 1;
  pointer-events: auto;
}
.setup-selected-destinations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}
.setup-destination-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 4px 3px 6px;
  border: 1px solid #a7c8c9;
  border-radius: 999px;
  background: #e4f0ef;
  color: #061a3f;
}
.setup-destination-chip strong {
  max-width: 96px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setup-destination-chip-flag {
  width: 19px;
  height: 14px;
  display: grid;
  place-items: center;
}
.setup-destination-chip-flag img { width: 100%; height: 100%; object-fit: contain; }
.setup-destination-remove,
.setup-traveller-remove {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #b64a36;
  border-radius: 50%;
  background: #df674e;
  color: #fff7e8;
  font: 800 16px/1 var(--font-display);
  box-shadow: 0 2px 4px rgba(83, 40, 27, .2);
  cursor: pointer;
}
.setup-destination-empty {
  color: #66686d;
  font-size: 10px;
}
.setup-country-select {
  width: 100%;
  height: 31px;
  padding: 0 28px 0 9px;
  border: 1px solid #d6c09f;
  border-radius: 11px;
  background: #fffaf1;
  color: #061a3f;
  font: 700 11px/1 var(--font-display);
}

/* Step 4: the real date controls cover the painted placeholders and padlock. */
.setup-step-dates .setup-date-panel {
  position: absolute;
  z-index: 4;
  left: 3.4%;
  top: 55.4%;
  width: 93.2%;
  height: 24.8%;
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 23px 20px 17px;
  border: 1px solid #dec6a8;
  border-radius: 24px;
  background: #fff7ea;
  box-shadow: 0 7px 15px rgba(80, 54, 32, .16);
  opacity: 1 !important;
  pointer-events: auto !important;
}
.setup-step-dates .setup-date-grid {
  position: static;
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  pointer-events: auto;
}
.setup-step-dates .setup-date-grid .field { pointer-events: auto; }
.setup-step-dates .setup-date-grid label {
  display: block;
  margin: 0 0 7px;
  color: #071b42;
  font: 800 12px/1 var(--font-display);
}
.setup-step-dates .setup-date-grid .input {
  width: 100%;
  height: 54px;
  padding: 0 43px 0 8px;
  border: 1px solid #d4bb95;
  border-radius: 14px;
  background: #fffaf1;
  color: #343c4b;
  caret-color: #04133b;
  box-shadow: inset 0 0 0 3px rgba(235, 218, 193, .35), 0 3px 7px rgba(84, 56, 34, .12);
  font-size: 12px;
  opacity: 1;
  pointer-events: auto;
}
.setup-date-control {
  position: relative;
  display: block;
  width: 100%;
}
.setup-date-field-art {
  position: absolute;
  z-index: 2;
  right: 7px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  pointer-events: none;
}
.setup-step-dates .setup-date-grid .input::-webkit-calendar-picker-indicator {
  position: absolute;
  z-index: 3;
  right: 0;
  width: 42px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.setup-date-later {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 47px;
  padding: 8px 12px;
  border: 1px solid #9fc2c3;
  border-radius: 14px;
  background: #e3efee;
  color: #1a5e64;
  font: 700 12px/1.25 var(--font-display);
  box-shadow: 0 3px 7px rgba(55, 93, 94, .13);
}
.setup-date-later::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #e3efee;
}
.setup-date-later.is-selected {
  background: #cfe5e5;
  box-shadow: inset 0 0 0 2px rgba(61, 138, 145, .23), 0 3px 7px rgba(55, 93, 94, .13);
}
.setup-date-later.is-selected::before { background: #cfe5e5; }
.setup-date-later::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 40px;
  border-radius: 10px;
  background: #e3efee;
  pointer-events: none;
}
.setup-date-later.is-selected::after { background: #cfe5e5; }

/* Step 5: repeatable visible traveller rows with real pack selectors. */
.setup-step-travellers .setup-traveller-list {
  position: absolute;
  z-index: 4;
  left: 3.2%;
  top: 39.5%;
  width: 93.6%;
  height: 20.2%;
  display: grid;
  align-content: stretch;
  gap: 7px;
  padding: 13px;
  overflow: auto;
  border: 1px solid #dec6a8;
  border-radius: 24px;
  background: #fff7ea;
  box-shadow: 0 7px 15px rgba(80, 54, 32, .16);
  pointer-events: auto;
}
.setup-step-travellers .setup-traveller-list::before {
  position: fixed;
  content: none;
}
.setup-step-travellers .setup-traveller-row {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: 43px 1fr 24px;
  gap: 8px;
  align-items: center;
  min-height: 0;
  padding: 6px 7px;
  border: 1px solid #e2cbae;
  border-radius: 15px;
  background: #fffaf1;
  box-shadow: 0 2px 6px rgba(80, 54, 32, .1);
  pointer-events: auto;
}
.setup-step-travellers .setup-person-art {
  display: grid;
  width: 43px;
  height: 43px;
  background: #dbe9e6;
}
.setup-step-travellers .setup-traveller-fields {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  height: auto;
  pointer-events: auto;
}
.setup-step-travellers .setup-traveller-fields .input,
.setup-step-travellers .setup-traveller-fields select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d5bfa0;
  border-radius: 10px;
  background: #fffdf7;
  color: #071b42;
  caret-color: #04133b;
  box-shadow: inset 0 0 0 2px rgba(236, 221, 199, .3);
  font: 700 10.5px/1 var(--font-display);
  opacity: 1;
  pointer-events: auto;
}
.setup-step-travellers .setup-traveller-remove {
  width: 22px;
  height: 22px;
}
.setup-step-travellers .setup-upgrade-card {
  position: absolute;
  z-index: 8;
  inset: 5px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px;
  background: #fff7ea;
}
.setup-step-travellers .setup-upgrade-art { display: none; }
.setup-step-travellers .setup-upgrade-card h3 { font-size: 15px; }
.setup-step-travellers .setup-upgrade-card p { font-size: 9px; line-height: 1.25; }
.setup-step-travellers .setup-upgrade-actions .btn { min-height: 30px; padding: 5px 8px; font-size: 9px; }

/* Step 6: a real draft summary covers the static sample values. */
.setup-step-ready .setup-empty-shell {
  position: absolute;
  z-index: 4;
  left: 3.1%;
  top: 27.8%;
  width: 93.8%;
  height: 42.8%;
  overflow: hidden;
  border: 1px solid #dec6a8;
  border-radius: 24px;
  background: #fff7ea;
  box-shadow: 0 7px 15px rgba(80, 54, 32, .16);
  opacity: 1;
  pointer-events: auto;
}
.setup-step-ready .setup-shell-top {
  display: grid;
  grid-template-columns: 58px 32px 1fr;
  gap: 8px;
  min-height: 84px;
  padding: 13px 16px 9px;
  border-bottom: 1px dashed #d4b487;
}
.setup-ready-flag {
  width: 58px;
  height: 45px;
  display: grid;
  place-items: center;
}
.setup-ready-flag img { width: 100%; height: 100%; object-fit: contain; }
.setup-step-ready .setup-location-art { width: 31px; height: 40px; }
.setup-ready-primary-copy { min-width: 0; }
.setup-step-ready .setup-shell-top h3 {
  max-width: 100%;
  overflow: hidden;
  margin-top: 3px;
  font: 800 24px/1.04 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setup-ready-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 48px;
  padding: 7px 13px;
  overflow: auto;
  border-bottom: 1px dashed #ddc19a;
}
.setup-ready-destination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 4px;
  border: 1px solid #b9ceca;
  border-radius: 999px;
  background: #e5efed;
}
.setup-ready-destination .setup-ready-flag { width: 22px; height: 17px; }
.setup-ready-destination strong { font-size: 8.5px; }
.setup-step-ready .setup-shell-facts {
  display: grid;
  grid-template-columns: .75fr 1.5fr .75fr;
  gap: 0;
  padding: 9px 12px;
  border-bottom: 1px dashed #ddc19a;
}
.setup-step-ready .setup-shell-facts span {
  gap: 1px;
  padding: 0 6px;
  text-align: center;
}
.setup-step-ready .setup-shell-facts span + span { border-left: 1px dashed #ddc19a; }
.setup-step-ready .setup-shell-facts strong { font-size: 14px; line-height: 1.15; }
.setup-step-ready .setup-shell-facts small { font-size: 7px; }
.setup-step-ready .setup-shell-facts em {
  max-width: 100%;
  overflow: hidden;
  color: #65666b;
  font-size: 7.5px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setup-step-ready .setup-shell-empty {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 11px;
  text-align: left;
}
.setup-step-ready .setup-empty-art {
  grid-row: 1 / span 3;
  width: 45px;
  height: 45px;
  margin: 0;
  border-radius: 12px;
}
.setup-step-ready .setup-shell-empty strong {
  padding: 0;
  font-size: 11px;
}
.setup-step-ready .setup-shell-empty p {
  padding: 0;
  font-size: 8.5px;
}
.setup-ready-pack-summary {
  color: #16606a;
  font-size: 8px;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .setup-preview-nav .btn { transition: none; }
  .setup-preview-nav .btn.is-tactile-pressed { transform: none; }
}

@media (max-width: 390px) {
  .setup-reference-art { min-height: 0; }
  .setup-preview-tools .btn-small,
  .setup-preview-nav .btn,
  .setup-pack-card,
  .setup-choice {
    font-size: 16px;
  }
  .setup-step-features .setup-pack-card {
    grid-template-columns: 49px 1fr;
    padding-inline: 12px;
  }
  .setup-step-features .setup-pack-card .setup-pack-art { width: 45px; height: 45px; }
  .setup-step-destination .setup-choice strong { font-size: 16px; }
  .setup-country-flag { width: 82px; height: 59px; }
  .setup-step-dates .setup-date-panel { padding-inline: 16px; }
  .setup-step-dates .setup-date-grid .input { font-size: 10px; }
  .setup-step-travellers .setup-traveller-list { padding: 10px; }
  .setup-step-ready .setup-shell-top h3 { font-size: 21px; }
}

/* ============ wizard screens 3-12, matched to the splash mockups ============ */

/* banners */
.wiz-banner {
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--tv-wash) 55%, var(--card));
  border-radius: 18px; padding: 14px 16px; margin-top: 16px;
  font-size: 15px; font-weight: 600; text-align: left;
}
.wiz-banner-ic {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tv-accent); color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; font-style: italic; font-family: Georgia, serif;
}
.wiz-banner.ai { background: #EEEAF6; }
.wiz-banner-art { width: 54px; height: auto; flex: none; }

/* 3 · party stepper */
.party-card {
  background: var(--card); border-radius: 30px; box-shadow: var(--shadow);
  padding: 26px 20px 12px; text-align: center;
}
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.stepper-btn {
  width: 88px; height: 88px; border-radius: 50%; font-size: 40px; font-weight: 600;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.stepper-btn.minus { background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.stepper-btn.plus { background: var(--tv-accent); color: #fff; border: none; box-shadow: var(--shadow); }
.stepper-btn:active { transform: scale(.94); }
.stepper-mid { flex: 1; }
.stepper-count { font-family: var(--font-display); font-size: 84px; font-weight: 800; line-height: 1; }
.stepper-lab { color: var(--muted); font-size: 17px; margin-top: 2px; }
.party-art { width: 92%; margin: 10px auto 0; }

/* 4 · who's travelling */
.who-card { background: var(--card); border-radius: 30px; box-shadow: var(--shadow); padding: 22px 20px 8px; }
.who-row { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.who-fig { width: 74px; height: auto; flex: none; }
.who-main { flex: 1; }
.who-label { font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.who-input { position: relative; }
.who-input .input { padding-right: 46px; border-radius: 16px; }
.who-tick {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wash); color: var(--muted); font-size: 14px; font-weight: 800;
}
.who-tick.on { background: var(--tv-accent); color: #fff; }
.who-footer-art { width: 74%; margin: 18px auto 0; display: block; }
.who-anytime {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); border-radius: 999px; padding: 10px 18px;
  width: fit-content; margin: 12px auto 0; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow);
}
.who-anytime-ic {
  width: 22px; height: 22px; border-radius: 50%; background: var(--tv-accent);
  color: #fff; display: grid; place-items: center; font-size: 12px;
}

/* 5 · pick a character */
.pickchar-chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.pickchar-chip {
  flex: none; display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-weight: 700; font-size: 15.5px; box-shadow: var(--shadow);
}
.pickchar-chip.active { border-color: var(--tv-accent); }
.pickchar-dot { width: 17px; height: 17px; border-radius: 50%; }
.pickchar-panel { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 18px 16px; margin-top: 14px; }
.pickchar-head, .act-head { font-weight: 800; font-size: 19px; margin-bottom: 12px; }
.pickchar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pickchar-card {
  position: relative; background: var(--bg); border: 2px solid transparent;
  border-radius: 20px; padding: 12px 8px 12px; text-align: center;
}
.pickchar-card img { width: 100%; max-width: 130px; height: 108px; object-fit: contain; margin: 0 auto 6px; }
.pickchar-card.selected { border-color: var(--tv-accent); background: color-mix(in srgb, var(--tv-wash) 60%, var(--card)); }
.pickchar-name { font-weight: 800; font-size: 16px; }

/* dashed import row */
.import-dashed {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 2px dashed color-mix(in srgb, var(--tv-accent) 55%, var(--line));
  border-radius: 20px; padding: 16px; margin-top: 14px; color: var(--tv-accent-deep);
  font-weight: 700; font-size: 16px; text-align: left;
}
.import-dashed-ic { font-size: 20px; }
.import-dashed-art { width: 44px; height: auto; }
.import-dashed-label { font-weight: 700; }

/* 6 · splits */
.split-stack { display: flex; flex-direction: column; gap: 16px; }
.split-card {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 2px solid transparent; border-radius: 26px;
  box-shadow: var(--shadow); padding: 18px 14px 18px 18px; text-align: left;
}
.split-card.selected { border-color: var(--tv-accent); background: color-mix(in srgb, var(--tv-wash) 55%, var(--card)); }
.split-copy { flex: 1; min-width: 0; }
.split-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.1; }
.split-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 12px; }
.split-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg);
  border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow);
}
.split-art { width: 54%; max-width: 250px; flex: none; }

/* 7 · choose your world */
.world-included {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  justify-content: flex-start; min-height: 380px; overflow: hidden;
  width: 100%; text-align: left;
  background: var(--card); border: 2px solid var(--tv-accent); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow);
}
.world-included > :not(.world-art) { position: relative; z-index: 1; }
.world-head { display: flex; align-items: center; gap: 10px; max-width: 58%; }
.world-name { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.world-badge {
  background: var(--tv-accent); color: #fff; font-size: 11.5px; font-weight: 800;
  letter-spacing: .5px; border-radius: 8px; padding: 4px 9px; width: fit-content;
}
.world-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 10px; max-width: 19em; }
.world-swatches { display: flex; gap: 7px; margin-bottom: 8px; }
.world-swatches i { width: 34px; height: 30px; border-radius: 9px; border: 1px solid var(--line); }
.world-swatches.mini i { width: 16px; height: 14px; border-radius: 4px; }
.world-art {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  margin: 0; display: block; object-fit: cover; object-position: center;
}
.world-included .type-check {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 44px; height: 44px; opacity: 1; transform: scale(1); font-size: 24px;
}
.type-check.off { display: none; }
.world-more { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; }
.world-more-lock { font-size: 20px; }
.world-more-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.world-paid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.world-paid {
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  padding: 10px 10px 14px; text-align: center;
}
.world-paid-art { position: relative; }
.world-paid-art img { width: 100%; height: 120px; object-fit: contain; }
.world-paid { position: relative; }
.world-paid:active { transform: scale(.97); }
/* No CSS padlock: the pack artwork carries its own, and a second one doubled up.
   The whole card is the tap target instead. */
.world-paid-badge {
  display: inline-block; color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .5px; border-radius: 7px; padding: 3px 8px; margin: 6px 0 4px;
}
.world-paid-name { font-weight: 800; font-size: 16.5px; }
.world-later { color: var(--tv-accent-deep); font-weight: 700; text-decoration: underline dashed; font-size: 15px; }
.wiz-banner.shield .wiz-banner-ic { font-style: normal; font-family: inherit; }

/* 8 · device */
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.device-card, .device-add {
  position: relative; background: var(--card); border: 2px solid transparent;
  border-radius: 24px; box-shadow: var(--shadow); padding: 22px 10px 16px; text-align: center;
}
.device-card.selected { border-color: var(--tv-accent); background: color-mix(in srgb, var(--tv-wash) 55%, var(--card)); }
.device-avatar {
  position: relative; width: 104px; height: 104px; margin: 0 auto 12px; border-radius: 50%;
  border: 4px solid var(--tv-ring); overflow: visible;
}
.device-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.device-tick {
  position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--tv-accent); color: #fff; display: grid; place-items: center;
  font-weight: 800; border: 3px solid var(--card);
}
.device-name { font-weight: 800; font-size: 18px; }
.device-add { border: 2px dashed color-mix(in srgb, var(--tv-accent) 45%, var(--line)); box-shadow: none; }
.device-add-art { width: 78%; margin: 0 auto 6px; }
.device-footer-art { width: 88%; margin: 16px auto 0; display: block; }

/* 9 · activities */
.act-panel { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 18px 16px; margin-bottom: 14px; }
.act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.act-card {
  position: relative; background: var(--bg); border-radius: 16px; padding: 20px 6px 10px;
  text-align: center; box-shadow: var(--shadow);
}
.act-art { font-size: 30px; line-height: 1; height: 52px; display: grid; place-items: center; }
.act-art img { max-width: 52px; max-height: 52px; object-fit: contain; }
.act-label { font-size: 12px; font-weight: 700; margin-top: 6px; line-height: 1.15; }
.act-grip {
  position: absolute; top: 6px; left: 7px; color: color-mix(in srgb, var(--muted) 60%, transparent);
  font-size: 17px; line-height: 1; letter-spacing: -4px; transform: rotate(90deg);
}
.act-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow); font-size: 10px; color: var(--muted);
  display: grid; place-items: center;
}
.act-picks { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.act-pick {
  flex: none; width: 62px; height: 62px; border-radius: 50%; background: var(--bg);
  border: 2.5px solid transparent; display: grid; place-items: center; font-size: 26px;
  box-shadow: var(--shadow);
}
.act-pick.on { border-color: var(--tv-accent); }
.act-pick img { width: 42px; height: 42px; object-fit: contain; }
.act-addrow { display: flex; gap: 10px; margin-top: 12px; }
.act-addbtn { border-radius: 16px; padding: 12px 18px; flex: none; }

/* 10 · name your trip */
.trip-hero {
  position: relative; background: var(--card); border-radius: 26px;
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 16px;
}
.trip-hero-chip {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--tv-wash); color: var(--tv-accent-deep);
  font-size: 12px; font-weight: 800; letter-spacing: .6px;
  border-radius: 999px; padding: 6px 13px;
}
.trip-hero-art { width: 100%; max-height: 300px; object-fit: cover; border-radius: 18px; }
.trip-form { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 18px 16px 14px; }
.trip-dates { display: flex; align-items: flex-end; gap: 8px; }
.trip-destination-list { display: grid; gap: 8px; }
.trip-destination-row { display: flex; align-items: end; gap: 8px; }
.trip-destination-remove {
  width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center;
  margin-bottom: 1px; border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--line));
  border-radius: 13px; background: color-mix(in srgb, var(--danger) 7%, var(--card));
  color: var(--danger); font-size: 20px; line-height: 1;
}
.trip-destination-add { width: 100%; margin: 2px 0 4px; }
.pack-library-intro { margin: -4px 0 9px; }
.pack-import-advanced {
  margin: 7px 0 12px; padding: 10px 12px; border: 1px dashed var(--line);
  border-radius: 15px; background: color-mix(in srgb, var(--card) 60%, transparent);
}
.pack-import-advanced summary { color: var(--ink-soft); font-size: 11px; font-weight: 850; cursor: pointer; }
.pack-import-advanced p { margin: 8px 0; }
.trip-dates-arrow { color: var(--tv-accent); font-size: 20px; padding-bottom: 14px; }
.trip-date-control, .trip-currency-control { position: relative; }
.trip-date-input { padding-right: 58px; }
.trip-date-input::-webkit-calendar-picker-indicator { opacity: 0; }
.trip-date-button {
  position: absolute; z-index: 2; right: 6px; top: 50%; width: 46px; height: 46px;
  transform: translateY(-50%); display: grid; place-items: center; background: transparent;
}
.trip-date-art { width: 39px; height: 42px; object-fit: contain; }
.trip-date-fallback { font-size: 24px; line-height: 1; }
.trip-currency-art {
  position: absolute; z-index: 2; left: 8px; top: 50%; width: 43px; height: 43px;
  object-fit: contain; transform: translateY(-50%); pointer-events: none;
}
.trip-cur { appearance: none; padding-left: 61px; padding-right: 43px; }
.trip-cur-arrow {
  position: absolute; right: 17px; top: 50%; transform: translateY(-56%);
  color: var(--tv-accent-deep); font-size: 27px; font-weight: 800; pointer-events: none;
}

/* 11 · documents */
.document-import-hero {
  position: relative; display: grid; grid-template-columns: minmax(160px, .95fr) minmax(0, 1.05fr); gap: 15px; align-items: center;
  overflow: hidden; margin: 18px 0 8px; padding: 22px; border: 1px solid color-mix(in srgb, var(--tv-accent) 25%, #d3ba97); border-radius: 32px;
  background: linear-gradient(135deg, #fff8eb, #fffaf5 56%, #eef6ec); box-shadow: 0 18px 35px rgba(78,52,27,.14), inset 0 1px rgba(255,255,255,.96);
}
.document-import-hero::before { content:""; position:absolute; inset:10px; border:1px dashed rgba(157,109,58,.34); border-radius:21px; pointer-events:none; }
.document-import-art { position:relative; width:156px; height:177px; justify-self:center; filter:drop-shadow(0 12px 13px rgba(67,45,25,.2)); }
.document-import-art-image { width:100%; max-width:220px; max-height:258px; justify-self:center; object-fit:contain; filter:drop-shadow(0 13px 13px rgba(67,45,25,.18)); }
.document-wallet { position:absolute; z-index:1; left:16px; bottom:5px; width:123px; height:139px; border-radius:20px 21px 25px 23px; background:linear-gradient(145deg,#c98b50,#9a5b2e); box-shadow:inset 0 1px rgba(255,255,255,.38),0 10px 12px rgba(77,42,17,.2); }
.document-wallet::after { content:""; position:absolute; right:-9px; top:73px; width:35px; height:35px; border-radius:0 14px 14px 0; background:#e07a55; border:2px solid #a45a37; }
.document-pass { position:absolute; z-index:2; display:grid; place-items:center; width:87px; height:108px; border-radius:13px; border:1px solid rgba(133,89,51,.17); background:linear-gradient(145deg,#fffef8,#f2e3ca); box-shadow:0 7px 10px rgba(72,50,28,.15); color:#cd694d; font-size:38px; font-style:normal; }
.document-pass-flight { left:3px; top:14px; transform:rotate(-9deg); }
.document-pass-stay { right:4px; top:40px; color:#427d70; transform:rotate(9deg); }
.document-pass-calendar { left:38px; bottom:13px; width:81px; height:91px; color:#247478; transform:rotate(2deg); }
.document-pass-location { right:7px; bottom:3px; width:58px; height:68px; color:#cf6b4d; transform:rotate(14deg); }
.document-import-copy { position:relative; z-index:1; display:grid; justify-items:start; gap:9px; min-width:0; }
.document-import-copy h2 { margin:0; font-family:var(--font-display); font-size:clamp(26px,6vw,40px); line-height:.98; letter-spacing:-1px; }
.document-import-copy p { margin:0; color:var(--ink-soft); font-size:14px; line-height:1.4; }
.document-import-button { border:0; border-radius:17px; padding:13px 17px; background:linear-gradient(145deg,#f68665,#db5d46); box-shadow:inset 0 1px rgba(255,255,255,.4),0 8px 14px rgba(137,58,41,.28); color:white; font:inherit; font-size:12px; font-weight:900; letter-spacing:.45px; text-transform:uppercase; }
.document-format-list { display:flex; gap:6px; flex-wrap:wrap; }
.document-format-list span { padding:7px 9px; border-radius:10px; background:rgba(255,255,255,.74); box-shadow:0 4px 9px rgba(80,55,29,.1); color:var(--tv-accent-deep); font-size:10px; font-weight:900; }
.document-privacy-divider { width:100%; border-top:2px dashed rgba(157,109,58,.3); margin-top:2px; }
.document-import-copy small { color:var(--muted); font-size:10px; }
.document-privacy-note { display:block; width:100%; line-height:1.35; }
.document-import-note { margin:9px 4px 14px; color:var(--muted); font-size:11px; line-height:1.45; }
.document-empty-folder { display:grid; place-items:center; width:70px; height:54px; margin:2px auto 9px; border-radius:15px; background:linear-gradient(145deg,#efd08e,#d6a75e); color:#6d5435; box-shadow:inset 0 1px rgba(255,255,255,.55),0 8px 14px rgba(102,73,37,.17); font-size:37px; }
.document-empty-folder-art { display:block; width:94px; height:86px; margin:10px auto 2px; object-fit:contain; }
.docs-panel {
  display: block; width: 100%; text-align: center;
  background: color-mix(in srgb, var(--tv-wash) 45%, var(--card));
  border: 2px dashed color-mix(in srgb, var(--tv-accent) 50%, var(--line));
  border-radius: 28px; padding: 18px 16px 20px;
}
.docs-hero-art { width: 100%; margin: 0 auto 4px; display: block; }
.docs-panel-title { font-family: var(--font-display); font-size: 27px; font-weight: 800; color: var(--tv-accent-deep); text-align: left; }
.docs-panel-sub { color: var(--muted); font-size: 14.5px; text-align: left; margin: 4px 0 12px; }
.docs-chip {
  display: inline-flex; gap: 7px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 700;
}
.docs-works { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 18px 14px 8px; margin-top: 14px; }
.docs-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 10px;
}
.docs-row-art { width: 56px; height: auto; flex: none; }
.docs-row-main { flex: 1; min-width: 0; }
.docs-row-title { font-weight: 800; font-size: 16px; }
.docs-row-title.teal, .docs-row-title.purple { color: var(--tv-accent-deep); }
.docs-row-title.amber { color: #B07E22; }
.docs-row-title.purple { color: #7A6BB0; }
.docs-row-sub { color: var(--muted); font-size: 13.5px; line-height: 1.3; margin-top: 2px; }
.docs-row-badge {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 17px;
}
.docs-row-badge.teal { background: var(--tv-accent); }
.docs-row-badge.amber { background: #D9A93C; }

/* 12 · extra packs */
.packs-ready {
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--tv-wash) 50%, var(--card));
  border: 2px solid var(--tv-accent); border-radius: 22px; padding: 14px;
}
.packs-ready-tick {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tv-accent); color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
}
.packs-ready-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.packs-ready-title { font-weight: 800; font-size: 18.5px; }
.packs-ready-art { width: 34%; max-width: 150px; flex: none; }

/* done */
.done-body { text-align: center; display: flex; flex-direction: column; align-items: center; }
.done-hero-art { width: 100%; max-width: min(320px, 100%); margin: 0 auto 2px; display: block; }
.done-title { font-size: 42px; line-height: 1.05; }
.done-card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 14px 8px; width: 100%; margin-top: 10px; }
.done-card-head { font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.done-cells { display: grid; grid-template-columns: repeat(4, 1fr); }
.done-cell { display: grid; gap: 8px; justify-items: center; padding: 4px 6px; border-left: 1px solid var(--line); }
.done-cell:first-child { border-left: none; }
.done-cell-art { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.done-cell-lab { font-size: 13px; font-weight: 700; line-height: 1.15; }

/* Instance greeting-card artwork replaces the text greeting when supplied. */
.greet-card-art {
  display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center;
  border: 0; outline: 0; border-radius: var(--radius); background: transparent;
  box-shadow: var(--shadow); margin: 12px 0 15px;
}
/* Evening artwork shipped with generous white outer pixels. Covering the
 * card surface trims only that export gutter; its own safe inner padding stays intact. */
.greet-card-art-evening { object-position: center; }
.greet-card-video-trigger {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius);
  overflow: visible; background: transparent; color: inherit; text-align: inherit;
}
.greet-card-video-trigger .greet-card-art {
  aspect-ratio: 2.15 / 1; margin: 20px 0 15px; border-radius: clamp(20px, 5.5vw, 28px);
  object-fit: cover; object-position: center; clip-path: inset(0 round clamp(20px, 5.5vw, 28px));
}
.greet-card-video-trigger .greet-card { margin: 20px 0 15px; }
.greet-card-video-cue:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.greet-card-video-cue {
  position: absolute; left: 17px; bottom: 28px; z-index: 2; padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.46); border-radius: 999px;
  background: rgba(7,31,40,.72); color: #fff; box-shadow: 0 8px 24px rgba(5,19,25,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.greet-card-video-cue.has-muscle-art {
  left: auto; right: clamp(8px, 2.3vw, 16px); top: clamp(-13px, -1.7vw, -7px); bottom: auto;
  width: clamp(82px, 22%, 132px); height: clamp(72px, 19vw, 116px);
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  cursor: pointer;
}
.greet-card-video-cue.has-muscle-art img {
  position: absolute; right: 0; top: 0; width: 100%; height: auto; aspect-ratio: 493 / 258;
  object-fit: contain; object-position: right top;
  background: transparent; filter: drop-shadow(0 5px 5px rgba(8,22,28,.28));
}
.greet-card-video-cue.has-muscle-art.is-composite-play {
  right: -4px; top: clamp(-24px, -4.5vw, -15px);
  width: clamp(78px, 21%, 118px); height: auto; aspect-ratio: 1;
  overflow: visible;
}
.greet-card-video-cue.has-muscle-art.is-composite-play::before {
  content: ""; position: absolute; z-index: 0; left: 23%; bottom: 1%; width: 54%; aspect-ratio: 1;
  border: 3px solid rgba(239,94,70,.42); border-radius: 50%; pointer-events: none;
  animation: greetPlayPulse 1.8s ease-out infinite;
}
.greet-card-video-cue.has-muscle-art.is-composite-play img {
  z-index: 1; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain;
  animation: greetPlayFloat 1.8s ease-in-out infinite alternate;
}
@keyframes greetPlayPulse {
  0%, 35% { opacity: .72; transform: scale(.92); }
  90%, 100% { opacity: 0; transform: scale(1.22); }
}
@keyframes greetPlayFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-1.5px); }
}
.greet-card-video-play {
  position: absolute; right: 2px; bottom: 2px; width: clamp(34px, 8.7vw, 46px); height: clamp(34px, 8.7vw, 46px);
  display: grid; place-items: center; padding-left: 3px;
  border: 2px solid rgba(255,255,255,.9); border-radius: 50%;
  background: linear-gradient(145deg, #f77a57, #cf3d2d); color: #fff;
  box-shadow: 0 5px 13px rgba(60,22,14,.3), inset 0 1px rgba(255,255,255,.38);
  font-size: 14px; line-height: 1;
}
.greet-video-overlay {
  position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 18px;
  background: rgba(10,18,23,.68); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: shortcutOverlayIn 180ms ease-out both;
}
.greet-video-panel {
  position: relative; width: min(520px, 100%); padding: 48px 13px 14px; border-radius: var(--radius);
  background: linear-gradient(145deg, #1c4f59, #071f29 62%, #342218);
  border: 1px solid rgba(243,198,104,.58);
  box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.22);
  animation: shortcutPickerIn 320ms cubic-bezier(.16,.82,.28,1.08) both;
}
.greet-video-panel::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none; border-radius: calc(var(--radius) - 7px);
  border: 1px solid rgba(243,198,104,.22);
}
.greet-video-close {
  position: absolute; z-index: 5; right: 12px; top: 11px; width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.34); border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font: 800 22px/1 var(--font-body);
}
.greet-video-frame {
  position: relative; z-index: 2; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px;
  border: 2px solid rgba(243,198,104,.66); background: #000;
  box-shadow: 0 15px 36px rgba(0,0,0,.38), 0 0 0 5px rgba(255,255,255,.06);
}
.greet-video-player { display: block; width: 100%; height: 100%; border: 0; }
.greet-video-timeline {
  --video-progress: 0%; position: relative; z-index: 4; height: 30px;
  display: flex; align-items: center; margin: 10px 5px 0; padding: 0 42px 0 9px;
  border: 1px solid rgba(243,198,104,.42); border-radius: 999px;
  background: rgba(5,27,34,.76); box-shadow: inset 0 1px rgba(255,255,255,.12);
}
.greet-video-progress {
  width: 100%; height: 20px; margin: 0; appearance: none; -webkit-appearance: none;
  background: transparent; cursor: pointer;
}
.greet-video-progress::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, #ef684e var(--video-progress), rgba(255,255,255,.3) var(--video-progress));
}
.greet-video-progress::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255,255,255,.3); }
.greet-video-progress::-moz-range-progress { height: 4px; border-radius: 999px; background: #ef684e; }
.greet-video-progress::-webkit-slider-thumb {
  width: 24px; height: 24px; margin-top: -10px; appearance: none; -webkit-appearance: none;
  border: 0; background: transparent;
}
.greet-video-progress::-moz-range-thumb { width: 24px; height: 24px; border: 0; background: transparent; }
.greet-video-progress-marker {
  position: absolute; z-index: 2; left: clamp(10px, calc(var(--video-progress) + 4px), calc(100% - 51px));
  bottom: 5px; width: 27px; height: 28px; object-fit: contain; pointer-events: none;
  transform: translateX(-50%); filter: drop-shadow(0 3px 3px rgba(0,0,0,.35));
}
.greet-video-progress-time {
  position: absolute; right: 10px; color: #fff4d9; font-size: 9px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.greet-video-progress:focus-visible { outline: 2px solid #f8d37f; outline-offset: 3px; border-radius: 999px; }
.greet-video-peek {
  position: absolute; z-index: 1; top: -30px; left: 50%; width: 92px; height: 92px;
  transform: translateX(-50%); pointer-events: none;
}
.greet-video-peek img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 9px 9px rgba(0,0,0,.36));
}
.greet-video-copy {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 3px 0; color: #fff;
}
.greet-video-copy strong { font-size: 13px; }
.greet-video-copy a { color: #f8d37f; font-size: 11px; font-weight: 800; }
.greet-video-panel.has-frame-art {
  width: min(720px, 100%); aspect-ratio: 1493 / 1054; padding: 0; border: 0;
  border-radius: 0; background: var(--greet-video-frame-art) center / 100% 100% no-repeat;
  box-shadow: none;
}
.greet-video-panel.has-frame-art::before,
.greet-video-panel.has-frame-art .greet-video-peek,
.greet-video-panel.has-frame-art .greet-video-copy { display: none; }
.greet-video-panel.has-frame-art .greet-video-frame {
  position: absolute; z-index: 2; left: 5.5%; top: 35.86%; width: 88.82%; height: 55.98%;
  aspect-ratio: auto; border: 0; border-radius: 3.6%; background: #000;
  box-shadow: none;
}
.greet-video-panel.has-frame-art .greet-video-close {
  z-index: 5; left: 89.35%; right: auto; top: 28.1%; width: 5.5%; height: 7.8%;
  min-width: 26px; min-height: 26px; border: 0; background: transparent;
  color: transparent; font-size: 0; box-shadow: none;
}
.greet-video-panel.has-frame-art .greet-video-timeline {
  position: absolute; z-index: 4; left: 8%; top: 92.1%; width: 84%; height: 5%;
  min-height: 22px; margin: 0; padding-left: 8px; padding-right: 38px;
  border-color: rgba(231,190,103,.6); background: rgba(4,27,34,.86);
}
.greet-video-panel.has-frame-art .greet-video-progress-marker {
  bottom: 2px; width: 24px; height: 25px;
}

@media (prefers-reduced-motion: reduce) {
  .greet-card-video-cue.has-muscle-art.is-composite-play::before,
  .greet-card-video-cue.has-muscle-art.is-composite-play img { animation: none; }
}

/* The supplied setup comps are phone layouts. Earlier sizing treated their
 * device pixels as CSS pixels, which made headings and cards roughly a third
 * too large and pushed several stages onto unnecessary second screens. */
@media (max-width: 680px) {
  .wizard {
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px
      calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .wiz-dots { gap: 6px; margin-bottom: 14px; }
  .wiz-dot { width: 7px; height: 7px; font-size: 10px; }
  .wiz-dot.on { width: 22px; height: 22px; }
  .wiz-head { margin-bottom: 18px; }
  .wiz-head.with-mascot { padding-top: 54px; }
  .wiz-mascot { top: -6px; left: -7px; width: 72px; }
  .wiz-title { font-size: 36px; letter-spacing: -.9px; margin-bottom: 9px; }
  .wiz-sub { font-size: 15px; line-height: 1.35; }
  .wiz-nav { gap: 10px; margin-top: 22px; }
  .wiz-nav .btn { padding: 15px 22px; font-size: 16px; }
  .wizard-party .wiz-head { margin-top: 24px; }
  .wizard-profile .wiz-head { margin-top: 16px; }
  .wizard-documents .wiz-title { font-size: 34px; white-space: nowrap; }

  /* 1 · welcome */
  .wizard.welcome { padding-left: 16px; padding-right: 16px; }
  .wel-hero {
    width: 100%;
    max-width: none;
    margin: 64px 0 0;
  }
  .wel-title { font-size: 42px; letter-spacing: -1.2px; margin-bottom: 10px; }
  .wel-lead { font-size: 15.5px; margin-bottom: 7px; }
  .wel-sub { font-size: 13.5px; line-height: 1.35; margin-bottom: 16px; }
  .wel-assure { margin-bottom: 12px; }
  .wel-assure-txt { padding: 10px 7px; font-size: 12px; }
  .wel-assure-ic { padding: 10px 12px; }
  .wel-assure-ic svg { width: 22px; height: 19px; }
  .wel-cta { border-radius: 20px; padding: 20px 44px; font-size: 21px; }
  .wel-arrow { right: 22px; font-size: 21px; }
  .wel-foot { margin-top: 9px; font-size: 12px; }

  /* 2 · trip type */
  .type-grid { gap: 10px; }
  .type-card { border-radius: 20px; padding: 14px 9px 15px; }
  .type-art { margin-bottom: 7px; }
  .type-art img { max-width: 116px; height: 100px; }
  .type-label { font-size: 15px; }
  .type-sub { font-size: 11.5px; }
  .type-check { top: 7px; right: 7px; width: 22px; height: 22px; font-size: 13px; }
  .wizard-triptype .wiz-title { font-size: 42px; }
  .wizard-triptype .wiz-mascot { left: 4px; width: 92px; }

  /* 3 · party */
  .party-card { border-radius: 26px; padding: 18px 14px 9px; margin: 0 6px; }
  .stepper { gap: 12px; padding: 0 4px; }
  .stepper-btn { width: 66px; height: 66px; font-size: 31px; }
  .stepper-count { min-width: 68px; font-size: 64px; }
  .stepper-lab { font-size: 14px; }
  .party-art { width: 132%; margin: 7px -16% 0; }

  /* 4 · travellers */
  .who-card { border-radius: 26px; padding: 18px 18px 7px; }
  .who-row { gap: 15px; margin-bottom: 14px; }
  .who-fig { width: 65px; }
  .who-label { font-size: 17px; margin-bottom: 7px; }
  .who-input .input { padding: 14px 44px 14px 14px; border-radius: 16px; }
  .who-tick { width: 27px; height: 27px; font-size: 13px; }
  .who-footer-art { width: 80%; margin-top: 16px; }
  .who-anytime { padding: 8px 14px; margin-top: 9px; font-size: 12.5px; }
  .who-anytime-ic { width: 19px; height: 19px; }

  /* 5 · characters */
  .pickchar-chips { gap: 7px; }
  .pickchar-chip { gap: 7px; padding: 9px 14px; font-size: 13px; }
  .pickchar-dot { width: 14px; height: 14px; }
  .pickchar-panel { border-radius: 22px; padding: 13px 12px; margin-top: 10px; }
  .pickchar-head, .act-head { font-size: 16px; margin-bottom: 9px; }
  .pickchar-grid { gap: 8px; }
  .pickchar-card { border-radius: 17px; padding: 7px 6px 9px; }
  .pickchar-card img { max-width: 105px; height: 84px; margin-bottom: 3px; }
  .pickchar-card { overflow: hidden; }
  .pickchar-card img {
    width: 130px; max-width: none; height: 105px;
    margin: -9px auto -8px;
  }
  .pickchar-name { font-size: 13.5px; }
  .import-dashed { gap: 9px; border-radius: 17px; padding: 12px; margin-top: 10px; font-size: 13.5px; }

  /* 6 · costs */
  .wizard-splits .wiz-head { margin-bottom: 8px; }
  .split-stack { gap: 8px; }
  .split-card { border-radius: 24px; padding: 18px 10px 18px 16px; }
  .split-title { font-size: 26px; }
  .split-sub { font-size: 14px; margin: 8px 0 11px; }
  .split-chip { padding: 8px 11px; font-size: 12px; }
  .split-art { width: 64%; margin-left: -8%; }

  /* Shared information strips */
  .wiz-banner { gap: 10px; border-radius: 17px; padding: 13px 14px; margin-top: 14px; font-size: 14px; }
  .wiz-banner-ic { width: 24px; height: 24px; font-size: 13px; }
  .wiz-banner-art { width: 43px; }

  /* 7 · world */
  .world-included {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    min-height: 305px; overflow: hidden; border-radius: 21px; padding: 15px;
  }
  .world-included > :not(.world-art) { position: relative; z-index: 1; }
  .world-included .type-check {
    position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px;
    opacity: 1; transform: scale(1); font-size: 19px;
  }
  .world-name { font-size: 23px; }
  .world-badge { font-size: 9px; padding: 3px 7px; }
  .world-sub { font-size: 13px; margin: 7px 0 8px; max-width: 15em; }
  .world-swatches { gap: 5px; margin-bottom: 6px; }
  .world-swatches i { width: 25px; height: 22px; border-radius: 6px; }
  .world-art {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: center; opacity: .98;
  }
  .world-more { gap: 7px; margin: 13px 0 7px; }
  .world-more-title { font-size: 18px; }
  .world-paid-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .world-paid { border-radius: 16px; padding: 6px 6px 9px; }
  .world-paid-art img { height: 118px; }
  .world-paid-name { font-size: 12.5px; line-height: 1.1; }
  .world-paid-badge { font-size: 8px; padding: 2px 5px; margin: 4px 0 3px; }
  .world-swatches.mini { gap: 3px; }
  .world-swatches.mini i { width: 11px; height: 9px; border-radius: 3px; }
  .world-later { font-size: 12.5px; }

  /* 8 · device */
  .device-grid { gap: 10px; }
  .device-card, .device-add { border-radius: 22px; padding: 21px 9px 15px; }
  .device-avatar { width: 82px; height: 82px; margin-bottom: 8px; border-width: 3px; }
  .device-tick { width: 25px; height: 25px; border-width: 2px; }
  .device-name { font-size: 15px; }
  .device-add-art { width: 68%; }
  .device-footer-art { width: 78%; margin-top: 10px; }

  /* 9 · activities */
  .act-panel { border-radius: 22px; padding: 13px 12px; margin-bottom: 10px; }
  .act-grid { gap: 6px; }
  .act-card { border-radius: 14px; padding: 15px 4px 8px; }
  .act-art { height: 42px; font-size: 25px; }
  .act-art img { max-width: 42px; max-height: 42px; }
  .act-label { font-size: 10px; margin-top: 4px; }
  .act-grip { top: 5px; left: 5px; font-size: 14px; }
  .act-x { width: 18px; height: 18px; font-size: 8px; }
  .act-picks { gap: 7px; }
  .act-pick { width: 50px; height: 50px; font-size: 22px; }
  .act-pick img { width: 34px; height: 34px; }
  .act-addrow { gap: 7px; margin-top: 9px; }
  .act-addbtn { border-radius: 14px; padding: 10px 13px; }

  /* 10 · trip */
  .trip-hero { border-radius: 22px; padding: 10px; margin-bottom: 11px; }
  .trip-hero-chip { top: 10px; left: 10px; font-size: 9px; padding: 4px 9px; }
  .trip-hero-art { max-height: none; object-fit: contain; border-radius: 15px; }
  .trip-form { border-radius: 22px; padding: 13px 12px 10px; }
  .trip-dates { gap: 5px; }
  .trip-form .field { margin: 7px 0; }
  .trip-form .input { min-height: 48px; padding-top: 9px; padding-bottom: 9px; }
  .trip-date-input { padding-right: 48px; }
  .trip-date-button { right: 3px; width: 42px; height: 42px; }
  .trip-date-art { width: 34px; height: 37px; }
  .trip-currency-art { left: 7px; width: 38px; height: 38px; }
  .trip-cur { padding-left: 52px; padding-right: 37px; }
  .trip-cur-arrow { right: 13px; font-size: 23px; }

  /* 11 · documents */
  .docs-panel { border-radius: 22px; padding: 12px 11px 14px; }
  .document-import-hero {
    grid-template-columns:minmax(156px, 43%) minmax(0, 57%);
    gap:8px;
    min-height:272px;
    padding:18px 14px;
    border-radius:25px;
  }
  .document-import-hero::before { inset:7px; border-radius:16px; }
  .document-import-art { width:98px; height:127px; transform:scale(.76); transform-origin:left center; }
  .document-import-art-image { width:100%; max-width:190px; max-height:236px; }
  .document-import-copy { gap:7px; }
  .document-import-copy h2 { max-width:7.2em; font-size:26px; }
  .document-import-copy p { font-size:11.5px; }
  .document-import-button { padding:10px 11px; border-radius:13px; font-size:9.5px; }
  .document-format-list span { padding:5px 6px; border-radius:8px; font-size:8px; }
  .document-privacy-divider { margin-top:1px; }
  .document-import-copy small { font-size:8px; }
  .document-import-note { font-size:10px; }
  .docs-hero-art { width: 100%; }
  .docs-panel-title { font-size: 22px; }
  .docs-panel-sub { font-size: 12px; margin: 3px 0 8px; }
  .docs-chip { padding: 7px 12px; font-size: 11.5px; }
  .docs-works { border-radius: 22px; padding: 13px 10px 4px; margin-top: 10px; }
  .docs-row { gap: 8px; border-radius: 14px; padding: 8px; margin-bottom: 7px; }
  .docs-row-art { width: 42px; }
  .docs-row-title { font-size: 13.5px; }
  .docs-row-sub { font-size: 11px; }
  .docs-row-badge { width: 34px; height: 34px; font-size: 13px; }

  /* 12 · packs */
  .packs-ready { gap: 9px; border-radius: 19px; padding: 10px; }
  .packs-ready-tick { width: 32px; height: 32px; font-size: 14px; }
  .packs-ready-title { font-size: 15px; }
  .packs-ready-art { width: 29%; }
  .packs-paid-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .packs-paid-grid .world-paid-art img { height: 92px; }
  .packs-paid-grid .world-paid-name { font-size: 13.5px; }

  /* completion */
  .wizard-done { overflow-x: hidden; }
  .done-hero-art { width: 100%; max-width: min(320px, 100%); margin: 0 auto 2px; }
  .done-title { font-size: 42px; margin-bottom: 6px; }
  .wizard-done .wel-lead { margin-bottom: 0; }
  .wizard-done .wiz-banner { padding: 8px 12px; margin-top: 0; font-size: 12.5px; }
  .wizard-done .wiz-banner-ic { width: 21px; height: 21px; font-size: 11px; }
  .done-card { border-radius: 20px; padding: 10px 6px; margin-top: 2px; }
  .done-card-head { font-size: 15px; margin-bottom: 6px; }
  .done-cell { gap: 4px; padding: 3px 4px; }
  .done-cell-art { height: 48px; }
  .done-cell-lab { font-size: 11px; }
}

@media (max-width: 390px) {
  .trip-day-body { width: 72%; min-width: 208px; padding-left: 13px; }
  .trip-day-main strong { font-size: 16px; }
  .trip-day-wash {
    background: linear-gradient(94deg,
      color-mix(in srgb, var(--tv-wash) 88%, #fff) 0%,
      color-mix(in srgb, var(--tv-wash) 84%, #fff) 48%,
      color-mix(in srgb, var(--tv-wash) 60%, transparent) 68%,
      transparent 88%);
  }
  .countdown-scene { height: 168px; }
  .count-copy { width: 56%; padding-left: 12px; }
  .count-value { font-size: 39px; }
  .count-detail { font-size: 9px; }
  .count-cta { padding: 5px 9px; font-size: 8.5px; }
}

/* ---------- Today landing + Quick Glance ---------- */
.header-avatar {
  width: auto; height: auto; overflow: visible; border: 0; border-radius: 0;
  display: grid; justify-items: center; gap: 2px; background: none; color: var(--tv-accent-deep);
}
.header-avatar-pic {
  width: 60px; height: 60px; display: block; overflow: hidden; border-radius: 50%;
  border: 2px solid var(--tv-ring); background: var(--tv-wash);
  box-sizing: border-box; padding: 2px;
  box-shadow: 0 3px 10px rgba(70,58,32,.16), 0 0 0 0 color-mix(in srgb, var(--tv-accent) 48%, transparent);
  animation: headerAvatarGlow 2.7s ease-in-out infinite;
}
.header-avatar-pic img { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; object-position: center; border-radius: inherit; }
.header-avatar-name {
  max-width: 80px; overflow: hidden; color: var(--tv-accent-deep);
  font-family: var(--font-display); font-size: 8px; line-height: 1;
  letter-spacing: .09em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 430px) {
  .header-avatar-pic { width: 52px; height: 52px; }
  .header-avatar-name { max-width: 66px; }
}
.header-avatar.is-tapped .header-avatar-pic { animation: profileAvatarTap 360ms var(--ease-spring); }
@keyframes headerAvatarGlow {
  0%, 100% { box-shadow: 0 3px 10px rgba(70,58,32,.16), 0 0 0 0 color-mix(in srgb, var(--tv-accent) 42%, transparent); }
  55% { box-shadow: 0 3px 10px rgba(70,58,32,.16), 0 0 0 7px transparent; }
}
@keyframes profileAvatarTap {
  45% { transform: translateY(-3px) rotate(-4deg) scale(1.08); }
}

.profile-picker-sheet {
  border: 1px solid color-mix(in srgb, var(--tv-ring) 52%, #fff);
  background:
    radial-gradient(circle at 82% 5%, color-mix(in srgb, var(--sun) 24%, transparent), transparent 25%),
    linear-gradient(180deg, color-mix(in srgb, #fff 84%, transparent), transparent 40%),
    color-mix(in srgb, var(--tv-wash) 74%, #fff);
  box-shadow: 0 -18px 50px rgba(50,41,26,.21), inset 0 1px #fff;
}
.profile-picker { display: grid; gap: 16px; padding-bottom: 4px; }
.profile-picker-intro { display: flex; align-items: center; gap: 11px; }
.profile-picker-intro h2,
.profile-pin h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.05; }
.profile-picker-intro p,
.profile-pin p { margin-top: 4px; color: var(--ink-soft); font-size: 11px; }
.profile-picker-spark {
  width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--sun) 46%, #fff); border-radius: 15px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--sun) 38%, #fff), rgba(255,255,255,.78));
  color: color-mix(in srgb, var(--sun) 72%, var(--ink)); font-size: 24px;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--sun) 18%, transparent), inset 0 1px #fff;
  animation: profileSpark 2.4s ease-in-out infinite;
}
.profile-picker-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px;
}
.profile-choice {
  position: relative; display: grid; min-width: 0; justify-items: center; gap: 5px;
  padding: 13px 8px 11px; border: 1px solid rgba(255,255,255,.78); border-radius: 20px;
  background: rgba(255,255,255,.58); box-shadow: 0 7px 18px rgba(70,58,32,.09), inset 0 1px #fff;
  animation: profileChoiceIn 440ms var(--ease-spring) both; animation-delay: var(--profile-delay);
  transition: transform 150ms var(--ease-spring), border-color 150ms ease, box-shadow 150ms ease;
}
.profile-choice:active { transform: translateY(2px) scale(.96); }
.profile-choice.is-current {
  border-color: color-mix(in srgb, var(--profile-colour) 52%, #fff);
  background: linear-gradient(150deg, color-mix(in srgb, var(--profile-colour) 15%, #fff), rgba(255,255,255,.74));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--profile-colour) 17%, transparent), inset 0 1px #fff;
}
.profile-choice-portrait {
  position: relative; width: 72px; height: 72px; display: block; overflow: visible;
  border: 3px solid color-mix(in srgb, var(--profile-colour) 62%, #fff);
  border-radius: 50%; background: var(--card);
  box-shadow: 0 6px 16px rgba(62,50,31,.16), 0 0 0 4px rgba(255,255,255,.62);
}
.profile-choice-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-choice-portrait i {
  position: absolute; right: -4px; bottom: -3px; width: 23px; height: 23px;
  display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%;
  background: var(--profile-colour); color: #fff; font-size: 11px; font-style: normal; font-weight: 900;
}
.profile-choice strong {
  max-width: 100%; overflow: hidden; font-family: var(--font-display); font-size: 14px;
  text-overflow: ellipsis; white-space: nowrap;
}
.profile-choice small { color: var(--muted); font-size: 8px; }
.profile-choice.is-current small { color: color-mix(in srgb, var(--profile-colour) 74%, var(--ink)); font-weight: 800; }
.profile-picker-honesty { color: var(--muted); font-size: 9px; text-align: center; }

.profile-pin { display: grid; justify-items: center; gap: 10px; padding-top: 3px; text-align: center; }
.profile-pin-portrait {
  width: 82px; height: 82px; overflow: hidden; border: 3px solid var(--tv-ring);
  border-radius: 50%; background: var(--card); box-shadow: 0 9px 24px rgba(66,52,30,.17), 0 0 0 5px rgba(255,255,255,.64);
  animation: profileChoiceIn 420ms var(--ease-spring) both;
}
.profile-pin-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-pin-dots { display: flex; gap: 10px; min-height: 14px; margin: 2px 0 5px; }
.profile-pin-dots i {
  width: 11px; height: 11px; border: 2px solid var(--tv-ring); border-radius: 50%;
  background: transparent; transition: background 120ms ease, transform 120ms var(--ease-spring);
}
.profile-pin-dots i.on { background: var(--tv-accent); transform: scale(1.12); }
.profile-pin-dots.shake { animation: shake .36s ease; }
.profile-pin-pad { display: grid; width: min(100%, 270px); grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-pin-pad button {
  min-height: 48px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px;
  background: rgba(255,255,255,.64); box-shadow: 0 5px 14px rgba(70,58,32,.08), inset 0 1px #fff;
  color: var(--ink); font-family: var(--font-display); font-size: 17px; font-weight: 800;
}
.profile-pin-pad button:active { transform: scale(.95); background: var(--tv-wash); }
.profile-pin-pad button.is-quiet { color: var(--muted); font-family: var(--font-body); font-size: 10px; }
@keyframes profileSpark { 50% { transform: translateY(-2px) rotate(7deg); } }
@keyframes profileChoiceIn {
  from { opacity: 0; transform: translateY(18px) scale(.9) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}

.quick-glance-sheet {
  border: 1px solid color-mix(in srgb, var(--tv-ring) 48%, #fff);
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 78%, transparent), transparent 36%),
    color-mix(in srgb, var(--tv-wash) 70%, #fff);
  box-shadow: 0 -18px 50px rgba(50,41,26,.2), inset 0 1px #fff;
}
.quick-glance { display: grid; gap: 14px; }
.glance-head { display: grid; grid-template-columns: 58px 1fr 72px; gap: 10px; align-items: center; }
.glance-avatar { width: 58px; height: 70px; display: grid; place-items: center; }
.glance-avatar img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(70,58,32,.18)); }
.glance-heading h2 { font-family: var(--font-display); font-size: 23px; line-height: 1; }
.glance-heading p { margin-top: 4px; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }
.glance-change-user { display: grid; justify-items: center; gap: 4px; color: var(--tv-accent-deep); }
.glance-change-user img,
.glance-change-user > span {
  width: 58px; height: 58px; object-fit: contain; display: grid; place-items: center;
  border: 2px solid var(--tv-ring); border-radius: 50%; background: rgba(255,255,255,.64);
  box-shadow: 0 4px 12px rgba(70,58,32,.14);
}
.glance-change-user strong { font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.glance-focus {
  display: flex; align-items: center; gap: 12px; padding: 13px;
  border: 1px solid rgba(255,255,255,.75); border-radius: 19px;
  background: rgba(255,255,255,.61); box-shadow: 0 7px 20px rgba(70,58,32,.08), inset 0 1px #fff;
}
.glance-focus-main { min-width: 0; display: grid; gap: 2px; }
.glance-label { color: var(--tv-accent-deep); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.glance-focus h3 { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.glance-focus p { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.glance-when { color: color-mix(in srgb, var(--tv-accent-deep) 80%, #2878b8); font-size: 11px; }
.glance-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.glance-actions button {
  min-height: 48px; padding: 9px; border: 1px solid rgba(255,255,255,.75);
  border-radius: 13px; background: rgba(255,255,255,.57); color: var(--tv-accent-deep);
  box-shadow: inset 0 1px #fff; font-size: 10px; font-weight: 800; text-align: left;
}
.glance-actions button:disabled { color: var(--muted); opacity: .65; }
.glance-today { display: grid; gap: 5px; }
.glance-plan {
  display: flex; align-items: center; gap: 9px; padding: 7px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); text-align: left;
}
.glance-plan .kind-icon { width: 35px; height: 35px; border-radius: 10px; font-size: 17px; }
.glance-plan > span:last-child { min-width: 0; display: grid; }
.glance-plan strong,
.glance-plan small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glance-plan strong { font-size: 11px; }
.glance-plan small { color: var(--muted); font-size: 9px; }

.today-tools {
  position: relative; display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 10px;
  align-items: center; margin: 9px 0 0;
}
.today-search-wrap {
  height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
  border: 1px solid color-mix(in srgb, #fff 72%, var(--line)); border-radius: 18px;
  background: color-mix(in srgb, var(--control) 78%, transparent);
  box-shadow: 0 6px 20px rgba(70,58,32,.07), inset 0 1px color-mix(in srgb, #fff 82%, transparent);
}
.today-search-wrap > span { color: var(--muted); font-size: 23px; line-height: 1; transform: rotate(-18deg); }
.today-search-input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 12px; }
.today-search-input::placeholder { color: var(--muted); }
.today-notes-orb,
.today-add-orb {
  width: 58px; height: 58px; display: grid; place-items: center; overflow: visible;
  border-radius: 50%;
}
.today-notes-orb { animation: todayNotesPulse 2.4s ease-in-out infinite; }
.today-shortcut-rail { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; padding: 2px 1px; }
.today-notes-shortcut {
  width: 52px; height: 52px; display: grid; flex: 0 0 auto; place-items: center;
  padding: 0; border: 0; background: transparent;
}
.today-notes-shortcut img {
  width: 52px; height: 52px; object-fit: contain;
  filter: drop-shadow(0 6px 6px rgba(56,43,30,.18));
}
.today-shortcut-ghost,
.home-feature-shortcut { width: 52px; height: 52px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; font: 800 27px/1 var(--font-display); }
.home-feature-shortcut-wrap {
  position: relative; width: 52px; height: 52px; display: block; flex: 0 0 auto;
}
.today-shortcut-ghost {
  border: 2px dashed color-mix(in srgb, var(--tv-accent-deep) 34%, transparent);
  background: color-mix(in srgb, var(--card) 43%, transparent);
  color: color-mix(in srgb, var(--tv-accent-deep) 48%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.68);
}
.today-shortcut-ghost:active { transform: scale(.94); }
.home-feature-shortcut { border: 1px solid color-mix(in srgb, var(--tv-ring) 65%, transparent); background: color-mix(in srgb, var(--tv-wash) 72%, var(--card)); color: var(--tv-accent-deep); box-shadow: 0 5px 11px rgba(70,58,32,.12); }
.home-feature-shortcut i { font-style: normal; }
.home-feature-shortcut img {
  width: 43px; height: 43px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(65,48,27,.18));
  pointer-events: none; user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
}
.home-feature-shortcut-delete {
  position: absolute; z-index: 3; top: -7px; right: -7px; width: 24px; min-width: 24px; height: 24px;
  display: grid; place-items: center; padding: 0; border: 2px solid #fff8eb; border-radius: 50%;
  background: linear-gradient(145deg, #ef7e62, #cd4e3d); color: #fffaf1;
  box-shadow: inset 0 0 0 1px rgba(117,45,32,.32), inset 0 2px rgba(255,255,255,.34), 0 4px 9px rgba(109,48,37,.25);
  font: 900 18px/1 var(--font-display);
}
.home-feature-shortcut-delete::after {
  content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(255,247,232,.68); border-radius: 50%; pointer-events: none;
}
.home-feature-shortcut-delete > span { position: relative; z-index: 1; transform: translateY(-1px); }
.home-feature-shortcut-delete[hidden] { display: none; }
.home-feature-shortcut-wrap.is-editing .home-feature-shortcut {
  box-shadow: 0 0 0 3px color-mix(in srgb, #dd654f 30%, transparent), 0 5px 11px rgba(70,58,32,.12);
  animation: homeShortcutWiggle 210ms ease-in-out infinite alternate;
}
@keyframes homeShortcutWiggle {
  from { transform: rotate(-2.3deg) scale(.985); }
  to { transform: rotate(2.3deg) scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .home-feature-shortcut-wrap.is-editing .home-feature-shortcut { animation: none; }
}
.today-notes-icon {
  position: relative; width: 55px; height: 55px; display: block;
  filter: drop-shadow(0 7px 7px rgba(73,54,31,.18));
}
.today-notes-paper {
  position: absolute; left: 5px; top: 5px; width: 35px; height: 42px; display: block;
  border: 2px solid #275a63; border-radius: 8px 10px 9px 8px;
  background:
    linear-gradient(#275a63, #275a63) 13px 12px / 15px 2px no-repeat,
    linear-gradient(#275a63, #275a63) 13px 21px / 15px 2px no-repeat,
    linear-gradient(#275a63, #275a63) 13px 30px / 11px 2px no-repeat,
    linear-gradient(145deg, #fff8dd, #f5d582);
  transform: rotate(-7deg);
  box-shadow: inset 0 1px rgba(255,255,255,.85), 0 3px 0 rgba(98,64,29,.16);
}
.today-notes-paper::before {
  content: "•\A•\A•"; position: absolute; left: 4px; top: 7px; white-space: pre;
  color: #e76f54; font: 900 10px/9px var(--font-body);
}
.today-notes-pencil {
  position: absolute; right: 3px; bottom: 2px; width: 10px; height: 34px; display: block;
  border: 1px solid rgba(102,66,35,.42); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #f3cc72 0 32%, #f38f71 32% 67%, #f7dc91 67%);
  transform: rotate(37deg); transform-origin: 50% 90%;
}
.today-notes-pencil::after { content: ""; position: absolute; left: 1px; bottom: -6px; border: 3px solid transparent; border-top-color: #8e6643; }
.today-notes-spark { position: absolute; right: 2px; top: 3px; width: 8px; height: 8px; background: var(--tv-sun); clip-path: polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%); }
.today-add-orb {
  border: 2px solid var(--tv-ring); background: var(--card);
  box-shadow: 0 5px 14px rgba(70,58,32,.14);
  border-color: color-mix(in srgb, var(--tv-sun) 72%, var(--tv-ring));
  background: color-mix(in srgb, var(--selected) 72%, var(--card));
}
.today-add-orb > span {
  color: var(--tv-accent-deep); font-family: var(--font-display); font-size: 38px; font-weight: 500;
  line-height: 1; transform: translateY(-2px);
}
.home-shortcut-overlay {
  position: fixed; z-index: 120; inset: 0; display: grid; place-items: center;
  padding: 12px; background: rgba(28,25,28,.2);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: shortcutOverlayIn 180ms ease-out both;
}
.home-shortcut-picker {
  --shortcut-origin-x: 50%; --shortcut-origin-y: 50%;
  width: min(342px, calc(100vw - 24px)); max-height: min(620px, calc(100dvh - 38px));
  display: grid; gap: 12px; overflow: auto; padding: 15px;
  border: 1px solid color-mix(in srgb, #fff 82%, var(--tv-ring)); border-radius: 25px;
  background: color-mix(in srgb, var(--card) 93%, var(--tv-wash));
  box-shadow: 0 24px 60px rgba(44,34,26,.26), inset 0 1px rgba(255,255,255,.9);
  transform-origin: var(--shortcut-origin-x) var(--shortcut-origin-y);
  animation: shortcutPickerIn 340ms cubic-bezier(.16,.82,.28,1.12) both;
}
.home-shortcut-picker.is-empty {
  position: relative; width: min(306px, calc(100vw - 34px)); min-height: 220px; overflow: hidden;
  padding: 18px; border-color: rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 15% 5%, rgba(255,255,255,.82), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.62), color-mix(in srgb, var(--tv-wash) 44%, transparent));
  box-shadow: 0 28px 70px rgba(41,33,28,.25), inset 0 1px rgba(255,255,255,.96), inset 0 -1px rgba(255,255,255,.32);
  backdrop-filter: blur(22px) saturate(1.18); -webkit-backdrop-filter: blur(22px) saturate(1.18);
}
.home-shortcut-picker.is-empty::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.52);
}
.home-shortcut-empty-state {
  min-height: 128px; display: grid; place-items: center; align-content: center; gap: 9px;
  border: 1px dashed color-mix(in srgb, var(--tv-accent-deep) 24%, transparent);
  border-radius: 19px; color: var(--muted); text-align: center;
  background: rgba(255,255,255,.18);
}
.home-shortcut-empty-state > span {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--tv-accent-deep) 36%, transparent);
  color: color-mix(in srgb, var(--tv-accent-deep) 52%, transparent);
  font: 500 28px/1 var(--font-display);
}
.home-shortcut-empty-state p { max-width: 210px; margin: 0; font-size: 11px; line-height: 1.35; }
.home-shortcut-picker header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.home-shortcut-picker header small { color: var(--tv-accent-deep); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.home-shortcut-picker header h2 { margin: 2px 0 0; font-family: var(--font-display); font-size: 23px; }
.home-shortcut-close {
  width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--tv-wash) 72%, #fff); color: var(--ink-soft);
  font: 700 22px/1 var(--font-body);
}
.home-shortcut-selected {
  display: flex; justify-content: center; gap: 11px; padding: 10px;
  border-radius: 18px; background: color-mix(in srgb, var(--tv-wash) 62%, transparent);
}
.home-shortcut-selected-cell {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tv-ring) 55%, transparent); background: var(--card);
}
.home-shortcut-selected-cell.is-origin { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tv-accent) 34%, transparent); }
.home-shortcut-selected-cell img { width: 40px; height: 40px; object-fit: contain; }
.home-shortcut-selected-cell i { color: var(--muted); font: 500 25px/1 var(--font-display); font-style: normal; }
.home-shortcut-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.home-shortcut-options button {
  min-height: 86px; display: grid; place-items: center; align-content: center; gap: 5px;
  padding: 7px 4px; border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 17px; background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--ink); font: 800 10px/1.1 var(--font-body); text-align: center;
}
.home-shortcut-options button img,
.home-shortcut-options button i {
  width: 48px; height: 48px; display: grid; place-items: center; object-fit: contain;
  color: var(--tv-accent-deep); font: 900 24px/1 var(--font-display); font-style: normal;
  filter: drop-shadow(0 5px 5px rgba(64,46,24,.16));
}
.home-shortcut-options button:active { transform: scale(.95); }
.home-shortcut-options button.is-selected {
  border-color: var(--tv-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tv-accent) 22%, transparent);
}
.home-shortcut-remove {
  min-height: 42px; border: 1px solid color-mix(in srgb, #d7665c 36%, var(--line));
  border-radius: 15px; background: color-mix(in srgb, #f9d4d0 42%, var(--card));
  color: #9b4139; font-size: 11px; font-weight: 850;
}
@keyframes shortcutOverlayIn { from { opacity: 0; } }
@keyframes shortcutPickerIn {
  from { opacity: 0; transform: scale(.18); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes todayNotesPulse { 50% { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 20px color-mix(in srgb, var(--tv-accent) 24%, transparent); } }
.today-search-results {
  position: absolute; z-index: 18; left: 0; width: min(100%, 340px); top: 57px;
  display: grid; max-height: 315px; overflow: auto; border-radius: 15px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 14px 35px rgba(51,40,23,.22); backdrop-filter: blur(18px);
}
.today-search-results:empty { display: none; }
.today-search-hit {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.44); text-align: left;
}
.today-search-hit .kind-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
.today-search-hit > span { min-width: 0; display: grid; }
.today-search-hit strong,
.today-search-hit small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-search-hit strong { font-size: 11px; }
.today-search-hit small { color: var(--muted); font-size: 9px; }
.today-search-empty { padding: 13px; color: var(--muted); font-size: 12px; }
.today-notes-sheet { display: grid; gap: 7px; }
.today-notes-sheet > .btn { margin-top: 8px; }

.universal-add { display: grid; gap: 14px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
.universal-add-head {
  display: grid; grid-template-columns: 58px 1fr; gap: 13px; align-items: center;
  padding: 14px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--illustration) 88%, #fff), color-mix(in srgb, var(--selected) 74%, #fff));
  box-shadow: inset 0 1px rgba(255,255,255,.76);
}
.universal-add-mark {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px;
  background: color-mix(in srgb, var(--card) 82%, transparent); color: var(--tv-accent-deep);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tv-accent) 18%, transparent);
  font: 500 39px/1 var(--font-display);
}
.universal-add-head small { color: var(--tv-accent-deep); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.universal-add-head h2 { margin-top: 2px; font-family: var(--font-display); font-size: 20px; line-height: 1.05; }
.universal-add-head p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.universal-add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.universal-add-choice {
  --add-colour: var(--tv-accent);
  min-height: 92px; display: grid; grid-template-columns: 43px 1fr auto; gap: 9px; align-items: center;
  padding: 11px; border: 1px solid color-mix(in srgb, var(--add-colour) 24%, var(--line));
  border-radius: 19px; background: color-mix(in srgb, var(--card) 92%, var(--add-colour) 8%);
  color: var(--ink); text-align: left; box-shadow: 0 8px 22px rgba(50,42,31,.07);
}
.universal-add-choice:active { transform: scale(.975); }
.universal-add-choice.is-booking { --add-colour: #e7a767; }
.universal-add-choice.is-event { --add-colour: #66aeb6; }
.universal-add-choice.is-note { --add-colour: #d9899f; }
.universal-add-choice.is-todo { --add-colour: #89aa72; }
.universal-add-choice.is-expense { --add-colour: #d4ac4f; }
.universal-add-choice.is-other { --add-colour: #8e83bd; }
.universal-add-icon {
  width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--add-colour) 20%, var(--card));
  color: color-mix(in srgb, var(--add-colour) 72%, var(--ink));
  font: 800 25px/1 var(--font-display);
}
.universal-add-choice > span { min-width: 0; display: grid; gap: 2px; }
.universal-add-choice strong { font-size: 12px; }
.universal-add-choice small { color: var(--muted); font-size: 9px; line-height: 1.25; }
.universal-add-choice > i { color: color-mix(in srgb, var(--add-colour) 70%, var(--ink)); font: 700 21px/1 var(--font-display); }

@media (max-width: 385px) {
  .today-tools { grid-template-columns: minmax(138px, 42%) minmax(0, 1fr); gap: 6px; }
  .today-shortcut-ghost { width: 48px; height: 48px; }
  .today-notes-orb, .today-add-orb { width: 52px; height: 52px; }
  .today-notes-icon { width: 43px; height: 43px; }
  .journey-metric-grid .journey-metric-hotspot { grid-template-columns: 44px 1fr; min-height: 82px; padding: 6px 5px; }
  .journey-metric-grid .journey-metric-hotspot > img { width: 44px; height: 52px; }
  .universal-add-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .today-tools { grid-template-columns: minmax(132px, 1fr) auto; gap: 6px; }
  .today-shortcut-rail { gap: 3px; }
  .today-notes-shortcut,
  .today-shortcut-ghost,
  .home-feature-shortcut { width: 44px; height: 44px; }
  .today-notes-shortcut img { width: 50px; height: 50px; }
  .home-feature-shortcut-wrap { width: 44px; height: 44px; }
  .home-feature-shortcut img { width: 42px; height: 42px; }
  .home-feature-shortcut-delete { top: -7px; right: -7px; }
}

.today-destination-section,
.today-weather { margin-top: 20px; }
.today-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.today-section-head h2 { font-family: var(--font-display); font-size: 20px; }
.today-section-head button { color: var(--tv-accent-deep); font-size: 12px; font-weight: 800; }
.today-destination-card { height: 350px; perspective: 1200px; outline: none; }
.today-destination-rotor {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .58s var(--ease-glide);
}
.today-destination-card.flipped .today-destination-rotor { transform: rotateY(180deg); }
.today-destination-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 26px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,.72); box-shadow: 0 16px 38px rgba(64,48,27,.18);
}
.today-destination-front {
  background-image: var(--today-destination-art, linear-gradient(145deg, #91c8d4, #e8c884));
  background-position: center; background-size: cover;
}
.today-destination-shade {
  position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(13,24,32,.62), transparent 34%),
    linear-gradient(0deg, rgba(11,20,28,.68), transparent 36%);
}
.today-destination-top { position: absolute; z-index: 2; left: 17px; top: 16px; display: grid; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.today-destination-top strong { font-family: var(--font-display); font-size: 27px; letter-spacing: .04em; text-transform: uppercase; }
.today-destination-top span { font-size: 12px; font-weight: 800; }
.today-destination-weather,
.today-destination-dates { position: absolute; z-index: 2; bottom: 17px; color: white; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.today-destination-weather { left: 17px; display: grid; font-size: 24px; font-weight: 900; }
.today-destination-weather small { font-size: 10px; }
.today-destination-dates { right: 17px; display: grid; justify-items: end; }
.today-destination-dates strong { font-size: 14px; text-transform: uppercase; }
.today-destination-dates small { font-size: 10px; }
.today-destination-hint { position: absolute; z-index: 2; right: 14px; top: 14px; padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.32); color: white; font-size: 8px; }
.today-destination-back {
  display: grid; align-content: center; gap: 11px; padding: 26px;
  transform: rotateY(180deg); background:
    radial-gradient(circle at 84% 5%, color-mix(in srgb, var(--tv-accent) 28%, transparent), transparent 35%),
    color-mix(in srgb, var(--tv-wash) 64%, #fff);
}
.today-destination-back h3 { font-family: var(--font-display); font-size: 30px; }
.today-destination-back > p { color: var(--ink-soft); font-size: 13px; }
.today-destination-facts { display: grid; gap: 7px; margin: 4px 0; }
.today-destination-facts span { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.today-destination-dots { display: flex; justify-content: center; margin-top: 10px; }
.today-destination-dots i { width: 20px; height: 6px; border-radius: 99px; background: var(--tv-accent); }

.today-weather-strip { display: flex; gap: 9px; overflow-x: auto; padding: 3px 2px 9px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.today-weather-strip::-webkit-scrollbar { display: none; }
.today-weather-card {
  flex: 0 0 132px; min-height: 178px; display: grid; align-content: start; gap: 2px;
  padding: 11px; border: 2px solid color-mix(in srgb, var(--tv-ring) 62%, #fff);
  border-radius: 20px; background: color-mix(in srgb, var(--card) 80%, transparent);
  box-shadow: 0 8px 20px rgba(70,58,32,.1); scroll-snap-align: start;
}
.today-weather-place { overflow: hidden; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.today-weather-art {
  width: 90px; height: 82px; display: block; justify-self: center;
  background-image: var(--today-weather-art); background-repeat: no-repeat; background-size: 300% 100%;
}
.today-weather-art.is-left { background-position: left center; }
.today-weather-art.is-center { background-position: center; }
.today-weather-art.is-right { background-position: right center; }
.today-weather-card > strong { font-family: var(--font-display); font-size: 21px; }
.today-weather-card > small { color: var(--muted); font-size: 9px; }
.today-weather-honesty { margin: 3px 2px 0; color: var(--muted); font-size: 10px; }

@media (max-width: 390px) {
  .glance-head { grid-template-columns: 50px 1fr 64px; gap: 8px; }
  .glance-avatar { width: 50px; }
  .glance-change-user img,
  .glance-change-user > span { width: 52px; height: 52px; }
  .today-destination-card { height: 315px; }
  .today-weather-card { flex-basis: 122px; }
}

@media (prefers-reduced-motion: reduce) {
  .header-avatar-pic,
  .today-notes-action { animation: none; }
  .today-destination-rotor { transition: none; }
  .view, .trip-day-art, .trip-day-status::before, .count-value.tick, .count-cta, .count-back-list.show-more .count-more-row { animation: none; }
  .count-flight-layer,
  .count-flight-path,
  .count-plane { animation: none; }
  .count-plane { opacity: .72; transform: translate(8%, 66%) rotate(0deg); }
  .countdown-scene, .count-rotor { transition: none; }
  .countdown-scene.flipped .count-face-front { visibility: hidden; }
  .card, .seg-row { transition: none; }
}

/* ---------- weather & destinations ----------
 * This is engine-owned visual language. Place/forecast data can change per
 * trip, while the symbols and interaction remain useful with no packs loaded. */
.weather-destinations {
  margin-top: 22px; padding: 17px 0 2px;
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
}
.weather-destinations-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin: 0 2px 11px;
}
.weather-destinations-head h2 {
  margin: 1px 0 0; font-family: var(--font-display); font-size: 22px; line-height: 1.05;
}
.weather-eyebrow {
  color: var(--tv-accent-deep); font-size: 9px; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
}
.weather-place-count,
.weather-source-badge {
  display: inline-flex; align-items: center; width: max-content; border-radius: 999px;
  font-size: 8px; font-weight: 900; letter-spacing: .04em; white-space: nowrap;
}
.weather-place-count {
  padding: 6px 9px; color: var(--ink-soft);
  background: color-mix(in srgb, var(--tv-wash) 74%, #fff);
}
.weather-destination-strip {
  display: grid;
  gap: 10px; overflow-x: auto; padding: 2px 2px 11px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.weather-destination-strip::-webkit-scrollbar { display: none; }
.weather-destinations.is-one .weather-destination-strip {
  grid-template-columns: minmax(0, min(270px, 100%)); justify-content: center;
}
.weather-destinations.is-two .weather-destination-strip,
.weather-destinations.is-three .weather-destination-strip,
.weather-destinations.is-four .weather-destination-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.weather-destinations.is-three .weather-destination-card:last-child {
  width: calc(50% - 5px); grid-column: 1 / -1; justify-self: center;
}
.weather-destination-card {
  position: relative; min-height: 232px; display: flex; flex-direction: column;
  padding: 14px; overflow: hidden; scroll-snap-align: start; text-align: left;
  border: 1px solid color-mix(in srgb, var(--tv-ring) 52%, #fff);
  border-radius: 22px; background:
    radial-gradient(circle at 84% 15%, color-mix(in srgb, var(--tv-accent) 18%, transparent), transparent 34%),
    linear-gradient(152deg, color-mix(in srgb, var(--card) 88%, #fff), color-mix(in srgb, var(--tv-wash) 62%, #fff));
  box-shadow: 0 9px 22px rgba(66,53,31,.11);
  transition: transform .22s var(--ease-glide), box-shadow .22s var(--ease-glide);
}
.weather-destination-card::after {
  content: ""; position: absolute; right: -20px; bottom: -27px; width: 92px; height: 92px;
  border: 1px dashed color-mix(in srgb, var(--tv-accent) 34%, transparent);
  border-radius: 50%; pointer-events: none;
}
.weather-destination-card > :not(.weather-card-visual, .weather-card-condition-scene) { position: relative; z-index: 2; }
.weather-card-condition-scene { position: absolute; z-index: 1; right: -18px; bottom: 57px; width: 51%; height: 52%; overflow: hidden; opacity: .82; pointer-events: none; }
.weather-card-condition-scene.has-pack-art { overflow: visible; opacity: 1; }
.weather-card-condition-scene.has-pack-art > i { opacity: 0; }
.weather-condition-art { position: absolute; inset: -21% -13%; width: 126%; height: 142%; object-fit: contain; filter: drop-shadow(0 8px 7px rgba(50, 71, 76, .15)); }
.weather-scene-sun { position: absolute; right: 15%; top: 8%; width: 29px; height: 29px; border-radius: 50%; background: #f4c84a; box-shadow: 0 0 0 7px rgba(244,200,74,.15), 0 0 23px rgba(244,200,74,.42); }
.weather-scene-horizon { position: absolute; right: -9%; bottom: -14%; width: 118%; height: 58%; border-radius: 50% 50% 0 0; background: linear-gradient(155deg, #8fb898, #527e70); box-shadow: inset 0 9px rgba(255,255,255,.18); }
.weather-scene-horizon::before { content: ""; position: absolute; left: 17%; bottom: 25%; width: 9px; height: 54px; border-radius: 99px; background: #35685c; box-shadow: 13px 7px #35685c, 28px -5px #467a66, 43px 8px #3e735f; transform: rotate(-3deg); }
.weather-scene-motion { position: absolute; left: 1%; top: 26%; width: 52px; height: 28px; border-top: 2px solid rgba(85,128,139,.7); border-radius: 50%; transform: rotate(-15deg); }
.weather-card-condition-scene.is-windy .weather-scene-sun { opacity: .35; }
.weather-card-condition-scene.is-windy .weather-scene-motion { width: 78px; height: 44px; box-shadow: 11px 10px 0 -9px rgba(85,128,139,.8), 21px 20px 0 -9px rgba(85,128,139,.8); animation: weatherBreeze 2.8s ease-in-out infinite; }
.weather-card-condition-scene.is-rain .weather-scene-sun,
.weather-card-condition-scene.is-showers .weather-scene-sun,
.weather-card-condition-scene.is-storm .weather-scene-sun { opacity: 0; }
.weather-card-condition-scene.is-rain .weather-scene-motion,
.weather-card-condition-scene.is-showers .weather-scene-motion { width: 58px; height: 55px; border: 0; background: repeating-linear-gradient(112deg, transparent 0 8px, rgba(64,142,170,.55) 9px 11px); animation: weatherRain 1.4s linear infinite; }
.weather-card-condition-scene.is-cloudy .weather-scene-sun,
.weather-card-condition-scene.is-storm .weather-scene-sun { background: #aab5bb; box-shadow: -20px 7px 0 2px #c7d0d1, -6px 16px 0 4px #b5c1c4; }
.weather-card-condition-scene.is-humid .weather-scene-horizon { background: linear-gradient(155deg, #74ae9e, #417c73); }
.weather-card-condition-scene.is-humid .weather-scene-motion { border-color: rgba(255,255,255,.75); box-shadow: 18px 15px 0 -1px rgba(255,255,255,.45); }
.weather-card-condition-scene.is-cold .weather-scene-horizon,
.weather-card-condition-scene.is-freezing .weather-scene-horizon { background: linear-gradient(155deg, #b5ced9, #6e9aad); }
@keyframes weatherBreeze { 50% { transform: translateX(11px) rotate(-15deg); opacity: .38; } }
@keyframes weatherRain { to { background-position: 0 17px; } }
.weather-destination-card:active { transform: scale(.98); }
.weather-card-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.weather-card-top,
.weather-place-name,
.weather-place-country,
.weather-card-condition { flex-shrink: 0; }
.weather-place-flag {
  width: 39px; height: 33px; display: inline-grid; flex: 0 0 auto; place-items: center;
  overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 29px;
  line-height: 1; vertical-align: middle;
  filter: drop-shadow(0 2px 2px rgba(60,43,21,.16));
}
.weather-source-badge { padding: 5px 7px; }
.weather-source-badge.is-climate { color: #756441; background: #f4ead0; }
.weather-source-badge.is-live { color: #17624e; background: #d9f4e8; }
.weather-place-name {
  margin-top: 12px; overflow: hidden; color: var(--ink);
  font-family: var(--font-display); font-size: 21px; line-height: 1.05;
  text-overflow: ellipsis; white-space: nowrap;
}
.weather-place-country { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
.weather-card-condition { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.weather-card-condition > span:last-child { display: grid; }
.weather-card-condition strong { color: var(--ink); font-family: var(--font-display); font-size: 27px; line-height: 1; }
.weather-card-condition small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; font-weight: 800; }
.weather-card-foot {
  display: grid; gap: 2px; margin-top: auto; padding-top: 12px; color: var(--muted);
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); font-size: 8px;
}
.weather-local-time { color: var(--ink-soft); font-size: 10px; font-weight: 900; }
.weather-source-note { margin: 0 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.weather-destinations-empty {
  padding: 18px; border: 1px dashed var(--line); border-radius: 20px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
}
.weather-destinations-empty h2 { font-family: var(--font-display); font-size: 20px; }
.weather-page-heading { padding: 3px 2px 2px; }
.weather-page-heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.weather-page-heading-copy { min-width: 0; }
.weather-page-heading .h1 { margin: 4px 0 5px; }
.weather-page-heading .sub { max-width: 38ch; }
.weather-add-place {
  width: 47px; height: 47px; display: grid; flex: 0 0 47px; place-items: center;
  margin-top: 2px; border: 1px solid color-mix(in srgb, var(--tv-ring) 66%, #fff);
  border-radius: 50%; background: linear-gradient(145deg, #fff9eb, var(--tv-wash));
  color: var(--tv-accent-deep); box-shadow: inset 0 1px #fff, 0 7px 15px rgba(68,52,29,.13);
  font: 600 29px/1 var(--font-display);
}
.weather-add-place:active { transform: scale(.95); }
.weather-page .weather-destinations { margin-top: 12px; }
.weather-page .weather-destination-card { min-height: 248px; }
.weather-page-hint { margin: 7px 3px 18px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.weather-symbol {
  --weather-colour: #d3a62e;
  width: 48px; height: 48px; display: inline-grid; flex: 0 0 auto; place-items: center;
  border-radius: 16px; color: var(--weather-colour);
  background: color-mix(in srgb, var(--weather-colour) 12%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weather-colour) 18%, transparent);
}
.weather-symbol.has-pack-art { background: transparent; box-shadow: none; }
.weather-symbol.has-pack-art img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(51, 63, 76, .16)); }
.weather-symbol svg {
  width: 36px; height: 36px; overflow: visible; fill: none; stroke: currentColor;
  stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round;
}
.weather-symbol svg .weather-fill { fill: currentColor; stroke: none; }
.weather-symbol-cloudy { --weather-colour: #718998; }
.weather-symbol-showers,
.weather-symbol-rain { --weather-colour: #4d8eaa; }
.weather-symbol-humid { --weather-colour: #4d9f93; }
.weather-symbol-windy { --weather-colour: #618e9a; }
.weather-symbol-cold,
.weather-symbol-freezing { --weather-colour: #668bb7; }
.weather-symbol-storm { --weather-colour: #69628c; }
.weather-symbol-night { --weather-colour: #6d70a6; }

/* Country art and people occupy separate pack-fed layers. Country bases are
 * deliberately people-free; a missing/broken pose falls back independently. */
.weather-card-visual { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.weather-card-country-art {
  position: absolute; inset: 0; opacity: .22; background-position: center;
  background-repeat: no-repeat; background-size: cover;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.82));
}
.weather-card-characters {
  position: absolute; right: 10px; bottom: 43px; width: min(47%, 142px); height: 72px;
  display: flex; align-items: end; justify-content: end;
  filter: drop-shadow(0 4px 4px rgba(49,37,23,.18));
}
.weather-card-character {
  width: clamp(28px, calc(126px / var(--weather-party-size)), 48px);
  max-height: 70px; flex: 0 1 auto; margin-left: -8px; object-fit: contain;
  object-position: center bottom; transform-origin: center bottom;
}
.weather-card-character.is-waving { transform: rotate(2deg) translateY(-1px); }
.weather-card-character.is-walking { transform: rotate(-2deg); }
.weather-card-character.is-sitting { transform: scale(.92) translateY(3px); }
.weather-card-character.is-active { transform: rotate(3deg) translateY(-2px); }
.weather-card-character-fallback {
  height: 56px; display: inline-grid; place-items: end center; color: var(--tv-accent-deep);
}
.weather-card-character-fallback svg {
  width: 100%; height: 100%; fill: color-mix(in srgb, var(--tv-accent) 32%, #fff);
  stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.weather-card-party-more {
  width: 28px; height: 28px; display: grid; flex: 0 0 auto; place-items: center;
  margin-left: -5px; border: 2px solid white; border-radius: 50%;
  background: var(--tv-accent-deep); color: white; font-size: 8px; font-weight: 900;
}

.weather-detail { display: grid; gap: 13px; padding-bottom: 8px; }
.weather-detail-hero {
  position: relative; min-height: 132px; display: grid; grid-template-columns: auto 1fr;
  align-items: center; gap: 13px; padding: 18px; overflow: hidden; border-radius: 22px;
  background:
    radial-gradient(circle at 90% 15%, color-mix(in srgb, var(--tv-accent) 25%, transparent), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--tv-wash) 72%, #fff), color-mix(in srgb, var(--card) 86%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tv-ring) 38%, #fff);
}
.weather-detail-flag { width: 58px; height: 58px; border-radius: 17px; font-size: 40px; }
.weather-detail-hero h2 { margin-top: 5px; font-family: var(--font-display); font-size: 27px; line-height: 1; }
.weather-detail-hero p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.weather-detail-clock {
  position: absolute; right: 15px; bottom: 14px; color: var(--ink-soft); font-size: 10px; font-weight: 900;
}
.weather-detail-honesty {
  padding: 0 3px; color: var(--muted); font-size: 10px; line-height: 1.45;
}
.weather-day-list { display: grid; gap: 7px; }
.weather-day-row {
  display: grid; grid-template-columns: 66px 42px minmax(0, 1fr) 38px;
  align-items: center; gap: 9px; min-height: 70px; padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 17px; background: color-mix(in srgb, var(--card) 82%, transparent);
}
.weather-day-row > time { color: var(--ink-soft); font-size: 9px; font-weight: 900; }
.weather-day-row .weather-symbol { width: 40px; height: 40px; border-radius: 13px; }
.weather-day-row .weather-symbol svg { width: 30px; height: 30px; }
.weather-day-row .weather-symbol.has-pack-art img { width: 49px; height: 49px; }
.weather-day-copy { min-width: 0; display: grid; gap: 2px; }
.weather-day-copy strong { font-size: 11px; }
.weather-day-copy small { color: var(--muted); font-size: 8px; line-height: 1.3; }
.weather-day-temp { display: grid; justify-items: end; }
.weather-day-temp strong { font-family: var(--font-display); font-size: 18px; }
.weather-day-temp small { color: var(--muted); font-size: 10px; }

/* The destination detail follows the supplied full-height weather card
 * reference. Its open motion intentionally remains the standard sheet motion
 * until the separate pressed-card animation reference is supplied. */
.sheet.weather-detail-sheet {
  height: min(96dvh, 920px); max-height: min(96dvh, 920px);
  padding: 9px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  overflow: hidden; border: 1px solid rgba(188,163,125,.28);
  border-radius: 29px 29px 0 0;
  background:
    radial-gradient(circle at 86% 1%, rgba(255,255,255,.9), transparent 32%),
    linear-gradient(145deg, #fffdf8, #f8f1e6);
  box-shadow: 0 -18px 46px rgba(27,31,37,.22), inset 0 1px #fff;
}
.weather-detail-sheet .sheet-grab {
  width: 40px; height: 5px; margin: 4px auto 7px; background: #ddcfb8;
}
.weather-detail-sheet .sheet-body {
  height: calc(100% - 16px); overflow: auto; padding: 0 9px 10px;
  scrollbar-width: none;
}
.weather-detail-sheet .sheet-body::-webkit-scrollbar { display: none; }
.weather-detail-reference { gap: 10px; padding-bottom: 3px; }
.weather-detail-heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 3px 1px 0;
}
.weather-detail-heading h2 {
  color: #081d42; font-family: var(--font-display); font-size: 30px; line-height: 1;
  letter-spacing: -.7px;
}
.weather-detail-heading p { margin-top: 6px; color: #56778a; font-size: 13px; }
.weather-detail-heading-actions {
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px;
}
.weather-detail-updated {
  display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px;
  border: 1px solid #eadfce; border-radius: 999px; background: rgba(255,253,247,.8);
  color: #53565c; font-size: 10px; white-space: nowrap;
}
.weather-detail-updated::before { content: "◷"; margin-right: 5px; font-size: 15px; line-height: 1; }
.weather-detail-close {
  width: 43px; height: 43px; display: grid; place-items: center; padding: 0;
  border: 2px solid #b94d34; border-radius: 50%;
  background: linear-gradient(145deg, #f98b69, #df6548); color: #fff8eb;
  box-shadow: inset 0 0 0 3px #f59a79, inset 0 0 0 4px rgba(116,45,29,.24), 0 5px 8px rgba(114,55,38,.22);
  font-size: 0; line-height: 0;
}
.weather-detail-close::before {
  content: "×"; display: block; transform: translateY(-1px);
  font: 600 34px/1 var(--font-display);
}
.weather-detail-close:active { transform: scale(.95); }
.weather-detail-summary {
  position: relative; min-height: 278px; display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  grid-template-rows: auto auto 1fr auto; padding: 19px 18px 11px; overflow: hidden;
  border: 1px solid #e9d4b7; border-radius: 19px;
  background:
    radial-gradient(circle at 75% 20%, rgba(218,239,240,.78), transparent 34%),
    linear-gradient(135deg, #f5fbfb, #fffbf2 68%);
  box-shadow: 0 6px 13px rgba(77,57,30,.07), inset 0 1px #fff;
}
.weather-detail-place {
  z-index: 2; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
}
.weather-detail-place h3 {
  color: #071d43; font-family: var(--font-display); font-size: 24px; line-height: 1;
}
.weather-detail-place p { margin-top: 4px; color: #626777; font-size: 12px; }
.weather-detail-flag { width: 58px; height: 45px; font-size: 39px; }
.weather-detail-flag.has-country-art {
  width: 58px; height: 45px; overflow: visible; filter: none;
}
.weather-detail-flag.has-country-art img {
  width: 66px; height: 50px; object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(57,45,30,.2));
}
.weather-detail-summary > .weather-source-badge {
  z-index: 2; grid-column: 1; align-self: start; margin-top: 9px; padding: 5px 8px;
  border: 1px solid #cfe1df; background: rgba(240,249,247,.82);
  color: #1b7380; font-size: 8px; letter-spacing: .13em; text-transform: uppercase;
}
.weather-detail-current {
  z-index: 2; grid-column: 1; grid-row: 3; display: grid; align-self: center;
  padding: 3px 0 8px 2px;
}
.weather-detail-current > strong {
  color: #061c43; font-family: var(--font-display); font-size: 62px; line-height: .92;
  letter-spacing: -2px;
}
.weather-detail-current > b {
  margin-top: 5px; color: #071d43; font-family: var(--font-display); font-size: 22px; line-height: 1;
}
.weather-detail-current > span { margin-top: 4px; color: #667084; font-size: 12px; }
.weather-detail-scene {
  position: absolute; z-index: 1; top: auto; right: 7px; bottom: 56px;
  width: 57%; height: 160px; overflow: visible; pointer-events: none;
  animation: weatherDetailDrift 4.8s ease-in-out infinite alternate;
}
.weather-detail-scene .weather-card-condition-scene {
  inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 1;
}
.weather-detail-scene .weather-condition-art {
  inset: -4% -8%; width: 113%; height: 113%; object-fit: contain;
  filter: drop-shadow(0 9px 8px rgba(47,65,67,.17));
}
@keyframes weatherDetailDrift {
  from { transform: translateX(-6px); }
  to { transform: translateX(6px); }
}
.weather-detail-metrics {
  z-index: 2; grid-column: 1 / -1; grid-row: 4; display: grid;
  grid-template-columns: repeat(3, 1fr); padding-top: 10px;
  border-top: 1px solid rgba(190,173,146,.34);
}
.weather-detail-metrics > div {
  min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 0 6px;
  text-align: center;
}
.weather-detail-metrics > div + div { border-left: 1px solid rgba(190,173,146,.34); }
.weather-detail-metrics strong,
.weather-detail-metrics time { color: #0a2045; font-size: 13px; font-weight: 850; }
.weather-detail-metrics .weather-detail-clock { position: static; }
.weather-detail-metrics small { color: #637080; font-size: 9px; }
.weather-detail-honesty {
  position: relative; margin: 0; padding: 1px 4px 1px 27px; color: #5e6976;
  font-size: 10px; line-height: 1.35;
}
.weather-detail-honesty::before {
  content: "ⓘ"; position: absolute; left: 3px; top: -2px; color: #65727b; font-size: 17px;
}
.weather-detail-forecast-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.weather-detail-forecast-head h3 {
  color: #071d43; font-family: var(--font-display); font-size: 20px;
}
.weather-detail-forecast-head span {
  padding: 7px 13px; border: 1px solid #318698; border-radius: 999px;
  color: #176d7f; font-size: 11px; font-weight: 850;
}
.weather-detail-table {
  gap: 0; overflow: hidden; border: 1px solid #ead6ba; border-radius: 17px;
  background: rgba(255,255,255,.56); box-shadow: 0 5px 12px rgba(77,57,30,.06);
}
.weather-detail-table .weather-day-row {
  position: relative; min-height: 52px; grid-template-columns: 89px 52px minmax(0, 1fr) 82px;
  gap: 7px; padding: 4px 10px; border: 0; border-radius: 0; background: transparent;
}
.weather-detail-table .weather-day-row + .weather-day-row {
  border-top: 1px solid rgba(203,190,171,.35);
}
.weather-detail-table .weather-day-row.is-selected {
  background: linear-gradient(90deg, rgba(232,246,246,.82), rgba(255,255,255,.34));
}
.weather-detail-table .weather-day-row.is-selected::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  border-radius: 0 5px 5px 0; background: #f07856;
  box-shadow: 1px 0 3px rgba(181,79,52,.16);
}
.weather-detail-table .weather-day-row > time {
  color: #172844; font-size: 12px; font-weight: 650;
}
.weather-detail-table .weather-symbol { width: 48px; height: 44px; }
.weather-detail-table .weather-symbol.has-pack-art img { width: 55px; height: 55px; }
.weather-detail-table .weather-day-copy strong { color: #182945; font-size: 12px; font-weight: 650; }
.weather-detail-table .weather-day-copy small { display: none; }
.weather-detail-table .weather-day-temp {
  display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: flex-end;
  gap: 4px; white-space: nowrap;
}
.weather-detail-table .weather-day-temp strong { color: #061d43; font-size: 22px; }
.weather-detail-table .weather-day-temp span { color: #626978; font-size: 13px; }
.weather-detail-table .weather-day-temp small { color: #626978; font-size: 12px; }
.weather-packing-card {
  min-height: 76px; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #ead6ba;
  border-radius: 17px; background: linear-gradient(145deg, #fffdf8, #f8f0e4);
  box-shadow: 0 5px 12px rgba(77,57,30,.06);
}
.weather-packing-art {
  position: relative; width: 108px; height: 66px; display: grid; place-items: center;
}
.weather-packing-art img {
  width: 112px; height: 82px; object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(51,63,76,.16));
}
.weather-packing-art.is-warm img { width: 94px; height: 76px; }
.weather-packing-card strong { color: #071d43; font-family: var(--font-display); font-size: 15px; }
.weather-packing-card p { margin-top: 4px; color: #536474; font-size: 10px; line-height: 1.4; }
.weather-packing-cta {
  padding: 10px 12px; border: 1px solid #257b8c; border-radius: 12px;
  color: #0a6579; font-size: 10px; font-weight: 850; white-space: nowrap;
}

.weather-add-place-sheet { border-radius: 27px 27px 0 0; background: #fffaf0; }
.weather-add-sheet { display: grid; gap: 15px; padding: 3px 1px 6px; }
.weather-add-sheet header h2 {
  margin-top: 3px; color: #0a2144; font-family: var(--font-display); font-size: 28px;
}
.weather-add-sheet header p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.weather-add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.weather-add-input { margin: 0; }
.weather-add-submit {
  min-width: 64px; border-radius: 14px; background: #ec7657; color: white;
  font-size: 12px; font-weight: 900;
}
.weather-add-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.weather-add-suggestions button {
  padding: 8px 10px; border: 1px solid #d9cbb8; border-radius: 999px;
  background: rgba(255,255,255,.72); color: #173253; font-size: 10px; font-weight: 750;
}
.weather-added-places { display: grid; gap: 6px; padding-top: 3px; border-top: 1px solid #eadfce; }
.weather-added-places h3 { margin: 5px 0 2px; font-family: var(--font-display); font-size: 16px; }
.weather-added-places > div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.6); font-size: 11px;
}
.weather-added-places button { color: #b54d3d; font-size: 9px; font-weight: 850; }

.weather-detail-reference { position: relative; }
.weather-day-is-open { position: relative; overflow: hidden !important; }
.weather-detail-table .weather-day-row {
  width: 100%; color: inherit; text-align: left; cursor: pointer;
}
.weather-detail-table .weather-day-row:active { background: rgba(222,241,241,.82); }
.weather-day-detail {
  position: absolute; z-index: 8; inset: 0; min-height: 100%;
  display: grid; align-content: start; gap: 14px; padding: 8px 1px 20px;
  background:
    radial-gradient(circle at 88% 1%, rgba(216,239,240,.72), transparent 26%),
    linear-gradient(145deg, #fffdf8, #f8f1e6);
  transform-origin: 50% 38%; backface-visibility: hidden;
  animation: weatherDayFlipIn 430ms cubic-bezier(.2,.78,.25,1) both;
}
.weather-day-detail.is-leaving { animation: weatherDayFlipOut 230ms ease-in both; }
@keyframes weatherDayFlipIn {
  from { opacity: 0; transform: perspective(900px) rotateY(-17deg) rotateZ(-1.5deg) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes weatherDayFlipOut {
  to { opacity: 0; transform: perspective(900px) rotateY(12deg) scale(.96); }
}
.weather-day-detail-head { display: flex; align-items: center; gap: 12px; padding: 3px 3px; }
.weather-day-back {
  width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center;
  border: 1px solid #dccbb4; border-radius: 50%; background: rgba(255,255,255,.72);
  color: #173151; box-shadow: 0 5px 12px rgba(68,52,29,.1); font: 500 35px/1 var(--font-display);
}
.weather-day-detail-head h2 {
  margin-top: 2px; color: #071d43; font-family: var(--font-display); font-size: 26px; line-height: 1;
}
.weather-day-detail-head p { margin-top: 4px; color: #617283; font-size: 11px; }
.weather-day-hero {
  min-height: 205px; display: grid; grid-template-columns: 48% minmax(0, 1fr);
  align-items: center; gap: 6px; padding: 20px; overflow: hidden;
  border: 1px solid #e4d2b7; border-radius: 22px;
  background:
    radial-gradient(circle at 23% 30%, rgba(218,242,243,.82), transparent 35%),
    linear-gradient(140deg, #f1fbfb, #fff8eb);
  box-shadow: 0 8px 18px rgba(68,52,29,.09), inset 0 1px #fff;
}
.weather-day-hero > .weather-symbol { width: 152px; height: 152px; justify-self: center; }
.weather-day-hero > .weather-symbol.has-pack-art img {
  width: 174px; height: 174px; object-fit: contain;
  filter: drop-shadow(0 11px 10px rgba(51,63,76,.18));
}
.weather-day-hero-copy { display: grid; align-content: center; gap: 6px; }
.weather-day-hero-copy > strong {
  color: #071d43; font-family: var(--font-display); font-size: 30px; line-height: 1;
}
.weather-day-hero-copy > span { color: #1b3556; font-size: 15px; font-weight: 850; }
.weather-day-hero-copy p { color: #5c6b79; font-size: 11px; line-height: 1.4; }
.weather-rain-card {
  display: grid; gap: 15px; padding: 18px; border: 1px solid #d5e1df; border-radius: 22px;
  background: linear-gradient(145deg, #eef8f7, #fffdf7);
  box-shadow: 0 8px 18px rgba(68,52,29,.08), inset 0 1px #fff;
}
.weather-rain-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.weather-rain-heading h3 {
  margin-top: 3px; color: #082446; font-family: var(--font-display); font-size: 22px;
}
.weather-rain-heading > strong {
  color: #267b91; font-family: var(--font-display); font-size: 31px; line-height: 1;
}
.weather-rain-chart {
  height: 155px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end;
  gap: 8px; padding: 12px 5px 0; border-bottom: 1px solid rgba(74,117,127,.24);
  background:
    repeating-linear-gradient(0deg, rgba(84,132,141,.09) 0 1px, transparent 1px 36px);
}
.weather-rain-point { min-width: 0; display: grid; gap: 6px; justify-items: center; }
.weather-rain-point > span {
  width: 22px; height: 118px; display: flex; align-items: end; overflow: hidden;
  border-radius: 9px 9px 3px 3px; background: rgba(102,157,169,.11);
}
.weather-rain-point i {
  width: 100%; height: var(--rain-value); display: block; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #70bac7, #287c98);
  box-shadow: inset 0 1px rgba(255,255,255,.42);
}
.weather-rain-point small {
  overflow: hidden; width: 100%; color: #637682; font-size: 7.5px; text-align: center;
  text-overflow: ellipsis; white-space: nowrap;
}
.weather-rain-honesty {
  margin: 0; padding-left: 21px; color: #5b6d76; font-size: 10px; line-height: 1.4;
}
.weather-rain-honesty::before { content: "ⓘ"; margin-left: -21px; margin-right: 7px; font-size: 14px; }
.weather-day-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.weather-day-notes > div {
  min-width: 0; display: grid; gap: 5px; padding: 13px 10px; border: 1px solid #ead9c2;
  border-radius: 16px; background: rgba(255,255,255,.62); text-align: center;
}
.weather-day-notes span { color: #697682; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.weather-day-notes strong { color: #102847; font-size: 11px; line-height: 1.25; }

@media (max-width: 390px) {
  .weather-day-row { grid-template-columns: 58px 38px minmax(0, 1fr) 34px; gap: 7px; padding-inline: 9px; }
  .weather-day-row .weather-symbol { width: 36px; height: 36px; }
  .weather-day-row .weather-symbol svg { width: 27px; height: 27px; }
  .weather-detail-table .weather-day-row { grid-template-columns: 74px 46px minmax(0, 1fr) 74px; }
}
@media (min-width: 680px) {
  .weather-destinations.is-three .weather-destination-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weather-destinations.is-four .weather-destination-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .weather-destinations.is-three .weather-destination-card:last-child { width: auto; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .weather-destination-card { transition: none; }
  .weather-detail-scene { animation: none; }
  .weather-day-detail,
  .weather-day-detail.is-leaving { animation: none; }
}

/* ---------- Notes & to-dos ----------
 * The paper-and-stitch language is engine-owned. A pack may replace the small
 * decoration, but names and character artwork still come from the profile.
 */
.notes-hub,
.note-editor { display: grid; gap: 14px; padding-bottom: 4px; }
.notes-hub-header,
.note-editor-header {
  position: relative; min-height: 126px; display: flex; align-items: center;
  justify-content: space-between; overflow: hidden; padding: 20px;
  border: 1px solid color-mix(in srgb, var(--tv-ring) 48%, #fff);
  border-radius: 23px; background:
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--tv-accent) 10%, transparent) 24px 25px),
    linear-gradient(135deg, color-mix(in srgb, var(--tv-wash) 70%, #fff), #fff8ec);
  box-shadow: 0 12px 28px rgba(68,52,29,.11), inset 0 1px #fff;
}
.notes-hub-header::before,
.note-editor-header::before {
  content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px;
  background: color-mix(in srgb, var(--tv-accent) 34%, transparent);
}
.notes-hub-copy,
.note-editor-header > div:first-child { position: relative; z-index: 1; min-width: 0; }
.notes-hub-kicker {
  color: var(--tv-accent-deep); font-size: 9px; font-weight: 900;
  letter-spacing: .15em; text-transform: uppercase;
}
.notes-hub-copy h2,
.note-editor-header h2 { margin-top: 4px; font-family: var(--font-display); font-size: 25px; line-height: 1.05; }
.notes-hub-copy p { margin-top: 7px; color: var(--ink-soft); font-size: 11px; }
.notes-hub-decoration,
.note-editor-decoration {
  position: relative; z-index: 1; width: 80px; height: 80px; display: grid;
  flex: 0 0 80px; place-items: center; margin: -8px -7px -8px 8px;
  color: var(--tv-accent-deep); font-family: var(--font-display); font-size: 45px;
  animation: notesDecorationFloat 3.2s ease-in-out infinite;
}
.notes-hub-decoration img,
.note-editor-decoration img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(70,54,31,.16));
}
@keyframes notesDecorationFloat { 50% { transform: translateY(-3px) rotate(1.5deg); } }

.notes-hub-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, #fff);
  border-radius: 16px; background: color-mix(in srgb, var(--tv-wash) 42%, #fff);
}
.notes-hub-tab {
  min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; color: var(--ink-soft); font-size: 13px; font-weight: 850;
  transition: background .18s, box-shadow .18s, transform .12s;
}
.notes-hub-tab:active { transform: scale(.98); }
.notes-hub-tab small {
  min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px;
  border-radius: 99px; background: color-mix(in srgb, var(--line) 74%, #fff);
  color: var(--muted); font-size: 9px;
}
.notes-hub-tab.selected {
  background: #fff; color: var(--tv-accent-deep);
  box-shadow: 0 5px 14px rgba(68,52,29,.1), inset 0 1px #fff;
}
.notes-hub-tab.selected small { background: var(--tv-wash); color: var(--tv-accent-deep); }
.notes-hub-list { display: grid; gap: 10px; }
.notes-hub-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notes-hub-section-head h3 { font-family: var(--font-display); font-size: 19px; }
.notes-hub-section-head p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.notes-add-button {
  flex: 0 0 auto; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--tv-ring) 66%, #fff);
  border-radius: 12px; background: var(--tv-wash); color: var(--tv-accent-deep);
  box-shadow: inset 0 1px #fff; font-size: 10px; font-weight: 850;
}
.notes-card-list,
.todo-card-list { display: grid; gap: 8px; }
.note-card,
.todo-card {
  position: relative; min-width: 0; display: flex; align-items: center; gap: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, #fff); border-radius: 17px;
  background: color-mix(in srgb, var(--card) 86%, #fff7e8);
  box-shadow: 0 7px 18px rgba(68,52,29,.08), inset 0 1px #fff;
}
.note-card { width: 100%; padding: 13px 12px; text-align: left; }
.note-card:active,
.todo-card:active { transform: scale(.99); }
.note-card-pin {
  width: 37px; height: 37px; display: grid; flex: 0 0 37px; place-items: center;
  border-radius: 12px; background: var(--tv-wash); color: var(--tv-accent-deep);
  font-size: 17px; box-shadow: inset 0 1px #fff;
}
.note-card-copy,
.todo-card-copy { min-width: 0; display: grid; flex: 1; gap: 2px; text-align: left; }
.note-card-copy strong,
.todo-card-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.note-card-copy > span,
.todo-card-copy > span {
  overflow: hidden; color: var(--ink-soft); font-size: 10px;
  text-overflow: ellipsis; white-space: nowrap;
}
.note-card-copy small,
.todo-card-copy small { color: var(--muted); font-size: 8.5px; }
.note-owner-head {
  width: 31px; height: 31px; flex: 0 0 31px; object-fit: cover;
  border: 2px solid #fff; border-radius: 50%; background: var(--tv-wash);
  box-shadow: 0 2px 7px rgba(68,52,29,.15);
}
.todo-card { padding: 9px 11px; transition: opacity .18s, transform .12s; }
.todo-check {
  width: 32px; height: 32px; display: grid; flex: 0 0 32px; place-items: center;
  border: 2px solid color-mix(in srgb, var(--tv-accent) 58%, var(--line));
  border-radius: 11px; background: #fff; color: #fff; font-size: 17px; font-weight: 900;
  box-shadow: inset 0 1px #fff;
}
.todo-card-copy { padding: 4px 0; }
.todo-card.is-done { opacity: .66; }
.todo-card.is-done .todo-check { border-color: var(--tv-accent-deep); background: var(--tv-accent-deep); }
.todo-card.is-done .todo-card-copy strong { text-decoration: line-through; }
.todo-progress {
  height: 7px; overflow: hidden; border-radius: 99px;
  background: color-mix(in srgb, var(--tv-wash) 70%, var(--line));
  box-shadow: inset 0 1px 2px rgba(68,52,29,.08);
}
.todo-progress i {
  height: 100%; display: block; border-radius: inherit;
  background: linear-gradient(90deg, var(--tv-accent), var(--tv-accent-deep));
  transition: width .35s var(--ease-glide);
}
.notes-empty {
  display: grid; justify-items: center; gap: 7px; padding: 24px 18px;
  border: 1px dashed color-mix(in srgb, var(--tv-ring) 65%, var(--line));
  border-radius: 20px; background: color-mix(in srgb, var(--tv-wash) 35%, #fff);
  text-align: center;
}
.notes-empty > div {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px;
  background: #fff; color: var(--tv-accent-deep); font-size: 28px;
  box-shadow: 0 7px 16px rgba(68,52,29,.09);
}
.notes-empty h3 { font-family: var(--font-display); font-size: 18px; }
.notes-empty p { max-width: 270px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.note-editor-header { min-height: 105px; }
.note-editor-decoration { width: 67px; height: 67px; flex-basis: 67px; }
.note-kind-picker {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 3px;
}
.note-kind-choice {
  min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  color: var(--ink-soft); font-size: 11px; font-weight: 850;
}
.note-kind-choice > span { font-size: 19px; }
.note-kind-choice.selected {
  border-color: color-mix(in srgb, var(--tv-ring) 70%, #fff);
  background: var(--tv-wash); color: var(--tv-accent-deep);
  box-shadow: inset 0 1px #fff, 0 5px 12px rgba(68,52,29,.08);
}
.note-owner-picker { display: flex; gap: 9px; overflow-x: auto; padding: 3px 1px 5px; scrollbar-width: none; }
.note-owner-picker::-webkit-scrollbar { display: none; }
.note-owner-choice {
  min-width: 64px; display: grid; justify-items: center; gap: 3px; padding: 6px;
  border: 2px solid transparent; border-radius: 15px; color: var(--muted);
  font-size: 8px; font-weight: 800;
}
.note-owner-choice.selected {
  border-color: var(--tv-ring); background: var(--tv-wash); color: var(--tv-accent-deep);
}
.note-owner-choice-head {
  width: 43px; height: 43px; object-fit: cover; border: 2px solid #fff;
  border-radius: 50%; background: var(--tv-wash); box-shadow: 0 3px 9px rgba(68,52,29,.14);
}
.note-paper-input {
  min-height: 210px; resize: vertical; line-height: 25px;
  background:
    linear-gradient(90deg, transparent 0 25px, color-mix(in srgb, var(--tv-accent) 20%, transparent) 26px 27px, transparent 28px),
    repeating-linear-gradient(0deg, transparent 0 24px, color-mix(in srgb, var(--tv-accent) 11%, transparent) 25px 26px),
    color-mix(in srgb, #fff 92%, var(--tv-wash));
  padding: 12px 14px 12px 36px;
}
.note-done-toggle {
  display: flex; align-items: center; gap: 9px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--tv-wash);
  color: var(--ink-soft); font-size: 11px; font-weight: 800;
}
.note-done-toggle input { width: 19px; height: 19px; accent-color: var(--tv-accent-deep); }
.note-editor-actions { display: flex; align-items: center; gap: 9px; margin-top: 2px; }
.note-reminder-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  padding: 12px; border: 1px solid color-mix(in srgb, var(--tv-ring) 38%, #fff);
  border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.92), color-mix(in srgb, var(--tv-wash) 56%, #fff));
  box-shadow: inset 0 1px #fff;
}
.note-reminder-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; }
.note-reminder-toggle input { width: 20px; height: 20px; accent-color: var(--tv-accent); }
.note-reminder-toggle span { display: grid; gap: 2px; }
.note-reminder-toggle strong { font-size: 11px; }
.note-reminder-toggle small { color: var(--muted); font-size: 8px; }
.note-reminder-time { width: 150px; }
.note-reminder-time .input { padding: 9px; font-size: 9px; }
.note-reminder-card p { grid-column: 1 / -1; color: var(--muted); font-size: 8px; line-height: 1.4; }
.note-apple-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note-apple-action {
  display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px;
  padding: 10px; border: 1px solid color-mix(in srgb, var(--tv-ring) 35%, #fff);
  border-radius: 16px; background: rgba(255,255,255,.78); color: var(--ink); text-align: left;
  box-shadow: 0 5px 13px rgba(68,52,29,.08);
}
.note-apple-action > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--tv-wash); font-size: 19px; }
.note-apple-action > span:last-child { display: grid; gap: 2px; }
.note-apple-action strong { font-size: 9px; }
.note-apple-action small { color: var(--muted); font-size: 7px; }
@media (max-width: 390px) {
  .note-reminder-card { grid-template-columns: 1fr; }
  .note-reminder-time { width: 100%; }
}

@media (max-width: 390px) {
  .notes-hub-header { min-height: 116px; padding: 17px; }
  .notes-hub-decoration { width: 70px; height: 70px; flex-basis: 70px; }
  .notes-hub-copy h2,
  .note-editor-header h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .notes-hub-decoration,
  .note-editor-decoration { animation: none; }
  .todo-progress i { transition: none; }
}

/* ---------- app-wide responsive guardrails ---------- */
html {
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-width: 280px;
  overflow-x: hidden;
  overflow-y: visible;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}
#app,
.view,
.card,
article,
section,
header,
footer,
nav,
main,
.row,
[class*="-copy"],
[class*="-head"],
[class*="-title"] { min-width: 0; }
:where(h1, h2, h3, h4, p, strong, span, small, button, label) {
  overflow-wrap: anywhere;
}
:where(button, input, select, textarea) { max-width: 100%; }
.today-shortcut-rail { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.today-shortcut-rail::-webkit-scrollbar { display: none; }

@media (max-width: 460px) {
  :root { --gutter: clamp(8px, 2.5vw, 11px); }
  .tab { flex-basis: clamp(58px, 17.25vw, 76px); min-width: clamp(58px, 17.25vw, 76px); }
  .h1 { font-size: clamp(22px, 6.2vw, 26px); }
  .h2 { font-size: clamp(16px, 4.5vw, 18px); }
  .sub { font-size: clamp(11.5px, 3.2vw, 13.5px); }
  .card { padding: clamp(11px, 3.6vw, 16px); }
  .btn { padding-inline: clamp(12px, 4vw, 18px); font-size: clamp(13px, 3.6vw, 15px); }
  .journey-map-tag { max-width: calc(100% - 112px); }
  .journey-flight-play { top: 48px; }
}

@media (max-width: 340px) {
  .app-header { gap: 7px; }
  .app-destination-label { font-size: 16px; }
  .destination-label-pin { width: 27px; height: 27px; }
  .journey-flight-play { min-width: 56px; min-height: 31px; padding: 6px 9px; font-size: 9px; }
  .journey-map-reset { right: 8px; }
}

/* ---------- generic Pack Shop ---------- */
.pack-shop-entry {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 12px 14px 12px 12px;
  border: 1px solid color-mix(in srgb, var(--tv-ring) 42%, #fff);
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tv-wash) 78%, #fff), rgba(255,255,255,.94));
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 24px rgba(68,52,29,.10);
  cursor: pointer;
}
.pack-shop-entry:focus-visible,
.pack-shop-card button:focus-visible { outline: 3px solid color-mix(in srgb, var(--tv-ring) 70%, #fff); outline-offset: 2px; }
.pack-shop-entry-art,
.pack-shop-card-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.92), color-mix(in srgb, var(--tv-wash) 70%, var(--tv-ring)));
}
.pack-shop-entry-art { width: 58px; height: 58px; }
.pack-shop-entry-orbit { width: 36px; height: 36px; border: 3px solid var(--tv-ring); border-radius: 50%; transform: rotate(-22deg); opacity: .85; }
.pack-shop-entry-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--tv-accent); top: 8px; right: 5px; box-shadow: 0 0 0 3px rgba(255,255,255,.65); }
.pack-shop-entry-spark { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: var(--tv-sun); transform: rotate(45deg); bottom: 10px; left: 11px; }
.pack-shop-entry-copy { min-width: 0; display: grid; gap: 2px; }
.pack-shop-entry-kicker,
.pack-shop-card-type { color: var(--tv-accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pack-shop-entry-copy strong { font-size: 17px; line-height: 1.1; }
.pack-shop-entry-copy small { color: var(--muted); font-size: 12px; line-height: 1.25; }
.pack-shop-entry-action { color: var(--tv-accent); font-size: 13px; font-weight: 800; white-space: nowrap; }
.pack-shop-sheet { display: grid; gap: 14px; }
.pack-shop-grid { display: grid; gap: 11px; }
.pack-shop-card { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid color-mix(in srgb, var(--tv-ring) 28%, #fff); border-radius: 18px; background: rgba(255,255,255,.84); }
.pack-shop-card-art { width: 58px; height: 58px; }
.pack-shop-card-art img { width: 82%; height: 82%; object-fit: contain; }
.pack-shop-card-copy { min-width: 0; display: grid; gap: 2px; }
.pack-shop-card-copy h3 { margin: 0; font-size: 16px; line-height: 1.12; }
.pack-shop-card-copy p { margin: 2px 0 3px; color: var(--muted); font-size: 12px; line-height: 1.28; }
.pack-shop-card-state { justify-self: start; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--tv-wash) 70%, #fff); color: var(--tv-accent); font-size: 10px; font-weight: 800; }
.pack-shop-disclosure { margin: 0; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--tv-sun) 18%, #fff); color: var(--muted); font-size: 11px; line-height: 1.35; }
.pack-shop-country-section { display:grid; gap:7px; }
.pack-shop-country-section > strong { font-size:13px; color:var(--ink-soft); }
.pack-shop-country-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; max-height:240px; overflow:auto; padding:2px; }
.pack-shop-country-choice { display:grid; grid-template-columns:28px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; gap:0 7px; min-width:0; padding:7px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.72); color:var(--ink); text-align:left; }
.pack-shop-country-choice.selected { border-color:var(--tv-accent); background:var(--tv-wash); }
.pack-shop-country-choice > span:nth-child(2) { overflow:hidden; font-size:11px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.pack-shop-country-choice small { grid-column:2; color:var(--muted); font-size:9px; }
.pack-shop-country-flag { grid-row:1 / span 2; width:28px; height:21px; display:grid; place-items:center; }
.pack-shop-country-flag img { width:100%; height:100%; object-fit:contain; }
@media (max-width: 390px) {
  .pack-shop-entry { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 9px; padding-inline: 10px; }
  .pack-shop-entry-art, .pack-shop-card-art { width: 52px; height: 52px; }
  .pack-shop-entry-copy strong { font-size: 15px; }
  .pack-shop-entry-copy small { font-size: 11px; }
  .pack-shop-card { grid-template-columns: 52px minmax(0, 1fr); }
  .pack-shop-card > .btn { grid-column: 2; justify-self: start; }
  .pack-shop-country-picker { grid-template-columns:1fr; }
}
