@font-face {
  font-family: Space;
  src: url("/assets/space-400.ttf");
}
@font-face {
  font-family: Space;
  src: url("/assets/space-600.ttf");
  font-weight: 600;
}
@font-face {
  font-family: Mono;
  src: url("/assets/mono-400.ttf");
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: #0d1314;
  color: #e7eded;
  font:
    14px Space,
    system-ui,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  border: 1px solid #354548;
  border-radius: 6px;
  background: #1a2628;
  color: #e7eded;
  padding: 9px 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #26383b;
  border-color: #6b8489;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button.primary {
  background: #b9e9c6;
  color: #14291a;
  border-color: #b9e9c6;
  font-weight: 600;
}
button.primary:hover {
  background: #d0f4da;
}
button.record {
  background: #dd665d;
  color: #1c0d0c;
  border-color: #dd665d;
  font-weight: 600;
}
button.stop {
  background: #6a2926;
  color: #fff;
  border-color: #dd665d;
}
button.small {
  font-size: 11px;
  padding: 5px 8px;
}
button.quiet {
  background: transparent;
  border-color: transparent;
  color: #a3b4b7;
}
button.danger {
  color: #f2a09a;
}
input,
select,
textarea {
  background: #0d1618;
  border: 1px solid #36494c;
  border-radius: 5px;
  padding: 9px 10px;
  color: #ecf2f3;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 105px;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #b9e9c6;
}
input[type="range"] {
  padding: 0;
  accent-color: #b9e9c6;
}
a {
  color: #c7eecf;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin-bottom: 0;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
p {
  color: #a2b4b7;
  line-height: 1.6;
}
small,
.muted {
  color: #8da3a7;
  font-size: 12px;
}
.mono {
  font-family: Mono, monospace;
}
.eyebrow {
  font:
    10px Mono,
    monospace;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #92a7a9;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.stack {
  display: grid;
  gap: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #3a4d50;
  border-radius: 20px;
  padding: 5px 9px;
  font:
    10px Mono,
    monospace;
  white-space: nowrap;
  color: #b7c9ca;
}
.pill:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #92bfa0;
  border-radius: 50%;
}
.pill.warning {
  color: #edcd94;
  border-color: #685633;
}
.pill.warning:before {
  background: #e5b961;
}
.pill.live {
  color: #f2a09a;
  border-color: #894943;
}
.pill.live:before {
  background: #f0756c;
}
.topbar {
  height: 70px;
  border-bottom: 1px solid #2c3a3c;
  background: #111b1d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 19px;
}
.brand img {
  width: 142px;
  max-height: 37px;
}
.brand .divider {
  width: 1px;
  height: 26px;
  background: #3c4b4d;
}
.brand strong {
  font:
    11px Mono,
    monospace;
  letter-spacing: 2px;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}
.sidebar {
  padding: 26px 18px;
  border-right: 1px solid #293739;
  background: #10191b;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar .section-label {
  padding: 0 9px;
}
.sidebar .new-show {
  width: 100%;
  text-align: left;
  background: transparent;
  border-style: dashed;
  color: #c8d8d9;
}
.show-list {
  display: grid;
  gap: 6px;
}
.show-item {
  background: transparent;
  border-color: transparent;
  text-align: left;
  display: grid;
  gap: 6px;
  line-height: 1.5;
  padding: 11px;
}
.show-item.active {
  background: #20302e;
  border-color: #3a534a;
  color: #d4f4dc;
}
.show-item small {
  font:
    9px Mono,
    monospace;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #2a393b;
  padding: 18px 9px 0;
  font-size: 11px;
  color: #8da3a7;
  line-height: 1.8;
}
.main {
  min-width: 0;
  padding: 29px 30px 34px;
  max-width: 1700px;
  width: 100%;
  margin: auto;
}
.show-heading {
  margin-bottom: 25px;
}
.show-heading .eyebrow {
  margin-bottom: 9px;
}
.show-heading p {
  margin-bottom: 0;
  font-size: 12px;
}
.toolbar {
  background: #162224;
  border: 1px solid #35484a;
  padding: 15px 18px;
  border-radius: 8px;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}
