:root {
  color-scheme: light;
  --navy: #0b1830;
  --navy-2: #14294b;
  --blue: #246bfd;
  --blue-2: #174fc6;
  --sky: #eaf1ff;
  --sand: #f3b45e;
  --paper: #ffffff;
  --canvas: #d0deeb;
  --ink: #13213a;
  --muted: #687389;
  --line: #dce2ea;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --success: #087443;
  --shadow: 0 18px 44px rgba(20, 38, 72, .12);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { height: 100%; min-height: 100%; background: #c1cfde; }
body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background-color: #c1cfde;
  background-image:
    radial-gradient(circle at 8% -8%, rgba(36, 107, 253, .12), transparent 30rem),
    radial-gradient(circle at 92% 58%, rgba(243, 180, 94, .11), transparent 28rem),
    linear-gradient(155deg, rgba(190,207,225,.3) 0%, rgba(225,235,245,.24) 48%, rgba(190,208,226,.32) 100%),
    url("assets/travel-backdrop.webp");
  background-position: center, center, center, right center;
  background-repeat: no-repeat;
  background-size: auto, auto, auto, cover;
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(36, 107, 253, .28);
  outline-offset: 2px;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: .4rem; font-size: clamp(1.65rem, 5vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 1.22rem; letter-spacing: -.02em; }
h3 { margin-bottom: .25rem; font-size: 1.02rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip: rect(0, 0, 0, 0); overflow: hidden; border: 0; }
.app-shell {
  display: flex; width: min(100%, 840px); height: 100vh; height: 100dvh; min-height: 100svh; flex-direction: column; overflow: hidden; margin: 0 auto;
  background:
    radial-gradient(circle at -8% 16%, transparent 0 150px, rgba(36,107,253,.075) 151px 153px, transparent 154px 205px, rgba(36,107,253,.045) 206px 208px, transparent 209px),
    radial-gradient(circle at 112% 63%, transparent 0 205px, rgba(243,180,94,.11) 206px 208px, transparent 209px 274px, rgba(243,180,94,.055) 275px 277px, transparent 278px),
    linear-gradient(180deg, rgba(221,232,244,.56), rgba(183,203,223,.66));
  border-inline: 1px solid rgba(181,198,220,.55); box-shadow: 0 0 60px rgba(20,38,72,.12);
}
.app-scroll { min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scroll-behavior: smooth; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 20px 14px;
}
.brand { display: flex; min-width: 0; gap: 10px; align-items: center; padding: 0; border: 0; background: transparent; color: var(--navy); text-align: left; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--navy); color: white; font-size: 1.2rem; box-shadow: 0 9px 18px rgba(11,24,48,.18); }
.farivo-mark { width: 44px; height: 44px; flex: 0 0 44px; overflow: visible; filter: drop-shadow(0 9px 10px rgba(11,24,48,.2)); }
.brand-copy { min-width: 0; }
.brand small, .brand strong { display: block; white-space: nowrap; }
.brand strong { margin-bottom: 4px; font-size: 1.22rem; font-weight: 950; letter-spacing: .14em; line-height: .95; }
.brand small { color: #48658d; font-size: .59rem; font-weight: 780; letter-spacing: .025em; line-height: 1.05; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.avatar-button, .round-button {
  display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--navy); font-weight: 800; box-shadow: 0 7px 20px rgba(11,24,48,.08);
}
.round-button { font-size: 1.5rem; font-weight: 500; }

