@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #172139;
  --muted: #71809a;
  --line: #e8ecf2;
  --paper: #fff;
  --canvas: #f6f8fb;
  --accent: #3258dc;
  --accent-dark: #2447bd;
  --mint: #32a889;
  --soft-blue: #eff3ff;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--canvas); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(50,88,220,.28); outline-offset: 2px; }
.app-shell { display: flex; flex-direction: column; height: 100dvh; min-height: 500px; }
.topbar { height: 74px; flex: 0 0 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: #fff; border-bottom: 1px solid #edf0f4; z-index: 500; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); min-width: 225px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; box-shadow: 0 5px 14px rgba(50,88,220,.2); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-copy strong { font: 800 21px/1 'Manrope', sans-serif; letter-spacing: -.9px; }
.brand-copy small { font-size: 8px; letter-spacing: 1.65px; color: #8994a8; font-weight: 700; }
.topbar-center { display: flex; align-items: center; gap: 9px; color: #6c7890; font-size: 12px; font-weight: 500; }
.live-dot { width: 7px; height: 7px; background: #39b48f; border-radius: 50%; box-shadow: 0 0 0 4px #e9f7f1; }
.topbar-separator { color: #c6cdd7; }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-width: 225px; }
.icon-button, .profile-button { display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line); background: #fff; transition: .18s ease; }
.icon-button { width: 37px; height: 37px; border-radius: 12px; color: #67758e; }
.icon-button:hover { color: var(--accent); border-color: #cdd8fb; background: #f7f8ff; }
.icon-button svg, .locate-fab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: #fff; background: #202b4b; font: 700 13px 'Manrope', sans-serif; }
.workspace { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 378px minmax(0,1fr); grid-template-areas: 'panel map'; }
.side-panel { min-height: 0; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; z-index: 300; overflow: hidden; }
.panel-intro { padding: 23px 27px 19px; }
.eyebrow, .section-kicker { color: #8894a9; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow-line { width: 17px; height: 2px; background: #7892f1; border-radius: 2px; }
h1, h2, p { margin: 0; }
h1 { margin-top: 13px; font: 700 27px/1.16 'Manrope', sans-serif; letter-spacing: -1.2px; }
h1 em { color: var(--accent); font-style: normal; }
.panel-intro p { margin-top: 8px; max-width: 302px; color: #7a869a; font-size: 12px; line-height: 1.5; }
.panel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 22px; padding: 4px; border-radius: 12px; background: #f3f5f8; }
.panel-tab { height: 35px; border: 0; border-radius: 9px; background: transparent; color: #818ca0; cursor: pointer; font-size: 11px; font-weight: 600; transition: .18s ease; }
.panel-tab:hover { color: var(--ink); }
.panel-tab.is-active { background: #fff; color: var(--accent); box-shadow: 0 2px 6px rgba(21,34,62,.08); }
.tab-icon { margin-right: 4px; font-size: 14px; vertical-align: -1px; }
.tab-content { display: none; padding: 23px 23px 16px; min-height: 0; flex: 1 1 auto; overflow: auto; scrollbar-width: thin; scrollbar-color: #d5dce7 transparent; }
.tab-content.is-active { display: flex; flex-direction: column; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; margin: 0 1px 15px; }
.section-title-row h2 { margin-top: 5px; font: 700 18px/1.25 'Manrope', sans-serif; letter-spacing: -.55px; }
.text-button { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); color: #78859b; background: #fff; border-radius: 9px; cursor: pointer; }
.text-button:hover { color: var(--accent); border-color: #d4ddfa; }
.text-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.planner-card { padding: 14px; border: 1px solid #e7ebf2; border-radius: 15px; background: #fff; box-shadow: 0 6px 20px rgba(29,45,79,.035); }
.field-stack { position: relative; }
.field-row { min-height: 55px; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; padding: 0 7px; }
.field-row:first-child { border-bottom: 1px solid #f0f2f6; }
.field-marker { width: 10px; height: 10px; flex: 0 0 10px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; }
.destination-marker { width: 9px; height: 9px; flex-basis: 9px; border: 0; border-radius: 3px; background: #f0785f; transform: rotate(45deg); }
.route-dash { position: absolute; top: 30px; left: 11px; height: 49px; border-left: 1px dashed #aebbe0; z-index: 0; }
.field-wrap { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 0; }
.field-wrap > span { color: #97a1b2; font-size: 8px; font-weight: 700; letter-spacing: .9px; }
.field-wrap input { padding: 0; width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; font-weight: 600; text-overflow: ellipsis; }
.field-wrap input::placeholder { color: #a3adbd; font-weight: 500; }
.field-wrap input:focus-visible { outline: none; }
.clear-field { display: none; border: 0; background: transparent; color: #9aa5b7; font-size: 18px; cursor: pointer; padding: 3px 6px; }
.field-row.has-value .clear-field { display: block; }
.suggestions { display: none; position: relative; margin: -1px 0 5px 28px; border-top: 1px solid #f0f2f6; max-height: 184px; overflow: auto; }
.suggestions.is-open { display: block; }
.suggestion-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 6px; border: 0; border-bottom: 1px solid #f2f4f7; background: #fff; text-align: left; cursor: pointer; }
.suggestion-option:hover { background: #f7f8fd; }
.suggestion-icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 9px; background: #eef2ff; color: var(--accent); font-size: 12px; }
.suggestion-copy, .station-copy, .route-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.suggestion-copy strong, .station-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2d3951; font-size: 11px; font-weight: 600; }
.suggestion-copy small, .station-copy small { color: #909bad; font-size: 9px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 42px; margin-top: 12px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; box-shadow: 0 5px 12px rgba(50,88,220,.16); transition: .18s ease; }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.primary-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.planner-hint { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; color: #96a1b2; font-size: 9px; }
.planner-hint svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.results-heading { display: flex; align-items: center; justify-content: space-between; margin: 20px 1px 9px; }
.result-count { color: #9aa4b5; font-size: 10px; }
.journey-results { display: flex; flex-direction: column; gap: 8px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 21px 13px 15px; color: #939eb0; }
.empty-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #f0f3fb; color: #8b9bd6; font-size: 18px; }
.empty-state strong { margin-top: 3px; color: #69768d; font-size: 11px; font-weight: 600; }
.empty-state span { max-width: 230px; font-size: 10px; line-height: 1.45; }
.journey-card { display: block; width: 100%; padding: 12px; border: 1px solid #e9edf3; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; transition: .18s ease; }
.journey-card:hover, .journey-card.is-selected { border-color: #b9c8fb; background: #fbfcff; box-shadow: 0 4px 12px rgba(38,65,145,.07); }
.journey-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.journey-time { color: var(--ink); font: 700 14px 'Manrope', sans-serif; letter-spacing: -.35px; }
.journey-duration { color: #79869b; font-size: 10px; }
.journey-lines { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.line-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; height: 22px; padding: 0 6px; border-radius: 6px; color: #fff; font-size: 9px; font-weight: 700; }
.transfer-label { color: #a1aabb; font-size: 10px; }
.journey-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f2f5; color: #8692a5; font-size: 9px; }
.journey-foot strong { color: #53627d; font-weight: 600; }
.journey-steps { display: none; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0f5; }
.journey-card.is-selected .journey-steps { display: block; }
.leg-step { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; color: #758198; font-size: 9px; line-height: 1.45; }
.leg-step .line-badge { flex: 0 0 auto; height: 19px; min-width: 25px; font-size: 8px; }
.count-pill { padding: 4px 8px; border-radius: 20px; background: #f0f3f8; color: #7f8ca0; font-size: 9px; font-weight: 600; }
.search-box { display: flex; align-items: center; gap: 9px; height: 41px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #93a0b2; }
.search-box:focus-within { border-color: #b7c6f9; box-shadow: 0 0 0 3px #f1f4ff; }
.search-box svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-box input:focus-visible { outline: 0; }
.search-box kbd { padding: 3px 5px; border: 1px solid #e7eaf0; border-radius: 5px; color: #9ba5b5; font-size: 8px; }
.filter-row { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #e8ecf2; border-radius: 20px; background: #fff; color: #808ca0; cursor: pointer; font-size: 9px; font-weight: 600; }
.filter-chip:hover { border-color: #cbd5f5; color: var(--accent); }
.filter-chip.is-selected { border-color: #d4ddfa; background: #eff3ff; color: var(--accent); }
.station-list, .route-list { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.station-item { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 1px; border-bottom: 1px solid #f0f2f6; cursor: pointer; }
.station-item:hover .station-copy strong { color: var(--accent); }
.station-marker { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 10px; background: #f0f3ff; color: var(--accent); font-size: 12px; }
.station-marker.portal { background: #fff2e9; color: #e47e42; }
.station-item .station-copy { flex: 1; }
.station-arrow { color: #a8b1bf; font-size: 16px; }
.favorite-toggle { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #a5afbf; cursor: pointer; font-size: 17px; }
.favorite-toggle:hover, .favorite-toggle.is-favorite { color: #edaa43; background: #fff8e9; }
.route-filters { margin: 0; }
.route-item { display: flex; align-items: center; gap: 10px; min-height: 59px; padding: 8px 2px; border-bottom: 1px solid #f0f2f6; cursor: pointer; }
.route-item:hover .route-copy strong { color: var(--accent); }
.route-code { display: grid; place-items: center; min-width: 37px; height: 26px; padding: 0 5px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 700; }
.route-copy { flex: 1; }
.route-copy strong { color: #344159; font-size: 10px; font-weight: 600; }
.route-copy small { color: #98a2b2; font-size: 9px; }
.load-more { align-self: center; margin: 12px 0 18px; padding: 8px 13px; border: 1px solid #e8ecf2; border-radius: 8px; background: #fff; color: #71809a; cursor: pointer; font-size: 9px; font-weight: 600; }
.load-more:hover { border-color: #cad5f7; background: #f7f8ff; color: var(--accent); }
.panel-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 22px; border-top: 1px solid #f0f2f5; color: #929dae; font-size: 9px; }
.panel-bottom a { color: #7383a0; text-decoration: none; }
.panel-bottom a:hover { color: var(--accent); }
.data-status { display: flex; align-items: center; gap: 7px; min-width: 0; }
.status-ring { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #36ac8a; }
.map-stage { min-width: 0; min-height: 0; position: relative; grid-area: map; background: #e8edf0; isolation: isolate; }
#map { position: absolute; inset: 0; z-index: 0; background: #e8edf0; }
.leaflet-container { background: #e8edf0; font: inherit; }
.leaflet-control-attribution { margin: 0 10px 9px 0 !important; padding: 3px 6px !important; border-radius: 5px; background: rgba(255,255,255,.84) !important; color: #7f8b9c !important; font-size: 8px !important; backdrop-filter: blur(7px); }
.leaflet-control-attribution a { color: #526b9d !important; }
.leaflet-control-zoom { display: none; }
.map-topline { position: absolute; top: 17px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; z-index: 400; pointer-events: none; }
.map-context, .map-layer-button { pointer-events: auto; background: rgba(255,255,255,.94); box-shadow: 0 3px 14px rgba(31,48,69,.12); backdrop-filter: blur(12px); }
.map-context { display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 9px; border: 1px solid rgba(255,255,255,.76); border-radius: 12px; }
.map-context-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #eef2ff; color: var(--accent); }
.map-context-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.map-context span:last-child { display: flex; flex-direction: column; gap: 3px; }
.map-context strong { color: #334158; font-size: 10px; font-weight: 700; }
.map-context small { color: #8793a5; font-size: 8px; }
.map-layer-button { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.76); border-radius: 9px; color: #66748b; cursor: pointer; font-size: 9px; font-weight: 600; }
.map-layer-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.layer-dot { width: 7px; height: 7px; border-radius: 50%; background: #345be0; }
.map-layer-button.is-off .layer-dot { background: #bec6d0; }
.map-zoom-tip { position: absolute; z-index: 400; right: 18px; bottom: 107px; display: grid; grid-template-columns: 30px 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 10px; background: rgba(255,255,255,.95); box-shadow: 0 3px 12px rgba(31,48,69,.13); color: #53617a; }
.map-zoom-tip span { display: grid; place-items: center; height: 29px; cursor: pointer; font-size: 17px; font-weight: 500; }
.map-zoom-tip span + span { border-left: 1px solid #e8ecf1; }
.map-zoom-tip span:hover { color: var(--accent); }
.map-zoom-tip small { grid-column: 1 / -1; padding: 3px; border-top: 1px solid #edf0f4; color: #a2adbd; text-align: center; font-size: 7px; }
.locate-fab { position: absolute; z-index: 400; right: 18px; bottom: 183px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.8); border-radius: 10px; background: rgba(255,255,255,.95); color: #607089; cursor: pointer; box-shadow: 0 3px 12px rgba(31,48,69,.13); }
.locate-fab:hover { color: var(--accent); }
.map-legend { position: absolute; z-index: 400; bottom: 27px; left: 18px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.8); border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 3px 12px rgba(31,48,69,.1); color: #8793a5; backdrop-filter: blur(8px); font-size: 8px; }
.map-legend strong { color: #56647c; font-size: 8px; font-weight: 600; }
.legend-bar { width: 17px; height: 4px; border-radius: 5px; background: linear-gradient(90deg,#df544f 0 25%,#3596d1 25% 50%,#76a855 50% 75%,#e4a248 75%); }
.map-legend i { width: 1px; height: 12px; margin: 0 2px; background: #e4e8ee; }
.map-legend i + span { white-space: nowrap; }
.map-attribution-note { position: absolute; bottom: 6px; left: 18px; z-index: 390; color: #8290a1; font-size: 7px; pointer-events: none; }
.map-selection { position: absolute; z-index: 400; top: 62px; right: 18px; display: flex; align-items: center; gap: 6px; max-width: 45%; padding: 6px 9px; border: 1px solid rgba(255,255,255,.9); border-radius: 8px; background: rgba(255,255,255,.92); color: #53617b; box-shadow: 0 3px 12px rgba(31,48,69,.1); font-size: 9px; }
.map-selection[hidden] { display: none; }
.map-selection strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-footer { display: flex; justify-content: space-between; align-items: center; height: 28px; flex: 0 0 28px; padding: 0 20px; background: #fff; border-top: 1px solid #edf0f4; color: #9ba5b3; font-size: 8px; }
.site-footer b { color: #c2cad5; font-weight: 500; padding: 0 3px; }
.site-footer a { color: #7383a0; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.toast { position: fixed; z-index: 1000; left: 50%; bottom: 45px; max-width: min(90vw, 390px); padding: 10px 14px; transform: translate(-50%, 10px); border-radius: 9px; background: #202b4b; color: #fff; box-shadow: 0 8px 25px rgba(17,28,54,.2); opacity: 0; pointer-events: none; font-size: 11px; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.leaflet-div-icon { background: transparent; border: 0; }
.station-pin { position: relative; display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(28,45,73,.38); }
.station-pin::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #345be0; }
.station-pin.portal::after { width: 8px; height: 8px; background: #ef8153; }
.station-pin.is-selected { width: 23px; height: 23px; box-shadow: 0 0 0 5px rgba(52,91,224,.2), 0 1px 6px rgba(28,45,73,.34); }
.station-popup { min-width: 165px; }
.station-popup strong { display: block; color: #283650; font-size: 12px; }
.station-popup small { display: block; margin-top: 4px; color: #8a96a8; font-size: 10px; }
.station-popup-actions { display: flex; gap: 5px; margin-top: 10px; }
.station-popup-actions button { padding: 6px 7px; border: 0; border-radius: 6px; background: #eef2ff; color: #3458d1; cursor: pointer; font-size: 9px; font-weight: 600; }
.leaflet-popup-content-wrapper { border-radius: 11px; box-shadow: 0 6px 20px rgba(26,41,72,.16); }
.leaflet-popup-content { margin: 12px; }
.leaflet-popup-tip { box-shadow: 0 5px 8px rgba(26,41,72,.05); }

@media (max-width: 900px) {
  .topbar { padding: 0 20px; }
  .topbar-center { font-size: 11px; }
  .workspace { grid-template-columns: 335px minmax(0,1fr); }
  .panel-intro { padding-inline: 22px; }
  .tab-content { padding-inline: 18px; }
  .panel-tabs { margin-inline: 18px; }
}
@media (max-width: 680px) {
  html, body { overflow: hidden; }
  .app-shell { min-height: 440px; }
  .topbar { height: 58px; flex-basis: 58px; padding: 0 14px; }
  .brand { min-width: auto; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 7px; letter-spacing: 1.3px; }
  .topbar-center { display: none; }
  .topbar-actions { min-width: auto; gap: 8px; }
  .icon-button { width: 33px; height: 33px; border-radius: 10px; }
  .profile-button { width: 32px; height: 32px; }
  .workspace { display: flex; flex-direction: column; }
  .map-stage { order: 0; flex: 0 0 41vh; min-height: 250px; max-height: 390px; }
  .side-panel { order: 1; flex: 1 1 auto; min-height: 0; border-top: 1px solid var(--line); border-right: 0; overflow: hidden; }
  .panel-intro { display: none; }
  .panel-tabs { margin: 10px 14px 0; }
  .panel-tab { height: 32px; font-size: 10px; }
  .tab-content { padding: 14px 15px 12px; }
  .section-title-row { margin-bottom: 10px; }
  .section-title-row h2 { font-size: 16px; }
  .planner-card { padding: 10px; border-radius: 12px; }
  .field-row { min-height: 47px; }
  .route-dash { top: 27px; height: 39px; }
  .primary-button { height: 38px; margin-top: 8px; }
  .planner-hint { margin-top: 7px; }
  .results-heading { margin-top: 14px; }
  .empty-state { padding: 13px 10px; }
  .panel-bottom { min-height: 34px; padding-inline: 15px; }
  .map-topline { top: 10px; left: 11px; right: 11px; }
  .map-zoom-tip { right: 11px; bottom: 72px; }
  .locate-fab { right: 11px; bottom: 147px; }
  .map-legend { left: 10px; bottom: 19px; padding: 7px 8px; }
  .map-attribution-note { left: 10px; bottom: 3px; font-size: 6px; }
  .map-selection { top: 51px; right: 11px; }
  .site-footer { display: none; }
  .toast { bottom: 14px; }
}
@media (max-width: 380px) {
  .map-stage { flex-basis: 36vh; }
  .panel-tab { font-size: 9px; }
  .tab-icon { margin-right: 2px; }
  .map-context { padding: 6px 8px; }
  .map-layer-button { height: 31px; padding-inline: 7px; }
  .map-legend { gap: 5px; font-size: 7px; }
  .map-legend strong { font-size: 7px; }
}
