/* DYNASTY PLAYER CHRONICLE — profile-specific visual system */
.profile-page{max-width:1380px!important;padding-top:26px!important;padding-bottom:64px!important;color:#f0eee8}
.profile-page .profile-hero{
 position:relative;isolation:isolate;display:flex;align-items:stretch;min-height:330px;
 overflow:hidden;border:1px solid rgba(219,187,126,.34)!important;border-radius:24px!important;
 background-color:#101725!important;background-position:center!important;background-size:cover!important;
 box-shadow:0 24px 65px #0008,inset 0 1px #ffffff0b!important;
}
.profile-page .profile-hero:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(7,10,17,.96) 0%,rgba(8,12,21,.86) 42%,rgba(8,12,21,.38) 100%),linear-gradient(0deg,rgba(5,8,15,.48),transparent 55%);pointer-events:none}
.profile-page .profile-hero-cover{position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 82% 18%,#d9b57422,transparent 34%);pointer-events:none}
.profile-page .profile-hero-content{display:grid;grid-template-columns:150px minmax(0,1fr) 220px;align-items:center;gap:26px;width:100%;padding:48px 36px 34px}
.profile-page .profile-avatar-shell{width:142px;height:142px;min-width:142px;border-radius:50%;padding:6px;background:linear-gradient(145deg,#f3d59a,#8b5ac6 52%,#56c8e7);box-shadow:0 0 0 7px #d9b57412,0 0 35px #a36de65c,0 18px 36px #0009}
.profile-page .profile-avatar-shell>img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:4px solid #0b101b}
.profile-page .profile-identity{min-width:0}
.profile-page .profile-eyebrow,.profile-page .profile-reputation-kicker{color:#d7b87e!important;font-size:.67rem;font-weight:850;letter-spacing:.2em}
.profile-page .profile-presence{display:inline-flex;align-items:center;gap:7px;margin:12px 0 4px;padding:6px 11px;border:1px solid #69d99a44;border-radius:999px;background:#1b8b5120;color:#a7e9c0;font-size:.72rem;font-weight:750}
.profile-page .profile-presence:before{content:"";width:7px;height:7px;border-radius:50%;background:#69d99a;box-shadow:0 0 12px #69d99a}
.profile-page .profile-presence.is-offline{border-color:#9aa4b533;background:#8a94a014;color:#b7bfcb}
.profile-page .profile-presence.is-offline:before{background:#8d98a8;box-shadow:none}
.profile-page .profile-identity h1{margin:4px 0 12px!important;color:#fff!important;font-size:clamp(2.3rem,5vw,3.65rem)!important;font-weight:850!important;letter-spacing:-.055em;line-height:1.02}
.profile-page .profile-badges{display:flex;flex-wrap:wrap;gap:8px}
.profile-page .profile-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid #ffffff20;border-radius:999px;background:#0d1422b8;color:#e9e3d8;font-size:.73rem;font-weight:750}
.profile-page .profile-pill.gold{border-color:#d9b57466;background:#d9b57418;color:#f3d49a}
.profile-page .profile-pill.violet,.profile-page .profile-pill.purple{border-color:#ad80e766;background:#8053b51c;color:#d8b8ff}
.profile-page .profile-status{margin:18px 0 12px;color:#d1d5df;font-size:.95rem}
.profile-page .profile-style-label{display:inline-flex;margin:4px 8px 0 0;color:#e8d2a5;font-size:.76rem;font-weight:700}
.profile-page .profile-edit-trigger,.profile-page .profile-identity>.btn,.profile-page .profile-identity .btn-store-sanctuary{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin:8px 7px 0 0!important;padding:10px 14px!important;
 border:1px solid #d9b57466!important;border-radius:11px!important;background:linear-gradient(130deg,#d9b57427,#d9b57408)!important;color:#f2d49d!important;
 font-size:.77rem;font-weight:800;text-decoration:none;box-shadow:0 8px 22px #0003;transition:transform .18s,border-color .18s,background .18s
}
.profile-page .profile-edit-trigger:hover,.profile-page .profile-identity>.btn:hover,.profile-page .profile-identity .btn-store-sanctuary:hover{transform:translateY(-2px);border-color:#f0d39a!important;background:#d9b57432!important}
.profile-page .profile-level-card{align-self:center;display:flex;flex-direction:column;gap:7px;padding:19px 17px;border:1px solid #d9b57466;border-radius:17px;background:linear-gradient(145deg,#111a2acc,#0b111dcc);text-align:center;box-shadow:0 15px 35px #0005}
.profile-page .profile-level-card>span{color:#aab4c5;font-size:.62rem;font-weight:800;letter-spacing:.12em}
.profile-page .profile-level-card strong{color:#f2d59d;font-size:1.25rem}
.profile-page .profile-level-card small{color:#aeb8c8;font-size:.7rem}
.profile-page .profile-authority-banner{z-index:2;border:1px solid #e5c17a99!important;border-radius:0 0 0 13px!important;background:linear-gradient(120deg,#a9782c,#5d411c)!important;color:#fff1cf!important;letter-spacing:.07em}
.profile-page .profile-quick-nav{position:sticky;top:76px;z-index:12;display:flex;gap:6px;overflow-x:auto;margin:0 0 22px;padding:9px;border:1px solid rgba(219,187,126,.18);border-radius:15px;background:rgba(12,17,28,.91);backdrop-filter:blur(16px);box-shadow:0 12px 30px #0004;scrollbar-width:thin}
.profile-page .profile-quick-nav a{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:9px 12px;border:1px solid transparent;border-radius:10px;color:#b9c2d0;font-size:.76rem;font-weight:750;text-decoration:none;transition:.18s}
.profile-page .profile-quick-nav a span{color:#e0c187;font-size:1rem}
.profile-page .profile-quick-nav a:hover,.profile-page .profile-quick-nav a:focus-visible{border-color:#d9b57455;background:#d9b57413;color:#fff}
.profile-page :is(.raid-card,.profile-connections-card,.profile-social-stats,.profile-activity-section,.profile-reputation-section,.character-roster-card,.profile-info-card,.dynasty-wardrobe){border:1px solid rgba(219,187,126,.17)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(21,30,46,.97),rgba(10,15,25,.98))!important;box-shadow:0 16px 38px #0004!important}
.profile-page .profile-section-heading{display:flex;align-items:center;gap:13px;padding-bottom:15px;border-bottom:1px solid #ffffff10}
.profile-page .profile-section-heading>span:first-child{display:grid;place-items:center;flex:0 0 40px;height:40px;border:1px solid #d9b57448;border-radius:12px;background:#d9b57413;color:#edcf94;font-size:1.1rem}
.profile-page .profile-section-heading h2{margin:0;color:#f2eee6;font-size:1.08rem;font-weight:850}
.profile-page .profile-section-heading small{display:block;margin-top:4px;color:#98a4b5;font-size:.73rem}
.profile-page .profile-connection-count,.profile-page .character-roster-count{display:grid;place-items:center;min-width:34px;height:34px;margin-left:auto;border:1px solid #d9b57440;border-radius:10px;background:#d9b57412;color:#f0d39a;font-weight:850}
.profile-page .character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:18px}
.profile-page .character-card{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #ffffff16;border-radius:15px;background:linear-gradient(135deg,#1a2639,#101827);transition:transform .18s,border-color .18s}
.profile-page .character-card:hover{transform:translateY(-2px);border-color:#d9b57466}
.profile-page .character-card-art{display:flex;align-items:center;justify-content:center;gap:3px;width:60px;height:60px;border:1px solid #d9b5743b;border-radius:13px;background:#080e19}
.profile-page .character-card-art .class-icon{width:34px;height:34px}.profile-page .character-card-art .spec-icon{width:21px;height:21px;margin-left:-12px;margin-top:28px;border:2px solid #101827;border-radius:50%;background:#111b2a}
.profile-page .character-card-info{display:flex;flex-direction:column;min-width:0;gap:4px}
.profile-page .character-card-info strong{overflow:hidden;color:#f4eee4;font-size:.95rem;text-overflow:ellipsis;white-space:nowrap}
.profile-page .character-card-info span,.profile-page .character-card-info small{color:#a8b3c3;font-size:.7rem;line-height:1.5}
.profile-page .character-card-actions{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:9px;border-top:1px solid #ffffff0d}
.profile-page .character-card-actions button{border:1px solid #d9b57444;border-radius:9px;background:#d9b57412;color:#e9d2a6;padding:7px 10px;font-size:.7rem;font-weight:750}
.profile-page .primary-character-badge,.profile-page .character-verified{padding:6px 9px;border:1px solid #67d59a38;border-radius:8px;background:#248b5018;color:#9fe4ba;font-size:.65rem;font-weight:800}
.profile-page .profile-stat-grid-large{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:17px!important}
.profile-page .profile-stat-grid-large>div{display:flex;flex-direction:column;gap:7px;min-height:88px;padding:15px;border:1px solid #ffffff13;border-radius:13px;background:linear-gradient(145deg,#1a2639,#111a29)}
.profile-page .profile-stat-grid-large strong{color:#f1d39a;font-size:1.45rem;font-weight:850;letter-spacing:-.04em}
.profile-page .profile-stat-grid-large span{color:#aab5c5;font-size:.72rem;font-weight:650}
.profile-page .profile-activity-toggle,.profile-page .profile-activity-locked,.profile-page .profile-activity-empty,.profile-page .profile-thanks-empty{border:1px solid #ffffff14!important;border-radius:13px!important;background:#111a29!important;color:#dce1e9!important}
.profile-page .profile-activity-item,.profile-page .profile-thanks-item{border-bottom:1px solid #ffffff12!important}
.profile-page .profile-activity-marker,.profile-page .profile-thanks-avatar{border:1px solid #d9b57444!important;background:#d9b57413!important;color:#f0d39a!important}
.profile-page .profile-reputation-hero{background:radial-gradient(ellipse at 10% 0,#d9b57418,transparent 52%)}
.profile-page .profile-thanks-counter{border:1px solid #d9b57455!important;border-radius:15px!important;background:#d9b57412!important}
.profile-page .profile-thanks-counter strong{color:#f1d39a!important}
.profile-page .profile-thanks-form{padding:18px;border:1px solid #ffffff15;border-radius:15px;background:#111a29}
.profile-page .profile-thanks-form .form-label{color:#d9dfeb}
.profile-page .profile-detail{padding:13px 0;border-bottom:1px solid #ffffff12}
.profile-page .profile-detail span{color:#99a5b6}.profile-page .profile-detail b{color:#f0e9dd}
.profile-page .profile-post-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.profile-page .profile-post-card{display:block;padding:19px!important;color:#e9e5dd;text-decoration:none;transition:transform .18s,border-color .18s}
.profile-page .profile-post-card:hover{transform:translateY(-3px);border-color:#d9b57466!important}
.profile-page .profile-post-card h3{color:#f1d39a;font-size:1rem;font-weight:800}
.profile-page .profile-post-card p{color:#aeb8c7;font-size:.8rem;line-height:1.65}
.profile-page .profile-post-card small{color:#8f9bae}
.profile-page .dynasty-wardrobe-modal{position:fixed;z-index:1055;inset:0;display:grid;place-items:center;padding:24px}
.profile-page .dynasty-wardrobe-modal[hidden]{display:none}
.profile-page .dynasty-wardrobe-backdrop{position:absolute;inset:0;border:0;background:#03050bd9;backdrop-filter:blur(9px)}
.profile-page .dynasty-wardrobe-dialog{position:relative;z-index:1;width:min(1040px,100%);max-height:min(90vh,900px);overflow:auto;padding:24px}
.profile-page .wardrobe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.profile-page .wardrobe-item{border:1px solid #ffffff18!important;border-radius:14px!important;background:#111a29!important}
.profile-page .wardrobe-item.is-equipped{border-color:#d9b57488!important;box-shadow:0 0 0 1px #d9b57422,0 10px 28px #0005}
.profile-page .wardrobe-equip-btn{border:1px solid #d9b57455!important;border-radius:9px!important;background:#d9b57417!important;color:#f0d39a!important}
.profile-page :is(input,select,textarea){border-color:#ffffff25!important;background-color:#0d1421!important;color:#f2eee7!important}
.profile-page :is(input,select,textarea):focus{border-color:#d9b57499!important;box-shadow:0 0 0 3px #d9b57419!important}
.profile-page :is(a,button,summary):focus-visible{outline:2px solid #f0d39a!important;outline-offset:3px}
@media(max-width:900px){.profile-page .profile-hero-content{grid-template-columns:116px minmax(0,1fr);gap:20px;padding:40px 24px}.profile-page .profile-avatar-shell{width:112px;height:112px;min-width:112px}.profile-page .profile-level-card{grid-column:2;max-width:260px}.profile-page .profile-quick-nav{top:62px}}
@media(max-width:640px){.profile-page{padding-left:12px!important;padding-right:12px!important}.profile-page .profile-hero{min-height:0}.profile-page .profile-hero-content{grid-template-columns:1fr;justify-items:center;text-align:center;padding:34px 18px 22px;gap:14px}.profile-page .profile-avatar-shell{width:108px;height:108px;min-width:108px}.profile-page .profile-identity{width:100%}.profile-page .profile-identity h1{font-size:2.25rem!important}.profile-page .profile-badges{justify-content:center}.profile-page .profile-status{margin:12px 0}.profile-page .profile-level-card{grid-column:1;width:100%;max-width:none}.profile-page .profile-quick-nav{top:56px;margin-bottom:15px}.profile-page .profile-quick-nav a{padding:8px 10px;font-size:.7rem}.profile-page .character-grid,.profile-page .profile-post-list{grid-template-columns:1fr}.profile-page .profile-stat-grid-large{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-page .dynasty-wardrobe-modal{padding:8px}.profile-page .dynasty-wardrobe-dialog{max-height:96vh;padding:15px}.profile-page .profile-reputation-hero{gap:12px}.profile-page .profile-authority-banner{font-size:.6rem;padding:7px 9px!important}}
@media(prefers-reduced-motion:reduce){.profile-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* Combat roster summary */
.profile-page .profile-combat-overview{position:relative;overflow:hidden;padding:23px;border:1px solid rgba(219,187,126,.2);border-radius:19px;background:radial-gradient(ellipse at 100% 0,rgba(108,91,156,.17),transparent 42%),linear-gradient(145deg,#172338,#0b111d);box-shadow:0 16px 38px #0004}
.profile-page .profile-combat-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}
.profile-page .profile-combat-kicker{color:#d9b574;font-size:.62rem;font-weight:850;letter-spacing:.18em}
.profile-page .profile-combat-heading h2{margin:5px 0;color:#f4eee4;font-size:1.2rem;font-weight:850}
.profile-page .profile-combat-heading p{margin:0;color:#9eacbf;font-size:.76rem}
.profile-page .profile-combat-total{display:flex;align-items:baseline;gap:7px;padding:10px 13px;border:1px solid #d9b57444;border-radius:12px;background:#d9b57412;color:#e9d2a6}
.profile-page .profile-combat-total strong{font-size:1.45rem;font-weight:900}
.profile-page .profile-combat-total span{font-size:.68rem;font-weight:750}
.profile-page .profile-combat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.profile-page .profile-combat-role,.profile-page .profile-combat-ilvl{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid #ffffff13;border-radius:14px;background:linear-gradient(145deg,#1c2a40,#111a29)}
.profile-page .profile-combat-role img{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 4px 8px #0007)}
.profile-page .profile-combat-role>div{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.profile-page .profile-combat-role strong{color:#f3d49a;font-size:1.35rem;font-weight:900;line-height:1}
.profile-page .profile-combat-role span{color:#aeb9c9;font-size:.7rem;font-weight:750}
.profile-page .profile-combat-role>small{color:#8f9db0;font-size:.68rem;font-weight:800}
.profile-page .profile-combat-ilvl{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}
.profile-page .profile-combat-ilvl>span{color:#9eacbf;font-size:.56rem;font-weight:850;letter-spacing:.08em}
.profile-page .profile-combat-ilvl>strong{color:#f3d49a;font-size:1.5rem;font-weight:900}
.profile-page .profile-combat-ilvl>strong small{font-size:.7rem}
.profile-page .profile-combat-ilvl p{margin:0;color:#8f9db0;font-size:.64rem}
@media(max-width:900px){.profile-page .profile-combat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.profile-page .profile-combat-overview{padding:17px}.profile-page .profile-combat-grid{grid-template-columns:1fr 1fr}.profile-page .profile-combat-role,.profile-page .profile-combat-ilvl{padding:11px;gap:8px}.profile-page .profile-combat-role img{width:30px;height:30px}.profile-page .profile-combat-ilvl>span{font-size:.5rem}}


/* Streamlined player dossier: essentials first, secondary panels folded */
.profile-page{max-width:1180px!important;padding-top:1.25rem!important}
.profile-page .profile-hero{min-height:0;border:1px solid rgba(218,185,125,.28);border-radius:24px;box-shadow:0 22px 60px #02050b70}
.profile-page .profile-hero-content{grid-template-columns:132px minmax(0,1fr) 220px;gap:26px;padding:42px 36px}
.profile-page .profile-identity{min-width:0}
.profile-page .profile-eyebrow{font-size:.58rem;letter-spacing:.2em;color:#d8b77d}
.profile-page .profile-identity h1{margin:.3rem 0 .7rem;font-size:clamp(2rem,4vw,3.15rem)!important;line-height:1.04;letter-spacing:-.045em}
.profile-page .profile-status{margin:.65rem 0;color:#d4d9e1;font-size:.88rem}
.profile-page .profile-style-label{display:inline-flex;margin:0 0 8px}
.profile-page .profile-edit-trigger{display:inline-flex;align-items:center;gap:7px;margin-top:9px;padding:9px 13px;border:1px solid #d9b57466;border-radius:10px;background:#d9b57416;color:#f1d39a;text-decoration:none;font-size:.76rem;font-weight:800}
.profile-page .profile-level-card{align-self:end;padding:17px;border:1px solid #d9b57438;border-radius:15px;background:linear-gradient(145deg,#111d30eF,#0b111deF)}
.profile-page .profile-level-card>span{font-size:.58rem;letter-spacing:.13em;color:#c8b58f}
.profile-page .profile-level-card .primary-character-name{font-size:1.18rem;line-height:1.25}
.profile-page .profile-quick-nav{position:sticky;z-index:15;top:66px;display:flex;gap:6px;overflow-x:auto;margin:0 0 18px;padding:8px;border:1px solid #ffffff13;border-radius:14px;background:#0a111deF;backdrop-filter:blur(16px);scrollbar-width:thin}
.profile-page .profile-quick-nav a{flex:0 0 auto;padding:9px 12px;border-radius:9px;color:#b9c3d1;font-size:.74rem;font-weight:750;white-space:nowrap}
.profile-page .profile-quick-nav a:hover{background:#d9b57416;color:#f1d39a}
.profile-page .raid-card.profile-connections-card,.profile-page .character-roster-card,.profile-page .profile-combat-overview,.profile-page .profile-info-card{border:1px solid #ffffff15!important;border-radius:18px!important;background:linear-gradient(145deg,#121d2e,#0c1421)!important;box-shadow:0 12px 34px #0003}
.profile-page .profile-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.profile-page .profile-section-heading>span:first-child{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #d9b57438;border-radius:11px;background:#d9b57412;color:#efd29b;font-size:1rem}
.profile-page .profile-section-heading h2{margin:0;color:#f0eee8;font-size:1.08rem;font-weight:850;letter-spacing:-.02em}
.profile-page .profile-section-heading small{display:block;margin-top:3px;color:#8997aa;font-size:.69rem}
.profile-page .profile-connections-card{padding:19px!important}
.profile-page .profile-friends-grid{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.profile-page .profile-friend-chip{min-width:130px;padding:9px 12px;border:1px solid #ffffff12;border-radius:11px;background:#0d1725}
.profile-page .character-roster-card{padding:22px!important}
.profile-page .character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-page .character-card{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #ffffff13;border-radius:14px;background:linear-gradient(145deg,#19263a,#101927)}
.profile-page .character-card-art{width:54px;height:54px}
.profile-page .character-card-info strong{font-size:.92rem}
.profile-page .character-card-actions{gap:7px;padding-top:9px}
.profile-page .profile-combat-overview{padding:18px!important}
.profile-page .profile-combat-heading{margin-bottom:12px}
.profile-page .profile-combat-heading h2{font-size:1rem}
.profile-page .profile-combat-heading p{font-size:.68rem}
.profile-page .profile-combat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.profile-page .profile-combat-role,.profile-page .profile-combat-ilvl{padding:11px;border-radius:12px}
.profile-page .profile-combat-role img{width:30px;height:30px}
.profile-page .profile-combat-role strong{font-size:1.15rem}
.profile-page .profile-extra-panel{overflow:hidden;padding:0!important;border:1px solid #ffffff13!important;border-radius:15px!important;background:#101a29!important}
.profile-page .profile-extra-panel>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:15px 18px;margin:0}
.profile-page .profile-extra-panel>summary::-webkit-details-marker{display:none}
.profile-page .profile-extra-panel>summary .profile-extra-chevron{margin-left:auto;color:#d9b574;font-size:1.1rem;transition:transform .18s}
.profile-page .profile-extra-panel[open]>summary .profile-extra-chevron{transform:rotate(180deg)}
.profile-page .profile-extra-panel[open]>summary{border-bottom:1px solid #ffffff12}
.profile-page .profile-extra-panel>.profile-stat-grid-large,.profile-page .profile-extra-panel>.profile-activity-disclosure,.profile-page .profile-extra-panel>.profile-activity-locked,.profile-page .profile-extra-panel>.profile-thanks-form,.profile-page .profile-extra-panel>.profile-thanks-list,.profile-page .profile-extra-panel>.profile-thanks-empty{margin:16px!important}
.profile-page .profile-extra-panel .profile-reputation-hero{display:flex;align-items:center;gap:14px;padding:15px 18px;cursor:pointer;list-style:none}
.profile-page .profile-extra-panel .profile-reputation-hero::-webkit-details-marker{display:none}
.profile-page .profile-extra-panel[open] .profile-reputation-hero{border-bottom:1px solid #ffffff12}
.profile-page .profile-reputation-heading h2{font-size:1rem}
.profile-page .profile-reputation-heading p{margin:3px 0 0;font-size:.7rem}
.profile-page .profile-thanks-counter{margin-left:auto}
.profile-page .vip-profile-showcase{padding:15px!important;border:1px solid #d9b57422!important;border-radius:15px!important;background:#111a29!important}
.profile-page .profile-info-card{padding:18px!important}
.profile-page .profile-post-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-page .profile-post-card{border:1px solid #ffffff14!important;border-radius:14px!important;background:#111b2b!important}
.profile-page .profile-post-card h3{font-size:.92rem}
@media(max-width:900px){.profile-page .profile-hero-content{grid-template-columns:104px minmax(0,1fr);padding:32px 24px}.profile-page .profile-avatar-shell{width:100px;height:100px;min-width:100px}.profile-page .profile-level-card{grid-column:2;max-width:100%}.profile-page .profile-combat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.profile-page .profile-hero-content{grid-template-columns:1fr;justify-items:center;text-align:center;padding:28px 16px 18px}.profile-page .profile-avatar-shell{width:100px;height:100px;min-width:100px}.profile-page .profile-identity h1{font-size:2rem!important}.profile-page .profile-level-card{grid-column:1;width:100%}.profile-page .profile-quick-nav{top:54px}.profile-page .profile-section-heading{gap:9px}.profile-page .character-grid{grid-template-columns:1fr}.profile-page .profile-combat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-page .profile-post-list{grid-template-columns:1fr}.profile-page .profile-extra-panel>summary{padding:13px}.profile-page .profile-extra-panel .profile-reputation-hero{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.profile-page .profile-extra-chevron{transition:none}}


/* Character armory dossier */
.profile-page .profile-armory-dossier{padding:20px!important}
.profile-page .profile-dossier-badge{margin-left:auto;padding:6px 9px;border:1px solid #d9b57444;border-radius:8px;background:#d9b57412;color:#e7ca91;font-size:.58rem;font-weight:900;letter-spacing:.12em}
.profile-page .profile-armory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:16px}
.profile-page .profile-armory-character{padding:15px;border:1px solid #ffffff13;border-radius:15px;background:linear-gradient(145deg,#172338,#0e1726)}
.profile-page .profile-armory-character-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-page .profile-armory-character-head>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.profile-page .profile-armory-character-head strong{color:#f1e8dc;font-size:.95rem}
.profile-page .profile-armory-character-head span{color:#9eabbc;font-size:.68rem}
.profile-page .profile-armory-ilvl{display:flex;align-items:baseline;gap:4px;padding:7px 10px;border:1px solid #d9b57440;border-radius:10px;background:#d9b57412}
.profile-page .profile-armory-ilvl strong{color:#f0d29a;font-size:1.18rem}
.profile-page .profile-armory-ilvl small{color:#a89a80;font-size:.62rem;font-weight:800}
.profile-page .profile-armory-meta{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0;color:#8f9caf;font-size:.62rem}
.profile-page .profile-armory-meta span{padding:5px 7px;border-radius:7px;background:#ffffff07}
.profile-page .profile-armory-meta .is-muted{color:#777f8c}
.profile-page .profile-armory-block{margin-top:8px;border:1px solid #ffffff10;border-radius:11px;background:#0c1420;overflow:hidden}
.profile-page .profile-armory-block>summary{display:flex;align-items:center;gap:9px;padding:10px 11px;list-style:none;cursor:pointer;color:#dbe0e8;font-size:.7rem;font-weight:800}
.profile-page .profile-armory-block>summary::-webkit-details-marker{display:none}
.profile-page .profile-armory-block>summary b{margin-left:auto;min-width:22px;text-align:center;color:#e2c487}
.profile-page .profile-armory-block>summary i{color:#d9b574;font-style:normal}
.profile-page .profile-armory-block[open]>summary{border-bottom:1px solid #ffffff0d}
.profile-page .profile-equipment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px}
.profile-page .profile-equipment-item{display:flex;align-items:center;gap:8px;min-width:0;padding:7px;border:1px solid #ffffff0d;border-radius:9px;background:#111c2b}
.profile-page .profile-equipment-item img,.profile-page .profile-equipment-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:7px;object-fit:cover;background:#172338;color:#d9b574}
.profile-page .profile-equipment-item>div{min-width:0}
.profile-page .profile-equipment-item strong{display:block;overflow:hidden;color:#e6e0d6;font-size:.64rem;text-overflow:ellipsis;white-space:nowrap}
.profile-page .profile-equipment-item small{display:block;color:#7f8b9e;font-size:.56rem}
.profile-page .profile-achievement-list{display:flex;flex-direction:column;padding:5px 10px}
.profile-page .profile-achievement-item{display:flex;align-items:center;gap:9px;padding:8px 2px;border-bottom:1px solid #ffffff0d}
.profile-page .profile-achievement-item:last-child{border-bottom:0}
.profile-page .profile-achievement-item img,.profile-page .profile-achievement-icon{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:7px;object-fit:cover;background:#172338;color:#e3c68e}
.profile-page .profile-achievement-item>div{min-width:0}
.profile-page .profile-achievement-item strong{display:block;overflow:hidden;color:#e6e0d6;font-size:.65rem;text-overflow:ellipsis;white-space:nowrap}
.profile-page .profile-achievement-item small{display:block;overflow:hidden;color:#7f8b9e;font-size:.56rem;text-overflow:ellipsis;white-space:nowrap}
.profile-page .profile-armory-empty{margin:0;padding:12px;color:#778397;font-size:.64rem}
.profile-page .profile-spec-builds{margin-top:10px;padding:10px;border:1px solid #d9b57422;border-radius:11px;background:linear-gradient(145deg,#171d2a,#101722)}
.profile-page .profile-spec-builds-head{display:flex;align-items:center;gap:7px;color:#d8c79e}
.profile-page .profile-spec-builds-head>span{color:#d9b574}
.profile-page .profile-spec-builds-head strong{font-size:.67rem}
.profile-page .profile-spec-builds-head a{margin-left:auto;color:#c9b27f;font-size:.59rem;text-decoration:none}
.profile-page .profile-build-row{margin-top:8px;padding-top:8px;border-top:1px solid #ffffff0d}
.profile-page .profile-build-row>div:first-child{display:flex;align-items:center;gap:7px}
.profile-page .profile-build-row>div:first-child strong{color:#e8e1d5;font-size:.62rem}
.profile-page .profile-build-row>div:first-child small{color:#788599;font-size:.53rem}
.profile-page .profile-build-modes{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.profile-page .profile-build-code{flex:1 1 30%;min-width:0;border:1px solid #ffffff0d;border-radius:8px;background:#0c1420}
.profile-page .profile-build-code summary{padding:6px 7px;cursor:pointer;color:#aeb8c7;font-size:.55rem;font-weight:800;list-style:none}
.profile-page .profile-build-code summary::-webkit-details-marker{display:none}
.profile-page .profile-build-code[open] summary{border-bottom:1px solid #ffffff0d;color:#e0c68f}
.profile-page .profile-build-code code{display:block;max-height:78px;overflow:auto;padding:7px;color:#a9d5bc;font-size:.5rem;line-height:1.45;white-space:pre-wrap;word-break:break-all}
@media(max-width:900px){.profile-page .profile-armory-grid{grid-template-columns:1fr}}
@media(max-width:520px){.profile-page .profile-armory-dossier{padding:14px!important}.profile-page .profile-equipment-grid{grid-template-columns:1fr}.profile-page .profile-build-modes{display:grid;grid-template-columns:1fr}.profile-page .profile-build-code{width:100%}}


/* Compact profile layout: balanced two-column sections and tighter spacing */
.profile-page{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:16px;
  row-gap:14px;
  align-items:start;
  max-width:1240px!important;
  padding-bottom:36px!important;
}
.profile-page>.profile-hero,
.profile-page>.profile-quick-nav,
.profile-page>#profile-characters,
.profile-page>.profile-combat-overview,
.profile-page>.profile-armory-dossier,
.profile-page>.row,
.profile-page>#profile-posts{
  grid-column:1/-1;
  width:100%;
  min-width:0;
}
.profile-page>.profile-connections-card,
.profile-page>.vip-profile-showcase,
.profile-page>.profile-extra-panel{
  width:100%;
  min-width:0;
  margin:0!important;
}
.profile-page>.profile-hero{margin-bottom:0!important}
.profile-page>.profile-quick-nav{margin-bottom:0!important}
.profile-page>.profile-combat-overview{margin-bottom:0!important}
.profile-page>.profile-armory-dossier{margin-bottom:0!important}
.profile-page>.profile-row{grid-column:1/-1}
.profile-page .profile-hero-content{
  grid-template-columns:112px minmax(0,1fr) 190px;
  gap:20px;
  padding:26px 28px;
}
.profile-page .profile-avatar-shell{width:104px;height:104px;min-width:104px}
.profile-page .profile-presence{margin:5px 0 3px;padding:4px 9px;font-size:.66rem}
.profile-page .profile-identity h1{margin:3px 0 8px!important;font-size:clamp(1.8rem,3.5vw,2.7rem)!important}
.profile-page .profile-badges{gap:6px}
.profile-page .profile-pill{padding:5px 9px;font-size:.68rem}
.profile-page .profile-status{margin:8px 0;font-size:.8rem}
.profile-page .profile-edit-trigger,
.profile-page .profile-identity>.btn,
.profile-page .profile-identity .btn-store-sanctuary{min-height:34px;margin:5px 5px 0 0!important;padding:7px 10px!important;font-size:.69rem}
.profile-page .profile-level-card{padding:13px 12px}
.profile-page .profile-section-heading{padding-bottom:10px;margin-bottom:11px}
.profile-page .profile-connections-card,
.profile-page .character-roster-card,
.profile-page .profile-info-card{padding:15px!important}
.profile-page .profile-extra-panel>summary{padding:12px 14px}
.profile-page .profile-extra-panel>.profile-stat-grid-large,
.profile-page .profile-extra-panel>.profile-activity-disclosure,
.profile-page .profile-extra-panel>.profile-activity-locked,
.profile-page .profile-extra-panel>.profile-thanks-form,
.profile-page .profile-extra-panel>.profile-thanks-list,
.profile-page .profile-extra-panel>.profile-thanks-empty{margin:12px!important}
.profile-page .profile-armory-dossier{padding:16px!important}
.profile-page .profile-armory-grid{gap:10px;margin-top:12px}
.profile-page .profile-armory-character{padding:12px}
.profile-page .profile-combat-overview{padding:14px!important}
.profile-page .profile-combat-heading{margin-bottom:9px}
.profile-page .profile-combat-role,.profile-page .profile-combat-ilvl{padding:9px}
.profile-page .profile-detail{padding:9px 0}
.profile-page .profile-post-list{gap:10px}
@media(max-width:900px){
  .profile-page{grid-template-columns:1fr;row-gap:12px}
  .profile-page>.profile-hero,.profile-page>.profile-quick-nav,
  .profile-page>#profile-characters,.profile-page>.profile-combat-overview,
  .profile-page>.profile-armory-dossier,.profile-page>.row,
  .profile-page>#profile-posts,.profile-page>.profile-connections-card,
  .profile-page>.vip-profile-showcase,.profile-page>.profile-extra-panel{grid-column:1}
  .profile-page .profile-hero-content{grid-template-columns:96px minmax(0,1fr) 180px;gap:16px;padding:22px}
}
@media(max-width:640px){
  .profile-page{row-gap:10px}
  .profile-page .profile-hero-content{grid-template-columns:1fr;justify-items:center;text-align:center;padding:22px 15px 16px}
  .profile-page .profile-avatar-shell{width:92px;height:92px;min-width:92px}
  .profile-page .profile-level-card{grid-column:1;width:100%}
  .profile-page .profile-identity h1{font-size:1.9rem!important}
}


/* Compact dashboard refinement: tighter two-column profile composition */
.profile-page{
  grid-template-columns:repeat(12,minmax(0,1fr));
  column-gap:14px;
  row-gap:12px;
  max-width:1160px!important;
}
.profile-page>.profile-hero,
.profile-page>.profile-quick-nav,
.profile-page>.profile-armory-dossier,
.profile-page>.row,
.profile-page>#profile-posts{grid-column:1/-1}
.profile-page>.profile-connections-card{grid-column:span 5}
.profile-page>.vip-profile-showcase{grid-column:span 7}
.profile-page>#profile-characters{grid-column:span 7}
.profile-page>.profile-combat-overview{grid-column:span 5;align-self:stretch}
.profile-page>.profile-extra-panel{grid-column:span 6}
.profile-page .profile-hero{border-radius:18px!important}
.profile-page .profile-hero-content{grid-template-columns:88px minmax(0,1fr) 168px;gap:16px;padding:18px 22px}
.profile-page .profile-avatar-shell{width:82px;height:82px;min-width:82px;padding:4px}
.profile-page .profile-avatar-shell>img{border-width:3px}
.profile-page .profile-eyebrow,.profile-page .profile-reputation-kicker{font-size:.53rem;letter-spacing:.16em}
.profile-page .profile-identity h1{font-size:clamp(1.65rem,3vw,2.35rem)!important;margin:2px 0 6px!important}
.profile-page .profile-presence{margin:3px 0 2px;padding:3px 8px;font-size:.61rem}
.profile-page .profile-badges{gap:5px}
.profile-page .profile-pill{padding:4px 8px;font-size:.62rem}
.profile-page .profile-status{margin:5px 0;font-size:.73rem}
.profile-page .profile-edit-trigger,.profile-page .profile-identity>.btn,.profile-page .profile-identity .btn-store-sanctuary{min-height:30px;margin:4px 4px 0 0!important;padding:6px 9px!important;font-size:.63rem}
.profile-page .profile-level-card{gap:4px;padding:10px;border-radius:12px}
.profile-page .profile-level-card>span{font-size:.52rem}
.profile-page .profile-level-card .primary-character-name{font-size:1rem}
.profile-page .profile-level-card small{font-size:.62rem}
.profile-page .profile-quick-nav{padding:6px;gap:4px;border-radius:11px}
.profile-page .profile-quick-nav a{padding:7px 9px;font-size:.66rem}
.profile-page .profile-connections-card,.profile-page .character-roster-card,.profile-page .profile-info-card{padding:13px!important;border-radius:14px!important}
.profile-page .profile-section-heading{gap:9px;padding-bottom:8px;margin-bottom:9px}
.profile-page .profile-section-heading>span:first-child{width:30px;height:30px;flex-basis:30px;border-radius:9px;font-size:.85rem}
.profile-page .profile-section-heading h2{font-size:.92rem}
.profile-page .profile-section-heading small{font-size:.61rem}
.profile-page .profile-connection-count,.profile-page .character-roster-count{min-width:28px;height:28px;font-size:.78rem}
.profile-page .profile-friends-grid{gap:6px;margin-top:9px}
.profile-page .profile-friend-chip{min-width:0;padding:7px 9px;font-size:.7rem}
.profile-page .character-grid{gap:8px;margin-top:10px}
.profile-page .character-card{grid-template-columns:42px minmax(0,1fr);gap:8px;padding:9px;border-radius:11px}
.profile-page .character-card-art{width:42px;height:42px;border-radius:9px}
.profile-page .character-card-art .class-icon{width:27px;height:27px}
.profile-page .character-card-info{gap:2px}
.profile-page .character-card-info strong{font-size:.78rem}
.profile-page .character-card-info span,.profile-page .character-card-info small{font-size:.59rem;line-height:1.35}
.profile-page .character-card-actions{gap:5px;padding-top:6px}
.profile-page .character-card-actions>*{font-size:.55rem!important;padding:4px 6px!important}
.profile-page #profile-character-toggle{padding:5px 10px;font-size:.65rem}
.profile-page .profile-combat-overview{padding:13px!important;border-radius:14px}
.profile-page .profile-combat-heading{align-items:flex-start;gap:8px;margin-bottom:9px}
.profile-page .profile-combat-kicker{font-size:.5rem}
.profile-page .profile-combat-heading h2{font-size:.95rem;margin:3px 0}
.profile-page .profile-combat-heading p{font-size:.61rem}
.profile-page .profile-combat-total{gap:4px;padding:6px 8px}
.profile-page .profile-combat-total strong{font-size:1.1rem}
.profile-page .profile-combat-total span{font-size:.56rem}
.profile-page .profile-combat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.profile-page .profile-combat-role,.profile-page .profile-combat-ilvl{gap:7px;padding:8px;border-radius:10px}
.profile-page .profile-combat-role img{width:25px;height:25px}
.profile-page .profile-combat-role strong{font-size:1rem}
.profile-page .profile-combat-role span,.profile-page .profile-combat-role>small{font-size:.59rem}
.profile-page .profile-combat-ilvl>span{font-size:.48rem}
.profile-page .profile-combat-ilvl>strong{font-size:1.2rem}
.profile-page .profile-combat-ilvl p{font-size:.55rem}
.profile-page .profile-extra-panel{border-radius:13px!important}
.profile-page .profile-extra-panel>summary{padding:10px 12px}
.profile-page .profile-extra-panel .profile-reputation-hero{padding:10px 12px}
.profile-page .profile-extra-panel .profile-reputation-heading h2{font-size:.9rem}
.profile-page .profile-extra-panel .profile-reputation-heading p{font-size:.61rem}
.profile-page .profile-stat-grid-large{gap:7px!important}
.profile-page .profile-stat-grid-large>div{min-height:65px;padding:10px;gap:4px}
.profile-page .profile-stat-grid-large strong{font-size:1.1rem}
.profile-page .profile-stat-grid-large span{font-size:.61rem}
.profile-page .profile-armory-dossier{padding:14px!important;border-radius:15px!important}
.profile-page .profile-armory-grid{gap:9px;margin-top:10px}
.profile-page .profile-armory-character{padding:10px;border-radius:12px}
.profile-page .profile-armory-block{margin-top:6px}
.profile-page .profile-armory-block>summary{padding:8px 9px;font-size:.64rem}
.profile-page .profile-detail{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:.7rem}
.profile-page .profile-detail b{text-align:right}
.profile-page .profile-post-card{padding:13px!important}
.profile-page .profile-post-card h3{font-size:.84rem}
.profile-page .profile-post-card p{font-size:.69rem;line-height:1.5}
@media(max-width:980px){
 .profile-page{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-page>.profile-connections-card,.profile-page>.vip-profile-showcase,
 .profile-page>#profile-characters,.profile-page>.profile-combat-overview,
 .profile-page>.profile-extra-panel{grid-column:span 1}
 .profile-page>.profile-hero,.profile-page>.profile-quick-nav,
 .profile-page>.profile-armory-dossier,.profile-page>.row,
 .profile-page>#profile-posts{grid-column:1/-1}
 .profile-page .profile-hero-content{grid-template-columns:76px minmax(0,1fr) 145px;padding:16px;gap:12px}
 .profile-page .profile-avatar-shell{width:72px;height:72px;min-width:72px}
}
@media(max-width:640px){
 .profile-page{grid-template-columns:1fr;row-gap:10px}
 .profile-page>.profile-connections-card,.profile-page>.vip-profile-showcase,
 .profile-page>#profile-characters,.profile-page>.profile-combat-overview,
 .profile-page>.profile-extra-panel,.profile-page>.profile-hero,
 .profile-page>.profile-quick-nav,.profile-page>.profile-armory-dossier,
 .profile-page>.row,.profile-page>#profile-posts{grid-column:1}
 .profile-page .profile-hero-content{grid-template-columns:1fr;justify-items:center;text-align:center;padding:19px 13px 14px}
 .profile-page .profile-avatar-shell{width:78px;height:78px;min-width:78px}
 .profile-page .profile-level-card{grid-column:1;width:100%}
 .profile-page .profile-badges{justify-content:center}
 .profile-page .character-grid{grid-template-columns:1fr}
 .profile-page .profile-combat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Profile detail panels are portalled to body while open. */
body.profile-modal-lock{overflow:hidden!important}
.profile-extra-panel[open].profile-modal-open{
 display:block!important;visibility:visible!important;opacity:1!important;
 position:fixed!important;z-index:12000!important;
 left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
 width:min(760px,calc(100vw - 32px))!important;max-width:760px!important;
 max-height:min(82vh,780px)!important;overflow:auto!important;overscroll-behavior:contain;
 margin:0!important;padding:0!important;border:1px solid #d9b57455!important;
 border-radius:18px!important;background:linear-gradient(150deg,#142238 0%,#0b1422 100%)!important;
 box-shadow:0 24px 80px #000b!important;scrollbar-width:thin;scrollbar-color:#8c754d #101a29;
}
.profile-extra-panel[open].profile-modal-open>summary{
 position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;
 min-height:64px;padding:14px 18px!important;
 background:linear-gradient(110deg,#1b2a40,#111c2d)!important;
 border-bottom:1px solid #d9b57430!important;
}
.profile-extra-panel.profile-modal-open>summary .profile-extra-chevron{display:none}
.profile-modal-close{
 display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;margin-left:auto;
 border:1px solid #ffffff20;border-radius:9px;background:#ffffff0a;color:#e8d4ad;
 font-size:1.35rem;line-height:1;cursor:pointer;
}
.profile-modal-close:hover{background:#d9b57420;border-color:#d9b57470;color:#fff}
.profile-extra-panel.profile-modal-open>.profile-stat-grid-large,
.profile-extra-panel.profile-modal-open>.profile-activity-disclosure,
.profile-extra-panel.profile-modal-open>.profile-activity-locked,
.profile-extra-panel.profile-modal-open>.profile-thanks-form,
.profile-extra-panel.profile-modal-open>.profile-thanks-list,
.profile-extra-panel.profile-modal-open>.profile-thanks-empty{margin:14px!important}
.profile-extra-panel.profile-modal-open .profile-stat-grid-large{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;
}
.profile-extra-panel.profile-modal-open .profile-stat-grid-large>div{
 display:flex;flex-direction:column;gap:7px;min-height:88px;padding:15px;
 border:1px solid #ffffff13;border-radius:13px;background:linear-gradient(145deg,#1a2639,#111a29);
}
.profile-extra-panel.profile-modal-open .profile-stat-grid-large strong{color:#f1d39a;font-size:1.45rem;font-weight:850}
.profile-extra-panel.profile-modal-open .profile-stat-grid-large span{color:#aab5c5;font-size:.72rem;font-weight:650}
.profile-modal-backdrop{position:fixed;inset:0;z-index:11999;background:radial-gradient(ellipse at center,#111d30a8,#020611e8);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
@media(max-width:640px){
 .profile-extra-panel[open].profile-modal-open{width:calc(100vw - 20px)!important;max-height:86vh!important;border-radius:14px!important}
 .profile-extra-panel[open].profile-modal-open>summary{min-height:56px;padding:11px 13px!important}
 .profile-extra-panel.profile-modal-open .profile-stat-grid-large{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Unified compact density across every profile section */
.profile-page{gap:10px 12px!important;padding-top:14px!important}
.profile-page>.profile-hero{margin:0!important}
.profile-page>.profile-connections-card,
.profile-page>.vip-profile-showcase,
.profile-page>#profile-characters,
.profile-page>.profile-combat-overview,
.profile-page>.profile-extra-panel,
.profile-page>.profile-armory-dossier,
.profile-page>#profile-details,
.profile-page>#profile-posts{
 min-width:0;margin:0!important;
}
.profile-page .raid-card{border-radius:14px!important}
.profile-page .profile-section-heading{min-width:0}
.profile-page .profile-section-heading small,
.profile-page .profile-status,
.profile-page .profile-detail,
.profile-page .profile-friend-chip,
.profile-page .profile-incoming-row{line-height:1.35}
.profile-page .profile-incoming-requests{margin-top:9px;padding:9px;border-radius:10px}
.profile-page .profile-incoming-row{padding:7px 0;gap:8px}
.profile-page .profile-friends-grid{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}
.profile-page .profile-friend-chip{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;column-gap:7px}
.profile-page .profile-friend-chip small{grid-column:2}
.profile-page .vip-profile-showcase .d-flex{gap:6px!important;margin-top:8px!important}
.profile-page .profile-combat-overview{margin:0!important}
.profile-page .profile-extra-panel{align-self:start}
.profile-page .profile-extra-panel>summary{min-height:56px}
.profile-page .profile-activity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}
.profile-page .profile-activity-list>*{min-width:0;margin:0!important;padding:9px 10px!important;border-radius:10px}
.profile-page .profile-activity-title-row{gap:8px;align-items:flex-start}
.profile-page .profile-activity-title-row strong{font-size:.76rem;line-height:1.35}
.profile-page .profile-activity-title-row time{font-size:.59rem;white-space:nowrap}
.profile-page .profile-reputation-section .profile-thanks-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-page .profile-thanks-list>*{min-width:0;margin:0!important;padding:9px!important;border-radius:10px}
.profile-page .profile-thanks-form{padding:10px!important;margin:10px!important;border-radius:11px}
.profile-page .profile-armory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profile-page .profile-armory-character{min-width:0;padding:10px}
.profile-page .profile-equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px}
.profile-page .profile-achievement-list{padding:4px 8px}
.profile-page .profile-spec-builds{padding:9px;margin-top:8px}
.profile-page .profile-build-row{margin-top:7px;padding-top:7px}
.profile-page .profile-info-card{padding:13px!important}
.profile-page .profile-detail{padding:7px 0}
.profile-page .profile-post-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.profile-page .profile-post-card{min-width:0;padding:11px!important}
.profile-page .profile-post-card p{margin-bottom:7px}
.profile-page .row.g-4{--bs-gutter-x:12px;--bs-gutter-y:10px;margin-top:0}
.profile-page .row.g-4>[class*="col-"]{min-width:0}
.profile-page .dynasty-wardrobe{padding:13px!important}
.profile-page .wardrobe-toolbar{gap:8px}
.profile-page .wardrobe-grid{gap:8px}
.profile-page .wardrobe-item{padding:8px}
.profile-page .profile-extra-panel.profile-modal-open .profile-activity-list,
.profile-page .profile-extra-panel.profile-modal-open .profile-thanks-list{padding:0}
@media(max-width:980px){
 .profile-page .profile-activity-list,
 .profile-page .profile-reputation-section .profile-thanks-list{grid-template-columns:1fr}
 .profile-page .profile-armory-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
 .profile-page{gap:9px!important}
 .profile-page .profile-post-list{grid-template-columns:1fr}
 .profile-page .profile-friends-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-page .profile-armory-grid{grid-template-columns:1fr}
 .profile-page .profile-equipment-grid{grid-template-columns:1fr}
}


/* === Dynasty profile: one authoritative, predictable layout === */
.profile-page{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  align-items:start;
  gap:16px!important;
  max-width:1220px!important;
  padding:18px 18px 42px!important;
  margin-inline:auto!important;
}
.profile-page>*{min-width:0;max-width:100%;margin:0!important}
.profile-page>.profile-hero,
.profile-page>.profile-quick-nav,
.profile-page>.profile-armory-dossier,
.profile-page>.row,
.profile-page>#profile-posts{grid-column:1/-1!important;width:100%}
.profile-page>.profile-hero{overflow:hidden;border-radius:20px!important}
.profile-page>.profile-quick-nav{
  position:sticky;top:68px;z-index:30;
  display:flex;flex-wrap:nowrap;align-items:center;gap:6px;
  overflow-x:auto;padding:8px!important;
  border:1px solid #d9b57428;border-radius:13px;
  background:rgba(8,15,27,.94);backdrop-filter:blur(14px);
  scrollbar-width:thin;
}
.profile-page>.profile-quick-nav a{
  flex:0 0 auto;padding:9px 12px;border-radius:9px;
  color:#b9c4d3;font-size:.73rem;font-weight:750;
  text-decoration:none;white-space:nowrap;
}
.profile-page>.profile-quick-nav a:hover,
.profile-page>.profile-quick-nav a:focus-visible{
  color:#f3d9a5;background:#d9b57418;
}
.profile-page>.profile-connections-card,
.profile-page>.vip-profile-showcase,
.profile-page>#profile-vip{grid-column:span 6!important}
.profile-page>#profile-characters{grid-column:span 8!important}
.profile-page>.profile-combat-overview{grid-column:span 4!important}
.profile-page>.profile-extra-panel{grid-column:span 4!important;align-self:start}
.profile-page>.profile-armory-dossier{grid-column:1/-1!important}
.profile-page>.row{
  display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:16px!important;margin:0!important;
}
.profile-page>.row>[class*="col-"]{grid-column:span 6;padding:0!important;width:auto;min-width:0}
.profile-page .profile-hero-content{
  display:grid;grid-template-columns:112px minmax(0,1fr) 205px;
  align-items:center;gap:22px;padding:30px!important;
}
.profile-page .profile-identity{min-width:0}
.profile-page .profile-identity h1{overflow-wrap:anywhere}
.profile-page .profile-badges{display:flex;flex-wrap:wrap;gap:7px}
.profile-page .profile-level-card{align-self:center;min-width:0}
.profile-page .profile-section-heading{min-width:0}
.profile-page .profile-section-heading>div{min-width:0}
.profile-page .character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.profile-page .character-card{min-width:0}
.profile-page .profile-combat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-page .profile-armory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-page .profile-extra-panel{overflow:hidden}
.profile-page .profile-stat-grid-large{grid-template-columns:repeat(3,minmax(0,1fr))}
.profile-page .profile-activity-list,
.profile-page .profile-reputation-section .profile-thanks-list{grid-template-columns:1fr}
.profile-page #profile-posts{margin:0!important}
.profile-page .profile-post-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.profile-page .profile-post-card{min-width:0;overflow-wrap:anywhere}
.profile-page .profile-detail{gap:12px}
.profile-page .profile-detail b{text-align:right;overflow-wrap:anywhere}
.profile-page .dynasty-wardrobe-modal{z-index:12050}
@media(max-width:1080px){
  .profile-page{gap:13px!important;padding-inline:12px!important}
  .profile-page>.profile-connections-card,
  .profile-page>.vip-profile-showcase,
  .profile-page>#profile-vip{grid-column:span 6!important}
  .profile-page>#profile-characters{grid-column:1/-1!important}
  .profile-page>.profile-combat-overview{grid-column:1/-1!important}
  .profile-page>.profile-extra-panel{grid-column:span 6!important}
  .profile-page .profile-combat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .profile-page .profile-armory-grid{grid-template-columns:1fr}
  .profile-page .profile-post-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .profile-page{grid-template-columns:minmax(0,1fr)!important;gap:11px!important;padding:10px 10px 30px!important}
  .profile-page>*,
  .profile-page>.profile-connections-card,
  .profile-page>.vip-profile-showcase,
  .profile-page>#profile-vip,
  .profile-page>#profile-characters,
  .profile-page>.profile-combat-overview,
  .profile-page>.profile-extra-panel,
  .profile-page>.profile-armory-dossier,
  .profile-page>.row,
  .profile-page>#profile-posts{grid-column:1/-1!important}
  .profile-page .profile-hero-content{grid-template-columns:1fr!important;justify-items:center;text-align:center;padding:22px 16px!important}
  .profile-page .profile-avatar-shell{width:96px;height:96px;min-width:96px}
  .profile-page .profile-badges{justify-content:center}
  .profile-page .profile-level-card{width:100%;max-width:none}
  .profile-page>.profile-quick-nav{top:56px}
  .profile-page>.row{grid-template-columns:minmax(0,1fr)}
  .profile-page>.row>[class*="col-"]{grid-column:1/-1}
  .profile-page .character-grid,
  .profile-page .profile-armory-grid,
  .profile-page .profile-post-list{grid-template-columns:1fr}
  .profile-page .profile-combat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-page .profile-stat-grid-large{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  .profile-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
/* === End unified profile layout === */

/* Railway profile hero: keep decorative layers behind readable content. */
.profile-page .profile-hero{isolation:isolate;position:relative}
.profile-page .profile-hero:before,.profile-page .profile-hero-cover{z-index:0!important;pointer-events:none!important}
.profile-page .profile-hero-content{position:relative!important;z-index:2!important}
.profile-page .profile-identity,.profile-page .profile-avatar-shell,.profile-page .profile-level-card{position:relative;z-index:2}
.profile-page .profile-identity h1,.profile-page .profile-identity .profile-presence,.profile-page .profile-identity .profile-badges,.profile-page .profile-identity .profile-status,.profile-page .profile-identity .profile-style-label,.profile-page .profile-identity a,.profile-page .character-card-info,.profile-page .character-card-actions{position:relative;z-index:2}
.profile-page .character-card{position:relative;isolation:isolate}
.profile-page .character-card:before,.profile-page .character-card:after{z-index:0!important;pointer-events:none!important}
.profile-page .character-card-info,.profile-page .character-card-actions{position:relative;z-index:2!important}
.profile-page .character-card-info :is(strong,span,small),.profile-page .character-card-actions :is(span,strong){position:relative;z-index:2}


/* Full-height 3D character render in the profile identity header. */
.profile-page .profile-hero-content:has(.profile-avatar-shell>img.is-race-render){grid-template-columns:164px minmax(0,1fr) 205px;align-items:stretch}
.profile-page .profile-avatar-shell:has(>img.is-race-render){align-self:stretch;width:154px;min-width:154px;height:auto;min-height:238px;padding:7px;border-radius:17px;overflow:visible;background:linear-gradient(155deg,#f3d59a,#8b5ac6 52%,#56c8e7);box-shadow:0 0 0 1px #d9b57435,0 18px 36px #0008}
.profile-page .profile-avatar-shell>img.is-race-render{display:block;width:100%;height:100%;min-height:224px;object-fit:contain!important;object-position:center bottom!important;transform:none!important;transform-origin:center bottom!important;clip-path:none!important;border:0!important;border-radius:11px!important;background:linear-gradient(180deg,#111a29 0%,#0b111d 100%)}
@media(max-width:1080px){
 .profile-page .profile-hero-content:has(.profile-avatar-shell>img.is-race-render){grid-template-columns:150px minmax(0,1fr) 180px}
 .profile-page .profile-avatar-shell:has(>img.is-race-render){width:140px;min-width:140px;min-height:218px}
 .profile-page .profile-avatar-shell>img.is-race-render{min-height:204px}
}
@media(max-width:700px){
 .profile-page .profile-hero-content:has(.profile-avatar-shell>img.is-race-render){grid-template-columns:minmax(0,1fr)!important;justify-items:center}
 .profile-page .profile-avatar-shell:has(>img.is-race-render){width:154px;min-width:154px;height:224px;min-height:224px}
 .profile-page .profile-avatar-shell>img.is-race-render{height:100%;min-height:210px}
}

/* Compact Dynasty Identity Studio wardrobe. */
.profile-page .dynasty-wardrobe-dialog{width:min(1160px,100%);max-height:94vh;padding:16px!important}
.profile-page .dynasty-wardrobe-modal-head{margin:0 0 5px!important;padding:0 0 7px!important}
.profile-page .wardrobe-heading{gap:9px;padding-bottom:9px;margin-bottom:10px}
.profile-page .wardrobe-heading>span{font-size:1.2rem}
.profile-page .wardrobe-heading h2{margin:0;font-size:1.15rem}
.profile-page .wardrobe-heading small{font-size:.68rem}
.profile-page .dynasty-wardrobe .profile-edit-form{margin:0 0 10px!important;padding:9px 11px!important;border-radius:11px}
.profile-page .dynasty-wardrobe .profile-edit-form .profile-section-heading{padding-bottom:5px;margin-bottom:5px}
.profile-page .dynasty-wardrobe .profile-edit-form h3{margin:0;font-size:.88rem}
.profile-page .dynasty-wardrobe .profile-edit-form .profile-section-heading small,
.profile-page .dynasty-wardrobe .profile-edit-form>p{font-size:.67rem;line-height:1.4}
.profile-page .wardrobe-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 10px;padding:8px 10px;border:1px solid #ffffff13;border-radius:11px;background:#0d1522}
.profile-page .wardrobe-collection-count{display:flex;align-items:center;gap:7px;font-size:.72rem}
.profile-page .wardrobe-collection-count b{color:#f0d39a;font-size:1.05rem}
.profile-page .profile-reset-row{display:flex;flex-wrap:wrap;gap:5px}
.profile-page .profile-reset-row form{margin:0}
.profile-page .wardrobe-reset-btn{padding:5px 8px!important;border-radius:7px!important;font-size:.62rem!important;line-height:1.2}
.profile-page .wardrobe-category{margin:0 0 12px}
.profile-page .wardrobe-category-heading{display:flex;align-items:center;gap:8px;margin:0 0 7px}
.profile-page .wardrobe-category-heading>span{font-size:1.05rem}
.profile-page .wardrobe-category-heading h3{margin:0;color:#f0e6d5;font-size:.88rem;font-weight:800}
.profile-page .wardrobe-category-heading small{color:#98a5b8;font-size:.62rem}
.profile-page .wardrobe-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:8px}
.profile-page .wardrobe-item{display:flex;flex-direction:column;gap:6px;min-width:0;padding:8px!important;border-radius:11px!important}
.profile-page .wardrobe-item-icon{height:66px;min-height:66px;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#0a111d}
.profile-page .wardrobe-item-icon img{display:block;width:100%;height:100%;max-height:66px;object-fit:contain}
.profile-page .wardrobe-item-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.profile-page .wardrobe-item-info b{overflow:hidden;color:#eee5d7;font-size:.73rem;text-overflow:ellipsis;white-space:nowrap}
.profile-page .wardrobe-item-info small{color:#8996aa;font-size:.59rem}
.profile-page .wardrobe-equip-btn,.profile-page .equipped-label{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:27px;padding:5px 7px!important;border-radius:7px!important;font-size:.62rem!important;font-weight:750}
.profile-page .wardrobe-item form{margin:0}
.profile-page .dynasty-wardrobe .alert{margin:8px!important;padding:9px!important;font-size:.75rem}
@media(max-width:700px){
 .profile-page .dynasty-wardrobe-dialog{max-height:96vh;padding:11px!important}
 .profile-page .wardrobe-toolbar{align-items:flex-start;flex-direction:column}
 .profile-page .profile-reset-row{width:100%}
 .profile-page .wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .profile-page .wardrobe-item-icon{height:58px;min-height:58px}
 .profile-page .wardrobe-item-icon img{max-height:58px}
}
