/* ── SYSTEM FONT STACK ── */
:root {
  --ff: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ff-mono: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  --bg: #F8F8F6;
  --surface: #EFEFED;
  --card: #FFFFFF;
  --card2: #F4F4F2;
  --rule: rgba(0,0,0,0.09);
  --rule2: rgba(0,0,0,0.05);
  --text: #111110;
  --mid: #6B6B6B;
  --dim: #ABABAB;
  --red: #CE1126;
  --gold: #9A7B2E;
  --gold-lt: rgba(154,123,46,0.1);
  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-orange: #FF9F0A;
  --ios-red: #FF3B30;
  --inv-bg: #111110;
  --inv-text: #F8F8F6;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --nav-h: 60px;
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-light) {
    --bg: #000000;
    --surface: #1C1C1E;
    --card: #1C1C1E;
    --card2: #2C2C2E;
    --rule: rgba(84,84,88,0.65);
    --rule2: rgba(84,84,88,0.36);
    --text: #FFFFFF;
    --mid: rgba(245,245,247,0.78);
    --dim: rgba(235,235,245,0.52);
    --gold: #C9A84C;
    --gold-lt: rgba(201,168,76,0.12);
    --inv-bg: #FFFFFF;
    --inv-text: #000000;
  }
}

:root.theme-light {
  --bg: #F8F8F6;
  --surface: #EFEFED;
  --card: #FFFFFF;
  --card2: #F4F4F2;
  --rule: rgba(0,0,0,0.09);
  --rule2: rgba(0,0,0,0.05);
  --text: #111110;
  --mid: #6B6B6B;
  --dim: #ABABAB;
  --gold: #9A7B2E;
  --gold-lt: rgba(154,123,46,0.1);
  --inv-bg: #111110;
  --inv-text: #F8F8F6;
  color-scheme: light;
}

:root.theme-dark {
  --bg: #0f0d0b;
  --surface: #191612;
  --card: #191612;
  --card2: #211d18;
  --rule: rgba(255,255,255,0.11);
  --rule2: rgba(255,255,255,0.07);
  --text: #F8F1E7;
  --mid: #C9BCAA;
  --dim: #9B8D7D;
  --red: #FF3B4F;
  --gold: #E3BD5D;
  --gold-lt: rgba(227,189,93,0.14);
  --inv-bg: #F8F1E7;
  --inv-text: #0F0D0B;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); }
body {
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  user-select: none;
}

/* ── APP SHELL ── */
#app {
  display: flex;
  flex-direction: column;
  height: 100%; height: 100dvh;
  width: 100%;
  max-width: 834px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
}

/* ── HEADER ── */
.hdr {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  padding: calc(var(--safe-top) + 8px) 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  min-height: 58px;
}
.hdr::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
.hdr-left { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.hdr-portrait {
  width: 42px; height: 42px;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.hdr-divider { width: 1px; height: 28px; background: var(--rule); flex-shrink: 0; }
.hdr-traf {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.hdr-name-block { display: flex; flex-direction: column; justify-content: center; }
.hdr-name { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; line-height: 1.2; }
.hdr-role { font-size: 10px; color: var(--dim); letter-spacing: 0.02em; }
.hdr-right { text-align: right; flex-shrink: 0; }
.hdr-day-lbl { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.hdr-day-val { font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: -0.02em; }
.hdr-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--rule) 80%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 64%, transparent);
  color: var(--dim);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hdr-icon-btn:active { transform: scale(.96); }
.hdr-icon-btn .material-symbols-outlined { font-size: 18px; line-height: 1; }
@media (max-width: 430px) {
  .hdr { padding: calc(var(--safe-top) + 6px) 12px 8px; }
  .hdr-left { gap: 8px; min-width: 0; }
  .hdr-portrait { width: 38px; height: 38px; }
  .hdr-divider:last-of-type, .hdr-name-block { display: none; }
  .hdr-traf { height: 30px; }
  .hdr-right { min-width: 50px; }
  .hdr-day-lbl { font-size: 9px; }
  .hdr-day-val { font-size: 14px; }
}

/* ── SCREENS ── */
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: none;
  padding-bottom: calc(var(--nav-h) + var(--safe-bot) + 8px);
  background: var(--bg);
}
.screen.active { display: block; }

/* ── BOTTOM NAV ── */
.bnav {
  position: fixed;
  bottom: max(8px, var(--safe-bot));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 810px;
  height: var(--nav-h);
  padding: 7px 8px;
  background: rgba(20,18,16,.34);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  display: flex;
  z-index: 40;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
}
.ni {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; padding-top: 2px; border-radius: 17px;
  -webkit-tap-highlight-color: transparent; transition: opacity 0.1s;
}
.ni:active { opacity: 0.5; }
.ni svg { width: 20px; height: 20px; stroke: rgba(255,255,255,.68); transition: stroke 0.15s; }
.ni span { font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,.68); font-weight: 800; transition: color 0.15s; }
.ni.active { background: rgba(255,255,255,.14); }
.ni.active svg { stroke: #fff; }
.ni.active span { color: #fff; }
.ni.is-hidden { display: none; }
.rewards-nav:not(.is-hidden) {
  position: relative;
  background: linear-gradient(180deg, rgba(242,183,5,.16), rgba(242,183,5,.04));
}
.rewards-nav:not(.is-hidden)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 999px;
  background: #F7C600;
}
.rewards-nav:not(.is-hidden) svg { stroke: #F2B705; }
.rewards-nav:not(.is-hidden) span { color: #F2B705; font-weight: 850; }
.rewards-nav:not(.is-hidden).active {
  background: linear-gradient(180deg, rgba(242,183,5,.24), rgba(242,183,5,.08));
}
.rewards-nav:not(.is-hidden).active svg { stroke: #F7C600; }
.rewards-nav:not(.is-hidden).active span { color: #F7C600; }

/* ── PERSONAL JOURNAL ── */
.journal-hero {
  position: relative;
  min-height: 246px;
  padding: 96px 18px 24px;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.2) 36%, rgba(0,0,0,.78)),
    url("assets/gic-hero-venice-evening.jpg");
  background-size: cover;
  background-position: center;
}
.journal-back-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 14px);
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}
.journal-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.74);
  margin-bottom: 8px;
}
.journal-title {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.journal-copy {
  max-width: 430px;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.journal-status-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.journal-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 12px 12px;
  scrollbar-width: none;
}
.journal-days::-webkit-scrollbar { display:none; }
.journal-day-btn {
  flex: 0 0 72px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  padding: 9px 8px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15,23,42,0.04);
}
.journal-day-btn small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.journal-day-btn strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}
.journal-day-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.journal-day-btn.active small { color: rgba(255,255,255,0.78); }
.journal-compose,
.journal-keepsake,
.journal-empty,
.journal-entry {
  margin: 0 12px 12px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}
.journal-compose-head {
  padding: 15px 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.journal-compose-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.journal-compose-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.4;
}
.journal-private {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(22,130,77,0.09);
  color: #16824d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.journal-photo-preview {
  margin: 13px 16px 0;
  min-height: 154px;
  border-radius: 16px;
  border: 1px dashed rgba(206,17,38,0.28);
  background: rgba(206,17,38,0.05);
  color: var(--red);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  overflow: hidden;
}
.journal-photo-preview.has-photo {
  display: block;
  min-height: 0;
  padding: 0;
  border-style: solid;
  background: var(--surface);
}
.journal-photo-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}
.journal-photo-preview strong {
  display: block;
  font-size: 13px;
  color: inherit;
}
.journal-photo-preview span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--mid);
  line-height: 1.35;
}
.journal-field {
  width: calc(100% - 32px);
  min-height: 112px;
  margin: 12px 16px 0;
  resize: vertical;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  padding: 12px;
  font-family: var(--ff);
  font-size: 14px;
  line-height: 1.5;
}
.journal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 12px 16px 16px;
}
.journal-btn {
  border: 1px solid rgba(206,17,38,0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--red);
  padding: 11px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.journal-btn.primary {
  background: var(--red);
  color: #fff;
}
.journal-section-title {
  padding: 18px 16px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.journal-entry-media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.journal-entry-body {
  padding: 14px 16px;
}
.journal-entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
}
.journal-entry-title {
  margin-top: 7px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}
.journal-entry-note {
  margin-top: 7px;
  color: var(--mid);
  font-size: 13px;
  line-height: 1.5;
}
.journal-entry-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 14px;
}
.journal-entry-tools button {
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.journal-empty {
  padding: 24px 18px;
  text-align: center;
  color: var(--mid);
  font-size: 13px;
  line-height: 1.5;
}
.journal-keepsake {
  padding: 16px;
}
.journal-keepsake-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.journal-keepsake-copy {
  margin-top: 5px;
  color: var(--mid);
  font-size: 13px;
  line-height: 1.5;
}
.journal-keepsake .journal-btn {
  margin-top: 12px;
  width: 100%;
}

/* ── SHARED ── */
.sec-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); padding: 20px 16px 8px;
}
.list-row {
  display: flex; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid var(--rule); background: var(--card);
  gap: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.list-row:active { background: var(--card2); }
.chev { width: 14px; height: 14px; stroke: var(--dim); flex-shrink: 0; }

/* ── CHIPS ── */
.chip { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.chip-inc { background: var(--gold-lt); color: var(--gold); }
.chip-opt { background: var(--rule); color: var(--mid); }

/* ── COUNTDOWN ── */
.cd-wrap { background: var(--red); margin: 0 12px 12px; padding: 22px 18px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; border-radius: 0; }
.cd-label { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.78); text-align: center; }
.cd-digits { display: flex; gap: 16px; align-items: flex-end; }
.cd-unit { text-align: center; }
.cd-num { font-size: clamp(34px, 10vw, 52px); font-weight: 850; color: #fff; line-height: 1; letter-spacing: 0; display: block; min-width: 2ch; font-variant-numeric: tabular-nums; }
.cd-unit-lbl { font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255,255,255,0.74); margin-top: 5px; }
.cd-sep { font-size: 26px; font-weight: 300; color: rgba(255,255,255,0.34); padding-bottom: 12px; }
.pretrip-cta {
  margin: 12px 12px 0;
  background:
    radial-gradient(circle at top right, rgba(37,211,102,.24), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 42%),
    #f6fffa;
  border: 1px solid rgba(37,211,102,.28);
  border-top: 4px solid #25D366;
  border-radius: 18px;
  padding: 20px 16px 16px;
  box-shadow: 0 20px 44px rgba(11, 103, 53, .12);
}
.pretrip-cta-kicker { font-size: 10px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #128C7E; margin-bottom: 8px; }
.pretrip-cta-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pretrip-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #25D366, #1DAE57);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(37,211,102,.22);
}
.pretrip-cta-icon svg { width: 28px; height: 28px; fill: #fff; }
.pretrip-cta-title { font-family: 'Noto Serif', serif; font-size: 27px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1.02; }
.pretrip-cta-body { font-size: 14px; color: var(--mid); line-height: 1.7; margin-bottom: 14px; }
.pretrip-cta-body strong { color: var(--text); font-weight: 850; }
.pretrip-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(37,211,102,.24);
}
.pretrip-cta-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.pretrip-cta-note { margin-top: 12px; font-size: 12px; color: #128C7E; line-height: 1.6; font-style: italic; }
.pretrip-day1-link {
  display: block;
  position: relative;
  margin: 12px 12px 0;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.58), transparent 42%),
    var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0,0,0,.05);
}
.pretrip-day1-pass {
  background:
    radial-gradient(circle at 100% 0, rgba(206,17,38,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,248,239,.92)),
    var(--card);
  border-top-color: var(--red);
  overflow: hidden;
}
.pretrip-day1-pass::before,
.pretrip-day1-pass::after {
  content: '';
  position: absolute;
  top: 124px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--rule);
  z-index: 1;
}
.pretrip-day1-pass::before { left: -10px; }
.pretrip-day1-pass::after { right: -10px; }
.pretrip-day1-pass > * { position: relative; z-index: 2; }
.pretrip-day1-link.is-locked { cursor: default; }
.pretrip-day1-head {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.pretrip-day1-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #fff1e7;
  border: 1px solid rgba(243,108,33,.25);
  color: var(--amber, #F28C18);
}
.pretrip-day1-mark svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
}
.pretrip-day1-kicker { font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber, #F28C18); margin-bottom: 8px; }
.pretrip-day1-title { font-family: 'Noto Serif', serif; font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 6px; }
.pretrip-day1-body { font-size: 14px; color: var(--mid); line-height: 1.65; margin-bottom: 12px; }
.pretrip-day1-timeline {
  display: grid;
  gap: 8px;
  margin: 14px -16px 13px;
  padding: 12px 16px 0;
  border-top: 1px dashed rgba(7,29,58,.22);
}
.pretrip-day1-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 9px;
  align-items: start;
}
.pretrip-day1-time {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.pretrip-day1-row-copy strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  margin-bottom: 2px;
}
.pretrip-day1-row-copy span {
  display: block;
  color: var(--mid);
  font-size: 12px;
  line-height: 1.35;
}
.pretrip-day1-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 12px 16px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pretrip-day1-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.1; fill: none; }
.pretrip-day1-meta { font-size: 12px; color: var(--dim); line-height: 1.55; margin-top: 2px; }

.venice-pass-card {
  margin: 12px 12px 0;
  background:
    radial-gradient(circle at top right, rgba(0,122,255,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.54), transparent 40%),
    var(--card);
  border: 1px solid rgba(0,122,255,.16);
  border-top: 3px solid var(--ios-blue);
  padding: 16px;
  box-shadow: 0 16px 34px rgba(0,0,0,.05);
}
.venice-pass-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ios-blue); margin-bottom: 8px; }
.venice-pass-title { font-family: 'Noto Serif', serif; font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 6px; }
.venice-pass-body { font-size: 14px; color: var(--mid); line-height: 1.68; margin-bottom: 12px; }
.venice-pass-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.venice-pass-pill {
  display:inline-flex; align-items:center; gap:6px;
  background: rgba(0,122,255,.08);
  border: 1px solid rgba(0,122,255,.12);
  color: var(--ios-blue);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px;
}
.venice-pass-pill span { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 600; }
.venice-pass-actions { display:flex; flex-wrap:wrap; gap:10px; }
.venice-pass-btn, .venice-pass-ghost {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height: 44px;
  padding: 12px 16px;
  text-decoration:none;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  cursor:pointer;
  border:none;
  font-family: var(--ff);
  -webkit-tap-highlight-color: transparent;
}
.venice-pass-btn { background: var(--ios-blue); color:#fff; }
.venice-pass-ghost { background: var(--surface); color: var(--text); border:1px solid var(--rule); }
.venice-pass-btn svg, .venice-pass-ghost svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.1; fill: none; }
.venice-pass-note { margin-top: 12px; font-size: 12px; color: var(--mid); line-height: 1.6; }

.vp-search-card, .vp-result-card, .vp-list-card {
  background: var(--card);
  border: 1px solid var(--rule);
  margin: 12px;
  padding: 14px;
}
.vp-search-card { border-top: 3px solid var(--ios-blue); }
.vp-search-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 6px; }
.vp-search-body { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 12px; }
.vp-field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-bottom: 2px solid var(--ios-blue);
  color: var(--text);
  font-family: var(--ff);
  font-size: 14px;
  padding: 12px 13px;
  outline: none;
}
.vp-search-actions { display:flex; gap:10px; margin-top:10px; }
.vp-search-btn, .vp-search-clear {
  flex:1;
  min-height: 42px;
  border:none;
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.vp-search-btn { background: var(--ios-blue); color:#fff; }
.vp-search-clear { background: var(--surface); color: var(--text); border:1px solid var(--rule); }
.vp-result-card { border-top: 3px solid var(--ios-green); }
.vp-result-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 4px; }
.vp-result-code { font-size: 12px; font-weight: 700; color: var(--ios-blue); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.vp-result-note { font-size: 12px; color: var(--mid); line-height: 1.6; margin-top: 10px; }
.vp-result-list { display:grid; gap:10px; }
.vp-empty { text-align:center; padding:22px 16px; font-size:13px; color: var(--dim); }
.vp-list-card { padding: 0; overflow: hidden; }
.vp-list-head { padding: 12px 14px; border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.vp-row {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule2);
}
.vp-row:last-child { border-bottom:none; }
.vp-row-name { font-size: 13px; font-weight: 600; color: var(--text); }
.vp-row-code { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ios-blue); margin-top: 3px; }
.vp-row-open {
  flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-height: 36px;
  padding: 8px 11px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--text);
  text-decoration:none;
  font-family: var(--ff);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
}
.vp-row-open svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.1; fill: none; }

.roman-ticket-card {
  position: relative;
  margin: 12px;
  background:
    radial-gradient(circle at top right, rgba(184,135,24,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.68), transparent 44%),
    var(--card);
  border: 1px solid rgba(184,135,24,.28);
  border-top: 4px solid var(--red);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 44px rgba(0,0,0,.08);
  overflow: hidden;
}
.roman-ticket-card-itinerary {
  margin: 12px 0 0;
  box-shadow: none;
}
.roman-ticket-card::before,
.roman-ticket-card::after {
  content: '';
  position: absolute;
  top: 76px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(184,135,24,.18);
  z-index: 1;
}
.roman-ticket-card::before { left: -10px; }
.roman-ticket-card::after { right: -10px; }
.roman-ticket-card > * { position: relative; z-index: 2; }
.roman-ticket-card .roman-ticket-meta {
  padding-top: 10px;
  border-top: 1px dashed rgba(184,135,24,.3);
}
.roman-ticket-head {
  display:grid;
  grid-template-columns: 1fr 72px;
  gap: 14px;
  align-items:start;
}
.roman-ticket-thumb {
  width: 72px;
  height: 72px;
  overflow:hidden;
  border: 1px solid rgba(184,135,24,.24);
  background: rgba(184,135,24,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.roman-ticket-thumb-icon {
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(184,135,24,.10);
}
.roman-ticket-thumb-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}
.roman-ticket-thumb img {
  display:block;
  width: 138%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
  filter: saturate(.9) contrast(.96);
}
.roman-ticket-kicker { font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.roman-ticket-title { font-family: 'Noto Serif', serif; font-size: 27px; font-weight: 800; color: var(--text); letter-spacing: 0; line-height: 1.04; margin-bottom: 8px; }
.roman-ticket-body { font-size: 14px; color: var(--mid); line-height: 1.58; margin: 12px 0; }
.roman-ticket-meta { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:11px; }
.roman-ticket-pill {
  display:inline-flex; align-items:center; gap:6px;
  background: rgba(184,135,24,.09);
  border: 1px solid rgba(184,135,24,.16);
  color: var(--gold);
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px;
}
.roman-ticket-pill span { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 700; }
.roman-ticket-actions { display:flex; flex-wrap:wrap; gap:8px; }
.roman-ticket-btn, .roman-ticket-download, .roman-ticket-ghost {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height: 46px;
  padding: 12px 15px;
  text-decoration:none;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  cursor:pointer;
  border:none;
  font-family: var(--ff);
  -webkit-tap-highlight-color: transparent;
}
.roman-ticket-btn { background: var(--red); color:#fff; }
.roman-ticket-download { background: var(--text); color:#fff; }
.roman-ticket-ghost { background: var(--surface); color: var(--text); border:1px solid var(--rule); }
.roman-ticket-btn svg, .roman-ticket-download svg, .roman-ticket-ghost svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.1; fill: none; }
.roman-ticket-note { margin-top: 10px; font-size: 11px; color: var(--mid); line-height: 1.5; }
.rt-search-card { border-top: 3px solid var(--red); }
.rt-search-card .vp-field { border-bottom-color: var(--red); }
.rt-search-card .vp-search-btn { background: var(--red); color:#fff; }
.rt-result-card { border-top: 3px solid var(--gold); }
.rt-result-preview {
  overflow:hidden;
  border:1px solid var(--rule);
  background:#fff;
  margin: 10px 0 12px;
}
.rt-result-preview img {
  display:block;
  width:100%;
  height:auto;
}
.rt-result-code { color: var(--gold); }
.roman-ticket-view-body {
  overflow-y: auto;
  background: var(--bg);
}
.roman-ticket-view-shell {
  min-height: 100%;
  padding: 14px 12px calc(22px + env(safe-area-inset-bottom));
}
.roman-ticket-view-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.roman-ticket-view-head .roman-ticket-pill {
  flex-shrink:0;
  margin-top:2px;
}
.roman-ticket-scan-frame {
  background:#fff;
  border:1px solid var(--rule);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.roman-ticket-scan-frame img {
  display:block;
  width:100%;
  height:auto;
}
.roman-ticket-view-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

@media (max-width: 430px) {
  .roman-ticket-actions {
    display:grid;
    grid-template-columns: 1fr;
  }
  .roman-ticket-btn,
  .roman-ticket-download,
  .roman-ticket-ghost {
    width:100%;
  }
  .roman-ticket-view-head {
    display:block;
  }
  .roman-ticket-view-head .roman-ticket-pill {
    margin-top:8px;
  }
}

/* ── TODAY SCREEN ── */
.today-hero {
  margin: 0 12px;
  background:
    radial-gradient(circle at top right, rgba(154,123,46,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 42%),
    var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  padding: 18px 16px 16px;
  box-shadow: 0 18px 38px rgba(0,0,0,.06);
}
.today-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.today-title {
  font-family: 'Noto Serif', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 8px;
}
.today-sub { font-size: 14px; color: var(--mid); line-height: 1.65; }
.today-sub.is-hidden,
.today-meta.is-hidden,
.today-updated.is-hidden,
#schedule-label.is-hidden,
#today-tl.is-hidden,
#brief-card.is-hidden,
#dining-picks-area.is-hidden,
#today-quick-actions-area.is-hidden,
#next-up-area.is-hidden,
#notification-help-area.is-hidden,
#hotel-arrival-area.is-hidden,
#departure-transfer-area.is-hidden,
#day-resources-area.is-hidden,
#venice-transport-area.is-hidden,
#reminder-area.is-hidden,
#roman-forum-ticket-area.is-hidden,
#venice-pass-area.is-hidden,
#seatplan-area.is-hidden,
#today-opts.is-hidden,
#day-end-area.is-hidden { display: none !important; }
#today-order-admin.is-hidden { display: none !important; }
.venice-transport-card {
  margin: 12px 12px 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), transparent 44%),
    var(--card);
  border: 1px solid rgba(36,120,164,.22);
  box-shadow: 0 22px 48px rgba(19,30,44,.13);
  -webkit-tap-highlight-color: transparent;
}
.venice-transport-card:active {
  transform: translateY(1px);
  background: var(--card2);
}
.tomorrow-venice-transport {
  margin: 0 0 14px;
}
.departure-card {
  margin: 12px;
  padding: 14px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(36,120,164,.10), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 52%),
    var(--card);
  border: 1px solid rgba(36,120,164,.22);
  border-top: 3px solid #2478a4;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(8,16,24,.08);
}
.departure-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.departure-kicker {
  color: #2478a4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.25;
  text-transform: uppercase;
}
.departure-title {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.departure-drive {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 8px 9px;
  text-align: center;
  border-radius: 14px;
  background: rgba(36,120,164,.1);
  color: #245d7b;
}
.departure-drive span,
.departure-drive small {
  display: block;
}
.departure-drive span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.departure-drive small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.15;
  text-transform: uppercase;
}
.departure-notes {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.departure-note {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(36,120,164,.055);
  border: 1px solid rgba(36,120,164,.13);
}
.departure-note .material-symbols-outlined {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(36,120,164,.12);
  color: #2478a4;
  font-size: 20px;
}
.departure-note strong {
  display: block;
  font-size: 12px;
  font-weight: 850;
}
.departure-note p {
  margin: 3px 0 0;
  color: var(--mid);
  font-size: 12.5px;
  line-height: 1.45;
}
.departure-note-warm .material-symbols-outlined {
  background: rgba(201,168,76,.14);
  color: var(--gold);
}
.departure-thanks {
  margin: 0 0 13px;
  padding: 15px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(206,17,38,.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.68), transparent 58%),
    rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.24);
}
.departure-thanks-kicker {
  color: var(--gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.departure-thanks-title {
  margin-top: 5px;
  font-size: 17px;
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 700;
  line-height: 1.18;
}
.departure-thanks p {
  margin: 8px 0 0;
  color: var(--mid);
  font-size: 13px;
  line-height: 1.48;
}
.departure-thanks-actions {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.departure-thanks-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(201,168,76,.2);
}
.departure-thanks-link .material-symbols-outlined {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 19px;
}
.departure-thanks-link.instagram .material-symbols-outlined {
  background: #2478a4;
}
.departure-thanks-link.reward .material-symbols-outlined {
  background: var(--red);
}
.departure-thanks-link span:last-child {
  min-width: 0;
  color: var(--mid);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}
.departure-thanks-link strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.departure-thanks-small {
  font-size: 12px !important;
  line-height: 1.45 !important;
}
@media (max-width: 360px) {
  .departure-head {
    flex-direction: column;
  }
  .departure-drive {
    width: 100%;
  }
}
.transfer-manifest {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgba(36,120,164,.16);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), transparent),
    rgba(36,120,164,.045);
}
.transfer-manifest-head,
.transfer-manifest summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
}
.transfer-manifest-head strong,
.transfer-manifest summary strong {
  display: block;
  font-size: 12px;
  font-weight: 850;
}
.transfer-manifest-head small,
.transfer-manifest summary small {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.transfer-manifest summary {
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.transfer-manifest summary::-webkit-details-marker {
  display: none;
}
.transfer-manifest summary em {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(36,120,164,.1);
  color: #2478a4;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.transfer-manifest[open] summary em {
  background: rgba(206,17,38,.09);
  color: var(--red);
}
.transfer-manifest[open] summary em::before {
  content: "Hide";
}
.transfer-manifest[open] summary em {
  font-size: 0;
}
.transfer-manifest[open] summary em::before {
  font-size: 10px;
}
.transfer-manifest ol {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.transfer-manifest li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: var(--text);
}
.transfer-manifest li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(36,120,164,.1);
  color: #2478a4;
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.transfer-manifest li strong {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.22;
}
.venice-transport-image {
  position: relative;
  display: block;
  min-height: 128px;
  background-position: 44% 50%;
  background-size: cover;
}
.venice-transport-image::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 3px;
  background: var(--red);
}
.venice-transport-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 13px 13px 12px;
}
.venice-transport-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2478a4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.25;
  text-transform: uppercase;
}
.venice-transport-kicker .material-symbols-outlined {
  font-size: 17px;
  line-height: 1;
}
.venice-transport-copy strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.venice-transport-desc {
  display: block;
  margin-top: 6px;
  color: var(--mid);
  font-size: 12px;
  line-height: 1.38;
}
.venice-transport-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.venice-transport-tags {
  min-width: 0;
  display: flex;
  gap: 5px;
  overflow: hidden;
}
.venice-transport-tags span {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(36,120,164,.09);
  color: #245d7b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.venice-transport-open {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.venice-transport-open .material-symbols-outlined {
  font-size: 18px;
}
@media (max-width: 360px) {
  .venice-transport-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .venice-transport-copy strong {
    font-size: 16px;
  }
  .venice-transport-tags span {
    padding-inline: 6px;
    font-size: 9px;
  }
}
.today-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 12px 4px;
}
.today-quick-action {
  min-height: 92px;
  padding: 12px 10px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), transparent 44%),
    var(--card);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(8,16,24,.055);
  -webkit-tap-highlight-color: transparent;
}
.today-quick-action:active {
  transform: translateY(1px);
  background: var(--card2);
}
.today-quick-seatplan { border-color: rgba(206,17,38,.24); }
.today-quick-weather { border-color: rgba(201,168,76,.28); }
.today-quick-next { border-color: rgba(82,95,113,.2); }
.today-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  background: rgba(206,17,38,.1);
  color: var(--red);
}
.today-quick-weather .today-quick-icon {
  background: rgba(201,168,76,.14);
  color: var(--gold);
}
.today-quick-next .today-quick-icon {
  background: rgba(82,95,113,.12);
  color: #525f71;
}
.today-quick-copy {
  min-width: 0;
  display: block;
}
.today-quick-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.25;
}
.today-quick-title {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 850;
  color: var(--text);
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.today-quick-detail {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--mid);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .today-quick-grid {
    grid-template-columns: 1fr;
  }
  .today-quick-action {
    min-height: 74px;
    align-items: center;
  }
}
.notify-guide-card {
  margin: 12px 12px 0;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), transparent 42%),
    var(--card);
  border: 1px solid rgba(206,17,38,.14);
  border-top: 3px solid var(--red);
  box-shadow: 0 16px 34px rgba(8,16,24,.06);
}
.notify-guide-card-full {
  margin-left: 0;
  margin-right: 0;
  border-left: 0;
  border-right: 0;
}
.notify-guide-top {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 13px;
  align-items: stretch;
}
.notify-guide-top-no-media {
  grid-template-columns: 1fr;
}
.notify-guide-card-full .notify-guide-top {
  display: block;
}
.notify-guide-thumb {
  display: block;
  position: relative;
  min-height: 104px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
}
.notify-guide-thumb img {
  width: 100%;
  height: 100%;
  min-height: 104px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(.95) contrast(1.04);
}
.notify-guide-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.34));
}
.notify-guide-thumb .material-symbols-outlined {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--red);
  font-size: 27px;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.notify-guide-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.notify-guide-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.notify-guide-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.notify-guide-copy p {
  margin-top: 6px;
  color: var(--mid);
  font-size: 12px;
  line-height: 1.48;
}
.notify-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.notify-guide-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--text);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.notify-guide-actions a:first-child {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.notify-guide-actions .material-symbols-outlined {
  font-size: 17px;
  line-height: 1;
}
.notify-guide-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 13px;
  background: #111827;
  overflow: hidden;
}
.notify-guide-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.notify-guide-video-panel,
.notify-guide-doc {
  margin-top: 10px;
  background: var(--card2);
  border: 1px solid var(--rule2);
}
.notify-guide-video-panel summary,
.notify-guide-video-label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  color: var(--text);
  list-style: none;
}
.notify-guide-video-panel summary {
  cursor: pointer;
}
.notify-guide-video-panel summary::-webkit-details-marker { display: none; }
.notify-guide-video-panel summary::after {
  content: '+';
  margin-left: auto;
  color: var(--dim);
  font-size: 18px;
  line-height: 1;
}
.notify-guide-video-panel[open] summary::after { content: '-'; }
.notify-guide-video-panel summary .material-symbols-outlined,
.notify-guide-video-label .material-symbols-outlined,
.notify-guide-doc-copy .material-symbols-outlined {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgba(206,17,38,.08);
  font-size: 18px;
  flex-shrink: 0;
}
.notify-guide-video-panel summary strong,
.notify-guide-video-label strong,
.notify-guide-doc-copy strong {
  font-size: 12px;
  font-weight: 850;
}
.notify-guide-video-panel.is-ready .notify-guide-video {
  margin-top: 0;
  border-top: 1px solid var(--rule2);
}
.notify-guide-video-panel .notify-guide-video {
  margin-top: 0;
  border-top: 1px solid var(--rule2);
}
.notify-guide-doc {
  padding: 10px;
}
.notify-guide-doc-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.notify-guide-doc-copy small {
  display: block;
  margin-top: 2px;
  color: var(--mid);
  font-size: 11px;
  line-height: 1.35;
}
.notify-guide-doc .notify-guide-pdf-actions {
  padding: 9px 0 0;
  border-top: 0;
}
.seat-rotation-guide-card {
  border-top-color: var(--gold);
}
.seat-rotation-visual {
  margin-top: 13px;
  padding: 10px;
  background: var(--card2);
  border: 1px solid var(--rule2);
}
.seat-rotation-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.seat-rotation-note {
  margin-top: 10px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.45;
}
.notify-guide-pdf {
  margin-top: 10px;
  background: var(--card2);
  border: 1px solid var(--rule2);
}
.notify-guide-pdf summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.notify-guide-pdf summary::-webkit-details-marker { display: none; }
.notify-guide-pdf summary::after {
  content: '+';
  margin-left: auto;
  color: var(--dim);
  font-size: 18px;
  line-height: 1;
}
.notify-guide-pdf[open] summary::after { content: '-'; }
.notify-guide-pdf summary .material-symbols-outlined {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgba(206,17,38,.08);
  font-size: 18px;
}
.notify-guide-pdf summary strong {
  font-size: 12px;
  font-weight: 850;
}
.notify-guide-pdf-frame {
  height: min(430px, 64vh);
  background: #fff;
  border-top: 1px solid var(--rule2);
}
.notify-guide-pdf-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.notify-guide-pdf-actions {
  display: flex;
  gap: 8px;
  padding: 9px 10px 10px;
  border-top: 1px solid var(--rule2);
}
.notify-guide-pdf-actions a {
  flex: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.notify-guide-pdf-actions .material-symbols-outlined {
  font-size: 17px;
}
.notify-guide-details {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.notify-guide-details details {
  background: var(--card2);
  border: 1px solid var(--rule2);
}
.notify-guide-details summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.notify-guide-details summary::-webkit-details-marker { display: none; }
.notify-guide-details summary::after {
  content: '+';
  margin-left: auto;
  color: var(--dim);
  font-size: 18px;
  line-height: 1;
}
.notify-guide-details details[open] summary::after { content: '-'; }
.notify-guide-details summary span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(154,123,46,.1);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.notify-guide-details summary strong {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}
.notify-guide-details p {
  padding: 0 12px 12px 46px;
  color: var(--mid);
  font-size: 12px;
  line-height: 1.55;
}
@media (max-width: 430px) {
  .notify-guide-top {
    grid-template-columns: 86px 1fr;
    gap: 11px;
  }
  .notify-guide-top-no-media {
    grid-template-columns: 1fr;
  }
  .notify-guide-thumb,
  .notify-guide-thumb img {
    min-height: 96px;
  }
  .notify-guide-title {
    font-size: 17px;
  }
  .notify-guide-copy p {
    font-size: 11px;
  }
}
.today-order-card {
  margin: 10px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  border-radius: 16px;
  overflow: hidden;
}
.today-order-card summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.today-order-card summary small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .08em;
}
.today-order-list {
  display: grid;
  gap: 1px;
  background: var(--rule2);
  border-top: 1px solid var(--rule);
}
.today-order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--card);
  padding: 9px 10px 9px 14px;
}
.today-order-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.today-order-actions {
  display: flex;
  gap: 5px;
}
.today-order-actions button,
.today-order-reset {
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 9px;
  cursor: pointer;
}
.today-order-actions button:disabled {
  opacity: .35;
  cursor: default;
}
.today-order-reset {
  width: calc(100% - 20px);
  margin: 10px;
  color: var(--red);
}
.today-order-empty {
  background: var(--card);
  color: var(--dim);
  font-size: 12px;
  padding: 12px 14px;
}
.today-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.today-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 6px 10px;
}
.today-pill span { color: var(--text); letter-spacing: 0; text-transform: none; font-size: 11px; font-weight: 600; }
.today-pill.drive { border-color: rgba(154,123,46,.2); background: linear-gradient(180deg, rgba(154,123,46,.08), transparent), var(--surface); }
.today-pill.drive .drive-status { font-size: 10px; font-weight: 700; }
.today-pill.drive .drive-status.delay { color: var(--red); }
.today-pill.drive .drive-status.clear { color: #228B57; }
.today-updated {
  font-size: 11px;
  color: var(--dim);
  margin-top: 12px;
  letter-spacing: .02em;
}

.brief {
  margin: 12px 12px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.56), transparent 38%),
    var(--card);
  border: 1px solid var(--rule);
  padding: 16px 14px 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,.05);
}
.brief-hdr { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.brief-lead { font-family: 'Noto Serif', serif; font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px; }
.brief-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.brief-notes { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.brief-note {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--rule);
  padding: 16px 16px 15px;
  box-shadow: 0 12px 28px rgba(0,0,0,.04);
}
.brief-note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.brief-note-title { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.01em; line-height: 1.32; margin-bottom: 7px; padding-left: 2px; }
.brief-note-body { font-size: 16px; color: var(--mid); line-height: 1.65; padding-left: 2px; }
.brief-note-red {
  background: linear-gradient(180deg, rgba(206,17,38,.08), rgba(206,17,38,.02)), var(--card);
  border-color: rgba(206,17,38,.16);
}
.brief-note-red::before { background: var(--red); }
.brief-note-gold {
  background: linear-gradient(180deg, rgba(201,168,76,.14), rgba(201,168,76,.04)), var(--card);
  border-color: rgba(201,168,76,.22);
}
.brief-note-gold::before { background: var(--gold); }
.brief-note-blue {
  background: linear-gradient(180deg, rgba(82,95,113,.14), rgba(82,95,113,.04)), var(--card);
  border-color: rgba(82,95,113,.22);
}
.brief-note-blue::before { background: #525f71; }
.brief-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.brief-row {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 11px 12px 10px;
}
.brief-row.is-editable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.brief-row.is-editable::after {
  content: 'Edit';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.brief-row.is-editable:active { background: var(--card2); }
.brief-k { display: block; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.brief-v { display: block; color: var(--text); font-size: 13px; line-height: 1.55; font-weight: 600; text-align: left; }
.brief-empty { font-size: 13px; color: var(--mid); line-height: 1.65; }
@media (min-width: 720px) {
  .brief-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brief-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── DINING PICKS ── */
.dining-picks {
  margin: 12px 16px 18px;
  border: 1px solid var(--rule);
  background: var(--card);
  overflow: hidden;
}
.dining-picks.is-priority {
  margin-top: 12px;
  margin-bottom: 12px;
}
.dining-picks-head {
  padding: 18px 18px 20px;
  background: #0d1b2a;
  color: #fff;
}
.dining-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.dining-title {
  font-family: 'Noto Serif', serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 18px;
}
.dining-title em {
  color: var(--red);
  font-style: italic;
  font-weight: 700;
}
.dining-cuisine-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.dining-origin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 15px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.68);
  font-size: 11px;
  line-height: 1.35;
}
.dining-origin svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold);
  stroke-width: 2.2;
  fill: none;
  flex-shrink: 0;
}
.dining-intro {
  font-family: 'Noto Serif', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
}
.dining-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.dining-dish {
  border: 1px solid rgba(201,168,76,.28);
  background: rgba(255,255,255,.045);
  color: #efd071;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
}
.dining-grid {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.dining-admin-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(201,168,76,.42);
  background: rgba(201,168,76,.08);
  color: var(--mid);
  padding: 16px;
  font-size: 13px;
  line-height: 1.55;
}
.dining-place {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  background: var(--surface);
  padding: 16px 16px 14px;
}
.dining-place[data-tone="adventurous"] { border-top-color: var(--gold); }
.dining-place[data-tone="safe"] { border-top-color: #525f71; }
.dining-place[data-tone="easy"] { border-top-color: var(--red); }
.dining-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  background: rgba(201,168,76,.1);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dining-place[data-tone="easy"] .dining-badge { background: rgba(206,17,38,.08); color: var(--red); }
.dining-place-name {
  font-family: 'Noto Serif', serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.dining-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
  margin-bottom: 12px;
}
.dining-copy {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mid);
}
.dining-copy em { color: var(--text); font-style: italic; }
.dining-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.dining-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dining-map.secondary { color: var(--dim); }
.dining-map svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.3;
  fill: none;
}
@media (min-width: 760px) {
  .dining-picks { margin-left: 24px; margin-right: 24px; }
  .dining-picks-head { padding: 30px 38px 32px; }
  .dining-title { font-size: 46px; }
  .dining-intro { font-size: 21px; }
  .dining-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 18px; }
  .dining-place { padding: 20px; }
}

