/* Only the photo area of the existing fullscreen trainer profile. */
#pmtx-dialog .pmtg-slider{width:100%;min-width:0;box-sizing:border-box;}
#pmtx-dialog .pmtg-stage{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;width:100%;overflow:hidden;border-radius:12px;background:#0a1422;touch-action:pan-y;cursor:grab;}
#pmtx-dialog .pmtg-stage:active{cursor:grabbing;}
#pmtx-dialog .pmtg-main-image{display:block;width:100%;height:100%;max-height:65vh;object-fit:contain;object-position:center;user-select:none;-webkit-user-drag:none;}
#pmtx-dialog .pmtg-slider-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 0;}
#pmtx-dialog .pmtg-arrow{display:flex;align-items:center;justify-content:center;min-width:44px;width:44px;height:44px;padding:0;border:1px solid #ffffff40;border-radius:10px;background:#ffffff09;color:#edf4ff;font:700 22px/1 system-ui,sans-serif;cursor:pointer;}
#pmtx-dialog .pmtg-arrow[hidden],#pmtx-dialog .pmtg-thumbs[hidden]{display:none!important;}
#pmtx-dialog .pmtg-counter{font:700 13px/1.5 Manrope,system-ui,sans-serif;color:#d0ddf1;}
#pmtx-dialog .pmtg-caption{font:400 12px/1.6 Manrope,system-ui,sans-serif;color:#c5d5ee;margin:12px 0 0;overflow-wrap:anywhere;}
#pmtx-dialog .pmtg-thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;margin-top:12px;padding-bottom:5px;}
#pmtx-dialog .pmtg-thumb{display:block;flex:0 0 58px;box-sizing:border-box;width:58px;height:68px;margin:0;padding:2px;border:2px solid transparent;border-radius:9px;background:#ffffff12;overflow:hidden;cursor:pointer;}
#pmtx-dialog .pmtg-thumb[aria-pressed=true]{border-color:var(--pmtx-accent,#df2428);}
#pmtx-dialog .pmtg-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:5px;}
#pmtx-dialog .pmtg-loading{font:400 12px/1.6 Manrope,system-ui,sans-serif;color:#c2d3eb;margin:12px 0;}
#pmtx-dialog .pmtg-retry{border:0;background:none;color:#fff;text-decoration:underline;cursor:pointer;font:700 12px/1.5 system-ui,sans-serif;padding:4px;}
#pmtx-dialog .pmtg-arrow:focus-visible,#pmtx-dialog .pmtg-thumb:focus-visible,#pmtx-dialog .pmtg-stage:focus-visible{outline:3px solid #ffd15b;outline-offset:3px;}
/* Existing account page: gallery editor for authorized staff only. */
.pmtg-editor{box-sizing:border-box;padding:26px;margin:30px 0;background:#fff;border:1px solid #dbe4f0;border-radius:18px;color:#2c405b;}
.pmtg-editor h2{font:800 23px/1.4 Manrope,system-ui,sans-serif;margin:0 0 16px;}
.pmtg-editor p{font:400 13px/1.65 Manrope,system-ui,sans-serif;color:#647b98;}
.pmtg-editor form{display:grid;gap:16px;margin:22px 0 0;}
.pmtg-items{display:grid;gap:14px;}
.pmtg-item{display:grid;grid-template-columns:100px minmax(0,1fr) auto;align-items:start;gap:16px;padding:16px;background:#f7faff;border:1px solid #dce5f1;border-radius:13px;}
.pmtg-item>img{display:block;width:100px;height:110px;object-fit:contain;background:#e9eff7;border-radius:9px;}
.pmtg-item>div{display:grid;gap:9px;min-width:0;}
.pmtg-editor label{font:500 13px/1.6 Manrope,system-ui,sans-serif;color:#4c6585;}
.pmtg-editor input[type=text],.pmtg-editor input:not([type]),.pmtg-editor select{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;padding:9px 12px;border:1px solid #ccd9e9;border-radius:9px;background:#fff;color:#304b6c;font-size:16px;}
.pmtg-editor input[type=checkbox],.pmtg-editor input[type=radio]{width:18px;height:18px;vertical-align:middle;accent-color:#ce2936;}
.pmtg-editor .pmtg-move{display:flex;flex-direction:column;gap:8px;}
.pmtg-move button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #cad8ea;border-radius:9px;background:#fff;color:#456384;font:700 20px/1 system-ui,sans-serif;cursor:pointer;}
.pmtg-button{display:inline-flex;align-items:center;justify-content:center;justify-self:start;min-height:46px;padding:11px 16px;border:0;border-radius:10px;background:#d22835;color:#fff;font:800 13px/1.5 Manrope,system-ui,sans-serif;cursor:pointer;}
.pmtg-upload{padding-top:22px;border-top:1px solid #dce5f1;}
.pmtg-upload>label:first-child{display:grid;gap:10px;}
.pmtg-upload input[type=file]{max-width:100%;font-size:13px;}
.pmtg-upload .pmtg-consent{display:flex;align-items:flex-start;gap:10px;font-weight:400;}
.pmtg-consent input{flex:0 0 18px;margin-top:3px;}
.pmtg-success{padding:14px 16px;border:1px solid #b5d9c7;border-radius:10px;background:#eff9f3;color:#276646!important;}
.pmtg-editor button:focus-visible,.pmtg-editor input:focus-visible,.pmtg-editor select:focus-visible{outline:3px solid #e7b62c;outline-offset:3px;}
@media(max-width:600px){#pmtx-dialog .pmtg-stage{aspect-ratio:4/5;}#pmtx-dialog .pmtg-main-image{max-height:58vh;}.pmtg-editor{padding:20px 16px;}.pmtg-item{grid-template-columns:74px minmax(0,1fr);gap:12px;padding:12px;}.pmtg-item>img{width:74px;height:90px;}.pmtg-editor .pmtg-move{grid-column:1/-1;flex-direction:row;}.pmtg-button{width:100%;}}

.pmtg-editor .pmtg-item label{display:block;}.pmtg-editor .pmtg-item label>input:not([type=checkbox]):not([type=radio]){display:block;margin-top:5px;}
