/* Palco: composição da aprovação de kits. Vídeos e demais áreas mantêm seus layouts. */
.estudio-app .main.main-kits-palco { padding-top: var(--studio-space-6); }
.palco-eyebrow { display: flex; align-items: center; gap: var(--studio-space-2); color: var(--studio-text-secondary); font-size: 8px; font-weight: 600; letter-spacing: .15em; }
.palco-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--studio-space-5); padding-bottom: 30px; isolation: isolate; }
.palco-eyebrow > i { width: 5px; height: 5px; border-radius: 50%; background: var(--studio-brand-accent); box-shadow: 0 0 0 4px var(--studio-selection-bg); }
.palco-hero h1 { font: 600 clamp(30px, 3vw, 43px)/1.14 var(--studio-font-display); letter-spacing: -.055em; margin: 18px 0 0; }
.palco-hero h1 em { font-style: normal; color: var(--studio-text-accent); }
.palco-hero p { color: var(--studio-text-secondary); font-size: 12px; line-height: 1.7; margin-top: 14px; }
.palco-star { width: 30px; height: 30px; stroke: var(--studio-brand-accent); stroke-width: 2.5; margin-left: 18px; vertical-align: middle; animation: palco-star 28s linear infinite; }
.palco-counts { flex-shrink: 0; padding-right: var(--studio-space-3); }
.palco-counts > span { font-size: 8px; letter-spacing: .16em; color: var(--studio-text-secondary); }
.palco-counts > div { display: flex; gap: var(--studio-space-3); align-items: center; margin-top: var(--studio-space-4); }
.palco-counts b { font: 600 32px var(--studio-font-display); letter-spacing: -.05em; }
.palco-counts b:last-of-type { color: var(--studio-ai-fg); }
.palco-counts p { font-size: 9px; line-height: 1.6; margin: 0; }
.palco-counts i { width: 1px; height: 30px; background: var(--studio-border-subtle); margin: 0 var(--studio-space-2); }
.palco-hero-lines { position: absolute; width: 170px; height: 100px; top: -10px; right: 0; color: var(--studio-text-accent); opacity: .12; z-index: -1; pointer-events: none; }
.palco-hero-lines path { stroke: currentColor; }
.palco-hero-lines circle { fill: currentColor; }
.palco-hero-action { position: absolute; right: 0; top: 4px; }
.estudio-app .palco-hero-action .btn { width: 44px; min-height: 44px; }
.kits-palco-shell.aprovacoes-shell { grid-template-columns: 218px minmax(0, 1fr); gap: var(--studio-space-5); height: auto; min-height: 420px; }
.kits-palco-shell .lista-coluna { position: sticky; top: 20px; height: auto; max-height: calc(100dvh - 130px); }
.kits-palco-shell .lista-scroll { display: flex; flex-direction: column; gap: 10px; padding: 2px 3px var(--studio-space-2); }
.kits-palco-shell .detalhe-coluna { height: auto; overflow: visible; }
.kits-palco-shell .busca-lista { margin-bottom: 14px; min-width: 0; font-size: 12px; }
.kits-palco-shell .abas { gap: 2px; padding: 3px; background: var(--studio-surface-raised); border: 1px solid var(--studio-border-subtle); border-radius: var(--studio-radius-control); }
.estudio-app .kits-palco-shell .abas button { padding: 7px var(--studio-space-2); min-height: 36px; font-size: 10px; flex: 1; }
.kits-palco-shell .item-lista { border-radius: var(--studio-radius-control); padding: 11px 9px; gap: 9px; }
.kits-palco-shell .item-lista.ativo { background: var(--studio-selection-bg); border-color: var(--studio-selection-border); }
.kits-palco-shell .item-lista .item-thumb { width: 40px; height: 64px; object-fit: cover; border-radius: 5px; }
.kits-palco-shell .item-lista .item-nome { font-size: 11px; line-height: 1.5; }
.kits-palco-shell .item-lista .item-meta { flex-wrap: wrap; gap: var(--studio-space-1); font-size: 9px; }
.kits-palco-shell .item-lista .tag { font-size: 8px; padding: 1px var(--studio-space-1); }
.kits-palco-shell .item-audio { width: 12px; }
.kit-palco-detail { min-width: 0; }
.palco-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--studio-border-subtle); padding-bottom: 22px; margin-bottom: var(--studio-space-5); }
.palco-detail-head > div:first-child { min-width: 0; flex: 1; }
.palco-detail-head h2 { font: 600 clamp(20px, 1.8vw, 26px)/1.3 var(--studio-font-display); letter-spacing: -.035em; margin: 10px 0 var(--studio-space-3); overflow-wrap: anywhere; }
.palco-detail-head .tags { gap: 5px; margin: 0; }
.palco-detail-head .tags .tag { font-size: 10px; }
.palco-product-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; max-width: 180px; }
.estudio-app .palco-product-actions .btn { min-height: 34px; padding: 7px 9px; font-size: 10px; }
.palco-stage-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: var(--studio-space-5); align-items: start; }
.palco-cover-column { min-width: 0; position: sticky; top: 20px; }
.palco-scene { --palco-x: 0; --palco-y: 0; --palco-scroll: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 25px 30px 40px; min-height: 430px; isolation: isolate; perspective: 1000px; }
.palco-scene::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--studio-border-subtle); border-radius: 130px 130px 14px 14px; opacity: .5; z-index: -2; pointer-events: none; }
.palco-halo { position: absolute; inset: 15% -5% 12%; border-radius: 50%; background: radial-gradient(ellipse, var(--studio-selection-bg), transparent 65%); z-index: -2; pointer-events: none; }
.palco-orbits { position: absolute; width: 100%; height: 110%; inset: -5% 0; z-index: -1; pointer-events: none; overflow: hidden; }
.palco-orbits ellipse, .palco-orbits path { stroke-width: .8; }
.palco-orbit-dashes { animation: palco-orbit 40s linear infinite; }
.palco-depth-back { transform: translate3d(calc(var(--palco-x) * -.6px), calc(var(--palco-scroll) * -.65px + var(--palco-y) * -.6px), 0); }
.palco-depth-middle { transform: translate3d(calc(var(--palco-x) * .55px), calc(var(--palco-scroll) * .4px + var(--palco-y) * .55px), 0); }
.palco-depth-front { transform: translate3d(calc(var(--palco-x) * 1px), calc(var(--palco-scroll) * .7px + var(--palco-y) * 1px), 0) rotateY(calc(var(--palco-x) * .2deg)) rotateX(calc(var(--palco-y) * -.15deg)); }
.palco-cover-back { position: absolute; width: min(300px, calc(100% - 60px)); aspect-ratio: 9/16; background: var(--studio-surface-stage); border: 1px solid var(--studio-selection-border); border-radius: var(--studio-radius-control); left: 50%; top: calc(50% - 8px); translate: -50% -50%; rotate: 6deg; z-index: -1; }
.palco-cover { display: block; position: relative; width: 100%; max-width: 310px; aspect-ratio: 9/16; overflow: hidden; padding: 0; border: 0; border-radius: var(--studio-radius-control); background: var(--studio-surface-stage); box-shadow: 0 22px 60px color-mix(in srgb, var(--studio-shadow-color) 20%, transparent); transition: transform .35s var(--studio-ease-out); }
.palco-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.palco-cover > span { position: absolute; right: 8px; top: 8px; display: flex; align-items: center; gap: 5px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--studio-border-subtle) 26.67%, transparent); background: color-mix(in srgb, var(--studio-media-stage) 73.33%, transparent); color: white; padding: 6px var(--studio-space-2); font-size: 9px; }
.palco-cover-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 25px; text-align: center; border: 1px dashed var(--studio-border-strong); box-shadow: none; color: var(--studio-text-secondary); }
.palco-cover-empty b { font-size: 13px; font-weight: 500; color: var(--studio-text-secondary); }
.palco-cover-empty p { font-size: 11px; line-height: 1.7; }
.palco-float { position: absolute; display: flex; align-items: center; gap: 7px; border: 1px solid var(--studio-border-strong); border-radius: var(--studio-radius-control); background: var(--studio-surface-raised); backdrop-filter: blur(16px); box-shadow: var(--studio-shadow-panel); padding: 9px; white-space: nowrap; pointer-events: none; }
.palco-float > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--studio-selection-bg); color: var(--studio-text-accent); }
.palco-float small { display: block; font-size: 6px; letter-spacing: .15em; color: var(--studio-text-secondary); margin-bottom: var(--studio-space-1); }
.palco-float b { font-size: 8px; font-weight: 500; display: block; }
.palco-float > svg { color: var(--studio-feedback-success-fg); }
.palco-float-copy { left: -6px; top: 20%; }
.palco-float-audio { right: -6px; bottom: 17%; }
.palco-float-audio > span:first-child { background: var(--studio-ai-bg); color: var(--studio-ai-fg); }
.palco-mini-wave { display: flex; align-items: center; gap: 2px; height: 20px; margin-left: var(--studio-space-1); color: var(--studio-ai-fg); }
.palco-mini-wave i { width: 2px; height: 8px; background: currentColor; border-radius: 1px; animation: palco-wave 1.8s ease-in-out infinite alternate; }
.palco-mini-wave i:nth-child(2n) { height: 18px; animation-delay: -.6s; }
.palco-mini-wave i:nth-child(3n) { height: 13px; animation-delay: -1.1s; }
.palco-scene[data-paused='true'] * { animation-play-state: paused; }
.palco-cover-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: var(--studio-space-3) 0; border-bottom: 1px solid var(--studio-border-subtle); font-size: 9px; color: var(--studio-text-secondary); }
.palco-cover-toolbar > span { display: flex; align-items: center; gap: 6px; }
.estudio-app .palco-cover-toolbar .btn { min-height: 34px; font-size: 9px; padding: 6px var(--studio-space-2); }
.palco-edit-column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.estudio-app .palco-edit-column > .card { padding: 19px; }
.palco-edit-column .field { margin-bottom: 20px; }
.palco-edit-column .field label { font-size: 11px; color: var(--studio-text-secondary); margin-bottom: var(--studio-space-2); }
.palco-edit-column .field textarea { min-height: 145px; field-sizing: content; line-height: 1.65; font-size: 13.5px; background: var(--studio-surface-stage); overflow-wrap: break-word; }
.palco-edit-column .field input { font-size: 13.5px; background: var(--studio-surface-stage); }
.palco-edit-column .kv { grid-template-columns: 1fr; }
.palco-edit-column .linha-botoes { gap: var(--studio-space-2); }
.palco-edit-column .linha-botoes .btn { font-size: 10px; }
.palco-quality { display: flex; gap: var(--studio-space-3); align-items: flex-start; border-bottom: 1px solid var(--studio-border-subtle); padding-bottom: var(--studio-space-4); margin-bottom: 18px; }
.palco-quality > div:last-child { flex: 1; min-width: 0; }
.palco-quality .palco-eyebrow { font-size: 7px; margin-bottom: 7px; }
.palco-quality .details-legenda { margin: 0 !important; }
.palco-quality .details-legenda > summary { font-size: 10px; min-height: 28px; line-height: 1.8; }
.palco-quality .tag, .palco-quality .sub { font-size: 10px; }
.palco-score-ring { position: relative; width: 44px; height: 44px; color: var(--studio-feedback-warning-fg); flex: 0 0 44px; }
.palco-score-ring.completo { color: var(--studio-feedback-success-fg); }
.palco-score-ring svg { width: 100%; height: 100%; }
.palco-score-ring circle { fill: none; stroke: var(--studio-border-subtle); stroke-width: 2.5; }
.palco-score-ring circle:last-child { stroke: currentColor; stroke-linecap: round; transition: stroke-dasharray .5s; }
.palco-score-ring > span { position: absolute; inset: 0; display: flex; gap: 1px; justify-content: center; align-items: center; }
.palco-score-ring b { font: 600 19px var(--studio-font-display); }
.palco-score-ring small { font-size: 8px; color: var(--studio-text-secondary); margin-top: 6px; }
.palco-section-title { display: flex; align-items: center; gap: var(--studio-space-2); margin-bottom: 18px; color: var(--studio-text-secondary); }
.palco-section-title h3 { font-size: 13px; font-weight: 600; }
.palco-audio { border: 1px solid var(--studio-ai-border); background: var(--studio-ai-bg); border-radius: var(--studio-radius-control); padding: 9px; }
.palco-audio > svg { display: block; width: 100%; height: 26px; fill: var(--studio-ai-fg); opacity: .6; margin-bottom: 5px; }
.palco-audio audio { display: block; width: 100%; height: 40px; }
.palco-edit-column .field video, .palco-edit-column .field audio { width: 100%; }
.palco-footer-space { height: 100px; }
.palco-actions { position: fixed; left: 276px; right: 40px; bottom: 18px; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: var(--studio-space-4); padding: 14px 18px; border: 1px solid var(--studio-border-strong); border-radius: 11px; background: var(--studio-surface-raised); backdrop-filter: blur(20px); box-shadow: var(--studio-shadow-panel); }
.palco-save-status { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--studio-text-secondary); }
.palco-save-status > svg { color: var(--studio-feedback-success-fg); flex-shrink: 0; }
.palco-save-status.sujo > svg { color: var(--studio-feedback-warning-fg); }
.palco-save-status small { display: block; margin-top: 3px; color: var(--studio-text-secondary); font-size: 8px; }
.palco-action-buttons { display: flex; align-items: center; gap: var(--studio-space-2); flex-wrap: wrap; }
.palco-actions .btn { min-height: 40px; border-radius: 7px; font-size: 11px; color: var(--studio-action-primary-fg); }
.palco-actions .btn.fantasma { background: var(--studio-surface-raised); color: var(--studio-text-primary); }
.palco-actions .btn.ai { color: var(--studio-ai-fg); }
@keyframes palco-star { to { transform: rotate(360deg); } }
@keyframes palco-orbit { to { stroke-dashoffset: -220; } }
@keyframes palco-wave { to { transform: scaleY(.35); } }
@media (min-width: 901px) {
  body:has(> .palco-actions) .toast-stack,
  body:has(> .palco-actions) .aviso-atualizacao { bottom: 108px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .kits-palco-shell.aprovacoes-shell { grid-template-columns: 185px minmax(0, 1fr); gap: 18px; }
  .palco-stage-grid { grid-template-columns: 1fr; }
  .palco-cover-column { position: relative; top: auto; max-width: 370px; width: 100%; margin: 0 auto; }
  .palco-counts { display: none; }
  .palco-actions { left: 260px; right: 24px; }
  .palco-save-status { display: none; }
  .palco-action-buttons { width: 100%; justify-content: flex-end; }
}
@media (max-width: 900px) {
  .estudio-app .main.main-kits-palco { padding-top: 22px; }
  .palco-hero { padding-bottom: 22px; }
  .palco-hero h1 { font-size: clamp(28px, 7.7vw, 36px); margin-top: 17px; }
  .palco-hero .palco-eyebrow { font-size: 6px; letter-spacing: .12em; }
  .palco-hero p { max-width: 260px; font-size: 11px; }
  .palco-star { width: 24px; height: 24px; margin-left: var(--studio-space-3); }
  .palco-counts { display: none; }
  .palco-hero-lines { width: 110px; height: 85px; }
  .kit-palco-mobile { overflow-x: clip; }
  .palco-mobile-product { padding: 5px 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--studio-border-subtle); }
  .palco-mobile-product h1 { font-size: 25px; line-height: 1.3; font-weight: 600; letter-spacing: -.04em; margin: 9px 0 0; overflow-wrap: anywhere; }
  .kit-palco-mobile .palco-cover-column { position: relative; top: auto; margin-bottom: 22px; }
  .kit-palco-mobile .palco-scene { padding: 22px 37px 38px; min-height: 440px; }
  .kit-palco-mobile .palco-cover { max-width: 290px; }
  .kit-palco-mobile .palco-float-copy { left: 0; top: 18%; }
  .kit-palco-mobile .palco-float-audio { right: 0; bottom: 16%; }
  .kit-palco-mobile .palco-cover-toolbar { font-size: 10px; padding: 14px 0; }
  .estudio-app .kit-palco-mobile .palco-cover-toolbar .btn { min-height: 44px; font-size: 10px; }
  .kit-palco-mobile .score-compact { border-radius: var(--studio-radius-control); border-color: var(--studio-border-subtle); background: var(--studio-surface-raised); padding: 14px; margin-bottom: 22px; }
  .kit-palco-mobile .field > label { font-size: 12px; }
  .kit-palco-mobile .field { margin-bottom: 20px; }
  .kit-palco-mobile .textarea-roteiro, .kit-palco-mobile .textarea-recado { border-radius: var(--studio-radius-control); background: var(--studio-surface-raised); line-height: 1.8; }
  .kit-palco-mobile .barra-acoes { background: var(--studio-surface-raised); backdrop-filter: blur(18px); border-top-color: var(--studio-border-strong); }
  .estudio-app .kit-palco-mobile .barra-acoes .btn { min-width: 0; min-height: 48px; padding: 6px var(--studio-space-2); font-size: 11px; line-height: 1.3; }
  .kit-palco-mobile .barra-acoes .btn:not(.quadrado) { flex: 1; }
  .kit-palco-mobile .barra-acoes .btn svg { flex-shrink: 0; width: 16px; height: 16px; }
  .estudio-app .kit-palco-mobile .barra-acoes .btn.quadrado { flex: 0 0 44px; width: 44px; padding: 0; }
  .kits-palco-list-mobile .item-lista { border-radius: 11px; padding: 13px; gap: 13px; }
  .kits-palco-list-mobile .item-lista .item-thumb { width: 52px; height: 78px; border-radius: 6px; }
  .kits-palco-list-mobile .item-meta { gap: 5px; }
  .palco-actions { display: none; }
}
@media (max-width: 365px) {
  .kit-palco-mobile .palco-scene { padding-inline: 29px; min-height: 400px; }
  .palco-float { padding: 7px; gap: 5px; }
  .palco-float b { font-size: 7px; }
  .palco-float > span:first-child { width: 22px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .palco-scene *, .palco-hero *, .palco-score-ring * { animation: none !important; transition: none !important; }
  .palco-depth-back, .palco-depth-middle, .palco-depth-front { transform: none !important; }
}
