/* Diamond Edit AI V48 — stable geometry, usability and synchronized overlay lanes. */
:root{--v48-gold:#eac58d}
.mode-editor .editor-top,.mode-photo .photo-heading{box-sizing:border-box}
.mode-editor .editor-top>* ,.mode-photo .photo-heading>*{min-width:0}
.mode-editor .editor-top button,.mode-photo .photo-heading button{touch-action:manipulation}
.mode-editor .editor-top .editor-actions svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mode-editor #previewCanvas,.mode-photo #photoCanvas{touch-action:none;user-select:none;-webkit-user-select:none}
.mode-editor .v34-topline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.v48-organize{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:5px 11px;border:1px solid #765d40;border-radius:8px;color:#f2d4a0;background:#1d2330;font-size:11px;line-height:1.1;font-weight:750;white-space:nowrap;cursor:pointer}
.v48-organize:focus-visible{outline:2px solid #f2d4a0;outline-offset:3px}
.mode-editor .v35-layer-stack .v35-layer-row{isolation:isolate}
.mode-editor .v35-layer-stack .v35-photo-clip[data-v41-lane="overlay"],
.mode-editor .v35-layer-stack .v35-photo-clip[data-v41-layer-id]{position:absolute!important;top:1px!important;left:calc(var(--v45-playhead-x,110px) + var(--v48-start,0px) - var(--v45-timeline-x,0px))!important;width:max-content!important;max-width:85%!important;min-width:110px!important;margin:0!important;touch-action:none;cursor:grab;z-index:2}
.mode-editor .v35-layer-stack .v35-photo-clip:active{cursor:grabbing}
/* A portrait photographed on one continuous canvas, without crop masks or bars. */
.chooser-page-clean .mode-card.video-mode .mode-media img.v28-showcase-img{object-fit:cover!important;object-position:50% 50%!important;background-color:#080c11!important}
/* Keep the canvas proportion and avoid horizontal scrolling on iPhone. */
@media(max-width:650px){
 html,body{max-width:100%;overflow-x:hidden}
 .shell.mode-editor .content-shell .editor-top{grid-template-columns:minmax(0,1fr) 58px 134px!important;column-gap:6px!important}
 .shell.mode-editor .content-shell .editor-top-left{min-width:0!important;overflow:hidden!important}
 .shell.mode-editor .editor-top .editor-top-left .v20-workspace-icon{display:none!important}
 .shell.mode-editor .editor-top .v20-editor-name{min-width:0!important;max-width:100%!important;overflow:hidden!important}
 .shell.mode-editor .editor-top .v20-editor-name input{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;text-overflow:ellipsis!important}
 .shell.mode-editor .editor-top .editor-actions{grid-template-columns:38px 90px!important}
 .shell.mode-editor .editor-top .editor-actions .v29-add-media span{display:none!important}
 .shell.mode-editor .editor-top .editor-actions .v29-add-media svg{display:block!important;width:21px!important;height:21px!important}
 .shell.mode-editor .editor-top #ratio-select{font-size:13px!important;letter-spacing:0!important;padding:0 1px!important}
 .shell.mode-editor .editor-top .v24-format-host{z-index:1}
 .shell.mode-editor .editor-top .v24-format-host label{white-space:nowrap!important}
 .shell.mode-editor .editor-top .editor-actions [data-action="export"]{white-space:nowrap!important;overflow:visible!important}
 .shell.mode-photo .photo-heading{min-width:0!important;width:100%!important}
 .shell.mode-photo .photo-heading svg,.shell.mode-photo .photo-heading .v27-photo-icon svg{display:block!important;overflow:visible!important}
 .shell .photo-mobile-dock>button,.shell.mode-editor .editor-layout>.tab-row>.tab{flex-shrink:0!important;box-sizing:border-box!important;overflow:visible!important}
 .shell.mode-editor .editor-layout>.tab-row>.tab span,.shell .photo-mobile-dock>button span{flex:none!important;overflow:visible!important}
 .shell.mode-editor .editor-layout>.tab-row>.tab small,.shell .photo-mobile-dock>button small{font-size:10px!important;line-height:1.2!important;max-width:100%!important;white-space:nowrap!important}
 .mode-editor .v34-workspace{touch-action:pan-y}
 .mode-editor .v34-timeline-scroller{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .mode-editor .v34-topline{padding-inline:6px!important;min-height:38px!important}
 .mode-editor .v34-readout{min-width:80px!important}
 .mode-editor .v48-organize{min-height:34px;max-width:52%;font-size:11px}
 .mode-editor .v35-layer-stack{max-width:100%;overflow:hidden}
 .mode-editor #previewCanvas{display:block;max-width:100%;height:auto}
}
@media(max-width:360px){
 .shell.mode-editor .content-shell .editor-top{grid-template-columns:minmax(0,1fr) 52px 122px!important;gap:5px!important}
 .shell.mode-editor .editor-top .v24-format-host,.shell.mode-editor .editor-top .v24-format-host label,.shell.mode-editor .editor-top #ratio-select{width:52px!important;min-width:52px!important;max-width:52px!important}
 .shell.mode-editor .editor-top .editor-actions{width:122px!important;min-width:122px!important;max-width:122px!important;grid-template-columns:36px 81px!important;gap:5px!important}
 .shell.mode-editor .editor-top .editor-actions label.btn{width:36px!important;min-width:36px!important;max-width:36px!important}
 .shell.mode-editor .editor-top .editor-actions [data-action="export"]{width:81px!important;min-width:81px!important;max-width:81px!important;font-size:11px!important}
}
