:root {
  color-scheme: dark;
  --bg: #101311;
  --panel: #191d1a;
  --line: #303730;
  --muted: #909a90;
  --text: #eef1e9;
  --green: #c4f27c;
  --yellow: #f8bd60;
  --red: #ff6e70;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 1px solid transparent;
  color: inherit;
  border-radius: 7px;
  padding: 10px 14px;
  background: transparent;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  background: #343e31;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
header {
  height: 91px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 700;
}
.brand > svg {
  width: 39px;
  height: 43px;
  color: var(--green);
}
.brand-light {
  font-weight: 350;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.2px;
  font-weight: 600;
  margin-top: 5px;
  color: var(--muted);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 23px;
}
.connection {
  font-size: 11px;
  color: var(--green);
}
.connection.offline {
  color: var(--yellow);
}
.primary {
  background: var(--green);
  color: #182110;
  font-weight: 650;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}
.primary:hover:not(:disabled) {
  background: #d5ff9b;
}
.secondary {
  background: #262d27;
  border: 1px solid #3b4439;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.quiet {
  font-size: 12px;
  color: #b1baae;
}
.pill {
  font-size: 9px;
  letter-spacing: 1.25px;
  padding: 6px 9px;
  border: 1px solid #414b3c;
  border-radius: 4px;
  color: #bdc8b5;
  white-space: nowrap;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
}
.separator {
  color: #596652;
  margin: 0 10px;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.7px;
  font-weight: 550;
  margin: 13px 0 28px;
  line-height: 1.15;
}
h1 > span {
  color: var(--green);
}
h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.3px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.desk {
  max-width: 1770px;
  margin: auto;
  padding: 35px 38px 0;
}
.desk-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.desk-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.02fr) minmax(340px, 1.42fr) minmax(
      265px,
      0.9fr
    );
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.panel-heading .quiet {
  padding: 0;
}
.preview-panel {
  padding: 18px;
}
.screen {
  position: relative;
  background: #080b08;
  border: 1px solid #3b4434;
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
}
.screen-top {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
  color: #a7b49d;
}
#screen-onair {
  color: #fb7777;
}
.screen-content {
  text-align: center;
  width: 100%;
}
.screen-title {
  font-size: 13px;
  color: #cad5c4;
  overflow-wrap: anywhere;
}
.timer-digits {
  font-size: clamp(45px, 6.1vw, 108px);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.2;
  white-space: nowrap;
}
.normal {
  color: var(--green);
}
.warning {
  color: var(--yellow);
}
.danger {
  color: var(--red);
}
.screen-speaker {
  color: #8d9985;
  font-size: 11px;
}
.screen-message {
  font-weight: 650;
  font-size: clamp(13px, 1.7vw, 24px);
  text-align: center;
  overflow-wrap: anywhere;
  max-height: 32%;
  overflow: hidden;
  width: 100%;
  margin-top: 12px;
  line-height: 1.1;
}
.screen-message:empty {
  display: none;
}
.message-full {
  position: absolute;
  inset: 0;
  max-height: none;
  background: #080b08;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
  font-size: clamp(18px, 3vw, 40px);
}
.progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #303b2c;
}
.progress-fill {
  height: 100%;
  background: currentColor;
}
.screen.blackout > * {
  visibility: hidden;
}
.screen.blackout {
  background: #000;
  border-color: #222;
}
.status-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.7px;
  color: var(--muted);
  padding: 16px 0;
}
.status-row #timer-status {
  color: var(--green);
}
.transport {
  display: flex;
  gap: 8px;
}
.transport #play {
  flex: 1;
}
.transport .secondary {
  padding: 10px 12px;
}
.adjust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  margin-bottom: 15px;
}
.adjust button {
  padding: 8px 3px;
  font-size: 11px;
}
.adjust > span {
  font-size: 8px;
  color: #7f8a78;
  letter-spacing: 1px;
}
.output-options {
  display: flex;
  gap: 8px;
}
.toggle {
  background: #232a23;
  border: 1px solid #3c4538;
  flex: 1;
  font-size: 11px;
}
.toggle.selected {
  border-color: var(--green);
  color: var(--green);
}
.show-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.show-info span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.show-info strong {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.keyboard-note {
  text-align: center;
  color: #737e6e;
  font-size: 9px;
  margin: 24px 0 0;
}
.keyboard-note span {
  margin: 0 8px;
}
.rundown-panel {
  padding: 20px 0 0;
}
.rundown-panel > .panel-heading {
  padding: 0 20px;
}
.count {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  margin-left: 6px;
}
.table-heading {
  display: flex;
  justify-content: space-between;
  margin: 0 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
#rundown {
  padding: 0 10px;
}
.cue {
  border: 1px solid transparent;
  border-radius: 7px;
  margin-bottom: 7px;
  position: relative;
  background: #202621;
}
.cue.active {
  border-color: #719246;
  background: #2c3824;
}
.cue-main {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 17px 12px;
  gap: 13px;
}
.cue-main:hover:not(:disabled) {
  background: transparent;
}
.cue-number {
  font-size: 10px;
  color: #9aa790;
  align-self: flex-start;
  padding-top: 4px;
}
.cue-text {
  flex: 1;
  min-width: 0;
}
.cue-text strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.cue-text small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.cue-tags {
  font-size: 8px;
  color: #a8bc94;
  display: block;
  margin-top: 4px;
}
.cue-tags:empty {
  display: none;
}
.cue-duration {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.cue.active .cue-duration {
  color: var(--green);
}
.cue-actions {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
  padding: 0 8px 6px;
}
.cue-actions button {
  padding: 3px 7px;
  font-size: 10px;
  color: #b3bea9;
}
.add-button {
  margin: 12px 20px 20px;
  border: 1px dashed #4d5945;
  width: calc(100% - 40px);
  color: #c6d1bb;
  font-size: 12px;
}
.rundown-end {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #141914;
  border-top: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 0 0 10px 10px;
  color: #87917f;
  font-size: 10px;
}
.rundown-end span:last-child {
  margin-left: auto;
}
.message-panel > .muted {
  margin: -7px 0 18px;
  font-size: 11px;
}
textarea,
input,
select {
  background: #101610;
  color: var(--text);
  border: 1px solid #3b4537;
  border-radius: 5px;
  padding: 11px 12px;
  width: 100%;
}
textarea {
  min-height: 120px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.6;
}
textarea::placeholder {
  color: #697562;
}
input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--green);
}
label {
  display: block;
  font-size: 11px;
  color: #b8c3af;
  line-height: 1.5;
  margin-bottom: 16px;
}
label input,
label select,
label textarea {
  margin-top: 7px;
}
input[type="checkbox"] {
  width: auto;
  margin: 0 6px 0 0;
  accent-color: var(--green);
}
input[type="color"] {
  width: 24px;
  height: 24px;
  padding: 2px;
  margin: 0;
  background: none;
  vertical-align: middle;
}
.check {
  display: flex;
  align-items: center;
  gap: 3px;
}
.message-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}
.message-options label {
  margin: 0;
  font-size: 10px;
}
.message-panel .primary,
.moderator form .primary {
  width: 100%;
  justify-content: space-between;
  font-size: 12px;
}
.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.message-actions button {
  flex: 1;
  font-size: 11px;
}
.quick-label {
  font-size: 8px;
  margin-top: 29px;
  margin-bottom: 12px;
}
.quick-cues {
  display: grid;
  gap: 8px;
}
.quick-cues button {
  display: flex;
  justify-content: space-between;
  background: #232b21;
  border: 1px solid #36412f;
  font-size: 11px;
  text-align: left;
}
.quick-cues button:first-child {
  color: var(--yellow);
}
.note {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 17px;
}
.note > span {
  color: var(--green);
  font-size: 22px;
}
.note p {
  margin: 0;
  color: #8a9881;
  font-size: 10px;
}
.note strong {
  font-weight: 500;
  color: #c1ceba;
}
.small-dot {
  display: inline-block;
  background: var(--green);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  color: #75816e;
  padding: 30px 0;
}
footer .small-dot {
  margin-left: 7px;
}
.home {
  max-width: 1250px;
  padding: 60px 38px;
  margin: auto;
}
.home h1 {
  font-size: 52px;
  margin-bottom: 15px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title p {
  color: var(--muted);
}
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.room-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.room-card:hover {
  border-color: #849d65;
}
.card-top {
  display: flex;
  justify-content: space-between;
}
.room-card > svg {
  width: 48px;
  margin: 40px 0 20px;
  color: var(--green);
}
.room-card h2 {
  font-size: 24px;
}
.room-card p {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 30px;
  color: var(--muted);
}
.login {
  padding: 9vh 7vw;
  max-width: 680px;
}
.login h1 {
  font-size: clamp(50px, 5vw, 80px);
  margin: 22px 0;
}
.login p {
  font-size: 15px;
  color: var(--muted);
}
.login form {
  margin: 35px 0 24px;
  max-width: 350px;
}
.login .primary {
  width: 100%;
  justify-content: space-between;
}
.login small {
  color: #77866e;
  font-size: 11px;
}
.login-art {
  position: absolute;
  right: 6vw;
  top: 29%;
  width: 35vw;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}
.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid #435736;
  border-radius: 50%;
  box-shadow:
    0 0 0 30px #1c271c,
    0 0 0 31px #2a3526;
}
.art-time {
  font-size: 8vw;
  color: var(--green);
  font-weight: 550;
  letter-spacing: -0.07em;
}
.login-art > span {
  font-size: 10px;
  letter-spacing: 4px;
  color: #879d74;
}
#login-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 14px;
}
dialog {
  background: #1b211b;
  color: var(--text);
  border: 1px solid #495540;
  border-radius: 12px;
  max-width: 580px;
  width: calc(100% - 28px);
  padding: 25px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-size: 24px;
}
.icon-btn {
  font-size: 25px;
  padding: 0 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 20px 0;
}
.danger-button {
  color: var(--red);
  border: 1px solid #64413f;
  margin-top: 15px;
}
.share-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
}
.share-row label {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.share-row input {
  font-size: 10px;
}
.share-row button,
.share-row a {
  margin-top: 22px;
  font-size: 11px;
  white-space: nowrap;
  padding: 10px;
}
details {
  margin-top: 25px;
  font-size: 12px;
  color: var(--muted);
}
details input {
  font-size: 11px;
}
summary {
  cursor: pointer;
}
.viewer-page {
  background: #000;
}
.viewer-page .screen {
  border: none;
  border-radius: 0;
  width: 100vw;
  height: 100dvh;
  aspect-ratio: auto;
  padding: 8vh 4vw;
}
.viewer-page .timer-digits {
  font-size: clamp(65px, 22vw, 45vh);
  line-height: 1.1;
}
.viewer-page .screen-title {
  font-size: clamp(20px, 3vw, 60px);
}
.viewer-page .screen-speaker {
  font-size: clamp(14px, 2vw, 40px);
}
.viewer-page .screen-message {
  font-size: clamp(24px, 4vw, 75px);
  margin-top: 4vh;
}
.viewer-page .message-full {
  font-size: clamp(25px, 7vw, 110px);
  margin-top: 0;
}
.viewer-page .screen-top {
  top: 4vh;
  left: 4vw;
  right: 4vw;
  font-size: 1.6vw;
}
.viewer-page .progress-track {
  height: 1.2vh;
}
.viewer-toolbar {
  position: fixed;
  bottom: 2vh;
  left: 3vw;
  right: 3vw;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #101811e8;
  border: 1px solid #38442f;
  border-radius: 8px;
  padding: 10px 15px;
  opacity: 0;
  transition: opacity 0.2s;
}
.viewer-toolbar:hover,
.viewer-toolbar:focus-within {
  opacity: 1;
}
.viewer-toolbar > a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-right: auto;
}
.viewer-toolbar svg {
  width: 20px;
}
.agenda {
  max-width: 900px;
  padding: 60px 30px;
  margin: auto;
}
.agenda-live {
  background: #22301d;
  border: 1px solid #546a3f;
  border-radius: 10px;
  padding: 30px;
}
.agenda-live h2 {
  margin-top: 18px;
}
.agenda-live .timer-digits {
  font-size: 90px;
}
.agenda-cue {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}
.agenda-cue.active {
  background: #242f20;
}
.agenda-cue > span {
  color: var(--muted);
  font-size: 12px;
}
.agenda-cue > strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.agenda-cue h3 {
  margin: 0;
  font-weight: 500;
}
.agenda-cue p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.moderator {
  max-width: 600px;
  margin: auto;
  padding: 35px 22px;
}
.moderator .panel {
  margin-top: 20px;
}
.moderator h2 {
  margin-bottom: 20px;
}
.moderator .timer-digits {
  font-size: 90px;
}
.flashing {
  animation: flash 0.6s steps(2, end) infinite;
}
@keyframes flash {
  50% {
    filter: brightness(0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flashing {
    animation: none;
    outline: 5px solid var(--yellow);
  }
  * {
    transition: none !important;
  }
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #e3edda;
  color: #1c2815;
  box-shadow: 0 5px 20px #0008;
  border-radius: 8px;
  padding: 15px 23px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  z-index: 100;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.loading {
  padding: 20vh 20px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .timer-digits {
    font-size: 110px;
  }
}
@media (max-width: 1100px) {
  .desk-grid {
    grid-template-columns: 1fr 1.2fr;
  }
  .message-panel {
    grid-column: 1/-1;
  }
  .message-panel form {
    max-width: 650px;
  }
  .quick-cues {
    grid-template-columns: repeat(3, 1fr);
  }
  .header-right {
    gap: 12px;
  }
  .timer-digits {
    font-size: 8vw;
  }
}
@media (max-width: 700px) {
  header {
    padding: 0 18px;
    height: 78px;
  }
  .brand {
    font-size: 21px;
  }
  .brand > svg {
    width: 30px;
  }
  .header-right {
    gap: 5px;
  }
  .header-right > .connection {
    display: none;
  }
  .header-right .secondary {
    font-size: 10px;
    padding: 9px;
  }
  .desk {
    padding: 25px 14px 0;
  }
  .desk-grid {
    grid-template-columns: 1fr;
  }
  .message-panel {
    grid-column: auto;
  }
  .desk-heading h1 {
    font-size: 30px;
  }
  .desk-heading .quiet {
    padding-right: 0;
  }
  .timer-digits {
    font-size: 21vw;
  }
  .quick-cues {
    grid-template-columns: 1fr;
  }
  footer {
    gap: 20px;
    line-height: 1.8;
  }
  .home {
    padding: 40px 20px;
  }
  .section-title {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .login {
    padding: 12vh 24px;
  }
  .login-art {
    display: none;
  }
  .login h1 {
    font-size: 55px;
  }
  .login small {
    display: block;
    max-width: 300px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .share-row {
    flex-wrap: wrap;
  }
  .share-row label {
    flex-basis: 100%;
  }
  .share-row button,
  .share-row a {
    margin-top: 0;
  }
  .viewer-page .screen-top {
    font-size: 12px;
  }
  .viewer-toolbar {
    gap: 8px;
  }
  .viewer-toolbar .connection {
    font-size: 9px;
  }
  .viewer-toolbar button {
    padding: 6px;
    font-size: 10px;
  }
  .agenda-live .timer-digits {
    font-size: 70px;
  }
}
