.storm-sheet { display: none; }
@media (max-width: 760px), (orientation: landscape) and (max-height: 520px) and (max-width: 1000px) {
  .mobile-storm-active .storm-sheet {
    display: flex; flex-direction: column; position: absolute; z-index: 4;
    left: calc(8px + var(--safe-left, 0px)); right: calc(8px + var(--safe-right, 0px));
    bottom: calc(5px + var(--storm-footer-height, 50px)); max-height: min(57%, 420px);
    color: #193d31; background: #f8faf3; border: 1px solid #bdcbbf;
    border-radius: 10px; box-shadow: 0 3px 14px #19382d36;
  }
  .storm-sheet [hidden] { display: none !important; }
  .storm-heading { display: flex; align-items: center; gap: 6px; padding: 4px; }
  .storm-sheet button, .storm-sheet summary { min-height: 44px; cursor: pointer; }
  .storm-heading button, .storm-range button, .storm-period button { border-radius: 6px; color: #224937; }
  .storm-heading .storm-play {
    width: 44px; min-width: 44px; height: 44px; display: grid; place-items: center;
    padding: 0; background: #28533d; color: white;
  }
  .storm-play::before { content: ""; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
  .storm-play[aria-pressed="true"]::before { width: 9px; height: 12px; box-sizing: border-box; border: 0; border-inline: 3px solid currentColor; }
  .storm-expand { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 4px; text-align: left; padding: 2px 6px; min-width: 0; }
  .storm-title, .storm-stamp { display: block; }
  .storm-title { font-size: .68rem; font-weight: 600; color: #48634e; }
  .storm-stamp { font-size: .84rem; font-variant-numeric: tabular-nums; }
  .storm-expand i { flex: none; width: 9px; height: 9px; border: solid #365c47; border-width: 2px 2px 0 0; transform: rotate(-45deg); margin: 4px 5px 0; }
  .storm-expand[aria-expanded="true"] i { transform: rotate(135deg); margin-top: -4px; }
  .storm-live, .storm-range button, .storm-period button { padding: 4px 8px; background: #e6eddf; min-width: 44px; }
  .storm-live[aria-pressed="true"], .storm-period [aria-pressed="true"] { background: #d4e5d3; font-weight: 700; }
  .storm-body { border-top: 1px solid #d2dccf; padding: 2px 10px 7px; overflow-y: auto; overscroll-behavior: contain; }
  .storm-range { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: start; gap: 8px; margin: 4px 0; }
  .storm-range button { font-size: 1.45rem; }
  .storm-range input { display: block; width: 100%; height: 44px; margin: 0; accent-color: #28533d; }
  .storm-scale, .storm-period { display: flex; align-items: center; }
  .storm-scale { justify-content: space-between; margin-top: -6px; color: #4b6152; font-size: .65rem; }
  .storm-period { gap: 4px; margin-top: 4px; font-size: .78rem; }
  .storm-period span { margin-right: auto; }
  .storm-images, .storm-warning { font-size: .73rem; line-height: 1.35; }
  .storm-images { padding: 8px 0; }
  .storm-warning { padding: 0 10px 5px; color: #754b1b; }
  .storm-body > details { border-top: 1px solid #d7dfd1; }
  .storm-sheet summary { align-content: center; font-size: .82rem; font-weight: 600; }
  .storm-sheet .motion { position: static; box-shadow: none; border: 0; background: transparent; max-width: 100%; }
  .storm-sheet .motion > .timebar, .storm-sheet .motion > .radar-replay, .storm-sheet .motion > .strike-map-toggle { display: none; }
  .storm-sheet .strike-history-panel { border: 0; box-shadow: none; background: transparent; }
  .storm-sheet .strike-history-panel .live-panel-head, .storm-sheet .strike-readout,
  .storm-sheet .strike-stamp, .storm-sheet .strike-scrubber, .storm-sheet .strike-actions { display: none; }
  .storm-sheet .live-panel-body { padding: 3px 0; }
  .storm-sheet .strike-time { margin: 0; }
  .storm-sheet .strike-timeline { padding-top: 0; }
  .storm-sheet .rain-legend { margin: 4px 0; }
  .storm-sheet .rain-footer { flex-wrap: wrap; }
  .storm-sheet .rain-status { margin: 0; }
  .mobile-storm-active .stage:has(.motion.has-timebar) .maplibregl-ctrl-bottom-right { bottom: calc(11px + var(--storm-footer-height, 50px) + var(--storm-sheet-height, 54px)) !important; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1000px) {
  .mobile-storm-active .storm-sheet { left: auto; width: min(45%, 370px); max-height: calc(100% - 85px - var(--safe-bottom, 0px)); }
}
