:root {
  color-scheme: light;
  --ink: #192722;
  --ink-soft: #44564f;
  --muted: #899690;
  --muted-2: #aab4ae;
  --line: #e7ece8;
  --paper: #ffffff;
  --canvas: #f5f7f4;
  --green: #176e54;
  --green-dark: #105840;
  --green-light: #eaf5ef;
  --orange: #e28a54;
  --shadow: 0 16px 40px rgba(31, 54, 45, .10), 0 3px 10px rgba(31, 54, 45, .04);
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Manrope', var(--sans);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(23, 110, 84, .24); outline-offset: 2px; }
button svg, a svg, i[data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; }
.app-shell { height: 100dvh; min-height: 600px; overflow: hidden; }

.topbar { position: relative; z-index: 700; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 23px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(218, 227, 220, .72); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 193px; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: white; box-shadow: 0 5px 13px rgba(23, 110, 84, .2); transform: rotate(-5deg); }
.brand-mark svg { width: 19px; height: 19px; stroke-width: 2; transform: rotate(5deg); }
.brand-name { position: relative; padding-bottom: 9px; font: 800 16px/1 var(--display); letter-spacing: -.7px; }
.brand-name > span { color: var(--green); }
.brand-name small { position: absolute; left: 0; bottom: 0; font: 700 7px/1 var(--sans); letter-spacing: 1.55px; color: #8d9a93; white-space: nowrap; }
.header-location { display: flex; align-items: center; gap: 9px; color: #68776f; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.header-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4aab78; box-shadow: 0 0 0 3px #e6f3ea; }
.header-divider { height: 13px; width: 1px; background: #dce3de; margin: 0 3px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 193px; justify-content: flex-end; }
.header-link { border: 0; border-radius: 9px; background: transparent; padding: 9px 10px; display: flex; align-items: center; gap: 8px; color: #53635b; font-size: 11px; font-weight: 700; transition: background .2s ease, color .2s ease; }
.header-link:hover { color: var(--green); background: #f1f6f2; }
.header-link svg { width: 15px; height: 15px; }
.language-select-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; color: #63736b; background: white; }
.language-select-wrap > svg:first-child { width: 14px; height: 14px; }
.language-select-wrap select { appearance: none; width: 34px; padding: 0; border: 0; background: transparent; outline: none; font-size: 10px; font-weight: 700; cursor: pointer; }
.language-select-wrap .select-chevron { width: 11px; height: 11px; pointer-events: none; }
.avatar-button { width: 34px; height: 34px; border: 1px solid #e7ece8; border-radius: 11px; background: #f7f9f7; display: grid; place-items: center; color: #76857e; transition: all .2s; }
.avatar-button:hover { border-color: #b7d4c3; background: var(--green-light); color: var(--green); }
.avatar-button svg { width: 16px; height: 16px; }

.workspace { position: relative; height: calc(100dvh - 68px); min-height: 532px; overflow: hidden; }
.planner-panel { position: absolute; z-index: 500; inset: 0 auto 0 0; width: 416px; background: rgba(255,255,255,.98); border-right: 1px solid rgba(216, 225, 218, .7); box-shadow: 6px 0 26px rgba(36, 60, 49, .035); }
.panel-scroll { height: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: #d6e0d9 transparent; padding: 26px 22px 18px; }
.panel-scroll::-webkit-scrollbar { width: 5px; }
.panel-scroll::-webkit-scrollbar-thumb { background: #d6e0d9; border-radius: 8px; }
.panel-intro { margin: 1px 1px 20px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #71847a; font-size: 8px; font-weight: 700; letter-spacing: 1.05px; }
.eyebrow-star { color: var(--orange); font-size: 13px; line-height: 1; }
.panel-intro h1 { margin: 11px 0 7px; font: 800 29px/1.16 var(--display); letter-spacing: -1.4px; }
.panel-intro h1 span { color: var(--green); }
.intro-copy { margin: 0; color: #7d8b84; font-size: 11.5px; line-height: 1.55; }
.planner-card { position: relative; background: #fff; border: 1px solid #e8eee9; border-radius: 17px; padding: 16px 15px 12px; box-shadow: 0 7px 22px rgba(35, 60, 47, .045); }
.section-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; }
.section-kicker { display: block; color: #96a199; font-size: 8px; letter-spacing: 1.15px; font-weight: 700; }
.section-heading h2, .results-heading h2 { margin: 4px 0 0; font: 800 16px/1.2 var(--display); letter-spacing: -.45px; }
.planner-card-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: #eff7f1; }
.planner-card-icon svg { width: 15px; height: 15px; }
.fields-shell { position: relative; margin-top: 14px; padding: 0 2px; }
.route-field-row { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 6px 9px 6px 8px; border: 1px solid #e9eeea; border-radius: 11px; background: #fff; transition: border .18s, box-shadow .18s; }
.route-field-row:focus-within { border-color: #9fc6ac; box-shadow: 0 0 0 3px rgba(23,110,84,.07); }
.field-dot { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; font-size: 9px; font-weight: 800; }
.field-dot-origin { color: #fff; background: var(--green); }
.field-dot-destination { color: #b15c33; background: #fff0e5; }
.field-entry { position: relative; flex: 1; min-width: 0; }
.field-entry label { display: block; margin-bottom: 3px; color: #9aa59f; font-size: 8px; font-weight: 700; letter-spacing: .4px; }
.field-entry input { width: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 600; text-overflow: ellipsis; }
.field-entry input::placeholder { color: #b0bab4; font-weight: 400; }
.field-map-button { flex: 0 0 auto; border: 0; background: #f6f8f6; color: #93a198; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; transition: .2s; }
.field-map-button:hover, .field-map-button.is-picking { color: var(--green); background: #e9f4ed; }
.field-map-button svg { width: 15px; height: 15px; }
.field-rail { position: relative; z-index: 1; height: 15px; display: flex; align-items: center; margin-left: 18px; }
.field-rail:before { content: ''; height: 100%; border-left: 1px dashed #c7d5cc; }
.field-rail span:last-child { display: none; }
.swap-button { position: absolute; z-index: 5; right: 0; top: 50%; transform: translateY(-50%); width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #e6ece7; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(32, 55, 43, .06); color: #708078; transition: all .2s; }
.swap-button:hover { color: var(--green); border-color: #bdd6c6; transform: translateY(-50%) rotate(180deg); }
.swap-button svg { width: 14px; height: 14px; }
.location-link { display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 0 3px; border: 0; padding: 3px 0; background: none; color: var(--green); font-size: 9px; font-weight: 700; }
.location-link:hover span:nth-child(2) { text-decoration: underline; text-underline-offset: 2px; }
.location-link-icon { display: grid; place-items: center; }
.location-link-icon svg { width: 12px; height: 12px; }
.location-link.is-locating .location-link-icon svg { animation: spin .9s linear infinite; }
.location-link-note { color: #a2ada6; font-size: 8px; font-weight: 500; }
.time-section { margin-top: 13px; }
.time-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 1px 7px; }
.time-help { border: 0; padding: 0; display: grid; place-items: center; background: none; color: #bac3bd; }
.time-help svg { width: 13px; height: 13px; }
.time-options { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr; gap: 5px; }
.time-option { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #edf0ee; border-radius: 8px; background: #fbfcfb; color: #87948d; font-size: 8px; font-weight: 600; white-space: nowrap; transition: all .18s; }
.time-option svg { width: 12px; height: 12px; }
.time-option:hover { border-color: #c9ddd0; color: var(--green); }
.time-option.is-active { border-color: #a9ceb5; background: #edf7f0; color: var(--green); box-shadow: inset 0 0 0 1px rgba(23,110,84,.02); }
.datetime-wrap { height: 35px; margin-top: 7px; padding: 0 9px; border: 1px solid #e8eeea; border-radius: 8px; display: flex; align-items: center; gap: 7px; color: #89968f; }
.datetime-wrap[hidden] { display: none; }
.datetime-wrap svg { width: 13px; height: 13px; flex: 0 0 auto; }
.datetime-wrap input { width: 140px; border: 0; outline: 0; font-size: 9px; background: transparent; }
.datetime-wrap > span { margin-left: auto; font-size: 8px; color: #9ba69f; }
.search-button { width: 100%; height: 42px; margin-top: 13px; border: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; position: relative; gap: 8px; background: var(--green); color: white; font: 700 11px var(--sans); box-shadow: 0 6px 13px rgba(23,110,84,.19); transition: background .2s, transform .2s, box-shadow .2s; }
.search-button:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 9px 17px rgba(23,110,84,.24); }
.search-button:disabled { opacity: .76; cursor: wait; transform: none; }
.search-button-icon { position: absolute; left: 14px; display: grid; place-items: center; }
.search-button-icon svg { width: 15px; height: 15px; }
.search-arrow { position: absolute; right: 13px; width: 14px !important; height: 14px !important; color: #b9daca; }
.planner-hint { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 9px; color: #9ba69f; font-size: 8px; }
.planner-hint svg { width: 11px; height: 11px; color: #bd8b60; }
.suggestions { display: none; position: absolute; z-index: 1200; top: calc(100% + 9px); left: -31px; right: -38px; padding: 5px; border: 1px solid #e5ece7; border-radius: 12px; background: white; box-shadow: 0 14px 32px rgba(27,48,38,.14); }
.suggestions.is-open { display: block; animation: drop-in .16s ease-out; }
.suggestion-item { display: flex; width: 100%; align-items: center; gap: 9px; text-align: left; padding: 9px; border: 0; border-radius: 8px; background: transparent; transition: background .15s; }
.suggestion-item:hover { background: #f2f7f3; }
.suggestion-icon { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #eff5f0; color: var(--green); }
.suggestion-icon svg { width: 14px; height: 14px; }
.suggestion-copy { min-width: 0; display: block; }
.suggestion-copy strong, .suggestion-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-copy strong { color: #34463d; font-size: 9px; font-weight: 700; }
.suggestion-copy small { margin-top: 3px; color: #99a49d; font-size: 8px; }
.suggestion-empty { padding: 11px 9px; color: #9ba69f; font-size: 9px; }
.suggestion-foot { padding: 6px 9px 4px; border-top: 1px solid #f0f3f0; color: #a3ada7; font-size: 7px; }
.suggestion-search-action { width: 100%; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 0 0 7px 7px; background: transparent; text-align: left; color: var(--green); font-size: 8px; font-weight: 700; cursor: pointer; }
.suggestion-search-action:hover { background: #f3f8f4; }
.suggestion-search-action svg { width: 12px; height: 12px; }
.suggestion-search-action.is-searching { cursor: wait; color: #8c9992; }
.suggestion-search-action.is-searching svg { animation: spin 1s linear infinite; }

.results-section { margin-top: 20px; }
.results-heading { margin-bottom: 9px; }
.results-heading h2 { font-size: 16px; }
.result-count { width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center; color: var(--green); background: var(--green-light); font-size: 9px; font-weight: 800; }
.route-list { display: grid; gap: 8px; }
.route-card { overflow: hidden; border: 1px solid #e8ede9; border-radius: 12px; background: #fff; transition: border .18s, box-shadow .18s, transform .18s; }
.route-card:hover { border-color: #d3e1d7; }
.route-card.is-selected { border-color: #a7cdb4; box-shadow: 0 4px 13px rgba(34,82,55,.075); }
.route-card-top { position: relative; padding: 10px 11px 9px; cursor: pointer; }
.route-card-top:hover { background: #fcfdfc; }
.route-card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.route-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 7px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.route-tag svg { width: 10px; height: 10px; }
.route-tag.tag-orange { color: #c37846; }
.route-tag.tag-blue { color: #59799e; }
.route-minutes { display: flex; align-items: baseline; gap: 3px; color: #293a32; font: 800 17px/1 var(--display); letter-spacing: -.6px; }
.route-minutes small { color: #8b9891; font: 500 8px var(--sans); letter-spacing: 0; }
.route-times { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #6d7b74; font-size: 9px; font-weight: 600; }
.route-times strong { color: #33463c; font-size: 10px; }
.route-times i { width: 14px; height: 1px; background: #cfd9d2; position: relative; }
.route-times i:after { content: ''; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; border-top: 1px solid #cfd9d2; border-right: 1px solid #cfd9d2; transform: rotate(45deg); }
.route-summary { display: flex; align-items: center; gap: 5px; min-width: 0; }
.summary-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 0 6px; border-radius: 6px; color: #67766e; background: #f5f7f5; font-size: 7px; font-weight: 600; white-space: nowrap; }
.summary-pill svg { width: 10px; height: 10px; }
.line-badges { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
.line-badge { display: inline-grid; place-items: center; height: 20px; min-width: 23px; padding: 0 5px; border: 0; border-radius: 6px; color: white; font-size: 7px; font-weight: 800; letter-spacing: .1px; white-space: nowrap; }
.route-chevron { position: absolute; right: 11px; top: 34px; color: #aab5ae; transition: transform .18s; }
.route-chevron svg { width: 13px; height: 13px; }
.route-card.is-expanded .route-chevron { transform: rotate(180deg); }
.route-details { display: none; padding: 0 11px 10px; border-top: 1px solid #eef2ef; }
.route-card.is-expanded .route-details { display: block; animation: reveal .2s ease-out; }
.route-details-head { padding: 8px 0 5px; display: flex; align-items: center; justify-content: space-between; color: #8e9b94; font-size: 8px; font-weight: 600; }
.route-details-head strong { color: #51635a; font-weight: 700; }
.step-list { position: relative; padding: 1px 0 0 12px; }
.step-list:before { content: ''; position: absolute; top: 12px; bottom: 13px; left: 4px; border-left: 1px dashed #c9d6cd; }
.route-step { position: relative; display: grid; grid-template-columns: 13px minmax(0,1fr) auto; gap: 7px; padding: 5px 0; align-items: start; cursor: pointer; }
.route-step:hover .step-copy strong { color: var(--green); }
.step-marker { z-index: 1; margin-top: 2px; width: 9px; height: 9px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: #aab9ae; box-shadow: 0 0 0 1px #aab9ae; }
.route-step.step-transit .step-marker { width: 11px; height: 11px; margin-left: -1px; margin-top: 1px; border: 0; background: var(--green); box-shadow: 0 0 0 3px #e6f2e9; }
.route-step.step-walk .step-marker { width: 8px; height: 8px; background: #fff; box-shadow: 0 0 0 1.5px #7c9b87; }
.step-copy { min-width: 0; }
.step-copy strong { display: block; color: #516158; font-size: 8px; line-height: 1.45; font-weight: 700; transition: color .15s; }
.step-copy small { display: block; margin-top: 2px; color: #96a29b; font-size: 7px; line-height: 1.45; }
.step-time { padding-top: 2px; color: #8d9b93; font-size: 7px; font-weight: 700; white-space: nowrap; }
.transfer-note { display: flex; align-items: center; gap: 6px; margin: 5px 0 1px 20px; padding: 6px 8px; border: 1px solid #f1e7d9; border-radius: 7px; background: #fffaf3; color: #9c7956; font-size: 7px; }
.transfer-note svg { width: 11px; height: 11px; }
.route-disclaimer { display: flex; gap: 6px; align-items: flex-start; margin: 9px 1px 0; color: #9aa49e; font-size: 8px; line-height: 1.45; }
.route-disclaimer svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; color: #b1a078; }
.route-disclaimer[hidden] { display: none; }
.feed-status { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 10px; padding: 8px 9px; border: 1px solid #e5efe7; border-radius: 9px; background: #f5faf6; color: #64766c; font-size: 8px; line-height: 1.45; }
.feed-status svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--green); }
.feed-status.is-warning { border-color: #f2e7d8; background: #fffaf3; color: #8b775c; }
.feed-status.is-warning svg { color: #b8834d; }
.panel-bottom { display: flex; align-items: center; gap: 6px; margin: 17px 1px 0; padding-top: 12px; border-top: 1px solid #eff2ef; color: #a0aaa4; font-size: 8px; }
.bottom-mark { color: #d48b60; font-size: 12px; }
.panel-bottom button { margin-left: auto; border: 0; padding: 4px; color: #8d9992; background: none; font-size: 8px; }
.panel-bottom button:hover { color: var(--green); }

.map-stage { position: absolute; inset: 0 0 0 416px; overflow: hidden; background: #e8ede5; }
#map { height: 100%; width: 100%; background: #e8ede5; z-index: 1; }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { max-width: min(750px, 55vw); font: 10px/1.3 var(--sans) !important; opacity: .92; text-align: right; }
.leaflet-control-attribution a { color: #517865 !important; }
.leaflet-control-zoom { display: none; }
.map-top-float { position: absolute; z-index: 400; top: 19px; left: 21px; display: flex; gap: 8px; }
.map-filter-pill, .map-search-pill { height: 38px; border: 1px solid rgba(223,230,224,.9); border-radius: 11px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; background: rgba(255,255,255,.95); color: #56675e; box-shadow: 0 5px 16px rgba(40,62,50,.1); backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; transition: .2s; }
.map-filter-pill:hover, .map-search-pill:hover { transform: translateY(-1px); border-color: #bad3c3; color: var(--green); box-shadow: 0 7px 18px rgba(40,62,50,.13); }
.filter-pill-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: #edf6ef; color: var(--green); }
.filter-pill-icon svg { width: 13px; height: 13px; }
.line-counter { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: #f0f3f0; color: #829088; font-size: 7px; }
.map-search-pill { min-width: 182px; justify-content: flex-start; color: #8c9992; font-weight: 500; }
.map-search-pill svg { width: 14px; height: 14px; }
.map-search-pill kbd { margin-left: auto; color: #9ca7a1; font: 8px var(--sans); }
.map-top-right { position: absolute; z-index: 400; top: 19px; right: 19px; display: flex; align-items: center; gap: 9px; }
.map-weather { height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.91); border: 1px solid rgba(223,230,224,.86); border-radius: 10px; color: #7b8881; box-shadow: 0 4px 14px rgba(40,62,50,.08); backdrop-filter: blur(8px); font-size: 8px; }
.weather-sun { color: #d9994c; font-size: 15px; }
.weather-city { color: #607068; font-size: 7px; font-weight: 800; letter-spacing: .9px; }
.weather-divider { height: 13px; width: 1px; background: #e3e8e4; }
.map-style-toggle { height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(223,230,224,.9); border-radius: 10px; background: rgba(255,255,255,.95); color: #53645a; box-shadow: 0 4px 14px rgba(40,62,50,.08); backdrop-filter: blur(8px); font: 600 9px var(--sans); transition: .2s; }
.map-style-toggle:hover { color: var(--green); background: #f1f8f3; }
.map-style-toggle svg { width: 14px; height: 14px; }
.map-control { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(223,230,224,.9); border-radius: 10px; background: rgba(255,255,255,.94); color: #64746b; box-shadow: 0 4px 14px rgba(40,62,50,.08); transition: .2s; }
.map-control:hover { color: var(--green); background: #f1f8f3; }
.map-control svg { width: 15px; height: 15px; }
.map-zoom-controls { position: absolute; z-index: 400; right: 18px; top: 76px; padding: 4px; border: 1px solid rgba(223,230,224,.9); border-radius: 10px; display: grid; background: rgba(255,255,255,.95); box-shadow: 0 4px 14px rgba(40,62,50,.08); }
.map-zoom-controls button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #74837a; }
.map-zoom-controls button:hover { background: #f0f6f1; color: var(--green); }
.map-zoom-controls svg { width: 15px; height: 15px; }
.map-zoom-controls > span { height: 1px; margin: 0 3px; background: #edf0ed; }
.map-bottom-left { position: absolute; z-index: 400; left: 20px; bottom: 20px; }
.map-status-card { min-width: 228px; height: 51px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid rgba(223,230,224,.9); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 5px 16px rgba(40,62,50,.08); backdrop-filter: blur(8px); }
.map-status-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #eaf4ed; color: var(--green); }
.map-status-icon svg { width: 15px; height: 15px; }
.map-status-card strong, .map-status-card span { display: block; }
.map-status-card strong { color: #41544a; font-size: 9px; font-weight: 700; }
.map-status-card div:nth-child(2) span { margin-top: 3px; color: #99a49e; font-size: 7px; }
.status-pulse { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #53ad76; box-shadow: 0 0 0 3px #e6f4e9; }
.map-scale-note { position: absolute; z-index: 400; left: 270px; bottom: 23px; display: flex; align-items: center; gap: 5px; color: rgba(67,86,75,.7); text-shadow: 0 1px white; font-size: 7px; }
.scale-line { width: 30px; height: 5px; border-bottom: 1px solid #67776d; border-left: 1px solid #67776d; border-right: 1px solid #67776d; }
.map-mode-hint { position: absolute; z-index: 450; top: 72px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; background: #fff; color: #4d6256; box-shadow: var(--shadow); font-size: 9px; font-weight: 700; animation: drop-in .18s ease-out; }
.map-mode-hint[hidden] { display: none; }
.hint-pulse { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px #e7f4eb; animation: pulse 1.5s infinite; }
.map-mode-hint button { border: 0; display: grid; place-items: center; padding: 1px; background: none; color: #9ca8a1; }
.map-mode-hint button svg { width: 13px; height: 13px; }
.custom-marker { width: 29px; height: 35px; position: relative; display: grid; place-items: start center; filter: drop-shadow(0 3px 4px rgba(26,47,36,.24)); }
.custom-marker:before { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotate(45deg); width: 15px; height: 15px; border-radius: 3px; background: var(--marker-color); }
.custom-marker > span { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border: 2px solid white; border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); background: var(--marker-color); color: white; font: 800 8px var(--sans); }
.custom-marker.is-dest { --marker-color: #dd7950; }
.custom-marker.is-origin { --marker-color: #176e54; }
.stop-marker { width: 16px; height: 16px; border: 2px solid white; border-radius: 50%; background: var(--stop-color, #e1854e); box-shadow: 0 0 0 2px var(--stop-color, #e1854e), 0 2px 5px rgba(21,45,32,.22); }
.leaflet-tooltip.stop-tooltip { padding: 5px 7px; border: 0; border-radius: 6px; background: #243a30; color: #fff; box-shadow: 0 3px 8px rgba(22,40,30,.2); font: 600 8px var(--sans); }
.leaflet-tooltip.stop-tooltip:before { border-top-color: #243a30; }
.context-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 11px; box-shadow: 0 8px 22px rgba(27,47,37,.18); }
.context-popup .leaflet-popup-content { margin: 0; min-width: 155px; }
.context-menu { padding: 10px; }
.context-menu strong { display: block; padding: 1px 4px 7px; color: #56665e; font-size: 8px; }
.context-menu button { width: 100%; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 7px; padding: 7px 6px; background: transparent; color: #53655b; font-size: 8px; font-weight: 600; text-align: left; }
.context-menu button:hover { background: #f0f7f2; color: var(--green); }
.context-menu button svg { width: 12px; height: 12px; }

.drawer-backdrop { position: fixed; z-index: 900; inset: 0; background: rgba(25,41,32,.2); opacity: 0; visibility: hidden; transition: .25s; backdrop-filter: blur(1px); }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.lines-drawer { position: fixed; z-index: 910; top: 0; right: 0; bottom: 0; width: min(372px, 100vw); display: flex; flex-direction: column; padding: 25px 22px 16px; background: #fff; box-shadow: -12px 0 36px rgba(24,43,32,.13); transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.75,.2,1); }
.lines-drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-header h2 { margin: 5px 0 0; font: 800 22px var(--display); letter-spacing: -.7px; }
.drawer-close { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #7d8b83; background: #fff; }
.drawer-close:hover { color: var(--green); border-color: #bcd5c4; }
.drawer-close svg { width: 15px; height: 15px; }
.drawer-copy { margin: 9px 0 16px; color: #8a9790; font-size: 10px; line-height: 1.5; }
.line-filters { display: flex; gap: 6px; padding-bottom: 13px; border-bottom: 1px solid #edf1ed; }
.line-filter { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e9efea; border-radius: 7px; padding: 6px 9px; background: #fff; color: #7b8981; font-size: 8px; font-weight: 700; }
.line-filter svg { width: 12px; height: 12px; }
.line-filter:hover { color: var(--green); border-color: #bfd7c6; }
.line-filter.is-active { background: var(--green); border-color: var(--green); color: white; }
.line-catalog { overflow-y: auto; flex: 1; padding: 8px 1px; scrollbar-width: thin; scrollbar-color: #dbe4dd transparent; }
.line-group-title { margin: 10px 2px 7px; color: #9ba69f; font-size: 8px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.line-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 8px; border: 0; border-radius: 9px; background: transparent; text-align: left; transition: background .15s; }
.line-row:hover { background: #f4f8f4; }
.line-row.is-active { background: #eaf5ee; }
.catalog-line-badge { min-width: 36px; height: 26px; padding: 0 6px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; font-size: 9px; font-weight: 800; }
.line-row-copy { min-width: 0; flex: 1; }
.line-row-copy strong, .line-row-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-row-copy strong { color: #4c5e54; font-size: 9px; font-weight: 700; }
.line-row-copy small { margin-top: 3px; color: #9aa59e; font-size: 7px; }
.line-row-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #8c9a91; background: #f3f6f3; }
.line-row-icon svg { width: 13px; height: 13px; }
.line-row.is-active .line-row-icon { background: #d6ebdc; color: var(--green); }
.drawer-footnote { display: flex; gap: 7px; padding-top: 12px; border-top: 1px solid #edf1ed; color: #9aa59e; font-size: 8px; line-height: 1.45; }
.drawer-footnote svg { flex: 0 0 auto; width: 13px; height: 13px; color: #8ba293; }
.toast { position: fixed; z-index: 1200; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 8px; max-width: min(440px, calc(100vw - 30px)); padding: 10px 14px; border: 1px solid rgba(222,231,224,.95); border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); color: #5d7064; font-size: 9px; line-height: 1.45; transition: all .22s; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--green); }
.search-overlay { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: min(20vh, 150px); background: rgba(25,41,32,.17); opacity: 0; visibility: hidden; transition: .2s; backdrop-filter: blur(2px); }
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay-card { position: relative; width: min(515px, calc(100vw - 34px)); min-height: 53px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid #e2e9e3; border-radius: 13px; background: #fff; box-shadow: 0 18px 42px rgba(29,51,39,.18); }
.overlay-search-icon { color: var(--green); display: grid; place-items: center; }
.overlay-search-icon svg { width: 17px; height: 17px; }
.search-overlay-card > input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; color: #42534a; font-size: 11px; }
.search-overlay-card > input::placeholder { color: #a3ada7; }
.search-overlay-card > button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #f3f6f3; color: #85938a; }
.search-overlay-card > button svg { width: 14px; height: 14px; }
.overlay-suggestions { position: absolute; top: calc(100% + 7px); left: 0; right: 0; padding: 5px; border: 1px solid #e5ece7; border-radius: 11px; background: #fff; box-shadow: 0 12px 25px rgba(27,48,38,.1); }
.overlay-suggestions:empty { display: none; }
.overlay-suggestions .suggestion-item { padding: 9px 10px; }

.is-loading .search-button-icon svg { animation: spin 1s linear infinite; }
.leaflet-interactive.route-walk { stroke-dasharray: 7 7; }
.line-map-label { width: auto !important; height: auto !important; background: transparent; border: 0; }
.line-map-label span { display: grid; place-items: center; height: 21px; min-width: 25px; padding: 0 5px; border: 2px solid white; border-radius: 8px; color: white; box-shadow: 0 2px 6px rgba(26,45,34,.2); font: 800 8px var(--sans); }

@keyframes drop-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(231,244,235,.15); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
  .planner-panel { width: 370px; }
  .map-stage { left: 370px; }
  .panel-scroll { padding-left: 18px; padding-right: 18px; }
  .header-location { display: none; }
  .topbar { justify-content: space-between; }
}
@media (max-width: 680px) {
  .app-shell { min-height: 550px; }
  .topbar { position: absolute; z-index: 700; top: 0; left: 0; right: 0; height: 56px; padding: 0 14px; background: rgba(255,255,255,.96); box-shadow: 0 2px 10px rgba(33,53,42,.04); }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
  .brand-mark svg { width: 16px; height: 16px; }
  .brand-name { font-size: 14px; }
  .brand-name small { font-size: 6px; letter-spacing: 1.3px; }
  .topbar-actions { min-width: 0; gap: 7px; }
  .header-link { width: 31px; height: 31px; justify-content: center; padding: 0; border: 1px solid #e8ede9; border-radius: 9px; }
  .header-link span { display: none; }
  .header-link svg { width: 14px; height: 14px; }
  .language-select-wrap { height: 31px; padding: 0 6px; gap: 2px; }
  .language-select-wrap > svg:first-child { display: none; }
  .language-select-wrap select { width: 29px; font-size: 9px; }
  .avatar-button { display: none; }
  .workspace { height: 100dvh; min-height: 550px; }
  .map-stage { inset: 0; }
  .planner-panel { z-index: 450; top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: min(67dvh, 610px); min-height: 410px; border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -7px 25px rgba(32,55,43,.12); overflow: hidden; transition: height .24s ease; }
  .panel-scroll { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); }
  .panel-scroll:before { content: ''; display: block; width: 34px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: #dce4de; }
  .panel-intro { display: none; }
  .planner-card { padding: 13px 13px 10px; border-radius: 14px; }
  .section-heading h2, .results-heading h2 { font-size: 15px; }
  .fields-shell { margin-top: 11px; }
  .route-field-row { min-height: 53px; }
  .field-rail { height: 11px; }
  .time-section { margin-top: 10px; }
  .search-button { margin-top: 10px; height: 40px; }
  .planner-hint { margin-top: 7px; }
  .results-section { margin-top: 14px; }
  .route-list { grid-template-columns: repeat(3, minmax(192px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 3px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .route-list::-webkit-scrollbar { display: none; }
  .route-card { scroll-snap-align: start; }
  .route-card-top { padding: 9px 9px 8px; }
  .route-tag { font-size: 6px; letter-spacing: .55px; }
  .route-minutes { font-size: 15px; }
  .route-times { font-size: 8px; gap: 5px; }
  .route-summary { gap: 3px; }
  .summary-pill { font-size: 6px; padding: 0 4px; }
  .line-badge { min-width: 21px; padding: 0 4px; }
  .route-chevron { right: 8px; top: 31px; }
  .route-disclaimer { margin-top: 8px; }
  .panel-bottom { display: none; }
  .map-top-float { top: 67px; left: 11px; gap: 6px; }
  .map-filter-pill, .map-search-pill { height: 34px; gap: 6px; padding: 0 8px; font-size: 8px; border-radius: 9px; }
  .map-filter-pill .filter-pill-icon { width: 19px; height: 19px; }
  .map-search-pill { min-width: 0; }
  .map-search-pill kbd { display: none; }
  .map-top-right { top: 67px; right: 11px; }
  .map-weather { height: 33px; padding: 0 8px; gap: 5px; }
  .map-weather .weather-divider, .map-weather > span:last-child { display: none; }
  .map-control { width: 33px; height: 33px; }
  .map-zoom-controls { top: 111px; right: 11px; }
  .map-bottom-left { left: 11px; bottom: calc(min(max(67dvh, 410px), 610px) + 13px); }
  .map-status-card { min-width: 0; height: 40px; gap: 7px; padding: 0 8px; }
  .map-status-icon { width: 24px; height: 24px; border-radius: 7px; }
  .map-status-icon svg { width: 13px; height: 13px; }
  .map-status-card strong { font-size: 8px; }
  .map-status-card div:nth-child(2) span { font-size: 6px; }
  .map-scale-note { left: auto; right: 13px; bottom: calc(min(max(67dvh, 410px), 610px) + 17px); font-size: 6px; }
  .map-mode-hint { top: 111px; left: 11px; transform: none; font-size: 8px; padding: 8px 10px; }
  .map-style-toggle { height: 33px; padding: 0 8px; gap: 5px; font-size: 8px; }
  .leaflet-control-attribution { max-width: 180px; font-size: 9px !important; }
  .lines-drawer { top: auto; width: 100%; max-height: 88dvh; height: 86dvh; padding: 21px 17px max(12px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; transform: translateY(105%); }
  .lines-drawer.is-open { transform: translateY(0); }
  .drawer-header h2 { font-size: 20px; }
  .drawer-copy { margin: 8px 0 13px; }
  .toast { bottom: calc(min(max(67dvh, 410px), 610px) + 18px); }
  .search-overlay { padding-top: 76px; }
}
@media (max-width: 390px) {
  .panel-scroll { padding-left: 12px; padding-right: 12px; }
  .time-options { grid-template-columns: .9fr 1.2fr 1.1fr; }
  .time-option { font-size: 7px; }
  .route-list { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .map-weather { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cozy pastel cat theme with larger, calmer type */
:root {
  color-scheme: light;
  --ink: #514953;
  --ink-soft: #675e69;
  --muted: #756d77;
  --muted-2: #8d8490;
  --line: #e9dfe9;
  --paper: #fffdfc;
  --canvas: #f7f2f6;
  --green: #7e678f;
  --green-dark: #695379;
  --green-light: #f1eaf5;
  --orange: #e4a087;
  --shadow: 0 16px 40px rgba(99, 75, 111, .12), 0 3px 10px rgba(99, 75, 111, .05);
  --sans: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Comfortaa', var(--sans);
}
body { background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
button, input, select { font-family: var(--sans); }
button:focus-visible, input:focus-visible, select:focus-visible { outline-color: rgba(144, 122, 165, .38); }
.topbar { background: rgba(255, 251, 253, .97); border-color: #ebdfea; }
.brand { gap: 11px; }
.brand-mark { position: relative; width: 42px; height: 42px; overflow: hidden; border: 1px solid #e5d9ed; border-radius: 16px; background: linear-gradient(145deg, #f5eaf5, #e8def0); box-shadow: 0 5px 13px rgba(123, 99, 143, .16); transform: none; }
.brand-mark svg { display: none; }
.brand-cat-head { position: relative; display: block; width: 27px; height: 25px; background: #a59ba9; clip-path: polygon(0 27%, 19% 0, 38% 20%, 62% 20%, 81% 0, 100% 27%, 94% 72%, 77% 96%, 23% 96%, 6% 72%); }
.brand-cat-head i { position: absolute; top: 12px; width: 3px; height: 4px; border-radius: 50%; background: #514953; }
.brand-cat-head i:first-child { left: 7px; }
.brand-cat-head i:nth-child(2) { right: 7px; }
.brand-cat-head b { position: absolute; top: 17px; left: 12px; width: 4px; height: 3px; border-radius: 50% 50% 70% 70%; background: #efb5c3; }
.brand-name { padding-bottom: 12px; color: #514953; font-family: var(--display); font-size: 20px !important; letter-spacing: -.5px; }
.brand-name > span { color: var(--green); }
.brand-name small { color: #7d7183; font-size: 12px !important; letter-spacing: 1px; }
.header-location { color: #655d68; font-size: 14px !important; }
.header-live-dot { background: #bf91b3; box-shadow: 0 0 0 3px #f3e7f1; }
.header-divider { background: #e7dce8; }
.header-link { color: #5f5565; font-size: 14px !important; }
.header-link:hover { color: var(--green-dark); background: #f4edf6; }
.language-select-wrap { height: 40px; border-color: var(--line); border-radius: 14px; color: var(--ink-soft); background: #fffdfd; }
.language-select-wrap select { font-size: 14px !important; }
.avatar-button { width: 40px; height: 40px; border-color: var(--line); border-radius: 14px; background: #f4edf6; color: #776880; }
.workspace, .planner-panel { background: #fffafd; }
.planner-panel { border-color: #eadfeb; box-shadow: 6px 0 28px rgba(99, 75, 111, .06); }
.panel-scroll { scrollbar-color: #d9c9df transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: #d9c9df; }
.panel-intro h1 { color: #514953; font: 800 32px/1.2 var(--display); letter-spacing: -.8px; }
.panel-intro h1 span { color: #927aa6; }
.eyebrow { color: #716579; font-size: 13px !important; letter-spacing: .55px; }
.eyebrow-star, .bottom-mark { color: #df9a9f; }
.intro-copy { color: #716a74; font-size: 16px !important; line-height: 1.55; }
.planner-card { padding: 20px 18px 16px; border-color: #eadfea; border-radius: 23px; background: #fffdfd; box-shadow: 0 9px 26px rgba(105, 80, 117, .07); }
.section-kicker { color: #766b7a; font-size: 13px !important; letter-spacing: .55px; }
.section-heading h2, .results-heading h2 { color: #4e4652; font: 700 21px/1.25 var(--display); letter-spacing: -.35px; }
.planner-card-icon { width: 36px; height: 36px; border-radius: 13px; color: #846e98; background: #f2eaf6; }
.route-field-row { min-height: 68px; border-color: #eadfea; border-radius: 16px; background: #fffefe; }
.route-field-row:focus-within { border-color: #c1a9cf; box-shadow: 0 0 0 4px rgba(144, 122, 165, .11); }
.field-dot { width: 30px; height: 30px; border-radius: 11px; font-size: 13px !important; }
.field-dot-origin { background: #927aa6; }
.field-dot-destination { color: #925c64; background: #fbe9e7; }
.field-entry label { color: #6f6474; font-size: 13px !important; letter-spacing: .15px; }
.field-entry input { color: #48424b; font-size: 16px !important; }
.field-entry input::placeholder { color: #918995; }
.field-map-button { width: 36px; height: 36px; border-radius: 12px; color: #796e7d; background: #f5eff6; }
.field-map-button:hover, .field-map-button.is-picking { color: #735c89; background: #eee5f2; }
.field-rail:before { border-color: #d4c4dc; }
.swap-button { width: 36px; height: 36px; border-color: #eadfea; border-radius: 13px; color: #786b7e; box-shadow: 0 3px 9px rgba(99, 75, 111, .09); }
.location-link { color: #79628e; font-size: 14px !important; }
.location-link-note { color: #766d79; font-size: 13px !important; }
.time-section { margin-top: 17px; }
.time-option { min-height: 44px; gap: 7px; border-color: #e9e1eb; border-radius: 13px; background: #fffbfd; color: #6d6471; font-size: 13.5px !important; }
.time-option.is-active { border-color: #cbb8d7; background: #f2eaf6; color: #715985; box-shadow: inset 0 0 0 1px rgba(113, 89, 133, .04); }
.datetime-wrap { min-height: 44px; border-color: #e9dfea; border-radius: 12px; color: #776b7c; }
.datetime-wrap input { width: auto; min-width: 0; flex: 1; font-size: 14px !important; }
.datetime-wrap > span { color: #716778; font-size: 13px !important; }
.search-button { min-height: 50px; height: auto; border-radius: 15px; background: #7e678f; color: #fff; font: 800 16px/1.3 var(--sans); box-shadow: 0 7px 16px rgba(105, 83, 121, .23); }
.search-button:hover { background: #695379; box-shadow: 0 9px 19px rgba(105, 83, 121, .28); }
.search-arrow { color: #e7d9ee; }
.planner-hint { color: #746b77; font-size: 13px !important; }
.planner-hint svg { color: #d990a4; }
.suggestions { padding: 7px; border-color: #eadfea; border-radius: 17px; background: #fffdfd; box-shadow: 0 14px 32px rgba(91, 69, 104, .15); }
.suggestion-item { gap: 11px; padding: 11px; border-radius: 12px; }
.suggestion-item:hover { background: #f6f0f7; }
.suggestion-icon { width: 36px; height: 36px; border-radius: 12px; background: #f1eaf5; color: #806b95; }
.suggestion-copy strong { color: #504753; font-size: 15px !important; }
.suggestion-copy small { color: #746b77; font-size: 13px !important; }
.suggestion-empty { color: #6f6672; font-size: 14px !important; }
.suggestion-foot { padding: 8px 10px; color: #746b77; font-size: 12.5px !important; }
.suggestion-search-action { padding: 8px 10px; color: #745d89; font-size: 14px !important; }
.results-section { margin-top: 24px; }
.results-heading { margin-bottom: 12px; }
.results-heading h2 { font-size: 21px !important; }
.result-count { width: 30px; height: 30px; border-radius: 11px; color: #705987; background: #f1eaf5; font-size: 14px !important; }
.route-list { gap: 11px; }
.route-card { border-color: #e9dfea; border-radius: 17px; background: #fffdfd; }
.route-card:hover { border-color: #d6c3df; }
.route-card.is-selected { border-color: #c4abd1; box-shadow: 0 5px 15px rgba(102, 78, 119, .10); }
.route-card-top { padding: 13px 14px 12px; }
.route-card-top:hover { background: #fff9fc; }
.route-card-topline { margin-bottom: 8px; }
.route-tag { gap: 6px; color: #725b87; font-size: 12.5px !important; letter-spacing: .35px; }
.route-tag.tag-orange { color: #a56858; }
.route-tag.tag-blue { color: #647a98; }
.route-minutes { color: #4b4350; font-size: 22px !important; letter-spacing: -.3px; }
.route-minutes small { color: #756c78; font-size: 13px !important; }
.route-times { margin-bottom: 10px; color: #645b68; font-size: 14px !important; }
.route-times strong { color: #4c4350; font-size: 14px !important; }
.route-summary { gap: 7px; flex-wrap: wrap; }
.summary-pill { min-height: 27px; gap: 5px; padding: 3px 8px; border-radius: 10px; color: #625966; background: #f4eef5; font-size: 13px !important; }
.line-badges { gap: 6px; }
.line-badge { height: 26px; min-width: 29px; padding: 0 7px; border-radius: 9px; font-size: 13px !important; }
.route-chevron svg { width: 17px; height: 17px; }
.route-details { padding: 0 14px 14px; border-color: #eee4ee; }
.route-details-head { padding: 11px 0 8px; color: #6f6673; font-size: 13px !important; }
.route-details-head strong { color: #504852; }
.step-list { padding-left: 17px; }
.step-list:before { left: 5px; border-color: #d5c5dc; }
.route-step { grid-template-columns: 16px minmax(0,1fr) auto; gap: 9px; padding: 8px 0; }
.step-copy strong { color: #514952; font-size: 14px !important; line-height: 1.45; }
.step-copy small { color: #716976; font-size: 13px !important; line-height: 1.45; }
.step-time { color: #6c6270; font-size: 13px !important; }
.transfer-note { gap: 8px; margin: 7px 0 2px 24px; padding: 8px 10px; border-color: #f0dcd7; border-radius: 11px; background: #fff3f0; color: #795c58; font-size: 13px !important; }
.route-disclaimer { color: #6e6671; font-size: 13px !important; line-height: 1.5; }
.route-disclaimer svg { color: #c58b81; }
.feed-status { gap: 9px; padding: 11px 12px; border-color: #e5d8ea; border-radius: 13px; background: #f8f2fa; color: #5c5361; font-size: 13.5px !important; line-height: 1.5; }
.feed-status.is-warning { border-color: #efdcd4; background: #fff7f2; color: #705950; }
.panel-bottom { color: #6e6572; font-size: 13px !important; }
.panel-bottom button { color: #6e5c7e; font-size: 13px !important; }
.map-filter-pill, .map-search-pill { min-height: 44px; height: auto; gap: 9px; padding: 7px 13px; border-color: rgba(231, 220, 235, .96); border-radius: 15px; color: #544b59; box-shadow: 0 5px 17px rgba(79, 61, 89, .12); font-size: 14px !important; }
.map-filter-pill:hover, .map-search-pill:hover { border-color: #cbb8d7; color: #705987; box-shadow: 0 7px 18px rgba(79, 61, 89, .15); }
.filter-pill-icon { width: 27px; height: 27px; border-radius: 9px; background: #f2eaf6; color: #806b95; }
.line-counter { width: 22px; height: 22px; border-radius: 8px; color: #685d70; background: #f0e9f2; font-size: 12px !important; }
.map-search-pill kbd { font: 12px var(--sans); }
.map-weather { min-height: 42px; height: auto; padding: 7px 12px; border-color: #eadfeb; border-radius: 14px; color: #655c69; font-size: 13px !important; }
.weather-city { color: #62556d; font-size: 12px !important; letter-spacing: .55px; }
.map-style-toggle { min-height: 42px; height: auto; border-color: #eadfeb; border-radius: 14px; color: #5d5362; font-size: 14px !important; }
.map-style-toggle:hover { color: #705987; background: #f5eff7; }
.map-control { width: 42px; height: 42px; border-color: #eadfeb; border-radius: 14px; color: #695d73; }
.map-control:hover { color: #705987; background: #f5eff7; }
.map-zoom-controls { border-color: #eadfeb; border-radius: 15px; box-shadow: 0 5px 17px rgba(79, 61, 89, .12); }
.map-zoom-controls button { width: 36px; height: 36px; color: #695d73; }
.map-bottom-left { left: 22px; bottom: 22px; }
.map-status-card { min-width: 250px; height: 62px; gap: 11px; padding: 0 14px; border-color: #eadfeb; border-radius: 17px; background: rgba(255, 251, 253, .95); box-shadow: 0 6px 18px rgba(79, 61, 89, .11); }
.map-status-icon { width: 36px; height: 36px; border-radius: 12px; background: #f1eaf5; color: #806b95; }
.map-status-card strong { color: #524a57; font-size: 14px !important; }
.map-status-card div:nth-child(2) span { color: #706775; font-size: 12.5px !important; }
.status-pulse { background: #bb89ad; box-shadow: 0 0 0 3px #f3e8f1; }
.map-scale-note { color: #514953; font-size: 12px !important; text-shadow: 0 1px 3px #fff; }
.scale-line { border-color: #6e5d77; }
.map-mode-hint { padding: 12px 15px; border: 1px solid #eadfea; border-radius: 15px; color: #594f60; font-size: 14px !important; }
.hint-pulse { background: #a08ab4; box-shadow: 0 0 0 4px #f1eaf5; }
.custom-marker > span { font-size: 13px; }
.leaflet-tooltip.stop-tooltip { padding: 7px 10px; border-radius: 10px; background: #544b58; font: 700 13px var(--sans); }
.context-popup .leaflet-popup-content-wrapper { border: 1px solid #eadfea; border-radius: 16px; box-shadow: 0 9px 24px rgba(79, 61, 89, .18); }
.context-popup .leaflet-popup-content { min-width: 190px; }
.context-menu { padding: 13px; }
.context-menu strong { padding: 2px 5px 9px; color: #554b5b; font-size: 14px !important; }
.context-menu button { gap: 9px; border-radius: 11px; padding: 10px 8px; color: #5b5260; font-size: 14px !important; }
.drawer-backdrop { background: rgba(55, 42, 61, .25); }
.lines-drawer { border-color: #e9dfea; background: #fffafd; box-shadow: -10px 0 35px rgba(85, 63, 97, .14); }
.drawer-header h2 { color: #514953; font: 700 27px/1.2 var(--display); letter-spacing: -.4px; }
.drawer-copy { color: #6e6571; font-size: 15px !important; line-height: 1.5; }
.line-filter { gap: 7px; border-color: #eadfea; border-radius: 12px; padding: 9px 12px; color: #685e6e; font-size: 14px !important; }
.line-filter.is-active { border-color: #c7b3d3; background: #f2eaf6; color: #705987; }
.line-group-title { color: #766b7b; font-size: 13px !important; letter-spacing: .45px; }
.catalog-line-badge { min-width: 42px; height: 32px; border-radius: 10px; font-size: 14px !important; }
.line-row-copy strong { color: #514953; font-size: 15px !important; }
.line-row-copy small { color: #706775; font-size: 13px !important; }
.drawer-footnote { gap: 9px; color: #6f6672; font-size: 13px !important; line-height: 1.5; }
.toast { padding: 12px 16px; border-color: #e9dfea; border-radius: 15px; color: #5b5260; font-size: 14px !important; line-height: 1.45; }
.search-overlay-card { gap: 13px; padding: 0 15px; border-color: #e8ddea; border-radius: 17px; box-shadow: 0 18px 44px rgba(79, 61, 89, .2); }
.search-overlay-card > input { height: 58px; color: #504753; font-size: 16px !important; }
.search-overlay-card > input::placeholder { color: #827985; }
.search-overlay-card > button { width: 34px; height: 34px; border-radius: 10px; background: #f1eaf5; color: #6f5d81; }
.overlay-suggestions { border-color: #eadfea; border-radius: 15px; box-shadow: 0 12px 25px rgba(79, 61, 89, .13); }
.leaflet-control-attribution { color: #514953 !important; font-size: 12px !important; }
.leaflet-control-attribution a { color: #655274 !important; }
.line-map-label span { height: 27px; min-width: 31px; padding: 0 7px; border-radius: 10px; font-size: 13px; }

@media (max-width: 680px) {
  .topbar { height: 60px; padding: 0 12px; background: rgba(255, 251, 253, .97); }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 14px; }
  .brand-cat-head { transform: scale(.9); }
  .brand-name { font-size: 17px !important; }
  .brand-name small { font-size: 12px !important; letter-spacing: .55px; }
  .topbar-actions { gap: 6px; }
  .header-link { width: 40px; height: 40px; border-color: #eadfea; border-radius: 13px; }
  .header-link svg { width: 18px; height: 18px; }
  .language-select-wrap { height: 40px; padding: 0 8px; }
  .language-select-wrap select { width: 34px; font-size: 13px !important; }
  .workspace { min-height: 550px; }
  .planner-panel { height: min(70dvh, 650px); min-height: 430px; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 28px rgba(85, 63, 97, .16); }
  .panel-scroll { padding: 15px 16px max(16px, env(safe-area-inset-bottom)); }
  .panel-scroll:before { width: 42px; height: 5px; margin-bottom: 15px; background: #d7c8de; }
  .planner-card { padding: 17px 14px 15px; border-radius: 20px; }
  .section-heading h2, .results-heading h2 { font-size: 20px !important; }
  .route-field-row { min-height: 64px; }
  .time-options { gap: 6px; }
  .time-option { min-height: 48px; padding: 5px 4px; gap: 4px; white-space: normal; font-size: 13px !important; line-height: 1.15; }
  .search-button { min-height: 50px; }
  .route-list { grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 10px; }
  .route-card-top { padding: 12px; }
  .route-tag { font-size: 12px !important; }
  .route-minutes { font-size: 20px !important; }
  .route-times { gap: 6px; font-size: 13px !important; }
  .summary-pill { min-height: 27px; padding: 4px 7px; font-size: 12.5px !important; }
  .map-top-float { top: 72px; left: 10px; gap: 6px; }
  .map-filter-pill, .map-search-pill { min-height: 42px; gap: 6px; padding: 7px 9px; border-radius: 13px; font-size: 13px !important; }
  .map-search-pill kbd { display: none; }
  .map-top-right { top: 72px; right: 10px; gap: 6px; }
  .map-style-toggle, .map-control { min-height: 40px; height: 40px; border-radius: 13px; }
  .map-style-toggle { padding: 0 9px; gap: 5px; font-size: 13px !important; }
  .map-control { width: 40px; }
  .map-zoom-controls { top: 123px; right: 10px; }
  .map-zoom-controls button { width: 36px; height: 36px; }
  .map-bottom-left { left: 10px; bottom: calc(min(max(70dvh, 430px), 650px) + 12px); }
  .map-status-card { min-width: 0; height: 56px; gap: 8px; padding: 0 10px; }
  .map-status-icon { width: 32px; height: 32px; }
  .map-status-card strong { font-size: 13px !important; }
  .map-status-card div:nth-child(2) span { font-size: 12px !important; }
  .map-scale-note { left: auto; right: 10px; bottom: calc(min(max(70dvh, 430px), 650px) + 15px); font-size: 12px !important; }
  .map-mode-hint { top: 122px; left: 10px; padding: 10px 12px; font-size: 13px !important; }
  .map-weather { display: none; }
  .leaflet-control-attribution { max-width: min(260px, 62vw); font-size: 11px !important; }
  .lines-drawer { max-height: 90dvh; height: 88dvh; padding: 23px 18px max(16px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .drawer-header h2 { font-size: 24px !important; }
  .toast { bottom: calc(min(max(70dvh, 430px), 650px) + 16px); font-size: 13px !important; }
  .search-overlay { padding: 78px 12px 0; }
}
@media (max-width: 390px) {
  .brand-name { font-size: 16px !important; }
  .brand-name small { font-size: 12px !important; }
  .topbar-actions { gap: 5px; }
  .header-link { width: 37px; height: 37px; }
  .language-select-wrap { height: 37px; }
  .map-weather { display: none; }
  .map-style-toggle { padding: 0 7px; font-size: 12px !important; }
  .time-option { font-size: 13px !important; }
}

/* Mobile bottom sheet: keep a useful map area visible and stack route options vertically. */
.panel-sheet-toggle { display: none; }
@media (max-width: 680px) {
  .workspace { --mobile-sheet-height: min(52dvh, 420px); }
  .workspace.sheet-expanded { --mobile-sheet-height: min(72dvh, 680px); }
  .planner-panel {
    height: var(--mobile-sheet-height);
    min-height: min(320px, 48dvh);
    max-height: calc(100dvh - 72px - env(safe-area-inset-top));
    border-radius: 23px 23px 0 0;
    transition: height .26s cubic-bezier(.2,.7,.25,1);
  }
  .planner-panel.is-expanded { height: var(--mobile-sheet-height); }
  .panel-scroll { padding: 4px 14px max(16px, env(safe-area-inset-bottom)); }
  .panel-scroll:before { display: none; }
  .panel-sheet-toggle {
    position: sticky;
    top: 0;
    z-index: 15;
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 4px;
    padding: 3px 8px 6px;
    border: 0;
    background: rgba(255,253,249,.97);
    color: #705d49;
    cursor: pointer;
    touch-action: manipulation;
  }
  .panel-sheet-grip { width: 36px; height: 5px; border-radius: 8px; background: #dfc8b6; }
  .panel-sheet-toggle-label { font-size: 13px; font-weight: 800; }
  .panel-sheet-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
  .planner-panel.is-expanded .panel-sheet-toggle svg { transform: rotate(180deg); }
  .planner-card { padding: 12px 13px 9px; }
  .section-heading h2, .results-heading h2 { font-size: 19px !important; }
  .fields-shell { margin-top: 8px; }
  .route-field-row { min-height: 54px; }
  .time-section { margin-top: 8px; }
  .time-option { min-height: 46px; font-size: 13px !important; }
  .search-button { min-height: 46px; margin-top: 7px; }
  .planner-hint, .location-link-note { display: none; }
  .location-link { margin-top: 7px; }
  .results-section { margin-top: 15px; }
  .route-list { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; overflow: visible; scroll-snap-type: none; padding-bottom: 4px; }
  .route-card { min-width: 0; scroll-snap-align: none; }
  .route-card-top { padding: 13px 13px 11px; }
  .route-tag { font-size: 12px !important; }
  .route-minutes { font-size: 20px !important; }
  .route-times { gap: 7px; font-size: 13px !important; }
  .summary-pill { min-height: 28px; padding: 4px 8px; font-size: 12px !important; }
  .route-disclaimer, .feed-status { font-size: 13px !important; line-height: 1.45; }
  .map-bottom-left { bottom: calc(var(--mobile-sheet-height) + 11px); }
  .map-scale-note { bottom: calc(var(--mobile-sheet-height) + 15px); font-size: 11px !important; }
  .toast { bottom: calc(var(--mobile-sheet-height) + 14px); font-size: 13px !important; }
  .map-status-card strong { font-size: 12px !important; }
  .map-status-card div:nth-child(2) span { font-size: 11px !important; }
}

/* Warm gray, cocoa and rose palette inspired by the supplied cat illustration */
:root {
  --ink: #493725;
  --ink-soft: #685642;
  --muted: #796b5b;
  --muted-2: #978876;
  --line: #e7ddcf;
  --paper: #fffdf9;
  --canvas: #f7f2eb;
  --green: #674326;
  --green-dark: #50351f;
  --green-light: #f9e8e8;
  --orange: #e8899d;
  --shadow: 0 16px 40px rgba(86, 59, 34, .12), 0 3px 10px rgba(86, 59, 34, .05);
}
body { background: var(--canvas); color: var(--ink); }
button:focus-visible, input:focus-visible, select:focus-visible { outline-color: rgba(104, 67, 38, .35); }
.topbar { background: rgba(255, 252, 247, .97); border-color: #e9dfd3; }
.brand-mark { overflow: visible; border-color: #dfcbb5; border-radius: 15px; background: #f4e7d7; box-shadow: 0 5px 13px rgba(91, 61, 35, .16); }
.brand-cat-head { background: #b8b0a6; filter: drop-shadow(0 0 1.15px #593719); }
.brand-cat-head i { background: #5b381b; }
.brand-cat-head b { background: #ef91a4; }
.brand-heart { position: absolute; top: -7px; right: -7px; z-index: 1; color: #ef91a4; font: 900 14px/1 var(--sans); transform: rotate(12deg); -webkit-text-stroke: .7px #603a1d; text-shadow: 0 1px 0 #603a1d; }
.brand-name { color: #493725; }
.brand-name > span { color: #a95d6c; }
.brand-name small { color: #806c56; }
.header-location { color: #6c5946; }
.header-live-dot { background: #e88a9b; box-shadow: 0 0 0 3px #fae7e8; }
.header-divider { background: #e4d7c8; }
.header-link { color: #66533f; }
.header-link:hover { color: #a45d68; background: #fbefed; }
.language-select-wrap { color: #66533f; background: #fffdf9; }
.avatar-button { background: #f7ede7; color: #73583f; }
.avatar-button:hover { border-color: #e3b7b8; background: #fae8e8; color: #92535e; }
.workspace, .planner-panel { background: #fffdf9; }
.planner-panel { border-color: #e9dfd3; box-shadow: 6px 0 28px rgba(86, 59, 34, .06); }
.panel-scroll { scrollbar-color: #d9cbbb transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: #d9cbbb; }
.panel-intro h1 { color: #493725; }
.panel-intro h1 span { color: #aa6370; }
.eyebrow { color: #725f4b; }
.eyebrow-star, .bottom-mark { color: #e8899d; }
.intro-copy { color: #746655; }
.planner-card { border-color: #e9dfd3; background: #fffdf9; box-shadow: 0 9px 26px rgba(86, 59, 34, .07); }
.section-kicker { color: #786b59; }
.section-heading h2, .results-heading h2 { color: #493725; }
.planner-card-icon { color: #735136; background: #f7ece5; }
.route-field-row { border-color: #e7ddcf; background: #fffefa; }
.route-field-row:focus-within { border-color: #d9aab0; box-shadow: 0 0 0 4px rgba(210, 135, 147, .12); }
.field-dot-origin { background: #674326; }
.field-dot-destination { color: #8d4e59; background: #fbe7e5; }
.field-entry label { color: #7f705f; }
.field-entry input { color: #493725; }
.field-entry input::placeholder { color: #9d907f; }
.field-map-button { color: #796b5a; background: #f7f1e9; }
.field-map-button:hover, .field-map-button.is-picking { color: #92515e; background: #fae9e9; }
.field-rail:before { border-color: #d8c8b7; }
.swap-button { border-color: #e7ddcf; color: #75634f; box-shadow: 0 3px 9px rgba(86, 59, 34, .09); }
.swap-button:hover { color: #9d5a65; border-color: #dfb5b7; }
.location-link { color: #765033; }
.location-link-note { color: #8a7c6c; }
.time-help { color: #9b8d7c; }
.time-option { border-color: #e9dfd3; background: #fffaf5; color: #756653; }
.time-option:hover { border-color: #e0b8b9; color: #995761; }
.time-option.is-active { border-color: #e3b4b8; background: #fae9e9; color: #94515d; box-shadow: inset 0 0 0 1px rgba(148, 81, 93, .04); }
.datetime-wrap { border-color: #e7ddcf; color: #796b59; }
.datetime-wrap > span { color: #796b59; }
.search-button { background: #674326; box-shadow: 0 7px 16px rgba(86, 59, 34, .22); }
.search-button:hover { background: #50351f; box-shadow: 0 9px 19px rgba(86, 59, 34, .27); }
.search-arrow { color: #f4d9d9; }
.planner-hint { color: #786b5b; }
.planner-hint svg { color: #df8c9e; }
.suggestions { border-color: #e7ddcf; background: #fffdf9; box-shadow: 0 14px 32px rgba(79, 54, 32, .15); }
.suggestion-item:hover { background: #faf1ec; }
.suggestion-icon { background: #f7ece5; color: #765137; }
.suggestion-copy strong { color: #493725; }
.suggestion-copy small, .suggestion-empty { color: #796d5e; }
.suggestion-foot { border-color: #f0e7de; color: #847765; }
.suggestion-search-action { color: #86533d; }
.suggestion-search-action:hover { background: #fbf2ec; }
.results-heading h2 { color: #493725; }
.result-count { color: #8b4f5a; background: #f9e8e8; }
.route-card { border-color: #e9dfd3; background: #fffdf9; }
.route-card:hover { border-color: #e3c7b7; }
.route-card.is-selected { border-color: #dfaeb4; box-shadow: 0 5px 15px rgba(126, 73, 68, .10); }
.route-card-top:hover { background: #fff9f4; }
.route-tag { color: #765033; }
.route-tag.tag-orange { color: #aa5d68; }
.route-tag.tag-blue { color: #5f7182; }
.route-minutes, .route-times strong { color: #493725; }
.route-minutes small, .route-times { color: #716250; }
.summary-pill { color: #675743; background: #f5eee5; }
.route-details { border-color: #eee4d9; }
.route-details-head { color: #786b5a; }
.route-details-head strong, .step-copy strong { color: #58442f; }
.step-copy small, .step-time { color: #786c5e; }
.step-list:before { border-color: #d8c8b7; }
.route-step:hover .step-copy strong { color: #9f5865; }
.route-step.step-transit .step-marker { background: #a55b68; box-shadow: 0 0 0 3px #f9e8e8; }
.route-step.step-walk .step-marker { box-shadow: 0 0 0 1.5px #92775d; }
.transfer-note { border-color: #efddd0; background: #fff5eb; color: #806045; }
.route-disclaimer { color: #786d60; }
.route-disclaimer svg { color: #d58790; }
.feed-status { border-color: #e5d8cb; background: #faf4ed; color: #665642; }
.feed-status svg { color: #795333; }
.feed-status.is-warning { border-color: #efd8d2; background: #fff4f0; color: #76534c; }
.feed-status.is-warning svg { color: #bd747b; }
.panel-bottom { border-color: #eee5da; color: #827562; }
.panel-bottom button { color: #77573b; }
.panel-bottom button:hover { color: #a45b67; }
.map-filter-pill, .map-search-pill { border-color: rgba(230, 219, 205, .96); color: #594733; box-shadow: 0 5px 17px rgba(86, 59, 34, .12); }
.map-filter-pill:hover, .map-search-pill:hover { border-color: #ddb4b5; color: #95545f; box-shadow: 0 7px 18px rgba(86, 59, 34, .15); }
.filter-pill-icon { background: #f7ece5; color: #765137; }
.line-counter { color: #766650; background: #f3ece2; }
.map-search-pill, .map-search-pill kbd { color: #817563; }
.map-weather { border-color: #e8dece; color: #715d46; background: rgba(255, 252, 247, .96); }
.weather-city { color: #795237; }
.map-style-toggle, .map-control { border-color: #e6dacb; color: #72583e; background: rgba(255, 252, 247, .96); }
.map-style-toggle:hover, .map-control:hover { color: #985660; background: #fff6f2; }
.map-zoom-controls { border-color: #e6dacb; box-shadow: 0 5px 17px rgba(86, 59, 34, .12); }
.map-zoom-controls button { color: #72583e; }
.map-status-card { border-color: #e8dece; background: rgba(255, 252, 247, .96); box-shadow: 0 6px 18px rgba(86, 59, 34, .11); }
.map-status-icon { background: #f7ece5; color: #765137; }
.map-status-card strong { color: #55422e; }
.map-status-card div:nth-child(2) span { color: #796b5a; }
.status-pulse { background: #df8c9d; box-shadow: 0 0 0 3px #fae7e8; }
.map-scale-note { color: #59452f; }
.scale-line { border-color: #674326; }
.map-mode-hint { border-color: #e8d9cc; color: #604c37; background: rgba(255, 252, 247, .97); }
.map-mode-hint button { color: #8a7864; }
.hint-pulse { background: #df8c9d; box-shadow: 0 0 0 4px #fae8e8; }
.leaflet-tooltip.stop-tooltip { background: #5b3a20; }
.context-popup .leaflet-popup-content-wrapper { border-color: #e8d9cc; box-shadow: 0 9px 24px rgba(79, 54, 32, .18); }
.context-menu strong, .context-menu button { color: #58442f; }
.context-menu button:hover { background: #fbefec; color: #96535f; }
.drawer-backdrop { background: rgba(72, 49, 30, .26); }
.lines-drawer { border-color: #e8d9cc; background: #fffaf4; box-shadow: -10px 0 35px rgba(85, 59, 35, .15); }
.drawer-header h2 { color: #493725; }
.drawer-close { border-color: #e6dacb; color: #75624d; background: #fffdf9; }
.drawer-close:hover { color: #985660; border-color: #dfb5b7; }
.drawer-copy, .drawer-footnote { color: #746452; }
.line-filter { border-color: #e6dacb; color: #6b563f; }
.line-filter.is-active { border-color: #e0b3b7; background: #fae9e9; color: #92515d; }
.line-row:hover { background: #fbf1eb; }
.line-row.is-active { background: #fae9e9; }
.line-row-icon { color: #79644b; background: #f5eee5; }
.line-row.is-active .line-row-icon { color: #94515d; background: #f4d8dc; }
.line-group-title, .line-row-copy strong { color: #5b4732; }
.line-row-copy small { color: #796c5d; }
.toast { border-color: #e8d9cc; color: #5b4732; background: #fffdf9; }
.search-overlay-card { border-color: #e8d9cc; box-shadow: 0 18px 44px rgba(79, 54, 32, .2); }
.search-overlay { background: rgba(72, 49, 30, .18); }
.search-overlay-card > input { color: #493725; }
.search-overlay-card > input::placeholder { color: #887a68; }
.search-overlay-card > button { background: #f7ece5; color: #765137; }
.overlay-suggestions { border-color: #e8d9cc; box-shadow: 0 12px 25px rgba(79, 54, 32, .13); }
.leaflet-control-attribution { color: #59452f !important; }
.leaflet-control-attribution a { color: #765137 !important; }

@media (max-width: 680px) {
  .topbar { background: rgba(255, 252, 247, .98); }
  .planner-panel { box-shadow: 0 -8px 28px rgba(86, 59, 34, .16); }
  .panel-scroll:before { background: #dfc8b6; }
}

.install-app-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #e4c4c2; border-radius: 14px; background: #fae9e9; color: #87515a; font-size: 14px; font-weight: 800; transition: transform .18s, background .18s, border-color .18s; }
.install-app-button:hover { transform: translateY(-1px); border-color: #d6a0a4; background: #f7dcdf; }
.install-app-button svg { width: 17px; height: 17px; }
.install-app-button[hidden] { display: none; }
.install-dialog { width: min(480px, calc(100vw - 30px)); max-width: none; max-height: min(88dvh, 760px); margin: auto; padding: 24px; overflow: auto; border: 1px solid #e6d6c8; border-radius: 25px; background: #fffaf4; color: #493725; box-shadow: 0 24px 80px rgba(65, 43, 25, .24); }
.install-dialog::backdrop { background: rgba(65, 43, 25, .34); backdrop-filter: blur(3px); }
.install-dialog.is-open { display: block; position: fixed; inset: 0; }
.install-dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.install-dialog-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: #f7e8e6; color: #80513e; }
.install-dialog-icon svg { width: 23px; height: 23px; }
.install-dialog-close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #e6d9ca; border-radius: 14px; background: #fffdf9; color: #75634f; }
.install-dialog-close:hover { border-color: #dfb5b7; color: #985660; }
.install-dialog h2 { margin: 0; color: #493725; font: 700 25px/1.25 var(--display); }
.install-dialog p { margin: 9px 0 16px; color: #746452; font-size: 15px; line-height: 1.5; }
.install-dialog .install-https-note { display: flex; align-items: flex-start; gap: 8px; margin: -3px 0 16px; padding: 10px 12px; border: 1px solid #ecd8ce; border-radius: 13px; background: #fff4ed; color: #73563f; font-size: 13px; }
.install-https-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: #a96557; }
.install-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 10px; color: #5d4934; font-size: 15px; line-height: 1.5; }
.install-step-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 11px; background: #f8e7e7; color: #92515d; font-size: 14px; font-weight: 900; }
.install-help-link { display: inline-block; margin: 17px 0 15px; color: #80513e; font-size: 14px; font-weight: 800; text-underline-offset: 3px; }
.install-done-button { width: 100%; min-height: 48px; border: 0; border-radius: 15px; background: #674326; color: white; font-size: 15px; font-weight: 800; }
.install-done-button:hover { background: #50351f; }
@media (max-width: 680px) {
  .topbar { top: 0; height: calc(60px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .install-app-button { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 13px; }
  .install-app-button span { display: none; }
  .map-top-float, .map-top-right { top: calc(72px + env(safe-area-inset-top)); }
  .map-zoom-controls { top: calc(123px + env(safe-area-inset-top)); }
  .map-mode-hint { top: calc(122px + env(safe-area-inset-top)); }
  .install-dialog { padding: 21px 19px max(19px, env(safe-area-inset-bottom)); border-radius: 23px; }
  .install-dialog h2 { font-size: 23px; }
  .install-steps li { font-size: 14px; }
}