/* ── TIMELINE ── */
.tl { position: relative; padding: 4px 0 34px; }
.tl-item { display: flex; gap: 10px; padding: 8px 16px; position: relative; transition: opacity .2s; }
.tl-item::before { content: ''; position: absolute; left: calc(16px + 38px + 5px + 3px); top: 22px; bottom: -8px; width: 1px; background: var(--rule2); }
.tl-item:last-child::before { display: none; }
.tl-item.tl-past { opacity: .5; }
.tl-item.tl-now { background: transparent; }
.tl-item.tl-now .tl-time { color: rgba(57,255,20,.42); font-weight: 700; }
.tl-item.tl-now::before { background: rgba(57,255,20,.28); }
.tl-time { font-size: 15px; color: var(--gold); width: 42px; flex-shrink: 0; padding-top: 1px; font-variant-numeric: tabular-nums; font-weight: 700; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--dim); background: var(--bg); flex-shrink: 0; margin-top: 4px; }
.tl-dot.inc { border-color: var(--gold); background: var(--gold); }
.tl-dot.opt { border-color: var(--mid); }
.tl-dot.now { border-color: #39FF14 !important; background: #39FF14 !important; box-shadow: 0 0 0 3px rgba(57,255,20,.22), 0 0 18px rgba(57,255,20,.34); width: 10px; height: 10px; margin-top: 3px; }
.tl-body { flex: 1; padding-bottom: 5px; }
.tl-what { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 2px; line-height: 1.35; }
.tl-note { font-size: 14px; color: var(--mid); line-height: 1.5; }
.tl-nowline {
  position: absolute;
  left: 16px;
  width: 70px;
  height: 21px;
  z-index: 3;
  pointer-events: none;
}
.tl-nowline-time {
  position: static;
  display: block;
  padding-left: 0;
  background: transparent;
  color: #39FF14;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* ── SURVEY ── */
.survey-q { margin-bottom: 20px; }
.survey-label { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.survey-note { font-size: 11px; color: var(--dim); line-height: 1.55; margin-top: 6px; }
.survey-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.s-pill {
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  color: var(--mid);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s ease;
  user-select: none;
}
.s-pill.active {
  background: rgba(206,17,38,.08);
  border-color: var(--red);
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(206,17,38,.08);
}
.survey-input,
.survey-textarea {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255,255,255,.45), transparent), var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  color: var(--text);
  font-family: var(--ff);
  outline: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.survey-input {
  font-size: 14px;
  padding: 13px 14px;
  margin-top: 6px;
}
.survey-textarea {
  font-size: 13px;
  padding: 12px 14px;
  resize: none;
  height: 96px;
  line-height: 1.65;
  margin-top: 8px;
}
.survey-input:focus,
.survey-textarea:focus {
  border-color: rgba(206,17,38,.35);
  box-shadow: 0 0 0 4px rgba(206,17,38,.08);
}

/* ── WELCOME CARD ── */
.welcome-card {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7,7,7,.25), rgba(7,7,7,.74));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--safe-bot);
}
.welcome-inner {
  background:
    radial-gradient(circle at top right, rgba(154,123,46,.12), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 38%),
    var(--card);
  width: 100%;
  max-width: 834px;
  border-top: 3px solid var(--red);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 26px 20px 30px;
  max-height: min(86dvh, 820px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -26px 80px rgba(0,0,0,.18);
}
.welcome-shell-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.welcome-portrait {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 16px;
}
.welcome-title {
  font-family: 'Noto Serif', serif;
  font-size: 29px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.welcome-body {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 18px;
}
.welcome-body.compact {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.welcome-link-grid {
  display: grid;
  gap: 10px;
  margin: 4px 0 2px;
}
.welcome-link-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 60%),
    var(--surface);
  color: var(--text);
  text-decoration: none;
}
button.welcome-link-card {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.welcome-link-card .material-symbols-outlined {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,.14);
  color: var(--gold);
  font-size: 24px;
}
.welcome-link-card strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.welcome-link-card small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mid);
}
.welcome-link-card.whatsapp {
  border-top-color: #25D366;
  background:
    radial-gradient(circle at top right, rgba(37,211,102,.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 60%),
    var(--surface);
}
.welcome-link-card.whatsapp .material-symbols-outlined {
  background: rgba(37,211,102,.14);
  color: #128C7E;
}
.welcome-link-card.roman-ticket {
  border-top-color: var(--red);
  background:
    radial-gradient(circle at top right, rgba(206,17,38,.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 60%),
    var(--surface);
}
.welcome-link-card.roman-ticket .material-symbols-outlined {
  background: rgba(206,17,38,.10);
  color: var(--red);
}
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.welcome-cta,
.welcome-ghost {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, opacity .12s ease, background .12s ease, border-color .12s ease;
}
.welcome-cta {
  background: var(--red);
  border: none;
  color: #fff;
  box-shadow: 0 18px 36px rgba(206,17,38,.18);
}
.welcome-ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text);
}
.welcome-cta:active,
.welcome-ghost:active {
  transform: translateY(1px);
  opacity: .92;
}
.welcome-ghost:active { background: var(--surface); }
@media (min-width: 600px) {
  .welcome-inner { padding: 34px 34px 36px; }
  .welcome-actions { flex-direction: row; }
  .welcome-cta,
  .welcome-ghost { flex: 1; }
}
@media (max-width: 430px) {
  .welcome-inner {
    padding: 22px 16px 28px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }
  .welcome-title { font-size: 25px; }
}

/* ── MORNING BRIEFING MODE ── */
.morning-mode { position:absolute; inset:0; background:var(--bg); z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:32px 24px; text-align:center; }
.morning-time-big { font-size:56px; font-weight:700; color:var(--text); letter-spacing:-.04em; line-height:1; font-variant-numeric:tabular-nums; margin-bottom:4px; }
.morning-date-sm { font-size:13px; color:var(--dim); letter-spacing:.03em; margin-bottom:32px; }
.morning-day { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--red); margin-bottom:4px; }
.morning-title { font-size:22px; font-weight:700; color:var(--text); letter-spacing:-.03em; margin-bottom:24px; }
.morning-item { width:100%; background:var(--card); border:1px solid var(--rule); border-left:3px solid var(--red); padding:12px 16px; margin-bottom:8px; text-align:left; }
.morning-item-time { font-size:18px; font-weight:700; color:var(--red); letter-spacing:-.02em; margin-bottom:2px; font-variant-numeric:tabular-nums; }
.morning-item-what { font-size:14px; color:var(--text); font-weight:500; }
.morning-dismiss { margin-top:16px; font-size:11px; color:var(--dim); text-decoration:underline; cursor:pointer; -webkit-tap-highlight-color:transparent; }

/* ── REMINDER BANNER ── */
.day-end-card { margin: 12px; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: 16px; }
.day-end-moon { font-size: 22px; margin-bottom: 8px; }
.day-end-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 6px; }
.day-end-body { font-size: 16px; color: var(--mid); line-height: 1.7; }
.day-end-next { font-size: 12px; font-weight: 600; color: var(--gold); margin-top: 10px; letter-spacing: .02em; }
.day-end-tomorrow { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 14px; }
.day-end-tomorrow-hdr { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.det-row { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.det-row:last-child { border-bottom: none; }
.det-time { font-size: 13px; color: var(--dim); min-width: 36px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.det-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 4px; }
.det-dot.inc { background: var(--gold); }
.det-dot.opt { background: var(--red); }
.det-what { font-size: 14px; color: var(--text); line-height: 1.4; }
.det-note { font-size: 13px; color: var(--dim); margin-top: 2px; line-height: 1.4; }

/* ── QUOTE CARD ── */
.quote-card { margin: 0; background: var(--card); border-bottom: 1px solid var(--rule); padding: 14px 16px 12px; display: flex; gap: 10px; align-items: flex-start; }
.quote-bar { width: 3px; flex-shrink: 0; background: var(--gold); border-radius: 2px; margin-top: 2px; }
.quote-text { font-size: 16px; color: var(--mid); line-height: 1.7; font-style: italic; }
.quote-attr { font-size: 13px; color: var(--dim); margin-top: 5px; font-style: normal; font-weight: 500; }

/* ── OPT CARDS ── */
.opt-card { background: var(--card); border: 1px solid var(--rule); margin: 10px 12px; overflow: hidden; }
.opt-img-wrap { position: relative; height: 180px; overflow: hidden; }
.opt-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.opt-card:active .opt-img { transform: scale(1.03); }
.opt-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, transparent 100%); }
.opt-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; }
.opt-day-badge { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(0,0,0,0.65); color: rgba(255,255,255,0.8); padding: 3px 7px; }
.opt-price-badge { font-size: 12px; font-weight: 700; background: var(--gold); color: #fff; padding: 3px 8px; letter-spacing: -0.01em; }
.opt-img-title { position: absolute; bottom: 12px; left: 12px; right: 12px; font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -0.02em; }
.opt-body { padding: 14px; }
.opt-sell { font-size: 17px; color: var(--mid); line-height: 1.68; margin-bottom: 10px; }
.opt-quote { font-size: 17px; font-style: italic; color: var(--text); border-left: 2px solid var(--gold); padding-left: 10px; line-height: 1.55; margin-bottom: 10px; font-weight: 400; }
.opt-includes { font-size: 15px; color: var(--mid); border-top: 1px solid var(--rule); padding-top: 10px; line-height: 1.62; }
.opt-includes b { color: var(--text); font-weight: 500; }

.sasha-aside { margin: 10px 12px; background: var(--surface); border-left: 3px solid var(--red); padding: 12px 14px; }
.sa-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.sa-text { font-size: 16px; color: var(--mid); line-height: 1.65; font-style: italic; }
.sa-text b { font-style: normal; color: var(--text); font-weight: 500; }

/* ── PROGRAMME / ITINERARY ── */
.prog-tabs {
  display: flex;
  gap: 8px;
  background: linear-gradient(180deg, rgba(154,123,46,.06), transparent), var(--bg);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  flex-shrink: 0;
  padding: 12px 12px 10px;
  scrollbar-width: none;
}
.prog-tabs::-webkit-scrollbar { display: none; }
.pt {
  flex-shrink: 0;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.pt.active {
  color: #fff;
  background: var(--red);
  border-color: rgba(206,17,38,.25);
  box-shadow: 0 14px 30px rgba(206,17,38,.18);
}
.prog-panel {
  display: none;
  background: linear-gradient(180deg, rgba(154,123,46,.05), transparent 180px), var(--bg);
}
.prog-panel.active { display: block; }
@media (max-width: 430px) {
  .prog-tabs { padding: 10px 10px 8px; gap: 6px; }
  .pt { padding: 10px 14px; font-size: 10px; }
}

.prog-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 306px;
  overflow: hidden;
  background: #111;
}
.prog-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.24) 38%, rgba(0,0,0,.82));
}
.prog-hero-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 34px;
  z-index: 1;
}
#pp-optionals .prog-hero-copy,
#pp-shopping .prog-hero-copy,
#pp-mtm .prog-hero-copy { bottom: 56px; }
.prog-overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  margin-bottom: 8px;
}
.prog-overline--gold { color: var(--gold); }
.prog-hero-title {
  font-family: 'Noto Serif', serif;
  font-size: 35px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.035em;
  line-height: .98;
  max-width: 10ch;
}
.prog-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  margin-top: 10px;
  max-width: 34ch;
}
.prog-intro-card {
  margin: -18px 12px 16px;
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), transparent 42%),
    var(--card);
  border: 1px solid var(--rule);
  border-radius: 26px;
  padding: 22px 20px 20px;
  box-shadow: 0 24px 50px rgba(0,0,0,.08);
}
.prog-intro-title {
  font-family: 'Noto Serif', serif;
  font-size: 31px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.035em;
  line-height: 1.02;
}
.prog-intro-divider { width: 42px; height: 2px; background: var(--red); margin: 14px 0 16px; }
.prog-intro-text { font-size: 17px; color: var(--mid); line-height: 1.8; }
.prog-intro-text + .prog-intro-text { margin-top: 12px; }
.prog-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.prog-owner img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.prog-owner-name { font-size: 14px; font-weight: 600; color: var(--text); }
.prog-owner-role { font-size: 11px; color: var(--dim); margin-top: 3px; }
@media (max-width: 430px) {
  .prog-hero { min-height: 304px; }
  .prog-hero-title { font-size: 29px; }
  .prog-hero-copy { bottom: 24px; }
  #pp-optionals .prog-hero-copy,
  #pp-shopping .prog-hero-copy,
  #pp-mtm .prog-hero-copy { bottom: 58px; }
  .prog-intro-card {
    margin: -12px 10px 14px;
    padding: 18px 16px 18px;
    border-radius: 22px;
  }
  .prog-intro-title { font-size: 25px; }
}

/* ── DAY BLOCKS (itinerary expanded view) ── */
.day-num-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--mid); flex-shrink: 0;
}
.day-num-circle.today { background: rgba(206,17,38,0.08); border-color: var(--red); color: var(--red); }
.day-num-circle.past { opacity: 0.5; }
.day-info { flex: 1; min-width: 0; }
.day-date-s { font-size: 11px; color: var(--dim); font-weight: 500; margin-bottom: 1px; }
.day-title-s { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.day-dest-s { font-size: 12px; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── DAY DETAIL ── */
.dd-hero { background: var(--card); border-bottom: 1px solid var(--rule); padding: 16px; }
.dd-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.dd-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 4px; }
.dd-tagline { font-size: 13px; color: var(--mid); margin-bottom: 10px; }
.route-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.route-chip { font-size: 11px; font-weight: 500; background: var(--surface); border: 1px solid var(--rule); padding: 2px 8px; color: var(--mid); }
.route-arrow { font-size: 10px; color: var(--dim); }

/* ── TIME-OF-DAY SECTION BLOCKS ── */
.tod-section { margin: 0; }
.tod-header {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); padding: 14px 16px 6px; background: var(--surface);
  border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule);
}
.tod-block { background: var(--card); border-bottom: 1px solid var(--rule); padding: 14px 16px; }
.tod-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; margin-bottom: 2px; }
.tod-badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tod-badge-inc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--gold-lt); color: var(--gold); padding: 3px 8px;
}
.tod-badge-opt {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--rule); color: var(--mid); padding: 3px 8px;
}
.tod-desc { font-size: 16px; color: var(--mid); line-height: 1.7; }
.tod-desc em { color: var(--text); font-style: italic; }

/* Expandable optional mini-card inside day detail */
.opt-mini {
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  margin: 10px 0 0 0; padding: 10px 12px;
}
.opt-mini-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.opt-mini-desc { font-size: 14px; color: var(--mid); line-height: 1.6; }
.opt-mini-price { font-size: 13px; font-weight: 700; color: var(--gold); margin-top: 4px; }

/* ── LOCK CARD ── */
.lock-card { margin: 12px; background: var(--card); border: 1px solid var(--rule); padding: 16px; }
.lock-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; }
.lock-desc { font-size: 13px; color: var(--mid); line-height: 1.65; margin-bottom: 12px; }
.lock-hl { list-style: none; margin-bottom: 12px; }
.lock-hl li { font-size: 13px; color: var(--mid); padding: 6px 0; border-bottom: 1px solid var(--rule2); display: flex; gap: 8px; }
.lock-hl li::before { content: '—'; color: var(--gold); flex-shrink: 0; }
.lock-note { background: var(--surface); padding: 8px 12px; font-size: 12px; color: var(--dim); text-align: center; }

/* ── TOOLS SCREEN · EDITORIAL ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-weight: normal; font-style: normal; font-size: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1em; overflow: hidden;
  line-height: 1; letter-spacing: normal; vertical-align: -0.125em;
  text-transform: none; white-space: nowrap; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
  text-indent: -9999px;
}
.icons-ready .material-symbols-outlined { text-indent: 0; }
#scr-tools {
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.08), transparent 24%),
    linear-gradient(180deg, rgba(163,0,25,.03), transparent 180px),
    #fbf9f5;
  --ed-card: #ffffff; --ed-card-low: #f5f3ef; --ed-text: #1b1c1a;
  --ed-muted: #5c3f3d; --ed-gold: #755b00; --ed-red: #a30019;
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #scr-tools {
    background:
      radial-gradient(circle at 100% 0%, rgba(206,17,38,.18), transparent 26%),
      radial-gradient(circle at 0% 16%, rgba(224,184,90,.14), transparent 30%),
      linear-gradient(180deg, #10100f 0%, #080808 44%, #050505 100%);
    --ed-card: #151515;
    --ed-card-low: #20201e;
    --ed-text: #f8f5ef;
    --ed-muted: rgba(248,245,239,.68);
    --ed-gold: #e0b85a;
    --ed-red: #ff4056;
  }
}
.ed-header { padding: 28px 20px 6px; }
.ed-kicker { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ed-gold); margin-bottom: 8px; }
.ed-title { font-family: 'Noto Serif', Georgia, serif; font-size: 44px; font-weight: 700; color: var(--ed-text); letter-spacing: -0.02em; line-height: 1; }
.ed-rule { width: 36px; height: 2px; background: var(--ed-red); margin-top: 14px; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 16px 22px; }
.tools-admin-bar {
  display: none;
  padding: 0 16px 10px;
}
.tools-admin-bar.is-visible {
  display: block;
}
.tools-admin-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 14px 14px 12px;
}
.tools-admin-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.tools-admin-copy {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
}
.tools-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tools-admin-btn {
  border: none;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.tools-admin-btn.secondary {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--rule);
}
.tools-admin-state {
  margin-top: 10px;
  font-size: 11px;
  color: var(--dim);
}
.ed-grid .ed-card[data-tool-id] {
  position: relative;
}
.ed-grid.is-admin-reorder .ed-card[data-tool-id] {
  cursor: grab;
  outline: 2px dashed rgba(201,168,76,.4);
  outline-offset: 0;
}
.ed-grid.is-admin-reorder .ed-card[data-tool-id].tool-app {
  animation: tool-wiggle .18s ease-in-out infinite alternate;
  touch-action: none;
}
.ed-grid.is-admin-reorder .ed-card[data-tool-id].tool-app:nth-child(2n) {
  animation-delay: -.08s;
}
.ed-grid.is-admin-reorder .ed-card[data-tool-id].tool-app:nth-child(3n) {
  animation-delay: -.14s;
}
@keyframes tool-wiggle {
  from { transform: rotate(-1.4deg) translateY(0); }
  to { transform: rotate(1.4deg) translateY(-1px); }
}
.ed-grid.is-admin-reorder .ed-card[data-tool-id]::after {
  content: 'Edit';
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  background: rgba(17,17,16,.76);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.ed-grid.is-admin-reorder .ed-card[data-tool-id].is-tool-selected {
  outline: 2px solid var(--red);
  box-shadow: 0 0 0 3px rgba(206,17,38,.12);
  animation-play-state: paused;
}
.ed-grid.is-admin-reorder .ed-card[data-tool-id].is-tool-drop {
  outline: 2px solid var(--gold);
}
.ed-card {
  --ed-card-accent: var(--ed-red);
  --ed-card-soft: rgba(163,0,25,.08);
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.54), transparent 34%),
    var(--ed-card);
  border: 1px solid rgba(27,28,26,.12);
  border-radius: 22px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.82) inset,
    0 0 0 1px rgba(27,28,26,.03),
    0 18px 40px rgba(8,16,24,.06);
  transition: opacity 0.12s, transform 0.12s, box-shadow 0.12s;
}
.ed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ed-card-accent), transparent 72%);
}
.ed-card:active {
  opacity: 0.9;
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 0 0 1px rgba(27,28,26,.04),
    0 12px 28px rgba(8,16,24,.07);
}
.ed-wide { grid-column: span 2; }
.ed-sm { min-height: 148px; }
.ed-card-dark {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 20px 42px rgba(8,16,24,.14);
}
.ed-card-dark::before { background: linear-gradient(90deg, rgba(255,255,255,.7), transparent 72%); }
.ed-card-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ed-card-accent);
  margin-bottom: 8px;
}
.ed-card-kicker.light { color: rgba(255,255,255,.7); }
.ed-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ed-text);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.ed-card-title.serif {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 24px;
  line-height: 1.06;
}
.ed-card-title.light { color: #fff; }
.ed-card-sub {
  font-size: 12px;
  color: var(--ed-muted);
  margin-top: 5px;
  line-height: 1.5;
}
.ed-card-sub.light { color: rgba(255,255,255,.68); }
.ed-icon-bubble {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-card-soft);
  color: var(--ed-card-accent);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.ed-icon-bubble.sm { width: 48px; height: 48px; }
.ed-icon-bubble.lg { width: 64px; height: 64px; }
.ed-icon-bubble.light {
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.ed-card-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(13,27,42,.04);
  color: var(--ed-card-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ed-card-arrow.light {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
}
.ed-card.has-tool-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ed-card.has-tool-art > :not(.ed-tool-art) {
  position: relative;
  z-index: 1;
}
.ed-tool-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ed-tool-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.ed-tool-art .tool-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .24;
}
.ed-tool-art .tool-fill {
  fill: currentColor;
  opacity: .08;
}
.ed-tool-art .tool-soft {
  fill: currentColor;
  opacity: .05;
}
.ed-tool-art .tool-text {
  fill: currentColor;
  opacity: .28;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 5px;
}
.ed-tool-art .tool-micro {
  fill: currentColor;
  opacity: .22;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.ed-card-arrow { z-index: 2; }
.tools-weather .ed-tool-art,
.tools-rates .ed-tool-art,
.tools-packing .ed-tool-art,
.tools-photomap .ed-tool-art,
.tools-faq .ed-tool-art {
  color: rgb(82,95,113);
}
.tools-translate .ed-tool-art,
.tools-essentials .ed-tool-art,
.tools-tips .ed-tool-art {
  color: rgb(163,0,25);
}
.tools-photos .ed-tool-art,
.tools-memory .ed-tool-art,
.tools-movies .ed-tool-art {
  color: rgb(117,91,0);
}
.ed-photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 96px;
  flex-shrink: 0;
}
.ed-photo-stack > div {
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  background: #e4e2de;
}
.ed-photo-stack > div:last-child { transform: translateY(8px); }
.ed-photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tools should feel like a working surface: fast to scan, still warm. */
#scr-tools .ed-header {
  padding: 22px 16px 2px;
}
#scr-tools .ed-title {
  font-size: 38px;
}
#tools-grid {
  gap: 8px;
  padding: 12px 12px 18px;
}
#tools-grid::before {
  content: 'Quick Tools';
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ed-gold);
  padding: 2px 4px 0;
}
#tools-grid .ed-card {
  border-radius: 8px !important;
  box-shadow: none;
}
#tools-grid .ed-sm {
  min-height: 126px !important;
}
#tools-grid .ed-wide {
  min-height: 104px !important;
}
#tools-grid .ed-card-title {
  font-size: 16px;
  line-height: 1.18;
}
#tools-grid .ed-card-title.serif {
  font-size: 20px !important;
}
#tools-grid .ed-card-sub {
  font-size: 12px;
  line-height: 1.35;
}
#tools-grid .ed-card-kicker {
  margin-bottom: 6px;
}
#tools-grid .ed-icon-bubble {
  width: 42px;
  height: 42px;
}
#tools-grid .ed-icon-bubble.sm,
#tools-grid .ed-icon-bubble.lg {
  width: 42px;
  height: 42px;
}
#tools-grid .ed-tool-art {
  opacity: .68;
  transform: scale(.96);
  transform-origin: right center;
}
#tools-grid .tools-group {
  min-height: 136px !important;
}
#tools-grid .tools-group > div[style*="height:240px"] {
  height: 136px !important;
  padding: 16px !important;
}
#tools-grid .tools-group .ed-card-title {
  font-size: 24px !important;
}
#tools-grid .tools-share {
  min-height: 92px !important;
}
@media (max-width: 640px) {
  .ed-header { padding: 22px 16px 4px; }
  .ed-kicker { letter-spacing: .14em; }
  .ed-title { font-size: 32px; line-height: 1.02; }
  .ed-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 12px 18px;
  }
  .ed-wide { grid-column: span 1; }
  .ed-card,
  .ed-sm {
    min-height: auto !important;
    border-radius: 18px;
  }
  .ed-card {
    box-shadow: none;
  }
  .ed-card-arrow { display: none; }
  .ed-card-title { font-size: 18px; line-height: 1.24; }
  .ed-card-title.serif { font-size: 21px !important; line-height: 1.12 !important; }
  .ed-card-sub { font-size: 13px; line-height: 1.45; }
  .ed-icon-bubble.lg { width: 50px; height: 50px; }
  .ed-photo-stack { display: none; }
  #scr-tools .ed-title { font-size: 31px; }
  #tools-grid {
    gap: 8px;
    padding: 12px 10px 18px;
  }
  #tools-grid .ed-card,
  #tools-grid .ed-sm,
  #tools-grid .ed-wide {
    min-height: 96px !important;
    border-radius: 8px !important;
  }
  #tools-grid .tools-group,
  #tools-grid .tools-group > div[style*="height:240px"] {
    min-height: 118px !important;
    height: 118px !important;
  }
  #tools-grid .ed-tool-art {
    opacity: .54;
  }
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #scr-tools .ed-kicker,
  html:not(.theme-light) #tools-grid::before {
    color: #e0b85a;
  }
  html:not(.theme-light) #scr-tools .ed-rule {
    background: linear-gradient(90deg, #ff4056, #e0b85a);
  }
  html:not(.theme-light) #tools-grid .ed-card:not(.tools-group):not(.tools-spotify):not(.tools-share) {
    background:
      radial-gradient(circle at 100% 0%, var(--ed-card-soft), transparent 42%),
      linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 44%, rgba(0,0,0,.18)),
      #151515 !important;
    border-color: rgba(255,255,255,.105);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.09),
      0 1px 0 rgba(255,255,255,.035),
      0 14px 32px rgba(0,0,0,.24);
  }
  html:not(.theme-light) #tools-grid .ed-card:not(.tools-group):not(.tools-spotify):not(.tools-share)::before {
    background: linear-gradient(90deg, var(--ed-card-accent), rgba(255,255,255,.08) 42%, transparent 76%);
  }
  html:not(.theme-light) #tools-grid .ed-card:active {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.075),
      0 9px 22px rgba(0,0,0,.24);
  }
  html:not(.theme-light) #tools-grid .ed-card-title {
    color: #f8f5ef;
  }
  html:not(.theme-light) #tools-grid .ed-card-sub {
    color: rgba(248,245,239,.68) !important;
  }
  html:not(.theme-light) #tools-grid .ed-card-kicker {
    color: var(--ed-card-accent) !important;
  }
  html:not(.theme-light) #tools-grid .ed-card-arrow {
    background: rgba(255,255,255,.07);
    color: var(--ed-card-accent);
  }
  html:not(.theme-light) #tools-grid .ed-icon-bubble {
    background:
      linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
      var(--ed-card-soft) !important;
    color: var(--ed-card-accent);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.11),
      0 8px 18px rgba(0,0,0,.16);
  }
  html:not(.theme-light) #tools-grid .ed-tool-art {
    opacity: .74;
  }
  html:not(.theme-light) #tools-grid .ed-tool-art .tool-line {
    opacity: .28;
  }
  html:not(.theme-light) #tools-grid .ed-tool-art .tool-fill {
    opacity: .105;
  }
  html:not(.theme-light) #tools-grid .ed-tool-art .tool-soft {
    opacity: .08;
  }
  html:not(.theme-light) #tools-grid .tools-weather,
  html:not(.theme-light) #tools-grid .tools-packing,
  html:not(.theme-light) #tools-grid .tools-faq,
  html:not(.theme-light) #tools-grid .tools-photomap {
    --ed-card-accent: #91b7ef !important;
    --ed-card-soft: rgba(145,183,239,.14) !important;
  }
  html:not(.theme-light) #tools-grid .tools-rates,
  html:not(.theme-light) #tools-grid .tools-photos,
  html:not(.theme-light) #tools-grid .tools-memory,
  html:not(.theme-light) #tools-grid .tools-movies {
    --ed-card-accent: #e0b85a !important;
    --ed-card-soft: rgba(224,184,90,.15) !important;
  }
  html:not(.theme-light) #tools-grid .tools-translate {
    --ed-card-accent: #68c8be !important;
    --ed-card-soft: rgba(104,200,190,.14) !important;
  }
  html:not(.theme-light) #tools-grid .tools-essentials,
  html:not(.theme-light) #tools-grid .tools-tips {
    --ed-card-accent: #ff6274 !important;
    --ed-card-soft: rgba(255,98,116,.15) !important;
  }
  html:not(.theme-light) #tools-grid .tools-weather .ed-tool-art,
  html:not(.theme-light) #tools-grid .tools-packing .ed-tool-art,
  html:not(.theme-light) #tools-grid .tools-photomap .ed-tool-art,
  html:not(.theme-light) #tools-grid .tools-faq .ed-tool-art {
    color: #91b7ef;
  }
  html:not(.theme-light) #tools-grid .tools-rates .ed-tool-art,
  html:not(.theme-light) #tools-grid .tools-photos .ed-tool-art,
  html:not(.theme-light) #tools-grid .tools-memory .ed-tool-art,
  html:not(.theme-light) #tools-grid .tools-movies .ed-tool-art {
    color: #e0b85a;
  }
  html:not(.theme-light) #tools-grid .tools-translate .ed-tool-art {
    color: #68c8be;
  }
  html:not(.theme-light) #tools-grid .tools-essentials .ed-tool-art,
  html:not(.theme-light) #tools-grid .tools-tips .ed-tool-art {
    color: #ff6274;
  }
  html:not(.theme-light) #tools-grid .tools-group {
    border-color: rgba(255,255,255,.13);
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
  }
  html:not(.theme-light) #tools-grid .tools-group img {
    filter: brightness(.72) saturate(.92) contrast(1.08);
  }
  html:not(.theme-light) #tools-grid .tools-map {
    --ed-card-accent: #91b7ef !important;
  }
  html:not(.theme-light) #tools-grid .tools-map img {
    opacity: .24 !important;
    filter: grayscale(.24) brightness(.72) contrast(1.16) !important;
  }
  html:not(.theme-light) #tools-grid .tools-map .ed-card-kicker,
  html:not(.theme-light) #tools-grid .tools-map [style*="color:#1b1c1a"],
  html:not(.theme-light) #tools-grid .tools-map [style*="color:#403a36"] {
    color: rgba(248,245,239,.76) !important;
  }
  html:not(.theme-light) #tools-grid .tools-map [style*="background:rgba(255,255,255,.92)"] {
    background:
      linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)),
      rgba(145,183,239,.16) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 20px rgba(0,0,0,.18) !important;
  }
  html:not(.theme-light) #tools-grid .tools-map [style*="color:#1b1c1a"] {
    color: #dce9ff !important;
  }
  html:not(.theme-light) #tools-grid .tools-translate [style*="color:#fff"] {
    color: #efffff !important;
  }
  html:not(.theme-light) #tools-grid .tools-translate .ed-card-sub[style],
  html:not(.theme-light) #tools-grid .tools-memory .ed-card-sub[style],
  html:not(.theme-light) #tools-grid .tools-faq .ed-card-kicker[style],
  html:not(.theme-light) #tools-grid .tools-quiz .ed-card-sub[style] {
    color: var(--ed-card-accent) !important;
  }
  html:not(.theme-light) #tools-grid .tools-movies .ed-icon-bubble[style],
  html:not(.theme-light) #tools-grid .tools-memory .ed-icon-bubble[style] {
    background:
      linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
      var(--ed-card-soft) !important;
  }
  html:not(.theme-light) #tools-grid .tools-movies .ed-icon-bubble [style*="color:var(--ed-red)"],
  html:not(.theme-light) #tools-grid .tools-memory .ed-icon-bubble [style*="color:#755b00"] {
    color: var(--ed-card-accent) !important;
  }
  html:not(.theme-light) #tools-grid .ed-photo-stack > div {
    background: #111;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 8px 20px rgba(0,0,0,.24);
  }
  html:not(.theme-light) #tools-grid .ed-photo-stack img {
    filter: brightness(.86) saturate(.92);
  }
  html:not(.theme-light) #tools-grid .tools-spotify {
    background:
      radial-gradient(circle at 90% 0%, rgba(255,255,255,.16), transparent 34%),
      linear-gradient(145deg, #8f0718 0%, #4d050d 62%, #1a0708 100%) !important;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 16px 34px rgba(89,5,14,.28);
  }
  html:not(.theme-light) #tools-grid .tools-share {
    background:
      radial-gradient(circle at 92% 8%, rgba(255,255,255,.18), transparent 32%),
      linear-gradient(135deg, #a50b1d, #5d0710 68%, #210708) !important;
    border-color: rgba(255,255,255,.12);
  }
  html:not(.theme-light) #tools-grid .tools-spotify .ed-card-sub.light,
  html:not(.theme-light) #tools-grid .tools-share .ed-card-sub.light {
    color: rgba(255,255,255,.76) !important;
  }
  html:not(.theme-light) .tools-admin-card {
    background:
      linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
      #151515;
    border-color: rgba(255,255,255,.1);
    border-top-color: #e0b85a;
  }
  html:not(.theme-light) .tools-admin-btn.secondary {
    background: rgba(255,255,255,.07);
    color: #f8f5ef;
    border-color: rgba(255,255,255,.12);
  }
}

/* ── ADMIN DAY PLANNER STRIP ── */
#adm-planner-strip {
  display: none;
  position: sticky; top: 0; z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--rule);
  padding: 9px 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#adm-planner-strip::-webkit-scrollbar { display: none; }
.adm-strip-inner { display: flex; gap: 7px; min-width: max-content; }
.adm-day-btn {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: none;
  background: var(--card); color: var(--mid);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.adm-day-btn.is-today { background: rgba(201,168,76,0.15); color: var(--gold); }
.adm-day-btn.is-active { background: var(--red); color: #fff; }
.adm-day-btn .adm-today-lbl {
  font-size: 7px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; line-height: 1; margin-top: 1px;
}
.adm-day-btn .adm-ov-dot {
  position: absolute; top: 5px; right: 6px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
#adm-day-banner {
  display: none;
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  color: var(--red); letter-spacing: 0.01em;
  background: rgba(163,0,25,0.07); border-bottom: 2px solid rgba(163,0,25,0.25);
}

/* ── ADMIN EDITOR ── */
.adm-edit-btn { background:none;border:none;padding:5px 8px;cursor:pointer;color:var(--dim);font-size:15px;line-height:1;flex-shrink:0;-webkit-tap-highlight-color:transparent }
.adm-add-btn { display:block;width:calc(100% - 32px);margin:0 16px 12px;padding:11px;background:none;border:2px dashed var(--rule);color:var(--dim);font-family:var(--ff);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;text-align:center;-webkit-tap-highlight-color:transparent }
.adm-field { width:100%;box-sizing:border-box;background:var(--surface);border:none;border-bottom:2px solid var(--gold);padding:10px 12px;font-family:var(--ff);font-size:14px;color:var(--text);outline:none;margin-bottom:10px;display:block }
.adm-field.adm-select { -webkit-appearance:none; appearance:none; border-radius:0; }
.adm-field.adm-area { min-height:84px; resize:vertical; line-height:1.55; }
.adm-brief-subhead { font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);margin:14px 0 8px }
.adm-note-slot { background:linear-gradient(180deg, rgba(255,255,255,.38), transparent), var(--surface); border:1px solid var(--rule); border-radius:14px; padding:12px 12px 2px; margin-bottom:10px }
.adm-note-lbl { font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--text); margin-bottom:8px }
.adm-sheet { position:fixed;inset:0;z-index:200;display:none }
.adm-sheet.open { display:block }
.adm-sheet-bg { position:absolute;inset:0;background:rgba(0,0,0,.55) }
.adm-sheet-inner {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 834px;
  max-height: min(88vh, calc(100dvh - var(--safe-top) - 16px));
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 22px 20px;
  padding-bottom: calc(22px + var(--safe-bot));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.adm-brief-edit { display:flex;align-items:center;justify-content:space-between;padding:0 2px }
.exp-edit-inner {
  max-width: 760px;
}
.exp-edit-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.exp-edit-image {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.exp-edit-image img {
  width: 128px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #111;
}
.exp-edit-img-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}
.exp-edit-img-status {
  color: var(--dim);
  font-size: 11px;
  margin-bottom: 10px;
}
.exp-edit-img-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-edit-img-actions button {
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 11px;
  cursor: pointer;
}
.exp-edit-details {
  min-height: 150px;
}
.exp-edit-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 12px;
  margin: 2px 0 16px;
  cursor: pointer;
}
.exp-edit-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

