/* Estúdio de Canais Dark — Assets Visuais & FLOW Studio */

.assets-studio-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #0d1117;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* Header */
.assets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111827;
  border-bottom: 1px solid #1f293d;
  flex-shrink: 0;
  gap: 16px;
}

.assets-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.assets-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 16px;
  flex-shrink: 0;
}

.assets-header-title-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.assets-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.2;
}

.assets-header-subtitle {
  font-size: 12px;
  color: #8c9bb0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.assets-header-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.assets-tab-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.assets-tab-btn:hover {
  background: #141c2a;
  color: #ffffff;
  border-color: #243044;
}

.assets-tab-btn.active {
  background: #00e599;
  color: #041c12;
  font-weight: 600;
  border-color: #00e599;
  box-shadow: 0 0 14px rgba(0, 229, 153, 0.25);
}

.assets-tab-btn.icon-only {
  padding: 6px 10px;
}

/* Banner de incorporação */
.assets-sub-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0e15;
  border-bottom: 1px solid #17202e;
  padding: 6px 16px;
  flex-shrink: 0;
}

.assets-incorporate-btn {
  background: #111724;
  border: 1px solid #233044;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 18px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.assets-incorporate-btn:hover {
  background: #1a2537;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Toolbar de Filtros */
.assets-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: #131a26;
  border-bottom: 1px solid #1f293d;
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.assets-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.assets-view-toggle {
  display: flex;
  background: #0d121c;
  border: 1px solid #232d3d;
  border-radius: 6px;
  padding: 2px;
}

.assets-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  background: transparent;
  border: none;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.assets-view-btn.active {
  background: #1e293b;
  color: #38bdf8;
}

.assets-mode-pills {
  display: flex;
  background: #0d121c;
  border: 1px solid #232d3d;
  border-radius: 6px;
  padding: 2px;
}

.assets-mode-btn {
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #8c9bb0;
  border-radius: 4px;
  cursor: pointer;
}

.assets-mode-btn.active {
  background: #00cc7a;
  color: #061510;
  font-weight: 600;
}

.assets-filter-select {
  background: #161f2e;
  border: 1px solid #283344;
  color: #cbd5e1;
  font-size: 12px;
  border-radius: 6px;
  padding: 4px 10px;
  outline: none;
  cursor: pointer;
}

.assets-filter-select:hover, .assets-filter-select:focus {
  border-color: #3b82f6;
}

.assets-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.assets-search-input {
  background: #0d121c;
  border: 1px solid #263244;
  color: #f1f5f9;
  font-size: 12px;
  border-radius: 6px;
  padding: 5px 12px 5px 28px;
  width: 170px;
  outline: none;
  transition: width 0.2s ease, border-color 0.2s ease;
}

.assets-search-input:focus {
  width: 220px;
  border-color: #38bdf8;
}

.assets-search-icon {
  position: absolute;
  left: 8px;
  font-size: 12px;
  color: #64748b;
  pointer-events: none;
}

.assets-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assets-count-badge {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.assets-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 4px;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.assets-timing-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
}

.assets-timing-badge.exact {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

.assets-timing-badge.estimated {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.scene-time-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 4px;
  color: #38bdf8;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.chapter-badge-time {
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Sub-toolbar (Referências e Camadas) */
.assets-subbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: #0e141f;
  border-bottom: 1px solid #1a2332;
  flex-shrink: 0;
}

.assets-subbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  background: #111827;
  border: 1px solid #233044;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.assets-subbar-pill:hover {
  background: #1a2436;
  border-color: #3b82f6;
  color: #ffffff;
}

.assets-subbar-pill.active {
  background: #00e599;
  color: #041c12;
  font-weight: 600;
  border-color: #00e599;
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.25);
}

/* Seção Desdobrável de Referências (Abre em cima como no modelo) */
.assets-inline-refs-section {
  margin-bottom: 20px;
  background: #0c121d;
  border: 1px solid #1a2538;
  border-radius: 10px;
  padding: 14px 18px 18px;
  transition: all 0.2s ease;
}

.assets-inline-refs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.assets-inline-refs-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.assets-inline-refs-chevron {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  transition: transform 0.15s ease;
}

