/* Play2Gether V25 – genehmigte Teamlisten-Profile und Änderungsanfragen */
#profileModal .modal-card{max-width:min(760px,calc(100vw - 22px));max-height:min(80dvh,760px);padding:clamp(14px,2.4vw,23px);overflow-y:auto;overscroll-behavior:contain}
#profileModal .modal-heading{margin:12px 0 14px;align-items:center;gap:14px}
#profileModal .modal-heading .avatar{width:clamp(76px,12vw,112px);height:clamp(76px,12vw,112px);object-fit:cover;flex:none}
#profileModal .modal-two,#profileModal .counter-panel{gap:8px}
#profileModal .modal-info{margin-top:10px}
#profileModal .modal-card :is(h2,h3,.detail-value){overflow-wrap:anywhere}
.p2g-roster-banner{height:clamp(108px,17vw,165px);position:relative;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;border-radius:12px;background:linear-gradient(125deg,#142d4e,#14364b 42%,#332553);border:1px solid #ffffff21;color:#aedbf8;font-weight:800;letter-spacing:.12em;font-size:11px}
.p2g-roster-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.p2g-roster-banner span{padding:12px;text-shadow:0 2px 5px #0009}
#p2gPageDesignrequests .p2g-port-panel{min-width:0}
.p2g-design-count{margin-left:auto;border-radius:30px;background:#27466c;padding:2px 7px;font-size:12px}
.p2g-design-section{margin-top:22px}
.p2g-design-section h2{margin:0 0 12px;font-size:18px}
.p2g-design-card{background:#101f34;border:1px solid #4e709484;border-radius:14px;padding:14px;margin:11px 0;min-width:0}
.p2g-design-card header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}
.p2g-design-card small,.p2g-design-muted{color:#9bb6ce;line-height:1.5}
.p2g-design-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:10px}
.p2g-design-fields>div{min-width:0;padding:9px;background:#071a2c;border-radius:9px;border:1px solid #314764}
.p2g-design-fields strong{display:block;font-size:12px;color:#a7d9ff;margin-bottom:4px}
.p2g-design-image{width:min(100%,320px);height:110px;object-fit:cover;border-radius:8px;border:1px solid #516b8c;display:block}
.p2g-design-image.portrait{width:96px;height:96px;border-radius:12px}
.p2g-design-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.p2g-design-actions button{padding:10px 13px;border-radius:10px;border:1px solid #6194b7;background:#174773;color:white;font-weight:750;cursor:pointer}
.p2g-design-actions button.reject{border-color:#a96d7e;background:#572b3a}
.p2g-design-actions button:disabled{opacity:.5;cursor:wait}
.p2g-design-status{display:inline-block;padding:4px 9px;border-radius:30px;background:#28415d;color:#d5ecff;font-size:12px}
.p2g-design-dialog{width:min(580px,calc(100vw - 18px));max-height:90dvh;overflow-y:auto;background:linear-gradient(145deg,#14253b,#0a1728);color:#eaf7ff;border:1px solid #7596b5;border-radius:17px;padding:clamp(14px,3vw,24px);box-shadow:0 30px 90px #000b}
.p2g-design-dialog::backdrop{background:#020816d9;backdrop-filter:blur(5px)}
.p2g-design-dialog h2{margin:0 0 9px;font-size:22px}
.p2g-design-dialog p{color:#acc4d8;font-size:13px;line-height:1.55}
.p2g-design-dialog fieldset{border:1px solid #476680;border-radius:12px;padding:12px;margin:12px 0}
.p2g-design-dialog legend{font-weight:800;padding:0 7px}
.p2g-design-dialog label{display:flex;gap:9px;align-items:center;margin:9px 0;font-size:13px;line-height:1.5}
.p2g-design-dialog label:has(input[type=text]),.p2g-design-dialog label:has(input[type=file]){display:block}
.p2g-design-dialog input[type=text],.p2g-design-dialog input[type=file]{width:100%;padding:10px;border:1px solid #537894;border-radius:9px;background:#091b2e;color:white;margin-top:4px;font:inherit}
.p2g-design-dialog input[type=checkbox],.p2g-design-dialog input[type=radio]{accent-color:#65d0ff;flex:none}
.p2g-design-dialog input:disabled{opacity:.45}
.p2g-design-dialog .server-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:3px}
.p2g-design-dialog button{border:1px solid #5e8db3;border-radius:9px;background:#204d7a;color:white;padding:11px 14px;font:700 13px inherit;cursor:pointer}
.p2g-design-dialog button[type=submit]{background:linear-gradient(125deg,#127d98,#3e59b0)}
.p2g-design-dialog .dialog-actions{display:flex;gap:8px;justify-content:end;flex-wrap:wrap}
.p2g-design-dialog .p2g-design-error{color:#ffaab9;min-height:1.3em}
@media(max-width:520px){#profileModal .modal-card{max-height:77dvh!important;padding:12px!important}#profileModal .modal-heading img.avatar{width:80px!important;height:80px!important}#profileModal .detail-card{padding:8px!important}#profileModal .detail-value{font-size:15px!important}.p2g-roster-banner{height:104px}.p2g-design-dialog{padding:14px}}
@media(prefers-reduced-motion:reduce){.p2g-design-dialog,.p2g-roster-banner{animation:none!important}}

body.ui-mobile #profileModal .modal-card{max-height:77dvh!important}
#p2gChatCompose[hidden],#p2gChatTyping[hidden],#p2gReplyPreview[hidden]{display:none!important}
