.researcher-page {
  max-width: 1100px;
  padding-top: 24px;
}

.skin-survey-mode-fieldset {
  border: 1px solid var(--border, #444);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
}

.skin-survey-mode-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Survey images: short labels, keep both options on one row */
.skin-survey-mode-fieldset .skin-survey-mode-radios {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}

.radio-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}

.skin-survey-mode-fieldset .skin-survey-mode-radios .radio-inline {
  align-items: center;
}

.radio-inline input {
  margin-top: 3px;
}

.skin-survey-mode-fieldset .skin-survey-mode-radios .radio-inline input {
  margin-top: 0;
}

/* Radios: small size + undo .grid-form input { min-height: 40px } on this control */
.grid-form .skin-survey-mode-fieldset input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  padding: 0;
  flex-shrink: 0;
  margin: 0;
  accent-color: #3b82f6;
  vertical-align: middle;
}

/* Overrides global `.hint-text.hint-text--field { line-height: 1.05 }` for this block only. */
.hint-text.hint-text--field.skin-survey-mode-hint {
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.5;
}

.save-progress-wrap {
  margin-top: 12px;
}

.save-progress-label {
  font-size: 0.875rem;
  color: var(--muted, #9a9a9a);
  margin-bottom: 6px;
  min-height: 1.3em;
}

.save-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #3a3a3a;
  overflow: hidden;
}

.save-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  transition: width 0.12s ease-out;
}

.triple-bundle-block {
  margin-bottom: 18px;
}

.triple-bundle-block:last-child {
  margin-bottom: 0;
}

.panel-inset--triple .triple-bundle-block {
  margin-bottom: 0;
}

.triple-bundle-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--border, #444);
  margin: -2px -2px 12px;
  padding: 0;
}

.triple-bundle-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #9a9a9a;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.triple-bundle-tab:hover {
  color: var(--fg, #fff);
}

.triple-bundle-tab--active {
  color: var(--fg, #fff);
  border-color: var(--border, #444);
  border-bottom-color: #2a2a2a;
  background: #2a2a2a;
}

.triple-bundle-tab:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.triple-bundle-tab__label {
  line-height: 1.2;
}

.bundle-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c94a4a;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.bundle-status-dot--ready {
  background: #2d9d5f;
}

.triple-bundle-tabpanels {
  min-height: 0;
}

.triple-bundle-panel[hidden] {
  display: none !important;
}

.triple-bundle-sub {
  font-weight: 400;
  font-size: 0.82em;
  color: #9a9a9a;
  margin-left: 6px;
}

.panel-inset--triple .panel-head h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

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

.researcher-header h1 {
  font-size: clamp(20px, 3vw, 30px);
}

.panel {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.preview-banner {
  border: 1px solid #5b4a1f;
  background: #3b3320;
  color: #f4deb0;
  font-weight: 600;
}

.panel h2 {
  margin: 0 0 12px;
}

.panel--studies .panel-head h2 {
  margin: 0;
}

.panel-head-actions {
  flex-shrink: 0;
}

/* Sticky thead + ~3 full body rows (single-line cells); was min(220px) and clipped row 3 */
.studies-table-scroll {
  max-height: min(276px, 55vh);
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #3d3d3d;
}

.table--studies {
  table-layout: fixed;
  width: 100%;
}

.table--studies thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 0 1px 0 #4d4d4d;
}

/* Slug, internal notes, owner, status, responses, copy (sum 100%). */
.table--studies th:nth-child(1),
.table--studies td:nth-child(1) {
  width: 18%;
}

.table--studies th:nth-child(2),
.table--studies td:nth-child(2) {
  width: 28%;
}

.table--studies th:nth-child(3),
.table--studies td:nth-child(3) {
  width: 12%;
}

.table--studies th:nth-child(4),
.table--studies td:nth-child(4) {
  width: 12%;
}

.table--studies th:nth-child(5),
.table--studies td:nth-child(5) {
  width: 10%;
  text-align: left;
  white-space: nowrap;
}

.table--studies th:last-child,
.table--studies td:last-child {
  width: 20%;
  text-align: left;
  vertical-align: middle;
}

.table--studies th.studies-col-slug,
.table--studies th.studies-col-internal-notes,
.table--studies td.studies-col-slug,
.table--studies td.studies-col-internal-notes {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table--studies th.studies-col-owner,
.table--studies td.studies-col-owner {
  min-width: 0;
  max-width: 12%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  vertical-align: middle;
}

.table--studies tbody tr {
  cursor: pointer;
}

.table--studies tbody tr.studies-row--selected {
  background: rgba(22, 119, 255, 0.12);
}

.table--studies tbody tr.studies-row--selected td {
  border-bottom-color: #3d5a80;
}

.table--studies .studies-responses-cell {
  font-variant-numeric: tabular-nums;
}

/* Keep <td> as table-cell so row borders stay continuous; flex only inside. */
.table--studies .studies-copy-cell {
  cursor: default;
}

.table--studies .studies-copy-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.table--studies .studies-copy-btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  /* Fixed width so "local"/"public" → "Copied!" does not shift layout. */
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 5.5rem;
  padding: 5px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel--workspace {
  margin-bottom: 0;
}

.workspace-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid #4a4a4a;
}

.workspace-tabs-row .workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border-bottom: none;
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.workspace-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  margin-bottom: -1px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
}

.workspace-tab:hover:not(:disabled) {
  color: var(--fg);
}

.workspace-tab--active {
  color: var(--fg);
  border-bottom-color: var(--primary);
}

.workspace-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.workspace-panel-title {
  margin: 0 0 12px;
  font-size: clamp(16px, 2.5vw, 20px);
}

.workspace-panel--result .results-panel__title {
  margin: 0 0 8px;
}

/* Entire Create/Update block hidden until a study is selected or Create is clicked */
.study-form-shell[hidden] {
  display: none !important;
}

.workspace-empty {
  margin: 8px 0 4px;
  padding: 20px 12px;
  border-radius: 10px;
  border: 1px dashed #4a4a4a;
  color: var(--muted);
  text-align: center;
}

.workspace-empty p {
  margin: 0;
}

.result-subtabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 10px 0 12px;
  border-bottom: 1px solid #4a4a4a;
}