.assets-inline-refs-heading {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.assets-inline-refs-subtext {
  font-size: 11.5px;
  color: #708098;
  margin-left: 6px;
}

.assets-inline-refs-manage-btn {
  background: #111724;
  border: 1px solid #243347;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.assets-inline-refs-manage-btn:hover {
  background: #1b2638;
  color: #ffffff;
  border-color: #3b4e6d;
}

.assets-inline-refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.ref-inline-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease;
  user-select: none;
}

.ref-inline-card:hover {
  transform: translateY(-2px);
}

.ref-inline-thumb-box {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: #070b12;
  border: 1px solid #1f2b3e;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ref-inline-card:hover .ref-inline-thumb-box {
  border-color: #00e599;
  box-shadow: 0 0 14px rgba(0, 229, 153, 0.25);
}

.ref-inline-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-inline-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(10, 16, 26, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  z-index: 1;
}

.ref-inline-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 2px;
}

.ref-inline-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.ref-inline-card:hover .ref-inline-name {
  color: #00e599;
}

.ref-inline-role {
  font-size: 11px;
  color: #708098;
}

.assets-flow-status-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 11px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: #34d399;
}

.assets-flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.assets-flow-status-pill.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.assets-flow-status-pill.warning .assets-flow-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.assets-flow-status-pill.disconnected {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.assets-flow-status-pill.cursor-pointer {
  cursor: pointer;
  transition: all 0.15s ease;
}

.assets-flow-status-pill.cursor-pointer:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
  border-color: #10b981;
}

.assets-flow-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.assets-flow-action-btn.focus-btn {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.assets-flow-action-btn.focus-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #93c5fd;
  transform: translateY(-1px);
}

.assets-flow-action-btn.sync-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.assets-flow-action-btn.sync-btn:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #6ee7b7;
  transform: translateY(-1px);
}

.assets-flow-action-btn.config-btn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.assets-flow-action-btn.config-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fde68a;
  transform: translateY(-1px);
}

.ref-placeholder-triangle {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: radial-gradient(circle at center, #0f1c2e 0%, #060a12 100%);
  color: #4b5e76;
}

.ref-placeholder-avatar {
  font-size: 24px;
  opacity: 0.6;
}

.ref-placeholder-tip {
  font-size: 10px;
  color: #5d718b;
  font-weight: 500;
}

.ref-card-overlay-actions {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.ref-inline-card:hover .ref-card-overlay-actions {
  opacity: 1;
}

.ref-upload-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 229, 153, 0.4);
  color: #00e599;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ref-upload-pill:hover {
  background: #00e599;
  color: #050b14;
  border-color: #00e599;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.4);
}

.scene-badge-bottom-left.gerando {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  animation: pulse-generating 1.5s infinite;
}

@keyframes pulse-generating {
  0%, 100% { opacity: 1; border-color: rgba(59, 130, 246, 0.6); }
  50% { opacity: 0.6; border-color: rgba(59, 130, 246, 0.2); }
}

/* Grid de Cenas (4 colunas) */
.assets-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 40px;
  background: #0a0e14;
}

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

@media (max-width: 1400px) {
  .assets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card da Cena */
.scene-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid #232d3d;
  background: #0f1520;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}

.scene-card:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.scene-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #161f2e;
}

.scene-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 11, 18, 0.65) 0%, rgba(7, 11, 18, 0.05) 45%, rgba(7, 11, 18, 0.75) 100%);
  pointer-events: none;
}

/* Badges de topo */
.scene-badge-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  background: rgba(10, 15, 24, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 11px;
  z-index: 1;
}

.scene-badge-top-left .num {
  font-weight: 700;
  color: #ffffff;
}

.scene-badge-top-left .dur {
  color: #94a3b8;
  font-size: 10.5px;
}

