:root {
  color-scheme: light;
  --md-sys-color-primary: #006b60;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #c5eade;
  --md-sys-color-on-primary-container: #00382f;
  --md-sys-color-secondary-container: #e1ede7;
  --md-sys-color-on-secondary-container: #234b42;
  --md-sys-color-surface: #f6f8f5;
  --md-sys-color-on-surface: #18332e;
  --md-sys-color-on-surface-variant: #52655f;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #eef3ef;
  --md-sys-color-surface-container: #e8efea;
  --md-sys-color-surface-container-high: #dfe8e2;
  --md-sys-color-outline-variant: #becdc5;
  --md-sys-color-outline: #71867f;
  --md-sys-color-error: #a5332c;
  --md-sys-color-glass: #ffffffd9;
  --md-sys-color-glass-edge: #ffffffa6;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 999px;
  --md-sys-motion-easing-emphasized: cubic-bezier(.2, 0, 0, 1);
  --md-sys-typescale-display-large-size: 72px;
  --md-sys-typescale-headline-large-size: 36px;
  --md-sys-typescale-title-large-size: 24px;
  --md-sys-typescale-body-large-size: 16px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --hat-crown: #d9c49b;
  --hat-brim: #e6d4b1;
  --hat-band: #34685e;
  --hat-mark: #d0e8df;
  --hat-highlight: #f3e7ce;
  --hat-shadow: #b6d4c8;
}
.places-panel { margin-top: 24px; border: 1px solid color-mix(in srgb, var(--md-sys-color-outline) 28%, transparent); border-radius: 24px; background: linear-gradient(135deg, var(--md-sys-color-glass), var(--md-sys-color-surface-container-lowest)); box-shadow: inset 0 1px 0 var(--md-sys-color-glass-edge), 0 8px 24px #00000008; }
.journey-shell > .places-panel { margin: 0 24px 20px; scroll-margin-top: 20px; }
.places-panel > summary { padding: 20px; cursor: pointer; font-weight: 650; line-height: 1.5; }
.places-panel > summary span { display: block; margin: 4px 0 0 20px; font-size: 14px; font-weight: 400; }
.places-content { padding: 0 20px 20px; }
.places-search { display: grid; grid-template-columns: minmax(0, 1fr) 104px auto; gap: 12px; align-items: end; }
.place-route-actions { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; gap: 12px; align-items: end; }
.places-content label { display: grid; gap: 6px; font-size: 14px; }
.places-browse { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; }
.places-browse label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.places-outside { position:absolute; z-index:4; top:12px; left:12px; max-width:calc(100% - 84px); border:1px solid var(--md-sys-color-glass-edge); border-radius:var(--md-sys-shape-corner-full); color:var(--md-sys-color-on-surface); background:var(--md-sys-color-glass); box-shadow:0 2px 12px #0002; }
.places-outside .button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
.coverage-popup p { margin: 8px 0; font-size: 13px; }
.places-content input[type="search"], .places-content select { height: 48px; width: 100%; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--md-sys-color-outline) 55%, transparent); border-radius: 12px; color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface); font: inherit; }
.places-content .button { min-height: 48px; gap: 8px; }
.places-content input:focus-visible, .places-content select:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.place-categories { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 12px; }
.place-categories button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--md-sys-color-outline) 25%, transparent); border-radius: 12px; background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-on-surface-variant); font: inherit; font-size: 14px; cursor: pointer; }
.place-categories button[aria-pressed="true"] { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); border-color: var(--md-sys-color-primary); }
.place-categories svg, .place-detail-title svg { display: block; width: 20px; height: 20px; }
.place-categories button:hover:not(:disabled) { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.places-results-heading, .place-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.places-results-heading .filter-check { display: flex; align-items: center; gap: 8px; }
.places-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.places-results { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; border-radius: 16px; scrollbar-width: thin; }
.places-results button { display: grid; gap: 4px; width: 100%; padding: 14px 16px; text-align: left; color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-container-low); border: 1px solid transparent; border-bottom-color: color-mix(in srgb, var(--md-sys-color-outline) 20%, transparent); font: inherit; cursor: pointer; }
.places-results button[aria-pressed="true"] { background: var(--md-sys-color-primary-container); border-color: var(--md-sys-color-primary); }
.places-results button span { font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.places-results button[aria-pressed="true"] span { color: inherit; }
.place-details { padding: 20px; border: 1px solid var(--md-sys-color-glass-edge); border-radius: 20px; background: var(--md-sys-color-surface-container-low); overflow-wrap: anywhere; }
.place-detail-title { justify-content: start; }
.place-detail-title h3 { margin: 0; font-size: 20px; line-height: 1.35; }
.place-detail-title > span { flex: 0 0 auto; padding: 10px; border-radius: 12px; color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); }
.place-details p { margin: 12px 0; }
.place-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: center; margin-top: 20px; }
.place-detail-actions > * { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border-radius: 12px; text-align: center; font-size: 14px; }
.place-detail-actions .button, .place-route-actions > .button { min-width: 0; padding-inline: 12px; white-space: normal; overflow-wrap: normal; word-break: normal; }
.place-pin { display: grid; place-items: center; isolation: isolate; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.place-pin::before { content: ''; position: absolute; z-index: -1; inset: 8px; border: 1.5px solid #fff; border-radius: 50%; background: var(--pin-color); box-shadow: 0 1px 4px #0005, inset 0 1px 0 #ffffff40; }
.place-pin svg { width: 17px; height: 17px; }
.place-pin:hover::before, .place-pin:focus-visible::before { box-shadow: 0 0 0 3px #ffffff80, 0 2px 6px #0005; }
.place-popup { z-index: 4; }
.place-popup .maplibregl-popup-content { max-height: min(320px, calc(100svh - 200px)); overflow-y: auto; padding: 16px; border: 1px solid var(--md-sys-color-glass-edge); color: var(--md-sys-color-on-surface); background: var(--md-sys-color-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 20px; box-shadow: 0 8px 28px #0003; }
.place-popup strong { display: block; padding-right: 28px; font-size: 16px; }
.place-popup p { margin: 12px 0; font-size: 14px; }
.flight-popup { z-index: 7; }
.flight-popup .maplibregl-popup-content { max-height: none; overflow: visible; padding: 0; }
.flight-card { overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.flight-card .flight-sub { margin: 4px 0 8px; color: var(--md-sys-color-on-surface-variant); font-size: 13px; }
.flight-card .flight-loading { color: var(--md-sys-color-on-surface-variant); font-size: 13px; }
.flight-photo { margin: 8px 0; }
.flight-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-surface-container); }
.flight-photo figcaption { margin-top: 4px; font-size: 11px; color: var(--md-sys-color-on-surface-variant); }
.flight-photo figcaption a { color: inherit; }
.flight-route { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.flight-route > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-surface-container-low); min-width: 0; }
.flight-route b { font-size: 20px; letter-spacing: .02em; }
.flight-route span { font-size: 12px; overflow-wrap: anywhere; }
.flight-route .flight-route-label { color: var(--md-sys-color-on-surface-variant); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.flight-card .flight-status { margin: 8px 0; padding: 6px 10px; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-size: 13px; font-weight: 600; width: fit-content; }
.flight-card .flight-status[data-colour="yellow"] { background: #f6e3a8; color: #4a3800; }
.flight-card .flight-status[data-colour="red"] { background: #f6c9c4; color: #5c1410; }
.flight-facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); align-items:baseline; gap: 10px 16px; margin: 16px 0 0; font-size: 14px; line-height:1.5; }
.flight-facts dt { color: var(--md-sys-color-on-surface-variant); }
.flight-facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric:tabular-nums; }
.place-popup .maplibregl-popup-close-button { width: 44px; height: 44px; color: inherit; font-size: 24px; }
.place-popup-actions { display: flex; gap: 8px; min-width: 216px; }
.place-popup-actions .button { flex: 1 0 auto; min-height: 44px; padding: 10px 12px; font-size: 14px; white-space: nowrap; }
.place-popup[class*="anchor-bottom"] .maplibregl-popup-tip { border-top-color: var(--md-sys-color-surface-container-lowest); }
.place-popup[class*="anchor-top"] .maplibregl-popup-tip { border-bottom-color: var(--md-sys-color-surface-container-lowest); }
.place-popup[class*="anchor-left"] .maplibregl-popup-tip { border-right-color: var(--md-sys-color-surface-container-lowest); }
.place-popup[class*="anchor-right"] .maplibregl-popup-tip { border-left-color: var(--md-sys-color-surface-container-lowest); }
.place-cluster { --pin-color: #275f88; font: 650 13px sans-serif; }
.place-cluster::before { inset: 6px; border-width: 2px; }
.place-pick-prompt { position: absolute; z-index: 5; bottom: 16px; left: 16px; right: 16px; padding: 12px 16px; border-radius: 12px; background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); box-shadow: 0 2px 10px #0006; font-size: 14px; }
.place-pick-prompt button { margin-left: 12px; min-height: 44px; background: none; border: 0; color: var(--md-sys-color-primary); font: inherit; text-decoration: underline; cursor: pointer; }
.place-pin:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.place-endpoint { display: grid; place-items: center; height: 30px; width: 30px; border: 2px solid white; border-radius: 50%; background: #0b78d0; color: white; font: bold 16px sans-serif; box-shadow: 0 2px 6px #0008; }
.place-routing { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--md-sys-color-outline); }
.place-route-points { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 16px 0; }
.place-route-points > .button { justify-self: center; min-width: 84px; }
.place-route-points > div { min-width: 0; align-self: stretch; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--md-sys-color-glass-edge); border-radius: 16px; background: var(--md-sys-color-surface-container-low); }
.place-route-points button.text-link { display: block; min-height: 44px; text-align: left; }
.place-route-result { padding: 20px; margin-top: 16px; background: var(--md-sys-color-primary-container); border-radius: 12px; color: var(--md-sys-color-on-primary-container); }
.place-route-result > strong { font-size: 24px; }
.place-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.place-result-actions > a, .place-result-actions > button { min-height: 44px; display: inline-flex; align-items: center; }
.place-route-result li { margin: 10px 0; }
.places-attribution { margin: 24px 0 0; font-size: 12px; }
.places-share input { width: 100%; padding: 12px; color: inherit; background: var(--md-sys-color-surface); border: 1px solid var(--md-sys-color-outline); border-radius: 8px; }
@media (max-width: 600px) {
  .journey-shell > .places-panel { margin: 0 12px 16px; }
  .places-grid, .place-route-points { grid-template-columns: 1fr; }
  .places-content { padding: 0 12px 16px; }
  .places-search { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .places-search label:first-child { grid-column: 1 / -1; }
  .places-search .button { white-space: normal; min-width: 0; padding: 10px 12px; font-size: 14px; }
  .place-categories { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .place-categories button { flex-shrink: 0; font-size: 13px; }
  .places-results { max-height: 300px; }
  .places-content input[type="search"], .places-content select, .places-share input { font-size: 16px; }
  .place-route-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place-route-actions label { grid-column: 1 / -1; }
}
.journey-shell { background: var(--md-sys-color-surface-container-lowest); border-radius: var(--md-sys-shape-corner-extra-large); overflow: clip; }
.journey-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 32px 0; }
.journey-day-label { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.journey-day-label select { min-height: 48px; min-width: 128px; border: 1px solid var(--md-sys-color-outline); border-radius: 12px; padding: 8px 12px; background: transparent; }
.journey-primary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 32px; }
.journey-primary-metrics.is-whole-walk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journey-primary-metrics.journey-estimated-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
.journey-estimated-metrics > div { display: flex; flex-direction: column; }
.journey-primary-metrics.journey-estimated-metrics dd { margin-top: auto; padding-top: 4px; }
.journey-primary-metrics dt { font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.journey-primary-metrics dd { font-size: 30px; font-weight: 600; line-height: 1.4; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.journey-map-wrap { position: relative; background: #e1ede7; }
.journey-map-wrap.has-traffic-details { display:grid; grid-template-columns:minmax(0,1fr) 320px; }
.map-traffic-details { min-width:0; max-height:520px; overflow:auto; overscroll-behavior:contain; background:var(--md-sys-color-surface-container); color:var(--md-sys-color-on-surface); border-left:1px solid var(--md-sys-color-outline-variant); }
.map-detail-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 12px; position:sticky; top:0; z-index:1; background:var(--md-sys-color-surface-container); border-bottom:1px solid var(--md-sys-color-outline-variant); }
.map-detail-heading strong { flex:1; }
.map-detail-heading button { min-height:44px; padding:8px 12px; border:0; border-radius:8px; background:var(--md-sys-color-surface-container-high); color:inherit; cursor:pointer; }
.map-detail-heading .map-detail-close { order:2; min-width:44px; font-size:24px; }
.map-detail-heading button:focus-visible { outline:3px solid var(--md-sys-color-primary); outline-offset:2px; }
.map-traffic-details .flight-card { overflow:visible; }
@media(max-width:800px) {
  .journey-map-wrap.has-traffic-details { grid-template-columns:minmax(0,1fr); }
  .map-traffic-details { max-height:min(480px,60vh); border-left:0; border-top:1px solid var(--md-sys-color-outline-variant); }
}
.journey-map { height: 520px; width: 100%; }
.journey-map .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.map-loading { position: absolute; top: 40%; left: 0; right: 0; text-align: center; pointer-events: none; }
.map-actions { position: absolute; left: 24px; bottom: 32px; display: flex; gap: 8px; }
.map-action { background: var(--md-sys-color-surface-container); padding: 12px 20px; }
.map-action[aria-pressed="true"] { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); }
.journey-history { padding: 16px 32px 32px; border-top: 1px solid var(--md-sys-color-surface-container); }
.journey-history-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.journey-history-heading h3 { font-size: 20px; }
.journey-history-heading span, .journey-history > p { font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.altitude-profile { display: block; width: 100%; height: 110px; margin-top: 16px; color: var(--md-sys-color-primary); background: linear-gradient(0deg, var(--md-sys-color-surface-container-low), transparent); }
.history-range { display: block; width: 100%; min-height: 48px; margin: 0; accent-color: var(--md-sys-color-primary); cursor: ew-resize; }
.history-metrics, .journey-live-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 16px 0; }
.history-metrics dt, .journey-live-metrics dt { color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.history-metrics dd, .journey-live-metrics dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.journey-context { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.journey-context-panel { min-width: 0; border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container-low); padding: 32px; }
.journey-context-panel h3 { margin-bottom: 8px; }
.journey-context-panel > .quiet, .context-footnote { font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.context-footnote { margin-top: 16px; }
.weather-temperature { font-size: 36px; font-weight: 600; letter-spacing: -.02em; margin-top: 16px; }
.journey-notice { padding: 16px 32px; }
@media (max-width: 900px) {
  .journey-context { grid-template-columns: 1fr; }
  .journey-primary-metrics { grid-template-columns: repeat(2, 1fr); }
  .site-header nav { gap: 16px; }
}
@media (max-width: 599px) {
  .header-inner { flex-wrap: wrap; padding-block: 16px; gap: 8px; }
  .site-header nav { flex-basis: 100%; justify-content: space-between; }
  .journey-controls { padding: 20px 20px 0; flex-wrap: wrap; gap: 16px; }
  .journey-day-label { width: 100%; justify-content: space-between; }
  .journey-primary-metrics { padding: 24px 20px; gap: 20px 16px; }
  .journey-primary-metrics dd { font-size: 24px; }
  .journey-map { height: 420px; }
  .map-actions { left: 12px; bottom: 36px; gap: 8px; }
  .map-action { font-size: 14px; padding: 12px 14px; }
  .journey-history { padding: 16px 20px 24px; }
  .history-metrics, .journey-live-metrics { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .journey-context-panel { padding: 24px 20px; }
  .journey-freshness { white-space: normal; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface); font: 400 var(--md-sys-typescale-body-large-size)/1.6 "Segoe UI", Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button, input, select { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select { transition: background-color 200ms, color 200ms, transform 200ms var(--md-sys-motion-easing-emphasized); }
:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 4px; }
::selection { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); }
[v-cloak] { display: none; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10; padding: 16px 24px; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border-radius: var(--md-sys-shape-corner-large); }
.skip-link:focus { top: 16px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h2 { font-size: var(--md-sys-typescale-headline-large-size); line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: var(--md-sys-typescale-title-large-size); line-height: 1.3; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }
.site-header { background: var(--md-sys-color-surface); }
.header-inner { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 650; line-height: 1.2; }
.site-header nav { display: flex; align-items: center; gap: var(--space-lg); }
.site-header nav a { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.site-header nav a:hover, .text-link:hover { color: var(--md-sys-color-primary); }
.watch-nav { background: var(--md-sys-color-secondary-container); padding: 0 24px; border-radius: var(--md-sys-shape-corner-full); }
.hero { position: relative; isolation: isolate; }
.hero-media { height: 540px; overflow: hidden; border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-secondary-container); }
.hero-media picture { display: contents; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 54%; animation: coast-arrive 1100ms var(--md-sys-motion-easing-emphasized) both; }
.hero-copy { position: absolute; top: 40px; left: 40px; width: 590px; padding: 32px; border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 var(--md-sys-color-glass-edge); }
.hero h1 { font-size: var(--md-sys-typescale-display-large-size); line-height: 1.03; letter-spacing: -.045em; max-width: 12ch; animation: arrive 700ms var(--md-sys-motion-easing-emphasized) both; }
.hero-route { font-size: 24px; font-weight: 500; margin-top: 16px; animation: arrive 700ms 60ms var(--md-sys-motion-easing-emphasized) both; }
.hero-route > span[aria-hidden] { margin-inline: 8px; color: var(--md-sys-color-primary); }
.hero-intro { max-width: 43ch; margin-top: 12px; animation: arrive 700ms 120ms var(--md-sys-motion-easing-emphasized) both; }
.hero .button { margin-top: 24px; animation: arrive 700ms 180ms var(--md-sys-motion-easing-emphasized) both; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--md-sys-shape-corner-full); font-size: 16px; font-weight: 600; line-height: 1.4; }
.primary { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.primary:hover { background: var(--md-sys-color-on-primary-container); }
.tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.tonal:hover { background: var(--md-sys-color-primary-container); }
.button:active:not(:disabled) { transform: scale(.97); }
.route-note { position: absolute; bottom: 24px; left: 32px; right: 32px; display: flex; justify-content: space-between; gap: 16px; color: var(--md-sys-color-on-surface); font-size: 14px; font-weight: 600; }
.route-note span { background: var(--md-sys-color-glass); backdrop-filter: blur(12px); padding: 8px 16px; border-radius: var(--md-sys-shape-corner-full); }
.live-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 32px 40px; margin-top: 24px; background: var(--md-sys-color-surface-container-lowest); border-radius: var(--md-sys-shape-corner-extra-large); animation: arrive 700ms 240ms var(--md-sys-motion-easing-emphasized) both; }
.timer-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.timer-heading h2 { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.running { color: var(--md-sys-color-primary); }
.timer { margin-block: 4px 8px; font-size: 48px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.quiet { color: var(--md-sys-color-on-surface-variant); }
.timer-block > .quiet { font-size: 14px; max-width: 45ch; }
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.live-stats div { display: flex; flex-direction: column; gap: 4px; }
.live-stats dd { order: -1; font-size: clamp(24px, 3vw, 36px); font-weight: 600; margin: 0; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.live-stats dt { color: var(--md-sys-color-on-surface-variant); font-size: 14px; line-height: 1.4; }
.section { padding-top: 96px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.section-heading h2 { max-width: 22ch; }
.section-heading p { color: var(--md-sys-color-on-surface-variant); margin-top: 12px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 48px; background: none; border: 0; padding: 8px 0; color: var(--md-sys-color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.reward-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.reward-art { background: var(--md-sys-color-primary-container); border-radius: var(--md-sys-shape-corner-extra-large); overflow: hidden; }
.reward-art svg { display: block; width: 100%; aspect-ratio: 1.5; }
.reward-title { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.reward-title h3 { font-size: 28px; }
.reward-price { font-size: 32px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--md-sys-color-primary); }
.reward-item + .reward-item { margin-top: 32px; }
.reward-item p { margin-top: 12px; }
.reward-footnote { margin-top: 24px; padding: 16px 20px; background: var(--md-sys-color-surface-container-low); border-radius: var(--md-sys-shape-corner-large); color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.supporter-shell { border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container-lowest); overflow: clip; }
.supporter-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px; }
.view-switch { display: flex; padding: 4px; gap: 4px; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-surface-container-low); }
.view-switch button { min-height: 44px; padding: 8px 20px; border: 0; background: transparent; border-radius: var(--md-sys-shape-corner-full); white-space: nowrap; font-weight: 500; }
.view-switch [aria-pressed="true"] { color: var(--md-sys-color-on-primary-container); background: var(--md-sys-color-primary-container); }
.search-form { display: flex; align-items: center; gap: 8px; }
input[type="search"] { width: 220px; max-width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid var(--md-sys-color-outline); border-radius: var(--md-sys-shape-corner-full); background: transparent; }
input::placeholder { color: var(--md-sys-color-on-surface-variant); opacity: 1; }
.supporter-controls { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 0 32px 16px; }
.supporter-controls p { font-size: 14px; }
.filter-check { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--md-sys-color-primary); }
.recent-controls { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 24px 24px; }
.recent-controls label { display: flex; flex: 1; gap: 8px; flex-direction: column; color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
select { width: 100%; min-height: 48px; padding: 8px 32px 8px 16px; border: 1px solid var(--md-sys-color-outline); border-radius: var(--md-sys-shape-corner-small); background: var(--md-sys-color-surface-container-lowest); font-size: 16px; }
.supporter-main { display: grid; grid-template-columns: 48px minmax(0,1fr) auto 24px; gap: 16px; width: 100%; align-items: center; text-align: left; border: 0; padding: 20px 32px; background: transparent; }
.supporter-row:nth-child(even), .event-row:nth-child(even) { background: var(--md-sys-color-surface-container-low); }
.supporter-main:hover { background: var(--md-sys-color-secondary-container); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--md-sys-shape-corner-large); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-size: 20px; font-weight: 500; }
.supporter-name { display: flex; flex-direction: column; gap: 4px; }
.supporter-name strong { font-weight: 600; overflow-wrap: anywhere; }
.supporter-name > span { font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.earned-label { color: var(--md-sys-color-primary); }
.supporter-amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.chevron { font-size: 24px; color: var(--md-sys-color-primary); text-align: center; }
.supporter-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 8px 32px 32px 96px; animation: arrive 250ms var(--md-sys-motion-easing-emphasized); }
.supporter-detail h3 { font-size: 16px; margin-block: 12px; }
.breakdown, .history-list, .reward-grants, .event-rewards { list-style: none; padding: 0; margin: 0; }
.breakdown li, .history-list li, .reward-grants li { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.breakdown strong, .history-list strong { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.history-list time, .event-value time { display: block; color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.reward-grants li { flex-direction: column; gap: 4px; }
.reward-status { color: var(--md-sys-color-primary); font-size: 14px; }
.event-row { padding: 20px 32px; display: flex; justify-content: space-between; gap: 24px; }
.event-row strong { font-weight: 600; overflow-wrap: anywhere; }
.event-row .quiet { font-size: 14px; }
.event-rewards { margin-top: 8px; font-size: 14px; color: var(--md-sys-color-primary); }
.event-value { text-align: right; flex-shrink: 0; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; }
.pagination > span { color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.list-footer { padding: 24px 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.list-caption { color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.privacy-note { color: var(--md-sys-color-on-surface-variant); font-size: 14px; margin: 16px 8px 0; max-width: 70ch; }
.how-section { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; padding-bottom: 96px; }
.how-section > div:first-child { padding-top: 24px; }
.how-section h2 { max-width: 14ch; }
.how-section p { color: var(--md-sys-color-on-surface-variant); max-width: 43ch; margin-top: 16px; }
.how-section .button { margin-top: 32px; }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.how-section .support-actions .button { margin-top: 0; gap: 12px; }
.follow-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.follow-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--md-sys-color-on-surface-variant); text-decoration: underline; text-underline-offset: 4px; }
.rates-panel { padding: 32px; background: var(--md-sys-color-surface-container); border-radius: var(--md-sys-shape-corner-extra-large); }
.rates-panel h3 { font-size: 24px; margin-bottom: 16px; }
.rate-list { margin: 0; }
.rate-list div { display: flex; justify-content: space-between; gap: 24px; padding-block: 8px; }
.rate-list dd { margin: 0; font-weight: 600; white-space: nowrap; color: var(--md-sys-color-primary); font-variant-numeric: tabular-nums; }
.rates-panel > .quiet { font-size: 14px; }
.site-footer { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding-block: 32px; }
.site-footer p { font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.notice { padding: 24px; background: var(--md-sys-color-surface-container); border-radius: var(--md-sys-shape-corner-large); display: flex; gap: 24px; align-items: center; }
.error { color: var(--md-sys-color-error); }
.list-notice { padding: 0 32px 16px; }
.empty-state { text-align: center; padding: 64px 24px; color: var(--md-sys-color-on-surface-variant); }
.skeleton { height: 64px; background: var(--md-sys-color-surface-container); border-radius: var(--md-sys-shape-corner-large); animation: breathe 1500ms ease-in-out infinite alternate; }
.skeleton-list { display: grid; gap: 16px; padding: 24px; }
.reward-skeleton { height: 280px; }
.promo { margin-top: 8px; color: var(--md-sys-color-primary); font-weight: 600; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes coast-arrive { from { transform: scale(1.025); } to { transform: scale(1); } }
@keyframes breathe { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 1199px) {
  .hero-copy { width: 560px; }
  .live-panel { gap: 32px; padding: 32px; }
  .live-stats { gap: 16px; }
  .supporter-toolbar { flex-wrap: wrap; }
  .how-section { gap: 48px; }
}
@media (max-width: 839px) {
  :root { --md-sys-typescale-display-large-size: 64px; --md-sys-typescale-headline-large-size: 32px; }
  .wrap { width: calc(100% - 48px); }
  .header-inner { min-height: 88px; gap: 16px; }
  .wordmark { font-size: 18px; }
  .site-header nav { gap: 16px; }
  .site-header .watch-nav { display: none; }
  .hero-media { height: 520px; }
  .hero-copy { width: 500px; top: 32px; left: 24px; }
  .live-panel { grid-template-columns: 1fr; gap: 24px; }
  .live-stats { background: var(--md-sys-color-surface-container-low); padding: 24px; border-radius: var(--md-sys-shape-corner-large); }
  .section { padding-top: 64px; }
  .section-heading { align-items: start; }
  .reward-layout { gap: 24px; grid-template-columns: .8fr 1fr; }
  .reward-title { flex-direction: column; gap: 8px; }
  .reward-title h3 { font-size: 24px; }
  .reward-footnote { padding: 16px; }
  .supporter-toolbar { padding: 24px; }
  .search-form { flex: 1; }
  input[type="search"] { flex: 1; width: auto; min-width: 0; }
  .supporter-controls { align-items: start; flex-direction: column; gap: 0; padding-inline: 24px; }
  .supporter-detail { padding-left: 32px; }
  .how-section { gap: 32px; padding-bottom: 64px; }
  .rates-panel { padding: 24px; }
  .site-footer { flex-wrap: wrap; justify-content: start; }
  .site-footer p { flex: 1; }
}
@media (max-width: 599px) {
  :root { --md-sys-typescale-display-large-size: 44px; --md-sys-typescale-headline-large-size: 30px; }
  html { scroll-padding-top: 24px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 80px; gap: 12px; }
  .wordmark { font-size: 16px; gap: 8px; }
  .wordmark img { width: 32px; height: 32px; }
  .site-header nav { gap: 12px; font-size: 14px; }
  .hero-media { height: 560px; border-radius: var(--md-sys-shape-corner-extra-large); }
  .hero-media img { object-position: 68% 55%; }
  .hero-copy { top: 16px; left: 16px; right: 16px; width: auto; padding: 24px; }
  .hero h1 { max-width: 12ch; }
  .hero-route { font-size: 20px; margin-top: 16px; }
  .hero-intro { margin-top: 12px; }
  .hero .button { width: 100%; margin-top: 24px; }
  .route-note { left: 16px; right: 16px; bottom: 16px; justify-content: start; }
  .route-note span { padding: 8px 12px; }
  .route-note span:first-child { display: none; }
  .live-panel { padding: 24px; margin-top: 16px; gap: 24px; }
  .timer { font-size: 44px; }
  .live-stats { gap: 12px; padding: 20px 16px; margin-inline: -8px; }
  .live-stats dd { font-size: 30px; }
  .live-stats dt { font-size: 13px; }
  .section-heading { flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .section-heading h2 { max-width: 20ch; }
  .section-heading p { margin-top: 12px; }
  .reward-layout { grid-template-columns: 1fr; gap: 24px; }
  .reward-art svg { aspect-ratio: 1.7; height: 210px; }
  .reward-title { flex-direction: row; gap: 16px; }
  .reward-price { font-size: 28px; }
  .reward-item p { margin-top: 8px; }
  .supporter-toolbar { gap: 16px; padding: 16px; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; padding: 8px 12px; }
  .search-form { width: 100%; }
  .search-form .button { padding-inline: 20px; }
  .supporter-controls { padding-inline: 20px; }
  .recent-controls { padding: 0 16px 16px; gap: 12px; }
  .recent-controls label { flex-basis: 100%; }
  .supporter-main { grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; padding: 20px 16px; }
  .avatar { width: 40px; height: 40px; font-size: 16px; border-radius: var(--md-sys-shape-corner-medium); }
  .supporter-name { gap: 4px; }
  .supporter-name > span { font-size: 13px; }
  .supporter-amount { font-size: 16px; }
  .chevron { display: none; }
  .supporter-detail { grid-template-columns: 1fr; gap: 16px; padding: 0 20px 24px; }
  .event-row { padding: 20px; gap: 12px; flex-wrap: wrap; }
  .event-value { text-align: left; }
  .event-value time { font-size: 13px; }
  .list-footer { padding: 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .pagination { padding: 20px 16px; gap: 8px; }
  .pagination .button { padding-inline: 16px; }
  .how-section { grid-template-columns: 1fr; gap: 24px; }
  .how-section > div:first-child { padding: 0; }
  .how-section h2 { max-width: 18ch; }
  .how-section .button { margin-top: 24px; }
  .site-footer { padding-block: 24px; gap: 12px; flex-direction: column; align-items: start; }
  .site-footer .text-link { margin-top: 4px; }
  .notice { flex-direction: column; align-items: start; }
}
@media (max-width: 359px) {
  :root { --md-sys-typescale-display-large-size: 36px; }
  .hero-copy { padding: 20px; }
  .hero-route { font-size: 18px; }
  .reward-title { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .hero-copy { background: Canvas; }
  .button, .view-switch button, .avatar { border: 1px solid ButtonText; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --md-sys-color-primary: #e8c675;
  --md-sys-color-on-primary: #241a05;
  --md-sys-color-primary-container: #3c3015;
  --md-sys-color-on-primary-container: #f6dea2;
  --md-sys-color-secondary-container: #292620;
  --md-sys-color-on-secondary-container: #ece0c5;
  --md-sys-color-surface: #0c0c0e;
  --md-sys-color-on-surface: #f2eee5;
  --md-sys-color-on-surface-variant: #bdb6a8;
  --md-sys-color-surface-container-lowest: #131315;
  --md-sys-color-surface-container-low: #1c1b1a;
  --md-sys-color-surface-container: #25231f;
  --md-sys-color-surface-container-high: #302d27;
  --md-sys-color-outline-variant: #514a3f;
  --md-sys-color-outline: #8d8270;
  --md-sys-color-error: #ffb4a9;
  --md-sys-color-glass: #141313ed;
  --md-sys-color-glass-edge: #e8c67520;
  --hat-crown: #d0b68d;
  --hat-brim: #e1cba7;
  --hat-band: #4d3c18;
  --hat-shadow: #16130d;
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: var(--md-sys-color-on-surface); }
.theme-toggle:hover { background: var(--md-sys-color-secondary-container); }
.theme-toggle svg { width: 24px; height: 24px; }
.theme-sun, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
.journey-connection { color: var(--md-sys-color-on-surface-variant); margin: -8px 0 24px; padding: 16px 20px; border-radius: 16px; background: var(--md-sys-color-surface-container-low); }
.journey-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px 24px; flex-wrap: wrap; }
.journey-map-toolbar .filter-check { min-height: 48px; }
.journey-map-toolbar .view-switch { width: auto; }
.journey-map-wrap { background: var(--md-sys-color-surface-container); }
.journey-map:fullscreen { width: 100vw; height: 100vh; }
.journey-map-wrap:fullscreen { width:100vw; height:100vh; border-radius:0; }
.journey-map-wrap:fullscreen .journey-map { height:100%; }
.journey-map-wrap:fullscreen .map-traffic-details { max-height:none; }
@media(max-width:800px) { .journey-map-wrap:fullscreen.has-traffic-details { grid-template-rows:minmax(0,1fr) minmax(0,40svh); } .journey-map-wrap:fullscreen .map-traffic-details { max-height:40svh; } }
.map-actions { position: static; padding: 16px 24px; flex-wrap: wrap; }
@media (max-width: 600px) { .map-actions { padding-inline: 12px; } }
.map-action { color: var(--md-sys-color-on-surface); }
.journey-stage { scroll-margin-block: 12px; }
.journey-stage .journey-map { height: clamp(180px, calc(100svh - 210px), 520px); }
.route-timeline { padding: 16px 24px 12px; background: var(--md-sys-color-surface-container-lowest); }
.route-timeline-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.route-timeline-heading label { font-weight: 600; }
.route-timeline-heading time { color: var(--md-sys-color-on-surface-variant); font-variant-numeric: tabular-nums; }
.route-timeline .history-range { display: block; margin: 6px 0 0; width: 100%; min-height: 44px; }
.timeline-offset { font-size: 12px; margin-top: 4px; }
.recorded-details summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; min-height: 48px; align-items: center; font-weight: 600; }
.recorded-details summary span { color: var(--md-sys-color-on-surface-variant); font-size: 14px; font-weight: 400; }
.journey-moments { margin-top: 32px; padding: 32px; border-radius: 28px; background: var(--md-sys-color-surface-container-lowest); }
.moments-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.moments-heading h3 { font-size: 24px; }
.moments-heading p { margin-top: 8px; font-size: 14px; max-width: 56ch; }
.moment-time { color: var(--md-sys-color-primary); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.moment-tabs { display: flex; gap: 4px; padding: 4px; background: var(--md-sys-color-surface-container-low); border-radius: 28px; width: fit-content; max-width: 100%; margin-block: 24px; flex-wrap: wrap; }
.moment-tabs button { background: transparent; border: 0; border-radius: 24px; min-height: 44px; padding: 8px 20px; color: var(--md-sys-color-on-surface-variant); font-weight: 600; }
.moment-tabs [aria-pressed="true"] { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.moments-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.moments-layout.is-live-view { display: block; }
.moment-viewer { min-width: 0; border: 1px solid var(--md-sys-color-glass-edge); border-radius: 20px; overflow: hidden; background: var(--md-sys-color-surface-container-low); }
.moment-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.moment-viewer-toolbar .button { min-height: 44px; padding: 8px 16px; font-size: 13px; }
.moment-screen { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-width: 0; aspect-ratio: 16 / 9; background: #0e0e10; color: #f2eee5; position: relative; overflow: hidden; }
.moment-screen.is-placeholder { aspect-ratio: auto; min-height: 260px; }
.moment-screen img, .moment-screen video { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.moment-screen iframe { border: 0; width: 100%; height: 100%; position: absolute; inset: 0; }
.moment-screen.is-twitch { min-height: 300px; }
.moment-placeholder { text-align: center; padding: 32px; width: 100%; min-width: 0; max-width: min(100%, 56ch); overflow-wrap: anywhere; }
.moment-eyebrow { font-size: 11px; letter-spacing: .15em; color: #e8c675; }
.moment-placeholder h4 { font-size: clamp(20px, 2vw, 28px); font-weight: 500; margin: 12px 0; }
.moment-placeholder p { font-size: 14px; line-height: 1.6; color: #bdb6a8; }
.moment-placeholder .button { margin-top: 20px; }
.moment-caption { padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.moment-caption strong { font-size: 15px; overflow-wrap: anywhere; }
.moment-caption p { margin-top: 4px; font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.moment-caption .text-link { font-size: 13px; white-space: nowrap; min-height: 44px; }
.moment-list { min-width: 0; }
.moment-entries { min-width: 0; max-height: 360px; overflow-y: auto; overflow-x: hidden; padding-right: 8px; scrollbar-gutter: stable; overscroll-behavior: contain; overflow-anchor: none; scrollbar-width: thin; }
.moment-list-heading { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 12px; padding: 12px 0; }
.moment-list-heading h4 { min-width: 0; margin: 8px 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.moment-list-heading > span { min-width: 3ch; padding: 2px 8px; line-height: 1.6; text-align: center; border-radius: 8px; background: var(--md-sys-color-surface-container); font-variant-numeric: tabular-nums; white-space: nowrap; }
.moment-list-empty { font-size: 14px; padding-block: 16px; }
.moment-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--md-sys-color-glass-edge); background: transparent; border-radius: 12px; }
.moment-row:hover, .moment-row[aria-pressed="true"] { background: var(--md-sys-color-secondary-container); }
.moment-row > span:nth-child(2) { min-width: 0; flex: 1; }
.moment-row strong { font-size: 14px; font-weight: 500; display: block; overflow-wrap: anywhere; }
.moment-row time { font-size: 12px; color: var(--md-sys-color-on-surface-variant); display: block; margin-top: 4px; }
.moment-row-arrow { color: var(--md-sys-color-primary); }
.event-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: #60766b; display: inline-block; }
.event-tip { background: #b86837; }.event-bits, .event-clip { background: #7f5bbb; }.event-sub { background: #38846d; }.event-follow { background: #397eb5; }.event-raid { background: #a44978; }.event-hype { background: #bd8a22; }.event-screenshot { background: #668eab; }
.event-filters { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 20px; }
.event-filters label { font-size: 13px; gap: 8px; }
.event-filters input { width: 18px; height: 18px; }
.moment-note { font-size: 13px; margin-top: 16px; }
.moment-viewer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.moment-step { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--md-sys-color-surface-container); font-size: 26px; color: var(--md-sys-color-primary); }
.moment-counter { min-width: 7ch; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.moment-image-button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.moment-viewer.is-expanded .moment-image-button { cursor: zoom-out; }
.moment-image-button:focus-visible { outline-offset: -4px; z-index: 1; }
.moment-playback-note { padding: 12px 16px; font-size: 14px; }
.moment-event { width: 100%; max-width: 100%; text-align: left; }
.moment-event-details { margin: 24px 0; }
.moment-event-details > div { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.5fr); gap: 16px; padding: 8px 0; border-bottom: 1px solid #ffffff1a; }
.moment-event-details dt { color: #bdb6a8; font-size: 14px; }
.moment-event-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.moment-event a, .moment-popup-row a { text-decoration: underline; text-underline-offset: 4px; }
.moment-event a { color: #f1d28a; }
.moment-popup-row a { color: var(--md-sys-color-primary); }
.moment-event a:hover, .moment-popup-row a:hover { text-decoration-color: currentColor; }
.moment-popup-heading { margin: 0; padding-right: 40px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.moment-popup-hint { margin: 8px 36px 12px 0; color: var(--md-sys-color-on-surface-variant); font-size: 13px; }
.journey-records { margin-top: 24px; padding: 32px; border-radius: 28px; background: var(--md-sys-color-surface-container-low); }
.journey-records > .quiet { margin-top: 8px; font-size: 14px; }
.journey-record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; margin: 24px 0 0; }
.journey-record-grid dt { color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.journey-record-grid dd { margin: 8px 0 0; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.journey-record-grid .record-date { margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--md-sys-color-on-surface-variant); }
@media (max-width: 599px) { .journey-records { padding: 24px 20px; } .journey-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .journey-record-grid dd { font-size: 21px; } }
.moment-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--md-sys-color-primary); stroke-linecap: round; stroke-linejoin: round; }
.moment-search-label { display: flex; flex-direction: column; gap: 8px; color: var(--md-sys-color-on-surface-variant); font-size: 13px; padding: 4px 0 12px; }
.moment-search-label input { width: 100%; font-size: 16px; }
.moment-popup { min-width: 0; max-height: min(300px, calc(100svh - 380px)); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 8px; }
.moment-popup-action, .moment-popup-more { width: 100%; min-height: 48px; margin-top: 12px; }
.moment-popup-row { padding-block: 8px; }
.moment-popup-row + .moment-popup-row { border-top: 1px solid var(--md-sys-color-glass-edge); }
.moment-popup-row strong { display: block; font-size: 15px; }
.moment-popup-row p { font-size: 13px; color: var(--md-sys-color-on-surface-variant); margin-top: 6px; }
.moment-popup-row button { font-size: 14px; }
.event-filter-panel { margin-block: -4px 24px; border-block: 1px solid var(--md-sys-color-glass-edge); }
.event-filter-panel summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; color: var(--md-sys-color-primary); font-weight: 600; font-size: 14px; }
.event-filter-panel .event-filters { margin-bottom: 12px; }
.event-filter-panel summary::after, .recorded-details summary::after { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 4px 4px auto; }
.event-filter-panel[open] summary::after, .recorded-details[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.map-help { flex-basis: 100%; font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
[data-theme="dark"] .journey-map .maplibregl-ctrl-scale { background: #141313e8; color: #f2eee5; border-color: #bdb6a8; }
[data-theme="dark"] .wordmark img { filter: grayscale(1) sepia(.8) saturate(2); }
.moment-viewer.is-expanded { position: fixed; inset: clamp(8px, 2vw, 24px); z-index: 2000; border: 1px solid var(--md-sys-color-glass-edge); border-radius: 20px; display: flex; flex-direction: column; background: var(--md-sys-color-glass); box-shadow: 0 0 0 100vmax #0007, 0 16px 48px #0005; overflow-y: auto; overscroll-behavior: contain; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.moment-viewer.is-expanded .moment-viewer-toolbar { padding: 12px 24px; flex-shrink: 0; }
.moment-viewer.is-expanded .moment-screen { flex: 1; min-height: 240px; aspect-ratio: auto; }
.moment-viewer.is-expanded .moment-caption { flex-shrink: 0; }
@media (max-width: 839px) {
  .moments-layout { grid-template-columns: 1fr; }
  .moment-entries { max-height: 300px; }
  .journey-moments { padding: 24px; }
  .moments-heading { flex-direction: column; gap: 12px; }
}
@media (max-width: 599px) {
  .journey-moments { padding: 20px; border-radius: 24px; }
  .route-timeline { padding-inline: 16px; }
  .journey-stage .journey-map { max-height: 420px; }
  .moment-tabs { width: 100%; border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; }
  .moment-tabs button { padding-inline: 12px; font-size: 14px; }
  .moment-placeholder { padding: 24px 16px; }
  .moment-screen { min-height: 230px; }
  .moment-caption { flex-direction: column; align-items: start; gap: 0; }
  .recorded-details summary { flex-wrap: wrap; gap: 4px; padding-block: 8px; }
}
.map-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 24px 24px; }
.map-links .button { font-size: 14px; padding-inline: 18px; gap: 12px; }
.map-links > p { width: 100%; font-size: 14px; }
.weather-heading { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.weather-temperature { color: var(--md-sys-color-primary); }
.weather-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; margin: 24px 0 0; }
.weather-metrics dt { color: var(--md-sys-color-on-surface-variant); font-size: 14px; }
.weather-metrics dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.weather-more { margin-top: 20px; }
.weather-more summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--md-sys-color-primary); font-weight: 600; cursor: pointer; }
.weather-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
.weather-more[open] summary::after { transform: rotate(225deg); }
.weather-more .weather-metrics { margin-top: 16px; }
.inline-link { color: var(--md-sys-color-primary); text-decoration: underline; text-underline-offset: 3px; }
.journey-map .maplibregl-popup-content { background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); border-radius: 16px; padding: 20px; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.journey-map .maplibregl-popup-close-button { width: 44px; height: 44px; color: inherit; font-size: 24px; border-radius: 50%; right: 4px; top: 4px; }
.journey-map .journey-popup { width: min(360px, calc(100vw - 48px)); z-index: 5; }
@media (max-width: 699px), (max-width: 999px) and (max-height: 500px) {
  .journey-map .journey-popup { position: fixed; display: block; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); top: auto; width: auto; max-width: none !important; transform: none !important; z-index: 1000; }
  .journey-map .journey-popup .maplibregl-popup-tip { display: none; }
  .journey-map .journey-popup .maplibregl-popup-content { border: 1px solid var(--md-sys-color-outline); border-radius: 24px; box-shadow: 0 8px 48px #0009; padding: 20px; }
  .journey-popup .moment-popup { max-height: min(360px, calc(100dvh - 240px)); }
}
.journey-map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--md-sys-color-surface-container-lowest); }
[data-theme="dark"] .journey-map .maplibregl-ctrl-group, [data-theme="dark"] .journey-map .maplibregl-ctrl-attrib { background: var(--md-sys-color-glass); color: var(--md-sys-color-on-surface); }
[data-theme="dark"] .journey-map .maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(.9); }
[data-theme="dark"] .journey-map .maplibregl-ctrl-attrib a { color: var(--md-sys-color-on-surface); }
[data-theme="dark"] .journey-map .maplibregl-ctrl-scale { background: #14221dd9; color: #e2eee4; border-color: #c1d4c7; }
@media (max-width: 599px) {
  .journey-map-toolbar { padding: 0 12px 16px; gap: 8px; }
  .journey-map-toolbar .view-switch { width: 100%; }
  .map-links { padding: 8px 12px 24px; gap: 8px; }
  .map-links .button { flex: 1 1 130px; }
  .map-links > p { margin-top: 4px; }
  .weather-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.journey-days { padding: 16px 32px; border-top: 1px solid var(--md-sys-color-glass-edge); }
.journey-days summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 600; }
.journey-days summary span { margin-left: 8px; color: var(--md-sys-color-on-surface-variant); font-weight: 400; }
.journey-days > p { margin: 4px 0 12px; }
.journey-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; max-height: 264px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 4px; }
.journey-legend > button { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; padding: 8px 12px; border: 1px solid var(--md-sys-color-glass-edge); border-radius: 12px; background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-on-surface); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.journey-legend > button:hover, .journey-legend > button[aria-pressed="true"] { border-color: var(--md-sys-color-primary); background: var(--md-sys-color-surface-container-high); }
.journey-legend i { flex: 0 0 20px; height: 5px; border-radius: 3px; }
.journey-route-stamp { padding: 0 32px; font-size: 13px; }
@media (max-width: 599px) { .journey-days { padding: 12px 20px; } .journey-route-stamp { padding: 0 20px; } }

.journey-live-strip { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 2fr); align-items:start; gap:16px 24px; margin:0 24px 20px; padding:20px; border:1px solid var(--md-sys-color-glass-edge); border-radius:16px; background:var(--md-sys-color-surface-container-low); }
.journey-live-strip.is-live { border-color:#83d9a1; }
.live-strip-status { display:grid; align-content:start; gap:6px; font-size:13px; color:var(--md-sys-color-on-surface-variant); }
.live-strip-status > span:empty { display:none; }
.live-strip-status strong { display:flex; align-items:center; gap:8px; color:var(--md-sys-color-on-surface); font-size:16px; }
.journey-live-strip.is-live .state-dot { background:#83d9a1; box-shadow:0 0 0 4px #83d9a120; }
.journey-live-strip dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0; min-width:0; }
.journey-live-strip dt { font-size:13px; color:var(--md-sys-color-on-surface-variant); }
.journey-live-strip dd { margin:4px 0 0; font-size:24px; font-weight:600; font-variant-numeric:tabular-nums; }
.journey-map .journey-position-marker { display:flex; align-items:center; flex-direction:column; gap:6px; min-width:44px; padding:0; border:0; border-radius:12px; background:transparent; color:inherit; pointer-events:none; z-index:4; }
.journey-position-marker svg { pointer-events:none; }
.journey-map .maplibregl-ctrl-group { overflow:hidden; border:1px solid var(--md-sys-color-outline-variant); border-radius:12px; box-shadow:0 2px 6px #0002; background:var(--md-sys-color-surface-container); }
.journey-map .maplibregl-ctrl-group button:hover,.map-layers-button:hover,.map-detail-heading button:hover { background:var(--md-sys-color-surface-container-high); }
.journey-map button:focus-visible { outline:3px solid var(--md-sys-color-primary); outline-offset:-3px; }
.journey-position-marker[data-direction="true"]::before { content:""; position:absolute; bottom:-8px; width:28px; height:28px; border:1px solid var(--md-sys-color-primary); border-radius:50%; background:conic-gradient(from -20deg, var(--md-sys-color-primary) 0deg 40deg, transparent 40deg); opacity:.7; transform:scaleY(.5) rotate(var(--character-heading,0deg)); pointer-events:none; }
.map-credits { margin:0; padding:0 24px 12px; font-size:11px; line-height:1.6; }
.map-credits a { color:inherit; text-underline-offset:3px; }
.character-card-state { margin:0 0 4px; font-size:20px; line-height:1.3; }
.flight-card > strong { display:block; margin:0 0 4px; font-size:20px; font-weight:600; line-height:1.3; }
.flight-card .flight-sub { font-size:14px; line-height:1.5; color:var(--md-sys-color-on-surface-variant); }
.flight-card .flight-photo { margin:0 0 16px; }
.flight-card .flight-photo img { display:block; width:100%; height:200px; object-fit:contain; border-radius:12px; background:#12171b; }
.character-metrics dd { text-align:right; font-weight:600; white-space:nowrap; }
.character-specs { margin-top:16px; padding-top:16px; border-top:1px solid var(--md-sys-color-outline-variant); }
.map-object-list { display:grid; gap:8px; margin:12px 0 0; padding:0; list-style:none; }
.map-object-list button { width:100%; justify-content:flex-start; text-align:left; white-space:normal; }
.character-gallery { margin:0 0 16px; }
.character-photo-frame { display:block; width:100%; height:200px; padding:0; border:0; overflow:hidden; border-radius:12px; background:#12171b; cursor:zoom-in; }
.character-photo-frame[hidden] { display:none; }
.character-photo-frame img { display:block; width:100%; height:100%; object-fit:contain; }
.character-photo-controls { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; font-size:13px; }
.character-photo-controls button { min-width:64px; min-height:44px; justify-self:start; }
.character-photo-controls button:last-child { justify-self:end; }
.journey-recovery { margin:0; padding:16px 24px; border-top:1px solid var(--md-sys-color-outline-variant); background:var(--md-sys-color-surface-container-lowest); font-variant-numeric:tabular-nums; }
.map-route-key { display:flex; flex-wrap:wrap; gap:12px 24px; padding:8px 24px; font-size:13px; color:var(--md-sys-color-on-surface-variant); }
.map-route-key span:nth-child(2) { color:var(--md-sys-color-primary); }
.journey-position-marker svg { display:block; width:60px; height:72px; overflow:visible; filter:drop-shadow(0 1px 1px #fff) drop-shadow(0 2px 2px #14292a99); }
.character-art > g { display:none; }
.journey-position-marker[data-facing="west"]:not([data-pose="camp"]) .character-art { transform:translateX(80px) scaleX(-1); }
[data-pose="idle"] .character-body,[data-pose="walking"] .character-body,
[data-pose="jogging"] .character-body,[data-pose="running"] .character-body,
[data-pose="seated"] .character-body,[data-pose="seated"] .character-seat,
[data-pose="bicycle"] .character-body,[data-pose="bicycle"] .character-bicycle,
[data-pose="car"] .character-car,[data-pose="bus"] .character-bus,
[data-pose="train"] .character-train,[data-pose="vessel"] .character-vessel,
[data-pose="aircraft"] .character-aircraft,[data-pose="camp"] .character-camp { display:inline; }
.journey-position-marker [data-bone] { transform:rotate(var(--joint-angle,0deg)); transform-origin:0 0; transition:transform .25s ease; }
.journey-position-marker [data-bone="head"] { transform:rotate(calc(var(--joint-angle,0deg) + var(--head-pitch,0deg))); }
.character-face-profile { display:none; }
[data-look-direction="left"] .character-face-front,[data-look-direction="right"] .character-face-front { display:none; }
[data-look-direction="left"] .character-face-profile,[data-look-direction="right"] .character-face-profile { display:inline; }
[data-look-direction="left"] .character-face-profile { transform:scaleX(-1); }
.character-body { transition:transform .25s ease; }
.character-joint { display:none; }
.character-rest-smoke { display:none; }
.character-hoodie { display:none; }
[data-top="hoodie"] .character-hoodie { display:inline; }
.character-mouth-smile,.character-mouth-resting,.character-eyes-resting { display:none; }
[data-expression="smile"] .character-mouth-neutral,[data-expression="resting"] .character-mouth-neutral,
[data-expression="resting"] .character-eyes-open { display:none; }
[data-expression="smile"] .character-mouth-smile,[data-expression="resting"] .character-mouth-resting,
[data-expression="resting"] .character-eyes-resting { display:inline; }
[data-pose="seated"] .character-joint { display:inline; }
[data-pose="seated"] .character-rest-smoke { display:inline; }
[data-pose="seated"] [data-bone="shoulderFront"] { animation:character-draw-shoulder 8s ease-in-out infinite; }
[data-pose="seated"] [data-bone="elbowFront"] { animation:character-draw-elbow 8s ease-in-out infinite; }
[data-pose="seated"] [data-bone="wristFront"] { animation:character-draw-wrist 8s ease-in-out infinite; }
[data-pose="seated"] .character-rest-smoke { animation:character-smoke-upright 8s ease-in-out infinite; transform-origin:0 0; }
[data-pose="walking"] { --stride-angle:15deg;--arm-angle:11deg;--knee-lift:24deg;--body-bounce:.6px; }
[data-pose="jogging"] { --stride-angle:24deg;--arm-angle:22deg;--knee-lift:44deg;--body-bounce:1.5px; }
[data-pose="running"] { --stride-angle:31deg;--arm-angle:30deg;--knee-lift:58deg;--body-bounce:2px; }
[data-pose="walking"][data-moving="true"] [data-bone^="ankle"] { animation:character-footfall var(--stride-period,1.2s) ease-in-out infinite; }
:is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"])[data-moving="true"] [data-bone^="hip"] { animation:character-swing var(--stride-period,1.2s) ease-in-out infinite; }
:is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"])[data-moving="true"] [data-bone^="shoulder"] { animation:character-arm-swing var(--stride-period,1.2s) ease-in-out infinite; }
:is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"])[data-moving="true"] [data-bone^="knee"] { animation:character-knee var(--stride-period,1.2s) ease-in-out infinite; }
:is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"])[data-moving="true"] [data-bone^="elbow"] { animation:character-elbow var(--stride-period,1.2s) ease-in-out infinite; }
:is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"])[data-moving="true"] [data-bone$="Back"] { animation-delay:calc(var(--stride-period,1.2s) / -2); }
:is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"])[data-moving="true"] .character-bounce { animation:character-bounce calc(var(--stride-period,1.2s) / 2) ease-in-out infinite; }
[data-pose="idle"] [data-bone="spine"],[data-pose="seated"] [data-bone="spine"] { animation:character-breathe 4s ease-in-out infinite; }
[data-pose="bicycle"][data-moving="true"] [data-bone="hipFront"] { animation:character-pedal-front-hip var(--ride-period,1.3s) linear infinite; }
[data-pose="bicycle"][data-moving="true"] [data-bone="kneeFront"] { animation:character-pedal-front-knee var(--ride-period,1.3s) linear infinite; }
[data-pose="bicycle"][data-moving="true"] [data-bone="hipBack"] { animation:character-pedal-back-hip var(--ride-period,1.3s) linear infinite; }
[data-pose="bicycle"][data-moving="true"] [data-bone="kneeBack"] { animation:character-pedal-back-knee var(--ride-period,1.3s) linear infinite; }
[data-pose="bicycle"][data-moving="true"] .character-crank { animation:character-wheel var(--ride-period,1.3s) linear infinite; transform-origin:0 0; }
[data-pose="bicycle"][data-moving="true"] .character-spokes { animation:character-wheel var(--wheel-period,.5s) linear infinite; transform-origin:0 0; }
.character-smoke-wisp { opacity:0; animation:character-smoke 3.6s ease-out infinite; animation-delay:var(--smoke-delay,0s); }
.character-ember { animation:character-ember 3.6s ease-in-out infinite; }
.character-zzz { display:none; }
[data-sleeping="true"] .character-zzz { display:inline; }
.character-camp-party { display:none; }
[data-sleeping="false"] .character-camp-party { display:inline; }
.character-camp-lights { animation:character-disco 6s linear infinite; }
.character-music { animation:character-music 4s ease-in-out infinite; }
.character-camp-head { animation:character-head-bop 1s ease-in-out infinite; transform-origin:0 0; }
@keyframes character-disco { 0%,100% { fill:#8871d4; } 33% { fill:#55adb7; } 66% { fill:#c57e9d; } }
@keyframes character-music { 0%,100% { opacity:.4; transform:translateY(1px); } 50% { opacity:1; transform:translateY(-3px); } }
@keyframes character-head-bop { 0%,100% { transform:rotate(-8deg); } 50% { transform:rotate(8deg); } }
.character-zzz text { animation:character-snooze 4s ease-in-out infinite; }
.character-zzz text:nth-child(2) { animation-delay:-1.3s; }
.character-zzz text:nth-child(3) { animation-delay:-2.6s; }
.journey-position-marker[data-paused="true"] * { animation-play-state:paused !important; }
@keyframes character-swing { 0%,100% { transform:rotate(calc(var(--joint-angle) - var(--stride-angle,22deg))); } 50% { transform:rotate(calc(var(--joint-angle) + var(--stride-angle,22deg))); } }
@keyframes character-arm-swing { 0%,100% { transform:rotate(calc(var(--joint-angle) + var(--arm-angle,22deg))); } 50% { transform:rotate(calc(var(--joint-angle) - var(--arm-angle,22deg))); } }
@keyframes character-knee { 0%,40%,100% { transform:rotate(var(--joint-angle)); } 70% { transform:rotate(calc(var(--joint-angle) + var(--knee-lift,38deg))); } }
@keyframes character-elbow { 0%,100% { transform:rotate(var(--joint-angle)); } 50% { transform:rotate(calc(var(--joint-angle) - 14deg)); } }
@keyframes character-footfall { 0%,100% { transform:rotate(12deg); } 25% { transform:rotate(-3deg); } 50% { transform:rotate(-12deg); } 75% { transform:rotate(-20deg); } }
/* Two 13-unit leg segments follow opposite ends of the 5.5-unit crank. */
@keyframes character-pedal-front-hip { 0%,100% { transform:rotate(-85.5deg); } 12.5% { transform:rotate(-67.9deg); } 25% { transform:rotate(-58.1deg); } 37.5% { transform:rotate(-58deg); } 50% { transform:rotate(-67deg); } 62.5% { transform:rotate(-87.3deg); } 75% { transform:rotate(-106.6deg); } 87.5% { transform:rotate(-102.7deg); } }
@keyframes character-pedal-front-knee { 0%,100% { transform:rotate(83.2deg); } 12.5% { transform:rotate(68.6deg); } 25% { transform:rotate(71.7deg); } 37.5% { transform:rotate(90.2deg); } 50% { transform:rotate(113.7deg); } 62.5% { transform:rotate(130.4deg); } 75% { transform:rotate(126.6deg); } 87.5% { transform:rotate(106.2deg); } }
@keyframes character-pedal-back-hip { 0%,100% { transform:rotate(-82.2deg); } 12.5% { transform:rotate(-101.6deg); } 25% { transform:rotate(-109.7deg); } 37.5% { transform:rotate(-98.3deg); } 50% { transform:rotate(-76.9deg); } 62.5% { transform:rotate(-58.3deg); } 75% { transform:rotate(-58.3deg); } 87.5% { transform:rotate(-67.3deg); } }
@keyframes character-pedal-back-knee { 0%,100% { transform:rotate(101.9deg); } 12.5% { transform:rotate(113.3deg); } 25% { transform:rotate(101.9deg); } 37.5% { transform:rotate(75.6deg); } 50% { transform:rotate(45.2deg); } 62.5% { transform:rotate(26.7deg); } 75% { transform:rotate(45.2deg); } 87.5% { transform:rotate(75.6deg); } }
@keyframes character-bounce { 0%,100% { transform:translateY(0); } 50% { transform:translateY(calc(-1 * var(--body-bounce,1.3px))); } }
@keyframes character-breathe { 0%,100% { transform:rotate(var(--joint-angle)) scaleY(1); } 50% { transform:rotate(var(--joint-angle)) scaleY(1.015); } }
@keyframes character-wheel { to { transform:rotate(360deg); } }
@keyframes character-smoke { 0% { opacity:0; transform:translate(0,0) scale(.55); } 20% { opacity:.85; } 70% { opacity:.4; } 100% { opacity:0; transform:translate(5px,-16px) scale(1.2); } }
@keyframes character-ember { 0%,100% { opacity:.55; } 35% { opacity:1; } }
@keyframes character-draw-shoulder { 0%,20%,100% { transform:rotate(var(--joint-angle)); } 38%,78% { transform:rotate(calc(var(--joint-angle) + 30deg)); } }
@keyframes character-draw-elbow { 0%,20%,100% { transform:rotate(var(--joint-angle)); } 38%,78% { transform:rotate(calc(var(--joint-angle) + 35deg)); } }
@keyframes character-draw-wrist { 0%,20%,100% { transform:rotate(var(--joint-angle)); } 38%,78% { transform:rotate(calc(var(--joint-angle) - 5deg)); } }
@keyframes character-smoke-upright { 0%,20%,100% { transform:rotate(39deg); } 38%,78% { transform:rotate(-21deg); } }
@keyframes character-snooze { 0%,100% { opacity:.25; transform:translateY(2px); } 50% { opacity:1; transform:translateY(-4px); } }
@media(prefers-reduced-motion:reduce) {
  .journey-position-marker * { animation:none !important; transition:none !important; }
  .character-smoke-wisp { opacity:.55; }
  .character-smoke-wisp ~ .character-smoke-wisp { display:none; }
  :is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"]) [data-bone="hipFront"] { transform:rotate(calc(-1 * var(--stride-angle,18deg))); }
  :is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"]) [data-bone="hipBack"] { transform:rotate(var(--stride-angle,18deg)); }
  :is([data-pose="walking"],[data-pose="jogging"],[data-pose="running"]) [data-bone="kneeBack"] { transform:rotate(var(--knee-lift,35deg)); }
}
@media(max-width:599px) { .journey-controls { flex-wrap:wrap;gap:12px; } .journey-live-strip { grid-template-columns:minmax(0,1fr); margin:0 12px 16px;padding:16px; } .journey-live-strip dl { grid-template-columns:minmax(0,1fr); gap:12px; } .journey-live-strip dl > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); align-items:baseline; gap:10px; } .journey-live-strip dd { font-size:clamp(16px,4vw,20px); text-align:right; margin:0; } }

html { scrollbar-gutter: stable; }
.map-share-actions { display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 24px; }
.journey-viewer-cursor { pointer-events:none;width:18px;height:21px;filter:drop-shadow(0 1px 2px #000b); }
.journey-viewer-cursor svg { width:100%;height:100%;fill:currentColor;stroke:#191713;stroke-width:2;stroke-linejoin:round; }
.state-dot { flex-shrink: 0; }
.journey-primary-metrics > div, .journey-live-strip dl > div, .journey-live-metrics > div, .history-metrics > div, .weather-metrics > div { min-width: 0; }
.journey-primary-metrics dt, .journey-live-strip dt, .journey-live-metrics dt, .history-metrics dt, .weather-metrics dt { min-block-size: 2lh; }
.journey-primary-metrics dd, .journey-live-strip dd, .journey-live-metrics dd, .history-metrics dd, .weather-metrics dd { min-block-size: 1lh; line-height:1.3; overflow-wrap: anywhere; }
.journey-live-strip > .button { grid-column: 1 / -1; justify-self: start; }
.journey-live-strip > .button.is-reserved { display:none; }
.live-stats dd { min-block-size: 2lh; }
.timer { min-block-size: 1.2em; white-space: nowrap; }
.timer-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.timer-heading .state { min-block-size: 2lh; }
.weather-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.map-layers-control { --ink: var(--md-sys-color-on-surface); --surface: var(--md-sys-color-surface-container); --line: color-mix(in srgb, var(--md-sys-color-outline) 35%, transparent); --accent: var(--md-sys-color-primary); position: absolute; right: 10px; top: 210px; z-index: 6; color: var(--ink); font: 14px/1.45 system-ui, sans-serif; }
.map-layers-button { width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; box-shadow: 0 3px 14px #0002; }
.map-layers-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.map-layers-panel { position: absolute; right: 54px; top: -198px; box-sizing:border-box; width: min(360px, calc(100vw - 120px)); overflow: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 16px #0002; color: var(--ink); }
.map-layers-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; }
.map-layers-heading button { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 24px; }
.map-layers-panel fieldset { min-width: 0; border: 0; padding: 8px 0; margin: 0; }
.map-layers-panel legend { font-weight: 650; padding: 0; }
.map-layers-panel label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.map-layers-panel input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); }
.map-layer-detail { border-top: 1px solid var(--line); padding: 12px 0 2px; overflow-wrap: anywhere; }
.map-layer-detail p { margin: 8px 0; }
.map-history-choice { flex-wrap: wrap; }
.map-history-choice select { width: 100%; min-height: 44px; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.map-weather-hours, .map-layer-detail ol { padding-left: 20px; }
.map-weather-hours li { margin: 8px 0; }
.map-temperature-pin { min-width: 44px; height: 44px; padding: 6px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #167b86; box-shadow: 0 2px 8px #0004; font-weight: 700; }
.map-layers-control button:focus-visible, .map-temperature-pin:focus-visible { outline: 3px solid #178caa; outline-offset: 3px; }
.weather-heading > p:last-child { min-block-size: 2lh; }
.journey-context-panel > .quiet, .journey-route-stamp { min-block-size: 2lh; font-variant-numeric: tabular-nums; }
.journey-freshness { flex: 0 0 min(100%, 30ch); min-block-size: 2lh; white-space: normal; }
.moment-hover-preview { pointer-events: none; }
.moment-hover-preview img, .moment-map-preview img { display: block; inline-size: 100%; max-block-size: 160px; object-fit: cover; border-radius: 10px; }
.moment-map-preview { display: block; border: 0; padding: 0; margin-block-end: 10px; inline-size: 100%; background: transparent; cursor: pointer; }
.moment-map-preview img { block-size: 160px; }
.moment-list-preview { position: fixed; z-index: 10000; pointer-events: none; inline-size: min(248px, calc(100vw - 16px)); padding: 8px; border-radius: 16px; background: var(--surface, #fff); box-shadow: 0 8px 32px #0003; }
.moment-list-preview img { display: block; inline-size: 100%; block-size: 150px; object-fit: cover; border-radius: 10px; }
.moment-list-preview strong { display: block; margin-block-start: 6px; font-size: 13px; }
.moment-viewer-toolbar > span { min-inline-size: 9ch; font-variant-numeric: tabular-nums; }
.moment-list-heading > span { min-inline-size: 5ch; }
.route-timeline-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.route-timeline-heading time { text-align: right; min-block-size: 2lh; }
@media (max-width: 599px) {
  .history-metrics, .journey-live-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-primary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-primary-metrics dd { font-size: clamp(18px, 4.8vw, 24px); }
  .journey-live-strip dt, .journey-live-strip dd { min-block-size: 1lh; }
  .live-stats dd { font-size: clamp(20px, 6vw, 30px); }
}

.coverage-card { --line: color-mix(in srgb, var(--md-sys-color-outline) 30%, transparent); margin: 12px 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: 13px/1.4 system-ui, sans-serif; }
.coverage-card header { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.coverage-card header strong { font-size: 15px; font-weight: 650; }
.coverage-status { color: var(--md-sys-color-on-surface-variant); font-size: 12px; }
.coverage-collapse { display: grid; place-items: center; width: 36px; height: 36px; margin: -4px -6px -4px auto; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.coverage-collapse:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.coverage-collapse svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.coverage-networks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.coverage-networks button { flex: 0 0 auto; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.coverage-networks button:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent); }
.coverage-networks button[aria-checked=true] { border-color: transparent; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.coverage-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; text-align: center; }
.coverage-scale li { display: grid; gap: 4px; }
.coverage-scale i { display: block; height: 8px; }
.coverage-scale li:first-child i { border-radius: 4px 0 0 4px; }
.coverage-scale li:last-child i { border-radius: 0 4px 4px 0; }
.coverage-key { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--md-sys-color-on-surface-variant); font-size: 12px; }
.coverage-key li { display: flex; align-items: center; gap: 8px; }
.coverage-key i { flex: 0 0 auto; width: 16px; height: 14px; }
.coverage-key-measured { background: #45a04b; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.coverage-key-predicted { border-radius: 4px; background: linear-gradient(90deg, #14795a80, #45a04b80, #d3a21f80, #df713780); }
.coverage-error { margin: 8px 0 0; color: var(--md-sys-color-error); }
.coverage-card button:focus-visible { outline: 3px solid #178caa; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .coverage-networks button { transition: none; } }

.map-radar-player { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; margin-top: 6px; }
.map-radar-play { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); cursor: pointer; }
.map-radar-play svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map-radar-player input[type=range] { width: 100%; min-width: 0; min-height: 44px; accent-color: var(--md-sys-color-primary); }
.map-radar-player output { min-width: 3.2em; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.map-radar-state { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; }

.map-weather-warnings { display: grid; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; }
.map-weather-warnings li { display: grid; gap: 2px; padding: 8px 10px; border-left: 4px solid; border-radius: 10px; background: color-mix(in srgb, currentColor 7%, transparent); font-size: 13px; }
.map-weather-warnings li span { color: var(--md-sys-color-on-surface-variant); font-size: 12px; }
.map-weather-warnings .warning-yellow { border-color: #e5b700; }
.map-weather-warnings .warning-orange { border-color: #ef7d00; }
.map-weather-warnings .warning-red { border-color: #d32f2f; }
.map-weather-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; margin: 8px 0 4px; padding: 0; list-style: none; text-align: center; font-size: 12px; }
.map-weather-days li { display: grid; gap: 2px; padding: 6px 4px; border-radius: 10px; background: color-mix(in srgb, var(--md-sys-color-on-surface) 5%, transparent); font-variant-numeric: tabular-nums; }

.coverage-predictions { display: grid; gap: 4px; margin: 8px 0 4px; padding: 0; list-style: none; font-size: 13px; }
.coverage-predictions li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; }
.coverage-predictions i { width: 12px; height: 12px; border-radius: 3px; }


.train-stops { margin: 10px 0 0; padding: 0 0 0 14px; list-style: none; display: grid; gap: 0; font-size: 13px; border-left: 3px solid var(--md-sys-color-outline-variant); }
.train-stops li { position: relative; display: grid; grid-template-columns: 3.2em 1fr auto auto; gap: 8px; align-items: baseline; padding: 3px 0; }
.train-stops li::before { content: ""; position: absolute; left: -20px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--md-sys-color-surface); border: 2px solid #e0384f; }
.train-stops li.passed { color: var(--md-sys-color-on-surface-variant); }
.train-stops li.passed::before { background: #e0384f; }
.train-stops li.next { font-weight: 600; }
.train-stops li.next::before { box-shadow: 0 0 0 4px rgba(224, 56, 79, .25); }
.train-stops time { font-variant-numeric: tabular-nums; }
.train-stops em { font-style: normal; color: #b3261e; font-weight: 600; }
.train-stops small { color: var(--md-sys-color-on-surface-variant); }
.map-nearby { position: absolute; top: 10px; left: 10px; z-index: 2; display: grid; justify-items: start; gap: 6px; max-width: min(280px, calc(100% - 76px)); pointer-events: none; }
.map-nearby button { pointer-events: auto; min-height: 36px; padding: 6px 10px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: 8px; background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.map-nearby-toggle { display: flex; align-items: center; gap: 8px; }
.map-nearby-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.map-nearby-items { display: grid; width: 100%; padding: 4px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: 10px; background: var(--md-sys-color-surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .16); }
.map-nearby-items button { display: flex; justify-content: space-between; gap: 12px; border: 0; text-align: left; }
.map-nearby-items .quiet { flex-shrink: 0; }
.map-nearby-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-nearby button:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.map-traffic-list { margin: 6px 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.map-traffic-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.map-traffic-list .text-link { min-height: 32px; font-weight: 600; }

.tide-curve { display: block; width: 100%; height: auto; margin: 6px 0 2px; }
.tide-area { fill: rgba(64, 170, 230, .22); }
.tide-line { fill: none; stroke: #43b7f0; stroke-width: 2.2; stroke-linejoin: round; }
.tide-now { stroke: var(--md-sys-color-primary); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tide-turn { fill: #fff; stroke: #1477c9; stroke-width: 2; }
.tide-label { fill: var(--md-sys-color-on-surface); font: 600 10px system-ui, sans-serif; text-anchor: middle; }
