:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #172033;
  --muted: #5c667a;
  --panel: rgba(255, 255, 255, .95);
  --line: #dbe1ea;
  --red: #a51f2b;
  --green: #146b3a;
  --gold: #d49b00;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #eef2f7; color: var(--ink); }
body { overflow-x: hidden; }
.page-shell { width: min(100% - 2rem, 1320px); min-height: 100dvh; margin: 0 auto; padding: .85rem 0 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.map-stage { position: relative; }
.map-card { position: relative; height: min(72dvh, 760px); min-height: 520px; flex: 0 0 auto; overflow: hidden; border-radius: 1.15rem; background: #dbe7f2; box-shadow: 0 12px 34px rgba(23, 32, 51, .15); }
.page-shell[data-visitor-state="not_started"] .map-card,
.page-shell[data-visitor-state="waiting_for_first_fix"] .map-card,
.page-shell[data-visitor-state="next_visit"] .map-card,
.page-shell[data-visitor-state="season_finished"] .map-card { height: min(48dvh, 480px); min-height: 360px; }
.map { position: absolute; inset: 0; min-height: 360px; }
.progress-overlay { position: absolute; z-index: 500; top: 1rem; left: 1rem; width: min(22rem, calc(100% - 2rem)); max-height: 62%; padding: 1rem 1.05rem; border: 1px solid rgba(255,255,255,.8); border-radius: .9rem; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(23, 32, 51, .18); }
.map-stage > .progress-overlay { position: absolute; }
.progress-heading-row { display: flex; align-items: start; justify-content: space-between; gap: .5rem; }
.progress-overlay h1 { font-size: 1.2rem; letter-spacing: -.025em; }
.progress-summary { margin-top: .45rem; color: var(--red); font-size: .82rem; font-weight: 850; line-height: 1.35; overflow-wrap: anywhere; }
.progress-toggle { flex: 0 0 auto; padding: .35rem .5rem; border: 1px solid #aeb9c9; border-radius: .45rem; background: #fff; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; }
.progress-overlay #progress-details { max-height: 16rem; overflow-y: auto; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
h1, h2, p { margin: 0; }
h1 { font-size: 1.1rem; }
.status-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .15rem 1.2rem; padding: 1rem 1.25rem; border: 1px solid #f2d2d7; border-radius: 1rem; background: linear-gradient(100deg, #ffecef, #fff8f8); box-shadow: 0 5px 18px rgba(23, 32, 51, .07); }
.status-panel .eyebrow { grid-column: 1 / -1; }
.status-panel .title-row { display: contents; }
.status-panel .title-row h2 { grid-column: 1; grid-row: 2 / span 2; }
.status-panel .status-badge { grid-column: 3; grid-row: 2; }
.status-panel .visit-message { margin-top: .35rem; color: var(--ink); font-weight: 750; }
.status-panel p:not(.eyebrow) { margin-top: .3rem; color: var(--muted); font-size: .9rem; }
.status-panel .street { color: var(--ink); font-weight: 700; }
.tracker-name { grid-column: 2; grid-row: 2; color: var(--ink) !important; font-size: 1.15rem !important; font-weight: 850; }
.status-panel .visit-message { grid-column: 2; grid-row: 3; font-size: .98rem !important; }
.status-panel #updated { grid-column: 3; grid-row: 3; text-align: right; }
.status-panel .street { grid-column: 2 / -1; grid-row: 4; }
.status-badge { display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; padding: 0; border-radius: 0; background: transparent; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.status-badge::before { width: .7rem; height: .7rem; border-radius: 50%; background: #8993a3; content: ""; }
.status-live { color: #146b3a; }
.status-live::before { background: #1b9c59; }
.status-stale { color: #7a5200; }
.status-stale::before { background: #d49b00; }
.status-offline, .status-disabled { color: #505a6c; }
.status-offline::before, .status-disabled::before { background: var(--red); }
.status-unknown { color: #536174; }
.status-not_started, .status-waiting_for_first_fix, .status-next_visit { color: #8a6100; }
.status-finished, .status-season_finished { color: #536174; }
.status-temporarily_lost, .status-live_tracking_disabled { color: #8a3a00; }
.visitor-actions { display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 1 / -1; margin-top: .55rem; }
.visitor-actions .button { display: inline-block; }
.recenter { position: absolute; z-index: 500; right: .75rem; bottom: .75rem; border: 0; border-radius: 999px; padding: .65rem .85rem; background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 3px 12px rgba(23, 32, 51, .22); }
.mobile-map-status { display: none; }
.santa-marker { width: 80px !important; height: 53px !important; border: 0; background: transparent; }
.santa-marker img { display: block; width: 80px; height: 53px; filter: drop-shadow(0 2px 3px rgba(23, 32, 51, .18)); }
.map-legend { position: absolute; z-index: 500; right: .9rem; bottom: 4.1rem; display: flex; flex-wrap: wrap; gap: .45rem .75rem; padding: .55rem .7rem; border-radius: .7rem; background: rgba(255,255,255,.96); box-shadow: 0 3px 12px rgba(23, 32, 51, .2); color: var(--ink); font-size: .75rem; font-weight: 650; }
.legend-toggle { display: none; }
.legend-details { display: flex; flex-wrap: wrap; gap: .45rem .75rem; }
.map-legend span { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.map-legend i { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; }
.legend-santa { width: 1.25rem !important; height: .85rem !important; border-radius: 0 !important; background: url('/static/current-santa.svg') center / contain no-repeat; }
.legend-stop { width: .8rem !important; height: 1rem !important; border: 2px solid #3157a6; border-radius: 60% 60% 60% 0 !important; background: #6f8ed5; transform: rotate(-45deg); }
.legend-trail { width: 1rem !important; height: .22rem !important; border-radius: 0 !important; background: var(--gold); }
.campaign-card { padding: 1rem; border: 2px solid #e1b323; border-radius: 1rem; background: #fff9df; box-shadow: 0 3px 14px rgba(23, 32, 51, .08); }
.page-shell .campaign-card { position: relative; border-color: #d4b34c; background: linear-gradient(135deg, #fff9df, #fffdf4); }
.page-shell .campaign-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.25rem; padding: 1.35rem 1.5rem; overflow: visible; }
.campaign-art { align-self: end; width: 14rem; height: 10rem; margin-bottom: -1.35rem; overflow: hidden; }
.campaign-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.campaign-star { position: absolute; pointer-events: none; object-fit: contain; opacity: .78; }
.campaign-star-medium { top: .6rem; left: 13.5rem; width: 1.55rem; height: 1.55rem; }
.campaign-star-small { width: .9rem; height: .9rem; }
.campaign-star-top { top: .75rem; right: 10rem; }
.campaign-star-bottom { right: 4rem; bottom: .7rem; }
.page-shell .campaign-copy { min-width: 0; }
.campaign-card h2 { color: var(--red); font-size: 1.55rem; letter-spacing: -.025em; }
.campaign-card p { margin: .45rem 0 .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.campaign-button { display: inline-block; padding: .85rem 1.35rem; border-radius: .65rem; background: #a51f2b; color: #fff; font-size: 1rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
h2 { font-size: 1rem; }
.muted, .page-error { color: var(--muted); font-size: .9rem; }
.route-timing { margin-top: .6rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.route-steps { max-height: 20rem; overflow-y: auto; margin: .85rem 0 0; padding: 0 0 0 .1rem; list-style: none; }
.timeline-item { position: relative; display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); min-height: 3.1rem; padding: 0 0 .35rem; }
.timeline-item + .timeline-item { padding-top: .2rem; }
.timeline-item:not(:last-child)::before { position: absolute; top: 1.35rem; bottom: -.05rem; left: .66rem; width: 2px; background: #cbd2dc; content: ""; }
.timeline-node { position: relative; z-index: 1; display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border: 2px solid #8993a3; border-radius: 50%; background: #8993a3; color: #fff; font-size: .75rem; font-weight: 900; }
.timeline-content { min-width: 0; padding: .05rem .5rem .35rem .35rem; }
.timeline-name, .timeline-state { display: block; overflow-wrap: anywhere; }
.timeline-name { font-size: .97rem; font-weight: 700; line-height: 1.25; }
.timeline-state { margin-top: .15rem; color: var(--muted); font-size: .78rem; line-height: 1.15; }
.timeline-item[data-progress-state="visited"] .timeline-node { border-color: #1b9c59; background: #1b9c59; }
.timeline-item[data-progress-state="visited"] .timeline-name { color: #4f5a6b; }
.timeline-item[data-progress-state="current"] { margin-left: -.35rem; padding: .35rem .35rem .7rem; border-radius: .6rem; background: #fff0f1; }
.timeline-item[data-progress-state="current"]::before { left: 1.01rem; }
.timeline-item[data-progress-state="current"] .timeline-node { border-color: var(--red); background: var(--red); }
.timeline-item[data-progress-state="current"] .timeline-name { color: var(--red); font-size: 1.02rem; font-weight: 900; }
.timeline-item[data-progress-state="current"] .timeline-state { color: var(--red); font-weight: 800; }
.timeline-item[data-progress-state="next"] .timeline-node { border-color: var(--gold); background: var(--gold); }
.timeline-item[data-progress-state="next"] .timeline-name { font-weight: 800; }
.timeline-item[data-progress-state="next"] .timeline-state { color: #8a6100; font-weight: 800; }
.timeline-item.route-stop .timeline-node { border-color: #3157a6; background: #3157a6; }
.timeline-item.route-stop .timeline-name { color: #3157a6; font-weight: 800; }
.timeline-item.route-stop .timeline-state { color: #3157a6; font-weight: 750; }
.route-stop-action { display: inline; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.route-stop-action:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; border-radius: .2rem; }
.timeline-item.route-stop[data-progress-state="next"] { border-radius: .6rem; background: #eef3ff; }
.santa-stop-marker { border: 0; background: transparent; }
.santa-stop-pin { position: relative; display: block; width: 32px; height: 32px; border: 2px solid #183d84; border-radius: 60% 60% 60% 0; background: #416dcc; box-shadow: 0 2px 5px rgba(23, 32, 51, .35); transform: rotate(-45deg); }
.santa-stop-pin span { position: absolute; top: 7px; left: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.santa-stop-pin.is-next { border-color: #102d67; box-shadow: 0 0 0 4px rgba(65, 109, 204, .22), 0 2px 5px rgba(23, 32, 51, .35); }
.leaflet-popup-content p { margin: .35rem 0 0; }
.page-error { padding: .75rem; border-radius: .75rem; background: #fff; }
.landing-shell { width: min(100% - 2rem, 1180px); margin: 0 auto; padding: 1rem 0 3rem; }
.site-header, .map-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header { margin-bottom: 2.1rem; }
.brand { color: var(--red); font-weight: 900; letter-spacing: -.02em; text-decoration: none; }
.brand-star { display: inline-block; width: 1.35rem; height: 1.35rem; margin-right: .25rem; vertical-align: -.16rem; object-fit: contain; }
.header-note, .back-link { color: var(--muted); font-size: .82rem; }
.back-link { font-weight: 700; }
.landing-hero { margin-bottom: 1.4rem; }
.eyebrow { margin-bottom: .35rem; color: var(--red); font-size: .73rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.landing-hero h1 { max-width: none; color: var(--ink); font-size: clamp(2rem, 8vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy { max-width: 900px; margin-top: .8rem; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.street-search, .landing-section, .campaign-home { margin-bottom: 1rem; }
.search-card, .landing-section, .campaign-home { padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 3px 14px rgba(23, 32, 51, .06); }
.street-search label { display: block; margin-bottom: .45rem; font-weight: 800; }
.search-row { display: flex; gap: .5rem; }
.street-search input { min-width: 0; flex: 1; padding: .82rem .85rem; border: 1px solid #aeb9c9; border-radius: .6rem; font: inherit; font-size: 1rem; }
.street-search button, .button { min-height: 2.8rem; padding: .75rem 1rem; border: 0; border-radius: .6rem; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.street-search button, .button-primary { background: var(--red); color: #fff; }
.form-hint, .fine-print { margin-top: .55rem; color: var(--muted); font-size: .82rem; }
.search-results { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.search-results-heading { color: var(--red); font-size: 1.25rem; letter-spacing: -.02em; }
.search-result-list { display: grid; gap: .65rem; margin-top: .7rem; }
.search-result { display: grid; gap: .2rem; padding: .9rem; border: 1px solid #f0d9a1; border-radius: .75rem; background: #fffdf5; }
.search-result .route-meta { margin-top: .2rem; }
.route-context { margin: .55rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.4; overflow-wrap: anywhere; }
.result-actions { margin-top: .55rem; }
.result-actions .button { margin-top: 0; }
.search-empty-copy { margin-top: .4rem; color: var(--muted); line-height: 1.45; }
.tonight-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1.1rem 1.25rem; border: 1px solid #f2d2d7; border-radius: 1rem; background: linear-gradient(110deg, #fff4f5, #fff); color: var(--ink); box-shadow: 0 5px 18px rgba(23, 32, 51, .07); }
.tonight-card .eyebrow { color: var(--red); }
.tonight-card h2 { font-size: 1.3rem; }
.tonight-card p:not(.eyebrow) { margin-top: .35rem; color: var(--muted); line-height: 1.45; }
.tonight-card .button { flex: 0 0 auto; }
.tonight-content { width: 100%; }
.tonight-visits { display: grid; gap: .75rem; margin-top: .65rem; }
.tonight-visit-card { padding: .85rem; border: 1px solid #f2d2d7; border-radius: .7rem; background: rgba(255, 255, 255, .72); }
.tonight-visit-card h2 { margin-top: .35rem; font-size: 1.18rem; }
.tonight-visit-card p:not(.route-meta):not(.route-context) { margin-top: .35rem; color: var(--muted); line-height: 1.45; }
.tonight-visit-card .button { display: inline-block; margin-top: .65rem; }
.no-visit-card { margin-bottom: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 5px 18px rgba(23, 32, 51, .07); }
.no-visit-card h1 { margin-bottom: .45rem; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.no-visit-card p:not(.eyebrow) { max-width: 55ch; color: var(--muted); line-height: 1.5; }
.today-stops { display: grid; gap: .7rem; margin-bottom: 1rem; }
.today-stops > h2 { margin: 0; font-size: 1.25rem; }
.today-stop { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; }
.today-stop h3 { margin-bottom: .25rem; }
.today-stop p { margin: .25rem 0 0; color: var(--muted); }
.today-stop .button { margin-top: .55rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: .7rem; }
.route-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.route-date { color: var(--red); font-size: .85rem; font-weight: 850; }
.route-pill { display: inline-block; padding: .2rem .45rem; border-radius: 999px; background: #fff1c7; color: #704d00; font-size: .7rem; font-weight: 850; }
.route-result h3 { margin-top: .35rem; font-size: 1.05rem; }
.route-meta { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.route-summary { margin-top: .45rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.route-result .button { display: inline-block; margin-top: .7rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.button-secondary { border: 1px solid #b8c3d1; background: #fff; color: var(--red); }
.button-light { background: #fff; color: var(--red); }
.campaign-home { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.25rem; padding: 1.35rem 1.5rem; border-color: #d4b34c; background: linear-gradient(135deg, #fff9df, #fffdf4); overflow: visible; }
.campaign-home .campaign-copy { min-width: 0; }
.campaign-home h2 { font-size: 1.35rem; }
.campaign-home .campaign-copy > p:not(.eyebrow) { max-width: 60ch; margin: .45rem 0 .1rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.empty-card { padding: .9rem; border: 1px dashed #b8c3d1; border-radius: .75rem; background: #fbfcfe; }
.empty-card h3 { font-size: 1rem; }
.empty-card p { margin-top: .35rem; color: var(--muted); line-height: 1.45; }
.site-footer { padding: 1rem .1rem; color: var(--muted); font-size: .82rem; text-align: center; }
.schedule-intro { max-width: 68ch; margin-top: .45rem; color: var(--muted); line-height: 1.45; }
.schedule-controls { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.15rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.schedule-tabs { display: flex; gap: .35rem; }
.schedule-tab { padding: .55rem .8rem; border: 1px solid #b8c3d1; border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; }
.schedule-tab.is-active { border-color: var(--red); background: var(--red); color: #fff; }
.schedule-filter-wrap { min-width: min(18rem, 100%); }
.schedule-filter-wrap label { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .78rem; font-weight: 800; }
.schedule-filter-wrap input { width: 100%; padding: .62rem .75rem; border: 1px solid #aeb9c9; border-radius: .55rem; font: inherit; }
.street-directory, .date-directory { display: grid; gap: .1rem; }
.schedule-letter { margin: .8rem 0 .2rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); color: var(--red); font-size: .78rem; letter-spacing: .08em; }
.street-entry { display: grid; grid-template-columns: minmax(11rem, .75fr) minmax(0, 1.25fr); gap: 1rem; padding: .95rem .25rem; border-bottom: 1px solid #edf0f4; }
.street-entry h4 { align-self: start; font-size: 1.03rem; }
.street-visits { display: grid; gap: 0; }
.street-visit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4rem .7rem; padding: .2rem 0; border-bottom: 1px solid #edf0f4; }
.schedule-date { color: var(--ink); font-weight: 800; }
.schedule-meta { color: var(--muted); font-size: .88rem; }
.schedule-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.schedule-actions .button { min-height: 2.35rem; padding: .55rem .7rem; font-size: .82rem; }
.street-visit .schedule-date { margin:0; }
.compact-action { display:inline-flex; align-items:center; min-height:2.2rem; padding:.25rem .45rem; color:var(--red); font-weight:800; text-decoration:underline; background:none; border:0; font:inherit; cursor:pointer; white-space:nowrap; }
.schedule-no-results { margin-top: 1rem; color: var(--muted); }
.date-entry { padding: 1rem .25rem 1.15rem; border-bottom: 1px solid #edf0f4; }
.date-entry h3 { color: var(--red); font-size: 1.08rem; }
.date-entry > .schedule-meta { margin-top: .3rem; }
.public-route-list { display: grid; gap: .3rem; margin: .75rem 0 0; padding-left: 1.3rem; color: var(--ink); }
.public-route-list li { padding-left: .2rem; }
.route-preview { margin: .5rem 0 0; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.planned-route-dialog { width: min(42rem, calc(100% - 2rem)); max-height: min(80vh, 42rem); padding: 0; border: 0; border-radius: .8rem; box-shadow: 0 1rem 3rem rgba(21, 35, 54, .28); color: var(--ink); }
.planned-route-dialog::backdrop { background: rgba(21, 35, 54, .58); }
.planned-route-dialog-inner { position: relative; overflow-y: auto; max-height: min(80vh, 42rem); padding: 1.4rem; }
.planned-route-dialog h2 { margin: 0; padding-right: 2rem; }
.dialog-close { position: absolute; top: .75rem; right: .75rem; width: 2.3rem; height: 2.3rem; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.dialog-close:focus-visible, .planned-route-trigger:focus-visible { outline: 3px solid #1d5da8; outline-offset: 2px; }
.route-step-type { margin-left: .35rem; color: #3157a6; font-size: .75rem; font-weight: 750; }
.date-entry .schedule-actions { margin-top: .8rem; }
.map-nav { padding: .15rem .1rem .7rem; }
.map-nav .brand { font-size: 1.55rem; line-height: 1.05; }
.map-nav .brand-star { width: 1.5rem; height: 1.5rem; }
.map-nav .brand small { font-size: .76rem; }
.brand small { display: block; margin: .15rem 0 0 1.35rem; color: var(--muted); font-size: .73rem; font-weight: 500; letter-spacing: 0; }
.map-nav-links { display: flex; align-items: center; gap: .8rem; }
.header-donate { padding: .65rem .9rem; border-radius: .6rem; background: var(--red); color: #fff; font-weight: 850; text-decoration: none; }
@media (min-width: 700px) {
  .map-card { height: min(72dvh, 760px); }
}

@media (min-width: 600px) {
  .progress-summary { display: none; }
}

@media (max-width: 430px) {
  .search-row { flex-direction: column; }
  .street-search button { width: 100%; }
  .map-nav { padding-inline: .1rem; }
  .map-nav-links .back-link { display: none; }
  .map-nav .brand { font-size: 1.2rem; }
  .map-nav .brand-star { width: 1.15rem; height: 1.15rem; }
  .brand small { display: none; }
  .tonight-card { align-items: stretch; flex-direction: column; gap: .7rem; margin-bottom: .75rem; padding: .85rem 1rem; }
  .tonight-card .button { text-align: center; }
  .no-visit-card { padding: 1rem; }
  .no-visit-card .button { display: block; width: 100%; text-align: center; }
}

@media (max-width: 599px) {
  .landing-shell { width: min(100% - 1rem, 1180px); padding: .35rem 0 2rem; }
  .landing-shell .site-header { margin-bottom: 1rem; }
  .landing-hero { margin-bottom: .9rem; }
  .landing-hero .hero-copy { margin-top: .55rem; line-height: 1.4; }
  .landing-shell .search-card { padding: .85rem; }
  .landing-shell .search-results { margin-top: .8rem; padding-top: .8rem; }
  .tonight-visits { gap: .6rem; margin-top: .5rem; }
  .tonight-visit-card { display: flex; flex-direction: column; align-items: stretch; height: auto; min-height: 0; padding: .75rem; overflow-wrap: anywhere; }
  .tonight-visit-card .button { display: block; width: 100%; align-self: stretch; margin-top: .7rem; }
  .campaign-home { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .65rem .8rem; padding: 1rem; }
  .campaign-home .campaign-art { width: 6rem; height: 4.5rem; margin-bottom: -.25rem; }
  .campaign-home .campaign-button { grid-column: 1 / -1; display: block; width: 100%; text-align: center; }
  .campaign-home .campaign-star-medium { top: .5rem; left: 5.75rem; width: 1.1rem; height: 1.1rem; }
  .campaign-home .campaign-star-top { top: .55rem; right: .65rem; width: .7rem; height: .7rem; }
  .campaign-home .campaign-star-bottom { right: 1rem; bottom: 3.4rem; width: .7rem; height: .7rem; }
  .result-actions { flex-direction: column; }
  .result-actions .button { width: 100%; text-align: center; }
  .schedule-controls { align-items: stretch; flex-direction: column; }
  .schedule-tabs { width: 100%; }
  .schedule-tab { flex: 1; }
  .schedule-filter-wrap { min-width: 0; }
  .street-entry { display: block; padding: .45rem .1rem; }
  .street-entry h4 { margin-bottom: .15rem; }
  .street-visit { grid-template-columns: minmax(0, 1fr) auto; padding: .08rem 0; border-bottom: 0; }
  .street-visit .schedule-date { min-width: 0; white-space: nowrap; }
  .street-visit .schedule-actions { margin-top: 0; }
  .street-visit .compact-action { min-height: 2.35rem; }
  .schedule-actions .button { flex: 1 1 10rem; text-align: center; }
  .date-entry { padding-block: .7rem .8rem; }
  .date-entry > .schedule-meta { margin-top: .15rem; }
  .public-route-list { margin-top: .55rem; gap: .2rem; }
}

@media (max-width: 599px) {
  .page-shell { width: min(100% - 1rem, 1320px); padding-top: .35rem; }
  .map-card { height: min(68dvh, 610px); min-height: 430px; }
  .page-shell[data-visitor-state="not_started"] .map-card,
  .page-shell[data-visitor-state="waiting_for_first_fix"] .map-card,
  .page-shell[data-visitor-state="next_visit"] .map-card,
  .page-shell[data-visitor-state="season_finished"] .map-card { height: min(48dvh, 360px); min-height: 280px; }
  .santa-marker { width: 68px !important; height: 45px !important; }
  .santa-marker img { width: 68px; height: 45px; }
  .map-stage > .progress-overlay { position: static; display: block; width: 100%; max-height: none; margin-top: .75rem; padding: .8rem .1rem; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; scroll-margin-top: 1rem; }
  .map-stage > .progress-overlay { padding: 1rem .9rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 5px 18px rgba(23, 32, 51, .07); }
  .recenter { display: none !important; }
  .progress-overlay #progress-details { max-height: none; overflow: visible; }
  .progress-overlay .route-steps { max-height: none; }
  .progress-overlay .progress-heading-row h1 { font-size: 1.05rem; }
  .progress-overlay .progress-toggle { display: none; }
  .mobile-map-status { position: absolute; z-index: 500; right: .5rem; bottom: 1.9rem; left: 3.25rem; display: flex; align-items: center; gap: .4rem; min-height: 3.55rem; padding: .45rem .55rem .45rem .7rem; border: 1px solid rgba(255,255,255,.8); border-radius: .7rem; background: rgba(255,255,255,.96); box-shadow: 0 3px 12px rgba(23, 32, 51, .2); }
  .mobile-map-status-copy { display: grid; min-width: 0; flex: 1; gap: .1rem; }
  .mobile-map-status-copy strong, .mobile-map-status-copy span { overflow-wrap: anywhere; }
  .mobile-map-status-copy strong { font-size: .85rem; }
  .mobile-map-status-copy span { color: var(--muted); font-size: .72rem; line-height: 1.2; }
  .map-control-button { display: inline-flex; align-items: center; min-height: 2.35rem; padding: .45rem .6rem; border: 1px solid #aeb9c9; border-radius: .45rem; background: #fff; color: var(--ink); font: inherit; font-size: .75rem; font-weight: 800; text-decoration: none; cursor: pointer; }
  .map-control-button:focus-visible, .legend-toggle:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
  .map-legend { top: .65rem; right: .5rem; bottom: auto; left: auto; display: block; max-width: 10rem; padding: .35rem; }
  .legend-toggle { display: block; width: 100%; min-height: 2.25rem; padding: .4rem .55rem; border: 0; border-radius: .4rem; background: transparent; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 800; text-align: left; cursor: pointer; }
  .legend-details { display: none; padding: .3rem .4rem .4rem; }
  .map-legend.legend-open .legend-details { display: grid; gap: .4rem; }
  .map-legend.legend-open .legend-toggle { background: #eef2f7; }
  .page-shell .campaign-card { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .65rem .8rem; padding: 1rem; }
  .campaign-art { width: 6rem; height: 4.5rem; margin-bottom: -.25rem; }
  .campaign-star-medium { top: .5rem; left: 5.75rem; width: 1.1rem; height: 1.1rem; }
  .campaign-star-top { top: .55rem; right: .65rem; width: .7rem; height: .7rem; }
  .campaign-star-bottom { right: 1rem; bottom: 3.4rem; width: .7rem; height: .7rem; }
  .page-shell .campaign-button { grid-column: 1 / -1; }
  .campaign-card h2 { font-size: 1.25rem; }
  .page-shell .campaign-button { display: block; width: 100%; text-align: center; }
  .status-panel { display: block; padding: .85rem 1rem; }
  .status-panel .title-row { display: flex; }
  .status-panel .tracker-name, .status-panel .visit-message, .status-panel #updated, .status-panel .street { margin-top: .3rem; text-align: left; }
}
