.mobile-only,.scan-availability{display:none}
.step svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.play svg{width:20px;height:20px;fill:currentColor;vertical-align:middle}

@media(max-width:1024px){
  :root{--mobile-header:24px;--mobile-nav:38px;--mobile-ink:#163b3b}
  html,body{height:100%;overscroll-behavior:none}
  body{height:100dvh;overflow:hidden;background:#eef3ed;-webkit-tap-highlight-color:transparent}
  .mobile-only{display:block}
  .topbar{position:fixed;inset:0 0 auto;height:calc(var(--mobile-header) + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));z-index:1000;background:#123638;color:#f5f7ed;border:0}
  .brand{gap:6px;font-size:13px;letter-spacing:-.3px}
  .brand-mark{width:17px;height:17px;border-radius:5px;background:#284b47;font-size:17px;border:0}
  .brand small,.top-meta #feed-status{display:none}
  .top-meta{gap:0;max-width:none}
  .status-dot{flex-shrink:0;background:#7e9b90;width:6px;height:6px}
  .status-dot.good{background:#c7e993;box-shadow:0 0 0 4px #c7e99312}
  .phase{display:none}
  main{position:fixed;inset:calc(var(--mobile-header) + env(safe-area-inset-top)) 0 calc(var(--mobile-nav) + env(safe-area-inset-bottom));height:auto;min-height:0;display:block}
  .workspace{height:100%;width:100%;min-height:0;display:flex;flex-direction:column;padding:0;gap:0;background:#e9eee7;order:0}
  .map-wrap{flex:1;min-height:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}
  #mobile-mode-slot{position:static;display:flex;align-items:center;flex:1;max-width:210px;min-width:0}
  #mobile-mode-slot .mode-switch{display:flex;width:100%;margin:0;padding:2px;gap:2px;background:#eaf0e5;border:0;border-radius:7px;box-shadow:none}
  #mobile-mode-slot .mode-switch button{flex:1;min-height:30px;padding:5px 6px;font-size:10px;border-radius:5px;font-weight:700;color:#5e7770}
  #mobile-mode-slot .mode-switch button.active{background:var(--mobile-ink);color:#e1f2bd;box-shadow:none}
  .map-heading{top:12px;left:12px;padding:7px 10px;border:1px solid #ffffffde;border-radius:9px;background:#fffffff0;backdrop-filter:blur(16px);max-width:calc(100% - 24px);box-shadow:0 2px 8px #1236380d}
  .map-heading .eyebrow,.map-heading #map-date{display:none}
  .map-heading>div{display:block;margin:0}
  .map-heading strong{font-size:21px;line-height:1.1;font-weight:800;letter-spacing:-.5px}
  .leaflet-control-zoom{display:none}
  .leaflet-control-attribution{max-width:100%;font-size:7px!important;padding:1px 4px!important;background:#ffffffcc!important}
  .message{top:auto;bottom:65px;left:16px;right:16px;padding:9px 12px;border-radius:12px;background:#fffaf1eb;backdrop-filter:blur(12px);font-size:10px;line-height:1.5;box-shadow:0 4px 12px #17343a08}
  .legend{left:16px;bottom:25px;padding:6px 8px;max-width:none;width:140px;min-height:34px;border-radius:11px;background:#ffffffef;backdrop-filter:blur(14px);box-shadow:0 4px 15px #17343a0b;cursor:pointer;transition:width .18s ease}
  .legend>.eyebrow{display:block;font-size:6px;letter-spacing:.6px}
  #legend-items{margin-top:4px;align-items:flex-start}
  #legend-items .legend-item{min-width:0;font-size:7px;gap:3px}
  #legend-items .legend-item i{height:4px}
  #legend-items .legend-item span{display:none}
  #legend-items .legend-item:first-child span,#legend-items .legend-item:last-child span{display:block}
  .legend.is-expanded{width:min(310px,calc(100% - 32px));z-index:650}
  .legend.is-expanded #legend-items .legend-item span{display:block;font-size:7px}
  .reset-map{right:16px;bottom:28px;min-height:32px;padding:6px 10px;border-radius:11px;border:1px solid #fff;background:#fffffff0;font-size:11px;font-weight:600;box-shadow:0 4px 16px #17343a0b}
  .timeline{flex:0 0 max(60px,calc(20dvh - var(--mobile-header) - var(--mobile-nav)));position:relative;z-index:700;margin:0;padding:22px 20px 0;border:0;border-top:1px solid #dfe7dc;border-radius:0;background:#fbfcf8;box-shadow:none;overflow:visible}
  .timeline-heading,.timeline-footer,.activity-key>span:not(#axis-range),.time-labels{display:none}
  .activity-key{position:absolute;top:3px;left:24px;right:24px;margin:0;display:block}
  #axis-range{display:block;width:auto;margin:0;font-size:9px;line-height:18px;white-space:nowrap;color:#557565;letter-spacing:0}
  .extension-row{position:absolute;bottom:calc(100% + 68px);left:20px;right:20px;margin:0;min-height:0;gap:6px;display:flex;align-items:center}
  .extend-button{min-height:30px;padding:5px 9px;border-radius:8px;background:#fffffff0;border:1px solid #dbe8d5;font-size:9px;font-weight:600;box-shadow:0 2px 8px #17343a12}
  .extend-button:disabled{display:none}
  #extension-status{font-size:9px;color:#476858;background:#fffffff0;border-radius:6px;padding:3px 6px}
  #extension-status:empty{display:none}
  .playback{display:block;margin:0}
  .scrubber{margin:0;min-width:0;width:100%;padding:0 12px;overflow:hidden}
  .time-viewport{padding:0;overflow:hidden;scrollbar-width:none;touch-action:pan-y}
  .time-axis{height:38px;padding-top:6px}
  .rain-activity{left:14px;right:14px;top:17px;height:6px;border-radius:3px}   /* on the thumb's line: the band is the track */
  .time-axis input{position:relative;z-index:1;height:24px;touch-action:none;appearance:none;-webkit-appearance:none;background:transparent;outline-offset:0}
  .time-axis input::-webkit-slider-runnable-track{height:4px;background:transparent}
  .time-axis input::-moz-range-track{height:4px;background:transparent}
  .time-axis input::-moz-range-progress{background:transparent}
  .time-axis input::-moz-range-thumb{width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:var(--teal);box-shadow:0 1px 5px #17343a30}
  .scan-availability{display:none}   /* the rain band already shows saved scans (pale) and gaps (striped) */
  .available-scan{position:absolute;top:0;width:2px;height:100%;transform:translateX(-50%);background:#5b947b}
  .time-axis input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:28px;height:28px;margin-top:-12px;border-radius:50%;border:2px solid #fff;background:var(--teal);box-shadow:0 1px 5px #17343a30}
  .hour-ticks{left:14px;right:14px;top:26px;height:9px}
  .hour-tick{height:3px}
  .hour-tick span{font-size:8px;top:3px;line-height:9px}
  .timeline .step,.timeline .play{display:none}
  .step,.play{position:absolute;top:0;width:24px;height:24px;padding:4px;display:grid;place-items:center;border-radius:50%}
  #previous{right:66px}
  #play{right:40px;background:var(--mobile-ink);color:#d8efa5;box-shadow:none}
  #next{right:14px}
  .step svg{width:14px;height:14px}
  .play svg{width:11px;height:11px}
  .mobile-nav{position:fixed;inset:auto 0 0;height:calc(var(--mobile-nav) + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;gap:4px;padding:0 max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left));background:#fbfcf8;border-top:1px solid #e3e9dc;z-index:1000}
  .mobile-nav>button{flex:0 0 38px;min-height:36px;display:grid;place-items:center;border:0;background:transparent;color:#607a6a;border-radius:8px;padding:7px}
  .mobile-nav>button>span{display:none}
  .mobile-nav button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .mobile-nav button:active{background:#eaf2e3}
  .sidebar .speed,.sidebar .loop{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:none;width:auto;margin:18px 0;font-size:13px;color:var(--ink)}
  .sidebar .speed select{width:100px}
  .sidebar .loop input{width:20px;height:20px}
  .sidebar .hint:not([role="status"]),.sidebar .rain-rule,.sheet-heading .eyebrow{display:none}
  .panel-backdrop{position:fixed;inset:0;width:100%;height:100%;border:0;background:#0a242855;backdrop-filter:blur(4px);z-index:1200;cursor:default;padding:0}
  .sidebar{position:fixed;inset:auto 0 0;z-index:1300;width:100%;max-width:560px;margin:0 auto;padding:0 0 max(22px,env(safe-area-inset-bottom));max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;transform:translateY(calc(100% + 24px));visibility:hidden;pointer-events:none;background:#fbfcf8;border:0;border-radius:25px 25px 0 0;box-shadow:0 -10px 50px #08262926;transition:transform .25s cubic-bezier(.2,.8,.2,1),visibility .25s}
  body.panel-open .sidebar{transform:translateY(0);visibility:visible;pointer-events:auto}
  .sidebar .intro,.sidebar .archive-panel,.sidebar footer{display:none}
  .sheet-header{position:sticky;top:0;z-index:2;background:#fbfcf8;padding:0 22px 16px;border-bottom:1px solid #e3e9dc}
  .sheet-grip{height:24px;display:flex;align-items:center;justify-content:center;touch-action:none}
  .sheet-grip span{width:35px;height:4px;border-radius:8px;background:#c9d4c4}
  .sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-top:3px;margin-bottom:17px}
  .sheet-heading .eyebrow{font-size:8px;letter-spacing:1.7px;color:#72917c}
  .sheet-heading h2{font-family:Manrope,system-ui,sans-serif;font-size:24px;letter-spacing:-.7px;margin-top:7px;font-weight:800;color:var(--mobile-ink)}
  .icon-button{height:44px;width:44px;flex-shrink:0;display:grid;place-items:center;border:1px solid #e3e9dc;background:#f0f4ea;border-radius:14px;color:#446555}
  .icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
  .sheet-tabs{display:flex;gap:4px;border-radius:12px;background:#eaf0e3;padding:4px}
  .sheet-tabs button{flex:1;min-height:38px;padding:8px;border:0;border-radius:9px;font-size:12px;font-weight:600;background:transparent;color:#6a806e}
  .sheet-tabs button.active{background:#fff;color:var(--teal);box-shadow:0 2px 6px #1236380a}
  .sidebar section{padding:21px 23px;margin:0;border:0}
  .sidebar[data-panel="window"]>section:not([data-mobile-section="window"]),.sidebar[data-panel="location"]>section:not([data-mobile-section="location"]),.sidebar[data-panel="layers"]>section:not([data-mobile-section="layers"]){display:none}
  .sidebar .section-heading{margin-bottom:13px}
  .sidebar .section-heading h2{font-size:13px;font-weight:700}
  .sidebar .section-heading>span{font-size:9px}
  .sidebar .hint{font-size:12px;line-height:1.7;margin-top:10px}
  .sidebar input[type=datetime-local],.sidebar select{font-size:16px;min-height:48px;padding:12px;border-radius:12px;background:#fff;border:1px solid #dce5d4}
  .sidebar form label{font-size:11px;margin-top:15px}
  .sidebar .full{min-height:48px;border-radius:12px;font-size:13px}
  .sidebar .presets button{min-height:42px;border-radius:10px;font-size:12px}
  .sidebar .toggle{font-size:14px;min-height:44px;margin:6px 0}
  .sidebar .toggle input{width:21px;height:21px}
  .sidebar .opacity-label{font-size:12px;margin-top:17px}
  .sidebar #opacity,.sidebar #map-opacity{height:32px;margin:12px 0;touch-action:pan-y}
  .sidebar .coordinates{font-size:12px;margin:15px 0;color:#789081}
  .sidebar .calendar-refresh{width:40px;height:40px;border-radius:11px;background:#edf3e7}
  .sidebar .calendar-key{font-size:10px;gap:13px;margin:14px 0 18px}
  .sidebar .calendar-key i{height:6px;width:6px}
  .sidebar .months{height:clamp(240px,46dvh,470px);padding-right:2px;margin:0;border-color:#e0e8d8}
  .sidebar .months::after{content:'End of saved date range';display:block;height:200px;padding-top:24px;box-sizing:border-box;font-size:10px;text-align:center;color:#8a9b89}
  .sidebar #calendar-panel>.section-heading h2{display:none}
  .sidebar #calendar-panel>.section-heading::before{content:'CHOOSE A DAY';font-size:9px;letter-spacing:1.5px;color:#7d9783;font-weight:600}
  .sidebar .calendar-month{padding:20px 0 23px}
  .sidebar .calendar-month h3{font-size:16px;letter-spacing:-.3px;margin-bottom:18px}
  .sidebar .calendar-grid{gap:5px}
  .sidebar .weekday{font-size:10px;padding-bottom:8px;color:#8a9b89}
  .sidebar .calendar-day{min-height:41px;font-size:13px;border-radius:10px;padding:7px 0;background:#eef3e7}
  .sidebar .calendar-day.empty{background:transparent;color:#aab7a4}
  .sidebar .calendar-day.rainy{background:#d8edd1;color:#1d6546;box-shadow:inset 0 -3px #70ad78}
  .sidebar .calendar-day.chosen{border:2px solid #286a50}
  .sidebar .calendar-day.pending{background:repeating-linear-gradient(135deg,#f5ecd4,#f5ecd4 4px,#fcf8eb 4px,#fcf8eb 8px)}
  .sidebar .rain-rule{font-size:12px;padding-top:8px;line-height:1.6}
  .sidebar .rain-rule p{font-size:11px}
  .sidebar .rain-rule summary{padding:7px 0}
}
@media(max-width:1024px) and (orientation:landscape) and (max-height:560px){
  .sidebar{max-height:95dvh}
  .sidebar .months{height:220px}
}
@media(prefers-reduced-motion:reduce){.sidebar,.legend{transition:none}.play:active{transform:none}}
@media(max-width:1024px){.message[data-kind="gap"]{display:none}}


@media(max-width:1024px){.sidebar .speed,.sidebar .loop{display:none}}

.time-axis input{touch-action:none}

.startup-error{position:fixed;top:90px;left:20px;right:20px;z-index:1500;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid #dbe4d4;border-radius:12px;background:#fbfcf8;box-shadow:0 3px 18px #17343a22;font-size:13px}
.startup-error[hidden]{display:none}
.startup-error button{border:0;border-radius:8px;padding:10px 16px;background:#163b3b;color:#fff}
@media(max-width:1024px){.startup-error{top:calc(36px + env(safe-area-inset-top));font-size:12px}}

@media(max-width:1024px){
  .extension-later-row{position:absolute;bottom:calc(100% + 68px);left:20px;right:20px;display:flex;justify-content:flex-end;pointer-events:none}
  .extension-later-row button{pointer-events:auto}
}

@media(max-width:1024px){.map-heading{backdrop-filter:none;-webkit-backdrop-filter:none}}

@media(max-width:1024px){
  .map-heading{width:180px}
  .keep-tracks{font-size:10px;margin-top:5px;min-height:24px}
}

@media(max-width:1024px){.map-heading{padding:12px;gap:10px}}

/* Mobile dock: timeline first, then one toolbar. Secondary information is a sheet. */
.mobile-about-dialog{position:fixed;inset:auto 8px calc(8px + env(safe-area-inset-bottom));width:min(560px,calc(100vw - 16px));max-height:85dvh;margin:0 auto;padding:20px;border:1px solid #dce5df;border-radius:22px;background:#fbfcf8;color:#17343a;box-shadow:0 12px 60px #092c3440;overflow:auto;overscroll-behavior:contain;}
.mobile-about-dialog::backdrop{background:#102d3580;backdrop-filter:blur(3px);}
.mobile-about-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;}
.mobile-about-heading h2{font:800 21px/1.3 Manrope,system-ui,sans-serif;letter-spacing:-.5px;}
.mobile-about-heading h2:focus{outline:none;}
.mobile-about-dialog .site-footer{display:flex;flex-direction:column;align-items:stretch;gap:14px;text-align:left;padding:0;border:0;background:transparent;}
.mobile-about-dialog .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;width:100%;margin:0;}
.mobile-about-dialog .footer-links a{display:flex;min-height:44px;padding:10px 12px;border-radius:8px;background:#edf3e9;font-size:13px;}
.mobile-about-dialog .site-footer p{max-width:none;line-height:1.7;}
.mobile-about-dialog .site-footer .footer-version{margin:0;}
@media(max-width:1024px){
  :root{--mobile-header:44px;--mobile-nav:64px;}
  .topbar{padding-right:max(12px,env(safe-area-inset-right));padding-left:max(16px,env(safe-area-inset-left));}
  .topbar .brand{font-size:14px;}
  .topbar .welcome-help{width:44px;height:44px;margin-left:7px;border:0;background:transparent;font-size:19px;}
  #mobile-nav{justify-content:space-between;gap:4px;padding-right:max(8px,env(safe-area-inset-right));padding-left:max(12px,env(safe-area-inset-left));box-shadow:0 -1px 0 #e0e7df;}
  #mobile-mode-slot{max-width:240px;}
  #mobile-mode-slot .mode-switch{padding:3px;gap:2px;border-radius:10px;}
  #mobile-mode-slot .mode-switch button{min-height:44px;font-size:11px;padding:6px 8px;border-radius:8px;}
  #mobile-nav>button{flex:0 0 48px;min-height:52px;grid-template-rows:22px 14px;gap:3px;align-content:center;padding:4px;}
  #mobile-nav>button>span{display:block;font-size:10px;line-height:14px;font-weight:600;}
  #mobile-nav button svg{width:21px;height:21px;}
  #mobile-nav>button[data-open-panel="window"]{margin-left:4px;}
  .timeline{flex:0 0 auto;padding:4px 12px 8px;min-height:100px;}
  .mobile-timeline-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:44px;margin-bottom:2px;}
  .mobile-date-time{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;}
  #mobile-time-slot strong{font-family:Manrope,system-ui,sans-serif;font-size:18px;line-height:22px;font-weight:800;font-variant-numeric:tabular-nums;}
  #mobile-range-slot #axis-range{font-size:10px;line-height:14px;text-align:center;white-space:normal;}
  #mobile-earlier-slot,#mobile-later-slot{width:44px;min-height:44px;}
  .mobile-timeline-header .extend-button{width:44px;min-height:44px;margin:0;padding:0;border:1px solid #dbe5dc;border-radius:10px;font-size:0;box-shadow:none;background:#eef4e9;color:#16685e;}
  .mobile-timeline-header #extend-earlier::before{content:'−12h';font-size:11px;}
  .mobile-timeline-header #extend-later::before{content:'+12h';font-size:11px;}
  .timeline>.activity-key,.timeline>.extension-later-row{display:none;}
  .timeline>.extension-row{position:absolute;left:0;right:auto;bottom:auto;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);margin:0;}
  .scrubber{padding:0 2px;}
  .time-axis{height:42px;}
  .time-axis input{height:28px;}
  .scan-availability{top:18px;}
  .hour-ticks{top:29px;}
  .time-axis input::-webkit-slider-thumb{width:26px;height:26px;margin-top:-11px;}
  .time-axis input::-moz-range-thumb{width:26px;height:26px;}
  .map-heading{width:auto;max-width:calc(100% - 24px);padding:6px 10px;}
  .map-heading>div:empty{display:none;}
  .map-heading .keep-tracks{min-height:32px;margin:0;font-size:11px;}
  .map-heading #track-modes{margin-top:5px;}
  .sidebar .sheet-heading{margin-bottom:12px;}
  .sidebar .sheet-heading h2{font-size:21px;}
}

/* Phone layout: the map comes first. Layer toggles live in the Map sheet behind a round layers button,
   marker cards and the forecast panel dock to the bottom edge of the map, legends shrink to pills. */
@media(max-width:1024px){
  .map-heading{display:none}
  .map-layers-button{position:absolute;top:12px;right:12px;z-index:650;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff;color:#163b3b;box-shadow:0 2px 8px #0f2a2e2e;display:grid;place-items:center}
  .map-layers-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .map-layers-button:active{background:#eef4e9}
  .mobile-layer-toggles{display:flex;flex-direction:column;gap:2px;padding-bottom:12px;margin-bottom:6px;border-bottom:1px solid #e3e9dc}
  .mobile-layer-toggles .keep-tracks{min-height:48px;margin:0;gap:12px;font-size:14px;color:var(--ink)}
  .mobile-layer-toggles .keep-tracks input{width:21px;height:21px}
  .mobile-layer-toggles .track-modes{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:2px 0 10px 33px;padding:3px;border-radius:11px;background:#e9efea}
  .mobile-layer-toggles .track-modes button{min-width:0;min-height:40px;padding:6px 10px;border:0;border-radius:9px;font-size:13px;color:var(--muted);background:transparent}
  .mobile-layer-toggles .track-modes button[aria-pressed=true]{background:var(--ink);color:#fff}
  .map-wrap .leaflet-tooltip-pane .measurement-tooltip{display:none}
  .card-dock{position:absolute;left:12px;right:12px;bottom:12px;z-index:660;pointer-events:none;transition:bottom .15s}
  body.forecast-layer-on .card-dock{bottom:calc(var(--forecast-panel-height,90px) + 20px)}
  .card-dock .leaflet-tooltip{position:static!important;transform:none!important;display:block;width:100%;max-width:none;margin:0;padding:12px 14px;border-radius:14px;border:1px solid #fff;background:#fffffff5;box-shadow:0 6px 24px #0f2a2e26;pointer-events:auto;opacity:1!important;max-height:min(44dvh,320px);overflow:auto;overscroll-behavior:contain}
  .card-dock .leaflet-tooltip::before{display:none}
  .card-dock .measurement-card{min-width:0;max-width:none;font-size:13px}
  .card-dock .measurement-card strong{font-size:15px}
  .card-dock .measurement-card button{width:36px;height:36px}
  .card-dock .nowcast-bars{height:52px}
  .forecast-panel{left:12px;right:12px;bottom:12px;width:auto;max-width:none;padding:4px 12px 10px;border-radius:14px;box-shadow:0 6px 24px #0f2a2e26}
  .forecast-grip{display:flex;justify-content:center;padding:4px 0 2px;cursor:pointer}
  .forecast-grip span{width:36px;height:4px;border-radius:4px;background:#c9d4c4}
  .forecast-head strong{cursor:pointer}
  .forecast-panel.collapsed .forecast-issue,.forecast-panel.collapsed .forecast-legend,.forecast-panel.collapsed .forecast-follow,.forecast-panel.collapsed .forecast-pin,.forecast-panel.collapsed .forecast-note{display:none!important}
  .forecast-panel.collapsed .forecast-row{margin-top:6px}
  .forecast-row output{min-width:88px;font-size:12px}
  .forecast-play{width:34px;height:34px}
  .forecast-issue{height:auto;white-space:normal}
  .forecast-note{height:auto;min-height:0}
  .forecast-pin{height:40px}
  .forecast-panel .forecast-pin[hidden]{display:none!important}   /* no reserved slot on phones; the panel grows as needed */
  .intensity-legend{left:12px;right:auto;bottom:12px;transform:none;width:150px;padding:6px 8px 5px;border-radius:11px;pointer-events:auto;cursor:pointer;transition:width .18s ease}
  .intensity-legend-title{display:none}
  .intensity-legend-labels{font-size:8px;line-height:10px;margin-top:2px}
  .intensity-legend.is-expanded{width:min(320px,calc(100% - 80px))}
  .intensity-legend.is-expanded .intensity-legend-title{display:block;font-size:8px}
  body.forecast-layer-on .intensity-legend{bottom:calc(var(--forecast-panel-height,90px) + 20px)}
  .cumulative-scale{left:12px;right:auto;bottom:62px;transform:none;width:150px;padding:6px 8px 5px;border-radius:11px}
  body.forecast-layer-on .cumulative-scale{bottom:calc(var(--forecast-panel-height,90px) + 70px)}
  .cumulative-scale-labels{font-size:8px;line-height:10px;margin-top:3px}
  .timeline{min-height:84px;padding-top:2px}
  .mobile-timeline-header{min-height:36px;margin-bottom:0}
  .mobile-date-time{flex-direction:row;align-items:baseline;gap:8px}
  #mobile-time-slot strong{font-size:16px;line-height:20px}
  #mobile-range-slot #axis-range{white-space:nowrap}
  #mobile-earlier-slot,#mobile-later-slot{min-height:36px}
  .mobile-timeline-header .extend-button{min-height:36px}
  .reset-map{display:none}
}
@media(max-width:1024px) and (orientation:landscape){.card-dock .leaflet-tooltip{max-height:60dvh}}
@media(max-width:1024px){.loading-chip{top:12px;padding:8px 12px;font-size:12px;}}
