/* Rubik v31, self-hosted under the SIL Open Font License 1.1. */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/static/fonts/rubik-v31-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/static/fonts/rubik-v31-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/static/fonts/rubik-v31-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --paper: #f5f0e4;
  --paper-deep: #ebe2d1;
  --card: #fffdf7;
  --ink: #183038;
  --muted: #68797c;
  --teal: #0d756e;
  --teal-deep: #0d4c50;
  --orange: #e77b3b;
  --red: #b8503f;
  --line: #d9d3c5;
  --shadow: 0 16px 42px rgba(28, 51, 55, .11);
  --radius: 22px;
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 420ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101a1d;
    --paper-deep: #182528;
    --card: #172629;
    --ink: #f0f5ef;
    --muted: #a8b8b5;
    --teal: #58c4b7;
    --teal-deep: #193d42;
    --orange: #ffad68;
    --red: #ff8e7d;
    --line: #304145;
    --shadow: 0 18px 50px rgba(0, 0, 0, .26);
  }
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; background: radial-gradient(circle at 10% -10%, color-mix(in srgb, var(--teal) 9%, transparent), transparent 34%), radial-gradient(circle at 110% 25%, color-mix(in srgb, var(--orange) 9%, transparent), transparent 28%), var(--paper); background-attachment: fixed; color: var(--ink); font-size: 15px; line-height: 1.48; }
body:has(#appView:not(.hidden)) { overflow: hidden; overscroll-behavior: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 78%, white); outline-offset: 3px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: var(--teal-deep); color: #fff; font: 800 30px/1 Georgia, serif; transform: rotate(-4deg); box-shadow: var(--shadow); animation: boot-float 1.6s ease-in-out infinite; }
.boot p { margin: 0; animation: boot-copy 1.6s ease-in-out infinite; }

.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--orange) 20%, transparent) 0 17%, transparent 18%), linear-gradient(160deg, var(--paper), var(--paper-deep)); }
.login-card { position: relative; width: min(100%, 460px); padding: 32px 24px 26px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.login-shell:not(.is-ready) .login-card { opacity: 0; transform: translateY(18px) scale(.985); }
.login-shell.is-ready .login-card { animation: view-rise var(--motion-slow) var(--ease-out) both; }
.login-card::after { content: ""; position: absolute; inset: auto -45px -65px auto; width: 180px; aspect-ratio: 1; border: 18px double color-mix(in srgb, var(--teal) 20%, transparent); border-radius: 50%; pointer-events: none; }
.postcard-mark { position: absolute; top: 22px; right: 20px; width: 72px; height: 72px; display: grid; place-content: center; text-align: center; color: var(--orange); border: 2px solid currentColor; border-radius: 50%; transform: rotate(8deg); font-size: 12px; line-height: 1.1; }
.postcard-mark span { font: 800 22px/1 Georgia, serif; }
.postcard-mark b { letter-spacing: .08em; }
.eyebrow { margin: 0 0 6px; color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.login-card h1 { max-width: 280px; margin: 8px 0 18px; font: 800 clamp(44px, 15vw, 68px)/.88 "New York", ui-serif, Georgia, serif; letter-spacing: -.055em; }
.login-card h1 em, .hero h1 em { color: var(--orange); font-weight: inherit; }
.login-copy { max-width: 330px; margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.login-trip { display: grid; grid-template-columns: 1fr; margin: 0 0 24px; }
.login-trip div { padding: 12px; background: color-mix(in srgb, var(--teal) 8%, var(--card)); border: 1px solid var(--line); border-radius: 15px; }
.login-trip dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.login-trip dd { margin: 2px 0 0; font-weight: 800; }
.telegram-button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: #229ed9; color: #fff; font-weight: 850; text-decoration: none; box-shadow: 0 10px 24px rgba(34, 158, 217, .24); transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) ease; }
.telegram-button svg { width: 23px; fill: currentColor; }
.telegram-button:active { transform: scale(.975); box-shadow: 0 5px 14px rgba(34, 158, 217, .2); }
.privacy-note { max-width: 330px; margin: 15px auto 0; color: var(--muted); font-size: 12px; text-align: center; }
.text-button { min-height: 44px; width: 100%; margin-top: 8px; border: 0; background: transparent; color: var(--teal); font-weight: 800; }

.app-shell { --pull-progress: 0; --pull-offset: 0px; position: absolute; top: 0; right: 0; left: 0; height: 100vh; height: 100lvh; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-bottom: calc(8px + env(safe-area-inset-bottom)); overflow: hidden; }
.page-wrap, .install-dialog-scroll, .weather-strip { -webkit-overflow-scrolling: touch; }
.app-shell .page-wrap { transition: transform 220ms var(--ease-out); }
.app-shell.is-pulling .page-wrap, .app-shell.is-pull-ready .page-wrap { transition: none; transform: translate3d(0, var(--pull-offset), 0); will-change: transform; }
.app-shell.is-refreshing .page-wrap { transform: translate3d(0, 32px, 0); will-change: transform; }
.app-shell.is-keyboard-visible { grid-template-rows: minmax(0, 1fr); padding-bottom: 0; }
.app-shell.is-keyboard-visible .bottom-nav { display: none; }
.pull-refresh-indicator { position: absolute; z-index: 80; top: calc(12px + env(safe-area-inset-top)); left: 50%; width: 28px; height: 28px; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translate3d(-50%, -8px, 0) scale(.86); transition: opacity 120ms ease, transform 220ms var(--ease-out); }
.app-shell.is-pulling .pull-refresh-indicator, .app-shell.is-pull-ready .pull-refresh-indicator, .app-shell.is-refreshing .pull-refresh-indicator { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }
.pull-refresh-ring { position: relative; width: 26px; height: 26px; display: block; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--pull-progress) * 300deg), color-mix(in srgb, var(--teal) 16%, transparent) 0deg); box-shadow: 0 4px 14px rgba(13, 76, 80, .24); }
.pull-refresh-ring::after { content: ""; position: absolute; inset: 3px; border-radius: inherit; background: var(--paper); }
.pull-refresh-ring span { position: absolute; z-index: 1; inset: 1px; border: 2px solid transparent; border-top-color: var(--teal); border-right-color: color-mix(in srgb, var(--teal) 55%, transparent); border-radius: inherit; opacity: 0; }
.app-shell.is-pull-ready .pull-refresh-ring { animation: pull-ready-pop 360ms var(--ease-spring); }
.app-shell.is-refreshing .pull-refresh-ring { background: color-mix(in srgb, var(--teal) 14%, transparent); }
.app-shell.is-refreshing .pull-refresh-ring span { opacity: 1; animation: pull-refresh-spin 720ms linear infinite; }
.app-shell:not(.is-ready) .hero,
.app-shell:not(.is-ready) .progress-card,
.app-shell:not(.is-ready) .tab-panel.active { opacity: 0; transform: translateY(16px); }
.app-shell.is-ready .hero { animation: view-rise var(--motion-slow) var(--ease-out) both; }
.app-shell.is-ready .progress-card { animation: view-rise var(--motion-slow) 70ms var(--ease-out) both; }
.app-shell.is-ready .tab-panel.active { animation: panel-enter var(--motion-base) var(--ease-out) both; }
.page-wrap { width: min(100%, 760px); min-height: 0; margin: 0 auto; padding: calc(58px + env(safe-area-inset-top)) 12px 12px; overflow-y: auto; overscroll-behavior-y: contain; scroll-behavior: smooth; }
.top-status { position: absolute; z-index: 40; top: calc(10px + env(safe-area-inset-top)); left: 50%; width: min(calc(100% - 24px), 736px); transform: translateX(-50%); display: flex; justify-content: flex-end; align-items: center; gap: 8px; pointer-events: none; }
.network-badge { padding: 7px 10px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 850; box-shadow: var(--shadow); animation: badge-enter var(--motion-base) var(--ease-spring) both; }
.account-button { pointer-events: auto; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--card) 60%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--teal); backdrop-filter: blur(16px); box-shadow: 0 6px 20px rgba(20, 45, 49, .1); font-weight: 900; cursor: pointer; transition: transform var(--motion-fast) var(--ease-out); }
.account-button:active { transform: scale(.92); }

