:root {
  font-family: system-ui, sans-serif;
  color: #eff5ff;
  background: #0b111c;
  accent-color: #79c7ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(54rem, 100%); margin: auto; padding: 1.4rem; }
header, .destination-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
header { padding-block: .5rem 1.25rem; border-bottom: 1px solid #344154; margin-bottom: 1rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.25rem, 5vw, 2rem); }
h2 { font-size: 1.15rem; margin-bottom: .8rem; }
h3 { font-size: 1rem; margin-right: auto; }
#header-role, #status, #feedback { color: #afc0d7; margin-block: .55rem; }
.panel { margin: 1rem 0; border: 1px solid #344154; border-radius: 1rem; padding: clamp(1rem, 4vw, 1.5rem); background: #131d2c; }
.narrow { max-width: 32rem; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; font-size: .9rem; }
select, input, button { font: inherit; color: inherit; min-height: 2.75rem; border: 1px solid #536880; border-radius: .55rem; background: #19283b; padding: .5rem .8rem; }
input, select { width: 100%; }
select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23afc0d7' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, .camera:focus-within { outline: 2px solid #79c7ff; outline-offset: 2px; }
.primary { background: #79c7ff; border-color: #79c7ff; color: #081a30; font-weight: 750; }
.quiet { background: transparent; }
.actions, #destinations { display: grid; gap: .5rem; margin-top: .75rem; }
.actions { grid-template-columns: repeat(3, 1fr); }
#destinations { grid-template-columns: repeat(4, 1fr); }
.camera { display: grid; grid-template-columns: auto 1fr; gap: .2rem .35rem; border: 1px solid #536880; border-radius: .55rem; padding: .45rem; align-items: center; font-weight: 700; }
.camera:has(:checked) { background: #203c59; border-color: #79c7ff; }
.camera input { min-height: 0; margin: 0; }
.camera span:last-child { grid-column: 2; }
[data-state="PGM"] { color: #ff8998; }
[data-state="PVW"] { color: #71e0ab; }
[data-state="OFF"] { color: #b0bdcf; }
.signal { margin-top: 1rem; padding: 1.1rem .4rem; border-radius: .8rem; background: #0d1726; text-align: center; font-size: clamp(2rem, 11vw, 4rem); font-weight: 850; font-variant-numeric: tabular-nums; }
#tally-display[data-state="PGM"] { background: #4b202e; }
#tally-display[data-state="PVW"] { background: #133e35; }
#cue-display[data-active="true"] { color: #ffd46e; }
@media (max-width: 25rem) {
  main { padding: .8rem; }
  .camera { padding: .35rem; font-size: .8rem; }
  .quiet { padding-inline: .45rem; }
}
button[data-tally][aria-pressed="true"] { border-color: #79c7ff; box-shadow: inset 0 0 0 1px #79c7ff; }
