/* Copyright (c) 2026 Juanma Gomez. All rights reserved.
 * SPDX-License-Identifier: LicenseRef-Take-Studio-Proprietary
 * See LICENSE and LICENSING.md; prior MIT grants are preserved. */
@font-face {
  font-family: Manrope;
  src: url("vendor/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Jet;
  src: url("assets/mono.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101213;
  --panel: #1b1e20;
  --line: #34393b;
  --muted: #a4abab;
  --ink: #f4f0e9;
  --warm: #edbc99;
  --mint: #afe4cc;
  --red: #ff785f;
  --script-size: 24px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.6 Manrope,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
label.import-take {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
a {
  color: var(--warm);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 4px;
}
button:not(:disabled):hover {
  filter: brightness(1.15);
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.masthead {
  height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--warm);
  color: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 27px;
}
.brand strong {
  font-size: 21px;
  letter-spacing: -1px;
}
.brand strong span {
  font-weight: 400;
  margin-left: 4px;
}
.brand small {
  color: var(--muted);
  font-size: 10px;
  align-self: end;
  padding-bottom: 5px;
}
.project-switch {
  max-width: 310px;
  flex: 1;
}
.project-switch select {
  background: transparent;
  border: 0;
  color: var(--muted);
  text-overflow: ellipsis;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.local-dot {
  font:
    10px Jet,
    monospace;
  color: var(--mint);
}
.local-dot:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--mint);
  margin-right: 8px;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 4px;
}
.icon {
  font-size: 19px;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
}
.icon:hover {
  background: #ffffff0b;
}
main {
  max-width: 1710px;
  margin: auto;
  padding: 30px 36px 20px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font:
    9px/1.7 Jet,
    monospace;
  color: var(--muted);
}
h1 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.2;
  letter-spacing: -1.6px;
  font-weight: 500;
  margin: 8px 0 0;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin: 10px 0;
}
h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 22px;
}
.completion {
  width: 190px;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 0 8px;
}
.completion > span:first-child {
  font:
    25px Jet,
    monospace;
  white-space: nowrap;
}
.completion small {
  font-size: 12px;
  color: var(--muted);
}
.completion > span:nth-child(2) {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.completion-track {
  grid-column: 1/3;
  height: 3px;
  background: var(--line);
  margin-top: 12px;
}
.completion-track i {
  display: block;
  background: var(--mint);
  width: 0;
  height: 3px;
  transition: width 0.4s;
}
.notice {
  min-height: 23px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}
.notice.error {
  color: var(--red);
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 24px;
}
.stage-panel {
  min-width: 0;
}
.clockbar {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 16px;
}
.clockbar > div:first-child {
  margin-right: auto;
}
.clockbar > div:first-child > strong {
  display: block;
  font:
    38px/1.35 Jet,
    monospace;
  color: var(--warm);
  letter-spacing: -2px;
}
.clockbar > div:first-child > strong span {
  color: #95785f;
  font-size: 23px;
}
.clock-small {
  display: flex;
  flex-direction: column;
}
.clock-small > span {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.clock-small strong {
  font:
    19px Jet,
    monospace;
}
.clock-small small {
  font-size: 11px;
  color: var(--muted);
}
.stage {
  aspect-ratio: 16/9;
  position: relative;
  border: 1px solid var(--line);
  background: #080b0b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 50px #0003;
}
#composition {
  width: 100%;
  height: 100%;
  display: block;
}
.media-source {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -10px;
  top: 0;
  pointer-events: none;
}
.stage-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  pointer-events: none;
  font:
    8px Jet,
    monospace;
  letter-spacing: 1px;
  background: #0009;
  padding: 5px 8px;
  border-radius: 3px;
  color: #ddd;
}
#countdown {
  position: absolute;
  inset: 0;
  background: #080b0bba;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(4px);
}
#countdown strong {
  font:
    100px Jet,
    monospace;
  color: var(--warm);
}
#countdown span {
  font-size: 17px;
}
.transport {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
}
.transport input {
  flex: 1;
  min-width: 40px;
}
.mono {
  font:
    10px Jet,
    monospace;
  color: var(--muted);
}
input[type="range"] {
  accent-color: var(--warm);
  height: 20px;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.recordbar {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 60px;
}
.record-button {
  border: 1px solid #ff917559;
  background: #edbc9912;
  color: var(--warm);
  border-radius: 10px;
  min-height: 51px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.record-button i {
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
}
.recording .record-button i {
  animation: breathe 1s infinite;
}
.stop-button {
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 10px;
  color: var(--red);
}
.input-meter {
  width: 100px;
  margin-left: auto;
  flex-shrink: 1;
}
.input-meter > span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meter {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    #34393b 0 5px,
    transparent 5px 7px
  );
  margin-top: 7px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--mint);
  width: 0;
  transition: width 0.06s;
}
.meter i.hot {
  background: var(--red);
}
.recordbar > .quiet {
  font-size: 10px;
}
.prompter {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 630px;
}
.prompter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.prompter h2 {
  margin: 18px 0 20px;
  font-size: 15px;
  color: var(--warm);
  letter-spacing: 0;
}
.script-scroll {
  min-height: 170px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
  mask-image: linear-gradient(black 0%, black 92%, transparent);
}
#script {
  font-size: var(--script-size);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0 0 30px;
}
.direction {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 16px 0 0;
}
.prompter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font:
    9px Jet,
    monospace;
  color: var(--muted);
}
.toggle-inline {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin: 0 !important;
}
.toggle-inline input {
  width: 14px;
  accent-color: var(--warm);
  margin: 0;
}
.chapter-section {
  margin: 30px 0 26px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.section-label button {
  margin-left: 18px;
}
.chapter-strip {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
}
.chapter-strip button {
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
  position: relative;
  min-height: 48px;
  font:
    13px Jet,
    monospace;
  color: var(--muted);
}
.chapter-strip button .chapter-progress {
  display: block;
  height: 3px;
  background: #424747;
  margin-top: 7px;
  width: 65%;
  margin-inline: auto;
  border-radius: 3px;
}
.chapter-strip button.ready .chapter-progress {
  background: var(--mint);
}
.chapter-strip button.ready {
  color: var(--mint);
}
.chapter-strip button[aria-current="true"] {
  border-color: var(--warm);
  background: #edbc9911;
  color: var(--warm);
}
.take-room {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.take-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.take-heading h2 {
  font-size: 19px;
  margin: 5px 0;
}
.take-heading h2 span {
  font:
    11px Jet,
    monospace;
  background: var(--panel);
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--muted);
  margin-left: 8px;
}
.import-take {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.empty-takes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
}
.empty-takes p {
  font-size: 12px;
}
.empty-takes p span {
  color: var(--muted);
  font-size: 11px;
}
.wave-icon {
  color: #a99b8e;
  letter-spacing: 4px;
  font-size: 26px;
}
.take-tools {
  display: flex;
  align-items: end;
  gap: 16px;
}
.take-tools label {
  max-width: 320px;
  flex: 1;
}
.take-tools .danger-text {
  margin-left: auto;
  color: #bf9388;
}
.take-tools .quiet {
  margin-bottom: 14px;
}
.take-room canvas {
  width: 100%;
  height: 66px;
  display: block;
  margin: 0 0 10px;
  background: #ffffff02;
  border-radius: 8px;
}
.trim-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.trim-controls label {
  font-size: 10px;
  max-width: 160px;
  flex: 1;
}
.trim-controls label span {
  color: var(--muted);
  font-size: 9px;
}
.trim-controls .toggle-inline {
  max-width: 220px;
}
.trim-controls input[type="number"] {
  margin: 5px 0 0;
  height: 36px;
}
.trim-controls > span {
  font:
    10px Jet,
    monospace;
  color: var(--mint);
  margin-left: auto;
}
.finish-bar {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
  padding: 24px 0 20px;
}
.finish-bar > div {
  margin-right: auto;
}
.finish-bar strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
}
.finish-bar span {
  font-size: 10px;
  color: var(--muted);
}
.primary,
.secondary {
  padding: 12px 18px;
  border-radius: 8px;
  min-height: 43px;
  font-size: 12px;
  font-weight: 600;
}
.primary {
  color: #211a15;
  background: var(--warm);
}
.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}
footer {
  border-top: 1px solid #ffffff09;
  color: #818989;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  gap: 20px;
}
dialog {
  background: #191d1f;
  color: var(--ink);
  border: 1px solid #4a504f;
  border-radius: 18px;
  width: min(850px, calc(100% - 32px));
  padding: 30px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 120px #0009;
}
dialog::backdrop {
  background: #050809bc;
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 24px;
}
.dialog-head h2 {
  font-size: 26px;
  margin: 5px 0;
}
.dialog-head .icon {
  font-size: 29px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.settings-grid > section + section {
  padding-left: 35px;
  border-left: 1px solid var(--line);
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 16px;
}
select,
input[type="text"],
input[type="number"],
input[type="file"],
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101415;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 40px;
  margin-top: 7px;
  min-width: 0;
}
input[type="file"] {
  font-size: 11px;
  padding: 12px;
}
input[type="file"]::file-selector-button {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px;
  margin-right: 12px;
}
select {
  cursor: pointer;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
label > input[type="range"] {
  width: 100%;
  display: block;
  margin-top: 12px;
}
.settings-grid .toggle-inline {
  margin: 15px 0 !important;
}
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.settings-grid a {
  font-size: 11px;
}
.settings-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.settings-bottom .primary {
  margin-left: auto;
}
.export-options {
  display: flex;
  align-items: center;
  gap: 30px;
}
.export-options > label:first-child {
  min-width: 200px;
}
#export-progress {
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
progress {
  width: 100%;
  accent-color: var(--warm);
  height: 8px;
}
#export-status {
  font:
    11px Jet,
    monospace;
  color: var(--muted);
}
#result-video {
  width: 100%;
  margin-top: 24px;
  max-height: 50vh;
  background: #000;
  border-radius: 10px;
}
.help-steps {
  padding-left: 23px;
}
.help-steps li {
  padding: 0 0 22px 8px;
  font-size: 14px;
  color: var(--muted);
}
.help-steps strong {
  color: var(--ink);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.recording .clockbar > div:first-child > strong {
  color: var(--red);
}
.recording .stage {
  border-color: #ff785f80;
}
.recording #stage-badge {
  background: #6b2619d9;
}
.recording .prompter {
  border-color: #b8997b;
}
.busy {
  cursor: progress;
}
@keyframes breathe {
  50% {
    opacity: 0.4;
  }
}
@media (min-width: 1700px) {
  .prompter {
    max-height: 730px;
  }
  #script {
    font-size: calc(var(--script-size) + 3px);
  }
  main {
    padding-top: 35px;
  }
}
@media (max-width: 1200px) {
  .masthead {
    padding: 0 24px;
    gap: 16px;
  }
  .brand small,
  .local-dot {
    display: none;
  }
  main {
    padding: 24px;
  }
  .workbench {
    gap: 18px;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  }
  .recordbar {
    flex-wrap: wrap;
  }
  .recordbar > .quiet {
    margin-left: auto;
  }
  .clockbar {
    gap: 16px;
  }
  .clockbar > div:first-child > strong {
    font-size: 31px;
  }
  .clock-small strong {
    font-size: 15px;
  }
  .prompter {
    padding: 20px;
    max-height: 580px;
  }
  .prompter h2 {
    margin: 12px 0;
  }
  .direction {
    font-size: 10px;
  }
  .script-scroll {
    min-height: 140px;
  }
  .trim-controls {
    gap: 12px;
  }
  .project-switch {
    max-width: 220px;
  }
}
@media (max-width: 850px) {
  .masthead {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 17px 20px;
    gap: 15px;
  }
  .brand {
    margin-right: auto;
  }
  .project-switch {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  .header-actions {
    gap: 12px;
  }
  .intro {
    margin-bottom: 18px;
  }
  .intro .eyebrow {
    font-size: 8px;
  }
  .completion {
    width: 120px;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .prompter {
    min-height: 320px;
    max-height: 430px;
  }
  .clockbar {
    gap: 28px;
  }
  .clockbar > div:first-child > strong {
    font-size: 37px;
  }
  .recordbar > .quiet {
    margin-left: 0;
  }
  .chapter-strip {
    grid-template-columns: repeat(7, 1fr);
  }
  .take-tools {
    gap: 12px;
    flex-wrap: wrap;
  }
  .take-tools .quiet {
    margin-bottom: 0;
  }
  .take-tools label {
    flex-basis: 100%;
    max-width: none;
  }
  .trim-controls {
    flex-wrap: wrap;
  }
  .trim-controls > span {
    margin: 0;
  }
  .finish-bar {
    flex-wrap: wrap;
  }
  .finish-bar > div {
    flex-basis: 100%;
    margin-bottom: 8px;
  }
  .settings-grid {
    gap: 24px;
  }
  .settings-grid > section + section {
    padding-left: 24px;
  }
  .completion-track {
    margin-top: 8px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 20px 16px;
  }
  .masthead {
    padding: 15px 16px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 24px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .quiet {
    font-size: 10px;
  }
  .header-actions .icon {
    min-width: 25px;
  }
  .intro {
    gap: 20px;
  }
  .intro h1 {
    font-size: 28px;
    max-width: 240px;
  }
  .intro .eyebrow {
    letter-spacing: 1px;
  }
  .completion {
    width: 92px;
    grid-template-columns: 1fr;
  }
  .completion > span:nth-child(2) {
    text-align: left;
    font-size: 9px;
  }
  .completion-track {
    grid-column: 1;
  }
  .completion > span:first-child {
    font-size: 22px;
  }
  .clockbar {
    gap: 14px;
  }
  .clockbar > div:first-child > strong {
    font-size: 30px;
  }
  .clockbar > div:first-child .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .clock-small strong {
    font-size: 13px;
  }
  .clock-small small {
    font-size: 8px;
  }
  .clock-small > span {
    font-size: 9px;
  }
  .transport {
    gap: 8px;
  }
  .transport .mono {
    font-size: 8px;
  }
  .recordbar {
    gap: 8px;
  }
  .record-button {
    padding: 11px 13px;
    font-size: 12px;
  }
  .input-meter {
    width: 74px;
  }
  .prompter {
    padding: 18px;
  }
  #script {
    font-size: calc(var(--script-size) - 2px);
  }
  .section-label .eyebrow {
    font-size: 8px;
    max-width: 160px;
  }
  .section-label button {
    margin-left: 8px;
    font-size: 10px;
  }
  .take-heading {
    gap: 12px;
  }
  .take-heading .eyebrow {
    font-size: 8px;
  }
  .take-heading .import-take {
    font-size: 9px;
    text-align: right;
  }
  .wave-icon {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .empty-takes {
    padding: 18px 0;
    gap: 16px;
  }
  .take-tools {
    gap: 14px;
  }
  .take-tools .quiet {
    font-size: 10px;
  }
  .trim-controls > label {
    min-width: 75px;
  }
  .trim-controls .toggle-inline {
    flex-basis: 100%;
    max-width: none;
  }
  .finish-bar .primary,
  .finish-bar .secondary {
    flex: 1;
    font-size: 11px;
    padding: 12px 9px;
  }
  footer {
    align-items: start;
    font-size: 9px;
  }
  dialog {
    padding: 22px 18px;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid > section + section {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .export-options {
    display: block;
  }
  .button-row > * {
    flex: 1;
    text-align: center;
  }
  .settings-bottom .primary {
    width: 100%;
  }
  .trim-controls > span {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Voice-first: the same studio, a narration-led timeline. */
.workflow-choice {
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.workflow-choice legend {
  margin-bottom: 12px;
  color: var(--muted);
}
.workflow-choice label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line, #34413d);
  border-radius: 14px;
  cursor: pointer;
  margin: 0;
}
.workflow-choice label:has(input:checked) {
  background: #1d2e28;
  border-color: var(--mint);
}
.workflow-choice input {
  width: auto;
  margin-top: 5px;
  accent-color: var(--mint);
}
.workflow-choice strong,
.workflow-choice small {
  display: block;
}
.workflow-choice small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}
.workflow-path {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: 12px;
}
.workflow-path strong {
  color: var(--mint);
}
.workflow-path i {
  font-style: normal;
  opacity: 0.5;
}
.voice-workspace {
  margin: 36px 0;
  padding: 28px;
  border: 1px solid var(--line, #34413d);
  border-radius: 20px;
  background: #121a18;
}
.voice-workspace h2 {
  margin: 10px 0;
}
.voice-workspace h3 {
  font-weight: 500;
  font-size: 17px;
  margin: 14px 0;
}
.voice-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  margin-top: 28px;
}
.voice-visuals {
  border-left: 1px solid #34413d;
  padding-left: 28px;
  min-width: 0;
}
#speech-controls,
#visual-controls {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#speech-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
#speech-controls label {
  margin: 0;
  flex: 1;
}
#speech-controls button {
  white-space: nowrap;
}
.voice-workspace .muted {
  font-size: 12px;
  line-height: 1.7;
}
.transcript-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  border-top: 1px solid #34413d;
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}
.cue-time {
  font-family: monospace;
  color: var(--mint);
  padding: 4px 0;
  background: transparent;
  border: 0;
}
#transcript-rows {
  max-height: 380px;
  overflow: auto;
  padding-right: 6px;
}
.visual-cue {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 90px;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid #34413d;
}
.visual-cue label {
  margin: 0;
  font-size: 11px;
  min-width: 0;
}
.visual-cue input,
.visual-cue select {
  padding: 10px;
  width: 100%;
  min-width: 0;
}
.visual-cue .toggle-inline {
  grid-column: 1/3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.visual-cue input[type="checkbox"] {
  width: auto;
}
.visual-cue button {
  font-size: 11px;
  padding: 4px;
}
.visual-strip {
  display: flex;
  gap: 3px;
  margin: 20px 0 4px;
  min-height: 44px;
}
.visual-strip button {
  border: 1px solid #4c685c;
  border-radius: 6px;
  background: #233a30;
  color: #bee7d2;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px;
}
.cue-add {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: 16px;
}
.cue-add label {
  max-width: 135px;
  margin: 0;
  font-size: 11px;
}
fieldset:disabled {
  opacity: 0.55;
}
@media (max-width: 1000px) {
  .voice-columns {
    grid-template-columns: 1fr;
  }
  .voice-visuals {
    border-left: 0;
    border-top: 1px solid #34413d;
    padding: 24px 0 0;
  }
}
@media (max-width: 600px) {
  .workflow-choice {
    grid-template-columns: 1fr;
  }
  .workflow-path {
    gap: 10px;
  }
  .voice-workspace {
    padding: 18px;
  }
  .voice-workspace > .section-label {
    align-items: start;
  }
  .voice-workspace h2 {
    font-size: 24px;
  }
  .visual-cue {
    grid-template-columns: 65px minmax(0, 1fr) 75px;
    gap: 6px;
  }
  .transcript-row {
    gap: 8px;
    font-size: 12px;
  }
  .transcript-row button {
    font-size: 11px;
  }
}
[hidden] {
  display: none !important;
}

.transcript-row textarea {
  resize: vertical;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  padding: 3px 5px;
  min-height: 70px;
  width: 100%;
  margin: 0;
}
.transcript-row textarea:hover,
.transcript-row textarea:focus-visible {
  border-color: #4c685c;
}

#import-script-list { max-height: 240px; overflow-y: auto; padding-left: 24px; line-height: 1.8; overflow-wrap: anywhere; }
#import-script-summary { margin-bottom: 16px; }
