/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #0d0e10;
  --panel: #151719;
  --panel-muted: #202327;
  --panel-raised: #1a1d21;
  --control: #1e2227;
  --control-hover: #252a30;
  --line: #2b3036;
  --line-strong: #424a53;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --accent: #35c7a3;
  --accent-strong: #7ee3ca;
  --accent-soft: #11382f;
  --mac-highlight-blue: #0a84ff;
  --warning: #ffd166;
  --warning-bg: #322713;
  --danger: #ff9a9a;
  --danger-bg: #2b171a;
  --danger-line: #7d3338;
  --sidebar: #090a0c;
  --sidebar-muted: #8994a1;
  --sidebar-active: #ecf6ff;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  min-height: 100%;
  color: var(--text);
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  letter-spacing: 0;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

button, input, select, textarea {
  font: inherit;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

* {
  scrollbar-color: var(--line-strong) var(--panel);
}

button {
  cursor: pointer;
}

.shell {
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .16s;
  display: grid;
}

.sidebarToggleInput {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: fixed;
}

.shell.sidebarCollapsed, html[data-sidebar-collapsed="true"] .shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

.shell:has(.sidebarToggleInput:checked) {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  height: 100vh;
  padding: 14px 10px;
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.sidebarTop {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  display: flex;
}

.brand {
  color: #fff;
  cursor: pointer;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  display: flex;
}

.brandText {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
}

.iconButton {
  border: 1px solid var(--line-strong);
  background: var(--control);
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: inline-grid;
}

.expandIcon {
  display: none;
}

.navList {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.navItem {
  min-width: 0;
  height: 40px;
  color: var(--sidebar-muted);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  text-decoration: none;
  display: flex;
}

.navItem:hover, .navItem.active {
  background: var(--control-hover);
  color: var(--sidebar-active);
}

.navItem svg {
  flex: none;
}

.navItem span {
  white-space: nowrap;
  overflow: hidden;
}

.shell.sidebarCollapsed .brand, .shell.sidebarCollapsed .navItem span, html[data-sidebar-collapsed="true"] .shell .brand, html[data-sidebar-collapsed="true"] .shell .navItem span {
  display: none;
}

.shell:has(.sidebarToggleInput:checked) .brand {
  display: none;
}

.shell:has(.sidebarToggleInput:checked) .navItem span {
  display: none;
}

.shell.sidebarCollapsed .sidebarTop, html[data-sidebar-collapsed="true"] .shell .sidebarTop {
  flex-direction: column;
  align-items: center;
}

.shell:has(.sidebarToggleInput:checked) .sidebarTop {
  flex-direction: column;
  align-items: center;
}

.shell.sidebarCollapsed .navItem, html[data-sidebar-collapsed="true"] .shell .navItem {
  justify-content: center;
  padding: 0;
}

.shell:has(.sidebarToggleInput:checked) .navItem {
  justify-content: center;
  padding: 0;
}

.shell.sidebarCollapsed .collapseIcon, html[data-sidebar-collapsed="true"] .shell .collapseIcon {
  display: none;
}

.shell:has(.sidebarToggleInput:checked) .collapseIcon {
  display: none;
}

.shell.sidebarCollapsed .expandIcon, html[data-sidebar-collapsed="true"] .shell .expandIcon {
  display: block;
}

.shell:has(.sidebarToggleInput:checked) .expandIcon {
  display: block;
}

.sidebarBlankToggle {
  cursor: pointer;
  flex: auto;
  min-height: 48px;
  display: block;
}

.content {
  min-width: 0;
}

.page {
  flex-direction: column;
  gap: 18px;
  width: min(1180px, 100vw - 232px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px;
  display: flex;
}

.shell.sidebarCollapsed .page, html[data-sidebar-collapsed="true"] .shell .page {
  width: min(1180px, 100vw - 72px);
}

.shell:has(.sidebarToggleInput:checked) .page {
  width: min(1180px, 100vw - 72px);
}

.pageHeader {
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  min-height: 54px;
  display: flex;
}

.pageHeader h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.pageHeader p {
  color: var(--muted);
  margin: 6px 0 0;
}

.workersPage {
  background: var(--bg);
  min-height: 100vh;
  padding: 22px;
}

.workersHeader {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  display: flex;
}

.workersHeader h1 {
  margin: 0;
  font-size: 24px;
}

.workersHeader p {
  color: var(--muted);
  margin: 6px 0 0;
}

.workersSummary {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  min-width: min(520px, 55vw);
  display: grid;
}

.workersSummary > div, .workerMetricBlock {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  display: flex;
}

.workersSummary strong, .workerMetricBlock strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.workersSummary span, .workerMetricBlock span, .workerMetricBlock small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.workersSection {
  margin-top: 18px;
}

.workersSectionHeader {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  display: flex;
}

.workersSectionHeader h2 {
  margin: 0;
  font-size: 15px;
}

.workersSectionHeader span {
  color: var(--muted);
  font-size: 12px;
}

.workerCardGrid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  display: grid;
}

.workerCard {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.workerCardHeader {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.workerCardHeader h2 {
  margin: 0;
  font-size: 16px;
}

.workerCardHeader p, .workerCardMeta, .workerCurrentJob span, .workerNote {
  color: var(--muted);
  font-size: 12px;
}

.workerCardHeader p {
  margin: 4px 0 0;
}

.workerStatusPill {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  flex: none;
  padding: 3px 7px;
  font-size: 11px;
}

.workerStatusPill.online {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.workerStatusPill.offline {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.workerStatusPill.remote {
  border-color: var(--line-strong);
  background: var(--panel-muted);
}

.workerCardMeta {
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.workerCardMeta span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.workerCurrentJobList {
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.workerCurrentJob {
  border: 1px solid var(--line);
  background: var(--panel-raised);
  border-radius: 8px;
  flex-direction: column;
  gap: 5px;
  min-height: 54px;
  padding: 9px;
  display: flex;
}

.workerCurrentJob strong, .workerCurrentJob span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.workerCurrentJob.empty {
  color: var(--muted);
  justify-content: center;
  margin-top: 10px;
}

.workerMetricsGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  display: grid;
}

.workerNote {
  margin: 10px 0 0;
}

.workerRunTable {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  overflow: auto;
}

.workerRunHeader, .workerRunRow {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 130px minmax(260px, 1fr) 82px 76px 90px 90px 72px 170px;
  align-items: center;
  gap: 10px;
  min-width: 980px;
  padding: 8px 10px;
  font-size: 12px;
  display: grid;
}

.workerRunHeader {
  background: var(--panel-raised);
  color: var(--muted);
  font-weight: 700;
  position: sticky;
  top: 0;
}

.workerRunRow:last-child {
  border-bottom: 0;
}

.workerRunRow span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.workersEmpty {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
}

.headerMetrics {
  color: var(--muted);
  gap: 8px;
  font-size: 14px;
  display: flex;
}

.headerMetrics span {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 10px;
}

.toolbar {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  display: flex;
}

.segmented {
  min-width: 86px;
  height: 34px;
  color: var(--muted);
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
}

.segmented.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.searchBox {
  min-width: 260px;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 14px;
  display: flex;
}

.searchBox input, .formPanel input, .formPanel select {
  border: 1px solid var(--line);
  background: var(--control);
  width: 100%;
  height: 38px;
  color: var(--text);
  border-radius: 8px;
  padding: 0 10px;
}

.tablePanel, .formPanel, .queuePanel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.tableHeader, .tableRow {
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  min-height: 44px;
  color: var(--text);
  text-align: left;
  background: none;
  align-items: center;
  display: grid;
}

.tableHeader {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tableRow:last-child {
  border-bottom: 0;
}

.tableRow:hover {
  background: var(--control-hover);
}

.episodeGrid {
  grid-template-columns: 120px minmax(220px, 1fr) 100px 110px;
  gap: 16px;
  padding: 0 16px;
}

.showGrid {
  grid-template-columns: 92px minmax(260px, 1fr) 160px 110px;
  gap: 16px;
  padding: 0 16px;
}

.showLink {
  text-decoration: none;
}

.mono {
  font-family: SFMono-Regular, Consolas, Liberation Mono, monospace;
  font-size: 13px;
}

.status {
  border-radius: 999px;
  justify-content: center;
  min-width: 64px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
}

.status.done {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status.review {
  background: var(--warning-bg);
  color: var(--warning);
}

.status.pending {
  background: var(--panel-muted);
  color: var(--muted);
}

.backLink {
  color: var(--muted);
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
}

.backLink:hover {
  color: var(--text);
}

.episodeRail {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  gap: 12px;
  padding: 10px;
  display: flex;
  overflow-x: auto;
}

.episodeGroup {
  flex: none;
  align-items: center;
  gap: 6px;
  display: flex;
}

.seasonLabel, .episodeChip {
  white-space: nowrap;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
}

.seasonLabel {
  border: 1px solid var(--line-strong);
  background: var(--panel-muted);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.episodeChip {
  border: 1px solid var(--line);
  background: var(--control);
  color: var(--muted);
}

.episodeChip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.shotGrid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  align-items: start;
  gap: 12px;
  display: grid;
}

.shotTile {
  background: none;
  border: 0;
  min-width: 0;
  padding: 0;
}

.shotThumb {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--panel-muted);
  border-radius: 8px;
  width: 100%;
  display: block;
  overflow: hidden;
}

.shotThumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.shotTile:hover .shotThumb {
  border-color: var(--accent);
}

.browseWorkspace {
  background: var(--panel);
  width: 100%;
  min-width: 0;
  height: 100vh;
  display: grid;
  overflow: hidden;
}

.browsePane {
  background: var(--panel);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.showPane, .shotPane {
  border-right: 1px solid var(--line);
}

.showPane {
  flex-direction: column;
  display: flex;
}

.browsePaneHeader {
  border-bottom: 1px solid var(--line);
  align-items: center;
  min-height: 52px;
  padding: 8px;
  display: flex;
}

.browsePaneHeader h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.showTypeTabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  display: grid;
}

.showTypeTab {
  border: 1px solid var(--line);
  background: var(--control);
  min-width: 0;
  height: 34px;
  color: var(--muted);
  text-transform: lowercase;
  border-radius: 8px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
}

.showTypeTab:hover, .showTypeTab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.showTable {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.showTableHeader, .showTableRow {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 8px 10px;
  display: grid;
}

.showTableHeader {
  z-index: 1;
  background: var(--panel-raised);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  position: sticky;
  top: 0;
}

.showTableRow {
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.showTableRow:hover, .showTableRow.active {
  background: var(--accent-soft);
}

.showTableRow span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.showListTitle {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.showListTitle > span:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.showEpisodeCount {
  color: var(--muted);
  opacity: .5;
  flex: none;
  font-size: 12px;
}

.showStatusTag {
  text-transform: lowercase;
  border-radius: 999px;
  flex: none;
  max-width: 82px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.showStatusTag.pending {
  border: 1px solid var(--warning);
  background: var(--warning-bg);
  color: var(--warning);
}

.showStatusTag.processing {
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.showSourceFooter {
  border-top: 1px solid var(--line);
  padding: 8px;
}

.showAddSourceButton, .sourcePathForm button {
  border: 1px solid var(--line);
  background: var(--control);
  height: 34px;
  color: var(--text);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.showAddSourceButton {
  gap: 6px;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
}

.showAddSourceButton:hover, .sourcePathForm button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.sourcePathForm {
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  gap: 6px;
  display: grid;
}

.sourcePathForm input {
  border: 1px solid var(--line);
  background: var(--control);
  min-width: 0;
  height: 34px;
  color: var(--text);
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
}

.sourcePathForm button:disabled, .sourcePathForm input:disabled {
  opacity: .55;
}

.sourcePathStatus {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
  font-size: 12px;
  overflow: hidden;
}

.columnSplitter {
  background: linear-gradient(90deg, transparent 0, transparent 2px, var(--line) 2px, var(--line) 4px, transparent 4px);
  cursor: col-resize;
  width: 6px;
}

.columnSplitter:hover {
  background: linear-gradient(90deg, transparent 0, transparent 1px, var(--accent) 1px, var(--accent) 5px, transparent 5px);
}

.browseEmptyState {
  color: var(--muted);
  padding: 14px;
  font-size: 13px;
}

.shotPane {
  flex-direction: column;
  display: flex;
  position: relative;
}

.shotPaneTop {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px;
  display: flex;
}

.browseEpisodeRail {
  flex: auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
  overflow-x: auto;
}

.episodeGroupInline {
  flex: none;
  align-items: center;
  gap: 5px;
  display: flex;
}

.episodeSeasonLabel {
  height: 32px;
  color: var(--text);
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
}

.episodeButton {
  border: 1px solid var(--line);
  background: var(--control);
  height: 32px;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 8px;
  flex: none;
  padding: 0 9px;
}

.episodeButton:hover, .episodeButton.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.shotCount {
  color: var(--muted);
  flex: none;
  font-size: 12px;
}

.browseShotGrid {
  --shot-tile-size: 160px;
  grid-template-columns: repeat(auto-fill, var(--shot-tile-size));
  grid-auto-rows: auto;
  justify-content: start;
  align-items: start;
  gap: 2px;
  min-height: 0;
  padding: 2px;
  display: grid;
  overflow: auto;
}

.shotScrollButtons {
  z-index: 8;
  gap: 6px;
  display: flex;
  position: absolute;
  top: 12px;
  right: 12px;
}

.shotPane.hasEpisodeRail .shotScrollButtons {
  top: 64px;
}

.shotScrollButtons button, .previewScrollButtons button {
  color: #090a0c;
  background: #f5f7faf5;
  border: 1px solid #ffffffc7;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  display: inline-flex;
  box-shadow: 0 10px 24px #00000061;
}

.shotScrollButtons button svg, .previewScrollButtons button svg {
  stroke-width: 3px;
}

.shotScrollButtons button:hover, .previewScrollButtons button:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
}

.browseShotTile {
  width: var(--shot-tile-size);
  height: var(--shot-tile-size);
  background: var(--panel-muted);
  border: 0;
  border-radius: 0;
  min-width: 0;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.sceneStartBreak {
  grid-column: 1 / -1;
  align-items: center;
  min-height: 24px;
  padding: 7px 0 3px;
  display: flex;
}

.sceneStartBreak span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.browseShotTile img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.browseShotTile:after {
  z-index: 1;
  content: "";
  opacity: .2;
  background: #000;
  position: absolute;
  inset: 0;
}

.browseShotTile:hover, .browseShotTile.active {
  outline: none;
}

.browseShotTile:hover:before {
  z-index: 3;
  border: 2px solid var(--accent);
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.browseShotTile.active:before, .browseShotTile.active:hover:before {
  z-index: 3;
  border: 3px solid var(--mac-highlight-blue);
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px #ffffffd9, 0 0 0 1px #00000073;
}

.browseShotTile.softDeleted img {
  filter: grayscale();
}

.browseShotTile.softDeleted {
  opacity: .5;
}

.browseShotTile.softDeleted:after {
  opacity: .2;
}

.shotDeletedCross {
  z-index: 2;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.shotDeletedCross:before, .shotDeletedCross:after {
  content: "";
  transform-origin: center;
  background: #ffffff80;
  width: 142%;
  height: 1px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.shotDeletedCross:before {
  transform: translate(-50%, -50%)rotate(45deg);
}

.shotDeletedCross:after {
  transform: translate(-50%, -50%)rotate(-45deg);
}

.shotDuration {
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  top: 5px;
  right: 5px;
}

.browseShotTile.durationLong .shotDuration, .createShotThumb.durationLong .shotDuration {
  color: #64d2ff;
}

.browseShotTile.durationShort .shotDuration, .createShotThumb.durationShort .shotDuration {
  color: #ff6b6b;
}

.shotSubtitleOverlay {
  z-index: 2;
  text-align: left;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  max-height: 58%;
  display: flex;
  position: absolute;
  bottom: 5px;
  left: 6px;
  right: 6px;
  overflow: hidden;
}

.shotSubtitleLine {
  color: #fff;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 200;
  line-height: 1.15;
  display: block;
  overflow: hidden;
}

.previewPane {
  min-width: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.previewPaneScroll {
  scrollbar-gutter: stable;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding-bottom: 86px;
  overflow: auto;
}

.previewScrollButtons {
  z-index: 8;
  gap: 6px;
  width: max-content;
  display: flex;
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.previewVideoWrap {
  border-bottom: 1px solid var(--line);
  contain: layout paint;
  background: #0b0f14;
  place-items: center;
  width: 100%;
  min-height: 0;
  display: grid;
  position: relative;
}

.previewVideo {
  object-fit: contain;
  background: #0b0f14;
  width: 100%;
  height: 100%;
  display: block;
}

.continuousPlayButton {
  z-index: 3;
  color: #fff;
  background: #00000080;
  border: 1px solid #ffffff59;
  border-radius: 999px;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  position: absolute;
  top: 10px;
  right: 10px;
}

.continuousPlayButton:hover, .continuousPlayButton.active {
  background: #000000b8;
  border-color: #ffffffa6;
}

.nextShotPreload {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
}

.previewInfo {
  min-height: auto;
  padding: 14px;
  overflow: visible;
}

.previewFileMeta {
  gap: 5px;
  min-width: 0;
  margin-bottom: 14px;
  display: grid;
}

.previewFilePath, .previewFileName {
  overflow-wrap: anywhere;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  line-height: 1.35;
}

.previewFilePath {
  color: var(--muted);
  font-size: 12px;
}

.previewFileName {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.previewInfo dl {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  display: grid;
}

.previewInfo dl div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.previewInfo dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.previewInfo dd {
  margin: 4px 0 0;
  font-size: 14px;
}

.selectedSubtitles {
  margin-top: 18px;
}

.selectedSubtitles h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.selectedSubtitles ol {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.selectedSubtitles li {
  border-bottom: 1px solid var(--line);
  gap: 4px;
  padding-bottom: 8px;
  display: grid;
}

.subtitleTime {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.subtitleText {
  font-size: 14px;
  line-height: 1.35;
}

.selectedSubtitles p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.previewActions {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
}

.sceneStartButton {
  border: 1px solid var(--line);
  background: var(--control);
  height: 34px;
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.sceneStartButton:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.sceneStartButton:disabled {
  cursor: default;
  opacity: .55;
}

.previewActions span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.dangerActionButton {
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  height: 34px;
  color: var(--danger);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.dangerActionButton:hover:not(:disabled) {
  border-color: var(--danger);
  background: #3a1d21;
}

.dangerActionButton:disabled {
  cursor: default;
  opacity: .55;
}

.multiShotPanel {
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 18px;
  display: flex;
}

.multiShotHeader {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  display: flex;
}

.multiShotHeader h2 {
  margin: 0;
  font-size: 22px;
}

.multiShotHeader span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.showInfoPanel {
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 18px;
  display: flex;
}

.infoBlock {
  border-bottom: 1px solid var(--line);
  gap: 10px;
  padding-bottom: 16px;
  display: grid;
}

.episodeInfoBlock {
  padding-bottom: 60px;
}

.showInfoBlock {
  gap: 12px;
}

.showTitleLine {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  display: grid;
}

.showInfoTitle {
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  display: flex;
}

.showInfoTitle span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.showInfoTitle small {
  color: color-mix(in srgb, var(--text), transparent 50%);
  flex: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.showTitleActions {
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.showWikiButton, .showWikiLink, .showEmbeddingButton {
  border: 1px solid var(--line);
  background: var(--control);
  min-width: 34px;
  height: 25px;
  color: var(--muted);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
}

.showWikiButton:hover, .showWikiLink:hover, .showEmbeddingButton:hover {
  border-color: var(--line-strong);
  background: var(--control-hover);
  color: var(--text);
}

.showEmbeddingButton {
  border-radius: 6px;
  gap: 5px;
}

.showEmbeddingButton:disabled {
  cursor: default;
  opacity: .6;
}

.showWikiButton {
  border-color: var(--warning);
  background: var(--warning-bg);
  color: var(--warning);
}

.showWikiButton:hover {
  border-color: var(--warning);
  background: color-mix(in srgb, var(--warning-bg), white 8%);
  color: var(--warning);
}

.showWikiLink.namu, .showWikiLink.wikipedia {
  width: 30px;
  min-width: 30px;
  padding: 0;
}

.showWikiIcon {
  object-fit: contain;
  width: 17px;
  height: 17px;
  display: block;
}

.showMotionStatus {
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  display: flex;
}

.showMotionStatus strong {
  color: var(--danger);
  font-size: 12px;
}

.showWikiForm {
  grid-template-columns: minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  display: inline-grid;
}

.showWikiForm input {
  border: 1px solid var(--line-strong);
  background: var(--control);
  min-width: 0;
  height: 25px;
  color: var(--text);
  border-radius: 999px;
  outline: none;
  padding: 3px 9px;
  font-size: 12px;
}

.showWikiForm input:focus {
  border-color: var(--mac-highlight-blue);
}

.showWikiForm button {
  border: 1px solid var(--line);
  background: var(--control);
  height: 25px;
  color: var(--text);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}

.showWikiForm button[type="submit"] {
  border-color: color-mix(in srgb, var(--mac-highlight-blue), white 12%);
  background: var(--mac-highlight-blue);
  color: #fff;
}

.showWikiForm button:disabled {
  cursor: default;
  opacity: .55;
}

.showWikiForm strong {
  color: var(--danger);
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
}

.episodeTitleLine {
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: start;
  gap: 8px;
  display: grid;
}

.episodeInfoTitle {
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  display: flex;
}

.episodeInfoTitle span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.episodeInfoTitle small {
  color: color-mix(in srgb, var(--text), transparent 50%);
  flex: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.episodeEditIcon {
  border: 1px solid var(--line);
  background: var(--control);
  width: 30px;
  height: 30px;
  color: var(--muted);
  border-radius: 6px;
  place-items: center;
  display: inline-grid;
}

.episodeEditIcon:hover {
  border-color: var(--line-strong);
  background: var(--control-hover);
  color: var(--text);
}

.episodeTitleTextarea, .showTitleTextarea, .showSummaryEditor textarea, .episodeSummaryEditor textarea {
  resize: vertical;
  border: 1px solid var(--line-strong);
  background: var(--control);
  width: 100%;
  min-width: 0;
  color: var(--text);
  border-radius: 6px;
  outline: none;
  padding: 9px 10px;
  line-height: 1.45;
}

.episodeTitleTextarea:focus, .showTitleTextarea:focus, .showSummaryEditor textarea:focus, .episodeSummaryEditor textarea:focus {
  border-color: var(--mac-highlight-blue);
}

.showTitleTextarea, .episodeTitleTextarea {
  font-size: 16px;
  font-weight: 700;
}

.showSummaryEditor, .episodeSummaryEditor, .episodeSummaryText {
  gap: 8px;
  display: grid;
}

.showInfoBody:after {
  clear: both;
  content: "";
  display: block;
}

.showInfoThumbButton {
  float: right;
  cursor: zoom-in;
  background: none;
  border: 0;
  width: 50%;
  min-width: 120px;
  max-width: 360px;
  margin: 0 0 12px 16px;
  padding: 0;
}

.showInfoThumb {
  border: 1px solid var(--line);
  background: var(--panel-raised);
  object-fit: cover;
  border-radius: 6px;
  width: 100%;
  height: auto;
  display: block;
}

.showSummaryText {
  margin: 0;
}

.showLocalizedTitles {
  min-width: 0;
  color: var(--muted);
  white-space: normal;
  font-size: 13px;
  line-height: 1.35;
}

.showSummaryText, .episodeSummaryText p {
  color: var(--text);
  white-space: pre-wrap;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.showSummaryText.empty, .episodeSummaryText p.empty {
  color: var(--muted);
}

.episodeFilename {
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  color: var(--muted) !important;
  white-space: normal !important;
  font-size: 12px !important;
}

.showCharacters {
  gap: 10px;
  margin-top: 40px;
  display: grid;
}

.showCharacter {
  grid-template-columns: minmax(0, 20%) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  display: grid;
}

.showCharacterImageButton {
  cursor: zoom-in;
  background: none;
  border: 0;
  width: 100%;
  padding: 0;
}

.showCharacterImage {
  aspect-ratio: 1;
  background: var(--panel-raised);
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
}

.imageLightbox {
  z-index: 1000;
  cursor: zoom-out;
  background: #00000080;
  border: 0;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.imageLightbox img {
  object-fit: contain;
  width: auto;
  max-width: calc(100vw - 48px);
  height: auto;
  max-height: calc(100vh - 48px);
  display: block;
}

.showCharacterImage.empty {
  border: 1px solid var(--line);
}

.showCharacterText {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.showCharacterText strong {
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
  display: flex;
}

.showCharacterText strong span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.showCharacterText p {
  color: var(--muted);
  -webkit-line-clamp: 4;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.showVideoPathRow {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.episodeEditActions {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.episodeEditActions button {
  border: 1px solid var(--line);
  background: var(--control);
  min-width: 72px;
  color: var(--text);
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.episodeEditActions button:last-child {
  border-color: color-mix(in srgb, var(--mac-highlight-blue), white 12%);
  background: var(--mac-highlight-blue);
  color: #fff;
}

.episodeEditActions button:disabled {
  cursor: default;
  opacity: .55;
}

.episodeEditError {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.showInfoSection {
  gap: 10px;
  display: grid;
}

.showInfoSection h3 {
  margin: 0;
  font-size: 15px;
}

.showInfoSection dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  display: grid;
}

.showInfoSection dl div {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding-bottom: 8px;
}

.showInfoSection dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.showInfoSection dd {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  margin: 4px 0 0;
  font-size: 14px;
  overflow: hidden;
}

.showInfoPath {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 12px;
}

.showInfoVideoList {
  border-top: 1px solid var(--line);
  display: grid;
}

.showInfoVideoRow {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  color: var(--muted);
  grid-template-columns: minmax(72px, 1fr) minmax(136px, 1.4fr) 86px 104px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  display: grid;
}

.showInfoVideoRow.active {
  color: var(--text);
  font-weight: 700;
}

.showInfoVideoRow span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.videoProgressCell {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.videoProgressCell span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.videoProgressTrack {
  background: color-mix(in srgb, var(--line), transparent 35%);
  border-radius: 999px;
  width: 100%;
  height: 3px;
  display: block;
  position: relative;
  overflow: hidden;
}

.videoProgressFill {
  background: var(--accent);
  position: absolute;
  inset: 0 auto 0 0;
}

.createGrid {
  grid-template-columns: minmax(360px, 520px) minmax(280px, 1fr);
  gap: 18px;
  display: grid;
}

.formPanel {
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  display: flex;
}

.formPanel label {
  color: var(--muted);
  gap: 7px;
  font-size: 14px;
  display: grid;
}

.formPanel label > span {
  font-weight: 700;
}

.formPanel fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.formPanel legend {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.choiceGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.choice {
  border: 1px solid var(--line);
  min-height: 40px;
  color: var(--text);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  display: flex;
}

.choice input {
  width: auto;
  height: auto;
}

.formActions {
  justify-content: flex-end;
  display: flex;
}

.primaryButton {
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: #06110f;
  border-radius: 8px;
  height: 38px;
  padding: 0 14px;
  font-weight: 700;
}

.queuePanel {
  min-height: 260px;
}

.queueHeader {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  display: flex;
}

.queueHeader h2 {
  margin: 0;
  font-size: 17px;
}

.queueHeader span {
  color: var(--muted);
  font-size: 14px;
}

.emptyState {
  min-height: 204px;
  color: var(--muted);
  place-items: center;
  display: grid;
}

.createWorkspace {
  background: var(--bg);
  width: 100%;
  min-width: 0;
  height: 100vh;
  display: grid;
  overflow: hidden;
}

.createThumbPane, .createSettingsPane, .createPreviewPane, .createDetailPane {
  background: var(--panel);
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.createSettingsPane, .createDetailPane, .createPreviewPane {
  background: var(--bg);
}

.createColumnSplitter {
  background: linear-gradient(90deg, transparent 0, transparent 2px, var(--line) 2px, var(--line) 4px, transparent 4px);
  cursor: col-resize;
  width: 6px;
}

.createColumnSplitter:hover {
  background: linear-gradient(90deg, transparent 0, transparent 1px, var(--accent) 1px, var(--accent) 5px, transparent 5px);
}

.createTopBar {
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px;
  display: flex;
  position: sticky;
  top: 0;
}

.projectSelect {
  border: 1px solid var(--line);
  background: var(--control);
  min-width: 0;
  height: 36px;
  color: var(--text);
  border-radius: 8px;
  flex: auto;
  padding: 0 10px;
}

.createEpisodeRail {
  white-space: nowrap;
  flex: 0 auto;
  align-items: center;
  gap: 8px;
  max-width: 58%;
  display: flex;
  overflow-x: auto;
}

.createEpisodeGroup {
  flex: none;
  align-items: center;
  gap: 5px;
  display: flex;
}

.createEpisodeSeason {
  height: 30px;
  color: var(--text);
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
}

.createEpisodeButton {
  border: 1px solid var(--line);
  background: var(--control);
  height: 30px;
  color: var(--muted);
  border-radius: 8px;
  flex: none;
  padding: 0 9px;
  font-size: 12px;
}

.createEpisodeButton:hover, .createEpisodeButton.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.createShotThumbGrid {
  --shot-tile-size: 160px;
  grid-template-columns: repeat(auto-fill, var(--shot-tile-size));
  grid-auto-rows: auto;
  justify-content: start;
  align-items: start;
  gap: 2px;
  min-height: 0;
  padding: 2px;
  display: grid;
  overflow: auto;
}

.createSceneBreak {
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 7px 0 3px;
  display: flex;
}

.createSceneBreak span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.createSceneBreak strong {
  min-width: 0;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.createShotThumb {
  width: var(--shot-tile-size);
  height: var(--shot-tile-size);
  background: var(--panel-muted);
  border: 0;
  border-radius: 0;
  min-width: 0;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.createShotThumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.createShotThumb:after {
  z-index: 1;
  content: "";
  opacity: .2;
  background: #000;
  position: absolute;
  inset: 0;
}

.createShotThumb:hover, .createShotThumb.active {
  outline: none;
}

.createShotThumb:hover:before {
  z-index: 3;
  border: 2px solid var(--accent);
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.createShotThumb.active:before, .createShotThumb.active:hover:before {
  z-index: 3;
  border: 3px solid var(--mac-highlight-blue);
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px #ffffffd9, 0 0 0 1px #00000073;
}

.createThumbPlaceholder {
  color: var(--muted);
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  position: absolute;
  inset: 0;
}

.createShotThumbText {
  z-index: 2;
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 2px #000;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  max-height: 46%;
  display: flex;
  position: absolute;
  bottom: 5px;
  left: 6px;
  right: 6px;
  overflow: hidden;
}

.createShotThumbText span {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 200;
  line-height: 1.15;
  display: block;
  overflow: hidden;
}

.assetPill {
  border: 1px solid var(--line);
  background: var(--panel-muted);
  min-width: 0;
  height: 22px;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.assetPill.ready {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.assetPill.failed {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.createPreviewShell {
  border-bottom: 1px solid var(--line);
  background: #0b0f14;
  align-content: start;
  min-width: 0;
  display: grid;
}

.createPreviewTabs {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  display: flex;
}

.createPreviewTab {
  height: 31px;
  color: var(--muted);
  background: none;
  border: 1px solid #0000;
  border-radius: 7px;
  flex: 0 auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.createPreviewTab:hover, .createPreviewTab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.createPreviewTabs .assetPill {
  margin-left: auto;
}

.createBigPreview {
  background: #0b0f14;
  place-items: center;
  width: 100%;
  min-width: 0;
  display: grid;
  overflow: hidden;
}

.createBigPreview.horizontal {
  aspect-ratio: 16 / 9;
}

.createBigPreview.vertical {
  aspect-ratio: 9 / 16;
}

.createBigPreview video, .createBigPreview img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

.createPreviewPlaceholder {
  color: #ffffffb8;
  text-align: center;
  gap: 8px;
  max-width: 80%;
  display: grid;
}

.createPreviewPlaceholder strong {
  color: #fff;
  text-transform: capitalize;
  font-size: 14px;
}

.createPreviewPlaceholder span {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 11px;
  overflow: hidden;
}

.createSettings {
  gap: 14px;
  padding: 14px;
  display: grid;
}

.createDetailHeader {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.createDetailHeader h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.createDetailHeader p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 13px;
}

.assetStatusStrip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.assetStatus {
  border: 1px solid var(--line);
  background: var(--panel-raised);
  gap: 6px;
  min-width: 0;
  padding: 8px;
  display: grid;
}

.assetStatus strong {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
}

.assetStatus .assetPill {
  justify-content: flex-start;
}

.createDetailSection {
  border: 1px solid var(--line);
  background: var(--panel-raised);
  gap: 10px;
  padding: 12px;
  display: grid;
}

.createDetailSectionHeader {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.createDetailSectionHeader h2 {
  margin: 0;
  font-size: 15px;
}

.createDetailSectionHeader span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.scriptEditor {
  gap: 10px;
  display: grid;
}

.scriptMetaInputs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.scriptEditor label {
  color: var(--muted);
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.scriptEditor input, .scriptEditor textarea {
  border: 1px solid var(--line);
  background: var(--control);
  width: 100%;
  min-width: 0;
  color: var(--text);
  border-radius: 6px;
  padding: 8px;
}

.scriptEditor textarea {
  resize: vertical;
  line-height: 1.4;
}

.scriptEditor .primaryButton {
  justify-self: end;
}

.createDetailList {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  display: grid;
}

.createDetailList div, .createPromptList div {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding-bottom: 8px;
}

.createDetailList dt, .createPromptList dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.createDetailList dd, .createPromptList dd {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  margin: 4px 0 0;
  font-size: 13px;
  overflow: hidden;
}

.createPromptList {
  gap: 10px;
  margin: 0;
  display: grid;
}

.createEmpty {
  min-height: 180px;
  color: var(--muted);
  grid-column: 1 / -1;
  place-items: center;
  font-size: 14px;
  display: grid;
}

@media (max-width: 860px) {
  :is(.shell, .shell:has(.sidebarToggleInput:checked)) {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sidebar {
    padding: 12px;
  }

  .brandText, .navItem span {
    display: none;
  }

  .sidebarTop {
    flex-direction: column;
  }

  .navItem {
    justify-content: center;
    padding: 0;
  }

  .page {
    width: calc(100vw - 64px);
    padding: 18px;
  }

  .shell:has(.sidebarToggleInput:checked) .page {
    width: calc(100vw - 64px);
    padding: 18px;
  }

  .pageHeader, .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .headerMetrics, .searchBox {
    min-width: 0;
    margin-left: 0;
  }

  .episodeGrid {
    grid-template-columns: 86px minmax(160px, 1fr) 76px 92px;
    gap: 10px;
    padding: 0 12px;
  }

  .showGrid {
    grid-template-columns: 70px minmax(190px, 1fr) 124px 88px;
    gap: 10px;
    padding: 0 12px;
  }

  .tablePanel {
    overflow-x: auto;
  }

  .tableHeader, .tableRow {
    min-width: 560px;
  }

  .shotGrid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }

  .createWorkspace {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    grid-template-columns: 1fr !important;
  }

  .createColumnSplitter {
    display: none;
  }

  .createThumbPane, .createSettingsPane, .createPreviewPane, .createDetailPane {
    overflow: visible;
  }

  .assetStatusStrip, .scriptMetaInputs, .createDetailList {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=app_globals_0jn8.0u.css.map*/