/* ==========================================================================
   Workspace primitives
   Production, Director Review, Audit and Crew are all built from these, so the
   workspaces read as one app. Production's own layout follows further down.
   ========================================================================== */

.production-view {
  --production-accent: var(--accent);
  --production-accent-soft: var(--accent-soft);
  --production-panel: var(--surface-panel);
  --production-surface: var(--surface-page);
  --production-border: var(--line);
  --production-divider: var(--line-subtle);
  --production-danger: var(--status-red);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height));
  min-height: 600px;
  position: relative;
}

.production-view [hidden] { display: none !important; }

.production-muted { color: var(--text-dim); font-size: 12px; margin: 0; }
.production-eyebrow { color: var(--text-dim); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; line-height: 12px; text-transform: uppercase; }

/* A titled page header, used by the workspaces whose project bar is still on the page (Audit, Crew). */
.production-project {
  align-items: center;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  flex: none;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 24px;
}
.production-project__heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.production-project__name { color: #fff; font-size: 20px; font-weight: 700; line-height: 24px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.production-panel {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.production-panel__header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
}
.production-panel__title { color: #fff; font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 20px; margin: 0; }

.production-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }

/* The older button class (.production-button) is drawn as .btn in base.css; it keeps its old sizing. */
.production-button { flex: initial; height: auto; line-height: normal; min-height: 32px; }