.scene-badge-top-left .time-range {
  color: #64748b;
  font-size: 9.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.scene-badge-top-left .orig {
  color: #38bdf8;
  font-size: 10px;
  font-weight: 600;
}

.scene-badge-top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(10, 15, 24, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 10.5px;
  color: #cbd5e1;
  z-index: 1;
}

/* Overlay central de especificidade */
.scene-overlay-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  max-width: 90%;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(234, 179, 8, 0.45);
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.scene-overlay-bubble.muito-especifico {
  border-color: rgba(234, 179, 8, 0.55);
}

.scene-overlay-bubble.especifico {
  border-color: rgba(56, 189, 248, 0.45);
}

.scene-overlay-tag {
  color: #facc15;
  font-weight: 600;
  display: inline;
}

.scene-overlay-bubble.especifico .scene-overlay-tag {
  color: #38bdf8;
}

.scene-overlay-text {
  color: #e2e8f0;
  display: inline;
}

/* Badge de rodapé */
.scene-badge-bottom-left {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
  z-index: 1;
}

.scene-badge-bottom-left.aprovada {
  color: #34d399;
  background: rgba(6, 78, 59, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.scene-badge-bottom-left.pendente {
  color: #fbbf24;
  background: rgba(120, 53, 15, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.scene-badge-bottom-left.gerando {
  color: #38bdf8;
  background: rgba(12, 74, 110, 0.65);
  border: 1px solid rgba(14, 165, 233, 0.4);
}

/* Ações no Hover */
.scene-card-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}

.scene-card:hover .scene-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.scene-card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-size: 10.5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
}

.scene-card-action-btn:hover {
  background: #3b82f6;
  border-color: #60a5fa;
}

/* ========================================================================== */
/* MODAL DO INSPETOR DE CENA (PARIDADE 1:1 COM ESTÚDIO DE CANAIS DARK)       */
/* ========================================================================== */

.scene-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 14, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.scene-modal-dialog {
  position: relative;
  width: 95vw;
  max-width: 1400px;
  height: 88vh;
  max-height: 850px;
  background: #0c111a;
  border: 1px solid #1f2a3c;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

/* Coluna Esquerda: Preview da Imagem + Variantes + Navegação */
.scene-modal-left-col {
  position: relative;
  background: #080d14;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  min-width: 0;
  height: 100%;
}

.scene-modal-big-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.scene-modal-big-preview img {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Botões flutuantes de navegação de cena (< CENA 8 | > CENA 10) */
.scene-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.scene-nav-btn:hover {
  background: #1e293b;
  color: #38bdf8;
  border-color: #38bdf8;
}

.scene-nav-btn.prev-btn {
  left: 12px;
}

.scene-nav-btn.next-btn {
  right: 12px;
}

.scene-nav-arrow {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.scene-nav-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* Strip de Variantes no rodapé esquerdo */
.scene-variants-tray {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 14px;
  border-top: 1px solid #141c2b;
  overflow-x: auto;
  flex-shrink: 0;
}

.variant-thumb-card {
  position: relative;
  width: 105px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.variant-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #161f2e;
}

.variant-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variant-thumb-box.active {
  border-color: #00cc7a;
  box-shadow: 0 0 10px rgba(0, 204, 122, 0.35);
}

.variant-check-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00cc7a;
  color: #04120c;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-thumb-label {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #00cc7a;
  color: #00cc7a;
  background: rgba(0, 204, 122, 0.08);
  text-align: center;
}

/* Coluna Direita: Propriedades, Textos e Ações */
.scene-modal-right-col {
  background: #0f1521;
  border-left: 1px solid #1a2538;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.scene-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #1a2538;
  flex-shrink: 0;
}

.scene-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-idx-tag {
  background: #1e293b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.scene-total-tag {
  font-size: 12px;
  color: #8c9bb0;
}

.scene-origin-tag {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.scene-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.scene-modal-close-btn:hover {
  background: #1e293b;
  color: #ffffff;
}

/* Conteúdo Rolável da Coluna Direita */
.scene-modal-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scene-voiceover-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #f1f5f9;
  font-weight: 400;
}

.scene-direction-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  background: #090e17;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #1a2436;
}

.scene-direction-icon {
  color: #38bdf8;
  font-weight: 700;
  font-family: monospace;
}

.scene-blocagem-link {
  display: block;
  text-align: center;
  font-size: 11.5px;
  color: #8ca0ba;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px;
}

.scene-blocagem-link:hover {
  color: #38bdf8;
}

/* Seção Trazer Material de */
.scene-source-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scene-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.scene-source-tabs {
  display: flex;
  gap: 8px;
}

.scene-source-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #283344;
  background: #141b27;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scene-source-btn.active {
  background: #00cc7a;
  color: #061510;
  font-weight: 600;
  border-color: #00cc7a;
}

/* Linha de Envio de Imagem */
.scene-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scene-upload-btn {
  background: #1a2332;
  border: 1px solid #2a374c;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.scene-upload-btn:hover {
  background: #243044;
  border-color: #38bdf8;
}

.scene-upload-origin-input {
  flex: 1;
  background: #0b1018;
  border: 1px solid #222d3f;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  color: #e2e8f0;
  outline: none;
}

.scene-upload-origin-input:focus {
  border-color: #3b82f6;
}

/* Prompt da imagem */
.scene-prompt-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scene-prompt-textarea {
  width: 100%;
  min-height: 85px;
  background: #090e17;
  border: 1px solid #1f2b3c;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  color: #f1f5f9;
  line-height: 1.45;
  font-family: inherit;
  outline: none;
  resize: vertical;
}

.scene-prompt-textarea:focus {
  border-color: #3b82f6;
}

/* Tags de Personagens (#Oxossi, etc) */
.scene-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scene-tag-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #121824;
  border: 1px solid #232f42;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.scene-tag-pill:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: #172233;
}

.scene-tag-pill.active {
  border-color: #00cc7a;
  color: #00cc7a;
  background: rgba(0, 204, 122, 0.1);
}

/* Linha da Imagem Ativa */
.scene-active-image-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #1a2538;
}

.scene-active-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-type-tag {
  font-size: 11px;
  font-weight: 600;
  color: #00cc7a;
  border: 1px solid #00cc7a;
  padding: 2px 7px;
  border-radius: 4px;
}

.scene-approved-tag {
  font-size: 11px;
  color: #34d399;
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid #059669;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 500;
}

.scene-action-icons-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scene-icon-btn {
  background: #141b27;
  border: 1px solid #243042;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.scene-icon-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Thumbnail Selecionada */
.scene-selected-thumb-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90px;
}

.scene-selected-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #00cc7a;
  box-shadow: 0 0 10px rgba(0, 204, 122, 0.35);
}