@media (max-width: 520px) {
  .exp-admin-add {
    align-items: stretch;
    flex-direction: column;
  }
  .exp-admin-add button {
    width: 100%;
  }
  .exp-edit-image {
    grid-template-columns: 96px 1fr;
  }
  .exp-edit-image img {
    width: 96px;
  }
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #app { box-shadow: none; }
  html:not(.theme-light) .hdr,
  html:not(.theme-light) .bnav,
  html:not(.theme-light) .screen,
  html:not(.theme-light) .list-row,
  html:not(.theme-light) .quote-card,
  html:not(.theme-light) .contact-card,
  html:not(.theme-light) .hotel-card,
  html:not(.theme-light) .opt-card,
  html:not(.theme-light) .day-end-card,
  html:not(.theme-light) .tod-block,
  html:not(.theme-light) .dd-hero,
  html:not(.theme-light) .lock-card { background: var(--card); }
  html:not(.theme-light) .tl-item::before { background: rgba(255,255,255,.09); }
  html:not(.theme-light) .tl-time { color: #d8b14a; }
  html:not(.theme-light) .tl-what { color: #fff; }
  html:not(.theme-light) .tl-note { color: rgba(255,255,255,.78); }
  html:not(.theme-light) .tl-dot.opt { border-color: rgba(255,255,255,.42); }
  html:not(.theme-light) .tl-item.tl-now { background: rgba(206,17,38,.09); }
  html:not(.theme-light) .departure-card {
    background:
      linear-gradient(135deg, rgba(77,183,233,.12), transparent 48%),
      #111820;
    border-color: rgba(77,183,233,.22);
    color: #fff;
  }
  html:not(.theme-light) .departure-title,
  html:not(.theme-light) .departure-thanks-title,
  html:not(.theme-light) .departure-note strong,
  html:not(.theme-light) .departure-thanks-link strong,
  html:not(.theme-light) .transfer-manifest-head,
  html:not(.theme-light) .transfer-manifest summary,
  html:not(.theme-light) .transfer-manifest li strong {
    color: #fff;
  }
  html:not(.theme-light) .departure-thanks {
    background:
      linear-gradient(135deg, rgba(206,17,38,.14), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.06), transparent 58%),
      rgba(201,168,76,.08);
    border-color: rgba(201,168,76,.22);
  }
  html:not(.theme-light) .departure-thanks-link {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.11);
  }
  html:not(.theme-light) .departure-drive,
  html:not(.theme-light) .departure-note,
  html:not(.theme-light) .transfer-manifest {
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.11);
  }
  html:not(.theme-light) .departure-note p,
  html:not(.theme-light) .departure-thanks p,
  html:not(.theme-light) .departure-thanks-link span:last-child {
    color: rgba(255,255,255,.74);
  }
  html:not(.theme-light) .transfer-manifest-head small,
  html:not(.theme-light) .transfer-manifest summary small {
    color: rgba(255,255,255,.55);
  }
  html:not(.theme-light) .transfer-manifest li span,
  html:not(.theme-light) .transfer-manifest summary em {
    background: rgba(77,183,233,.12);
    color: #8edcff;
  }

  html:not(.theme-light) .today-hero,
  html:not(.theme-light) .brief,
  html:not(.theme-light) .pretrip-day1-link {
    background:
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 56%),
      var(--card);
    box-shadow: none;
  }

  html:not(.theme-light) .venice-pass-card {
    background:
      radial-gradient(circle at top right, rgba(10,132,255,.18), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 52%),
      var(--card);
    box-shadow: none;
  }
  html:not(.theme-light) .venice-transport-card {
    background:
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 52%),
      var(--card);
    border-color: var(--rule);
    box-shadow: none;
  }
  html:not(.theme-light) .venice-transport-kicker { color: #91b7ef; }
  html:not(.theme-light) .venice-transport-tags span {
    background: var(--card2);
    color: #dce9ff;
  }
  html:not(.theme-light) .venice-pass-pill,
  html:not(.theme-light) .vp-search-clear,
  html:not(.theme-light) .vp-row-open,
  html:not(.theme-light) .vp-field,
  html:not(.theme-light) .vp-list-card,
  html:not(.theme-light) .vp-search-card,
  html:not(.theme-light) .vp-result-card {
    background: var(--card2);
  }
  html:not(.theme-light) .vp-field { border: 1px solid var(--rule); border-bottom: 2px solid #0A84FF; }
  html:not(.theme-light) .vp-search-card,
  html:not(.theme-light) .vp-result-card,
  html:not(.theme-light) .vp-list-card,
  html:not(.theme-light) .venice-pass-card { border-color: var(--rule); }

  html:not(.theme-light) .pretrip-cta {
    background:
      radial-gradient(circle at top right, rgba(37,211,102,.14), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 52%),
      var(--card);
    box-shadow: none;
  }

  html:not(.theme-light) .brief-note,
  html:not(.theme-light) .brief-row,
  html:not(.theme-light) .adm-note-slot,
  html:not(.theme-light) .today-pill,
  html:not(.theme-light) .morning-item,
  html:not(.theme-light) .next-up,
  html:not(.theme-light) .contact-action:active,
  html:not(.theme-light) .hotel-action:active,
  html:not(.theme-light) .list-row:active {
    background: var(--card2);
  }

  html:not(.theme-light) .brief-note-red {
    background: linear-gradient(180deg, rgba(206,17,38,.18), rgba(206,17,38,.06)), var(--card2);
    border-color: rgba(206,17,38,.3);
  }
  html:not(.theme-light) .brief-note-gold {
    background: linear-gradient(180deg, rgba(201,168,76,.18), rgba(201,168,76,.06)), var(--card2);
    border-color: rgba(201,168,76,.28);
  }
  html:not(.theme-light) .brief-note-blue {
    background: linear-gradient(180deg, rgba(82,95,113,.22), rgba(82,95,113,.08)), var(--card2);
    border-color: rgba(140,153,171,.24);
  }
  html:not(.theme-light) .exp-sasha-note {
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), transparent 42%),
      linear-gradient(160deg, #364557 0%, #2c3949 100%);
    border-color: rgba(173, 190, 209, 0.14);
    box-shadow: none;
  }
  html:not(.theme-light) .exp-sasha-lbl { color: #d4b66c; }
  html:not(.theme-light) .exp-sasha-text { color: rgba(235,239,244,0.82); }
  html:not(.theme-light) .exp-sasha-text b { color: #ffffff; }

  html:not(.theme-light) .adm-edit-btn {
    color: rgba(255,255,255,.92);
    background: var(--card2);
    border: 1px solid var(--rule);
    border-radius: 10px;
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  html:not(.theme-light) .adm-add-btn {
    background: var(--card2);
    color: rgba(255,255,255,.78);
    border-color: rgba(255,255,255,.16);
  }
  html:not(.theme-light) .adm-field {
    background: var(--card2);
    border: 1px solid var(--rule);
    border-bottom: 2px solid var(--gold);
  }
  html:not(.theme-light) .adm-sheet-inner {
    background: #1C1C1E;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -18px 44px rgba(0,0,0,.45);
  }
  html:not(.theme-light) .adm-sheet-bg { background: rgba(0,0,0,.72); }
  html:not(.theme-light) #adm-planner-strip { background: rgba(28,28,30,.94); backdrop-filter: saturate(180%) blur(18px); }
  html:not(.theme-light) .adm-day-btn { background: var(--card2); color: rgba(255,255,255,.72); }
  html:not(.theme-light) .adm-day-btn.is-today { background: rgba(201,168,76,.2); }
  html:not(.theme-light) .ask-sasha,
  html:not(.theme-light) .next-up,
  html:not(.theme-light) .contact-card,
  html:not(.theme-light) .hotel-card,
  html:not(.theme-light) .opt-card,
  html:not(.theme-light) .brief,
  html:not(.theme-light) .today-hero { border-color: var(--rule); }
}

/* ── CONTACTS SCREEN ── */
.contacts-screen { padding-top: 8px; }
.contacts-hero {
  padding: 18px 20px 10px;
  text-align: center;
}
.contacts-hero-avatar {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 18px 36px rgba(15,23,42,0.12);
}
.contacts-hero-name {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.05;
}
.contacts-hero-role {
  margin-top: 6px;
  font-size: 14px;
  color: var(--mid);
}
.contacts-hero-tour {
  margin-top: 3px;
  font-size: 13px;
  color: var(--dim);
}
.contacts-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px;
}
.contact-quick {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  min-height: 110px;
  padding: 16px 10px 13px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  -webkit-tap-highlight-color: transparent;
}
.contact-quick:active { transform: scale(0.985); }
.contact-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.contact-quick-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-quick-sub {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.25;
}
.contact-quick.whatsapp .contact-quick-icon { background: var(--ios-green); }
.contact-quick.call .contact-quick-icon { background: var(--red); }
.support-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 12px 10px;
}
.support-shortcut {
  min-height: 126px;
  padding: 14px 12px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.support-shortcut:active { transform: scale(0.985); }
.support-shortcut .material-symbols-outlined {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(36,120,199,0.11);
  color: var(--ios-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.support-shortcut.danger .material-symbols-outlined {
  background: rgba(206,17,38,0.1);
  color: var(--red);
}
.support-shortcut strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  line-height: 1.18;
}
.support-shortcut small {
  display: block;
  color: var(--mid);
  font-size: 11px;
  line-height: 1.35;
}
.contact-group {
  margin: 0 12px 10px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}
.contact-note {
  margin: 10px 12px 0;
  padding: 14px 16px;
  background: rgba(206,17,38,0.06);
  border: 1px solid rgba(206,17,38,0.12);
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mid);
}
.contact-info-row,
.contact-emergency-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rule2);
}
.contact-info-row:last-child,
.contact-emergency-row:last-child { border-bottom: none; }
.contact-info-meta,
.contact-emergency-meta {
  min-width: 0;
  flex: 1;
}
.contact-info-label,
.contact-emergency-label {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 3px;
}
.contact-info-value,
.contact-emergency-value {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-info-sub,
.contact-emergency-sub {
  font-size: 12px;
  color: var(--mid);
  margin-top: 3px;
}
.contact-info-trailing,
.contact-emergency-trailing {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  flex-shrink: 0;
}
.contact-info-badge,
.contact-emergency-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.contact-info-badge.whatsapp { background: rgba(52,199,89,0.14); color: var(--ios-green); }
.contact-info-badge.phone { background: rgba(206,17,38,0.12); color: var(--red); }
.contact-info-badge.mail { background: rgba(255,159,10,0.14); color: var(--ios-orange); }
.contact-info-badge.web { background: rgba(206,17,38,0.1); color: var(--red); }
.contact-emergency-badge { background: rgba(255,59,48,0.12); color: var(--ios-red); }
.contact-card { background: var(--card); border: 1px solid var(--rule); margin: 0 12px 8px; overflow: hidden; }
.contact-main { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.contact-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); flex-shrink: 0; }
.contact-name { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.contact-role { font-size: 11px; color: var(--dim); margin-top: 1px; }
.contact-actions { display: flex; border-top: 1px solid var(--rule); }
.contact-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px; text-decoration: none; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--mid);
  border-right: 1px solid var(--rule); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background 0.1s;
}
.contact-action:last-child { border-right: none; }
.contact-action:active { background: var(--card2); }
.contact-action.prim { color: var(--red); }
.contact-action svg { width: 13px; height: 13px; }

.hotel-card {
  background: radial-gradient(circle at top right, rgba(201,168,76,.12), transparent 34%), var(--card);
  border: 1px solid var(--rule);
  margin: 0 12px 10px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}
.hotel-hdr { padding: 15px 16px; display:flex; align-items:flex-start; gap:12px; border-bottom: 1px solid var(--rule); }
.hotel-icon { width:42px; height:42px; border-radius:13px; background:var(--gold-lt); color:var(--gold); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.hotel-icon .material-symbols-outlined { font-size:23px; }
.hotel-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); display: inline-block; margin-bottom: 4px; }
.hotel-name { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 5px; line-height:1.2; }
.hotel-addr { font-size: 12px; color: var(--mid); line-height: 1.45; }
.hotel-date-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 7px;
}
.hotel-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: rgba(201,168,76,0.11);
  color: var(--gold);
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hotel-date-pill .material-symbols-outlined {
  font-size: 14px;
}
.hotel-rows { display:none; }
.hotel-actions { display: flex; }
.hotel-action { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); border-right: 1px solid var(--rule); -webkit-tap-highlight-color: transparent; transition: background 0.1s; }
.hotel-action .material-symbols-outlined { font-size:16px; }
.hotel-action:last-child { border-right: none; }
.hotel-action:active { background: var(--card2); }

.emerg-card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0;
  margin: 0 12px 10px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}
.emerg-country {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,59,48,0.72);
  padding: 14px 16px 8px;
}
.emerg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rule2); }
.emerg-row:last-child { border-bottom: none; }
.emerg-svc { font-size: 13px; color: var(--mid); }
.emerg-num { font-size: 15px; font-weight: 600; color: var(--red); text-decoration: none; font-variant-numeric: tabular-nums; }

@media (max-width: 430px) {
  .contacts-hero {
    padding: 14px 18px 8px;
  }
  .contacts-hero-avatar {
    width: 84px;
    height: 84px;
    border-radius: 24px;
  }
  .contacts-hero-name {
    margin-top: 12px;
    font-size: 25px;
  }
  .contacts-actions {
    gap: 8px;
    padding: 0 10px;
  }
  .contact-quick {
    min-height: 104px;
    border-radius: 20px;
    padding: 14px 8px 12px;
  }
  .contact-quick-icon {
    width: 42px;
    height: 42px;
  }
  .contact-quick-label {
    font-size: 12.5px;
  }
  .contact-quick-sub {
    font-size: 10px;
  }
  .contact-group,
  .hotel-card,
  .emerg-card {
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 18px;
  }
  .contact-note {
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 16px;
    font-size: 12.5px;
  }
  .contact-info-row,
  .emerg-row {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 390px) {
  .contacts-hero-name {
    font-size: 23px;
  }
  .contact-info-value,
  .emerg-num {
    font-size: 14px;
  }
  .hotel-row {
    font-size: 14px;
  }
}

/* ── PANELS ── */
.panel {
  position: fixed; top: 0; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-bot)); background: var(--bg);
  z-index: 30; display: none; flex-direction: column;
  max-width: 834px; margin: 0 auto;
}
.panel.open { display: flex; }
.panel-hdr {
  background: var(--card); border-bottom: 1px solid var(--rule);
  padding: calc(var(--safe-top) + 12px) 14px 12px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; position: relative;
}
.panel-hdr::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); }
.p-back { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--red); cursor: pointer; -webkit-tap-highlight-color: transparent; flex-shrink: 0; }
.p-back svg { width: 16px; height: 16px; stroke: var(--red); }
.p-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
.panel-body.np { padding: 0; }
#p-map {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#p-map .panel-hdr {
  position: sticky;
  top: 0;
  z-index: 20;
}
.notif-card {
  margin: 12px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ios-blue);
}
.notif-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ios-blue);
  margin-bottom: 8px;
}
.notif-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.notif-copy {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
}
.notif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.notif-btn,
.notif-btn-ghost {
  border: none;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 11px 14px;
  cursor: pointer;
}
.notif-btn {
  background: var(--ios-blue);
  color: #fff;
}
.notif-btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rule);
}

/* ── WEATHER ── */
#weather-body {
  padding: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(76, 134, 184, .18), transparent 32%),
    radial-gradient(circle at 100% 8%, rgba(201, 168, 76, .16), transparent 30%),
    var(--bg);
}
.weather-location-btn {
  width: 100%;
  border: 1px solid rgba(76, 134, 184, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(76,134,184,.12), transparent 34%),
    rgba(255,255,255,.72);
  color: #315f86;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 13px 14px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(25, 33, 45, .06);
}
.weather-location-btn .material-symbols-outlined {
  font-size: 18px;
}
.weather-location-btn:disabled {
  cursor: wait;
  opacity: .72;
}
.weather-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid rgba(76, 134, 184, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(76,134,184,.12), transparent 34%),
    rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(25, 33, 45, .06);
}
.weather-search label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
}
.weather-search input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 12px 13px;
  outline: none;
}
.weather-search input:focus {
  border-color: rgba(76,134,184,.5);
  box-shadow: 0 0 0 3px rgba(76,134,184,.14);
}
.weather-search button,
.weather-city-result-head button {
  border: 0;
  border-radius: 14px;
  background: #4f83b2;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 13px 14px;
  cursor: pointer;
}
.weather-city-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 8px;
}
.weather-city-result-head button {
  background: rgba(79,131,178,.12);
  color: #315f86;
  padding: 9px 12px;
}
.weather-city-name {
  font-size: 15px;
  font-weight: 850;
  color: var(--text);
}
.weather-route-title {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 4px 0 8px;
}
.weather-city-empty {
  margin-bottom: 12px;
  border: 1px dashed rgba(79,131,178,.28);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  color: var(--mid);
  font-size: 13px;
  line-height: 1.45;
  padding: 18px;
  text-align: center;
}
.weather-route-empty {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  justify-items: center;
}
.weather-retry-btn {
  border: 0;
  border-radius: 14px;
  background: #4f83b2;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 11px 16px;
  cursor: pointer;
}
.w-loading.city {
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.5);
}
.w-card {
  --w-accent: #6f8faf;
  --w-accent-soft: rgba(111, 143, 175, .2);
  position: relative;
  overflow: hidden;
  min-height: 158px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.84), rgba(255,255,255,.58) 42%, rgba(255,255,255,.76)),
    linear-gradient(140deg, var(--w-accent-soft), rgba(17,17,16,.03));
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 0 12px 12px;
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(25, 33, 45, .08);
}
.w-card-glow {
  position: absolute;
  top: -42px;
  right: -20px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--w-accent-soft), transparent 66%);
  pointer-events: none;
}
.w-tone-sunny { --w-accent: #d5a51e; --w-accent-soft: rgba(213, 165, 30, .24); }
.w-tone-cloudy,
.w-tone-fog,
.w-tone-mixed { --w-accent: #70849a; --w-accent-soft: rgba(112, 132, 154, .25); }
.w-tone-rain { --w-accent: #4f83b2; --w-accent-soft: rgba(79, 131, 178, .27); }
.w-tone-storm { --w-accent: #7763a6; --w-accent-soft: rgba(119, 99, 166, .27); }
.w-card-city {
  border-color: rgba(79,131,178,.24);
  box-shadow: 0 16px 34px rgba(79,131,178,.13);
}
.w-media {
  position: relative;
  min-height: 82px;
  margin: 0 -12px 10px;
  padding: 12px;
  border-radius: 18px 18px 12px 12px;
  overflow: hidden;
  background-image: var(--w-img);
  background-position: var(--w-img-pos, center center);
  background-size: cover;
}
.w-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18) 58%, rgba(0,0,0,.28)),
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.5));
}
.w-media-shade {
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.4));
  pointer-events: none;
}
.w-card-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.w-dest-name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.w-media .w-dest-name {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.w-card-sub {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
}
.w-media .w-card-sub {
  color: rgba(255,255,255,.86);
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.w-hero-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 18px rgba(0,0,0,.07);
  font-size: 26px;
}
.w-media .w-hero-icon {
  background: rgba(255,255,255,.76);
}
.w-days {
  position: relative;
  display: grid;
  gap: 6px;
}
.w-day {
  display: grid;
  grid-template-columns: minmax(74px, 92px) 26px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.w-day-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(17,17,16,.08);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
}
.w-row-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.w-day-info {
  min-width: 0;
}
.w-temp {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.w-lo,
.w-slash {
  font-size: 14px;
  font-weight: 700;
  color: var(--mid);
}
.w-cond {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--mid);
}
.w-extras {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.w-stat-lbl {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
}
.w-stat-val {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--mid);
  margin-top: 3px;
}
.w-loading { text-align: center; padding: 32px; font-size: 13px; color: var(--dim); }
@media (max-width: 430px) {
  #weather-body { padding: 10px; }
  .weather-search {
    grid-template-columns: 1fr;
  }
  .weather-search button {
    width: 100%;
  }
  .w-card {
    border-radius: 17px;
    padding: 0 10px 11px;
  }
  .w-media {
    min-height: 78px;
    margin: 0 -10px 9px;
    padding: 11px;
    border-radius: 17px 17px 11px 11px;
  }
  .w-day {
    grid-template-columns: minmax(70px, 88px) 24px 1fr;
    gap: 7px;
  }
  .w-day-label {
    min-height: 29px;
    font-size: 9px;
  }
  .w-temp { font-size: 18px; }
  .w-lo,
  .w-slash { font-size: 13px; }
  .w-cond { font-size: 11px; }
}
@media (max-width: 360px) {
  .w-day {
    grid-template-columns: 62px 1fr;
    gap: 8px;
  }
  .w-row-icon {
    display: none;
  }
  .w-day-label {
    min-width: 0;
    padding: 0 8px;
  }
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #weather-body {
    background:
      radial-gradient(circle at 15% 0%, rgba(76, 134, 184, .22), transparent 34%),
      radial-gradient(circle at 100% 8%, rgba(201, 168, 76, .18), transparent 31%),
      #000;
  }
  html:not(.theme-light) .weather-search {
    background:
      radial-gradient(circle at top right, rgba(76,134,184,.2), transparent 34%),
      linear-gradient(145deg, #17263a, #0b1d34 58%, #07172b);
    border-color: rgba(255,255,255,.14);
    box-shadow: 0 18px 42px rgba(7,29,58,.22);
  }
  html:not(.theme-light) .weather-location-btn {
    background:
      radial-gradient(circle at top right, rgba(76,134,184,.2), transparent 34%),
      linear-gradient(145deg, #17263a, #0b1d34 58%, #07172b);
    border-color: rgba(255,255,255,.14);
    color: #d8ecff;
    box-shadow: 0 18px 42px rgba(7,29,58,.22);
  }
  html:not(.theme-light) .weather-search label,
  html:not(.theme-light) .weather-route-title {
    color: #f8b44c;
  }
  html:not(.theme-light) .weather-search input {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.18);
    color: #fff;
  }
  html:not(.theme-light) .weather-search input::placeholder {
    color: rgba(255,255,255,.48);
  }
  html:not(.theme-light) .weather-search input:focus {
    border-color: rgba(248,180,76,.65);
    box-shadow: 0 0 0 3px rgba(248,180,76,.18);
  }
  html:not(.theme-light) .weather-search button {
    background: #4f83b2;
    color: #fff;
  }
  html:not(.theme-light) .weather-city-result-head button {
    background: rgba(255,255,255,.12);
    color: #d8ecff;
  }
  html:not(.theme-light) .weather-city-name {
    color: #fff;
  }
  html:not(.theme-light) .weather-city-empty,
  html:not(.theme-light) .w-loading.city {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
    color: rgba(255,255,255,.7);
  }
  html:not(.theme-light) .w-card {
    background:
      linear-gradient(145deg, rgba(50,58,70,.82), rgba(24,25,28,.92) 44%, rgba(20,20,22,.98)),
      linear-gradient(140deg, var(--w-accent-soft), rgba(0,0,0,.2));
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
  }
  html:not(.theme-light) .w-hero-icon {
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 26px rgba(0,0,0,.22);
  }
  html:not(.theme-light) .w-day-label {
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.12);
  }
  html:not(.theme-light) .w-extras {
    border-top-color: rgba(255,255,255,.1);
  }
}

/* ── EXCHANGE RATES ── */
.rate-intro { font-size: 14px; color: var(--mid); margin: 14px 14px 12px; line-height: 1.65; }
.rate-input { background: linear-gradient(180deg, rgba(255,255,255,.62), transparent), var(--card); border: 1px solid rgba(201,168,76,.24); border-radius: 24px; padding: 13px 16px; display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; box-shadow: 0 14px 34px rgba(8,16,24,.06); }
.rate-input label { font-size: 12px; color: var(--gold); font-weight: 850; letter-spacing: .08em; flex-shrink: 0; }
.rate-input input { background: transparent; border: none; outline: none; color: var(--text); font-size: 24px; font-weight: 800; width: 100%; text-align: right; letter-spacing: -0.03em; font-family: var(--ff); }
.rate-row { background: linear-gradient(135deg, rgba(255,255,255,.54), transparent 48%), var(--card); border: 1px solid var(--rule); border-radius: 22px; display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; margin: 0 12px 10px; box-shadow: 0 12px 28px rgba(8,16,24,.045); }
.rate-flag { font-size: 24px; flex-shrink: 0; filter: saturate(1.08); }
.rate-name { font-size: 14px; font-weight: 750; color: var(--text); letter-spacing: -0.01em; }
.rate-code { font-size: 11px; color: var(--dim); font-weight: 500; }
.rate-result { font-size: 21px; font-weight: 850; color: var(--text); letter-spacing: -0.035em; }
.rate-sub { font-size: 11px; color: var(--dim); text-align: right; }
.rate-eur-label { font-size: 11px; color: var(--gold); font-weight: 600; text-align: right; }
.rate-updated { font-size: 11px; color: var(--dim); text-align: center; margin: 8px 0 14px; }

/* ── TRANSLATOR ── */
.trans-top { margin: 12px; background: radial-gradient(circle at top right, rgba(201,168,76,.16), transparent 34%), linear-gradient(180deg, rgba(255,255,255,.58), transparent 52%), var(--card); border: 1px solid rgba(201,168,76,.20); border-radius: 26px; padding: 14px; box-shadow: 0 16px 38px rgba(8,16,24,.06); }
.trans-lang-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.trans-lang-pill { flex: 1; background: rgba(255,255,255,.46); border: 1px solid var(--rule); border-radius: 999px; color: var(--mid); font-size: 12px; font-weight: 800; padding: 9px 11px; text-align: center; letter-spacing: 0.02em; }
.trans-swap { background: var(--red); border: none; border-radius: 50%; color: #fff; cursor: pointer; width: 36px; height: 36px; font-size: 15px; -webkit-tap-highlight-color: transparent; box-shadow: 0 10px 20px rgba(206,17,38,.22); }
.trans-ta { width: 100%; background: rgba(255,255,255,.48); border: 1px solid var(--rule2); border-radius: 20px; outline: none; color: var(--text); font-size: 16px; resize: none; min-height: 92px; line-height: 1.58; font-family: var(--ff); padding: 13px 14px; }
.trans-ta::placeholder { color: var(--dim); }
.trans-actions { display: flex; gap: 8px; margin-top: 10px; }
.trans-btn-main { flex: 1; background: linear-gradient(135deg, #CE1126, #EC4657); border: none; border-radius: 18px; color: #fff; font-family: var(--ff); font-size: 12px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity 0.1s, transform .1s; box-shadow: 0 12px 24px rgba(206,17,38,.22); }
.trans-btn-main:active { opacity: 0.8; }
.trans-voice { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; color: var(--text); width: 48px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent; transition: background 0.15s; }
.trans-voice.on { background: rgba(206,17,38,0.08); border-color: var(--red); animation: mic-pulse 0.8s infinite alternate; }
@keyframes mic-pulse { from { opacity: 1; } to { opacity: 0.4; } }
.trans-result { margin: 0 12px 12px; padding: 15px 16px; border: 1px solid rgba(201,168,76,.20); border-radius: 24px; background: var(--card); box-shadow: 0 12px 28px rgba(8,16,24,.045); }
.trans-result-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.trans-result-text { font-family: 'Noto Serif', Georgia, serif; font-size: 18px; color: var(--text); line-height: 1.58; font-style: italic; }
.trans-speak { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; cursor: pointer; font-style: normal; -webkit-tap-highlight-color: transparent; }
.phrase-cat { font-size: 10px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding: 16px 18px 8px; background: transparent; border: none; }
.phrase-item { margin: 0 12px 9px; padding: 13px 15px; border: 1px solid var(--rule2); border-radius: 20px; background: var(--card); cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: 0 10px 22px rgba(8,16,24,.035); }
.phrase-item:active { background: var(--card2); }
.phrase-en { font-size: 14px; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.phrase-it { font-family: 'Noto Serif', Georgia, serif; font-size: 15px; color: var(--gold); font-style: italic; }
.phrase-pr { font-size: 11px; color: var(--dim); margin-top: 1px; }
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) .trans-top {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.18), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 54%),
      #171719;
    border-color: rgba(201,168,76,.26);
    box-shadow: 0 18px 42px rgba(0,0,0,.38);
  }
  html:not(.theme-light) .trans-lang-pill,
  html:not(.theme-light) .trans-ta,
  html:not(.theme-light) .group-field {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.15);
    color: var(--text);
  }
  html:not(.theme-light) .trans-lang-pill {
    color: rgba(255,255,255,.82);
  }
  html:not(.theme-light) .trans-ta::placeholder,
  html:not(.theme-light) .group-field::placeholder {
    color: rgba(235,235,245,.50);
  }
  html:not(.theme-light) .trans-voice {
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.16);
  }
  html:not(.theme-light) .trans-result,
  html:not(.theme-light) .phrase-item,
  html:not(.theme-light) .group-hero-card,
  html:not(.theme-light) .group-card,
  html:not(.theme-light) .group-member-card {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.10), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.045), transparent 58%),
      #1a1a1c;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.32);
  }
  html:not(.theme-light) .group-hero-card div {
    background: rgba(206,17,38,.10);
    border-color: rgba(206,17,38,.20);
  }
  html:not(.theme-light) .avatar-pick-area {
    background: rgba(255,255,255,.055);
    border-color: rgba(201,168,76,.32);
  }
}

/* ── TIPPING ── */
.tip-card { background: linear-gradient(135deg, rgba(255,255,255,.56), transparent 54%), var(--card); border: 1px solid var(--rule); border-radius: 24px; margin: 0 12px 10px; overflow: hidden; box-shadow: 0 12px 28px rgba(8,16,24,.045); }
.tip-sit { padding: 13px 15px 9px; font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; border-bottom: 1px solid var(--rule2); }
.tip-body { padding: 12px 15px 14px; }
.tip-amount { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; background: rgba(201,168,76,.12); font-size: 18px; font-weight: 850; color: var(--gold); letter-spacing: -0.02em; margin-bottom: 8px; }
.tip-note { font-size: 13px; color: var(--mid); line-height: 1.65; }

/* ── MOVIES ── */
#movies-body,
#memory-body,
#p-rates .panel-body,
#p-translate .panel-body,
#p-tips .panel-body,
#p-photos .panel-body,
#p-group .panel-body {
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.10), transparent 32%),
    radial-gradient(circle at 0 18%, rgba(206,17,38,.06), transparent 28%),
    var(--bg);
}
.movie-hero {
  margin: 12px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.58), transparent 52%),
    var(--card);
  border: 1px solid rgba(201,168,76,.20);
  box-shadow: 0 18px 40px rgba(8,16,24,.06);
}
.movie-hero-kicker,
.movie-location,
.movie-sasha-kicker {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.movie-hero-copy {
  margin-top: 8px;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.72;
}
.movie-hero-byline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule2);
  color: var(--dim);
  font-size: 12px;
}
.movie-hero-byline img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}
.movie-card {
  margin: 0 12px 14px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 42px rgba(8,16,24,.07);
}
.movie-top {
  display: flex;
  align-items: stretch;
  min-height: 164px;
}
.movie-poster {
  position: relative;
  width: 112px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--movie-color);
  border-radius: 0 24px 24px 0;
}
.movie-poster img {
  width: 100%;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
  display: block;
}
.movie-poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 7px;
  text-align: center;
}
.movie-poster.is-fallback .movie-poster-fallback { display: flex; }
.movie-poster-fallback span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  margin-bottom: 6px;
}
.movie-poster-fallback strong {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.28;
}
.movie-info {
  flex: 1;
  min-width: 0;
  padding: 16px 16px 14px;
}
.movie-title {
  margin-top: 5px;
  font-size: 19px;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.14;
}
.movie-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--dim);
}
.movie-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(245,197,24,.16);
}
.movie-rating span,
.movie-link span { color: #f5c518; }
.movie-rating strong {
  font-size: 13px;
  color: var(--text);
}
.movie-rating em {
  font-style: normal;
  font-size: 10px;
  color: var(--dim);
}
.movie-sasha {
  margin: 0 12px 12px;
  padding: 12px 13px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201,168,76,.13), rgba(206,17,38,.06));
}
.movie-sasha-copy {
  margin-top: 5px;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.68;
  font-style: italic;
}
.movie-desc {
  padding: 0 15px 14px;
}
.movie-desc p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.68;
}
.movie-desc div {
  margin-top: 6px;
  font-size: 11px;
  color: var(--dim);
}
.movie-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 12px 12px;
  min-height: 44px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.movie-more {
  margin: 0 12px 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
  text-align: center;
  font-style: italic;
}

/* ── MEMORY BOOK ── */
.memory-cover {
  position: relative;
  overflow: hidden;
  margin: 12px;
  min-height: 330px;
  border-radius: 32px;
  background: #0D1B2A;
  box-shadow: 0 24px 58px rgba(8,16,24,.16);
}
.memory-cover img {
  width: 100%;
  height: 330px;
  display: block;
  object-fit: cover;
  opacity: .58;
}
.memory-cover-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 4%, rgba(255,255,255,.22), transparent 32%),
    linear-gradient(180deg, rgba(13,27,42,.08), rgba(13,27,42,.88));
}
.memory-cover-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 22px;
}
.memory-kicker {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  margin-bottom: 12px;
}
.memory-title {
  font-size: 34px;
  font-weight: 850;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.06;
}
.memory-title em {
  font-family: 'Noto Serif', Georgia, serif;
  font-style: italic;
  color: #f1cc63;
  text-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.memory-date,
.memory-byline {
  font-size: 13px;
  color: rgba(255,255,255,.70);
}
.memory-date { margin-top: 14px; }
.memory-progress,
.memory-closing {
  margin: 0 12px 14px;
  padding: 17px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.58), transparent 52%),
    var(--card);
  border: 1px solid rgba(201,168,76,.20);
  box-shadow: 0 18px 42px rgba(8,16,24,.06);
}
.memory-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.memory-progress-head div {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.memory-progress-head span {
  font-size: 12px;
  color: var(--mid);
}
.memory-bar {
  height: 8px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.memory-bar div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #CE1126, #f1cc63);
  transition: width .4s;
}
.memory-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.memory-stats div {
  text-align: center;
  border-radius: 20px;
  background: rgba(255,255,255,.44);
  border: 1px solid var(--rule2);
  padding: 11px 6px;
}
.memory-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 850;
  color: var(--text);
}
.memory-stats span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}
#memory-body .sec-label {
  background: transparent;
  border: none;
  color: var(--gold);
  padding-left: 18px;
}
.memory-day-card {
  margin: 0 12px 12px;
  padding: 15px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 34px rgba(8,16,24,.055);
}
.memory-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.memory-day-kicker {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.memory-day-title {
  font-size: 17px;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.18;
}
.memory-day-city {
  font-size: 12px;
  color: var(--mid);
  margin-top: 3px;
}
.memory-day-num {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(206,17,38,.08);
  color: var(--red);
  font-size: 16px;
  font-weight: 850;
  flex-shrink: 0;
}
.memory-included,
.memory-options {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.memory-options {
  padding-top: 9px;
  border-top: 1px solid var(--rule2);
}
.memory-included div,
.memory-options div {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.48;
}
.memory-included span,
.memory-options span {
  color: var(--gold);
  font-weight: 850;
  flex-shrink: 0;
}
.memory-upcoming {
  margin: 0 12px 8px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.46);
  border: 1px solid var(--rule2);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: .72;
}
.memory-upcoming > div:first-child {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(201,168,76,.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  flex-shrink: 0;
}
.memory-upcoming strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}
.memory-upcoming span {
  display: block;
  font-size: 11px;
  color: var(--dim);
}
.memory-closing {
  text-align: center;
}
.memory-closing div {
  font-size: 19px;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.memory-closing p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.75;
  max-width: 340px;
  margin: 0 auto;
}
.memory-closing span {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  color: var(--dim);
}

/* ── FAQ ── */
.faq-section { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 14px 14px 5px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.faq-item { background: var(--card); border-bottom: 1px solid var(--rule2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.faq-q { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px; gap: 10px; font-size: 16px; font-weight: 500; color: var(--text); }
.faq-chevron { font-size: 14px; color: var(--dim); flex-shrink: 0; transition: transform 0.2s; padding-top: 1px; }
.faq-item.open .faq-chevron { transform: rotate(90deg); }
.faq-a { display: none; padding: 0 14px 12px; font-size: 16px; color: var(--mid); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* ── SHOPPING ── */
.shop-card {
  background: var(--card);
  border: 1px solid var(--rule);
  margin-bottom: 12px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.05);
}
.shop-hdr {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(154,123,46,.08), transparent 90%);
}
.shop-location {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.shop-name {
  font-family: 'Noto Serif', serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.shop-body { padding: 16px 18px 18px; font-size: 16px; color: var(--mid); line-height: 1.75; }
.shop-body b { color: var(--text); font-weight: 500; }
.tax-callout {
  background: linear-gradient(180deg, rgba(154,123,46,.12), rgba(154,123,46,.06));
  border: 1px solid rgba(154,123,46,0.22);
  padding: 18px;
  margin-bottom: 12px;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(154,123,46,.08);
}
@media (prefers-color-scheme: dark) { html:not(.theme-light) .tax-callout { border-color: rgba(201,168,76,0.2); } }
.tax-callout-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tax-callout-body { font-size: 16px; color: var(--mid); line-height: 1.75; }
.tax-callout-body b { color: var(--text); font-weight: 500; }
.shop-feature {
  margin: 0 12px 14px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 50px rgba(0,0,0,.06);
}
.shop-feature-copy {
  padding: 18px 18px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 40%),
    var(--card);
}
.shop-feature-title {
  font-family: 'Noto Serif', serif;
  font-size: 27px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.02;
}
.shop-feature-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.8;
  margin-top: 14px;
}
.shop-detail-grid {
  display: grid;
  gap: 12px;
  margin: 0 12px;
}
.shop-note-card {
  margin: 10px 12px 0;
  background: linear-gradient(180deg, rgba(17,17,16,.04), transparent 80%), var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 16px 18px;
}
@media (min-width: 680px) {
  .shop-detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ── MTM ── */
.mtm-badge { background: rgba(34,139,34,0.06); border: 1px solid rgba(34,139,34,0.18); padding: 14px; margin-bottom: 8px; }
.mtm-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #228B22; margin-bottom: 5px; }
.mtm-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; }
.mtm-body { font-size: 16px; color: var(--mid); line-height: 1.65; }
.mtm-panel-card {
  margin: -14px 12px 16px;
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), transparent 42%),
    var(--card);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 50px rgba(0,0,0,.08);
}
.mtm-story {
  position: relative;
  margin: 0 12px 12px;
  padding: 18px 18px 18px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.05);
  overflow: hidden;
}
.mtm-story::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2e8b57, rgba(46,139,87,.3));
}
.mtm-story-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2e8b57;
  margin-bottom: 8px;
}
.mtm-story-title {
  font-family: 'Noto Serif', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.mtm-story-body {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.75;
}

/* ── LUXURY CONTRAST PASS ── */
#pp-days,
#pp-optionals,
#pp-shopping,
#pp-mtm {
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.08), transparent 28%),
    linear-gradient(180deg, rgba(17,17,16,.02), transparent 220px),
    var(--bg);
}

