:root { color-scheme: light dark; }
[hidden] { display: none !important; }
html, body, #map { height: 100%; margin: 0; }
body { font: 14px/1.4 system-ui, sans-serif; color: #17324d; }
.panel, .summary { position: absolute; z-index: 2; background: rgba(255,255,255,.96); border: 1px solid #d9e1e7; border-radius: 12px; box-shadow: 0 3px 18px #17324d30; }
.panel { right: 12px; bottom: 12px; width: min(430px, calc(100vw - 58px)); padding: 11px 14px; }
.panel-heading, .summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-heading > div:first-child { min-width: 0; }
.summary-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.profile-button { font-size: 18px; }
h1, h2 { margin: 0; line-height: 1.15; }
h1 { font-size: 17px; }
h2 { font-size: 17px; }
.summary h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow { display: block; color: #526a7e; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.icon-button { flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #edf3f7; color: #17324d; font-size: 22px; line-height: 1; cursor: pointer; }
.theme-switch { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; cursor: pointer; }
.theme-icon { color: #526a7e; font-size: 18px; line-height: 1; }
.theme-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: relative; width: 34px; height: 20px; border: 1px solid #8295a5; border-radius: 999px; background: #d9e1e7; transition: background .18s ease; }
.switch-track span { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #17324d66; transition: transform .18s ease; }
.theme-switch input:checked + .switch-track { border-color: #1683cf; background: #1683cf; }
.theme-switch input:checked + .switch-track span { transform: translateX(14px); }
.theme-switch input:focus-visible + .switch-track { outline: 2px solid #1683cf; outline-offset: 2px; }
#collapsed-status { display: none; min-width: 0; margin: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.collapsed-navigation { flex: 0 0 auto; }
.panel:not(.collapsed) .collapsed-navigation { display: none; }
.collapsed-navigation button { width: 45px; }
.panel.collapsed { width: min(380px, calc(100vw - 44px)); padding-block: 8px; }
.panel.collapsed #controls-body, .panel.collapsed .panel-title { display: none; }
.panel.collapsed #collapsed-status { display: block; }
.panel.collapsed .collapsed-navigation { display: flex; }
.panel.collapsed #toggle-controls { transform: rotate(180deg); }
.control-grid { display: grid; gap: 8px; padding-top: 9px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.segments { display: flex; }
.segments label { position: relative; flex: 1; min-width: 0; padding: 7px 8px; border: 1px solid #aab9c5; background: #fff; font-size: 13px; font-weight: 650; text-align: center; cursor: pointer; }
.segments label + label { border-left: 0; }
.segments label:first-of-type { border-radius: 7px 0 0 7px; }
.segments label:last-of-type { border-radius: 0 7px 7px 0; }
.segments label:has(input:checked) { background: #17324d; color: #fff; }
.segments input { position: absolute; opacity: 0; }
.segments label:has(input:focus-visible) { outline: 2px solid #1683cf; outline-offset: 2px; z-index: 1; }
.segments:disabled label { cursor: default; opacity: .45; }
.mode-control { width: min(270px, 100%); }
.period-label { margin: 0; font-size: 17px; font-weight: 750; }
.time-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 6px repeat(3, minmax(0, 1fr)); gap: 4px; }
.time-navigation button { min-width: 0; height: 40px; padding: 0 3px; border: 1px solid #aab9c5; border-radius: 7px; background: #edf3f7; color: inherit; font: 700 13px/1 system-ui, sans-serif; cursor: pointer; }
.time-navigation button:disabled { cursor: default; opacity: .35; }
.navigation-gap { width: 6px; }
.filter-row { display: flex; align-items: center; gap: 9px; }
.direction-control { flex: 1 1 auto; }
.color-row, .heatmap-row, .geometry-row, .particles-row { display: flex; align-items: center; gap: 9px; color: #526a7e; font-size: 12px; font-weight: 700; }
.color-control { width: min(100%, 290px); }
.color-control label, .geometry-control label { padding-block: 5px; }
.heatmap-control { width: 112px; }
.heatmap-control label { padding-block: 5px; }
.geometry-control { width: 210px; }
.corridor-explanation { max-width: 560px; padding: 8px 10px; border-left: 3px solid #557f9e; border-radius: 3px; background: rgba(85,127,158,.09); color: #526a7e; font-size: 12px; line-height: 1.35; }
.corridor-explanation strong { display: block; color: #17324d; }
[data-theme="dark"] .corridor-explanation { color: #b6c6d3; background: rgba(130,180,210,.12); }
[data-theme="dark"] .corridor-explanation strong { color: #eef5fa; }
.info-popup { position: relative; margin-left: -3px; }
.info-popup summary { display: grid; width: 22px; height: 22px; box-sizing: border-box; place-items: center; border: 1px solid #8295a5; border-radius: 50%; background: #fff; color: #526a7e; font: 800 13px/1 Georgia, serif; cursor: pointer; list-style: none; }
.info-popup summary::-webkit-details-marker { display: none; }
.info-popup summary:hover, .info-popup summary:focus-visible { border-color: #1683cf; color: #006bb6; outline: 2px solid transparent; }
.info-popup[open] summary { border-color: #1683cf; background: #edf7fd; color: #006bb6; }
.info-popup-content { position: absolute; z-index: 3; right: 0; bottom: calc(100% + 8px); width: 250px; box-sizing: border-box; padding: 10px 11px; border: 1px solid #c8d4dd; border-radius: 8px; background: #fff; box-shadow: 0 4px 18px #17324d33; color: #17324d; font-size: 12px; font-weight: 400; }
.info-popup-content p { margin: 3px 0 0; }
.particles-control { width: 112px; }
.particles-control label { padding-block: 5px; }
.threshold { display: flex; align-items: center; gap: 3px; font-size: 16px; font-weight: 750; }
select, input[type="number"] { box-sizing: border-box; min-height: 34px; border: 1px solid #aab9c5; border-radius: 6px; background: #fff; color: inherit; padding: 5px 6px; font: inherit; }
.threshold input { width: 54px; text-align: center; }
.status { margin: 1px 0 0; font-weight: 700; }
.data-notice { min-height: 0; margin: 0; color: #a34400; font-size: 12px; }
.data-notice:empty { display: none; }
.balance-legend { display: grid; grid-template-columns: auto repeat(5, 12px) auto; align-items: center; justify-content: space-between; gap: 3px; color: #526a7e; font-size: 10px; }
.balance-legend span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.busyness-legend { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: #526a7e; font-size: 10px; }
.busyness-legend i { height: 8px; border: 1px solid #73889a; border-radius: 999px; background: linear-gradient(90deg, #d9f0f0, #9ccfd3, #5b8fb8, #5b2a86); }
.swatch { display: inline-block; width: 10px; height: 10px; border: 1px solid #17324d; border-radius: 50%; }
.swatch.negative-strong { background: #c7384f; }
.swatch.negative { background: #dc6670; }
.swatch.negative-low { background: #f2b8b5; }
.swatch.neutral { background: #f5f3ed; }
.swatch.positive-low { background: #9bd4b7; }
.swatch.positive { background: #2f9e72; }
.swatch.positive-strong { background: #087f5b; }
.hint { color: #526a7e; margin: -1px 0 0; font-size: 12px; }
.app-footer { display: flex; flex-wrap: wrap; gap: 1px 5px; margin-top: 7px; padding-top: 7px; border-top: 1px solid #e1e8ed; color: #6b7e8e; font-size: 9px; line-height: 1.35; }
.app-footer a { color: #526a7e; font-weight: 700; }
.app-footer a:hover, .app-footer a:focus-visible { color: #006bb6; }
.summary { top: 12px; left: 12px; width: min(390px, calc(100vw - 50px)); padding: 14px; }
.summary.collapsed #summary-body { display: none; }
.summary.collapsed #toggle-summary { transform: rotate(180deg); }
.summary-period { margin: 9px 0 0; color: #526a7e; font-size: 12px; font-weight: 700; }
.station-rank { margin: 3px 0 12px; color: #526a7e; }
.summary .balance-summary { margin: -9px 0 12px; color: #526a7e; font-size: 12px; }
.ride-details { display: grid; gap: 3px; margin: 0 0 12px; padding: 9px 0; border-block: 1px solid #d9e1e7; }
.ride-details div { display: grid; grid-template-columns: 82px 1fr; }
.ride-details dt { color: #526a7e; }
.ride-details dd { margin: 0; font-weight: 700; }
.weather-summary { margin: -3px 0 12px; padding-bottom: 9px; border-bottom: 1px solid #d9e1e7; }
.weather-summary p { margin: 2px 0 0; font-weight: 700; }
.weather-sensitivity-legend { display: grid; grid-template-columns: auto auto 42px auto 42px auto; gap: 5px; align-items: center; color: #526a7e; font-size: 10px; }
.weather-sensitivity-legend strong { grid-column: 1 / -1; }
.weather-sensitivity-legend i { height: 7px; background: linear-gradient(90deg, #c7384f, #f5f3ed); border-radius: 4px; }
.weather-sensitivity-legend i:nth-of-type(2) { background: linear-gradient(90deg, #f5f3ed, #087f5b); }
.weather-sensitivity-legend small { grid-column: 1 / -1; }
.wind-arrow { display: inline-block; transform-origin: center; }
.summary-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary h3 { margin: 0; font-size: 12px; }
.summary .unique-count { margin: 0 0 4px; color: #526a7e; font-size: 11px; }
.summary ol { margin: 0; padding-left: 22px; }
.summary li { padding: 0; }
.summary li button { display: flex; width: 100%; justify-content: space-between; gap: 6px; border: 0; border-radius: 4px; background: transparent; color: inherit; padding: 2px 0; font: inherit; text-align: left; cursor: pointer; }
.summary li button:hover, .summary li button:focus-visible { color: #006bb6; text-decoration: underline; }
.summary li span { flex: none; font-weight: 750; }
.summary .empty { color: #6b7e8e; list-style: none; margin-left: -22px; }
.summary-chart-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid #d9e1e7; }
.summary-chart-section > p { margin: 3px 0 2px; color: #526a7e; font-size: 11px; }
.compact-chart .history-chart { min-height: 105px; }
@media (max-width: 560px) {
  .panel { right: 8px; bottom: 8px; width: auto; left: 8px; padding: 9px 11px; }
  .panel.collapsed { right: 8px; width: auto; }
  .panel.collapsed #collapsed-status { font-size: 12px; }
  .segments label { padding-inline: 5px; }
  .time-navigation { gap: 3px; grid-template-columns: repeat(3, minmax(0, 1fr)) 3px repeat(3, minmax(0, 1fr)); }
  .navigation-gap { width: 3px; }
  .summary { top: 8px; left: 8px; width: calc(100vw - 44px); max-height: calc(100vh - 190px); overflow: auto; }
  .summary-columns { gap: 10px; }
  .balance-legend { font-size: 9px; }
  .info-popup-content { right: -4px; width: min(250px, calc(100vw - 48px)); }
}

[data-theme="dark"] body { color: #e5edf4; background: #0b1620; }
[data-theme="dark"] .panel,
[data-theme="dark"] .summary,
[data-theme="dark"] .insights-panel,
[data-theme="dark"] .rankings-panel { border-color: #405364; background: rgba(20,35,48,.97); box-shadow: 0 5px 24px #0009; }
[data-theme="dark"] .station-profile { border-color: #405364; background: #142330; box-shadow: 0 8px 36px #000b; }
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .color-row,
[data-theme="dark"] .heatmap-row,
[data-theme="dark"] .geometry-row,
[data-theme="dark"] .particles-row,
[data-theme="dark"] .hint,
[data-theme="dark"] .summary-period,
[data-theme="dark"] .station-rank,
[data-theme="dark"] .summary .balance-summary,
[data-theme="dark"] .ride-details dt,
[data-theme="dark"] .summary .unique-count,
[data-theme="dark"] .summary .empty,
[data-theme="dark"] .balance-legend,
[data-theme="dark"] .busyness-legend,
[data-theme="dark"] .weather-sensitivity-legend,
[data-theme="dark"] .rankings-period,
[data-theme="dark"] .ranking-row button::before,
[data-theme="dark"] .ranking-value,
[data-theme="dark"] .insight-label,
[data-theme="dark"] .insight-details,
[data-theme="dark"] .insights-unavailable,
[data-theme="dark"] .profile-month,
[data-theme="dark"] .summary-chart-section > p,
[data-theme="dark"] .profile-chart-section > p,
[data-theme="dark"] .chart-axis-label,
[data-theme="dark"] .chart-value-label { color: #aebdca; fill: #aebdca; }
[data-theme="dark"] .icon-button,
[data-theme="dark"] .time-navigation button,
[data-theme="dark"] .weather-period-control > button,
[data-theme="dark"] .insights-button { border-color: #52687a; background: #263b4c; color: #f2f6f9; }
[data-theme="dark"] .segments label,
[data-theme="dark"] select,
[data-theme="dark"] input[type="number"],
[data-theme="dark"] .info-popup summary,
[data-theme="dark"] .info-popup-content,
[data-theme="dark"] .insight-row { border-color: #52687a; background: #1b2d3c; color: #e5edf4; }
[data-theme="dark"] .segments label:has(input:checked) { border-color: #75b9e7; background: #d9eaf5; color: #102638; }
[data-theme="dark"] .info-popup[open] summary,
[data-theme="dark"] .ranking-row button:hover,
[data-theme="dark"] .ranking-row button:focus-visible,
[data-theme="dark"] .insight-row:hover,
[data-theme="dark"] .insight-row:focus-visible { background: #294256; }
[data-theme="dark"] .info-popup-content { box-shadow: 0 4px 18px #0009; }
[data-theme="dark"] .ride-details,
[data-theme="dark"] .weather-summary,
[data-theme="dark"] .summary-chart-section,
[data-theme="dark"] .app-footer,
[data-theme="dark"] .profile-summary { border-color: #405364; }
[data-theme="dark"] .ranking-row button,
[data-theme="dark"] .insight-group { border-color: #304453; }
[data-theme="dark"] .ranking-row.selected button { background: #48311f; }
[data-theme="dark"] .chart-weekend { fill: #263b4c; }
[data-theme="dark"] .chart-key.weekend { border-color: #52687a; background: #263b4c; }
[data-theme="dark"] .chart-line.net { stroke: #f3e8ff; }
[data-theme="dark"] .chart-key.net { background: #f3e8ff; }
[data-theme="dark"] .app-footer { color: #90a4b5; }
[data-theme="dark"] .app-footer a,
[data-theme="dark"] .insight-expand { color: #7dc7f4; }
[data-theme="dark"] .swatch { border-color: #d6e0e8; }
[data-theme="dark"] .theme-icon { color: #dce8f0; }
[data-theme="dark"] .data-notice { color: #ffb77f; }
[data-theme="dark"] .weather-analysis { border-color: #405364; background: #142330; box-shadow: 0 8px 36px #000b; }
[data-theme="dark"] .weather-rain-summary > div,
[data-theme="dark"] .temperature-bands > div { border-color: #405364; background: #1b2d3c; }
[data-theme="dark"] .weather-point-details { background: #1b2d3c; color: #c7d4de; }
[data-theme="dark"] .weather-axis-label { fill: #aebdca; }
.title-row { display: flex; align-items: center; gap: 9px; }
.high-level-actions { display: flex; gap: 5px; }
.insights-button { padding: 4px 8px; border: 1px solid #aab9c5; border-radius: 999px; background: #edf3f7; color: #17324d; font: 700 11px/1.2 system-ui, sans-serif; cursor: pointer; }
.insights-button:disabled { cursor: default; opacity: .45; }
.insights-backdrop { position: fixed; z-index: 3; inset: 0; background: #17324d4d; }
.insights-panel { position: fixed; z-index: 4; left: 50%; top: 50%; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; overflow: auto; transform: translate(-50%, -50%); padding: 14px; border: 1px solid #d9e1e7; border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 8px 36px #17324d4d; }
.rankings-panel { position: fixed; z-index: 4; left: 50%; top: 50%; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; overflow: auto; transform: translate(-50%, -50%); padding: 14px; border: 1px solid #d9e1e7; border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 8px 36px #17324d4d; }
.rankings-period { margin: 0 0 10px; color: #526a7e; font-size: 12px; font-weight: 700; }
.ranking-selector { display: block; margin-bottom: 8px; }
.ranking-selector select { width: 100%; font-weight: 750; }
.rankings-list { margin: 0; padding: 0; list-style: none; counter-reset: ranking; }
.ranking-row { counter-increment: ranking; }
.ranking-row button { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; width: 100%; gap: 7px; padding: 8px 7px; border: 0; border-bottom: 1px solid #e7edf1; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ranking-row button::before { content: counter(ranking); color: #526a7e; font-weight: 750; text-align: right; }
.ranking-row button:hover, .ranking-row button:focus-visible { background: #f3f8fb; outline-color: #1683cf; }
.ranking-row.selected button { background: #fff3e8; box-shadow: inset 3px 0 #ed6a00; }
.ranking-name { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.ranking-value { color: #526a7e; font-size: 12px; text-align: right; white-space: nowrap; }
.insights-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.insights-list { display: grid; gap: 5px; }
.insight-group { display: grid; gap: 5px; padding-bottom: 3px; border-bottom: 1px solid #e7edf1; }
.insight-group:last-child { border-bottom: 0; }
.insight-row { width: 100%; padding: 9px 10px; border: 1px solid #d9e1e7; border-radius: 8px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.insight-row:hover, .insight-row:focus-visible { border-color: #1683cf; background: #f3f8fb; }
.insight-label { display: block; color: #526a7e; font-size: 11px; font-weight: 750; }
.insight-route { display: block; margin: 1px 0; overflow: hidden; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.insight-details { display: block; color: #526a7e; font-size: 12px; }
.insight-expand { justify-self: end; border: 0; background: transparent; color: #006bb6; padding: 2px 4px; font: 700 11px/1.3 system-ui, sans-serif; cursor: pointer; }
.insight-expand:hover, .insight-expand:focus-visible { text-decoration: underline; }
.insights-unavailable { margin: 18px 0 8px; color: #526a7e; text-align: center; }
.insight-stations { --insight-color: #ed6a00; }
.profile-backdrop { position: fixed; z-index: 5; inset: 0; background: #17324d73; }
.station-profile { position: fixed; z-index: 6; inset: 16px 50% 16px auto; width: min(720px, calc(100vw - 32px)); box-sizing: border-box; overflow-y: auto; transform: translateX(50%); padding: 18px 20px 30px; border: 1px solid #d9e1e7; border-radius: 14px; background: #fff; box-shadow: 0 8px 36px #17324d4d; }
.weather-analysis { position: fixed; z-index: 6; inset: 16px 16px 16px auto; width: min(560px, calc(100vw - 32px)); box-sizing: border-box; overflow-y: auto; padding: 18px 20px 30px; border: 1px solid #d9e1e7; border-radius: 14px; background: #fff; box-shadow: 0 8px 36px #17324d4d; }
.weather-analysis h3 { margin: 16px 0 7px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.weather-analysis-station { margin: 2px 0 0; color: #334f65; font-size: 14px; font-weight: 700; }
.weather-period-control { display: grid; grid-template-columns: auto minmax(150px, 220px) auto; align-items: stretch; gap: 7px; margin: 0 0 12px; }
.weather-period-control > button { min-width: 48px; border: 1px solid #aab9c5; border-radius: 7px; background: #fff; color: inherit; font: 700 12px system-ui, sans-serif; cursor: pointer; }
.weather-period-control > button:disabled { cursor: default; opacity: .35; }
.weather-analysis-loading { margin: -5px 0 9px; color: #526a7e; font-size: 12px; }
.weather-days-control, .weather-metric-control { display: flex; width: min(260px, 100%); }
.weather-metric-control { margin-top: 18px; }
.weather-rain-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.weather-rain-summary > div { display: grid; gap: 3px; padding: 9px; border: 1px solid #d9e1e7; border-radius: 8px; background: #f6f9fb; font-size: 11px; }
.weather-rain-summary strong { font-size: 13px; }
#weather-scatter { min-height: 210px; color: #526a7e; font-size: 12px; }
.weather-scatter-svg { display: block; width: 100%; height: auto; }
.weather-axis { stroke: #8193a2; stroke-width: 1; }
.weather-axis-label { fill: #526a7e; font: 11px system-ui, sans-serif; text-anchor: middle; }
.weather-point { fill: #ed6a00; fill-opacity: .58; stroke: #fff; stroke-width: 1; cursor: pointer; }
.weather-point.rain { fill: #1683cf; fill-opacity: .48; }
.weather-point:hover, .weather-point:focus, .weather-point.selected { fill-opacity: 1; stroke: #17324d; stroke-width: 2; outline: none; }
.weather-point-details { min-height: 54px; margin: 2px 0 0; padding: 7px 9px; border-radius: 7px; background: #edf3f7; color: #334f65; font-size: 12px; white-space: pre-line; }
.temperature-bands { display: grid; gap: 5px; }
.temperature-bands > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 9px; border-radius: 6px; background: #f6f9fb; font-size: 12px; }
.temperature-bands strong { min-width: 54px; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-heading h2 { font-size: 22px; }
.profile-month { margin: 3px 0 10px; color: #526a7e; font-size: 16px; font-weight: 700; }
.profile-summary { display: grid; gap: 2px; padding-bottom: 13px; border-bottom: 1px solid #d9e1e7; }
.profile-summary p { margin: 0; }
.profile-summary p:first-child { font-weight: 750; }
.profile-chart-section { padding-top: 18px; }
.profile-chart-section h3 { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.profile-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.weather-control { display: flex; align-items: center; width: 132px; }
.weather-control legend { margin-right: 6px; color: #526a7e; font-size: 11px; font-weight: 700; }
.weather-control label { padding: 3px 8px; font-size: 11px; }
.profile-chart-section > p { margin: 2px 0 6px; color: #526a7e; font-size: 12px; }
.profile-chart { position: relative; width: 100%; }
.history-chart { display: block; width: 100%; height: auto; min-height: 170px; overflow: visible; }
.chart-weekend { fill: #edf3f7; }
.chart-selected { fill: #1683cf20; stroke: #1683cf; stroke-width: 1.5; pointer-events: none; }
.chart-baseline { stroke: #8193a2; stroke-width: 1.5; }
.chart-bar { fill: #547fa1; }
.chart-bar.arrivals, .chart-key.arrivals { fill: #2f9e72; background: #2f9e72; }
.chart-bar.departures, .chart-key.departures { fill: #dc6670; background: #dc6670; }
.chart-bar.net { fill: #2f9e72; }
.chart-bar.net.negative { fill: #dc6670; }
.chart-bar.net.neutral { fill: #8193a2; }
.chart-line.net { fill: none; stroke: #7b2cbf; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.chart-key.net { height: 3px; border-radius: 0; background: #7b2cbf; vertical-align: middle; }
.chart-precipitation { fill: #1683cf; opacity: .2; }
.chart-temperature { fill: none; stroke: #ed6a00; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .72; pointer-events: none; }
.chart-temperature-range { fill: #ed6a00; opacity: .09; stroke: none; pointer-events: none; }
.chart-temperature-label { fill: #a34a00; font: 9px system-ui, sans-serif; text-anchor: start; }
.chart-target { fill: transparent; cursor: pointer; }
.chart-target:hover, .chart-target:focus { fill: #1683cf10; outline: none; }
.chart-axis-label { fill: #526a7e; font: 11px system-ui, sans-serif; text-anchor: middle; }
.chart-value-label { fill: #526a7e; font: 10px system-ui, sans-serif; text-anchor: end; }
.chart-key { display: inline-block; width: 9px; height: 9px; margin: 0 3px 0 8px; border-radius: 2px; }
.chart-key.weekend { border: 1px solid #d9e1e7; background: #edf3f7; box-sizing: border-box; }
.chart-key.precipitation { background: #1683cf52; }
.chart-key.temperature { height: 2px; border-radius: 0; background: #ed6a00; vertical-align: middle; }
.chart-key:first-child { margin-left: 0; }
.chart-tooltip { position: absolute; z-index: 1; top: 7px; max-width: 210px; transform: translateX(-50%); padding: 5px 7px; border-radius: 5px; background: #17324d; color: white; font-size: 11px; pointer-events: none; white-space: pre-line; }
@media (max-width: 560px) {
  .insights-panel, .rankings-panel { top: auto; bottom: 0; left: 0; width: 100%; max-height: min(82vh, 620px); transform: none; border-radius: 16px 16px 0 0; padding: 14px 12px max(14px, env(safe-area-inset-bottom)); }
  .title-row { align-items: flex-end; }
  .high-level-actions { gap: 3px; }
  .insights-button { padding-inline: 6px; }
  .station-profile { inset: 0; width: 100%; transform: none; border: 0; border-radius: 0; padding: 15px 12px max(24px, env(safe-area-inset-bottom)); }
  .weather-analysis { inset: auto 0 0; width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 15px 12px max(24px, env(safe-area-inset-bottom)); }
  .weather-rain-summary { grid-template-columns: 1fr; gap: 4px; }
  .weather-rain-summary > div { display: flex; justify-content: space-between; }
  .history-chart { min-height: 155px; }
}
