.profile-modal{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line,#ccd0c2);border-radius:12px;background:#fafaf5;color:#30382d;box-shadow:0 20px 90px #17220d44;overflow:auto}
.profile-modal::backdrop{background:#242b2477}
.profile-modal-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid #d6d9cd;position:sticky;top:0;background:#fafaf5;z-index:1}
.profile-modal-heading h2{font-size:22px;margin:0;overflow-wrap:anywhere}.profile-modal-close{font-size:24px;padding:0 10px}
.profile-modal-body{padding:22px}.profile-modal-body p{font-size:13px;line-height:1.6}.profile-overview{display:flex;gap:22px;align-items:center}.profile-summary{min-width:0;overflow-wrap:anywhere}.profile-summary small{font-size:11px;color:#737a6d}
.profile-picture{width:256px;height:256px;max-width:100%;aspect-ratio:1;object-fit:contain;image-rendering:pixelated;border:1px solid #ccd0c2;border-radius:4px;background:white;flex-shrink:0}
.avatar-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0}.avatar-tools select{padding:8px;font:inherit;border:1px solid #ccd0c2;border-radius:6px;background:#fffefb;max-width:100%}.avatar-tools input[type=color]{width:42px;height:36px;padding:2px;border:1px solid #ccd0c2;cursor:pointer}
.avatar-surface{overflow:auto;max-height:340px;max-width:100%;background:#e5e8dc;border:1px solid #bbc2b0;overscroll-behavior:contain}
.avatar-surface .avatar-canvas{display:block;width:256px;height:256px;max-width:none;image-rendering:pixelated;touch-action:none;background:white;cursor:crosshair}
.avatar-colors{display:grid;grid-template-columns:repeat(auto-fill,minmax(24px,1fr));gap:4px;max-height:108px;overflow:auto;padding:4px}.avatar-colors button{min-height:24px;height:24px;padding:0;border:1px solid #0003;border-radius:3px}.avatar-colors button:hover{outline:2px solid #333;outline-offset:1px}
.avatar-status{min-height:22px}.profile-modal-body h3{margin:0 0 10px}.profile-page-picture{display:block;margin:20px 0}
.profile-edit-link{display:inline-block;padding:10px 14px;border-radius:6px;border:1px solid var(--line,#ccd0c2);text-decoration:none;color:inherit}
.report-dialog textarea{width:100%;display:block;margin:8px 0 16px;font:inherit;padding:10px;border:1px solid #ccd0c2;border-radius:6px;resize:vertical}.report-dialog button{margin:5px 8px 0 0}.report-dialog{width:min(600px,calc(100vw - 24px))}.security-dialog{min-width:min(350px,calc(100vw - 24px))}
.pixel-history-color{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;vertical-align:middle}.pixel-history-swatch{display:inline-block;width:14px;height:14px;flex:0 0 14px;box-sizing:border-box;border:1px solid #0005;border-radius:2px}
.profile-public-details:empty{display:none}.profile-public-details{margin:22px 0}.profile-public-details h3{font-size:16px;margin:18px 0 8px}.profile-bio{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.profile-socials{padding-left:20px;line-height:1.7;overflow-wrap:anywhere}
.profile-total{font-weight:600}#activity{margin:28px 0;scroll-margin-top:20px}.activity-chart{display:block;width:100%;height:auto;touch-action:pan-y}.activity-controls select{font:inherit;padding:8px;border:1px solid #ccd0c2;border-radius:6px;background:white}.activity-status{font-size:13px;overflow-wrap:anywhere}
@media(max-width:560px){.profile-modal-body{padding:16px}.profile-overview{flex-direction:column;align-items:flex-start}.profile-picture{align-self:center}.profile-summary p{margin:5px 0}.avatar-tools{font-size:12px}.avatar-tools button{padding:9px 10px}}

.profile-badges{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}.profile-role-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:600;background:#e4eddf;color:#3e6531;border:1px solid #c0d1b6}.profile-role-badge[data-role=admin]{background:#fff0df;color:#98451f;border-color:#ecc7a6}

/* Player profile: compact identity, distinct actions, and collectible achievements. */
dialog#user-profile-dialog{width:min(660px,calc(100vw - 28px));border-radius:16px;border-color:#d5decc;background:#f6f7f0}#user-profile-dialog .profile-modal-heading{padding:16px 22px;background:#f6f7f0;border-color:#e0e5d7}#user-profile-dialog .profile-modal-heading h2{font-size:16px;letter-spacing:0;color:#59674d}#user-profile-dialog .profile-modal-close{border:0;background:transparent;min-width:36px;min-height:36px}#user-profile-dialog .profile-modal-body{padding:24px}#user-profile-dialog .profile-overview{padding:0 0 18px;gap:20px;align-items:center}#user-profile-dialog .profile-picture{width:120px;height:120px;border-radius:14px;border:1px solid #d5dfc8;box-shadow:0 4px 16px #35472b0c}.profile-eyebrow{display:block;font-size:9px;font-weight:700;letter-spacing:1.4px;color:#7b886e;margin-bottom:7px}#user-profile-dialog h3.profile-display-name{font-size:26px;letter-spacing:-.6px;margin:0 0 10px;line-height:1.2}#user-profile-dialog .profile-summary p{margin:7px 0 3px;font-size:12px;color:#6b795f}#user-profile-dialog .profile-summary small{font-size:10px}.profile-badges{margin:0 0 8px}#user-profile-dialog .avatar-tools{padding:12px 0 18px;margin:0 0 18px;border-bottom:1px solid #dce4d2;gap:8px}#user-profile-dialog .avatar-tools button,#user-profile-dialog .avatar-tools a{font-size:11px;padding:8px 10px;min-height:34px}#user-profile-dialog .avatar-tools .follow-toggle{background:#496737;color:#fff;border-color:#496737}#user-profile-dialog .profile-total{font-size:22px;font-weight:600;letter-spacing:-.5px;margin:0 0 3px}#user-profile-dialog .profile-public-details>a{font-size:11px;color:#637853}#user-profile-dialog .profile-public-details>h3{font-size:13px;margin:22px 0 8px}.earned-badges{margin:24px 0 0}.achievement-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px}.achievement-heading h3{font-size:14px;margin:0!important}.achievement-heading>span{font-size:10px;padding:2px 6px;border-radius:5px;background:#e5ebdb;color:#6c7c56}.earned-badge{display:flex;align-items:center;gap:18px;padding:20px 18px;border:1px solid #dfd7b8;background:linear-gradient(115deg,#f8f2df,#fdfcf5);border-radius:13px;margin:10px 0}.earned-badge>img{width:96px;height:108px;flex-shrink:0;filter:drop-shadow(0 4px 5px #79653320)}.earned-badge-info{min-width:0}.achievement-kicker{font-size:8px;font-weight:700;letter-spacing:1.2px;color:#9a824a}.earned-badge h4{font-size:17px;letter-spacing:-.3px;color:#4c4f30;margin:6px 0 8px}.earned-badge p,#user-profile-dialog .earned-badge p{font-size:12px;line-height:1.6;color:#77795f;margin:0 0 12px}.achievement-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:10px;color:#8a896f}.achievement-meta a{color:#7d713b;text-underline-offset:2px}.profile-bio{white-space:pre-wrap}@media(max-width:500px){#user-profile-dialog .profile-modal-body{padding:18px}#user-profile-dialog .profile-picture{width:88px;height:88px;border-radius:11px}#user-profile-dialog .profile-overview{gap:14px}#user-profile-dialog h3.profile-display-name{font-size:23px}.earned-badge{gap:12px;padding:16px 12px}.earned-badge>img{width:70px;height:79px}.earned-badge h4{font-size:15px}.earned-badge p,#user-profile-dialog .earned-badge p{font-size:11px}.achievement-kicker{font-size:7px}}
#user-profile-dialog .avatar-tools a:not(.primary){color:#617551;text-underline-offset:3px}@media(max-width:500px){#user-profile-dialog .profile-overview{flex-direction:row;align-items:center;text-align:left}#user-profile-dialog .profile-summary{flex:1}}
.community-award{flex-basis:100%;font-size:12px}.community-award summary{cursor:pointer;padding:8px 0}.community-award form{padding:12px;background:#eef2e7;border-radius:8px}.community-award textarea{display:block;width:100%;box-sizing:border-box;font:inherit;resize:vertical;margin:8px 0;padding:8px}.community-award [role=status]{font-size:12px}
.profile-active-guild{margin:16px 0;padding:14px;border:1px solid #dce1d3;border-radius:10px}.profile-active-guild h3{margin:0 0 8px;font-size:13px}.profile-guild-list{display:flex;flex-wrap:wrap;gap:9px}.profile-guild-link{display:inline-flex;align-items:center;gap:9px;color:inherit;text-decoration:none;font-weight:600}.profile-guild-link img{width:40px;height:40px;object-fit:pixelated;border-radius:6px;border:1px solid #ccd2c2}.profile-guild-identity{display:flex;flex-direction:column;gap:2px}.profile-guild-tag{font-size:10px;letter-spacing:.8px;color:#647652}.profile-guild-active{font-size:10px;color:#65705c}.profile-active-guild-form{display:flex;gap:7px;margin-top:10px}.profile-active-guild-form select{flex:1;min-width:0}.profile-guild-error{color:#a43127}
/* Inline activity graph and share footer in the player profile modal. */
#user-profile-dialog .profile-activity{margin-top:18px;padding-top:14px;border-top:1px solid #dce1d3}
#user-profile-dialog .profile-activity h2{font-size:15px;margin:0 0 8px}
#user-profile-dialog .activity-chart{width:100%;height:auto}
.profile-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #dce1d3}
.profile-share input{flex:1;min-width:180px;font:inherit;font-size:13px;padding:7px 9px;border:1px solid #d5d9cd;border-radius:6px;background:#fffefa}
.profile-share-status{flex-basis:100%;margin:0;font-size:12px;color:#4f5f40}
.profile-share-status:empty{display:none}

/* Player profile modal (2026-10-22): hero, stats, cards. Scoped to the modal; the staff tracking page keeps older styles. */
dialog#user-profile-dialog{width:min(720px,calc(100vw - 24px));border-radius:18px;background:#f4f5ee}
#user-profile-dialog .profile-modal-heading{padding:12px 18px;background:#f4f5ee}
#user-profile-dialog .profile-modal-heading h2{font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#7b886e}
#user-profile-dialog .profile-modal-body{padding:18px 20px 22px}
.pp-hero{display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:center;padding:22px;border:1px solid #ecd9c4;border-radius:16px;background:radial-gradient(circle at 0 0,#fff4e4 0,transparent 55%),linear-gradient(135deg,#fffaf2,#eef3e6)}
.pp-avatar{padding:6px;border-radius:18px;background:#fff;box-shadow:0 10px 24px #4a3b2018,0 0 0 1px #e8dccb}
#user-profile-dialog .pp-avatar-image{display:block;width:164px;height:164px;border:0;border-radius:12px;image-rendering:pixelated;background:#fff;box-shadow:none}
.pp-identity{min-width:0}
#user-profile-dialog .pp-identity .profile-eyebrow{margin-bottom:4px}
#user-profile-dialog h3.pp-name{margin:0 0 8px;font-size:32px;font-weight:800;letter-spacing:-.8px;line-height:1.1;color:#2b3324;overflow-wrap:anywhere}
.pp-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
#user-profile-dialog .pp-chip{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2}
#user-profile-dialog .pp-chip-guild{border:1px solid #d3ddc7;background:#f3f7ee;color:#4c5c3f;cursor:pointer;font-family:inherit}
#user-profile-dialog .pp-chip-guild strong{letter-spacing:.8px;color:#3f5a2f}
#user-profile-dialog .pp-chip-guild:hover{background:#e8efdf}
#user-profile-dialog p.pp-joined{margin:0 0 14px;font-size:12px;color:#7a836f}
.pp-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#user-profile-dialog .pp-primary,#user-profile-dialog .pp-actions .follow-toggle{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border:1px solid #c85d31;border-radius:9px;background:#d46c3f;color:#fff;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer}
#user-profile-dialog .pp-actions .follow-toggle[data-following=true]{background:#fff;color:#a84423;border-color:#e3b99f}
#user-profile-dialog .pp-secondary{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:1px solid #d5dccb;border-radius:9px;background:#fffefa;color:#3d4a33;font-size:13px;font-weight:600;text-decoration:none}
#user-profile-dialog .pp-secondary:hover{background:#f1f4ea}
.pp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:10px;margin:14px 0}
.pp-stat{padding:12px 10px;border:1px solid #dfe4d6;border-radius:12px;background:#fffefa;text-align:center}
.pp-stat strong{display:block;font-size:22px;font-weight:800;letter-spacing:-.5px;color:#2b3324;font-variant-numeric:tabular-nums}
.pp-stat span{display:block;margin-top:2px;font-size:11px;font-weight:600;letter-spacing:.3px;color:#7a836f}
.pp-card{margin-top:12px;padding:16px 18px;border:1px solid #dfe4d6;border-radius:14px;background:#fffefa}
.pp-card-heading{display:flex;align-items:center;gap:8px;margin-bottom:10px}
#user-profile-dialog .pp-card-heading h3{margin:0;font-size:13px;font-weight:700;letter-spacing:.4px;color:#4f5d43}
.pp-count{min-width:20px;padding:0 6px;border-radius:999px;background:#eef1e7;color:#5f6b54;font-size:11px;font-weight:700;line-height:20px;text-align:center}
#user-profile-dialog .pp-about .profile-bio{margin:0;font-size:14px;line-height:1.6;color:#33402b}
.pp-socials{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.pp-socials li{padding:3px 10px;border-radius:999px;background:#eef1e7;font-size:12px;color:#4c5940}
.pp-badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.pp-badge{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #e6dcbc;border-radius:12px;background:linear-gradient(120deg,#fbf5e3,#fffdf6)}
.pp-badge>img{flex-shrink:0;width:52px;height:58px;filter:drop-shadow(0 3px 4px #79653322)}
.pp-badge-info{min-width:0}
.pp-badge-kicker{display:block;font-size:9px;font-weight:700;letter-spacing:1px;color:#a07a2e}
#user-profile-dialog .pp-badge h4{margin:0 0 2px;font-size:14px;color:#4c4f30}
#user-profile-dialog .pp-badge .pp-badge-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 3px;font-size:11.5px;line-height:1.4;color:#77795f}
.pp-badge time{font-size:10.5px;color:#8b8c74}
.pp-badge a{margin-left:6px;font-size:10.5px;color:#7b6a2f}
.pp-guild-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
#user-profile-dialog .pp-guild{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:1px solid #dfe4d6;border-radius:10px;background:#f8faf4;font:inherit;text-align:left;color:inherit;cursor:pointer}
#user-profile-dialog .pp-guild:hover{background:#eef3e7;border-color:#cdd8c1}
.pp-guild img{flex-shrink:0;width:40px;height:40px;border-radius:8px;border:1px solid #dfe4d6;image-rendering:pixelated;background:#fff}
.pp-guild-identity{display:grid;min-width:0}
.pp-guild-identity strong{font-size:11px;letter-spacing:1px;color:#5b7148}
.pp-guild-identity span{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.pp-guild-identity small{font-size:10.5px;font-weight:600;color:#c06a3a}
.pp-canvas-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
a.pp-canvas{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px;border:1px solid #dfe4d6;border-radius:10px;background:#f8faf4;color:inherit;text-decoration:none}
a.pp-canvas:hover{background:#eef3e7;border-color:#cdd8c1}
.pp-canvas img{flex-shrink:0;width:48px;height:48px;object-fit:contain;border-radius:6px;border:1px solid #dfe4d6;image-rendering:pixelated;background:#fff}
.pp-canvas-identity{display:grid;min-width:0}
.pp-canvas-identity strong{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.pp-canvas-identity span{font-size:11.5px;color:#6b7563}
.pp-active-guild{margin-top:10px}
#user-profile-dialog .pp-active-guild label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;font-weight:600}
.pp-active-guild select{flex:1;min-width:0;padding:6px 8px;border:1px solid #d5dccb;border-radius:7px;background:#fff;font:inherit}
.pp-active-guild button{margin-top:8px}
.pp-muted{margin:0;font-size:13px;color:#7a836f}
.pp-activity-graph>h2{display:none}
#user-profile-dialog .pp-activity .activity-controls{margin:0 0 6px}
#user-profile-dialog .pp-activity .activity-controls label{font-size:12px;font-weight:600;color:#5f6b54}
#user-profile-dialog .pp-activity .activity-controls select{margin-left:6px;padding:4px 8px;font-size:12px}
#user-profile-dialog .pp-activity .activity-status{margin:4px 0 8px;font-size:12px;color:#5f6b54}
#user-profile-dialog .pp-activity .activity-chart path:not([fill=none]){fill:#d46c3f}
#user-profile-dialog .pp-activity .privacy-notice,#user-profile-dialog .pp-activity p:last-child{font-size:11px;line-height:1.5;color:#8a9180}
.pp-staff{margin-top:12px;padding:10px 14px;border:1px dashed #d6cbb8;border-radius:12px;background:#fdfaf3;font-size:13px}
.pp-staff summary{cursor:pointer;font-weight:700;color:#8a5a2c}
.pp-staff a{display:inline-block;margin:10px 0 0}
.pp-staff textarea{display:block;width:100%;box-sizing:border-box;margin:6px 0;padding:8px;border:1px solid #d5dccb;border-radius:7px;font:inherit}
.pp-footer{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #e0e4d8}
#user-profile-dialog .pp-footer .profile-share{flex:1;margin:0;padding:0;border:0}
#user-profile-dialog .pp-footer .profile-share>button{min-height:36px;padding:0 14px;border:1px solid #d5dccb;border-radius:9px;background:#fffefa;font-weight:600}
#user-profile-dialog .pp-report{min-height:36px;padding:0 4px;border:0;background:none;color:#8a8f80;font-size:12px;text-decoration:underline;cursor:pointer}
#user-profile-dialog .pp-report:hover{color:#a32621}
@media(max-width:560px){
 #user-profile-dialog .profile-modal-body{padding:14px}
 .pp-hero{grid-template-columns:1fr;justify-items:center;gap:14px;padding:18px;text-align:center}
 #user-profile-dialog .pp-avatar-image{width:136px;height:136px}
 .pp-chips,.pp-actions{justify-content:center}
 #user-profile-dialog h3.pp-name{font-size:26px}
 .pp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pp-card{padding:14px}
}
.pp-meta{display:grid;gap:3px;margin:2px 0 14px;font-size:12.5px}
.pp-meta-row{display:flex;gap:8px;align-items:baseline}
.pp-meta dt{flex-shrink:0;min-width:92px;font-weight:600;color:#7a836f}
.pp-meta dd{margin:0;min-width:0;color:#3d4a33;overflow-wrap:anywhere}
.pp-meta a{color:#a84423;font-weight:600;text-decoration:none}
.pp-meta a:hover{text-decoration:underline}
.pp-online-dot{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#3e9b4f;box-shadow:0 0 0 3px #3e9b4f26;vertical-align:1px}
@media(max-width:560px){.pp-meta{justify-items:center}.pp-meta-row{justify-content:center}.pp-meta dt{min-width:0}}
#user-profile-dialog .pp-meta-row{justify-content:flex-start;margin:0}
#user-profile-dialog .pp-meta dt{font-size:12px}
#user-profile-dialog .pp-meta dd{font:inherit;font-size:12.5px;text-align:left}
@media(max-width:560px){#user-profile-dialog .pp-meta-row{justify-content:center}}
/* Header "Online (N)" button and Online now modal (public/online-players.js); same look as the profile modal. */
.online-toggle{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#3e9b4f;box-shadow:0 0 0 3px #3e9b4f26}
.online-toggle-count{min-width:18px;padding:0 6px;border-radius:999px;background:#e8f3e1;color:#3e6531;font-size:11px;font-weight:700;line-height:18px;text-align:center;font-variant-numeric:tabular-nums}
dialog#online-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:1px solid #d5decc;border-radius:18px;background:#f4f5ee;color:#30382d;box-shadow:0 20px 90px #17220d44}
#online-dialog::backdrop{background:#242b2477}
.online-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #e0e5d7;position:sticky;top:0;z-index:1;background:#f4f5ee}
#online-dialog .online-heading h2{margin:0;font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#7b886e}
#online-dialog .online-close{min-width:36px;min-height:36px;padding:0 10px;border:0;background:transparent;font-size:24px;color:inherit;cursor:pointer}
.online-body{padding:16px 20px 20px}
#online-dialog .online-summary{margin:0 0 4px;font-size:13px;color:#5f6b54}
.online-group{margin-top:12px;padding:14px 16px;border:1px solid #dfe4d6;border-radius:14px;background:#fffefa}
.online-group-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13px;font-weight:700;color:#4f5d43}
.online-group-heading a{color:#a84423;text-decoration:none;overflow-wrap:anywhere}
.online-group-heading a:hover{text-decoration:underline}
.online-here{padding:1px 8px;border-radius:999px;background:#fff0df;color:#98451f;font-size:11px;font-weight:600}
.online-count{min-width:20px;margin-left:auto;padding:0 6px;border-radius:999px;background:#eef1e7;color:#5f6b54;font-size:11px;line-height:20px;text-align:center}
.online-players{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.online-players li{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border:1px solid #e6eadf;border-radius:999px;background:#f8faf4;font-size:13px}
#online-dialog .online-name{padding:0;border:0;background:none;color:#2b3324;font:inherit;font-weight:600;cursor:pointer}
#online-dialog .online-name:hover{color:#a84423;text-decoration:underline}

@media(max-width:560px){.online-body{padding:12px 14px 16px}.online-group{padding:12px}}
@media(max-width:560px){.online-toggle .online-label{display:none}.online-toggle{gap:5px}}

/* Staff card: possible linked accounts */
.pp-linked-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.pp-linked-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 8px;border:1px solid #ecd9cf;border-radius:8px;background:#fff8f4}
#user-profile-dialog .pp-linked-name{font:inherit;font-weight:600;color:#9c4426;background:none;border:0;padding:0;cursor:pointer}#user-profile-dialog .pp-linked-name:hover{text-decoration:underline}
.pp-linked-status{font-size:11px;color:#a32621;font-weight:600}.pp-linked-kinds{display:flex;flex-wrap:wrap;gap:4px;margin-left:auto}
.pp-linked-kind{font-size:10.5px;font-weight:600;padding:2px 8px;border:1px solid #e3c4b5;border-radius:999px;background:#fff;color:#7a3a1d}.pp-linked-more{display:inline-block;margin-top:6px;font-size:12px;color:#9c4426}
/* Level and next-achievement progress (gamification 3) */
.pp-chip-level{background:#eef1e6;color:#3e5530;font-weight:700}
.pp-progress-row{display:grid;grid-template-columns:minmax(0,auto) 1fr;align-items:baseline;gap:2px 10px;margin-top:10px;font-size:12px}
.pp-progress-row strong{font-size:13px}.pp-progress-row>span{color:#6a7560;text-align:right;font-variant-numeric:tabular-nums}
.pp-progress-bar{grid-column:1/-1;height:8px;border-radius:4px;background:#eceee5;overflow:hidden}.pp-progress-bar span{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#c8643a,#e3a33a)}

/* Square pixel-art PNG badges (public/badge-art.js) keep their shape and hard edges in the badge slots. */
.earned-badge>img,.pp-badge>img{object-fit:contain}.earned-badge>img[src$=".png"],.pp-badge>img[src$=".png"]{image-rendering:pixelated}
/* Large (512×512) badge art scales down smoothly; nearest-neighbour would drop its thin lines. */
.earned-badge>img[src$="/badge-community-choice.png"],.earned-badge>img[src$="/badge-first-steps.png"],.earned-badge>img[src$="/badge-golden-pixel.png"],.earned-badge>img[src$="/badge-template-finisher.png"],.earned-badge>img[src$="/badge-rainbow-day.png"],.earned-badge>img[src$="/badge-full-spectrum.png"],.pp-badge>img[src$="/badge-community-choice.png"],.pp-badge>img[src$="/badge-first-steps.png"],.pp-badge>img[src$="/badge-golden-pixel.png"],.pp-badge>img[src$="/badge-template-finisher.png"],.pp-badge>img[src$="/badge-rainbow-day.png"],.pp-badge>img[src$="/badge-full-spectrum.png"]{image-rendering:auto}
/* Staff tools → Remove an achievement (admins; public/profile-modal.js removeBadges). */
.badge-remove{flex-basis:100%;font-size:12px}.badge-remove form{display:grid;gap:6px;padding:12px;background:#f6ece6;border-radius:8px}
.badge-remove select,.badge-remove textarea{width:100%;box-sizing:border-box;font:inherit;padding:6px}.badge-remove textarea{resize:vertical}
.badge-remove label{display:flex;gap:6px;align-items:center}.badge-remove button[type=submit]{justify-self:start}.badge-blocks p{margin:6px 0 0}
.pp-note-form textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;font:inherit;font-size:13px;line-height:1.5;padding:8px 10px;border:1px solid #ccd0c2;border-radius:8px;background:#fff;color:#30382d}
.pp-note-row{display:flex;align-items:center;gap:10px;margin-top:8px}.pp-note-count{margin-left:auto}
