/* Scoped to the photo editor, including against the app's generic form styles. */
body .pb-image-editor{--pe-green:#72e7ac;box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:0;width:min(100%,1050px);height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0;background:#101d20;color:#f0f6f3;font:14px system-ui,sans-serif;overflow:hidden;overscroll-behavior:contain;box-shadow:0 24px 90px #0008}
body .pb-image-editor[open]{display:flex;flex-direction:column}body .pb-image-editor::backdrop{background:#04100de6}body .pb-image-editor *{box-sizing:border-box}body .pb-image-editor [hidden]{display:none!important}body .pb-image-editor button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:12px;background:#243a3b;color:#f0f6f3;font:600 13px system-ui;cursor:pointer;touch-action:manipulation}body .pb-image-editor button:disabled{opacity:.35;cursor:default}body .pb-image-editor button:focus-visible,body .pb-image-editor input:focus-visible,body .pb-image-editor select:focus-visible,body .pb-image-editor canvas:focus-visible{outline:2px solid var(--pe-green);outline-offset:-2px}body .pb-image-editor svg{width:23px;height:23px;flex:none}
body .pb-image-editor .pe-head{display:flex;align-items:center;gap:5px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;background:#182b2c;flex:none;height:auto}body .pb-image-editor .pe-head>div{flex:1;min-width:0}body .pb-image-editor .pe-head strong{display:block;font-size:16px}body .pb-image-editor .pe-head small{display:block;font-size:10px;color:#b2c9bd;margin-top:2px}body .pb-image-editor .pe-head button{background:transparent;padding:8px}
body .pb-image-editor .pe-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:8px 12px;border-bottom:1px solid #ffffff12;flex:none}body .pb-image-editor .pe-tools button{flex-direction:column;font-size:11px;gap:4px;padding:7px 2px;background:transparent;min-width:0}body .pb-image-editor .pe-tools button[aria-pressed=true]{background:#214838;color:var(--pe-green);border-color:#3c7659}
body .pb-image-editor .pe-stage{display:flex;align-items:center;justify-content:center;flex:1;min-height:80px;overflow:hidden;background:radial-gradient(ellipse at center,#1b3030,#0b1519)}body .pb-image-editor canvas{display:block;max-width:100%;max-height:100%;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;border-radius:0;box-shadow:0 6px 35px #0005}
body .pb-image-editor .pe-options{flex:none;max-height:32dvh;overflow:auto;padding:8px 12px;background:#182b2c;border-top:1px solid #ffffff12}body .pb-image-editor .pe-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}body .pb-image-editor .pe-row label{display:flex;align-items:center;gap:8px;flex:1;min-width:130px;font-size:12px;margin:0;color:#d3e6db}body .pb-image-editor .pe-row span{font-size:12px;color:#b2c9bd}body .pb-image-editor input[type=range]{min-width:50px;width:100%;flex:1;accent-color:var(--pe-green);height:40px;padding:0;border:0;background:none}body .pb-image-editor input[type=text],body .pb-image-editor select{color:#fff;background:#0e2020;border:1px solid #597268;border-radius:10px;padding:10px;font:16px system-ui;min-height:44px;min-width:0;width:auto;margin:0}body .pb-image-editor input[type=text]{flex:1;width:100px}body .pb-image-editor select{flex:1}
body .pb-image-editor .pe-colors{display:flex;align-items:center;gap:1px;overflow-x:auto;padding:0 0 5px;scrollbar-width:thin}body .pb-image-editor .pe-colors button{position:relative;flex:0 0 44px;min-width:44px;width:44px;min-height:44px;height:44px;padding:7px 3px;background:none;border:0}body .pb-image-editor .pe-colors button:before{content:'';width:25px;height:25px;background:var(--pe-color);border-radius:50%;border:1px solid #ffffff66}body .pb-image-editor .pe-colors button[aria-pressed=true]:after{content:'';position:absolute;inset:4px 0;border:2px solid #fff;border-radius:30px}body .pb-image-editor .pe-custom-color{position:relative;display:grid;place-items:center;flex:0 0 44px;height:44px;font-size:23px}body .pb-image-editor input[type=color]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
body .pb-image-editor .pe-stickers{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:7px;margin-top:8px;max-height:160px;overflow:auto}body .pb-image-editor .pe-stickers button{height:60px;padding:4px;font-size:30px;background:#203838}body .pb-image-editor .pe-stickers img{width:100%;height:100%;object-fit:contain}body .pb-image-editor .pe-object{padding-top:6px}body .pb-image-editor .pe-foot{display:flex;align-items:center;flex-wrap:wrap;gap:10px;flex:none;padding:8px 14px calc(10px + env(safe-area-inset-bottom));background:#102323}body .pb-image-editor .pe-status{flex:1;min-width:130px;font-size:12px;line-height:1.4;color:#bfd4cb;margin:0}body .pb-image-editor .pe-done{background:var(--pe-green);color:#09261a;min-width:125px}body .pb-image-editor .pe-confirm{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%;padding:10px;background:#4b3027;border-radius:10px}body .pb-image-editor .pe-confirm span{flex:1}body .pb-image-editor [data-action=discard]{background:#803d32}
body.mm-app #media-edit-tools{display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 12px 10px;background:#17252c;flex:none}body.mm-app #media-edit-tools[hidden]{display:none!important}body.mm-app #media-edit-tools button{display:flex;flex:1;max-width:110px;flex-direction:column;align-items:center;justify-content:center;min-width:44px;min-height:52px;padding:6px 2px;gap:3px;background:#203738;color:#e7f7ee;border:1px solid #496455;border-radius:10px;font-size:11px}body.mm-app #media-edit-tools svg{width:22px;height:22px}body.mm-app .media-image-draft .media-draft-head{padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:8px}body.mm-app .media-image-draft{height:100dvh;max-height:100dvh}body.mm-app .media-image-draft #media-preview{overflow:hidden}body.mm-app .media-image-draft #media-draft-status{font-size:12px;padding:0 12px calc(6px + env(safe-area-inset-bottom));flex:none}
@media(max-height:500px){body .pb-image-editor .pe-head{padding:3px 8px}body .pb-image-editor .pe-head small{display:none}body .pb-image-editor .pe-tools{padding:2px 8px}body .pb-image-editor .pe-tools button{flex-direction:row}body .pb-image-editor .pe-options{max-height:26dvh;padding:2px 10px}body .pb-image-editor .pe-foot{padding-top:3px;padding-bottom:3px}body .pb-image-editor .pe-stickers{max-height:70px}}