.sec-label {
  position: relative;
  padding: 24px 16px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.sec-label::after {
  content: '';
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--red), rgba(201,168,76,.72));
}

.itin-intro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.16), transparent 34%),
    linear-gradient(135deg, rgba(13,27,42,.05), rgba(255,255,255,.92) 68%),
    var(--card);
  border-color: rgba(13,27,42,.08);
  box-shadow: 0 24px 52px rgba(8,16,24,.08);
}
.itin-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  pointer-events: none;
}
.itin-intro-eye {
  color: var(--gold);
  letter-spacing: 0.2em;
}
.itin-intro-eye span {
  background: linear-gradient(90deg, var(--red), rgba(201,168,76,.7));
}
.itin-intro-p {
  color: var(--text);
  opacity: 0.78;
}

.i-day {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 34%),
    var(--card);
  border-color: var(--rule);
  box-shadow: 0 10px 24px rgba(8,16,24,.045);
}
.i-day::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), rgba(201,168,76,.65));
  opacity: 0;
  transition: opacity .2s ease;
}
.i-day.open::before { opacity: 1; }
.i-tg {
  background: linear-gradient(180deg, rgba(255,255,255,.26), transparent);
}
.i-trigger:active .i-tg,
.i-day.open .i-tg { background: rgba(206,17,38,.045); }
.i-day.open .i-tg-num { background: rgba(206,17,38,.035); }
.i-sub {
  color: var(--text);
  opacity: 0.72;
}
.i-tag {
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.i-ti {
  background: rgba(13,27,42,.07);
  border-color: rgba(26,46,68,.12);
}
.i-te {
  background: rgba(201,168,76,.14);
  border-color: rgba(201,168,76,.2);
}
.i-tm {
  background: rgba(46,139,87,.1);
  border-color: rgba(46,139,87,.14);
}
.i-panel-inner {
  background:
    linear-gradient(180deg, rgba(255,255,255,.36), transparent 28%),
    var(--card);
}
.i-tod-label { position: static; }
.i-tod-label::after { display: none; }
.i-inc,
.i-opt,
.i-mtm {
  padding: 9px 10px;
  border-radius: 0;
  border: 1px solid var(--rule2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.i-inc {
  background: linear-gradient(180deg, rgba(201,168,76,.12), rgba(201,168,76,.03));
  border-color: rgba(201,168,76,.2);
}
.i-opt {
  background: linear-gradient(180deg, rgba(206,17,38,.08), rgba(206,17,38,.02));
  border-color: rgba(206,17,38,.14);
}
.i-mtm {
  background: linear-gradient(180deg, rgba(46,139,87,.11), rgba(46,139,87,.03));
  border-color: rgba(46,139,87,.18);
}
.i-tod-main,
.i-opt-desc,
.i-mtm-name {
  color: var(--text);
}
.i-tod-main,
.i-opt-desc {
  opacity: 0.94;
}
.i-opt-name { font-size: 13px; }

.exp-subnav {
  padding: 12px 12px 16px;
  border-bottom-color: rgba(13,27,42,.08);
  box-shadow: 0 12px 28px rgba(8,16,24,.04);
}
.exp-snp {
  background: rgba(255,255,255,.72);
  border-color: rgba(13,27,42,.08);
  backdrop-filter: blur(12px);
}
.exp-region-hdr {
  position: relative;
  margin: 18px 12px 10px;
  padding: 20px 16px 10px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(13,27,42,.04), rgba(201,168,76,.05) 46%, transparent 100%);
}
.exp-region-hdr::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(201,168,76,.72));
}
.exp-region-day {
  padding-top: 14px;
  font-size: 9px;
}
.exp-region-sub {
  color: var(--text);
  opacity: 0.9;
  font-size: 14px;
  line-height: 1.65;
}
.exp-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 32%),
    var(--card);
  border-color: rgba(13,27,42,.08);
  box-shadow: 0 18px 38px rgba(8,16,24,.07);
  margin: 0 12px 10px;
  border-radius: 24px;
}
.exp-img-wrap {
  min-height: 204px;
}
.exp-overlay {
  background: linear-gradient(to top, rgba(6,6,6,.9) 0%, rgba(6,6,6,.28) 48%, transparent 76%);
}
.exp-day-badge {
  background: rgba(0,0,0,.32);
  border-color: rgba(255,255,255,.22);
}
.exp-num {
  color: rgba(255,255,255,.4);
}
.exp-body {
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.44), transparent 38%);
}
.exp-desc {
  font-size: 15px;
  color: var(--text);
  opacity: 0.92;
  line-height: 1.72;
}
.exp-desc + .exp-desc {
  margin-top: 12px;
}
.exp-quote {
  position: relative;
  padding: 13px 14px 13px 18px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(201,168,76,.12), rgba(201,168,76,.04));
  font-size: 15px;
  line-height: 1.58;
  margin: 12px 0 10px;
}
.exp-quote::before {
  content: '"';
  position: absolute;
  top: 6px;
  left: 14px;
  font-family: 'Noto Serif', serif;
  font-size: 40px;
  line-height: 1;
  color: rgba(154,123,46,.34);
}
.exp-includes {
  background: linear-gradient(180deg, rgba(13,27,42,.03), transparent), var(--surface);
  border: 1px solid var(--rule);
  font-size: 13.5px;
  border-radius: 14px;
  padding: 11px 12px;
  margin-top: 10px;
  line-height: 1.6;
}
.exp-price {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 16px 30px rgba(0,0,0,.14);
  font-size: 11px;
  margin-top: 10px;
  padding: 7px 11px;
}
.exp-sasha-note {
  margin: 0 12px 18px;
  padding: 18px 18px 16px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, rgba(206,17,38,.06), rgba(255,255,255,.62));
}

#pp-shopping .prog-intro-card,
#pp-mtm .prog-intro-card,
.mtm-panel-card {
  position: relative;
  overflow: hidden;
}
#pp-shopping .prog-intro-card::before,
.mtm-panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(201,168,76,.75));
}
.shop-card,
.shop-feature,
.shop-note-card,
.tax-callout {
  position: relative;
  overflow: hidden;
}
.shop-card::before,
.shop-feature::before,
.shop-note-card::before,
.tax-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(201,168,76,.95), rgba(201,168,76,0));
}
.shop-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 34%),
    var(--card);
  border-color: rgba(13,27,42,.08);
  box-shadow: 0 24px 52px rgba(8,16,24,.07);
}
.shop-hdr {
  background: linear-gradient(135deg, rgba(154,123,46,.11), rgba(13,27,42,.04) 72%, transparent);
}
.shop-name {
  font-size: 25px;
}
.shop-body {
  font-size: 16px;
  color: var(--text);
  opacity: 0.8;
}
.shop-body p + p {
  margin-top: 12px;
}
.shop-body p:first-of-type::first-letter,
.shop-feature-text::first-letter {
  float: left;
  font-family: 'Noto Serif', serif;
  font-size: 40px;
  line-height: .86;
  padding: 4px 8px 0 0;
  color: var(--gold);
}
.tax-callout {
  background: linear-gradient(135deg, rgba(201,168,76,.2), rgba(255,255,255,.92) 68%);
  border-color: rgba(201,168,76,.24);
}
.tax-callout-title,
.tax-callout-body {
  color: var(--text);
}
.tax-callout-body {
  opacity: 0.82;
}
.shop-feature {
  box-shadow: 0 30px 64px rgba(8,16,24,.1);
}
.shop-feature-copy {
  position: relative;
  padding: 22px 20px 24px;
}
.shop-feature-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(201,168,76,.75));
}
.shop-feature-text {
  font-size: 17px;
  color: var(--text);
  opacity: 0.82;
  max-width: 44ch;
}
.shop-note-card {
  background: linear-gradient(135deg, rgba(13,27,42,.05), rgba(255,255,255,.92));
  border-color: rgba(13,27,42,.08);
  box-shadow: 0 22px 44px rgba(8,16,24,.06);
}
.shop-note-card .sa-lbl {
  color: var(--gold);
}
.shop-note-card .sa-text {
  color: var(--text);
  opacity: 0.78;
}

#pp-mtm .prog-hero::after {
  background: linear-gradient(180deg, rgba(2,17,10,.08), rgba(2,17,10,.28) 38%, rgba(4,18,11,.86));
}
#pp-mtm .sec-label {
  color: #1f7248;
}
#pp-mtm .sec-label::after {
  background: linear-gradient(90deg, #2e8b57, rgba(201,168,76,.72));
}
.mtm-panel-card {
  background:
    linear-gradient(180deg, rgba(46,139,87,.12), rgba(255,255,255,.86) 32%, var(--card));
  border-color: rgba(46,139,87,.2);
  border-radius: 28px;
  box-shadow: 0 28px 58px rgba(13,49,31,.08);
}
.mtm-panel-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1f7248;
  margin-bottom: 10px;
}
.mtm-panel-copy {
  font-size: 17px;
  color: var(--text);
  line-height: 1.82;
  opacity: 0.82;
}
.mtm-panel-link,
.mtm-story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1f7248;
  border-bottom: 1px solid rgba(46,139,87,.22);
  padding-bottom: 2px;
}
.mtm-story {
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), transparent 28%),
    var(--card);
  border-color: rgba(13,49,31,.08);
  box-shadow: 0 24px 50px rgba(13,49,31,.06);
}
.mtm-story-kicker {
  letter-spacing: 0.18em;
  color: #1f7248;
}
.mtm-story-title {
  font-size: 24px;
}
.mtm-story-body {
  font-size: 17px;
  color: var(--text);
  opacity: 0.78;
}
.mtm-story-body + .mtm-story-body {
  margin-top: 10px;
}
.mtm-story--brand {
  background: linear-gradient(180deg, rgba(46,139,87,.1), rgba(255,255,255,.92) 48%);
  border-color: rgba(46,139,87,.22);
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #pp-days,
  html:not(.theme-light) #pp-optionals,
  html:not(.theme-light) #pp-shopping,
  html:not(.theme-light) #pp-mtm {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.12), transparent 28%),
      linear-gradient(180deg, rgba(255,255,255,.02), transparent 220px),
      var(--bg);
  }
  html:not(.theme-light) .exp-region-hdr,
  html:not(.theme-light) .i-tod,
  html:not(.theme-light) .prog-intro-card,
  html:not(.theme-light) .shop-card,
  html:not(.theme-light) .shop-feature,
  html:not(.theme-light) .shop-note-card,
  html:not(.theme-light) .tax-callout,
  html:not(.theme-light) .mtm-panel-card,
  html:not(.theme-light) .mtm-story {
    box-shadow: none;
  }
  html:not(.theme-light) .i-tod {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border-color: rgba(255,255,255,.08);
  }
  html:not(.theme-light) .i-tod-label { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
  html:not(.theme-light) .i-inc { background: linear-gradient(180deg, rgba(201,168,76,.14), rgba(201,168,76,.05)); border-color: rgba(201,168,76,.18); }
  html:not(.theme-light) .i-opt { background: linear-gradient(180deg, rgba(206,17,38,.12), rgba(206,17,38,.04)); border-color: rgba(206,17,38,.18); }
  html:not(.theme-light) .i-mtm { background: linear-gradient(180deg, rgba(46,139,87,.14), rgba(46,139,87,.04)); border-color: rgba(46,139,87,.2); }
  html:not(.theme-light) .prog-intro-card,
  html:not(.theme-light) .shop-card,
  html:not(.theme-light) .shop-feature,
  html:not(.theme-light) .shop-note-card,
  html:not(.theme-light) .mtm-panel-card,
  html:not(.theme-light) .mtm-story {
    border-color: rgba(255,255,255,.08);
  }
  html:not(.theme-light) .tax-callout { background: linear-gradient(135deg, rgba(201,168,76,.16), rgba(255,255,255,.04) 68%); }

  html:not(.theme-light) /* ── Fix white-gradient cards in dark mode ── */
  .prog-intro-card,
  html:not(.theme-light) .itin-intro {
    background: var(--card);
  }
  html:not(.theme-light) .shop-card,
  html:not(.theme-light) .shop-note-card {
    background: var(--card);
  }
  html:not(.theme-light) .shop-feature {
    background: var(--card);
  }
  html:not(.theme-light) .shop-feature-copy {
    background: transparent;
  }
  html:not(.theme-light) .exp-card {
    background: var(--card);
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
  }
  html:not(.theme-light) .i-day {
    background: var(--card);
    border-color: rgba(255,255,255,.08);
  }
  html:not(.theme-light) .i-panel-inner {
    background: var(--card);
  }
  html:not(.theme-light) .i-tg {
    background: transparent;
  }
  html:not(.theme-light) .mtm-panel-card {
    background: linear-gradient(180deg, rgba(46,139,87,.18), var(--card));
  }
  html:not(.theme-light) .mtm-story {
    background: var(--card);
  }

  html:not(.theme-light) /* ── Fix prog-tabs inactive tab readability ── */
  .pt {
    color: var(--mid);
    background: var(--card);
  }

  html:not(.theme-light) /* ── Fix remaining white-gradient overlays ── */
  .exp-body {
    background: transparent;
  }
  html:not(.theme-light) .exp-sasha-note {
    background: rgba(206,17,38,.08);
  }
  html:not(.theme-light) .exp-quote {
    background: rgba(154,123,46,.1);
  }
  html:not(.theme-light) .sasha-card {
    background: var(--card);
  }
}

/* ── OVERVIEW ── */
.overview-day { background: var(--card); border-bottom: 1px solid var(--rule); padding: 14px 16px; }
.overview-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.overview-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 3px; }
.overview-tag { font-size: 12px; color: var(--mid); font-style: italic; margin-bottom: 8px; }
.overview-chips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.overview-chip { font-size: 10px; font-weight: 500; background: var(--surface); border: 1px solid var(--rule); padding: 2px 7px; color: var(--mid); }
.overview-sep { font-size: 10px; color: var(--dim); }

/* ── ITINERARY ROWS ── */
.itin-day-row {
  display: flex; align-items: flex-start; padding: 14px 16px;
  border-bottom: 1px solid var(--rule); background: var(--card);
  gap: 14px; text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s;
}
.itin-day-row:active { background: var(--card2); }
.itin-day-row.locked { opacity: 0.55; }
.itin-day-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--mid); margin-top: 2px;
}
.itin-day-num.today { background: rgba(206,17,38,0.08); border-color: var(--red); color: var(--red); }
.itin-day-num.past { opacity: 0.5; }
.itin-day-num.locked-num { opacity: 0.4; }
.itin-day-info { flex: 1; min-width: 0; }
.itin-day-date { font-size: 13px; color: var(--dim); font-weight: 500; margin-bottom: 2px; }
.itin-day-title { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 3px; }
.itin-day-tag { font-size: 14px; color: var(--mid); line-height: 1.45; }
.itin-today-chip { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; background: var(--red); color: #fff; padding: 1px 5px; border-radius: 2px; margin-left: 5px; vertical-align: middle; }

/* ── EXPERIENCE SUB-NAV ── */
.exp-subnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(248,248,246,.92), rgba(248,248,246,.78));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 10px 12px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rule);
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) .exp-subnav { background: linear-gradient(180deg, rgba(17,17,16,.92), rgba(17,17,16,.78)); }
}
.exp-subnav::-webkit-scrollbar { display: none; }
.exp-snp {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  color: var(--mid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  font-family: inherit;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.exp-snp.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ── EXPERIENCE CARDS — Apple-inspired ── */

/* Region headers: compact gallery dividers */
.exp-region-hdr {
  padding: 28px 20px 10px;
  text-align: left;
  margin-top: 8px;
  background: transparent;
}
.exp-region-hdr:first-child { padding-top: 14px; margin-top: 0; }
.exp-region-day {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.exp-region-title {
  font-family: 'Noto Serif', serif;
  font-size: 28px; font-weight: 700;
  color: var(--text); letter-spacing: -0.04em; line-height: 1.0;
  margin-bottom: 0;
}
.exp-region-title em {
  font-style: italic; color: var(--mid); font-weight: 400;
  font-size: 0.80em; letter-spacing: -0.01em;
}
.exp-region-sub { display: none; }

/* Cards: edge-to-edge gallery tiles */
.exp-card {
  background: #000;
  overflow: hidden;
  margin: 0 0 4px;
  border-radius: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.18s ease;
}
.exp-card:active { opacity: 0.88; }

/* Image: natural proportions — no crop, no fixed ratio */
.exp-img-wrap {
  position: relative;
  background: #0a0a0a;
  line-height: 0; /* prevent inline gap below image */
}
.exp-img {
  width: 100%;
  height: auto;
  display: block;
}
.exp-card.exp-card-capri .exp-img { object-position: center 42%; }
.exp-card.exp-card-tonnarella .exp-img { object-position: center 58%; }

/* Gradient: strong at bottom so text is always readable */
.exp-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 28%),
    linear-gradient(
      180deg,
      rgba(74, 106, 142, 0.16) 0%,
      rgba(26, 42, 60, 0.06) 24%,
      rgba(8, 12, 18, 0.10) 54%,
      rgba(8, 8, 10, 0.62) 100%
    );
}

/* Top row: day badge left, pick/num right */
.exp-meta-top {
  position: absolute; top: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: flex-start; z-index: 2;
}
.exp-admin-tools {
  position: absolute;
  top: 58px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: auto;
}
.exp-admin-tools button {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(17,17,16,.72);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.exp-admin-add {
  margin: 14px 16px 22px;
  padding: 14px;
  border: 1px solid var(--rule);
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-admin-add button {
  border: 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 11px 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.exp-admin-add span {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}
.exp-card.is-hidden-admin {
  opacity: .58;
}
.exp-hidden-badge {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(206,17,38,.86);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
}
.exp-day-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(0,0,0,0.45); color: rgba(255,255,255,0.95);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.exp-num {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.40);
  letter-spacing: 0.06em; line-height: 1;
  background: rgba(0,0,0,0.35); padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.exp-pick-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

/* Price pill — bottom right of image, above title baseline */
.exp-img-price {
  position: absolute; bottom: 22px; right: 18px;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22); z-index: 2; line-height: 1;
}

/* Title — bottom left, doesn't run under price */
.exp-img-title {
  position: absolute; bottom: 20px; left: 20px; right: 110px;
  font-family: 'Noto Serif', serif;
  font-size: 26px; font-weight: 700; color: #fff;
  line-height: 1.08; letter-spacing: -0.03em; z-index: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}

/* Chevron expand hint */
.exp-expand-hint {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center;
  padding-bottom: 8px; z-index: 2; pointer-events: none;
}
.exp-expand-hint svg {
  width: 20px; height: 20px; stroke: rgba(255,255,255,0.55);
  stroke-width: 2; fill: none;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1),
              opacity 0.3s ease;
}
.exp-card.open .exp-expand-hint svg {
  transform: rotate(180deg);
  opacity: 0.35;
}

/* Body: hidden by default, smooth expand on tap */
.exp-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s cubic-bezier(0.22,1,0.36,1);
  padding: 0 22px;
  /* Own surface so it's never transparent over the black card */
  background: var(--bg);
}
.exp-card.open .exp-body {
  max-height: 1600px;
  padding: 30px 22px 36px;
}

/* Price in body is redundant — price is on the image */
.exp-price { display: none; }

.exp-desc {
  font-size: 17px;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.84;
  margin-bottom: 14px;
}
.exp-desc + .exp-desc { margin-top: 0; }

/* Sasha quote: pull-quote with gold accent */
.exp-quote {
  font-size: 18px; font-style: italic;
  color: var(--text); font-weight: 400;
  border-left: 3px solid var(--gold);
  padding: 14px 18px; margin: 18px 0;
  line-height: 1.65;
  background: rgba(154,123,46,0.07);
  border-radius: 0 12px 12px 0;
}

/* Includes: clean hairline list */
.exp-includes {
  font-size: 14px;
  color: var(--text);
  opacity: 0.78;
  border-top: 1px solid var(--rule);
  padding-top: 16px; margin-top: 14px;
  line-height: 1.85;
}
.exp-includes b { color: var(--text); opacity: 1; font-weight: 600; }

/* Sasha aside: soft Apple-style note */
.exp-sasha-note {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.52), transparent 42%),
    linear-gradient(160deg, #eef3f8 0%, #e3ebf3 100%);
  margin: 4px 14px 20px;
  padding: 26px 22px 28px;
  border-radius: 20px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(110, 132, 156, 0.16);
  box-shadow: 0 16px 34px rgba(63, 82, 104, 0.10);
}
.exp-sasha-note::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, #c49a43, rgba(196,154,67,0.2));
}
.exp-sasha-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #8b6a1f; margin-bottom: 12px;
}
.exp-sasha-text {
  font-size: 17px; color: #607083;
  line-height: 1.80; font-style: italic;
}
.exp-sasha-text + .exp-sasha-text { margin-top: 12px; }
.exp-sasha-text b { font-style: normal; color: #18202a; font-weight: 600; }

@media (max-width: 430px) {
  .exp-region-title { font-size: 26px; }
  .exp-img-title { font-size: 22px; right: 100px; }
}

/* Desktop / tablet: 2-column masonry flow */
@media (min-width: 640px) {
  #all-opts {
    columns: 2;
    column-gap: 4px;
  }
  /* Each card is an atomic column item — never splits across columns */
  .exp-card {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 4px;
    vertical-align: top;
  }
  /* Region headers span the full width */
  .exp-region-hdr {
    column-span: all;
    padding: 20px 24px 8px;
  }
  /* Sasha asides flow into columns naturally — lands beside an image */
  .exp-sasha-note {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 4px;
    border-radius: 0;
  }
  .exp-body { padding: 0 26px; }
  .exp-card.open .exp-body { padding: 30px 26px 36px; }
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-light) .exp-body {
    background: var(--bg);
  }
  html:not(.theme-light) .exp-sasha-note {
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), transparent 42%),
      linear-gradient(160deg, #262d36 0%, #20262e 100%);
    border-color: rgba(173,190,209,0.16);
    box-shadow: none;
  }
  html:not(.theme-light) .exp-sasha-lbl {
    color: #d4b66c;
  }
  html:not(.theme-light) .exp-sasha-text {
    color: rgba(245,245,247,0.84);
  }
  html:not(.theme-light) .exp-sasha-text b {
    color: #fff;
  }
}

/* ── MAP SELECTOR ── */
.map-pill {
  background: var(--surface); border: 1px solid var(--rule);
  color: var(--mid); font-size: 11px; font-weight: 600;
  padding: 6px 12px; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; font-family: var(--ff);
  transition: all 0.15s;
}
.map-pill.active { border-color: var(--red); color: var(--red); background: rgba(206,17,38,0.06); }

/* ── NEXT UP ── */
#next-up-area:not(.is-hidden) {
  position: relative;
  z-index: 4;
}
.next-up {
  margin: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--card2) 72%, transparent));
  border: 1px solid color-mix(in srgb, var(--red) 26%, var(--rule));
  border-radius: 18px;
  display: flex; align-items: center; gap: 18px; padding: 20px 18px;
  box-shadow: 0 18px 42px rgba(0,0,0,.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.next-up-lbl { font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.next-up-what { font-size: clamp(24px, 6vw, 34px); font-weight: 900; color: var(--text); letter-spacing: 0; line-height: 1.08; }
.next-up-time { font-size: 16px; color: var(--mid); margin-top: 8px; line-height: 1.45; }
.next-up-icon { width: 58px; height: 58px; border-radius: 15px; background: var(--red); color:#fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 10px 26px rgba(206,17,38,.24); }
.next-up-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.next-up-icon .material-symbols-outlined { font-size: 32px; }

/* ── TODAY MAP ── */
#today-map-area.is-hidden { display:none; }
.today-map-card {
  margin: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
}
.today-map-head {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.today-map-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.today-map-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -.02em;
}
.today-map-copy {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--mid);
}
.today-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  flex: 0 0 156px;
}
.today-map-actions button {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--card2);
  color: var(--text);
  font-family: var(--ff);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.today-map-actions button.danger {
  background: rgba(206,17,38,.1);
  border-color: rgba(206,17,38,.18);
  color: var(--red);
}
.today-map-stage {
  position: relative;
  height: min(52vh, 360px);
  min-height: 246px;
  overflow: hidden;
  background: var(--surface);
}
#today-map-el { width:100%; height:100%; min-height:246px; }
.today-map-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  background: rgba(18,16,14,.78);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.today-map-caption strong {
  display:block;
  font-size:12px;
  line-height:1.2;
}
.today-map-caption span {
  display:block;
  margin-top:2px;
  font-size:11px;
  line-height:1.3;
  color:rgba(255,255,255,.72);
}
.today-map-caption > .material-symbols-outlined {
  margin: 0;
  font-size: 20px;
  color:#fff;
}
.today-map-chips {
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding: 10px 14px 14px;
}
.today-map-chips span {
  flex:0 0 auto;
  padding: 8px 10px;
  border-radius:999px;
  background: var(--card2);
  border: 1px solid var(--rule2);
  color: var(--mid);
  font-size:11px;
  font-weight:850;
}
.today-map-pin {
  width:34px;
  height:34px;
  border-radius:999px 999px 999px 5px;
  transform:rotate(-45deg);
  background:var(--red);
  color:#fff;
  border:3px solid #fff;
  display:grid;
  place-items:center;
  box-shadow:0 7px 18px rgba(0,0,0,.28);
}
.today-map-pin.hotel { background:#111; }
.today-map-pin span {
  transform:rotate(45deg);
  font-size:13px;
  font-weight:900;
}
.today-map-user-pin {
  width:22px;
  height:22px;
  border-radius:999px;
  background:#1478ff;
  border:4px solid #fff;
  box-shadow:0 0 0 12px rgba(20,120,255,.17), 0 3px 12px rgba(0,0,0,.25);
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) .today-map-card {
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
    box-shadow: 0 18px 46px rgba(0,0,0,.3);
  }
  html:not(.theme-light) .today-map-kicker { color: var(--gold); }
  html:not(.theme-light) .today-map-stage { background:#25231d; }
}
html.theme-dark .today-map-card {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
  box-shadow: 0 18px 46px rgba(0,0,0,.3);
}
html.theme-dark .today-map-kicker { color: var(--gold); }
html.theme-dark .today-map-stage { background:#25231d; }
html.theme-light .today-map-card {
  background: var(--card);
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
}
html.theme-light .today-map-kicker { color: var(--red); }
html.theme-light .today-map-stage { background: var(--surface); }
@media (max-width: 430px) {
  .today-map-head { flex-direction: column; }
  .today-map-actions { flex: 0 0 auto; justify-content: flex-start; }
}

/* ── ASK SASHA ── */
.ask-sasha {
  margin: 10px 12px 0;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--rule); padding: 12px 14px;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background .1s;
}
.ask-sasha:active { background: var(--card2); }
.ask-sasha-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.ask-sasha-text { flex: 1; }
.ask-sasha-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ask-sasha-hint { font-size: 11px; color: var(--mid); margin-top: 1px; }
.ask-sasha-btn { background: #25D366; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; flex-shrink: 0; }

/* ── PACKING LIST ── */
.pack-cat { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 14px 16px 6px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.pack-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--rule2); background: var(--card); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .1s; }
.pack-item:active { background: var(--card2); }
.pack-check { width: 20px; height: 20px; border: 2px solid var(--rule); border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.pack-check.done { background: var(--red); border-color: var(--red); }
.pack-check.done svg { display: block; }
.pack-check svg { display: none; width: 11px; height: 11px; stroke: #fff; stroke-width: 3; fill: none; }
.pack-label { font-size: 13px; color: var(--text); font-weight: 500; transition: color .15s; }
.pack-label.done { text-decoration: line-through; color: var(--dim); }
.pack-note { font-size: 11px; color: var(--dim); margin-top: 1px; }
.pack-progress { background: var(--card); padding: 14px 16px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 12px; }
.pack-bar-wrap { flex: 1; height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.pack-bar { height: 100%; background: var(--red); border-radius: 2px; transition: width .3s; }
.pack-count { font-size: 12px; font-weight: 600; color: var(--mid); flex-shrink: 0; }
.pack-reset { font-size: 11px; color: var(--dim); text-decoration: underline; cursor: pointer; flex-shrink: 0; }

/* ── PHOTO ALBUM ── */
.community-photo-hero {
  margin: 12px;
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(206,17,38,.18), transparent 34%),
    linear-gradient(135deg, #fff8ed 0%, #f3e6d2 62%, #e7d5b7 100%);
  border: 1px solid rgba(117,91,0,.12);
  box-shadow: 0 18px 44px rgba(66,49,34,.08);
}
.community-photo-kicker { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
.community-photo-title { color: var(--text); font-family: Georgia, 'Times New Roman', serif; font-size: 27px; line-height: 1; letter-spacing: 0; max-width: 270px; }
.community-photo-copy { margin-top: 8px; color: var(--mid); font-size: 12px; line-height: 1.45; max-width: 260px; }
.community-photo-mark { width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #fffaf3; color: var(--red); font-size: 24px; box-shadow: 0 12px 30px rgba(66,49,34,.1); flex-shrink: 0; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.photo-thumb { aspect-ratio: 1; object-fit: cover; width: 100%; display: block; border-radius: 18px 18px 10px 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .1s, transform .16s; background: rgba(117,91,0,.08); }
.photo-thumb:active { opacity: .8; }
.photo-upload-area { margin: 12px; background: #fffaf3; border: 1px solid rgba(117,91,0,.16); border-radius: 24px; padding: 16px 16px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s, transform .15s; box-shadow: 0 12px 30px rgba(8,16,24,.045); display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
.photo-upload-area:active { border-color: var(--red); transform: scale(.99); }
.photo-upload-icon { width: 44px; height: 44px; border-radius: 16px; background: rgba(206,17,38,.09); display: flex; align-items: center; justify-content: center; font-size: 24px; grid-row: span 2; }
.photo-upload-lbl { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.photo-upload-hint { font-size: 12px; color: var(--mid); line-height: 1.55; }
.photo-caption { font-size: 11px; color: var(--mid); padding: 7px 9px 9px; background: var(--card); border-radius: 0 0 18px 18px; }
.photo-cell { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 28px rgba(8,16,24,.055); border: 1px solid rgba(76,55,40,.06); contain: content; content-visibility: auto; contain-intrinsic-size: 190px; }
.photo-empty { margin: 12px; border: 1px dashed rgba(117,91,0,.2); border-radius: 24px; background: rgba(255,250,243,.68); text-align: center; padding: 38px 20px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.photo-lightbox.open { display: flex; }
.photo-lb-shell {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  background: #050505;
  overflow: hidden;
  position: relative;
}
.photo-lb-stage {
  position: relative;
  width: 100%;
  min-height: 100%;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  padding: calc(var(--safe-top) + 8px) 8px calc(var(--safe-bot) + 8px);
}
.photo-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0; box-shadow: none; background: transparent; }
.photo-lb-close { position: absolute; top: calc(var(--safe-top) + 14px); right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 999px; background: rgba(0,0,0,.48); border: 1px solid rgba(255,255,255,.24); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(12px); }
.photo-lb-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 48px 18px calc(var(--safe-bot) + 18px);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.64));
  color: #fff;
  pointer-events: none;
}
.photo-lb-cap { color: rgba(255,255,255,.94); font-size: 14px; font-weight: 650; line-height: 1.35; max-width: min(58ch, 62vw); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.photo-lb-cap:empty { display: none; }
.photo-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(76,55,40,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
.photo-lb-nav.prev { left: 14px; }
.photo-lb-nav.next { right: 14px; }
.photo-lb-nav[disabled] { opacity: 0.28; cursor: default; }
.photo-lb-actions { display: flex; gap: 9px; flex-wrap: wrap; padding-top: 2px; }
.photo-lb-download,
.photo-lb-del { background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; text-decoration: none; backdrop-filter: blur(12px); pointer-events: auto; }
.photo-lb-del { color: #ffd7d7; }
@media (max-width: 640px) {
  .photo-lightbox { align-items: stretch; justify-content: center; }
  .photo-lb-stage { padding: calc(var(--safe-top) + 4px) 0 calc(var(--safe-bot) + 4px); }
  .photo-lightbox img { max-width: 100vw; max-height: 100dvh; }
  .photo-lb-nav {
    width: 36px;
    height: 36px;
  }
  .photo-lb-nav.prev { left: 10px; }
  .photo-lb-nav.next { right: 10px; }
  .photo-lb-close { top: calc(var(--safe-top) + 10px); right: 10px; }
  .photo-lb-bottom { display: block; padding: 64px 12px calc(var(--safe-bot) + 12px); }
  .photo-lb-cap { max-width: 100%; margin-bottom: 10px; font-size: 13px; }
  .photo-lb-actions { padding-bottom: 0; }
}
.tomorrow-preview {
  margin: 12px 12px 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 16px 14px 14px;
}
.tomorrow-preview-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.tomorrow-preview-title {
  font-size: 28px;
  font-family: 'Noto Serif', serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 6px;
}
.tomorrow-preview-copy {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 16px;
}
.tomorrow-preview .brief-lead {
  font-size: 24px;
  margin-bottom: 12px;
}
.tomorrow-preview .brief-grid {
  margin-bottom: 14px;
}
.tomorrow-preview .notify-guide-card {
  margin: 14px 0 16px;
  box-shadow: none;
}
.tomorrow-preview .notify-guide-card + .brief-lead {
  margin-top: 4px;
}
.tomorrow-preview .seatplan-card {
  margin-top: 16px;
}
.tomorrow-preview .tl { padding: 0; }
.tomorrow-preview .tl-time {
  font-size: 20px;
  font-weight: 700;
  min-width: 84px;
}
.tomorrow-preview .tl-what {
  font-size: 17px;
}
.tomorrow-preview .tl-note {
  font-size: 15px;
  line-height: 1.6;
}
.today-experiences {
  margin: 12px 12px 0;
}
.today-experiences-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}
.today-experiences-title {
  font-family: 'Noto Serif', serif;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 12px;
}
.today-experiences-grid {
  display: grid;
  gap: 12px;
}
.today-exp-card {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 34px rgba(8,16,24,.06);
}
.today-exp-media {
  position: relative;
  min-height: 210px;
  background: #0a0a0a;
  overflow: hidden;
}
.today-exp-media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: block;
  object-fit: cover;
}
.today-exp-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.18) 42%, rgba(0,0,0,.72));
}
.today-exp-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.today-exp-meta span,
.today-exp-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.today-exp-heading {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  font-family: 'Noto Serif', serif;
  font-size: 28px;
  font-weight: 760;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 3px 20px rgba(0,0,0,.36);
}
.today-exp-body {
  padding: 15px 16px 16px;
}
.today-exp-desc {
  color: var(--mid);
  font-size: 15px;
  line-height: 1.66;
}
.today-exp-desc + .today-exp-desc {
  margin-top: 10px;
}
.today-exp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.today-exp-price,
.today-exp-inc {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.today-exp-price {
  background: rgba(206,17,38,.1);
  color: var(--red);
}
.today-exp-inc {
  background: var(--surface);
  color: var(--mid);
  border: 1px solid var(--rule);
}
.today-exp-admin {
  position: absolute;
  z-index: 3;
  top: 54px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.today-exp-admin button {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(17,17,16,.72);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 11px;
  cursor: pointer;
}
.photo-notice { background: rgba(255,250,243,.62); border: 1px solid rgba(117,91,0,.12); border-radius: 18px; margin: 0 12px 12px; padding: 11px 13px; font-size: 11px; color: var(--mid); line-height: 1.5; }
.group-avatar-img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--rule); }
.group-avatar-letter { width: 66px; height: 66px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; flex-shrink: 0; }
.avatar-pick-area { width: 78px; height: 78px; border-radius: 28px; background: var(--surface); border: 2px dashed rgba(201,168,76,.35); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.avatar-pick-area img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.group-hero-card,
.group-card,
.group-member-card {
  margin: 12px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.45), transparent 52%),
    var(--card);
  border: 1px solid rgba(201,168,76,.16);
  box-shadow: 0 16px 38px rgba(8,16,24,.055);
}
.group-hero-card {
  padding: 17px;
}
.group-hero-card p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.65;
}
.group-hero-card div {
  margin-top: 12px;
  border-radius: 18px;
  background: rgba(206,17,38,.06);
  border: 1px solid rgba(206,17,38,.10);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--dim);
}
.group-intro-card {
  padding: 18px;
}
.group-form-title {
  font-size: 19px;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.group-form-copy {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 15px;
}
.group-avatar-row,
.group-profile-row,
.group-member-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.group-avatar-row {
  margin-bottom: 15px;
}
.group-avatar-copy {
  flex: 1;
  min-width: 0;
}
.group-avatar-copy div {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.group-avatar-copy span {
  color: var(--dim);
  font-weight: 500;
}
.group-avatar-copy p {
  margin-top: 3px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}
.group-field {
  width: 100%;
  background: rgba(255,255,255,.42);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 13px 14px;
  font-family: var(--ff);
  font-size: 15px;
  color: var(--text);
  outline: none;
  margin-bottom: 9px;
}
.group-field:focus {
  border-color: rgba(201,168,76,.55);
  box-shadow: 0 0 0 3px rgba(201,168,76,.10);
}
.group-submit-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 20px;
  background: linear-gradient(135deg, #CE1126, #EC4657);
  border: none;
  color: #fff;
  font-family: var(--ff);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(206,17,38,.20);
}
.group-profile-card {
  overflow: hidden;
}
.group-profile-row {
  padding: 14px;
}
.group-profile-main,
.group-member-main {
  flex: 1;
  min-width: 0;
}
.group-kicker {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.group-name {
  font-size: 15px;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -.01em;
}
.group-from,
.group-location {
  font-size: 12px;
  color: var(--mid);
  margin-top: 3px;
}
.group-location {
  display: flex;
  align-items: center;
  gap: 4px;
}
.group-quote {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 13px;
  color: var(--gold);
  margin-top: 6px;
  font-style: italic;
  line-height: 1.45;
}
.group-card-actions {
  border-top: 1px solid rgba(201,168,76,.16);
  padding: 0;
}
.group-remove-btn {
  width: 100%;
  min-height: 42px;
  background: none;
  border: none;
  color: var(--dim);
  font-family: var(--ff);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.group-member-card {
  padding: 14px;
}
#group-list > div:first-child:last-child:not(.group-member-card) {
  margin: 12px;
  border-radius: 24px;
  background: var(--card);
  border: 1px dashed var(--rule);
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) .group-field {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.15);
    color: var(--text);
  }
  html:not(.theme-light) .group-field::placeholder {
    color: rgba(235,235,245,.50);
  }
  html:not(.theme-light) .group-hero-card,
  html:not(.theme-light) .group-card,
  html:not(.theme-light) .group-member-card {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.10), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.045), transparent 58%),
      #1a1a1c;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.32);
  }
}
/* ── DRIVE ETA ── */
.drive-eta-pill { display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#228B57; }
/* ── NEARBY ESSENTIALS ── */
.ess-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:16px 14px; }
.ess-btn { background:transparent;border:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;font-family:var(--ff);color:var(--text); }
.ess-btn:active { opacity:.72; }
.ess-icon { width:78px;height:78px;border-radius:22px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(180deg,var(--ess-a),var(--ess-b));box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 10px 22px rgba(0,0,0,.14);position:relative;overflow:hidden; }
.ess-icon::before { content:''; position:absolute; inset:7px; border:2px solid rgba(255,255,255,.26); border-radius:18px; }
.ess-icon::after { content:''; position:absolute; width:18px; height:18px; right:8px; bottom:8px; border-radius:50%; background:rgba(255,255,255,.85); box-shadow:0 0 0 1px rgba(255,255,255,.2); }
.ess-icon .material-symbols-outlined { font-size:36px; font-variation-settings:'FILL' 0,'wght' 600,'GRAD' 0,'opsz' 36; position:relative; z-index:1; }
.ess-label { font-size:12px;font-weight:800;color:var(--text);letter-spacing:.06em;text-transform:uppercase;text-align:center;line-height:1.2; }
.ess-btn[data-tone="sky"] .ess-icon { --ess-a:#8ee2ff; --ess-b:#1579ee; }
.ess-btn[data-tone="red"] .ess-icon { --ess-a:#ff8178; --ess-b:#c90922; }
.ess-btn[data-tone="green"] .ess-icon { --ess-a:#7be48a; --ess-b:#168c3d; }
.ess-btn[data-tone="blue"] .ess-icon { --ess-a:#7abaff; --ess-b:#3150d3; }
.ess-btn[data-tone="amber"] .ess-icon { --ess-a:#ffd874; --ess-b:#b87c13; }
.ess-btn[data-tone="purple"] .ess-icon { --ess-a:#cf9aff; --ess-b:#6840d5; }
.ess-btn[data-tone="orange"] .ess-icon { --ess-a:#ffc065; --ess-b:#df6818; }
.ess-state {
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}
.ess-state .material-symbols-outlined {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--mid);
}
.ess-result-card {
  background: var(--card);
  border-bottom: 1px solid var(--rule2);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ess-result-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ess-color) 14%, transparent);
  color: var(--ess-color);
  display: grid;
  place-items: center;
  flex: 0 0 38px;
}
.ess-result-icon .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings:'FILL' 0,'wght' 650,'GRAD' 0,'opsz' 24;
}
.ess-result-main {
  flex: 1;
  min-width: 0;
}
.ess-place-name,
.ess-address {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ess-place-name {
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
}
.ess-address {
  font-size: 11px;
  color: var(--mid);
  margin-top: 2px;
}
.ess-distance,
.ess-hours {
  font-size: 11px;
  font-weight: 750;
  margin-top: 3px;
}
.ess-distance { color: var(--ess-color); }
.ess-hours { color: var(--dim); }
.ess-hours.is-open { color: #2E8B57; }
.ess-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ess-actions a {
  padding: 7px 11px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .04em;
}
.ess-actions a + a { background: var(--card2); }
/* ── QUIZ ── */
.quiz-answer { width:100%;background:var(--card);border:1px solid var(--rule);padding:13px 16px;margin:0 0 8px;font-size:13px;font-weight:500;color:var(--text);cursor:pointer;text-align:left;font-family:var(--ff);-webkit-tap-highlight-color:transparent;transition:background .1s;display:block; }
.quiz-answer:active { background:var(--card2); }
.quiz-answer.correct { background:rgba(34,139,87,.12);border-color:#228B57;color:#228B57;font-weight:700; }
.quiz-answer.wrong { background:rgba(206,17,38,.08);border-color:var(--red);color:var(--red); }
.quiz-answer.show-correct { background:rgba(34,139,87,.07);border-color:#228B57; }

/* ── SASHA TOUR GRID — 1-col iPhone, 2-col tablet ── */
#scr-sasha {
  background:
    radial-gradient(circle at top right, rgba(206,17,38,.06), transparent 24%),
    radial-gradient(circle at top left, rgba(201,168,76,.06), transparent 22%),
    linear-gradient(180deg, rgba(17,17,16,.02), transparent 180px),
    var(--bg);
}
.sasha-hero {
  position: relative;
  margin: 12px 12px 14px;
  padding: 22px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), transparent 38%),
    var(--card);
  border: 1px solid var(--rule);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(8,16,24,.07);
  overflow: hidden;
}
.sasha-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 110px;
  background:
    linear-gradient(135deg, rgba(206,17,38,.12), rgba(201,168,76,.08) 56%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.sasha-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sasha-avatar {
  width: 96px;
  height: 96px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  border: 1px solid rgba(255,255,255,.82);
}
.sasha-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 14px 0 8px;
}
.sasha-name {
  font-size: 31px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1.02;
  max-width: 11ch;
}
.sasha-name em {
  font-style: normal;
  font-weight: 600;
  color: var(--mid);
}
.sasha-role {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.sasha-markets {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
  margin-top: 4px;
}
.sasha-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}
.sasha-hero-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent;
}
.sasha-hero-action.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 28px rgba(206,17,38,.2);
}
.sasha-hero-action.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rule);
}
.sasha-stats {
  margin: 0 12px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sasha-help-card {
  margin: 0 12px 16px;
  border: 1px solid rgba(206,17,38,0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(206,17,38,0.14), transparent 34%),
    var(--card);
  box-shadow: 0 18px 44px rgba(15,23,42,0.08);
  overflow: hidden;
}
.sasha-help-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 4px;
}
.sasha-help-head img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 10px 22px rgba(15,23,42,0.13);
  flex-shrink: 0;
}
.sasha-help-kicker {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sasha-help-title {
  max-width: 520px;
  color: var(--text);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.sasha-help-copy {
  max-width: 560px;
  margin-top: 7px;
  color: var(--mid);
  font-size: 13px;
  line-height: 1.5;
}
.sasha-support-shortcuts {
  margin: 12px;
}
.sasha-help-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}
.sasha-help-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: var(--red);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid var(--rule);
}
.sasha-help-actions a:last-child {
  border-right: 0;
}
.sasha-stat {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  text-align: center;
  padding: 15px 10px 13px;
  box-shadow: 0 14px 28px rgba(8,16,24,.05);
}
.sasha-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.04em;
}
.sasha-stat-label {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.sasha-card {
  margin: 0 12px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 18px 36px rgba(8,16,24,.05);
}
.sasha-card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.sasha-card-title {
  font-size: 25px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.sasha-rule {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 999px;
  margin-bottom: 14px;
}
.sasha-copy {
  font-size: 15px;
  color: var(--text);
  opacity: .84;
  line-height: 1.72;
}
.sasha-copy + .sasha-copy { margin-top: 12px; }
.sasha-highlights {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.sasha-highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--rule2);
}
.sasha-highlight:first-child { border-top: none; padding-top: 0; }
.sasha-highlight-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(201,168,76,.16);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}
.sasha-highlight-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.sasha-highlight-copy {
  margin-top: 2px;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
}
.sasha-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.sasha-promo {
  margin: 0 12px 14px;
  padding: 20px 18px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.14), transparent 28%),
    linear-gradient(180deg, rgba(206,17,38,.05), rgba(255,255,255,.92) 56%),
    var(--card);
  color: var(--text);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 36px rgba(8,16,24,.05);
}
.sasha-promo .sasha-card-kicker { color: var(--red); position: relative; z-index: 1; }
.sasha-promo-title {
  position: relative;
  z-index: 1;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--text);
}
.sasha-promo-title em { color: var(--gold); font-style: normal; font-weight: 700; }
.sasha-promo-copy {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}
.sasha-simple-offer {
  margin-top: 16px;
  padding: 16px 15px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(201,168,76,.32);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}
