/* AVATIX AI Editor V0.9 — isolated, additive, mobile-first */
.ev09-view{--ev09-panel:#0b111c;--ev09-panel-2:#0e1624;--ev09-line:rgba(153,177,209,.16);--ev09-muted:#8fa0b7;--ev09-accent:#25c6f7;--ev09-accent-soft:rgba(37,198,247,.12);min-width:0;padding-bottom:110px}
.ev09-view *{box-sizing:border-box}
.ev09-editor-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;margin-bottom:16px;padding:14px 16px;border:1px solid var(--ev09-line);background:rgba(8,13,22,.94);border-radius:18px;position:sticky;top:72px;z-index:16;backdrop-filter:blur(14px)}
.ev09-project-title{min-width:0;display:grid;gap:3px}.ev09-project-title .section-label{font-size:10px}.ev09-project-title input{width:min(100%,540px);border:0;background:transparent;color:#f5f8fc;font:700 clamp(18px,2vw,24px)/1.2 inherit;padding:2px 0;outline:none}.ev09-project-title input::placeholder{color:#68778c}.ev09-project-title small{font-size:11px;color:var(--ev09-muted)}
.ev09-ratio-group,.ev09-segmented{display:flex;align-items:center;gap:4px;padding:4px;background:#070c14;border:1px solid var(--ev09-line);border-radius:12px}.ev09-ratio-group button,.ev09-segmented button{min-height:38px;border:0;border-radius:9px;padding:0 12px;background:transparent;color:#aebbd0;font:700 12px/1 inherit;cursor:pointer}.ev09-ratio-group button.active,.ev09-segmented button.active{background:#152438;color:#fff;box-shadow:inset 0 0 0 1px rgba(37,198,247,.25)}
.ev09-generate{min-width:128px}
.ev09-workspace{display:grid;grid-template-columns:320px minmax(0,1fr) 330px;gap:14px;min-height:650px;align-items:start}
.ev09-script-column,.ev09-properties-column{min-width:0}.ev09-properties-column{display:grid;gap:10px;max-height:calc(100vh - 175px);overflow:auto;padding-right:2px;position:sticky;top:154px}.ev09-script-column{position:sticky;top:154px;max-height:calc(100vh - 175px)}
.ev09-panel{background:var(--ev09-panel);border:1px solid var(--ev09-line);border-radius:18px;padding:16px;box-shadow:0 16px 44px rgba(0,0,0,.14)}.ev09-panel-script{height:100%;max-height:calc(100vh - 175px);display:flex;flex-direction:column}.ev09-panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.ev09-panel-title span{display:block;color:#71849d;font-weight:800;font-size:9px;letter-spacing:.11em}.ev09-panel-title h3{font-size:16px;margin:3px 0 0;color:#f4f7fb}.ev09-icon{width:38px;height:38px;border-radius:10px;border:1px solid var(--ev09-line);background:#0a101a;color:#b8c5d8;font-size:20px;cursor:pointer}.ev09-panel-title .ev09-icon{display:none}
.ev09-field{display:grid;gap:7px;margin:0 0 12px}.ev09-field>span{font-size:12px;font-weight:800;color:#c8d3e2}.ev09-field input,.ev09-field textarea,.ev09-field select{width:100%;border:1px solid var(--ev09-line);border-radius:12px;background:#070d16;color:#edf4ff;padding:12px;font:500 13px/1.45 inherit;outline:none}.ev09-field input:focus,.ev09-field textarea:focus,.ev09-field select:focus{border-color:rgba(37,198,247,.65);box-shadow:0 0 0 3px rgba(37,198,247,.1)}
#ev09-script{min-height:190px;resize:vertical;flex:1}.ev09-panel-script>.ev09-field:first-of-type{flex:1;min-height:0}.ev09-panel-script>.ev09-field:first-of-type textarea{height:100%}
.ev09-inline-tools,.ev09-voice-actions,.ev09-background-row,.ev09-element-pills{display:flex;flex-wrap:wrap;gap:8px}.ev09-soft-button,.ev09-link-button,.ev09-danger-link,.ev09-upload-chip{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;padding:0 11px;font:700 12px/1 inherit;cursor:pointer}.ev09-soft-button,.ev09-upload-chip{background:#101b2b;border:1px solid var(--ev09-line);color:#cdd8e8}.ev09-link-button{border:0;background:transparent;color:#65d8ff;padding:0 4px}.ev09-danger-link{border:0;background:transparent;color:#ff8b9a}.ev09-soft-button:disabled,.ev09-danger-link:disabled{opacity:.35;cursor:not-allowed}.ev09-script-stats{display:flex;justify-content:space-between;gap:12px;color:var(--ev09-muted);font-size:11px;margin:8px 0 12px}.ev09-pronunciation{border-top:1px solid var(--ev09-line);padding-top:12px;margin-top:auto}.ev09-pronunciation summary{cursor:pointer;font-size:12px;font-weight:800;color:#d5dfed}.ev09-pronunciation p,.ev09-helper{color:var(--ev09-muted);font-size:11px;line-height:1.5}.ev09-pronunciation textarea{width:100%;min-height:100px;margin:10px 0;border:1px solid var(--ev09-line);border-radius:11px;background:#070d16;color:#eef4fb;padding:11px;resize:vertical}
.ev09-stage-column{min-width:0;background:#080d15;border:1px solid var(--ev09-line);border-radius:20px;overflow:hidden}.ev09-stage-wrap{min-height:470px;padding:28px;display:grid;place-items:center;background:radial-gradient(circle at 50% 38%,rgba(43,67,98,.18),transparent 52%),#05080d}.ev09-canvas{position:relative;overflow:hidden;background:#0b1320;border:1px solid rgba(255,255,255,.09);box-shadow:0 24px 70px rgba(0,0,0,.38);max-height:57vh;max-width:100%;transition:width .15s ease}.ev09-canvas.ratio-9-16{height:min(54vh,610px);aspect-ratio:9/16}.ev09-canvas.ratio-16-9{width:min(92%,760px);aspect-ratio:16/9}.ev09-canvas.ratio-1-1{height:min(53vh,570px);aspect-ratio:1/1}.ev09-canvas-bg{position:absolute;inset:0;background-size:cover!important;background-position:center!important;display:grid;place-items:center}.ev09-scene-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.ev09-avatar-stage{position:absolute;inset:auto 50% 0;transform:translateX(-50%);height:94%;max-width:96%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 18px 30px rgba(0,0,0,.28))}.ev09-stage-placeholder{position:relative;z-index:2;display:grid;justify-items:center;text-align:center;max-width:240px;padding:22px;color:#d8e5f5}.ev09-stage-placeholder>span{font-size:34px;margin-bottom:8px;color:#4dd4ff}.ev09-stage-placeholder b{font-size:14px}.ev09-stage-placeholder small{color:#8ea0b8;margin-top:5px;line-height:1.45}
.ev09-caption{position:absolute;z-index:5;left:7%;right:7%;display:flex;justify-content:center;text-align:center;pointer-events:none}.ev09-caption.bottom{bottom:7%}.ev09-caption.middle{top:50%;transform:translateY(-50%)}.ev09-caption.top{top:7%}.ev09-caption span{display:inline-block;max-width:92%;font:800 clamp(11px,1.5vw,22px)/1.25 inherit;text-wrap:balance}.ev09-caption.clean span{color:#fff;text-shadow:0 2px 9px #000,0 1px 3px #000}.ev09-caption.bold span{color:#fff500;text-transform:uppercase;text-shadow:0 2px 4px #000;letter-spacing:.01em}.ev09-caption.boxed span{color:#fff;background:rgba(0,0,0,.76);border-radius:6px;padding:.18em .45em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.ev09-stage-toolbar{display:flex;justify-content:center;gap:6px;padding:9px 12px;border-top:1px solid var(--ev09-line);border-bottom:1px solid var(--ev09-line);background:#0a101a}.ev09-stage-toolbar button{min-height:38px;padding:0 12px;border-radius:9px;border:1px solid transparent;background:transparent;color:#adbbcf;font:700 12px/1 inherit;cursor:pointer}.ev09-stage-toolbar button.active,.ev09-stage-toolbar button:hover{background:#101c2c;border-color:var(--ev09-line);color:#fff}
.ev09-timeline{padding:12px;background:#080d15}.ev09-scene-strip{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin}.ev09-scene-card{position:relative;display:grid;grid-template-columns:60px minmax(86px,1fr);align-items:center;gap:9px;flex:0 0 190px;min-height:72px;padding:7px;border-radius:12px;border:1px solid var(--ev09-line);background:#0b121d;color:#d9e4f2;text-align:left;cursor:pointer}.ev09-scene-card.active{border-color:rgba(37,198,247,.7);box-shadow:0 0 0 2px rgba(37,198,247,.08)}.ev09-scene-number{position:absolute;top:4px;left:4px;z-index:2;min-width:19px;height:19px;display:grid;place-items:center;border-radius:999px;background:rgba(4,8,14,.82);font-size:9px;color:#fff}.ev09-scene-thumb{width:60px;height:54px;overflow:hidden;border-radius:8px;background:#05080d;display:grid;place-items:center}.ev09-scene-thumb img{width:100%;height:100%;object-fit:cover}.ev09-thumb-media{font-size:18px;color:#7ddfff}.ev09-scene-copy{min-width:0;display:grid;gap:4px}.ev09-scene-copy b,.ev09-scene-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ev09-scene-copy b{font-size:12px}.ev09-scene-copy small{font-size:10px;color:var(--ev09-muted)}.ev09-add-scene{flex:0 0 82px;min-height:72px;border-radius:12px;border:1px dashed rgba(104,143,183,.38);background:transparent;color:#9eb0c7;display:grid;place-items:center;align-content:center;gap:3px;cursor:pointer}.ev09-add-scene span{font-size:22px}.ev09-add-scene b{font-size:10px}.ev09-scene-actions{display:flex;justify-content:flex-end;gap:5px;margin-top:6px}
.ev09-property-block{display:grid;gap:10px;padding:12px 0;border-top:1px solid var(--ev09-line)}.ev09-property-block:first-of-type{border-top:0;padding-top:2px}.ev09-property-block>b{font-size:13px}.ev09-property-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ev09-property-head>div{display:grid;gap:2px}.ev09-property-head b{font-size:13px}.ev09-property-head small{color:var(--ev09-muted);font-size:10px;line-height:1.4}.ev09-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.ev09-resource-card{min-width:0;display:grid;gap:5px;justify-items:center;padding:6px;border:1px solid var(--ev09-line);background:#07101a;border-radius:11px;color:#dce8f6;cursor:pointer}.ev09-resource-card img,.ev09-resource-icon{width:100%;aspect-ratio:1/1;border-radius:8px;object-fit:cover;background:#0d1a29;display:grid;place-items:center}.ev09-resource-card span{max-width:100%;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ev09-resource-card.selected,.ev09-voice-row.selected{border-color:rgba(37,198,247,.7);background:var(--ev09-accent-soft)}.ev09-empty-inline{display:grid;gap:3px;border:1px dashed var(--ev09-line);border-radius:11px;padding:12px}.ev09-empty-inline b{font-size:12px}.ev09-empty-inline span{font-size:10px;color:var(--ev09-muted)}.ev09-voice-list{display:grid;gap:6px;max-height:190px;overflow:auto}.ev09-voice-row{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:9px;min-height:48px;padding:6px 9px;border:1px solid var(--ev09-line);border-radius:10px;background:#07101a;color:#d9e5f4;text-align:left;cursor:pointer}.ev09-voice-row>.ev09-resource-icon{width:36px;height:36px}.ev09-voice-row>span:last-child{display:grid;gap:2px}.ev09-voice-row b{font-size:11px}.ev09-voice-row small{font-size:9px;color:var(--ev09-muted)}.ev09-audio-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px;border:1px solid var(--ev09-line);border-radius:11px}.ev09-audio-preview audio{grid-column:1/-1;width:100%;height:34px}.ev09-audio-preview>div{display:grid;gap:2px}.ev09-audio-preview b{font-size:11px}.ev09-audio-preview small{color:var(--ev09-muted);font-size:9px}.ev09-advanced summary{font-size:11px;font-weight:800;color:#bdd0e5;cursor:pointer;margin-bottom:10px}.ev09-future-option{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px dashed var(--ev09-line);border-radius:10px;padding:10px}.ev09-future-option>div{display:grid;gap:2px}.ev09-future-option b{font-size:11px}.ev09-future-option small{font-size:9px;color:var(--ev09-muted);line-height:1.35}.ev09-beta{font-size:8px;font-weight:900;text-transform:uppercase;color:#7cdfff;background:rgba(37,198,247,.1);padding:4px 6px;border-radius:999px;white-space:nowrap}
.ev09-drop-zone{min-height:66px;display:grid;place-items:center;border:1px dashed rgba(104,143,183,.45);border-radius:12px;background:#070d16;color:#b8c9dd;font:800 11px/1.3 inherit;cursor:pointer;text-align:center;padding:12px}.ev09-drop-zone:hover{border-color:rgba(37,198,247,.65);background:#09131f}.ev09-media-meta{display:grid;gap:2px;padding:9px;border-radius:10px;background:#07101a}.ev09-media-meta b{font-size:11px}.ev09-media-meta span{font-size:9px;color:var(--ev09-muted)}.ev09-color-control{display:flex;align-items:center;gap:7px;min-height:40px;padding:5px 9px;border:1px solid var(--ev09-line);border-radius:10px;color:#cdd8e8;font-size:11px;font-weight:800}.ev09-color-control input{width:27px;height:27px;border:0;background:transparent;padding:0}.ev09-element-pills button{min-height:36px;border:1px solid var(--ev09-line);border-radius:9px;background:#0a111c;color:#68798f;padding:0 12px}.ev09-switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 15px}.ev09-switch-row>span{display:grid;gap:2px}.ev09-switch-row b{font-size:12px}.ev09-switch-row small{font-size:9px;color:var(--ev09-muted)}.ev09-caption-sample{min-height:130px;border-radius:13px;background:linear-gradient(145deg,#172337,#080d15);display:grid;place-items:center;text-align:center;padding:15px}.ev09-caption-sample span{font-size:16px;font-weight:900;line-height:1.2}.ev09-caption-sample.clean span{color:#fff;text-shadow:0 2px 7px #000}.ev09-caption-sample.bold span{color:#fff500;text-transform:uppercase;text-shadow:0 2px 4px #000}.ev09-caption-sample.boxed span{background:rgba(0,0,0,.8);padding:4px 8px;border-radius:5px;color:#fff}
.ev09-cost-bar{position:sticky;bottom:10px;z-index:14;margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 15px;border:1px solid var(--ev09-line);border-radius:14px;background:rgba(6,10,17,.93);backdrop-filter:blur(14px);box-shadow:0 14px 40px rgba(0,0,0,.25)}.ev09-cost-bar>div{display:grid;gap:1px}.ev09-cost-bar b{font-size:13px}.ev09-cost-bar span{font-size:10px;color:var(--ev09-muted)}.ev09-scene-chip{white-space:nowrap;padding:6px 9px!important;border-radius:999px;background:#101c2b;color:#c9d9eb!important;font-weight:800!important}.ev09-mobile-dock{display:none}
.ev09-check{display:flex;gap:9px;align-items:flex-start;margin:10px 0;color:#bdc9d8;font-size:11px;line-height:1.4}.ev09-check input{margin-top:2px}.ev09-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.ev09-compare>div{border:1px solid var(--ev09-line);border-radius:12px;padding:11px;background:#080f19}.ev09-compare b{font-size:10px;color:#8fa3bc}.ev09-compare p{white-space:pre-wrap;font-size:12px;line-height:1.55}.ev09-split-preview{display:grid;gap:7px;max-height:360px;overflow:auto;margin:14px 0}.ev09-split-preview>div{display:grid;gap:3px;padding:9px 10px;border:1px solid var(--ev09-line);border-radius:10px;background:#080f19}.ev09-split-preview b{font-size:11px}.ev09-split-preview span{font-size:10px;color:var(--ev09-muted)}

@media(max-width:1250px){.ev09-workspace{grid-template-columns:270px minmax(0,1fr) 300px}.ev09-stage-wrap{padding:18px}.ev09-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:980px){
  .ev09-view{padding-bottom:150px}.ev09-editor-head{grid-template-columns:minmax(0,1fr) auto;top:66px;margin:0 -2px 10px;padding:10px 12px;border-radius:14px}.ev09-project-title .section-label{display:none}.ev09-project-title input{font-size:17px}.ev09-project-title small{font-size:9px}.ev09-ratio-group{display:none}.ev09-generate{min-width:104px;min-height:42px;font-size:12px}
  .ev09-workspace{display:block;min-height:0}.ev09-script-column,.ev09-properties-column{position:static;max-height:none;padding:0;overflow:visible}.ev09-script-column>.ev09-panel,.ev09-properties-column>.ev09-panel{display:none}.ev09-stage-column{border-radius:16px}.ev09-stage-wrap{min-height:390px;padding:18px 10px}.ev09-canvas.ratio-9-16{height:min(54vh,520px)}.ev09-canvas.ratio-16-9{width:min(96%,720px)}.ev09-canvas.ratio-1-1{height:min(49vh,510px)}
  .ev09-stage-toolbar{display:none}.ev09-timeline{padding:9px}.ev09-scene-card{flex-basis:160px;grid-template-columns:50px minmax(72px,1fr);min-height:64px}.ev09-scene-thumb{width:50px;height:48px}.ev09-add-scene{flex-basis:70px;min-height:64px}.ev09-scene-actions{justify-content:flex-start;overflow-x:auto}.ev09-scene-actions>*{flex:0 0 auto}
  .ev09-panel.mobile-open{display:flex!important;flex-direction:column;position:fixed;z-index:65;left:8px;right:8px;bottom:74px;max-height:min(74vh,690px);overflow:auto;border-radius:20px;padding:16px;box-shadow:0 -20px 70px rgba(0,0,0,.55);background:#0a111c}.ev09-panel-title .ev09-icon{display:grid;place-items:center}.ev09-panel-script.mobile-open>.ev09-field:first-of-type{min-height:210px}.ev09-panel-script.mobile-open #ev09-script{min-height:200px;height:220px}.ev09-properties-column{display:contents}
  .ev09-mobile-dock{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:60;left:8px;right:8px;bottom:8px;padding:5px;border:1px solid var(--ev09-line);border-radius:15px;background:rgba(7,12,20,.96);backdrop-filter:blur(14px);box-shadow:0 12px 40px rgba(0,0,0,.42)}.ev09-mobile-dock button{min-height:54px;border:0;border-radius:11px;background:transparent;color:#91a3ba;display:grid;place-items:center;align-content:center;gap:2px;font:700 9px/1 inherit}.ev09-mobile-dock button span{font-size:16px}.ev09-mobile-dock button.active{background:#122238;color:#fff}
  .ev09-cost-bar{position:static;margin:9px 0 0;padding:9px 11px}.ev09-cost-bar b{font-size:11px}.ev09-cost-bar>div>span{font-size:9px}.ev09-scene-chip{display:none}
}

@media(max-width:620px){
  body[data-route="criar-video"] .app-main{padding-left:8px!important;padding-right:8px!important}.ev09-view{margin-left:-2px;margin-right:-2px}.ev09-editor-head{top:58px}.ev09-project-title input{font-size:15px}.ev09-generate{min-width:90px;padding-left:10px;padding-right:10px}.ev09-stage-wrap{min-height:335px;padding:12px 6px}.ev09-canvas.ratio-9-16{height:min(51vh,450px)}.ev09-canvas.ratio-16-9{width:100%}.ev09-canvas.ratio-1-1{height:min(46vh,420px)}.ev09-caption span{font-size:clamp(11px,3.8vw,17px)}.ev09-timeline{padding:7px}.ev09-scene-card{flex-basis:145px;grid-template-columns:44px minmax(67px,1fr);gap:6px}.ev09-scene-thumb{width:44px;height:46px}.ev09-panel.mobile-open{left:5px;right:5px;bottom:70px;max-height:76vh;padding:14px}.ev09-resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ev09-compare{grid-template-columns:1fr}.ev09-mobile-dock{left:5px;right:5px;bottom:5px}.ev09-inline-tools>*{flex:1 1 120px}.ev09-property-head{align-items:center}.ev09-segmented{overflow-x:auto;justify-content:flex-start}.ev09-segmented button{flex:0 0 auto;min-height:42px}.ev09-voice-actions>*{flex:1 1 120px}.ev09-drop-zone{min-height:74px}}

@media(prefers-reduced-motion:reduce){.ev09-view *{scroll-behavior:auto!important;transition:none!important}}
