/* DIAMOND EDIT AI V21 — Mobile split-studio: preview is always in view while controls scroll. */
:root{--v21-ink:#050a13;--v21-glass:#0a1a2a;--v21-gold:#efc17a;--v21-blue:#45b5fa}
@media(max-width:650px){
 html:has(.shell.mode-photo),html:has(.shell.mode-editor){height:100%;overflow:hidden!important}
 body:has(.shell.mode-photo),body:has(.shell.mode-editor){height:100dvh!important;min-height:0!important;overflow:hidden!important;margin:0!important}
 body .shell.mode-photo,body .shell.mode-editor{height:100dvh!important;min-height:0!important;padding:0!important;overflow:hidden!important;display:block!important}
 body .shell.mode-photo .content-shell,body .shell.mode-editor .content-shell{height:100dvh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;min-height:0!important}
 body .mode-editor .topbar,body .mode-editor .sidebar,body .mode-photo .topbar,body .mode-photo .sidebar{display:none!important}
 body .mode-editor .content-shell main#screen,body .mode-photo .content-shell main#screen{width:100%!important;max-width:none!important;display:flex!important;flex-direction:column!important;gap:5px!important;flex:1 1 0!important;min-height:0!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important;overscroll-behavior:contain!important;margin:0!important;padding:calc(7px + env(safe-area-inset-top,0px)) 8px calc(6px + env(safe-area-inset-bottom,0px))!important}
 body .mode-editor .editor-top,body .mode-photo .photo-heading{flex:0 0 40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:4px 8px!important;display:flex!important;gap:6px!important;overflow:hidden!important;background:linear-gradient(110deg,#091b2c,#07101e)!important;border:1px solid #31506b!important}
 body .mode-photo .photo-heading>.v20-editor-name{margin-right:auto!important}
 body .mode-editor .v20-stage-label,body .mode-photo .v20-stage-label{display:none!important}
 body .mode-editor .editor-layout,body .mode-photo .photo-workspace{display:flex!important;flex-direction:column!important;align-items:stretch!important;flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;gap:5px!important;position:relative!important}
 body .mode-editor .editor-layout>.stage-panel,body .mode-photo .photo-workspace>.photo-stage{display:flex!important;flex-direction:column!important;order:0!important;position:relative!important;top:auto!important;bottom:auto!important;flex:0 0 clamp(190px,31dvh,300px)!important;max-height:clamp(190px,31dvh,300px)!important;min-height:0!important;overflow:hidden!important;padding:6px!important;margin:0!important;z-index:1!important;border-radius:14px!important}
 body .mode-photo .photo-workspace>.photo-stage{flex-basis:clamp(200px,34dvh,315px)!important;max-height:clamp(200px,34dvh,315px)!important}
 body .mode-editor .stage-header,body .mode-photo .photo-stage-header{flex:0 0 29px!important;height:29px!important;min-height:29px!important;max-height:29px!important;padding:0 3px!important;margin:0!important;display:flex!important;flex-wrap:nowrap!important;white-space:nowrap!important;gap:5px!important}
 body .mode-editor .stage-header strong,body .mode-photo .photo-stage-header strong{font-size:11px!important}
 body .mode-editor .stage-header select{max-width:108px!important;padding:4px 6px!important;min-height:27px!important}
 body .mode-editor .stage-header label{max-width:47%!important;display:flex!important;gap:3px!important;align-items:center!important;min-width:0!important}
 body .mode-editor .v19-preview-toggle,body .mode-photo .v19-preview-toggle{flex:0 0 auto!important;font-size:10px!important;padding:3px 7px!important;height:27px!important;min-height:27px!important;min-width:65px!important}
 body .mode-editor .preview-area,body .mode-photo .photo-stage-view{position:relative!important;flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;overflow:hidden!important;padding:2px!important;display:flex!important;align-items:center!important;justify-content:center!important}
 body .mode-editor .preview-area canvas,body .mode-photo .photo-stage-view canvas{object-fit:contain!important;width:auto!important;height:auto!important;max-height:100%!important;max-width:100%!important;min-width:0!important}
 body .mode-editor .preview-area video,body .mode-photo .photo-stage-view video{max-height:100%!important;object-fit:contain!important}
 body .mode-editor .transport{flex:0 0 29px!important;height:29px!important;min-height:29px!important;max-height:29px!important;padding:0 4px!important;margin:1px 0!important;display:flex!important;align-items:center!important;gap:5px!important}
 body .mode-editor .transport .play{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;font-size:12px!important}
 body .mode-editor .transport .transport-time{font-size:10px!important}
 body .mode-editor .seek-row{flex:0 0 20px!important;height:20px!important;min-height:20px!important;padding:0 4px!important;margin:0!important}
 body .mode-editor .seek-row input{min-height:19px!important;height:19px!important}
 body .mode-photo .photo-stage-actions{flex:0 0 34px!important;height:34px!important;min-height:34px!important;display:flex!important;gap:5px!important;margin:3px 0 0!important}
 body .mode-photo .photo-stage-actions .btn{height:33px!important;max-height:33px!important;min-height:33px!important;font-size:11px!important;padding:2px 6px!important}
 body .mode-photo .studio-quickbar{flex:0 0 25px!important;min-height:25px!important;height:25px!important;display:flex!important;gap:6px!important;align-items:center!important;margin:0!important;padding:0 3px!important}
 body .mode-photo .studio-quickbar #photo-tip{font-size:9px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 body .mode-photo .studio-quickbar .compare-button{min-height:24px!important;height:24px!important;font-size:10px!important;padding:2px 7px!important}
 body .mode-editor .editor-layout>.timeline-panel{order:1!important;position:relative!important;z-index:1!important;flex:0 0 60px!important;min-height:60px!important;height:60px!important;max-height:60px!important;overflow:hidden!important;padding:4px 7px!important;border-radius:10px!important;margin:0!important}
 body .mode-editor .timeline-panel .timeline-top{height:16px!important;min-height:0!important;font-size:9px!important;margin:0!important;padding:0!important}
 body .mode-editor .timeline-panel .timeline-track{min-height:22px!important;height:22px!important;margin:0!important;font-size:9px!important}
 body .mode-editor .timeline-panel .timeline-help{display:none!important}
 body .mode-editor .timeline-panel .v15-cut-track{min-height:10px!important;max-height:14px!important;height:12px!important;margin:2px 0 0!important}
 body .mode-editor .editor-layout>.v16-import-strip{display:none!important}
 body .mode-editor .editor-layout>.v20-group-switch,body .mode-photo .photo-workspace>.v20-group-switch{order:2!important;position:relative!important;top:auto!important;flex:0 0 36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;margin:0!important;padding:2px!important;z-index:2!important}
 body .mode-editor .v20-group-switch button,body .mode-photo .v20-group-switch button{min-height:28px!important;height:28px!important;font-size:11px!important;padding:3px 5px!important}
 body .mode-editor .editor-layout>.tab-row,body .mode-photo .photo-workspace>.photo-mobile-dock{order:3!important;position:relative!important;inset:auto!important;top:auto!important;bottom:auto!important;flex:0 0 62px!important;min-height:62px!important;height:62px!important;max-height:62px!important;margin:0!important;display:flex!important;flex-wrap:nowrap!important;gap:5px!important;align-items:center!important;padding:4px!important;z-index:2!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;border-radius:12px!important}
 body .mode-editor .editor-layout>.tab-row::-webkit-scrollbar,body .mode-photo .photo-workspace>.photo-mobile-dock::-webkit-scrollbar{display:none}
 body .mode-editor .editor-layout>.tab-row .tab,body .mode-photo .photo-workspace>.photo-mobile-dock button{flex:0 0 71px!important;width:71px!important;min-width:71px!important;min-height:52px!important;height:52px!important;max-height:52px!important;padding:3px 2px!important;border-radius:10px!important;gap:3px!important}
 body .mode-editor .editor-layout>.tab-row .tab span,body .mode-photo .photo-workspace>.photo-mobile-dock button span{font-size:18px!important;line-height:20px!important}
 body .mode-editor .editor-layout>.tab-row .tab small,body .mode-photo .photo-workspace>.photo-mobile-dock button small{font-size:10px!important;white-space:nowrap!important;line-height:13px!important}
 body .mode-editor .editor-layout>.properties-panel,body .mode-photo .photo-workspace>.photo-properties{order:4!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;height:auto!important;position:relative!important;top:auto!important;bottom:auto!important;inset:auto!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;z-index:2!important;margin:0!important;padding:8px 10px calc(16px + env(safe-area-inset-bottom,0px))!important;border:1px solid #33536c!important;border-radius:12px!important;background:linear-gradient(160deg,#0c1d2d,#07111e)!important}
 body .mode-photo .photo-properties .photo-tool-section,body .mode-editor #control-panel{padding-bottom:14px!important}
 body .mode-editor .v19-tool-caption,body .mode-photo .v19-tool-caption{position:sticky!important;top:-8px!important;z-index:6!important;height:31px!important;min-height:31px!important;padding:4px 9px!important;margin:0 0 5px!important;display:flex!important;align-items:center!important;background:#122d43ed!important;backdrop-filter:blur(12px)!important}
 body .mode-editor .v19-tool-caption b,body .mode-photo .v19-tool-caption b{font-size:12px!important}
 body .mode-photo .photo-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 body .mode-photo .photo-preset{min-height:70px!important;padding:6px!important}
 body .mode-photo .photo-control-grid,body .mode-editor #control-panel{max-width:none!important}
 body .mode-photo .photo-control-grid .ctrl,body .mode-editor #control-panel .ctrl{padding:6px 0!important}
 body .mode-photo .photo-control-grid input[type=range],body .mode-editor #control-panel input[type=range]{height:28px!important;min-height:28px!important}
 body .mode-editor .mobile-tools{display:none!important}
 body .mode-editor .editor-top .editor-actions{display:flex!important;align-items:center!important;gap:5px!important;flex-shrink:0!important}
 body .mode-editor .editor-top .editor-actions .btn,body .mode-photo .photo-heading .btn{min-height:33px!important;height:33px!important;padding:4px 8px!important;font-size:11px!important;white-space:nowrap!important}
 body .mode-editor .editor-top .editor-mobile-back{width:32px!important;min-width:32px!important;height:33px!important;min-height:33px!important}
 body .mode-editor .v20-editor-name small,body .mode-photo .v20-editor-name small{font-size:8px!important}
 body .mode-photo .photo-heading .v20-editor-name strong{font-size:14px!important}
 body .mode-editor #project-name{font-size:12px!important;width:min(31vw,120px)!important;max-width:min(31vw,120px)!important;padding:4px!important;height:23px!important;min-height:23px!important}
 body .mode-editor .editor-top-left{min-width:0!important;gap:4px!important}
 /* Enable true enlarge-to-review mode and return to editing by tapping Reduzir. */
 body.v19-preview-theater .mode-editor .editor-layout>.stage-panel,body.v19-preview-theater .mode-photo .photo-workspace>.photo-stage{flex:1 1 0!important;max-height:none!important}
 body.v19-preview-theater .mode-editor .preview-area,body.v19-preview-theater .mode-photo .photo-stage-view{height:auto!important;max-height:none!important;min-height:0!important}
 body.v19-preview-theater .mode-editor .timeline-panel,body.v19-preview-theater .mode-editor .tab-row,body.v19-preview-theater .mode-editor .v20-group-switch,body.v19-preview-theater .mode-editor .properties-panel,body.v19-preview-theater .mode-photo .photo-mobile-dock,body.v19-preview-theater .mode-photo .v20-group-switch,body.v19-preview-theater .mode-photo .photo-properties{display:none!important}
 body .mode-editor .tab-row [hidden],body .mode-photo .photo-mobile-dock [hidden]{display:none!important}
}
/* Refine home’s cinematic visual treatment without hiding the call to action. */
.splash-diamond-frame{isolation:isolate}
.splash-diamond-frame:after{content:"";position:absolute;inset:-15%;border:1px solid rgba(96,192,255,.26);border-radius:50%;box-shadow:0 0 38px #1595fa2d,inset 0 0 32px #f3bc692a;transform:rotate(-12deg) scale(.92);opacity:.7;animation:v21-diamond-pulse 4.8s ease-in-out infinite alternate;pointer-events:none}
.splash-center:after{content:"";display:block;width:min(78vw,430px);height:2px;margin:13px auto 0;background:linear-gradient(90deg,transparent,#24689d 22%,#f7cf87 50%,#24689d 78%,transparent);box-shadow:0 0 21px #f7be6c56;animation:v21-beam 5.4s ease-in-out infinite alternate;pointer-events:none}
.tap-cta{transition:filter .25s,transform .25s!important}
.tap-cta:active{transform:scale(.975)!important;filter:brightness(1.24)!important}
@keyframes v21-diamond-pulse{to{opacity:1;transform:rotate(15deg) scale(1.12);box-shadow:0 0 55px #2996e94a,inset 0 0 18px #f8cd946b}}
@keyframes v21-beam{to{opacity:.35;transform:scaleX(.66)}}
@media(prefers-reduced-motion:reduce){.splash-diamond-frame:after,.splash-center:after{animation:none!important}}
@media(max-width:650px) and (max-height:620px){body .mode-editor .editor-layout>.stage-panel{flex-basis:165px!important;max-height:165px!important}body .mode-photo .photo-workspace>.photo-stage{flex-basis:185px!important;max-height:185px!important}body .mode-editor .editor-layout>.timeline-panel{flex-basis:48px!important;height:48px!important;min-height:48px!important}body .mode-editor .editor-layout>.v20-group-switch,body .mode-photo .photo-workspace>.v20-group-switch{flex-basis:31px!important;height:31px!important;min-height:31px!important}body .mode-editor .editor-layout>.tab-row,body .mode-photo .photo-workspace>.photo-mobile-dock{flex-basis:53px!important;height:53px!important;min-height:53px!important}body .mode-editor .editor-layout>.tab-row .tab,body .mode-photo .photo-workspace>.photo-mobile-dock button{height:46px!important;min-height:46px!important}}
@media(max-width:650px){
 /* Concise empty states so the actual upload action never disappears beneath export controls. */
 body .mode-photo .photo-empty-content,body .mode-editor .preview-empty-content{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;max-width:94%!important;max-height:94%!important;overflow:hidden!important;margin:auto!important;padding:4px!important}
 body .mode-photo .photo-empty-content .photo-placeholder,body .mode-editor .preview-empty-content .drop-icon{display:none!important}
 body .mode-photo .photo-empty-content p,body .mode-editor .preview-empty-content p{display:none!important}
 body .mode-photo .photo-empty-content strong,body .mode-editor .preview-empty-content h3{font-size:12px!important;line-height:1.2!important;margin:0!important;text-align:center!important}
 body .mode-photo .photo-empty-content label,body .mode-editor .preview-empty-content label{height:30px!important;min-height:30px!important;max-height:30px!important;font-size:11px!important;padding:4px 9px!important;margin:0!important}
}
