/* Scoped profile editor; does not alter the game or shared account page. */
.psl-profile-dialog{width:min(470px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;margin:auto;padding:20px;border:1px solid #b7985f;border-radius:14px;background:linear-gradient(145deg,#153347,#0c2433 65%);color:#dce8ed;box-shadow:0 20px 80px #000a;font:13px/1.5 system-ui,sans-serif}
.psl-profile-dialog::backdrop{background:#020b16b8;backdrop-filter:blur(4px)}
.psl-profile-dialog button,.psl-profile-dialog select{font:inherit}
.psl-profile-dialog button{cursor:pointer;min-height:36px;border:1px solid #5e7789;border-radius:7px;color:#e5edf0;background:#183b50;padding:7px 12px}
.psl-profile-dialog button:hover{border-color:#d5b277;background:#23485e}
.psl-profile-dialog button:disabled{cursor:wait;opacity:.55}
.psl-profile-dialog :is(button,a,select):focus-visible{outline:2px solid #efd18c;outline-offset:3px}
.psl-edit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #426074}
.psl-edit-head small{font-size:9px;color:#bca376;letter-spacing:1.5px}
.psl-edit-head h2{font:700 23px/1.3 Georgia,serif;margin:3px 0 0;color:#f0d49b}
.psl-profile-dialog #psl-edit-close{width:34px;height:34px;min-height:34px;padding:0;font-size:24px;background:transparent}
.psl-edit-person{display:flex;gap:14px;align-items:center;margin:18px 0}
.psl-edit-person>div:last-child{min-width:0;display:grid;gap:2px}
.psl-edit-person strong{font:700 18px/1.3 Georgia,serif;color:#f1d49a;overflow-wrap:anywhere}
.psl-edit-person span{font-size:11px;color:#9dbccc}
.psl-edit-person a{color:#cbb78c;font-size:11px;margin-top:3px}
.psl-edit-avatar{width:64px;height:64px;border:1px solid #caa76b;border-radius:50%;background:#1f4a60;display:grid;place-items:center;color:#f1d59b;font-size:29px;overflow:hidden;flex:0 0 64px}
.psl-edit-avatar img{width:100%;height:100%;object-fit:cover}
.psl-edit-avatar[data-gender="female"]{background:linear-gradient(135deg,#704e6f,#284359)}
.psl-edit-avatar[data-gender="male"]{background:linear-gradient(135deg,#345f7c,#183b52)}
.psl-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.psl-edit-fields label{display:grid;gap:5px;font-size:12px;color:#bed1dc}
.psl-edit-fields select{width:100%;min-width:0;min-height:40px;padding:8px;border:1px solid #506f82;border-radius:7px;background:#0c2637;color:#e0eaf0;box-sizing:border-box}
.psl-edit-photo{border:1px solid #58644f;border-radius:10px;margin:18px 0 0;padding:13px;background:#24352666}
.psl-edit-photo strong{color:#e6ce96;font-size:13px}
.psl-edit-pro{font:800 9px/1 system-ui;letter-spacing:.5px;padding:3px 5px;background:linear-gradient(135deg,#ffe4a0,#bf8c36);color:#291e0c;border:1px solid #f4d08b;border-radius:4px;margin-left:4px}
.psl-edit-photo p{font-size:11px;color:#b7c8c8;margin:5px 0 12px}
.psl-edit-photo-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.psl-edit-photo-actions a{color:#f1d392;font-size:12px}
.psl-profile-dialog [hidden]{display:none!important}
.psl-profile-dialog #psl-edit-notice{min-height:20px;margin:12px 0;color:#aad7c1;font-size:12px}
.psl-profile-dialog #psl-edit-notice[data-error="true"]{color:#f1b592}
.psl-edit-footer{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #426074;padding-top:14px}
.psl-profile-dialog #psl-edit-save{background:linear-gradient(#efd08d,#cba65f);color:#241e13;border-color:#e6c88b;font-weight:800}
#pisti-reference-lobby .psl-stat[role="button"]{cursor:pointer}
#pisti-reference-lobby .psl-stat[role="button"]:hover{border-color:#d5b277}
#pisti-reference-lobby .psl-stat[role="button"]:focus-visible{outline:2px solid #efd18c;outline-offset:3px}
#pisti-reference-lobby #psl-avatar{overflow:hidden}
#pisti-reference-lobby #psl-avatar img{display:block;width:100%;height:100%;object-fit:cover}
#pisti-reference-lobby #psl-avatar[data-gender="female"]{background:linear-gradient(135deg,#704e6f,#284359)}
#pisti-reference-lobby #psl-avatar[data-gender="male"]{background:linear-gradient(135deg,#345f7c,#183b52)}
@media(max-width:430px){.psl-profile-dialog{padding:14px}.psl-edit-fields{gap:9px}.psl-edit-fields select{font-size:12px}.psl-edit-head h2{font-size:21px}}
