.production-source-dialog { width: min(900px, calc(100% - 28px)); }
.production-recorder { position: relative; display: grid; gap: 12px; }
.production-recorder-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.production-recorded-preview { width: 100%; max-height: 60dvh; background: #000; object-fit: contain; }
.production-recorder-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.production-recorder-actions button { display: inline-flex; gap: 7px; align-items: center; min-height: 48px; }
.production-camera-dialog {
  --recorder-ink: #fff;
  --recorder-surface: #151515;
  --recorder-glass: rgb(15 15 15 / 76%);
  --recorder-line: rgb(255 255 255 / 55%);
  --recorder-red: #ff655e;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: var(--recorder-ink);
  background: var(--recorder-surface);
  color-scheme: dark;
}
.production-camera-dialog::backdrop { background: #000; }
.production-camera-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
  isolation: isolate;
}
.production-live-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.production-camera-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.production-recording-clock { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--recorder-glass); border-radius: 24px; font: 600 14px system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.production-recording-clock.recording svg { color: var(--recorder-red); }
.production-camera-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--recorder-line);
  border-radius: 24px;
  padding: 8px 12px;
  background: var(--recorder-glass);
  color: var(--recorder-ink);
  font: 600 15px system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.production-camera-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.production-camera-dialog button:not(:disabled):active { background: #454545; }
.production-camera-dialog :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.production-camera-dialog .production-teleprompter {
  width: min(100%, 760px);
  justify-self: center;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  scrollbar-width: thin;
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  box-sizing: border-box;
  background: rgb(0 0 0 / 58%);
  color: #fff;
  text-shadow: 0 2px 4px #000;
  font-family: system-ui, sans-serif;
  font-weight: 650;
  line-height: 1.5;
}
.production-camera-dialog .production-teleprompter p { margin: 0; padding-bottom: 30dvh; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.production-camera-controls { width: min(100%, 760px); justify-self: center; box-sizing: border-box; padding: 12px; border-radius: 16px; background: var(--recorder-glass); }
.production-camera-status { margin: 0 0 8px; font: 500 13px/1.4 system-ui, sans-serif; text-align: center; }
.production-camera-error { margin: 8px 0; font-size: 14px; background: #6b1313; padding: 8px; border-radius: 6px; }
.production-prompter-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.production-prompter-settings label { display: grid; gap: 0; min-width: 0; color: var(--recorder-ink); font: 600 13px/1.4 system-ui, sans-serif; }
.production-prompter-settings label > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
.production-prompter-settings output { font-variant-numeric: tabular-nums; }
.production-prompter-settings input[type='range'] { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; accent-color: #fff; cursor: pointer; }
.production-camera-buttons { display: flex; justify-content: center; gap: 12px; }
.production-camera-buttons .production-record-button { flex: 1; max-width: 300px; min-height: 56px; background: #fff; color: #161616; }
.production-record-button svg { flex-shrink: 0; color: #c21c16; }
.production-camera-buttons .production-record-button.recording { border: 2px solid var(--recorder-red); }
.production-source-divider { display: flex; gap: 10px; align-items: center; color: var(--muted); font: 700 9px 'Space Mono', monospace; text-transform: uppercase; }
.production-source-divider::before, .production-source-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }
@media (max-width: 680px) {
  .production-source-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
  .production-recorder-actions { flex-direction: column; }
  .production-recorder-actions button { justify-content: center; width: 100%; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .production-camera-stage { grid-template-columns: minmax(0, 1fr) 280px; gap: 8px 16px; }
  .production-camera-topbar { grid-column: 1 / -1; }
  .production-camera-dialog .production-teleprompter { grid-column: 1; grid-row: 2 / 4; }
  .production-camera-controls { grid-column: 2; grid-row: 2 / 4; align-self: end; }
  .production-prompter-settings { grid-template-columns: 1fr; gap: 0; }
  .production-camera-buttons { gap: 8px; flex-wrap: wrap; }
  .production-camera-buttons .production-record-button { order: 2; flex-basis: 100%; }
}
