.profile-media-editor{width:min(860px,calc(100% - 28px));border-radius:18px;background:#111a16;border-color:#50644955}
.profile-media-editor>div{display:flex;flex-direction:column;max-height:calc(100dvh - 28px);overflow:auto}
.profile-media-editor header{grid-template-columns:36px 1fr auto;padding:18px 22px;background:#152019;border-bottom:1px solid #ffffff12}
.profile-media-editor .media-editor-heading h2{font-size:20px;line-height:1.3}
.media-editor-heading p{font-size:12px;line-height:1.5;color:#9eb3a5;margin:5px 0 0}
.profile-media-editor [data-media-back]{font-size:20px;border:1px solid #ffffff22;border-radius:8px;width:34px;height:34px}
.profile-media-editor [data-media-apply]{height:40px;min-width:120px;padding:0 15px;border-radius:7px;background:#b8ff00;color:#17230d;font-size:12px;font-weight:650}
.media-crop-hint{margin:22px 24px 18px;text-align:center;color:#97ac9e;font-size:12px;line-height:1.5}
.profile-media-editor main{flex:none;width:min(740px,calc(100% - 48px));margin:0 auto 28px;border:0;outline:2px solid #b7d997;outline-offset:2px;border-radius:7px;box-shadow:0 15px 35px #0004}
.profile-media-editor main.is-avatar{width:min(320px,calc(100% - 48px));border-radius:50%}
.profile-media-editor main:after{box-shadow:none;background:linear-gradient(90deg,transparent 33%,#ffffff25 33%,#ffffff25 33.2%,transparent 33.2%,transparent 66%,#ffffff25 66%,#ffffff25 66.2%,transparent 66.2%),linear-gradient(0deg,transparent 33%,#ffffff25 33%,#ffffff25 33.2%,transparent 33.2%,transparent 66%,#ffffff25 66%,#ffffff25 66.2%,transparent 66.2%)}
.profile-media-editor footer{display:block;padding:20px max(24px,12%);background:#0e1712;border-top:1px solid #ffffff12}
.profile-media-editor .media-zoom-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}
.profile-media-editor .media-zoom-label>span{font-size:12px;color:#b4c9bb}
.media-zoom-label output{font-size:12px;font-variant-numeric:tabular-nums;color:#d2eabc}
.media-zoom-controls{display:flex;align-items:center;gap:14px}
.media-zoom-controls button{width:32px;height:32px;flex:none;border:1px solid #526849;border-radius:7px;background:#1b2a1d;color:#d3e6c7;font-size:19px}
.profile-media-editor footer input{accent-color:#b8ff00;min-width:0;min-height:28px}
.profile-media-editor button:focus-visible,.profile-media-editor input:focus-visible{outline:2px solid #b8ff00;outline-offset:3px}
@media(max-width:600px){.profile-media-editor header{padding:14px 12px;gap:9px}.profile-media-editor .media-editor-heading h2{font-size:16px}.media-editor-heading p{font-size:10px}.profile-media-editor [data-media-apply]{min-width:90px;font-size:10px;padding:0 10px}.media-crop-hint{font-size:11px;margin:18px 20px}.profile-media-editor main{width:calc(100% - 36px)}.profile-media-editor main.is-avatar{width:min(280px,calc(100% - 48px))}.profile-media-editor footer{padding:18px 22px}}

/* Mobile crop workspace: viewport-aware preview and thumb-friendly controls. */
@media(max-width:700px){
 .profile-media-editor{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#0d1511;box-shadow:none}
 .profile-media-editor>div{height:100%;max-height:100dvh;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;padding-top:env(safe-area-inset-top,0px);box-sizing:border-box}
 .profile-media-editor header{grid-template-columns:44px minmax(0,1fr) auto;gap:10px;padding:14px 16px;border-bottom:1px solid #ffffff12;background:#142018}
 .profile-media-editor [data-media-back]{width:44px;height:44px;border-radius:10px;font-size:22px}
 .profile-media-editor .media-editor-heading h2{font-size:17px;line-height:1.3}
 .profile-media-editor .media-editor-heading p{display:none}
 .profile-media-editor [data-media-apply]{min-width:80px;height:44px;padding:0 14px;font-size:12px;border-radius:9px}
 .profile-media-editor .media-crop-hint{margin:0;padding:20px 24px;color:#b2c6b8;text-align:center;font-size:12px;line-height:1.6}
 .profile-media-editor main{width:calc(100% - 32px);max-width:540px;align-self:center;justify-self:center;flex:none;margin:0;outline:1px solid #c4e59c;outline-offset:0;border-radius:8px;box-shadow:0 0 0 1px #b8ff001a,0 15px 40px #0004}
 .profile-media-editor main.is-banner{width:calc(100% - 32px);aspect-ratio:3/1}
 .profile-media-editor main.is-avatar{width:min(78vw,340px,48dvh);aspect-ratio:1;border-radius:50%}
 .profile-media-editor footer{align-self:end;padding:23px 24px calc(26px + env(safe-area-inset-bottom,0px));background:#142018;border-top:1px solid #ffffff14}
 .profile-media-editor .media-zoom-label{margin-bottom:18px}
 .profile-media-editor .media-zoom-label>span{font-size:13px;font-weight:500;color:#c7dbcc}
 .profile-media-editor .media-zoom-label output{font-size:13px;color:#d8edc6}
 .profile-media-editor .media-zoom-controls{gap:16px}
 .profile-media-editor .media-zoom-controls button{width:44px;height:44px;border-radius:10px;font-size:22px;background:#21351f;border-color:#789c5755}
 .profile-media-editor footer input{height:44px;margin:0;flex:1;touch-action:pan-y}
 .profile-media-editor footer input::-webkit-slider-runnable-track{height:5px;border-radius:5px;background:#52654a}
 .profile-media-editor footer input::-webkit-slider-thumb{margin-top:-5px}
}
@media(max-width:700px) and (max-height:480px){
 .profile-media-editor>div{grid-template-rows:auto minmax(0,1fr) auto}
 .profile-media-editor .media-crop-hint{display:none}
 .profile-media-editor header{padding:8px 16px}
 .profile-media-editor main.is-banner{width:min(65vw,calc((100dvh - 170px)*3))}
 .profile-media-editor main.is-avatar{width:min(38vw,calc(100dvh - 170px))}
 .profile-media-editor footer{padding:10px 24px calc(10px + env(safe-area-inset-bottom,0px))}
 .profile-media-editor .media-zoom-label{margin-bottom:4px}
}