.result-subtabs-row .result-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  border-bottom: none;
}

.result-subtab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted, #9a9a9a);
  font: inherit;
  font-weight: 600;
  padding: 8px 14px 10px;
  margin-bottom: -1px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
}

.result-subtab:hover:not(:disabled) {
  color: var(--fg, #f2f2f2);
}

.result-subtab--active {
  color: var(--fg, #f2f2f2);
  border-bottom-color: var(--primary, #1677ff);
}

/* Link-style export on the same row as Respondents / By scene (not inside the chart). */
.result-subtabs__export-link {
  appearance: none;
  border: none;
  background: none;
  margin: 0 2px 6px 8px;
  padding: 6px 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary, #1677ff);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  flex: 0 0 auto;
  align-self: flex-end;
}

.result-subtabs__export-link:hover:not(:disabled) {
  color: #69b1ff;
}

.result-subtabs__export-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
  color: var(--muted, #9a9a9a);
}

.result-subtabs__export-link:focus-visible {
  outline: 2px solid var(--primary, #1677ff);
  outline-offset: 2px;
  border-radius: 4px;
}

.result-scene-bundle-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}

/* Ensure hidden wins over `display: flex` (some browsers / specificity edge cases). */
.result-scene-bundle-tabs[hidden] {
  display: none !important;
}

.result-scene-bundle-tab {
  appearance: none;
  border: 1px solid #4a4a4a;
  background: #2a2a2a;
  color: var(--muted, #9a9a9a);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.result-scene-bundle-tab:hover {
  color: var(--fg, #f2f2f2);
  border-color: #5a5a5a;
}

.result-scene-bundle-tab--active {
  color: var(--fg, #f2f2f2);
  border-color: var(--primary, #1677ff);
  background: #333;
}

.result-scene-bundle-tab:focus-visible {
  outline: 2px solid var(--primary, #1677ff);
  outline-offset: 2px;
}

.result-subpanel {
  min-height: 0;
}

.workspace-panel--result .results-skin-distribution {
  margin: 0 0 10px;
  width: fit-content;
  max-width: min(100%, 60rem);
}

.workspace-panel--result .results-skin-distribution__heading {
  margin-bottom: 5px;
  text-align: left;
}

.workspace-panel--result .results-skin-distribution__chart-shell {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.workspace-panel--result .results-skin-distribution__chart {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 4px 6px 4px;
  border-radius: 8px;
  border: 1px solid #3d3d3d;
  background: var(--surface, #2f2f2f);
}

.workspace-panel--result .results-skin-distribution__tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 34px;
  max-width: 48px;
  gap: 2px;
}

.workspace-panel--result .results-skin-distribution__value {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg, #f2f2f2);
  line-height: 1.15;
  min-height: 1.15em;
}

.workspace-panel--result .results-skin-distribution__bar-host {
  width: 100%;
  height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* Flat fill: same family as summary A/B bars (#summaryTable .summary-ratio__segment--a). */
.workspace-panel--result .results-skin-distribution__bar {
  width: 10px;
  max-width: 100%;
  min-height: 0;
  border-radius: 3px 3px 1px 1px;
  background: #4c8dff;
  transition: height 0.12s ease-out;
}

.workspace-panel--result .results-skin-distribution__axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding-top: 1px;
}

.workspace-panel--result .results-skin-distribution__orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #4a4a4a;
  background: #2a2a2a;
  display: block;
}

.workspace-panel--result .results-skin-distribution__mst {
  font-size: 9px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--muted, #9a9a9a);
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.workspace-panel--result .results-table-scroll--wide {
  max-height: min(480px, 55vh);
}

.workspace-panel--result #respondentsTable {
  font-size: 12px;
}

.workspace-panel--result #respondentsTable th,
.workspace-panel--result #respondentsTable td {
  white-space: nowrap;
}

/* Long UA / device strings: cap width; full value on hover via title (set in app.js). */
.workspace-panel--result #respondentsTable th.respondents-col-nickname,
.workspace-panel--result #respondentsTable td.respondents-col-nickname {
  max-width: 6.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ~one line for "iPhone 17 Pro Max" at table font-size; full string on hover (title in app.js). */
.workspace-panel--result #respondentsTable th.respondents-col-phone,
.workspace-panel--result #respondentsTable td.respondents-col-phone {
  max-width: 19ch;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-panel--result #respondentsTable th.respondents-col-followup-wa,
.workspace-panel--result #respondentsTable td.respondents-col-followup-wa {
  max-width: 18ch;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-panel--result #respondentsTable th.respondents-skin-cell,
.workspace-panel--result #respondentsTable td.respondents-skin-cell {
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
  min-width: 11rem;
  max-width: 16rem;
}

.workspace-panel--result #respondentsTable .respondents-skin-wrap {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 0;
}

.workspace-panel--result #respondentsTable .respondents-skin-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #4a4a4a;
  background: #2a2a2a;
  display: block;
}

.workspace-panel--result #respondentsTable .respondents-skin-label {
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted, #9a9a9a);
  font-variant-numeric: tabular-nums;
}

/* Do not set display:flex on <td> here — it breaks row borders in WebKit/Chromium; flex stays on .summary-ratio--respondent-ab. */
.workspace-panel--result #respondentsTable th.respondents-col-ab,
.workspace-panel--result #respondentsTable td.respondents-col-ab {
  white-space: normal;
  min-width: 10rem;
  max-width: 15rem;
  vertical-align: middle;
  text-align: left;
  overflow-x: auto;
}

.workspace-panel--result #respondentsTable .summary-ratio--respondent-ab {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.workspace-panel--result #respondentsTable .summary-ratio__bar-host {
  align-self: flex-start;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Fixed track: A/B ratio is the segment split only (avoids “full row” bars when completion is high or denom is underestimated). */
.workspace-panel--result #respondentsTable .summary-ratio__bar-host--respondent-fixed {
  width: 11rem;
  max-width: 100%;
}

.workspace-panel--result #respondentsTable .summary-ratio__meta--respondent-line {
  white-space: nowrap;
  width: 100%;
  font-size: 11px;
  line-height: 1.35;
  color: var(--fg, #f2f2f2);
}

.workspace-panel--result #respondentsTable th.respondents-col-actions,
.workspace-panel--result #respondentsTable td.respondents-col-actions {
  white-space: normal;
  vertical-align: middle;
  text-align: center;
  min-width: 4.5rem;
  position: sticky;
  right: 0;
  background: var(--surface, #2f2f2f);
  box-shadow: -6px 0 10px -6px rgba(0, 0, 0, 0.45);
}

.workspace-panel--result #respondentsTable th.respondents-col-actions {
  top: 0;
  z-index: 3;
  box-shadow:
    -6px 0 10px -6px rgba(0, 0, 0, 0.45),
    0 1px 0 #4d4d4d;
}

.workspace-panel--result #respondentsTable td.respondents-col-actions {
  z-index: 2;
}

