/* #region zone:disaster.style.rain-dock — หัวอ่านเลื่อนด้วย transform ป้ายวางตามเวลาจริง สเกลสีฝนเดียว */
/* Loaded after disaster-sheet.css: same #app specificity, so these rules win for the rain timeline. */
/* One x mapping for thumb, now tick and labels: 12px (half the thumb) in from each end of the track. */
#app .dock-track::before {
  top: 50%;
  transform: translateY(-50%);
}
#app .dock-glide {
  position: absolute;
  inset: 0 12px;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
#app .dock-playhead {
  top: 50%;
  left: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  transition: none;
}
#app .dock-now {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 20px;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.5;
}
#app .dock-now[hidden] {
  display: none;
}
#app .instrument-ticks {
  position: relative;
  display: block;
  height: 20px;
  margin: 0 var(--u-space-3);
}
#app .instrument-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  line-height: 20px;
  white-space: nowrap;
}
#app .instrument-strip[data-phase='forecast'] .instrument-rel {
  color: var(--hz-rain-ink);
}
#app .rain-scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--sheet-space);
  row-gap: 2px;
  align-items: center;
  margin: 0;
}
#app .rain-scale[hidden] {
  display: none;
}
#app .rain-scale-bar {
  grid-column: 1;
  height: 6px;
  border-radius: 6px;
}
#app .rain-scale-unit {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: var(--fs-xs);
  color: var(--muted);
}
#app .rain-scale-ticks {
  grid-column: 1;
  position: relative;
  height: 16px;
  font-size: var(--fs-xs);
  line-height: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#app .rain-scale-ticks span {
  position: absolute;
  transform: translateX(-50%);
}
#app .rain-scale-ticks span:nth-child(1) {
  left: 0;
  transform: none;
}
#app .rain-scale-ticks span:nth-child(2) {
  left: 28.57%;
}
#app .rain-scale-ticks span:nth-child(3) {
  left: 71.43%;
}
#app .rain-scale-ticks span:nth-child(4) {
  right: 0;
  transform: none;
}
/* Point rain graph (the sheet's legacy rules are one-liners, so the fixes live here): hour labels at 12px and the
   bars lifted off the baseline, so nothing sits flush against the border. */
#app .rain-bars {
  height: 72px;
}
#app .rain-bar {
  bottom: 4px;
  max-height: calc(100% - 4px);
}
#app .rain-bar[data-missing='true'] {
  height: calc(100% - 4px);
}
#app .rain-bar-ticks {
  font-size: var(--fs-xs);
  padding-top: var(--u-space-1);
}
#app .instrument-badge {
  font-size: var(--fs-xs);
}
/* #endregion */
/* #region zone:disaster.style.rain-dock.landscape — เว้นความสูงให้ป้ายเวลาบนมือถือแนวนอน */
@media (max-height: 499px) {
  #app[data-sheet-layout='side'] > .instrument-strip {
    max-height: calc(100dvh - 96px);
  }
}
/* #endregion */
