.photo-editor-overlay{position:fixed!important;inset:0!important;z-index:10000!important;padding:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.photo-editor-modal{width:min(640px,100%)!important;max-height:calc(100dvh - 24px)!important;display:flex;flex-direction:column;overflow:hidden!important}
.photo-editor-modal .modal-head,.photo-editor-modal .modal-foot{flex:0 0 auto}.photo-editor-body{padding:16px;min-height:0;overflow:auto}.photo-editor-body canvas{display:block;width:auto;max-width:100%;max-height:50dvh;height:auto;margin:auto;background:#eef3f7;touch-action:none;cursor:crosshair}.photo-editor-body p{font-size:13px;line-height:1.5}.photo-editor-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.photo-editor-modal button{min-height:44px}.photo-editor-modal .modal-foot{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px}.photo-editor-modal .modal-head button{min-width:44px}
.photo-editor-overlay{padding:0!important;background:#000!important}.photo-editor-modal{width:min(760px,100%)!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;background:#000!important;color:white}.photo-editor-modal .modal-head{background:var(--action-blue,#2187fa);display:flex;align-items:center;gap:12px;padding:8px 12px}.photo-editor-modal .modal-head h2{flex:1;color:white;margin:0}.photo-editor-modal .modal-head button{background:transparent;color:white;border:0;font-size:28px;min-width:44px}.photo-editor-body{flex:1;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:12px;min-height:0}.photo-editor-body canvas{max-height:calc(100dvh - 240px);max-width:100%;background:black}.photo-editor-body [role=status]{text-align:center;margin:6px;color:#ccc;min-height:20px}.photo-editor-ratios{display:flex;background:white;flex:0 0 auto;border-radius:14px 14px 0 0;padding:6px;gap:2px}.photo-editor-ratios button{flex:1;background:white;color:#222;border:0;padding:4px;font-size:14px}.photo-editor-ratios button[aria-pressed=true]{color:var(--action-blue,#2187fa);font-weight:700}.photo-editor-tools{flex:0 0 auto;background:#22242f;justify-content:space-around;margin:0;padding:12px 6px calc(12px + env(safe-area-inset-bottom))}.photo-editor-tools button{background:transparent;color:white;border:0;padding:6px;font-size:13px}