.sasha-simple-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.05em;
  line-height: 1;
}
.sasha-simple-copy {
  margin-top: 8px;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
}
.sasha-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.sasha-perk {
  background: rgba(255,255,255,.74);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
}
.sasha-perk-value {
  font-size: 23px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.04em;
}
.sasha-perk-value.alt {
  font-family: var(--ff);
  font-size: 14px;
  color: var(--text);
  letter-spacing: -.02em;
}
.sasha-perk-value.alt-tight {
  font-size: 13px;
  line-height: 1.3;
}
.sasha-perk-label {
  font-size: 10px;
  color: var(--dim);
  line-height: 1.45;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.sasha-notice {
  margin-top: 12px;
  background: rgba(255,159,10,.09);
  border: 1px solid rgba(255,159,10,.18);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.sasha-notice-ico {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,159,10,.14);
  color: var(--ios-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  flex-shrink: 0;
}
.sasha-notice-copy {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.65;
}
.sasha-notice-copy strong { color: var(--text); }
.sasha-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  border-radius: 15px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(206,17,38,.2);
  position: relative;
  z-index: 1;
}
.sasha-cta-sub {
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  line-height: 1.7;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.sasha-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.sasha-tour-card {
  display: block; text-decoration: none; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 36px rgba(8,16,24,.05);
  transition: opacity .1s, transform .1s;
  margin: 0 12px 14px;
}
.sasha-tour-card:active { opacity: .9; transform: translateY(1px); }
.sasha-tour-media {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background: #111;
}
.sasha-tour-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sasha-tour-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.84) 0%, rgba(0,0,0,.18) 54%, transparent 78%);
}
.sasha-tour-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 5px 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.sasha-tour-meta {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 1;
}
.sasha-tour-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
  margin-bottom: 5px;
}
.sasha-tour-title {
  font-family: 'Noto Serif', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.sasha-tour-body {
  padding: 16px 16px 18px;
}
.sasha-tour-copy {
  font-size: 13px;
  color: var(--text);
  opacity: .78;
  line-height: 1.7;
}
.sasha-testimonial {
  margin: 0 12px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 30px rgba(8,16,24,.05);
}
.sasha-testimonial-quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}
.sasha-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.sasha-testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sasha-testimonial-meta {
  font-size: 12px;
  color: var(--dim);
}
.sasha-brand {
  margin: 0 12px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 16px 30px rgba(8,16,24,.05);
}
.sasha-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.sasha-brand-head img {
  height: 28px;
  width: auto;
  display: block;
}
.sasha-brand-meta {
  font-size: 11px;
  color: var(--dim);
}
.sasha-contact-wrap {
  margin: 0 12px 8px;
}
@media (min-width: 520px) {
  #sasha-tours-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    padding: 0 12px;
  }
  .sasha-tour-card {
    margin: 0;
  }
}
@media (max-width: 430px) {
  .sasha-hero { margin: 10px 10px 14px; padding: 20px 16px 16px; border-radius: 24px; }
  .sasha-avatar { width: 88px; height: 88px; border-radius: 28px; }
  .sasha-name { font-size: 29px; }
  .sasha-hero-actions { gap: 8px; }
  .sasha-help-card { margin-left: 10px; margin-right: 10px; border-radius: 22px; }
  .sasha-help-head { padding: 16px 14px 2px; }
  .sasha-help-title { font-size: 20px; }
  .sasha-help-head img { width: 50px; height: 50px; border-radius: 16px; }
  .sasha-stats { margin: 0 10px 14px; }
  .sasha-stat { padding: 14px 8px 12px; border-radius: 18px; }
  .sasha-stat-value { font-size: 24px; }
  .sasha-card,
  .sasha-promo,
  .sasha-brand,
  .sasha-tour-card,
  .sasha-testimonial { margin-left: 10px; margin-right: 10px; }
  .sasha-card-title,
  .sasha-promo-title { font-size: 27px; }
  .sasha-tour-title { font-size: 23px; }
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #scr-sasha {
    background:
      radial-gradient(circle at top right, rgba(206,17,38,.14), transparent 26%),
      radial-gradient(circle at top left, rgba(201,168,76,.1), transparent 22%),
      linear-gradient(180deg, rgba(255,255,255,.02), transparent 220px),
      var(--bg);
  }
  html:not(.theme-light) .sasha-hero,
  html:not(.theme-light) .sasha-card,
  html:not(.theme-light) .sasha-promo,
  html:not(.theme-light) .sasha-tour-card,
  html:not(.theme-light) .sasha-testimonial,
  html:not(.theme-light) .sasha-brand {
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
  }
  html:not(.theme-light) .sasha-stat {
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
  }
  html:not(.theme-light) .sasha-tour-copy,
  html:not(.theme-light) .sasha-copy,
  html:not(.theme-light) .sasha-testimonial-quote { color: var(--text); opacity: .8; }
  html:not(.theme-light) .sasha-hero-action.secondary,
  html:not(.theme-light) .sasha-cta-secondary,
  html:not(.theme-light) .sasha-perk {
    border-color: rgba(255,255,255,.08);
  }
  html:not(.theme-light) .sasha-promo {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.16), transparent 30%),
      linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01) 46%),
      #1c1c1e;
  }
  html:not(.theme-light) .sasha-promo-copy,
  html:not(.theme-light) .sasha-cta-sub,
  html:not(.theme-light) .sasha-notice-copy,
  html:not(.theme-light) .sasha-perk-label {
    color: rgba(255,255,255,.78);
  }
  html:not(.theme-light) .sasha-notice-copy strong,
  html:not(.theme-light) .sasha-perk-value,
  html:not(.theme-light) .sasha-perk-value.alt {
    color: #fff;
  }
  html:not(.theme-light) .sasha-perk {
    background: rgba(255,255,255,.06);
  }
  html:not(.theme-light) .sasha-notice {
    background: rgba(255,159,10,.12);
    border-color: rgba(255,159,10,.22);
  }
  html:not(.theme-light) .sasha-notice-ico {
    background: rgba(255,159,10,.2);
  }
}

/* ── MISC ── */
.spacer { height: 8px; }
.full-spacer { height: 24px; }
.back-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--rule);
  font-size: 13px; font-weight: 600; color: var(--red);
  background: var(--card); cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── TABLET ADAPTATIONS ── */
@media (min-width: 600px) {
  #hotel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 16px; }
  .hotel-card { margin: 0; }
  #weather-route-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  #weather-route-results .weather-route-title { grid-column: 1 / -1; }
  .w-card { margin-bottom: 0; }
}

/* ══════════════════════════════
   ITINERARY — exact intro.html styles
══════════════════════════════ */
/* ── ITINERARY INTRO ── */
.itin-intro { padding: 20px 16px 18px; border-bottom: 1px solid var(--rule); }
.itin-intro-eye { font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.itin-intro-eye span { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(206,17,38,.4), transparent); max-width: 60px; }
.itin-intro-h { font-family: 'Noto Serif', serif; font-size: 22px; font-weight: 750; color: var(--text); line-height: 1.14; margin-bottom: 8px; }
.itin-intro-h em { font-style: italic; color: var(--mid); font-weight: 400; }
.itin-intro-p { font-size: 13px; line-height: 1.58; color: var(--mid); }

