/* Phone Playback layout. Desktop geometry is never imported here. */
html[data-ui-shell="phone"] .playback {
    --playback-camera-width: 104px;
    --playback-camera-height: 56px;
    --playback-timeline-height: 108px;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
}
html[data-ui-shell="phone"] .playback-player-resizer { width: 100%; }
html[data-ui-shell="phone"] .playback-player-resize-handle { display: none; }
html[data-ui-shell="phone"] #playback-fit-page { display: none; }
html[data-ui-shell="phone"] .sync-player-grid { grid-template-columns: 1fr; }
/* Video takes the available width in either orientation. Let the existing
   Playback scroller carry controls and timelines below the full-size picture. */
html[data-ui-shell="phone"] .playback-caption { padding: 5px 6px; font-size: 11px; gap:4px; }
html[data-ui-shell="phone"] .playback-caption strong {min-width:0;}
html[data-ui-shell="phone"] .playback-resolution {font-size:10px;}
html[data-ui-shell="phone"] .recorded-frame-clock { font-size: 11px; }
html[data-ui-shell="phone"] .playback-transport { display: grid; grid-template-columns: repeat(4, minmax(44px, 1fr)) minmax(0, 2fr); gap: 4px; }
html[data-ui-shell="phone"] .playback-transport .icon-btn { width: 100%; min-width: 44px; min-height: 44px; padding-inline: 4px; }
html[data-ui-shell="phone"] .playback-transport .delivery-control { grid-column: 5; grid-row: 1; min-width: 0; }
html[data-ui-shell="phone"] .playback-transport .delivery-control > span { display: none; }
html[data-ui-shell="phone"] #playback-delivery { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; font-size: 12px; }
html[data-ui-shell="phone"] .speed-control { grid-column: 1 / 4; grid-row: 2; grid-template-columns: minmax(40px, 1fr) 26px; gap: 6px; margin-left: 0; }
html[data-ui-shell="phone"] .speed-control > span { display: none; }
html[data-ui-shell="phone"] .playback-audio-controls { grid-column: 4 / -1; grid-row: 2; grid-template-columns: 58px minmax(40px, 1fr) 32px; gap: 4px; font-size: 11px; }
html[data-ui-shell="phone"] .playback-audio-controls button { min-height: 44px; padding: 4px 6px; font-size: 11px; }
html[data-ui-shell="phone"] .playback-transport input[type="range"] { min-width: 0; }
html[data-ui-shell="phone"] .timeline-section { gap: 4px; }
html[data-ui-shell="phone"] .timeline-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
html[data-ui-shell="phone"] .timeline-day-nav { grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr) 44px; }
html[data-ui-shell="phone"] .timeline-heading :is(button, input) { min-height: 40px; }
html[data-ui-shell="phone"] .timeline-day-nav button { min-height: 44px; }
html[data-ui-shell="phone"] .playback-find { grid-template-columns: minmax(0, 1fr) auto; }
html[data-ui-shell="phone"] .playback-find > label { display: none; }
html[data-ui-shell="phone"] .timeline-heading-readout { gap: 4px; }
html[data-ui-shell="phone"] #timeline-range-toggle { padding-inline: 6px; font-size: 11px; }
html[data-ui-shell="phone"] #timeline-readout { font-size: 12px; }
html[data-ui-shell="phone"] #timeline-scale { padding-inline: 6px; font-size: 10px; }
html[data-ui-shell="phone"] .timeline-legend { font-size: 10px; gap: 5px 8px; }
html[data-ui-shell="phone"] .playback-evidence { grid-template-columns: 1fr; }
html[data-ui-shell="phone"] .playback-tool > summary small { display: none; }
html[data-ui-shell="phone"] .export-controls,
html[data-ui-shell="phone"] .incident-controls { display: grid; grid-template-columns: 1fr; gap: 10px; }
html[data-ui-shell="phone"] .incident-controls :is(strong, p) { grid-column: 1; }
html[data-ui-shell="phone"] .incident-card { grid-template-columns: 1fr; }
html[data-ui-shell="phone"] .incident-card .incident-actions {
    grid-column: 1;
    justify-content: flex-start;
}
html[data-ui-shell="phone"] .incident-edit { grid-template-columns: 1fr; }
html[data-ui-shell="phone"] .incident-edit :is(.incident-notes, .incident-edit-actions) { grid-column: 1; }
html[data-ui-shell="phone"] .alert-review-queue { grid-template-columns: 1fr 1fr; }
html[data-ui-shell="phone"] .alert-review-queue p { grid-row: 1; grid-column: 1 / -1; }