.clock {
  font:
    25px Mono,
    monospace;
  letter-spacing: 1px;
  min-width: 145px;
}
.transport-label {
  font:
    9px Mono,
    monospace;
  color: #8ca5a8;
  display: block;
  margin-top: 4px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aebfc1;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #2c3c3e;
  margin-bottom: 20px;
}
.tabs button {
  padding: 0 2px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8fa6aa;
  font-size: 12px;
}
.tabs button.active {
  color: #d3f1dc;
  border-bottom: 2px solid #b9e9c6;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(400px, 1.3fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: #141f21;
  border: 1px solid #2f4144;
  border-radius: 8px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid #2b3d3f;
}
.panel-head .eyebrow {
  font-size: 9px;
}
.panel-body {
  padding: 18px 20px;
}
.rundown-list {
  min-height: 210px;
}
.rundown-empty {
  padding: 45px 30px;
  text-align: center;
}
.rundown-empty .empty-symbol {
  font: 42px Mono;
  color: #587778;
  margin-bottom: 15px;
}
.rundown-empty p {
  font-size: 12px;
  max-width: 270px;
  margin: 12px auto;
}
.cue {
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr) 58px 30px;
  gap: 10px;
  padding: 15px 17px;
  align-items: center;
  border-bottom: 1px solid #27393c;
  cursor: pointer;
}
.cue:hover {
  background: #1b2b2d;
}
.cue.selected {
  background: #20352e;
  box-shadow: inset 3px 0 #b9e9c6;
}
.cue.playing {
  background: #3a3020;
  box-shadow: inset 3px 0 #ecc17a;
}
.cue-index {
  font: 11px Mono;
  color: #7f979a;
}
.cue-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: #263a3b;
  color: #c4e3d4;
  font: 13px Mono;
}
.cue-title {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.cue-note {
  font-size: 10px;
  color: #8fa6a7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cue-time {
  font: 11px Mono;
  color: #a4b7b9;
  text-align: right;
}
.rundown-footer {
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8da3a7;
  font: 10px Mono;
}
.editor {
  border-top: 1px solid #3c514c;
  background: #182825;
  padding: 19px;
}
.editor label {
  display: grid;
  gap: 7px;
  color: #9db2ad;
  font-size: 11px;
}
.editor .label-row {
  margin-bottom: 15px;
}
.wave {
  width: 100%;
  height: 104px;
  border: 1px solid #344944;
  border-radius: 4px;
  margin: 12px 0;
}
.trim-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 13px;
}
.editor-actions {
  margin-top: 15px;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.participant {
  position: relative;
  min-width: 0;
  border: 1px solid #34484b;
  border-radius: 6px;
  overflow: hidden;
  background: #0e181a;
}
.participant video {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #091113;
}
.participant .camera-placeholder {
  position: absolute;
  top: 18%;
  left: 0;
  right: 0;
  text-align: center;
  font: 32px Space;
  color: #52726e;
  pointer-events: none;
}
.participant.has-video .camera-placeholder {
  display: none;
}
.participant-info {
  padding: 9px 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.participant-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.participant-info small {
  font: 8px Mono;
}
.greenroom {
  margin-top: 16px;
  border-top: 1px solid #2f4144;
  padding-top: 16px;
}
.waiting {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.waiting small {
  display: block;
  margin-top: 4px;
}
.device-controls {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.device-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.device-fields label {
  font-size: 10px;
  color: #8da3a7;
  display: grid;
  gap: 6px;
}
.device-fields select {
  font-size: 11px;
}
.connection-note {
  font: 10px Mono;
  color: #aac9b5;
  line-height: 1.7;
}
.mixer {
  margin-top: 20px;
}
.mixer-channels {
  display: flex;
  gap: 0;
  min-height: 190px;
  overflow: auto;
}
.channel {
  padding: 16px;
  width: 132px;
  flex-shrink: 0;
  border-right: 1px solid #293e40;
}
.channel:last-child {
  margin-left: auto;
  background: #1b2b2a;
  border-right: 0;
  border-left: 1px solid #334945;
}
.channel-title {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}
.channel .level {
  height: 7px;
  width: 100%;
  background: #071210;
  border: 1px solid #344b44;
  overflow: hidden;
  margin: 13px 0 8px;
}
.channel .level i {
  height: 100%;
  width: 0;
  display: block;
  background: linear-gradient(to right, #a0d6ab 65%, #f2cb72 90%, #f07669);
}
.channel input {
  margin: 12px 0;
}
.channel-value {
  font: 10px Mono;
  color: #b6cbc3;
}
.channel button {
  margin-top: 12px;
}
.meter-readout {
  font: 9px Mono;
  color: #96bba3;
}
.notice {
  background: #28271e;
  border: 1px solid #625735;
  color: #dfcfaa;
  padding: 11px 15px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.notice p {
  color: inherit;
  margin: 0;
}
.empty-home {
  min-height: 65vh;
  display: grid;
  place-content: center;
  max-width: 650px;
  margin: auto;
  padding: 50px 30px;
}
.empty-home h1 {
  font-size: 48px;
  line-height: 1.08;
  margin: 21px 0;
}
.empty-home p {
  max-width: 520px;
  font-size: 15px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.feature-grid div {
  border-top: 1px solid #445a55;
  padding-top: 15px;
}
.feature-grid strong {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
.feature-grid small {
  line-height: 1.7;
}
.feature-number {
  font: 10px Mono;
  color: #9cbbab;
  margin-bottom: 12px;
}
.table-list {
  display: grid;
}
.list-row {
  padding: 16px 20px;
  border-bottom: 1px solid #2c3e40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.list-row p {
  font-size: 12px;
  margin: 6px 0 0;
}
.list-row strong {
  font-size: 13px;
}
.output-tip {
  background: #0f1b1c;
  border-left: 2px solid #b1d3bd;
  padding: 15px 18px;
  font-size: 12px;
  line-height: 1.8;
  color: #aabdb9;
}
.guest-shell {
  max-width: 1050px;
  margin: 45px auto;
  padding: 0 24px;
}
.guest-intro {
  max-width: 560px;
  margin: 70px auto;
}
.guest-intro h1 {
  font-size: 42px;
}
.guest-intro .panel {
  margin-top: 28px;
}
.guest-intro label {
  display: grid;
  gap: 9px;
  margin-bottom: 20px;
}
.guest-intro .checkline {
  display: flex;
}
.guest-studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.guest-status {
  margin: 20px 0;
}
.boot {
  padding: 80px;
  font: 28px Mono;
}
.boot span {
  display: block;
  font: 14px Space;
  color: #8fa6aa;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(650px, 90vw);
  padding: 13px 20px;
  border-radius: 7px;
  border: 1px solid #799989;
  background: #d0ead8;
  color: #15231b;
  z-index: 100;
  box-shadow: 0 10px 40px #0008;
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: #efd5c4;
  border-color: #bc8477;
  color: #432419;
}
dialog {
  width: min(550px, calc(100% - 35px));
  border: 1px solid #526d64;
  border-radius: 10px;
  padding: 28px;
  background: #182725;
  color: #e6efeb;
  box-shadow: 0 20px 100px #000b;
}
dialog::backdrop {
  background: #030b0dcc;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 23px;
  margin-bottom: 15px;
}
dialog p {
  font-size: 12px;
}
dialog label {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  color: #a3bab0;
  font-size: 12px;
}
dialog .actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.link-box {
  font: 11px Mono;
  word-break: break-all;
  line-height: 1.6;
  background: #0c1714;
  padding: 15px;
  border: 1px solid #3c584b;
  border-radius: 5px;
}
.output-mode {
  background: #000;
  overflow: hidden;
}
.output-mode .output-video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}
.output-mode #output-status {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: #000c;
  padding: 12px;
  max-width: 500px;
}
.hidden {
  display: none !important;
}
.local-caption {
  color: #d9bd81;
  font: 10px Mono;
}
.local-backups {
  padding: 15px 20px;
  border-top: 1px solid #304641;
}
.preview-label {
  font: 9px Mono;
  color: #d7bc85;
}
.footnote {
  font-size: 11px;
  line-height: 1.7;
  color: #7f989a;
  margin: 16px 0 0;
}
.loading {
  opacity: 0.65;
  pointer-events: none;
}
@media (min-width: 1550px) {
  .studio-grid {
    grid-template-columns: minmax(500px, 1.3fr) minmax(400px, 1fr);
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 180px 1fr;
  }
  .main {
    padding: 25px 20px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .stage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .toolbar {
    gap: 12px;
  }
  .clock {
    font-size: 20px;
    min-width: 125px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 67px;
    padding: 15px;
    flex-wrap: wrap;
  }
  .brand img {
    width: 114px;
  }
  .brand {
    gap: 12px;
  }
  .brand strong {
    font-size: 9px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #293739;
    padding: 15px;
    gap: 13px;
  }
  .sidebar .show-list {
    display: flex;
    overflow: auto;
  }
  .show-item {
    min-width: 160px;
  }
  .sidebar-foot,
  .section-label {
    display: none;
  }
  .sidebar .new-show {
    width: auto;
  }
  .main {
    padding: 22px 14px;
  }
  .show-heading h1 {
    font-size: 26px;
  }
  .stage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolbar {
    padding: 13px;
  }
  .toolbar .grow {
    display: none;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cue {
    padding: 13px 10px;
    grid-template-columns: 20px 28px minmax(0, 1fr) 45px 26px;
    gap: 7px;
  }
  .panel-head,
  .panel-body {
    padding: 15px;
  }
  .guest-studio {
    grid-template-columns: 1fr;
  }
  .guest-intro {
    margin: 35px auto;
  }
  .empty-home {
    min-height: 50vh;
    padding: 30px 5px;
  }
  .empty-home h1 {
    font-size: 38px;
  }
  .feature-grid {
    gap: 12px;
  }
  .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .editor {
    padding: 14px;
  }
  .trim-fields {
    gap: 6px;
  }
  .tabs {
    gap: 18px;
  }
  .topbar > .row {
    margin-left: auto;
  }
  .guest-shell {
    margin-top: 25px;
  }
  .channel {
    width: 122px;
  }
  .show-heading .between {
    align-items: flex-start;
  }
}
