:root {
  color-scheme: dark;
  --page: #0a0e13;
  --panel: #10161c;
  --soft-panel: #131b22;
  --edge: #263039;
  --muted: #98a6b2;
  --muted-2: #84949f;
  --ink: #e6edf2;
  --accent: #82e4da;
  --accent-strong: #8be8dd;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font:
    14px / 1.45 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  border: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
}
button:disabled {
  cursor: default;
}
button,
summary,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.app-header {
  height: 67px;
  background: #0e141a;
  border-bottom: 1px solid var(--edge);
}
.header-inner {
  max-width: 1740px;
  height: 100%;
  margin: auto;
  padding: 0 clamp(20px, 3vw, 54px);
  display: flex;
  align-items: center;
  gap: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  letter-spacing: -1.15px;
  font-size: 23px;
  font-weight: 650;
}
.brand-mark {
  width: 32px;
  height: 35px;
  display: inline-block;
  color: var(--accent);
  flex: none;
}
.header-divider {
  height: 25px;
  width: 1px;
  background: var(--edge);
  margin: 0 28px 0 30px;
}
.app-header nav {
  display: flex;
  align-items: center;
  gap: 7px;
}
.app-header nav button {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  line-height: 20px;
  font-weight: 520;
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 5px;
}
.app-header nav button .icon {
  width: 15px;
  height: 15px;
}
.app-header nav button.selected {
  color: var(--accent);
  background: #15292b;
}
.app-header nav button:hover,
.icon-button:hover,
.settings-button:hover {
  background: #1a252c;
  color: var(--ink);
}
.system-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #b1bebf;
}
.system-status i,
.settings-status > i,
.inspector-light {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #849196;
}
.system-status .online,
.settings-status > .online,
.inspector-light {
  background: #80cfa3;
  box-shadow: 0 0 8px #80cfa32a;
}
.settings-button {
  display: grid;
  place-items: center;
  border-radius: 5px;
  width: 33px;
  height: 33px;
  margin-left: 19px;
  color: #9aa9b5;
  border: 1px solid var(--edge);
}
.settings-button .icon {
  width: 16px;
  height: 16px;
}
.workspace {
  width: 100%;
  max-width: 1740px;
  margin: 0 auto;
  padding: 30px clamp(20px, 3vw, 54px) 34px;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
}
.eyebrow,
.small-meta,
.note-section h3,
.shot-kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.115em;
}
.eyebrow {
  font-size: 10px;
  line-height: 14px;
  color: var(--accent);
  display: flex;
  gap: 8px;
  align-items: center;
}
.eyebrow > i {
  display: inline-block;
  width: 19px;
  height: 2px;
  background: var(--accent);
}
.plan-title {
  min-width: 0;
}
.headline {
  display: flex;
  gap: 13px;
  align-items: center;
}
h1 {
  font-size: clamp(28px, 2.55vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.051em;
  font-weight: 590;
}
.plan-title h1 {
  margin: 7px 0 8px;
}
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px 3px 7px;
  border: 1px solid #34434d;
  border-radius: 4px;
  background: #141c23;
  font: 10px / 1.5 var(--mono);
  color: #c6d0d7;
  white-space: nowrap;
}
.version-pill:hover {
  border-color: var(--accent);
}
.version-pill .icon {
  width: 11px;
  height: 11px;
}
.plan-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.plan-meta span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.plan-meta .icon {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}
.plan-meta > i {
  width: 3px;
  height: 3px;
  border-radius: 3px;
  background: #53616b;
}
.title-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.button {
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.button .icon {
  width: 15px;
  height: 15px;
}
.button.primary,
.play-button,
.send-button {
  background: var(--accent-strong);
  color: #102924;
  border-color: var(--accent-strong);
}
.button.primary:hover,
.play-button:hover,
.send-button:not(:disabled):hover {
  background: #aefff0;
}
.button.secondary {
  border-color: #34404a;
  background: #141b22;
  color: #d5dee4;
}
.button.secondary:hover {
  background: #1a242b;
  border-color: #53646e;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(290px, 25.3%, 390px);
  gap: 19px;
  align-items: stretch;
}
.playback-column {
  min-width: 0;
}
.preview-panel,
.inspector,
.sequence-panel,
.empty-stage,
.library-card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 9px;
}
.preview-panel {
  overflow: hidden;
}
.preview-heading,
.inspector-heading,
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-heading,
.inspector-heading {
  height: 51px;
  padding: 0 18px;
  border-bottom: 1px solid var(--edge);
}
h2 {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 590;
}
.preview-heading h2,
.inspector-heading h2,
.section-line h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.preview-heading h2 .icon,
.inspector-heading h2 .icon,
.section-line h2 .icon {
  width: 16px;
  height: 16px;
  color: #8c9ca8;
}
.loop-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 17px;
  border: 1px solid var(--edge);
}
.loop-control.active {
  background: #152627;
  border-color: #2c4545;
  color: #a7d9d2;
}
.loop-control:hover {
  border-color: var(--accent);
}
.loop-control .icon {
  width: 12px;
  height: 12px;
}
.stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 2.23;
  min-height: 306px;
  overflow: hidden;
  background: #0b1720;
}
.stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
.camera-label {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9eb2bd;
  font: 9px / 1.5 var(--mono);
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px #071018;
  pointer-events: none;
}
.camera-label i {
  height: 9px;
  width: 1px;
  background: #40575f;
}
.camera-label [data-camera],
.camera-cross {
  color: #b4dbd8;
}
.camera-cross {
  font-size: 16px;
  line-height: 10px;
}
.stage-edges {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}
.stage-edges i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #517379;
  opacity: 0.66;
}
.stage-edges i:nth-child(1) {
  top: 0;
  left: 0;
  border-left: 1px solid;
  border-top: 1px solid;
  color: #517379;
}
.stage-edges i:nth-child(2) {
  top: 0;
  right: 0;
  border-right: 1px solid;
  border-top: 1px solid;
  color: #517379;
}
.stage-edges i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-left: 1px solid;
  border-bottom: 1px solid;
  color: #517379;
}
.stage-edges i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
  color: #517379;
}
.stage-caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  max-width: 64%;
  pointer-events: none;
  text-shadow:
    0 1px 6px #060c12,
    0 0 2px #060c12;
}
.shot-kicker {
  font-size: 9px;
  line-height: 12px;
  color: #97aaa9;
  margin-bottom: 3px;
}
.shot-kicker span {
  color: #c8d6d9;
}
.stage-caption strong {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.stage-caption p,
.present-controls {
  display: none;
}
.transport {
  display: flex;
  align-items: center;
  height: 57px;
  gap: 11px;
  padding: 0 15px;
  border-top: 1px solid var(--edge);
  background: #11181e;
}
.transport-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-button,
.play-button {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 4px;
  padding: 0;
  flex: none;
}
.icon-button {
  color: #acbac4;
}
.icon-button .icon {
  width: 16px;
  height: 16px;
}
.play-button {
  width: 31px;
  height: 31px;
  border-radius: 50%;
}
.play-button .icon {
  width: 14px;
  height: 14px;
}
.time-total,
.time-current {
  font: 10px var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.time-current {
  color: #d2dce2;
}
.time-total {
  color: #899ba8;
}
.scrub {
  --progress: 0%;
  flex: 1;
  min-width: 24px;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--progress), #35434c var(--progress));
  cursor: pointer;
  margin: 0;
}
.scrub::-webkit-slider-thumb {
  appearance: none;
  border: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.scrub::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  background: var(--accent);
  border-radius: 50%;
}
.transport-divider {
  width: 1px;
  height: 18px;
  background: var(--edge);
}
.sequence-panel {
  margin-top: 16px;
  padding: 15px 15px 16px;
}
.section-line {
  margin-bottom: 13px;
}
.small-meta {
  color: #8397a2;
  font-size: 9px;
}
.shot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(99px, calc((100% - (var(--shots) - 1) * 8px) / var(--shots)));
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #33444c transparent;
  padding-bottom: 1px;
}
.shot-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-align: left;
  padding: 0;
  border-radius: 5px;
  border: 1px solid #2b363f;
  background: #151d24;
  transition: border-color 0.15s;
}
.shot-card:hover {
  border-color: #73838d;
}
.shot-card.active {
  background: #15272a;
  border-color: #70c9bd;
}
.shot-mini {
  height: 48px;
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(153deg, #102028, #152029 56%, #0e171c);
  border-bottom: 1px solid #25323b;
}
.shot-card.active .shot-mini {
  background: linear-gradient(140deg, #142c31, #14262b 60%, #112127);
  border-color: #2e494b;
}
.shot-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
}
.shot-num {
  position: absolute;
  z-index: 1;
  left: 5px;
  top: 4px;
  color: #afbdc6;
  background: #131c22db;
  border: 1px solid #32414a;
  border-radius: 3px;
  padding: 0 3px;
  font: 8px / 13px var(--mono);
}
.active .shot-num {
  color: var(--accent);
  border-color: #466c69;
  background: #142825;
}
.shot-card-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px 8px;
}
.shot-card-caption b {
  font-weight: 530;
  font-size: 11.5px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-card-caption span {
  font: 9px / 1.4 var(--mono);
  color: var(--muted-2);
}
.shot-card.active .shot-card-caption b {
  color: #b9eee7;
}
.inspector {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  position: relative;
  overflow: hidden;
}
.inspector-heading {
  border-bottom: 0;
}
.inspector-tabs {
  display: flex;
  gap: 4px;
  background: #0b1015;
  border: 1px solid #263139;
  padding: 3px;
  border-radius: 6px;
  margin: 0 16px 0;
}
.inspector-tabs button {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 550;
  height: 28px;
}
.inspector-tabs button[aria-selected="true"] {
  color: #dce8ec;
  background: #202b33;
  box-shadow: 0 1px 4px #0003;
}
.inspector-tabs button .icon {
  width: 13px;
  height: 13px;
}
.inspector-tabs button:hover {
  color: var(--ink);
}
.inspector-scroll {
  height: 0;
  min-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #35434b transparent;
  position: relative;
}
.note-section {
  margin: 0 17px;
  padding: 16px 0;
  border-bottom: 1px solid #273139;
}
.note-section h3 {
  font-size: 9px;
  line-height: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.note-section > p {
  color: #d6dfe4;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 7px;
}
.note-section .count {
  font: 8px / 12px var(--mono);
  border: 1px solid #39434d;
  border-radius: 3px;
  padding: 0 4px;
  letter-spacing: 0;
  color: #a4b3bd;
}
.participants {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}
.participant {
  display: flex;
  align-items: center;
  gap: 9px;
}
.mint {
  --role: #7ddad2;
  --role-bg: #193233;
  --role-edge: #2a4a49;
}
.amber {
  --role: #e8b878;
  --role-bg: #322c24;
  --role-edge: #50402b;
}
.lilac {
  --role: #baa6f6;
  --role-bg: #2a2537;
  --role-edge: #473b5c;
}
.blue {
  --role: #7fb7eb;
  --role-bg: #1c2a35;
  --role-edge: #304654;
}
.rose {
  --role: #e9a6ad;
  --role-bg: #332529;
  --role-edge: #523b40;
}
.role-symbol {
  width: 31px;
  height: 31px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--role-bg);
  color: var(--role);
  border: 1px solid var(--role-edge);
}
.role-symbol .icon {
  width: 15px;
  height: 15px;
}
.participant b,
.participant small {
  display: block;
}
.participant b {
  font-size: 12px;
  font-weight: 560;
  line-height: 16px;
}
.participant small {
  font-size: 11px;
  color: var(--muted);
  line-height: 15px;
}
.participant > i {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: var(--role);
  border-radius: 50%;
  opacity: 0.83;
}
.timing-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
}
.timing-icon {
  color: #91b7b9;
  background: #19272d;
  border: 1px solid #2e3f45;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  flex: none;
  margin-top: 1px;
}
.timing-icon .icon {
  width: 12px;
  height: 12px;
}
.timing-row p {
  line-height: 1.4;
}
.timing-row b {
  display: block;
  font-size: 11.5px;
  font-weight: 550;
}
.timing-row p span {
  display: block;
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--muted);
  margin-top: 2px;
}
.full-board {
  margin: 0 17px;
  padding: 12px 0;
}
.full-board summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #aeccc9;
}
.full-board summary .icon {
  width: 13px;
  height: 13px;
}
.full-board summary .icon:last-child {
  margin-left: auto;
}
.composer-wrap {
  background: #12191f;
  border-top: 1px solid var(--edge);
  padding: 12px;
}
.composer {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 5px;
  border: 1px solid #39464f;
  border-radius: 6px;
  background: #0d1318;
}
.composer:focus-within {
  border-color: #78bfb8;
}
.composer textarea {
  margin: 0;
  resize: none;
  flex: 1;
  min-width: 0;
  min-height: 28px;
  max-height: 110px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 16px;
  outline: none;
  color: #dce7e9;
}
.composer textarea:focus-visible {
  outline: none;
}
.composer textarea::placeholder {
  color: #8696a0;
}
.send-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
}
.send-button .icon {
  width: 15px;
  height: 15px;
}
.send-button:disabled {
  background: #263739;
  color: #93b5b0;
}
.working {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 11px;
}
.inline-error {
  padding: 0 0 8px;
  color: #e7b292;
  font-size: 12px;
  line-height: 1.4;
}
.inline-error button {
  padding: 0;
  color: #b7d1ce;
  text-decoration: underline;
  font-size: 11px;
}
.thread,
.empty-inspector {
  padding: 16px;
}
.chat-start {
  padding: 10px 0 20px;
}
.chat-start > .icon {
  color: var(--accent);
}
.chat-start h3,
.empty-inspector h3 {
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 560;
}
.chat-start p,
.empty-inspector p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.suggestion,
.draft-notice {
  margin-top: 15px;
  border: 1px solid #35474b;
  border-radius: 5px;
  background: #152426;
  color: #b5dfd8;
  padding: 7px 9px;
  font-size: 11px;
  text-align: left;
}
.draft-notice {
  margin: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.draft-notice .icon {
  width: 14px;
  height: 14px;
}
.message {
  margin-bottom: 16px;
}
.message header {
  display: flex;
  gap: 6px;
  align-items: center;
  font: 9px / 1.4 var(--mono);
  letter-spacing: 0.07em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.message.user header {
  color: #b9a7dc;
}
.message header .icon {
  width: 12px;
  height: 12px;
}
.message p,
.review-card > p {
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.review-card {
  border: 1px solid #34504f;
  background: #121f23;
  border-radius: 6px;
  padding: 12px;
}
.review-card .eyebrow {
  font-size: 8px;
}
.review-card .eyebrow .icon {
  width: 12px;
  height: 12px;
}
.review-card > h3 {
  font-size: 16px;
  font-weight: 570;
  margin: 9px 0 4px;
}
.review-card > p,
.review-card details {
  color: #b4c4cb;
}
.review-card details {
  font-size: 11px;
  margin: 12px 0 0;
}
.review-card details summary {
  cursor: pointer;
}
.review-card details .note-section {
  margin: 0;
}
.draft-people {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 9px 0;
}
.draft-people span {
  font-size: 10px;
  background: #1e2b32;
  border: 1px solid #34434b;
  padding: 2px 5px;
  border-radius: 3px;
  color: #bfcbd1;
}
.beat-list {
  display: grid;
  gap: 11px;
  margin: 11px 0 2px;
  padding: 0;
  list-style: none;
}
.beat-list li {
  display: flex;
  gap: 7px;
  align-items: baseline;
}
.beat-list li > span {
  font: 9px var(--mono);
  color: var(--accent);
}
.beat-list b {
  font-size: 12px;
  font-weight: 550;
}
.beat-list small {
  font: 9px var(--mono);
  margin-left: 5px;
  color: var(--muted);
}
.beat-list p {
  font-size: 11.5px;
  color: #a3b2bc;
  margin: 3px 0;
}
.generate {
  width: 100%;
  margin-top: 14px;
  font-size: 12px;
}
.generate:disabled {
  opacity: 0.5;
}
.empty-stage {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: radial-gradient(ellipse at 50% 48%, #11272c, transparent 54%), #0e171e;
}
.empty-stage h2 {
  font-size: 22px;
  margin: 16px 0 8px;
}
.empty-stage p {
  font-size: 13px;
  color: var(--muted);
  max-width: 310px;
  margin-bottom: 20px;
}
.empty-radar {
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  border: 1px solid #365754;
  border-radius: 50%;
  background: #142628;
}
.empty-radar .brand-mark {
  width: 38px;
  height: 42px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
}
.library-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  text-align: left;
}
.library-card:hover,
.history-item:hover {
  border-color: #55706f;
  background: #172327;
}
.library-symbol,
.history-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #2e4f4f;
  background: #192b2e;
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.library-card > b,
.library-card b,
.history-item b {
  display: block;
  font-weight: 550;
  font-size: 14px;
}
.library-card small,
.history-item small {
  color: var(--muted);
  font-size: 11px;
}
.library-card small i {
  font-style: normal;
  margin: 0 3px;
}
.library-card > .icon,
.history-item > .icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.load-more {
  margin-top: 18px;
}
.library-empty {
  color: var(--muted);
}
.modal {
  width: min(440px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  padding: 0;
  background: #11191f;
  color: var(--ink);
  border: 1px solid #3c4b55;
  border-radius: 10px;
  box-shadow: 0 24px 100px #0008;
}
.modal::backdrop {
  background: #03070bd1;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--edge);
}
.modal-head h2 {
  font-size: 17px;
}
.modal-body {
  padding: 17px 18px;
}
.modal-body > p {
  font-size: 13px;
  line-height: 1.6;
  color: #b3c0c8;
  margin-bottom: 13px;
}
.modal-body strong {
  font-weight: 560;
  color: #dce8ea;
}
.modal-body .modal-context {
  color: var(--muted);
  font-size: 12px;
}
.history-list {
  display: grid;
  gap: 7px;
}
.history-item {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--edge);
  border-radius: 5px;
}
.history-item .history-mark {
  width: 31px;
  height: 31px;
}
.history-item .history-mark .icon {
  width: 15px;
  height: 15px;
}
.history-item .viewing {
  margin-left: auto;
  color: var(--accent);
  font: 9px var(--mono);
}
.settings-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: #151f26;
  margin-bottom: 15px;
}
.settings-status > .icon {
  color: var(--accent);
}
.settings-status b,
.settings-status span {
  display: block;
}
.settings-status b {
  font-size: 13px;
}
.settings-status span {
  font-size: 11px;
  color: var(--muted);
}
.settings-status > i {
  margin-left: auto;
}
.new-form label {
  display: block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 540;
}
.new-form label small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
  font-size: 10px;
}
.new-form input,
.new-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #33434d;
  border-radius: 5px;
  background: #0b1217;
  color: var(--ink);
  padding: 9px 10px;
  font-size: 13px;
  resize: vertical;
}
.new-form .setup-hint {
  font-size: 11px;
}
.access-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 38%, #11272c, transparent 57%);
}
.access-panel {
  width: min(100%, 390px);
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid #36504f;
  border-radius: 10px;
  background: #11191f;
}
.access-panel h1 {
  margin-top: 12px;
  font-size: clamp(23px, 5vw, 28px);
}
.access-panel p {
  margin: 8px 0 16px;
  color: var(--muted);
}
.access-panel .inline-error {
  color: #e7b292;
}
.settings-actions,
.operation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.operation-notice {
  margin-bottom: 9px;
  padding: 8px 9px;
  border: 1px solid #355657;
  border-radius: 5px;
  background: #152426;
  color: #b5dfd8;
  font-size: 12px;
}
.operation-actions:not(:empty) {
  margin-top: 7px;
}
.operation-actions .button {
  height: auto;
  min-height: 30px;
  padding: 4px 7px;
  font-size: 11px;
}
.modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}
.toast {
  position: fixed;
  bottom: 19px;
  left: 50%;
  transform: translate(-50%, 12px);
  max-width: min(560px, calc(100% - 28px));
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  background: #233337;
  border: 1px solid #486562;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 12px;
  box-shadow: 0 5px 26px #0006;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.fatal {
  margin: 10vh auto;
  padding: 30px;
  max-width: 500px;
}
.fatal p {
  margin: 15px 0;
}
body.is-presenting {
  overflow: hidden;
}
.stage.presenting,
.stage:fullscreen {
  position: fixed;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  z-index: 50;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  aspect-ratio: auto;
  border: 0;
}
.presenting canvas {
  position: relative;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.presenting .camera-label {
  top: 3vw;
  left: 3vw;
}
.presenting .stage-edges {
  grid-row: 1;
  inset: 1.6vw;
}
.presenting .stage-caption {
  position: relative;
  inset: auto;
  grid-row: 2;
  width: 100%;
  min-height: clamp(105px, 14dvh, 150px);
  max-height: 40dvh;
  overflow: auto;
  pointer-events: auto;
  max-width: none;
  padding: clamp(12px, 2vh, 22px) clamp(20px, 4vw, 76px);
  border-top: 1px solid #2b4149;
  background: linear-gradient(110deg, #10212b, #0b1720);
}
.presenting .stage-caption strong {
  font-size: clamp(22px, 2.2vw, 39px);
}
.presenting .stage-caption p {
  display: block;
  font-size: clamp(14px, 1.25vw, 21px);
  line-height: 1.5;
  color: #dae4e8;
  margin: 4px 0;
}
.presenting .shot-kicker {
  font-size: 12px;
  line-height: 1.5;
}
.presenting .present-controls {
  display: flex;
  gap: 6px;
  position: absolute;
  right: 2.5vw;
  top: 2.5vh;
}
.present-controls .icon-button {
  width: 35px;
  height: 35px;
  background: #101d25cc;
  border: 1px solid #354850;
}
@media (min-width: 1550px) {
  .workspace {
    padding-top: 38px;
  }
  .title-row {
    margin-bottom: 29px;
  }
  .studio-grid {
    gap: 23px;
  }
  .stage {
    aspect-ratio: 2.18;
  }
  .shot-mini {
    height: 60px;
  }
  .note-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .participants {
    gap: 15px;
  }
  .inspector-heading,
  .preview-heading {
    height: 56px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    padding: 24px 22px;
  }
  .header-inner {
    padding: 0 22px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 283px;
    gap: 14px;
  }
  .stage {
    min-height: 300px;
  }
  .shot-strip {
    grid-auto-columns: minmax(86px, calc((100% - (var(--shots) - 1) * 6px) / var(--shots)));
    gap: 6px;
  }
  .shot-card-caption {
    padding: 6px;
  }
  .shot-card-caption b {
    font-size: 10px;
  }
  .sequence-panel {
    padding: 13px 12px;
  }
  .note-section {
    padding: 13px 0;
  }
  .participants {
    gap: 9px;
  }
  .note-section > p {
    font-size: 12px;
  }
  .stage-caption {
    bottom: 13px;
    left: 15px;
  }
  .transport {
    padding: 0 9px;
    gap: 8px;
  }
}
@media (max-width: 830px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 246px;
    gap: 12px;
  }
  .workspace {
    padding: 20px 16px;
  }
  .header-inner {
    padding: 0 16px;
  }
  .inspector-tabs {
    margin: 0 10px;
  }
  .note-section,
  .full-board {
    margin-left: 12px;
    margin-right: 12px;
  }
  .inspector-heading,
  .preview-heading {
    padding: 0 13px;
  }
  .shot-strip {
    grid-auto-columns: 95px;
  }
  .sequence-panel {
    margin-top: 12px;
  }
  .stage {
    min-height: 285px;
  }
  .stage-caption strong {
    font-size: 15px;
  }
  .camera-label {
    top: 12px;
    left: 14px;
  }
  .title-row {
    margin-bottom: 17px;
  }
  .transport {
    gap: 6px;
  }
  .transport-buttons {
    gap: 1px;
  }
  .composer-wrap {
    padding: 8px;
  }
}
@media (max-width: 700px) {
  .app-header {
    height: 57px;
  }
  .brand {
    font-size: 21px;
    gap: 7px;
  }
  .brand-mark {
    width: 27px;
    height: 30px;
  }
  .header-divider {
    margin: 0 11px;
  }
  .app-header nav {
    gap: 1px;
  }
  .app-header nav button {
    padding: 7px 8px;
    font-size: 12px;
    gap: 5px;
  }
  .system-status {
    font-size: 0;
    gap: 0;
  }
  .settings-button {
    margin-left: 9px;
  }
  .studio-grid {
    display: flex;
    flex-direction: column;
  }
  .inspector {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    max-height: 650px;
  }
  .inspector-scroll {
    height: auto;
    min-height: 0;
    flex: 1;
  }
  .inspector-tabs {
    margin: 0 13px;
  }
  .note-section,
  .full-board {
    margin-left: 15px;
    margin-right: 15px;
  }
  .inspector-heading {
    min-height: 45px;
  }
  .inspector .composer-wrap {
    padding: 12px;
  }
  .title-actions {
    gap: 6px;
  }
  .button {
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }
  .plan-meta {
    font-size: 10px;
    gap: 7px;
  }
  .plan-meta .icon {
    width: 12px;
    height: 12px;
  }
  .stage {
    aspect-ratio: 1.8;
    min-height: 240px;
  }
  .title-row {
    align-items: flex-start;
  }
  .title-actions {
    padding-top: 19px;
  }
  .plan-title h1 {
    font-size: clamp(23px, 5vw, 30px);
    margin: 7px 0;
  }
  .headline {
    gap: 7px;
  }
  .version-pill {
    font-size: 9px;
    padding: 1px 4px;
  }
  .shot-strip {
    grid-auto-columns: minmax(93px, calc((100% - (var(--shots) - 1) * 6px) / var(--shots)));
  }
  .shot-card-caption b {
    font-size: 11px;
  }
  .empty-stage {
    min-height: 310px;
  }
  .inspector .inspector-light {
    margin-left: auto;
  }
}
@media (max-width: 480px) {
  .workspace {
    padding: 19px 12px;
  }
  .header-inner {
    padding: 0 12px;
  }
  .app-header nav button {
    font-size: 11px;
  }
  .app-header nav button .icon {
    width: 13px;
    height: 13px;
  }
  .system-status {
    display: none;
  }
  .settings-button {
    margin-left: auto;
  }
  .title-row {
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
  }
  .title-actions {
    padding-top: 0;
  }
  .title-actions .button {
    height: 31px;
  }
  .preview-heading,
  .inspector-heading {
    height: 44px;
  }
  .stage {
    min-height: 224px;
    aspect-ratio: 1.72;
  }
  .stage-caption {
    max-width: 75%;
    bottom: 10px;
    left: 13px;
  }
  .shot-kicker {
    font-size: 8px;
  }
  .stage-caption strong {
    font-size: 14px;
  }
  .transport {
    height: 47px;
  }
  .transport-divider {
    display: none;
  }
  .transport .icon-button {
    width: 23px;
  }
  .transport .play-button {
    width: 28px;
    height: 28px;
  }
  .shot-mini {
    height: 43px;
  }
  .sequence-panel {
    padding: 11px;
  }
  .section-line {
    margin-bottom: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0s;
  }
}
/* The shot caption occupies a separate band so camera labels never cover the team labels. */
.stage:not(.presenting) {
  --caption-height: 58px;
}
.stage:not(.presenting) canvas {
  height: calc(100% - var(--caption-height));
}
.stage:not(.presenting) .stage-edges {
  bottom: calc(var(--caption-height) + 10px);
}
.stage:not(.presenting) .stage-caption {
  position: absolute;
  inset: auto 0 0;
  max-width: none;
  height: var(--caption-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  padding: 6px 17px;
  background: #101d24;
  border-top: 1px solid #27363e;
  text-shadow: none;
}
.stage:not(.presenting) .shot-kicker {
  grid-row: span 2;
  align-self: center;
  margin: 0;
  padding: 2px 11px 2px 0;
  border-right: 1px solid #35464c;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #90b1b2;
}
.stage:not(.presenting) .shot-kicker span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.035em;
}
.stage:not(.presenting) .stage-caption strong {
  font-size: 14px;
  font-weight: 540;
}
.stage:not(.presenting) .stage-caption p {
  display: block;
  color: #a9bac4;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 701px) and (max-height: 850px) {
  .app-header {
    height: 59px;
  }
  .workspace {
    padding-top: 21px;
    padding-bottom: 20px;
  }
  .title-row {
    margin-bottom: 18px;
  }
  .preview-heading,
  .inspector-heading {
    height: 44px;
  }
  .stage {
    aspect-ratio: auto;
    height: clamp(290px, calc(100dvh - 458px), 400px);
  }
  .transport {
    height: 49px;
  }
  .sequence-panel {
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: 13px;
  }
  .section-line {
    margin-bottom: 10px;
  }
  .shot-mini {
    height: 41px;
  }
  .shot-card-caption {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .participants {
    gap: 9px;
  }
}
@media (max-width: 700px) {
  .stage:not(.presenting) {
    --caption-height: 52px;
    min-height: 260px;
  }
  .stage:not(.presenting) .stage-caption {
    padding: 6px 11px;
    column-gap: 8px;
  }
}
@media (max-width: 700px) {
  .stage:not(.presenting) {
    --caption-height: 64px;
    min-height: 272px;
  }
  .stage:not(.presenting) .stage-caption p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
  .shot-strip {
    grid-auto-columns: minmax(121px, calc((100% - (var(--shots) - 1) * 6px) / var(--shots)));
  }
}
