@font-face {
  font-family: Nunito; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('./assets/nunito-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;
}
@font-face {
  font-family: Nunito; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('./assets/nunito-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;
}
:root {
  color-scheme: dark;
  --bg: #101929; --surface: #19263c; --surface-2: #1c2d44; --input: #142136;
  --line: #344660; --text: #f6f5eb; --muted: #b1bed0; --subtle: #91a5bc;
  --mint: #aef2bd; --mint-dark: #172f31; --gold: #ffdb84; --danger: #ffb4a7;
  --radius: 24px;
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100dvh; background: radial-gradient(ellipse at 84% 0%, #203452 0%, var(--bg) 52%); color: var(--text); }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button[hidden], [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
a { color: inherit; }
a:hover { color: var(--mint); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(100% - 64px, 1136px); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 82px; border-bottom: 1px solid #ffffff16; }
.brand, .top-actions { display: flex; align-items: center; gap: 10px; }
.brand { font-size: 21px; font-weight: 900; letter-spacing: -.038em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #254744; border: 1px solid #4f7868; }
.brand-mark svg { width: 29px; height: 21px; }
.brand-q, .accent { color: var(--mint); }
.top-actions { gap: 8px; }
.icon-button, .quiet-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #19283d; color: var(--text); font-weight: 850; }
.icon-button { width: 42px; padding: 0; flex: 0 0 auto; }
.quiet-button { padding: 0 13px; font-size: 13px; }
.icon-button:hover:not(:disabled), .quiet-button:hover:not(:disabled) { background: #2c405b; border-color: #526b85; }
.lang-button .icon { width: 16px; height: 16px; }
.footer { display: flex; gap: 9px 15px; flex-wrap: wrap; justify-content: center; align-items: center; padding: 24px 0 30px; color: var(--subtle); font-size: 12px; font-weight: 700; }
.footer a { text-underline-offset: 3px; }
.footer .separator { width: 4px; height: 4px; border-radius: 50%; background: #75849b; }
.splash { min-height: 65vh; display: grid; place-items: center; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { display: flex; align-items: center; gap: 8px; font-weight: 900; color: var(--mint); font-size: 12px; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow .icon { width: 17px; height: 17px; }
.heading { font-size: clamp(40px, 5.2vw, 70px); line-height: .99; font-weight: 900; letter-spacing: -.067em; text-wrap: balance; }
.lead { color: var(--muted); font-size: 17px; font-weight: 700; line-height: 1.46; max-width: 40ch; }
.home-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(26px, 5vw, 70px); align-items: start; padding-top: 46px; }
.home-heading { display: grid; gap: 14px; margin-bottom: 25px; }
.planner { border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; background: var(--surface); box-shadow: 0 14px 38px #050b151f; }
.planner-fields { display: grid; gap: 10px; }
.place-choice { display: flex; gap: 12px; text-align: left; align-items: center; width: 100%; min-height: 67px; padding: 9px 12px; border: 1px solid #3b4c64; border-radius: 15px; background: var(--input); }
.place-choice:hover:not(:disabled), .place-result:hover { border-color: #81b3aa; background: #20374b; }
.place-choice .chevron { margin-left: auto; color: var(--subtle); }
.place-symbol { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--mint); background: #203e42; }
.place-symbol.dest { color: var(--gold); background: #443d37; }
.place-symbol .icon { width: 20px; height: 20px; }
.place-picture { display: inline-block; width: 38px; height: 38px; flex: 0 0 auto; vertical-align: middle; pointer-events: none; }
.decorated-place { min-width: 0; }
.picture-edit { font-size: 12px; margin-left: 4px; }
.place-tools { display: flex; flex-wrap: wrap; gap: 0 13px; }
.name-edit { font-size: 12px; }
.name-form { display: grid; gap: 10px; margin-top: 15px; }
.name-form label { font-size: 14px; font-weight: 850; }
.name-form input { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #657e95; border-radius: 12px; background: var(--input); color: var(--text); padding: 10px; font-size: 17px; }
.name-form .quiet-button { width: 100%; }
.stop-picture-button { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 42px; padding: 0; border: 1px dashed #5c7a85; background: #223c48; color: var(--mint); border-radius: 11px; }
.stop-picture-button .icon { width: 19px; height: 19px; }
.picture-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.picture-option { display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 0; padding: 6px 3px; color: var(--text); background: var(--input); border: 2px solid transparent; border-radius: 13px; font-size: 11px; font-weight: 850; line-height: 1.1; }
.picture-option .place-picture { width: 100%; height: auto; aspect-ratio: 1; }
.picture-option span { display: grid; align-items: center; min-height: 2.2em; }
.picture-option:hover, .picture-option[aria-pressed="true"] { border-color: var(--mint); background: #28464b; }
.picture-default { width: 100%; margin-top: 12px; }
.photo-upload { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #17343e; }
.photo-upload .hint { font-size: 12px; line-height: 1.4; }
.photo-upload .message { margin: 0; }
.own-photo-preview { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 850; }
.own-photo-preview .place-picture { width: 58px; height: 58px; }
.past-stops { display: grid; gap: 6px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.past-stops h3 { font-size: 15px; }
.past-stops > .hint { font-size: 12px; }
.past-stop-list { display: grid; gap: 6px; list-style: none; padding: 0; margin: 3px 0 0; }
.past-stop-list > li { display: flex; align-items: center; gap: 7px; }
.past-name-button { width: 38px; min-height: 40px; }
.past-name-button .icon { width: 17px; height: 17px; }
.past-picture-button { display: flex; align-items: center; width: 100%; min-width: 0; flex: 1; gap: 10px; padding: 8px; text-align: left; color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: 13px; }
.past-picture-button:hover { border-color: var(--mint); }
.past-stop-name { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.past-stop-status { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--mint); }
.past-stop-status .icon { width: 12px; height: 12px; }
.past-stop-status.is-skipped { color: var(--gold); }
.past-picture-button > .icon { width: 18px; height: 18px; color: var(--muted); }
.place-text { display: grid; gap: 2px; min-width: 0; }
.field-label { color: var(--subtle); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.place-name { font-weight: 900; line-height: 1.1; font-size: 17px; overflow-wrap: anywhere; }
.place-name.placeholder { color: #c7d1dd; font-weight: 800; }
.place-label { color: var(--muted); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.add-stop { margin-top: 8px; }
.text-button { display: inline-flex; gap: 7px; justify-content: center; align-items: center; border: 0; min-height: 43px; padding: 0 4px; background: none; color: var(--mint); font-weight: 900; text-align: left; border-radius: 8px; }
.text-button:hover { color: #e3ffe9; }
.text-button .icon { width: 18px; height: 18px; }
.text-button.danger { color: var(--danger); }
.stop-list { display: grid; gap: 7px; padding: 0; margin: 10px 0 0; list-style: none; }
.stop-row { min-width: 0; display: flex; gap: 5px; align-items: center; padding: 4px 5px 4px 8px; background: var(--input); border: 1px solid var(--line); border-radius: 13px; }
.stop-row .icon-button { width: 36px; min-height: 37px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.stop-row .icon-button:hover:not(:disabled) { color: var(--text); }
.stop-row .icon-button .icon { width: 16px; height: 16px; }
.stop-select { min-width: 0; flex: 1; border: 0; background: none; display: flex; align-items: center; gap: 8px; padding: 5px 3px; text-align: left; font-weight: 850; line-height: 1.25; }
.stop-select span:last-child { overflow-wrap: anywhere; }
.stop-index { width: 24px; height: 24px; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--mint); background: #254146; font-size: 12px; font-weight: 950; }
.action-button { min-height: 50px; padding: 10px 16px; border-radius: 13px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 900; font-size: 16px; line-height: 1.15; }
.action-button.primary { background: var(--mint); color: #142a27; box-shadow: 0 3px 0 #599a78; }
.action-button.primary:hover:not(:disabled) { background: #c6ffd0; }
.action-button.secondary { border-color: #536784; color: var(--text); background: #263950; }
.action-button.secondary:hover:not(:disabled) { background: #36516a; }
.action-button.warm { background: var(--gold); color: #2d261d; box-shadow: 0 3px 0 #aa7c4c; }
.action-button.warm:hover:not(:disabled) { background: #ffe8ac; }
.action-button.destructive { background: #ffd0c5; color: #4a2427; }
.action-button.full { width: 100%; margin-top: 10px; }
.message { color: var(--danger); font-size: 13px; line-height: 1.4; font-weight: 800; margin-top: 10px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }
.demo-card { overflow: hidden; border: 1px solid #496681; border-radius: 29px; background: #1c2c43; box-shadow: 0 18px 40px #0003; }
.demo-visual { position: relative; isolation: isolate; }
.demo-visual img { display: block; width: 100%; height: auto; aspect-ratio: 640/425; object-fit: cover; }
.demo-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 77%, #10232d50); pointer-events: none; }
.demo-tag { position: absolute; z-index: 1; left: 19px; top: 19px; display: inline-flex; align-items: center; gap: 8px; border-radius: 30px; padding: 8px 11px; background: #102538e8; border: 1px solid #6b958a; color: #e1f6dc; font-size: 11px; font-weight: 900; letter-spacing: .07em; }
.demo-tag span { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.demo-body { display: grid; gap: 12px; padding: 20px; }
.demo-title-row { display: flex; flex-wrap: wrap; gap: 7px 14px; align-items: center; justify-content: space-between; }
.demo-body h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; font-weight: 900; letter-spacing: -.04em; }
.demo-body .hint { font-size: 15px; max-width: 42ch; }
.demo-body .action-button { justify-self: start; margin-top: 2px; }
.flag-group { display: inline-flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.flag { display: inline-grid; place-items: center; width: 23px; height: 16px; flex: 0 0 auto; border-radius: 4px; outline: 1px solid #fff3; background: #354e69; color: #f4f7fc; font: 900 9px/1 Nunito, sans-serif; letter-spacing: .02em; }
.flag[data-flag="EE"] { background: linear-gradient(#4e9feb 33%,#19202a 33% 66%,#fff 66%); color: transparent; }
.flag[data-flag="LV"] { background: linear-gradient(#9c3848 40%,#fff 40% 60%,#9c3848 60%); color: transparent; }
.flag[data-flag="LT"] { background: linear-gradient(#f7cc58 33%,#328b5a 33% 66%,#d45150 66%); color: transparent; }
.flag[data-flag="PL"] { background: linear-gradient(#fff 50%,#ed5970 50%); color: transparent; }
.flag[data-flag="DE"] { background: linear-gradient(#1b1e24 33%,#d6534a 33% 66%,#f8c44d 66%); color: transparent; }
.flag[data-flag="FR"] { background: linear-gradient(90deg,#3157a1 33%,#fff 33% 66%,#ed5a63 66%); color: transparent; }
.flag[data-flag="IT"] { background: linear-gradient(90deg,#48aa75 33%,#fff 33% 66%,#e06465 66%); color: transparent; }
.flag[data-flag="UA"] { background: linear-gradient(#5092e6 50%,#ffda56 50%); color: transparent; }
.flag[data-flag="NL"] { background: linear-gradient(#d8585a 33%,#fff 33% 66%,#426bac 66%); color: transparent; }
.flag[data-flag="ES"] { background: linear-gradient(#c74e51 25%,#ffcd56 25% 75%,#c74e51 75%); color: transparent; }

.trip-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 29px 0 18px; }
.trip-header-text { display: grid; gap: 5px; min-width: 0; }
.trip-top h1 { font-size: clamp(31px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.055em; font-weight: 900; overflow-wrap: anywhere; }
.trip-top h1 .route-arrow { color: var(--mint); font-weight: 700; margin-inline: .07em; }
.trip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.passport-main { background: #254640 !important; border-color: #629a7e !important; color: var(--mint) !important; }
.passport-settings { display: grid; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.passport-settings h3 { font-size: 15px; }
.passport-settings .passport-link { justify-self: start; margin-top: 0; }
.app-version { font-weight: 900; }
.update-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 14px; padding: 12px 14px; border: 1px solid #81b697; border-radius: 13px; background: #24463c; font-size: 13px; font-weight: 800; }
.update-notice a { color: var(--mint); white-space: nowrap; }
.status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.gps-reading { flex-basis: 100%; color: var(--muted); font-size: 12px; font-weight: 800; }
.pill { display: inline-flex; gap: 7px; align-items: center; min-height: 29px; border-radius: 999px; padding: 4px 9px; border: 1px solid #435972; background: #1c2c42; color: #d3deed; font-size: 12px; font-weight: 900; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a8b6c9; }
.pill.good { background: #244240; border-color: #416e62; color: #c6f8cb; }
.pill.good::before { background: var(--mint); }
.pill.alert { background: #443733; color: #ffe5a0; border-color: #77674f; }
.pill.alert::before { background: var(--gold); }
.trip-grid { display: grid; gap: 15px; grid-template-columns: .78fr 1.22fr; }
.road-card { grid-column: 1 / -1; background: radial-gradient(ellipse at 100% -40%,#305c5d 0%,transparent 64%), var(--surface); border: 1px solid #456172; border-radius: var(--radius); padding: 20px 23px 15px; }
.road-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.road-title { display: flex; gap: 10px; align-items: center; color: #e2e8f2; font-weight: 900; font-size: 17px; }
.road-title .icon { color: var(--mint); }
.progress-value { display: flex; align-items: baseline; gap: 8px; }
.progress-value strong { color: var(--mint); font-weight: 900; font-size: clamp(36px, 5vw, 50px); letter-spacing: -.065em; line-height: 1; font-variant-numeric: tabular-nums; }
.progress-value span { font-weight: 800; color: #d2e1dd; font-size: 14px; }
.road { --road-center: 14.5px; position: relative; margin: 23px 18px 0; height: 37px; isolation: isolate; }
.road-track { position: absolute; top: 8px; left: -5px; right: -5px; height: 13px; border-radius: 20px; background: #364c60; border: 1px solid #60778a; overflow: hidden; }
.road-track::after { content: ''; position: absolute; inset: 5px 0; background: repeating-linear-gradient(90deg, #aec2d67a 0 7px, transparent 7px 14px); }
.road-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: #aef2bd; z-index: 1; transition: width .24s linear; }
.road-fill::after { content: ''; position: absolute; inset: 5px 0; background: repeating-linear-gradient(90deg, #3d7d6a75 0 7px, transparent 7px 14px); }
.road-dot, .road-border, .car-marker { position: absolute; left: 0; transform: translateX(-50%); }
.road-dot { z-index: 2; top: var(--road-center); transform: translate(-50%, -50%); display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #243650; border: 2px solid #92adc3; color: #e7edf4; font-size: 11px; font-weight: 900; }
.road-dot.has-picture { width: 35px; height: 35px; }
.road-dot.done { background: var(--mint); color: #203a37; border-color: #e4ffe6; }
.road-dot.skipped { color: #cbd3df; border-style: dashed; }
.road-dot.finish { color: #3d2e21; background: var(--gold); border-color: #ffecc1; }
.road-dot .icon { width: 13px; height: 13px; }
.road-dot.start { width: 14px; height: 14px; border: 2px solid #d8ffdd; background: #6dcba2; }
.road-border { width: 8px; height: 8px; z-index: 2; top: var(--road-center); border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); background: #fce19d; border: 1px solid #836b47; }
.car-marker { z-index: 3; top: -17px; width: 49px; height: 34px; filter: drop-shadow(0 3px 3px #0009); transition: left .24s linear; }
.car-marker svg { display: block; width: 100%; height: 100%; overflow: visible; }
.road-dot .place-picture { display: block; width: 31px; height: 31px; max-width: none; }
.stop-chip .place-picture { width: 28px; height: 28px; }
.next-place .next-picture { width: 66px; height: 66px; }
.road-ends, .road-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.road-ends { margin: 2px 3px 0; font-weight: 900; font-size: 14px; }
.road-ends span { max-width: 49%; overflow-wrap: anywhere; }
.road-ends span:last-child { text-align: right; }
.road-stats { color: #bacbdd; margin: 3px 3px 0; font-weight: 750; font-size: 13px; }
.stop-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.stop-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 5px; border-radius: 9px; background: #122439; color: #d5e1ee; border: 1px solid #354f62; font-size: 12px; font-weight: 850; overflow-wrap: anywhere; }
.stop-chip .stop-index { width: 19px; height: 19px; border-radius: 6px; font-size: 10px; }
.stop-chip .icon { width: 12px; height: 12px; }
.stop-chip.is-done { color: #b5e7c5; }
.stop-chip.is-skipped, .passed-list.skipped-list { color: #f3d799; }
.next-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; background: #fff0c8; border: 1px solid #ffe4a5; color: #233249; border-radius: var(--radius); padding: 22px; }
.next-card .eyebrow { color: #5a491f; }
.next-card .eyebrow .icon { width: 19px; height: 19px; }
.next-place { display: flex; align-items: center; gap: 10px; line-height: 1.08; font-size: clamp(25px, 4vw, 40px); letter-spacing: -.05em; font-weight: 900; overflow-wrap: anywhere; }
.distance-panel { display: flex; flex-direction: column; justify-content: center; flex: 1 0 auto; gap: 4px; }
.distance-number { font-size: clamp(57px, 7.2vw, 89px); font-weight: 900; letter-spacing: -.08em; line-height: .96; font-variant-numeric: tabular-nums; white-space: nowrap; }
.distance-number.long { font-size: clamp(45px, 5.7vw, 67px); }
.distance-number span { font-size: .34em; font-weight: 900; letter-spacing: -.04em; margin-left: .16em; }
.distance-sub { font-size: 14px; font-weight: 850; color: #565547; }
.eta-row { display: flex; align-items: center; gap: 9px; color: #394356; font-size: 15px; font-weight: 900; }
.eta-row .icon { width: 18px; height: 18px; }
.finish-summary { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid #d0be94; color: #38485b; font-size: 13px; font-weight: 800; }
.finish-summary strong { font-size: 14px; overflow-wrap: anywhere; }
.map-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: #172b40; border: 1px solid #405977; border-radius: var(--radius); }
.map-heading { padding: 12px 15px 9px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 10px; background: #17283d; border-bottom: 1px solid #394b63; }
.map-heading h2 { display: flex; gap: 7px; align-items: center; font-size: 15px; font-weight: 900; }
.map-heading .icon { width: 17px; height: 17px; color: var(--mint); }
.map-country-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.country-chip { display: inline-flex; gap: 4px; align-items: center; padding: 3px 6px; border-radius: 7px; background: #20374e; color: #dce7f4; font-size: 10px; font-weight: 850; line-height: 1.25; }
.country-chip .flag { width: 16px; height: 11px; border-radius: 2px; font-size: 7px; }
.map-svg { display: block; width: 100%; height: 264px; min-height: 240px; flex: 1 0 auto; background: radial-gradient(ellipse at 45% 35%, #1c3d56, #172c44); user-select: none; }
.map-notice { padding: 8px 15px; color: var(--muted); background: #16243a; font-size: 12px; }
.atlas-land path { stroke: #718a9b; stroke-width: .75px; stroke-linejoin: round; }
.atlas-country-labels { fill: #b0c4d3; font-size: 10px; font-weight: 900; letter-spacing: .095em; }
.atlas-route-back { stroke: #14263a; stroke-width: 6px; }
.atlas-route { stroke: #f7dc92; stroke-width: 2.5px; stroke-dasharray: 5 4; }
.atlas-traveled { stroke: #a5f2bb; stroke-width: 3.1px; }
.atlas-place-label { fill: #fff6db; stroke: #142840; stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; font-size: 12px; font-weight: 900; }
.atlas-waypoint { fill: #ffebaa; stroke: #223850; stroke-width: 2px; }
.atlas-destination { fill: #ffcb6f; stroke: #263d54; stroke-width: 2px; }
.atlas-position-halo { fill: #a5f2bb; opacity: .28; }
.atlas-position-dot { fill: #c3ffd4; stroke: #17464b; stroke-width: 1.9px; }
.trip-note { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 800; }
.trip-note:not(:empty) { background: #20364b; border: 1px solid #3d566e; padding: 8px 12px; border-radius: 11px; }
.demo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin-top: 13px; }
.demo-controls .action-button { min-height: 42px; font-size: 14px; }
.demo-controls .text-button { color: var(--muted); font-size: 14px; }
.demo-controls .text-button:hover { color: var(--text); }
.arrival { display: grid; align-content: center; justify-items: start; gap: 8px; flex: 1; }
.arrival .icon { width: 38px; height: 38px; color: #2c765f; }
.arrival .action-button { margin-top: 7px; border-color: #56756b; }

.modal { width: min(100% - 24px, 490px); max-height: min(calc(100dvh - 28px), 800px); color: var(--text); background: var(--surface); border: 1px solid #617991; border-radius: 22px; padding: 18px; box-shadow: 0 16px 60px #0008; }
.modal::backdrop { background: #070d19b8; }
.modal-header { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
.modal-header h2 { font-size: 24px; line-height: 1.1; font-weight: 900; letter-spacing: -.033em; }
.modal-header .icon-button { width: 41px; }
.modal .hint + .planner-fields { margin-top: 13px; }
.modal .end-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 11px; }
.passed-list { color: #bce9cd; display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 1.4; font-weight: 800; margin-top: 11px; }
.passed-list .icon { width: 16px; height: 16px; }
.search-form { display: flex; gap: 7px; align-items: stretch; margin: 12px 0 10px; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid #657e95; border-radius: 12px; color: var(--text); background: var(--input); padding: 0 10px; font-size: 16px; }
.search-form input::placeholder { color: #aab7cb; }
.search-form .action-button { min-height: 46px; font-size: 14px; }
.map-picker-entry { margin-bottom: 10px; }
.modal.map-picker-open { width: min(100% - 24px, 670px); }
.map-picker-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 8px; }
.map-picker-frame { position: relative; isolation: isolate; margin-top: 10px; overflow: hidden; border: 1px solid #617991; border-radius: 13px; }
.map-picker-canvas { height: clamp(185px, 49dvh, 475px); background: #c9d9d4; }
.map-picker-canvas:focus-visible { outline-offset: -3px; }
.map-picker-pin { position: absolute; z-index: 500; top: 50%; left: 50%; color: #17283a; transform: translate(-50%, -87.5%); pointer-events: none; filter: drop-shadow(0 2px 2px #0006); }
.map-picker-pin .icon { width: 38px; height: 38px; fill: #ffdc8a; }
.map-picker-status { min-height: 20px; margin: 7px 0 10px; font-variant-numeric: tabular-nums; }
.search-results { display: grid; gap: 7px; }
.search-results .field-label { margin: 5px 0 1px; }
.place-result { display: flex; gap: 9px; align-items: center; text-align: left; width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 12px; background: var(--input); padding: 8px 9px; }
.place-result .place-name { font-size: 15px; }
.place-result .place-symbol { width: 31px; height: 31px; border-radius: 8px; }
.place-result .place-symbol .icon { width: 17px; height: 17px; }
.result-gps { margin-bottom: 3px; }
.info-sections { display: grid; gap: 12px; }
.info-sections section { display: grid; gap: 3px; }
.info-sections h3 { font-size: 16px; }
.info-sections p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.routes-modal { width: min(700px, calc(100% - 24px)); }
.route-choice-map { width: 100%; height: clamp(180px, 33dvh, 300px); margin: 14px 0 12px; border: 1px solid #698095; border-radius: 14px; background: #dce5d4; color: #173a42; isolation: isolate; }
.route-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.route-option { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 12px; text-align: left; border: 2px solid var(--line); border-radius: 13px; background: var(--input); }
.route-option[aria-pressed="true"] { border-color: var(--mint); background: #203c41; }
.route-option-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 850; }
.route-color { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.route-color-0 { background: #36a578; }
.route-color-1 { background: #efb455; }
.route-option strong { display: grid; gap: 2px; font-size: 21px; }
.route-option strong span { color: var(--muted); font-size: 13px; font-weight: 750; }
.route-summary { color: var(--muted); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.route-estimate { margin-top: 10px; }
.spot-settings { display: grid; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.spot-settings h3 { font-size: 15px; }
.spot-enable { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.spot-enable > input { flex: 0 0 auto; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--mint); }
.spot-enable > span { display: grid; gap: 4px; min-width: 0; }
.spot-enable strong { font-size: 15px; }
.spot-enable .hint { font-size: 12px; }
.spot-launch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-left: 34px; }
.spot-launch .hint { font-size: 12px; }
.spot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.spot-item { position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; min-width: 0; min-height: 76px; padding: 6px 3px; border: 2px solid #3b546d; border-radius: 12px; background: var(--input); text-align: center; cursor: pointer; }
.spot-item input { position: absolute; top: 4px; right: 4px; width: 17px; height: 17px; margin: 0; accent-color: var(--mint); cursor: pointer; }
.spot-emoji { font-size: 28px; line-height: 1; }
.spot-item strong { max-width: 100%; min-height: 2.2em; display: flex; align-items: center; justify-content: center; font-size: 10.5px; line-height: 1.1; overflow-wrap: anywhere; }
.spot-item-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.spot-item.is-found { background: #294c43; border-color: var(--mint); }
.spot-item.is-found .spot-item-status { color: var(--mint); }
.spot-complete { margin-top: 6px; padding: 7px; border-radius: 10px; background: var(--gold); color: #332a1b; text-align: center; font-size: 12px; font-weight: 900; }
.toast { z-index: 5; position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 30px); background: #224641; border: 1px solid #83bf9d; color: #f0fff0; border-radius: 13px; padding: 10px 16px; font-size: 14px; font-weight: 900; box-shadow: 0 10px 30px #0006; }

@media (max-width: 800px) {
  .shell { width: calc(100% - 34px); }
  .home-grid { gap: 20px; padding-top: 30px; }
  .heading { font-size: clamp(38px, 6.2vw, 56px); }
  .demo-visual img { aspect-ratio: 640/490; }
  .trip-grid { grid-template-columns: .82fr 1.18fr; }
  .map-heading { align-items: flex-start; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 26px); }
  .topbar { min-height: 64px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-mark svg { width: 24px; }
  .top-actions { gap: 5px; }
  .top-actions .icon-button { width: 36px; min-height: 37px; }
  .top-actions .quiet-button { min-height: 37px; padding-inline: 8px; }
  .install-button .button-text { display: none; }
  .home-grid { grid-template-columns: minmax(0,1fr); padding-top: 23px; gap: 18px; }
  .home-heading { gap: 8px; margin-bottom: 15px; }
  .heading { font-size: clamp(36px, 9.5vw, 55px); text-wrap: initial; }
  .lead { font-size: 15px; }
  .planner { padding: 13px; border-radius: 20px; }
  .demo-card { border-radius: 20px; display: grid; grid-template-columns: minmax(103px, .66fr) minmax(0,1fr); }
  .demo-visual img { height: 100%; min-height: 147px; aspect-ratio: initial; object-position: 44% 50%; }
  .demo-tag { top: 8px; left: 7px; padding: 4px 6px; font-size: 8px; letter-spacing: .035em; }
  .demo-tag span { width: 5px; height: 5px; }
  .demo-body { padding: 12px; gap: 7px; align-content: center; }
  .demo-body h2 { font-size: 21px; }
  .demo-body .hint { font-size: 12px; }
  .demo-body .action-button { padding: 8px 10px; min-height: 40px; font-size: 13px; }
  .demo-body .action-button .icon { width: 16px; }
  .demo-title-row .flag-group { display: none; }
  .trip-top { padding-top: 19px; padding-bottom: 12px; gap: 9px; }
  .trip-top h1 { font-size: clamp(28px, 8vw, 42px); }
  .trip-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; width: 100%; gap: 7px; }
  .trip-actions .status-strip { grid-column: 1 / -1; min-width: 0; max-width: none; }
  .trip-actions:not(.has-demo) > [data-action="board"] { grid-column: 1 / -1; }
  .trip-actions .pill { max-width: 90px; min-height: 35px; padding: 5px 8px; gap: 5px; white-space: normal; font-size: 11px; line-height: 1.15; }
  .trip-actions .pill::before { flex: 0 0 auto; }
  .trip-actions .action-button { min-height: 40px; padding: 7px 8px; font-size: 13px; gap: 6px; white-space: normal; }
  .trip-actions .action-button.primary { padding-inline: 6px; gap: 5px; }
  .trip-actions.has-demo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-actions.has-demo .status-strip { grid-column: 1 / -1; max-width: none; }
  .trip-actions.has-demo .action-button { white-space: normal; }
  .trip-actions .icon { width: 16px; height: 16px; }
  .trip-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .road-card { border-radius: 20px; padding: 13px 13px 11px; }
  .road-title { gap: 5px; font-size: 14px; }
  .road-title .icon { width: 17px; height: 17px; }
  .progress-value { gap: 5px; }
  .progress-value span { font-size: 12px; }
  .road { margin: 20px 11px 0; }
  .car-marker { width: 43px; top: -14px; }
  .stop-chips { margin-top: 7px; }
  .road-ends { font-size: 13px; }
  .road-stats { font-size: 11px; }
  .next-card { border-radius: 20px; padding: 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 12px; }
  .next-place { font-size: clamp(24px, 6vw, 35px); }
  .next-card .eyebrow { grid-column: 1; font-size: 10px; }
  .next-card .distance-panel { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .distance-number { font-size: clamp(43px, 12vw, 58px); }
  .distance-number.long { font-size: clamp(31px, 8vw, 50px); }
  .distance-sub { font-size: 12px; }
  .eta-row { grid-column: 1; font-size: 13px; }
  .finish-summary { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 7px; padding-top: 6px; font-size: 11px; }
  .finish-summary strong { font-size: 12px; }
  .map-card { border-radius: 20px; }
  .map-heading { padding: 9px 11px 7px; }
  .map-svg { height: 224px; min-height: 224px; }
  .arrival { grid-column: 1 / -1; }
  .footer { padding: 18px 0 23px; font-size: 11px; }
}
@media (max-width: 359px) {
  .trip-actions:not(.has-demo) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-actions:not(.has-demo) > .status-strip { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 340px) {
  .demo-description { display: none; }
  .next-card { grid-template-columns: minmax(0, 1fr) auto; }
  .lang-button .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.finish-summary strong { display: flex; align-items: center; gap: 5px; }
.finish-summary strong .icon { width: 13px; height: 13px; }
.modal form .hint:last-child { margin-top: 8px; }

.transport-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.transport-control button { min-width: 0; min-height: 44px; padding-inline: 8px; }
@media (min-width: 1060px) {
  .transport-control { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.transport-control button[aria-pressed="true"] { background: #2b4a47; border-color: #78ae91; color: var(--mint); }
.transport-control .transport-icon { width: 28px; height: 20px; display: block; }
.train-hint { margin: 9px 1px 2px; }
.demo-mode-art { width: 100%; aspect-ratio: 640 / 425; display: grid; place-items: center; background: radial-gradient(ellipse at 60% 18%, #4a6a64, #223952 52%, #16263c 78%); }
.demo-mode-art svg { width: 62%; max-width: 295px; height: auto; filter: drop-shadow(0 12px 14px #0c1725a3); }
.demo-mode-art[data-mode="walk"] svg { max-width: 210px; }
.demo-mode-art[data-mode="bike"] svg { max-width: 260px; }
@media (max-width: 620px) {
  .demo-mode-art { height: 100%; min-height: 147px; aspect-ratio: auto; }
}
html:has(.board-dialog[open]), body:has(.board-dialog[open]) { overflow: hidden; }
.quiet-button[data-action="screen"][aria-pressed="true"] { background: #2b4a47; border-color: #78ae91; color: var(--mint); }
.board-dialog {
  width: 100vw; max-width: none; height: 100dvh; max-height: none;
  inset: 0; margin: 0; border: 0; padding: 0; overflow: hidden;
  color: #f8f4ea; background: #142639;
}
.board-dialog::backdrop { background: #142639; }
.board-screen {
  width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(ellipse at 18% 18%, #324e60, #172b40 69%);
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}
.board-header, .board-footer { width: min(100%, 1120px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 6px; }
.board-header > div:first-child { min-width: 0; }
.board-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.board-tools .passport-button { min-width: 42px; padding: 8px; }
.board-screen.has-spotting { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.board-spotting { width: min(100%, 1120px); min-width: 0; min-height: 0; margin-inline: auto; padding: 8px; border: 1px solid #577786; border-radius: 16px; background: #1b3448; overflow: auto; overscroll-behavior: contain; }
.board-spot-heading { position: sticky; top: -1px; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding-bottom: 6px; background: #1b3448; }
.board-spot-heading h3 { font-size: 13px; line-height: 1.15; }
.board-spot-heading > strong { color: var(--mint); font-size: 17px; white-space: nowrap; }
.board-spot-reset { width: 32px; min-height: 30px; border-radius: 9px; }
.board-spot-reset .icon { width: 16px; height: 16px; }
.board-header h2 { font-size: clamp(19px, 4vw, 28px); font-weight: 950; letter-spacing: -.025em; }
.board-header .eyebrow { font-size: 10px; }
.board-header .quiet-button { flex: 0 0 auto; }
.board-stage { display: block; width: min(100%, 1120px); height: 100%; min-height: 0; margin-inline: auto; overflow: visible; }
.board-playfield { position: relative; width: min(100%, 1120px); height: 100%; min-height: 0; margin-inline: auto; }
.board-progress { position: absolute; top: 7px; left: 7px; display: grid; justify-items: center; gap: 1px; padding: 7px 11px; border: 1px solid #64807466; border-radius: 13px; background: #142b38d9; pointer-events: none; }
.board-progress strong { color: var(--mint); font-size: clamp(22px, 4vw, 30px); line-height: 1; font-weight: 950; font-variant-numeric: tabular-nums; }
.board-progress span { color: #d1e4db; font-size: 10px; font-weight: 800; }
@media (min-aspect-ratio: 6/5) {
  .board-progress { left: auto; right: 7px; }
  .board-screen.has-spotting { grid-template-columns: minmax(0, 1fr) minmax(248px, 300px); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 12px; }
  .has-spotting > .board-header, .has-spotting > .board-footer { grid-column: 1 / -1; }
  .has-spotting > .board-playfield { grid-column: 1; grid-row: 2; }
  .has-spotting > .board-spotting { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; }
  .board-spotting .spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; }
}
@media (min-aspect-ratio: 6/5) and (max-height: 425px) {
  .board-spotting .spot-item { min-height: 48px; padding-block: 3px; gap: 1px; }
  .board-spotting .spot-emoji { font-size: 22px; }
  .board-spotting .spot-item strong { min-height: 0; }
}
.board-footer { min-height: 42px; font-size: 14px; font-weight: 850; }
.passport-link { margin-top: 13px; padding: 8px 13px; font-size: 13px; }
.passport-modal { width: min(760px, calc(100% - 24px)); padding: 18px; }
.passport-modal > .modal-header { margin-bottom: 14px; }
.passport-album { display: grid; gap: 20px; padding: 16px; border-radius: 19px; color: #20374a; background: #eee5cf; }
.passport-cover { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 14px; align-items: center; padding: 20px; border-radius: 16px; color: #fff4d5; background: radial-gradient(ellipse at 100% 0%, #386960, #1d3949 80%); }
.passport-cover .eyebrow { color: #afe9bb; font-size: 11px; }
.passport-cover h3 { margin: 6px 0 10px; font-size: clamp(23px, 5vw, 34px); line-height: 1.1; overflow-wrap: anywhere; }
.passport-route { font-size: 13px; line-height: 1.4; font-weight: 800; overflow-wrap: anywhere; }
.passport-date { margin-top: 6px; font-size: 12px; color: #c4d5d1; }
.passport-transport { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; font-weight: 900; color: #afe9bb; }
.passport-transport > svg { width: 26px; height: 24px; }
.passport-cover-picture { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: #eddb9b; border: 4px solid #ffdfa1; box-shadow: 0 7px 0 #0b1c2838; overflow: hidden; }
.passport-cover-picture .place-picture { width: 100%; height: 100%; }
.passport-cover-picture > .icon { width: 48px; height: 48px; color: #365b54; }
.passport-demo { margin-top: -6px; color: #76613e; font-size: 12px; font-weight: 800; }
.passport-stamps h3, .passport-badges h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 18px; }
.passport-stamps h3 > span { color: #597568; font-size: 15px; white-space: nowrap; }
.passport-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.passport-page { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 2px dashed #b6b2a0; border-radius: 15px; background: #e8e1d1; }
.passport-page-role { grid-column: 1 / -1; color: #617467; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.passport-place-picture { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #d4ddd0; overflow: hidden; }
.passport-place-picture .place-picture { width: 100%; height: 100%; }
.passport-place-picture > .icon { width: 30px; height: 30px; color: #577767; }
.passport-page > strong { min-width: 0; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.passport-stamp { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 8px; color: #67685e; background: #d9d5c7; font-size: 11px; font-weight: 950; }
.passport-stamp .icon { width: 15px; height: 15px; }
.passport-page.is-done { border-style: solid; border-color: #83b29a; background: #fffbec; }
.passport-page.is-done .passport-stamp { color: #23604e; background: #d4eddb; transform: rotate(-2deg); }
.passport-page.is-waiting .passport-place-picture, .passport-page.is-skipped .passport-place-picture { opacity: .55; filter: grayscale(.75); }
.passport-badges ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.passport-badge { display: grid; justify-items: center; align-content: start; gap: 7px; min-width: 0; padding: 12px 5px; text-align: center; border: 1px dashed #b6b2a0; border-radius: 14px; color: #69736a; }
.passport-badge.is-earned { color: #23604e; background: #d4eddb; border: 1px solid #91b19a; }
.passport-badge-symbol { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #dbd6c8; }
.is-earned .passport-badge-symbol { background: #f8edbb; }
.passport-badge-symbol > .icon { width: 26px; height: 26px; }
.passport-badge-check { position: absolute; right: -3px; bottom: -2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #f5ffe9; background: #367e65; }
.passport-badge-check .icon { width: 13px; height: 13px; }
.passport-badge > strong { font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
.passport-badge > span:last-child { font-size: 10px; }
.passport-save { padding-top: 8px; }
.passport-save .hint { margin-top: 12px; }
@media (max-width: 480px) {
  .passport-modal { padding: 13px; }
  .passport-modal .modal-header h2 { font-size: 23px; }
  .passport-album { padding: 11px; gap: 17px; }
  .passport-cover { grid-template-columns: minmax(0, 1fr) 70px; padding: 15px; gap: 10px; }
  .passport-cover-picture { width: 70px; height: 70px; border-width: 3px; }
  .passport-page { grid-template-columns: 1fr; justify-items: center; gap: 7px; padding: 10px 7px; text-align: center; }
  .passport-page-role, .passport-stamp { grid-column: auto; justify-self: center; }
  .passport-page > strong { font-size: 13px; }
  .passport-stamp { padding: 5px; font-size: 10px; }
  .passport-badges ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.board-next { color: #e8f4f0; overflow-wrap: anywhere; }
.board-note { color: #edcc89; font-size: 11px; margin-top: 2px; }
.board-footer .action-button { min-height: 40px; padding: 6px 12px; font-size: 14px; flex: 0 0 auto; }
.board-route-edge, .board-route-base, .board-route-done, .board-route-dashes, .board-route-ties { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.board-route-edge { stroke: #101f30; stroke-width: 29px; }
.board-route-base { stroke: #496579; stroke-width: 23px; }
.board-route-done { stroke: #73b49b; stroke-width: 23px; }
.board-route-dashes { stroke: #f6ead0; stroke-width: 2px; stroke-dasharray: 7 9; opacity: .85; }
.board-route-ties { stroke: #f6ead0; stroke-width: 12px; stroke-linecap: butt; stroke-dasharray: 2 9; opacity: .72; }
.board-sun { fill: #f0d38e; opacity: .33; }
.board-hill { fill: #294653; opacity: .72; }
.board-meadow { fill: #234941; opacity: .66; }
.board-tree { fill: #6a9b86; opacity: .55; }
.board-spark { fill: #ebdfa6; opacity: .55; }
.board-terminal { stroke: #172939; stroke-width: 3px; fill: #aef2bd; }
.board-terminal.finish { fill: #ffdb84; }
.board-terminal-symbol { color: #20303a; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.board-terminal-title, .board-terminal-name, .board-stop-label { fill: #fff6e7; paint-order: stroke; stroke: #192b3d; stroke-width: 3px; stroke-linejoin: round; }
.board-terminal-title { font-size: 14px; font-weight: 950; letter-spacing: .09em; }
.board-terminal-name { font-size: 11px; font-weight: 800; }
.board-stop-label { font-size: 12px; font-weight: 850; }
.board-border { fill: #ffe09c; stroke: #263b4e; stroke-width: 1.5; }
.board-stop circle { fill: #fff0c2; stroke: #2b3a47; stroke-width: 2.5px; }
.board-stop.done circle { fill: #aef2bd; }
.board-stop.skipped circle { fill: #c3bfba; stroke-dasharray: 3 2; }
.board-stop text { fill: #223444; font-size: 12px; font-weight: 950; }
.board-picture { overflow: hidden; }
.board-stop.skipped .board-picture { opacity: .6; }
.board-vehicle { filter: drop-shadow(0 3px 3px #091725c7); }

/* A viewing link is a separate, explicit action from editing a trip. */
.share-main.is-sharing { border-color: #8ccb9c; color: var(--mint); }
.share-modal > p { margin-block: 12px; line-height: 1.5; }
.share-modal .hint { font-size: 14px; }
.share-summary { font-size: 20px; font-weight: 900; overflow-wrap: anywhere; }
.share-summary span { color: var(--mint); }
.share-live { display: flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 900; margin-top: 20px; }
.share-link-label { display: grid; gap: 7px; font-size: 14px; margin-block: 14px; }
.share-link-label input { min-width: 0; width: 100%; border: 1px solid #60758d; border-radius: 10px; padding: 12px; color: var(--text); background: var(--input); font-size: 16px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-modal .share-message { padding: 12px; border: 1px solid #a58a5b; border-radius: 12px; background: #483d30; color: #ffe4a9; }
.share-access { border-top: 1px solid var(--line); padding-top: 12px; }
.share-settings { min-width: 0; display: grid; gap: 9px; padding: 15px 0; margin: 0; border: 0; }
.share-settings > label { font-size: 15px; font-weight: 850; }
.share-settings select, .gpx-modal select, .gpx-modal input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #60758d; border-radius: 11px; background: var(--input); color: var(--text); font: inherit; font-size: 16px; }
.share-settings select, .gpx-modal select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23aef2bd' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.share-photo-option, .gpx-reverse { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.share-photo-option input, .gpx-reverse input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--mint); }
.gpx-import-button { margin: 12px 0 8px; width: 100%; font-size: 15px; }
.gpx-home-hint { margin-bottom: 14px; }
.gpx-file-label { display: grid; gap: 10px; margin-block: 18px; font-size: 16px; font-weight: 800; }
.gpx-modal { width: min(550px, calc(100% - 24px)); }
.gpx-modal .hint { font-size: 14px; line-height: 1.5; }
.gpx-modal form { display: grid; gap: 11px; padding-top: 10px; }
.gpx-filename { overflow-wrap: anywhere; font-weight: 850; }
.gpx-distance { color: var(--mint); font-size: 24px; font-weight: 900; }
.gpx-outline { width: 100%; height: 180px; border: 1px solid #466577; border-radius: 16px; background: #203c49; }
.gpx-outline polyline { fill: none; stroke: #aef2bd; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gpx-outline circle { fill: var(--mint); stroke: #132333; stroke-width: 2; }
.gpx-outline circle.finish { fill: var(--gold); }
@media (max-width: 440px) {
  .trip-actions:not(.has-demo) > [data-action="board"] { grid-column: auto; }
}
.retired-trip { max-width: 720px; margin-inline: auto; display: grid; gap: 20px; padding-block: 25px; }
.retired-trip h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; overflow-wrap: anywhere; }
.retired-trip h2 { font-size: 24px; }
.retired-trip-picture { width: 96px; height: 96px; }
.retired-trip-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.passport-badges ul:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-height: 425px) {
  .board-header { padding-block: 0; }
  .board-header .eyebrow { display: none; }
  .board-footer { min-height: 34px; padding-block: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .board-vehicle { transition: none; }
}
