:root {
  color-scheme: dark;
  font:
    14px/1.5 system-ui,
    sans-serif;
  color: #e9ebed;
  background: #141617;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
select,
input[type="number"] {
  color: inherit;
  background: #222627;
  border: 1px solid #414748;
  border-radius: 5px;
  min-height: 38px;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #303637;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #79d7ba;
  outline-offset: 3px;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.icon {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 7px;
}
.primary {
  background: #b6ead9;
  color: #102d23;
  border-color: #b6ead9;
  font-weight: 650;
}
.primary:hover {
  background: #d1f3e7;
}
header {
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid #34393a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 750;
  font-size: 20px;
}
.brand span {
  font-weight: 450;
  font-size: 11px;
  color: #a2abad;
  margin-left: 16px;
}
.status {
  font-size: 12px;
  color: #a2abad;
}
.status.live {
  color: #89dfba;
}
main {
  max-width: 1440px;
  padding: 26px 32px 40px;
  margin: auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}
h1 {
  font-size: 25px;
  font-weight: 600;
  margin: 0;
}
h2 {
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 14px;
}
h2 span {
  color: #94a1a5;
  font-size: 11px;
  font-weight: 400;
  margin-left: 8px;
}
.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid #414748;
  border-radius: 6px;
  margin: 0;
  gap: 3px;
}
.segmented label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  cursor: pointer;
  border-radius: 3px;
  min-width: 94px;
  justify-content: center;
}
.segmented label:has(:checked) {
  background: #34463f;
  color: #b6ead9;
}
.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.segmented label:has(:focus-visible) {
  outline: 2px solid #79d7ba;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.section-heading h2 {
  margin: 0;
}
.display-actions {
  display: flex;
  gap: 6px;
}
#preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: #050607;
  position: relative;
  overflow: hidden;
}
#preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#preview:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
}
.empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #717e80;
}
.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #a5b2b3;
  padding: 12px 0;
  border-bottom: 1px solid #34393a;
}
.program section {
  padding-top: 24px;
}
aside {
  border-left: 1px solid #34393a;
  padding-left: 28px;
}
aside section {
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid #34393a;
}
aside section:last-child {
  border: 0;
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #a5b2b3;
  font-size: 12px;
}
.field select {
  width: 100%;
  padding: 7px 10px;
  color: #e9ebed;
  font-size: 14px;
}
.meter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
meter {
  width: 100%;
  height: 16px;
}
output {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #b6ead9;
  font-size: 12px;
}
.capture-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#clock-status {
  color: #a5b2b3;
  font-size: 11px;
  margin-left: auto;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.toggle span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.toggle small {
  color: #94a1a5;
  font-size: 11px;
}
input[type="checkbox"] {
  accent-color: #8adebf;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.destination-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b8a477;
  font-size: 12px;
  gap: 8px;
}
.number-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  font-size: 12px;
  color: #b6bfc0;
}
.number-field span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}
.number-field input {
  width: 73px;
  padding: 6px 8px;
  font-variant-numeric: tabular-nums;
}
.range-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 15px;
  font-size: 12px;
}
.range-field input {
  grid-column: 1/-1;
  width: 100%;
  accent-color: #8adebf;
}
.operator button {
  width: 100%;
}
#error {
  border-left: 3px solid #e89181;
  background: #322522;
  color: #f8baaf;
  padding: 12px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
#error[hidden] {
  display: none;
}
#action-status {
  font-size: 12px;
  color: #b6ead9;
  display: block;
  min-height: 20px;
  margin-top: 8px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  header {
    padding: 0 20px;
  }
  main {
    padding: 20px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  aside {
    border-left: 0;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .program {
    min-width: 0;
  }
}
@media (max-width: 520px) {
  header {
    padding: 0 16px;
  }
  .brand span {
    margin-left: 8px;
    font-size: 10px;
  }
  main {
    padding: 18px 16px;
  }
  .topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  h1 {
    font-size: 23px;
  }
  .segmented {
    width: 100%;
  }
  .segmented label {
    flex: 1;
  }
  aside {
    grid-template-columns: 1fr;
  }
  #clock-status {
    margin-left: 0;
  }
  .signal-row {
    font-size: 11px;
  }
  .capture-actions button {
    flex: 1;
  }
  .number-field input {
    font-size: 16px;
  }
}
:root .program {
  display: flex;
  flex-direction: column;
  align-self: start;
}
.program #capture-controls {
  order: -1;
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #34393a;
}
.remote-control .program {
  display: none;
}
.remote-control .workspace {
  display: block;
  max-width: 620px;
  margin: auto;
}
.remote-control aside {
  padding: 0;
  border: 0;
  display: block;
}
