/* SHED style guide V1; white page and no emoji, per Bob. */
:root {
  --page: #fff;
  --sheet: #fff;
  --chrome: #f8f9fa;
  --row: #eef2f7;
  --hair: #d9dee7;
  --ctl-border: #333333;
  --text: #333333;
  --muted: #6b7280;
  --accent: #4f80ff;
  --on-accent: #fff;
  --yellow: #ffd13b;
  --orange: #f37021;
  --rec: #e63c48;
  --c-video: #4f80ff;
  --c-audio: #1b9aaa;
  --c-recordings: #7b52d9;
  --radius: 6px;
  --ctl: 36px;
  --font-ui: "proxima-nova", "Proxima Nova", "Avenir Next", "Segoe UI", sans-serif;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
body { font-size: 15px; font-weight: 600; background: var(--page); }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button, kbd { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
button {
  min-height: var(--ctl); padding: 6px 13px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; border: 2px solid var(--ctl-border);
  border-radius: var(--radius); background: var(--sheet); color: var(--text);
  font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}
button:hover:not(:disabled) { background: var(--row); border-color: var(--text); }
button:active:not(:disabled) { border-color: var(--text); }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
button.primary { min-height: 44px; border-radius: 999px; background: var(--accent); border-color: var(--text); color: white; font-size: 19px; font-weight: 800; }
button.primary:hover:not(:disabled) { background: #3c6de8; border-color: var(--text); }
button.small { min-height: 32px; padding: 4px 9px; font-size: 12px; }
button.danger { color: var(--text); }
button.danger:hover:not(:disabled) { border-color: var(--rec); background: #fff0f1; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }

/* A white workspace with a persistent broadcast identity. */
.masthead {
  height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 16px;
  border-top: 4px solid var(--text); border-bottom: 1px solid var(--hair);
  background: var(--sheet); position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 29px; height: 29px; display: block; }
.brand span { padding-left: 14px; border-left: 1px solid var(--ctl-border); font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.brand-caption { margin-left: auto; font-size: 11px; color: var(--muted); }
.status { margin-left: 12px; padding: 5px 9px; border: 1px solid var(--hair); border-radius: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.status::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9298a2; margin-right: 7px; vertical-align: 1px; }
.status.is-connected::before { background: var(--c-audio); }
main { max-width: 1440px; padding: 0 28px; margin: 0 auto; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 1.32px; text-transform: uppercase; }
.notice { margin-top: 16px; padding: 10px 12px; border: 1px solid #d8bd84; border-radius: var(--radius); background: #fffaf0; line-height: 1.5; }
.notice.error { border-color: #e0b7b4; background: #fff6f5; }

/* Setup has two roles. The graphic panels carry the visual weight. */
#welcome { max-width: 1000px; margin: 0 auto; padding: 58px 0 18px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.intro h1 { margin: 10px 0 12px; font-size: clamp(28px, 5vw, 44px); line-height: 1.05; font-weight: 900; letter-spacing: -.03em; }
.title-period { color: var(--accent); }
.intro p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.studio-mark { display: flex; align-items: center; gap: 7px; width: 156px; height: 94px; flex: none; padding: 12px; border-bottom: 2px solid var(--text); }
.studio-mark i { display: block; width: 12px; height: 32px; background: var(--yellow); border: 2px solid var(--text); border-radius: 3px; }
.studio-mark i:nth-child(2), .studio-mark i:nth-child(6) { height: 52px; }
.studio-mark i:nth-child(3), .studio-mark i:nth-child(5) { height: 70px; background: var(--accent); }
.studio-mark i:nth-child(4) { height: 44px; background: var(--accent); }
.entry-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.entry-card { border: 2px solid var(--text); border-radius: 8px; overflow: hidden; background: var(--sheet); box-shadow: none; }
.card-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 114px; padding: 24px; background: var(--yellow); }
.card-band h2 { font-size: 22px; font-weight: 800; letter-spacing: -.8px; line-height: 1.15; margin-top: 6px; }
.role-label { display: inline-flex; padding: 1px 7px; border: 1.5px solid var(--text); border-radius: 999px; color: var(--text); background: white; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.2px; }
.camera-card .card-band { background: var(--accent); color: white; }
.director-card .role-label { background: var(--yellow); }
.switcher-art { display: flex; gap: 5px; flex: none; transform: rotate(-7deg); }
.switcher-art i { width: 27px; height: 38px; border: 2px solid var(--text); border-radius: 3px; background: white; }
.switcher-art i:nth-child(2) { margin-top: -8px; border: 2px solid var(--text); background: var(--accent); position: relative; }
.switcher-art i:nth-child(2)::after { content: ''; position: absolute; width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; bottom: 5px; left: 8px; }
.camera-art { width: 65px; height: 47px; position: relative; flex: none; border: 2px solid var(--text); border-radius: 6px; background: white; transform: rotate(-7deg); }
.camera-art::before, .camera-art::after { content: ''; position: absolute; width: 11px; height: 11px; border: 2px solid var(--text); }
.camera-art::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.camera-art::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.camera-art i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--text); top: 18px; left: 28px; }
.card-content { padding: 24px; }
.card-content p { margin-bottom: 22px; color: var(--text); font-size: 15px; line-height: 1.6; }
label { display: block; margin-bottom: 7px; color: var(--text); font-size: 12px; font-weight: 700; }
input:not([type=checkbox]):not([type=range]), select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--ctl-border); border-radius: var(--radius); color: var(--text); background: var(--sheet); font-size: 15px; font-weight: 600; }
input::placeholder { color: #7d8490; font-weight: 400; }
select { cursor: pointer; }
.card-content > button { border-radius: 999px; width: 100%; min-height: 46px; margin-top: 20px; font-size: 19px; font-weight: 800; }
.card-content > button::after { content: ''; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: auto; margin-right: 3px; }
.card-content > button { justify-content: space-between; padding-left: 14px; }
.form-pair { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.code-input { text-transform: uppercase; letter-spacing: 1.5px; font-variant-numeric: tabular-nums; }
.setup-note { margin-top: 18px; padding: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.setup-note strong { color: var(--text); font-weight: 500; }
.setup-note span { margin-left: 8px; }

/* Program and source monitors use a dark frame, with quiet utility controls. */
.session-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 110px; padding: 22px 0; }
.session-heading h1 { margin-top: 5px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; overflow-wrap: anywhere; }
.room-badge { display: flex; align-items: center; gap: 14px; padding: 9px 10px 9px 16px; border: 2px solid var(--ctl-border); border-radius: 6px; background: var(--sheet); }
.room-badge > span { color: var(--muted); font-size: 11px; }
.room-badge strong { font: 600 18px ui-monospace, SFMono-Regular, monospace; letter-spacing: 2px; }
.desk-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 264px; grid-template-areas: 'sources program controls'; gap: 18px; align-items: start; }
.sources-panel { grid-area: sources; min-width: 0; }
.program-panel { grid-area: program; min-width: 0; }
.control-column { grid-area: controls; min-width: 0; display: grid; gap: 16px; }
.panel { border: 2px solid var(--ctl-border); border-radius: 8px; overflow: hidden; background: var(--sheet); }
.panel-heading { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 14px; border-bottom: 1px solid var(--hair); background: var(--chrome); }
.panel-heading h2 { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.panel-heading .muted { margin-left: auto; color: var(--muted); font-size: 11px; }
.program-panel { border-color: var(--text); background: var(--text); box-shadow: none; }
.program-panel .panel-heading { border-color: #ffffff22; background: var(--text); color: white; }
.program-panel .panel-heading h2 { text-transform: uppercase; font-size: 10px; letter-spacing: 1.5px; }
.program-panel .panel-heading h2::before { content: ''; width: 5px; height: 5px; background: var(--yellow); border-radius: 50%; }
.program-panel .panel-heading .muted { color: #a9b1bf; }
#record-clock { margin-left: auto; font: 12px ui-monospace, SFMono-Regular, monospace; font-variant-numeric: tabular-nums; color: #d9dfe7; }
#record-clock.is-recording { color: #ff9890; }
#program { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--text); }
.shot-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 58px; padding: 11px 14px; border-top: 1px solid #ffffff22; }
.shot-controls .check { color: white; }
.shot-controls .check input { accent-color: var(--yellow); }
.button-group { display: inline-flex; border: 1px solid #ffffff35; border-radius: 4px; overflow: hidden; }
.button-group button { border: 0; border-right: 1px solid #ffffff35; border-radius: 0; min-height: 30px; padding: 5px 10px; color: white; background: transparent; }
.button-group button:last-child { border-right: 0; }
.button-group button:hover:not(:disabled) { background: #ffffff15; }
.button-group [aria-pressed=true], .button-group [aria-pressed=true]:hover:not(:disabled) { background: var(--yellow); color: var(--text); font-weight: 800; }
kbd { font: 10px var(--font-ui); padding: 0 4px; min-width: 16px; line-height: 17px; border: 1px solid currentColor; border-radius: 3px; text-align: center; opacity: .7; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; font-weight: 400; line-height: 1.5; margin: 0; }
.check input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--accent); }
.panel-body { padding: 16px; }
.panel-body select { margin-bottom: 16px; }
#local-mic-controls { padding-bottom: 16px; }
.meter-label { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 7px; font-size: 11px; color: var(--muted); }
.panel-body label output { float: right; color: var(--text); font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 10px; display: block; margin-bottom: 20px; }
meter::-webkit-meter-bar { background: var(--hair); border: 0; border-radius: 2px; }
meter::-webkit-meter-optimum-value { background: var(--c-audio); }
meter::-webkit-meter-suboptimum-value { background: #b5712e; }
meter::-webkit-meter-even-less-good-value { background: var(--rec); }
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; width: 100%; height: 24px; margin: 0 0 6px; padding: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--ctl-border); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; border: 1.5px solid var(--text); background: var(--sheet); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--ctl-border); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 1.5px solid var(--text); border-radius: 50%; background: var(--sheet); }
.hint { font-size: 12px; line-height: 1.5; color: var(--muted); }
.panel-body > .hint { margin: 0 0 16px; }
.panel-body .check { margin-bottom: 16px; }
.panel-body .record-button { width: 100%; min-height: 44px; margin-top: 2px; color: var(--text); background: var(--yellow); border-color: var(--text); font-size: 14px; font-weight: 700; }
.record-button::before { content: ''; width: 10px; height: 10px; border: 1.5px solid var(--text); border-radius: 50%; background: var(--orange); flex: none; }
.panel-body .record-button:hover:not(:disabled) { background: #ffe16c; border-color: var(--text); }
.panel-body .record-button.is-recording { color: var(--text); background: white; }
.panel-body .record-button.is-recording:hover:not(:disabled) { background: #fff0f1; }
.record-button.is-recording::before { border-radius: 1px; background: var(--rec); }
.save-status { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 10px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 14px; }
.section-row h2 { font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.section-row p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.sources-panel > .section-row { margin: 0 0 12px; min-height: 43px; }
.sources-panel .section-row h2 { font-size: 13px; letter-spacing: 0; }
.sources-panel .section-row p { font-size: 11px; }
.count { display: inline-block; padding: 2px 6px; margin-left: 7px; color: var(--muted); font-size: 11px; font-weight: 400; background: var(--chrome); border-radius: 3px; vertical-align: 1px; }
.camera-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.camera-tile { border: 2px solid var(--ctl-border); border-radius: 8px; background: var(--sheet); }
.camera-tile.on-air { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.camera-picture { position: relative; aspect-ratio: 16 / 9; background: var(--text); overflow: hidden; border-radius: 6px 6px 0 0; }
.camera-picture video { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-picture .feed-status { position: absolute; inset: 0; display: grid; place-content: center; color: #ccd0d8; font-size: 12px; pointer-events: none; }
.camera-picture video.has-picture + .feed-status { display: none; }
.camera-picture button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent !important; }
.camera-picture .live-badge { position: absolute; left: 9px; top: 9px; padding: 3px 7px; border-radius: 2px; color: var(--text); background: var(--yellow); border: 1.5px solid var(--text); font-size: 10px; font-weight: 900; letter-spacing: .7px; pointer-events: none; }
.camera-picture .source-key { position: absolute; right: 8px; bottom: 8px; margin: 0; background: #333333e6; color: white; border-color: #ffffff55; opacity: 1; pointer-events: none; }
.camera-info { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 8px 10px; border-top: 1px solid var(--hair); }
.camera-info strong { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.camera-info .connection-label { width: 100%; color: var(--muted); font-size: 11px; }
.source-menu { position: relative; flex: none; }
.source-menu summary { list-style: none; width: 28px; height: 24px; display: grid; place-content: center; border: 1px solid transparent; border-radius: 4px; color: var(--muted); cursor: pointer; }
.source-menu summary::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: -5px 0 currentColor, 5px 0 currentColor; }
.source-menu summary::-webkit-details-marker { display: none; }
.source-menu summary:hover, .source-menu[open] summary { border-color: var(--ctl-border); background: var(--chrome); }
.source-menu > div { position: absolute; z-index: 30; right: 0; top: calc(100% + 4px); min-width: 146px; padding: 4px; background: var(--sheet); border: 1px solid var(--ctl-border); border-radius: var(--radius); box-shadow: 0 6px 18px #23262b14; }
.source-menu button { width: 100%; border-color: transparent; justify-content: flex-start; }
.empty-cameras { position: relative; padding: 64px 16px 22px; border: 1px dashed var(--ctl-border); border-radius: 6px; text-align: left; }
.empty-cameras::before, .empty-cameras::after { content: ''; position: absolute; top: 22px; width: 31px; height: 22px; border: 1px solid var(--ctl-border); border-radius: 3px; }
.empty-cameras::before { left: 16px; }
.empty-cameras::after { left: 28px; top: 28px; background: white; border-color: var(--accent); }
.empty-cameras strong { font-size: 13px; font-weight: 500; }
.empty-cameras p { margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.waiting .panel-heading { background: var(--yellow); border-color: var(--text); }
.waiting-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--hair); }
.waiting-row:last-child { border-bottom: 0; }
.waiting-row strong { width: 100%; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.waiting-row button { flex: 1; }
.session-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 28px; }

/* Camera station. */
.tally { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px; background: var(--chrome); border: 1px solid var(--ctl-border); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.tally::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tally.live { background: var(--yellow); border-color: var(--text); color: var(--text); }
.camera-station { display: grid; grid-template-columns: minmax(0, 1fr) 288px; border-color: var(--text); }
.station-preview { position: relative; aspect-ratio: 16 / 9; background: var(--text); }
.station-preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.station-preview video.is-mirrored { transform: scaleX(-1); }
#camera-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #ccd0d8; }
#camera-placeholder svg { width: 34px; height: 34px; margin: 0 auto 10px; }
#camera-placeholder p { font-size: 13px; }
.station-controls { padding: 22px; border-left: 1px solid var(--hair); }
.station-controls h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.3px; }
.station-controls > p { margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.station-controls select { margin-bottom: 18px; }
.station-controls > button { width: 100%; margin-top: 10px; }
.station-controls .check + .hint { margin-top: 6px; margin-bottom: 12px; }
.test-tools { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hair); }
.test-tools summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.test-tools p { margin: 10px 0; }
.test-tools button { width: 100%; }

/* A plain library keeps saved work easy to scan. */
.recordings-section { margin: 28px 0 0; border-top: 2px solid var(--text); }
.recordings-section > .section-row { min-height: 56px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.recordings-section .section-row h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
#recordings-empty { padding: 22px 0; }
.recording-row { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.recording-meta { min-width: 0; margin-right: auto; }
.recording-meta strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.recording-meta p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 16px 0 24px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 11px; }
.page-footer strong { color: var(--text); font-weight: 600; }
dialog { width: min(940px, 94vw); max-height: 92vh; padding: 16px; border: 2px solid var(--ctl-border); border-radius: 8px; background: var(--sheet); color: var(--text); }
dialog::backdrop { background: #33333399; }
dialog .section-row { margin: 0 0 14px; }
dialog video { width: 100%; max-height: 70vh; background: var(--text); }
[hidden] { display: none !important; }
body:has(#welcome:not([hidden])) .recordings-section,
body:has(#welcome:not([hidden])) .page-footer { max-width: 1000px; margin-left: auto; margin-right: auto; }
body:has(#welcome:not([hidden])) .status { display: none; }

@media (max-width: 1100px) {
  .desk-grid { grid-template-columns: minmax(0, 1fr) 264px; grid-template-areas: 'program controls' 'sources sources'; }
  .camera-grid { grid-template-columns: repeat(3, minmax(0, 260px)); }
  .sources-panel > .section-row { margin-top: 4px; }
  .empty-cameras { padding: 24px 24px 24px 72px; }
}
@media (max-width: 760px) {
  main { padding: 0 18px; }
  .masthead { height: 58px; padding: 0 18px; gap: 10px; }
  .brand-caption { display: none; }
  .status { margin-left: auto; }
  #welcome { padding-top: 34px; padding-bottom: 10px; }
  .intro { margin-bottom: 28px; gap: 15px; }
  .intro h1 { letter-spacing: -.03em; }
  .intro p { font-size: 14px; max-width: 260px; }
  .studio-mark { width: 95px; gap: 5px; padding: 6px 0; transform: scale(.8); transform-origin: right center; }
  .studio-mark i { width: 9px; }
  .entry-grid, .camera-station { grid-template-columns: 1fr; }
  .entry-grid { gap: 18px; }
  .card-band { min-height: 100px; padding: 22px; }
  .card-content { padding: 22px; }
  .session-heading { flex-wrap: wrap; gap: 16px; min-height: 100px; }
  .session-heading h1 { font-size: 24px; }
  .room-badge { width: 100%; justify-content: space-between; }
  .desk-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'program' 'sources' 'controls'; }
  .camera-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-heading .muted { display: none; }
  .station-controls { border-left: 0; border-top: 1px solid var(--hair); }
  .setup-note span { display: block; margin-left: 0; margin-top: 3px; }
  .session-footer { align-items: flex-start; }
  .recording-row { flex-wrap: wrap; }
  .recording-meta { width: 100%; }
}
@media (max-width: 480px) {
  .camera-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-mark { display: none; }
  .brand img { width: 25px; height: 25px; }
  .brand span { font-size: 14px; padding-left: 10px; }
  .status { font-size: 10px; padding: 4px 6px; }
  .intro h1 { font-size: 34px; }
}
@media (max-width: 380px) {
  .form-pair { grid-template-columns: 1fr; }
  .shot-controls { align-items: flex-start; flex-direction: column; }
  .room-badge { flex-wrap: wrap; }
  .card-band h2 { font-size: 22px; }
  .intro h1 { font-size: 34px; }
}
@media (pointer: coarse) {
  button, button.small, .button-group button { min-height: 44px; }
  input:not([type=checkbox]):not([type=range]), select { min-height: 44px; }
  .source-menu summary { min-width: 44px; min-height: 44px; }
  .camera-info { row-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

.camera-input { display: flex; align-items: stretch; gap: 8px; margin-bottom: 7px; }
.camera-input select { flex: 1; width: 0; margin: 0; }
.camera-input button { flex: none; padding: 6px 10px; font-size: 12px; }
.station-controls #camera-facing { min-height: 17px; margin-bottom: 18px; font-size: 11px; }

/* SHED's yellow-dot kicker and ink-framed highlights. */
.intro .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.intro .eyebrow::before { content: ''; width: 9px; height: 9px; border: 1.5px solid var(--text); border-radius: 50%; background: var(--yellow); }
.card-band { border-bottom: 2px solid var(--text); }
.intro p { color: var(--text); }
.button-group { border-width: 2px; border-radius: 6px; }
.button-group button { min-height: 34px; padding: 5px 13px; }
.camera-input button { min-height: 44px; }
.tally { border-width: 2px; }

/* The program and recording controls stay visible while editing graphics. */
.desk-grid { grid-template-columns: 220px minmax(0, 1fr) 300px; }
.control-column { gap: 10px; }
.control-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--ctl-border); border-radius: 7px; background: var(--chrome); }
.control-tabs button { flex: 1; border-color: transparent; min-height: 32px; }
.control-tabs [aria-selected=true] { border-color: var(--text); background: var(--yellow); }
.production-panel .panel-heading { justify-content: space-between; }
.production-panel .panel-heading h2 { font-size: 14px; }
.production-panel .panel-heading button { min-height: 26px; }
.production-body { padding: 16px; max-height: max(320px, calc(100dvh - 280px)); overflow-y: auto; }
.production-body h3 { font-size: 14px; margin-bottom: 12px; }
.overlay-editor > input { margin-bottom: 12px; }
.production-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
#toggle-text { width: 100%; }
#toggle-text[aria-pressed=true] { background: var(--yellow); }
.media-imports { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair); }
.file-import { position: relative; display: flex; align-items: center; justify-content: center; min-height: 36px; margin-bottom: 12px; border: 2px solid var(--ctl-border); border-radius: 6px; cursor: pointer; font-size: 13px; }
.file-import:hover { background: var(--row); }
.file-import:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-import input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.media-url-row { display: flex; gap: 6px; }
.media-url-row input { flex: 1; width: 0; font-size: 13px; }
.media-url-row button { flex: none; }
.media-imports .hint { margin-top: 8px; font-size: 11px; }
.import-status { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 10px 0; }
.media-asset { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid var(--ctl-border); border-radius: 6px; }
.media-asset.is-live { border: 2px solid var(--text); padding: 9px; background: #fff9de; }
.asset-thumbnail { width: 56px; height: 42px; object-fit: contain; align-self: center; background: var(--chrome); border-radius: 3px; }
.asset-info { min-width: 0; }
.asset-info strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.asset-info span { color: var(--muted); font-size: 10px; }
.asset-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
.asset-actions button { flex: 1; min-height: 30px; }
.asset-actions [aria-pressed=true] { background: var(--yellow); }
.asset-placement { grid-column: 1 / -1; min-width: 0; }
.asset-placement summary { font-size: 11px; color: var(--muted); cursor: pointer; }
.asset-placement label { margin-top: 10px; }
.asset-placement input[type=range] { margin-bottom: 0; }
.clip-controls { margin: 14px 0; padding: 12px; border: 1px solid var(--text); border-radius: 6px; background: var(--chrome); }
#clip-name { display: block; font-size: 12px; overflow-wrap: anywhere; margin-bottom: 10px; }
.clip-buttons { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.clip-buttons .check { margin-left: auto; }
.clip-time { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clip-time output { font-size: 10px; font-variant-numeric: tabular-nums; }
.media-storage { margin-top: 16px; font-size: 11px; }
.record-controls { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid #ffffff22; background: var(--sheet); color: var(--text); }
.record-controls .record-button { min-height: 44px; background: var(--yellow); font-size: 13px; font-weight: 700; flex: none; }
.record-controls .record-button.is-recording { background: white; }
.record-controls .record-button.is-recording:hover { background: #fff0f1; }
.record-controls > div { min-width: 0; }
#record-format { font-size: 11px; }
.record-controls .save-status { margin-top: 3px; }
.export-panel { display: flex; align-items: center; gap: 16px; }
.export-panel p { font-size: 12px; margin-top: 4px; color: var(--muted); }
.export-panel progress { flex: 1; min-width: 80px; }
.export-source { position: fixed; left: -10000px; top: 0; width: 2px; height: 2px; }
@media (max-width: 1100px) { .desk-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 760px) {
 .desk-grid { grid-template-columns: minmax(0, 1fr); }
 .production-body { max-height: none; }
 .record-controls { flex-wrap: wrap; }
 .export-panel { flex-wrap: wrap; }
}

/* The Look tab styles the recorded program, independently of the app. */
.control-tabs button { font-size: 12px; padding-inline: 9px; }
.look-intro { margin-bottom: 14px; font-size: 12px; }
.camera-label-setting { padding: 12px; background: var(--chrome); border: 1px solid var(--ctl-border); border-radius: 6px; }
.look-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair); }
.look-section > select, .look-section > input { margin-bottom: 14px; }
.look-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.look-colors input { width: 100%; height: 38px; padding: 4px; cursor: pointer; background: white; }
.look-colors label { font-size: 11px; }
.title-card-settings summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.title-card-settings label { margin-top: 12px; }
.logo-preview-wrap { display: grid; place-items: center; padding: 12px; margin-bottom: 12px; min-height: 86px; border: 1px dashed var(--ctl-border); border-radius: 6px; background: repeating-conic-gradient(#f0f1f3 0% 25%, white 0% 50%) 50% / 16px 16px; }
#logo-preview { max-width: 100%; max-height: 86px; object-fit: contain; }
#logo-empty { background: white; padding: 6px; text-align: center; }
#logo-filename { overflow-wrap: anywhere; margin-bottom: 12px; }
#logo-settings > select, #logo-settings > input { margin-bottom: 14px; }
#logo-width-value { float: right; }
.look-storage { margin-top: 18px; font-size: 11px; }
.asset-actions { flex-wrap: wrap; }
.asset-actions .use-as-logo { flex-basis: 100%; }