.banner { margin: 0 20px 12px; padding: 10px 13px; border: 1px solid #c5d5ec; border-radius: 12px; background: rgba(234,241,255,.88); color: #224eaa; font-size: .85rem; font-weight: 720; box-shadow: 0 7px 20px rgba(20,38,72,.045); backdrop-filter: blur(12px); }
.banner.cloud { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.banner-action { flex: 0 0 auto; min-height: 34px; padding: 6px 10px; border: 1px solid currentColor; border-radius: 10px; background: rgba(255,255,255,.76); color: inherit; font-size: .76rem; font-weight: 800; }
.banner.warning { border-color: #f5d28b; background: #fff8e8; color: #795400; }
.banner.connected { border-color: #a5ddc4; background: #edfff6; color: var(--success); }
.banner.error { border-color: #f4c2bc; background: var(--danger-soft); color: var(--danger); }
.view { display: none; padding: 0 20px 28px; animation: viewIn .24s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.trip-hero {
  position: relative; isolation: isolate; display: grid; min-height: 320px; overflow: hidden; padding: 28px; border-radius: 30px; background:
    radial-gradient(circle at 95% 15%, rgba(65, 139, 255, .7), transparent 33%),
    linear-gradient(145deg, var(--navy) 12%, #153664 74%, #225aa8); color: white; box-shadow: var(--shadow);
}
.trip-hero.has-active-trip { min-height: 275px; padding: 24px; }
.trip-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,15,35,.94) 0%, rgba(5,15,35,.7) 53%, rgba(5,15,35,.18) 100%), linear-gradient(0deg, rgba(5,15,35,.72), transparent 62%); opacity: 0; transition: opacity .35s ease; }
.trip-hero::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: -110px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.025); }
.trip-hero.has-destination-photo::before { opacity: 1; }
.trip-hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: heroPhotoIn .45s ease both; }
@keyframes heroPhotoIn { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
.hero-copy { position: relative; z-index: 2; max-width: 560px; align-self: end; }
.hero-copy p:not(.eyebrow) { max-width: 540px; margin-bottom: 20px; color: #dce8fb; }
.trip-hero.has-active-trip #homeHeading, .trip-hero.has-active-trip #tripSummary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.trip-hero.has-active-trip #tripSummary { margin-bottom: 14px; }
.trip-hero.has-active-trip .hero-featured { padding: 10px 12px; border-radius: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-featured { position: absolute; z-index: 3; top: 20px; right: 20px; display: grid; width: min(250px, calc(100% - 40px)); gap: 2px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; background: rgba(5,15,35,.68); box-shadow: 0 10px 30px rgba(5,15,35,.2); backdrop-filter: blur(12px); }
.hero-featured[hidden], .trip-hero-image[hidden] { display: none; }
.hero-featured-label { color: #9fc2ff; font-size: .61rem; font-weight: 900; letter-spacing: .14em; }
.hero-featured strong { overflow: hidden; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.hero-featured-meta { overflow: hidden; color: #e6edf8; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.hero-featured-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.hero-featured-actions button, .hero-featured-actions a { min-width: 0; padding: 0; border: 0; background: transparent; color: white; font-size: .66rem; font-weight: 780; text-decoration: underline; text-decoration-color: rgba(255,255,255,.42); text-underline-offset: 3px; }
.hero-featured-actions a { overflow: hidden; color: #cbd9ed; text-overflow: ellipsis; white-space: nowrap; }
.route-orbit { position: absolute; z-index: 1; right: 35px; top: 30px; width: 130px; height: 76px; border-top: 2px dashed rgba(255,255,255,.35); border-radius: 50%; transform: rotate(-8deg); }
.trip-hero.has-destination-photo .route-orbit { display: none; }
.route-dot { position: absolute; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--blue); }
.dot-one { left: 2px; top: -4px; }.dot-two { right: 0; top: 7px; }
.plane { position: absolute; left: 58px; top: -18px; color: white; font-size: 1.65rem; transform: rotate(10deg); }
.eyebrow { margin-bottom: 5px; color: var(--blue); font-size: .7rem; font-weight: 850; letter-spacing: .15em; }
.trip-hero .eyebrow, .eyebrow.light { color: #8cbaff; }

.primary-button, .secondary-button, .secondary-dark-button, .quiet-button, .text-button, .send-button {
  border: 0; border-radius: 13px; font-weight: 780; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.primary-button { min-height: 46px; padding: 11px 18px; background: var(--blue); color: white; box-shadow: 0 9px 20px rgba(36,107,253,.22); }
.primary-button:hover { background: var(--blue-2); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .64; transform: none; }
.secondary-button { min-height: 46px; padding: 11px 18px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); }
.secondary-dark-button { padding: 11px 17px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: white; backdrop-filter: blur(8px); }
.quiet-button { padding: 9px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--blue); }
.text-button { padding: 7px 4px; background: transparent; color: var(--blue); }
.danger-text { color: var(--danger); }

.home-tools { margin-top: 23px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-card {
  --metric-accent: #d47a08;
  --metric-ink: #925006;
  --metric-rgb: 212, 122, 8;
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 80px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(193,207,226,.9);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(248,251,255,.78));
  color: var(--ink);
  text-align: left;
  box-shadow: 0 9px 25px rgba(20,38,72,.07);
  backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.metric-card[data-view-link="exploreView"] { --metric-accent: #078b83; --metric-ink: #066a65; --metric-rgb: 7, 139, 131; }
.metric-card[data-view-link="collectionsView"] { --metric-accent: #7957d8; --metric-ink: #5b3eb0; --metric-rgb: 121, 87, 216; }
.metric-card[data-view-link="hotelsView"] { --metric-accent: #246bfd; --metric-ink: #174fc6; --metric-rgb: 36, 107, 253; }
.metric-card[data-view-link="flightsView"] { --metric-accent: #d97706; --metric-ink: #9a4d05; --metric-rgb: 217, 119, 6; grid-column: 1 / -1; }
.metric-card:hover { border-color: rgba(var(--metric-rgb), .34); box-shadow: 0 12px 28px rgba(var(--metric-rgb), .11); transform: translateY(-1px); }
.metric-card:active { transform: scale(.985); }
.metric-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: rgba(var(--metric-rgb), .11); color: var(--metric-accent); }
.metric-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.metric-copy { min-width: 0; }
.metric-card small, .metric-card strong { display: block; }
.metric-card small { color: var(--metric-ink); font-size: .64rem; font-weight: 850; letter-spacing: .1em; }
.metric-card strong { display: -webkit-box; overflow: hidden; margin-top: 3px; font-size: .86rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.metric-arrow { color: rgba(var(--metric-rgb), .62); font-size: 1.45rem; line-height: 1; }
.section-block { margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-heading.compact { margin-bottom: 10px; }.page-heading { margin-top: 8px; margin-bottom: 18px; align-items: flex-start; }
.section-subtitle { margin: 3px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.recommendation-dashboard { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr); gap: 11px; }
.recommendation-lead { position: relative; display: grid; min-height: 278px; align-content: start; overflow: hidden; padding: 18px; border-radius: 23px; background: linear-gradient(145deg, #0b1830 8%, #173a70 68%, #246bfd); color: white; box-shadow: 0 14px 34px rgba(11,24,48,.2); }
.recommendation-lead::after { content: ""; position: absolute; right: -54px; bottom: -76px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.035); }
.recommendation-lead-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recommendation-lead-top span { color: #9fc2ff; font-size: .64rem; font-weight: 900; letter-spacing: .13em; }
.recommendation-lead-top strong { padding: 4px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.09); color: #e7effd; font-size: .66rem; }
.recommendation-lead-copy { position: relative; z-index: 1; display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 12px; align-items: start; margin-top: 18px; }
.recommendation-lead-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 14px; background: white; color: var(--blue); font-size: 1.15rem; box-shadow: 0 8px 18px rgba(3,11,25,.2); }
.recommendation-lead-copy h3 { margin: 0; color: white; font-size: 1.15rem; line-height: 1.18; }
.recommendation-lead-copy p { margin: 6px 0 0; color: #dce8fb; font-size: .82rem; line-height: 1.45; }
.recommendation-readiness { position: relative; z-index: 1; margin-top: 16px; }
.recommendation-progress { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.17); }
.recommendation-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7fb0ff, white); }
.recommendation-steps { display: flex; justify-content: space-between; gap: 7px; margin-top: 7px; }
.recommendation-steps span { color: #9eacc2; font-size: .66rem; font-weight: 730; }
.recommendation-steps .ready { color: white; }
.recommendation-primary-action { position: relative; z-index: 1; display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: white; color: var(--navy); font-weight: 830; text-align: left; box-shadow: 0 8px 20px rgba(3,11,25,.16); }
.recommendation-primary-action span { color: var(--blue); font-size: 1.35rem; line-height: 1; }
.recommendation-primary-action:hover { background: #edf4ff; transform: translateY(-1px); }
.recommendation-secondary-grid { display: grid; grid-template-rows: 1fr 1fr; gap: 11px; }
.recommendation-option { --recommendation-accent: #078b83; --recommendation-soft: #e9f7f5; position: relative; display: grid; min-width: 0; grid-template-columns: 42px minmax(0,1fr); gap: 11px; align-items: start; padding: 15px; border: 1px solid rgba(193,207,226,.92); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(246,250,254,.84)); color: var(--ink); text-align: left; box-shadow: 0 9px 25px rgba(20,38,72,.075); backdrop-filter: blur(12px); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.recommendation-option:nth-child(2) { --recommendation-accent: #7957d8; --recommendation-soft: #f1edff; }
.recommendation-option:hover { border-color: color-mix(in srgb, var(--recommendation-accent) 34%, white); box-shadow: 0 12px 29px rgba(20,38,72,.11); transform: translateY(-1px); }
.recommendation-option-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--recommendation-soft); color: var(--recommendation-accent); font-size: 1.1rem; }
.recommendation-option-copy { display: grid; min-width: 0; }
.recommendation-option-copy small { color: var(--recommendation-accent); font-size: .61rem; font-weight: 880; letter-spacing: .1em; }
.recommendation-option-copy strong { overflow: hidden; margin-top: 1px; font-size: .9rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.recommendation-option-copy em { display: -webkit-box; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: .72rem; font-style: normal; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.recommendation-option-copy b { margin-top: 7px; color: var(--recommendation-accent); font-size: .7rem; }
.card-list, .place-list { display: grid; gap: 11px; }
.community-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-bottom: 7px; }
.community-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--muted); }
.community-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.community-toolbar select { min-height: 44px; max-width: 210px; padding: 0 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); }
.result-summary { min-height: 20px; margin: 0 2px 10px; color: var(--muted); font-size: .78rem; }
.community-state { display: grid; min-height: 150px; place-items: center; align-content: center; gap: 8px; padding: 24px; border: 1px dashed #bcc7d6; border-radius: var(--radius); background: rgba(255,255,255,.7); text-align: center; }
.community-state p { margin: 0; color: var(--muted); }
.load-more-button { width: 100%; margin-top: 11px; }
.info-card, .recommendation-card, .day-card, .form-card, .account-card, .planner-intro {
  border: 1px solid rgba(193,207,226,.92); border-radius: var(--radius); background: rgba(255,255,255,.82); box-shadow: 0 10px 30px rgba(20,38,72,.075); backdrop-filter: blur(14px);
}
.info-card { padding: 16px; }.info-card p { margin-bottom: 10px; color: var(--muted); }.info-card h3 { margin-bottom: 5px; }
.community-card { overflow: hidden; padding: 0; }
.community-card-copy { padding: 16px; }
.community-byline { display: flex; flex-wrap: wrap; gap: 6px; margin: 1px 0 9px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.community-photo-grid { display: grid; height: 190px; gap: 3px; background: var(--line); }
.community-photo-grid.photo-count-1 { grid-template-columns: 1fr; }
.community-photo-grid.photo-count-2 { grid-template-columns: 1fr 1fr; }
.community-photo-grid.photo-count-3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
.community-photo-grid.photo-count-3 .community-photo-button:first-child { grid-row: 1 / 3; }
.community-photo-button { min-width: 0; min-height: 0; overflow: hidden; padding: 0; border: 0; background: #d9e0ea; }
.community-photo-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease, filter .2s ease; }
.community-photo-button:hover img { transform: scale(1.025); filter: brightness(.92); }
.community-photo-button:focus-visible { position: relative; z-index: 2; outline-color: white; outline-offset: -4px; }
.community-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.primary-insight-action { border-color: #b7cdfd; background: var(--sky); color: var(--blue-2); font-weight: 800; }
.primary-insight-action:hover:not(:disabled) { border-color: var(--blue); background: #dce8ff; }
.primary-insight-action.selected { border-color: #b8dfcd; background: #e9f8f1; color: var(--success); }
.community-replan-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0; padding: 15px 16px; border: 1px solid #bfd1fa; border-radius: 18px; background: linear-gradient(135deg, #f2f6ff, #ffffff); box-shadow: 0 10px 26px rgba(36, 107, 253, .08); }
.community-replan-card > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.community-replan-card p, .community-replan-card small { display: block; margin: 0; }
.community-replan-card strong { display: block; color: var(--ink); }
.community-replan-card small { margin-top: 3px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.community-replan-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--blue); color: white; font-size: 1.1rem; }
.compact-button { min-height: 42px; padding: 0 15px; white-space: nowrap; }
.community-source { display: inline-flex; width: max-content; margin-top: 5px; padding: 3px 7px; border-radius: 999px; background: var(--sky); color: var(--blue-2); font-size: .69rem; font-weight: 800; letter-spacing: .02em; }

.insight-action { min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfe; color: var(--navy); font-size: .76rem; font-weight: 760; }
.insight-action:hover:not(:disabled), .insight-action.selected { border-color: #b9cdfc; background: var(--sky); color: var(--blue-2); }
.insight-action.report { margin-left: auto; color: var(--muted); }
.insight-action:disabled { cursor: default; opacity: .58; }

.photo-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 80px rgba(5, 15, 35, .35); }
.photo-dialog::backdrop { background: rgba(5, 15, 35, .76); backdrop-filter: blur(5px); }
.photo-dialog-shell { position: relative; display: grid; grid-template-rows: minmax(260px, 58dvh) auto; max-height: calc(100dvh - 24px); overflow: auto; }
.photo-dialog-media { position: relative; display: grid; min-height: 260px; place-items: center; overflow: hidden; background: #07101f; }
.photo-dialog-media img { width: 100%; height: 100%; max-height: 58dvh; object-fit: contain; }
.photo-dialog-close { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(5,15,35,.72); color: white; font-size: 1.55rem; backdrop-filter: blur(8px); }
.photo-dialog-nav { position: absolute; z-index: 2; top: 50%; display: grid; width: 44px; height: 54px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 14px; background: rgba(5,15,35,.7); color: white; font-size: 2rem; backdrop-filter: blur(8px); }
.photo-dialog-nav.previous { left: 12px; }.photo-dialog-nav.next { right: 12px; }
.photo-dialog-copy { padding: 20px 22px 24px; }
.photo-dialog-copy h2 { margin-bottom: 8px; font-size: 1.35rem; }
.photo-dialog-copy > p:not(.eyebrow) { margin-bottom: 12px; color: var(--muted); }
.photo-traveler-note { padding: 12px 14px; border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; background: var(--sky); }
.photo-position { display: block; margin-top: 12px; color: var(--muted); font-weight: 650; }
.community-map-results { padding-bottom: 28px; }
.community-map-card { grid-template-columns: 46px 1fr auto; }
.community-map-card > img { width: 46px; height: 46px; object-fit: cover; border-radius: 13px; }
.map-community-empty { padding: 17px; border: 1px dashed #bcc7d6; border-radius: 15px; color: var(--muted); background: rgba(255,255,255,.75); font-size: .86rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--sky); color: #2855a6; font-size: .73rem; font-weight: 760; }

.home-community-panel { overflow: hidden; border: 1px solid rgba(193,207,226,.92); border-radius: 21px; background: rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(20,38,72,.07); backdrop-filter: blur(14px); }
.home-community-panel > summary { display: grid; min-height: 88px; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px 16px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.home-community-panel > summary::-webkit-details-marker { display: none; }
.home-community-panel > summary:focus-visible { outline: 3px solid rgba(36,107,253,.28); outline-offset: -3px; border-radius: 20px; }
.home-panel-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #7957d8, #5b3eb0); color: white; box-shadow: 0 7px 18px rgba(121,87,216,.2); }
.home-panel-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-panel-copy { display: grid; min-width: 0; }
.home-panel-copy small { color: #5b3eb0; font-size: .63rem; font-weight: 850; letter-spacing: .11em; }
.home-panel-copy strong { margin-top: 1px; color: var(--ink); font-size: .98rem; }
.home-panel-copy em { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .75rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.home-panel-action { display: inline-flex; gap: 4px; align-items: center; color: var(--blue); font-size: .75rem; font-weight: 820; }
.home-panel-action svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.home-panel-action .when-open { display: none; }
.home-community-panel[open] .home-panel-action .when-closed { display: none; }
.home-community-panel[open] .home-panel-action .when-open { display: inline; }
.home-community-panel[open] .home-panel-action svg { transform: rotate(180deg); }
.home-community-content { padding: 15px 16px 17px; border-top: 1px solid rgba(193,207,226,.74); background: rgba(248,251,255,.66); }
.home-community-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-community-topline p { margin: 0; color: var(--muted); font-size: .79rem; }

.planner-intro { display: flex; gap: 13px; padding: 16px; }.planner-intro p { margin: 3px 0 0; color: var(--muted); }
#plannerView.has-active-trip .planner-intro { display: none; }
#plannerView.has-active-trip .page-heading { margin-bottom: 10px; }
.planner-trip-context { overflow: hidden; margin-top: 0; padding: 10px 13px; border: 1px solid #bfd1fa; border-radius: 13px; background: rgba(234,241,255,.9); color: var(--blue-2); font-size: .78rem; font-weight: 820; text-overflow: ellipsis; white-space: nowrap; }
.ai-pulse { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 14px; background: var(--navy); color: white; box-shadow: 0 0 0 6px var(--sky); }
.prompt-chips, .map-filters, .day-tabs, .route-stop-list { display: flex; gap: 8px; margin: 14px 0; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
#plannerView.has-active-trip .prompt-chips { margin: 10px 0 12px; }
.prompt-chips::-webkit-scrollbar, .map-filters::-webkit-scrollbar, .day-tabs::-webkit-scrollbar, .route-stop-list::-webkit-scrollbar { display: none; }
.prompt-chip, .filter-chip, .day-tab { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .82rem; font-weight: 700; }
.filter-chip.active, .day-tab.active { border-color: var(--blue); background: var(--blue); color: white; }
.route-stop-picker { margin: 0 20px 14px; padding: 12px 13px 7px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.88); }
.route-stop-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.route-stop-heading strong { font-size: .86rem; }.route-stop-heading span { color: var(--muted); font-size: .72rem; }
.route-stop-list { margin: 9px 0 0; }
.route-stop-button { flex: 0 0 auto; min-height: 39px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .8rem; font-weight: 760; }
.route-stop-button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.map-results.map-results-panel { margin-top: 0; margin-bottom: 15px; padding: 14px; border: 1px solid #bfd1fa; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(36,107,253,.08); }
.map-results-panel .place-list { max-height: 390px; overflow-y: auto; }
.place-card-marker { position: relative; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--sky); color: var(--blue); font-weight: 850; }
.place-card-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--sky); }
.place-card-number { display: grid; place-items: center; font-size: 1.15rem; line-height: 1; }
.place-card-marker.has-photo .place-card-number { position: absolute; top: -7px; left: -7px; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 999px; background: var(--blue); color: #fff; box-shadow: 0 3px 9px rgba(11,24,48,.24); font-size: .72rem; }
.place-card-main { min-width: 0; }.place-card-main strong { display: block; }.place-card-main small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.35; overflow-wrap: anywhere; }
.place-option-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.place-option-action { min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue-2); font-size: .72rem; font-weight: 800; text-decoration: none; }
.place-option-action.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.place-loading { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid #bfd1fa; border-radius: 14px; background: linear-gradient(135deg,#f3f8ff,#fff); color: var(--muted); }
.place-loading-spinner { width: 24px; height: 24px; flex: 0 0 24px; border: 3px solid #cfe0ff; border-top-color: var(--blue); border-radius: 50%; animation: experience-spin .8s linear infinite; }
.place-loading-copy { display: grid; gap: 3px; text-align: left; }
.place-loading-copy strong { color: var(--ink); font-size: .82rem; }
.place-loading-copy span { font-size: .73rem; line-height: 1.4; }
.experience-loading-list { display: grid; gap: 9px; margin-top: 10px; }
.experience-loading-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.experience-loading-card > span, .experience-loading-card i { display: block; background: linear-gradient(90deg,#e8eef7 25%,#f7faff 50%,#e8eef7 75%); background-size: 200% 100%; animation: experience-shimmer 1.25s ease-in-out infinite; }
.experience-loading-card > span { width: 44px; height: 44px; border-radius: 14px; }
.experience-loading-card div { display: grid; gap: 7px; }
.experience-loading-card i { height: 8px; border-radius: 999px; }
.experience-loading-card i:first-child { width: 62%; height: 11px; }
.experience-loading-card i:nth-child(2) { width: 42%; }
.experience-loading-card i:last-child { width: 78%; }
.map-filters button:disabled, .map-search button:disabled { cursor: wait; opacity: .58; }
@keyframes experience-spin { to { transform: rotate(360deg); } }
@keyframes experience-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .place-loading-spinner, .experience-loading-card > span, .experience-loading-card i { animation: none; } }
.chat-messages { display: flex; flex-direction: column; gap: 11px; min-height: 260px; padding: 6px 0 110px; }
.message { max-width: 88%; padding: 12px 14px; border-radius: 18px; white-space: pre-wrap; }
.message.ai { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 5px; background: var(--paper); }
.message.user { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--blue); color: white; }
.message.pending { color: var(--muted); }
.message.tour-suggestion-message { width: min(100%, 680px); max-width: 100%; }
.planner-tour-heading { display: grid; gap: 4px; margin-bottom: 12px; }
.planner-tour-heading .eyebrow { margin: 0; color: var(--blue); }
.planner-tour-heading > strong { font-size: 1rem; }
.planner-tour-heading p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.planner-tour-list { display: grid; gap: 9px; }
.planner-tour-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 10px; border: 1px solid #cfdcf0; border-radius: 15px; background: linear-gradient(145deg,#f7faff,#fff); }
.planner-tour-card img, .planner-tour-icon { width: 54px; height: 54px; border-radius: 12px; }
.planner-tour-card img { object-fit: cover; background: var(--sky); }
.planner-tour-icon { display: grid; place-items: center; background: var(--navy); color: #fff; }
.planner-tour-card small, .planner-tour-card strong, .planner-tour-card p { display: block; }
.planner-tour-card small { color: var(--blue); font-size: .67rem; font-weight: 800; }
.planner-tour-card strong { margin-top: 2px; font-size: .82rem; }
.planner-tour-card p { margin: 3px 0 0; color: var(--muted); font-size: .7rem; }
.planner-tour-actions { display: grid; gap: 6px; min-width: 104px; }
.planner-tour-actions a, .planner-tour-actions button { display: grid; min-height: 34px; padding: 7px 9px; place-items: center; border-radius: 9px; font-size: .68rem; font-weight: 850; text-align: center; text-decoration: none; }
.planner-tour-actions a { border: 1px solid var(--blue); background: var(--blue); color: #fff; }
.planner-tour-actions button { border: 1px solid var(--line); background: #fff; color: var(--blue-2); }
@media(max-width:560px){.planner-tour-card{grid-template-columns:46px minmax(0,1fr)}.planner-tour-card img,.planner-tour-icon{width:46px;height:46px}.planner-tour-actions{grid-column:2;grid-template-columns:1fr 1fr;min-width:0}}
.chat-form { position: fixed; z-index: 19; bottom: calc(94px + env(safe-area-inset-bottom)); left: 50%; display: grid; width: min(calc(100% - 32px), 808px); grid-template-columns: 1fr auto; gap: 9px; padding: 9px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.96); box-shadow: 0 14px 36px rgba(11,24,48,.16); backdrop-filter: blur(14px); }
.chat-form textarea { min-height: 46px; max-height: 130px; resize: vertical; border: 0; outline: 0; padding: 10px; background: transparent; }
.send-button { align-self: end; width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: white; font-size: 1.4rem; }

.full-bleed-view { padding-left: 0; padding-right: 0; }.explore-header, .map-search, .map-filters, .map-results { margin-left: 20px; margin-right: 20px; }.explore-header { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.map-search { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 8px 8px 8px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 26px rgba(20,38,72,.07); }
.map-search input { min-width: 0; border: 0; outline: 0; background: transparent; }.map-search button { border: 0; border-radius: 10px; padding: 8px 11px; background: var(--navy); color: white; font-size: .8rem; font-weight: 750; }
.map-frame-wrap { position: relative; height: min(52vh, 440px); min-height: 330px; overflow: hidden; border-block: 1px solid var(--line); background: #dfe8f5; }
.map-canvas, .map-frame-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(.86) contrast(1.03); }
.map-label { position: absolute; left: 16px; bottom: 15px; display: flex; gap: 7px; align-items: center; max-width: calc(100% - 32px); padding: 8px 11px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; background: rgba(11,24,48,.88); color: white; font-size: .78rem; font-weight: 700; backdrop-filter: blur(10px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4dde9d; box-shadow: 0 0 0 4px rgba(77,222,157,.18); }.map-results { margin-top: 18px; }.result-count { color: var(--muted); font-size: .8rem; }
.place-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.place-card.selected { border-color: var(--blue); background: #f7faff; box-shadow: 0 0 0 3px rgba(36,107,253,.11); }
.place-pin { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: var(--sky); color: var(--blue); font-size: 1.15rem; }.place-card p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }.place-actions { display: flex; gap: 6px; }.icon-action { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--blue); text-decoration: none; }

.trip-summary-card { padding: 20px; border-radius: 24px; background: var(--navy); color: white; box-shadow: var(--shadow); }.trip-summary-card p { margin-bottom: 15px; color: #ccdaf0; }.trip-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.trip-stat { padding: 10px; border-radius: 13px; background: rgba(255,255,255,.08); }.trip-stat small, .trip-stat strong { display: block; }.trip-stat small { color: #9fb6d7; font-size: .69rem; }.trip-stat strong { margin-top: 2px; font-size: .9rem; }
.budget-bar { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }.budget-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sand), #ffd697); }
.trip-date-control { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: 4px 14px; align-items: center; margin: 0 0 15px; padding: 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.08); }
.trip-date-control label { color: white; font-size: .8rem; font-weight: 800; }
.trip-date-control input { min-height: 42px; padding: 0 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 11px; background: white; color: var(--navy); }
.trip-date-control small { grid-column: 2; color: #b9cbe4; font-size: .73rem; line-height: 1.4; }
.day-card { padding: 16px; margin-bottom: 12px; scroll-margin-top: 12px; }
.day-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.day-card h3 { margin-bottom: 5px; }
.day-progress { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--sky); color: var(--blue-2); font-size: .72rem; font-weight: 800; }
.day-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.trip-route-note { display: grid; gap: 4px; margin: 14px 0; padding: 14px 16px; border: 1px solid #bfd1fa; border-radius: 16px; background: var(--sky); color: var(--blue-2); }
.trip-route-note strong { font-size: .84rem; }
.trip-route-note span { color: #49617f; font-size: .78rem; line-height: 1.5; }
.day-transit-button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 56px; margin: 2px 0 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--blue-2), #1556ca); color: white; box-shadow: 0 8px 20px rgba(36,107,253,.2); text-decoration: none; }
.day-transit-button:hover { background: var(--blue-2); }
.day-transit-button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.day-transit-button > span:last-child { display: grid; min-width: 0; gap: 2px; text-align: left; overflow-wrap: anywhere; }
.day-transit-button strong { font-size: .86rem; }
.day-transit-button small { color: #eaf1ff; font-size: .76rem; }
.day-transit-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(255,255,255,.16); font-size: 1rem; }
.day-transit-complete { margin: 2px 0 12px; padding: 14px; border: 1px solid #ade1c6; border-radius: 14px; background: #ecfdf5; color: var(--success); font-size: .84rem; font-weight: 750; }
.timeline-item { position: relative; isolation: isolate; display: grid; min-height: 112px; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: start; overflow: hidden; margin-bottom: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #f8fbff, #fff 68%); transition: border-color .2s ease, box-shadow .2s ease; }
.timeline-item::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,15,35,.94) 0%, rgba(5,15,35,.82) 55%, rgba(5,15,35,.58) 100%); opacity: 0; transition: opacity .25s ease; }
.timeline-item > :not(.timeline-photo) { position: relative; z-index: 2; }
.timeline-photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.02); transition: opacity .3s ease, transform .5s ease; }
.timeline-photo[hidden], .timeline-photo-credit[hidden] { display: none; }
.timeline-item.has-photo { border-color: rgba(255,255,255,.18); box-shadow: 0 10px 26px rgba(11,24,48,.14); }
.timeline-item.has-photo::after, .timeline-item.has-photo .timeline-photo { opacity: 1; }
.timeline-item.has-photo .timeline-photo { transform: scale(1); }
.timeline-time { color: var(--blue); font-size: .8rem; font-weight: 800; }
.timeline-main strong { display: inline; }
.timeline-location { display: block; margin-top: 3px; color: #456081; font-size: .74rem; font-weight: 750; }
.timeline-main p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.timeline-photo-credit { display: inline-flex; max-width: 100%; margin-top: 8px; color: rgba(255,255,255,.78); font-size: .58rem; line-height: 1.3; text-decoration-color: rgba(255,255,255,.4); overflow-wrap: anywhere; }
.timeline-item.has-photo .timeline-time, .timeline-item.has-photo .timeline-main strong { color: white; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.timeline-item.has-photo .timeline-location, .timeline-item.has-photo .timeline-main p { color: #e5edf9; }
.timeline-item.has-photo .community-source { background: rgba(255,255,255,.9); }
.timeline-item.has-photo .mini-button { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 4px 12px rgba(5,15,35,.12); }
.timeline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 230px; }
.mini-button { display: grid; min-width: 34px; height: 34px; padding: 0 7px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--muted); line-height: 1; text-decoration: none; }
.mini-button:hover { border-color: #b8c7df; color: var(--blue); }
.activity-action { display: inline-flex; width: auto; gap: 5px; padding: 0 9px; color: #40516c; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.activity-action > span[aria-hidden] { color: var(--blue); font-size: .82rem; }
.timeline-item.done .timeline-main { opacity: .55; text-decoration: line-through; }
.day-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.day-tools .secondary-button { display: grid; min-height: 42px; padding: 9px 10px; place-items: center; color: var(--blue-2); font-size: .78rem; text-align: center; text-decoration: none; }
.empty-state { padding: 50px 16px; text-align: center; color: var(--muted); }.empty-state .empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 13px; place-items: center; border-radius: 18px; background: var(--sky); color: var(--blue); font-size: 1.5rem; }

.today-section { position: relative; z-index: 3; margin: 14px 12px 0; padding: 15px; border: 1px solid rgba(255,255,255,.78); border-radius: 25px; background: linear-gradient(145deg, rgba(244,249,255,.96), rgba(255,255,255,.9)); box-shadow: 0 17px 40px rgba(20,38,72,.16), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.today-section-heading { padding: 0 2px; }
.today-status-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; background: #e6efff; color: var(--blue-2); font-size: .6rem; font-weight: 880; letter-spacing: .09em; white-space: nowrap; }
.today-status-badge[data-phase="today"]::before { content: ""; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #20a66a; box-shadow: 0 0 0 4px rgba(32,166,106,.12); }
.today-status-badge[data-phase="complete"] { background: #e6f6ee; color: var(--success); }
.today-status-badge[data-phase="overdue"] { background: #fff0d7; color: #8a5300; }
.today-status-badge[data-phase="setup"] { background: #eee9ff; color: #5b3eb0; }
.today-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.today-setup-card { padding: 18px; border: 1px solid #c9d8f8; border-radius: 19px; background: linear-gradient(145deg, #edf4ff, #fff 62%); box-shadow: 0 10px 26px rgba(36,107,253,.08); }
.today-setup-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.today-setup-card p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.today-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: var(--navy); color: white; font-size: 1.15rem; }
.today-next { position: relative; isolation: isolate; display: flex; min-height: 142px; gap: 13px; align-items: flex-start; overflow: hidden; padding: 17px; border: 1px solid #c9d8f8; border-radius: 19px; background: linear-gradient(145deg, #e4edff, #f8fbff 68%); }
.today-next.is-complete { border-color: #b8dfcd; background: linear-gradient(145deg, #e7f7ef, #f8fffb); }
.today-next.is-complete .today-icon { background: var(--success); }
.today-next::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,15,35,.94) 0%, rgba(5,15,35,.78) 58%, rgba(5,15,35,.42) 100%), linear-gradient(0deg, rgba(5,15,35,.5), transparent 70%); opacity: 0; transition: opacity .25s ease; }
.today-next > :not(.today-next-photo) { position: relative; z-index: 2; }
.today-next > div { min-width: 0; }
.today-next-photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.02); transition: opacity .3s ease, transform .5s ease; }
.today-next-photo[hidden], .today-next-photo-credit[hidden] { display: none; }
.today-next.has-photo::after, .today-next.has-photo .today-next-photo { opacity: 1; }
.today-next.has-photo .today-next-photo { transform: scale(1); }
.today-next.has-photo .today-icon { background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 5px 16px rgba(5,15,35,.16); }
.today-next.has-photo small { color: #9fc2ff; }
.today-next.has-photo h3 { color: white; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.today-next.has-photo p { color: #e5edf9; }
.today-next-photo-credit { display: inline-flex; max-width: 100%; margin-top: 8px; color: rgba(255,255,255,.8); font-size: .58rem; line-height: 1.3; text-decoration-color: rgba(255,255,255,.4); overflow-wrap: anywhere; }
.today-next small, .today-facts small { display: block; color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .11em; }
.today-next h3 { margin: 3px 0; font-size: 1.15rem; }
.today-next p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.today-progress { margin-top: 12px; padding: 12px 13px 10px; border: 1px solid rgba(193,207,226,.82); border-radius: 16px; background: rgba(255,255,255,.72); }
.today-progress-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .74rem; }
.today-progress-copy span { color: var(--muted); font-weight: 720; }
.today-progress-copy strong { color: var(--ink); font-size: .75rem; }
.today-progress-bar { height: 5px; overflow: hidden; margin-top: 7px; border-radius: 999px; background: #dce5f1; }
.today-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #246bfd, #078b83); box-shadow: 0 0 12px rgba(36,107,253,.22); transition: width .3s ease; }
.today-card.is-complete .today-progress-bar span { background: var(--success); }
.today-mini-timeline { display: flex; margin: 10px 0 0; padding: 0; list-style: none; }
.today-mini-timeline li { position: relative; display: grid; min-width: 0; flex: 1; gap: 4px; justify-items: center; color: #8d98aa; }
.today-mini-timeline li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 7px; left: 50%; width: 100%; height: 2px; background: #dce5f1; }
.today-mini-timeline li.complete:not(:last-child)::after { background: #8bd0b2; }
.today-mini-timeline li > span { position: relative; z-index: 1; display: grid; width: 16px; height: 16px; place-items: center; border: 3px solid #c7d1df; border-radius: 50%; background: white; color: white; font-size: .48rem; font-weight: 900; }
.today-mini-timeline li.complete > span { border-color: var(--success); background: var(--success); }
.today-mini-timeline li.current > span { border-color: white; background: var(--blue); box-shadow: 0 0 0 3px rgba(36,107,253,.17); }
.today-mini-timeline small { overflow: hidden; max-width: 100%; color: inherit; font-size: .58rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.today-mini-timeline li.current small { color: var(--blue-2); font-weight: 850; }
.today-mini-timeline li.complete small { color: var(--success); }
.today-facts { display: grid; grid-template-columns: .8fr 2fr; gap: 8px; margin-top: 10px; }
.today-facts > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.78); }
.today-facts strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: .84rem; }
.today-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.today-quick-action { display: grid; min-width: 0; min-height: 60px; grid-template-columns: 29px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 7px; align-content: center; align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); text-align: left; text-decoration: none; }
.today-quick-action > span { display: grid; width: 29px; height: 29px; grid-row: 1 / 3; place-items: center; border-radius: 10px; font-size: .86rem; font-weight: 900; }
.today-quick-action strong, .today-quick-action small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-quick-action strong { align-self: end; font-size: .72rem; }
.today-quick-action small { align-self: start; color: inherit; font-size: .6rem; font-weight: 720; opacity: .75; }
.today-quick-action.directions { border-color: #b9cdf8; background: #eaf1ff; color: var(--blue-2); }
.today-quick-action.directions > span { background: var(--blue); color: white; }
.today-quick-action.complete { border-color: #b8dfcd; background: #eaf8f1; color: #136a48; }
.today-quick-action.complete > span { background: var(--success); color: white; }
.today-quick-action.change { border-color: #d7caf8; background: #f2eeff; color: #5b3eb0; }
.today-quick-action.change > span { background: #7957d8; color: white; }
.today-secondary-actions { display: flex; gap: 14px; margin-top: 10px; padding-top: 7px; border-top: 1px solid rgba(193,207,226,.66); }
.today-secondary-actions button { padding: 5px 0; border: 0; background: transparent; color: var(--blue); font-size: .79rem; font-weight: 800; }

.safety-hero { margin-bottom: 14px; padding: 24px; border-radius: 26px; background: linear-gradient(145deg, var(--navy), #194374); color: white; }.safety-hero p:not(.eyebrow) { margin-bottom: 0; color: #d7e2f2; }
.safety-command-hero { position: relative; overflow: hidden; padding: 23px; background: radial-gradient(circle at 92% 5%,rgba(56,135,255,.45),transparent 36%),linear-gradient(145deg,#09172e,#153e72); box-shadow:0 16px 38px rgba(9,23,46,.18) }.safety-command-hero:after{position:absolute;right:-42px;bottom:-65px;width:190px;height:190px;border:1px solid rgba(255,255,255,.13);border-radius:50%;content:""}.safety-hero-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.safety-hero-heading h1{margin-top:4px}.safety-ready-badge{display:flex;position:relative;z-index:1;gap:6px;align-items:center;padding:7px 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.1);font-size:.7rem;font-weight:850}.safety-ready-badge i{width:7px;height:7px;border-radius:50%;background:#45dda0;box-shadow:0 0 0 4px rgba(69,221,160,.14)}.safety-privacy-line{display:flex;position:relative;z-index:1;gap:8px;align-items:center;margin-top:16px;padding-top:13px;border-top:1px solid rgba(255,255,255,.14);color:#c9d8ec;font-size:.74rem;font-weight:700}
.safety-emergency-panel{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:14px;align-items:center;margin-bottom:22px;padding:16px;border:1px solid #efbbb5;border-radius:21px;background:linear-gradient(135deg,#fff0ee,#fff);box-shadow:0 10px 25px rgba(151,42,42,.07)}.safety-emergency-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:15px;background:#c93838;color:#fff;font-size:1.25rem;font-weight:950;box-shadow:0 8px 18px rgba(201,56,56,.22)}.safety-emergency-panel .eyebrow{margin-bottom:3px;color:#a32929}.safety-emergency-panel h2{margin:0;font-size:1rem}.safety-emergency-panel p:not(.eyebrow){margin:4px 0 0;color:#775b5b;font-size:.74rem;line-height:1.4}.danger-button{min-height:42px;padding:10px 13px;border-radius:13px;background:#b92f35;color:#fff;font-size:.76rem;font-weight:850}.danger-button:active{background:#97262b}
.safety-section-heading{margin-bottom:11px}.safety-section-heading h2{margin-top:2px;font-size:1.35rem}.safety-destination-badge{max-width:48%;overflow:hidden;padding:7px 10px;border-radius:999px;background:#e7f0ff;color:#2458b8;font-size:.68rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.action-card { min-height: 145px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); color: var(--ink); text-align: left; }.action-card span { display: grid; width: 38px; height: 38px; margin-bottom: 17px; place-items: center; border-radius: 12px; background: var(--sky); color: var(--blue); font-weight: 900; }.action-card strong, .action-card small { display: block; }.action-card small { margin-top: 4px; color: var(--muted); line-height: 1.35; }.emergency-card { border-color: #f2c4bd; background: var(--danger-soft); }.emergency-card span { background: #ffe0dc; color: var(--danger); }
.safety-command-grid{gap:10px}.safety-action-card{display:grid;grid-template-columns:43px minmax(0,1fr) auto;gap:11px;align-items:center;min-height:94px;padding:13px 14px;border-color:#ccd9e8;border-radius:18px;background:rgba(255,255,255,.9);box-shadow:0 8px 22px rgba(20,38,72,.055);text-decoration:none}.safety-action-card:hover{border-color:#9cb8df;transform:translateY(-1px)}.safety-action-card .safety-action-icon{width:43px;height:43px;margin:0;border-radius:14px;font-size:1.05rem}.safety-action-icon.location{background:#e5f0ff;color:#1262dc}.safety-action-icon.route{background:#eee8ff;color:#6844c7}.safety-action-icon.check{background:#e2f7ee;color:#08764e}.safety-action-icon.official{background:#fff0d9;color:#b56804}.safety-action-card strong{font-size:.86rem}.safety-action-card small{font-size:.69rem}.safety-action-card>b{color:#8a9aaf;font-size:1.25rem}
.status-panel { margin-top: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; }.safety-status-panel{display:grid;grid-template-columns:43px minmax(0,1fr);gap:12px;align-items:start;margin-top:15px;padding:15px;border-radius:19px;background:rgba(255,255,255,.92);box-shadow:0 9px 24px rgba(20,38,72,.06)}.safety-status-icon{display:grid;width:43px;height:43px;place-items:center;border-radius:14px;background:#e2f7ee;color:#08764e;font-weight:900}.safety-status-panel>div>small{display:block;color:var(--blue);font-size:.62rem;font-weight:900;letter-spacing:.11em}.safety-status-panel strong{display:block;margin-top:3px;font-size:.9rem}.safety-status-panel p{margin:4px 0 0;color:var(--muted);font-size:.74rem;line-height:1.45}.safety-status-panel[data-tone="danger"]{border-color:#efbbb5;background:#fff6f5}.safety-status-panel[data-tone="danger"] .safety-status-icon{background:#c93838;color:#fff}.safety-status-panel[data-tone="warning"] .safety-status-icon{background:#fff0d6;color:#b36000}.safety-status-panel[data-tone="location"] .safety-status-icon,.safety-status-panel[data-tone="working"] .safety-status-icon{background:#e5f0ff;color:#1262dc}.safety-status-panel[data-tone="route"] .safety-status-icon{background:#eee8ff;color:#6844c7}.safety-status-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.safety-status-actions a,.safety-status-actions button{padding:8px 10px;border:1px solid #bdd0e7;border-radius:10px;background:#fff;color:#1557ad;font-size:.7rem;font-weight:850;text-decoration:none}
.safety-resource-card{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:14px;padding:16px 17px;border:1px solid #cfdaea;border-radius:19px;background:linear-gradient(135deg,#edf5ff,#fff)}.safety-resource-card h2{margin:2px 0 0;font-size:.96rem}.safety-resource-card p:not(.eyebrow){margin:4px 0 0;color:var(--muted);font-size:.72rem;line-height:1.4}.safety-resource-card>div:last-child{display:grid;flex:0 0 auto;gap:7px}.safety-resource-card a{padding:8px 10px;border-radius:10px;background:#fff;color:#1755ad;font-size:.68rem;font-weight:850;text-align:center;text-decoration:none}.safety-note { margin: 10px 4px 0; color: var(--muted); font-size: .7rem; line-height:1.45 }
@media(max-width:600px){.safety-emergency-panel{grid-template-columns:42px minmax(0,1fr)}.safety-emergency-icon{width:42px;height:42px}.safety-emergency-panel .danger-button{grid-column:1/-1;width:100%}.safety-resource-card{align-items:flex-start;flex-direction:column}.safety-resource-card>div:last-child{width:100%;grid-template-columns:1fr 1fr}}

.form-card { display: grid; gap: 17px; padding: 19px; }.form-card label { display: grid; gap: 7px; color: var(--ink); font-size: .87rem; font-weight: 730; }.form-card input, .form-card select, .form-card textarea { width: 100%; border: 1px solid #cfd6e0; border-radius: 12px; padding: 11px 12px; background: white; color: var(--ink); }.form-card textarea { resize: vertical; }.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.form-card fieldset { margin: 0; padding: 0; border: 0; }.form-card legend { margin-bottom: 8px; font-size: .87rem; font-weight: 780; }.choice-grid, .ai-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.toggle-choice { display: flex !important; flex-direction: row; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; }.toggle-choice input, .check-row input { width: auto; }.ai-choice { min-height: 46px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-size: .81rem; font-weight: 720; }.ai-choice.selected { border: 2px solid var(--blue); background: var(--sky); color: #194baf; box-shadow: 0 0 0 3px rgba(36,107,253,.08); }.check-row { display: flex !important; flex-direction: row; align-items: center; }.upload-field { padding: 13px; border: 1px dashed #aab7ca; border-radius: 13px; background: #f9fbfe; }.upload-field small { color: var(--muted); font-weight: 500; }.form-actions { display: flex; gap: 9px; }.form-actions > * { flex: 1; }
.public-post-notice { margin: -3px 0 0; padding: 12px 13px; border: 1px solid #cfdcff; border-radius: 12px; background: var(--sky); color: #2855a6; font-size: .8rem; }
.account-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; padding: 14px; }.account-avatar { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; background: var(--navy); color: white; font-weight: 850; }.account-card strong, .account-card small { display: block; }.account-card small { color: var(--muted); }


.view-intro { max-width: 620px; margin: -5px 0 18px; color: var(--muted); line-height: 1.55; }
.collections-list { display: grid; gap: 14px; }
.collection-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 28px rgba(20,38,72,.07); }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 17px; border-bottom: 1px solid var(--line); }
.collection-heading h2 { margin-top: 2px; font-size: 1.15rem; }
.collection-heading > span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.collection-items { display: grid; }
.collection-item { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.collection-item:last-child { border-bottom: 0; }
.collection-item img, .collection-placeholder { width: 62px; height: 62px; border-radius: 14px; }
.collection-item img { object-fit: cover; }
.collection-placeholder { display: grid; place-items: center; background: var(--sky); color: var(--blue); font-size: 1.35rem; }
.collection-item strong, .collection-item small { display: block; }
.collection-item small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.collection-item p { display: -webkit-box; overflow: hidden; margin: 6px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.collection-item-actions { display: flex; gap: 5px; }
.collection-empty { margin: 0; padding: 22px 17px; color: var(--muted); }
.traveler-profile-link { padding: 0; border: 0; background: transparent; color: var(--blue-2); font: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: #b7cdfd; text-underline-offset: 3px; }
.action-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 80px rgba(5,15,35,.35); }
.action-dialog::backdrop { background: rgba(5,15,35,.7); backdrop-filter: blur(5px); }
.action-dialog-shell { position: relative; display: grid; gap: 15px; padding: 22px; }
.action-dialog-shell label { display: grid; gap: 7px; color: var(--ink); font-size: .86rem; font-weight: 750; }
.action-dialog-shell input, .action-dialog-shell select, .action-dialog-shell textarea { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); }
.action-dialog-shell textarea { min-height: 96px; padding-block: 11px; resize: vertical; }
.trip-item-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.trip-item-form-actions > * { flex: 1; }
.danger-button { border-color: #f0c4bf; background: var(--danger-soft); color: var(--danger); }
.dialog-context, .field-note { margin: 0; color: var(--muted); line-height: 1.5; }
.field-note { margin: -3px 0 12px; font-size: .8rem; }
.smart-add-dialog { width: min(600px, calc(100% - 24px)); }
.smart-add-recommendation { padding: 12px 14px; border: 1px solid #bfd1fa; border-radius: 14px; background: var(--sky); color: var(--blue-2); font-size: .82rem; font-weight: 800; line-height: 1.45; }
.smart-add-schedule { display: grid; gap: 4px; padding: 13px 14px; border-radius: 14px; background: var(--canvas); }
.smart-add-schedule strong { font-size: .82rem; }.smart-add-schedule span { color: var(--muted); font-size: .79rem; line-height: 1.45; }
.smart-add-warnings { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid #ead39d; border-radius: 14px; background: #fff8e7; color: #73510a; font-size: .8rem; line-height: 1.45; }
.smart-add-warnings > span::before { content: "! "; font-weight: 900; }
.smart-add-warnings.danger { border-color: #efbcb5; background: var(--danger-soft); color: var(--danger); }
.smart-add-conflict { display: grid; gap: 10px; padding: 11px; border: 1px solid #e1c16d; border-radius: 12px; background: rgba(255,255,255,.72); }
.smart-add-conflict > div:first-child { display: grid; gap: 2px; }
.smart-add-conflict strong { color: var(--ink); font-size: .84rem; }
.smart-add-conflict span { color: #73510a; font-size: .78rem; }
.smart-add-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.smart-add-conflict-actions button { flex: 1 1 150px; min-height: 40px; padding: 8px 11px; font-size: .78rem; }
.smart-add-conflict-actions button:disabled { opacity: .6; cursor: not-allowed; }
.trip-adjustment-dialog { width: min(610px, calc(100% - 24px)); }
.trip-adjustment-shell { gap: 18px; }
.trip-adjustment-step { display: grid; gap: 17px; }
.trip-adjustment-step[hidden] { display: none; }
.trip-adjustment-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trip-adjustment-reasons button { display: grid; min-width: 0; min-height: 118px; grid-template-columns: 42px minmax(0,1fr); gap: 3px 11px; align-content: center; align-items: center; padding: 14px; border: 1px solid #cfdaeb; border-radius: 18px; background: linear-gradient(145deg, #fff, #f5f8fe); color: var(--ink); text-align: left; box-shadow: 0 7px 20px rgba(20,38,72,.05); }
.trip-adjustment-reasons button:hover, .trip-adjustment-reasons button:focus-visible { border-color: #82a8f9; box-shadow: 0 9px 24px rgba(37,111,244,.14); transform: translateY(-1px); }
.trip-adjustment-reasons button strong { font-size: .9rem; line-height: 1.25; }
.trip-adjustment-reasons button small { grid-column: 2; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.adjustment-reason-icon { display: grid; width: 42px; height: 42px; grid-row: 1 / span 2; place-items: center; border-radius: 14px; font-size: 1.05rem; font-weight: 900; }
.adjustment-reason-icon.late { background: #e8f1ff; color: #1769d2; }
.adjustment-reason-icon.closed { background: #ffebe8; color: #b64035; }
.adjustment-reason-icon.weather { background: #e8f8f5; color: #087c74; }
.adjustment-reason-icon.walking { background: #fff2dc; color: #aa6400; }
.adjustment-reason-icon.replace { background: #f1ebff; color: #7549c9; }
.adjustment-reason-icon.custom { background: #eef1f6; color: #526071; }
.trip-adjustment-protection { display: flex; gap: 9px; align-items: flex-start; margin: 0; padding: 11px 13px; border-radius: 14px; background: #eef8f3; color: #25694d; font-size: .79rem; font-weight: 750; line-height: 1.45; }
.trip-adjustment-protection span { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #ccebdc; }
.trip-adjustment-comparison { display: grid; gap: 10px; }
.adjustment-plan-card { display: grid; gap: 7px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #f7f9fc; }
.adjustment-plan-card > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.adjustment-plan-card small { color: var(--muted); font-size: .69rem; font-weight: 850; letter-spacing: .13em; }
.adjustment-plan-card strong { font-size: 1.02rem; line-height: 1.35; }
.adjustment-plan-card > span { color: var(--muted); font-size: .82rem; }
.adjustment-plan-card.after { border-color: #a9c5ff; background: linear-gradient(145deg, #f4f8ff, #edf3ff); box-shadow: 0 12px 28px rgba(37,111,244,.11); }
.adjustment-plan-card.after > div > span { padding: 5px 8px; border-radius: 999px; background: #dce9ff; color: var(--blue-2); font-size: .69rem; font-weight: 850; }
.adjustment-plan-card p { margin: 3px 0 0; color: #3e536d; font-size: .8rem; line-height: 1.45; }
.adjustment-arrow { justify-self: center; display: grid; width: 30px; height: 30px; place-items: center; margin: -2px 0; border-radius: 50%; background: var(--navy); color: white; font-weight: 900; }
.trip-adjustment-actions { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(170px, 1.3fr); gap: 10px; }
.trip-adjustment-actions button { width: 100%; }
.trip-rescue-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.trip-rescue-heading h3 { margin: 2px 0 0; font-size: 1.05rem; }
.live-results-badge { display: inline-flex; flex: 0 0 auto; gap: 6px; align-items: center; padding: 7px 9px; border-radius: 999px; background: #e8f8f2; color: #176f52; font-size: .7rem; font-weight: 850; }
.live-results-badge i { width: 7px; height: 7px; border-radius: 50%; background: #24a873; box-shadow: 0 0 0 4px rgba(36,168,115,.13); }
.trip-adjustment-options { display: grid; gap: 10px; }
.trip-adjustment-option { display: grid; min-width: 0; grid-template-columns: 92px minmax(0,1fr) 22px; gap: 13px; align-items: center; padding: 10px; border: 1px solid #ccd8ea; border-radius: 18px; background: linear-gradient(145deg, #fff, #f5f8fe); color: var(--ink); text-align: left; box-shadow: 0 7px 20px rgba(20,38,72,.05); }
.trip-adjustment-option:hover, .trip-adjustment-option:focus-visible { border-color: #78a0f7; box-shadow: 0 10px 26px rgba(37,111,244,.15); transform: translateY(-1px); }
.trip-adjustment-option-media { position: relative; display: grid; width: 92px; height: 86px; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg, #e7efff, #eff4ff); color: var(--blue-2); font-size: 1.35rem; }
.trip-adjustment-option-media img { width: 100%; height: 100%; object-fit: cover; }
.trip-adjustment-option-media b { position: absolute; top: 6px; left: 6px; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: rgba(11,24,48,.85); color: white; font-size: .68rem; }
.trip-adjustment-option-media small { position: absolute; right: 4px; bottom: 4px; left: 4px; overflow: hidden; padding: 3px 4px; border-radius: 5px; background: rgba(5,15,35,.72); color: white; font-size: .45rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.trip-adjustment-option-copy { display: grid; min-width: 0; gap: 3px; }
.trip-adjustment-option-copy > span:first-child { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 2px; }
.trip-adjustment-option-copy em { padding: 4px 7px; border-radius: 999px; background: #edf1f7; color: #5c687a; font-size: .62rem; font-style: normal; font-weight: 850; }
.trip-adjustment-option-copy .option-status.open { background: #def5ea; color: #187052; }
.trip-adjustment-option-copy .option-status.closed { background: #ffebe8; color: #a73d35; }
.trip-adjustment-option-copy strong { overflow: hidden; font-size: .91rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.trip-adjustment-option-copy small { overflow: hidden; color: #526174; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.trip-adjustment-option-copy > span:not(:first-child) { color: var(--muted); font-size: .68rem; line-height: 1.25; }
.trip-adjustment-option-arrow { color: var(--blue); font-size: 1.65rem; }
.trip-rescue-loading, .trip-rescue-error { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 8px; padding: 24px; border: 1px dashed #b8c9e5; border-radius: 19px; background: #f6f9ff; text-align: center; }
.trip-rescue-loading small, .trip-rescue-error p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.trip-rescue-error > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: #e7efff; color: var(--blue); font-size: 1.4rem; }
.trip-rescue-error button { margin-top: 5px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--blue); color: white; font-weight: 850; }
.adjustment-plan-card > .adjustment-review-photo { position: relative; display: block; overflow: hidden; height: 150px; margin: -7px -7px 4px; border-radius: 14px; }
.adjustment-plan-card > .adjustment-review-photo[hidden] { display: none; }
.adjustment-review-photo img { width: 100%; height: 100%; object-fit: cover; }
.adjustment-review-photo small { position: absolute; right: 7px; bottom: 6px; left: 7px; padding: 5px 7px; border-radius: 8px; background: rgba(5,15,35,.76); color: white; letter-spacing: 0; }
.adjustment-plan-card > .adjustment-plan-meta { color: #2e5b99; font-size: .75rem; font-weight: 750; line-height: 1.4; }
.adjustment-schedule-preview { display: grid; gap: 0; overflow: hidden; border: 1px solid #c7d7ef; border-radius: 16px; background: white; }
.adjustment-schedule-preview > strong { padding: 10px 13px; background: #edf4ff; color: var(--blue-2); font-size: .67rem; letter-spacing: .13em; }
.adjustment-schedule-preview > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; border-top: 1px solid var(--line); font-size: .77rem; }
.adjustment-schedule-preview small { color: var(--muted); white-space: nowrap; }
.adjustment-schedule-preview b { color: var(--blue-2); }
.public-profile-fields { border-color: #bfd1fa; background: #f7f9ff; }
.traveler-profile-content { min-height: 230px; }
.traveler-profile-header { display: flex; align-items: center; gap: 15px; padding-right: 45px; }
.traveler-profile-header img, .traveler-profile-avatar { width: 70px; height: 70px; flex: 0 0 auto; border-radius: 22px; }
.traveler-profile-header img { object-fit: cover; }
.traveler-profile-avatar { display: grid; place-items: center; background: var(--navy); color: white; font-size: 1.3rem; font-weight: 850; }
.traveler-profile-header h2 { margin: 2px 0 3px; font-size: 1.35rem; }
.traveler-profile-header p:last-child { margin: 0; color: var(--muted); }
.traveler-profile-details { display: flex; flex-wrap: wrap; gap: 7px; }
.traveler-profile-details span { padding: 7px 10px; border-radius: 999px; background: var(--sky); color: var(--blue-2); font-size: .78rem; font-weight: 750; }
.traveler-profile-bio, .profile-private-note { margin: 0; color: var(--muted); line-height: 1.55; }
.profile-private-note { padding: 12px; border-radius: 13px; background: var(--canvas); }
.profile-insights { display: grid; gap: 8px; padding-top: 4px; }
.profile-insights button { display: grid; gap: 4px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); text-align: left; }
.profile-insights button span { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }

.bottom-nav {
  position: relative;
  z-index: 20;
  display: grid;
  width: min(calc(100% - 24px), 792px);
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  margin: 8px auto max(9px, env(safe-area-inset-bottom));
  padding: 6px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(250,252,255,.94), rgba(239,246,255,.9));
  box-shadow: 0 16px 42px rgba(11,24,48,.2), 0 2px 8px rgba(11,24,48,.08), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
.nav-item {
  --nav-accent: #246bfd;
  --nav-ink: #174fc6;
  --nav-rgb: 36, 107, 253;
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 62px;
  grid-template-rows: 34px auto;
  gap: 3px;
  place-items: center;
  padding: 6px 2px 7px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #68758a;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .12s ease;
}
.nav-item[data-view-link="plannerView"] { --nav-accent: #7957d8; --nav-ink: #5b3eb0; --nav-rgb: 121, 87, 216; }
.nav-item[data-view-link="exploreView"] { --nav-accent: #078b83; --nav-ink: #066a65; --nav-rgb: 7, 139, 131; }
.nav-item[data-view-link="itineraryView"] { --nav-accent: #d47a08; --nav-ink: #925006; --nav-rgb: 212, 122, 8; }
.nav-item[data-view-link="safetyView"] { --nav-accent: #d24b5d; --nav-ink: #a52f40; --nav-rgb: 210, 75, 93; }
.nav-icon {
  display: grid;
  width: 36px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--nav-rgb), .08);
  color: var(--nav-accent);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nav-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-label { overflow: hidden; max-width: 100%; font-size: .69rem; font-weight: 760; line-height: 1; letter-spacing: .005em; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.active {
  background: linear-gradient(145deg, rgba(var(--nav-rgb), .18), rgba(var(--nav-rgb), .075));
  color: var(--nav-ink);
  box-shadow: inset 0 0 0 1px rgba(var(--nav-rgb), .12), 0 5px 15px rgba(var(--nav-rgb), .11);
}
.nav-item.active .nav-icon { background: linear-gradient(145deg, var(--nav-accent), var(--nav-ink)); color: white; box-shadow: 0 5px 13px rgba(var(--nav-rgb), .28); transform: translateY(-1px); }
.nav-item.active .nav-label { font-weight: 860; }
.nav-item:active { transform: scale(.96); }
.nav-item:focus-visible { outline-offset: -2px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(108px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 10px 15px; transform: translate(-50%, 20px); border-radius: 999px; background: var(--navy); color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; }.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (hover: hover) {
  .nav-item:not(.active):hover { background: rgba(255,255,255,.62); color: var(--navy-2); }
}

@media (max-width: 680px) {
  .recommendation-dashboard { grid-template-columns: 1fr; }
  .recommendation-lead { min-height: 0; }
  .recommendation-secondary-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}
@media (min-width: 720px) {
  .topbar { padding-inline: 28px; }
  .view { padding-inline: 28px; }
  .trip-hero { min-height: 360px; padding: 36px; }
  .full-bleed-view { padding-inline: 0; }
  .explore-header, .map-search, .map-filters, .map-results { margin-left: 28px; margin-right: 28px; }
  .route-stop-picker { margin-left: 28px; margin-right: 28px; }
  .card-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  html.android-standalone .bottom-nav { margin-bottom: max(40px, env(safe-area-inset-bottom)); }
  html.android-standalone .chat-form { bottom: max(124px, calc(94px + env(safe-area-inset-bottom))); }
  #plannerView { padding-inline: 15px; }
  #plannerView .page-heading { margin-top: 2px; margin-bottom: 12px; }
  #plannerView .page-heading h1 { font-size: 1.55rem; }
  #plannerView.has-active-trip .page-heading { margin-bottom: 8px; }
  .planner-intro { gap: 10px; padding: 13px; }
  .planner-intro p { font-size: .78rem; line-height: 1.4; }
  .planner-trip-context { padding: 8px 11px; font-size: .71rem; }
  .prompt-chips { gap: 6px; margin: 10px 0 11px; }
  .prompt-chip { padding: 7px 10px; font-size: .72rem; }
  .chat-messages { min-height: 180px; gap: 8px; padding: 2px 0 96px; }
  .message { max-width: 92%; padding: 10px 12px; border-radius: 16px; font-size: .86rem; line-height: 1.45; }
  .chat-form { width: calc(100% - 20px); gap: 6px; padding: 7px; border-radius: 17px; }
  .chat-form textarea { height: 52px; min-height: 52px; max-height: 78px; padding: 7px 8px; resize: none; font-size: .88rem; line-height: 1.35; }
  .chat-form .send-button { width: 44px; height: 44px; border-radius: 13px; }
  .app-shell.planner-composer-active .bottom-nav { display: none; }
  .app-shell.planner-composer-active .chat-form { bottom: calc(8px + env(safe-area-inset-bottom)); }
  .app-shell.planner-composer-active .chat-messages { padding-bottom: 92px; }
  .trip-adjustment-shell { padding: 19px 18px calc(20px + env(safe-area-inset-bottom)); }
  .trip-adjustment-reasons { gap: 8px; }
  .trip-adjustment-reasons button { min-height: 108px; padding: 11px; grid-template-columns: 38px minmax(0,1fr); gap: 2px 8px; border-radius: 16px; }
  .trip-adjustment-reasons button strong { font-size: .8rem; }
  .trip-adjustment-reasons button small { font-size: .68rem; }
  .adjustment-reason-icon { width: 38px; height: 38px; border-radius: 12px; }
  .trip-adjustment-option { grid-template-columns: 76px minmax(0,1fr) 17px; gap: 10px; padding: 8px; border-radius: 16px; }
  .trip-adjustment-option-media { width: 76px; height: 82px; border-radius: 12px; }
  .trip-adjustment-option-copy strong { font-size: .82rem; }
  .trip-adjustment-option-copy > span:not(:first-child) { font-size: .63rem; }
  .adjustment-plan-card > .adjustment-review-photo { height: 135px; }
  .trip-hero { min-height: 360px; padding: 22px; }
  .trip-hero.has-active-trip { min-height: 278px; padding: 18px; border-radius: 24px; }
  .trip-hero.has-destination-photo .hero-copy { padding-top: 108px; }
  .trip-hero.has-active-trip.has-destination-photo .hero-copy { padding-top: 78px; }
  .hero-featured { top: 16px; right: 16px; left: 16px; width: auto; }
  .trip-hero.has-active-trip .hero-featured { top: 12px; right: 12px; left: 12px; padding: 8px 10px; }
  .trip-hero.has-active-trip .hero-featured-meta { display: none; }
  .trip-hero.has-active-trip .hero-featured-actions { margin-top: 3px; }
  .trip-hero.has-active-trip #homeHeading { font-size: clamp(1.45rem, 7vw, 1.85rem); line-height: 1.04; }
  .trip-hero.has-active-trip #tripSummary { margin-bottom: 10px; font-size: .82rem; line-height: 1.35; }
  .trip-hero.has-active-trip .hero-actions { gap: 8px; }
  .trip-hero.has-active-trip .hero-actions button { min-height: 42px; padding: 9px 8px; font-size: .78rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions button { min-width: 0; padding-inline: 12px; }
  .route-orbit { right: 24px; }
  .two-column, .choice-grid, .ai-choice-grid { grid-template-columns: 1fr; }
  .quick-grid { gap: 8px; }
  .metric-card { min-height: 74px; grid-template-columns: 38px minmax(0,1fr); gap: 9px; padding: 11px; border-radius: 16px; }
  .metric-icon { width: 38px; height: 38px; border-radius: 12px; }
  .metric-icon svg { width: 21px; height: 21px; }
  .metric-card strong { font-size: .78rem; }
  .metric-arrow { display: none; }
  .safety-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 120px; }
  .timeline-item { grid-template-columns: 64px 1fr; }.timeline-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; padding-left: 64px; }
  .day-tools { grid-template-columns: 1fr 1fr; }
  .day-tools > :last-child { grid-column: 1 / -1; }
  .place-card { grid-template-columns: 40px 1fr; }.place-actions { grid-column: 2; }
  .place-card-marker, .place-card .place-pin { width: 40px; height: 40px; }
  .account-card { grid-template-columns: auto 1fr; }.account-card .quiet-button { grid-column: 1 / -1; }
  .collection-item { grid-template-columns: 50px minmax(0,1fr); }
  .collection-item img, .collection-placeholder { width: 50px; height: 50px; }
  .collection-item-actions { grid-column: 2; }
  .action-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .community-replan-card { align-items: stretch; flex-direction: column; }
  .community-replan-card .compact-button { width: 100%; }
  .community-toolbar { grid-template-columns: 1fr; }
  .community-toolbar select { max-width: none; }
  .community-photo-grid { height: 168px; }
  .trip-date-control { grid-template-columns: 1fr; }
  .trip-date-control small { grid-column: 1; }
  .today-section { margin: 14px 8px 0; padding: 12px; border-radius: 22px; }
  .today-setup-card { grid-template-columns: auto 1fr; }
  .today-setup-card .primary-button { grid-column: 1 / -1; width: 100%; }
  .today-facts { grid-template-columns: .8fr 1.8fr; }
  .today-quick-actions { gap: 6px; }
  .home-recommendations .section-heading { align-items: flex-end; }
  .home-recommendations .text-button { flex: 0 0 auto; }
  .recommendation-secondary-grid { grid-template-columns: 1fr; }
  .recommendation-option { min-height: 124px; }
  .home-community-panel > summary { min-height: 82px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; padding: 13px; }
  .home-panel-icon { width: 42px; height: 42px; border-radius: 13px; }
  .home-panel-copy em { max-width: 180px; }
  .home-community-content { padding: 13px; }
  .photo-dialog { width: 100%; max-height: 100dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .photo-dialog-shell { grid-template-rows: minmax(240px, 50dvh) auto; max-height: 94dvh; }
  .photo-dialog-media img { max-height: 50dvh; }
}
@media (max-width: 360px) {
  .metric-card { grid-template-columns: 34px minmax(0,1fr); gap: 7px; padding: 9px; }
  .metric-icon { width: 34px; height: 34px; }
  .metric-card small { font-size: .58rem; }
  .metric-card strong { font-size: .72rem; }
  .today-facts { grid-template-columns: 1fr; }
  .home-panel-copy em { max-width: 135px; }
  .bottom-nav { width: calc(100% - 16px); gap: 1px; margin-bottom: max(7px, env(safe-area-inset-bottom)); padding: 5px; border-radius: 21px; }
  .nav-item { min-height: 58px; grid-template-rows: 31px auto; border-radius: 16px; }
  .nav-icon { width: 32px; height: 31px; }
  .nav-icon svg { width: 22px; height: 22px; }
  .nav-label { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (display-mode: standalone) { #installButton { display: none !important; } }

.legal-settings-card { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; align-items: center; margin-top: 14px; padding: 17px 18px; border: 1px solid #c7d6eb; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(20,38,72,.06); }
.legal-settings-card div { grid-column: 1 / -1; }
.legal-settings-card h2 { margin: 0; }
.legal-settings-card > p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.legal-settings-card > a { color: var(--blue-2); font-size: .82rem; font-weight: 850; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.terms-consent-dialog { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(5,15,35,.46); }
.terms-consent-dialog::backdrop { background: rgba(5,15,35,.78); backdrop-filter: blur(6px); }
.terms-consent-shell { display: grid; gap: 11px; padding: 17px 18px; }
.terms-consent-brand { display: flex; gap: 8px; align-items: center; color: var(--blue-2); font-size: .64rem; font-weight: 900; letter-spacing: .12em; }
.terms-consent-brand .farivo-mark { width: 34px; height: 34px; flex-basis: 34px; filter: drop-shadow(0 6px 8px rgba(11,24,48,.16)); }
.terms-consent-shell h2 { margin: 3px 0 5px; font-size: clamp(1.3rem, 5vw, 1.55rem); line-height: 1.1; }
.terms-consent-shell p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.42; }
.terms-consent-points { display: grid; gap: 4px; margin: 0; padding: 10px 12px 10px 28px; border: 1px solid #c9d8ef; border-radius: 13px; background: var(--sky); color: var(--navy); font-size: .72rem; font-weight: 720; line-height: 1.35; }
.terms-full-link { color: var(--blue-2); font-size: .76rem; font-weight: 850; text-underline-offset: 3px; }
.terms-agreement-row { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; padding: 10px 11px; border: 1px solid #c7d6eb; border-radius: 12px; background: #f9fbfe; font-size: .76rem; font-weight: 760; line-height: 1.35; }
.terms-agreement-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.terms-consent-shell > .primary-button { min-height: 42px; padding: 10px 14px; }
.terms-consent-shell .primary-button:disabled { cursor: not-allowed; }
.terms-consent-shell > small { color: var(--muted); font-size: .62rem; line-height: 1.3; text-align: center; }

.legal-page { height: auto; min-height: 100%; overflow: auto; background-position: right center; }
.legal-document { width: min(760px, calc(100% - 28px)); margin: 28px auto; padding: clamp(22px, 5vw, 46px); border: 1px solid rgba(181,198,220,.8); border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(20,38,72,.18); }
.legal-back-link { display: inline-block; margin-bottom: 24px; color: var(--blue-2); font-weight: 800; text-decoration: none; }
.legal-document-header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.legal-document-header h1 { margin: 2px 0 0; }
.legal-document > p { color: var(--muted); }
.legal-document section { padding-top: 22px; border-top: 1px solid var(--line); }
.legal-document section + section { margin-top: 22px; }
.legal-document section h2 { margin-bottom: 9px; }
.legal-document section p, .legal-document li { color: #35425a; line-height: 1.7; }
.legal-document section p:last-child { margin-bottom: 0; }
.legal-document li + li { margin-top: 8px; }
.legal-document-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (max-width: 520px) {
  .terms-consent-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .terms-consent-shell { padding: 20px; }
  .legal-settings-card { grid-template-columns: 1fr; }
  .legal-document { margin: 12px auto; border-radius: 22px; }
}


.onboarding-dialog { width: min(520px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 80px rgba(5,15,35,.4); }
.onboarding-dialog::backdrop { background: rgba(5,15,35,.72); backdrop-filter: blur(6px); }
.onboarding-shell { display: grid; gap: 20px; padding: 22px; }
.onboarding-topline, .onboarding-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.onboarding-step { min-height: 330px; }
.onboarding-step[hidden] { display: none; }
.onboarding-step h2 { max-width: 420px; margin: 8px 0 12px; font-size: clamp(1.65rem, 6vw, 2.25rem); line-height: 1.05; }
.onboarding-step > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.onboarding-visual { display: grid; grid-template-columns: 54px 1fr; gap: 2px 13px; align-items: center; margin-top: 25px; padding: 18px; border: 1px solid #cfdcff; border-radius: 20px; background: linear-gradient(145deg, var(--sky), #fff); }
.onboarding-visual span { grid-row: 1 / 3; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: var(--navy); color: white; font-size: 1.35rem; }
.onboarding-visual strong { align-self: end; font-size: 1rem; }
.onboarding-visual small { align-self: start; color: var(--muted); font-size: .82rem; }
.onboarding-footer { padding-top: 4px; border-top: 1px solid var(--line); }
.onboarding-footer > span { color: var(--muted); font-size: .8rem; font-weight: 750; }
.onboarding-footer > div { display: flex; gap: 8px; }
.onboarding-footer .primary-button, .onboarding-footer .quiet-button { min-height: 44px; padding: 10px 15px; }
@media (max-width: 520px) {
  .onboarding-dialog { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .onboarding-step { min-height: 310px; }
  .onboarding-shell { padding: 20px; }
}

/* Hotel recommendations */
.hotel-intro{display:flex;gap:14px;align-items:center;padding:17px;margin-bottom:14px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,#eef5ff,#fff)}.hotel-intro-icon,.hotel-icon{display:grid;flex:0 0 48px;width:48px;height:48px;place-items:center;border-radius:15px;background:var(--navy);color:#fff;font-size:1.2rem}.hotel-intro p{margin:4px 0 0;color:var(--muted)}.hotel-toolbar{display:flex;gap:8px;overflow-x:auto;padding:2px 0 13px;scrollbar-width:none}.hotel-toolbar::-webkit-scrollbar{display:none}.hotel-toolbar .filter-chip{flex:0 0 auto}.hotel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hotel-card{display:flex;min-width:0;flex-direction:column;padding:17px;border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:0 10px 28px rgba(20,38,72,.06)}.hotel-card-top{display:flex;gap:12px;align-items:center}.hotel-card h2{margin:3px 0 0;font-size:1.05rem}.hotel-reason{flex:1;margin:15px 0;color:var(--muted);line-height:1.55}.hotel-facts{display:grid;gap:5px;padding:11px;border-radius:14px;background:var(--sky);color:var(--muted);font-size:.82rem}.hotel-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.hotel-actions .secondary-button{padding:10px 8px}.booking-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center;margin-top:9px}.booking-links .primary-button{grid-column:1/-1;text-align:center;text-decoration:none}.booking-links>a:not(.primary-button){padding:9px 6px;border-radius:10px;color:var(--blue);font-size:.8rem;font-weight:800;text-align:center;text-decoration:none}.affiliate-disclosure{margin:15px 2px 0;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--muted);font-size:.78rem;line-height:1.5}.affiliate-disclosure strong{color:var(--ink)}.affiliate-disclosure p{margin:5px 0 0}.booking-links a[data-affiliate-link=true]::after{content:" · affiliate";font-size:.68rem;font-weight:700;opacity:.8}@media(max-width:780px){.hotel-grid{grid-template-columns:1fr}}@media(max-width:520px){.hotel-actions,.booking-links{grid-template-columns:1fr}.booking-links .primary-button{grid-column:auto}}

.overnight-picker{display:grid;gap:8px;margin-bottom:14px;padding:15px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}.overnight-picker label,.hotel-step-label{font-weight:800}.overnight-picker select{width:100%;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}

.hotel-stay-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px;padding:15px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}.hotel-form-heading{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;align-items:baseline}.hotel-form-heading span{color:var(--muted);font-size:.78rem}.hotel-stay-form label{display:grid;gap:6px;color:var(--muted);font-size:.76rem;font-weight:800}.hotel-stay-form input,.hotel-stay-form select{width:100%;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit}.hotel-source-note{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;padding:11px 14px;border:1px solid #b9dbcc;border-radius:14px;background:#edfff6;color:#176044;font-size:.78rem}.hotel-source-note.warning{border-color:#ecd6a6;background:#fff9eb;color:#76530b}.hotel-photo{width:calc(100% + 34px);height:170px;margin:-17px -17px 15px;object-fit:cover;border-radius:22px 22px 0 0;background:var(--sky)}.hotel-icon.compact{flex-basis:38px;width:38px;height:38px;border-radius:12px;font-size:.95rem}.hotel-address{margin:10px 0 0;color:var(--muted);font-size:.82rem;line-height:1.4}
@media(max-width:780px){.hotel-stay-form{grid-template-columns:repeat(2,minmax(0,1fr))}.hotel-form-heading{grid-column:1/-1}.hotel-stay-form label:last-child{grid-column:1/-1}.hotel-source-note{display:grid}}
@media(max-width:420px){.hotel-stay-form{grid-template-columns:1fr 1fr}.hotel-form-heading{display:grid}.hotel-photo{height:155px}}

.flight-intro{display:flex;gap:14px;align-items:center;margin-bottom:14px;padding:18px;border:1px solid #c8d9ee;border-radius:22px;background:linear-gradient(135deg,#e9f4ff,#fff8eb);box-shadow:0 10px 26px rgba(20,38,72,.06)}
.flight-intro-icon{display:grid;flex:0 0 50px;width:50px;height:50px;place-items:center;border-radius:16px;background:linear-gradient(145deg,#246bfd,#164cba);color:#fff;font-size:1.35rem;box-shadow:0 8px 18px rgba(36,107,253,.23)}
.flight-intro strong,.flight-intro p{display:block}.flight-intro p{margin:4px 0 0;color:var(--muted);line-height:1.45}
.flight-search-form{display:grid;gap:16px;padding:18px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:var(--shadow)}
.flight-route-map{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.flight-leg{display:flex;min-width:0;gap:12px;align-items:center;padding:15px;border:1px solid #d5dfec;border-radius:18px;background:linear-gradient(145deg,#f6f9fd,#fff)}
.flight-leg:last-child{background:linear-gradient(145deg,#fff8ed,#fff)}
.flight-leg-number{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:13px;background:var(--navy);color:#fff;font-weight:900}
.flight-leg div{min-width:0}.flight-leg small,.flight-leg strong,.flight-leg em{display:block}.flight-leg small{color:var(--blue);font-size:.68rem;font-weight:900;letter-spacing:.1em}.flight-leg strong{overflow:hidden;margin:4px 0;text-overflow:ellipsis;font-size:.95rem;white-space:nowrap}.flight-leg strong b{color:#d97706}.flight-leg em{color:var(--muted);font-size:.78rem;font-style:normal}
.flight-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.flight-fields label{display:grid;gap:6px;color:var(--muted);font-size:.76rem;font-weight:800}.flight-fields input,.flight-fields select{width:100%;min-height:46px;padding:0 11px;border:1px solid #cbd7e6;border-radius:13px;background:#fff;color:var(--ink);font:inherit}.flight-fields input:focus,.flight-fields select:focus{border-color:var(--blue);outline:3px solid rgba(36,107,253,.12)}
.flight-provider-actions{display:grid;grid-template-columns:1.35fr 1fr;gap:10px}.flight-provider-actions a{display:grid;place-items:center;text-align:center;text-decoration:none}.flight-leg-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.flight-leg-links a{padding:10px;color:var(--blue);font-size:.8rem;font-weight:850;text-align:center;text-decoration:none}
.flight-action-prompt{display:grid;gap:3px;padding:14px;border:1px dashed #aabbd0;border-radius:15px;background:#f5f8fc;text-align:center}.flight-action-prompt span{color:var(--muted);font-size:.8rem}
.flight-approval-note{display:flex;gap:8px;margin:0;padding:12px 14px;border-radius:14px;background:#edfff6;color:#176044;font-size:.78rem;line-height:1.5}.flight-approval-note span{font-weight:900}
.flight-date-notice{display:flex;gap:12px;align-items:center;margin-bottom:14px;padding:14px 16px;border:1px solid #efd39a;border-radius:17px;background:#fff8e9;color:#6d4c0a}.flight-date-notice>span{display:grid;flex:0 0 40px;width:40px;height:40px;place-items:center;border-radius:12px;background:#fff;color:#b76705}.flight-date-notice div{flex:1}.flight-date-notice p{margin:2px 0 0;font-size:.8rem}.flight-date-notice button{padding:9px 12px;border-radius:11px;background:#fff;color:#9a4d05;font-weight:850}
@media(max-width:780px){.flight-route-map{grid-template-columns:1fr}.flight-fields{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.flight-search-form{padding:14px}.flight-fields{grid-template-columns:1fr 1fr}.flight-fields label:first-child,.flight-fields label:nth-child(2),.flight-fields label:nth-child(5){grid-column:1/-1}.flight-provider-actions,.flight-leg-links{grid-template-columns:1fr}.flight-date-notice{align-items:flex-start}.flight-date-notice button{align-self:center}.flight-leg strong{white-space:normal}}

/* Saved flight itinerary */
.saved-flight-plan{display:grid;gap:14px;margin-bottom:16px;padding:18px;border:1px solid #cfb98e;border-radius:24px;background:linear-gradient(145deg,#fff9ec,#fff);box-shadow:0 12px 30px rgba(20,38,72,.08)}
.saved-flight-plan.booked{border-color:#9fd7be;background:linear-gradient(145deg,#ecfff6,#fff)}
.saved-flight-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.saved-flight-heading .eyebrow{margin-bottom:4px}.saved-flight-heading h2{margin:0;font-size:1.2rem}.flight-status-badge{padding:7px 11px;border-radius:999px;background:#fff1cf;color:#8a4a00;font-size:.72rem;font-weight:900;text-transform:uppercase}.booked .flight-status-badge{background:#d9f8e9;color:#087043}
.saved-flight-legs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.saved-flight-legs article{display:grid;gap:4px;min-width:0;padding:14px;border:1px solid #d7e0ec;border-radius:17px;background:rgba(255,255,255,.9)}.saved-flight-direction{color:var(--blue);font-size:.65rem;font-weight:900;letter-spacing:.11em}.saved-flight-legs strong{font-size:1.1rem}.saved-flight-legs strong b{color:#d97706}.saved-flight-legs article>span:not(.saved-flight-direction),.saved-flight-legs small{overflow:hidden;color:var(--muted);font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.saved-flight-facts{margin:0;padding:10px 12px;border-radius:13px;background:rgba(255,255,255,.72);color:var(--muted);font-size:.8rem;font-weight:750}.saved-flight-actions{display:flex;gap:8px;align-items:center}.saved-flight-actions .secondary-button{text-decoration:none}.saved-flight-actions .text-button{margin-left:auto}
.flight-return-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;padding:15px;border:1px solid #bfd2f2;border-radius:18px;background:linear-gradient(135deg,#edf5ff,#fff)}.flight-return-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:14px;background:var(--blue);color:#fff;font-size:1.3rem;font-weight:800}.flight-return-card p{margin:3px 0 0;color:var(--muted);font-size:.78rem;line-height:1.45}.flight-return-card .primary-button{padding:10px 14px}
.flight-import-dialog{width:min(680px,calc(100% - 24px))}.flight-import-shell{gap:16px}.flight-paste-panel{display:grid;gap:8px;padding:14px;border:1px dashed #9eb8d9;border-radius:17px;background:#f3f8ff}.flight-paste-panel textarea{min-height:78px}.flight-paste-panel .secondary-button{justify-self:start}.flight-paste-panel small{color:var(--muted);font-size:.72rem}.flight-import-overview{display:grid;grid-template-columns:1fr 1fr .7fr;gap:10px}.flight-import-leg{display:grid;gap:11px;margin:0;padding:14px;border:1px solid #d5dfec;border-radius:18px;background:#f8fbff}.flight-import-leg.home{background:#fffaf1}.flight-import-leg legend{display:flex;gap:8px;align-items:center;padding:0 5px;color:var(--ink)}.flight-import-leg legend span{display:grid;width:28px;height:28px;place-items:center;border-radius:9px;background:var(--navy);color:#fff;font-size:.75rem}.flight-import-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.flight-import-grid.route{grid-template-columns:1fr 24px 1fr;align-items:end}.flight-import-grid.route>span{display:grid;height:46px;place-items:center;color:#d97706;font-weight:900}.flight-import-grid.trip-details{grid-template-columns:1fr .65fr 1.2fr}.flight-import-protection{display:flex;gap:8px;margin:0;padding:12px 14px;border-radius:14px;background:#edfff6;color:#176044;font-size:.76rem;line-height:1.5}.flight-import-save{width:100%}
@media(max-width:600px){.saved-flight-legs{grid-template-columns:1fr}.saved-flight-actions{display:grid;grid-template-columns:1fr 1fr}.saved-flight-actions .text-button{grid-column:1/-1;margin:0}.flight-return-card{grid-template-columns:42px minmax(0,1fr)}.flight-return-icon{width:42px;height:42px}.flight-return-card .primary-button{grid-column:1/-1;width:100%}.flight-import-overview,.flight-import-grid.trip-details{grid-template-columns:1fr 1fr}.flight-import-grid.trip-details label:last-child{grid-column:1/-1}}
@media(max-width:420px){.flight-import-dialog{width:100%}.flight-import-shell{padding:18px 15px}.flight-import-overview{grid-template-columns:1fr}.flight-import-grid:not(.route){grid-template-columns:1fr 1fr}.flight-import-grid.trip-details{grid-template-columns:1fr 1fr}}

.trip-flight-summary{display:grid;gap:12px;margin:14px 0;padding:16px;border:1px solid #ddc89e;border-radius:20px;background:linear-gradient(145deg,#fff8e9,#fff)}.trip-flight-summary.booked{border-color:#a8d9c3;background:linear-gradient(145deg,#ecfff6,#fff)}.trip-flight-summary-heading{display:flex;gap:11px;align-items:center}.trip-flight-summary-heading>div{flex:1}.trip-flight-summary-heading .eyebrow{margin-bottom:2px}.trip-flight-summary-heading h3{margin:0;font-size:1rem}.trip-flight-icon{display:grid;width:40px;height:40px;place-items:center;border-radius:13px;background:#d97706;color:#fff;font-weight:900}.trip-flight-summary.booked .trip-flight-icon{background:#078052}.trip-flight-route{display:grid;grid-template-columns:1fr 1fr;gap:8px}.trip-flight-route>span{display:grid;gap:3px;padding:11px;border-radius:13px;background:rgba(255,255,255,.85)}.trip-flight-route strong{font-size:.87rem}.trip-flight-route small{overflow:hidden;color:var(--muted);font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}.trip-flight-summary>p{margin:0;color:var(--muted);font-size:.73rem;font-weight:750}@media(max-width:480px){.trip-flight-summary-heading{align-items:flex-start}.trip-flight-summary-heading .text-button{padding:5px}.trip-flight-route{grid-template-columns:1fr}}

.day-experience-search{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.day-experience-heading h4{margin:3px 0 2px;font-size:.96rem}.day-experience-heading span{color:var(--muted);font-size:.76rem}.day-experience-form{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;margin-top:12px;padding:7px 7px 7px 12px;border:1px solid #c9d7e8;border-radius:14px;background:#fff}.day-experience-form>span{color:var(--blue);font-size:1.1rem}.day-experience-form input{min-width:0;border:0;outline:0;background:transparent;color:var(--ink)}.day-experience-form button{min-height:38px;padding:8px 12px;border:0;border-radius:10px;background:var(--navy);color:#fff;font-size:.76rem;font-weight:850}.day-experience-filters{display:flex;gap:7px;overflow-x:auto;padding:10px 0 2px;scrollbar-width:none}.day-experience-filters button{flex:0 0 auto;min-height:34px;padding:6px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#49617f;font-size:.72rem;font-weight:800}.day-experience-filters button.active{border-color:var(--blue);background:var(--sky);color:var(--blue-2)}.day-experience-results{display:grid;gap:8px;margin-top:10px}.day-experience-option{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,#f8fbff,#fff)}.day-experience-option img,.day-experience-icon{width:52px;height:52px;border-radius:12px}.day-experience-option img{object-fit:cover;background:var(--sky)}.day-experience-icon{display:grid;place-items:center;background:var(--sky);color:var(--blue);font-size:1.1rem}.day-experience-option strong,.day-experience-option small{display:block}.day-experience-option strong{font-size:.84rem}.day-experience-option small{margin-top:2px;color:var(--blue-2);font-size:.68rem;font-weight:750}.day-experience-option p{margin:3px 0 0;color:var(--muted);font-size:.7rem;line-height:1.35}.day-experience-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:230px}.day-experience-actions a,.day-experience-option button{display:grid;min-height:36px;padding:7px 10px;place-items:center;border-radius:10px;font-size:.72rem;font-weight:850;text-align:center;text-decoration:none}.day-experience-actions a{border:1px solid var(--blue);background:#fff;color:var(--blue-2)}.day-experience-option button{border:0;background:var(--blue);color:#fff}.day-experience-option button:disabled{background:#e7f7ef;color:#16704b}.day-experience-message{margin:0;padding:13px;border:1px dashed #b8c8dd;border-radius:13px;color:var(--muted);font-size:.76rem;text-align:center}.day-experience-message.error{border-color:#e6c5bc;background:#fff7f5;color:#9c4538}@media(max-width:520px){.day-experience-option{grid-template-columns:46px minmax(0,1fr)}.day-experience-option img,.day-experience-icon{width:46px;height:46px}.day-experience-actions{grid-column:2;min-width:0;width:100%}}

.smart-add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.smart-add-actions .secondary-button, .smart-add-actions .primary-button { display: grid; min-height: 46px; place-items: center; text-align: center; text-decoration: none; }
@media(max-width:520px){.smart-add-actions{grid-template-columns:1fr}}


/* Optional Viator ideas stay separate from scheduled itinerary activities */
.day-viator-suggestions { display: grid; gap: 11px; margin: 16px 0 4px; padding: 15px; border: 1px solid #b9d5ff; border-radius: 18px; background: linear-gradient(145deg,#edf6ff,#fff); }
.day-viator-heading { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.day-viator-heading .eyebrow { margin: 0 0 3px; color: var(--blue); }
.day-viator-heading h4 { margin: 0 0 3px; color: var(--navy); }
.day-viator-heading span { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.day-viator-list { display: grid; gap: 8px; }
.day-viator-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid #d4e0ef; border-radius: 14px; background: rgba(255,255,255,.94); }
.day-viator-card img, .day-viator-icon { width: 48px; height: 48px; border-radius: 11px; }
.day-viator-card img { object-fit: cover; background: var(--sky); }
.day-viator-icon { display: grid; place-items: center; background: var(--navy); color: #fff; }
.day-viator-card strong, .day-viator-card small { display: block; }
.day-viator-card strong { font-size: .82rem; }
.day-viator-card small { margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.day-viator-card .primary-button { min-height: 38px; padding: 8px 11px; white-space: nowrap; text-decoration: none; }
@media(max-width:560px){.day-viator-heading{display:grid}.day-viator-heading .text-button{justify-self:start;padding:4px 0}.day-viator-card{grid-template-columns:44px minmax(0,1fr)}.day-viator-card img,.day-viator-icon{width:44px;height:44px}.day-viator-card .primary-button{grid-column:2;width:100%}}

/* Streamlined Trip-to-Explore discovery handoff */
.explore-intro { display: block; max-width: 620px; margin-top: 5px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.day-explore-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; margin: 18px 0 4px; padding: 16px; border: 1px solid rgba(43,140,255,.2); border-radius: 18px; background: linear-gradient(135deg, rgba(25,184,255,.08), rgba(43,140,255,.04)); }
.day-explore-entry h4 { margin: 2px 0 4px; color: var(--navy); }
.day-explore-entry span, .day-explore-entry small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.day-explore-entry small { grid-column: 1 / -1; }
.route-stop-button { white-space: nowrap; }
.place-option-actions .place-option-action[disabled] { opacity: .7; background: #1f9d67; border-color: #1f9d67; color: #fff; }
@media (max-width: 620px) {
  .day-explore-entry { grid-template-columns: 1fr; }
  .day-explore-entry .secondary-button { width: 100%; }
  .day-explore-entry small { grid-column: auto; }
}

.trip-item-booking-fields { display: grid; gap: 12px; padding: 14px; border: 1px solid #b8d7ca; border-radius: 16px; background: #eefaf5; }
.trip-item-booking-fields[hidden] { display: none; }
.trip-item-booking-fields > div:first-child { display: grid; gap: 3px; }
.trip-item-booking-fields > div:first-child .eyebrow { margin: 0; color: #087c5b; }
.trip-item-booking-fields > div:first-child > span { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.booking-status-badge { display: inline-flex; width: fit-content; margin-top: 5px; padding: 4px 8px; border-radius: 999px; background: #ddf7e9; color: #087c4b; font-size: .7rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.booking-confirmation { display: block; margin-top: 6px; color: #35705a; font-size: .72rem; font-weight: 750; }
.booking-action { border-color: #9dd9c1; background: #e8f8f1; color: #087c5b; }


/* Secure itinerary sharing */
.trip-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.share-trip-primary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 20px; font-size: .9rem; box-shadow: 0 11px 24px rgba(36,107,253,.28); }
.share-trip-primary span { font-size: 1.1rem; }
.trip-share-dialog { width: min(94vw, 620px); max-height: min(86vh, 820px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(11,24,48,.28); }
.trip-share-dialog::backdrop { background: rgba(11,24,48,.54); backdrop-filter: blur(4px); }
.trip-share-panel { display: grid; gap: 16px; padding: 24px; }
.trip-share-panel[hidden], .trip-share-result[hidden] { display: none !important; }
.trip-share-panel .dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.trip-share-panel label { display: grid; gap: 6px; color: var(--navy); font-size: .82rem; font-weight: 800; }
.trip-share-panel select, .trip-share-panel input, .trip-share-panel textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); opacity: 1; -webkit-text-fill-color: var(--ink); }
.trip-share-panel textarea { min-height: 82px; resize: none; overflow-wrap: anywhere; line-height: 1.4; }
.share-mode-explanation { margin: -8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.trip-share-error { margin: -4px 0 0; padding: 11px 13px; border: 1px solid #f4c2bc; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: .8rem; font-weight: 750; line-height: 1.4; }
.trip-share-error[hidden] { display: none !important; }
.trip-share-result { display: grid; gap: 10px; padding: 14px; border: 1px solid #c5d5ec; border-radius: 16px; background: var(--sky); }
.trip-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-share-actions > * { flex: 1 1 130px; }
.shared-trip-summary { display: grid; gap: 10px; max-height: 48vh; overflow-y: auto; padding-right: 4px; }
.shared-trip-day { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f8faff; }
.shared-trip-day > strong { color: var(--navy); }
.shared-trip-day ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.shared-trip-day li { display: grid; grid-template-columns: 74px minmax(0,1fr); column-gap: 8px; align-items: baseline; }
.shared-trip-day li span { color: var(--blue); font-size: .72rem; font-weight: 800; }
.shared-trip-day li b { min-width: 0; font-size: .84rem; }
.shared-trip-day li small { grid-column: 2; color: var(--muted); font-size: .7rem; }
@media (max-width: 520px) {
  .trip-heading-actions { width: 100%; justify-content: flex-start; }
  .share-trip-primary { flex: 1 1 auto; justify-content: center; }
  .trip-share-dialog { width: calc(100vw - 20px); }
  .trip-share-panel { padding: 18px; }
  .trip-share-actions > * { flex-basis: 100%; }
}


/* Live shared-trip presence */
.trip-presence { position: relative; }
.trip-presence[hidden], .trip-presence-panel[hidden] { display: none !important; }
.trip-presence-button { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 12px; border: 1px solid #b9d0f2; border-radius: 999px; background: #f4f8ff; color: var(--navy); font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.trip-presence-avatars { display: flex; padding-left: 6px; }
.trip-presence-avatar { position: relative; display: inline-grid; width: 30px; height: 30px; margin-left: -6px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--navy); color: white; font-size: .62rem; font-weight: 900; }
.trip-presence-avatar i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: #16a36a; }
.trip-presence-panel { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(310px, calc(100vw - 40px)); padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 16px 42px rgba(11,24,48,.2); }
.trip-presence-panel > strong { color: var(--navy); font-size: .86rem; }
.trip-presence-panel ul { display: grid; gap: 11px; margin: 13px 0; padding: 0; list-style: none; }
.trip-presence-panel li { display: flex; align-items: center; gap: 10px; }
.trip-presence-panel li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.trip-presence-panel li strong { overflow: hidden; color: var(--ink); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.trip-presence-panel li small, .trip-presence-panel > small { color: var(--muted); font-size: .68rem; }
@media (max-width: 520px) {
  .trip-presence { order: 2; width: 100%; }
  .trip-presence-button { width: 100%; justify-content: center; }
  .trip-presence-panel { right: auto; left: 0; }
}


/* Collaboration center and version history */
.collaboration-manage-button { width: 100%; margin-top: 12px; }
.collaboration-dialog { width: min(94vw, 720px); max-height: min(88vh, 860px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(11,24,48,.28); }
.collaboration-dialog::backdrop { background: rgba(11,24,48,.54); backdrop-filter: blur(4px); }
.collaboration-center { display: grid; gap: 24px; padding: 24px; }
.collaboration-center > section { display: grid; gap: 12px; }
.collaboration-center > section[hidden] { display: none !important; }
.collaboration-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.collaboration-section-heading h3 { margin: 0; color: var(--navy); font-size: 1rem; }
.collaboration-section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.trip-member-list, .trip-history-list { display: grid; gap: 9px; }
.trip-member-card, .trip-history-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.trip-member-identity, .trip-history-card > span { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.trip-member-identity strong, .trip-history-card strong { overflow: hidden; color: var(--ink); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.trip-member-identity small, .trip-history-card small { color: var(--muted); font-size: .68rem; }
.trip-member-card label { flex: 0 0 auto; }
.trip-member-role { min-height: 38px; padding: 7px 30px 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; color: var(--navy); font: inherit; font-size: .72rem; font-weight: 800; }
.trip-member-remove { flex: 0 0 auto; padding: 6px; font-size: .7rem; }
.trip-history-restore { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; }
.empty-copy { margin: 0; padding: 16px; border-radius: 12px; background: #f7f9fd; color: var(--muted); font-size: .76rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .collaboration-center { padding: 18px; }
  .trip-member-card { flex-wrap: wrap; }
  .trip-member-identity { min-width: calc(100% - 50px); }
  .trip-member-card label { flex: 1 1 auto; }
  .trip-member-role { width: 100%; }
  .trip-history-card { align-items: flex-start; }
}


/* Trip readiness dashboard */
.trip-readiness-section[hidden] { display: none !important; }
.trip-readiness-dashboard { overflow: hidden; border: 1px solid #c8d8ee; border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: 0 14px 34px rgba(28,64,113,.11); }
.readiness-overview { display: flex; align-items: center; gap: 18px; padding: 20px; background: linear-gradient(135deg,#eef5ff,#f8fbff); }
.readiness-overview > div:last-child { min-width: 0; }
.readiness-overview > div:last-child strong { color: var(--navy); font-size: 1rem; }
.readiness-overview p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.readiness-score { display: grid; flex: 0 0 84px; width: 84px; height: 84px; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) var(--readiness),#dfe9f6 0); }
.readiness-score::before { content: ""; grid-area: 1/1; width: 66px; height: 66px; border-radius: 50%; background: white; }
.readiness-score span { z-index: 1; display: grid; grid-area: 1/1; text-align: center; }
.readiness-score strong { color: var(--navy); font-size: 1rem; line-height: 1; }
.readiness-score small { margin-top: 3px; color: var(--muted); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.readiness-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); }
.readiness-check { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 76px; padding: 12px 14px; background: white; }
.readiness-checkmark { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #eef3fa; color: var(--muted); font-weight: 900; }
.readiness-check.ready .readiness-checkmark { background: #e1f6ec; color: #0d885a; }
.readiness-check > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.readiness-check strong { color: var(--ink); font-size: .78rem; }
.readiness-check small { color: var(--muted); font-size: .65rem; line-height: 1.35; }
.readiness-check button { align-self: center; padding: 7px 9px; border: 0; border-radius: 9px; background: #edf4ff; color: var(--blue); font: inherit; font-size: .66rem; font-weight: 850; cursor: pointer; }
.readiness-check.ready button { background: #edf8f3; color: #08784f; }
@media (max-width: 650px) {
  .readiness-checks { grid-template-columns: 1fr; }
  .readiness-overview { padding: 16px; }
  .readiness-check { grid-template-columns: 28px minmax(0,1fr); }
  .readiness-check button { grid-column: 2; justify-self: start; }
}


/* Destination readiness guidance */
#tripReadinessGuidance:empty { display: none; }
.readiness-guide { display: grid; gap: 14px; padding: 20px; border-top: 1px solid var(--line); background: linear-gradient(135deg,#f8fbff,#eef5ff); }
.readiness-guide h3 { margin: 2px 0 0; color: var(--navy); font-size: 1rem; }
.readiness-guide p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.readiness-guide ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.readiness-guide li { color: var(--ink); font-size: .74rem; line-height: 1.4; }
.readiness-guide li::first-letter { color: #0d885a; }
.readiness-guide > button { justify-self: start; min-height: 40px; padding: 9px 14px; border: 0; border-radius: 10px; background: var(--blue); color: white; font: inherit; font-size: .72rem; font-weight: 850; cursor: pointer; }
.readiness-official-links { display: flex; flex-wrap: wrap; gap: 8px; }
.readiness-official-links a { padding: 8px 10px; border: 1px solid #bfd2ed; border-radius: 10px; background: white; color: var(--blue); font-size: .68rem; font-weight: 800; text-decoration: none; }
.readiness-official-links a.primary-button { border-color: var(--blue); background: var(--blue); color: white; }
.readiness-map-stops { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.readiness-map-stops a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 12px; border-radius: 10px; background: var(--blue); color: white; font-size: .7rem; font-weight: 850; text-align: center; text-decoration: none; }
@media (max-width: 560px) {
  .readiness-guide { padding: 16px; }
  .readiness-guide ul { grid-template-columns: 1fr; }
  .readiness-official-links { display: grid; }
  .readiness-map-stops { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand .farivo-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand strong { font-size: 1.08rem; letter-spacing: .12em; }
  .brand small { font-size: .54rem; }
}
