@layer foundation-layout {
  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    margin: 8px auto 0 !important;
    overflow: visible !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScaleCelsius {
    margin-bottom: 10px !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) .weather-temperature-band {
    position: relative !important;
    display: none !important;
    grid-template-rows: 9px 12px 15px !important;
    height: 36px !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScale[data-active-range="positive"] .weather-temperature-band-positive,
  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScale[data-active-range="negative"] .weather-temperature-band-negative,
  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScaleCelsius[data-active-range="positive"] .weather-temperature-band-positive,
  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScaleCelsius[data-active-range="negative"] .weather-temperature-band-negative {
    display: grid !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) .weather-temperature-scale-track {
    height: 12px !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) .weather-temperature-scale-marker {
    height: 16px !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) .weather-temperature-scale-current {
    top: -7px !important;
    left: clamp(68px, var(--weather-band-position), calc(100% - 68px)) !important;
    height: 14px !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) .weather-scale-reading::after {
    content: none !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) .weather-temperature-scale-current > b {
    font-size: 11px !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScale .weather-temperature-scale-track::before {
    background: linear-gradient(90deg, #4e7595, #76a7bd 42%, #d3b06c 72%, #e28b55 100%) !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScaleCelsius .weather-temperature-scale-track::before {
    background: linear-gradient(90deg, #477ba8, #66b9d3 52%, #62bcae 100%) !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScale .weather-temperature-scale-current > b {
    color: #d1e2e8 !important;
    -webkit-text-fill-color: #d1e2e8 !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScaleCelsius .weather-temperature-scale-current > b {
    color: #c7dfd3 !important;
    -webkit-text-fill-color: #c7dfd3 !important;
  }

  html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel #weatherTemperatureScaleCelsius .weather-temperature-scale-labels {
    color: #91d7e3 !important;
    -webkit-text-fill-color: #91d7e3 !important;
  }

  html body.page-weather:not(.delayed-data-visible) #weatherSimpleTopCard #weatherTemperatureScaleCelsius :is(.weather-temperature-scale-marker, .weather-temperature-scale-current),
  html body.page-weather #weatherSimpleTopCard #weatherTemperatureScaleCelsius:not(.is-loaded) :is(.weather-temperature-scale-marker, .weather-temperature-scale-current) {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  html body.page-weather.delayed-data-visible #weatherSimpleTopCard #weatherTemperatureScaleCelsius.is-loaded :is(.weather-temperature-scale-marker, .weather-temperature-scale-current) {
    opacity: 1 !important;
    visibility: visible !important;
  }

  @media (max-width: 560px) {
    html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) {
      width: min(100%, 330px) !important;
      max-width: 330px !important;
      margin-top: 6px !important;
    }

    html body.page-weather #weatherSimpleTopCard #weatherVisualsPanel :is(#weatherTemperatureScale, #weatherTemperatureScaleCelsius) .weather-temperature-scale-labels {
      font-size: 10px !important;
    }
  }
}
