:root {
  --ink: #1d2927;
  --muted: #546560;
  --paper: #f8f8f2;
  --pale: #eff0e9;
  --line: #ced4cb;
  --dark: #182522;
  --green: #b4e9a6;
  --forest: #26533e;
  --orange: #bd6844;
  font:
    15px/1.45 "Segoe UI",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  padding: 7px 11px;
}
button:hover:not(:disabled) {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #458667;
  outline-offset: 2px;
}
input,
textarea,
select {
  min-width: 0;
  background: white;
  border: 1px solid #bcc8bd;
  border-radius: 4px;
  padding: 7px 9px;
}
select {
  font-size: 13px;
}
button,
select {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
h1 {
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 630;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.035em;
  font-weight: 670;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.mast {
  min-height: 59px;
  background: var(--dark);
  color: #eef4e9;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px clamp(16px, 3vw, 48px);
}
.brand {
  font-size: 21px;
  letter-spacing: -0.055em;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  font-weight: 400;
}
.brand svg {
  height: 27px;
  width: 29px;
  fill: var(--green);
  margin-right: 6px;
}
.brand strong {
  font-weight: 700;
}
.workspace-label {
  font-size: 13px;
  border-left: 1px solid #53615c;
  padding-left: 18px;
  color: #b8c4bb;
}
.mast-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mast-actions button {
  border-color: #596961;
}
.mast-actions .bright {
  background: var(--green);
  border-color: var(--green);
  color: var(--dark);
}
#save-status {
  font-size: 12px;
  color: #c0cdbf;
  margin-right: 5px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 22px clamp(14px, 3vw, 48px) 32px;
}
.project-head,
.section-head,
.source-line,
.transcript-head,
.dialog-head,
.dialog-actions,
.cut-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.eyebrow,
.question label,
.screen-meta,
.tag,
.runline > span + span {
  font:
    650 10px/1.25 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--forest);
  margin-bottom: 5px;
}
.ghost,
.outline {
  border: 1px solid var(--line);
  background: var(--paper);
}
.ghost {
  font-size: 12px;
  color: var(--muted);
}
.dark {
  background: var(--forest);
  color: white;
}
.question {
  margin: 17px 0 18px;
  background: #e7eddf;
  border: 1px solid #cdd9c5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 10px 7px 15px;
  border-radius: 5px;
}
.question label {
  color: var(--forest);
  white-space: nowrap;
}
.question input {
  flex: 1;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 550;
  padding: 4px;
}
.question button {
  border-color: #b7c5b0;
  color: var(--forest);
  white-space: nowrap;
}
.desk {
  display: grid;
  grid-template-columns: minmax(166px, 0.69fr) minmax(270px, 2.25fr) minmax(
      216px,
      0.95fr
    );
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.rail,
.viewer,
.cut {
  min-width: 0;
}
.rail,
.cut {
  padding: 17px 15px;
}
.rail {
  background: var(--pale);
  border-right: 1px solid var(--line);
}
.viewer {
  padding: 15px clamp(12px, 1.5vw, 23px) 20px;
}
.cut {
  background: #f6f6ee;
  border-left: 1px solid var(--line);
}
.count {
  font:
    600 11px ui-monospace,
    Consolas,
    monospace;
  color: #43564a;
  background: #e0e6da;
  border-radius: 4px;
  padding: 3px 6px;
}
.section-head {
  margin-bottom: 13px;
}
.section-head .tag {
  font-size: 10px;
  color: #48634d;
}
.source-card {
  display: flex;
  gap: 10px;
  text-align: left;
  width: 100%;
  border-radius: 5px;
  padding: 10px 8px;
  border: 1px solid transparent;
  margin-bottom: 4px;
  align-items: center;
}
.source-card.active {
  background: #dce8d6;
  border-color: #bacdb3;
}
.source-mark {
  width: 30px;
  height: 33px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #375a4b;
  color: white;
  font:
    600 12px ui-monospace,
    Consolas,
    monospace;
}
.source-card:nth-child(2n) .source-mark {
  background: #82583f;
}
.stack {
  display: grid;
  min-width: 0;
  gap: 3px;
  overflow-wrap: anywhere;
}
.stack small,
.hint,
.source-line span,
.muted,
.empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.source-card b {
  font-size: 13px;
}
.wide {
  width: 100%;
  margin-top: 6px;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 21px 0 16px;
}
.empty {
  line-height: 1.6;
  padding: 6px 0;
}
.bin-row,
.revision-row {
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.bin-row p {
  margin: 3px 0;
}
.mini {
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  font-weight: 600;
}
.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.screen {
  position: relative;
  aspect-ratio: 16/9;
  background: #17201d;
  overflow: hidden;
  border-radius: 5px;
}
.screen video {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}
.screen-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: #1d2a25;
  color: #f2f5ef;
  padding: 15%;
  font-size: 15px;
  z-index: 1;
}
.screen-meta {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  left: 10px;
  right: 10px;
  bottom: 8px;
  color: white;
  padding: 5px 7px;
  text-shadow: 0 1px 3px black;
  background: linear-gradient(90deg, #142019aa, #14201900);
  border-radius: 3px;
  pointer-events: none;
}
.screen-meta span:last-child {
  margin-left: auto;
  font-family: Consolas, monospace;
}
.rec-dot {
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: var(--green);
}
.transport {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #e7ebe3;
  border-radius: 0 0 4px 4px;
  margin-bottom: 10px;
  min-height: 36px;
  padding: 3px 5px;
}
.transport button {
  background: white;
  border: 1px solid #cbd3c7;
  font-size: 11px;
  padding: 4px 7px;
}
.transport span {
  margin-left: auto;
  color: #42574a;
  font:
    11px Consolas,
    monospace;
}
.source-line {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.source-line span {
  font-size: 12px;
}
.transcript-head .section-head {
  margin: 0;
}
.transcript-head .count {
  margin-left: 5px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 10px 0 5px;
  gap: 6px;
  padding-left: 9px;
}
.search span {
  font-size: 23px;
  color: var(--forest);
}
.search input {
  width: 100%;
  border: 0;
}
.cues {
  max-height: 400px;
  overflow: auto;
}
.cue {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 9px 7px;
  border-left: 3px solid transparent;
}
.cue.selected {
  background: #f0f5ea;
  border-left-color: #5e9364;
}
.cue .time {
  font:
    600 11px/1.45 ui-monospace,
    Consolas,
    monospace;
  color: var(--forest);
  padding-top: 2px;
}
.cue-text {
  background: none;
  border: 0;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  padding: 0;
  line-height: 1.45;
}
.cue .actions {
  margin-top: 5px;
}
.restricted {
  color: #934620;
  font-size: 11px;
}
.runline {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 2px 0 7px;
}
.runline span:first-child {
  font:
    550 clamp(23px, 2.4vw, 37px)/1 Consolas,
    monospace;
  letter-spacing: -0.06em;
}
.runline > span + span {
  color: var(--muted);
  font-size: 9px;
}
.timeline {
  height: 28px;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
  background: #e2e6db;
}
.timeline button {
  min-width: 8px;
  color: white;
  border-radius: 0;
  background: #456d58;
  font:
    11px Consolas,
    monospace;
  padding: 2px;
  overflow: hidden;
}
.timeline button:nth-child(2n) {
  background: #a56e53;
}
.cut-controls {
  justify-content: flex-start;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.cut-controls button {
  font-size: 12px;
}
.cuts {
  padding: 0;
  list-style: none;
  margin: 0;
}
.cut-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.cut-row header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.kicker {
  font:
    600 10px ui-monospace,
    Consolas,
    monospace;
  color: var(--forest);
  letter-spacing: 0.035em;
}
.cut-row p {
  font-size: 14px;
  line-height: 1.4;
  margin: 5px 0 7px;
  overflow-wrap: anywhere;
}
.cut-row small {
  font-size: 11px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 clamp(14px, 3vw, 48px);
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  width: min(465px, 94vw);
  max-height: 86vh;
  background: var(--paper);
}
dialog::backdrop {
  background: #101c18a8;
}
dialog .dialog-head {
  margin-bottom: 10px;
}
dialog .dialog-head button {
  font-size: 22px;
  padding: 1px 8px;
}
dialog label {
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 4px;
  margin: 10px 0;
}
dialog fieldset {
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 12px 0;
}
dialog legend {
  font-size: 13px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hint {
  margin: 9px 0 14px;
  line-height: 1.5;
}
.dialog-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 10px;
}
blockquote {
  font-size: 17px;
  margin: 8px 0;
  padding-left: 14px;
  border-left: 3px solid #9cbb94;
}
.exports {
  display: grid;
  gap: 6px;
}
.exports button {
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  gap: 2px;
}
.exports small {
  font-weight: 400;
  color: var(--muted);
}
progress {
  width: 100%;
  margin: 12px 0;
}
#notice,
#suggestions,
.dialog-message {
  padding: 8px 12px;
  border: 1px solid #b6c7b3;
  background: #eef5e8;
  border-radius: 5px;
  font-size: 13px;
  margin: 10px 0;
}
#notice.error,
.dialog-message.error {
  background: #fff1e8;
  border-color: #d0a189;
}
#suggestions li + li {
  margin-top: 6px;
}
.revision-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1350px) {
  .rail,
  .cut {
    padding: 19px 21px;
  }
  .screen {
    max-height: 448px;
  }
  .section-head {
    margin-bottom: 16px;
  }
}
@media (max-width: 960px) {
  .desk {
    grid-template-columns: minmax(145px, 0.65fr) minmax(260px, 1.7fr) minmax(
        185px,
        0.82fr
      );
  }
  .rail,
  .cut,
  .viewer {
    padding: 11px 9px;
  }
  .workspace-label {
    display: none;
  }
  .source-mark {
    width: 23px;
    height: 28px;
  }
  .mast {
    gap: 8px;
  }
  .question {
    gap: 7px;
  }
  .runline {
    flex-wrap: wrap;
  }
  .cut-controls {
    gap: 4px;
  }
  .cut-controls button {
    padding: 5px 6px;
  }
}
@media (max-width: 740px) {
  .desk {
    grid-template-columns: 1fr 1fr;
  }
  .rail {
    grid-column: 1/-1;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  #sessions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  #sessions .source-card {
    width: auto;
    min-width: 130px;
  }
  .rail .divider {
    margin: 10px 0;
  }
  .rail .wide {
    width: auto;
  }
  .rail #bin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .bin-row {
    max-width: 260px;
  }
  .viewer {
    grid-column: 1/-1;
  }
  .cut {
    grid-column: 1/-1;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .cues {
    max-height: 285px;
  }
  main {
    padding-top: 15px;
  }
  .question {
    flex-wrap: wrap;
  }
  .question label {
    flex-basis: 100%;
  }
  .question input {
    font-size: 14px;
  }
  .mast .brand {
    font-size: 17px;
  }
  .mast-actions button {
    padding: 6px 8px;
    font-size: 12px;
  }
  #save-status {
    display: none;
  }
  .project-head {
    align-items: flex-end;
  }
  .desk h2 {
    font-size: 17px;
  }
}
:root dialog .check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