.hero { position: relative; overflow: hidden; padding: 18px 14px 14px; background: linear-gradient(180deg, rgba(6, 24, 30, .43), rgba(7, 33, 38, .7) 54%, rgba(6, 34, 38, .88)), linear-gradient(90deg, rgba(7, 29, 34, .5), transparent 78%), url("/static/images/kalkan-hero.webp") 58% 50% / cover no-repeat; color: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; z-index: 3; inset: 0; border: 1px solid rgba(255,255,255,.16); border-radius: inherit; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; padding-right: 50px; }
.hero .eyebrow { margin-bottom: 3px; color: rgba(255,255,255,.72); font-size: 9px; }
.hero h1 { margin: 0 0 3px; font: 800 clamp(28px, 8vw, 38px)/.98 "New York", ui-serif, Georgia, serif; letter-spacing: -.045em; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.hero-sub { margin: 0; color: rgba(255,255,255,.88); font-size: 13px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.sun-stamp { position: absolute; z-index: 2; top: 12px; right: 12px; width: 46px; height: 46px; display: grid; place-content: center; text-align: center; color: #ffd09d; border: 1.5px solid currentColor; border-radius: 50%; transform: rotate(9deg); font-size: 8px; }
.app-shell.is-ready .sun-stamp { animation: stamp-in 520ms 150ms var(--ease-spring) both; }
.sun-stamp span { font: 800 15px/1 Georgia, serif; }
.trip-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 12px; }
.trip-fact { min-width: 0; padding: 7px 8px; background: rgba(8, 42, 46, .52); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.trip-fact span, .trip-fact small { display: block; color: rgba(255,255,255,.76); font-size: 9px; line-height: 1.25; }
.trip-fact b { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.3; }
.hero-credit { position: relative; z-index: 2; display: block; width: fit-content; margin: 6px 0 0 auto; color: rgba(255,255,255,.58); font-size: 7px; line-height: 1; white-space: nowrap; text-decoration: none; }
.hero-credit:focus-visible { border-radius: 3px; }

.progress-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 12px 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.progress-ring { width: 74px; height: 74px; display: grid; place-items: center; position: relative; }
.progress-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 4; }
.progress-track { stroke: var(--line); }
.progress-circle { stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset var(--motion-slow) var(--ease-out); }
.progress-ring span { position: relative; z-index: 1; font: 800 17px/1 "Rubik", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -.04em; }
.progress-ring.is-updating { animation: progress-bump var(--motion-base) var(--ease-spring); }
.progress-copy h2 { margin: 0; font-size: 18px; }
.progress-copy p:last-child { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.progress-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.outline-button { min-height: 44px; padding: 9px 12px; border-radius: 12px; cursor: pointer; transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease; }
.outline-button { border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 750; }
.outline-button[aria-pressed="true"] { background: color-mix(in srgb, var(--teal) 12%, var(--card)); border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); color: var(--teal); }
.outline-button:active { transform: scale(.96); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.paper-card { margin: 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
details.paper-card > summary { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details.paper-card > summary::after { content: ""; width: 9px; height: 9px; flex: 0 0 auto; margin: -4px 5px 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; color: var(--muted); transform: rotate(45deg); transition: transform var(--motion-base) var(--ease-spring), color var(--motion-fast) ease; }
details[open].paper-card > summary::after { color: var(--teal); transform: translateY(4px) rotate(225deg); }
.section-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--teal) 11%, var(--card)); color: var(--teal); }
.section-icon .ui-icon { width: 22px; height: 22px; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.section-heading h2, details summary h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.section-heading .eyebrow, details summary .eyebrow { margin-bottom: 2px; font-size: 9px; }
.items-list { border-top: 1px solid var(--line); padding: 4px 10px 10px; }
.items-list:empty { display: none; }
.check-item { min-height: 54px; display: flex; align-items: flex-start; gap: 4px; padding: 10px 4px; border-bottom: 1px dashed var(--line); transform-origin: left center; transition: opacity var(--motion-base) ease, transform var(--motion-base) var(--ease-out), background-color var(--motion-fast) ease; }
.check-item:last-child { border-bottom: 0; }
.check-item.hidden-item { display: none; }
.check-toggle { flex: 0 0 auto; display: flex; align-items: flex-start; margin-right: 7px; cursor: pointer; }
.check-item > input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; margin-top: 1px; border: 2px solid var(--muted); border-radius: 8px; transition: background .16s, border-color .16s, transform .16s; }
.check-item > input:focus-visible + .check-toggle .check-box { outline: 3px solid color-mix(in srgb, var(--orange) 78%, white); outline-offset: 3px; }
.check-item > input:checked + .check-toggle .check-box { background: var(--teal); border-color: var(--teal); transform: rotate(-3deg); }
.check-item > input:checked + .check-toggle .check-box::after { content: "✓"; color: #fff; font-weight: 950; }
.check-item.is-completing .check-box { animation: check-pop var(--motion-slow) var(--ease-spring); }
.check-item.is-completing .check-copy { animation: copy-settle var(--motion-base) var(--ease-out); }
.check-item.is-added { animation: item-in var(--motion-slow) var(--ease-out) both; }
.paper-card.is-added-section { animation: item-in var(--motion-slow) var(--ease-out) both; }
.reorder-handle { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; margin: -7px 0 -7px -10px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.reorder-handle .ui-icon { width: 20px; height: 20px; }
.reorder-handle:hover { color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.reorder-handle:active, .reorder-handle[aria-pressed="true"] { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); cursor: grabbing; }
.reorder-handle:disabled { opacity: .28; cursor: default; }
.check-item.is-drag-source { border: 1px dashed color-mix(in srgb, var(--teal) 58%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--teal) 8%, var(--card)); }
.check-item.is-drag-source > * { visibility: hidden; }
.check-item.is-dragging { position: fixed; z-index: 70; margin: 0; border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line)); border-radius: 14px; background: var(--card); box-shadow: 0 18px 48px rgba(6, 35, 38, .28); pointer-events: none; transform: translate3d(0, var(--drag-y, 0), 0) scale(1.015); transition: none; }
body.is-reordering { cursor: grabbing; user-select: none; -webkit-user-select: none; overscroll-behavior-y: contain; }
.check-copy { min-width: 0; flex: 1; cursor: pointer; }
.check-copy b { display: block; font-size: 15px; }
.check-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.check-item > input:checked ~ .check-copy b { color: var(--muted); text-decoration: line-through; }
.inline-edit-form { min-width: 0; flex: 1; margin: -5px 0; }
.inline-edit-input { width: 100%; min-width: 0; min-height: 44px; padding: 6px 9px; border: 1px solid var(--teal); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 700; }
.check-item.is-editing { align-items: center; background: color-mix(in srgb, var(--teal) 6%, transparent); }
.check-item.is-editing .item-action, .check-item.is-editing .reorder-handle { display: none; }
.check-item.is-saving .inline-edit-input { opacity: .65; }
.item-tag { display: inline-block; margin-left: 5px; padding: 2px 6px; border-radius: 99px; background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); font-size: 10px; font-weight: 850; text-decoration: none; }
.item-action { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; margin: -7px 0; padding: 0; border: 0; background: transparent; color: var(--muted); border-radius: 12px; cursor: pointer; }
.item-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edit-item:hover { color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }
.delete-item:hover { color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.delete-item { margin-right: -4px; }
.item-action:active { transform: scale(.92); }
.item-action:disabled { opacity: .35; cursor: default; }
.custom-card { padding: 15px; }
.custom-card .items-list { margin-top: 13px; padding: 0; border: 0; }
.custom-form { display: flex; gap: 8px; margin-top: 12px; scroll-margin-bottom: 120px; }
.section-item-form { margin: 0; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.custom-form input { min-width: 0; min-height: 48px; flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); }
.custom-form button { min-height: 48px; padding: 10px 14px; border: 0; border-radius: 13px; background: var(--teal); color: #fff; font-weight: 850; cursor: pointer; transition: transform var(--motion-fast) var(--ease-out); }
.custom-form button:active { transform: scale(.95); }
.custom-form button:disabled, .custom-form input:disabled { opacity: .55; }
.field-hint { margin: 8px 2px 0; color: var(--orange); font-size: 12px; }

.info-card { padding: 20px 16px; overflow: hidden; }
.info-card > h2 { margin: 2px 0 12px; font: 800 30px/1 "New York", ui-serif, Georgia, serif; letter-spacing: -.03em; }
.info-card h3 { margin: 22px 0 7px; font-size: 17px; }
.info-card p { color: var(--muted); }
.lead { font-size: 17px; }
.recommend, .note-box { margin: 16px 0; padding: 14px; border-radius: 15px; }
.recommend { background: color-mix(in srgb, var(--teal) 9%, var(--card)); border-left: 4px solid var(--teal); }
.note-box { background: color-mix(in srgb, var(--orange) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--orange) 25%, var(--line)); }
.recommend p, .note-box p { margin: 3px 0 0; }
.steps { padding-left: 24px; color: var(--muted); }
.steps li { margin: 8px 0; padding-left: 4px; }
.operator { display: grid; gap: 7px; padding: 18px 0; border-top: 1px solid var(--line); }
.operator h3 { margin: 1px 0 0; }
.operator p { margin: 0; }
.operator-label { color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { color: var(--orange); font-size: 18px; }
.price-rubles { color: var(--muted); font-size: 14px; font-weight: 700; }
.info-card .price-meta { color: var(--muted); font-size: 11px; }
.price-meta a { color: var(--teal); font-weight: 750; text-decoration: none; }
.action-link { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; padding: 9px 13px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; text-decoration: none; transition: transform var(--motion-fast) var(--ease-out), filter var(--motion-fast) ease; }
.action-link:active { transform: scale(.96); filter: brightness(.94); }
.action-link.secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ranked-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line); }
.ranked-list > div > span { color: var(--orange); font: 800 20px/1 "New York", ui-serif, Georgia, serif; }
.ranked-list h3, .ranked-list p { margin: 0; }
.ranked-list p { margin-top: 3px; }
.contacts { display: grid; gap: 8px; font-style: normal; }
.contacts div { display: flex; flex-direction: column; padding: 12px; background: var(--paper); border-radius: 13px; }
.contacts span { color: var(--muted); font-size: 12px; }
.contacts a { min-height: 36px; display: flex; align-items: center; color: var(--teal); font-weight: 850; }
.weather-live { position: relative; overflow: hidden; margin: 16px 0 20px; padding: 18px; border-radius: 20px; background: linear-gradient(145deg, #0f6d66, #103e4a); color: #fff; }
.weather-live::after { content: ""; position: absolute; top: -78px; right: -64px; width: 180px; aspect-ratio: 1; border: 18px double rgba(255,255,255,.08); border-radius: 50%; pointer-events: none; }
.weather-current { position: relative; z-index: 1; min-height: 112px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.weather-kicker { display: block; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.weather-current strong { display: block; margin: 5px 0 0; font: 850 clamp(50px, 17vw, 68px)/.9 "Rubik", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -.065em; }
.info-card .weather-current p { margin: 8px 0 0; color: rgba(255,255,255,.86); font-weight: 750; }
.weather-sun { width: 44px; height: 44px; display: grid; place-items: center; color: #ffd09d; border: 1px solid rgba(255,208,157,.64); border-radius: 50%; font-size: 21px; }
.weather-sun .ui-icon { width: 23px; height: 23px; }
.weather-facts { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.17); }
.weather-facts div { min-width: 0; padding-right: 10px; }
.weather-facts div + div { padding-left: 14px; padding-right: 0; border-left: 1px solid rgba(255,255,255,.17); }
.weather-facts dt { color: rgba(255,255,255,.64); font-size: 11px; }
.weather-facts dd { margin: 2px 0 1px; color: #fff; font-size: clamp(18px, 6vw, 24px); font-weight: 850; letter-spacing: -.035em; white-space: nowrap; }
.weather-facts div:last-child dd { color: #ffd09d; }
.weather-facts small { display: block; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 400; letter-spacing: normal; line-height: 1.3; white-space: normal; }
.info-card .weather-status { position: relative; z-index: 1; min-height: 18px; margin: 14px 0 0; color: rgba(255,255,255,.62); font-size: 11px; }
.weather-retry { position: relative; z-index: 1; min-height: 44px; margin-top: 10px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.34); border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-weight: 800; cursor: pointer; }
.weather-forecast-title { margin-top: 0 !important; }
.weather-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 7px; margin: 12px -16px 8px; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: thin; }
.weather-strip div { display: grid; justify-items: center; gap: 2px; padding: 12px 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.weather-strip span, .weather-strip small { color: var(--muted); font-size: 11px; }
.weather-strip b { color: var(--orange); font-size: 22px; }
.weather-strip.is-loading { opacity: .58; }
.weather-source { min-height: 44px; display: inline-flex; align-items: center; color: var(--teal); font-size: 12px; font-weight: 800; }
.places-card .places-lead { margin: -3px 0 18px; font-size: 15px; }
.place-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; gap: 9px; margin: 0 -16px 14px; padding: 0 16px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: 16px; scroll-snap-type: inline mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.place-carousel::-webkit-scrollbar { display: none; }
.place-slide { position: relative; min-width: 0; list-style: none; scroll-snap-align: start; }
.place-slide button { position: relative; width: 100%; aspect-ratio: 16 / 9; display: block; overflow: hidden; padding: 0; border: 1px solid color-mix(in srgb, white 18%, var(--line)); border-radius: 17px; background: var(--paper-deep); color: #fff; text-align: left; box-shadow: 0 9px 22px rgba(14, 44, 48, .13); cursor: pointer; transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease; }
.place-slide button::after { content: ""; position: absolute; inset: 34% 0 0; background: linear-gradient(transparent, rgba(4, 24, 29, .88)); pointer-events: none; }
.place-slide button:active { transform: scale(.985); }
.place-slide button img { width: 100%; height: 100%; display: block; object-fit: cover; }
.place-slide-caption { position: absolute; z-index: 1; right: 13px; bottom: 12px; left: 13px; display: grid; gap: 3px; text-shadow: 0 1px 8px rgba(0,0,0,.42); }
.place-slide-caption strong { display: -webkit-box; overflow: hidden; font: 800 19px/1.08 "New York", ui-serif, Georgia, serif; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.place-slide-caption small { color: rgba(255,255,255,.82); font-size: 10px; font-weight: 750; }
.place-slide-credit { position: absolute; z-index: 2; top: 7px; right: 7px; min-height: 30px; display: inline-flex; align-items: center; max-width: calc(100% - 14px); padding: 6px 8px; border-radius: 10px; background: rgba(3, 21, 25, .55); color: rgba(255,255,255,.78); font-size: 7px; line-height: 1.2; text-decoration: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.place-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0 0 20px; padding: 5px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.place-filters button { min-width: 0; min-height: 50px; display: grid; place-content: center; gap: 1px; padding: 7px 3px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out); }
.place-filters button span { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; }
.place-filters button small { font-size: 10px; font-weight: 650; }
.place-filters button.active { background: var(--card); color: var(--teal); box-shadow: 0 4px 14px rgba(20, 58, 61, .1), inset 0 0 0 1px color-mix(in srgb, var(--teal) 18%, var(--line)); }
.place-filters button:active { transform: scale(.96); }
.places-origin { min-height: 30px; display: flex; align-items: center; margin: -10px 0 12px !important; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--teal) 8%, transparent); color: var(--teal) !important; font-size: 11px !important; font-weight: 750; line-height: 1.3; }
.places-summary { min-height: 32px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.info-card .places-summary h3 { margin: 0; font-size: 16px; }
.places-summary span { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.places-list.is-filtered { animation: place-filter-in 340ms var(--ease-out) both; }
.place-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 14px; }
.place-card.is-targeted { animation: place-target-flash 900ms var(--ease-out); }
.place-rank { padding-top: 2px; color: var(--orange); font: 800 17px/1 "New York", ui-serif, Georgia, serif; }
.place-copy { min-width: 0; }
.place-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 8px; }
.places-list .place-heading h3 { min-width: 0; flex: 1 1 180px; margin: 0; font-size: 17px; line-height: 1.25; }
.place-tag { flex: 0 0 auto; max-width: 100%; padding: 4px 7px; border-radius: 99px; background: color-mix(in srgb, var(--orange) 11%, transparent); color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.places-list .place-copy p { margin: 6px 0 8px; font-size: 13px; }
.places-list .place-address { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 6px; margin: 10px 0 8px; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.35; }
.place-address > span:first-child { padding-top: 1px; color: var(--teal); }
.place-address .ui-icon { width: 15px; height: 15px; stroke-width: 1.9; }
.place-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 8px; margin: 12px 0 2px; padding: 11px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.place-fact { min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 6px; }
.place-fact-icon { align-self: start; padding-top: 1px; color: var(--teal); }
.place-fact-icon .ui-icon { width: 17px; height: 17px; stroke-width: 1.9; }
.place-fact div { min-width: 0; }
.place-fact dt { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.place-fact dd { margin: 2px 0 0; color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.place-fact-secondary { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.2; }
.place-price-rubles { color: var(--teal); }
.place-price .place-fact-icon, .place-rating .place-fact-icon { color: var(--orange); }
.place-rating dd { color: var(--orange); }
.place-route-button { width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--teal) 9%, transparent); color: var(--teal); font-size: 13px; font-weight: 850; cursor: pointer; transition: background-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out); }
.place-route-button .ui-icon { width: 18px; height: 18px; }
.place-route-button:active { background: color-mix(in srgb, var(--teal) 15%, transparent); transform: scale(.98); }
.source-note { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; }

.bottom-nav { position: relative; z-index: 30; width: min(calc(100% - 18px), 720px); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; translate: 0 var(--nav-viewport-correction, 0px); background: color-mix(in srgb, var(--card) 94%, var(--paper)); border: 1px solid color-mix(in srgb, white 42%, var(--line)); border-radius: 25px; box-shadow: 0 16px 42px rgba(15, 37, 41, .18), inset 0 1px 0 rgba(255,255,255,.46); }
.bottom-nav::before { content: ""; position: absolute; inset: 1px 12px auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); pointer-events: none; }
.bottom-nav button { min-width: 0; min-height: 54px; display: grid; place-items: center; gap: 2px; padding: 4px 1px; border: 0; border-radius: 19px; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; transition: color .18s ease, transform .18s ease; }
.bottom-nav button span { display: block; line-height: 1; transform-origin: center bottom; }
.bottom-nav button span .ui-icon { width: 22px; height: 22px; }
.bottom-nav button.active { color: var(--teal); font-weight: 850; }
.bottom-nav button.active span { animation: nav-icon-pop var(--motion-base) var(--ease-spring); }
.bottom-nav button:active { transform: scale(.96); }

.pwa-update-prompt { position: absolute; z-index: 50; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 430px); min-height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; transform: translateX(-50%); border: 1px solid color-mix(in srgb, white 34%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--ink); box-shadow: 0 16px 42px rgba(15, 37, 41, .22), inset 0 1px 0 rgba(255,255,255,.42); backdrop-filter: saturate(145%) blur(24px); -webkit-backdrop-filter: saturate(145%) blur(24px); animation: update-prompt-in var(--motion-base) var(--ease-out) both; }
.pwa-update-prompt > span { min-width: 0; font-size: 13px; font-weight: 800; line-height: 1.25; }
.pwa-update-prompt button { min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 13px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 850; white-space: nowrap; cursor: pointer; transition: transform var(--motion-fast) var(--ease-out), opacity var(--motion-fast) ease; }
.pwa-update-prompt button .ui-icon { width: 17px; height: 17px; }
.pwa-update-prompt button:active { transform: scale(.96); }
.pwa-update-prompt button:disabled { opacity: .72; cursor: progress; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 430px); padding: 12px 15px; transform: translate(-50%, 20px) scale(.98); opacity: 0; pointer-events: none; border-radius: 14px; background: #17383d; color: #fff; box-shadow: var(--shadow); transition: transform var(--motion-base) var(--ease-out), opacity var(--motion-fast) ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.settings-dialog { position: fixed; inset: auto 0 0; width: min(100%, 500px); max-width: none; height: min(94dvh, 820px); max-height: calc(100dvh - 8px - env(safe-area-inset-top)); margin: 0 auto; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, white 30%, var(--line)); border-bottom: 0; border-radius: 30px 30px 0 0; background: color-mix(in srgb, var(--paper) 96%, transparent); color: var(--ink); box-shadow: 0 -18px 70px rgba(6, 24, 27, .34), inset 0 1px 0 rgba(255,255,255,.42); backdrop-filter: saturate(140%) blur(26px); -webkit-backdrop-filter: saturate(140%) blur(26px); }
.settings-dialog[open] { animation: sheet-in var(--motion-slow) var(--ease-out) both; }
.settings-dialog::backdrop { background: rgba(7, 20, 22, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.settings-dialog[open]::backdrop { animation: backdrop-in var(--motion-base) ease both; }
.settings-sheet { height: 100%; display: grid; grid-template-rows: 16px 54px minmax(0, 1fr); }
.settings-handle { align-self: end; justify-self: center; width: 38px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 38%, transparent); }
.settings-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: 0 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.settings-header h2 { grid-column: 2; grid-row: 1; margin: 0; overflow: hidden; font-size: 17px; font-weight: 850; letter-spacing: -.015em; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.settings-header-button { grid-row: 1; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--teal); cursor: pointer; }
.settings-header-button:first-child { grid-column: 1; }
.settings-header-button:last-child { grid-column: 3; color: var(--muted); }
.settings-header-button .ui-icon { width: 23px; height: 23px; }
.settings-scroll { min-height: 0; padding: 18px 14px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.settings-screen { width: 100%; }
.settings-profile { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 12px; padding: 4px 4px 8px; }
.settings-profile > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--teal-deep); color: #fff; font-size: 21px; font-weight: 900; box-shadow: 0 7px 18px rgba(13, 76, 80, .18); }
.settings-profile strong, .settings-profile small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-profile strong { font-size: 17px; }
.settings-profile small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.settings-group-title { margin: 20px 12px 7px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.settings-group { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 7px 22px rgba(20, 49, 52, .05); }
.settings-group > * + * { border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.settings-row { min-height: 54px; width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 12px; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; text-decoration: none; }
button.settings-row { cursor: pointer; transition: background-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out); }
button.settings-row:active { background: color-mix(in srgb, var(--teal) 8%, transparent); transform: scale(.992); }
.settings-row-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--teal) 11%, transparent); color: var(--teal); }
.settings-row-icon .ui-icon { width: 19px; height: 19px; }
.settings-row-copy { min-width: 0; }
.settings-row-copy strong, .settings-row-copy small { display: block; overflow-wrap: anywhere; }
.settings-row-copy strong { font-size: 13px; line-height: 1.25; }
.settings-row-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.3; }
.settings-chevron { width: 18px; height: 18px; color: color-mix(in srgb, var(--muted) 76%, transparent); }
.settings-select-row select { min-height: 36px; max-width: 130px; padding: 4px 22px 4px 5px; border: 0; background-color: transparent; color: var(--teal); font-size: 11px; font-weight: 800; text-align: right; }
.settings-toggle-row { position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; cursor: pointer; }
.settings-toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.settings-switch { position: relative; width: 48px; height: 28px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 30%, var(--paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 22%, transparent); transition: background-color var(--motion-fast) ease; }
.settings-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(12, 36, 40, .26); transition: transform var(--motion-fast) var(--ease-out); }
.settings-toggle-row input:checked + .settings-switch { background: var(--teal); }
.settings-toggle-row input:checked + .settings-switch::after { transform: translateX(20px); }
.settings-toggle-row input:focus-visible + .settings-switch { outline: 3px solid color-mix(in srgb, var(--orange) 78%, white); outline-offset: 3px; }
.settings-danger { color: var(--red); }
.settings-danger .settings-row-icon { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.settings-lead { margin: 0 4px 16px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.settings-form { display: grid; gap: 14px; }
.settings-form-group { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.settings-form-group > label, .settings-field-grid > label { display: grid; gap: 5px; padding: 10px 12px; color: var(--muted); font-size: 10px; font-weight: 750; }
.settings-form-group > label + label, .settings-field-grid { border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.settings-field-grid { display: grid; grid-template-columns: 1fr 1fr; }
.settings-field-grid > label + label { border-left: 1px solid color-mix(in srgb, var(--line) 72%, transparent); }
.settings-form input { min-width: 0; width: 100%; min-height: 34px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; }
.settings-form input[type="date"] { font-size: 12px; }
.settings-form input:focus { outline: 0; }
.settings-save { position: sticky; bottom: calc(4px + env(safe-area-inset-bottom)); min-height: 50px; width: 100%; padding: 11px 16px; border: 0; border-radius: 16px; background: var(--teal); color: #fff; font-weight: 850; box-shadow: 0 10px 26px rgba(13, 76, 80, .24); cursor: pointer; }
.settings-save:disabled, .settings-row:disabled { opacity: .52; cursor: not-allowed; }
.settings-permission-hint { margin: 0 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.confirm-dialog { width: min(calc(100% - 48px), 320px); max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, white 34%, var(--line)); border-radius: 21px; background: color-mix(in srgb, var(--card) 91%, transparent); color: var(--ink); box-shadow: 0 24px 70px rgba(6, 24, 27, .34), inset 0 1px 0 rgba(255,255,255,.5); backdrop-filter: saturate(145%) blur(28px); -webkit-backdrop-filter: saturate(145%) blur(28px); }
.confirm-dialog[open] { animation: alert-in var(--motion-base) var(--ease-spring) both; }
.confirm-dialog::backdrop { background: rgba(7, 20, 22, .58); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.confirm-dialog[open]::backdrop { animation: backdrop-in var(--motion-base) ease both; }
.confirm-form { display: grid; grid-template-rows: minmax(0, auto) auto; max-height: inherit; }
.confirm-copy { padding: 22px 20px 20px; overflow: auto; text-align: center; }
.confirm-copy h2 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.confirm-copy p { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.4; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.confirm-actions button { min-width: 0; min-height: 50px; padding: 10px 8px; border: 0; background: transparent; color: var(--teal); font-weight: 750; cursor: pointer; transition: background-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out); }
.confirm-actions button + button { border-left: 1px solid var(--line); }
.confirm-actions .confirm-delete { color: var(--red); font-weight: 850; }
.confirm-actions button:active { background: color-mix(in srgb, var(--ink) 8%, transparent); transform: scale(.97); }
.install-dialog { position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); width: auto; max-width: 430px; max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: 0 auto; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, white 30%, var(--line)); border-radius: 30px; background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink); box-shadow: 0 24px 70px rgba(6, 24, 27, .3), inset 0 1px 0 rgba(255,255,255,.42); backdrop-filter: saturate(140%) blur(24px); -webkit-backdrop-filter: saturate(140%) blur(24px); }
.install-dialog[open] { animation: sheet-in var(--motion-slow) var(--ease-out) both; }
.install-dialog::backdrop { background: rgba(7, 20, 22, .58); backdrop-filter: blur(4px); }
.install-dialog[open]::backdrop { animation: backdrop-in var(--motion-base) ease both; }
.install-dialog-scroll { max-height: inherit; padding: 18px 16px 16px; overflow: auto; overscroll-behavior: contain; }
.install-guide-header { display: flex; align-items: center; gap: 11px; min-height: 48px; padding-right: 42px; }
.install-guide-header > img { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; box-shadow: 0 5px 16px rgba(15, 49, 52, .16); }
.install-guide-header .eyebrow { margin: 0 0 2px; font-size: 9px; }
.install-dialog h2 { margin: 0; font: 800 23px/1.05 "New York", ui-serif, Georgia, serif; letter-spacing: -.025em; }
.install-guide-demo { margin: 12px 0 9px; }
.install-guide-stage { position: relative; aspect-ratio: 720 / 397; overflow: hidden; border: 1px solid color-mix(in srgb, var(--teal) 15%, var(--line)); border-radius: 19px; background: #f4f2ea; box-shadow: 0 9px 24px rgba(19, 49, 52, .12); }
.install-guide-stage > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.install-tap-marker { position: absolute; left: var(--tap-x, 85%); top: var(--tap-y, 76%); width: 46px; height: 46px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); background: var(--teal); color: #fff; box-shadow: 0 7px 20px rgba(7, 43, 46, .32); animation: install-tap 1.1s var(--ease-out) infinite; }
.install-tap-marker .ui-icon { width: 25px; height: 25px; }
.install-guide-demo figcaption { margin-top: 7px; color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.install-guide-steps { display: grid; gap: 3px; margin: 0 0 12px; padding-left: 27px; }
.install-guide-steps li { min-height: 33px; padding: 6px 8px; border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 1.35; transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease; }
.install-guide-steps li::marker { color: var(--muted); font-weight: 850; }
.install-guide-steps li.is-active { background: color-mix(in srgb, var(--teal) 10%, transparent); color: var(--ink); }
.install-guide-steps li.is-active::marker { color: var(--teal); }
.install-done-button { width: 100%; min-height: 48px; padding: 10px 16px; border: 0; border-radius: 15px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 850; cursor: pointer; transition: transform var(--motion-fast) var(--ease-out), opacity var(--motion-fast) ease; }
.install-done-button:active { transform: scale(.975); }
.route-dialog { position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); width: auto; max-width: 430px; max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: 0 auto; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, white 30%, var(--line)); border-radius: 30px; background: color-mix(in srgb, var(--card) 94%, transparent); color: var(--ink); box-shadow: 0 24px 70px rgba(6, 24, 27, .32), inset 0 1px 0 rgba(255,255,255,.42); backdrop-filter: saturate(140%) blur(24px); -webkit-backdrop-filter: saturate(140%) blur(24px); }
.route-dialog[open] { animation: sheet-in var(--motion-slow) var(--ease-out) both; }
.route-dialog::backdrop { background: rgba(7, 20, 22, .58); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.route-dialog[open]::backdrop { animation: backdrop-in var(--motion-base) ease both; }
.route-dialog-content { padding: 23px 16px calc(16px + env(safe-area-inset-bottom)); }
.route-dialog-content > .eyebrow { margin-right: 44px; }
.route-dialog h2 { margin: 0 44px 0 0; font: 800 25px/1.08 "New York", ui-serif, Georgia, serif; letter-spacing: -.025em; }
.route-dialog-address { margin: 7px 44px 16px 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.route-options { display: grid; gap: 7px; }
.route-option { min-height: 62px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 11px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--paper) 58%, var(--card)); color: var(--ink); text-decoration: none; transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out); }
.route-option:active { border-color: color-mix(in srgb, var(--teal) 42%, var(--line)); background: color-mix(in srgb, var(--teal) 8%, var(--card)); transform: scale(.985); }
.route-option > span:nth-child(2) { min-width: 0; }
.route-option b, .route-option small { display: block; }
.route-option b { font-size: 14px; line-height: 1.2; }
.route-option small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.3; }
.route-app-mark { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; box-shadow: 0 4px 12px rgba(18, 45, 48, .12); }
.route-app-icon { width: 100%; height: 100%; display: block; object-fit: contain; }
.route-app-google { background: #fff; border: 1px solid #e0e5ea; }
.route-app-google .route-app-icon { width: 29px; height: 29px; }
.route-app-apple { background: #fff; }
.route-app-uber { background: #000; }
.route-app-uber .route-app-icon { width: 36px; height: 36px; }
.route-option-arrow { color: var(--muted); font-size: 28px; font-weight: 300; line-height: 1; text-align: center; }
.dialog-close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--card) 80%, transparent); color: var(--muted); font-size: 28px; cursor: pointer; }
.dialog-close .ui-icon { width: 22px; height: 22px; margin: auto; }

@keyframes boot-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}
@keyframes boot-copy { 0%, 100% { opacity: .52; } 50% { opacity: 1; } }
@keyframes view-rise { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes panel-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(.72) rotate(-10deg); } to { opacity: 1; transform: scale(1) rotate(9deg); } }
@keyframes badge-enter { from { opacity: 0; transform: translateX(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes progress-bump { 0%, 100% { transform: scale(1); } 52% { transform: scale(1.07); } }
@keyframes check-pop { 0% { transform: scale(.72) rotate(0); } 55% { transform: scale(1.16) rotate(-6deg); } 100% { transform: scale(1) rotate(-3deg); } }
@keyframes copy-settle { 0% { transform: translateX(0); } 45% { transform: translateX(4px); } 100% { transform: translateX(0); } }
@keyframes item-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nav-icon-pop { 0% { transform: scale(.78); } 65% { transform: scale(1.14) translateY(-1px); } 100% { transform: scale(1); } }
@keyframes place-filter-in { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes place-target-flash { 0%, 100% { background: transparent; } 28% { background: color-mix(in srgb, var(--teal) 9%, transparent); } }
@keyframes update-prompt-in { from { opacity: 0; transform: translate(-50%, 12px) scale(.98); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes update-spin { to { transform: rotate(360deg); } }
@keyframes alert-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes install-tap { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 44% { transform: translate(-50%, -50%) scale(.86); } 68% { transform: translate(-50%, -50%) scale(1.07); } }
@keyframes pull-ready-pop { 0%, 100% { transform: scale(1); } 52% { transform: scale(1.14); } }
@keyframes pull-refresh-spin { to { transform: rotate(360deg); } }

@media (min-width: 620px) {
  .page-wrap { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 20px 22px 16px; background-position: 58% 48%; }
  .trip-grid { grid-template-columns: repeat(4, 1fr); }
  .progress-card { grid-template-columns: auto 1fr auto; }
  .progress-actions { grid-column: auto; justify-content: flex-end; max-width: 250px; }
  .info-card { padding: 28px; }
  .weather-strip { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

@media (prefers-reduced-transparency: reduce) {
  .account-button, .pwa-update-prompt, .settings-dialog, .confirm-dialog, .install-dialog, .route-dialog { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (display-mode: standalone) {
  .page-wrap { padding-top: calc(48px + env(safe-area-inset-top)); }
}

:root.reduce-motion *, :root.reduce-motion *::before, :root.reduce-motion *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
:root.reduce-motion .check-item.is-dragging { transform: translate3d(0, var(--drag-y, 0), 0); }
:root.reduce-motion .app-shell.is-pulling .page-wrap, :root.reduce-motion .app-shell.is-pull-ready .page-wrap, :root.reduce-motion .app-shell.is-refreshing .page-wrap { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .check-item.is-dragging { transform: translate3d(0, var(--drag-y, 0), 0); }
  .app-shell.is-pulling .page-wrap, .app-shell.is-pull-ready .page-wrap, .app-shell.is-refreshing .page-wrap { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .pwa-update-prompt button:disabled .ui-icon { animation: update-spin 720ms linear infinite; }
}