.workspace-panel--result #respondentsTable .btn-respondent-delete {
  font-size: 11px;
  padding: 2px 8px;
  line-height: 1.15;
  min-height: 24px;
  align-items: center;
}

.workspace-panel--result #respondentsTable .summary-ratio--compact:not(.summary-ratio--respondent-ab) {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 4px;
}

.workspace-panel--result #respondentsTable .summary-ratio--compact .summary-ratio__bar {
  height: 8px;
}

.workspace-panel--result #respondentsTable .summary-ratio--compact:not(.summary-ratio--respondent-ab) .summary-ratio__meta {
  font-size: 11px;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 10px;
}

.workspace-panel--result #respondentsTable .summary-ratio__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #343434;
  display: flex;
}

.workspace-panel--result #respondentsTable .summary-ratio__segment {
  height: 100%;
  min-width: 0;
}

.workspace-panel--result #respondentsTable .summary-ratio__segment--a {
  background: #4c8dff;
}

.workspace-panel--result #respondentsTable .summary-ratio__segment--b {
  background: #ff8b3d;
}

.workspace-panel--result #respondentsTable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface, #2f2f2f);
  box-shadow: 0 1px 0 #4d4d4d;
}

.workspace-panel--result .results-table-scroll {
  max-height: min(420px, 50vh);
  overflow: auto;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #3d3d3d;
}

