:root {
  color: #14213d;
  background: #f6f8fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #101d3b;
  --muted: #6b7892;
  --blue: #245ee8;
  --blue-dark: #1647bc;
  --blue-soft: #eaf0ff;
  --line: #e5e9f1;
  --card: rgba(255, 255, 255, 0.96);
  --shadow: 0 16px 42px rgba(26, 48, 94, 0.1);
}

* { box-sizing: border-box; }
html { background: #f6f8fc; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 50% -10%, #e8efff 0, #f7f9fc 36%, #f6f8fc 100%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.app-frame { min-height: 100dvh; padding-bottom: 96px; }
.page { max-width: 1100px; margin: 0 auto; }
.topbar { position: sticky; z-index: 500; top: 0; height: calc(61px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 16px; background: rgba(249, 251, 255, 0.82); border-bottom: 1px solid rgba(220, 227, 240, 0.8); backdrop-filter: blur(18px) saturate(1.3); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 24px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -1.5px; }
.brand-compact { font-size: 20px; letter-spacing: -1px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 13px; color: white; background: linear-gradient(145deg, #3376f4, #1648bd); box-shadow: 0 7px 17px rgba(36, 94, 232, 0.26); }
.brand-compact .brand-mark { width: 32px; height: 32px; border-radius: 11px; }
.topbar-tagline { flex: 1; color: #8b96aa; font-size: 13px; border-left: 1px solid #dfe4ee; padding-left: 15px; }
.avatar-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.avatar-button { width: 34px; height: 34px; border-radius: 50%; color: #285cc5; background: #e7eeff; font-weight: 700; }

.bottom-nav { position: fixed; z-index: 700; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; width: min(430px, calc(100% - 24px)); height: 67px; padding: 7px; border: 1px solid rgba(218, 225, 238, 0.85); border-radius: 23px; background: rgba(255,255,255,.92); box-shadow: 0 12px 38px rgba(18, 40, 84, .18); backdrop-filter: blur(22px) saturate(1.25); }
.bottom-nav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 17px; color: #8b96a9; background: transparent; cursor: pointer; font-size: 10.5px; font-weight: 600; }
.bottom-nav button.active { color: var(--blue); background: #edf2ff; }

.boot-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--muted); }
.boot-screen .brand { transform: scale(1.2); margin-bottom: 10px; }
.boot-error { max-width: 320px; padding: 22px; text-align: center; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.planner-page { padding: 36px 16px 24px; }
.hero { max-width: 660px; margin: 0 auto 26px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { margin: 14px 0 14px; color: var(--ink); font: 800 clamp(37px, 10vw, 62px)/1.03 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -2.4px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.6; }

.planner-card { max-width: 620px; margin: 0 auto; padding: 19px; border: 1px solid rgba(221,227,238,.92); border-radius: 25px; background: var(--card); box-shadow: var(--shadow); }
.field-label, .section-label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #41506d; font-size: 13px; font-weight: 700; }
.destination-field { height: 58px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1.5px solid #dce3ef; border-radius: 17px; background: #fbfcff; color: var(--blue); transition: border-color .18s, box-shadow .18s; }
.destination-field:focus-within { border-color: #6b96f1; box-shadow: 0 0 0 4px rgba(54,111,235,.1); }
.destination-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; font-weight: 600; }
.destination-field input::placeholder { color: #a4adbe; font-weight: 400; }
.destination-field button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #eef1f6; color: #7c899e; }
.form-section { margin-top: 21px; }
.section-label span { margin-left: auto; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.segmented { display: flex; gap: 5px; padding: 5px; border-radius: 14px; background: #f1f4f9; }
.segmented button { flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 10px; color: #6e7a91; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.segmented button.selected { color: var(--blue); background: white; box-shadow: 0 3px 10px rgba(27,52,96,.1); }
.hour-picker { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; color: var(--blue); background: var(--blue-soft); border-radius: 13px; }
.hour-picker input { flex: 1; accent-color: var(--blue); }
.hour-picker strong { width: 60px; color: var(--ink); font-size: 12px; text-align: right; }
.pace-track { position: relative; display: flex; justify-content: space-between; padding: 5px 3px 0; }
.pace-track::before { content: ""; position: absolute; top: 18px; left: 8%; right: 8%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #a9c4ff, var(--blue)); }
.pace-track button { position: relative; z-index: 1; width: 32px; height: 32px; padding: 4px; border: 0; border-radius: 50%; background: #eef2f8; cursor: pointer; }
.pace-track button span { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; color: #7b879b; background: white; font-size: 11px; font-weight: 700; }
.pace-track button.selected { background: #cbdafe; box-shadow: 0 0 0 3px #edf2ff; }
.pace-track button.selected span { color: white; background: var(--blue); }
.pace-ends { display: flex; justify-content: space-between; margin-top: 6px; color: #9aa4b6; font-size: 10px; }
.generate-button, .primary-button, .secondary-button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 14px; font-weight: 700; }
.generate-button { width: 100%; min-height: 54px; margin-top: 23px; padding: 12px 18px; color: white; background: linear-gradient(135deg, #2f70ef, #174ac2); box-shadow: 0 10px 20px rgba(35,91,219,.25); }
.generate-button svg:last-child { margin-left: auto; }
.generate-button:disabled { background: #b6c1d5; box-shadow: none; cursor: not-allowed; }
.generation-progress { height: 3px; margin: 10px 8px 0; overflow: hidden; border-radius: 2px; background: #e6eaf1; }
.generation-progress span { display: block; width: 40%; height: 100%; background: var(--blue); animation: progress 1.5s ease-in-out infinite; }
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.ai-note { margin: 10px 0 0; color: #9aa4b5; text-align: center; font-size: 10.5px; }
.inline-error { margin-top: 14px; padding: 11px 13px; border: 1px solid #f0c9ca; border-radius: 11px; color: #a1343a; background: #fff3f3; font-size: 13px; }

.inspiration { max-width: 820px; margin: 50px auto 0; }
.section-heading { margin-bottom: 16px; }
.section-heading span { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-heading h2 { margin: 3px 0 0; color: var(--ink); font: 700 23px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.6px; }
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.city-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: rgba(255,255,255,.85); text-align: left; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.city-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(29,50,91,.09); }
.city-flag { display: flex; width: 42px; height: 42px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 13px; background: #f1f4f9; font-size: 22px; }
.city-card > span:nth-child(2) { min-width: 0; flex: 1; }
.city-card strong, .city-card small { display: block; }
.city-card strong { font-size: 14px; }
.city-card small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.itinerary-page { min-height: calc(100dvh - 60px); padding: 16px; }
.trip-header { max-width: 880px; margin: 0 auto 12px; display: flex; align-items: center; gap: 13px; }
.icon-button { width: 39px; height: 39px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 13px; background: white; }
.trip-header > div { flex: 1; min-width: 0; }
.trip-header span { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.trip-header h1 { margin: 1px 0; overflow: hidden; color: var(--ink); font: 700 23px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.7px; text-overflow: ellipsis; white-space: nowrap; }
.trip-header p { margin: 0; color: var(--muted); font-size: 12px; }
.trip-spark { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 13px; color: var(--blue) !important; background: var(--blue-soft); }
.day-tabs { max-width: 880px; display: flex; gap: 6px; margin: 0 auto 12px; overflow-x: auto; scrollbar-width: none; }
.day-tabs button { height: 35px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px; color: #6f7d94; background: white; cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 600; }
.day-tabs button.active { border-color: var(--blue); color: white; background: var(--blue); }
.map-shell { position: relative; max-width: 880px; height: min(52vh, 530px); min-height: 350px; margin: 0 auto; overflow: hidden; border: 1px solid #dbe2ee; border-radius: 23px; background: #dfe8e9; box-shadow: var(--shadow); }
.map-canvas { width: 100%; height: 100%; }
.map-locate { position: absolute; z-index: 450; right: 12px; top: 12px; display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 13px; color: var(--blue); background: white; box-shadow: 0 5px 18px rgba(20,35,64,.2); cursor: pointer; }
.map-notice { position: absolute; z-index: 450; top: 64px; right: 12px; max-width: 210px; padding: 8px 10px; border-radius: 9px; color: #8d3439; background: rgba(255,255,255,.95); box-shadow: 0 5px 18px rgba(20,35,64,.16); font-size: 11px; }
.vai-map-marker-wrap { background: transparent; border: 0; }
.vai-map-marker { position: relative; display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 3px solid white; border-radius: 50% 50% 50% 10px; transform: rotate(-45deg); color: white; background: var(--marker-color); box-shadow: 0 4px 12px rgba(14,31,67,.35); font-size: 12px; font-weight: 800; }
.vai-map-marker b { transform: rotate(45deg); font-weight: 800; }
.route-list { max-width: 880px; margin: 14px auto 0; padding: 15px; border: 1px solid var(--line); border-radius: 21px; background: white; }
.route-list-heading, .route-list-heading > div { display: flex; align-items: center; }
.route-list-heading { justify-content: space-between; padding: 1px 3px 11px; }
.route-list-heading > div { gap: 8px; color: var(--ink); }
.route-list-heading > div svg { color: var(--blue); }
.route-list-heading > span { color: #8290a7; font-size: 11px; }
.day-route h3 { margin: 8px 0 5px; padding: 5px 8px; color: var(--blue); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.poi-row { position: relative; width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 9px 5px; border: 0; border-top: 1px solid #edf0f5; background: transparent; text-align: left; cursor: pointer; }
.poi-index { display: flex; width: 32px; height: 32px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 800; }
.poi-copy { flex: 1; min-width: 0; }
.poi-copy strong, .poi-copy small { display: block; }
.poi-copy strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.poi-copy small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.modal-layer { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)); background: rgba(14,24,46,.42); backdrop-filter: blur(6px); animation: fade-in .18s ease-out; }
@keyframes fade-in { from { opacity: 0; } }
.poi-sheet { position: relative; width: min(560px, 100%); max-height: 88dvh; overflow: auto; border-radius: 27px 27px 20px 20px; background: white; box-shadow: 0 -10px 50px rgba(14,29,58,.23); animation: slide-up .25s ease-out; }
@keyframes slide-up { from { transform: translateY(25px); opacity: .7; } }
.sheet-handle { width: 38px; height: 4px; margin: 8px auto; border-radius: 2px; background: #d9dee8; }
.sheet-close { position: absolute; z-index: 2; right: 13px; top: 13px; display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 3px 12px rgba(20,35,64,.15); cursor: pointer; }
.poi-photo { display: block; width: 100%; height: 230px; object-fit: cover; }
.poi-photo-placeholder { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8793a7; background: linear-gradient(135deg, #e9eff9, #f4f6fa); }
.poi-sheet-content { padding: 20px; }
.poi-sheet-content h2 { margin: 6px 0 8px; color: var(--ink); font: 700 25px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.7px; }
.poi-sheet-content > p { color: #5f6d84; font-size: 14px; line-height: 1.55; }
.poi-address { display: flex; align-items: flex-start; gap: 7px; color: #78869d !important; font-size: 12px !important; }
.poi-address svg { flex: 0 0 auto; color: var(--blue); }
.poi-actions { display: flex; gap: 9px; margin-top: 18px; }
.primary-button, .secondary-button { min-height: 45px; padding: 0 16px; }
.primary-button { color: white; background: var(--blue); }
.secondary-button { border: 1px solid #dce3ef; color: #475671; background: white; }
.poi-actions .primary-button { flex: 1; }
.photo-credit { display: block; margin-top: 10px; color: #9aa4b5; font-size: 9px; }

.content-page { max-width: 820px; min-height: calc(100dvh - 150px); margin: 0 auto; padding: 34px 16px 30px; }
.page-title { margin-bottom: 25px; }
.page-title h1 { margin: 7px 0 6px; color: var(--ink); font: 800 34px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -1.3px; }
.page-title p { color: var(--muted); font-size: 14px; }
.account-nudge { width: 100%; display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 15px; border: 1px solid #cddcff; border-radius: 17px; color: var(--blue); background: #edf3ff; text-align: left; cursor: pointer; }
.account-nudge > span { flex: 1; }
.account-nudge strong, .account-nudge small { display: block; }
.account-nudge strong { color: #1b438f; font-size: 13px; }
.account-nudge small { margin-top: 2px; color: #6480b9; font-size: 11px; line-height: 1.35; }
.trip-grid { display: grid; gap: 11px; }
.saved-trip-card { width: 100%; min-height: 101px; display: flex; align-items: stretch; gap: 14px; padding: 0 15px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 25px rgba(25,44,83,.06); text-align: left; cursor: pointer; }
.saved-trip-art { width: 86px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--blue); background: linear-gradient(145deg, #dce7ff, #f3f6fc); }
.saved-trip-art small { color: #5a78b3; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.saved-trip-copy { flex: 1; min-width: 0; align-self: center; }
.saved-trip-copy > small { display: block; color: #8a96aa; font-size: 10px; }
.saved-trip-copy > strong { display: block; margin: 4px 0 7px; overflow: hidden; color: var(--ink); font: 700 17px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.saved-trip-copy > span { display: flex; align-items: center; gap: 5px; color: #69778f; font-size: 11px; }
.saved-trip-copy i { color: #bdc4cf; font-style: normal; }
.empty-state { display: flex; min-height: 320px; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px dashed #d9e0ec; border-radius: 23px; color: #8b96a9; text-align: center; background: rgba(255,255,255,.55); }
.empty-icon { display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 18px; color: var(--blue); background: var(--blue-soft); }
.empty-state h2 { margin: 17px 0 5px; color: var(--ink); font: 700 19px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.empty-state p { max-width: 300px; color: var(--muted); font-size: 13px; }
.loading-rows { display: grid; gap: 11px; }
.loading-rows span { display: block; height: 101px; border-radius: 18px; background: linear-gradient(90deg, #eef1f5, #f8f9fb, #eef1f5); background-size: 200%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.settings-group { margin-bottom: 22px; }
.settings-group h2 { margin: 0 0 8px 4px; color: #7a879d; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.settings-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 7px 20px rgba(25,44,83,.04); }
.account-summary { min-height: 78px; display: flex; align-items: center; gap: 13px; padding: 14px; }
.account-avatar { display: flex; width: 45px; height: 45px; align-items: center; justify-content: center; border-radius: 15px; color: var(--blue); background: var(--blue-soft); }
.account-summary > span:nth-child(2) { flex: 1; min-width: 0; }
.account-summary strong, .account-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary strong { color: var(--ink); font-size: 14px; }
.account-summary small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.account-summary em { padding: 5px 9px; border-radius: 9px; color: #4e6ba6; background: #edf3ff; font-size: 9px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.settings-row { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 11px 14px; border: 0; border-top: 1px solid #edf0f4; color: #52617a; background: white; text-align: left; cursor: pointer; }
.settings-row > svg:first-child { width: 19px; flex: 0 0 auto; color: #5b7cc1; }
.settings-row > span { flex: 1; min-width: 0; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { color: var(--ink); font-size: 13px; }
.settings-row small { margin-top: 2px; color: #8b96aa; font-size: 10px; }
.settings-row > svg:last-child { width: 17px; color: #a6afbe; }
.settings-row.static { cursor: default; }
.danger-button { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #f2c9cc; border-radius: 15px; color: #b44349; background: #fff2f3; cursor: pointer; font-weight: 600; }

.legal-layer { align-items: center; }
.legal-modal { width: min(620px, 100%); max-height: 88dvh; padding: 22px; overflow: auto; border-radius: 23px; background: white; }
.legal-head { display: flex; align-items: center; gap: 12px; }
.legal-head .brand-mark { width: 43px; height: 43px; flex: 0 0 auto; }
.legal-head > div { flex: 1; }
.legal-head small { color: var(--blue); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.legal-head h2 { margin: 2px 0 0; color: var(--ink); font: 700 22px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.legal-head button { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #f1f3f7; cursor: pointer; }
.legal-updated { margin: 20px 0; padding: 10px 12px; border-radius: 10px; color: #6e7d95; background: #f4f6fa; font-size: 11px; }
.legal-modal section { margin-bottom: 20px; }
.legal-modal section h3 { margin-bottom: 6px; color: var(--ink); font-size: 14px; }
.legal-modal section p { margin: 0; color: #617089; font-size: 12px; line-height: 1.65; }
.legal-done { width: 100%; }

.auth-layer { align-items: center; }
.auth-modal { position: relative; width: min(440px, 100%); padding: 28px 23px 22px; border-radius: 25px; background: white; box-shadow: 0 25px 70px rgba(12,28,61,.28); }
.auth-modal > .brand { margin-bottom: 25px; }
.auth-heading h2 { margin: 0 0 7px; color: var(--ink); font: 800 28px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -1px; }
.auth-heading p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-modal form { display: grid; gap: 14px; margin-top: 20px; }
.auth-modal label { display: grid; gap: 6px; color: #475570; font-size: 12px; font-weight: 700; }
.auth-modal input { width: 100%; height: 49px; padding: 0 13px; border: 1.5px solid #dce2ed; border-radius: 13px; outline: none; color: var(--ink); background: #fbfcfe; font-weight: 500; }
.auth-modal input:focus { border-color: #6b96f1; box-shadow: 0 0 0 4px rgba(54,111,235,.09); }
.auth-submit { width: 100%; margin-top: 3px; }
.auth-switch { width: 100%; margin-top: 16px; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.auth-fineprint { margin: 18px 0 0; color: #9aa4b5; text-align: center; font-size: 9.5px; }

@media (min-width: 720px) {
  .app-frame { padding-bottom: 24px; }
  .topbar { padding-left: 30px; padding-right: 30px; }
  .bottom-nav { top: calc(env(safe-area-inset-top) + 7px); bottom: auto; left: 50%; width: 310px; height: 47px; padding: 4px; transform: translateX(-50%); border-radius: 17px; box-shadow: none; }
  .bottom-nav button { flex-direction: row; gap: 6px; border-radius: 13px; }
  .bottom-nav button span { font-size: 11px; }
  .planner-page { padding-top: 57px; }
  .planner-card { padding: 25px; }
  .itinerary-page { padding: 24px; }
  .route-list { padding: 18px 22px; }
  .modal-layer { align-items: center; }
  .poi-sheet { border-radius: 27px; }
  .trip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .topbar-tagline { display: none; }
  .topbar .avatar-button { margin-left: auto; }
  .hero h1 { letter-spacing: -1.8px; }
  .hero p { padding: 0 8px; }
  .city-grid { grid-template-columns: 1fr; }
  .planner-card { padding: 16px; border-radius: 21px; }
  .duration-options { gap: 2px; }
  .segmented button { font-size: 12px; }
  .map-shell { height: 48vh; min-height: 320px; border-radius: 19px; }
  .poi-photo { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