/* ── DAY ROWS ── */
.i-day {
  margin: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.i-trigger { width: 100%; background: none; border: none; cursor: pointer; padding: 0; text-align: left; -webkit-tap-highlight-color: transparent; display: block; }
.i-tg { display: grid; grid-template-columns: 58px 1fr 34px; align-items: center; min-height: 64px; transition: background .15s; }
.i-trigger:active .i-tg, .i-day.open .i-tg { background: rgba(206,17,38,.035); }

.i-tg-num {
  padding: 10px 8px 10px 13px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 64px;
  border-right: 1px solid var(--rule);
  transition: border-color .2s;
}
.i-day.open .i-tg-num { border-right-color: var(--red); }

.i-n { font-family: 'Noto Serif', serif; font-size: 21px; font-weight: 750; color: var(--red); line-height: 1; }
.i-d { font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 3px; }

.i-tg-info { padding: 10px 8px 10px 12px; }
.i-city { font-family: var(--ff); font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.24; }
.i-sub { font-size: 11px; color: var(--mid); margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.i-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.i-tag { padding: 3px 7px; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.i-ti { background: rgba(13,27,42,.08); color: #1A2E44; }
.i-te { background: rgba(201,168,76,.13); color: #7A5E10; }
.i-tm { background: rgba(30,100,50,.09); color: #1A5C2A; }
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) .i-ti { background: rgba(255,255,255,.08); color: var(--mid); }
  html:not(.theme-light) .i-te { background: rgba(201,168,76,.15); color: var(--gold); }
  html:not(.theme-light) .i-tm { background: rgba(30,100,50,.15); color: #4CAF70; }
}

.i-tg-arr { display: flex; align-items: center; justify-content: center; padding-right: 4px; }
.i-arr { width: 22px; height: 22px; border: 1.5px solid var(--rule); display: flex; align-items: center; justify-content: center; transition: all .22s; }
.i-arr svg { width: 9px; height: 9px; stroke: var(--dim); transition: transform .26s; fill: none; stroke-width: 2.5; }
.i-day.open .i-arr { border-color: var(--red); background: var(--red); }
.i-day.open .i-arr svg { stroke: #fff; transform: rotate(180deg); }

/* ── PANEL ── */
.i-panel { overflow: hidden; max-height: 0; transition: max-height .5s cubic-bezier(.22,1,.36,1); }
.i-day.open .i-panel { max-height: 9999px; }
.i-panel-inner { background: var(--card); border-top: 1px solid var(--rule); padding: 8px 0 10px; }

/* ── TIME-OF-DAY BLOCKS ── */
.i-tod-list { display: grid; gap: 8px; padding: 0 10px; }
.i-tod {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--rule2);
  background: var(--card2);
  padding: 11px 12px;
}
.i-tod:last-child { border-bottom: 1px solid var(--rule2); }

.i-tod-label { width: auto; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0; align-self: start; min-width: 0; }
.i-tod-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.i-tod-icon svg { width: 12px; height: 12px; fill: none; stroke-width: 1.8; }
.i-tod-icon.am { background: rgba(201,168,76,.18); }
.i-tod-icon.am svg { stroke: #A07820; }
.i-tod-icon.pm { background: rgba(206,17,38,.1); }
.i-tod-icon.pm svg { stroke: var(--red); }
.i-tod-icon.eve { background: rgba(13,27,42,.12); }
.i-tod-icon.eve svg { stroke: #0D1B2A; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .i-tod-icon.eve { background: rgba(255,255,255,.08); } html:not(.theme-light) .i-tod-icon.eve svg { stroke: var(--mid); } }
.i-tod-time { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text); line-height: 1.2; overflow-wrap: anywhere; }

.i-tod-body { flex: 1; min-width: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* Included text */
.i-tod-main { font-size: 13px; line-height: 1.58; color: var(--mid); padding-left: 0; border-left: 0; }
.i-tod-main em { font-style: italic; color: var(--red); }

/* Meal badge */
.i-meal { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; background: rgba(13,27,42,.05); border: 1px solid rgba(13,27,42,.1); font-size: 10px; font-weight: 600; color: var(--text); margin-right: 4px; }
.i-meal svg { width: 9px; height: 9px; stroke: currentColor; fill: none; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .i-meal { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); } }

/* Optional experience */
.i-opt { display: block; background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.18); border-left: 3px solid var(--gold); padding: 9px 10px; }
.i-opt-name { font-family: var(--ff); font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 3px; line-height: 1.25; }
.i-opt-desc { font-size: 13px; line-height: 1.55; color: var(--mid); }
.i-opt-desc em { font-style: italic; color: var(--text); }

/* Make Travel Matter */
.i-mtm { display: flex; align-items: flex-start; gap: 8px; background: #0D1B2A; padding: 9px 11px; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .i-mtm { background: rgba(255,255,255,.06); } }
.i-mtm-dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.i-mtm-lbl { font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1px; }
.i-mtm-name { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.3; }

/* ── DAY-PAGE BUTTON ── */
.i-day-btn-wrap { display: none; }
.i-day-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; border: none; cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--ff); transition: opacity .15s, transform .15s;
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.i-day-btn.active { background: var(--red); color: #fff; }
.i-day-btn.active:active { opacity: .86; transform: translateY(1px); }
.i-day-btn.locked { background: var(--surface); color: var(--dim); cursor: default; border: 1px solid var(--rule); }
.i-day-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; flex-shrink: 0; }

.seatplan-card {
  margin: 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}
.seatplan-top {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--rule);
}
.seatplan-kicker {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.seatplan-title {
  font-family: 'Noto Serif', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: 8px;
  line-height: 1.12;
}
.seatplan-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mid);
  margin-bottom: 10px;
}
.seatplan-instructions {
  margin-top: 10px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.55;
}
.seatplan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}
.seatplan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}
.seatplan-pill span {
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 900;
}
.seatplan-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 10px;
}
.seatplan-btn,
.seatplan-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  font-family: var(--ff);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.seatplan-btn { background: #df0b27; color: #fff; }
.seatplan-btn:disabled {
  opacity: .62;
  cursor: default;
}
.seatplan-btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--rule); }
.seatplan-btn svg,
.seatplan-btn-ghost svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
}
.seatplan-note {
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.55;
}
.seatplan-empty {
  margin: 12px 0 0;
  padding: 20px 16px;
  background: var(--card);
  border: 1px dashed var(--rule);
  color: var(--dim);
  font-size: 13px;
  line-height: 1.65;
}
.seatplan-panel-card {
  background: var(--card);
  border: 1px solid var(--rule);
  margin: 12px;
  padding: 16px;
}
.seatplan-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.seatplan-panel-copy {
  font-size: 13px;
  line-height: 1.65;
  color: var(--mid);
}
.seatplan-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.seatplan-frame-wrap {
  margin: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.seatplan-frame {
  width: 100%;
  height: 72vh;
  border: none;
  background: #fff;
}

/* ── TOOLS · APP LAUNCHER MODE ── */
#scr-tools {
  background:
    linear-gradient(180deg, rgba(206,17,38,.06), transparent 190px),
    var(--bg);
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #scr-tools {
    background:
      radial-gradient(circle at 100% 0%, rgba(206,17,38,.18), transparent 27%),
      radial-gradient(circle at 0 18%, rgba(224,184,90,.14), transparent 30%),
      linear-gradient(180deg, #10100f 0%, #080808 46%, #050505 100%) !important;
    --ed-text: #f8f5ef;
    --ed-muted: rgba(248,245,239,.68);
    --ed-gold: #e0b85a;
    --ed-red: #ff4056;
  }
  html:not(.theme-light) #scr-tools .ed-title,
  html:not(.theme-light) #scr-tools .tool-app-label {
    color: #f8f5ef !important;
  }
  html:not(.theme-light) #scr-tools .ed-kicker,
  html:not(.theme-light) #tools-grid::before {
    color: #e0b85a !important;
  }
}
#scr-tools .ed-header {
  padding: 22px 18px 8px;
}
#scr-tools .ed-title {
  font-size: 34px;
}
#tools-grid {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 22px clamp(10px, 3.4vw, 34px);
  padding: 14px 18px 28px;
  align-items: start;
  justify-content: center;
}
#tools-grid::before {
  content: 'Tools';
  grid-column: 1 / -1;
  padding: 0 2px 2px;
}
#tools-grid .tool-app {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 90px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  overflow: visible !important;
  text-align: center;
}
#tools-grid .tool-app[hidden],
#tools-grid [data-tool-id][hidden] {
  display: none !important;
}
#tools-grid .tool-app::before {
  display: none;
}
.tool-app-icon {
  --icon-a: #8b99a8;
  --icon-b: #425062;
  --icon-c: rgba(255,255,255,.34);
  width: 62px;
  height: 62px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.55), transparent 20px),
    linear-gradient(160deg, var(--icon-a), var(--icon-b));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -10px 18px rgba(0,0,0,.16),
    0 8px 18px rgba(0,0,0,.16);
}
.tool-app-icon::before,
.tool-app-icon::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.tool-app-icon::before {
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 38%, rgba(0,0,0,.1) 100%);
  mix-blend-mode: screen;
}
.tool-app-icon::after {
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 1px;
  background: rgba(255,255,255,.28);
  box-shadow: 0 -24px rgba(255,255,255,.10), 0 -12px rgba(255,255,255,.14);
}
.tool-app-glyph-bg,
.tool-app-badge {
  position: absolute;
  pointer-events: none;
}
.tool-app-glyph-bg {
  inset: 9px;
  border-radius: 14px;
  opacity: .82;
}
.tool-app-badge {
  right: 8px;
  bottom: 8px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  opacity: .92;
}
.tool-app-icon .material-symbols-outlined {
  font-size: 31px;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.tool-app-label {
  width: 100%;
  max-width: 76px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.tool-rename-btn {
  position: absolute;
  top: -8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(27,28,26,.12);
  background: rgba(255,255,255,.96);
  color: var(--text);
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 5;
}
.tool-rename-btn .material-symbols-outlined {
  font-size: 15px;
}
.ed-grid.is-admin-reorder .tool-rename-btn {
  display: flex;
}
.ed-grid.is-admin-reorder .tool-app-label {
  font-weight: 750;
}
.tool-app[data-tone="sky"] .tool-app-icon { --icon-a:#8ee2ff; --icon-b:#1579ee; }
.tool-app[data-tone="green"] .tool-app-icon { --icon-a:#7be48a; --icon-b:#168c3d; }
.tool-app[data-tone="blue"] .tool-app-icon { --icon-a:#7abaff; --icon-b:#3150d3; }
.tool-app[data-tone="red"] .tool-app-icon { --icon-a:#ff8178; --icon-b:#c90922; }
.tool-app[data-tone="purple"] .tool-app-icon { --icon-a:#cf9aff; --icon-b:#6840d5; }
.tool-app[data-tone="pink"] .tool-app-icon { --icon-a:#ffa4d2; --icon-b:#dc3a8b; }
.tool-app[data-tone="gold"] .tool-app-icon { --icon-a:#f6cf68; --icon-b:#9b6d16; }
.tool-app[data-tone="orange"] .tool-app-icon { --icon-a:#ffc065; --icon-b:#df6818; }
.tool-app[data-tone="slate"] .tool-app-icon { --icon-a:#a7b3c0; --icon-b:#3f4c5e; }
.tool-app[data-tone="indigo"] .tool-app-icon { --icon-a:#93a6ff; --icon-b:#3847cf; }
.tool-app[data-tone="teal"] .tool-app-icon { --icon-a:#68e0d7; --icon-b:#0e858b; }
.tool-app[data-tone="amber"] .tool-app-icon { --icon-a:#ffd874; --icon-b:#b87c13; }
.tool-app[data-tone="coral"] .tool-app-icon { --icon-a:#ffa084; --icon-b:#ce4133; }
.tool-app[data-tone="violet"] .tool-app-icon { --icon-a:#be9dff; --icon-b:#653dc5; }

.tool-app[data-tool-id="weather"] .tool-app-icon {
  background:
    radial-gradient(circle at 32% 34%, #fff7a8 0 9px, transparent 10px),
    radial-gradient(circle at 72% 70%, rgba(255,255,255,.9) 0 11px, transparent 12px),
    linear-gradient(160deg, #8fe4ff, #1678ee);
}
.tool-app[data-tool-id="weather"] .tool-app-glyph-bg {
  border: 1.5px solid rgba(255,255,255,.65);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(22deg) scale(.92);
}
.tool-app[data-tool-id="weather"] .tool-app-badge { background: #fff06a; }

.tool-app[data-tool-id="rates"] .tool-app-icon {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.13) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #70e188, #13833a);
}
.tool-app[data-tool-id="rates"] .tool-app-glyph-bg {
  border: 2px solid rgba(255,255,255,.34);
  transform: rotate(-7deg);
}
.tool-app[data-tool-id="rates"] .tool-app-badge { background: #d9ffe1; }

.tool-app[data-tool-id="map"] .tool-app-icon {
  background:
    linear-gradient(90deg, transparent 31%, rgba(255,255,255,.2) 31% 34%, transparent 34% 64%, rgba(255,255,255,.18) 64% 67%, transparent 67%),
    linear-gradient(160deg, #86c7ff, #3054d8);
}
.tool-app[data-tool-id="map"] .tool-app-glyph-bg {
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 10px;
  transform: perspective(70px) rotateY(-18deg);
}
.tool-app[data-tool-id="map"] .tool-app-badge { background: #e8f3ff; }

.tool-app[data-tool-id="essentials"] .tool-app-icon {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 16px, rgba(255,255,255,.18) 17px 18px, transparent 19px),
    linear-gradient(160deg, #ff8a82, #cf1026);
}
.tool-app[data-tool-id="essentials"] .tool-app-glyph-bg {
  border: 1.5px dashed rgba(255,255,255,.4);
}
.tool-app[data-tool-id="essentials"] .tool-app-badge { background: #fff; }

.tool-app[data-tool-id="translate"] .tool-app-icon {
  background:
    linear-gradient(135deg, rgba(255,255,255,.24) 0 34%, transparent 34%),
    linear-gradient(160deg, #d59dff, #6540d2);
}
.tool-app[data-tool-id="translate"] .tool-app-glyph-bg {
  background: rgba(255,255,255,.16);
  transform: translate(-7px,-3px) rotate(-9deg);
}
.tool-app[data-tool-id="translate"] .tool-app-badge { background: #f5eaff; }

.tool-app[data-tool-id="photos"] .tool-app-icon {
  background:
    radial-gradient(circle at 70% 28%, rgba(255,255,255,.72) 0 5px, transparent 6px),
    linear-gradient(160deg, #ffa8d5, #d83889);
}
.tool-app[data-tool-id="photos"] .tool-app-glyph-bg {
  border: 2px solid rgba(255,255,255,.48);
  box-shadow: -7px 6px 0 rgba(255,255,255,.14);
  transform: rotate(-5deg);
}
.tool-app[data-tool-id="photos"] .tool-app-badge { background: #fff0f8; }

.tool-app[data-tool-id="journal"] .tool-app-icon {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,.2) 48% 52%, transparent 52%),
    linear-gradient(160deg, #ffd874, #b87c13);
}
.tool-app[data-tool-id="journal"] .tool-app-glyph-bg {
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 5px 13px 13px 5px;
  box-shadow: -7px 6px 0 rgba(255,255,255,.12);
  transform: rotate(-4deg);
}
.tool-app[data-tool-id="journal"] .tool-app-badge { background: #fff4cc; }

.tool-app[data-tool-id="tips"] .tool-app-icon {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 8px, transparent 8px 15px),
    linear-gradient(160deg, #f7d270, #976810);
}
.tool-app[data-tool-id="tips"] .tool-app-glyph-bg {
  border: 2px solid rgba(255,255,255,.36);
  border-radius: 8px;
  transform: rotate(4deg);
}
.tool-app[data-tool-id="tips"] .tool-app-badge { background: #fff4c7; }

.tool-app[data-tool-id="packing"] .tool-app-icon {
  background:
    linear-gradient(0deg, rgba(255,255,255,.16) 0 18px, transparent 18px),
    linear-gradient(160deg, #ffc16a, #dc6818);
}
.tool-app[data-tool-id="packing"] .tool-app-glyph-bg {
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 8px;
  inset: 14px 12px 10px;
}
.tool-app[data-tool-id="packing"] .tool-app-badge { background: #fff0dd; }

.tool-app[data-tool-id="faq"] .tool-app-icon {
  background:
    radial-gradient(circle at 25% 75%, rgba(255,255,255,.16), transparent 18px),
    linear-gradient(160deg, #a8b4c1, #3e4b5c);
}
.tool-app[data-tool-id="faq"] .tool-app-glyph-bg {
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 7px;
}
.tool-app[data-tool-id="faq"] .tool-app-badge { background: #eef3f8; }

.tool-app[data-tool-id="movies"] .tool-app-icon {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 4px, transparent 4px 11px),
    linear-gradient(160deg, #98a9ff, #3745ce);
}
.tool-app[data-tool-id="movies"] .tool-app-glyph-bg {
  border-radius: 999px;
  background: rgba(255,255,255,.17);
}
.tool-app[data-tool-id="movies"] .tool-app-badge { background: #eef0ff; }

.tool-app[data-tool-id="spotify"] .tool-app-icon {
  background:
    radial-gradient(circle at 33% 72%, transparent 0 16px, rgba(255,255,255,.22) 17px 18px, transparent 19px),
    linear-gradient(160deg, #80e28c, #158e3e);
}
.tool-app[data-tool-id="spotify"] .tool-app-glyph-bg {
  border-left: 2px solid rgba(255,255,255,.3);
  border-bottom: 2px solid rgba(255,255,255,.26);
  transform: rotate(-12deg);
}
.tool-app[data-tool-id="spotify"] .tool-app-badge { background: #dfffdf; }

.tool-app[data-tool-id="photomap"] .tool-app-icon {
  background:
    linear-gradient(90deg, transparent 31%, rgba(255,255,255,.19) 31% 35%, transparent 35% 63%, rgba(255,255,255,.16) 63% 67%, transparent 67%),
    linear-gradient(160deg, #6fe2db, #0f858c);
}
.tool-app[data-tool-id="photomap"] .tool-app-glyph-bg {
  border: 1.5px solid rgba(255,255,255,.34);
  transform: rotate(8deg);
}
.tool-app[data-tool-id="photomap"] .tool-app-badge { background: #e1fffb; }

.tool-app[data-tool-id="memory"] .tool-app-icon {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,.22) 48% 52%, transparent 52%),
    linear-gradient(160deg, #ffdc78, #b97b12);
}
.tool-app[data-tool-id="memory"] .tool-app-glyph-bg {
  border: 2px solid rgba(255,255,255,.42);
  border-radius: 4px 12px 12px 4px;
  transform: rotate(-4deg);
}
.tool-app[data-tool-id="memory"] .tool-app-badge { background: #fff4cc; }

.tool-app[data-tool-id="group"] .tool-app-icon {
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,.36) 0 9px, transparent 10px),
    radial-gradient(circle at 67% 38%, rgba(255,255,255,.28) 0 8px, transparent 9px),
    radial-gradient(circle at 49% 68%, rgba(255,255,255,.22) 0 14px, transparent 15px),
    linear-gradient(160deg, #ffa284, #cb4132);
}
.tool-app[data-tool-id="group"] .tool-app-glyph-bg { opacity: 0; }
.tool-app[data-tool-id="group"] .tool-app-badge { background: #fff1e9; }

.tool-app[data-tool-id="quiz"] .tool-app-icon {
  background:
    radial-gradient(circle at 76% 25%, rgba(255,255,255,.24) 0 5px, transparent 6px),
    radial-gradient(circle at 24% 72%, rgba(255,255,255,.18) 0 4px, transparent 5px),
    linear-gradient(160deg, #c2a0ff, #633cc2);
}
.tool-app[data-tool-id="quiz"] .tool-app-glyph-bg {
  border: 2px solid rgba(255,255,255,.34);
  transform: rotate(6deg);
}
.tool-app[data-tool-id="quiz"] .tool-app-badge { background: #f1eaff; }

.tool-app[data-tool-id="share"] .tool-app-icon {
  background:
    radial-gradient(circle at 75% 48%, transparent 0 13px, rgba(255,255,255,.2) 14px 15px, transparent 16px),
    linear-gradient(160deg, #ff8178, #c90922);
}
.tool-app[data-tool-id="share"] .tool-app-glyph-bg {
  border-right: 2px solid rgba(255,255,255,.34);
  border-radius: 999px;
  transform: translateX(8px);
}
.tool-app[data-tool-id="share"] .tool-app-badge { background: #fff0f0; }
.ed-grid.is-admin-reorder .tool-app::after {
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 641px) {
  #tools-grid {
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    gap: 34px 44px;
    padding: 22px 32px 36px;
  }
  #tools-grid .tool-app {
    justify-self: center;
    width: 104px;
  }
  .tool-app-icon {
    width: 70px;
    height: 70px;
    border-radius: 19px;
  }
}
@media (max-width: 380px) {
  #tools-grid {
    gap: 16px 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .tool-app-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }
  .tool-app-icon .material-symbols-outlined {
    font-size: 29px;
  }
}


/* ── MEETING POINTS ── */
.meet-pin-wrap { margin-top:8px; }
.meet-pin-wrap > summary { list-style:none; display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:6px 10px 6px 8px; border:1px solid rgba(201,168,76,.24); background:rgba(201,168,76,.08); color:var(--gold); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.meet-pin-wrap > summary::-webkit-details-marker { display:none; }
.meet-pin-wrap[open] > summary { margin-bottom:8px; }
.meet-pin-signal { width:22px; height:22px; border-radius:8px; background:var(--gold); color:#111; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.meet-pin-signal .material-symbols-outlined { font-size:15px; }
.meet-pin-summary-text { line-height:1.2; }
.meet-pin-summary-caret { color:var(--dim); font-size:14px; transform:rotate(0deg); transition:transform .16s ease; }
.meet-pin-wrap[open] .meet-pin-summary-caret { transform:rotate(180deg); }
.meet-pin-card { border:1px solid rgba(201,168,76,.34); background:radial-gradient(circle at top right, rgba(201,168,76,.16), transparent 30%), var(--card2); padding:10px; display:flex; gap:10px; align-items:flex-start; border-radius:14px; }
.meet-pin-icon { width:34px;height:34px;border-radius:10px;background:var(--gold);color:#111;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.3); }
.meet-pin-main { flex:1; min-width:0; }
.meet-pin-title { font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text); }
.meet-pin-sub { font-size:12px;color:var(--mid);margin-top:3px;line-height:1.45; }
.meet-pin-actions { display:flex;flex-wrap:wrap;gap:7px;margin-top:9px; }
.meet-pin-btn { border:1px solid var(--rule);background:var(--card);color:var(--text);text-decoration:none;padding:8px 10px;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;cursor:pointer;font-family:var(--ff); }
.meet-pin-btn.primary { background:var(--red);border-color:var(--red);color:#fff; }
.meet-pin-distance { font-size:11px;font-weight:700;color:var(--gold);margin-top:7px;min-height:14px; }

/* ── ADMIN MEETING PIN PICKER ── */
.adm-location-box { background:radial-gradient(circle at top right, rgba(201,168,76,.13), transparent 34%), var(--surface); border:1px solid var(--rule); border-radius:14px; padding:12px; margin:2px 0 14px; }
.adm-location-head { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px; }
.adm-location-title { font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--gold); }
.adm-location-status { font-size:11px;color:var(--dim);line-height:1.45;margin-bottom:10px; }
.adm-location-actions { display:flex;gap:8px;margin-bottom:10px; }
.adm-location-btn { flex:1;border:1px solid var(--rule);background:var(--card);color:var(--text);padding:10px;font-family:var(--ff);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border-radius:10px;cursor:pointer; }
.adm-location-btn.primary { background:var(--red);border-color:var(--red);color:#fff; }
.adm-pin-picker { position:fixed;inset:0;z-index:260;display:none;background:rgba(0,0,0,.72); }
.adm-pin-picker.open { display:flex;align-items:flex-end;justify-content:center; }
.adm-pin-card { width:min(834px,100%);max-height:min(88vh,calc(100dvh - var(--safe-top) - 16px));background:var(--card);border-radius:20px 20px 0 0;overflow:hidden;display:flex;flex-direction:column; }
.adm-pin-head { padding:14px 16px;border-bottom:1px solid var(--rule);display:flex;align-items:center;justify-content:space-between;gap:12px; }
.adm-pin-title { font-size:16px;font-weight:800;color:var(--text);letter-spacing:-.02em; }
.adm-pin-sub { font-size:12px;color:var(--mid);margin-top:2px; }
.adm-pin-search { display:flex;gap:8px;padding:10px 14px;border-bottom:1px solid var(--rule);background:var(--surface); }
.adm-pin-search input { flex:1;min-width:0;border:none;border-bottom:2px solid var(--gold);background:var(--card);color:var(--text);font-family:var(--ff);font-size:14px;padding:10px 12px;outline:none; }
.adm-pin-search button { border:none;background:var(--red);color:#fff;font-family:var(--ff);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:0 13px;border-radius:10px;cursor:pointer; }
.adm-pin-search-status { padding:0 14px 10px;background:var(--surface);color:var(--dim);font-size:11px;line-height:1.4;min-height:10px; }
#adm-pin-map { width:100%;height:min(58vh,460px);background:#dde3e7; }
.adm-pin-actions { display:flex;gap:8px;padding:12px 14px calc(12px + var(--safe-bot));border-top:1px solid var(--rule); }

/* Best app updates ported to Great Italian Cities */
.today-hero.has-image {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.34) 44%, rgba(0,0,0,.76) 100%),
    var(--today-hero-img);
  background-size: cover;
  background-position: var(--today-hero-pos, center center);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 22px 52px rgba(0,0,0,.22);
}
.today-hero.has-image .today-kicker,
.today-hero.has-image .today-title,
.today-hero.has-image .today-sub {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.65);
}
.today-hero.has-image .today-kicker { color: rgba(255,255,255,.82); }
.today-hero.has-image .today-sub {
  max-width: 620px;
  color: rgba(255,255,255,.86);
}
#global-rewards-area.is-hidden { display: none !important; }

/* Best app visual sweep for Great Italian Cities */
.sasha-hero {
  margin: 0 0 14px;
  min-height: 620px;
  padding: 34px 34px 38px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.62) 100%),
    linear-gradient(90deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.06) 40%, rgba(0,0,0,.58) 100%),
    url('https://sasharojnik.com/images/hero.jpg'),
    url('assets/hero.jpg');
  background-size: auto 125%;
  background-position: center 70%;
  border-radius: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.sasha-hero::after {
  content: 'Senior Travel Director · Trafalgar';
  position: absolute;
  z-index: 1;
  top: 44px;
  left: 34px;
  right: 34px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  text-shadow: 0 2px 16px rgba(0,0,0,.62);
}
.sasha-hero::before {
  inset: 0;
  height: auto;
  background:
    radial-gradient(circle at 54% 38%, transparent 0 26%, rgba(0,0,0,.03) 42%, rgba(0,0,0,.20) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.24) 100%);
}
.sasha-hero-copy {
  align-items: flex-end;
  text-align: right;
  width: min(100%, 430px);
  margin-left: auto;
}
.sasha-avatar,
.sasha-kicker {
  display: none;
}
.sasha-name {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 40px;
  color: #fff;
  max-width: 14ch;
  text-shadow: 0 3px 22px rgba(0,0,0,.72);
}
.sasha-name em {
  font-weight: 700;
  color: #fff;
}
.sasha-role {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,.84);
  line-height: 1.48;
  max-width: 430px;
  text-shadow: 0 2px 18px rgba(0,0,0,.72);
}
.sasha-markets {
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin-top: 10px;
  max-width: 430px;
  text-shadow: 0 2px 14px rgba(0,0,0,.64);
}
.tool-app[data-tool-id="translate"] .tool-app-icon {
  background:
    radial-gradient(circle at 70% 28%, rgba(255,255,255,.5) 0 7px, transparent 8px),
    linear-gradient(135deg, rgba(255,255,255,.24) 0 34%, transparent 34%),
    linear-gradient(160deg, #a8dfdc, #5f7f86);
}
.tool-app[data-tool-id="translate"] .tool-app-glyph-bg {
  background: rgba(255,255,255,.16);
  transform: translate(-6px,-3px) rotate(-7deg);
}
.tool-app[data-tool-id="translate"] .tool-app-badge { background: #edf8f6; }

@media (max-width: 430px) {
  .sasha-hero {
    min-height: 560px;
    margin: 0 0 14px;
    padding: 24px 18px 24px;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.64) 100%),
      linear-gradient(90deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.06) 38%, rgba(0,0,0,.62) 100%),
      url('https://sasharojnik.com/images/hero.jpg'),
      url('assets/hero.jpg');
    background-size: auto 128%;
    background-position: center 72%;
  }
  .sasha-hero::after {
    top: 28px;
    left: 18px;
    right: 18px;
    font-size: 10px;
    letter-spacing: .24em;
  }
  .sasha-name { font-size: 34px; max-width: 12ch; }
  .sasha-role,
  .sasha-markets { font-size: 15px; max-width: 310px; }
}

.tl-item.tl-hotel {
  margin: 10px 12px 0;
  padding: 14px 14px;
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 42%),
    var(--card);
}
.tl-item.tl-hotel::before { display: none; }
.tl-item.tl-hotel .tl-time {
  width: 42px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding-top: 4px;
}
.tl-item.tl-hotel .tl-dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 0;
  margin-top: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.45), transparent 13px),
    linear-gradient(160deg, #ffd874, #b87c13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 18px rgba(0,0,0,.12);
}
.tl-item.tl-hotel .tl-dot .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 650, 'GRAD' 0, 'opsz' 20;
}
.tl-hotel-date {
  display: inline-flex;
  margin-left: 6px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tl-hotel-actions {
  margin-top: 10px;
  display: flex;
}
.tl-hotel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tl-hotel-link .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: 'FILL' 0, 'wght' 650, 'GRAD' 0, 'opsz' 20;
}

.hotel-arrival-card {
  margin: 12px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(201,168,76,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
    var(--card);
}
.hotel-arrival-media {
  min-height: 176px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)),
    var(--hotel-img);
  background-size: cover;
  background-position: var(--hotel-pos, center center);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hotel-arrival-body { padding: 15px 16px 16px; }
.hotel-arrival-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.hotel-arrival-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.14;
}
.hotel-arrival-meta {
  color: var(--mid);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 5px;
}
.hotel-arrival-copy {
  color: var(--text);
  font-size: 13px;
  line-height: 1.58;
  margin-top: 12px;
}
.hotel-arrival-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.hotel-arrival-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201,168,76,.08);
  font-size: 11px;
  font-weight: 750;
}
.hotel-arrival-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.hotel-arrival-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.035);
}
.hotel-arrival-btn.primary {
  border-color: transparent;
  color: #fff;
  background: var(--red);
}
.hotel-arrival-btn .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: 'FILL' 0, 'wght' 650, 'GRAD' 0, 'opsz' 20;
}
.hotel-arrival-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.hotel-arrival-admin button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(201,168,76,.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201,168,76,.08);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hotel-arrival-admin span {
  color: var(--dim);
  font-size: 11px;
}
.tomorrow-hotel-card {
  margin: 14px 0 16px;
  border-color: rgba(201,168,76,.28);
}
.tomorrow-hotel-card .hotel-arrival-media { min-height: 150px; }

.map-shell {
  flex-shrink: 0;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 14% 0%, rgba(206,17,38,.14), transparent 34%),
    linear-gradient(180deg, var(--card), var(--surface));
  border-bottom: 1px solid var(--rule);
}
.map-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.30);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(201,168,76,.16), rgba(206,17,38,.08) 42%, rgba(255,255,255,.04)),
    var(--card);
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
}
.map-hero-card::after {
  content: '';
  position: absolute;
  right: -38px; top: -48px;
  width: 145px; height: 145px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.24);
}
.map-hero-kicker,
.map-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.map-hero-title {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--text);
}
.map-hero-copy {
  margin-top: 8px;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mid);
}
.map-mode-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(0,0,0,.08);
}
.map-mode-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--mid);
  font: 800 11px/1 var(--ff);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map-mode-btn.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 18px rgba(206,17,38,.28);
}
.map-section-label { margin: 16px 2px 8px; }
.map-route-strip,
.map-city-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.map-route-strip::-webkit-scrollbar,
.map-city-strip::-webkit-scrollbar { display: none; }
.map-pill {
  min-width: max-content;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--mid);
  font: 800 12px/1 var(--ff);
  letter-spacing: .01em;
  padding: 11px 15px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, border-color .15s, background .15s, color .15s;
}
.map-pill.active {
  border-color: rgba(206,17,38,.70);
  color: #fff;
  background: linear-gradient(135deg, #CE1126, #EC4657);
  box-shadow: 0 10px 22px rgba(206,17,38,.22);
}
.map-city-card {
  min-width: 210px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--card);
  appearance: none;
  font-family: var(--ff);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map-city-card.active {
  border-color: rgba(206,17,38,.72);
  box-shadow: 0 14px 30px rgba(206,17,38,.16);
}
.map-city-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 12px 22px rgba(0,0,0,.20);
}
.map-city-icon .material-symbols-outlined {
  font-size: 28px;
  font-variation-settings: 'FILL' 0, 'wght' 650, 'GRAD' 0, 'opsz' 24;
}
.map-city-card[data-tone="red"] .map-city-icon { background: linear-gradient(135deg, #ff6a70, #c90821); }
.map-city-card[data-tone="blue"] .map-city-icon { background: linear-gradient(135deg, #81c6ff, #1d57d8); }
.map-city-card[data-tone="gold"] .map-city-icon { background: linear-gradient(135deg, #f6d471, #aa7612); }
.map-city-card[data-tone="green"] .map-city-icon { background: linear-gradient(135deg, #80df9d, #118f46); }
.map-city-card[data-tone="violet"] .map-city-icon { background: linear-gradient(135deg, #caa6ff, #7042d5); }
.map-city-name { display:block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.map-city-meta { display:block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--mid); }
.map-city-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.map-panel-body {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: calc(var(--safe-bot) + 12px);
}
.map-stage {
  position: relative;
  flex: 0 0 auto;
  height: min(72dvh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: #e5e5e5;
}
#tour-map { width: 100%; height: 100%; min-height: 520px; }
.map-context-card {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 450;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 13px 14px;
  background: rgba(20,20,22,.88);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
  backdrop-filter: blur(18px);
}
.map-context-kicker {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: #f1cc63;
}
.map-context-title {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
}
.map-context-copy {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.72);
}
.map-stage-card {
  display: flex;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 470;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.map-stage-main {
  pointer-events: auto;
  flex: 1;
  min-width: 0;
  max-width: 560px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(20,20,22,.86);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}
.map-stage-kicker {
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f1cc63;
}
.map-stage-title {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.14;
  color: #fff;
}
.map-stage-copy {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,.72);
}
.map-stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.map-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.map-legend-chip .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 1, 'wght' 650, 'GRAD' 0, 'opsz' 20;
  color: #fff;
}
.map-legend-mark {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
}
.map-legend-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 3px;
  border-radius: 999px;
  background: #CE1126;
}
.map-legend-hotel::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #CE1126;
  border: 1.5px solid #fff;
}
.map-legend-stop::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #CE1126;
}
.map-stage-close,
.map-fullscreen-btn {
  pointer-events: auto;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(20,20,22,.86);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map-stage-close {
  display: none;
}
.map-stage-close .material-symbols-outlined,
.map-fullscreen-btn .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 650, 'GRAD' 0, 'opsz' 24;
}
#p-map.is-map-fullscreen {
  bottom: 0;
  z-index: 80;
}
#p-map.is-map-fullscreen .panel-hdr,
#p-map.is-map-fullscreen .map-shell {
  display: none;
}
#p-map.is-map-fullscreen .map-panel-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
#p-map.is-map-fullscreen .map-stage {
  flex: 1;
  height: 100%;
  min-height: 0;
}
#p-map.is-map-fullscreen #tour-map {
  height: 100%;
  min-height: 0;
}
#p-map.is-map-fullscreen .map-context-card {
  display: none;
}
#p-map.is-map-fullscreen .map-stage-card {
  display: flex;
  top: calc(var(--safe-top) + 10px);
}
#p-map.is-map-fullscreen .map-stage-close {
  display: flex;
}
.map-admin-tools {
  display: none;
  margin-top: 12px;
  border: 1px solid rgba(206,17,38,.18);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(206,17,38,.10), transparent 34%),
    var(--card);
}
.map-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.map-admin-kicker {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.map-admin-status {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--mid);
}
.map-admin-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--red);
  color: #fff;
  font: 850 11px/1 var(--ff);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.map-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.map-admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 10px 11px;
  background: var(--surface);
}
.map-admin-item-name {
  font-size: 13px;
  font-weight: 850;
  color: var(--text);
}
.map-admin-item-meta {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--dim);
}
.map-admin-item-edit {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--card);
  color: var(--red);
  font: 850 10px/1 var(--ff);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.map-admin-empty {
  border: 1px dashed var(--rule);
  border-radius: 14px;
  padding: 11px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}
.city-map-pin {
  width: 32px;
  height: 32px;
  border-radius: 12px 12px 12px 4px;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6a70, #CE1126);
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.30);
}
.city-map-pin .material-symbols-outlined {
  transform: rotate(45deg);
  color: #fff;
  font-size: 17px;
  font-variation-settings: 'FILL' 1, 'wght' 650, 'GRAD' 0, 'opsz' 20;
}
.leaflet-popup-content-wrapper { border-radius: 14px; }
@media (max-width: 520px) {
  #p-map {
    bottom: 0;
    z-index: 70;
  }
  .map-shell { padding: 10px 12px 12px; }
  .map-hero-card { border-radius: 18px; padding: 12px; }
  .map-hero-title { font-size: 19px; }
  .map-hero-copy { display: none; }
  .map-mode-switch { margin-top: 10px; }
  .map-section-label { margin: 13px 2px 7px; }
  .map-city-card {
    min-width: 182px;
    grid-template-columns: 46px 1fr;
    border-radius: 18px;
    padding: 10px;
  }
  .map-city-icon { width: 46px; height: 46px; border-radius: 14px; }
  .map-context-card { display: none; }
  .map-stage-card { display: flex; }
  .map-stage-copy { display: none; }
  #p-map .map-panel-body {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: calc(var(--safe-bot) + 10px);
  }
  .map-stage {
    flex: 0 0 auto;
    height: calc(100svh - 72px);
    min-height: 560px;
  }
  #tour-map {
    height: 100%;
    min-height: 560px;
  }
  .map-admin-head { flex-direction: column; }
  .map-admin-btn { width: 100%; }
}
@media (max-width: 520px) and (max-height: 720px) {
  .map-stage {
    height: calc(100svh - 68px);
    min-height: 480px;
  }
  #tour-map { min-height: 480px; }
}

.rewards-screen {
  background: #050505;
}
.gtr-shell {
  min-height: 100%;
  padding: 18px 12px 32px;
  background:
    radial-gradient(circle at 88% 4%, rgba(201,168,76,.24), transparent 24%),
    radial-gradient(circle at 2% 28%, rgba(206,17,38,.16), transparent 26%),
    linear-gradient(180deg, #080808 0%, #000 46%, #060606 100%);
  color: #f7f2e9;
}
.gtr-shell-panel {
  padding: 16px 12px 26px;
}
.gtr-hero,
.gtr-panel,
.gtr-trip-card,
.gtr-final {
  border: 1px solid rgba(255,255,255,.14);
  background: #1a1a1c;
  border-radius: 22px;
  overflow: hidden;
}
.gtr-hero {
  padding: 28px 20px 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(201,168,76,.22), transparent 27%),
    linear-gradient(135deg, rgba(91,67,24,.74), rgba(22,20,18,.96) 58%),
    #171717;
  border-color: rgba(201,168,76,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.gtr-overline,
.gtr-section-label,
.gtr-perk-label,
.gtr-trip-badge {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .2em;
  line-height: 1.35;
  text-transform: uppercase;
}
.gtr-overline {
  color: #ff7b89;
  margin-bottom: 12px;
}
.gtr-title {
  font-family: 'Noto Serif', serif;
  font-size: clamp(35px, 8vw, 58px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .98;
  color: #fffaf1;
  margin-bottom: 16px;
}
.gtr-copy {
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255,255,255,.78);
}
.gtr-copy strong {
  color: #fff;
}
.gtr-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.gtr-perk {
  min-height: 88px;
  padding: 18px 12px;
  border-radius: 18px;
  border: 1px solid rgba(201,168,76,.28);
  background: rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gtr-perk-value {
  font-family: 'Noto Serif', serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  color: #fff;
}
.gtr-perk-label {
  color: rgba(255,255,255,.64);
  margin-top: 10px;
}
.gtr-notice {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255,226,159,.32);
  border-radius: 18px;
  background: rgba(255,226,159,.08);
  display: flex;
  gap: 14px;
  align-items: center;
}
.gtr-notice-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffe6aa;
  color: #b36b00;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.gtr-notice-copy {
  font-size: 14px;
  line-height: 1.62;
  color: rgba(255,255,255,.78);
}
.gtr-btn {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 15px 18px;
  font-family: var(--ff);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}
.gtr-btn.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 36px rgba(206,17,38,.24);
}
.gtr-btn.secondary {
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}
.gtr-footnote {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(255,255,255,.58);
  text-align: center;
}
.gtr-panel {
  margin-top: 18px;
  padding: 22px 18px;
  background: #111112;
}
.gtr-section-label {
  color: #d7bb63;
  margin-bottom: 12px;
}
.gtr-panel-title {
  font-family: 'Noto Serif', serif;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: #fff;
  margin-bottom: 10px;
}
.gtr-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.gtr-benefit {
  border-radius: 18px;
  border: 1px solid rgba(201,168,76,.22);
  background: rgba(255,255,255,.04);
  padding: 14px 15px;
}
.gtr-benefit-title {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #d7bb63;
  margin-bottom: 5px;
}
.gtr-benefit-copy {
  font-size: 13px;
  color: rgba(255,255,255,.76);
  line-height: 1.45;
}
.gtr-section-head {
  margin: 26px 4px 12px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.gtr-trips {
  display: grid;
  gap: 14px;
}
.gtr-trip-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  background: #1d1d1f;
  -webkit-tap-highlight-color: transparent;
}
.gtr-trip-media {
  position: relative;
  aspect-ratio: 16 / 9.4;
  min-height: 190px;
  overflow: hidden;
  border-bottom: 3px solid var(--red);
}
.gtr-trip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gtr-trip-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}
.gtr-trip-body {
  padding: 20px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gtr-trip-title {
  font-family: 'Noto Serif', serif;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.05em;
  color: #fff;
  margin-bottom: 10px;
}
.gtr-trip-copy {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255,255,255,.64);
  flex: 1;
}
.gtr-trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.gtr-mini-btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.64);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.gtr-mini-btn.red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.gtr-final {
  margin-top: 18px;
  padding: 24px 18px 22px;
  text-align: center;
  background: #1a1a1c;
}
.gtr-final-title {
  font-family: 'Noto Serif', serif;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: #fff;
}
@media (min-width: 640px) {
  .gtr-shell { padding: 22px; }
  .gtr-hero { padding: 34px 28px 28px; }
  .gtr-trips { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gtr-final { padding: 28px; }
}
@media (max-width: 430px) {
  .gtr-shell { padding: 12px 10px 28px; }
  .gtr-hero,
  .gtr-panel,
  .gtr-trip-card,
  .gtr-final { border-radius: 20px; }
  .gtr-benefits { grid-template-columns: 1fr; }
  .gtr-title { font-size: 39px; }
  .gtr-panel-title,
  .gtr-final-title { font-size: 28px; }
  .gtr-trip-title { font-size: 27px; }
  .gtr-perk { min-height: 78px; padding: 15px 10px; }
  .gtr-perk-value { font-size: 23px; }
  .gtr-perk-label { font-size: 9px; letter-spacing: .15em; }
}
.today-gtr-card {
  margin: 12px 0 0;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.5), transparent 44%),
    var(--card);
  border: 1px solid rgba(201,168,76,.2);
  box-shadow: 0 18px 38px rgba(8,16,24,.06);
}
.today-gtr-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.today-gtr-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.today-gtr-copy {
  font-size: 13px;
  line-height: 1.62;
  color: var(--mid);
}
.today-gtr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.today-gtr-btn,
.today-gtr-link {
  min-height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: var(--ff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.today-gtr-btn {
  background: var(--red);
  color: #fff;
}
.today-gtr-link {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rule);
}

/* Best app typography scale ported to Great. Keep this at the end so it wins over older duplicated rules. */
.today-title {
  font-size: 34px;
  line-height: 1;
}
.today-sub {
  font-size: 17px;
  line-height: 1.72;
}
.today-pill {
  font-size: 11px;
  padding: 8px 12px;
}
.today-pill span {
  font-size: 13px;
}
.today-updated {
  font-size: 13px;
}
.itin-intro {
  padding: 20px 16px 18px;
}
.itin-intro-eye {
  font-size: 9px;
}
.itin-intro-h {
  font-size: 23px;
  line-height: 1.14;
}
.itin-intro-p {
  font-size: 13px;
  line-height: 1.58;
}
.i-tg {
  grid-template-columns: 58px 1fr 36px;
  min-height: 68px;
}
.i-tg-num {
  min-height: 68px;
  padding-left: 13px;
}
.i-n {
  font-size: 22px;
}
.i-d {
  font-size: 8px;
  line-height: 1.25;
}
.i-tg-info {
  padding: 10px 8px 10px 12px;
}
.i-city {
  font-size: 15px;
  line-height: 1.24;
}
.i-sub {
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
}
.i-tags {
  gap: 4px;
  margin-top: 7px;
}
.i-tag {
  font-size: 8px;
  padding: 3px 7px;
}
.i-arr {
  width: 22px;
  height: 22px;
}
.i-arr svg {
  width: 9px;
  height: 9px;
}
.i-tod-label {
  width: auto;
  padding: 0;
}
.i-tod-body {
  padding: 0;
  gap: 8px;
}
.i-tod-time {
  font-size: 9px;
}
.i-tod-main,
.i-opt-desc {
  font-size: 13px;
  line-height: 1.58;
}
.i-opt-name {
  font-size: 13px;
}
.i-inc,
.i-opt,
.i-mtm {
  padding: 9px 10px;
}
.brief-note-body,
.day-end-body {
  color: var(--mid);
}

/* High-contrast Trafalgar light mode.
   Keep dark mode separate; light mode should feel like branded daylight, not white paper. */
@media (prefers-color-scheme: light) {
  html:not(.theme-dark) {
    --bg: #E7EBF1;
    --surface: #DDE3EA;
    --card: #F7F9FC;
    --card2: #EDF2F7;
    --rule: rgba(7,29,58,.14);
    --rule2: rgba(7,29,58,.08);
    --text: #071D3A;
    --mid: #546172;
    --dim: #8A94A3;
    --gold: #B88718;
    --gold-lt: rgba(184,135,24,.12);
    --amber: #F28C18;
  }

  html:not(.theme-dark),
  html:not(.theme-dark) body,
  html:not(.theme-dark) #app {
    background:
      linear-gradient(180deg, #F5F7FA 0%, #E7EBF1 46%, #DDE3EA 100%);
  }

  html:not(.theme-dark) .screen,
  html:not(.theme-dark) .prog-panel,
  html:not(.theme-dark) .panel,
  html:not(.theme-dark) .panel-body,
  html:not(.theme-dark) .panel-body.np {
    background:
      radial-gradient(circle at 100% 0%, rgba(206,17,38,.07), transparent 28%),
      radial-gradient(circle at 0 16%, rgba(242,140,24,.10), transparent 26%),
      var(--bg);
  }

  html:not(.theme-dark) .hdr,
  html:not(.theme-dark) .panel-hdr,
  html:not(.theme-dark) .bnav {
    background: #F8FAFD;
    border-color: rgba(7,29,58,.16);
  }

  html:not(.theme-dark) .hdr::before,
  html:not(.theme-dark) .panel-hdr::before {
    height: 4px;
    background: linear-gradient(90deg, var(--red), #F23B51 72%, var(--amber));
  }

  html:not(.theme-dark) .hdr-name,
  html:not(.theme-dark) .p-title {
    color: #071D3A;
  }

  html:not(.theme-dark) .hdr-role,
  html:not(.theme-dark) .hdr-day-lbl,
  html:not(.theme-dark) .ni span {
    color: #6E7786;
  }

  html:not(.theme-dark) .today-hero,
  html:not(.theme-dark) .brief,
  html:not(.theme-dark) .pretrip-cta,
  html:not(.theme-dark) .pretrip-day1-link,
  html:not(.theme-dark) .day-end-card,
  html:not(.theme-dark) .quote-card,
  html:not(.theme-dark) .lock-card,
  html:not(.theme-dark) .gtr-card,
  html:not(.theme-dark) .today-gtr-card,
  html:not(.theme-dark) .group-hero-card,
  html:not(.theme-dark) .group-card,
  html:not(.theme-dark) .group-member-card,
  html:not(.theme-dark) .movie-hero,
  html:not(.theme-dark) .movie-card,
  html:not(.theme-dark) .memory-progress,
  html:not(.theme-dark) .memory-day-card,
  html:not(.theme-dark) .photo-upload-area,
  html:not(.theme-dark) .rate-input,
  html:not(.theme-dark) .rate-row,
  html:not(.theme-dark) .trans-top,
  html:not(.theme-dark) .phrase-item,
  html:not(.theme-dark) .tip-card {
    background:
      radial-gradient(circle at top right, rgba(242,140,24,.10), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.84), rgba(247,249,252,.72) 48%, rgba(236,241,247,.84)),
      var(--card);
    border-color: rgba(7,29,58,.15);
    box-shadow: 0 16px 36px rgba(7,29,58,.10);
  }

  html:not(.theme-dark) .today-hero.has-image {
    border-color: rgba(7,29,58,.18);
    box-shadow: 0 22px 52px rgba(7,29,58,.28);
    border-radius: 22px 22px 0 0;
    margin-bottom: 0;
  }

  html:not(.theme-dark) #cd-area .cd-wrap {
    margin: 0 12px;
    border-radius: 0 0 22px 22px;
  }

  html:not(.theme-dark) .today-hero.has-image + #next-up-area:empty + #cd-area .cd-wrap {
    margin-top: 0;
  }

  html:not(.theme-dark) .today-pill,
  html:not(.theme-dark) .brief-row,
  html:not(.theme-dark) .day-resource-main,
  html:not(.theme-dark) .group-field,
  html:not(.theme-dark) .trans-lang-pill,
  html:not(.theme-dark) .trans-ta {
    background: rgba(255,255,255,.72);
    border-color: rgba(7,29,58,.14);
  }

  html:not(.theme-dark) .today-pill {
    color: #071D3A;
    box-shadow: 0 8px 20px rgba(7,29,58,.10);
  }

  html:not(.theme-dark) .today-pill strong,
  html:not(.theme-dark) .today-pill span,
  html:not(.theme-dark) .brief-v {
    color: #071D3A;
  }

  html:not(.theme-dark) .cd-wrap {
    background:
      radial-gradient(circle at 50% 0%, rgba(242,140,24,.22), transparent 38%),
      linear-gradient(135deg, #B4001F, #E31837 58%, #F05A28);
  }

  html:not(.theme-dark) .pretrip-cta {
    border-top-color: #22C55E;
    background:
      radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 34%),
      linear-gradient(180deg, #F6FFF9, #EAF8EF);
  }

  html:not(.theme-dark) #weather-body {
    background:
      radial-gradient(circle at 0 0, rgba(242,140,24,.16), transparent 32%),
      radial-gradient(circle at 100% 8%, rgba(7,29,58,.16), transparent 30%),
      #E1E6ED;
  }

  html:not(.theme-dark) .w-card {
    background:
      radial-gradient(circle at 100% 0%, var(--w-accent-soft), transparent 34%),
      linear-gradient(145deg, #17263A, #0B1D34 58%, #07172B);
    border-color: rgba(7,29,58,.26);
    box-shadow: 0 18px 42px rgba(7,29,58,.22);
  }

  html:not(.theme-dark) .w-dest-name,
  html:not(.theme-dark) .w-temp {
    color: #FFFFFF;
  }

  html:not(.theme-dark) .w-card-sub,
  html:not(.theme-dark) .w-stat-lbl {
    color: #F8B44C;
  }

  html:not(.theme-dark) .w-day-label {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
    box-shadow: none;
  }

  html:not(.theme-dark) .w-lo,
  html:not(.theme-dark) .w-slash,
  html:not(.theme-dark) .w-cond,
  html:not(.theme-dark) .w-stat-val {
    color: rgba(255,255,255,.70);
  }

  html:not(.theme-dark) .w-extras {
    border-top-color: rgba(255,255,255,.14);
  }

  html:not(.theme-dark) .w-hero-icon,
  html:not(.theme-dark) .w-media .w-hero-icon {
    background: rgba(255,255,255,.78);
    border-color: rgba(255,255,255,.88);
  }

  html:not(.theme-dark) .ed-section {
    background:
      radial-gradient(circle at 100% 0%, rgba(242,140,24,.10), transparent 30%),
      var(--bg);
  }

  html:not(.theme-dark) .ed-card {
    --ed-card: #F7F9FC;
    --ed-card-low: #E9EEF5;
    --ed-text: #071D3A;
    --ed-muted: #596779;
    --ed-gold: #B88718;
    background:
      linear-gradient(180deg, rgba(255,255,255,.80), rgba(240,244,249,.86)),
      var(--ed-card);
    border-color: rgba(7,29,58,.13);
    box-shadow: 0 14px 30px rgba(7,29,58,.10);
  }

  html:not(.theme-dark) .ed-card::before {
    background: linear-gradient(90deg, var(--ed-card-accent), var(--amber), transparent 76%);
  }

  html:not(.theme-dark) .sec-label,
  html:not(.theme-dark) .phrase-cat,
  html:not(.theme-dark) #memory-body .sec-label {
    color: #A36A00;
  }

  html:not(.theme-dark) .navy-band {
    background: #071D3A;
    color: #fff;
  }
}
@media (max-width: 430px) {
  .today-title { font-size: 31px; }
  .today-sub { font-size: 16px; }
  .itin-intro { padding: 20px 16px 18px; }
  .itin-intro-h { font-size: 23px; }
  .itin-intro-p { font-size: 13px; }
  .i-tg {
    grid-template-columns: 58px 1fr 36px;
    min-height: 68px;
  }
  .i-tg-num {
    min-height: 68px;
    padding-left: 13px;
  }
  .i-n { font-size: 22px; }
  .i-city { font-size: 15px; }
  .i-sub { font-size: 11px; }
  .i-tag { font-size: 8px; }
  .i-tod {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .i-tod-label { width: auto; }
  .i-tod-body { padding: 0; }
  .i-tod-main,
  .i-opt-desc {
    font-size: 13px;
    line-height: 1.58;
  }
  .i-opt-name { font-size: 13px; }
}

/* Best of Italy parity pass */
.today-hero {
  position: relative;
  margin: 10px 12px 0;
  background:
    radial-gradient(circle at top right, rgba(154,123,46,.16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.58), transparent 44%),
    var(--card);
  border: 1px solid rgba(201,168,76,.18);
  border-top: 3px solid var(--red);
  border-radius: 26px;
  padding: 20px 18px 18px;
  box-shadow: 0 20px 44px rgba(0,0,0,.07);
}
.today-hero.has-image {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.34) 44%, rgba(0,0,0,.76) 100%),
    var(--today-hero-img);
  background-size: cover;
  background-position: var(--today-hero-pos, center center);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 22px 52px rgba(0,0,0,.22);
}
.today-hero.has-image .today-kicker,
.today-hero.has-image .today-title,
.today-hero.has-image .today-sub {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.65);
}
.today-hero.has-image .today-kicker { color: rgba(255,255,255,.82); }
.today-hero.has-image .today-sub {
  max-width: 620px;
  color: rgba(255,255,255,.86);
}
.adm-hero-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.adm-hero-tools button {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(17,17,16,.72);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
}
.today-pill {
  border-radius: 999px;
  padding: 7px 11px;
}
.day-resources-card {
  margin: 12px;
  padding: 17px 16px 16px;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.45), transparent 44%),
    var(--card);
  border: 1px solid rgba(201,168,76,.18);
  border-top: 3px solid var(--gold);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(8,16,24,.06);
}
.day-resources-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.day-resources-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.day-resources-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.day-resources-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.day-resources-actions button,
.day-resource-remove {
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 8px 11px;
  cursor: pointer;
}
.day-resources-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  border: 1px solid rgba(201,168,76,.2);
  color: var(--gold);
}
.day-resources-actions .material-symbols-outlined {
  font-size: 17px;
  line-height: 1;
}
.day-resources-list,
.tomorrow-resource-list {
  display: grid;
  gap: 8px;
}
.day-resource-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.day-resource-main {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 16px;
  padding: 10px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.day-resource-main .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(154,123,46,.12);
  color: var(--gold);
  font-size: 21px;
}
.day-resource-main strong,
.day-resource-main small,
.day-resource-main em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-resource-main strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.day-resource-main small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--dim);
}
.day-resource-main em {
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  color: var(--mid);
  white-space: normal;
}
.day-resource-row-image {
  align-items: start;
}
.day-resource-image-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.64);
}
.day-resource-image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.day-resource-image-open img {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
  background: rgba(0,0,0,.04);
}
.day-resource-image-fallback {
  display: none;
  padding: 18px;
  text-align: center;
  color: var(--mid);
}
.day-resource-image-card.is-broken img { display: none; }
.day-resource-image-card.is-broken .day-resource-image-fallback { display: block; }
.day-resource-image-fallback .material-symbols-outlined {
  display: block;
  color: var(--gold);
  font-size: 28px;
  margin-bottom: 6px;
}
.day-resource-image-fallback strong,
.day-resource-image-fallback small {
  display: block;
}
.day-resource-image-copy {
  padding: 11px 12px 12px;
}
.day-resource-image-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: var(--text);
}
.day-resource-image-copy p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mid);
}
.day-resource-image-copy small {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 11px;
}
.day-resource-remove {
  width: 40px;
  border-radius: 14px;
  color: var(--red);
  font-size: 18px;
  line-height: 1;
}
.day-resource-empty {
  color: var(--mid);
  font-size: 13px;
  line-height: 1.5;
  background: rgba(255,255,255,.56);
  border: 1px dashed rgba(154,123,46,.26);
  border-radius: 16px;
  padding: 14px;
}
.tomorrow-resource {
  margin-bottom: 8px;
}
@media (max-width: 430px) {
  .day-resources-head {
    flex-direction: column;
  }
  .day-resources-actions {
    width: 100%;
    justify-content: stretch;
  }
  .day-resources-actions button {
    flex: 1;
  }
  .adm-hero-tools {
    left: 12px;
    right: auto;
  }
}
.brief {
  background:
    radial-gradient(circle at top right, rgba(206,17,38,.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.58), transparent 40%),
    var(--card);
  border: 1px solid rgba(201,168,76,.16);
  border-radius: 24px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 38px rgba(0,0,0,.06);
}
.brief-row {
  border-radius: 16px;
  padding: 12px 13px 11px;
}
.tl-item.tl-now {
  background: transparent;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 0;
}
.tl-item.tl-hotel {
  margin: 10px 12px 0;
  padding: 14px;
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(201,168,76,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 42%),
    var(--card);
}
#tools-grid {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 22px clamp(10px, 3.4vw, 34px);
  padding: 14px 18px 28px;
  align-items: start;
  justify-content: center;
}
#tools-grid .tool-app {
  min-height: 90px !important;
  border-radius: 0 !important;
}
.tool-app-icon {
  width: 62px;
  height: 62px;
  border-radius: 17px;
}
@media (min-width: 641px) {
  #tools-grid {
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    gap: 34px 44px;
    padding: 22px 32px 36px;
  }
  #tools-grid .tool-app {
    justify-self: center;
    width: 104px;
  }
  .tool-app-icon {
    width: 70px;
    height: 70px;
    border-radius: 19px;
  }
}
@media (max-width: 380px) {
  #tools-grid {
    gap: 16px 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .tool-app-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }
  .tool-app-icon .material-symbols-outlined { font-size: 29px; }
}

