/* DIAMOND EDIT AI V20 — layout production refinement and touch usability */
:root{--v20-bg:#070d18;--v20-card:#0b1625;--v20-line:#314d66;--v20-gold:#f2c786;--v20-text:#ebf1fa}
body .content-shell{background:linear-gradient(180deg,#050b15,#091324 45%,#060b13)!important}
.mode-editor .content-shell,.mode-photo .content-shell{color:var(--v20-text)}
.mode-editor .editor-top,.mode-photo .photo-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;background:#0a1424!important;padding:9px 12px!important;margin:0 0 7px!important;border:1px solid #34516b!important;border-radius:15px!important;box-shadow:0 6px 18px #0006}
.v20-workspace-icon{font-size:21px;color:var(--v20-gold)}
.v20-editor-name{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;gap:1px}
.v20-editor-name small{letter-spacing:.11em;font-size:9px;font-weight:800;color:#7fafd0;white-space:nowrap}
.v20-editor-name strong{font-size:16px;font-weight:800;color:#f2f5ff}
.mode-editor #project-name{font-weight:800!important;font-size:15px!important;color:#f2f5ff!important;background:transparent!important;border:0!important;padding:1px 0!important;max-width:100%!important;min-height:22px!important;overflow:hidden;text-overflow:ellipsis;box-shadow:none!important}
.mode-editor .editor-top-left,.mode-editor .editor-actions{display:flex!important;min-width:0!important;align-items:center!important;gap:7px!important}
.mode-editor .editor-actions{flex-shrink:0!important}
.mode-editor .editor-actions .btn,.mode-photo .v20-photo-heading>.btn,.mode-photo .v20-photo-heading>label{height:42px!important;min-height:42px!important;min-width:0!important;padding:8px 12px!important;font-size:12px!important;border-radius:11px!important;white-space:nowrap!important}
.mode-editor .editor-actions label{border:1px solid #2f8abf!important;background:#123b58!important;color:#e5f7ff!important}
.mode-editor .editor-actions .btn-gold{background:linear-gradient(110deg,#f9d598,#bd8546)!important;color:#12131a!important;border-color:#d5a56a!important;font-weight:850!important}
.mode-photo .v20-photo-heading .btn:first-child{background:#091724!important;color:#f4d5a3!important;border:1px solid #997646!important}
.v20-stage-label{display:flex;align-items:center;gap:8px;padding:4px 7px 9px;font-size:10px;letter-spacing:.04em;color:#9bb5cd}
.v20-stage-label strong{font-weight:800;color:#a5dfff;letter-spacing:.12em;font-size:9px}
.v20-stage-label span:last-child{margin-left:auto;text-align:right}
.v20-live-dot{height:6px;width:6px;border-radius:50%;background:#59d6ff;box-shadow:0 0 9px #53c0ff;animation:v20-beacon 1.6s infinite}
@keyframes v20-beacon{50%{opacity:.45;box-shadow:0 0 18px #7fd8ff}}
.v20-group-switch{display:flex;gap:5px;align-items:center;justify-content:space-between;padding:5px;margin:0;background:#07111f;border-radius:14px;border:1px solid #29435c;min-height:44px}
.v20-group-switch button{flex:1 1 0;min-height:34px;border:1px solid transparent;border-radius:10px;background:transparent;color:#a5b8d0;font-weight:780;font-size:12px;white-space:nowrap;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.v20-group-switch button.active{background:linear-gradient(110deg,#45331f,#16324b);color:#ffe4b8;border-color:#c39658;box-shadow:inset 0 1px 0 #ffdeb755}
.mode-editor .editor-layout .tab-row,.mode-photo .photo-mobile-dock{scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x;scroll-snap-type:x proximity}
.mode-editor .editor-layout .tab-row::-webkit-scrollbar,.mode-photo .photo-mobile-dock::-webkit-scrollbar{display:none}
.mode-editor .editor-layout .tab-row [hidden],.mode-photo .photo-mobile-dock [hidden]{display:none!important}
.mode-editor .editor-layout .tab-row button,.mode-photo .photo-mobile-dock button{scroll-snap-align:start;white-space:nowrap;transition:border-color .15s,background .15s,color .15s;position:relative}
.mode-editor .editor-layout .tab-row .tab.selected,.mode-photo .photo-mobile-dock button.active{color:#f6d497!important;border-color:#d0a164!important;background:linear-gradient(140deg,#302a24,#15314d)!important;box-shadow:inset 0 1px #e4b37366,0 2px 18px #ba8a3c18!important}
.mode-editor .editor-layout .tab-row .tab.selected:after,.mode-photo .photo-mobile-dock button.active:after{content:"";position:absolute;bottom:0;left:30%;right:30%;height:2px;background:#efc083;box-shadow:0 0 9px #efc083}
.mode-editor .properties-panel,.mode-photo .photo-properties{border:1px solid #355673!important;background:linear-gradient(180deg,#0d1d30,#07111e)!important;border-radius:16px!important;box-shadow:0 10px 35px #0005!important}
.mode-editor .properties-panel .ctrl,.mode-photo .photo-properties .ctrl{border-bottom:1px solid #28435a40;padding-block:7px}
.mode-editor .properties-panel input[type=range],.mode-photo .photo-properties input[type=range]{accent-color:#e7b778!important;min-height:35px!important}
.mode-editor .properties-panel .panel-heading,.mode-photo .photo-properties .panel-heading{margin-bottom:8px}
.mode-editor #control-panel{padding:4px 0 2px}
.mode-editor .properties-panel .v11-tool-head,.mode-editor .properties-panel>h3,.mode-photo .photo-properties>h3,.mode-photo .photo-properties>.photo-tabs,.mode-photo .photo-properties>p,.mode-editor .properties-footer{display:none!important}
.mode-editor .v19-tool-caption,.mode-photo .v19-tool-caption{padding:8px 10px!important;border-radius:10px!important;min-height:42px!important;margin:0 0 8px!important;background:#11283c!important;border:1px solid #315c7b!important}
.mode-editor .v19-tool-caption>span:last-child,.mode-photo .v19-tool-caption>span:last-child{display:none!important}
.mode-editor .v19-tool-caption b,.mode-photo .v19-tool-caption b{font-size:13px!important}
.mode-editor .stage-panel,.mode-photo .photo-stage{border:1px solid #375675!important;background:#081522!important;border-radius:17px!important;box-shadow:0 7px 29px #0009!important}
.mode-editor .stage-header,.mode-photo .photo-stage-header{font-size:10px!important;border:0!important;padding:2px!important;gap:7px!important}
.mode-editor .stage-header>strong,.mode-photo .photo-stage-header>strong{font-size:11px;color:#d4e5f8}
.mode-editor .stage-header label,.mode-photo .photo-stage-header span{color:#aabfce}
.mode-editor .preview-area,.mode-photo .photo-stage-view{background:#02060d!important;border:1px solid #22354b!important;border-radius:12px!important}
.mode-editor .timeline-panel{background:#091627!important;border:1px solid #31506a!important;border-radius:13px!important}
.mode-editor .timeline-panel .timeline-help{font-size:11px;line-height:1.35;color:#7c9ab2}
.mode-editor .transport{gap:5px!important}
.mode-editor .seek-row{padding:0 5px!important}
.mode-editor #play-button{background:linear-gradient(125deg,#f0d19a,#bf8d4d)!important;color:#09101b!important;border-radius:50%!important}
.mode-editor .timeline-panel .timeline-track{min-height:49px!important}
.mode-editor .v16-import-strip,.mode-photo .v16-import-strip{border:0!important;background:transparent!important;padding:0!important;margin:2px 0!important}
.mode-editor .v16-import-main,.mode-photo .v16-import-main{min-height:39px!important;padding:9px 12px!important;background:#11283a!important;border:1px dashed #47708b!important;color:#d3e8fa!important;border-radius:11px!important;font-size:12px!important}
.mode-editor .v16-import-main span,.mode-photo .v16-import-main span{font-size:10px;color:#85a8bf}
/* More discoverable captions style choices */
.v20-caption-font{display:flex;flex-direction:column;gap:7px;padding:11px 0}
.v20-caption-font label{color:#d7e2ee;font-weight:750;font-size:12px}
.v20-caption-font select{min-height:43px;background:#102137;color:#edf4ff;border:1px solid #406282;border-radius:10px;padding:0 12px}
.v16-caption-styles{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.v16-caption-styles .v16-style-chip{font-size:12px!important;min-height:44px!important;padding:9px 7px!important;white-space:normal!important}
/* cinematic entrance with cleaner, premium controlled effects */
.splash-screen:before{content:"";position:absolute;inset:0;z-index:0;background:radial-gradient(ellipse 40% 24% at 50% 38%,#2b82b91d,transparent 95%);animation:v20-aura 4s ease-in-out infinite alternate;pointer-events:none}
.splash-screen:after{content:"";position:absolute;left:-40%;top:55%;width:180%;height:2px;background:linear-gradient(90deg,transparent 15%,#358fd55a,#f2c58b, #3a93d465,transparent 85%);filter:blur(2px);box-shadow:0 0 40px #2d9ad87a;transform:rotate(-6deg);animation:v20-scan 4.7s ease-in-out infinite alternate;pointer-events:none}
.splash-diamond-frame{filter:drop-shadow(0 0 22px #3380b75a)}
.splash-ready .splash-diamond-frame{animation:v20-float 4.2s ease-in-out infinite alternate!important}
.splash-wordmark{filter:drop-shadow(0 0 15px #358bcb30)}
.tap-cta{background:linear-gradient(125deg,#0f3550,#0b1727 40%,#241c17 85%)!important;border:1px solid #e4c385!important;box-shadow:0 0 0 1px #61bafa35,inset 0 1px #f1ca855e,0 0 30px #2f80ba4d!important}
.tap-cta:after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(105deg,transparent 40%,#fff6d319 49%,transparent 57%);background-size:280% 100%;animation:v20-button-sheen 5s linear infinite;pointer-events:none}
@keyframes v20-aura{to{opacity:.38;transform:scale(1.25)}}
@keyframes v20-float{to{transform:translateY(-8px) scale(1.055)}}
@keyframes v20-scan{to{opacity:.25;transform:translateY(-35px) rotate(-4deg)}}
@keyframes v20-button-sheen{to{background-position:-280% 0}}
@media(min-width:651px){
 .mode-editor .editor-layout{grid-template-columns:minmax(0,1fr) minmax(370px,405px)!important;gap:17px!important}
 .mode-photo .photo-workspace{grid-template-columns:minmax(0,1fr) minmax(370px,415px)!important;gap:17px!important}
 .mode-editor .properties-panel,.mode-photo .photo-properties{padding:15px!important}
 .mode-editor .properties-panel .tab-row,.mode-photo .photo-mobile-dock{display:flex!important;flex-wrap:nowrap!important;height:77px!important;min-height:77px!important;overflow-x:auto!important;overflow-y:hidden!important;margin:0 0 8px!important;padding:5px!important;gap:6px!important}
 .mode-editor .properties-panel .tab-row .tab,.mode-photo .photo-mobile-dock button{height:61px!important;min-height:61px!important;min-width:82px!important;flex:0 0 82px!important}
 .mode-editor .properties-panel .v20-group-switch,.mode-photo .photo-properties .v20-group-switch{margin:2px 0 6px}
 .mode-editor .stage-panel,.mode-photo .photo-stage{position:sticky!important;top:16px!important}
}
@media(max-width:650px){
 body .mode-editor .content-shell main#screen,body .mode-photo .content-shell main#screen{height:calc(100dvh - 48px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:7px 8px calc(32px + env(safe-area-inset-bottom))!important;scroll-padding-top:7px!important}
 body .mode-editor .editor-layout,body .mode-photo .photo-workspace{display:flex!important;flex-direction:column!important;gap:7px!important;height:auto!important;min-height:0!important;overflow:visible!important;position:static!important;align-items:stretch!important}
 body .mode-editor .editor-layout>section{display:contents!important}
 body .mode-editor .editor-layout>.stage-panel,body .mode-photo .photo-stage{position:relative!important;top:auto!important;z-index:1!important;order:0!important;padding:8px!important;margin:0!important;backdrop-filter:none!important}
 body .mode-editor .preview-area{height:clamp(280px,43dvh,430px)!important;min-height:280px!important;max-height:430px!important}
 body .mode-photo .photo-stage-view{height:clamp(295px,44dvh,440px)!important;min-height:295px!important;max-height:440px!important}
 body .mode-editor .preview-area canvas{max-height:calc(clamp(280px,43dvh,430px) - 10px)!important}
 body .mode-photo .photo-stage-view canvas{max-height:calc(clamp(295px,44dvh,440px) - 10px)!important}
 body .mode-editor .editor-layout>.v16-import-strip{order:1!important;display:none!important}
 body .mode-editor .editor-layout>.timeline-panel{order:2!important;margin:0!important;padding:8px!important;position:relative!important;z-index:1!important}
 body .mode-editor .editor-layout>.v20-group-switch{order:3!important;position:relative!important;top:auto!important;z-index:2!important;margin:0!important}
 body .mode-editor .editor-layout>.tab-row{order:4!important;position:relative!important;top:auto!important;inset:auto!important;z-index:2!important;width:100%!important;min-height:73px!important;height:73px!important;padding:4px 5px!important;margin:0!important;background:#091828!important;border:1px solid #395a78!important;border-radius:14px!important;box-shadow:none!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;display:flex!important;gap:6px!important}
 body .mode-editor .editor-layout>.tab-row .tab{height:63px!important;min-height:63px!important;width:77px!important;min-width:77px!important;flex:0 0 77px!important;padding:5px 3px!important;border:1px solid #2a4864!important;border-radius:10px!important;background:#0b1c2d!important;color:#c0cede!important}
 body .mode-editor .editor-layout>.tab-row .tab span{font-size:20px!important}
 body .mode-editor .editor-layout>.tab-row .tab small{font-size:10px!important}
 body .mode-editor .editor-layout>.properties-panel{order:5!important;position:relative!important;top:auto!important;z-index:1!important;width:100%!important;min-height:175px!important;max-height:none!important;margin:0!important;padding:12px!important;overflow:visible!important}
 body .mode-photo .photo-workspace>.v20-group-switch{order:1!important;position:relative!important;top:auto!important;z-index:2!important;margin:0!important}
 body .mode-photo .photo-workspace>.photo-mobile-dock{order:2!important;position:relative!important;top:auto!important;bottom:auto!important;inset:auto!important;z-index:2!important;display:flex!important;flex-wrap:nowrap!important;width:100%!important;min-height:73px!important;height:73px!important;padding:4px 5px!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden!important;border:1px solid #395a78!important;background:#091828!important;border-radius:14px!important;box-shadow:none!important;gap:6px!important}
 body .mode-photo .photo-workspace>.photo-mobile-dock button{height:63px!important;min-height:63px!important;width:78px!important;min-width:78px!important;flex:0 0 78px!important;padding:5px 3px!important;border:1px solid #2a4864!important;border-radius:10px!important;background:#0b1c2d!important;color:#c0cede!important}
 body .mode-photo .photo-workspace>.photo-mobile-dock button span{font-size:20px!important}
 body .mode-photo .photo-workspace>.photo-mobile-dock button small{font-size:10px!important}
 body .mode-photo .photo-workspace>.photo-properties{order:3!important;position:relative!important;top:auto!important;z-index:1!important;width:100%!important;min-height:175px!important;max-height:none!important;margin:0!important;padding:12px!important;overflow:visible!important}
 body .mode-photo .photo-stage-actions{display:flex!important;gap:6px!important}
 body .mode-photo .photo-stage-actions .btn{min-height:37px!important;max-height:40px!important;flex:1 1 0!important;white-space:nowrap!important;font-size:11px!important}
 body .mode-photo .studio-quickbar{margin-top:4px!important}
 body .mode-photo .photo-stage-header{gap:5px!important}
 body .mode-editor .editor-top,.mode-photo .photo-heading{margin:0 0 5px!important;padding:7px 9px!important;border-radius:12px!important}
 body .mode-editor .editor-top .editor-mobile-back{width:36px!important;min-width:36px!important;height:38px!important;font-size:23px!important}
 body .mode-editor .editor-top .editor-actions .btn{padding:7px 9px!important;font-size:11px!important;height:38px!important;min-height:38px!important}
 body .mode-editor #project-name{max-width:125px!important;font-size:13px!important}
 body .mode-editor .stage-header{display:flex!important;flex-wrap:wrap!important;align-items:center!important}
 body .mode-editor .stage-header>strong{margin-right:auto!important}
 body .mode-editor .stage-header .v19-preview-toggle,body .mode-photo .photo-stage-header .v19-preview-toggle{height:30px!important;min-height:30px!important;min-width:72px!important;font-size:10px!important;padding:5px 7px!important}
 body .mode-editor .stage-header label{font-size:10px!important;max-width:45%!important}
 body .mode-editor .stage-header select{max-width:110px!important;font-size:10px!important;padding:5px!important}
 body .mode-editor .timeline-panel .timeline-help{font-size:10px!important}
 body .mode-editor .v19-tool-caption,body .mode-photo .v19-tool-caption{min-height:32px!important;padding:7px 9px!important}
 body .mode-editor .properties-panel,.mode-photo .photo-properties{box-shadow:none!important}
 body .mode-photo .photo-stage-header #photo-file-name{max-width:30%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 body .mode-editor .preview-empty-content,body .mode-photo .photo-empty-content{max-width:92%!important}
 body .mode-editor .preview-empty-content p,body .mode-photo .photo-empty-content p{font-size:12px!important;max-width:250px!important}
 body .mode-editor .preview-empty-content .btn,body .mode-photo .photo-empty-content .btn{font-size:12px!important;min-height:42px!important}
 body.v19-preview-theater .mode-editor .preview-area{height:clamp(320px,54dvh,530px)!important;max-height:530px!important}
 body.v19-preview-theater .mode-photo .photo-stage-view{height:clamp(320px,54dvh,530px)!important;max-height:530px!important}
 body.v19-preview-theater .mode-editor .preview-area canvas,body.v19-preview-theater .mode-photo .photo-stage-view canvas{max-height:calc(clamp(320px,54dvh,530px) - 10px)!important}
}
@media(prefers-reduced-motion:reduce){.splash-screen:before,.splash-screen:after,.tap-cta:after,.v20-live-dot{animation:none!important}}
/* Feedback never blocks the project title or import/export actions. */
@media(max-width:650px){body .toast,body #toast{top:auto!important;bottom:calc(18px + env(safe-area-inset-bottom))!important;left:15px!important;right:15px!important;max-width:none!important;pointer-events:none!important;z-index:120!important;box-shadow:0 12px 30px #000b!important}}
