/* Narrow-screen and reduced-motion adjustments for the base theme. */

@media (max-width: 780px) {
  .topbar { margin-bottom: 19px; }
  .setup-grid, .studio-grid { grid-template-columns: 1fr; }
  .setup-grid.guest-mode { grid-template-columns: 1fr; }
  .recent-panel { min-height: auto; }
  .storage-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .storage-panel .panel-heading { grid-column: 1 / -1; }
  .storage-panel .saved-total { align-self: end; padding-bottom: 6px; }
  .storage-recordings { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .studio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 30px, 1120px); padding-top: 20px; }
  .topbar { align-items: start; gap: 10px; margin-bottom: 18px; }
  .setup-panel, .recent-panel { padding: 20px; }
  .device-row { grid-template-columns: 1fr; gap: 0; }
  .button-quiet { justify-self: start; margin-top: -8px; }
  .studio-title-row { align-items: start; flex-direction: column; }
  .studio-title-row h1 { font-size: 38px; }
  .record-panel { padding: 20px; }
  .panel-topline { align-items: start; flex-direction: column; }
  .room-panel { padding: 18px; }
  .room-heading { align-items: start; flex-direction: column; }
  .guest-request-card { grid-template-columns: 1fr; }
  .guest-request-actions { justify-content: start; }
  .remote-audio-row { align-items: start; flex-direction: column; }
  .timer { margin: 32px 0 22px; font-size: 76px; }
  .storage-panel { display: block; }
  .storage-divider { display: block; }
  .saved-total { padding-bottom: 0; }
  .take-row { grid-template-columns: 1fr; gap: 9px; }
  .take-actions { justify-content: start; }
  .page-footer { line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