/* Editorial timeline pass for the itinerary accordion. */
#pp-days .itin-hero {
  position: relative;
  height: clamp(238px, 42vw, 318px);
  min-height: 0;
  margin: 12px;
  overflow: hidden;
  border: 1px solid rgba(7,29,58,.14);
  border-radius: 24px;
  background: #071D3A;
  box-shadow: 0 22px 48px rgba(7,29,58,.2);
}
#pp-days .itin-hero img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center 58%;
}
#pp-days .itin-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,29,58,.04), rgba(7,29,58,.24) 44%, rgba(7,29,58,.86)),
    linear-gradient(90deg, rgba(7,29,58,.5), transparent 68%);
  pointer-events: none;
}
#pp-days .itin-hero-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
}
#pp-days .itin-hero-eye,
#pp-optionals .prog-overline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f4c96d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
#pp-days .itin-hero-eye span,
#pp-optionals .prog-overline::after {
  content: '';
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, #ce1126, rgba(244,201,109,.72), transparent);
}
#pp-days .itin-hero-title {
  max-width: 11ch;
  margin-top: 9px;
  font-family: 'Noto Serif', serif;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: .98;
}
#pp-days .itin-hero-title em {
  color: #f4c96d;
  font-style: italic;
  font-weight: 600;
}
#pp-days .itin-hero-sub {
  max-width: 34ch;
  margin-top: 10px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.52;
}
#pp-optionals .prog-hero {
  aspect-ratio: auto;
  height: clamp(220px, 34vw, 280px);
  min-height: 0;
}
#pp-optionals .prog-hero img {
  height: 100%;
  object-position: center 68%;
}
#pp-optionals .prog-hero-copy {
  bottom: 28px;
}
#pp-optionals .prog-hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
}
#pp-optionals .prog-hero-title em {
  color: #f4c96d;
  font-style: italic;
  font-weight: 600;
}
#pp-optionals .prog-hero-sub {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.5;
}
#pp-optionals #all-opts {
  padding-top: 12px;
}
#pp-days .i-day {
  margin: 12px;
  overflow: hidden;
  border: 1px solid rgba(7,29,58,.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,249,252,.78)),
    var(--card);
  box-shadow: 0 16px 34px rgba(7,29,58,.09);
}
#pp-days .i-day::before {
  width: 3px;
  opacity: .28;
  background: linear-gradient(180deg, var(--red), rgba(184,135,24,.76));
}
#pp-days .i-day.open {
  border-color: rgba(206,17,38,.24);
  box-shadow: 0 18px 40px rgba(7,29,58,.12);
}
#pp-days .i-day.open::before {
  opacity: 1;
}
#pp-days .i-tg {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 38px;
  min-height: 86px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent);
}
#pp-days .i-trigger:active .i-tg,
#pp-days .i-day.open .i-tg {
  background:
    radial-gradient(circle at top left, rgba(206,17,38,.08), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(247,249,252,.82));
}
#pp-days .i-tg-num {
  min-height: 86px;
  padding: 12px 9px 12px 15px;
  background: rgba(255,255,255,.46);
  border-right: 1px solid rgba(7,29,58,.1);
}
#pp-days .i-day.open .i-tg-num {
  background: rgba(206,17,38,.045);
  border-right-color: rgba(206,17,38,.2);
}
#pp-days .i-n {
  font-size: 25px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.04em;
}
#pp-days .i-d {
  max-width: 40px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.25;
}
#pp-days .i-tg-info {
  min-width: 0;
  padding: 13px 12px;
}
#pp-days .i-city {
  color: #071D3A;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}
#pp-days .i-sub {
  color: var(--mid);
  opacity: 1;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}
#pp-days .i-tags {
  gap: 5px;
  margin-top: 8px;
  max-height: 46px;
  overflow: hidden;
}
#pp-days .i-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  box-shadow: none;
}
#pp-days .i-ti {
  background: rgba(18,57,95,.09);
  border-color: rgba(18,57,95,.14);
  color: #12395F;
}
#pp-days .i-te {
  background: rgba(184,135,24,.14);
  border-color: rgba(184,135,24,.22);
  color: #765000;
}
#pp-days .i-tm {
  background: rgba(22,121,87,.11);
  border-color: rgba(22,121,87,.18);
  color: #167957;
}
#pp-days .i-tg-arr {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(7,29,58,.04);
  border-left: 1px solid rgba(7,29,58,.08);
}
#pp-days .i-arr {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#pp-days .i-arr svg {
  width: 11px;
  height: 11px;
  stroke: var(--dim);
}
#pp-days .i-day.open .i-tg-arr,
#pp-days .i-day.open .i-arr {
  background: var(--red);
}
#pp-days .i-day.open .i-arr svg {
  stroke: #fff;
}
#pp-days .i-panel-inner {
  padding: 12px 0 14px;
  border-top: 1px solid rgba(7,29,58,.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(237,242,247,.78)),
    var(--card2);
}
#pp-days .i-tod-list {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 0 12px;
}
#pp-days .i-tod-list::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(184,135,24,.55), rgba(206,17,38,.44), rgba(18,57,95,.35));
  pointer-events: none;
}
#pp-days .i-tod {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
#pp-days .i-tod:last-child {
  border-bottom: 0;
}
#pp-days .i-tod-label {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 6px;
  padding: 0;
  width: auto;
}
#pp-days .i-tod-label::after {
  display: none;
}
#pp-days .i-tod-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(7,29,58,.12);
  background: #fff;
  box-shadow: 0 8px 18px rgba(7,29,58,.08);
}
#pp-days .i-tod-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
#pp-days .i-tod-icon.am {
  color: #A36A00;
  background: #FFF7E5;
}
#pp-days .i-tod-icon.am svg {
  stroke: currentColor;
}
#pp-days .i-tod-icon.pm {
  color: var(--red);
  background: rgba(206,17,38,.08);
}
#pp-days .i-tod-icon.pm svg {
  stroke: currentColor;
}
#pp-days .i-tod-icon.eve {
  color: #12395F;
  background: rgba(18,57,95,.1);
}
#pp-days .i-tod-icon.eve svg {
  stroke: currentColor;
}
#pp-days .i-tod-time {
  max-width: 54px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
#pp-days .i-tod-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 0;
}
#pp-days .i-inc,
#pp-days .i-opt,
#pp-days .i-mtm {
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(7,29,58,.055);
}
#pp-days .i-inc {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(7,29,58,.11);
}
#pp-days .i-opt {
  background:
    linear-gradient(180deg, rgba(255,247,229,.92), rgba(255,255,255,.88));
  border: 1px solid rgba(184,135,24,.28);
  border-left: 3px solid var(--gold);
}
#pp-days .i-mtm {
  background:
    linear-gradient(180deg, rgba(232,246,239,.96), rgba(255,255,255,.88));
  border: 1px solid rgba(22,121,87,.2);
}
#pp-days .i-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
#pp-days .i-item-title,
#pp-days .i-opt-name {
  min-width: 0;
  color: #071D3A;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}
#pp-days .i-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
#pp-days .i-pill-inc {
  color: #12395F;
  background: rgba(18,57,95,.09);
}
#pp-days .i-pill-opt {
  color: #765000;
  background: rgba(184,135,24,.14);
}
#pp-days .i-tod-main,
#pp-days .i-opt-desc,
#pp-days .i-mtm-name {
  color: var(--mid);
  font-size: 13px;
  line-height: 1.58;
  opacity: 1;
}
#pp-days .i-meals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
#pp-days .i-meal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(206,17,38,.13);
  border-radius: 999px;
  background: rgba(206,17,38,.08);
  color: var(--red);
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  margin-right: 0;
}
#pp-days .i-meal svg {
  width: 10px;
  height: 10px;
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-light) .pretrip-day1-link.pretrip-day1-pass {
    background:
      radial-gradient(circle at 100% 0, rgba(206,17,38,.22), transparent 36%),
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025) 46%, rgba(255,255,255,.035)),
      #141416;
    border-color: rgba(255,255,255,.12);
    border-top-color: var(--red);
    box-shadow: 0 18px 40px rgba(0,0,0,.34);
  }

  html:not(.theme-light) .pretrip-day1-pass::before,
  html:not(.theme-light) .pretrip-day1-pass::after {
    background: var(--bg);
    border-color: rgba(255,255,255,.16);
  }

  html:not(.theme-light) .pretrip-day1-mark {
    background: rgba(242,140,24,.10);
    border-color: rgba(242,140,24,.32);
    color: #F8B44C;
  }

  html:not(.theme-light) .pretrip-day1-timeline {
    border-top-color: rgba(255,255,255,.16);
  }

  html:not(.theme-light) .pretrip-day1-title,
  html:not(.theme-light) .pretrip-day1-row-copy strong {
    color: #FFFFFF;
  }

  html:not(.theme-light) .pretrip-day1-body,
  html:not(.theme-light) .pretrip-day1-row-copy span {
    color: rgba(245,245,247,.76);
  }

  html:not(.theme-light) .pretrip-day1-time {
    color: #FF4054;
  }

  html:not(.theme-light) #pp-days .itin-hero {
    border-color: rgba(255,255,255,.12);
  }
  html:not(.theme-light) #pp-days .i-day {
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
      #121214;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 18px 36px rgba(0,0,0,.32);
  }
  html:not(.theme-light) #pp-days .i-day.open {
    border-color: rgba(206,17,38,.42);
    box-shadow: 0 20px 42px rgba(0,0,0,.38);
  }
  html:not(.theme-light) #pp-days .i-tg {
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  }
  html:not(.theme-light) #pp-days .i-trigger:active .i-tg,
  html:not(.theme-light) #pp-days .i-day.open .i-tg {
    background:
      radial-gradient(circle at top left, rgba(206,17,38,.16), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  }
  html:not(.theme-light) #pp-days .i-tg-num {
    background: rgba(255,255,255,.04);
    border-right-color: rgba(255,255,255,.1);
  }
  html:not(.theme-light) #pp-days .i-day.open .i-tg-num {
    background: rgba(206,17,38,.14);
    border-right-color: rgba(206,17,38,.32);
  }
  html:not(.theme-light) #pp-days .i-panel-inner {
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
      #161618;
    border-top-color: rgba(255,255,255,.1);
  }
  html:not(.theme-light) #pp-days .i-tg-arr {
    background: rgba(255,255,255,.045);
    border-left-color: rgba(255,255,255,.1);
  }
  html:not(.theme-light) #pp-days .i-city,
  html:not(.theme-light) #pp-days .i-item-title,
  html:not(.theme-light) #pp-days .i-opt-name {
    color: var(--text);
  }
  html:not(.theme-light) #pp-days .i-sub,
  html:not(.theme-light) #pp-days .i-tod-main,
  html:not(.theme-light) #pp-days .i-opt-desc,
  html:not(.theme-light) #pp-days .i-mtm-name {
    color: rgba(245,245,247,.78);
  }
  html:not(.theme-light) #pp-days .i-d,
  html:not(.theme-light) #pp-days .i-tod-time,
  html:not(.theme-light) #pp-days .i-arr svg {
    color: rgba(235,235,245,.62);
    stroke: currentColor;
  }
  html:not(.theme-light) #pp-days .i-inc {
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.1);
  }
  html:not(.theme-light) #pp-days .i-opt {
    background:
      linear-gradient(180deg, rgba(201,168,76,.16), rgba(255,255,255,.045));
    border-color: rgba(201,168,76,.25);
  }
  html:not(.theme-light) #pp-days .i-mtm {
    background:
      linear-gradient(180deg, rgba(22,121,87,.18), rgba(255,255,255,.04));
    border-color: rgba(22,121,87,.28);
  }
  html:not(.theme-light) #pp-days .i-ti {
    background: rgba(108,166,226,.16);
    border-color: rgba(108,166,226,.22);
    color: #A9D3FF;
  }
  html:not(.theme-light) #pp-days .i-te {
    background: rgba(201,168,76,.18);
    border-color: rgba(201,168,76,.3);
    color: #F0CF7A;
  }
  html:not(.theme-light) #pp-days .i-tm {
    background: rgba(63,194,141,.16);
    border-color: rgba(63,194,141,.24);
    color: #93E3BB;
  }
  html:not(.theme-light) #pp-days .i-tod-icon {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
  }
}

#tools-grid .ed-card.tool-app:not(.tools-group):not(.tools-spotify):not(.tools-share) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #scr-tools .tool-app-icon {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.34),
      inset 0 -9px 16px rgba(0,0,0,.14),
      0 0 0 1px rgba(255,255,255,.08),
      0 8px 18px rgba(255,255,255,.025);
  }
}

/* Subtle interaction motion: transforms and opacity only, no looping animation. */
@media (prefers-reduced-motion: no-preference) {
  #tools-grid .tool-app,
  .tool-app-icon,
  .tool-app-icon::before,
  .tool-app-icon .material-symbols-outlined,
  .tool-app-badge,
  .tool-app-label {
    transition:
      transform .22s cubic-bezier(.22,1,.36,1),
      opacity .18s ease,
      color .18s ease,
      filter .22s ease,
      box-shadow .22s ease;
  }

  .tool-app-icon {
    transform: translateZ(0);
    will-change: transform;
  }

  #tools-grid .tool-app:focus-visible {
    outline: 2px solid rgba(206,17,38,.55);
    outline-offset: 8px;
  }

  #tools-grid .tool-app:focus-visible .tool-app-icon {
    transform: translate3d(0,-3px,0) scale(1.045);
    filter: saturate(1.08) contrast(1.03);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.36),
      inset 0 -10px 18px rgba(0,0,0,.16),
      0 14px 28px rgba(0,0,0,.22);
  }

  #tools-grid .tool-app:focus-visible .tool-app-icon::before {
    transform: translate3d(8px,-8px,0);
    opacity: .86;
  }

  #tools-grid .tool-app:focus-visible .tool-app-icon .material-symbols-outlined {
    transform: translate3d(0,-1px,0);
  }

  #tools-grid .tool-app:focus-visible .tool-app-badge {
    transform: translate3d(1px,-1px,0) scale(1.08);
    opacity: 1;
  }

  #tools-grid .tool-app:active .tool-app-icon {
    transform: translate3d(0,1px,0) scale(.96);
    filter: saturate(.96) brightness(.94);
  }

  #tools-grid .tool-app:active .tool-app-label {
    transform: translateY(1px);
    opacity: .76;
  }

  .itin-day-row,
  .itin-day-num,
  .itin-day-title,
  .i-day,
  .i-tg,
  .i-tg-num,
  .i-tg-info,
  .i-tg-arr,
  .i-arr,
  .i-arr svg,
  .i-tod,
  .i-tod-icon,
  .i-inc,
  .i-opt,
  .i-mtm,
  .exp-card,
  .exp-img,
  .exp-overlay,
  .exp-day-badge,
  .exp-img-price,
  .exp-img-title,
  .exp-expand-hint svg {
    transition:
      transform .24s cubic-bezier(.22,1,.36,1),
      opacity .2s ease,
      background .2s ease,
      border-color .2s ease,
      box-shadow .24s ease,
      filter .24s ease;
  }

  .exp-card,
  .exp-img,
  .i-day {
    transform: translateZ(0);
  }

  .exp-img {
    transform-origin: center center;
    will-change: transform;
  }

  .i-trigger:focus-visible {
    outline: 2px solid rgba(206,17,38,.45);
    outline-offset: 3px;
  }

  .itin-day-row:not(.locked):active,
  .i-day:active,
  .i-tod:active,
  .i-inc:active,
  .i-opt:active,
  .i-mtm:active {
    transform: translate3d(0,1px,0);
  }

  .exp-card:active .exp-img {
    transform: scale(.992);
    filter: saturate(.96) brightness(.96);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  #tools-grid .tool-app:hover {
    transform: translate3d(0,-2px,0);
  }

  #tools-grid .tool-app:hover .tool-app-icon {
    transform: translate3d(0,-3px,0) scale(1.045);
    filter: saturate(1.08) contrast(1.03);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.36),
      inset 0 -10px 18px rgba(0,0,0,.16),
      0 14px 28px rgba(0,0,0,.22);
  }

  #tools-grid .tool-app:hover .tool-app-icon::before {
    transform: translate3d(8px,-8px,0);
    opacity: .86;
  }

  #tools-grid .tool-app:hover .tool-app-icon .material-symbols-outlined {
    transform: translate3d(0,-1px,0);
  }

  #tools-grid .tool-app:hover .tool-app-badge {
    transform: translate3d(1px,-1px,0) scale(1.08);
    opacity: 1;
  }

  #tools-grid .tool-app:hover .tool-app-label {
    color: var(--text);
    opacity: .92;
    transform: translate3d(0,1px,0);
  }

  @media (prefers-color-scheme: dark) {
    html:not(.theme-light) #tools-grid .tool-app:hover .tool-app-label {
      color: #fff;
    }
  }

  .itin-day-row:not(.locked):hover {
    transform: translate3d(3px,0,0);
    background: var(--card2);
  }

  .itin-day-row:not(.locked):hover .itin-day-num {
    border-color: rgba(206,17,38,.34);
    color: var(--red);
  }

  .itin-day-row:not(.locked):hover .itin-day-title {
    color: var(--red);
  }

  .i-day:hover {
    transform: translate3d(0,-2px,0);
    border-color: rgba(206,17,38,.24);
    box-shadow: 0 18px 38px rgba(7,29,58,.11);
  }

  .i-day:hover .i-tg {
    background:
      radial-gradient(circle at top left, rgba(206,17,38,.06), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.68), rgba(247,249,252,.78));
  }

  .i-day:hover .i-tg-num {
    border-right-color: rgba(206,17,38,.22);
  }

  .i-day:hover .i-tg-arr {
    filter: saturate(1.08);
  }

  .i-day:hover .i-arr {
    transform: translate3d(2px,0,0);
    border-color: rgba(206,17,38,.38);
  }

  #pp-days .i-day:hover {
    box-shadow: 0 20px 42px rgba(7,29,58,.13);
  }

  #pp-days .i-day:hover .i-tg {
    background:
      radial-gradient(circle at top left, rgba(206,17,38,.08), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,249,252,.82));
  }

  .i-tod:hover,
  .i-inc:hover,
  .i-opt:hover,
  .i-mtm:hover {
    transform: translate3d(2px,0,0);
  }

  .i-tod:hover .i-tod-icon {
    transform: scale(1.04);
    filter: saturate(1.08);
  }

  #pp-days .i-inc:hover,
  #pp-days .i-opt:hover,
  #pp-days .i-mtm:hover {
    box-shadow: 0 14px 28px rgba(7,29,58,.085);
  }

  .exp-card:hover {
    transform: translate3d(0,-2px,0);
  }

  .exp-card:hover .exp-img {
    transform: scale(1.025);
    filter: saturate(1.06) contrast(1.02);
  }

  .exp-card:hover .exp-overlay {
    opacity: .92;
  }

  .exp-card:hover .exp-day-badge,
  .exp-card:hover .exp-img-price,
  .exp-card:hover .exp-img-title {
    transform: translate3d(0,-2px,0);
  }

  .exp-card:not(.open):hover .exp-expand-hint svg {
    transform: translate3d(0,-2px,0);
    opacity: .82;
  }

  @media (prefers-color-scheme: dark) {
    html:not(.theme-light) #scr-tools #tools-grid .tool-app:hover .tool-app-icon {
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.38),
        inset 0 -9px 16px rgba(0,0,0,.14),
        0 0 0 1px rgba(255,255,255,.12),
        0 10px 22px rgba(255,255,255,.035);
    }

    html:not(.theme-light) .i-day:hover,
    html:not(.theme-light) #pp-days .i-day:hover {
      border-color: rgba(255,64,86,.38);
      box-shadow: 0 22px 44px rgba(0,0,0,.42);
    }

    html:not(.theme-light) .i-day:hover .i-tg,
    html:not(.theme-light) #pp-days .i-day:hover .i-tg {
      background:
        radial-gradient(circle at top left, rgba(255,64,86,.16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
    }

    html:not(.theme-light) #pp-days .i-inc:hover,
    html:not(.theme-light) #pp-days .i-opt:hover,
    html:not(.theme-light) #pp-days .i-mtm:hover {
      box-shadow: 0 16px 30px rgba(0,0,0,.28);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  #tools-grid .tool-app,
  .tool-app-icon,
  .tool-app-icon::before,
  .tool-app-icon .material-symbols-outlined,
  .tool-app-badge,
  .itin-day-row,
  .i-day,
  .i-tg,
  .i-arr,
  .i-arr svg,
  .i-panel,
  .i-tod,
  .i-inc,
  .i-opt,
  .i-mtm,
  .exp-card,
  .exp-img,
  .exp-overlay,
  .exp-body,
  .exp-expand-hint svg {
    transition-duration: .01ms !important;
  }
}

@media (max-width: 430px) {
  #pp-optionals .prog-hero {
    height: 238px;
  }
  #pp-optionals .prog-hero-copy {
    bottom: 22px;
  }
  #pp-optionals .prog-hero-title {
    font-size: 29px;
  }
  #pp-optionals .prog-hero-sub {
    font-size: 13px;
    max-width: 28ch;
  }
  #pp-days .itin-hero {
    height: 248px;
    min-height: 0;
    margin: 10px;
    border-radius: 22px;
  }
  #pp-days .itin-hero img {
    min-height: 0;
    object-position: center 58%;
  }
  #pp-days .itin-hero-copy {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }
  #pp-days .itin-hero-eye,
  #pp-optionals .prog-overline {
    font-size: 9px;
  }
  #pp-days .itin-hero-title {
    font-size: 31px;
  }
  #pp-days .itin-hero-sub {
    max-width: 28ch;
    font-size: 13px;
  }
  #pp-days .i-day {
    margin: 10px;
    border-radius: 13px;
  }
  #pp-days .i-tg {
    grid-template-columns: 62px minmax(0, 1fr) 34px;
    min-height: 84px;
  }
  #pp-days .i-tg-num {
    min-height: 84px;
    padding-left: 13px;
  }
  #pp-days .i-n {
    font-size: 24px;
  }
  #pp-days .i-city {
    font-size: 14px;
  }
  #pp-days .i-sub {
    font-size: 10.5px;
  }
  #pp-days .i-tod-list {
    gap: 10px;
    padding: 0 10px;
  }
  #pp-days .i-tod-list::before {
    left: 29px;
  }
  #pp-days .i-tod {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
  }
  #pp-days .i-tod-icon {
    width: 34px;
    height: 34px;
  }
  #pp-days .i-item-head {
    align-items: flex-start;
  }
  #pp-days .i-tod-main,
  #pp-days .i-opt-desc,
  #pp-days .i-mtm-name {
    font-size: 12.5px;
    line-height: 1.55;
  }
}

/* Warm community surfaces: avoid the black dark-mode jump on the social flow. */
@media (prefers-color-scheme: dark) {
  html:not(.theme-light) #p-photos.panel,
  html:not(.theme-light) #p-photos .panel-body,
  html:not(.theme-light) #p-photos .panel-body.np {
    background:
      radial-gradient(circle at 100% 0%, rgba(206,17,38,.10), transparent 30%),
      radial-gradient(circle at 0 18%, rgba(201,168,76,.16), transparent 28%),
      linear-gradient(180deg, #f7efe2 0%, #eee0cc 48%, #e7d7bd 100%) !important;
    color: #211d1b;
  }

  html:not(.theme-light) #p-photos .p-title {
    color: #211d1b !important;
  }

  html:not(.theme-light) #p-photos .panel-hdr {
    background: rgba(255,250,243,.94);
    border-bottom-color: rgba(76,55,40,.14);
  }

  html:not(.theme-light) #p-photos .p-back {
    color: #ce1126;
  }

  html:not(.theme-light) #p-photos .community-photo-title,
  html:not(.theme-light) #p-photos .photo-upload-lbl,
  html:not(.theme-light) #p-photos .photo-lb-cap {
    color: #211d1b;
  }

  html:not(.theme-light) #p-photos .community-photo-copy,
  html:not(.theme-light) #p-photos .photo-upload-hint,
  html:not(.theme-light) #p-photos .photo-empty,
  html:not(.theme-light) #p-photos .photo-notice {
    color: #6f5d51;
  }
}

