/* Radar Česka V5.7.7 · Živě restore + legend cleanup
   Scope: UI-only cleanup over V5.7.6. No radar/model backend changes. */

/* --------------------------------------------------------------------------
   ONE VISIBLE LEGEND OWNER
   --------------------------------------------------------------------------
   Mobile already owns the active-layer legend inside the bottom timeline.
   The V5 floating radar legend and the legacy V11 temperature legend therefore
   only duplicate information and can overlap the timeline/right-bottom UI.
*/
#radarV5Legend,
#modelTemperatureV11Legend{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
/* Generic model legend must never resurrect as a second radar dBZ legend. */
#modelLegend[data-legend-kind="radar"],
#app.radar-engine-v5-active #modelLegend{
  display:none!important;
}

/* V5.7.7 uses the right-side information button as the only restore affordance.
   Retire the older floating desktop Živě chip so there is no second reopen UI. */
#liveFeedChip{display:none!important}

/* --------------------------------------------------------------------------
   DESKTOP ŽIVĚ HEADER = SAME VISUAL LANGUAGE AS MOBILE
   -------------------------------------------------------------------------- */
@media (min-width:701px){
  .live-feed-head{
    align-items:center!important;
  }
  .live-feed-title-link{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    min-width:0!important;
    color:inherit!important;
    text-decoration:none!important;
    border-radius:11px!important;
    outline:none!important;
  }
  .live-feed-title-link:hover .live-feed-title-copy strong{
    color:#087f6d!important;
  }
  .live-feed-title-link:focus-visible{
    box-shadow:0 0 0 3px rgba(11,191,156,.13)!important;
  }
  .live-feed-weather-icon{
    display:grid!important;
    place-items:center!important;
    flex:0 0 32px!important;
    width:32px!important;
    height:32px!important;
    border-radius:10px!important;
    color:#0a927b!important;
    background:linear-gradient(180deg,#eaf9f5,#f4fcfa)!important;
    border:1px solid rgba(11,191,156,.12)!important;
  }
  .live-feed-weather-icon svg{
    width:18px!important;
    height:18px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }
  .live-feed-title-copy{
    display:grid!important;
    gap:4px!important;
    min-width:0!important;
  }
  .live-feed-title-copy strong{
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    width:max-content!important;
    max-width:100%!important;
    color:#183f48!important;
    font-size:13.4px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:-.022em!important;
    transition:color .14s ease!important;
  }
  .live-feed-title-copy strong::after{
    content:"";
    display:block;
    width:6px;
    height:6px;
    flex:0 0 6px;
    border-radius:50%;
    background:#10b895;
    box-shadow:0 0 0 0 rgba(16,184,149,.18);
    animation:rc-v577-live-pulse 2.6s ease-out infinite;
  }
  .live-feed-title-copy small{
    margin:0!important;
    color:#81949a!important;
    font-size:7.8px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  .live-feed-head>button{
    flex:0 0 auto!important;
  }
}

/* Mobile title itself is now a link to /zive as well. Keep it visually identical
   to the V5.7.4 header. */
.mobile-live-title{
  color:inherit!important;
  text-decoration:none!important;
}
.mobile-live-title:focus-visible{
  outline:2px solid rgba(11,191,156,.24)!important;
  outline-offset:2px!important;
  border-radius:10px!important;
}

/* The info restore button is the single reopen control for Živě on weather.
   It already lives in .map-actions, so it naturally occupies the right control
   stack on desktop and mobile. Give weather a clear but quiet information look. */
.app-shell[data-mode="weather"] #overviewRestoreBtn:not([hidden]){
  display:grid!important;
  place-items:center!important;
  color:#087f70!important;
  border-color:rgba(8,151,128,.24)!important;
  background:rgba(239,251,248,.98)!important;
  box-shadow:0 10px 26px rgba(10,105,91,.14)!important;
}
.app-shell[data-mode="weather"] #overviewRestoreBtn:not([hidden])::after{
  content:"";
  position:absolute;
  width:6px;
  height:6px;
  right:5px;
  top:5px;
  border-radius:50%;
  background:#10b895;
  box-shadow:0 0 0 3px rgba(16,184,149,.10);
}
#overviewRestoreBtn{position:relative}

@keyframes rc-v577-live-pulse{
  0%{box-shadow:0 0 0 0 rgba(16,184,149,.20)}
  70%,100%{box-shadow:0 0 0 6px rgba(16,184,149,0)}
}
@media (prefers-reduced-motion:reduce){
  .live-feed-title-copy strong::after{animation:none!important}
}
