/* Diamond Edit AI V11 — mobile editing workspace and deliberate visual hierarchy */
:root{--v11-surface:#080e17;--v11-line:#856c47;--v11-gold:#edc27a;--v11-blue:#3c9dfb}
.v11-tool-head{display:none}
.studio-quickbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;color:#9cadc0;font-size:11px}
.compare-button{flex:none;background:#121c2a;border:1px solid #4a6684;border-radius:999px;color:#f3d29a;font-size:11px;font-weight:650;min-height:33px;padding:7px 12px;touch-action:none;user-select:none;-webkit-user-select:none}
.compare-button:active{background:#3d2d18;border-color:#cda667}
.photo-crop-selector{display:grid;grid-template-columns:1fr minmax(130px,2fr);align-items:center;gap:14px;margin:4px 0 14px;color:#cdd9e8;font-size:12px}
.photo-crop-selector select{min-height:39px;font-size:12px}
.photo-control input[type=range],.properties-panel input[type=range]{touch-action:auto;accent-color:#eec57f}
.photo-preset.selected,.filter-preset.selected{box-shadow:inset 0 0 0 1px #f0c57a,0 0 14px #dba95d38!important}
.photo-preset:focus-visible,.filter-preset:focus-visible,.tab:focus-visible,.photo-mobile-dock button:focus-visible{outline:2px solid #49a6ff;outline-offset:2px}
@media(max-width:620px){
  body:has(.mode-editor),body:has(.mode-photo){overscroll-behavior-y:contain}
  .mode-editor .content-shell,.mode-photo .content-shell{height:100dvh;overflow:hidden}
  .mode-editor .content-shell main,.mode-photo .content-shell main{height:calc(100dvh - 42px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;}
  .mode-photo .content-shell main{height:100dvh!important;padding:9px 11px calc(72px + env(safe-area-inset-bottom))!important}
  .mode-editor .content-shell main{height:calc(100dvh - 42px);padding:8px 10px calc(74px + env(safe-area-inset-bottom))!important}
  .mode-editor .topbar{height:42px!important}
  .mode-editor .editor-top{margin:0 0 8px;flex-wrap:nowrap!important}
  .mode-editor .editor-top-left{flex:1 1 0;min-width:0}
  .mode-editor .editor-top-left input{min-width:0!important;font-size:12px}
  .mode-editor .editor-actions{display:flex!important;width:auto!important;flex:0 0 auto}
  .mode-editor .editor-actions button{min-width:70px;min-height:38px!important;padding:8px 10px!important}
  .mode-editor .editor-actions button[data-action="export"]{min-width:77px}
  .mode-editor .editor-layout,.mode-photo .photo-workspace{gap:9px}
  .mode-editor .preview-area{height:min(39dvh,332px)!important;max-height:332px!important;min-height:180px!important;background:radial-gradient(circle at 50% 28%,#101e31,#070a11 74%)!important}
  .mode-editor .preview-area canvas{max-height:calc(min(39dvh,332px) - 6px)!important}
  .mode-editor .stage-panel{padding:8px!important}
  .mode-editor .transport{margin:5px 0!important;gap:11px;justify-content:space-between}
  .mode-editor .transport .play{width:40px;height:40px;min-height:40px}
  .mode-editor .transport .video-before{margin-right:auto}
  .mode-editor .transport .transport-time{font-size:11px}
  .mode-editor .seek-row{padding:0 3px 3px}
  .mode-editor .timeline-panel{margin:0!important;padding:9px!important}
  .mode-editor .timeline-top{margin-bottom:5px}
  .mode-editor .timeline-track{height:42px;min-height:42px}
  .mode-editor .timeline-track span{font-size:11px}
  .mode-editor .properties-panel{position:fixed!important;left:0;right:0;bottom:0;width:100%;height:83px!important;max-height:none!important;min-height:83px!important;z-index:32;padding:8px 7px calc(7px + env(safe-area-inset-bottom,0px))!important;border-radius:18px 18px 0 0!important;background:linear-gradient(175deg,#101a27,#060b13)!important;box-shadow:0 -12px 36px #000a;overflow:hidden;transition:height .22s ease}
  .mode-editor .properties-panel .v11-tool-head{display:none}
  .mode-editor .properties-panel #control-panel{display:none}
  .mode-editor .properties-panel .tab-row{border:0;padding:0;margin:0;order:1;flex:1;align-items:center;min-height:0;overflow-x:auto}
  .mode-editor .properties-panel .tab-row .tab{min-width:70px;width:70px;height:62px;min-height:62px;flex:0 0 70px;display:flex;flex-direction:column;justify-content:center;gap:4px;border-radius:10px;background:#101a2a}
  .mode-editor .properties-panel .tab-row .tab.selected{background:#332719;border-color:#b48b4e;color:#ffe3af}
  .mode-editor .properties-panel .tab-row .tab small{font-size:11px}
  .mode-editor .properties-panel .tab-row .tab span{font-size:21px}
  body.v11-video-expanded .mode-editor .properties-panel{height:clamp(232px,44dvh,405px)!important;max-height:65dvh!important}
  body.v11-video-expanded .mode-editor .properties-panel .v11-tool-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 30px;padding:0 8px;color:#f4d198;font-size:12px;font-weight:700}
  body.v11-video-expanded .mode-editor .properties-panel .v11-tool-head button{background:transparent;border:1px solid #735e3e;color:#f0c986;border-radius:7px;padding:3px 9px;min-height:28px;display:flex;gap:7px;align-items:center}
  body.v11-video-expanded .mode-editor .properties-panel .v11-tool-head button small{font-size:10px}
  body.v11-video-expanded .mode-editor .properties-panel #control-panel{display:block;flex:1 1 auto;order:1;overflow-y:auto;min-height:0;padding:5px 10px 12px}
  body.v11-video-expanded .mode-editor .properties-panel .tab-row{order:2;flex:0 0 70px;border-top:1px solid #5b4b32;padding-top:7px}
  .mode-editor .properties-panel .control-set{gap:13px}
  .mode-editor .properties-panel .ctrl{margin-bottom:7px}
  .mode-editor .properties-panel .ctrl>label{font-size:12px;margin-bottom:6px}
  .mode-editor .properties-panel .ctrl input[type=range]{min-height:32px}
  .mode-editor .properties-panel .filter-presets{grid-template-columns:repeat(3,1fr);gap:7px}
  .mode-editor .properties-panel .filter-preset{min-height:67px;padding:6px}
  .mode-editor .properties-panel .panel-heading{margin-bottom:12px}
  .mode-editor .properties-panel .panel-heading strong{font-size:14px}
  .mode-editor .properties-panel .ctrl-note{font-size:10px}
  /* Photo: the image stays spacious, while tool panels slide up only on demand */
  .mode-photo .photo-heading{margin-bottom:7px}
  .mode-photo .photo-page-header{grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-bottom:7px!important}
  .mode-photo .photo-page-header h1{font-size:19px!important}
  .mode-photo .photo-page-header .btn{font-size:11px;padding:7px 9px}
  .mode-photo .photo-stage{padding:9px!important}
  .mode-photo .photo-stage-view{height:min(48dvh,430px)!important;max-height:430px!important;min-height:200px!important}
  .mode-photo .photo-stage-view canvas{max-height:calc(min(48dvh,430px) - 10px)!important}
  .mode-photo .photo-stage-actions{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px}
  .mode-photo .photo-stage-actions .btn{min-width:0;padding:7px 4px!important;min-height:38px!important;font-size:11px!important}
  .mode-photo .photo-stage-actions .btn:first-child{grid-column:auto}
  .mode-photo .studio-quickbar{margin:9px 0 2px;font-size:10px}
  .mode-photo .studio-quickbar #photo-tip{flex:1;text-align:right;max-width:205px}
  .mode-photo .photo-properties{display:none;bottom:calc(68px + env(safe-area-inset-bottom,0px));max-height:none!important;min-height:0!important;height:clamp(205px,35dvh,365px);padding:14px 14px 12px!important;z-index:33;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(170deg,#111c2d,#070c16)!important}
  body.v11-photo-expanded .mode-photo .photo-properties{display:block}
  .mode-photo .photo-mobile-dock{height:calc(68px + env(safe-area-inset-bottom,0px));z-index:34}
  .mode-photo .photo-mobile-dock button{height:56px;flex:1 1 0;min-width:0}
  .mode-photo .photo-mobile-dock button span{font-size:23px}
  .mode-photo .photo-mobile-dock button small{font-size:10px}
  .mode-photo .photo-mobile-dock button:last-child{flex:.68 1 0}
  .mode-photo .photo-control-grid{display:grid;grid-template-columns:1fr;gap:3px}
  .mode-photo .photo-control input[type=range]{min-height:30px}
  .mode-photo .photo-properties .ctrl{margin-bottom:11px}
  .mode-photo .photo-properties .ctrl label{font-size:12px}
  .mode-photo .photo-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .mode-photo .photo-preset{font-size:10px}
  .mode-photo .photo-preset span{height:43px}
  .mode-photo .photo-crop-selector{grid-template-columns:1fr 1.5fr}
  .mode-photo .photo-transform .btn{font-size:11px}
  .mode-photo .photo-mobile-dock button.active{box-shadow:inset 0 0 0 1px #d1a560; color:#ffd28c}
}
@media(max-width:390px){
  .mode-editor .editor-actions button{min-width:59px;padding:7px!important;font-size:10px}
  .mode-photo .photo-stage-view{height:39dvh!important}
  .mode-editor .preview-area{height:36dvh!important}
  .mode-photo .photo-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.mode-editor .properties-panel{transition:none!important}}

@media(max-width:620px){
 .mode-editor .toast,.mode-photo .toast{pointer-events:none}
 .toast{top:calc(54px + env(safe-area-inset-top,0px))!important;bottom:auto!important;left:14px!important;right:14px!important;padding:11px 14px!important;max-width:none!important;font-size:11px!important;background:#142236f1;box-shadow:0 8px 23px #0007}
}