.production-select {
  appearance: none;
  background: var(--surface-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  height: 32px;
  max-width: 100%;
  padding: 0 30px 0 10px;
}
.production-select:disabled { cursor: default; opacity: 0.5; }
.production-select:focus { border-color: #52525b; outline: none; }
.production-select option { background: var(--surface-card); }
.production-select--compact { font-size: 12px; height: 26px; padding: 0 26px 0 8px; }

.production-card__name { color: var(--text); font-size: 12px; font-weight: 600; line-height: 15px; }
.production-card__version { color: rgba(161, 161, 170, 0.75); font-size: 10px; line-height: 12px; }
.production-card__meta { color: var(--text-muted); font-size: 10px; line-height: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.production-thumb--empty, .thumb-empty { align-items: center; background: var(--surface-tile); color: #52525b; display: flex; font-size: 11px; justify-content: center; }

/* A problem loading the workspace, with Retry. */
.production-status {
  align-items: center;
  background: var(--status-red-soft);
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--status-red);
  display: flex;
  flex: none;
  gap: 10px;
  padding: 10px 24px;
}
.production-status__message { flex: 1; font-size: 13px; margin: 0; }


/* No project selected. */
.production-empty {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.production-empty__title { color: #fff; font-size: 20px; font-weight: 700; margin: 0; }
.production-empty__text { color: var(--text-secondary); font-size: 14px; margin: 0; max-width: 30rem; }
.production-empty__error { color: var(--status-red); font-size: 13px; margin: 0; }

/* ==========================================================================
   Production
   ========================================================================== */

/* Recent shots across the top. */
.production-recent {
  align-items: center;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  flex: none;
  gap: 12px;
  padding: 20px 24px;
}
.production-recent__lead { align-self: stretch; display: flex; flex: none; flex-direction: column; gap: 12px; justify-content: center; width: 44px; }
.production-recent__title { margin: 0; width: 41px; }
.production-recent__row { display: flex; flex: 1; gap: 12px; min-height: 116px; min-width: 0; overflow-x: auto; padding: 2px; }
.production-recent__row > .production-muted { align-self: center; }
.production-recent__card {
  background: var(--surface-panel);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
  display: flex;
  flex: 0 0 120px;
  flex-direction: column;
  gap: 8px;
  height: 116px;
  overflow: hidden;
  padding: 0 0 8px;
  text-align: left;
  transition: border-color 0.12s, background-color 0.12s;
}
.production-recent__card:hover { border-color: #3a3a40; }
.production-recent__card.is-selected { background: linear-gradient(var(--highlight-soft), var(--highlight-soft)), var(--surface-panel); border-color: var(--highlight); }
.production-recent__thumb { border-radius: var(--radius-sm) var(--radius-sm) 0 0; display: block; flex: none; height: 67.5px; object-fit: cover; width: 100%; }
.production-recent__text { display: flex; flex-direction: column; gap: 2px; margin-top: auto; min-width: 0; padding: 0 8px; }
.production-recent__name { align-items: baseline; display: flex; gap: 4px; min-width: 0; }
/* A long name (an asset type's, say) stays on one line, with the version beside it. */
.production-recent__name .production-card__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-recent__name .production-card__version { flex: none; }

/* Minimise (shown on hover, top right) and the collapsed bar: the title in one line beside a button to bring the row back. */
.production-recent { position: relative; }
.production-recent__toggle { color: var(--accent-tab); height: 28px; width: 28px; }
.production-recent__toggle:hover:not(:disabled) { background: var(--accent-soft); }
.production-recent__collapse { opacity: 0; position: absolute; right: 16px; top: 12px; transition: opacity 0.12s, background-color 0.12s; }
.production-recent:hover .production-recent__collapse,
.production-recent__collapse:focus-visible { opacity: 1; }
.production-recent.is-collapsed { padding-bottom: 14px; padding-top: 14px; }
.production-recent.is-collapsed .production-recent__lead { align-items: center; flex-direction: row; width: auto; }
.production-recent.is-collapsed .production-recent__title { white-space: nowrap; width: auto; }
.production-recent.is-collapsed .production-recent__add { display: none; }

/* The three columns below. */
.production-layout {
  display: grid;
  flex: 1;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  min-height: 0;
}

/* Left: sequence and its shots. */
.production-shotlist {
  border-right: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
}
.production-picker { display: flex; flex-direction: column; gap: 8px; position: relative; }
.production-picker__button {
  align-items: center;
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: var(--font-ui);
  font-size: 14px;
  gap: 6px;
  height: 32px;
  justify-content: space-between;
  padding: 0 8px 0 10px;
  text-align: left;
  width: 100%;
}
.production-picker__button:hover:not(:disabled) { border-color: #3f3f46; }
.production-picker__button:disabled { cursor: default; opacity: 0.55; }
.production-picker__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-picker__caret { color: #a3a3a3; }
.production-picker__button[aria-expanded="true"] .production-picker__caret { transform: rotate(180deg); }
.production-picker__menu {
  background: var(--surface-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 100%;
  outline: none;
  overflow-y: auto;
  padding: 4px;
  position: absolute;
  top: calc(100% + 4px);
  width: max-content;
  z-index: 30;
}
/* A picker near the bottom of the page lists upwards, from the top of its button. */
.production-picker--up .production-picker__menu { bottom: calc(100% + 4px); top: auto; }
.production-picker__option { border-radius: var(--radius); color: var(--text); cursor: pointer; font-size: 13px; padding: 6px 10px; white-space: nowrap; }
.production-picker__option.is-highlighted { background: rgba(255, 255, 255, 0.06); }
.production-picker__option[aria-selected="true"] { color: var(--accent-tab); font-weight: 600; }

.production-edl { display: flex; flex-direction: column; gap: 8px; }

.production-shotlist__items { display: flex; flex-direction: column; gap: 8px; }
.production-shotlist__empty { padding: 4px 0; }
.production-shotlist__item {
  align-items: stretch;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 4px;
  text-align: left;
  transition: background-color 0.12s, border-color 0.12s;
  width: 100%;
}
.production-shotlist__item:hover { background: rgba(255, 255, 255, 0.03); }
.production-shotlist__item.is-selected { background: var(--highlight-soft); border-color: var(--highlight); }
.production-shotlist__thumb { border-radius: 2px; display: block; flex: 0 0 64px; height: 36px; margin-top: 1px; object-fit: cover; width: 64px; }
.production-shotlist__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding: 4px 0 2px; }
.production-shotlist__title { align-items: baseline; display: flex; gap: 4px; min-width: 0; }
.production-shotlist__takes { align-items: center; color: var(--text-muted); display: flex; font-size: 10px; gap: 6px; justify-content: flex-end; line-height: 12px; margin-top: auto; }
.production-shotlist__add { align-self: center; flex: none; }

/* Middle: the shot. */
.production-shot { display: flex; flex-direction: column; gap: 20px; min-height: 0; min-width: 0; overflow-y: auto; padding: 16px 24px 32px; }
.production-shot__header { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.production-shot__heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.production-shot__title-row { align-items: center; display: flex; gap: 8px; min-width: 0; }
.production-shot__title { color: var(--text); font-size: 20px; font-weight: 700; line-height: 24px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.production-media { align-items: stretch; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; }
.production-media__pane {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 12px 0;
}
/* The pane's title sits centred, with the version picker or reference tools either side of it. */
.production-media__header { align-items: center; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 32px; padding: 0 12px; }
.production-media__header > * { grid-row: 1; }
.production-media__header > .production-version-picker { grid-column: 1; justify-self: start; }
.production-media__label { color: var(--text-strong); font-size: 14px; font-weight: 700; grid-column: 2; letter-spacing: 0.04em; line-height: 18px; text-align: center; text-transform: uppercase; white-space: nowrap; }
.production-media__version { font-size: 13px; width: auto; }
/* Lineage sits in the header's third column, opposite the version picker. */
.production-media__header > .production-media__lineage { grid-column: 3; justify-self: end; }

/* The generation's version menu: a thumbnail per version, newest first, the one on screen outlined (see the designs). */
.production-version-picker { position: relative; }
.production-version-picker__button { font-size: 13px; text-align: left; }
.production-version-picker__menu {
  background: var(--surface-card);
  border: 1px solid var(--line-card);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  left: 0;
  list-style: none;
  margin: 0;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  top: calc(100% + 4px);
  width: 240px;
  z-index: 30;
}
.production-version-picker__menu[hidden] { display: none; }
.production-version-picker__option {
  align-items: stretch;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-family: var(--font-ui);
  gap: 10px;
  padding: 4px;
  text-align: left;
  width: 100%;
}
.production-version-picker__option:hover, .production-version-picker__option:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.production-version-picker__item[aria-selected="true"] .production-version-picker__option { background: var(--highlight-soft); border-color: var(--highlight); }
.production-version-picker__thumb { border-radius: var(--radius-sm); flex: none; height: 45px; object-fit: cover; width: 80px; }
.production-version-picker__text { display: flex; flex: 1; flex-direction: column; justify-content: space-between; min-width: 0; padding: 2px 2px 0 0; }
.production-version-picker__name { color: #fff; font-size: 13px; font-weight: 600; line-height: 16px; }
.production-version-picker__date { align-self: flex-end; color: var(--text-faint); font-size: 10px; line-height: 14px; }
.production-media__tools { align-items: center; display: flex; gap: 2px; grid-column: 3; justify-self: end; }
.production-media__tools .icon-btn { color: var(--text-muted); }
.production-media__tools .icon-btn:hover:not(:disabled) { color: #fff; }

.production-media__stage {
  align-items: center;
  aspect-ratio: 14 / 9;
  background: #000;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.production-media__stage:fullscreen { aspect-ratio: auto; }
.production-media__video, .production-media__image { display: block; height: 100%; object-fit: contain; width: 100%; }
.production-media__message { color: var(--text-muted); font-size: 13px; padding: 16px; text-align: center; }
.production-media__stage > .production-media__message { position: absolute; }
.production-media__stage--reference { background: rgba(236, 236, 236, 0.08); }
.production-media__image-host { align-items: center; display: flex; height: 100%; justify-content: center; width: 100%; }
.production-media__image-host.is-clickable:not(.is-read-only) { cursor: pointer; }
.production-media__image-host .production-thumb--empty { height: 100%; width: 100%; }
/* A version that is a picture (an asset's character sheet, a shot's first frame) sits where the player would. */
.production-media__render-image { inset: 0; position: absolute; }
/* Under the reference, level with the review buttons under the version: Open in Assets Tab. Kept a button's
   height when empty, so the two panes' rows line up whether or not there is anything to open. */
.production-media__reference-actions { min-height: 32px; }

/* The replace (or ingest) button over the top left of the reference on screen. */
.production-media__replace { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.18); left: 8px; position: absolute; top: 8px; z-index: 2; }
.production-media__replace:hover:not(:disabled) { background: rgba(0, 0, 0, 0.8); }

/* A reference the server cannot reach: its recorded name, why, and Ingest. */
.production-media__missing { align-items: center; display: flex; flex-direction: column; gap: 6px; max-width: 100%; padding: 16px; text-align: center; }
.production-media__missing-name { color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-media__missing-hint { color: var(--text-secondary); font-size: 12px; }
.production-media__ingest { margin-top: 10px; }

/* Both players' transport, laid over the bottom of the picture. */
.production-media__stage > .player-controls { bottom: 0; left: 0; position: absolute; right: 0; }

/* The chain between the panels: link the reference video to the generation's playback. */
.production-media__link {
  background: #e5e5e5;
  border: 0;
  border-radius: var(--radius-md);
  color: #0a0a0a;
  height: 28px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  z-index: 2;
}
.production-media__link:hover:not(:disabled) { background: #fff; }
.production-media__link.is-active { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25); }
.production-media__link.is-active:hover:not(:disabled) { background: #a78bfa; }

.production-media__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 0 12px; }

/* The thumbnails along the bottom of the reference panel, to swap between references. */
.production-media__strip { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 2px; }
.production-media__strip-item {
  align-items: center;
  background: var(--surface-tile);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex: 0 0 52px;
  height: 32px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.production-media__strip-item.is-selected { border-color: var(--highlight); }
.production-media__strip-item--missing { background: transparent; border: 1.5px dashed #52525b; color: var(--text-muted); }
.production-media__strip-item--uningested { box-shadow: inset 0 -2px 0 var(--status-amber); }
.production-media__strip-thumb { height: 100%; object-fit: cover; width: 100%; }
.production-media__strip-missing { font-size: 16px; }

.production-media__footer { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.production-media__filing { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.production-media__filing-part { color: var(--text-secondary); font-size: 11px; }
.production-media__filing-label { color: var(--text-dim); }
.production-media__filing-part--warning { color: var(--status-amber); }
.production-media__path { color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.production-media__cuts { background: var(--surface-panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-secondary); display: flex; flex-direction: column; font-size: 12px; gap: 4px; padding: 10px 12px; }
.production-media__cuts-title { color: #fff; font-weight: 600; }

/* Where the Re-generate button sends a render, and the shot's re-renders. */
.production-media__backend { font-size: 12px; max-width: 200px; }
.production-media__renders { background: var(--surface-panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-secondary); display: flex; flex-direction: column; font-size: 12px; gap: 6px; padding: 10px 12px; }
.production-media__renders-title { color: #fff; font-weight: 600; }
.production-render { display: flex; flex-direction: column; gap: 2px; }
.production-render__summary { align-items: baseline; display: flex; gap: 8px; }
.production-render__state { color: var(--status-amber); font-weight: 600; min-width: 76px; }
.production-render--succeeded .production-render__state { color: var(--status-green); }
.production-render--failed .production-render__state { color: var(--status-red); }
.production-render--stalled .production-render__state { color: var(--status-amber); }
.production-render__note { color: var(--text-dim); padding-left: 84px; }
.production-render--failed .production-render__note { color: var(--status-red); }

/* More Info, folded away under the panels. */
.production-more { background: var(--surface-panel); border: 1px solid var(--line); border-radius: var(--radius); }
.production-more__header { align-items: center; display: flex; justify-content: space-between; padding: 12px; }
.production-more__toggle { align-items: center; background: none; border: 0; color: var(--text-muted); cursor: pointer; display: flex; font-size: 11px; font-weight: 600; gap: 12px; padding: 0; text-transform: uppercase; }
.production-more__toggle:hover { color: #fff; }
.production-more__caret { transition: transform 0.15s; }
.production-more.is-open .production-more__caret { transform: rotate(90deg); }
.production-more__download[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.production-more__body { padding: 4px 12px 16px; }
.production-more__path { margin-top: 12px; }

.production-info__list { display: grid; gap: 12px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.production-info__group { display: flex; flex-direction: column; min-width: 0; }
.production-info__list dt { color: var(--text-dim); font-size: 10px; font-weight: 500; line-height: 12px; margin-top: 10px; text-transform: uppercase; }
.production-info__group dt:first-child { margin-top: 0; }
.production-info__list dd { color: #e4e4e7; font-size: 13px; line-height: 18px; margin: 2px 0 0; overflow-wrap: anywhere; }
.production-info__model { color: var(--accent-tab) !important; }
.production-info__input { font-size: 13px; height: 28px; margin-top: 2px; padding: 0 8px; width: 100%; }
.production-info__duration { align-items: center; color: var(--text-secondary); display: flex; font-size: 12px; gap: 6px; }
.production-info__duration-part { text-align: right; width: 48px; }
.production-info__duration-part:first-of-type { width: 64px; }
.production-info__prompt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; white-space: pre-line; }

/* Right: notes. */
.production-notes { border-left: 1px solid var(--line-subtle); }

/* The enlarged reference. */
.production-lightbox { align-items: center; background: rgba(5, 6, 8, 0.92); display: flex; flex-direction: column; inset: 0; justify-content: center; padding: 48px 72px; position: fixed; z-index: 110; }
.production-lightbox__media { align-items: center; display: flex; flex: 1; justify-content: center; min-height: 0; width: 100%; }
.production-lightbox__image { max-height: 100%; max-width: 100%; object-fit: contain; }
.production-lightbox__caption { color: var(--text-secondary); font-size: 13px; margin-top: 12px; }
.production-lightbox__close { position: absolute; right: 24px; top: 20px; }
.production-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.production-lightbox__nav--prev { left: 20px; }
.production-lightbox__nav--next { right: 20px; }

@media (max-width: 1280px) {
  .production-layout { grid-template-columns: 220px minmax(0, 1fr) 250px; }
  .production-shotlist { padding: 16px; }
  .production-info__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .production-view { height: auto; }
  .production-layout { grid-template-columns: minmax(0, 1fr); }
  .production-shotlist, .production-notes { border: 0; border-bottom: 1px solid var(--line-subtle); max-height: 50vh; }
  .production-media { grid-template-columns: minmax(0, 1fr); }
  .production-media__link { display: none; }
}

/* ==========================================================================
   Dialogs: Ingest References and Create Sequence / Shots
   ========================================================================== */

.production-ingest {
  display: flex;
  flex-direction: column;
  max-height: 84vh;
  overflow: hidden;
  width: min(1054px, 100%);
}
.production-ingest > .dialog-header { border-bottom: 1px solid var(--line-card); padding: 28px 32px 24px; }
.production-ingest__body { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding: 32px; }
.production-ingest__footer { border-top: 1px solid var(--line-card); gap: 24px; margin: 0; padding: 20px 32px; }
.production-ingest__footer .btn { height: 44px; padding: 0 18px; font-size: 16px; }
.production-ingest__footer .btn--ghost { font-weight: 500; }
.production-ingest__groups { display: flex; flex-direction: column; gap: 16px; }

.production-ingest__group { background: transparent; border: 1px solid var(--line-card); border-radius: 10px; margin: 0; min-width: 0; padding: 0; }
.production-ingest__group.is-skipped .production-ingest__group-body > :not(.production-ingest__checkbox--skip) { opacity: 0.55; }
.production-ingest__group.is-ingested { border-color: rgba(85, 185, 109, 0.6); }
.production-ingest__legend {
  align-items: center;
  background: var(--surface-nav);
  border-bottom: 1px solid var(--line-card);
  border-radius: 10px 10px 0 0;
  color: #fff;
  display: flex;
  float: left;
  font-size: 15px;
  font-weight: 600;
  gap: 12px;
  padding: 14px 20px;
  width: 100%;
}
.production-ingest__legend .icon { color: var(--text-secondary); }
.production-ingest__legend-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-ingest__group-body { clear: both; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; }

.production-ingest__field { display: flex; flex-direction: column; gap: 6px; }
.production-ingest__field-label { color: #fff; font-size: 15px; font-weight: 600; }
/* Upload New Reference Version beside the client file it uploads, with the file's label and notes above and below it. */
.production-ingest__upload { align-items: center; column-gap: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
.production-ingest__upload > * { grid-column: 2; }
.production-ingest__upload > .production-ingest__checkbox { grid-column: 1; grid-row: 2; }
.production-ingest__upload > .production-ingest__file { grid-row: 2; }
.production-ingest__file { align-items: center; display: flex; gap: 12px; }
.production-ingest__file-name {
  background: var(--surface-nav);
  border: 1px solid var(--line-control);
  border-radius: var(--radius-md);
  color: var(--text);
  flex: 1;
  font-size: 14px;
  margin: 0;
  min-height: 42px;
  min-width: 0;
  overflow: hidden;
  padding: 10px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.production-ingest__file-name--upload { border-color: rgba(139, 92, 246, 0.6); }
.production-ingest__file-name--pending { color: var(--text-dim); }
/* Nowhere to point an asset reference: the asset type has no published version yet. */
.production-ingest__file-name--error { color: var(--status-red); }
.production-ingest__browse { height: 40px; width: 40px; }
.production-ingest__hint { color: var(--text-dim); font-size: 13px; }
.production-ingest__hint--error { color: var(--status-red); }
.production-ingest__location { color: var(--text-dim); font-size: 12px; margin: 0; }
.production-ingest__location--missing { color: var(--status-amber); }
.production-ingest__server { align-items: center; display: flex; gap: 10px; }
.production-ingest__server .production-ingest__file-name { font-family: var(--font-mono); font-size: 12px; min-height: 36px; padding: 8px 12px; }
.production-ingest__tick { color: var(--status-green); font-weight: 700; }

.production-ingest__checkbox { align-items: center; color: #fff; cursor: pointer; display: flex; font-size: 15px; gap: 12px; }
.production-ingest__checkbox input { appearance: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; flex: none; height: 20px; margin: 0; position: relative; width: 20px; }
.production-ingest__checkbox input:checked { background: var(--accent); border-color: var(--accent); }
.production-ingest__checkbox input:checked::after { border: solid #fff; border-width: 0 2px 2px 0; content: ""; height: 10px; left: 6px; position: absolute; top: 2px; transform: rotate(45deg); width: 5px; }
.production-ingest__checkbox input:disabled { cursor: default; opacity: 0.45; }
.production-ingest__checkbox small { color: var(--text-dim); font-size: 12px; }
.is-disabled { opacity: 0.45; }

.production-ingest__warning { background: rgba(224, 169, 44, 0.08); border: 1px solid rgba(224, 169, 44, 0.35); border-radius: var(--radius); color: var(--highlight); font-size: 12px; margin: 0; padding: 8px 10px; }

/* Asset / Shot Asset, as a segmented control. */
.production-ingest__tabs { align-self: flex-start; background: var(--surface-nav); border-radius: var(--radius-md); display: flex; gap: 2px; padding: 4px; }
.production-ingest__tab { background: transparent; border: 0; border-radius: var(--radius); color: var(--text-secondary); cursor: pointer; font-size: 15px; padding: 8px 18px; }
.production-ingest__tab.is-selected { background: var(--surface-raised); color: #fff; font-weight: 600; }
.production-ingest__tab:disabled { cursor: default; opacity: 0.5; }

.production-ingest__panel { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A bespoke reference is only copied, so its panel just says so. */
.production-ingest__panel--bespoke { grid-template-columns: minmax(0, 1fr); }
.production-ingest__tab[title]:disabled { cursor: help; }
.production-ingest__row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.production-ingest__row-label { color: #fff; font-size: 15px; font-weight: 600; }
.production-ingest__row .select-control, .production-ingest__row .input-control { font-size: 15px; height: 44px; padding-left: 14px; }
.production-ingest__shot { color: var(--text-secondary); font-size: 14px; padding: 10px 0; }
/* The version a reference points at: the button shows the chosen version's media as its menu rows do. */
.production-ingest__row .production-ingest__version-button { align-items: center; display: flex; gap: 10px; height: auto; min-height: 44px; padding: 4px 36px 4px 4px; width: 100%; }
.production-ingest__version-button .production-version-picker__thumb { height: 34px; width: 60px; }
.production-ingest__version-button .production-version-picker__text { align-self: center; flex-direction: row; gap: 10px; justify-content: flex-start; }
.production-ingest__version-button .production-version-picker__date { align-self: center; }
.production-ingest__version-menu { max-height: 320px; right: 0; width: auto; }
.production-ingest__new { color: var(--accent-tab); font-size: 12px; font-weight: 600; }
/* The Stage combobox: typed into, with a button that lists the stages there are. */
.production-ingest__stage { position: relative; }
.production-ingest__row .production-ingest__stage-input { padding-right: 44px; width: 100%; }
.production-ingest__stage-toggle { position: absolute; right: 6px; top: 6px; }
.production-ingest__stage-menu { max-height: 240px; }
.production-ingest__status { color: var(--status-green); font-size: 13px; margin: 0; }
.production-ingest__status--error { color: var(--status-red); }

.production-create-shots { width: min(640px, 100%); }
.production-create-shots__shots { display: flex; flex-direction: column; gap: 8px; }
.production-create-shots__shot { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
.production-create-shots__name.is-invalid { border-color: var(--status-red); }
.production-create-shots__status { color: var(--status-red); font-size: 12px; grid-column: 1 / -1; }
.production-create-shots .input-control { height: 40px; }

/* Re-generate with changes (views/components/regenerateDialog.js) */
.production-regenerate { width: min(720px, 100%); }
.production-regenerate--status { width: min(520px, 100%); }
.production-regenerate__loading { color: var(--text-soft); margin: 0; }
.production-regenerate__tools { align-items: center; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) auto; }
.production-regenerate__search { height: 40px; }
.production-regenerate__params { display: flex; flex-direction: column; gap: 14px; }
.production-regenerate__node { display: flex; flex-direction: column; gap: 8px; }
.production-regenerate__node-title { color: var(--text-dim); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; margin: 0; text-transform: uppercase; }
.production-regenerate__param { border: 1px solid var(--line-card); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; }
.production-regenerate__param-head { flex-wrap: wrap; }
.production-regenerate__param-name { font-weight: 600; }
.production-regenerate__param-was { color: var(--text-dim); font-size: 13px; margin-left: auto; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-regenerate__values { display: grid; gap: 8px; grid-template-columns: 110px minmax(0, 1fr); }
.production-regenerate__values .production-regenerate__mode { grid-column: 1; height: 36px; }
.production-regenerate__listpart, .production-regenerate__range { grid-column: 2; }
.production-regenerate__values .production-regenerate__mode[hidden] ~ .production-regenerate__listpart { grid-column: 1 / -1; }
.production-regenerate__listpart { align-items: flex-start; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.production-regenerate__list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.production-regenerate__item { align-items: flex-start; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
.production-regenerate__value { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.production-regenerate__value .input-control, .production-regenerate__value .select-control { height: 36px; width: 100%; }
.production-regenerate__value textarea.input-control { font-family: inherit; height: auto; min-height: 60px; padding-top: 8px; resize: vertical; }
.production-regenerate__remove { height: 36px; width: 36px; }
.production-regenerate__remove:disabled { opacity: 0.35; }
.production-regenerate__range { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.production-regenerate__bound { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.production-regenerate__bound-label { color: var(--text-dim); font-size: 12px; }
.production-regenerate__range .input-control { height: 36px; width: 100%; }
.production-regenerate__problem { grid-column: 1 / -1; }
.production-regenerate__hint { color: var(--text-dim); font-size: 13px; margin: 0; }
.production-regenerate__empty { color: var(--text-soft); margin: 0; }
.production-regenerate__preview { border-top: 1px solid var(--line-card); display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.production-regenerate__summary { color: #fff; font-weight: 600; margin: 0; }
.production-regenerate__runs { color: var(--text-soft); display: flex; flex-direction: column; font-size: 13px; gap: 2px; margin: 0; max-height: 220px; overflow-y: auto; padding-left: 28px; }
@media (max-width: 560px) {
  .production-regenerate__tools { grid-template-columns: minmax(0, 1fr); }
  .production-regenerate__values { grid-template-columns: minmax(0, 1fr); }
  .production-regenerate__values .production-regenerate__mode, .production-regenerate__listpart, .production-regenerate__range { grid-column: 1; }
  .production-regenerate .production-ingest__body { padding: 20px; }
  .production-regenerate .production-ingest__footer { gap: 12px; padding: 16px 20px; }
  .production-regenerate__param-was { margin-left: 32px; max-width: none; }
}