.scene-selected-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-unselect-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  cursor: pointer;
  text-align: left;
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scene-unselect-btn:hover {
  color: #ef4444;
}

/* Seção Nesta Cena (+ elemento) */
.scene-elements-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #1a2538;
}

.scene-elements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scene-add-element-btn {
  background: #141b27;
  border: 1px solid #243042;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.scene-add-element-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.scene-elements-description {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  background: #090e17;
  border: 1px dashed #1e293b;
  border-radius: 6px;
  padding: 10px 12px;
}

/* Modo Capítulos */
.chapter-section {
  margin-bottom: 24px;
}

.chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #111827;
  border: 1px solid #1f293d;
  border-radius: 6px;
  margin-bottom: 12px;
}

.chapter-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chapter-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #1f2937;
  color: #9ca3af;
}

/* Storyboard View */
.storyboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storyboard-row {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #111827;
  border: 1px solid #1f293d;
  border-radius: 8px;
  align-items: center;
}

.storyboard-thumb-box {
  width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid #283344;
}

.storyboard-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storyboard-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.storyboard-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.storyboard-title {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.storyboard-voiceover {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  background: #0b0f16;
  padding: 6px 10px;
  border-radius: 4px;
  border-left: 3px solid #00cc7a;
}

.storyboard-prompt {
  font-size: 11.5px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Modal de Referências de Personagens (7 referências) */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 16px;
}

.ref-card {
  border-radius: 8px;
  border: 1px solid #232d3d;
  background: #131a26;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ref-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #090d14;
}

.ref-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ref-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.ref-card-role {
  font-size: 11px;
  color: #38bdf8;
  text-transform: capitalize;
}

/* ========================================================================= */
/* MODAL DA REFERÊNCIA (1:1 COM IMAGEM 2) */
/* ========================================================================= */
.ref-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 14, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.ref-modal-dialog {
  position: relative;
  width: 95vw;
  max-width: 1380px;
  height: 86vh;
  max-height: 820px;
  background: #0c121d;
  border: 1px solid #1e293b;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.ref-modal-left-col {
  position: relative;
  background: #06090f;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  height: 100%;
  min-width: 0;
}

.ref-modal-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.ref-modal-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Botões Flutuantes < ref e > ref */
.ref-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid #334155;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 38px;
}