/* Manual theme and glass navigation final overrides. Keep these after broad mode blocks. */
html.theme-light {
  --bg: #F8F8F6;
  --surface: #EFEFED;
  --card: #FFFFFF;
  --card2: #F4F4F2;
  --rule: rgba(0,0,0,0.09);
  --rule2: rgba(0,0,0,0.05);
  --text: #111110;
  --mid: #6B6B6B;
  --dim: #ABABAB;
  --red: #CE1126;
  --gold: #9A7B2E;
  --gold-lt: rgba(154,123,46,0.1);
  color-scheme: light;
}
html.theme-dark {
  --bg: #0f0d0b;
  --surface: #191612;
  --card: #191612;
  --card2: #211d18;
  --rule: rgba(255,255,255,0.11);
  --rule2: rgba(255,255,255,0.07);
  --text: #F8F1E7;
  --mid: #C9BCAA;
  --dim: #9B8D7D;
  --red: #FF3B4F;
  --gold: #E3BD5D;
  --gold-lt: rgba(227,189,93,0.14);
  color-scheme: dark;
}
html.theme-dark,
html.theme-dark body,
html.theme-dark #app {
  background: var(--bg) !important;
}
html.theme-dark .screen,
html.theme-dark .prog-panel,
html.theme-dark .panel,
html.theme-dark .panel-body,
html.theme-dark .panel-body.np {
  background:
    radial-gradient(circle at 100% 0%, rgba(206,17,38,.08), transparent 28%),
    radial-gradient(circle at 0 16%, rgba(227,189,93,.10), transparent 26%),
    var(--bg) !important;
}
html.theme-light,
html.theme-light body,
html.theme-light #app {
  background: var(--bg) !important;
}
.bnav {
  bottom: max(8px, var(--safe-bot)) !important;
  width: calc(100% - 24px) !important;
  max-width: 810px !important;
  height: var(--nav-h) !important;
  padding: 7px 8px !important;
  background: rgba(14,12,10,.30) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.22) !important;
  backdrop-filter: blur(30px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.35) !important;
}
.ni svg { stroke: rgba(255,255,255,.70) !important; }
.ni span { color: rgba(255,255,255,.72) !important; font-size: 9px !important; font-weight: 800 !important; }
.ni.active { background: rgba(255,255,255,.13) !important; }
.ni.active svg { stroke: #fff !important; }
.ni.active span { color: #fff !important; }
html.theme-dark .bnav {
  background: rgba(8,7,6,.42) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.48) !important;
}


/* Manual theme parity: app choices must override the OS color scheme. */
html.theme-dark { color-scheme: dark; }

  html.theme-dark {
    --bg: #000000;
    --surface: #1C1C1E;
    --card: #1C1C1E;
    --card2: #2C2C2E;
    --rule: rgba(84,84,88,0.65);
    --rule2: rgba(84,84,88,0.36);
    --text: #FFFFFF;
    --mid: rgba(245,245,247,0.78);
    --dim: rgba(235,235,245,0.52);
    --gold: #C9A84C;
    --gold-lt: rgba(201,168,76,0.12);
    --inv-bg: #FFFFFF;
    --inv-text: #000000;
  }


  html.theme-dark #scr-tools {
    background:
      radial-gradient(circle at 100% 0%, rgba(206,17,38,.18), transparent 26%),
      radial-gradient(circle at 0% 16%, rgba(224,184,90,.14), transparent 30%),
      linear-gradient(180deg, #10100f 0%, #080808 44%, #050505 100%);
    --ed-card: #151515;
    --ed-card-low: #20201e;
    --ed-text: #f8f5ef;
    --ed-muted: rgba(248,245,239,.68);
    --ed-gold: #e0b85a;
    --ed-red: #ff4056;
  }


  html.theme-dark #scr-tools .ed-kicker,
  html.theme-dark #tools-grid::before {
    color: #e0b85a;
  }
  html.theme-dark #scr-tools .ed-rule {
    background: linear-gradient(90deg, #ff4056, #e0b85a);
  }
  html.theme-dark #tools-grid .ed-card:not(.tools-group):not(.tools-spotify):not(.tools-share) {
    background:
      radial-gradient(circle at 100% 0%, var(--ed-card-soft), transparent 42%),
      linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 44%, rgba(0,0,0,.18)),
      #151515 !important;
    border-color: rgba(255,255,255,.105);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.09),
      0 1px 0 rgba(255,255,255,.035),
      0 14px 32px rgba(0,0,0,.24);
  }
  html.theme-dark #tools-grid .ed-card:not(.tools-group):not(.tools-spotify):not(.tools-share)::before {
    background: linear-gradient(90deg, var(--ed-card-accent), rgba(255,255,255,.08) 42%, transparent 76%);
  }
  html.theme-dark #tools-grid .ed-card:active {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.075),
      0 9px 22px rgba(0,0,0,.24);
  }
  html.theme-dark #tools-grid .ed-card-title {
    color: #f8f5ef;
  }
  html.theme-dark #tools-grid .ed-card-sub {
    color: rgba(248,245,239,.68) !important;
  }
  html.theme-dark #tools-grid .ed-card-kicker {
    color: var(--ed-card-accent) !important;
  }
  html.theme-dark #tools-grid .ed-card-arrow {
    background: rgba(255,255,255,.07);
    color: var(--ed-card-accent);
  }
  html.theme-dark #tools-grid .ed-icon-bubble {
    background:
      linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
      var(--ed-card-soft) !important;
    color: var(--ed-card-accent);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.11),
      0 8px 18px rgba(0,0,0,.16);
  }
  html.theme-dark #tools-grid .ed-tool-art {
    opacity: .74;
  }
  html.theme-dark #tools-grid .ed-tool-art .tool-line {
    opacity: .28;
  }
  html.theme-dark #tools-grid .ed-tool-art .tool-fill {
    opacity: .105;
  }
  html.theme-dark #tools-grid .ed-tool-art .tool-soft {
    opacity: .08;
  }
  html.theme-dark #tools-grid .tools-weather,
  html.theme-dark #tools-grid .tools-packing,
  html.theme-dark #tools-grid .tools-faq,
  html.theme-dark #tools-grid .tools-photomap {
    --ed-card-accent: #91b7ef !important;
    --ed-card-soft: rgba(145,183,239,.14) !important;
  }
  html.theme-dark #tools-grid .tools-rates,
  html.theme-dark #tools-grid .tools-photos,
  html.theme-dark #tools-grid .tools-memory,
  html.theme-dark #tools-grid .tools-movies {
    --ed-card-accent: #e0b85a !important;
    --ed-card-soft: rgba(224,184,90,.15) !important;
  }
  html.theme-dark #tools-grid .tools-translate {
    --ed-card-accent: #68c8be !important;
    --ed-card-soft: rgba(104,200,190,.14) !important;
  }
  html.theme-dark #tools-grid .tools-essentials,
  html.theme-dark #tools-grid .tools-tips {
    --ed-card-accent: #ff6274 !important;
    --ed-card-soft: rgba(255,98,116,.15) !important;
  }
  html.theme-dark #tools-grid .tools-weather .ed-tool-art,
  html.theme-dark #tools-grid .tools-packing .ed-tool-art,
  html.theme-dark #tools-grid .tools-photomap .ed-tool-art,
  html.theme-dark #tools-grid .tools-faq .ed-tool-art {
    color: #91b7ef;
  }
  html.theme-dark #tools-grid .tools-rates .ed-tool-art,
  html.theme-dark #tools-grid .tools-photos .ed-tool-art,
  html.theme-dark #tools-grid .tools-memory .ed-tool-art,
  html.theme-dark #tools-grid .tools-movies .ed-tool-art {
    color: #e0b85a;
  }
  html.theme-dark #tools-grid .tools-translate .ed-tool-art {
    color: #68c8be;
  }
  html.theme-dark #tools-grid .tools-essentials .ed-tool-art,
  html.theme-dark #tools-grid .tools-tips .ed-tool-art {
    color: #ff6274;
  }
  html.theme-dark #tools-grid .tools-group {
    border-color: rgba(255,255,255,.13);
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
  }
  html.theme-dark #tools-grid .tools-group img {
    filter: brightness(.72) saturate(.92) contrast(1.08);
  }
  html.theme-dark #tools-grid .tools-map {
    --ed-card-accent: #91b7ef !important;
  }
  html.theme-dark #tools-grid .tools-map img {
    opacity: .24 !important;
    filter: grayscale(.24) brightness(.72) contrast(1.16) !important;
  }
  html.theme-dark #tools-grid .tools-map .ed-card-kicker,
  html.theme-dark #tools-grid .tools-map [style*="color:#1b1c1a"],
  html.theme-dark #tools-grid .tools-map [style*="color:#403a36"] {
    color: rgba(248,245,239,.76) !important;
  }
  html.theme-dark #tools-grid .tools-map [style*="background:rgba(255,255,255,.92)"] {
    background:
      linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)),
      rgba(145,183,239,.16) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 20px rgba(0,0,0,.18) !important;
  }
  html.theme-dark #tools-grid .tools-map [style*="color:#1b1c1a"] {
    color: #dce9ff !important;
  }
  html.theme-dark #tools-grid .tools-translate [style*="color:#fff"] {
    color: #efffff !important;
  }
  html.theme-dark #tools-grid .tools-translate .ed-card-sub[style],
  html.theme-dark #tools-grid .tools-memory .ed-card-sub[style],
  html.theme-dark #tools-grid .tools-faq .ed-card-kicker[style],
  html.theme-dark #tools-grid .tools-quiz .ed-card-sub[style] {
    color: var(--ed-card-accent) !important;
  }
  html.theme-dark #tools-grid .tools-movies .ed-icon-bubble[style],
  html.theme-dark #tools-grid .tools-memory .ed-icon-bubble[style] {
    background:
      linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
      var(--ed-card-soft) !important;
  }
  html.theme-dark #tools-grid .tools-movies .ed-icon-bubble [style*="color:var(--ed-red)"],
  html.theme-dark #tools-grid .tools-memory .ed-icon-bubble [style*="color:#755b00"] {
    color: var(--ed-card-accent) !important;
  }
  html.theme-dark #tools-grid .ed-photo-stack > div {
    background: #111;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 8px 20px rgba(0,0,0,.24);
  }
  html.theme-dark #tools-grid .ed-photo-stack img {
    filter: brightness(.86) saturate(.92);
  }
  html.theme-dark #tools-grid .tools-spotify {
    background:
      radial-gradient(circle at 90% 0%, rgba(255,255,255,.16), transparent 34%),
      linear-gradient(145deg, #8f0718 0%, #4d050d 62%, #1a0708 100%) !important;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 16px 34px rgba(89,5,14,.28);
  }
  html.theme-dark #tools-grid .tools-share {
    background:
      radial-gradient(circle at 92% 8%, rgba(255,255,255,.18), transparent 32%),
      linear-gradient(135deg, #a50b1d, #5d0710 68%, #210708) !important;
    border-color: rgba(255,255,255,.12);
  }
  html.theme-dark #tools-grid .tools-spotify .ed-card-sub.light,
  html.theme-dark #tools-grid .tools-share .ed-card-sub.light {
    color: rgba(255,255,255,.76) !important;
  }
  html.theme-dark .tools-admin-card {
    background:
      linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
      #151515;
    border-color: rgba(255,255,255,.1);
    border-top-color: #e0b85a;
  }
  html.theme-dark .tools-admin-btn.secondary {
    background: rgba(255,255,255,.07);
    color: #f8f5ef;
    border-color: rgba(255,255,255,.12);
  }


  html.theme-dark #app { box-shadow: none; }
  html.theme-dark .hdr,
  html.theme-dark .bnav,
  html.theme-dark .screen,
  html.theme-dark .list-row,
  html.theme-dark .quote-card,
  html.theme-dark .contact-card,
  html.theme-dark .hotel-card,
  html.theme-dark .opt-card,
  html.theme-dark .day-end-card,
  html.theme-dark .tod-block,
  html.theme-dark .dd-hero,
  html.theme-dark .lock-card { background: var(--card); }
  html.theme-dark .tl-item::before { background: rgba(255,255,255,.09); }
  html.theme-dark .tl-time { color: #d8b14a; }
  html.theme-dark .tl-what { color: #fff; }
  html.theme-dark .tl-note { color: rgba(255,255,255,.78); }
  html.theme-dark .tl-dot.opt { border-color: rgba(255,255,255,.42); }
  html.theme-dark .tl-item.tl-now { background: rgba(206,17,38,.09); }
  html.theme-dark .departure-card {
    background:
      linear-gradient(135deg, rgba(77,183,233,.12), transparent 48%),
      #111820;
    border-color: rgba(77,183,233,.22);
    color: #fff;
  }
  html.theme-dark .departure-title,
  html.theme-dark .departure-thanks-title,
  html.theme-dark .departure-note strong,
  html.theme-dark .departure-thanks-link strong,
  html.theme-dark .transfer-manifest-head,
  html.theme-dark .transfer-manifest summary,
  html.theme-dark .transfer-manifest li strong {
    color: #fff;
  }
  html.theme-dark .departure-thanks {
    background:
      linear-gradient(135deg, rgba(206,17,38,.14), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.06), transparent 58%),
      rgba(201,168,76,.08);
    border-color: rgba(201,168,76,.22);
  }
  html.theme-dark .departure-thanks-link {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.11);
  }
  html.theme-dark .departure-drive,
  html.theme-dark .departure-note,
  html.theme-dark .transfer-manifest {
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.11);
  }
  html.theme-dark .departure-note p,
  html.theme-dark .departure-thanks p,
  html.theme-dark .departure-thanks-link span:last-child {
    color: rgba(255,255,255,.74);
  }
  html.theme-dark .transfer-manifest-head small,
  html.theme-dark .transfer-manifest summary small {
    color: rgba(255,255,255,.55);
  }
  html.theme-dark .transfer-manifest li span,
  html.theme-dark .transfer-manifest summary em {
    background: rgba(77,183,233,.12);
    color: #8edcff;
  }

  html.theme-dark .today-hero,
  html.theme-dark .brief,
  html.theme-dark .pretrip-day1-link {
    background:
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 56%),
      var(--card);
    box-shadow: none;
  }

  html.theme-dark .venice-pass-card {
    background:
      radial-gradient(circle at top right, rgba(10,132,255,.18), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 52%),
      var(--card);
    box-shadow: none;
  }
  html.theme-dark .venice-pass-pill,
  html.theme-dark .vp-search-clear,
  html.theme-dark .vp-row-open,
  html.theme-dark .vp-field,
  html.theme-dark .vp-list-card,
  html.theme-dark .vp-search-card,
  html.theme-dark .vp-result-card {
    background: var(--card2);
  }
  html.theme-dark .vp-field { border: 1px solid var(--rule); border-bottom: 2px solid #0A84FF; }
  html.theme-dark .vp-search-card,
  html.theme-dark .vp-result-card,
  html.theme-dark .vp-list-card,
  html.theme-dark .venice-pass-card { border-color: var(--rule); }

  html.theme-dark .pretrip-cta {
    background:
      radial-gradient(circle at top right, rgba(37,211,102,.14), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 52%),
      var(--card);
    box-shadow: none;
  }

  html.theme-dark .brief-note,
  html.theme-dark .brief-row,
  html.theme-dark .adm-note-slot,
  html.theme-dark .today-pill,
  html.theme-dark .morning-item,
  html.theme-dark .next-up,
  html.theme-dark .contact-action:active,
  html.theme-dark .hotel-action:active,
  html.theme-dark .list-row:active {
    background: var(--card2);
  }

  html.theme-dark .brief-note-red {
    background: linear-gradient(180deg, rgba(206,17,38,.18), rgba(206,17,38,.06)), var(--card2);
    border-color: rgba(206,17,38,.3);
  }
  html.theme-dark .brief-note-gold {
    background: linear-gradient(180deg, rgba(201,168,76,.18), rgba(201,168,76,.06)), var(--card2);
    border-color: rgba(201,168,76,.28);
  }
  html.theme-dark .brief-note-blue {
    background: linear-gradient(180deg, rgba(82,95,113,.22), rgba(82,95,113,.08)), var(--card2);
    border-color: rgba(140,153,171,.24);
  }
  html.theme-dark .exp-sasha-note {
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), transparent 42%),
      linear-gradient(160deg, #364557 0%, #2c3949 100%);
    border-color: rgba(173, 190, 209, 0.14);
    box-shadow: none;
  }
  html.theme-dark .exp-sasha-lbl { color: #d4b66c; }
  html.theme-dark .exp-sasha-text { color: rgba(235,239,244,0.82); }
  html.theme-dark .exp-sasha-text b { color: #ffffff; }

  html.theme-dark .adm-edit-btn {
    color: rgba(255,255,255,.92);
    background: var(--card2);
    border: 1px solid var(--rule);
    border-radius: 10px;
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  html.theme-dark .adm-add-btn {
    background: var(--card2);
    color: rgba(255,255,255,.78);
    border-color: rgba(255,255,255,.16);
  }
  html.theme-dark .adm-field {
    background: var(--card2);
    border: 1px solid var(--rule);
    border-bottom: 2px solid var(--gold);
  }
  html.theme-dark .adm-sheet-inner {
    background: #1C1C1E;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -18px 44px rgba(0,0,0,.45);
  }
  html.theme-dark .adm-sheet-bg { background: rgba(0,0,0,.72); }
  html.theme-dark #adm-planner-strip { background: rgba(28,28,30,.94); backdrop-filter: saturate(180%) blur(18px); }
  html.theme-dark .adm-day-btn { background: var(--card2); color: rgba(255,255,255,.72); }
  html.theme-dark .adm-day-btn.is-today { background: rgba(201,168,76,.2); }
  html.theme-dark .ask-sasha,
  html.theme-dark .next-up,
  html.theme-dark .contact-card,
  html.theme-dark .hotel-card,
  html.theme-dark .opt-card,
  html.theme-dark .brief,
  html.theme-dark .today-hero { border-color: var(--rule); }


  html.theme-dark #weather-body {
    background:
      radial-gradient(circle at 15% 0%, rgba(76, 134, 184, .22), transparent 34%),
      radial-gradient(circle at 100% 8%, rgba(201, 168, 76, .18), transparent 31%),
      #000;
  }
  html.theme-dark .weather-search {
    background:
      radial-gradient(circle at top right, rgba(76,134,184,.2), transparent 34%),
      linear-gradient(145deg, #17263a, #0b1d34 58%, #07172b);
    border-color: rgba(255,255,255,.14);
    box-shadow: 0 18px 42px rgba(7,29,58,.22);
  }
  html.theme-dark .weather-location-btn {
    background:
      radial-gradient(circle at top right, rgba(76,134,184,.2), transparent 34%),
      linear-gradient(145deg, #17263a, #0b1d34 58%, #07172b);
    border-color: rgba(255,255,255,.14);
    color: #d8ecff;
    box-shadow: 0 18px 42px rgba(7,29,58,.22);
  }
  html.theme-dark .weather-search label,
  html.theme-dark .weather-route-title {
    color: #f8b44c;
  }
  html.theme-dark .weather-search input {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.18);
    color: #fff;
  }
  html.theme-dark .weather-search input::placeholder {
    color: rgba(255,255,255,.48);
  }
  html.theme-dark .weather-search input:focus {
    border-color: rgba(248,180,76,.65);
    box-shadow: 0 0 0 3px rgba(248,180,76,.18);
  }
  html.theme-dark .weather-search button {
    background: #4f83b2;
    color: #fff;
  }
  html.theme-dark .weather-city-result-head button {
    background: rgba(255,255,255,.12);
    color: #d8ecff;
  }
  html.theme-dark .weather-city-name {
    color: #fff;
  }
  html.theme-dark .weather-city-empty,
  html.theme-dark .w-loading.city {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
    color: rgba(255,255,255,.7);
  }
  html.theme-dark .w-card {
    background:
      linear-gradient(145deg, rgba(50,58,70,.82), rgba(24,25,28,.92) 44%, rgba(20,20,22,.98)),
      linear-gradient(140deg, var(--w-accent-soft), rgba(0,0,0,.2));
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
  }
  html.theme-dark .w-hero-icon {
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 26px rgba(0,0,0,.22);
  }
  html.theme-dark .w-day-label {
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.12);
  }
  html.theme-dark .w-extras {
    border-top-color: rgba(255,255,255,.1);
  }


  html.theme-dark .trans-top {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.18), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 54%),
      #171719;
    border-color: rgba(201,168,76,.26);
    box-shadow: 0 18px 42px rgba(0,0,0,.38);
  }
  html.theme-dark .trans-lang-pill,
  html.theme-dark .trans-ta,
  html.theme-dark .group-field {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.15);
    color: var(--text);
  }
  html.theme-dark .trans-lang-pill {
    color: rgba(255,255,255,.82);
  }
  html.theme-dark .trans-ta::placeholder,
  html.theme-dark .group-field::placeholder {
    color: rgba(235,235,245,.50);
  }
  html.theme-dark .trans-voice {
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.16);
  }
  html.theme-dark .trans-result,
  html.theme-dark .phrase-item,
  html.theme-dark .group-hero-card,
  html.theme-dark .group-card,
  html.theme-dark .group-member-card {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.10), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.045), transparent 58%),
      #1a1a1c;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.32);
  }
  html.theme-dark .group-hero-card div {
    background: rgba(206,17,38,.10);
    border-color: rgba(206,17,38,.20);
  }
  html.theme-dark .avatar-pick-area {
    background: rgba(255,255,255,.055);
    border-color: rgba(201,168,76,.32);
  }

 html.theme-dark .tax-callout { border-color: rgba(201,168,76,0.2); }

  html.theme-dark #pp-days,
  html.theme-dark #pp-optionals,
  html.theme-dark #pp-shopping,
  html.theme-dark #pp-mtm {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.12), transparent 28%),
      linear-gradient(180deg, rgba(255,255,255,.02), transparent 220px),
      var(--bg);
  }
  html.theme-dark .exp-region-hdr,
  html.theme-dark .i-tod,
  html.theme-dark .prog-intro-card,
  html.theme-dark .shop-card,
  html.theme-dark .shop-feature,
  html.theme-dark .shop-note-card,
  html.theme-dark .tax-callout,
  html.theme-dark .mtm-panel-card,
  html.theme-dark .mtm-story {
    box-shadow: none;
  }
  html.theme-dark .i-tod {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border-color: rgba(255,255,255,.08);
  }
  html.theme-dark .i-tod-label { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
  html.theme-dark .i-inc { background: linear-gradient(180deg, rgba(201,168,76,.14), rgba(201,168,76,.05)); border-color: rgba(201,168,76,.18); }
  html.theme-dark .i-opt { background: linear-gradient(180deg, rgba(206,17,38,.12), rgba(206,17,38,.04)); border-color: rgba(206,17,38,.18); }
  html.theme-dark .i-mtm { background: linear-gradient(180deg, rgba(46,139,87,.14), rgba(46,139,87,.04)); border-color: rgba(46,139,87,.2); }
  html.theme-dark .prog-intro-card,
  html.theme-dark .shop-card,
  html.theme-dark .shop-feature,
  html.theme-dark .shop-note-card,
  html.theme-dark .mtm-panel-card,
  html.theme-dark .mtm-story {
    border-color: rgba(255,255,255,.08);
  }
  html.theme-dark .tax-callout { background: linear-gradient(135deg, rgba(201,168,76,.16), rgba(255,255,255,.04) 68%); }

  html.theme-dark /* ── Fix white-gradient cards in dark mode ── */
  .prog-intro-card,
  html.theme-dark .itin-intro {
    background: var(--card);
  }
  html.theme-dark .shop-card,
  html.theme-dark .shop-note-card {
    background: var(--card);
  }
  html.theme-dark .shop-feature {
    background: var(--card);
  }
  html.theme-dark .shop-feature-copy {
    background: transparent;
  }
  html.theme-dark .exp-card {
    background: var(--card);
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
  }
  html.theme-dark .i-day {
    background: var(--card);
    border-color: rgba(255,255,255,.08);
  }
  html.theme-dark .i-panel-inner {
    background: var(--card);
  }
  html.theme-dark .i-tg {
    background: transparent;
  }
  html.theme-dark .mtm-panel-card {
    background: linear-gradient(180deg, rgba(46,139,87,.18), var(--card));
  }
  html.theme-dark .mtm-story {
    background: var(--card);
  }

  html.theme-dark /* ── Fix prog-tabs inactive tab readability ── */
  .pt {
    color: var(--mid);
    background: var(--card);
  }

  html.theme-dark /* ── Fix remaining white-gradient overlays ── */
  .exp-body {
    background: transparent;
  }
  html.theme-dark .exp-sasha-note {
    background: rgba(206,17,38,.08);
  }
  html.theme-dark .exp-quote {
    background: rgba(154,123,46,.1);
  }
  html.theme-dark .sasha-card {
    background: var(--card);
  }


  html.theme-dark .exp-subnav { background: linear-gradient(180deg, rgba(17,17,16,.92), rgba(17,17,16,.78)); }


  html.theme-dark .exp-body {
    background: var(--bg);
  }
  html.theme-dark .exp-sasha-note {
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), transparent 42%),
      linear-gradient(160deg, #262d36 0%, #20262e 100%);
    border-color: rgba(173,190,209,0.16);
    box-shadow: none;
  }
  html.theme-dark .exp-sasha-lbl {
    color: #d4b66c;
  }
  html.theme-dark .exp-sasha-text {
    color: rgba(245,245,247,0.84);
  }
  html.theme-dark .exp-sasha-text b {
    color: #fff;
  }


  html.theme-dark .today-map-card {
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
    box-shadow: 0 18px 46px rgba(0,0,0,.3);
  }
  html.theme-dark .today-map-kicker { color: var(--gold); }
  html.theme-dark .today-map-stage { background:#25231d; }


  html.theme-dark .group-field {
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.15);
    color: var(--text);
  }
  html.theme-dark .group-field::placeholder {
    color: rgba(235,235,245,.50);
  }
  html.theme-dark .group-hero-card,
  html.theme-dark .group-card,
  html.theme-dark .group-member-card {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.10), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.045), transparent 58%),
      #1a1a1c;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.32);
  }


  html.theme-dark #scr-sasha {
    background:
      radial-gradient(circle at top right, rgba(206,17,38,.14), transparent 26%),
      radial-gradient(circle at top left, rgba(201,168,76,.1), transparent 22%),
      linear-gradient(180deg, rgba(255,255,255,.02), transparent 220px),
      var(--bg);
  }
  html.theme-dark .sasha-hero,
  html.theme-dark .sasha-card,
  html.theme-dark .sasha-promo,
  html.theme-dark .sasha-tour-card,
  html.theme-dark .sasha-testimonial,
  html.theme-dark .sasha-brand {
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
  }
  html.theme-dark .sasha-stat {
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
  }
  html.theme-dark .sasha-tour-copy,
  html.theme-dark .sasha-copy,
  html.theme-dark .sasha-testimonial-quote { color: var(--text); opacity: .8; }
  html.theme-dark .sasha-hero-action.secondary,
  html.theme-dark .sasha-cta-secondary,
  html.theme-dark .sasha-perk {
    border-color: rgba(255,255,255,.08);
  }
  html.theme-dark .sasha-promo {
    background:
      radial-gradient(circle at top right, rgba(201,168,76,.16), transparent 30%),
      linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01) 46%),
      #1c1c1e;
  }
  html.theme-dark .sasha-promo-copy,
  html.theme-dark .sasha-cta-sub,
  html.theme-dark .sasha-notice-copy,
  html.theme-dark .sasha-perk-label {
    color: rgba(255,255,255,.78);
  }
  html.theme-dark .sasha-notice-copy strong,
  html.theme-dark .sasha-perk-value,
  html.theme-dark .sasha-perk-value.alt {
    color: #fff;
  }
  html.theme-dark .sasha-perk {
    background: rgba(255,255,255,.06);
  }
  html.theme-dark .sasha-notice {
    background: rgba(255,159,10,.12);
    border-color: rgba(255,159,10,.22);
  }
  html.theme-dark .sasha-notice-ico {
    background: rgba(255,159,10,.2);
  }


  html.theme-dark .i-ti { background: rgba(255,255,255,.08); color: var(--mid); }
  html.theme-dark .i-te { background: rgba(201,168,76,.15); color: var(--gold); }
  html.theme-dark .i-tm { background: rgba(30,100,50,.15); color: #4CAF70; }

 html.theme-dark .i-tod-icon.eve { background: rgba(255,255,255,.08); } html.theme-dark .i-tod-icon.eve svg { stroke: var(--mid); }
 html.theme-dark .i-meal { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
 html.theme-dark .i-mtm { background: rgba(255,255,255,.06); }

  html.theme-dark #scr-tools {
    background:
      radial-gradient(circle at 100% 0%, rgba(206,17,38,.18), transparent 27%),
      radial-gradient(circle at 0 18%, rgba(224,184,90,.14), transparent 30%),
      linear-gradient(180deg, #10100f 0%, #080808 46%, #050505 100%) !important;
    --ed-text: #f8f5ef;
    --ed-muted: rgba(248,245,239,.68);
    --ed-gold: #e0b85a;
    --ed-red: #ff4056;
  }
  html.theme-dark #scr-tools .ed-title,
  html.theme-dark #scr-tools .tool-app-label {
    color: #f8f5ef !important;
  }
  html.theme-dark #scr-tools .ed-kicker,
  html.theme-dark #tools-grid::before {
    color: #e0b85a !important;
  }


  html.theme-dark .pretrip-day1-link.pretrip-day1-pass {
    background:
      radial-gradient(circle at 100% 0, rgba(206,17,38,.22), transparent 36%),
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025) 46%, rgba(255,255,255,.035)),
      #141416;
    border-color: rgba(255,255,255,.12);
    border-top-color: var(--red);
    box-shadow: 0 18px 40px rgba(0,0,0,.34);
  }

  html.theme-dark .pretrip-day1-pass::before,
  html.theme-dark .pretrip-day1-pass::after {
    background: var(--bg);
    border-color: rgba(255,255,255,.16);
  }

  html.theme-dark .pretrip-day1-mark {
    background: rgba(242,140,24,.10);
    border-color: rgba(242,140,24,.32);
    color: #F8B44C;
  }

  html.theme-dark .pretrip-day1-timeline {
    border-top-color: rgba(255,255,255,.16);
  }

  html.theme-dark .pretrip-day1-title,
  html.theme-dark .pretrip-day1-row-copy strong {
    color: #FFFFFF;
  }

  html.theme-dark .pretrip-day1-body,
  html.theme-dark .pretrip-day1-row-copy span {
    color: rgba(245,245,247,.76);
  }

  html.theme-dark .pretrip-day1-time {
    color: #FF4054;
  }

  html.theme-dark #pp-days .itin-hero {
    border-color: rgba(255,255,255,.12);
  }
  html.theme-dark #pp-days .i-day {
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
      #121214;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 18px 36px rgba(0,0,0,.32);
  }
  html.theme-dark #pp-days .i-day.open {
    border-color: rgba(206,17,38,.42);
    box-shadow: 0 20px 42px rgba(0,0,0,.38);
  }
  html.theme-dark #pp-days .i-tg {
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  }
  html.theme-dark #pp-days .i-trigger:active .i-tg,
  html.theme-dark #pp-days .i-day.open .i-tg {
    background:
      radial-gradient(circle at top left, rgba(206,17,38,.16), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  }
  html.theme-dark #pp-days .i-tg-num {
    background: rgba(255,255,255,.04);
    border-right-color: rgba(255,255,255,.1);
  }
  html.theme-dark #pp-days .i-day.open .i-tg-num {
    background: rgba(206,17,38,.14);
    border-right-color: rgba(206,17,38,.32);
  }
  html.theme-dark #pp-days .i-panel-inner {
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
      #161618;
    border-top-color: rgba(255,255,255,.1);
  }
  html.theme-dark #pp-days .i-tg-arr {
    background: rgba(255,255,255,.045);
    border-left-color: rgba(255,255,255,.1);
  }
  html.theme-dark #pp-days .i-city,
  html.theme-dark #pp-days .i-item-title,
  html.theme-dark #pp-days .i-opt-name {
    color: var(--text);
  }
  html.theme-dark #pp-days .i-sub,
  html.theme-dark #pp-days .i-tod-main,
  html.theme-dark #pp-days .i-opt-desc,
  html.theme-dark #pp-days .i-mtm-name {
    color: rgba(245,245,247,.78);
  }
  html.theme-dark #pp-days .i-d,
  html.theme-dark #pp-days .i-tod-time,
  html.theme-dark #pp-days .i-arr svg {
    color: rgba(235,235,245,.62);
    stroke: currentColor;
  }
  html.theme-dark #pp-days .i-inc {
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.1);
  }
  html.theme-dark #pp-days .i-opt {
    background:
      linear-gradient(180deg, rgba(201,168,76,.16), rgba(255,255,255,.045));
    border-color: rgba(201,168,76,.25);
  }
  html.theme-dark #pp-days .i-mtm {
    background:
      linear-gradient(180deg, rgba(22,121,87,.18), rgba(255,255,255,.04));
    border-color: rgba(22,121,87,.28);
  }
  html.theme-dark #pp-days .i-ti {
    background: rgba(108,166,226,.16);
    border-color: rgba(108,166,226,.22);
    color: #A9D3FF;
  }
  html.theme-dark #pp-days .i-te {
    background: rgba(201,168,76,.18);
    border-color: rgba(201,168,76,.3);
    color: #F0CF7A;
  }
  html.theme-dark #pp-days .i-tm {
    background: rgba(63,194,141,.16);
    border-color: rgba(63,194,141,.24);
    color: #93E3BB;
  }
  html.theme-dark #pp-days .i-tod-icon {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
  }


  html.theme-dark #scr-tools .tool-app-icon {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.34),
      inset 0 -9px 16px rgba(0,0,0,.14),
      0 0 0 1px rgba(255,255,255,.08),
      0 8px 18px rgba(255,255,255,.025);
  }


    html.theme-dark #tools-grid .tool-app:hover .tool-app-label {
      color: #fff;
    }


    html.theme-dark #scr-tools #tools-grid .tool-app:hover .tool-app-icon {
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.38),
        inset 0 -9px 16px rgba(0,0,0,.14),
        0 0 0 1px rgba(255,255,255,.12),
        0 10px 22px rgba(255,255,255,.035);
    }

    html.theme-dark .i-day:hover,
    html.theme-dark #pp-days .i-day:hover {
      border-color: rgba(255,64,86,.38);
      box-shadow: 0 22px 44px rgba(0,0,0,.42);
    }

    html.theme-dark .i-day:hover .i-tg,
    html.theme-dark #pp-days .i-day:hover .i-tg {
      background:
        radial-gradient(circle at top left, rgba(255,64,86,.16), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
    }

    html.theme-dark #pp-days .i-inc:hover,
    html.theme-dark #pp-days .i-opt:hover,
    html.theme-dark #pp-days .i-mtm:hover {
      box-shadow: 0 16px 30px rgba(0,0,0,.28);
    }


  html.theme-dark #p-photos.panel,
  html.theme-dark #p-photos .panel-body,
  html.theme-dark #p-photos .panel-body.np {
    background:
      radial-gradient(circle at 100% 0%, rgba(206,17,38,.10), transparent 30%),
      radial-gradient(circle at 0 18%, rgba(201,168,76,.16), transparent 28%),
      linear-gradient(180deg, #f7efe2 0%, #eee0cc 48%, #e7d7bd 100%) !important;
    color: #211d1b;
  }

  html.theme-dark #p-photos .p-title {
    color: #211d1b !important;
  }

  html.theme-dark #p-photos .panel-hdr {
    background: rgba(255,250,243,.94);
    border-bottom-color: rgba(76,55,40,.14);
  }

  html.theme-dark #p-photos .p-back {
    color: #ce1126;
  }

  html.theme-dark #p-photos .community-photo-title,
  html.theme-dark #p-photos .photo-upload-lbl,
  html.theme-dark #p-photos .photo-lb-cap {
    color: #211d1b;
  }

  html.theme-dark #p-photos .community-photo-copy,
  html.theme-dark #p-photos .photo-upload-hint,
  html.theme-dark #p-photos .photo-empty,
  html.theme-dark #p-photos .photo-notice {
    color: #6f5d51;
  }

html.theme-light { color-scheme: light; }

  html.theme-light {
    --bg: #E7EBF1;
    --surface: #DDE3EA;
    --card: #F7F9FC;
    --card2: #EDF2F7;
    --rule: rgba(7,29,58,.14);
    --rule2: rgba(7,29,58,.08);
    --text: #071D3A;
    --mid: #546172;
    --dim: #8A94A3;
    --gold: #B88718;
    --gold-lt: rgba(184,135,24,.12);
    --amber: #F28C18;
  }

  html.theme-light,
  html.theme-light body,
  html.theme-light #app {
    background:
      linear-gradient(180deg, #F5F7FA 0%, #E7EBF1 46%, #DDE3EA 100%);
  }

  html.theme-light .screen,
  html.theme-light .prog-panel,
  html.theme-light .panel,
  html.theme-light .panel-body,
  html.theme-light .panel-body.np {
    background:
      radial-gradient(circle at 100% 0%, rgba(206,17,38,.07), transparent 28%),
      radial-gradient(circle at 0 16%, rgba(242,140,24,.10), transparent 26%),
      var(--bg);
  }

  html.theme-light .hdr,
  html.theme-light .panel-hdr,
  html.theme-light .bnav {
    background: #F8FAFD;
    border-color: rgba(7,29,58,.16);
  }

  html.theme-light .hdr::before,
  html.theme-light .panel-hdr::before {
    height: 4px;
    background: linear-gradient(90deg, var(--red), #F23B51 72%, var(--amber));
  }

  html.theme-light .hdr-name,
  html.theme-light .p-title {
    color: #071D3A;
  }

  html.theme-light .hdr-role,
  html.theme-light .hdr-day-lbl,
  html.theme-light .ni span {
    color: #6E7786;
  }

  html.theme-light .today-hero,
  html.theme-light .brief,
  html.theme-light .pretrip-cta,
  html.theme-light .pretrip-day1-link,
  html.theme-light .day-end-card,
  html.theme-light .quote-card,
  html.theme-light .lock-card,
  html.theme-light .gtr-card,
  html.theme-light .today-gtr-card,
  html.theme-light .group-hero-card,
  html.theme-light .group-card,
  html.theme-light .group-member-card,
  html.theme-light .movie-hero,
  html.theme-light .movie-card,
  html.theme-light .memory-progress,
  html.theme-light .memory-day-card,
  html.theme-light .photo-upload-area,
  html.theme-light .rate-input,
  html.theme-light .rate-row,
  html.theme-light .trans-top,
  html.theme-light .phrase-item,
  html.theme-light .tip-card {
    background:
      radial-gradient(circle at top right, rgba(242,140,24,.10), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.84), rgba(247,249,252,.72) 48%, rgba(236,241,247,.84)),
      var(--card);
    border-color: rgba(7,29,58,.15);
    box-shadow: 0 16px 36px rgba(7,29,58,.10);
  }

  html.theme-light .today-hero.has-image {
    border-color: rgba(7,29,58,.18);
    box-shadow: 0 22px 52px rgba(7,29,58,.28);
    border-radius: 22px 22px 0 0;
    margin-bottom: 0;
  }

  html.theme-light #cd-area .cd-wrap {
    margin: 0 12px;
    border-radius: 0 0 22px 22px;
  }

  html.theme-light .today-hero.has-image + #next-up-area:empty + #cd-area .cd-wrap {
    margin-top: 0;
  }

  html.theme-light .today-pill,
  html.theme-light .brief-row,
  html.theme-light .day-resource-main,
  html.theme-light .group-field,
  html.theme-light .trans-lang-pill,
  html.theme-light .trans-ta {
    background: rgba(255,255,255,.72);
    border-color: rgba(7,29,58,.14);
  }

  html.theme-light .today-pill {
    color: #071D3A;
    box-shadow: 0 8px 20px rgba(7,29,58,.10);
  }

  html.theme-light .today-pill strong,
  html.theme-light .today-pill span,
  html.theme-light .brief-v {
    color: #071D3A;
  }

  html.theme-light .cd-wrap {
    background:
      radial-gradient(circle at 50% 0%, rgba(242,140,24,.22), transparent 38%),
      linear-gradient(135deg, #B4001F, #E31837 58%, #F05A28);
  }

  html.theme-light .pretrip-cta {
    border-top-color: #22C55E;
    background:
      radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 34%),
      linear-gradient(180deg, #F6FFF9, #EAF8EF);
  }

  html.theme-light #weather-body {
    background:
      radial-gradient(circle at 0 0, rgba(242,140,24,.16), transparent 32%),
      radial-gradient(circle at 100% 8%, rgba(7,29,58,.16), transparent 30%),
      #E1E6ED;
  }

  html.theme-light .w-card {
    background:
      radial-gradient(circle at 100% 0%, var(--w-accent-soft), transparent 34%),
      linear-gradient(145deg, #17263A, #0B1D34 58%, #07172B);
    border-color: rgba(7,29,58,.26);
    box-shadow: 0 18px 42px rgba(7,29,58,.22);
  }

  html.theme-light .w-dest-name,
  html.theme-light .w-temp {
    color: #FFFFFF;
  }

  html.theme-light .w-card-sub,
  html.theme-light .w-stat-lbl {
    color: #F8B44C;
  }

  html.theme-light .w-day-label {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
    box-shadow: none;
  }

  html.theme-light .w-lo,
  html.theme-light .w-slash,
  html.theme-light .w-cond,
  html.theme-light .w-stat-val {
    color: rgba(255,255,255,.70);
  }

  html.theme-light .w-extras {
    border-top-color: rgba(255,255,255,.14);
  }

  html.theme-light .w-hero-icon,
  html.theme-light .w-media .w-hero-icon {
    background: rgba(255,255,255,.78);
    border-color: rgba(255,255,255,.88);
  }

  html.theme-light .ed-section {
    background:
      radial-gradient(circle at 100% 0%, rgba(242,140,24,.10), transparent 30%),
      var(--bg);
  }

  html.theme-light .ed-card {
    --ed-card: #F7F9FC;
    --ed-card-low: #E9EEF5;
    --ed-text: #071D3A;
    --ed-muted: #596779;
    --ed-gold: #B88718;
    background:
      linear-gradient(180deg, rgba(255,255,255,.80), rgba(240,244,249,.86)),
      var(--ed-card);
    border-color: rgba(7,29,58,.13);
    box-shadow: 0 14px 30px rgba(7,29,58,.10);
  }

  html.theme-light .ed-card::before {
    background: linear-gradient(90deg, var(--ed-card-accent), var(--amber), transparent 76%);
  }

  html.theme-light .sec-label,
  html.theme-light .phrase-cat,
  html.theme-light #memory-body .sec-label {
    color: #A36A00;
  }

html.theme-light .navy-band {
    background: #071D3A;
    color: #fff;
  }

/* Final manual theme guard. This must stay last so a selected app theme wins over OS media queries. */
html.theme-light {
  --bg: #F8F8F6;
  --surface: #EFEFED;
  --card: #FFFFFF;
  --card2: #F4F4F2;
  --rule: rgba(0,0,0,0.09);
  --rule2: rgba(0,0,0,0.05);
  --text: #111110;
  --mid: #555D68;
  --dim: #626A75;
  --red: #CE1126;
  --gold: #735600;
  --gold-lt: rgba(115,86,0,0.12);
  --inv-bg: #111110;
  --inv-text: #F8F8F6;
  color-scheme: light;
}
html.theme-dark {
  --bg: #0f0d0b;
  --surface: #191612;
  --card: #191612;
  --card2: #211d18;
  --rule: rgba(255,255,255,0.11);
  --rule2: rgba(255,255,255,0.07);
  --text: #F8F1E7;
  --mid: #C9BCAA;
  --dim: #9B8D7D;
  --red: #FF3B4F;
  --gold: #E3BD5D;
  --gold-lt: rgba(227,189,93,0.14);
  --inv-bg: #F8F1E7;
  --inv-text: #0F0D0B;
  color-scheme: dark;
}
html.theme-dark,
html.theme-dark body,
html.theme-dark #app {
  background: var(--bg) !important;
}
html.theme-light,
html.theme-light body,
html.theme-light #app {
  background: var(--bg) !important;
}
html.theme-dark .screen,
html.theme-dark .prog-panel,
html.theme-dark .panel,
html.theme-dark .panel-body,
html.theme-dark .panel-body.np {
  background:
    radial-gradient(circle at 100% 0%, rgba(206,17,38,.08), transparent 28%),
    radial-gradient(circle at 0 16%, rgba(227,189,93,.10), transparent 26%),
    var(--bg) !important;
}
html.theme-light .screen,
html.theme-light .prog-panel,
html.theme-light .panel,
html.theme-light .panel-body,
html.theme-light .panel-body.np {
  background:
    radial-gradient(circle at 100% 0%, rgba(206,17,38,.05), transparent 28%),
    radial-gradient(circle at 0 16%, rgba(154,123,46,.08), transparent 26%),
    var(--bg) !important;
}
html.theme-light .hdr,
html.theme-light .panel-hdr {
  background: var(--card) !important;
  border-color: var(--rule) !important;
}
html.theme-dark .hdr,
html.theme-dark .panel-hdr {
  background: var(--card) !important;
  border-color: var(--rule) !important;
}
html.theme-light .bnav,
html.theme-dark .bnav {
  bottom: max(8px, var(--safe-bot)) !important;
  width: calc(100% - 24px) !important;
  max-width: 810px !important;
  height: var(--nav-h) !important;
  padding: 7px 8px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.22) !important;
  backdrop-filter: blur(30px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.35) !important;
}
html.theme-light .bnav {
  background: rgba(14,12,10,.30) !important;
}
html.theme-dark .bnav {
  background: rgba(8,7,6,.42) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.48) !important;
}
html.theme-light .ni svg,
html.theme-dark .ni svg { stroke: rgba(255,255,255,.70) !important; }
html.theme-light .ni span,
html.theme-dark .ni span { color: rgba(255,255,255,.72) !important; font-size: 9px !important; font-weight: 800 !important; }
html.theme-light .ni.active,
html.theme-dark .ni.active { background: rgba(255,255,255,.13) !important; }
html.theme-light .ni.active svg,
html.theme-dark .ni.active svg { stroke: #fff !important; }
html.theme-light .ni.active span,
html.theme-dark .ni.active span { color: #fff !important; }

html.theme-dark .roman-ticket-download {
  background: var(--inv-bg) !important;
  color: var(--inv-text) !important;
}

html.theme-dark .roman-ticket-download svg {
  stroke: currentColor !important;
}

html.theme-light .bnav {
  background: rgba(10,8,6,.72) !important;
  border-color: rgba(255,255,255,.28) !important;
}

html.theme-light .ni span,
html.theme-dark .ni span {
  color: rgba(255,255,255,.86) !important;
}

html.theme-light .ni svg,
html.theme-dark .ni svg {
  stroke: rgba(255,255,255,.86) !important;
}

html.theme-light .pt {
  color: #424852 !important;
  background: #fff !important;
  border-color: rgba(7,29,58,.12) !important;
}

html.theme-dark .pt {
  color: rgba(248,241,231,.82) !important;
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.12) !important;
}

html.theme-light .pt.active,
html.theme-dark .pt.active {
  color: #fff !important;
  background: #CE1126 !important;
  border-color: rgba(206,17,38,.35) !important;
}

html.theme-light .trans-btn-main,
html.theme-light .group-submit-btn,
html.theme-dark .trans-btn-main,
html.theme-dark .group-submit-btn {
  background: linear-gradient(135deg, #A30019, #CE1126) !important;
  color: #fff !important;
}

html.theme-dark .tools-admin-btn,
html.theme-dark .journal-btn.primary,
html.theme-dark .vp-search-btn,
html.theme-dark .trans-swap,
html.theme-dark .seatplan-btn,
html.theme-dark .roman-ticket-btn,
html.theme-dark .venice-pass-btn,
html.theme-dark .sasha-cta {
  background: #CE1126 !important;
  color: #fff !important;
}

html.theme-light .faq-section,
html.theme-light .pack-cat,
html.theme-light .tod-header,
html.theme-light #pp-days .i-tod-time {
  color: #5f6672 !important;
}

html.theme-dark .faq-section,
html.theme-dark .pack-cat,
html.theme-dark .tod-header,
html.theme-dark #pp-days .i-tod-time {
  color: rgba(248,241,231,.78) !important;
}

html.theme-dark #pp-days .i-pill-inc {
  color: #cfe4ff !important;
  background: rgba(96,165,250,.18) !important;
  border: 1px solid rgba(147,197,253,.24) !important;
}

html.theme-dark #pp-days .i-pill-opt {
  color: #f6d98a !important;
  background: rgba(227,189,93,.18) !important;
  border: 1px solid rgba(227,189,93,.25) !important;
}

html.theme-light .movie-rating span,
html.theme-light .movie-link span {
  color: #8a6400 !important;
}

html.theme-light .vp-row-code {
  color: #005fb8 !important;
}

html.theme-dark .vp-row-code {
  color: #6cb6ff !important;
}

html.theme-dark .mtm-panel-kicker,
html.theme-dark .mtm-panel-link {
  color: #63d991 !important;
}

html.theme-dark .journal-private {
  color: #63d991 !important;
}

html.theme-light .group-hero-card div {
  color: #66606a !important;
}

/* Keep the day hero photo above broad theme background overrides. */
html.theme-light .today-hero.has-image,
html.theme-dark .today-hero.has-image,
html:not(.theme-light) .today-hero.has-image,
html:not(.theme-dark) .today-hero.has-image {
  background:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.34) 44%, rgba(0,0,0,.76) 100%),
    var(--today-hero-img) !important;
  background-size: cover !important;
  background-position: var(--today-hero-pos, center center) !important;
}

/* Final contrast token guard. Keep this at the end of the stylesheet. */
:root.theme-light {
  --mid: #555D68;
  --dim: #626A75;
  --gold: #735600;
  --gold-lt: rgba(115,86,0,0.12);
}

:root.theme-dark {
  --dim: #B7AB9C;
  --red: #CE1126;
}

:root.theme-light .trans-btn-main,
:root.theme-light .group-submit-btn,
:root.theme-dark .trans-btn-main,
:root.theme-dark .group-submit-btn {
  background-color: #A30019 !important;
  background-image: linear-gradient(135deg, #A30019, #CE1126) !important;
  color: #fff !important;
}

:root.theme-light .prog-tabs .pt.active,
:root.theme-dark .prog-tabs .pt.active {
  background: #A30019 !important;
  border-color: rgba(163,0,25,.35) !important;
  color: #fff !important;
}

:root.theme-dark .journal-day-btn.active,
:root.theme-dark .exp-admin-add button {
  background: #CE1126 !important;
  color: #fff !important;
}

:root.theme-dark .journal-day-btn.active small {
  color: #fff !important;
}

:root.theme-light .weather-search button,
:root.theme-dark .weather-search button {
  background: #2f6690 !important;
  color: #fff !important;
}

:root.theme-light .sec-label,
:root.theme-light .phrase-cat,
:root.theme-light #memory-body .sec-label {
  color: #7a5200 !important;
}

:root.theme-light .journal-private {
  color: #0f6b3f !important;
}

:root.theme-light .cd-wrap,
:root.theme-dark .cd-wrap {
  background: #A30019 !important;
}

:root.theme-light .cd-label,
:root.theme-dark .cd-label,
:root.theme-light .cd-unit-lbl,
:root.theme-dark .cd-unit-lbl {
  color: rgba(255,255,255,.9) !important;
}

:root.theme-light .pretrip-day1-kicker {
  color: #7b4d00 !important;
}

:root.theme-dark .welcome-cta {
  background: #CE1126 !important;
  color: #fff !important;
}

.pretrip-day1-kicker {
  color: #7b4d00 !important;
}

:root.theme-dark .today-quick-next .today-quick-icon,
html:not(.theme-light) .today-quick-next .today-quick-icon {
  background: rgba(216,226,239,.12) !important;
  color: #d8e2ef !important;
}

:root.theme-dark .next-up-icon,
html:not(.theme-light) .next-up-icon,
.welcome-cta {
  background: #CE1126 !important;
  color: #fff !important;
}

:root.theme-dark #scr-tools,
html:not(.theme-light) #scr-tools {
  --ed-red: #CE1126;
}

:root.theme-dark .next-up-lbl,
html:not(.theme-light) .next-up-lbl {
  color: #f1c96a !important;
}
