:root {
  color-scheme: light;
  --navy: #082b62; --navy-deep: #061f48; --petrol: #174f58; --aqua: #83c5bd;
  --cream: #f4f0e8; --paper: #fffdf9; --canvas: #f1f3f2; --ink: #142234;
  --muted: #6e7882; --soft: #99a2a9; --line: rgba(20,34,52,.11);
  --shadow: 0 18px 55px rgba(17,42,62,.10); --sidebar-width: 286px; --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html,body { margin:0; min-height:100%; background:var(--canvas); color:var(--ink); }
body { -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button { color:inherit; }
a { color:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(131,197,189,.5); outline-offset:3px; }

.app-shell { min-height:100vh; display:grid; grid-template-columns:var(--sidebar-width) minmax(0,1fr); }
.sidebar {
  position:sticky; top:0; z-index:40; height:100vh; overflow:hidden; display:flex; flex-direction:column;
  padding:27px 18px 20px; color:#fff;
  background:radial-gradient(circle at 8% 86%,rgba(91,171,164,.22),transparent 35%),linear-gradient(155deg,var(--navy-deep) 0%,var(--navy) 56%,#0e4551 120%);
  box-shadow:12px 0 35px rgba(5,29,62,.08);
}
.sidebar::before,.sidebar::after { content:""; position:absolute; pointer-events:none; opacity:.19; border:1px solid rgba(255,255,255,.35); border-radius:50%; }
.sidebar::before { width:360px; height:130px; left:-145px; bottom:145px; transform:rotate(-18deg); }
.sidebar::after { width:230px; height:80px; right:-140px; bottom:245px; transform:rotate(22deg); }
.companion-brand { position:relative; z-index:1; display:flex; align-items:flex-end; gap:10px; text-decoration:none; padding:2px 8px 24px; }
.companion-brand img { width:154px; height:auto; }
.companion-brand span { margin-bottom:1px; color:rgba(255,255,255,.56); font-size:10px; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.trip-picker,.mobile-trip-picker { border:0; cursor:pointer; display:grid; grid-template-columns:38px minmax(0,1fr) 18px; gap:10px; align-items:center; text-align:left; }
.trip-picker { position:relative; z-index:1; width:100%; min-height:66px; padding:11px 12px; border:1px solid rgba(255,255,255,.14); border-radius:17px; background:rgba(255,255,255,.09); color:#fff; backdrop-filter:blur(14px); }
.trip-picker:hover { background:rgba(255,255,255,.14); }
.trip-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:rgba(131,197,189,.2); color:#fff; font-size:17px; }
.trip-picker-copy { display:flex; min-width:0; flex-direction:column; gap:3px; }
.trip-picker-copy strong { font-size:15px; font-weight:670; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.trip-picker-copy span { color:rgba(255,255,255,.58); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chevron { color:rgba(255,255,255,.55); font-size:16px; }
.primary-nav { position:relative; z-index:1; display:grid; gap:5px; margin-top:27px; }
.nav-item { position:relative; min-height:48px; display:grid; grid-template-columns:31px minmax(0,1fr) auto; align-items:center; gap:8px; border:0; border-radius:13px; background:transparent; padding:0 12px; color:rgba(255,255,255,.61); cursor:pointer; text-align:left; }
.nav-item>span { font-size:20px; text-align:center; line-height:1; }
.nav-item b { font-size:14px; font-weight:560; }
.nav-item:hover { background:rgba(255,255,255,.07); color:#fff; }
.nav-item.is-active { background:rgba(255,255,255,.13); color:#fff; box-shadow:inset 3px 0 0 var(--aqua); }
.nav-item em,.bottom-nav-item em { min-width:18px; height:18px; padding:0 5px; display:none; place-items:center; border-radius:99px; background:#d96659; color:#fff; font-size:10px; font-style:normal; font-weight:700; }
.nav-item em.has-count,.bottom-nav-item em.has-count { display:inline-grid; }
.sidebar-footer { position:relative; z-index:1; margin-top:auto; display:grid; gap:11px; padding:10px 7px 0; }
.read-only-note { padding:13px; border-radius:15px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); }
.read-only-note span { display:inline-block; color:var(--aqua); text-transform:uppercase; letter-spacing:.08em; font-size:9px; font-weight:740; }
.read-only-note p { margin:6px 0 0; color:rgba(255,255,255,.55); font-size:11px; line-height:1.45; }
.sync-badge { display:flex; align-items:center; gap:8px; color:rgba(255,255,255,.63); font-size:11px; }
.status-dot { width:7px; height:7px; border-radius:50%; background:#d2aa63; box-shadow:0 0 0 4px rgba(210,170,99,.11); }
.sidebar-action { border:0; background:transparent; padding:6px 0; color:rgba(255,255,255,.54); text-align:left; cursor:pointer; font-size:11px; display:flex; justify-content:space-between; }
.sidebar-action:hover { color:#fff; }

.main-column { min-width:0; min-height:100vh; background:radial-gradient(circle at 95% 0%,rgba(131,197,189,.09),transparent 28%),var(--canvas); }
.topbar { position:sticky; top:0; z-index:30; min-height:72px; padding:10px clamp(24px,4vw,54px); display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); background:rgba(241,243,242,.82); backdrop-filter:saturate(160%) blur(22px); }
.mobile-trip-picker { min-width:0; max-width:420px; padding:0; background:transparent; color:var(--ink); }
.mobile-trip-picker .trip-icon { background:rgba(8,43,98,.09); color:var(--navy); }
.mobile-trip-picker .trip-picker-copy span { color:var(--muted); }
.mobile-trip-picker .chevron { color:var(--soft); }
.topbar-actions { position:relative; display:flex; align-items:center; gap:11px; }
.marketing-link { color:var(--navy); text-decoration:none; font-size:12px; font-weight:650; padding:9px 12px; border-radius:99px; }
.marketing-link:hover { background:rgba(8,43,98,.06); }
.circle-button,.plain-icon-button { width:38px; height:38px; border-radius:50%; border:1px solid rgba(8,43,98,.1); display:inline-grid; place-items:center; background:var(--paper); color:var(--navy); cursor:pointer; font-size:15px; font-weight:650; box-shadow:0 7px 20px rgba(8,43,98,.08); }
#collaborationButton { position:relative; }
#collaborationButton::after { content:""; position:absolute; right:1px; bottom:1px; width:8px; height:8px; border:2px solid var(--paper); border-radius:50%; background:#b89a54; }
html[data-cloudkit-signed-in="true"] #collaborationButton { color:#17634f; background:#edf7f2; }
html[data-cloudkit-signed-in="true"] #collaborationButton::after { background:#2f8f63; }
.cloudkit-sign-in-overlay { position:absolute!important; z-index:3; right:0; top:50%; width:38px!important; height:38px!important; min-height:0!important; max-width:none!important; overflow:hidden; border-radius:50%; opacity:.001; transform:translateY(-50%); }
.cloudkit-sign-in-overlay>* { position:absolute!important; inset:0!important; width:38px!important; min-width:0!important; max-width:38px!important; height:38px!important; min-height:0!important; }
html[data-cloudkit-signed-in="true"] .cloudkit-sign-in-overlay { display:none!important; }
.native-page { width:min(1180px,100%); margin:0 auto; }
.navigation-bar { min-height:112px; display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:34px clamp(25px,4vw,52px) 15px; }
.navigation-bar h1 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(34px,4vw,49px); font-weight:500; line-height:1; letter-spacing:-.04em; color:var(--navy); }
.view-subtitle { margin:8px 0 0; color:var(--muted); font-size:12px; }
.view-actions { display:flex; align-items:center; gap:8px; padding-bottom:3px; }
.action-button { min-height:36px; border:0; border-radius:11px; background:transparent; color:var(--navy); padding:0 11px; font-size:14px; font-weight:620; cursor:pointer; }
.action-button.icon { width:36px; padding:0; font-size:21px; }
.action-button:hover { background:rgba(8,43,98,.07); }
.content { padding:0 clamp(25px,4vw,52px) 82px; }

.overview-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:1.45fr .55fr; min-height:250px; margin:5px 0 23px; border-radius:28px; color:#fff; background:linear-gradient(125deg,var(--navy-deep),var(--navy) 53%,var(--petrol)); box-shadow:0 25px 70px rgba(8,43,98,.18); }
.overview-hero::after { content:""; position:absolute; width:460px; height:180px; right:-140px; top:52px; border:1px solid rgba(255,255,255,.22); border-radius:50%; transform:rotate(-15deg); }
.overview-copy { position:relative; z-index:1; padding:clamp(28px,4vw,47px); }
.overview-kicker { display:flex; align-items:center; gap:9px; color:var(--aqua); text-transform:uppercase; letter-spacing:.13em; font-size:10px; font-weight:750; }
.overview-kicker::before { content:""; width:21px; height:1px; background:currentColor; }
.overview-copy h2 { margin:15px 0 8px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(35px,5vw,58px); font-weight:500; line-height:.98; letter-spacing:-.05em; }
.overview-copy p { margin:0; max-width:540px; color:rgba(255,255,255,.67); font-size:14px; line-height:1.5; }
.overview-route { position:relative; z-index:1; display:grid; align-content:center; justify-items:center; padding:25px; }
.route-orbit { width:135px; height:135px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.25); border-radius:50%; }
.route-orbit::before { content:"✦"; width:72px; height:72px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.11); color:var(--aqua); font-size:27px; }
.overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:25px; }
.metric-card { min-height:112px; padding:20px; border:1px solid rgba(20,34,52,.07); border-radius:19px; background:var(--paper); box-shadow:0 10px 35px rgba(17,42,62,.055); }
.metric-card small { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.metric-card strong { display:block; margin-top:12px; color:var(--navy); font-family:Georgia,"Times New Roman",serif; font-size:31px; font-weight:500; line-height:1; }
.metric-card span { display:block; margin-top:7px; color:var(--soft); font-size:11px; }
.overview-columns { display:grid; grid-template-columns:1.18fr .82fr; gap:22px; }
.overview-panel { min-width:0; }
.panel-heading { display:flex; align-items:baseline; justify-content:space-between; margin:0 3px 9px; }
.panel-heading h3 { margin:0; color:var(--ink); font-size:16px; }
.panel-heading span { color:var(--soft); font-size:11px; }
.upcoming-row { min-height:74px; display:grid; grid-template-columns:62px minmax(0,1fr) auto; gap:13px; align-items:center; padding:12px 16px; border-top:1px solid var(--line); }
.upcoming-row:first-child { border-top:0; }
.upcoming-date { color:var(--navy); font-size:12px; font-weight:700; text-transform:uppercase; }
.upcoming-main strong { display:block; font-size:14px; }
.upcoming-main span { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.upcoming-time { color:var(--muted); font-size:12px; }

.grouped-section { margin:16px 0 26px; }
.section-label { margin:0 4px 8px; color:var(--muted); text-transform:uppercase; letter-spacing:.09em; font-size:10px; font-weight:650; }
.section-footer { margin:8px 6px 0; color:var(--muted); font-size:11px; line-height:1.45; }
.ios-list { overflow:hidden; border:1px solid rgba(20,34,52,.07); border-radius:18px; background:var(--paper); box-shadow:0 10px 35px rgba(17,42,62,.05); }
.ios-row { min-height:60px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; margin-left:18px; padding:10px 18px 10px 0; border-top:1px solid var(--line); }
.ios-row:first-child { border-top:0; }
.cloudkit-signout-row { width:calc(100% - 18px); border-right:0; border-bottom:0; border-left:0; background:transparent; text-align:left; cursor:pointer; }
.row-main { min-width:0; }
.row-title { font-size:14px; font-weight:470; line-height:1.25; }
.row-title.strong { font-weight:650; }
.row-subtitle { margin-top:4px; color:var(--muted); font-size:11px; line-height:1.4; }
.row-trailing { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; }
.disclosure { color:#bcc2c5; font-size:19px; line-height:1; }
.row-button { border:0; background:transparent; color:var(--navy); cursor:pointer; padding:7px 0 7px 7px; }
.destructive { color:#b85149!important; }
.empty-state { min-height:420px; display:grid; place-items:center; text-align:center; padding:50px 24px; }
.empty-inner { max-width:420px; }
.empty-symbol { width:72px; height:72px; display:grid; place-items:center; margin:0 auto 18px; border-radius:24px; background:rgba(8,43,98,.07); color:var(--navy); font-size:35px; }
.empty-state h2 { margin:0 0 8px; font-family:Georgia,"Times New Roman",serif; color:var(--navy); font-size:27px; font-weight:500; letter-spacing:-.03em; }
.empty-state p { margin:0 auto 20px; color:var(--muted); font-size:13px; line-height:1.5; }
.prominent-button { min-height:41px; border:0; border-radius:12px; padding:0 17px; background:var(--navy); color:#fff; font-weight:650; cursor:pointer; }
.secondary-button { min-height:38px; border:0; border-radius:11px; padding:0 14px; background:rgba(8,43,98,.08); color:var(--navy); font-weight:600; cursor:pointer; }
.segmented { display:grid; grid-template-columns:repeat(2,1fr); gap:2px; width:168px; padding:2px; border-radius:9px; background:rgba(20,34,52,.09); }
.segmented button { min-height:28px; border:0; border-radius:7px; background:transparent; cursor:pointer; font-size:11px; }
.segmented button.is-active { background:var(--paper); box-shadow:0 1px 4px rgba(0,0,0,.12); }
.import-row { min-height:72px; display:grid; grid-template-columns:43px minmax(0,1fr) auto; gap:13px; align-items:center; margin-left:16px; padding:10px 17px 10px 0; border-top:1px solid var(--line); }
.import-row:first-child { border-top:0; }
.import-icon { width:43px; height:43px; border-radius:13px; display:grid; place-items:center; background:rgba(8,43,98,.08); color:var(--navy); font-size:18px; }
.import-title { font-size:14px; font-weight:650; }
.import-meta { margin-top:3px; color:var(--soft); font-size:10px; }

.category-block { margin:14px 0 23px; }
.category-header { min-height:43px; display:flex; align-items:center; justify-content:space-between; padding:0 7px 7px 3px; }
.category-header-left { display:flex; align-items:center; gap:9px; }
.category-symbol { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:rgba(8,43,98,.08); color:var(--navy); font-size:14px; }
.category-header strong { font-family:Georgia,"Times New Roman",serif; color:var(--navy); font-size:22px; font-weight:500; letter-spacing:-.025em; }
.category-count { color:var(--muted); font-size:11px; }
.place-row { cursor:pointer; }
.place-row:hover { background:rgba(8,43,98,.025); }
.map-card { position:relative; min-height:620px; overflow:hidden; border-radius:22px; background:#e4e9e4; border:1px solid rgba(20,34,52,.08); box-shadow:var(--shadow); }
.map-water { position:absolute; right:-8%; top:-15%; width:36%; height:130%; background:#cce6f5; transform:rotate(8deg); opacity:.82; }
.map-label { position:absolute; color:rgba(70,82,70,.48); font-size:12px; font-weight:600; letter-spacing:.04em; }
.map-pin { position:absolute; transform:translate(-50%,-100%); cursor:pointer; }
.map-pin-dot { width:30px; height:30px; display:grid; place-items:center; border:3px solid #fff; border-radius:50% 50% 50% 0; background:var(--navy); color:#fff; transform:rotate(-45deg); box-shadow:0 2px 7px rgba(0,0,0,.22); }
.map-pin-dot span { transform:rotate(45deg); font-size:11px; }
.map-pin-label { margin-top:4px; padding:4px 7px; border-radius:7px; background:rgba(255,255,255,.94); box-shadow:0 1px 4px rgba(0,0,0,.14); white-space:nowrap; font-size:11px; font-weight:600; }
.map-overlay { position:absolute; top:12px; left:12px; right:12px; display:flex; gap:8px; justify-content:space-between; pointer-events:none; }
.map-chip { pointer-events:auto; border:0; border-radius:10px; min-height:34px; padding:0 12px; background:rgba(255,255,255,.92); box-shadow:0 1px 5px rgba(0,0,0,.12); color:var(--ink); font-size:12px; cursor:pointer; }
.day-heading { display:flex; align-items:baseline; justify-content:space-between; padding:0 5px 8px; }
.day-heading strong { font-family:Georgia,"Times New Roman",serif; color:var(--navy); font-size:23px; font-weight:500; letter-spacing:-.03em; }
.day-heading span { color:var(--muted); font-size:11px; }
.plan-row { min-height:72px; display:grid; grid-template-columns:64px minmax(0,1fr) auto; gap:12px; align-items:center; margin-left:17px; padding:10px 17px 10px 0; border-top:1px solid var(--line); }
.plan-row:first-child { border-top:0; }
.plan-time { color:var(--navy); font-size:12px; font-weight:700; }
.plan-title { font-size:14px; font-weight:650; }
.plan-note { margin-top:4px; color:var(--muted); font-size:11px; }
.trip-hero { padding:30px 25px; color:#fff; background:linear-gradient(115deg,var(--navy),var(--petrol)); }
.trip-hero h2 { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:34px; font-weight:500; letter-spacing:-.04em; }
.trip-hero p { margin:7px 0 0; color:rgba(255,255,255,.66); font-size:12px; }
.status-pill { display:inline-flex; align-items:center; gap:6px; min-height:24px; padding:0 9px; border-radius:99px; background:rgba(23,79,88,.1); color:var(--petrol); font-size:10px; font-weight:680; }
.status-pill .mini-dot { width:6px; height:6px; border-radius:50%; background:currentColor; }

.modal-backdrop { position:fixed; z-index:100; inset:0; display:grid; place-items:center; padding:20px; background:rgba(4,20,43,.42); backdrop-filter:blur(9px); }
.modal { width:min(580px,100%); max-height:calc(100vh - 40px); overflow:auto; border-radius:22px; background:var(--canvas); box-shadow:0 28px 90px rgba(4,20,43,.35); }
.modal-header { position:sticky; top:0; z-index:2; min-height:57px; display:grid; grid-template-columns:80px 1fr 80px; align-items:center; border-bottom:1px solid var(--line); background:rgba(241,243,242,.93); backdrop-filter:blur(18px); padding:0 13px; }
.modal-header h2 { margin:0; text-align:center; color:var(--navy); font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:500; }
.modal-header button { border:0; background:transparent; color:var(--navy); cursor:pointer; padding:8px; }
.modal-header button:last-child { font-weight:680; text-align:right; }
.modal-body { padding:19px 15px 26px; }
.form-section { margin-bottom:20px; }
.form-section-title { margin:0 14px 7px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-size:10px; }
.field-list { border:1px solid rgba(20,34,52,.07); border-radius:15px; overflow:hidden; background:var(--paper); }
.field-row { min-height:51px; display:grid; grid-template-columns:130px minmax(0,1fr); align-items:center; gap:12px; margin-left:15px; padding:7px 15px 7px 0; border-top:1px solid var(--line); }
.field-row:first-child { border-top:0; }
.field-row label { font-size:13px; }
.field-row input,.field-row select,.field-row textarea { width:100%; border:0; outline:none; background:transparent; text-align:right; color:var(--muted); font-size:13px; }
.field-row textarea { min-height:80px; resize:vertical; text-align:left; padding:8px 0; }
.field-row.full { display:block; padding:10px 15px 10px 0; }
.field-row.full label { display:block; margin-bottom:6px; }
.trip-choice { width:100%; min-height:62px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; border:0; border-top:1px solid var(--line); background:var(--paper); padding:10px 15px; text-align:left; cursor:pointer; }
.trip-choice:first-child { border-top:0; }
.trip-choice strong { display:block; font-size:14px; }
.trip-choice span { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.checkmark { color:var(--petrol); font-size:18px; }
.toast-root { position:fixed; z-index:200; left:50%; bottom:28px; transform:translateX(-50%); display:grid; gap:7px; pointer-events:none; }
.toast { padding:11px 15px; border-radius:12px; background:rgba(6,31,72,.94); color:#fff; box-shadow:0 10px 30px rgba(0,0,0,.22); font-size:12px; }
.bottom-nav { display:none; }
#cloudkitAuth { margin-top:2px; }
#cloudkitIdentity { color:rgba(255,255,255,.48)!important; }
#cloudkitStatusLine { color:rgba(255,255,255,.72); font-size:10px; line-height:1.35; }
#cloudkitStatusLine[data-tone="in"] { color:#9ed3bd; }
#cloudkitStatusLine[data-tone="out"] { color:#efc69d; }
#cloudkitStatusLine[data-tone="error"] { color:#f0aaa5; }
#cloudkitRefreshButton { min-height:28px; border:1px solid rgba(255,255,255,.18); border-radius:9px; padding:0 10px; background:rgba(255,255,255,.08); color:#fff; font-size:10px; cursor:pointer; }
#cloudkitRefreshButton:disabled { opacity:.45; }

@media(max-width:930px) {
  :root { --sidebar-width:244px; }
  .companion-brand { display:block; }
  .companion-brand span { display:block; margin-top:7px; }
  .overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .overview-columns { grid-template-columns:1fr; }
}
@media(max-width:720px) {
  .app-shell { display:block; padding-bottom:calc(64px + env(safe-area-inset-bottom)); }
  .sidebar { display:none; }
  .main-column { min-height:100vh; }
  .topbar { min-height:62px; padding:8px 14px; padding-top:max(8px,env(safe-area-inset-top)); }
  .mobile-trip-picker { grid-template-columns:32px minmax(0,1fr) 14px; gap:8px; max-width:calc(100% - 50px); }
  .trip-icon { width:32px; height:32px; border-radius:10px; font-size:14px; }
  .trip-picker-copy strong { font-size:13px; }
  .trip-picker-copy span { font-size:10px; }
  .marketing-link { display:none; }
  .circle-button { width:35px; height:35px; }
  .cloudkit-sign-in-overlay,.cloudkit-sign-in-overlay>* { width:35px!important; max-width:35px!important; height:35px!important; }
  .navigation-bar { min-height:77px; padding:17px 16px 10px; }
  .navigation-bar h1 { font-size:34px; }
  .view-subtitle { display:none; }
  .content { padding:0 14px 31px; }
  .overview-hero { grid-template-columns:1fr; min-height:250px; border-radius:22px; }
  .overview-copy { padding:28px; }
  .overview-copy h2 { font-size:42px; }
  .overview-route { display:none; }
  .overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .metric-card { min-height:99px; padding:16px; border-radius:16px; }
  .metric-card strong { font-size:27px; }
  .grouped-section { margin:13px 0 21px; }
  .ios-list { border-radius:15px; }
  .map-card { min-height:calc(100vh - 220px); border-radius:0; margin:0 -14px -31px; border-left:0; border-right:0; }
  .empty-state { min-height:calc(100vh - 245px); }
  .bottom-nav { position:fixed; z-index:60; left:8px; right:8px; bottom:8px; height:calc(56px + env(safe-area-inset-bottom)); padding:5px 4px env(safe-area-inset-bottom); display:grid; grid-template-columns:repeat(5,1fr); border:1px solid rgba(20,34,52,.09); border-radius:22px; background:rgba(255,253,249,.9); box-shadow:0 15px 45px rgba(7,31,58,.18); backdrop-filter:saturate(160%) blur(24px); }
  .bottom-nav-item { position:relative; border:0; border-radius:17px; background:transparent; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#879098; cursor:pointer; }
  .bottom-nav-item>span { font-size:19px; line-height:1; }
  .bottom-nav-item small { font-size:9px; font-weight:560; }
  .bottom-nav-item.is-active { color:var(--navy); background:rgba(8,43,98,.07); }
  .bottom-nav-item em { position:absolute; top:0; left:calc(50% + 7px); }
  .modal-backdrop { align-items:end; padding:0; }
  .modal { width:100%; max-height:92vh; border-radius:22px 22px 0 0; }
  .toast-root { bottom:calc(76px + env(safe-area-inset-bottom)); }
  .cloudkit-auth-secondary { display:none!important; }
}
@media(min-width:721px) { .mobile-trip-picker { min-width:260px; } }
@media(prefers-reduced-motion:no-preference) {
  .ios-list,.metric-card,.overview-hero { animation:rise .45s ease both; }
  @keyframes rise { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
}