.workspace-panel--result #summaryTable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 0 1px 0 #4d4d4d;
}

.workspace-panel--result #summaryTable .summary-metric-num {
  font-variant-numeric: tabular-nums;
}

.workspace-panel--result #summaryTable .summary-metric--over-avg {
  color: #f5d547;
  font-weight: 600;
}

.workspace-panel--result #summaryTable .summary-preview-cell {
  width: 38px;
}

.workspace-panel--result #summaryTable .summary-preview-thumb {
  width: 29px;
  height: 29px;
  border-radius: 4px;
  border: 1px solid #4a4a4a;
  object-fit: cover;
  display: block;
  background: #262626;
}

.workspace-panel--result #summaryTable .summary-preview-empty {
  color: var(--muted);
}

.workspace-panel--result #summaryTable .summary-ratio {
  min-width: 220px;
  display: grid;
  gap: 6px;
}

.workspace-panel--result #summaryTable .summary-ratio__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #343434;
  display: flex;
}

.workspace-panel--result #summaryTable .summary-ratio__segment {
  height: 100%;
  min-width: 0;
}

.workspace-panel--result #summaryTable .summary-ratio__segment--a {
  background: #4c8dff;
}

.workspace-panel--result #summaryTable .summary-ratio__segment--b {
  background: #ff8b3d;
}

.workspace-panel--result #summaryTable .summary-ratio__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.panel h3 {
  margin: 0;
  font-size: 16px;
}

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

.panel-inset {
  background: #2a2a2a;
  border-radius: 10px;
  padding: 10px;
}

.grid-form {
  display: grid;
  gap: 10px;
}

.grid-form label {
  display: grid;
  gap: 6px;
}

/* Radio row labels: grid-form would stack input above text; keep control + label on one line */
.grid-form .skin-survey-mode-fieldset label.radio-inline {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.grid-form input,
.grid-form textarea,
.grid-form select {
  min-height: 40px;
  background: var(--surface-2);
  border: 1px solid #4a4a4a;
  color: var(--fg);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.study-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.study-form-actions__left {
  flex-shrink: 0;
}

.study-form-actions__right {
  margin-left: auto;
}

.btn-danger {
  background: #c42b2b;
  border: 1px solid #a82424;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #d93636;
  border-color: #c42b2b;
}

.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.scene-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 180px);
  justify-content: start;
  gap: 8px;
}

.scene-card {
  border: 1px solid #4d4d4d;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.scene-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.scene-slot {
  display: grid;
  gap: 6px;
}

.scene-slot-title {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}

.scene-preview {
  background: #242424;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scene-preview-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.scene-slot input[type="file"] {
  display: none;
}

.scene-preview-empty {
  color: var(--muted);
  font-size: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #4d4d4d;
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.meta-text {
  margin: 10px 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .scene-list {
    grid-template-columns: repeat(auto-fill, 180px);
    justify-content: start;
  }

  .scene-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
