/* RSEO-R5 private live-DOM canary. All UI selectors scoped to r5 classes or an explicitly canary-marked body. */
:root{--r5-width:358px;--r5-blue:#193c4d;--r5-muted:#607885;--r5-green:#0ca991;--r5-border:#e1eaf0}
.r5-panel,.r5-panel *,.r5-reopen,.r5-reopen *{box-sizing:border-box}
.r5-panel{position:fixed;z-index:995;right:0;top:0;bottom:0;width:min(var(--r5-width),39vw);background:#f9fcfd;color:var(--r5-blue);box-shadow:-9px 0 28px rgba(20,57,73,.10);border-left:1px solid #dce8e9;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.4;overflow:hidden;transition:transform .22s ease;contain:layout style}
.r5-panel-inner{height:100%;overflow-y:auto;overflow-x:hidden;padding:18px 15px 24px;scrollbar-width:thin;overscroll-behavior:contain}
.r5-panel h2{font-size:18px;letter-spacing:-.035em;line-height:1.2;margin:2px 0 3px;color:#173748;font-weight:820}
.r5-panel p{margin:0}
.r5-kicker{display:block;color:#078d7d;font-weight:780;font-size:10px;letter-spacing:.09em}
.r5-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}
.r5-top p,.r5-section-head p{font-size:11px;color:var(--r5-muted)}
.r5-collapse{font-family:inherit;border:1px solid var(--r5-border);border-radius:11px;display:grid;place-items:center;min-width:37px;height:37px;color:#275e69;font-size:21px;background:white;cursor:pointer}
.r5-collapse:hover,.r5-collapse:focus-visible{background:#e7f5f1}
.r5-national,.r5-cities,.r5-quick{background:#fff;border:1px solid #e1e9ee;border-radius:15px;padding:14px 13px;margin-bottom:12px;box-shadow:0 4px 11px rgba(45,76,91,.04)}
.r5-national-text{font-size:12.5px;line-height:1.65;color:#253c4a}
.r5-national-text strong{white-space:nowrap;color:#143e4d;font-weight:750}
.r5-national-note{font-size:10.5px;line-height:1.5;color:#78909d;margin-top:7px!important}
.r5-alert-link{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:11px;padding:10px;background:#fff8e8;border:1px solid #f3e8c6;border-radius:9px;text-decoration:none;color:#5f4c2a;font-size:11.5px;font-weight:780}
.r5-alert-link>span:first-child{color:#d89f17;font-size:16px}
.r5-section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:9px;gap:5px}
.r5-section-head h2{margin:3px 0 0}
.r5-section-head a{font-size:10px;color:#068e7d;text-decoration:none;font-weight:750;white-space:nowrap;padding-bottom:3px}
.r5-search{display:flex;gap:6px;align-items:center;border:1px solid #d9e7eb;background:#f9fbfc;border-radius:10px;padding:0 10px;height:36px}
.r5-search>span{font-size:23px;color:#8196a4;line-height:1}
.r5-search input{outline:none;border:0;background:transparent;min-width:0;width:100%;font-family:inherit;font-size:12px;color:var(--r5-blue)}
.r5-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.r5-results{display:grid;margin-top:4px;background:#fff;border:1px solid #d9e7eb;border-radius:10px;padding:5px;gap:2px;max-height:186px;overflow:auto}
.r5-results[hidden]{display:none}
.r5-results a,.r5-results p{padding:7px;text-decoration:none;font-size:11px;color:#087e70;border-radius:6px}
.r5-results a:hover,.r5-results a:focus-visible{background:#e8f7f3}
.r5-rows{margin-top:7px}
.r5-row{display:grid;grid-template-columns:minmax(0,1.3fr) 22px 49px minmax(0,1fr) 13px;gap:5px;align-items:center;text-decoration:none;color:inherit;font-size:11px;min-height:42px;border-bottom:1px solid #eaf0f2}
.r5-row:last-child{border-bottom:0}
.r5-row:hover,.r5-row:focus-visible{background:#f1faf7;outline:0}
.r5-row strong{font-size:11.5px;line-height:1.15;font-weight:780;overflow-wrap:normal}
.r5-condition-icon{font-size:19px;text-align:center;color:#e0a710}
.r5-temp{font-size:13px;font-weight:790;white-space:nowrap}
.r5-condition{font-size:10px;color:#577382;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r5-arrow{font-size:18px;color:#077d72}
.r5-time{font-size:10px;line-height:1.5;color:#748b97;margin-top:10px!important}
.r5-quick h2{margin-bottom:12px}
.r5-links{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.r5-links a{display:flex;align-items:center;gap:6px;min-height:39px;padding:8px;border:1px solid #e3eaf0;border-radius:9px;background:#fbfefe;text-decoration:none;color:#264a5d;font-size:11px;font-weight:700}
.r5-links a span{font-size:19px;color:#08a28e;min-width:20px;text-align:center}
.r5-links a b{margin-left:auto;font-size:16px;color:#41998c}
.r5-links a:hover,.r5-links a:focus-visible{background:#eef9f6}
.r5-catalog{margin-top:10px;background:#e5f5f1;border-radius:9px;padding:11px;display:flex;justify-content:space-between;gap:5px;color:#087f73;text-decoration:none;font-size:11px;font-weight:800}
.r5-bottom{padding:7px 6px 12px;display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.r5-bottom a,.r5-bottom small{font-size:10px;text-decoration:none;color:#728b97}
.r5-reopen{position:fixed;z-index:996;right:12px;top:120px;display:none;align-items:center;gap:6px;padding:9px 11px;background:#fff;border-radius:11px;border:1px solid #d8e5e8;color:#087e74;font:800 12px system-ui;box-shadow:0 4px 18px rgba(20,57,73,.12);cursor:pointer}
/* Canaries alone: remove duplicate floating panels only while our sidebar is open. */
@media(min-width:1060px){
 html:not(.r5-collapsed) body[data-rseo-r5="canary"] #desktopCityPortalV227,
 html:not(.r5-collapsed) body[data-rseo-r5="canary"] #liveFeed,
 html:not(.r5-collapsed) body[data-rseo-r5="canary"] #liveFeedChip{display:none!important}
 /* Only these known map roots can be resized; never retheme underlying tiles, canvas or weather markers. */
 html:not(.r5-collapsed) body[data-rseo-r5="canary"] #map,
 html:not(.r5-collapsed) body[data-rseo-r5="canary"] #weatherMap,
 html:not(.r5-collapsed) body[data-rseo-r5="canary"] #mapContainer{width:calc(100vw - var(--r5-width))!important;right:var(--r5-width)!important;max-width:calc(100vw - var(--r5-width))!important}
 html:not(.r5-collapsed) body[data-rseo-r5="canary"] .maplibregl-map{width:calc(100vw - var(--r5-width))!important;max-width:calc(100vw - var(--r5-width))!important}
 html:not(.r5-collapsed) body[data-rseo-r5="canary"] .r5-map-resize-target{width:calc(100vw - var(--r5-width))!important;max-width:calc(100vw - var(--r5-width))!important}
}
html.r5-collapsed .r5-panel{transform:translateX(103%)}
html.r5-collapsed .r5-reopen{display:flex}
/* Mobile weather interface remains unmodified in this preview. */
@media(max-width:1059px){.r5-panel,.r5-reopen{display:none!important}}
@media(prefers-reduced-motion:reduce){.r5-panel{transition:none}}

/* RSEO-R5.1: resilient, canary-only native slide control and live-panel integration. */
.r51-panel-switch{position:fixed!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important;overflow:hidden!important}
.r5-collapse,.r5-reopen{user-select:none;-webkit-user-select:none;text-decoration:none}
.r5-collapse:focus-visible,.r5-reopen:focus-visible{outline:3px solid #15ac91;outline-offset:3px}
.r51-live-mount[hidden],#r51ModelFallback[hidden]{display:none!important}
.r51-live-mount{min-width:0}
@media(min-width:1060px){
  /* Always remove the two original floating widgets. Their information is now in the sidebar. */
  body[data-rseo-r5="canary"] #desktopCityPortalV227,
  body[data-rseo-r5="canary"] #liveFeedChip,
  body[data-rseo-r5="canary"] #liveFeed{display:none!important}

  /* The actual liveFeed node is MOVED, not cloned; keep its original JS handlers and data. */
  body[data-rseo-r5="canary"] #r5Panel #liveFeed{
    display:block!important;position:static!important;inset:auto!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;max-height:none!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    transform:none!important;box-shadow:none!important;background:transparent!important;
    overflow:visible!important;float:none!important;
  }
  body[data-rseo-r5="canary"] #r5Panel #liveFeed .live-feed-head{display:none!important}
  body[data-rseo-r5="canary"] #r5Panel #liveFeed .live-feed-list{
    max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;
    background:transparent!important;box-shadow:none!important;
  }
  body[data-rseo-r5="canary"] #r5Panel #liveFeed .live-feed-foot{margin-top:9px!important;padding:7px 0!important}
  body[data-rseo-r5="canary"] #r5Panel #liveFeed .live-feed-loading{padding:8px 0!important}

  /* Native checkbox + :has() works even when the preview's external JS fails to load. */
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:checked) .r5-panel{
    transform:translateX(calc(100% + 10px))!important;
    visibility:hidden!important;pointer-events:none!important;
  }
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:checked) .r5-reopen{display:flex!important}
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:not(:checked)) .r5-reopen{display:none!important}

  body[data-rseo-r5="canary"]:has(#r51PanelClosed:checked) #map,
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:checked) #weatherMap,
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:checked) #mapContainer,
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:checked) .maplibregl-map{
    width:100vw!important;max-width:100vw!important;right:0!important;
  }
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:not(:checked)) #map,
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:not(:checked)) #weatherMap,
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:not(:checked)) #mapContainer,
  body[data-rseo-r5="canary"]:has(#r51PanelClosed:not(:checked)) .maplibregl-map{
    width:calc(100vw - var(--r5-width))!important;
    max-width:calc(100vw - var(--r5-width))!important;
    right:var(--r5-width)!important;
  }
}
@media(max-width:1059px){
  /* Mobile retains the original floating/live components; desktop sidebar stays absent. */
  body[data-rseo-r5="canary"] .r5-panel,
  body[data-rseo-r5="canary"] .r5-reopen{display:none!important}
}
@media(prefers-reduced-motion:reduce){.r5-panel{transition:none!important}}

/* RSEO-R5.2: fallback scoped to the real canary panel DOM, not mutable body attrs.
   All selectors require the test-only #r5Panel and checkbox; production never loads this file. */
@media (min-width:1060px) {
  /* No duplicate floating weather cards when the R5 private panel is installed. */
  html:has(#r5Panel) #desktopCityPortalV227,
  html:has(#r5Panel) #liveFeedChip,
  html:has(#r5Panel) #liveFeed { display:none!important; }
  /* Only a live-feed rehomed inside the sidebar can become visible. */
  html:has(#r5Panel) #r51LiveMount:not([hidden]) #liveFeed {
    display:block!important;position:static!important;inset:auto!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;max-height:none!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
    transform:none!important;box-shadow:none!important;background:transparent!important;
    overflow:visible!important;float:none!important;
  }
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-head { display:none!important; }
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-list {
    max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;
    background:transparent!important;box-shadow:none!important;
  }
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-foot { margin-top:9px!important;padding:7px 0!important; }
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-loading { padding:8px 0!important; }
  /* Native CSS collapse works even if the external JS is blocked. */
  html:has(#r5Panel):has(#r51PanelClosed:checked) #r5Panel {
    transform:translateX(calc(100% + 18px))!important;
    visibility:hidden!important;pointer-events:none!important;
  }
  html:has(#r5Panel):has(#r51PanelClosed:checked) #r5Reopen { display:flex!important; }
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) #r5Reopen { display:none!important; }
  /* The map keeps its existing engine, only its available desktop width changes. */
  html:has(#r5Panel):has(#r51PanelClosed:checked) #map,
  html:has(#r5Panel):has(#r51PanelClosed:checked) #weatherMap,
  html:has(#r5Panel):has(#r51PanelClosed:checked) #mapContainer,
  html:has(#r5Panel):has(#r51PanelClosed:checked) .maplibregl-map {
    width:100vw!important;max-width:100vw!important;right:0!important;
  }
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) #map,
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) #weatherMap,
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) #mapContainer,
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) .maplibregl-map {
    width:calc(100vw - var(--r5-width))!important;
    max-width:calc(100vw - var(--r5-width))!important;
    right:var(--r5-width)!important;
  }
}

/* RSEO-R5.3 — compact Mapy-like weather sidebar controls. No production CSS touched. */
.r53-topbar{position:sticky;top:-18px;z-index:30;background:rgba(255,255,255,.98);margin:-18px -15px 14px;padding:12px 14px 11px;border-bottom:1px solid #e2eaeb;box-shadow:0 5px 15px rgba(17,52,62,.045)}
.r53-actions{display:flex;align-items:center;gap:8px}
.r53-global-search{flex:1;min-width:0;height:41px;border-radius:11px;background:#f7fafb;border:1px solid #dbe5e8;gap:9px;padding:0 10px}
.r53-global-search:focus-within{background:#fff;border-color:#12a68f;box-shadow:0 0 0 3px rgba(16,164,145,.12)}
.r53-global-search input{font-size:12.5px;line-height:1.25;height:100%;color:#143849;min-width:0}
.r53-global-search input::placeholder{color:#718c95;opacity:1}
.r53-search-icon{width:19px;height:19px;min-width:19px;stroke:#587681;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.r53-menu-button{display:grid;place-items:center;width:41px;height:41px;min-width:41px;background:#fff;color:#22485a;border:1px solid #dbe5e8;border-radius:11px;box-shadow:0 2px 5px rgba(30,64,74,.035);cursor:pointer}
.r53-menu-button:hover,.r53-menu-button[aria-expanded="true"]{background:#ebf7f4;color:#008876;border-color:#bde8dd}
.r53-menu-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.r53-menu-button:focus-visible,.r53-global-search:focus-within,.r53-edge-handle:focus-visible{outline:3px solid #16a992;outline-offset:2px}
.r53-menu[hidden],.r53-results[hidden]{display:none!important}
.r53-menu{display:grid;gap:2px;position:absolute;z-index:40;top:calc(100% - 3px);left:12px;right:12px;max-height:min(64vh,390px);overflow:auto;background:#fff;border:1px solid #dce8e9;border-radius:13px;padding:9px;box-shadow:0 14px 40px rgba(20,58,69,.19)}
.r53-menu strong{font-size:11px;color:#67818a;padding:4px 8px 6px}
.r53-menu a{display:block;padding:9px 10px;border-radius:7px;text-decoration:none;font-weight:680;font-size:12px;color:#274657;line-height:1.35}
.r53-menu a:hover,.r53-menu a:focus-visible{background:#e7f6f2;color:#00796d;outline:0}
.r53-results{position:absolute;z-index:42;top:calc(100% - 3px);left:12px;right:62px;margin:0;box-shadow:0 14px 40px rgba(20,58,69,.15)}
.r53-heading{margin:0 0 12px!important}
.r53-heading h2{font-size:18px}
/* Edge tab: central, attached to the map/panel boundary, not clipped by the sidebar. */
@media(min-width:1060px){
  html:has(#r5Panel) .r53-edge-handle{
    position:fixed!important;z-index:1001!important;
    left:auto!important;right:var(--r5-width)!important;top:50%!important;
    transform:translateY(-50%)!important;
    width:27px!important;height:64px!important;min-width:27px!important;
    border:1px solid #d6e5e8!important;border-right:0!important;
    border-radius:11px 0 0 11px!important;
    padding:0!important;margin:0!important;display:grid;place-items:center;
    background:#fff!important;color:#3b6775!important;font:700 27px/1 system-ui,-apple-system,'Segoe UI',sans-serif!important;
    box-shadow:-4px 2px 13px rgba(18,54,70,.12)!important;
    cursor:pointer;user-select:none
  }
  html:has(#r5Panel) #r5Reopen{right:0!important;top:50%!important;gap:0!important}
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) #r5Collapse{display:grid!important}
  html:has(#r5Panel):has(#r51PanelClosed:checked) #r5Collapse{display:none!important}
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) #r5Reopen{display:none!important}
  html:has(#r5Panel):has(#r51PanelClosed:checked) #r5Reopen{display:grid!important}
  /* New action row is usable: original map's top-right icon pair is only
     visually hidden when positively identified by this canary's JS. */
  .r53-legacy-hidden{visibility:hidden!important;pointer-events:none!important}
}
@media(max-width:1059px){
  html:has(#r5Panel) .r53-edge-handle{display:none!important}
}
@media(prefers-reduced-motion:reduce){html:has(#r5Panel) .r53-edge-handle{transition:none!important}}

/* RSEO-R5.5 POLISH - private desktop weather panel only. Never alters map colors or layers. */
@media (min-width:1060px) {
  html:has(#r5Panel) #r5Panel {
    top:0!important;bottom:auto!important;
    height:100vh!important;height:100dvh!important;max-height:100dvh!important;
    background:#f7fafb!important;
    border-left:1px solid #dde8e9!important;
    box-shadow:-8px 0 24px rgba(32,68,80,.075)!important;
  }
  html:has(#r5Panel) #r5Panel .r5-panel-inner {
    height:100%;max-height:100%;min-height:0;
    overflow-y:auto;overflow-x:hidden;
    padding:12px 14px 10px;
    overscroll-behavior-y:contain;
    scrollbar-gutter:auto;
    scrollbar-width:thin;
    scrollbar-color:#c7d8dc transparent;
  }
  html:has(#r5Panel) #r5Panel .r5-panel-inner::-webkit-scrollbar {width:5px}
  html:has(#r5Panel) #r5Panel .r5-panel-inner::-webkit-scrollbar-track {background:transparent}
  html:has(#r5Panel) #r5Panel .r5-panel-inner::-webkit-scrollbar-thumb {background:#cadadd;border-radius:10px}
  html:has(#r5Panel) #r5Panel .r53-topbar {
    top:-12px;margin:-12px -14px 10px;
    padding:11px 13px 10px;
    background:rgba(255,255,255,.98);
    border-bottom-color:#e3ecee;
    box-shadow:0 3px 12px rgba(29,59,72,.035);
  }
  html:has(#r5Panel) #r5Panel .r53-global-search {height:39px;border-color:#dfe9ec;background:#f8fbfc}
  html:has(#r5Panel) #r5Panel .r53-menu-button {height:39px;width:39px;min-width:39px}
  html:has(#r5Panel) #r5Panel .r5-top {margin-bottom:9px}
  html:has(#r5Panel) #r5Panel .r53-heading h2 {font-size:19px;letter-spacing:-.035em;line-height:1.17;margin:3px 0}
  html:has(#r5Panel) #r5Panel .r5-top p {font-size:11.5px;color:#66808a}
  html:has(#r5Panel) #r5Panel .r5-national,
  html:has(#r5Panel) #r5Panel .r5-cities,
  html:has(#r5Panel) #r5Panel .r5-quick {
    padding:12px 12px 11px;
    margin-bottom:10px;
    border-radius:14px;
    border-color:#e3ebed;
    box-shadow:0 3px 9px rgba(27,59,72,.035);
  }
  html:has(#r5Panel) #r5Panel .r5-national-text {font-size:12.5px;line-height:1.55}
  html:has(#r5Panel) #r5Panel .r5-national-note {font-size:10.5px;line-height:1.4;color:#738c92}
  html:has(#r5Panel) #r5Panel .r5-alert-link {
    margin-top:8px;min-height:41px;padding:8px 9px;
    font-size:11.7px;border-radius:9px;
  }
  html:has(#r5Panel) #r5Panel .r5-section-head {margin-bottom:5px;align-items:center}
  html:has(#r5Panel) #r5Panel .r5-section-head h2 {font-size:16px;margin-top:2px}
  html:has(#r5Panel) #r5Panel .r5-section-head a {font-size:11px}
  html:has(#r5Panel) #r5Panel .r5-kicker {font-size:9.5px;letter-spacing:.07em}
  html:has(#r5Panel) #r5Panel .r5-rows {margin-top:3px}
  html:has(#r5Panel) #r5Panel .r5-row {
    min-height:39px;gap:4px;
    grid-template-columns:minmax(0,1.35fr) 21px 45px minmax(0,.85fr) 12px;
  }
  html:has(#r5Panel) #r5Panel .r5-row strong {font-size:11.5px}
  html:has(#r5Panel) #r5Panel .r5-time {
    font-size:10px;line-height:1.45;margin-top:7px!important;
    display:flex;flex-wrap:wrap;gap:3px 8px;align-items:baseline;justify-content:space-between;
    color:#69858e;
  }
  html:has(#r5Panel) #r5Panel .r5-time a {color:#098e7d;text-decoration:none;font-weight:680;white-space:nowrap}
  html:has(#r5Panel) #r5Panel .r5-time a:hover {text-decoration:underline}
  html:has(#r5Panel) #r5Panel .r5-quick h2 {font-size:16px;margin:0 0 8px}
  html:has(#r5Panel) #r5Panel .r5-links {gap:6px}
  html:has(#r5Panel) #r5Panel .r5-links a {min-height:35px;padding:6px 7px;font-size:10.7px}
  html:has(#r5Panel) #r5Panel .r5-catalog {margin-top:8px;padding:9px 10px;font-size:10.8px}
  html:has(#r5Panel) #r5Panel .r5-bottom {display:none!important}
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-foot {margin-top:5px!important;padding:5px 0!important}
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-loading {padding:5px 0!important}
}
/* On mobile the original app owns its entire interface. */


/* RSEO-R5.6: keep native player and radar legend in the currently visible map
   workspace when the desktop sidebar opens. Private canary only. */
@media(min-width:1060px) {
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) .r56-player-root.r56-player-viewport {
    box-sizing:border-box!important;
    left:14px!important;
    right:calc(var(--r5-width) + 14px)!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
  }
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) .r56-player-root.r56-player-contained {
    box-sizing:border-box!important;
    left:14px!important;
    right:14px!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
  }
  html:has(#r5Panel) .r56-legend-root {
    translate:var(--r56-legend-shift,0px) 0!important;
    transition:translate .22s ease;
  }
}
@media(prefers-reduced-motion:reduce){
  html:has(#r5Panel) .r56-legend-root{transition:none!important}
}

/* RSEO-R5.7 — clean and restrained weather panel, private canary only.
   The native map, player, legend and edge tab are deliberately not restyled. */
#r5Panel .r57-live-section[hidden], #r5Panel #r51LiveMount[hidden]{display:none!important}
@media (min-width:1060px) {
  html:has(#r5Panel) #r5Panel {background:#f9fbfa!important;box-shadow:-5px 0 18px rgba(35,73,80,.06)!important}
  html:has(#r5Panel) #r5Panel .r5-panel-inner {padding:12px 14px 12px}
  html:has(#r5Panel) #r5Panel .r53-topbar {margin-bottom:15px;box-shadow:none;border-bottom:1px solid #e7edef}
  html:has(#r5Panel) #r5Panel .r57-heading {margin:0 1px 12px!important}
  html:has(#r5Panel) #r5Panel .r57-heading .r5-kicker {font-size:10px;letter-spacing:.11em;color:#17877c}
  html:has(#r5Panel) #r5Panel .r57-heading h2 {font-size:21px;letter-spacing:-.036em;margin:3px 0 5px}
  html:has(#r5Panel) #r5Panel .r57-heading p {font-size:11.5px;line-height:1.35;color:#6d8590}
  /* Summary is the calm counterpart to colorful radar; no redundant header or warning card. */
  html:has(#r5Panel) #r5Panel .r57-summary {
    background:transparent!important;border:0!important;box-shadow:none!important;
    padding:1px 1px 14px!important;margin:0 1px 13px!important;
    border-bottom:1px solid #e6eded!important;border-radius:0!important;
  }
  html:has(#r5Panel) #r5Panel .r57-summary .r5-national-text {font-size:12.3px;color:#385563;line-height:1.56}
  /* Only genuinely detected live events get the light green highlight. */
  html:has(#r5Panel) #r5Panel .r57-live-section:not([hidden]) {
    display:block!important;background:#f0faf6;border:1px solid #d8eee3;
    border-radius:11px;padding:11px 12px;margin:0 1px 13px;
    box-shadow:none;color:#214c44;
  }
  html:has(#r5Panel) #r5Panel .r57-live-heading {display:flex;align-items:center;gap:7px;margin:0 0 5px;font-size:12px}
  html:has(#r5Panel) #r5Panel .r57-live-heading strong {font-weight:790;color:#087e69}
  html:has(#r5Panel) #r5Panel .r57-live-heading>span:last-child {font-size:10px;color:#5d8478;font-weight:500}
  html:has(#r5Panel) #r5Panel .r57-live-dot {height:7px;width:7px;background:#16a57c;border-radius:99px;flex:0 0 auto}
  html:has(#r5Panel) #r51LiveMount #liveFeed {background:transparent!important}
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-head {display:none!important}
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-foot {font-size:10px;margin-top:5px!important;padding:3px 0!important}
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-list {font-size:11.7px;line-height:1.4}
  html:has(#r5Panel) #r51LiveMount #liveFeed .live-feed-item {background:transparent!important;padding:4px 0!important;box-shadow:none!important;border:0!important}
  /* City rows and navigation use subtle separators, without nested cards. */
  html:has(#r5Panel) #r5Panel .r5-cities,
  html:has(#r5Panel) #r5Panel .r5-quick {
    background:#fff!important;border:1px solid #e5eceb!important;
    border-radius:12px!important;box-shadow:0 2px 9px rgba(39,77,85,.025)!important;
    padding:13px 12px 10px!important;margin-bottom:11px!important;
  }
  html:has(#r5Panel) #r5Panel .r5-section-head h2,
  html:has(#r5Panel) #r5Panel .r5-quick h2 {font-size:15px;letter-spacing:-.025em}
  html:has(#r5Panel) #r5Panel .r5-section-head {margin-bottom:7px}
  html:has(#r5Panel) #r5Panel .r5-row {min-height:41px;border-bottom:1px solid #edf1f1}
  html:has(#r5Panel) #r5Panel .r5-row:last-child {border-bottom:0}
  html:has(#r5Panel) #r5Panel .r5-row strong {font-size:11.4px}
  html:has(#r5Panel) #r5Panel .r5-time {font-size:9.5px;line-height:1.35;color:#8a9a9d;margin-top:7px!important}
  html:has(#r5Panel) #r5Panel .r5-time a {font-size:9.5px;font-weight:640;color:#568980}
  html:has(#r5Panel) #r5Panel .r5-quick h2 {margin:0 0 10px}
  html:has(#r5Panel) #r5Panel .r5-links {gap:5px}
  html:has(#r5Panel) #r5Panel .r5-links a {background:#fcfefd;border:1px solid #e9eeee;border-radius:8px;box-shadow:none;font-size:11px;min-height:36px}
  html:has(#r5Panel) #r5Panel .r5-links a:hover {background:#eff8f4;border-color:#c5e8da}
  html:has(#r5Panel) #r5Panel .r5-links a span {font-size:17px;color:#178e7e}
}


/* RSEO-R5.8: controlled right-side map toolbar shift and weather SVGs. */
@media(min-width:1060px){
 html:has(#r5Panel) .r58-map-control-shift{
   translate:var(--r58-map-control-x,0px) 0!important;
   transition:translate .22s ease!important;
   will-change:translate;
 }
}
@media(prefers-reduced-motion:reduce){
 html:has(#r5Panel) .r58-map-control-shift{transition:none!important}
}
#r5Panel .r58-condition-icon{display:grid;place-items:center;color:inherit;font-size:0;line-height:1}
#r5Panel .r58-weather-svg{width:22px;height:22px;overflow:visible;fill:none;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}
#r5Panel .r58-weather-svg .sun{stroke:#E7A600;fill:#FFE29B}
#r5Panel .r58-weather-svg .moon{stroke:#738A9A;fill:#E8EEF2}
#r5Panel .r58-weather-svg .cloud{stroke:#71899C;fill:#E1E8ED}
#r5Panel .r58-weather-svg .fog{stroke:#91A1AC}
#r5Panel .r58-weather-svg .rain{stroke:#308BC0;stroke-width:2}
#r5Panel .r58-weather-svg .snow{stroke:#4096C2;stroke-width:1.7}
#r5Panel .r58-weather-svg .storm{stroke:#E2A42B;fill:#FFE9AA}
#r5Panel .r58-weather-svg .unknown{stroke:#9BABB4}
#r5Panel .r58-extremes{background:#fff;border:1px solid #e5eceb;border-radius:12px;box-shadow:0 2px 9px rgba(39,77,85,.025);padding:12px 12px 10px;margin-bottom:11px}
#r5Panel .r58-extremes-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}
#r5Panel .r58-extremes-head h2{margin:0;font-size:15px;color:#173748;letter-spacing:-.025em}
#r5Panel .r58-extremes-head span{font-size:9.5px;color:#728A93;white-space:nowrap}
#r5Panel .r58-extremes-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
#r5Panel .r58-extreme-group{min-width:0}
#r5Panel .r58-extreme-group h3{font-size:10.5px;color:#61818B;margin:0 0 6px;font-weight:750}
#r5Panel .r58-extreme-group a{display:flex;align-items:baseline;justify-content:space-between;gap:5px;min-width:0;padding:4px 0;border-bottom:1px solid #eff3f3;text-decoration:none;color:#2D4F5D;font-size:10.5px}
#r5Panel .r58-extreme-group a:last-child{border-bottom:0}
#r5Panel .r58-extreme-group a:hover{color:#008975}
#r5Panel .r58-extreme-group a span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#r5Panel .r58-extreme-group a b{font-weight:750;white-space:nowrap;color:#0F3F4C}
#r5Panel .r58-extremes-meta{font-size:9.3px;line-height:1.4;color:#82979C;margin:7px 0 0}


/* RSEO-R5.9 — clean temperature comparisons and stable map controls.
   Every selector is private-canary scoped; no public homepage stylesheet. */
@media(min-width:1060px){
  html:has(#r5Panel) .r59-viewport-map-control{
    translate:0 0!important;
    transition:translate .22s ease!important;
    will-change:translate;
  }
  html:has(#r5Panel):has(#r51PanelClosed:not(:checked)) .r59-viewport-map-control{
    translate:calc(0px - var(--r5-width)) 0!important;
  }
  /* Legacy R5.8 class must not influence map-root controls if an older
     script marked them before hot page reload. */
  html:has(#r5Panel) .r58-map-control-shift:not(.r59-viewport-map-control){
    translate:none!important;transition:none!important;
  }
}
@media(max-width:1059px){
  html:has(#r5Panel) .r59-viewport-map-control{translate:none!important;transition:none!important}
}
@media(prefers-reduced-motion:reduce){
  html:has(#r5Panel) .r59-viewport-map-control{transition:none!important}
}
#r5Panel .r58-extremes{
  background:#fff;border:1px solid #e4eeee;
  padding:12px 13px 10px;box-shadow:0 2px 8px rgba(18,58,72,.027);
}
#r5Panel .r58-extremes-head{margin-bottom:10px}
#r5Panel .r58-extremes-head h2{font-size:14.5px;font-weight:780}
#r5Panel .r58-extremes-head span{font-size:9px;color:#8b9da3}
#r5Panel .r58-extremes-cols{gap:12px}
#r5Panel .r58-extreme-group{min-width:0}
#r5Panel .r58-extreme-group h3{display:flex;align-items:center;gap:6px;font-size:10.5px;margin:0 0 5px;letter-spacing:.005em}
#r5Panel .r59-extreme-dot{display:inline-block;height:6px;width:6px;flex:0 0 6px;border-radius:50%;background:#dba55d}
#r5Panel .r59-cold .r59-extreme-dot{background:#76a8c5}
#r5Panel .r59-warm h3{color:#8e682e}
#r5Panel .r59-cold h3{color:#64859b}
#r5Panel .r58-extreme-group a{
  display:grid;grid-template-columns:11px minmax(0,1fr) auto;
  align-items:baseline;gap:4px;padding:5px 0;border-bottom:1px solid #edf2f1;
  color:#234551;min-width:0;font-size:10.6px;line-height:1.25;
}
#r5Panel .r58-extreme-group a:last-child{border-bottom:0}
#r5Panel .r58-extreme-group a:hover,#r5Panel .r58-extreme-group a:focus-visible{color:#008e79;background:#f7fbfa;outline:0}
#r5Panel .r59-rank{font-variant-numeric:tabular-nums;font-size:9px;color:#a2b1b2;text-align:left;min-width:11px}
#r5Panel .r58-extreme-group a .r59-city{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#r5Panel .r58-extreme-group a b{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:10.5px;font-weight:790;letter-spacing:-.01em}
#r5Panel .r59-warm a b{color:#866337}
#r5Panel .r59-cold a b{color:#477c9a}
#r5Panel .r58-extremes-meta{font-size:9px;margin-top:7px;color:#8d9fa3;line-height:1.35}


/* RSEO-R6.0 — calm editorial summary + explicit temperature age; canary panel only. */
@media (min-width:1060px) {
  html:has(#r5Panel) #r5Panel .r57-heading {margin-bottom:11px!important}
  html:has(#r5Panel) #r5Panel .r57-heading h2 {font-size:21px;line-height:1.18;letter-spacing:-.035em}
  html:has(#r5Panel) #r5Panel .r57-heading p {font-size:11px;color:#82969c}
  html:has(#r5Panel) #r5Panel .r60-summary {
    margin:0 1px 13px!important;padding:4px 2px 12px 11px!important;
    border:0!important;border-left:2px solid #94d2c4!important;
    border-bottom:1px solid #e9efef!important;
    border-radius:0!important;background:transparent!important;
  }
  html:has(#r5Panel) #r5Panel .r60-summary .r5-national-text {
    font-size:12.1px;line-height:1.55;color:#345461;letter-spacing:-.006em;
  }
}
#r5Panel .r60-rank-history {border-color:#e7ecec;background:#fcfdfc}
#r5Panel .r60-rank-history .r58-extremes-head h2{color:#405965}
#r5Panel .r60-rank-history .r58-extreme-group a b{color:#617e88}
#r5Panel .r60-rank-history .r58-extremes-meta{
  color:#776b55;font-size:9.5px;line-height:1.45;
  margin:9px 0 0;border-top:1px solid #f0efec;padding-top:7px;
}
#r5Panel .r60-temperature-unavailable{
  border:1px solid #e9eeee;border-radius:10px;
  display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 9px;
  background:#fbfcfc;padding:9px 11px;margin-bottom:11px;
}
#r5Panel .r60-temperature-unavailable span{font-size:11px;font-weight:750;color:#59717b}
#r5Panel .r60-temperature-unavailable small{font-size:10px;line-height:1.45;color:#83979d}

/* RSEO-R6.2J — token-protected private shadow narrative, not public weather. */
#r5Panel .r62j-narrative{display:block;color:#2d4956}
#r5Panel .r62j-heading{display:flex;align-items:center;gap:7px;margin:0 0 7px;font-size:10px;letter-spacing:.03em;font-weight:720;color:#408d80}
#r5Panel .r62j-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#55ad95}
#r5Panel .r62j-narrative h3{font-size:15px;line-height:1.25;letter-spacing:-.02em;color:#153f49;font-weight:770;margin:0 0 7px}
#r5Panel .r62j-narrative p{font-size:12.15px;line-height:1.55;color:#365663;margin:0 0 7px}
#r5Panel .r62j-next{margin-top:12px;padding-top:10px;border-top:1px solid #e3edeb}
#r5Panel .r62j-next strong{font-size:12.2px;color:#224853;font-weight:760;display:block;margin-bottom:5px}
#r5Panel .r62j-next p{margin:0}
#r5Panel .r62j-meta{margin-top:10px;font-size:9.5px;line-height:1.5;color:#81959a}

/* RSEO-R6.2K: compact, structured, editorial regional narrative. PRIVATE CANARY ONLY. */
@media (min-width:1060px){
  html:has(#r5Panel) #r5Panel .r60-summary:has(.r62k-narrative){
    border-left:0!important;padding:0 1px 11px!important;margin:0 1px 10px!important;
    border-bottom:1px solid #e5eded!important;
  }
  html:has(#r5Panel) #r5Panel .r57-heading:has(+ .r60-summary .r62k-narrative){margin-bottom:8px!important}
  html:has(#r5Panel) #r5Panel .r57-heading:has(+ .r60-summary .r62k-narrative) h2{font-size:20px}
}
#r5Panel .r62k-narrative{color:#2c4a58}
#r5Panel .r62k-period{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:4px 0 10px;align-items:start}
#r5Panel .r62k-period+.r62k-period{border-top:1px solid #e8efef;padding-top:10px}
#r5Panel .r62k-period-icon{width:22px;height:22px;display:grid;place-items:center;color:#819ba7;margin-top:0}
#r5Panel .r62k-period-icon svg{width:21px;height:21px}
#r5Panel .r62k-period-body{min-width:0}
#r5Panel .r62k-period h3{font-size:13.6px;line-height:1.24;color:#173d4d;letter-spacing:-.015em;font-weight:790;margin:1px 0 5px}
#r5Panel .r62k-description{font-size:12.65px;line-height:1.49;color:#385867;margin:0 0 7px;letter-spacing:-.004em}
#r5Panel .r62k-temperature{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;margin:0;font-size:11px;color:#667f87}
#r5Panel .r62k-temperature strong{font-variant-numeric:tabular-nums;font-size:12.6px;color:#173e4a;white-space:nowrap;font-weight:790}
#r5Panel .r62k-meta{border-top:1px solid #e8efef;padding:8px 0 0;margin:0 0 1px 32px;font-size:9.25px;line-height:1.45;color:#8b9fa3}
#r5Panel .r62k-meta time{font-variant-numeric:tabular-nums;white-space:nowrap}

/* RSEO R6.2L: editorial breathing room; compact evidence-driven prose. */
#r5Panel .r62k-period h3{font-size:13.9px;line-height:1.25;letter-spacing:-.011em}
#r5Panel .r62k-description{font-size:13.15px;line-height:1.48;letter-spacing:0;color:#344f5d;margin-bottom:7px}
#r5Panel .r62k-temperature strong{font-size:13px}
#r5Panel .r62k-meta{font-size:9.7px;color:#82959c}
