/* The approved movement step shares the animation wizard's state and controls. */
body.platform .animation-studio .video-wizard-nav button.completed { color: var(--vv-success); }
body.platform .animation-studio .video-wizard-nav button.completed > span { background: var(--vv-success-soft); color: var(--vv-text); border-color: var(--vv-success); }
body.platform .animation-studio [data-stage="2"] > header { padding-bottom: 14px; }
body.platform .animation-studio [data-stage="2"] .video-step-body { gap: 16px; }
body.platform .animation-studio .video-mode-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
body.platform .animation-studio .video-mode { display: flex; gap: 0; min-width: 0; padding: 6px; border: 1px solid var(--vv-border); border-radius: 11px; background: var(--vv-surface); color: var(--vv-text); overflow: hidden; }
body.platform .animation-studio .video-mode.selected { padding: 6px; border-color: var(--vv-accent); background: var(--vv-raised); }
.animation-mode-photo { position: relative; width: 100%; }
body.platform .animation-studio .video-mode .video-mode-art { display: block; width: 100%; height: auto; aspect-ratio: 2.6; object-fit: cover; border-radius: 6px; }
body.platform .animation-studio .animation-mode-symbol { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--vv-surface); box-shadow: 0 2px 10px var(--vv-shadow); color: var(--vv-accent); font: 28px/1 'DM Sans',sans-serif; }
body.platform .animation-studio [data-video-mode="image"] .animation-mode-symbol { font-size: 21px; padding-left: 3px; }
.animation-mode-check { display: none; position: absolute; top: 8px; right: 8px; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--vv-on-accent); background: var(--vv-accent); font-style: normal; font-size: 17px; }
.video-mode.selected .animation-mode-check { display: grid; }
.animation-mode-copy { display: grid; gap: 5px; padding: 11px 11px 10px; }
.animation-mode-copy strong { color: var(--vv-text); font-size: 15px; }
body.platform .animation-studio .animation-mode-copy span { color: var(--vv-muted); font-size: 12px; }
body.platform .animation-studio label.animation-video-label { display: block; font-size: 13px; margin: 0 0 9px; }
body.platform .animation-studio .animation-video-drop { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; min-height: 115px; padding: 20px; margin: 0; border: 1px dashed var(--vv-border); border-radius: 9px; background: var(--vv-surface); color: var(--vv-text); text-align: left; }
.animation-video-drop > svg { flex: 0 0 38px; width: 38px; height: 38px; color: var(--vv-muted); }
.animation-video-drop > div { display: grid; gap: 4px; margin-right: auto; }
.animation-video-drop strong { font-size: 14px; }
body.platform .animation-studio .animation-video-drop span { font-size: 12px; color: var(--vv-muted); }
.animation-video-drop small { margin-top: 8px; font-size: 10px; color: var(--vv-muted); }
body.platform .animation-studio .animation-video-drop .button { flex-shrink: 0; padding: 10px 18px; border: 1px solid var(--vv-accent); border-radius: 8px; color: var(--vv-accent); font-size: 12px; font-weight: 400; background: var(--vv-surface); }
body.platform .animation-studio .animation-video-drop.dragging { background: var(--vv-surface); border-color: var(--vv-accent); }
body.platform .animation-studio #video-reference-fields > p:empty { display: none; }
body.platform .animation-studio .animation-video-hint { margin: 10px 0 16px; font-size: 11px; color: var(--vv-muted); }
.animation-video-hint::before { content: 'ⓘ'; margin-right: 9px; font-size: 15px; }
body.platform .animation-studio .motion-library { max-width: none; padding: 13px 15px; margin: 0; border: 1px solid var(--vv-border); border-radius: 9px; background: var(--vv-surface); box-shadow: none; }
body.platform .animation-studio .motion-library > summary { display: flex; align-items: center; gap: 12px; list-style: none; color: var(--vv-text); cursor: pointer; }
.animation-studio .motion-library > summary::-webkit-details-marker { display: none; }
.animation-studio .motion-library > summary > svg { flex-shrink: 0; }
.animation-studio .motion-library > summary > span { display: grid; gap: 3px; }
.animation-studio .motion-library > summary strong { font-size: 12px; font-weight: 500; }
.animation-studio .motion-library > summary small { font-size: 10px; color: var(--vv-muted); font-weight: 400; }
.animation-studio .motion-library > summary > b { font-size: 22px; margin-left: auto; font-weight: 400; }
.animation-studio .motion-library[open] > summary > b { transform: rotate(90deg); }
body.platform .animation-studio .video-consent-card { padding: 14px 16px; border: 1px solid var(--vv-border); border-radius: 9px; background: var(--vv-surface); margin: 0; }
/* Keep the authorization box easy to tap on phones (22 px, like the other studios). */
body.platform .animation-studio .video-consent-card input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 22px; }
body.platform .animation-studio .video-consent-card strong { font-size: 12px; }
body.platform .animation-studio .video-consent-card span > span { font-size: 11px; color: var(--vv-muted); }
body.platform .animation-studio #video-preview { max-height: 320px; width: 100%; margin: 14px 0; object-fit: contain; border-radius: 9px; background: var(--vv-surface); }
body.platform .animation-studio .animation-preview-art img { object-fit: contain; background: var(--vv-surface); }
body.platform .animation-aside .animation-result-help { font-size: 12px; color: var(--vv-muted); margin: -2px 0 12px; }
body.platform .animation-aside .quick-guide { max-width: none; margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--vv-border); border-radius: 0; background: var(--vv-surface); }
body.platform .animation-aside .quick-guide summary { color: var(--vv-muted); font-size: 12px; font-weight: 400; cursor: pointer; }
body.platform .animation-aside .quick-guide ol { padding-left: 18px; font-size: 12px; line-height: 1.7; }
@media(max-width:1280px) { body.platform .animation-studio .animation-video-drop { flex-wrap: wrap; gap: 14px; } body.platform .animation-studio .animation-video-drop .button { margin-left: auto; } }
@media(max-width:600px) {
  body.platform .animation-studio .video-mode-options { grid-template-columns: minmax(0,1fr); }
  body.platform .animation-studio .animation-video-drop { padding: 16px 14px; gap: 12px; }
  .animation-video-drop > svg { flex-basis: 27px; width: 27px; height: 27px; }
  .animation-video-drop > div { flex: 1; min-width: 0; }
  body.platform .animation-studio .animation-video-drop .button { width: 100%; }
  body.platform .animation-studio .video-consent-card { padding: 13px; }
}

