/* Shared community components: scoped to keep booster layout and existing cards stable. */
:root{--community-surface:linear-gradient(145deg,#231728,#130f1b);--community-edge:#df86b92b;--community-accent:#edadd0;--community-muted:#bca8b9;--community-radius:14px}
.community-sheet,.codex-page,.community-clan-panel,.community-profile-nav{font-family:Arial,Helvetica,sans-serif;color:#f5edf3;line-height:1.45}
.community-sheet{width:min(880px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--community-edge);border-radius:var(--community-radius);background:var(--community-surface);overflow:auto;box-sizing:border-box}
.community-sheet-heading,.community-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.community-sheet-heading h2,.community-section-heading h2{font-size:22px;line-height:1.2;margin:0}
.community-sheet h3{font-size:15px;margin:0 0 8px}.community-muted{color:var(--community-muted);font-size:12px;line-height:1.6}
.community-tabs{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:16px 0 24px;border-bottom:1px solid var(--community-edge);padding:0 0 8px}
.community-tabs .game-button{min-height:40px;padding:8px 18px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--community-muted);font-size:13px;font-weight:600;letter-spacing:0;box-shadow:none}
.community-tabs [aria-selected=true]{color:#ffe2f3;border-color:#e995c048;background:#e995c00c}
.community-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.community-actions .game-button{width:auto;font-size:12px;min-height:40px;letter-spacing:0}
.community-sheet :is(input,select,textarea),.codex-controls :is(input,select),.community-category-select{font:inherit;font-size:14px;color:#f4eaf1;background:#17131f;border:1px solid #d998bd38;border-radius:9px;min-height:42px;padding:9px 12px;max-width:100%;box-sizing:border-box}
.community-sheet option,.codex-controls option,.community-category-select option{background:#211827;color:#f4eaf1}
.community-sheet label{display:grid;gap:7px;font-size:13px;margin:10px 0}.community-sheet input[type=checkbox]{min-height:18px}
.community-sheet a,.community-text-link{color:var(--community-accent);text-decoration:none}.community-sheet a:hover,.community-text-link:hover{text-decoration:underline}
.community-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.community-checklist label,.community-check{display:flex;align-items:center;gap:10px;font-size:13px;min-height:40px}.community-checklist input,.community-check input{accent-color:#e99fc7;width:18px;height:18px;flex:none}
.community-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12px}.community-presence{display:inline-flex;gap:5px;align-items:center;color:#baacb8}.community-presence.is-online{color:#9edeb6}.community-presence.is-online:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.community-presence.is-private{padding:0 6px;border:1px solid var(--community-edge);border-radius:5px}
.community-clan-link{display:inline-flex;align-items:center;gap:6px;padding:3px 0;border:0;background:none;color:var(--community-accent);font:inherit;cursor:pointer}.community-clan-link img{width:20px;height:20px;object-fit:contain}
.community-profile-nav{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 20px}.community-profile-nav a{font-size:12px;color:var(--community-muted);padding:8px 12px;border:1px solid var(--community-edge);border-radius:8px;text-decoration:none}.community-profile-nav a:hover{color:var(--community-accent);background:#e995c009}
.profile-content-group{scroll-margin-top:18px;margin:0 0 24px}.profile-content-group>h2{font-size:15px;letter-spacing:.02em;color:#ebc9de;margin:0 0 12px}.profile-content-group>.profile-panel{margin-bottom:12px}.account-profile-page .profile-page{max-width:1180px;margin-inline:auto}.account-profile-page .profile-header{border-bottom:1px solid var(--community-edge)}
.codex-profile-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.codex-earned-badge{display:inline-flex;gap:5px;align-items:center;border:1px solid #d6b16c50;border-radius:7px;padding:4px 8px;background:#d6b16c08;color:#e8c895;font-size:11px;text-decoration:none}.codex-earned-badge:before{content:'\2727'}
.codex-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0 20px}.codex-controls input[type=search]{flex:1 1 260px;min-width:0}.codex-controls select{flex:0 1 180px}
.codex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr));gap:16px}.codex-tile{min-width:0;border:1px solid var(--community-edge);border-radius:var(--community-radius);background:var(--community-surface);overflow:hidden;transition:border-color .16s,transform .16s}.codex-tile:hover{border-color:#e995c065;transform:translateY(-2px)}
.codex-open{display:block;text-align:left;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}.codex-cover{aspect-ratio:16/9;background:#19131f;overflow:hidden;position:relative}.codex-cover img{width:100%;height:100%;object-fit:cover;object-position:50% 28%;display:block}.codex-cover.is-placeholder:after{content:'\2727';position:absolute;inset:0;display:grid;place-items:center;color:#d3a3c185;font-size:40px;background:radial-gradient(ellipse at center,#d3a3c10c,transparent 70%)}
.codex-tile-body{padding:16px}.codex-tile-heading{min-height:61px}.codex-tile h3{font-size:16px;line-height:1.3;margin:0 0 4px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.codex-count{font-size:12px;font-variant-numeric:tabular-nums;color:#dacbd6;margin:10px 0}.codex-tile-status{font-size:11px;display:block;margin-top:12px;color:#baa7b5}.codex-tile-status.is-ready{color:#f3bfdb}
.codex-progress{height:5px;background:#ffffff0b;border-radius:4px;position:relative;margin:14px 5px 17px 0}.codex-progress-fill{position:absolute;left:0;top:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a2568c,#e9a4cf);transition:width .18s}.codex-progress-mark{position:absolute;top:50%;transform:translate(-50%,-50%);width:11px;height:11px;border:1px solid #70526a;border-radius:50%;background:#251c2a;color:#1c121c;display:grid;place-items:center;font-size:9px;font-weight:bold}.codex-progress-mark.is-claimed{background:#e6b3d2;border-color:#e6b3d2}.codex-progress-mark.is-ready{border-color:#f4cee5;box-shadow:0 0 0 3px #edadd018}
.codex-detail-count{font-size:15px;font-variant-numeric:tabular-nums;margin:12px 0}.codex-rewards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.codex-reward{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;border:1px solid var(--community-edge);border-radius:12px;background:var(--community-surface);padding:16px}.codex-reward>strong{font-size:20px;font-variant-numeric:tabular-nums}.codex-reward>small{font-size:11px;color:var(--community-muted);line-height:1.5}.codex-reward .game-button{margin-top:auto;width:100%;min-height:40px;padding:8px;font-size:11px;white-space:normal;letter-spacing:0}.codex-reward.is-claimed{border-color:#c4b2c33b}.codex-reward.is-ready{border-color:#edaad17a}.codex-reward.is-completion{background:linear-gradient(145deg,#30232b,#19131d);border-color:#d7b57b60}
.codex-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,125px),1fr));gap:12px;margin:16px 0}.codex-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:7px;background:#17131d;border:1px solid var(--community-edge);border-radius:10px;color:#f2e8f0;cursor:pointer;font:inherit;text-align:left}.codex-card img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:6px}.codex-card strong{font-size:12px;overflow-wrap:anywhere}.codex-card>span{font-size:11px}.codex-card.is-missing{border-style:dashed}.codex-card.is-owned{border-color:#b6c8b44d}
.community-clan-banner{width:100%;aspect-ratio:4/1;max-height:240px;object-fit:cover;border-radius:12px;margin:0 0 16px}.community-clan-crest{width:72px;height:72px;border-radius:12px;object-fit:cover;margin-right:12px}.community-clan-panel{border:1px solid var(--community-edge);border-radius:14px;background:var(--community-surface);padding:20px;margin:16px 0}.community-clan-panel h2{font-size:18px;margin:0 0 12px}.community-art-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.community-art-slot{min-width:0}.community-art-slot img{width:100%;max-height:130px;object-fit:contain;background:#17121d;border-radius:9px}.community-art-slot input{width:100%;font-size:12px}.community-art-slot .game-button{min-height:38px;padding:7px 12px;font-size:11px}
.contribution-list{display:grid;gap:8px;margin:16px 0}.contribution-row{border:1px solid var(--community-edge);border-radius:10px;padding:12px 14px;background:#ffffff02}.contribution-row>summary{display:grid;grid-template-columns:minmax(120px,1.5fr) repeat(3,minmax(80px,1fr));gap:12px;align-items:center;cursor:pointer;font-size:12px;list-style:none}.contribution-row strong{font-size:13px}.contribution-row small{display:block;color:var(--community-muted);font-size:11px}.contribution-row>p{margin-top:12px;font-size:12px;color:var(--community-muted)}
.community-pvp-category{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}.community-pvp-category label{font-size:12px;color:var(--community-muted)}.community-category-select{min-width:180px}.codex-admin-list{display:grid;gap:8px;max-height:50dvh;overflow:auto}.codex-admin-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--community-edge);border-radius:10px;padding:12px}.codex-admin-row strong{font-size:13px}.codex-admin-row small{display:block;font-size:11px;color:var(--community-muted)}
.global-chat-panel .global-chat-message{padding:5px 8px;margin-bottom:3px}.global-chat-panel .global-chat-text{font-size:12px;line-height:1.35;margin:2px 0}.global-chat-panel .global-chat-meta{gap:6px;font-size:10px;min-height:22px}.global-chat-panel .global-chat-message-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:0}.global-chat-panel .global-chat-message-action{font-size:10px;min-height:24px;letter-spacing:0}.chat-like{font:inherit;font-size:11px;border:0;background:none;color:#baa6b7;padding:2px 4px;min-height:22px;cursor:pointer}.chat-like.is-liked{color:#f0a6cd}.chat-quote{display:block;text-align:left;width:100%;max-width:100%;font:inherit;font-size:11px;color:#c9a9c0;background:#edadd007;border:0;border-left:2px solid #b16d9b;border-radius:4px;padding:3px 6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;margin:4px 0}.chat-reply-strip{display:flex;align-items:center;gap:8px;border-left:2px solid #c783ad;background:#edadd007;padding:5px 8px;border-radius:5px;font-size:11px;color:#d5bad0}.chat-reply-strip>span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-reply-strip button{border:0;background:none;color:inherit;min-width:30px;min-height:30px;cursor:pointer}.chat-mention-list{display:grid;max-height:180px;overflow:auto;background:#211827;border:1px solid var(--community-edge);border-radius:9px}.chat-mention-list button{color:#f2dcec;background:none;border:0;text-align:left;padding:9px 12px;font-size:12px;cursor:pointer}.chat-mention-list button:hover,.chat-mention-list button:focus{background:#edadd015}.chat-mentions{display:flex;gap:4px;flex-wrap:wrap;font-size:10px;color:#e4a4cd}.chat-highlight{outline:1px solid #e8a2cf;outline-offset:2px}.chat-social-list{display:grid;gap:8px}.chat-social-row{border:1px solid var(--community-edge);border-radius:10px;padding:12px}.chat-social-row p{font-size:12px;margin:4px 0;color:var(--community-muted)}
.global-chat-panel .global-chat-message{position:relative}.global-chat-panel .global-chat-meta .chat-like{margin-left:auto}.chat-action-menu{border:0;background:none;color:#c9adc1;font-size:18px;line-height:1;padding:0 4px;min-width:26px;min-height:24px;cursor:pointer}.global-chat-panel .global-chat-message-actions{position:absolute;z-index:2;right:6px;top:calc(100% - 4px);display:none;border:1px solid var(--community-edge);border-radius:8px;background:#251a2b;padding:3px 6px;box-shadow:0 4px 12px #0005;max-width:calc(100% - 12px)}.global-chat-message.actions-open .global-chat-message-actions{display:flex}.chat-mention-list [aria-selected=true]{background:#edadd018}
.community-sheet :focus-visible,.codex-page :focus-visible,.community-tabs :focus-visible,.global-chat-panel :focus-visible{outline:2px solid #edadd0;outline-offset:3px}
@media(max-width:850px){.codex-rewards{grid-template-columns:repeat(2,minmax(0,1fr))}.contribution-row>summary{grid-template-columns:repeat(2,minmax(0,1fr))}.community-art-grid{grid-template-columns:1fr}.community-art-slot{border-bottom:1px solid var(--community-edge);padding-bottom:12px}}
@media(max-width:480px){.community-sheet{padding:16px}.community-sheet-heading h2,.community-section-heading h2{font-size:19px}.community-checklist{grid-template-columns:1fr}.codex-grid{grid-template-columns:1fr}.codex-cover{max-height:180px}.codex-tile-heading{min-height:0}.codex-reward{padding:12px;gap:8px}.codex-reward>strong{font-size:18px}.codex-controls select{flex:1 1 120px;min-width:0}.codex-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-clan-panel{padding:14px}.community-actions .game-button{min-height:42px}.global-chat-panel .global-chat-message-action{min-height:30px}.community-profile-nav a{padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.codex-tile,.codex-progress-fill{transition:none}.codex-tile:hover{transform:none}}
.codex-page[hidden],.chat-reply-strip[hidden],.chat-mention-list[hidden],.global-chat-toggle[hidden],.codex-page [hidden],.community-sheet [hidden]{display:none}

.codex-page>.game-button:first-child{margin-bottom:16px}.community-art-slot select{width:100%;font-size:12px}

@media(min-width:850px){.profile-content-group:not(#profile-settings){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.profile-content-group:not(#profile-settings)>h2{grid-column:1 / -1}.profile-content-group>.profile-panel{min-width:0;margin-bottom:0}}
.codex-just-claimed{animation:codex-claim .6s ease-out}@keyframes codex-claim{from{box-shadow:0 0 0 4px #edaad145}to{box-shadow:0 0 0 0 #edaad100}}@media(prefers-reduced-motion:reduce){.codex-just-claimed{animation:none}}

.global-chat-text .chat-mention{display:inline;padding:0;border:0;background:transparent;color:var(--community-accent,#f7a2ca);font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;text-decoration-color:#f7a2ca55;text-underline-offset:2px}.global-chat-text .chat-mention:focus-visible{outline:2px solid #f7a2ca;outline-offset:2px;border-radius:3px}

.codex-rarity-breakdown{display:flex;flex-wrap:wrap;gap:6px 14px;margin:16px 0;font-size:12px;color:var(--community-muted)}

.codex-controls select{white-space:nowrap;min-width:min(100%,210px);text-overflow:ellipsis;flex-basis:210px}.clan-community-banner{width:100%;aspect-ratio:4/1;object-fit:cover;border-radius:12px;margin-bottom:12px}.clan-community-avatar{width:72px;height:72px;object-fit:cover;border-radius:12px}.community-art-slot img[hidden]{display:none}

.chat-social-row{padding:14px;border:1px solid #edadd04d;border-radius:12px;background:#e995c009;margin:10px 0}.chat-social-row>strong{color:#f2c5de}.chat-social-row>p{font-size:13px;overflow-wrap:anywhere}.chat-social-row .community-actions{margin-bottom:0}

.community-sheet label.community-check{display:flex;align-items:flex-start;gap:10px}.community-sheet input[type=checkbox]{padding:0;width:18px;height:18px;min-height:18px;flex:none;accent-color:var(--community-accent)}.community-art-slot input::file-selector-button{border:1px solid #edadd03b;border-radius:6px;padding:6px 9px;margin-right:8px;background:#352336;color:#f1d6e7;font:inherit;cursor:pointer}

.community-sheet>select{width:100%;margin:8px 0}.community-sheet>p.community-muted{margin-bottom:10px}

.global-chat-panel .global-chat-message-actions .global-chat-message-action{padding:4px 6px;min-height:26px;line-height:1.2}.global-chat-panel .global-chat-username{font-size:11px}.global-chat-panel .global-chat-message-actions{gap:2px}.global-chat-panel .global-chat-meta time{font-size:10px}

/* Symmetric compact bubbles; menus never extend below the latest message. */
.global-chat-panel .global-chat-message{margin:0 0 3px;padding:5px 8px;min-height:0}
.global-chat-panel .global-chat-meta{margin:0 0 2px;padding:0;min-height:20px;line-height:1.2;align-items:center}
.global-chat-panel .global-chat-text{margin:0;padding:0;line-height:1.35}
.global-chat-panel .chat-action-menu,.global-chat-panel .chat-like{min-height:20px}
.global-chat-message.actions-up .global-chat-message-actions{top:auto;bottom:calc(100% - 4px)}
.global-chat-message.actions-overlay .global-chat-message-actions{top:0;bottom:auto}
.codex-card.is-missing{cursor:default;box-shadow:none}.codex-card.is-missing img{filter:none;opacity:1}
.collection-header.collection-header-with-tabs{display:flex;flex-direction:row;align-items:center;gap:16px}.collection-header-info{display:flex;align-items:center;flex-wrap:wrap;gap:6px 24px;min-width:0;flex:1}.collection-header-info .collection-heading-image{flex:0 1 260px;min-width:0}.collection-header-info p{text-align:left}.collection-header-with-tabs>.community-tabs{margin:0;padding:4px;border:1px solid var(--community-edge);border-radius:11px;flex:none;flex-wrap:nowrap;background:#17101cb3}.collection-header-with-tabs .community-tabs .game-button{padding:8px 14px}
.codex-ownership-filters{display:flex;align-items:center;gap:16px;max-width:100%;flex-wrap:nowrap}.codex-ownership-filters .community-check{white-space:nowrap}
.codex-cover img{opacity:0;transition:opacity .15s ease}.codex-cover img.is-loaded{opacity:1}@media(prefers-reduced-motion:reduce){.codex-cover img{transition:none}}
.public-player-view>.profile-panel{margin-top:16px}.public-player-achievements>.season-honors{margin:14px 0 0;border:1px solid var(--community-edge);border-radius:10px;overflow:hidden}.public-player-achievements>.season-honors>summary{padding:12px;min-height:42px;box-sizing:border-box}.public-player-achievements>.season-honors>p{margin:0;padding:0 12px 12px}.public-player-achievements>.codex-profile-badges{margin:0}
.profile-identity-layout{min-width:0;flex:1}.profile-name-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}.profile-name-line h1{margin:0;min-width:0;overflow-wrap:anywhere}.profile-name-line>.community-clan-link{font-size:12px;max-width:100%;overflow-wrap:anywhere}.profile-status-line,.profile-title-line,.profile-badge-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin-top:8px}.profile-title-line:empty,.profile-badge-line:empty{display:none}.profile-status-line :is(.player-membership-badge,.admin-badge,.profile-player-level){margin:0}.profile-title-line :is(.divine-title,.season-public-title){margin:0;font-size:13px;line-height:1.4}.profile-badge-line>.codex-profile-badges{display:contents}.profile-badge-line :is(.prestige-title,.ultimate-profile-title,.codex-earned-badge){display:inline-flex;align-items:center;width:auto;max-width:100%;margin:0;padding:3px 8px;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.profile-achievement-trigger{cursor:pointer}.profile-achievement-trigger:focus-visible{outline:2px solid var(--community-accent);outline-offset:3px;border-radius:5px}.profile-badge-line .profile-achievement-trigger:hover{filter:brightness(1.15)}.achievement-explanation{width:min(440px,calc(100vw - 24px))}.achievement-explanation-text{font-size:14px;line-height:1.65;margin:0 0 12px;overflow-wrap:anywhere}.profile-content-group#profile-settings{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:4px;margin-bottom:24px}.profile-content-group#profile-settings>h2{margin:0}.profile-content-group#profile-settings>.profile-panel{margin:0}
.profile-badge-line .season-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px;min-width:24px;min-height:24px;box-sizing:border-box}
.profile-name-line>.community-clan-link{display:inline-flex;flex-direction:row;align-items:center;gap:6px}.profile-name-line>.community-clan-link>img,.community-clan-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;object-fit:contain}
/* Compact profile dialogs share the existing muted rose surfaces and controls. */
dialog.compact-profile-popup{width:min(420px,calc(100vw - 24px));padding:16px;border:1px solid #d88fb13d;border-radius:12px;background:linear-gradient(145deg,#24192a,#141019);color:#f1e5ed;box-shadow:0 16px 56px #0008;max-height:calc(100dvh - 24px)}
dialog.compact-profile-popup::backdrop{background:#08060cb3;backdrop-filter:blur(3px)}
.compact-profile-popup>.community-sheet-heading{gap:12px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #df86b923;align-items:center}.compact-profile-popup>.community-sheet-heading h2{font-size:15px;line-height:1.35;font-weight:700;letter-spacing:0;overflow-wrap:anywhere;min-width:0}.compact-profile-popup .game-button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;width:auto;max-width:100%;padding:6px 10px;border:1px solid #df86b931;border-radius:7px;background:#ffffff05;color:#e5cedd;font:600 11px/1.3 Arial,Helvetica,sans-serif;letter-spacing:0;box-shadow:none;text-decoration:none}.compact-profile-popup .game-button:hover{background:#df86b911;border-color:#df86b958;text-decoration:none}.compact-profile-popup>.community-sheet-heading>.game-button{flex:none;margin:0}.compact-profile-popup .achievement-explanation-text{margin:0;color:#cdbac8;font-size:13px;line-height:1.65}.compact-popup-actions{display:flex;justify-content:flex-end;margin-top:12px;padding-top:10px;border-top:1px solid #df86b91c}
dialog.clan-preview-popup{width:min(520px,calc(100vw - 24px))}.clan-preview-popup>.community-clan-banner{display:block;width:100%;height:92px;object-fit:cover;border-radius:8px;margin:0 0 12px}.clan-preview-identity{display:flex;align-items:center;gap:10px;margin:0 0 12px}.clan-preview-identity>div{min-width:0;flex:1}.clan-preview-identity .community-clan-crest{width:42px;height:42px;object-fit:cover;border-radius:9px;flex:none}.clan-preview-emblem{width:24px;height:24px;object-fit:contain;flex:none}.clan-preview-identity h2{font-size:17px;line-height:1.3;margin:0 0 3px;overflow-wrap:anywhere}.clan-preview-identity p{margin:0;font-size:11px;line-height:1.5}.clan-preview-description{margin:0 0 14px;padding:10px 12px;border:1px solid #df86b91c;border-radius:8px;background:#ffffff03;color:#cdbac8;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.clan-preview-popup .clan-preview-members-heading{margin:0 0 7px;color:#c4aaba;font-size:11px;line-height:1.4;font-weight:600;letter-spacing:.03em}.clan-preview-members{display:grid;gap:5px;max-height:240px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#80536b transparent}.clan-preview-member{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:7px 10px;border:1px solid #df86b91c;border-radius:7px;background:#ffffff03;color:#e5d4df;font:12px/1.4 Arial,Helvetica,sans-serif;text-align:left;cursor:pointer}.clan-preview-member>span{min-width:0;overflow-wrap:anywhere}.clan-preview-member>small{flex:none;font-size:10px;color:#bb9eb0;text-transform:capitalize}.clan-preview-member:hover{background:#df86b90c;border-color:#df86b93b}.compact-profile-popup :focus-visible{outline:2px solid #edadd0;outline-offset:2px}
@media(max-width:480px){dialog.compact-profile-popup{padding:14px}.clan-preview-popup>.community-clan-banner{height:78px}.clan-preview-members{max-height:210px}}
/* Keep both headings in their original row while the active body spans the page. */
@media(min-width:850px){
 .profile-content-group:not(#profile-settings)>details.profile-fold{grid-row:var(--profile-fold-row);grid-column:var(--profile-fold-col);align-self:start;position:relative;z-index:2}
 .profile-content-group:not(#profile-settings)>details.profile-fold[open]{grid-column:1/-1;z-index:1}
 .profile-content-group:not(#profile-settings)>details.profile-fold[open]>summary{width:calc((100% - 14px)/2);margin-inline:0}
 .profile-content-group:not(#profile-settings)>details.profile-fold[open][data-profile-side=right]>summary{margin-inline-start:auto}
}
@media(max-width:650px){.collection-header.collection-header-with-tabs{gap:10px;align-items:flex-start}.collection-header-info{display:grid;gap:6px}.collection-header-info .collection-heading-image img{width:100%;height:auto;max-height:40px;object-position:left}.collection-header-with-tabs .community-tabs{gap:2px;padding:2px}.collection-header-with-tabs .community-tabs .game-button{padding:6px 9px;min-height:36px;font-size:12px}.collection-header-info p{font-size:12px;line-height:1.4}}

/* Quiet category controls beside context, rather than a separate filter row. */
.ranking-context{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 12px;min-width:0}.ranking-context:has(>.ranking-description[hidden]):has(>select[hidden]){display:none}.ranking-context>.ranking-description{margin:0;flex:1;min-width:0}.ranking-context>.community-category-select,.pvp-category-label>.community-category-select{width:142px;min-width:0;min-height:30px;height:30px;padding:4px 25px 4px 9px;border-radius:7px;border-color:#d998bd2b;background-color:#19121f;color:#cdb8ca;font:12px/1.4 Arial,Helvetica,sans-serif;box-shadow:none;flex:none}.ranking-context>.community-category-select[hidden]{display:none}.ranking-context>.community-category-select:focus-visible,.pvp-category-label>.community-category-select:focus-visible{outline:2px solid #edadd0;outline-offset:2px}.ranking-context>.community-category-select:hover,.pvp-category-label>.community-category-select:hover{border-color:#d998bd66}
@media(max-width:480px){.ranking-context{align-items:flex-start;gap:10px}.ranking-context>.community-category-select{width:124px;font-size:11px}.ranking-context>.ranking-description{font-size:10px}}

/* Override the global base-select padding so these controls remain 30px high. */
body :is(#pvp-panel,.ranking-panel) .community-category-select{padding:4px 9px!important;gap:8px;font-size:12px!important;min-height:30px!important;height:30px!important}body .ranking-context>.community-category-select::picker-icon,body .pvp-category-label>.community-category-select::picker-icon{font-size:9px}

/* Category dropdowns inherit the same pink border, surface, halo and menu as other sorts. */
.deck-page .community-pvp-category{margin-bottom:16px}.deck-page .community-pvp-category>label{display:flex;align-items:center;gap:10px;max-width:100%;min-width:0}.deck-page .community-pvp-category .community-category-select{min-width:180px;max-width:100%;flex:0 1 auto}
@media(max-width:480px){.deck-page .community-pvp-category>label{flex-wrap:wrap;gap:8px}.deck-page .community-pvp-category .community-category-select{min-width:0}}

/* Translation is a link; give it the same centered action box as menu buttons. */
.global-chat-panel .global-chat-message-actions>.global-chat-message-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:26px;min-height:26px;margin:0;padding:4px 6px;line-height:1.2;vertical-align:middle;text-decoration:none}
