/* DIAMOND EDIT AI · V0.6
   Return to the official original gold/black/blue diamond in the UI.
   The square app icon is reserved for home screen and manifest.
   Mobile video workspace: non-scrolling preview, internal scrolling controls.
*/
:root{--gold:#dfb36c;--gold-2:#a87c38;--blue:#3195ef;--border:#283447;--panel:#0c1522;--panel-2:#101b2b}
html{scroll-behavior:auto}
body{background:radial-gradient(ellipse at 98% -6%,#16395a55,transparent 40%),#050910}
.splash-screen{background:radial-gradient(ellipse at 50% 44%,#0c2b4d 0%,#060c16 45%,#020407 86%)}
.splash-diamond-frame{width:clamp(190px,56vw,302px);filter:drop-shadow(0 0 28px #1a73bb44)}
.splash-diamond-frame .splash-mark{width:100%;max-width:100%;object-fit:contain;border-radius:0;box-shadow:none;mix-blend-mode:normal}
.splash-diamond-ring{border-color:#c8a05738}
.splash-wordmark{letter-spacing:.075em}
/* Do not reuse app icon or social cover as the product logo. */
.brand-icon{object-fit:contain;width:65px;height:59px;border-radius:0!important;mix-blend-mode:normal}
.mobile-logo{object-fit:contain!important;border-radius:0!important;mix-blend-mode:normal!important}
.mobile-dashboard-brand img{object-fit:contain;border-radius:0!important;mix-blend-mode:normal!important}
.chooser-halo img{width:100%;height:100%;object-fit:contain;border-radius:0!important;filter:drop-shadow(0 0 16px #d5aa5566)}
.chooser-halo{background:transparent!important}
.brand strong{letter-spacing:1.6px}
/* Less collage, more useful branded visual. */
.hero{background:radial-gradient(ellipse at 85% 18%,#165ba03c,transparent 48%),linear-gradient(120deg,#111d2e,#080c15 75%)!important;min-height:288px;border-color:#8e713d75;box-shadow:0 12px 36px #0006,0 0 30px #1b66a117}
.hero:before{content:''!important;position:absolute;right:4%!important;left:auto!important;top:7%!important;width:210px!important;height:210px!important;border-radius:50%;border:1px solid #2f8ed933;background:radial-gradient(circle at 60% 40%,#227ac92b,transparent 70%)!important;box-shadow:0 0 65px #1768ab18!important;z-index:0}
.hero:after{inset:0!important;background:linear-gradient(135deg,transparent 40%,#c99c5017 40.2%,transparent 40.5%,transparent 75%,#2c82de24 75.3%,transparent 75.6%)!important;animation:none!important;transform:none!important;pointer-events:none}
.hero-copy{max-width:550px}
.tile,.project-card,.ai-card,.template-card,.format-option{background:linear-gradient(150deg,#142035,#0a111d 90%)!important;border-color:#283b50!important;box-shadow:0 12px 30px #0005!important}
.tile:hover,.project-card:hover,.ai-card:hover,.template-card:hover,.format-option:hover{box-shadow:0 16px 40px #0008!important}
.tile.bright,.format-option.featured{background:linear-gradient(150deg,#272319,#111a29)!important;border-color:#a67d42!important}
.chooser-page{background:radial-gradient(circle at 50% 14%,#16416a55,transparent 42%),#050b14!important}
.chooser-page:after{background:linear-gradient(125deg,transparent 25%,#1f73bf1a 25.15%,transparent 25.5%,transparent 80%,#d29b4510 80.3%,transparent 80.5%)!important}
.mode-card{box-shadow:0 10px 36px #0006!important}
.mode-card:before{opacity:.30!important}
/* Editor controls + filters for desktop and mobile */
.editor-top{margin-bottom:10px;gap:7px}
.editor-top-left{min-width:150px}
.editor-top-left input{max-width:370px}
.editor-layout{gap:13px}
.stage-panel,.properties-panel,.timeline-panel{background:linear-gradient(155deg,#101b2b,#080f19);border:1px solid #2b3e53;box-shadow:0 10px 30px #0004}
.stage-panel{border-radius:18px}
.preview-area{border-radius:12px;background:radial-gradient(circle at 50% 48%,#17324f,#050a12 75%)}
.preview-area canvas{cursor:pointer;max-height:420px;box-shadow:0 8px 28px #000a}
.properties-panel{border-radius:18px}
.properties-panel h3{font-size:14px;margin:0 0 10px;color:#f4d49e}
.tab-row{display:flex;gap:5px;border-bottom:1px solid #2c4057;padding-bottom:7px;margin-bottom:12px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#726044 transparent}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:0 0 auto;min-width:58px;padding:7px 8px;min-height:55px;border:1px solid #30415a;border-radius:11px;background:#0a1423;color:#9fb0c8;font-weight:650}
.tab span{font-size:17px;line-height:1.1;color:#d9b474}
.tab small{font-size:10px;line-height:1}
.tab.selected{border-color:#c79c55;background:linear-gradient(160deg,#46311e,#151c29);color:#fff0d2;box-shadow:0 0 15px #b1844222}
.tab.selected span{color:#f6c779}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 0 12px;color:#f1dcc1;font-size:13px}
.panel-heading .mini-caption{font-size:10px;color:#859ebc}
.mini-reset{border:1px solid #765e40;color:#efcb91;background:#1e1a18;padding:6px 9px;border-radius:8px;min-height:32px;font-size:10px}
.filter-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.filter-preset{display:flex;flex-direction:column;gap:6px;border:1px solid #2b4056;border-radius:12px;background:#0a1423;padding:6px;color:#b9c9d9;font-size:10px;text-align:center;min-width:0;min-height:86px}
.filter-preset.selected{border-color:#e7b96a;color:#f6d495;box-shadow:0 0 14px #bd954325}
.filter-swatch{width:100%;height:50px;border-radius:7px;display:grid;place-items:center;color:#ffffffb8;font-size:18px;box-shadow:inset 0 0 20px #0004}
.control-set{gap:13px}
.ctrl>label{font-size:12px;margin-bottom:5px}
.ctrl>label output{color:#f2c784;font-variant-numeric:tabular-nums}
.timeline-panel{margin-top:10px}
.timeline-track{height:42px;border-color:#2e6796;background:repeating-linear-gradient(90deg,#0d2a44 0px,#194365 13px,#2f5d7a 15px,#0c2238 18px)}
.timeline-top{margin-bottom:9px}
.timeline-help{margin:5px 0 0;font-size:10px}
.properties-footer{margin-top:14px;padding-top:12px;color:#7b8fa7}
@media (min-width:921px){.editor-layout{grid-template-columns:minmax(0,1fr) minmax(310px,365px)}.properties-panel{position:sticky;top:92px;max-height:calc(100dvh - 115px);overflow-y:auto}.filter-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.tab{min-width:44px;padding:5px 6px}.tab small{font-size:9px}}
@media (max-width:920px) and (min-width:621px){.filter-presets{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width:620px){
 .shell.mode-editor{padding-bottom:0!important}
 .mode-editor .content-shell{height:calc(100dvh - 70px);overflow:hidden;display:flex;flex-direction:column}
 .mode-editor .topbar{flex:0 0 52px;height:52px;min-height:52px;padding:0 12px}
 .mode-editor .topbar .topbar-muted,.mode-editor .topbar .topbar-separator{display:none}
 .mode-editor .topbar-title{font-size:12px}
 .mode-editor main#screen{flex:1;min-height:0;max-height:none!important;overflow:hidden;padding:7px 9px 0;display:flex;flex-direction:column}
 .mode-editor .sidebar{height:calc(63px + env(safe-area-inset-bottom,0px));z-index:25}
 .editor-top{flex:0 0 auto;margin-bottom:7px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
 .editor-top-left{min-width:0;gap:4px}
 .editor-top-left input{min-width:0;max-width:none;font-size:12px!important;min-height:37px;padding:6px 8px}
 .editor-top .editor-actions{flex-wrap:nowrap;gap:5px}
 .editor-top .editor-actions .btn{min-height:37px;padding:6px 8px;font-size:11px;white-space:nowrap}
 .editor-layout{display:flex!important;flex:1;min-height:0;flex-direction:column;gap:6px;overflow:hidden}
 .editor-layout>section{display:contents}
 .stage-panel{order:1;flex:0 0 auto;padding:6px 8px!important;border-radius:12px;min-height:0}
 .stage-header{font-size:10px;margin-bottom:4px;gap:6px}
 .stage-header strong{font-size:10px;color:#e4bd7e}
 .stage-header select{max-width:132px;width:auto;padding:4px 6px;font-size:11px;min-height:30px}
 .preview-area{height:clamp(166px,25dvh,245px);min-height:0!important;max-height:none!important;padding:4px!important;border-radius:10px}
 .preview-area canvas{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:100%!important;object-fit:contain;box-shadow:none;border-radius:4px}
 .preview-empty{padding:12px;gap:6px}
 .preview-empty .drop-icon{font-size:23px}
 .preview-empty h3{font-size:12px}
 .preview-empty p{font-size:10px}
 .preview-empty .btn{min-height:33px;padding:6px 12px}
 .transport{gap:12px;margin:5px auto 1px;height:31px}
 .transport .play{width:31px;height:31px;min-height:31px;font-size:13px}
 .transport-time{font-size:10px}
 .seek-row{height:19px}
 .seek-row input{margin:0}
 .timeline-panel{order:2;flex:0 0 auto;margin-top:0;padding:6px 8px!important;border-radius:11px}
 .timeline-top{margin-bottom:5px;font-size:9px}
 .timeline-track{height:28px;font-size:9px;border-radius:6px}
 .timeline-help{margin:4px 0 0;line-height:1.15;font-size:9px}
 .properties-panel{order:3;min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;max-height:none!important;padding:8px 9px 20px!important;border-radius:13px 13px 0 0;scrollbar-width:thin;scrollbar-color:#475367 transparent}
 .properties-panel>h3{margin:0 0 5px;font-size:11px;letter-spacing:.5px}
 .tab-row{gap:5px;margin-bottom:9px;padding-bottom:6px;position:sticky;top:-8px;background:#0e1826;z-index:5;padding-top:4px;border-radius:8px}
 .tab{min-width:62px;min-height:49px;padding:5px 7px;gap:2px;border-radius:8px}
 .tab span{font-size:15px}
 .tab small{font-size:10px}
 .control-set{gap:10px}
 .ctrl>label{margin-bottom:4px}
 .ctrl input[type=range]{min-height:18px}
 .filter-presets{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .filter-preset{padding:4px;min-height:75px;font-size:9px}
 .filter-swatch{height:42px}
 .trim-controls input,.ctrl select,.ctrl input[type=text]{font-size:16px!important;min-height:40px}
 .properties-footer{display:none}
 .mode-editor .mobile-tools{display:none}
 .mode-editor .toast{bottom:82px}
 .mobile-dashboard-brand img{width:52px;height:48px}
 .chooser-halo img{max-width:100%;width:100%;height:100%}
 .hero{min-height:252px;border-radius:18px;background:radial-gradient(circle at 82% 22%,#145da83c,transparent 50%),linear-gradient(120deg,#111b29,#070b12)!important}
 .hero:before{width:120px!important;height:120px!important}
 .hero .heading-xl{font-size:29px}
 .ai-card{box-shadow:0 7px 23px #0006!important}
 .topbar{box-shadow:none}
}
@media (max-width:380px){
 .mode-editor .preview-area{height:clamp(150px,23dvh,215px)}
 .mode-editor .editor-top .editor-actions .btn{font-size:10px;padding:6px}
 .filter-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.ambient-atmosphere span{animation:none}.hero:after{animation:none}}

/* 0.6.1 narrow-screen overflow correction */
@media(max-width:620px){
 .mode-editor .editor-top{grid-template-columns:minmax(0,1fr) 174px;width:100%}
 .mode-editor .editor-top .editor-actions{width:174px;min-width:0;gap:5px}
 .mode-editor .editor-top .editor-actions .btn{width:calc((100% - 5px)/2);min-width:0;padding:5px 3px;font-size:10px;white-space:nowrap;overflow:hidden}
 .mode-editor .stage-header{display:flex;justify-content:space-between;align-items:center;max-width:100%;overflow:hidden}
 .mode-editor .stage-header label{display:flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap;margin:0;font-size:10px}
 .mode-editor .stage-header #ratio-select{display:block;width:120px!important;max-width:120px!important;min-width:0!important;padding:4px!important;font-size:10px}
}
@media(max-width:360px){.mode-editor .editor-top{grid-template-columns:minmax(0,1fr) 154px}.mode-editor .editor-top .editor-actions{width:154px}}
@media(max-width:620px){
 .mode-editor .content-shell,.mode-editor main#screen,.mode-editor .editor-layout,.mode-editor .editor-top,.mode-editor .stage-panel,.mode-editor .timeline-panel,.mode-editor .properties-panel{width:100%;min-width:0;max-width:100vw}
 .mode-editor .editor-top-left input{width:100%;flex:1 1 0;min-width:0}
 .mode-editor .stage-header strong{flex:0 1 auto;min-width:0}
 .mode-editor .stage-header label{min-width:0;flex:0 0 auto}
 .mode-editor .editor-actions{display:flex;align-items:center;justify-content:flex-end}
 .mode-editor .editor-actions .btn{flex:1 1 0;min-width:0;width:0;max-width:87px}
}
