.pld-toolbar{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:22px 24px;margin-bottom:20px;scroll-margin-top:24px}.pld-toolbar *{box-sizing:border-box}.pld-toolbar-top{display:flex;align-items:center;justify-content:space-between;gap:18px}.pld-kicker{font-size:10px;letter-spacing:1.6px;color:var(--mut)}.pld-toolbar h2{font-size:24px;line-height:1.3;margin:6px 0;letter-spacing:-.5px}.pld-toolbar p{font-size:12px;line-height:1.7;color:var(--mut);margin:10px 0 16px;max-width:900px}.pld-badge{font-size:11px;padding:5px 9px;border:1px solid var(--line);border-radius:6px;color:var(--mut);white-space:nowrap}.pld-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.pld-toolbar .pgx-btn{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--elev);color:var(--tx);font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;text-align:left}.pld-toolbar .pgx-btn.on,.pld-section-tabs .pgx-btn.on{background:var(--solid-bg,var(--tx));color:var(--solid-tx,var(--card));border-color:var(--solid-bg,var(--tx))}.pld-toolbar .pgx-btn:hover{border-color:var(--mut)}.pld-toolbar button:focus-visible,.pld-section-tabs button:focus-visible{outline:2px solid var(--tx);outline-offset:3px}.pld-options small{display:block;font-size:9px;font-weight:400;opacity:.55;margin-bottom:2px}.pld-mini{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;width:37px;height:32px;flex-shrink:0}.pld-mini i{border:1px solid currentColor;opacity:.6;border-radius:2px}.pld-mini i:first-child{grid-column:1/-1}.pld-mini i:last-child{grid-column:1/-1}.pld-mini-1 i:nth-child(2){grid-column:1/3}.pld-mini-2 i:nth-child(2){grid-column:1/3;grid-row:2/4}.pld-mini-2 i:last-child{grid-column:3}.pld-mini-3 i:first-child{grid-column:1;grid-row:1/4}.pld-mini-3 i:nth-child(n+2){grid-column:2/4}.pld-mini-4 i:nth-child(2){grid-column:1/-1;background:currentColor;opacity:.25}.pld-mini-4 i:nth-child(3){grid-column:1/3}.pld-mini-4 i:last-child{grid-column:3}.pld-mini-5 i:nth-child(2){grid-column:1/3}.pld-mini-5 i:last-child{grid-column:2/4}.pld-toolbar .pld-description{min-height:20px;margin-bottom:10px}.pld-toolbar .backlnk{font-size:12px}
.prof.pld-profile{padding:0;border:0;background:transparent;overflow-wrap:anywhere}.pld-profile .pld-old-features{display:none}.pld-canvas{display:grid;gap:18px;align-items:start}.pld-canvas>[data-block]{min-width:0;margin:0;padding:22px;border:1px solid var(--line);border-radius:8px;background:var(--card);box-sizing:border-box;align-self:start}.pld-profile [hidden]{display:none!important}.pld-canvas>[data-block=profile]{grid-area:profile;align-self:stretch}.pld-canvas>[data-block=teams]{grid-area:teams}.pld-canvas>[data-block=achievements]{grid-area:achievements}.pld-canvas>[data-block=match]{grid-area:match}.pld-canvas>[data-block=history]{grid-area:history}.pld-canvas>[data-block=activity]{grid-area:activity}.pld-profile [data-block=activity]>.pblock{margin-top:0;padding-top:0;border-top:0}.pld-profile .pstats{margin:12px 0 0}.pld-profile .pstat{padding:15px 12px}.pld-profile .pstat .n{font-size:22px}.pld-profile .pm-heading{flex-wrap:wrap;gap:12px}.pld-profile .ph-filters{flex-wrap:wrap}.pld-profile .pm-match .pex{font-size:11px}.pld-profile .pm-match .pt{font-size:12px}.pld-profile .pm-match .pd{font-size:10px}.pld-profile .pm-match .pm-result b{font-size:17px}.pld-profile .pm-match{gap:10px;padding:12px}.pld-profile .ach-demo-host>.ach-demo{border:0;padding:0}.pld-profile .ach-results{max-height:300px}.pld-profile .profile-feature>div{flex:initial}.pld-profile .profile-feature h2{font-size:20px}.pld-profile #mv-grid{grid-template-columns:1fr;width:100%;margin-bottom:0}.pld-profile #mode-previews{margin-bottom:0}.pld-profile .profile-info-card{z-index:95}.pld-section-tabs{display:flex;gap:8px;grid-column:1/-1;flex-wrap:wrap}.pld-profile .pld-section-tabs .pgx-btn{font-size:13px;padding:10px 20px;cursor:pointer}
/* 01: balanced rows. */
.pld-profile[data-layout="1"] .pld-canvas{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"profile profile" "teams achievements" "match match" "history activity"}.pld-profile[data-layout="1"] #mv-grid{grid-template-columns:3fr 2fr}
/* 02: game-first primary column and a right-hand rail. */
.pld-profile[data-layout="2"] .pld-canvas{grid-template-columns:minmax(0,1.5fr) minmax(340px,1fr);grid-template-areas:"profile profile" "match achievements" "history achievements" "history teams" "history activity"}.pld-profile[data-layout="2"] .pstats{grid-template-columns:repeat(2,minmax(0,1fr))}
/* 03: identity rail, community content first. */
.pld-profile[data-layout="3"] .pld-canvas{grid-template-columns:minmax(240px,.55fr) minmax(0,1.45fr);grid-template-areas:"profile activity" "profile teams" "profile achievements" "profile match" "profile history"}.pld-profile[data-layout="3"] [data-block=profile]{flex-direction:column;align-items:center;text-align:center;align-self:start;position:sticky;top:20px;gap:18px}.pld-profile[data-layout="3"] .profile-name-line{justify-content:center}.pld-profile[data-layout="3"] .pmeta h1{font-size:23px}.pld-profile[data-layout="3"] .pmeta .row{justify-content:center;font-size:12px}.pld-profile[data-layout="3"] .profile-edit{align-self:center;margin:0}.pld-profile[data-layout="3"] .profile-info-card{text-align:left;left:50%;transform:translateX(-50%)}.pld-profile[data-layout="3"] #mv-grid{grid-template-columns:3fr 2fr}
/* 04: dedicated section tabs keep the profile short. */
.pld-profile[data-layout="4"] .pld-canvas{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:none}.pld-profile[data-layout="4"] .pld-canvas>[data-block]{grid-area:auto}.pld-profile[data-layout="4"] [data-block=profile],.pld-profile[data-layout="4"] [data-block=match],.pld-profile[data-layout="4"] [data-block=history]{grid-column:1/-1}.pld-profile[data-layout="4"] #mv-grid{grid-template-columns:3fr 2fr}
/* 05: a three-column mosaic with larger achievement space. */
.pld-profile[data-layout="5"] .pld-canvas{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"profile profile profile" "match match activity" "teams achievements achievements" "history history history"}.pld-profile[data-layout="5"] .pstats{grid-template-columns:repeat(2,minmax(0,1fr))}.pld-profile[data-layout="5"] #mv-grid{grid-template-columns:3fr 2fr}
@media(max-width:1000px){.pld-options{grid-template-columns:repeat(3,minmax(0,1fr))}.pld-profile[data-layout="2"] .pld-canvas{grid-template-columns:repeat(2,minmax(0,1fr))}.pld-profile[data-layout="3"] .pld-canvas{grid-template-columns:230px minmax(0,1fr)}.pld-profile[data-layout="5"] .pld-canvas{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"profile profile" "match activity" "teams achievements" "history history"}.pld-profile[data-layout="5"] #mv-grid,.pld-profile[data-layout="3"] #mv-grid{grid-template-columns:1fr}.pld-profile .pld-canvas>[data-block]{padding:16px}}
@media(max-width:760px){.pld-toolbar{padding:18px 14px}.pld-toolbar-top{align-items:flex-start;flex-direction:column;gap:8px}.pld-toolbar h2{font-size:21px}.pld-options{grid-template-columns:repeat(2,minmax(0,1fr))}.pld-options>.pgx-btn:last-child{grid-column:1/-1}.pld-canvas.pld-canvas{grid-template-columns:1fr!important;grid-template-areas:none!important;gap:12px}.pld-profile .pld-canvas>[data-block]{grid-area:auto!important;grid-column:1!important;position:static!important}.pld-profile #mv-grid{grid-template-columns:1fr!important}.pld-profile .phd{display:flex;flex-wrap:wrap}.pld-profile .pmeta{min-width:0;flex:1}.pld-profile .pmeta h1{font-size:22px}.pld-profile .pav{width:64px;height:64px}.pld-profile .profile-avatar-group{max-width:90px}.pld-profile .profile-info-btn{font-size:11px}.pld-profile .profile-edit{font-size:11px;margin-left:0}.pld-profile .ph-filters{width:100%}.pld-profile[data-layout="3"] .pmeta{flex:initial}.pld-profile .pld-section-tabs{gap:6px}.pld-profile .pld-section-tabs .pgx-btn{font-size:12px;padding:8px 12px}.pld-profile .pstats{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Eight additional Player layouts; the original remains variation zero. */
.pld-player-variants{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.pld-player-variants[hidden]{display:none}.pld-player-variants h3{font-size:14px;margin:0 0 12px;font-weight:600}.pld-player-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.pld-player-options .pgx-btn{font-size:12px;padding:10px 12px;gap:10px}.pld-player-options small{font-size:10px;opacity:.55;min-width:23px}.pld-toolbar .pld-player-description{margin-bottom:0}.pld-player-variants:not([hidden])+.pld-description{display:none}
@media(min-width:761px){
.pld-profile[data-layout="2"][data-player-variant="1"] .pld-canvas{grid-template-columns:minmax(0,2fr) minmax(300px,1fr);grid-template-areas:"profile profile" "match achievements" "history achievements" "history teams" "history activity"}
.pld-profile[data-layout="2"][data-player-variant="2"] .pld-canvas{gap:10px;grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);grid-template-areas:"profile profile" "match activity" "history achievements" "history teams"}.pld-profile[data-layout="2"][data-player-variant="2"] .pld-block{padding:14px}.pld-profile[data-layout="2"][data-player-variant="2"] .pm-match{padding:8px 10px}.pld-profile[data-layout="2"][data-player-variant="2"] .ach-results{max-height:250px}
.pld-profile[data-layout="2"][data-player-variant="3"] .pld-canvas{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);grid-template-areas:"profile profile" "match match" "history teams" "history achievements" "activity activity"}.pld-profile[data-layout="2"][data-player-variant="3"] #mv-grid{grid-template-columns:3fr 2fr}.pld-profile[data-layout="2"][data-player-variant="3"] .pstats{grid-template-columns:repeat(4,minmax(0,1fr))}
.pld-profile[data-layout="2"][data-player-variant="4"] .pld-canvas{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"profile profile profile" "match achievements achievements" "teams achievements achievements" "history history history" "activity activity activity"}.pld-profile[data-layout="2"][data-player-variant="4"] .pstats{grid-template-columns:repeat(4,minmax(0,1fr))}
.pld-profile[data-layout="2"][data-player-variant="5"] .pld-canvas{grid-template-columns:minmax(240px,.65fr) minmax(0,1.35fr);grid-template-areas:"profile match" "teams history" "achievements history" "activity history"}.pld-profile[data-layout="2"][data-player-variant="5"] [data-block=profile]{flex-direction:column;align-items:center;text-align:center;gap:14px}.pld-profile[data-layout="2"][data-player-variant="5"] .profile-name-line,.pld-profile[data-layout="2"][data-player-variant="5"] .pmeta .row{justify-content:center}.pld-profile[data-layout="2"][data-player-variant="5"] .pmeta h1{font-size:23px}.pld-profile[data-layout="2"][data-player-variant="5"] .profile-edit{margin:0;align-self:center}.pld-profile[data-layout="2"][data-player-variant="5"] .profile-info-card{text-align:left;left:0;max-width:calc(100vw - 60px)}
.pld-profile[data-layout="2"][data-player-variant="6"] .pld-canvas{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);grid-template-areas:"profile profile" "activity activity" "match achievements" "history achievements" "history teams"}.pld-profile[data-layout="2"][data-player-variant="6"] .pstats{grid-template-columns:repeat(4,minmax(0,1fr))}.pld-profile[data-layout="2"][data-player-variant="6"] [data-block=activity]{padding:16px 22px}
.pld-profile[data-layout="2"][data-player-variant="7"] .pld-canvas{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);grid-template-areas:"profile profile" "match teams" "history achievements" "activity activity"}.pld-profile[data-layout="2"][data-player-variant="7"] .pstats{grid-template-columns:repeat(4,minmax(0,1fr))}
.pld-profile[data-layout="2"][data-player-variant="8"] .pld-canvas{grid-template-columns:minmax(300px,1fr) minmax(0,1.6fr);grid-template-areas:"profile profile" "achievements match" "achievements history" "teams history" "activity activity"}.pld-profile[data-layout="2"][data-player-variant="8"] .pstats{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:761px) and (max-width:1000px){.pld-profile[data-layout="2"][data-player-variant="4"] .pld-canvas{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"profile profile" "match achievements" "teams achievements" "history history" "activity activity"}}
@media(max-width:560px){.pld-player-options{grid-template-columns:repeat(2,minmax(0,1fr))}.pld-player-options>.pgx-btn:first-child{grid-column:1/-1}.pld-player-options .pgx-btn{font-size:11px;padding:9px 8px;gap:7px}}
/* Player 2.3: align the bottoms of Game history and Achievements. */
@media(min-width:761px){
  .pld-profile[data-layout="2"][data-player-variant="3"] .pld-canvas>[data-block=history],
  .pld-profile[data-layout="2"][data-player-variant="3"] .pld-canvas>[data-block=achievements]{align-self:stretch}
  .pld-profile[data-layout="2"][data-player-variant="3"] .pld-canvas>[data-block=history],
  .pld-profile[data-layout="2"][data-player-variant="3"] .pld-canvas>[data-block=achievements],
  .pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo,
  .pld-profile[data-layout="2"][data-player-variant="3"] .ach-board{display:flex;flex-direction:column;min-height:0}
  .pld-profile[data-layout="2"][data-player-variant="3"] #mix-history .pm-pages{margin-top:auto;padding-top:12px}
  .pld-profile[data-layout="2"][data-player-variant="3"] .ach-results{flex:none;min-height:0;max-height:300px;overflow:auto}
}
@media(min-width:761px){
  .pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo,
  .pld-profile[data-layout="2"][data-player-variant="3"] .ach-board{flex:1}
}
/* In Player 2.3 the right column defines history height; card count is measured in JS. */
@media(min-width:761px){
  .pld-profile[data-layout="2"][data-player-variant="3"] .pld-canvas>[data-block=history]{align-self:start;min-height:0;overflow:hidden}
  .pld-profile[data-layout="2"][data-player-variant="3"] .pld-canvas>[data-block=achievements]{align-self:start;display:block}
  .pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo,
  .pld-profile[data-layout="2"][data-player-variant="3"] .ach-board{display:block;flex:none}
  .pld-profile[data-layout="2"][data-player-variant="3"] #mix-history>.plist{flex:1;min-height:0;overflow:hidden}
}
/* Readable match rows; adaptive pagination fits fewer rows when needed. */
.pld-profile #mix-history .ph-adaptive-pages [hidden]{display:none!important}
.pld-profile[data-layout="2"][data-player-variant="3"] #mix-history .pm-match{padding:9px 14px;gap:14px;min-height:80px}
.pld-profile[data-layout="2"][data-player-variant="3"] #mix-history .pm-match>div:first-child{min-width:0}
.pld-profile[data-layout="2"][data-player-variant="3"] #mix-history .pm-match .pt{font-size:16px;line-height:1.35}
.pld-profile[data-layout="2"][data-player-variant="3"] #mix-history .pm-match .pd{font-size:13px;margin-top:4px;line-height:1.4}
.pld-profile[data-layout="2"][data-player-variant="3"] #mix-history .pm-match .pex{font-size:13px;margin-top:4px;line-height:1.4}
.pld-profile[data-layout="2"][data-player-variant="3"] #mix-history .pm-match .pm-result b{font-size:19px;line-height:1.25}
/* Keep achievement rows compact while retaining their descriptions and progress. */
.pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo-host .ach-card-grid{gap:6px}
.pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo-host .ach-card{padding:8px 10px;gap:8px}
.pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo-host .ach-card .ach-icon{width:32px;height:34px}
.pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo-host .ach-card .ach-icon svg{width:19px;height:19px}
.pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo-host .ach-card .ach-condition{margin-top:2px;line-height:1.35}
.pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo-host .ach-card .ach-progress{margin-top:6px}
.pld-profile[data-layout="2"][data-player-variant="3"] .ach-demo-host .ach-card .ach-tiers{margin-top:4px}
