/* Diamond Edit AI V14 · layout, sound, professional mobile tools */
:root{--v14-gold:#e4bb78;--v14-glow:#59aeff;--v14-surface:#0c1522;--v14-hair:#47637a80}
button,input,select{font-family:inherit}
button{transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease}
button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #7bbdfc;outline-offset:2px}
.btn-gold{background:linear-gradient(115deg,#cf994f,#f4d292 50%,#a96d2e)!important;color:#15151b!important;border:1px solid #ffdfa1!important;box-shadow:inset 0 1px 0 #fff4d066,0 3px 18px #cf92342a!important;text-shadow:none;letter-spacing:.2px;font-weight:800}
.btn-gold:hover{box-shadow:0 0 22px #edb15e65!important}
.btn-outline,.btn{border-radius:11px}
.splash-screen{background:#040911}
.splash-screen:before{content:'';position:absolute;z-index:1;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,transparent 12%,#04080e72 75%)}
.splash-ready .splash-diamond-frame{animation:v13-awaken 3.7s ease-in-out infinite}
.splash-diamond-frame:after{content:'';position:absolute;inset:-28%;z-index:-1;border-radius:50%;border:1px solid #327bb940;box-shadow:inset 0 0 35px #1f67bc1a;animation:v14-rotate 18s linear infinite;clip-path:polygon(0 0,100% 0,100% 42%,42% 42%,42% 100%,0 100%)}
@keyframes v14-rotate{to{transform:rotate(360deg)}}
.splash-ready .tap-cta{animation:v14-pulse 3.5s ease-in-out infinite!important}
.tap-cta{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:13px!important;width:min(390px,100%)!important;max-width:390px!important;border:1px solid #cda765!important;border-radius:15px!important;padding:11px 13px!important;min-height:66px!important;background:linear-gradient(115deg,#111d31ee,#09121ef4 52%,#2d2518ec)!important;color:#fff1d9!important;box-shadow:0 0 0 1px #2a4c7340,inset 0 1px 0 #ffe5a33b,0 10px 42px #000b!important;letter-spacing:0!important;backdrop-filter:blur(16px);font-size:11px!important;text-align:left!important;position:relative;overflow:hidden}
.tap-cta:before{content:'';position:absolute;pointer-events:none;inset:0;transform:translateX(-110%);background:linear-gradient(90deg,transparent,#5fbaff22,transparent);animation:v14-scan 4s linear infinite}
.tap-cta-icon{width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;color:#e5bd7b;border:1px solid #bc8f4e88;background:#2f271c8a;border-radius:11px;box-shadow:0 0 19px #dbad5630;text-shadow:none}
.tap-cta-icon svg{width:24px;height:24px}
.tap-cta-label{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.tap-cta-label b{font-size:11px;letter-spacing:1.35px;color:#ffdeb0}
.tap-cta-label small{font-size:9px!important;letter-spacing:1.3px!important;color:#9ab5cc!important;margin:0!important;line-height:1.3!important;font-weight:500!important}
.tap-cta-arrow{font-size:21px!important;color:#90c8f8!important;flex:0 0 auto}
@keyframes v14-pulse{50%{box-shadow:0 0 0 1px #3474b980,inset 0 1px 0 #ffe5a33b,0 0 31px #2a8ee136}}
@keyframes v14-scan{0%,29%{transform:translateX(-110%)}76%,100%{transform:translateX(120%)}}
.v14-sound-btn{background:#0c1a29;border:1px solid #55749675;border-radius:999px;padding:8px 11px;min-height:34px;font-size:11px;color:#d6e5f6;white-space:nowrap}
.v14-sound-btn:hover,.v14-sound-btn:focus-visible{border-color:#edc17e;color:#f0d5a0}
.chooser-page-clean .chooser-grid{opacity:.42}
.chooser-page-clean .mode-card{border:1px solid #937044bb;box-shadow:inset 0 1px 0 #f4d1981a,0 8px 32px #0008;background:linear-gradient(145deg,#111b2a,#070d16)!important}
.chooser-page-clean .mode-card.ai-mode{border-color:#337cba8c}
.media-card .mode-info strong{letter-spacing:-.3px}
.chooser-page-clean .mode-info em{display:flex;align-items:center;gap:9px;text-decoration:none;border-top:1px solid #8ea9c22c;margin-top:auto;padding-top:8px;font-weight:750}
.media-card .mode-info em:after{content:'↗';color:#7cbafd;font-size:15px}
.photo-workspace .photo-properties,.editor-layout .properties-panel{border-color:#314963!important;background:linear-gradient(165deg,#0e1826,#090f18)!important}
.photo-tool-section .ctrl,.properties-panel .ctrl{min-width:0}
.photo-properties input[type=range],.properties-panel input[type=range]{width:100%;accent-color:#e6bc78}
.photo-properties input[type=color],.properties-panel input[type=color]{min-height:36px}
.panel-heading{padding-bottom:10px;border-bottom:1px solid #39526b66}
.v14-tool-banner{display:block;color:#9eb6cb;font-size:10px;letter-spacing:1.4px;font-weight:750;margin:4px 0 12px}
.v13-layer-row{min-width:0}
.v13-layer-editor select{min-height:38px;width:100%}
/* Tablet and desktop: controls available without extra intermediate clicks */
@media(min-width:621px){.mode-photo .photo-properties,.mode-editor .properties-panel{scrollbar-color:#a58a58 #0a121d}.mode-editor .properties-panel .tab-row{gap:5px}.mode-editor .properties-panel .tab-row button{border-radius:10px}.v14-sound-btn{max-width:150px}}
@media(max-width:620px){
 html,body{overscroll-behavior-x:none}
 .mode-editor .content-shell,.mode-photo .content-shell{height:100dvh!important;min-height:0!important;overflow:hidden!important}
 .mode-editor .content-shell main,.mode-photo .content-shell main{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;min-height:0!important;scroll-padding-top:16px;padding:10px 10px calc(40px + env(safe-area-inset-bottom))!important}
 .mode-photo .topbar{min-height:42px!important}
 .mode-photo .content-shell main{height:calc(100dvh - 42px)!important}
 .mode-editor .content-shell main{height:calc(100dvh - 42px)!important}
 .mode-editor .editor-layout,.mode-photo .photo-workspace{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0;overflow:visible!important}
 .mode-editor .editor-layout>section,.mode-photo .photo-workspace>section{min-width:0;width:100%}
 .mode-editor .editor-top{margin-bottom:9px!important}
 .mode-editor .preview-area{height:clamp(168px,26dvh,255px)!important;max-height:none!important;min-height:155px!important}
 .mode-editor .preview-area canvas{max-height:clamp(164px,25dvh,249px)!important}
 .mode-editor .stage-panel,.mode-editor .timeline-panel{margin-bottom:0!important}
 .mode-editor .timeline-panel{padding:9px!important}
 .mode-editor .timeline-help{font-size:10px;margin:5px 0 0!important}
 .mode-editor .properties-panel,body.v11-video-expanded .mode-editor .properties-panel{position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;width:100%!important;height:auto!important;max-height:none!important;min-height:300px!important;display:flex!important;flex-direction:column!important;padding:11px!important;overflow:visible!important;border-radius:16px!important;box-shadow:0 13px 36px #0008!important;transition:none!important;gap:0!important}
 .mode-editor .properties-panel>h3{display:block!important;font-size:14px!important;margin:0 0 9px!important;color:#f1d3a2}
 .mode-editor .properties-panel .v11-tool-head{display:none!important}
 .mode-editor .properties-panel .tab-row,body.v11-video-expanded .mode-editor .properties-panel .tab-row{display:flex!important;order:1!important;flex:0 0 auto!important;align-items:center!important;gap:7px!important;border:none!important;border-bottom:1px solid #344d6588!important;padding:0 0 12px!important;margin:0 0 10px!important;height:78px!important;min-height:78px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;scrollbar-color:#6482a8 transparent;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
 .mode-editor .properties-panel .tab-row .tab{height:61px!important;min-height:61px!important;flex:0 0 71px!important;min-width:71px!important;width:71px!important;scroll-snap-align:start;display:flex!important;flex-direction:column!important;justify-content:center;align-items:center;border:1px solid #294562!important;background:#0f1e2f!important;border-radius:11px!important;color:#c5d7e9!important}
 .mode-editor .properties-panel .tab-row .tab.selected{background:linear-gradient(145deg,#3f3020,#121e2e)!important;color:#ffe2ae!important;border-color:#e1b56d!important;box-shadow:inset 0 0 12px #bb863527}
 .mode-editor .properties-panel #control-panel,body.v11-video-expanded .mode-editor .properties-panel #control-panel{display:block!important;order:2!important;overflow:visible!important;max-height:none!important;min-height:140px!important;flex:0 0 auto!important;padding:7px 2px 15px!important}
 .mode-editor .properties-panel .properties-footer{order:3!important;display:block!important;margin-top:5px;font-size:9px!important}
 .mode-editor .properties-panel .ctrl>label{font-size:12px!important;line-height:1.5}
 .mode-photo .photo-heading{margin:0 0 8px!important}
 .mode-photo .photo-page-header{gap:9px;margin-bottom:10px!important}
 .mode-photo .photo-page-header>div p:not(.eyebrow){display:none}
 .mode-photo .photo-page-header h1{font-size:20px!important}
 .mode-photo .photo-stage{padding:9px!important}
 .mode-photo .photo-stage-view{height:clamp(185px,29dvh,280px)!important;min-height:0!important;max-height:280px!important}
 .mode-photo .photo-stage-view canvas{max-height:calc(clamp(185px,29dvh,280px) - 7px)!important}
 .mode-photo .photo-mobile-dock{display:flex!important;position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:2!important;order:1!important;width:100%!important;height:78px!important;min-height:78px!important;padding:7px!important;border:1px solid #354e6b!important;border-radius:15px!important;background:#0e1928!important;gap:7px!important;justify-content:flex-start!important;align-items:center!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;box-shadow:0 9px 28px #0007!important}
 .mode-photo .photo-mobile-dock button{height:61px!important;min-height:61px!important;flex:0 0 71px!important;min-width:71px!important;max-width:none!important;width:71px!important;border:1px solid #314d67!important;border-radius:10px!important;background:#101c2b!important;scroll-snap-align:start;color:#bfcddd}
 .mode-photo .photo-mobile-dock button.active{background:linear-gradient(145deg,#42301e,#102135)!important;border-color:#e3b46c!important;color:#ffe4bb!important}
 .mode-photo .photo-mobile-dock button span{font-size:20px!important}
 .mode-photo .photo-mobile-dock button small{font-size:10px!important}
 .mode-photo .photo-properties,body.v11-photo-expanded .mode-photo .photo-properties{display:block!important;position:relative!important;z-index:1!important;left:auto!important;right:auto!important;bottom:auto!important;order:2!important;overflow:visible!important;width:100%!important;max-height:none!important;min-height:170px!important;height:auto!important;padding:14px!important;border:1px solid #304b65!important;border-radius:15px!important;box-shadow:0 12px 24px #0007!important}
 .mode-photo .photo-properties>h3{display:block!important;font-size:15px!important;margin:0 0 11px!important;color:#f4d49b}
 .mode-photo .photo-properties>.photo-tabs,.mode-photo .photo-properties>p,.mode-photo .photo-properties>.inline-details{display:none!important}
 .mode-photo .photo-properties .photo-tool-section{display:none!important}
 .mode-photo .photo-properties .photo-tool-section.mobile-active{display:block!important}
 .mode-photo .photo-control-grid{grid-template-columns:1fr!important;gap:3px!important}
 .mode-photo .photo-properties .photo-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .mode-photo .photo-stage-view,.mode-editor .preview-area{border-radius:12px!important}
 .mode-photo .photo-stage-actions .btn{border-radius:10px!important}
 .mode-editor .editor-layout>.properties-panel{margin:0!important}
 .mode-photo .photo-mobile-dock button:last-child{flex:0 0 71px!important}
 .topbar-actions .v14-sound-btn{font-size:0!important;min-width:30px;max-width:34px;padding:8px 5px!important}
 .topbar-actions .v14-sound-btn:first-letter{font-size:14px}
 .chooser-page-clean .mode-card{border-radius:15px!important}
 .chooser-page-clean .mode-info em{font-size:10px}
 .chooser-page-clean .chooser-halo{transform:scale(.95)}
 .mode-editor .properties-panel .control-set{gap:10px}
}
@media(prefers-reduced-motion:reduce){.tap-cta:before,.splash-diamond-frame:after{animation:none!important}}
