@import url("/assets/fuel-colors.css");

:root {
  color-scheme: light;
  --ink: #18332e;
  --muted: #687a74;
  --green: #126b50;
  --line: #e0e8e3;
  --paper: #f3f6f5;
  --lime: #d9ed9b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #ab720e; outline-offset: 3px; }
button, input, select { min-height: 44px; }
input, select { width: 100%; border: 1px solid #ccd9d1; border-radius: 10px; padding: 10px 12px; background: white; color: var(--ink); margin-top: 6px; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--green); }
label { font-size: 13px; font-weight: 650; display: block; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 23px; letter-spacing: -.6px; line-height: 1.2; }
h3 { font-size: 16px; }
p { line-height: 1.6; }
nav { display: flex; align-items: center; gap: 28px; }
.topbar { padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-size: 25px; font-weight: 850; letter-spacing: -1px; display: inline-flex; align-items: center; }
.brand-mark { display: block; flex: none; height: 44px; width: 44px; object-fit: contain; border-radius: 11px; margin-right: 8px; background: #fff; }
.brand-dot { color: var(--green); }
.nav-active { font-size: 13px; font-weight: 650; text-decoration: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 11px; background: var(--green); color: #fff; font-weight: 650; font-size: 13px; border: 1px solid transparent; text-decoration: none; transition: background .15s, box-shadow .15s; }
.button:hover { background: #0c563f; box-shadow: 0 3px 12px #126b5018; }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: #eef5f1; }
.button.small { padding: 9px 17px; }
.wide { width: 100%; }
.text-button { background: none; color: var(--green); font-size: 12px; font-weight: 650; padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; }
.shell { max-width: 1920px; padding: 0 24px; margin: auto; }
.hero { padding: 24px 2px 22px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hero h1 { font-size: 30px; letter-spacing: -1.1px; line-height: 1.15; margin-bottom: 7px; font-weight: 750; }
.hero h1 span { color: var(--green); }
.lead { font-size: 13px; color: var(--muted); margin: 0; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.live-dot { display: inline-block; background: #269b74; height: 7px; width: 7px; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 4px #269b7410; }
.community-label { font-size: 11px; color: var(--muted); margin: 0; white-space: nowrap; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 20px; align-items: start; }
.explorer { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 0; box-shadow: 0 4px 24px #18332e04; }
.section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 12px; }
.section-heading h2 { font-size: 19px; margin: 0; letter-spacing: -.4px; }
.section-heading .button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.filters { display: grid; grid-template-columns: minmax(160px, 1fr) 130px 190px; gap: 12px; margin-bottom: 16px; }
.filters label { font-size: 11px; color: var(--muted); }
.filters input, .filters select { font-size: 13px; background: #f8faf9; border-color: #e0e8e3; }
.map-wrap { position: relative; }
#map { height: max(560px, calc(100dvh - 310px)); max-height: 1000px; border-radius: 13px; background: #e8eee4; z-index: 0; }
.map-search { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); z-index: 500; box-shadow: 0 4px 18px #16372a26; white-space: nowrap; background: #fff; color: var(--green); border: 1px solid #d6e4dc; border-radius: 24px; }
.map-search:hover { background: #f2f8f5; }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); padding: 6px 2px; border-bottom: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 15px; padding: 14px 0; font-size: 12px; }
.fuel-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--fuel, #59636b); margin-right: 6px; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; padding-top: 21px; }
.results-heading h3 { font-size: 14px; font-weight: 650; }
.muted, .fine-print { color: var(--muted); }
.muted { font-size: 13px; }
.fine-print { font-size: 11px; margin-top: 18px; margin-bottom: 0; }
.station-row { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 16px; gap: 14px; align-items: center; text-align: left; border-top: 1px solid var(--line); background: white; padding: 16px 4px; color: var(--ink); }
.station-row:hover { background: #f5f9f7; }
.station-row strong { display: block; font-size: 14px; }
.station-row .address { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.station-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.station-column { min-width: 0; }
.station-column h4 { margin: 0 0 10px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; }
.station-column .station-row { grid-template-columns: 42px minmax(0,1fr) auto 8px; gap: 10px; padding: 14px 2px; }
.station-column .station-row strong { font-size: 13px; overflow-wrap: anywhere; }
.station-column .station-row .address { font-size: 11px; overflow-wrap: anywhere; }
.station-column .station-price strong { font-size: 20px; }
.station-column .station-price .price-note { max-width: 120px; font-size: 10px; }
.station-price { text-align: right; white-space: nowrap; }
.station-price strong { font-size: 22px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.station-price small { font-size: 11px; }
.station-price .price-note { white-space: normal; max-width: 165px; display: block; font-size: 10px; margin-top: 4px; }
/* Match Flutter StationMarker / StationFuelRing dimensions and labels. */
.fuel-marker { display: block; width: 42px; height: 42px; flex-shrink: 0; overflow: visible; filter: drop-shadow(0 2px 3px #0f223530); }
.map-marker { background: none; border: 0; }
.cluster-marker { background: none; border: 0; }
.station-cluster { display: flex; flex-direction: column; align-items: center; font-family: Roboto, Arial, sans-serif; }
.cluster-count { display: grid; place-items: center; width: var(--cluster-size); height: var(--cluster-size); flex: none; padding: 9px; border: 3px solid white; border-radius: 50%; background: #10231d73; color: white; font-size: 16px; font-weight: 800; box-shadow: 0 2px 8px #00000026; }
.cluster-price-slot { display: flex; justify-content: center; align-items: center; height: var(--cluster-label-height); flex: none; }
.cluster-prices { white-space: nowrap; border: 1px solid #18332e1a; border-radius: 9px; background: white; padding: 3px 6px; color: #17231e; font-size: 13px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; text-align: center; }
.cluster-marker:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 12px; }
.spider-marker .station-map-marker { animation: spider-appear .3s ease-out; }
@keyframes spider-appear { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.station-map-marker { display: grid; grid-template-rows: 28px 48px 16px; justify-items: center; width: 100px; height: 92px; font-family: Roboto, Arial, sans-serif; }
.station-map-marker.prices-differ { height: 112px; grid-template-rows: 48px 48px 16px; }
.station-map-marker .fuel-marker { align-self: center; }
.marker-price { align-self: end; max-width: 128px; white-space: nowrap; border-radius: 9px; border: 1px solid #18332e1a; padding: 3px 7px; font-size: 14px; font-weight: 800; line-height: 1.15; box-shadow: 0 1px 3px #00000018; font-variant-numeric: tabular-nums; }
.marker-price.split-price { display: flex; flex-direction: column; align-items: flex-start; background: #fff; font-size: 12px; }
.marker-price.split-price span { background: transparent; }
.marker-network { font-size: 11px; font-weight: 800; color: #102a43; line-height: 1.15; width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: -1.3px -1.3px 2px #fff,1.3px -1.3px 2px #fff,-1.3px 1.3px 2px #fff,1.3px 1.3px 2px #fff; }
.tone-cheap { color: #08623d; background: #e6f6ec; }
.tone-expensive { color: #a52b25; background: #ffedea; }
.tone-stale, .tone-missing { color: #65716c; background: #f0f2f1; }
.tone-stale { font-weight: 500; }
.tone-missing { font-size: 11px; font-weight: 400; }
.tone-typical, .tone-unverified { color: #233f50; background: #f4f8fa; }
.empty { padding: 25px 12px; text-align: center; font-size: 13px; color: var(--muted); }
.warning { color: #945912; }
.sidebar { position: sticky; top: 20px; }
.leaderboard-card { min-width: 0; padding: 18px 16px 14px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 24px #18332e04; }
.leaderboard-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.leaderboard-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; color: var(--green); background: #edf5ef; }
.leaderboard-heading .eyebrow { margin: 0 0 5px; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.leaderboard-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.45px; }
.leaderboard-periods { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: #f3f6f5; }
.leaderboard-periods button { flex: 1; min-width: 0; padding: 8px 3px; border-radius: 8px; background: transparent; color: #53675f; font-size: 11px; font-weight: 650; }
.leaderboard-periods button:hover { background: #e7efea; }
.leaderboard-periods button[aria-pressed=true] { background: #fff; color: var(--green); box-shadow: 0 1px 5px #18332e16; }
.leaderboard-results { display: flow-root; min-height: 180px; }
.leaderboard-caption { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 8px; color: var(--muted); font-size: 10px; }
.leaderboard-list { list-style: none; padding: 0; margin: 0; }
.leaderboard-row { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 9px 4px; border-bottom: 1px solid #edf1ee; }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-rank { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #956345; background: #f7eee8; border: 1px solid #ead8ca; font-size: 12px; font-weight: 800; }
.leaderboard-row[data-rank="1"] .leaderboard-rank { color: #87600c; background: #fcf4d9; border-color: #eddda4; }
.leaderboard-row[data-rank="2"] .leaderboard-rank { color: #576975; background: #edf1f4; border-color: #d8e1e7; }
.leaderboard-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.leaderboard-points { flex: none; text-align: right; color: var(--green); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.leaderboard-points small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.leaderboard-status { margin: 0; padding: 35px 4px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.leaderboard-note { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.leaderboard-card .text-button { display: block; margin: auto; }
.mobile-card { padding: 24px 22px 18px; background: linear-gradient(145deg, #e6f2ec, #eff4e5); border: 1px solid #dbe8df; border-radius: 18px; position: relative; overflow: hidden; }
.app-icon { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 16px; background: #fff; margin-bottom: 20px; box-shadow: 0 6px 14px #18332e12; }
.mobile-card h2 { font-size: 26px; letter-spacing: -.8px; margin-bottom: 14px; }
.mobile-card p:not(.eyebrow) { font-size: 12px; color: #53695e; margin-bottom: 14px; }
.play-link { display: block; margin-left: -12px; width: 212px; max-width: calc(100% + 24px); }
.play-link img { width: 100%; height: auto; display: block; }
.app-platform { font-size: 10px; color: #526447; }
.help-card { padding: 24px 10px 6px; }
.help-card h2 { font-size: 19px; }
.help-card p:not(.eyebrow) { font-size: 12px; color: var(--muted); }
.help-step { display: flex; align-items: center; gap: 10px; font-size: 11px; margin: 14px 0; }
.help-step span { display: grid; place-items: center; width: 24px; height: 24px; background: #e5eee9; border-radius: 8px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.footer { margin: 32px 24px 0; border-top: 1px solid var(--line); padding: 23px 0 28px; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.footer .brand { font-size: 19px; }
.footer p, .footer a:not(.brand) { font-size: 11px; color: var(--muted); margin: 0; }
.footer nav { gap: 18px; }

dialog { border: 1px solid var(--line); border-radius: 18px; color: var(--ink); padding: 28px; width: min(600px, calc(100% - 28px)); max-height: 88dvh; box-shadow: 0 16px 64px #102e2929; }
dialog::backdrop { background: #19372e24; }
dialog h2 { padding-right: 25px; }
dialog.auth-dialog { max-width: 430px; }
.close-button { position: absolute; right: 10px; top: 8px; font-size: 25px; width: 38px; min-height: 38px; background: transparent; color: var(--muted); border-radius: 50%; }
.close-button:hover { background: #f0f5f2; }
dialog form label { margin: 14px 0; }
dialog .eyebrow { color: var(--green); }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.auth-links .text-button { font-size: 12px; }
.notice { padding: 11px 13px; background: #eef4e7; border-radius: 9px; font-size: 12px; line-height: 1.5; margin-bottom: 16px; overflow-wrap: anywhere; }
.notice.error { background: #fff0e9; color: #8a301b; }
#profile-dialog { width: min(640px, calc(100% - 28px)); }
.profile-identity { display: flex; gap: 14px; align-items: center; padding: 4px 0 24px; }
.profile-avatar { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 16px; background: #e8f1dc; color: var(--green); font-size: 23px; font-weight: 750; }
.profile-identity > div { min-width: 0; }
.profile-identity strong { font-size: 19px; overflow-wrap: anywhere; }
.profile-identity p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.profile-section { padding: 20px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.profile-section h3 { margin-bottom: 16px; }
.account-details { margin: 0; }
.account-details > div + div { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.account-details dt { font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.account-details dd { margin: 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.private-label { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 5px; color: var(--green); background: #edf5ef; margin-left: 5px; }
.account-name-row, .account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-name-row > span, .account-section-heading > div { min-width: 0; }
.account-name-row > button, .account-section-heading > button { flex: none; }
.account-section-heading h3 { margin-bottom: 5px; }
.profile-section .fine-print { margin: 10px 0 0; font-size: 11px; }
.account-section-heading .fine-print { margin: 0; }
.profile-section form { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.profile-section input { font-size: 14px; }
.profile-section input[aria-invalid=true] { border-color: #a53d23; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.profile-section .notice { margin: 16px 0 0; }
.new-password-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.new-password-fields label { margin: 0; }
.password-options { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.password-options label { font-size: 12px; }
.password-session-note { font-size: 12px; margin: 4px 0 0; color: var(--muted); padding: 12px; background: var(--paper); border-radius: 8px; }
.account-login-email { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.profile-activity-title { margin: 26px 0 -10px; }
@media (max-width: 540px) {
  .profile-section { padding: 16px; }
  .profile-section input { font-size: 16px; }
  .account-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .new-password-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .new-password-fields label { margin-top: 10px; }
}
/* Compact station card, with the editing form disclosed only on request. */
#station-dialog { width: min(600px, calc(100% - 24px)); padding: 24px; max-height: min(860px, 88dvh); }
#price-action-dialog { width: min(420px, calc(100% - 24px)); }
.price-action-summary { padding: 20px; margin: 18px 0; border-radius: 12px; background: #edf5f1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-action-summary strong { font-size: 30px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-action-summary small { font-size: 14px; font-weight: 500; }
.price-action-choice { display: grid; gap: 10px; }
.price-action-choice[hidden] { display: none; }
#price-change-value { width: 100%; font-size: 20px; }
#price-change-back { display: block; margin: 8px auto 0; }
.detail-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 20px; }
.detail-heading h2 { font-size: 19px; letter-spacing: -.4px; margin: 0 0 4px; padding: 0; overflow-wrap: anywhere; }
.detail-heading p { margin: 0; font-size: 12px; }
.detail-prices { display: grid; gap: 0; margin: 12px 0; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.detail-price { border-top: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-price p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.price-trust { font-weight: 650; }
.trust-confirmed { color: #087443; }
.trust-pending { color: #245da8; }
.trust-station { color: #8a6100; }
.trust-warning { color: #945912; }
.trust-muted, .source-confirmations { color: var(--muted); }
.detail-price strong { font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-price strong small { font-size: 11px; font-weight: 550; }
.fuel-label { background: var(--fuel, #59636b); color: white; border-radius: 5px; font-weight: 700; padding: 4px 7px; font-size: 11px; display: inline-block; }
.detail-price.multi-source { display: block; }
.source-info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.source-stale { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); }
.source-value { display: flex; flex-direction: column; align-items: flex-end; color: var(--ink); }
.detail-actions { display: flex; flex-direction: column; gap: 0; align-items: flex-end; }
.price-age { font-size: 12px; font-weight: 600; line-height: 1.45; }
.detail-actions .price-age { margin-top: 4px; text-align: right; white-space: nowrap; }
.age-fresh { color: #087443; }
.age-aging { color: #996000; }
.age-old { color: #b42318; }
.detail-actions .text-button { min-height: 32px; font-size: 11px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; font-weight: 450; line-height: 1.5; }
#price-editor { border-top: 1px solid var(--line); }
#price-editor summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 650; color: var(--green); padding: 14px 0 3px; list-style: none; }
#price-editor summary::-webkit-details-marker { display: none; }
#price-editor summary span { font-size: 20px; }
#price-editor[open] summary span { transform: rotate(45deg); }
.price-form { padding-top: 9px; }
.price-form .muted { font-size: 11px; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-form label { font-size: 11px; margin: 10px 0; }
.price-form input, .price-form select { font-size: 13px; }
#price-submit { width: 100%; }
#price-message { margin: 12px 0 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.stat { padding: 20px; background: #f0f5f1; border-radius: 12px; }
.stat strong { font-size: 28px; display: block; }
.stat span { font-size: 12px; color: var(--muted); }
.octanes { background: #fff6de; border: 1px solid #eadbac; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.octanes p { font-size: 13px; margin-bottom: 0; }
.history-row { padding: 15px 0; border-top: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; }
.history-row p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.map-actions .button[aria-pressed=true] { background: #eef6ef; color: var(--green); border-color: #b8d6c6; }
#location-status { font-size: 12px; margin: 0 0 12px; }
.station-actions { display: flex; gap: 10px; margin: 16px 0; }
.station-actions .button { flex: 1; padding-inline: 10px; font-size: 12px; }
.station-actions .button[aria-pressed=true] { background: #eef6ef; color: var(--green); border-color: #b8d6c6; }
.station-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; padding: 4px; border-radius: 12px; background: #f0f4f2; margin-bottom: 16px; }
.station-tabs button { min-width: 0; background: transparent; color: #53675f; font-size: 12px; font-weight: 650; border-radius: 9px; padding: 8px 3px; }
.station-tabs button[aria-selected=true] { background: white; color: var(--green); box-shadow: 0 2px 7px #18332e12; }
.station-tabs button:hover { color: var(--green); }
.station-panel:not(#station-panel-prices) { max-height: min(480px, 52dvh); overflow-y: auto; overscroll-behavior: contain; padding: 0 3px 4px; }
.feature-note { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 8px 0 12px; }
.empty-state { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-state > span { display: block; font-size: 30px; color: var(--green); margin-bottom: 12px; }
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }
.empty-state p { margin-bottom: 14px; }
.history-controls { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.history-controls label { flex: 1; min-width: 120px; font-size: 11px; color: var(--muted); }
.history-controls select { font-size: 13px; }
.history-periods { display: flex; gap: 5px; }
.history-periods .button { font-size: 11px; padding: 8px 10px; }
.history-periods .button[aria-pressed=true] { background: var(--green); color: white; border-color: var(--green); }
.history-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 11px; font-weight: 650; margin: 16px 0 8px; }
.history-legend .station, .history-mark.station { color: #8a6100; }
.history-legend .drivers, .history-mark.drivers { color: #126b50; }
.history-chart { display: block; width: 100%; height: auto; overflow: visible; }
.history-chart text { fill: #687a74; font-size: 11px; }
.history-grid { stroke: #e4ebe6; stroke-dasharray: 3 4; }
.history-mark { cursor: pointer; }
.history-mark:focus-visible { outline: 2px solid #ab720e; outline-offset: 2px; }
.history-mark:hover .history-hit { fill: #18332e08; }
.history-day { border: 1px solid var(--line); border-radius: 11px; margin: 8px 0; padding: 0 12px; }
.history-day summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; padding: 15px 0; font-size: 12px; font-weight: 650; list-style: none; }
.history-day summary::-webkit-details-marker { display: none; }
.history-day summary > span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.history-channel { border-left: 3px solid #126b50; padding-left: 10px; margin-bottom: 15px; }
.history-channel.station { border-color: #aa7b15; }
.history-channel > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.history-channel b { font-variant-numeric: tabular-nums; }
.history-channel p { margin: 5px 0 0; font-size: 10px; color: var(--muted); }
.station-info { margin: 0; font-size: 13px; }
.station-info > div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.station-info dt { font-size: 12px; color: var(--muted); }
.station-info dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.contact-heading { margin: 18px 0 8px; }
.station-contacts > div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.station-contacts span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.station-contacts a { color: var(--green); }
.operator-link { display: block; padding: 16px 0; font-size: 12px; color: var(--green); font-weight: 650; }
.station-api-id { font-size: 11px; color: var(--muted); }
.station-api-id summary { cursor: pointer; padding: 12px 0; }
.station-api-id code { display: block; padding: 10px; background: var(--paper); overflow-wrap: anywhere; }
.live-heading { display: flex; gap: 16px; align-items: start; }
.live-heading .feature-note { margin-top: 0; flex: 1; }
.live-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.live-card-heading, .live-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.live-card-heading { font-size: 12px; color: var(--green); }
.live-card-heading > span, .live-meta { color: var(--muted); font-size: 10px; }
.live-card > p:not(.feature-note) { font-size: 13px; margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-card .feature-note { margin-bottom: 0; }
#favorites-dialog, #navigation-dialog { width: min(600px, calc(100% - 24px)); max-height: 88dvh; }
.favorites-tools { display: flex; align-items: end; gap: 14px; margin: 16px 0; }
.favorites-tools label { flex: 1; }
.favorite-row { display: flex; align-items: start; gap: 8px; border-top: 1px solid var(--line); padding: 6px 0; }
.favorite-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; background: white; color: var(--ink); border-radius: 10px; padding: 12px 4px; }
.favorite-open:hover { background: #f5f9f7; }
.favorite-open strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.favorite-open .address { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.favorite-price { display: block; font-size: 17px; font-weight: 750; margin-top: 6px; font-variant-numeric: tabular-nums; }
.favorite-remove { flex: none; width: 44px; color: #946c11; background: #fbf5e3; border-radius: 10px; margin-top: 10px; font-size: 20px; }
.navigation-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.navigation-tools .button { flex: 1; font-size: 11px; padding-inline: 8px; }
#navigation-map { height: 260px; background: #e8eee4; border-radius: 12px; z-index: 0; }
.route-marker { background: transparent; border: 0; }
.route-pin { display: grid; place-items: center; width: 32px; height: 36px; border-radius: 12px 12px 12px 2px; background: #126b50; color: white; border: 2px solid white; box-shadow: 0 3px 8px #18332e40; font-weight: 800; }
.route-pin.destination { background: #9b6900; }
.navigation-summary { display: grid; gap: 4px; padding: 16px 0; }
.navigation-summary strong { font-size: 13px; font-variant-numeric: tabular-nums; }
#navigation-go[aria-disabled=true] { background: #e7ece9; color: #687a74; cursor: default; box-shadow: none; }
#navigation-message { margin-top: 12px; margin-bottom: 0; }
.skip { position: fixed; top: -100px; left: 20px; background: white; z-index: 2000; padding: 12px; }
.skip:focus { top: 10px; }
[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; }
  .shell { padding: 0 18px; }
  .filters { grid-template-columns: minmax(150px, 1fr) 100px 155px; gap: 8px; }
  .filters select { padding-left: 8px; font-size: 12px; }
  .mobile-card { padding: 22px 17px 18px; }
  .mobile-card h2 { font-size: 23px; }
  .community-label { display: none; }
}
@media (max-width: 850px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .leaderboard-card { margin-bottom: 0; align-self: start; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .topbar { padding: 12px 16px; }
  .topbar nav { gap: 14px; }
  .nav-active { display: none; }
  .brand { font-size: 22px; }
  .brand-mark { width: 38px; height: 38px; }
  .shell { padding: 0 10px; }
  .hero { padding: 19px 6px 17px; }
  .hero h1 { font-size: 26px; letter-spacing: -1px; }
  .lead { font-size: 12px; max-width: 320px; }
  .explorer { padding: 12px; border-radius: 14px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .button { font-size: 11px; padding: 8px 10px; }
  .section-heading { flex-wrap: wrap; }
  .map-actions { flex-wrap: wrap; gap: 6px; }
  .map-actions .button { padding: 8px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .search-label { grid-column: 1 / -1; }
  #map { height: 68dvh; min-height: 440px; max-height: 780px; border-radius: 10px; }
  .map-search { font-size: 12px; top: 12px; padding: 10px 14px; }
  .map-caption { align-items: center; gap: 10px; font-size: 10px; }
  .map-caption span { max-width: 210px; }
  .station-row { gap: 10px; grid-template-columns: 42px minmax(0, 1fr) auto 8px; }
  .station-row strong { font-size: 13px; }
  .station-price strong { font-size: 20px; }
  .station-price .price-note { max-width: 110px; }
  .station-row .address { font-size: 11px; }
  .sidebar { grid-template-columns: 1fr; gap: 8px; margin: 8px; }
  .mobile-card { padding: 24px; }
  .mobile-card h2 { font-size: 26px; }
  .help-card { padding: 24px 10px 0; }
  .footer { margin: 26px 18px 0; gap: 16px; }
  .footer nav { width: 100%; gap: 20px; }
  dialog { padding: 26px 20px; }
  #station-dialog { padding: 18px; max-height: 82dvh; }
  .detail-prices { max-height: 240px; }
  .station-actions { gap: 7px; }
  .station-actions .button { font-size: 11px; padding-inline: 7px; }
  .station-tabs button { font-size: 11px; }
  .history-chart text { font-size: 17px; }
  .station-info > div { grid-template-columns: 95px minmax(0,1fr); gap: 12px; }
  #navigation-map { height: 220px; }
  #favorites-dialog, #navigation-dialog { padding: 22px 18px; }
}
.station-photo-action { margin-top: 18px; }
.photo-preview { display: block; width: 100%; max-height: 55dvh; object-fit: contain; margin: 16px 0; border-radius: 10px; background: #edf2ef; }
.photo-preview[hidden] { display: none; }
.my-photos { margin-block: 24px; }
.my-photo { padding: 14px 0; border-bottom: 1px solid #dce5df; overflow-wrap: anywhere; }
.my-photo p { margin: 5px 0; }
#photo-file { width: 100%; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .spider-marker .station-map-marker { animation: none; } }

.photo-time-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.photo-time-fields label { min-width: 0; }
.photo-time-fields input { min-width: 0; }
.photo-clock { border: 0; padding: 0; margin: 14px 0; min-width: 0; }
.photo-clock legend { padding: 0; font-size: 13px; font-weight: 650; }
.photo-clock > div { display: flex; align-items: center; gap: 4px; }
.photo-clock select { min-width: 0; padding-left: 8px; padding-right: 4px; }
