/* A 20% grey overlay, with the landscape visible directly behind the text. */
.ambient-temperature.weather-peek,
.ambient-temperature.weather-peek:hover,
.ambient-temperature.weather-peek:active {
  background: rgba(128, 128, 128, .20);
  color: #f6faf7;
  border-color: rgba(240, 245, 242, .30);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .45);
}
.weather-peek__heading,
.weather-peek__heading span:last-child,
.weather-peek .ambient-temperature__range,
.weather-peek .ambient-clock__weather { color: #f6faf7; }
.weather-peek:hover { border-color: rgba(240, 250, 244, .62); }

/* Compact icons; their 44px targets remain usable on touch screens. */
.screen-rail.display-dock {
  top: auto;
  left: auto;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 32px);
  gap: 3px;
  padding: 5px;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 180ms;
}
.screen-rail.display-dock button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}
.screen-rail.display-dock button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.screen-rail.display-dock.is-idle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 700px) {
  .screen-rail.display-dock {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-transparency: reduce) {
  .ambient-temperature.weather-peek,
  .ambient-temperature.weather-peek:hover,
  .ambient-temperature.weather-peek:active {
    background: #353535;
    text-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .screen-rail.display-dock { transition: none; }
}
@media (forced-colors: active) {
  .ambient-temperature.weather-peek,
  .ambient-temperature.weather-peek:hover,
  .ambient-temperature.weather-peek:active {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
    box-shadow: none;
    text-shadow: none;
  }
  .weather-peek__heading,
  .weather-peek__heading span:last-child,
  .weather-peek .ambient-temperature__range,
  .weather-peek .ambient-clock__weather { color: CanvasText; }
}