.ref-nav-btn.prev-btn {
  left: 16px;
}

.ref-nav-btn.next-btn {
  right: 16px;
}

.ref-nav-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #00e599;
  color: #ffffff;
}

.ref-nav-arrow {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.ref-nav-sub {
  font-size: 9px;
  color: #94a3b8;
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Strip inferior de pills de referências */
.ref-modal-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #141d2c;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.ref-modal-pill {
  background: #0f1624;
  border: 1px solid #233145;
  color: #cbd5e1;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ref-modal-pill:hover {
  border-color: #3b82f6;
  color: #ffffff;
}

.ref-modal-pill.active {
  border-color: #00cc7a;
  color: #00cc7a;
  background: rgba(0, 204, 122, 0.1);
  box-shadow: 0 0 10px rgba(0, 204, 122, 0.25);
}

.ref-modal-pill-name {
  font-weight: 600;
}

.ref-modal-pill-num {
  font-size: 10px;
  color: #708098;
}

.ref-modal-pill.active .ref-modal-pill-num {
  color: #34d399;
}

/* Coluna Direita do Modal de Referência */
.ref-modal-right-col {
  padding: 24px 28px;
  background: #0c121d;
  border-left: 1px solid #182232;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 16px;
}

.ref-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ref-modal-counter {
  font-size: 12px;
  color: #708098;
  font-weight: 500;
}

.ref-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.ref-modal-close-btn:hover {
  background: #1e293b;
  color: #ffffff;
}

.ref-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.ref-modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ref-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.ref-badge.scope, .ref-badge.role {
  background: #131b28;
  border: 1px solid #233044;
  color: #cbd5e1;
}

.ref-badge.status {
  background: rgba(0, 204, 122, 0.12);
  border: 1px solid rgba(0, 204, 122, 0.4);
  color: #00cc7a;
  font-weight: 600;
}

.ref-modal-dotted-line {
  border-bottom: 1px dotted #233145;
  width: 100%;
  margin: 2px 0;
}

.ref-modal-desc-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-modal-desc-heading {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.ref-modal-prompt-text {
  background: #080d14;
  border: 1px solid #1a2436;
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.ref-modal-tip-footer {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
  padding-top: 4px;
}

.ref-modal-tip-footer strong {
  color: #cbd5e1;
  font-weight: 600;
}
/* Assets: painéis compactos e estados de entrega reais. */
#assets-studio-root{--assets-accent:#10b98d;background:#0d1118;color:#e4e9f1}
#assets-studio-root .assets-header{background:#141b25;padding:10px 16px;gap:12px;min-height:56px}
#assets-studio-root .assets-header-left{flex:1;max-width:42%}
#assets-studio-root .assets-header-subtitle{font-size:11px;max-width:100%}
#assets-studio-root .assets-header-tabs{flex-wrap:nowrap;gap:2px;border:1px solid #2c3544;background:#0c1118;border-radius:8px;padding:3px;overflow-x:auto}
#assets-studio-root .assets-tab-btn{padding:7px 9px;font-size:11px;white-space:nowrap;box-shadow:none!important;text-shadow:none!important}
#assets-studio-root .assets-tab-btn.active,#assets-studio-root .assets-mode-btn.active{background:#10b98d!important;color:#06271e!important;box-shadow:none!important}
#assets-studio-root .assets-sub-banner{padding:6px 16px;background:#101620;border-bottom:1px solid #283140}
#assets-studio-root .assets-incorporate-btn{border-radius:6px;font-size:11px;padding:6px 10px;box-shadow:none!important;animation:none!important;text-shadow:none!important}
#assets-studio-root .assets-toolbar{padding:12px 16px 8px;gap:8px;background:#141b25}
#assets-studio-root .assets-filter-select{padding:7px 10px;font-size:11px;background:#1b2532;border:1px solid #303b4a}
#assets-studio-root .assets-subbar{padding:8px 16px;gap:7px;background:#141b25;flex-wrap:wrap;border-bottom:1px solid #293242}
#assets-studio-root .assets-subbar-pill,#assets-studio-root .assets-flow-action-btn{font-size:11px;padding:6px 10px;border-radius:7px;box-shadow:none!important;animation:none!important;background:#1b2532!important;color:#b7c5d7!important;border:1px solid #303b4a!important}
#assets-studio-root .assets-flow-status-pill{font-size:10px;border-radius:6px;padding:6px 8px;box-shadow:none;max-width:360px}
#assets-studio-root .assets-scroll-area{padding:14px 16px}
#assets-studio-root .assets-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#assets-studio-root .scene-card{border:1px solid #2c3645;border-radius:10px;min-height:145px;aspect-ratio:16/10;background:#141c27;box-shadow:none}
#assets-studio-root .scene-overlay-bubble{font-size:10px;line-height:15px;padding:6px 8px;background:#0b1119d9;max-width:90%}
#assets-studio-root .scene-badge-top-left{font-size:10px;gap:5px}
#assets-studio-root .scene-badge-top-left .time-range{display:none}
#assets-studio-root .scene-badge-bottom-left{font-size:10px;border:1px solid #2e7662;border-radius:12px;padding:2px 7px;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#assets-studio-root .scene-empty-state{height:100%;display:grid;place-content:center;justify-items:center;gap:6px;color:#697e98;font-size:26px}
#assets-studio-root .scene-empty-state small{font-size:10px;color:#93a3b8}
#assets-studio-root .assets-inline-refs-section{margin-bottom:14px;border-radius:9px;padding:12px;background:#111821;border:1px solid #293442}
#assets-studio-root .assets-inline-refs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
#assets-studio-root .ref-inline-thumb-box{height:118px;aspect-ratio:auto;border:1px solid #2c3746;border-radius:7px}
#assets-studio-root .ref-inline-thumb-box img{width:100%;height:100%;object-fit:cover}
#assets-studio-root .ref-inline-name{font-size:10px;line-height:15px}
#assets-studio-root .ref-inline-role,#assets-studio-root .ref-state{font-size:9px;color:#8599b2;display:block}
#assets-studio-root .assets-ai-panel{grid-column:1/-1;display:block;width:100%;min-width:0}
#assets-studio-root .assets-ai-tabs{display:flex;gap:6px;margin:0 0 14px;border-bottom:1px solid #293442;padding-bottom:10px}
#assets-studio-root .assets-ai-tabs button,#assets-studio-root .assets-ai-row button,#assets-studio-root .assets-prompt-list button{font-size:12px;border:1px solid #334052;border-radius:7px;padding:8px 13px;background:#1c2735;color:#dce6f1;cursor:pointer}
#assets-studio-root .assets-ai-tabs .active,#assets-studio-root .assets-ai-row .primary{background:#10b98d;color:#042e22;border-color:#10b98d}
#assets-studio-root .assets-ai-config{max-width:820px;padding:20px;border:1px solid #2c3746;border-radius:10px;background:#141c27;font-size:12px}
#assets-studio-root .assets-ai-config h2{font-size:15px;margin:0 0 7px}
#assets-studio-root .assets-ai-config p{font-size:12px;line-height:19px;color:#9bacc1;margin:0 0 16px}
#assets-studio-root .assets-ai-config label{display:grid;gap:7px;margin:12px 0;font-size:11px;color:#a9b9cc;flex:1;min-width:100px}
#assets-studio-root .assets-ai-config input,#assets-studio-root .assets-prompt-list textarea{width:100%;box-sizing:border-box;background:#0e151f;color:#dce6f2;border:1px solid #303e50;border-radius:7px;padding:10px;font:12px/18px inherit}
#assets-studio-root .assets-ai-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
#assets-studio-root .assets-ai-row button{margin-bottom:12px}
#assets-studio-root .assets-provider{padding:12px;border:1px solid #10b98d;background:#0d2b25;border-radius:8px;font-weight:600}
#assets-studio-root .assets-provider small{color:#83af9f;font-weight:400;margin-left:10px}
#assets-studio-root .assets-delivery{border-top:1px solid #2a3747;margin:16px 0;padding-top:16px;font-size:12px}
#assets-studio-root .assets-delivery span{color:#9aacbf;margin-left:12px}
#assets-studio-root .assets-delivery progress{display:block;width:100%;height:6px;margin:10px 0;accent-color:#10b98d}
#assets-studio-root .assets-delivery small{font-size:10px;color:#8da1ba}
#assets-studio-root .assets-prompt-list{display:grid;gap:12px}
#assets-studio-root .assets-prompt-list article{padding:16px;border:1px solid #303d4f;background:#141c27;border-radius:9px}
#assets-studio-root .assets-prompt-list small{display:block;margin:6px 0;color:#8da1ba;font-size:11px}
#assets-studio-root .assets-prompt-list textarea{display:block;resize:vertical;margin-bottom:8px;font-size:12px}
@media(max-width:1100px){#assets-studio-root .assets-header{flex-wrap:wrap}#assets-studio-root .assets-header-left{max-width:100%}#assets-studio-root .assets-header-tabs{width:100%}#assets-studio-root .assets-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#assets-studio-root .assets-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#assets-studio-root .assets-ai-config{padding:14px}#assets-studio-root .assets-toolbar{flex-wrap:wrap}}

/* ── Estado real de geração no Flow (somente interface; nunca entra no vídeo exportado) ── */
.scene-card.is-working {
  border-color: rgba(96, 165, 250, 0.75);
  animation: hd-gen-breathe 2.6s ease-in-out infinite;
}
.scene-card.is-gen-failed { border-color: rgba(248, 113, 113, 0.7); }
@keyframes hd-gen-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25), 0 0 8px rgba(96, 165, 250, 0.10); }
  50%      { box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.55), 0 0 18px rgba(96, 165, 250, 0.28); }
}
.scene-gen-status {
  position: absolute; left: 6px; right: 6px; bottom: 30px; z-index: 3;
  display: flex; flex-direction: column; gap: 3px;
  padding: 4px 7px; border-radius: 6px;
  background: rgba(8, 12, 20, 0.78); backdrop-filter: blur(6px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 10.5px; font-weight: 600; color: #cbd5e1; pointer-events: none;
}
.scene-gen-bar, .assets-batch-bar { display: block; height: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.scene-gen-bar i, .assets-batch-bar i { display: block; height: 100%; background: #60a5fa; transition: width 0.6s ease; }
.scene-gen-status.gen-ready { color: #86efac; }
.scene-gen-status.gen-ready i { background: #22c55e; }
.scene-gen-status.gen-failed, .scene-gen-status.gen-stalled { color: #fca5a5; }
.scene-gen-status.gen-failed i, .scene-gen-status.gen-stalled i { background: #ef4444; }
.scene-gen-status.gen-queued { color: #94a3b8; }
.assets-batch-pill {
  display: inline-flex; flex-direction: column; gap: 3px; min-width: 190px;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: #cbd5e1; background: rgba(15, 21, 32, 0.85); border: 1px solid #232d3d;
}
.assets-batch-pill[hidden] { display: none; }
.assets-batch-pill.is-working { border-color: rgba(96, 165, 250, 0.6); animation: hd-gen-breathe 2.6s ease-in-out infinite; }
.assets-batch-pill.has-failed { border-color: rgba(248, 113, 113, 0.6); color: #fca5a5; }
@media (prefers-reduced-motion: reduce) {
  .scene-card.is-working, .assets-batch-pill.is-working {
    animation: none;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5), 0 0 12px rgba(96, 165, 250, 0.2);
  }
  .scene-gen-bar i, .assets-batch-bar i { transition: none; }
}

/* Controle de referências (aprovação explícita e aviso de cena gerada sem referência) */
.scene-badge-refcheck {
  position: absolute;
  top: 34px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(10, 15, 24, 0.82);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}
.scene-badge-refcheck.refazer { color: #ffb020; border: 1px solid rgba(255, 176, 32, 0.55); }
.scene-badge-refcheck.conferir { color: #9fb3c8; border: 1px solid rgba(159, 179, 200, 0.4); }
.ref-approve-btn {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 204, 122, 0.5);
  background: rgba(0, 204, 122, 0.12);
  color: #00cc7a;
  font-weight: 700;
  cursor: pointer;
}
.ref-approve-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ref-approve-btn[hidden] { display: none; }
