/* Diamond Edit AI V25 — responsive toolbar and clearer preview.
   Preserves approved mode chooser and V24 tool interactions. */
@media (max-width:650px){
 body .mode-editor .content-shell .editor-top {
   display:grid!important;grid-template-columns:minmax(88px,1fr) 64px 132px!important;
   grid-template-areas:"project ratio actions";column-gap:5px!important;
   align-items:center!important;width:100%!important;min-width:0!important;
   padding:3px 5px!important;height:46px!important;min-height:46px!important;max-height:46px!important;flex:0 0 46px!important;
 }
 body .mode-editor .editor-top .editor-top-left{grid-area:project;display:flex!important;align-items:center!important;gap:3px!important;min-width:0!important;width:100%!important;overflow:hidden!important}
 body .mode-editor .editor-top .v20-editor-name{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
 body .mode-editor .editor-top #project-name{font-size:12px!important;letter-spacing:-.012em!important;white-space:nowrap!important;width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;outline-offset:-2px!important}
 body .mode-editor .editor-top .editor-mobile-back{font-size:26px!important;flex:0 0 30px!important;width:30px!important;height:38px!important;min-height:38px!important}
 body .mode-editor .editor-top .v24-format-host{grid-area:ratio;display:flex!important;width:64px!important;max-width:64px!important;min-width:0!important;justify-content:center!important;align-items:center!important}
 body .mode-editor .editor-top .v24-format-host label{max-width:64px!important;width:64px!important;display:block!important;margin:0!important}
 body .mode-editor .editor-top #ratio-select{box-sizing:border-box!important;max-width:64px!important;width:64px!important;height:36px!important;min-height:36px!important;border-radius:8px!important;font-size:12px!important;font-weight:700!important;padding:0 12px 0 6px!important;letter-spacing:.015em!important;overflow:hidden!important;text-overflow:clip!important}
 body .mode-editor .editor-top .editor-actions{grid-area:actions;display:grid!important;grid-template-columns:37px 90px!important;justify-content:end!important;align-items:center!important;width:132px!important;min-width:0!important;max-width:132px!important;gap:5px!important}
 body .mode-editor .editor-top .editor-actions label{height:38px!important;min-height:38px!important;max-height:38px!important;width:37px!important;min-width:37px!important;max-width:37px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important;font-weight:400!important;border-radius:9px!important;line-height:1!important;white-space:nowrap!important;cursor:pointer!important}
 body .mode-editor .editor-top .editor-actions label span{display:none!important}
 body .mode-editor .editor-top .editor-actions [data-action="export"]{box-sizing:border-box!important;height:38px!important;min-height:38px!important;max-height:38px!important;width:90px!important;min-width:90px!important;max-width:90px!important;padding:0 3px!important;font-size:11px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;letter-spacing:0!important;white-space:nowrap!important;border-radius:9px!important}
 body .mode-editor .editor-top .editor-actions [data-action="export"] span{display:inline!important;font-size:11px!important;white-space:nowrap!important}
 /* Avoid soft blur when HD backing store is fitted to a smaller display. */
 body .mode-editor #previewCanvas{image-rendering:auto!important;will-change:auto!important}
 .v25-original-link{margin-top:12px!important;font-size:12px!important;display:block!important;width:100%!important;color:#d3e4ef!important;background:#19232a!important;white-space:normal!important;line-height:1.3!important;padding:10px!important}
}
@media(max-width:365px){
 body .mode-editor .content-shell .editor-top{grid-template-columns:minmax(67px,1fr) 60px 115px!important;column-gap:3px!important}
 body .mode-editor .editor-top .v24-format-host,body .mode-editor .editor-top .v24-format-host label,body .mode-editor .editor-top #ratio-select{width:60px!important;max-width:60px!important}
 body .mode-editor .editor-top .editor-actions{grid-template-columns:34px 77px!important;width:115px!important;max-width:115px!important;gap:4px!important}
 body .mode-editor .editor-top .editor-actions label{width:34px!important;min-width:34px!important;max-width:34px!important}
 body .mode-editor .editor-top .editor-actions [data-action="export"]{width:77px!important;min-width:77px!important;max-width:77px!important;font-size:10px!important}
 body .mode-editor .editor-top .editor-actions [data-action="export"] span{font-size:10px!important}
 body .mode-editor .editor-top #project-name{font-size:11px!important}
}
