/* Tools and production. Share the workspace surface colors across editing and review. */
#app :is([data-panel="drafts"], [data-panel="subs"], .escena-board) {
  --work-border: var(--workspace-line, #30303e);
  --work-panel: var(--workspace-surface, #151521);
  --work-highlight: var(--workspace-accent, #c5b6ff);
}

#app [data-panel="subs"] > .panel-head,
#app [data-panel="settings"] > .panel-head {
  max-width: 900px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--workspace-line, var(--line-2));
}

#app [data-panel="subs"] > .panel-head { max-width: none; }
#app [data-panel="subs"] .tool-tabs { gap: 10px; }

#app [data-panel="subs"] .tool-tab {
  min-height: 88px;
  overflow-wrap: anywhere;
  transition: border-color .15s, background .15s;
}

#app [data-panel="subs"] .tool-tab.on {
  background: #211b32;
  border-color: #9379d1;
  box-shadow: inset 0 -2px #b398f6;
}

#app [data-panel="subs"] .tool-tab.on .ic {
  background: #cdbbfa;
  border-color: #cdbbfa;
  color: #2d2044;
}

#app [data-panel="subs"] .subs-card {
  gap: clamp(12px, 1.5vw, 18px);
  background: var(--work-panel);
  border-radius: var(--r-lg);
}

#app .subs-card :is(.tool-lbl, .ap-grid label) { color: var(--text-2); min-width: 0; }
#app .subs-card :is(input:not([type="file"]), select, textarea) {
  min-width: 0;
  min-height: 44px;
  background: var(--workspace-input, #10101a);
  border-color: var(--work-border);
  color: var(--text);
}

#app .subs-card .subs-drop {
  background: color-mix(in srgb, var(--work-highlight) 7%, var(--workspace-input, #10101a));
  border: 1px dashed #8273a4;
  padding: clamp(20px, 3.4vw, 38px) 14px;
  overflow-wrap: anywhere;
}

#app .subs-card .subs-drop:hover { border-color: var(--work-highlight); }
#app .subs-card .subs-drop .ic { color: var(--work-highlight); }
#app .subs-card .subs-drop small { color: var(--text-2); }
#app .subs-card > .btn { min-height: 44px; white-space: normal; }
#app .subs-actions .btn { min-height: 40px; white-space: normal; }
#app .subs-progress .bar span { background: var(--work-highlight); }

/* Project navigator and scene states */
#app .dr-chapter-link { background: var(--workspace-surface, var(--surface)); }
#app .dr-chapter-link[aria-current="true"] { background: #221c32; }
#app .dr-tabs button.on {
  border-color: #6d598f;
  background: #262039;
  color: #eee6ff;
}

#app .dr-board-entry {
  border-color: #5f4e7b;
  background: linear-gradient(140deg, #231c33, var(--work-panel) 72%);
}
#app .dr-board-access { margin-block: 0 16px; }
#app .dr-board-access p { max-width: 65ch; color: var(--text-2); }
#app .dr-board-access p strong { color: var(--text); }

#app .dr-scene-list { gap: 14px; }
#app .dr-scene-head, .escena-board .eb-top {
  background: linear-gradient(100deg, color-mix(in srgb, var(--scene-accent) 13%, #171723), #171723 85%);
}

#app .dr-scene-body, .escena-board .eb-take { background: var(--workspace-input, #10101a); }
#app .dr-scene-body { border-end-end-radius: inherit; }
.escena-board .eb-take { border-color: var(--work-border); }
.eb-storyboard { min-width: 0; }
.eb-shot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(120px, 29vw, 150px);
  gap: 8px;
  margin: 0;
  padding: 2px 2px 8px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
}

.eb-shot-strip > li { display: flex; min-width: 0; scroll-snap-align: start; }
.eb-shot-index {
  display: grid;
  grid-template-rows: auto 1fr;
  inline-size: 100%;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--work-border, var(--line-2));
  border-radius: var(--r-sm);
  background: var(--workspace-input, #10101a);
  color: var(--text);
  text-align: start;
}

.eb-shot-index:hover { border-color: var(--scene-accent, var(--work-highlight)); }
.eb-shot-index:focus-visible, .eb-take-head:focus-visible {
  outline: 2px solid var(--scene-accent, var(--work-highlight, var(--accent-2)));
  outline-offset: 1px;
}