/* The studio and history share a dark viewing surface and a separate inspector. */
/* Action controls inherit the shared pink token; lime is reserved for numbers. */
body.platform .animation-grid { grid-template-columns: minmax(300px,24%) minmax(0,1fr); gap: 12px; }
body.platform .animation-grid > * { min-width: 0; }
body.platform .animation-aside { display: grid; grid-template-columns: minmax(0,1fr) clamp(175px,16vw,250px); gap: 12px; width: 100%; max-width: none; padding: 14px; }
.animation-aside .animation-eyebrow { grid-column: 1/-1; }
.animation-preview-art, .history-media { background: #1c1f20; border-radius: 14px; overflow: hidden; }
body.platform .animation-studio .animation-preview-art :is(img,#video-preview) { display: block; width: 100%; height: clamp(360px,66dvh,820px); max-height: none; object-fit: contain; background: transparent; }
body.platform .animation-preview-art [hidden] { display: none !important; }
.animation-inspector, .history-details { min-width: 0; padding: 14px; border: 1px solid var(--vv-border); border-radius: 14px; }
.animation-studio .animation-image-chooser, .animation-studio .video-settings-grid { grid-template-columns: minmax(0,1fr); }
body.platform .animation-studio .video-wizard-nav { padding: 10px; }
body.platform .animation-studio .video-wizard-nav button { flex-direction: column; font-size: 10px; }
body.platform .animation-studio .video-wizard .video-step > header, body.platform .animation-studio .video-wizard .video-step-body { padding: 14px; }
body.platform .animation-studio .video-wizard-actions { margin: 0 12px; flex-wrap: wrap; }
body.platform .animation-studio .video-wizard-actions .primary { min-width: 0; }
.animation-studio .video-mode-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.platform .animation-studio .video-wizard .video-selection img { height: 110px; object-fit: contain; }
body.platform .animation-history { margin-top: 12px; }
.animation-history .video-results-head { padding: 14px 18px; background: var(--vv-surface); border-radius: 14px; }
.history-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--vv-accent); }
body.platform .animation-history .video-results-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
body.platform .animation-history .video-result { display: grid; grid-template-columns: minmax(0,1fr) clamp(235px,23%,360px); gap: 12px; padding: 12px; }
.history-media { display: grid; place-items: center; min-width: 0; }
body.platform .history-media video { width: 100%; height: clamp(280px,57dvh,650px); max-height: none; margin: 0; object-fit: contain; background: transparent; }
.history-details { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
body.platform .history-details h4 { font-size: 19px; margin: 0; }
.history-details .fine { line-height: 1.6; }
.history-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media(min-width:1001px) {
  body.platform .animation-studio .animation-grid .video-wizard { max-height: calc(100dvh - 180px); overflow-y: auto; scrollbar-width: thin; }
}
@media(max-width:1000px) {
  body.platform .animation-aside { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:720px) {
  body.platform .animation-grid, body.platform .animation-history .video-result { grid-template-columns: minmax(0,1fr); }
  body.platform .animation-studio .animation-preview-art :is(img,#video-preview), body.platform .history-media video { height: min(62dvh,460px); }
}
.animation-studio .video-wizard-nav { display: none !important; }
body.platform .animation-studio .animation-model-banner { width:100%; padding:14px; border-radius:12px; background:linear-gradient(90deg,#151718fa,#15171866),url('/visuals/studio/motion-reference-darkmovie-v3.webp') center 35%/cover; }
.animation-model-banner small { color:var(--vv-accent); font-size:10px; letter-spacing:.12em; }
body.platform .animation-studio .video-mode-options { display:flex; gap:4px; padding:4px; border:1px solid var(--vv-border); border-radius:12px; }
body.platform .animation-studio .video-mode-options .video-mode { display:block; flex:1; width:auto; min-width:0; padding:8px 4px; border:0; font-size:11px; text-align:center; }
body.platform .animation-studio .video-mode-options .selected { background:var(--vv-raised); color:var(--vv-accent); }
body.platform .animation-studio .animation-prompt-switch { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px; background:var(--vv-raised); border-radius:10px; }
.animation-prompt-switch input { accent-color:var(--vv-accent); width:20px; height:20px; }
.animation-reference-list { display:flex; gap:6px; flex-wrap:wrap; }
.animation-reference-list:empty { display:none; }
.animation-reference-list button { color:var(--vv-text); background:var(--vv-raised); border:1px solid var(--vv-border); border-radius:8px; padding:6px; }
.animation-preview-art:not(:has(img:not([hidden]),video:not([hidden]))) { display:grid; place-items:center; min-height:45dvh; }
.animation-preview-art:not(:has(img:not([hidden]),video:not([hidden])))::after { content:'Adicione uma referência para ver a prévia'; color:var(--vv-muted); font-size:13px; }
body.platform .animation-studio .animation-video-drop { display:grid; justify-items:center; justify-content:stretch; text-align:center; gap:5px; padding:10px; min-height:100px; background:#202224; }
.animation-video-drop > div { margin:0; }
body.platform .animation-studio .animation-video-drop > svg { width:20px; height:20px; }
body.platform .animation-studio .animation-video-drop span, .animation-studio .animation-video-hint { display:none; }
.animation-studio .animation-video-drop small { margin:0; }
body.platform .animation-studio .animation-video-drop .button { margin:auto; width:auto; padding:6px 12px; }
body.platform .animation-studio [data-stage="2"] .video-step-body,body.platform .animation-studio #video-reference-fields { gap:7px; }
body.platform .animation-studio [data-stage="2"] h4 { font-size:12px; margin:5px 0 0; }
body.platform .animation-studio .animation-upload { min-height:0; padding:10px; gap:5px; background:#202224; }
body.platform .animation-studio .animation-upload #video-selected:not([hidden]) { display:flex; flex-direction:row; align-items:center; width:100%; text-align:left; }
body.platform .animation-studio .animation-upload #video-selected img { width:40px; height:44px; }
body.platform .animation-studio .animation-prompt-switch input { appearance:none; width:30px; height:17px; border-radius:10px; border:0; background:#62666b; cursor:pointer; }
.animation-prompt-switch input::before { content:''; display:block; margin:3px; width:11px; height:11px; border-radius:50%; background:white; }
body.platform .animation-studio .animation-prompt-switch input:checked { background:#799800; }
.animation-prompt-switch input:checked::before { transform:translateX(13px); }
