.element-app{position:relative;display:grid!important;grid-template-columns:360px minmax(0,1fr);grid-template-areas:"tools camera";flex:1;min-height:0;background:#101014;overflow:hidden}
.element-app .camera-screen{grid-area:camera;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;padding:16px;gap:10px;background:radial-gradient(circle at 50% 25%,#27232c,#111015 62%)}
.element-app .element-frame{position:relative;flex:1;min-height:0;width:min(100%,calc((100vh - 180px)*.5625));max-height:calc(100vh - 165px);aspect-ratio:9/16;border-radius:20px;overflow:hidden;background:#050506;box-shadow:0 18px 55px #0009;touch-action:none}
.element-app .element-frame canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.camera-empty{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px;text-align:center;color:#8f8a98;background:linear-gradient(180deg,#111015,#08080a)}
.camera-empty strong{color:#fff;font-size:17px}.camera-empty span{max-width:250px;font-size:12px;line-height:1.5}.camera-empty-icon{width:46px;height:46px;display:grid;place-items:center;border:1px solid #ffffff26;border-radius:50%;color:var(--accent);font-size:25px;background:#ffffff0b}.camera-empty .btn{margin-top:7px}
.camera-actions{flex:0 0 68px;display:flex;align-items:center;justify-content:center;width:100%}
.record-main,.record-stop{display:flex;align-items:center;justify-content:center;border:0;color:#fff;touch-action:manipulation}.record-main{width:62px;height:62px;padding:5px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #ffffff38,0 8px 22px #0008}.record-main span{display:block;width:100%;height:100%;border-radius:50%;background:var(--accent);transition:transform .12s}.record-main:active span{transform:scale(.88)}.record-main:disabled{opacity:.36}.record-stop{gap:10px;min-width:132px;height:50px;border-radius:999px;background:#2a242c;font-size:14px}.record-stop span{width:21px;height:21px;border-radius:6px;background:#ff244e}.record-stop b{font-variant-numeric:tabular-nums}
.record-timer{position:absolute;z-index:6;left:50%;top:14px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;background:#09090bd9;color:#fff;font-size:13px;font-weight:900;font-variant-numeric:tabular-nums;backdrop-filter:blur(8px)}
.record-countdown{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:#0008;color:#fff;font-size:clamp(82px,22vw,150px);font-weight:950;letter-spacing:-.06em;text-shadow:0 6px 28px #000;pointer-events:none}
.record-countdown:not(:empty){animation:count-pop .85s ease both}@keyframes count-pop{0%{opacity:0;transform:scale(.65)}30%{opacity:1;transform:scale(1)}100%{opacity:.85;transform:scale(.94)}}
.element-loading{position:absolute;z-index:5;left:50%;bottom:16px;transform:translateX(-50%);padding:7px 11px;border-radius:999px;background:#09090bd9;color:#fff;font-size:11px;font-weight:800;white-space:nowrap;backdrop-filter:blur(8px)}
.element-app .element-tools{grid-area:tools;display:flex;flex-direction:column;gap:22px;padding:20px;background:#fff;border:0;border-right:1px solid var(--line);overflow-y:auto}.tool-panel{display:flex}.tool-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.tool-link{border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:850;padding:4px}.tool-empty,.current-source{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.element-app .element-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:300px;overflow:auto;padding:2px}.element-app .element-item{min-height:68px;padding:3px;border:1px solid #dedbe1;border-radius:10px;background:#f8f7f9}.element-app .element-item.active{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)}.element-app .element-item img{display:block;width:100%;height:62px;object-fit:contain;border-radius:7px;background:repeating-conic-gradient(#e7e7e7 0 25%,#fff 0 50%) 50%/14px 14px}
.source-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.source-card{min-height:76px;border:1px solid #dedbe1;border-radius:13px;background:#faf9fb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:12px}.source-card span{font-size:23px;color:#696572}.source-card.active{border-color:var(--accent);color:var(--accent);background:#fff4f6}.source-card.active span{color:var(--accent)}
.app-range{display:grid;grid-template-columns:65px 1fr;align-items:center;gap:10px;font-size:12px;font-weight:800;color:#56525e}.app-range input{min-height:32px}.studio-error{margin:0}
.mobile-tool-tabs{display:none}.result-screen{position:fixed;z-index:100;inset:0;display:flex;flex-direction:column;gap:18px;padding:max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#0d0d10;color:#fff}.result-screen header{display:flex;align-items:center;justify-content:space-between;gap:12px}.result-screen header div{display:flex;flex-direction:column;gap:3px}.result-screen header span{color:#aaa5b0;font-size:12px}.result-screen header strong{font-size:22px;font-variant-numeric:tabular-nums}.result-screen header button{width:40px;height:40px;border:1px solid #ffffff24;border-radius:50%;background:#ffffff10;color:#fff;font-size:26px}.result-preview{flex:1;min-height:0;display:grid;place-items:center}.result-preview video{display:block;max-width:100%;max-height:100%;aspect-ratio:9/16;border-radius:18px;background:#000}.result-actions{display:grid;gap:10px;width:100%;max-width:480px;margin:0 auto}.result-actions .btn{min-height:52px;font-size:15px}.save-video{text-decoration:none;text-align:center}
@media (max-width:800px){body{overscroll-behavior:none}.element-app{display:flex!important;flex-direction:column;height:calc(100dvh - 58px - env(safe-area-inset-top));min-height:0;background:#0d0d10}.element-app .camera-screen{order:1;flex:1 1 auto;min-height:0;height:auto;padding:8px 10px 2px;gap:3px;justify-content:flex-start}.element-app .element-frame{flex:1 1 auto;width:min(100%,calc((100dvh - 180px)*.5625));max-height:none;min-height:0;border-radius:16px}.camera-actions{flex:0 0 67px}.element-app .element-tools{order:2;display:none;flex:0 0 34dvh;width:100%;max-height:34dvh;padding:13px 12px 10px;gap:0;border:0;border-top:1px solid #2b2830;border-radius:18px 18px 0 0;box-shadow:0 -12px 32px #0005;overflow:hidden;background:#fff}.element-app[data-tool="elements"] .element-tools,.element-app[data-tool="source"] .element-tools,.element-app[data-tool="adjust"] .element-tools{display:block}.element-app .tool-panel{display:none;height:100%;overflow:auto}.element-app[data-tool="elements"] .element-library,.element-app[data-tool="source"] .source-panel,.element-app[data-tool="adjust"] .adjust-panel{display:flex}.element-app[data-tool="camera"] .camera-screen{padding-bottom:4px}.element-app:not([data-tool="camera"]) .camera-screen{flex:1 1 auto;min-height:240px}.element-app .element-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-height:none;overflow:auto;padding:1px}.element-app .element-item{min-height:55px;padding:2px;border-radius:8px}.element-app .element-item img{height:50px;border-radius:6px}.source-cards{gap:7px}.source-card{min-height:88px}.app-range{grid-template-columns:70px 1fr;margin:8px 0}.mobile-tool-tabs{order:3;flex:0 0 calc(62px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);padding:5px 5px max(5px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e3e0e6;z-index:20}.mobile-tool-tabs button{border:0;background:transparent;color:#85818b;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;min-width:0}.mobile-tool-tabs button span{font-size:19px;line-height:1}.mobile-tool-tabs button b{font-size:10px}.mobile-tool-tabs button.active{color:var(--accent);background:#fff0f3}.mobile-tool-tabs button:disabled{opacity:.42}.record-timer{top:10px}.result-screen{gap:12px}.result-preview video{border-radius:14px}.topnav .conta{margin-left:auto}}
@media (max-width:380px){.element-app .element-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.element-app .element-tools{flex-basis:36dvh;max-height:36dvh}.mobile-tool-tabs{flex-basis:calc(58px + env(safe-area-inset-bottom))}.element-app .element-frame{width:min(100%,calc((100dvh - 170px)*.5625))}}

/* Professional three-stage recording flow */
.element-app,.element-app *{box-sizing:border-box}
.element-app{grid-template-columns:360px minmax(0,1fr);grid-template-rows:64px minmax(0,1fr);grid-template-areas:"appbar appbar" "tools camera";background:#0b0b0d}
.studio-appbar{grid-area:appbar;display:flex;align-items:center;gap:12px;height:64px;padding:0 18px;background:#fff;border-bottom:1px solid #e7e5e9;color:#17151a;z-index:30}
.studio-appbar>div:nth-child(2){display:flex;flex-direction:column;min-width:0}.studio-appbar strong{font-size:14px}.studio-appbar span{font-size:11px;color:#77727d}.studio-back{width:38px;height:38px;border:1px solid #e4e1e7;border-radius:50%;background:#fff;color:#242127;font-size:20px}.studio-step{margin-left:auto!important;width:35px;height:25px;display:grid!important;place-items:center;border-radius:99px;background:#f1eff2;color:#5e5963!important;font-size:10px!important;font-weight:900}
.element-app .camera-screen{background:#0b0b0d}.section-kicker{margin:0 0 3px;color:#95909a;font-size:9px;font-weight:900;letter-spacing:.14em}.tool-head>div{min-width:0}.source-status{display:flex;align-items:center;gap:9px;margin-top:12px;padding:10px 11px;border:1px solid #e4e1e7;border-radius:11px;background:#faf9fa}.source-status>i{width:8px;height:8px;border-radius:50%;background:#23a55a;box-shadow:0 0 0 3px #23a55a19}.source-status>span{display:flex;flex-direction:column;min-width:0;font-size:12px}.source-status small{overflow:hidden;color:#817c87;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.source-loading{position:absolute;z-index:8;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;background:#08080bd9;color:#fff;font-size:12px;font-weight:800}.source-loading i,.processing-screen i{width:23px;height:23px;border:3px solid #ffffff35;border-top-color:#fff;border-radius:50%;animation:studio-spin .7s linear infinite}@keyframes studio-spin{to{transform:rotate(360deg)}}
.prepare-action{flex:0 0 58px;width:min(100%,460px);display:flex;align-items:center}.continue-record{width:100%;min-height:48px;display:flex!important;align-items:center;justify-content:space-between!important;padding-inline:18px!important;border-radius:13px!important}.continue-record b{font-size:19px}.record-controls{flex:0 0 72px;width:min(100%,420px);display:grid;grid-template-columns:1fr 76px 1fr;align-items:center}.record-controls>*{justify-self:center}.record-cancel,.record-secondary{min-width:76px;min-height:42px;border:1px solid #ffffff25;border-radius:99px;background:#ffffff10;color:#fff;font-size:12px;font-weight:800}.record-duration,.record-control-spacer{min-width:76px;border:0;background:transparent;color:#fff;font-size:12px;font-weight:900;font-variant-numeric:tabular-nums}.record-hint{grid-column:1/-1;color:#c7c3ca;font-size:12px;font-weight:800}.record-controls .record-main{width:68px;height:68px}.record-controls .record-stop{min-width:62px;width:62px;height:62px;border:3px solid #fff;border-radius:50%;background:transparent}.record-controls .record-stop span{width:24px;height:24px;border-radius:6px}.record-timer.paused .rec-dot{background:#ffb020;animation:none}.processing-screen{position:fixed;z-index:110;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;padding:24px;background:#0b0b0d;color:#fff}.processing-screen i{width:36px;height:36px;margin-bottom:8px}.processing-screen strong{font-size:17px}.processing-screen span{color:#9d98a2;font-size:12px}
.result-screen{background:#0b0b0d}.result-screen header{height:46px}.result-screen header>div{align-items:center}.review-back{width:40px;height:40px;border:1px solid #ffffff22;border-radius:50%;background:#ffffff0c;color:#fff;font-size:20px}.result-size{min-width:40px;color:#a7a2ac!important;text-align:right}.result-edit{min-height:38px;border:0;background:transparent;color:#bdb8c1;font-size:12px;font-weight:800}.result-actions{grid-template-columns:1fr 1fr;max-width:560px}.result-actions .save-video{grid-column:1/-1}.result-actions .result-edit{grid-column:1/-1}.result-preview video{background:#000;box-shadow:0 18px 50px #0009}
.element-app[data-phase="record"]{grid-template-columns:1fr;grid-template-areas:"appbar" "camera"}.element-app[data-phase="record"] .camera-screen{padding-bottom:10px}.element-app[data-phase="record"] .element-frame{width:min(100%,calc((100vh - 168px)*.5625));max-height:calc(100vh - 168px)}

@media (max-width:800px){
html,body,#root,.shell{min-height:100%;height:100%}body.element-studio-open{position:fixed;inset:0;width:100%;overflow:hidden;background:#0b0b0d}body.element-studio-open .shell>.topnav,body.element-studio-open .shell>.conflito-barra{display:none}
.element-app{display:flex!important;width:100vw;max-width:100vw;min-width:0;height:100dvh;min-height:100dvh;padding-top:env(safe-area-inset-top);overflow:hidden;background:#0b0b0d}.element-app>.studio-appbar,.element-app>.camera-screen,.element-app>.element-tools,.element-app>.mobile-tool-tabs{width:100%;max-width:100%;min-width:0}.element-app .tool-panel,.element-app .source-cards{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
.studio-appbar{order:0;flex:0 0 55px;height:55px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));border-bottom-color:#242127;background:#111114;color:#fff}.studio-appbar span{color:#918c96}.studio-appbar .studio-back{width:36px;height:36px;border-color:#ffffff20;background:#ffffff08;color:#fff}.studio-step{background:#ffffff12!important;color:#c9c5cd!important}
.element-app .camera-screen{order:1;flex:1 1 auto;min-height:0;padding:7px 10px 3px;gap:4px;background:#0b0b0d}.element-app .element-frame{width:min(100%,calc((100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*.5625));border-radius:15px;box-shadow:none}.prepare-action{flex-basis:54px}.continue-record{min-height:45px}
.element-app .element-tools{order:2;flex:0 0 min(37dvh,330px);max-height:min(37dvh,330px);padding:14px 12px 10px;border-radius:17px 17px 0 0;border-top:0;box-shadow:0 -8px 26px #0007}.element-app:not([data-tool="camera"]) .camera-screen{flex:1 1 auto;min-height:205px}.element-app:not([data-tool="camera"]) .element-frame{width:min(100%,calc((58dvh - 120px)*.5625))}.element-app:not([data-tool="camera"]) .prepare-action{display:none}
.mobile-tool-tabs{order:3;flex-basis:calc(59px + env(safe-area-inset-bottom));padding-bottom:max(5px,env(safe-area-inset-bottom));border-top-color:#dedbe0}.mobile-tool-tabs button{min-height:48px;touch-action:manipulation}.mobile-tool-tabs button.active{background:#f4f1f4;color:#e81342}
.element-app[data-phase="record"] .camera-screen{flex:1;justify-content:flex-start;padding:7px 10px max(8px,env(safe-area-inset-bottom))}.element-app[data-phase="record"] .element-frame{flex:1;width:min(100%,calc((100dvh - 145px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*.5625));max-height:none}.record-controls{flex-basis:76px}.record-timer{top:10px}.record-countdown{font-size:clamp(92px,28vw,140px)}
.result-screen{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:10px}.result-preview{overflow:hidden}.result-preview video{width:auto;max-height:100%;border-radius:12px}.result-actions{grid-template-columns:1fr 1fr;gap:8px}.result-actions .btn{min-height:48px}
}

@media (max-width:380px){.studio-appbar{flex-basis:51px;height:51px}.element-app .element-tools{flex-basis:min(39dvh,315px);max-height:min(39dvh,315px)}.element-app .element-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.source-card{min-height:74px}.result-actions .btn{font-size:13px}}

@media (prefers-reduced-motion:reduce){.record-countdown,.source-loading i,.processing-screen i{animation-duration:.01ms!important;animation-iteration-count:1!important}}

.source-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.source-card{min-width:0}.mobile-tool-tabs{width:100%;max-width:100%}
