:root {
  font-family: Arial, sans-serif;
  color: #192b31;
  background: white;
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
nav,
main,
#mode,
#notice {
  padding: 16px max(20px, calc((100vw - 1400px) / 2));
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d6dfe0;
}
h1 {
  font-size: 26px;
  margin: 0;
}
h2 {
  font-size: 22px;
  margin: 12px 0;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0;
}
small,
.muted {
  color: #52646a;
}
nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #d6dfe0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  padding: 9px 14px;
  background: white;
  color: #164e56;
  border: 1px solid #8ba5aa;
  border-radius: 5px;
  cursor: pointer;
}
button:hover,
button[aria-current="page"] {
  background: #eaf3f2;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
button.primary {
  background: #205e4e;
  color: white;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2875be;
  outline-offset: 2px;
}
#mode {
  background: #fff2cc;
  font-weight: bold;
}
#mode.live {
  background: #e9f3fb;
}
#notice:empty {
  display: none;
}
#notice {
  background: #fff0e8;
  border-bottom: 1px solid #c7773e;
}
.streams {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
}
.parallel {
  border-left: 4px solid #347652;
  padding-left: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid #d4dfe0;
  border-radius: 6px;
  padding: 18px;
  margin: 12px 0;
  background: white;
  break-inside: avoid;
}
.status {
  display: inline-block;
  padding: 3px 9px;
  background: #edf1f3;
  border-radius: 4px;
  font-size: 14px;
}
.working {
  background: #e5efff;
  color: #164e9b;
}
.ready,
.reviewed {
  background: #e4f3e9;
  color: #21643c;
}
.blocked,
.pending {
  background: #fff0d5;
  color: #7f4d00;
}
label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  gap: 4px;
  margin: 10px 0;
}
input,
select,
textarea {
  border: 1px solid #8ba5aa;
  border-radius: 4px;
  padding: 9px;
  min-width: 0;
  width: 100%;
  background: white;
  color: #192b31;
}
textarea {
  min-height: 85px;
}
label.check {
  flex-direction: row;
  align-items: center;
  font-weight: normal;
}
input[type="checkbox"] {
  width: auto;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.id {
  font-family: monospace;
  overflow-wrap: anywhere;
  white-space: normal;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}
th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #d6dfe0;
  padding: 9px;
  overflow-wrap: anywhere;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: bold;
}
.full {
  grid-column: 1/-1;
}
.empty {
  padding: 24px;
  border: 1px dashed #a8b8bb;
}
#print {
  display: none;
}
.paper {
  font-size: 12px;
  max-width: 780px;
  margin: auto;
}
.paper h1 {
  font-size: 22px;
}
.paper td,
.paper th {
  padding: 5px;
}
.blank {
  height: 34px;
  border-bottom: 1px solid #899;
}
body.tv .card {
  font-size: 19px;
}
body.tv h2 {
  font-size: 27px;
}
@media (max-width: 760px) {
  .streams,
  .grid {
    grid-template-columns: 1fr;
  }
  .parallel {
    grid-row: 1;
  }
  header {
    align-items: start;
    gap: 12px;
  }
  table {
    font-size: 14px;
  }
  .table-scroll {
    overflow-x: auto;
  }
  header,
  nav,
  main,
  #mode,
  #notice {
    padding: 14px;
  }
}
@media print {
  @page {
    size: letter;
    margin: 12mm;
  }
  body > * {
    display: none !important;
  }
  body > #print {
    display: block !important;
  }
  .paper {
    max-width: none;
  }
  .paper .card {
    border: 0;
    padding: 0;
  }
  .paper h2 {
    font-size: 16px;
  }
  .paper p {
    margin: 4px 0;
  }
  .paper table {
    margin: 5px 0;
  }
  .paper .watermark {
    font-size: 16px;
    font-weight: bold;
    border: 2px solid;
    padding: 5px;
  }
  .paper section {
    break-inside: avoid;
  }
}