.eb-shot-thumb {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #27243b, #131320 80%);
  color: var(--text-2);
  text-align: center;
}

.eb-shot-thumb .ic { width: 20px; height: 20px; color: var(--work-highlight, var(--accent-2)); }
.eb-shot-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.eb-shot-index-copy { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 7px 8px; }
.eb-shot-index-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 6px; font-size: .76rem; }
.eb-shot-index-label small { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eb-shot-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.eb-shot-status { color: var(--text-2); font-size: .72rem; }
.eb-shot-status[data-reviewed="true"] { color: #a2eac4; }
.eb-shot-status[data-filmed="ready"] { color: #a2eac4; }
.eb-shot-status[data-filmed="failed"], .eb-shot-status[data-filmed="recovery"] { color: #ffc1a7; }
.eb-shot-status[data-filmed="pending"] { color: var(--text-2); }
.eb-shot-status[data-filmed="working"] { color: #c9baff; }
.eb-shot-status[data-filmed="castReview"] { color: #ffd88a; }
.eb-take-head { margin: 0; border-radius: var(--r-xs); scroll-margin-block-start: 10px; font-size: inherit; }
.eb-shot-notice { margin: 0 2px; overflow-wrap: anywhere; }
/* (2-dic-2026, auditoría 46) Marca de aviso en la miniatura de la toma. */
.eb-shot-warn { margin-inline: 4px; color: #ffd88a; font-weight: 700; }
/* (2-dic-2026, auditoría 50) Portada provisional (foto del escenario o del actor) antes de filmar la toma. */
.eb-shot-thumb { position: relative; }
.eb-shot-ref { position: absolute; inset: auto 0 0 0; padding: 1px 4px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 0.68rem; text-align: center; }
.escena-board .eb-next-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2);
}
.escena-board .eb-next-steps[hidden] { display: none; }
.escena-board .eb-next-warning { flex-basis: 100%; margin: 0; }
@media (max-width: 900px) {
  .escena-board .eb-next-desktop { display: none; }
  .escena-board .eb-mobile-bar[data-eb-next-available] + .eb-foot > [data-eb-all] { display: inline-flex; }
}
.escena-board .eb-single-take {
  justify-self: start;
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  text-align: start;
  overflow-wrap: anywhere;
}
.escena-board .eb-take-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.eb-take-diagnostic {
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #ab7b60;
  border-radius: var(--r-sm);
  background: rgb(194 114 70 / 10%);
}

.eb-take-diagnostic p { margin: 0; }
.eb-provider-report { width: 100%; min-width: 0; text-align: start; }
.eb-provider-report summary { width: fit-content; padding-block: 6px; cursor: pointer; font-size: .875rem; }
.eb-provider-report dl { display: grid; gap: 6px; margin: 4px 0 8px; }
.eb-provider-report dt { font-size: .78rem; color: var(--muted); }
.eb-provider-report dd { margin: 0; font-size: .9rem; overflow-wrap: anywhere; user-select: text; }
.eb-recovery-take { justify-self: stretch; min-width: 0; max-width: 100%; }
.eb-recovery-take > b { display: block; margin-block: 5px; }
.escena-board :is(.eb-recovery, .eb-take-diagnostic) button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.eb-take-video { display: block; width: 100%; max-width: 590px; max-height: 55vh; border-radius: var(--r-sm); background: #100f15; }

.escena-board .eb-foot { padding-block-start: 10px; border-top: 1px solid var(--work-border); }
#app :is(.dr-board-entry, .dr-lint, .eb-warn, .eb-foot) .btn { min-height: 42px; white-space: normal; }

/* Storyboard transitions */
.shot-flow {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--workspace-line, var(--line-2));
  border-radius: var(--r-sm);
  background: var(--workspace-surface, var(--surface));
}

.shot-flow-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  padding: 7px 9px;
  color: var(--workspace-accent, var(--accent-2));
  font-size: .79rem;
  font-weight: 700;
}

.shot-flow-same .shot-flow-meta { color: #89e4b6; }
.shot-flow-meta small { color: var(--text-2); font-size: .77rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shot-flow-compare { padding-inline: 9px; border-top: 1px solid var(--workspace-line, var(--line-2)); }
.shot-flow-compare > summary {
  min-height: 42px;
  padding-block: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: .83rem;
  font-weight: 600;
}

.shot-flow-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.shot-flow-item {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--workspace-line, var(--line-2));
  border-radius: var(--r-xs);
  color: var(--text-2);
  background: var(--workspace-input, var(--bg-2));
  font-size: .77rem;
}

.shot-flow-item > b { color: var(--text); }
.shot-flow-item > small { color: var(--text-2); font-size: .73rem; }
.shot-flow-item p, .shot-flow-compare > p { margin: 0; line-height: 1.45; }
.shot-flow-item p b { display: block; }
.shot-flow-compare > p { margin-block: 7px 9px; color: var(--text-2); font-size: .76rem; }
.shot-flow-photo {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-xs);
  background: #0b0b13;
  cursor: pointer;
}
.shot-flow-photo img { display: block; width: 100%; height: clamp(60px, 12vw, 112px); object-fit: contain; }

/* Account and support */
#app .settings-card {
  background: var(--workspace-surface, #151521);
  border-color: var(--workspace-line, var(--line-2));
  padding: clamp(15px, 2.5vw, 24px);
}

#app .settings-card .card-step {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--workspace-line, var(--line-2));
}

#app .settings-card .card-step .ic { color: var(--workspace-accent, #c5b6ff); }
#app .acct-head > div { min-width: 0; overflow-wrap: anywhere; }
#app .acct-avatar { flex-shrink: 0; }
#app .acct-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#app .acct-stats > div { border-color: var(--workspace-line, var(--line-2)); }
#app .acct-stats span { color: var(--text-2); }
#app .acct-stats strong { font-variant-numeric: tabular-nums; }
#app .set-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
#app .set-actions .btn { max-width: 100%; min-height: 42px; white-space: normal; text-align: start; }

:is(#authModal, #helpModal) > .modal-box {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #151521;
  border-color: #494057;
}

#authModal > .modal-box { max-width: 446px; }
#helpModal > .modal-box { max-width: 550px; }
:is(#authModal, #helpModal) .modal-box h3 { font-size: clamp(1.45rem, 4vw, 1.8rem); text-wrap: wrap; }
:is(#authModal, #helpModal) .modal-box form :is(input, textarea) { min-height: 44px; background: #101019; }
:is(#authModal, #helpModal) .modal-box .btn { min-height: 44px; white-space: normal; }
#authModal .modal-box .or { color: var(--text-2); }
#authModal .legal-note { color: var(--text-2); }
#helpModal .help-faq details { padding: 0 12px; background: #11111a; border-color: #3b3449; }
#helpModal .help-faq summary { min-height: 44px; padding-block: 11px; }
#helpModal .help-faq p { margin: 0 0 12px; }
.bot-panel { border-color: #504463; background: #14141e; }
.bot-panel .bot-head { background: #211a2e; }
.bot-panel .bot-a { background: #1c1c28; border-color: #362f43; }
.bot-panel .bot-form > .btn { min-width: 44px; min-height: 44px; }

@media (max-width: 600px) {
  #app [data-panel="subs"] .tool-tabs { gap: 8px; }
  #app [data-panel="subs"] .tool-tab { min-height: 80px; }
  #app .subs-card .ap-grid { grid-template-columns: minmax(0, 1fr); }
  #app .subs-card :is(input:not([type="file"]), select, textarea),
  :is(#authModal, #helpModal) .modal-box form :is(input, textarea) { font-size: 16px; }
  #app .scene-index button { min-height: 44px; }
  .escena-board .eb-foot > .btn { min-height: 44px; }
  #app .acct-stats > div { padding: 9px 4px; }
  :is(#authModal, #helpModal) > .modal-box {
    max-width: none;
    max-height: calc(100vh - 8px);
    max-height: calc(100dvh - 8px);
  }
  .bot-panel { height: min(80dvh, 600px); }
}

@media (prefers-reduced-motion: reduce) {
  #app [data-panel="subs"] .tool-tab, #app .subs-progress .bar span { transition: none; }
  :is(#authModal, #helpModal, .bot-panel), :is(#authModal, #helpModal) .modal-box { animation: none; }
}

/* Draft shot editing */
.draft-shot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px 8px;
  text-align: end;
}

.draft-shot-editor { display: grid; gap: 12px; }

.draft-shot-editor :is(.draft-shot-media, .draft-shot-section, .draft-shot-settings) {
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--work-border, var(--line-2));
  border-radius: var(--r-sm);
  background: var(--work-panel, var(--surface));
}

.draft-shot-media { display: grid; gap: 14px; align-items: start; }
.draft-shot-media.has-preview { grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); }
.draft-shot-media-body, .draft-shot-preview { min-width: 0; }

.draft-shot-preview {
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--workspace-input, #101019);
}

.draft-shot-preview :is(img, video) {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.draft-shot-photo {
  display: grid;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.draft-shot-photo span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: color-mix(in srgb, var(--work-highlight, #c5b6ff) 8%, transparent);
  font-size: .8rem;
  font-weight: 700;
}

.draft-shot-photo:hover span { background: color-mix(in srgb, var(--work-highlight, #c5b6ff) 17%, transparent); }
.draft-shot-photo:focus-visible { outline: 2px solid var(--work-highlight, #c5b6ff); outline-offset: -2px; }

.draft-shot-heading {
  margin: 0;
  color: var(--text);
  font-size: .94rem;
}

.draft-shot-hint {
  display: block;
  margin-block: 5px 0;
  color: var(--text-2);
  font-size: .78rem;
  line-height: 1.45;
}

.draft-shot-media .draft-shot-buttons { margin-block-start: 12px; }

.draft-shot-buttons .btn { max-width: 100%; min-height: 40px; white-space: normal; }
.draft-shot-pair, .draft-shot-controls { display: grid; gap: 8px 12px; }
.draft-shot-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.draft-shot-controls { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }

.draft-shot-editor .label { min-width: 0; margin-block: 10px; }
.draft-shot-editor :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-block-start: 4px;
  background: var(--workspace-input, #101019);
}

.draft-shot-disclosure {
  padding-block-start: 6px;
  border-block-start: 1px solid var(--work-border, var(--line-2));
}

.draft-shot-disclosure > summary {
  min-height: 40px;
  padding-block: 9px;
  color: var(--work-highlight, #c5b6ff);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}

.draft-shot-settings > summary { min-height: 30px; padding-block: 4px; }
.draft-shot-checkbox { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.draft-shot-checkbox input[type="checkbox"] { width: auto; margin: 0; }

@media (max-width: 640px) {
  .draft-shot-media.has-preview, .draft-shot-pair { grid-template-columns: minmax(0, 1fr); }
  .draft-shot-meta { flex-direction: column; }
  .draft-shot-preview :is(img, video) { max-height: 180px; }
  .draft-shot-editor :is(input:not([type="checkbox"]), select, textarea) { font-size: 16px; }
  .draft-shot-buttons .btn, .draft-shot-photo span, .draft-shot-disclosure > summary { min-height: 44px; }
}
.take-review-tools, .clip-join-order {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.take-review-tools { margin-top: .65rem; }
.take-direction-tip { margin-block: .55rem .4rem; }
.review-join-button { margin-block: .35rem; }
.clip-join-dialog { max-height: min(90dvh, 48rem); overflow-y: auto; }
.clip-join-dialog :is(.btn, select), .take-review-tools .btn, .review-join-button { min-height: 44px; }
.clip-join-order button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.clip-join-dialog [data-join-play] { width: 100%; }
.clip-join-dialog video { max-height: min(46dvh, 26rem); }
.clip-join-dialog :focus-visible, .take-review-tools :focus-visible, .review-join-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Galería de escenas del storyboard */
.escena-board :is(.eb-visual, .eb-production) {
  min-width: 0;
  border: 1px solid var(--work-border, var(--line-2));
  border-radius: var(--r-lg);
  background: var(--work-panel, var(--surface));
}

.eb-visual {
  display: grid;
  gap: 12px;
  padding: var(--work-padding, 14px);
}

.eb-visual-head, .eb-visual-player-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
}

.eb-visual-head h4, .eb-visual-player-head :is(h4, strong) { margin: 0; color: var(--text); }
.eb-visual-head h4 { font-family: var(--font-display); font-size: clamp(1.02rem, 2vw, 1.3rem); }
.eb-visual-head p { margin: .25rem 0 0; }
.eb-visual-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.eb-visual-toolbar .btn { min-height: 44px; white-space: normal; }
.eb-visual-status { margin: 0; color: var(--text-2); font-size: .82rem; overflow-wrap: anywhere; }
.eb-visual-status:empty { display: none; }

.eb-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 144px), 1fr));
  gap: 10px;
  min-width: 0;
}

.eb-visual-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--work-border, var(--line-2));
  border-radius: var(--r-sm);
  background: var(--workspace-input, #10101a);
  color: var(--text);
  text-align: start;
  cursor: pointer;
}

.eb-visual-card:hover, .eb-visual-card[aria-pressed="true"] {
  border-color: var(--work-highlight, var(--accent));
}

.eb-visual-card[aria-pressed="true"] { box-shadow: inset 0 -3px var(--work-highlight, var(--accent)); }
.eb-visual-card:disabled { cursor: default; }
.escena-board :is(.eb-visual-card, .eb-visual-toolbar button, .eb-production > summary):focus-visible {
  outline: 2px solid var(--work-highlight, var(--accent));
  outline-offset: 2px;
}

.eb-visual-media {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  min-width: 0;
  overflow: hidden;
  background: #10101b;
}

.eb-visual[data-aspect="16:9"] .eb-visual-media { aspect-ratio: 16 / 9; }
.eb-visual-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eb-visual-media .eb-visual-inline {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a090f;
  pointer-events: none;
}

.eb-visual-placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #262139, #141321 75%);
  color: var(--work-highlight, #c5b6ff);
}

.eb-visual-placeholder .ic { inline-size: 26px; block-size: 26px; }
.eb-visual-play-icon {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: 8px;
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  padding: 7px;
  border-radius: 50%;
  background: #100d19eb;
  color: #fff;
}

.eb-visual-meta { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 9px; }
.eb-visual-meta strong { font-size: .87rem; line-height: 1.3; overflow-wrap: anywhere; }
.eb-visual-kicker { color: var(--text-2); font-size: .73rem; font-variant-numeric: tabular-nums; }
.eb-visual-label {
  justify-self: start;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: #fff1;
  color: var(--text-2);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
}

.eb-visual-card[data-state="ready"] .eb-visual-label { background: #133729; color: #a2eac4; }
.eb-visual-card[data-state="partial"] .eb-visual-label { background: #18362c; color: #baebd5; }
.eb-visual-card[data-state="queued"] .eb-visual-label, .eb-visual-card[data-state="castReview"] .eb-visual-label { background: #3d3119; color: #ffd88a; }
.eb-visual-card[data-state="failed"] .eb-visual-label { background: #3e1c22; color: #fecaca; }
.eb-visual-card[data-state="updating"] .eb-visual-label { background: #1f3049; color: #bddeff; }

.eb-visual-player {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--work-border, var(--line-2));
  border-radius: var(--r-sm);
  background: var(--workspace-input, #10101a);
}

.eb-visual-player video {
  display: block;
  width: 100%;
  max-height: min(56dvh, 460px);
  border-radius: var(--r-xs);
  object-fit: contain;
  background: #0a090f;
}

.eb-production-shell { display: contents; }

.eb-production > summary {
  min-height: 44px;
  padding: 12px var(--work-padding, 14px);
  color: var(--work-highlight, var(--text));
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}

.eb-production-body {
  display: grid;
  gap: var(--work-gap, 14px);
  padding: var(--work-padding, 14px);
  border-block-start: 1px solid var(--work-border, var(--line-2));
}

@media (max-width: 600px) {
  .eb-visual-grid {
    grid-auto-flow: column;
    grid-auto-columns: clamp(116px, 38vw, 154px);
    grid-template-columns: none;
    margin-inline: -4px;
    padding: 4px 4px 9px;
    overflow-x: auto;
    scroll-padding-inline: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .eb-visual-card { scroll-snap-align: start; }
  .eb-visual-player video { max-height: min(46dvh, 360px); }
}
