body.profile-open main{max-width:none;padding:22px 3vw}.profile-page{--profile-accent:#8c8aab}.profile-hero{height:360px;position:relative;overflow:hidden;border-radius:24px;background:#181d29}.profile-cover{width:100%;height:100%;object-fit:cover}.profile-hero-shade{position:absolute;inset:0;background:linear-gradient(0deg,#080b12ef,transparent 95%)}.profile-identity{position:absolute;bottom:26px;left:32px;display:flex;align-items:center;gap:28px}.profile-identity h1{margin:5px 0;font-size:36px}.profile-identity p{margin:5px 0;color:#ced3df}.profile-avatar{width:200px;height:170px;position:relative;display:grid;place-items:center}.avatar-banner{position:absolute;width:100%;height:100%;object-fit:contain}.avatar-person{position:relative;width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 6px 12px #0008)}.profile-elements{display:flex;gap:9px;margin-top:12px}.profile-elements img{width:28px;height:28px;object-fit:contain}.profile-tools{position:absolute;right:24px;bottom:28px;display:flex;gap:8px}.profile-content{padding:10px 8px}.profile-content>section{margin:30px 0}.profile-content h2{border-left:3px solid var(--profile-accent);padding-left:12px}.profile-characters{display:flex;gap:14px;flex-wrap:wrap}.profile-characters button{width:122px;border:0;border-radius:16px;background:color-mix(in srgb,var(--profile-accent) 15%,#10131c);padding:12px;transition:transform .2s}.profile-characters button:hover{transform:translateY(-4px)}.profile-characters img{width:94px;height:94px;object-fit:contain}.profile-characters b{display:block;font-size:12px}.profile-build-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}.profile-build{background:linear-gradient(130deg,color-mix(in srgb,var(--profile-accent) 12%,#10131c),#10131c);border-radius:18px;padding:18px;border-top:2px solid var(--profile-accent)}.profile-build-top{display:flex;align-items:center;gap:12px}.profile-build-top>img{width:64px;height:64px;object-fit:contain}.profile-build-top h3{font-size:16px;margin:0 0 5px}.profile-build-top span{font-size:12px;color:#a8b1c3}.profile-build-top .build-element{width:26px;height:26px;margin-left:auto}.profile-build-weapon{display:flex;align-items:center;gap:12px;font-size:12px;margin:12px 0}.profile-build-weapon img{width:46px;height:46px;object-fit:contain}.profile-build-echoes{display:flex;gap:5px}.profile-build-echoes>span{flex:1;height:60px;position:relative;background:#ffffff05;border-radius:8px}.profile-build-echoes img{width:100%;height:50px;object-fit:contain}.profile-build-echoes small{position:absolute;bottom:1px;right:5px}.profile-build-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}.profile-build-actions label{font-size:12px;display:flex;gap:4px;align-items:center}.account-dialog{width:min(760px,94vw);max-height:90dvh;padding:24px}.account-form{max-width:390px;margin:auto;display:grid;gap:17px}.account-form label,.profile-edit label{display:grid;gap:7px}.account-form input{width:100%}.account-error{color:#ff8d98;margin:0}.profile-edit h3{margin:24px 0 12px}.profile-card-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:240px;overflow:auto}.profile-card-picker label,.profile-char-picker label,.profile-element-picker label{cursor:pointer;position:relative;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#ffffff06;padding:5px}.profile-edit label:has(input:checked){border-color:#c9b66d;background:#c9b66d22}.profile-card-picker img{width:100%;height:60px;object-fit:cover}.profile-card-picker span,.profile-char-picker span{font-size:10px;text-align:center}.profile-card-picker input,.profile-char-picker input,.profile-element-picker input{position:absolute;top:5px;left:5px;z-index:1;width:14px;height:14px}.profile-char-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:7px;max-height:205px;overflow:auto}.profile-char-picker img{width:65px;height:65px;object-fit:contain;margin:auto}.profile-element-picker{display:flex;flex-wrap:wrap;gap:10px}.profile-element-picker img{width:32px;height:32px;margin:8px auto}.profile-element-picker span{font-size:11px}.profile-edit>[type=submit]{margin-top:20px;position:sticky;bottom:0}@media(max-width:700px){.profile-hero{height:370px}.profile-identity{left:15px;bottom:90px;gap:10px}.profile-avatar{width:115px;height:120px}.avatar-person{width:80px;height:80px}.profile-identity h1{font-size:25px}.profile-tools{bottom:20px;left:20px}.profile-card-picker{grid-template-columns:repeat(2,1fr)}}

/* Full-width, live HTML build galleries. */
.profile-gallery-host{min-width:0}.gallery-characters{display:flex;gap:10px;overflow-x:auto;padding:5px 2px 14px}.gallery-characters button{flex:0 0 76px;border:1px solid transparent;border-radius:14px;background:#ffffff06;padding:6px;transition:transform .18s,background .18s,border-color .18s}.gallery-characters button:hover{transform:translateY(-3px);background:#ffffff12}.gallery-characters button.active{border-color:var(--profile-accent);background:color-mix(in srgb,var(--profile-accent) 20%,#10131c)}.gallery-characters img{width:54px;height:54px;object-fit:contain}.gallery-characters span{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-stage{position:relative;isolation:isolate;width:100%;height:clamp(420px,36vw,680px);overflow:hidden;border-radius:22px;background:radial-gradient(ellipse at 28% 35%,color-mix(in srgb,var(--profile-accent) 40%,#151924),#080d17 78%)}.gallery-art{position:absolute;inset:0;width:76%;height:100%;object-fit:contain;object-position:center;animation:gallery-reveal .3s ease-out}.gallery-art.custom-art{object-fit:cover;width:100%}.gallery-shade{position:absolute;inset:0;background:linear-gradient(90deg,transparent 22%,#090e1740 45%,#090e17e8 73%),linear-gradient(0deg,#090e17bc,transparent 35%);pointer-events:none}.gallery-build-content{position:absolute;right:4%;top:50%;transform:translateY(-50%);width:min(420px,37%)}.gallery-build-content>h3{font-size:clamp(22px,2.1vw,40px);line-height:1.15;margin:12px 0 22px}.gallery-build-content>.eyebrow{color:#c7cdd9}.gallery-build-content .profile-build{padding:0;border:0;background:transparent;border-radius:0}.gallery-build-content .profile-build-top{display:none}.gallery-build-content .profile-build-weapon{font-size:14px;margin-bottom:24px}.gallery-build-content .profile-build-weapon img{width:65px;height:65px}.gallery-build-content .profile-build-echoes>span{height:76px;background:#0002}.gallery-build-content .profile-build-echoes img{height:65px}.gallery-build-content .profile-build-actions{margin-top:24px}.gallery-pagination{position:absolute;bottom:20px;left:30px;display:flex;align-items:center;gap:16px;padding:6px;border-radius:30px;background:#080d1780;backdrop-filter:blur(12px)}.gallery-pagination>span{font-size:13px;min-width:48px;text-align:center;color:#e0e6f0}.gallery-pagination button{width:42px;height:42px;border:1px solid #ffffff30;border-radius:50%;background:#ffffff0b;color:#fff;transition:background .18s,transform .18s}.gallery-pagination button:hover{background:var(--profile-accent);transform:scale(1.07)}@keyframes gallery-reveal{from{opacity:.35;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}@media(max-width:760px){.gallery-stage{height:650px}.gallery-art{width:100%;height:70%;object-position:top center!important}.gallery-shade{background:linear-gradient(0deg,#090e17 5%,#090e17ec 32%,transparent 78%)}.gallery-build-content{top:auto;bottom:78px;transform:none;left:22px;right:22px;width:auto}.gallery-build-content>h3{margin:8px 0 14px}.gallery-build-content .profile-build-weapon{margin-bottom:10px}.gallery-build-content .profile-build-weapon img{width:42px;height:42px}.gallery-build-content .profile-build-actions{margin-top:14px}.gallery-pagination{bottom:14px;left:20px}}@media(prefers-reduced-motion:reduce){.gallery-art{animation:none}.gallery-characters button,.gallery-pagination button{transition:none}}

/* The profile uses the same complete resonance card as the builder. */
.gallery-stage.full-build-stage{height:auto;overflow:visible;background:transparent;border-radius:0}.gallery-full-card{position:relative;width:100%;aspect-ratio:1920/820;overflow:hidden;border-radius:22px;background:#0b101b}.gallery-full-card>canvas{display:block;width:100%;height:auto}.gallery-full-card>.loading,.gallery-full-card>.error{position:absolute;inset:0;display:grid;place-content:center;text-align:center;margin:0}.gallery-card-footer{display:flex;align-items:center;gap:16px;min-height:66px;padding:12px 0;padding-right:175px}.gallery-card-footer strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.full-build-stage>.gallery-pagination{top:auto;bottom:10px;left:auto;right:0;background:#ffffff06}.full-build-stage .gallery-full-card .card-hover-layer{border-radius:22px}@media(max-width:760px){.gallery-full-card{border-radius:12px}.gallery-card-footer{padding-right:140px;gap:8px;flex-wrap:wrap}.gallery-card-footer strong{max-width:100%;font-size:12px}.full-build-stage>.gallery-pagination{left:auto;right:0;bottom:12px;gap:5px}.full-build-stage>.gallery-pagination button{width:32px;height:32px}}

/* Preserve the polygon banner's silhouette and keep the avatar within it. */
.profile-identity .profile-avatar{width:146px;height:212px;flex:none;display:block;isolation:isolate}.profile-avatar .avatar-banner{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 14px #0005)}.profile-avatar .avatar-person{position:absolute;left:18%;top:29%;width:64%;height:44%;object-fit:contain;filter:drop-shadow(0 3px 5px #0008)}.profile-identity{gap:24px;bottom:20px}.profile-hero{min-height:320px}.showcase-only>.topbar,.showcase-only>footer{display:none}.showcase-only main{padding:20px 3vw;max-width:none}.showcase-info{display:flex;align-items:center;gap:18px;min-height:100px;padding:12px 24px;margin-bottom:18px;background:linear-gradient(110deg,color-mix(in srgb,var(--profile-accent) 22%,#101622),#10162280);border-radius:18px}.showcase-info .profile-avatar{width:62px;height:85px;flex:none}.showcase-info h1{margin:0 0 6px;font-size:24px}.showcase-info p{margin:0;font-size:13px;color:#b8c0d0}.showcase-info .profile-elements{margin:0 0 0 auto}.showcase-only .gallery-card-footer [data-open]{display:none}@media(max-width:760px){.profile-identity .profile-avatar{width:104px;height:156px}.profile-identity{bottom:96px}.profile-tools{flex-wrap:wrap}.showcase-info{padding:10px 14px;gap:12px;flex-wrap:wrap}.showcase-info .profile-elements{gap:6px}.showcase-info .profile-elements img{width:22px;height:22px}.showcase-info h1{font-size:20px}}

/* The polygon now spans the profile header from top to bottom. */
.profile-hero>.profile-identity{inset:0 auto 0 28px;height:100%;gap:28px;bottom:0}.profile-hero .profile-identity .profile-avatar{height:100%;width:clamp(170px,16vw,255px);align-self:stretch}.profile-hero .profile-avatar .avatar-banner{object-fit:fill}.profile-hero .profile-avatar .avatar-person{top:40%;left:19%;width:62%;height:38%}.profile-hero .profile-identity>div:last-child{align-self:center;margin-top:80px}.profile-hero .profile-tools{z-index:2}@media(max-width:760px){.profile-hero>.profile-identity{left:12px;gap:14px}.profile-hero .profile-identity .profile-avatar{width:128px}.profile-hero .profile-identity>div:last-child{margin-top:0}.profile-hero .profile-tools{background:#080d1780;padding:6px;border-radius:10px}}
.scan-dialog{width:min(1400px,96vw);max-height:92dvh;padding:24px}.scan-dialog .dialog-header p{font-size:12px;margin:8px 0}.scan-drop{display:grid;place-items:center;padding:30px;border:1px dashed #c9b66d80;border-radius:14px;background:#c9b66d0a;cursor:pointer}.scan-status{color:#c9b66d;min-height:20px}.scan-fields,.scan-skills{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0}.scan-review label{display:grid;gap:5px;font-size:12px}.scan-review input,.scan-review select{width:100%;min-width:0}.scan-echoes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.scan-echoes fieldset{min-width:0;border:1px solid #ffffff20;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:10px}.scan-echoes fieldset>img{width:100%;border-radius:8px}.scan-sub{display:grid;grid-template-columns:1fr 85px;gap:4px;margin-top:6px}.scan-echoes pre{white-space:pre-wrap;font-size:11px}.scan-uncertain{border-color:#e8ab43!important}.scan-error{color:#ff8891}.scan-review>[type=submit]{position:sticky;bottom:0;margin-top:14px}.scan-review .muted{font-size:12px}@media(max-width:1100px){.scan-echoes{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.scan-echoes{grid-template-columns:1fr}.scan-dialog{padding:14px}}

/* A visible exit from public showcase pages, whose normal menu is hidden. */
.showcase-info .showcase-home,.showcase-toolbar .showcase-home { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 13px; min-height:40px; color:var(--text,#eef2f8); white-space:nowrap; }
.showcase-toolbar { margin-bottom:18px; }
.showcase-home .ui-icon { width:17px; height:17px; }
@media(max-width:760px){.showcase-info .showcase-home{order:-1;width:100%;justify-content:flex-start;margin-bottom:2px}.showcase-info .profile-elements{margin-left:auto}}

/* v2.39 — Compact profile dashboard. The showcase is the only standalone row. */
body.profile-open main{width:100%;max-width:1550px;margin:0 auto;padding:24px clamp(14px,2.2vw,34px) 70px}
.profile-page{min-width:0}
.profile-top-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,.85fr);align-items:stretch;gap:18px;margin-bottom:18px}
.profile-top-grid>.profile-hero{height:312px;min-height:312px;min-width:0;border:1px solid var(--line);border-radius:22px}
.profile-top-grid .profile-cover{display:block}
.profile-top-grid .profile-hero-shade{background:linear-gradient(90deg,#090d18a8,transparent 87%),linear-gradient(0deg,#090d18ee,transparent 90%)}
.profile-top-grid .profile-identity{inset:0 auto 0 14px;gap:14px}
.profile-top-grid .profile-identity .profile-avatar{width:clamp(128px,14vw,204px);max-width:32%;height:100%}
.profile-top-grid .profile-identity>div:last-child{align-self:center;margin-top:0;min-width:0;padding-right:10px}
.profile-top-grid .profile-identity h1{font-size:clamp(23px,2.3vw,33px);overflow-wrap:anywhere}
.profile-top-grid .profile-tools{bottom:17px;right:17px;z-index:5;gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:64%}
.profile-top-grid .profile-tools .button{font-size:11px;min-height:36px;padding:9px 12px;backdrop-filter:blur(8px)}
.profile-panel{min-width:0;border:1px solid var(--line);background:linear-gradient(155deg,color-mix(in srgb,var(--profile-accent) 6%,var(--panel)),var(--panel) 65%);border-radius:20px;padding:21px;overflow:hidden}
.profile-overview{display:flex;flex-direction:column;padding:23px 24px;background:radial-gradient(circle at 92% 6%,color-mix(in srgb,var(--profile-accent) 16%,transparent),transparent 65%),var(--panel)}
.profile-overview-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.profile-online-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px var(--accent-soft)}
.profile-overview h2{font-size:24px;margin:8px 0 5px;line-height:1.25}
.profile-overview>p{color:var(--muted);font-size:12px;line-height:1.55;margin:0 0 17px}
.profile-overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-overview-metrics>div{display:grid;gap:4px;min-width:0;padding:12px 13px;border:1px solid var(--line);background:var(--input);border-radius:12px}
.profile-overview-metrics strong{font-size:23px;font-weight:600;line-height:1.2;color:var(--text)}
.profile-overview-metrics span{font-size:10px;color:var(--muted)}
.profile-overview-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:11px;color:var(--muted);font-size:10px}
.profile-overview-footer>span:last-child{color:var(--accent);font-size:20px}
.profile-content{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.95fr);gap:18px;align-items:start;padding:0}
.profile-content>section{margin:0}
.profile-content>.profile-panel{min-width:0}
.profile-content h2{font-size:18px;border-left:0;padding-left:0;margin:0;line-height:1.3}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 20px}
.profile-section-heading h2{display:block}
.profile-section-heading>span{font-size:11px;color:var(--muted)}
.profile-section-heading .eyebrow{display:block;font-size:9px;color:var(--accent);margin-bottom:7px}
.profile-favorite-builds,.profile-favorite-characters{min-height:330px}
.profile-favorite-builds .profile-gallery-host,.profile-showcase .profile-gallery-host{min-width:0}
.profile-favorite-builds .gallery-characters,.profile-showcase .gallery-characters{gap:7px;padding-bottom:12px}
.profile-favorite-builds .gallery-characters button,.profile-showcase .gallery-characters button{flex-basis:59px;padding:5px;border-radius:10px}
.profile-favorite-builds .gallery-characters img,.profile-showcase .gallery-characters img{width:43px;height:43px}
.profile-favorite-builds .gallery-characters span,.profile-showcase .gallery-characters span{font-size:9px}
.profile-favorite-builds .gallery-full-card,.profile-showcase .gallery-full-card{border-radius:12px}
.profile-favorite-builds .gallery-card-footer,.profile-showcase .gallery-card-footer{min-height:54px;padding-top:9px;padding-bottom:8px}
.profile-favorite-builds .gallery-card-footer .button,.profile-showcase .gallery-card-footer .button{min-height:32px;font-size:11px;padding:8px 12px}
.profile-favorite-builds .full-build-stage>.gallery-pagination,.profile-showcase .full-build-stage>.gallery-pagination{bottom:7px}
.profile-characters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.profile-characters button{width:100%;min-width:0;padding:12px 6px 10px;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--text);border:1px solid var(--line);background:var(--input);border-radius:13px}
.profile-characters button:hover{transform:translateY(-2px);border-color:var(--accent);background:var(--accent-soft)}
.profile-characters img{display:block;width:min(100%,76px);height:69px;object-fit:contain}
.profile-characters b{max-width:100%;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-panel-note{margin:18px 0 0;padding:13px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:11px;line-height:1.5}
.profile-empty{padding:22px 12px;font-size:12px;line-height:1.6}
.profile-showcase{grid-column:1/-1;width:min(100%,1140px);justify-self:center;margin:4px 0 0!important;padding:25px 28px}
.profile-showcase .section-line{margin-bottom:17px}
.profile-workspace{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.85fr);align-items:start;gap:18px}
.profile-collection{min-width:0}
.profile-workspace .profile-imported-collection{margin:0;min-width:0}
.profile-collection .collection-toolbar{padding:14px 16px}
.profile-collection .collection-toolbar .button{font-size:11px}
.profile-collection .collection-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-collection .collection-achievements{grid-column:1/-1}
.profile-collection .collection-achievements>.collection-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;max-height:360px}
.profile-collection .collection-panel-head{padding:12px 13px}
.profile-collection .collection-panel-head h2{font-size:14px}
.profile-collection .collection-items{grid-template-columns:repeat(auto-fill,minmax(72px,1fr))}
.profile-collection .collection-player{padding:14px 10px}
.profile-collection .collection-player-info{gap:8px}
.profile-collection .collection-avatar{width:50px;height:50px}
.profile-library .profile-section-heading{align-items:start}
.profile-library .profile-section-heading>span{margin-top:6px}
.profile-legacy-import{max-width:100%;white-space:normal;text-align:center;margin-bottom:12px;font-size:11px}
.profile-legacy-import[hidden]{display:none}
.profile-library .profile-build-grid{grid-template-columns:minmax(0,1fr);gap:12px}
.profile-library .profile-build{min-width:0;padding:14px;border:1px solid var(--line);border-top:2px solid var(--profile-accent);border-radius:13px}
.profile-library .profile-build-top h3{font-size:14px}
.profile-library .profile-build-top>img{width:52px;height:52px}
.profile-library .profile-build-top span{font-size:10px}
.profile-library .profile-build-weapon{margin:8px 0}
.profile-library .profile-build-weapon img{width:36px;height:36px}
.profile-library .profile-build-echoes>span{height:49px}
.profile-library .profile-build-echoes img{height:43px}
.profile-library .profile-build-actions{gap:9px 12px;margin-top:12px}
.profile-library .profile-build-actions .button{font-size:11px;min-height:34px;padding:7px 10px}
.profile-library .profile-build-actions label{font-size:11px}
@media(max-width:1190px){.profile-top-grid{grid-template-columns:minmax(0,1.35fr) minmax(240px,.85fr)}.profile-content{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)}.profile-workspace{grid-template-columns:minmax(0,1fr)}.profile-collection .collection-layout{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-library .profile-build-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){body.profile-open main{padding:16px 12px 45px}.profile-top-grid{grid-template-columns:1fr;gap:12px}.profile-top-grid>.profile-hero{height:280px;min-height:280px}.profile-top-grid .profile-identity .profile-avatar{width:clamp(100px,28vw,170px);max-width:none}.profile-overview{padding:19px}.profile-overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-overview-metrics>div{padding:12px 8px}.profile-overview-metrics strong{font-size:20px}.profile-overview-metrics span{font-size:9px}.profile-content{grid-template-columns:1fr;gap:12px}.profile-showcase{grid-column:auto;width:100%;padding:18px}.profile-workspace{grid-column:auto;grid-template-columns:1fr;gap:12px}.profile-library .profile-build-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-top-grid .profile-tools{bottom:14px;right:14px;left:auto}.profile-top-grid .profile-tools .button{font-size:10px;min-height:30px;padding:7px 9px}}
@media(max-width:520px){.profile-panel{padding:16px}.profile-top-grid>.profile-hero{height:300px;min-height:300px}.profile-top-grid .profile-identity{left:6px;gap:5px}.profile-top-grid .profile-identity .profile-avatar{width:112px}.profile-top-grid .profile-identity h1{font-size:22px}.profile-top-grid .profile-identity>div:last-child{min-width:0;padding-right:6px}.profile-top-grid .profile-tools{bottom:8px;right:8px;left:8px;max-width:none;gap:5px}.profile-top-grid .profile-tools .button{padding:7px 9px;font-size:10px}.profile-top-grid .profile-identity{inset:0 auto 32px 6px}.profile-overview>p{font-size:11px}.profile-overview-metrics{gap:5px}.profile-overview-metrics>div{padding:10px 6px}.profile-overview-metrics strong{font-size:19px}.profile-overview-metrics span{font-size:9px;line-height:1.3}.profile-characters{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.profile-characters button{padding:10px 4px}.profile-collection .collection-layout{grid-template-columns:1fr}.profile-collection .collection-achievements{grid-column:auto}.profile-collection .collection-achievements>.collection-scroll{display:block}.profile-library .profile-build-grid{grid-template-columns:1fr}.profile-section-heading>span{font-size:10px}}

/* Keep account actions inside the compact profile overview, away from the art. */
.profile-top-grid>.profile-hero{height:auto;min-height:338px}
.profile-overview .profile-tools{position:static;display:flex;gap:8px;flex-wrap:wrap;max-width:none;justify-content:stretch;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.profile-overview .profile-tools .button{flex:1 1 auto;min-width:0;min-height:36px;padding:9px 12px;font-size:11px}
.profile-overview .profile-tools .button:first-child{flex:1 1 100%}
.profile-top-grid .profile-hero .profile-identity>div:last-child{margin-top:0}
@media(max-width:780px){.profile-top-grid>.profile-hero{height:280px;min-height:280px}.profile-overview .profile-tools{margin-top:10px}}
@media(max-width:520px){.profile-top-grid>.profile-hero{height:285px;min-height:285px}}
.profile-overview .profile-tools:empty{display:none}

/* v2.40: full-width cover again; favorites reuse the saved-build card, showcase gets more room. */
body.profile-open main{width:100%;max-width:none;margin:0;padding:20px clamp(16px,2.2vw,44px) 76px}
.profile-top-grid{display:block;margin-bottom:14px}
.profile-top-grid>.profile-hero{width:100%;height:355px;min-height:355px;max-width:none}
.profile-top-grid .profile-identity{left:24px;gap:22px}
.profile-top-grid .profile-identity .profile-avatar{width:clamp(160px,15vw,238px);max-width:none}
.profile-top-grid .profile-identity h1{font-size:clamp(28px,3vw,42px)}
.profile-top-grid .profile-hero .profile-tools{position:absolute;left:auto;right:24px;bottom:24px;max-width:55%;z-index:5;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.profile-top-grid .profile-hero .profile-tools .button{min-height:39px;padding:9px 16px;flex:none;background:var(--panel-2);color:var(--text);border:1px solid var(--line)}
.profile-top-grid .profile-hero .profile-tools .button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.profile-overview{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:16px 22px}
.profile-overview-intro{flex:1;min-width:190px}
.profile-overview-intro .eyebrow{font-size:9px}
.profile-overview-intro h2{font-size:19px;margin:6px 0 4px}
.profile-overview-intro p{font-size:11px;color:var(--muted);margin:0}
.profile-overview-metrics{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:10px;flex:1.4;max-width:760px}
.profile-overview-metrics>div{padding:10px 14px}
.profile-overview-metrics strong{font-size:22px}
.profile-content{grid-template-columns:minmax(0,1.16fr) minmax(320px,.84fr);gap:18px}
.profile-favorite-builds .profile-build-grid{grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:12px}
.profile-favorite-builds .profile-build{min-width:0;padding:14px;border:1px solid var(--line);border-top:2px solid var(--profile-accent);border-radius:13px}
.profile-favorite-builds .profile-build-top h3{font-size:14px}
.profile-favorite-builds .profile-build-top>img{width:52px;height:52px}
.profile-favorite-builds .profile-build-top span{font-size:10px}
.profile-favorite-builds .profile-build-weapon{margin:8px 0}
.profile-favorite-builds .profile-build-weapon img{width:36px;height:36px}
.profile-favorite-builds .profile-build-echoes>span{height:49px;min-width:0}
.profile-favorite-builds .profile-build-echoes img{height:43px}
.profile-favorite-builds .profile-build-actions{gap:9px 12px;margin-top:12px}
.profile-favorite-builds .profile-build-actions .button{font-size:11px;min-height:34px;padding:7px 10px}
.profile-favorite-builds .profile-build-actions label{font-size:11px}
.profile-favorite-builds{min-height:0}
.profile-showcase{grid-column:1/-1;width:min(100%,1490px);max-width:100%;padding:27px 29px;margin:5px auto!important}
.profile-showcase .gallery-characters{padding:8px 0 17px;gap:10px}
.profile-showcase .gallery-characters button{flex-basis:69px}
.profile-showcase .gallery-characters img{height:50px;width:50px}
.profile-showcase .gallery-full-card{border-radius:15px}
@media(max-width:1100px){.profile-overview{flex-wrap:wrap}.profile-overview-metrics{flex:1 1 100%;max-width:none}.profile-top-grid>.profile-hero{height:330px;min-height:330px}}
@media(max-width:780px){body.profile-open main{padding:16px 12px 45px}.profile-top-grid>.profile-hero{height:290px;min-height:290px}.profile-top-grid .profile-identity{left:10px;gap:8px}.profile-top-grid .profile-identity .profile-avatar{width:clamp(102px,23vw,158px);max-width:none}.profile-top-grid .profile-identity h1{font-size:clamp(23px,4vw,30px)}.profile-overview{padding:14px;gap:14px}.profile-overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.profile-overview-metrics>div{padding:9px 7px}.profile-overview-metrics span{font-size:9px}.profile-content{grid-template-columns:1fr;gap:12px}.profile-showcase{grid-column:auto;padding:18px}.profile-favorite-builds .profile-build-grid{grid-template-columns:repeat(auto-fit,minmax(265px,1fr))}}
@media(max-width:520px){.profile-top-grid>.profile-hero{height:290px;min-height:290px}.profile-top-grid .profile-hero .profile-tools{left:10px;right:10px;bottom:10px;max-width:none;justify-content:flex-end}.profile-top-grid .profile-hero .profile-tools .button{font-size:10px;min-height:31px;padding:7px 9px}.profile-top-grid .profile-identity{left:6px;inset:0 auto 28px 6px}.profile-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-favorite-builds .profile-build-grid{grid-template-columns:1fr}.profile-showcase .gallery-characters button{flex-basis:55px}.profile-showcase .gallery-characters img{width:38px;height:38px}}


/* v2.43 — full-width favorites, compact twin build columns, expanded showcase. */
.profile-content{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;padding:0}
.profile-content>.profile-favorite-characters,
.profile-content>.profile-builds-row,
.profile-content>.profile-showcase,
.profile-content>.profile-collection{grid-column:1;width:100%;max-width:none;min-width:0;justify-self:stretch;margin:0!important}
.profile-favorite-characters{min-height:0;padding:18px 22px}
.profile-favorite-characters .profile-section-heading{margin-bottom:12px}
.profile-favorite-characters .profile-characters{display:flex;flex-wrap:wrap;align-items:center;gap:9px;width:100%}
.profile-favorite-characters .profile-characters button{flex:0 0 64px;width:64px;height:64px;min-width:0;display:grid;place-items:center;padding:7px;border-radius:12px;border:1px solid var(--line);background:var(--input);transition:transform .18s,border-color .18s}
.profile-favorite-characters .profile-characters button img{width:48px;height:48px;max-width:100%;object-fit:contain}
.profile-favorite-characters .profile-panel-note{display:none}
.profile-builds-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px;align-items:start}
.profile-builds-row:not(:has(.profile-library)){grid-template-columns:minmax(0,1fr)}
.profile-builds-row>.profile-panel{min-width:0;min-height:0;padding:18px 20px}
.profile-builds-row .profile-section-heading{margin-bottom:14px}
.profile-builds-row .profile-build-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr));gap:10px}
.profile-builds-row .profile-build{min-width:0;padding:11px 12px;border-radius:12px;border:1px solid var(--line);border-top:2px solid var(--profile-accent)}
.profile-builds-row .profile-build-top{gap:8px}
.profile-builds-row .profile-build-top>img:not(.build-element){width:42px;height:42px;flex:none}
.profile-builds-row .profile-build-top h3{font-size:12px;line-height:1.35;overflow-wrap:anywhere;margin:0 0 3px}
.profile-builds-row .profile-build-top span{font-size:10px}
.profile-builds-row .profile-build-top .build-element{width:23px;height:23px;flex:none}
.profile-builds-row .profile-build-weapon{gap:8px;margin:6px 0;font-size:10px;min-width:0}
.profile-builds-row .profile-build-weapon img{width:28px;height:28px;flex:none}
.profile-builds-row .profile-build-weapon span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-builds-row .profile-build-echoes{gap:4px;min-width:0}
.profile-builds-row .profile-build-echoes>span{min-width:0;height:42px;border-radius:7px}
.profile-builds-row .profile-build-echoes img{height:37px;width:100%;object-fit:contain}
.profile-builds-row .profile-build-echoes small{font-size:8px;bottom:0;right:2px}
.profile-builds-row .profile-build-actions{margin-top:9px;gap:7px 9px}
.profile-builds-row .profile-build-actions .button{min-height:29px;padding:6px 8px;font-size:10px}
.profile-builds-row .profile-build-actions label{font-size:10px;white-space:nowrap;gap:4px}
.profile-builds-row .profile-build-actions input{width:13px;height:13px}
.profile-builds-row .profile-build-actions .text-button{font-size:14px;padding:3px 6px}
.profile-showcase{width:100%!important;max-width:none!important;justify-self:stretch;padding:24px clamp(15px,2vw,32px);margin:0!important}
.profile-showcase .gallery-full-card{width:100%;max-width:none}
.profile-content>.profile-collection{display:block}
.profile-content>.profile-collection>.profile-imported-collection{width:100%;min-width:0;margin:0}
@media(max-width:1100px){.profile-builds-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.profile-builds-row .profile-build-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){.profile-content{gap:12px}.profile-builds-row{grid-template-columns:minmax(0,1fr);gap:12px}.profile-builds-row .profile-build-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr))}.profile-favorite-characters{padding:15px 16px}.profile-showcase{padding:18px}}
@media(max-width:520px){.profile-favorite-characters .profile-characters{gap:6px}.profile-favorite-characters .profile-characters button{flex-basis:54px;width:54px;height:54px;padding:5px}.profile-favorite-characters .profile-characters button img{width:43px;height:43px}.profile-builds-row .profile-build-grid{grid-template-columns:minmax(0,1fr)}}

/* v2.44 — bounded, filterable build lists (filters stay outside the scroll area). */
.profile-builds-row>.profile-panel{min-width:0;align-self:start}
.profile-builds-row .profile-build-filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:-2px 0 12px}
.profile-builds-row .profile-build-filters label{display:grid;flex:1 1 145px;min-width:115px;gap:5px;font-size:10px;color:var(--muted)}
.profile-builds-row .profile-build-filters select{width:100%;max-width:100%;height:35px;padding:6px 9px;font-size:11px;border:1px solid var(--line);border-radius:9px;background:var(--input);color:var(--text)}
.profile-builds-row .profile-filter-count{font-size:10px;color:var(--muted);white-space:nowrap;padding:0 3px 9px}
.profile-builds-row .profile-build-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));max-height:470px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;align-content:start;padding:2px 5px 4px 1px}
.profile-builds-row .profile-build[hidden],.profile-builds-row .profile-filter-empty[hidden]{display:none!important}
.profile-builds-row .profile-filter-empty{padding:18px 8px;font-size:12px}
.profile-builds-row .profile-build-actions{gap:5px 7px}
@media(max-width:800px){.profile-builds-row .profile-build-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr));max-height:430px}}
@media(max-width:520px){.profile-builds-row .profile-build-filters{gap:7px}.profile-builds-row .profile-build-filters label{flex-basis:125px}.profile-builds-row .profile-build-grid{grid-template-columns:minmax(0,1fr);max-height:400px}}

/* v2.46: imported account must never be clipped by the outer panel's scrollbar. */
.profile-collection .collection-profile-row-primary{align-items:start;max-width:none;width:100%;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-collection .collection-profile-row-primary>.collection-panel,
.profile-collection .collection-profile-row-primary>.collection-panel:first-child{height:auto!important;max-height:none!important;min-height:0;overflow:hidden!important;align-self:start}
.profile-collection .collection-profile-row-primary .collection-achievements>.collection-scroll{
 max-height:350px!important;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;
}
.profile-collection .collection-profile-row-primary .collection-cards{max-height:210px;overflow-y:auto;overscroll-behavior:contain;align-content:start}
.profile-collection .collection-profile-row-primary .collection-cards img{aspect-ratio:2.5;object-fit:cover}
.profile-collection .collection-profile-row-primary .collection-player{min-height:185px}
.profile-collection .collection-profile-row-primary .collection-mini-stats{margin-top:0}
@media(max-width:860px){.profile-collection .collection-profile-row-primary{grid-template-columns:minmax(0,1fr)}.profile-collection .collection-profile-row-primary .collection-achievements>.collection-scroll{grid-template-columns:minmax(0,1fr);max-height:320px!important}}

/* v2.47: allow native scroll chaining on profile panels at their edges. */
 .profile-page .profile-build-grid, .profile-page .collection-scroll, .profile-page .collection-cards {overscroll-behavior-y:auto;}
/* Icon selections remain native keyboard controls without visible checkboxes. */
.account-dialog.profile-settings-dialog{width:min(880px,94vw);max-width:94vw;padding:24px}
.profile-settings-dialog .profile-edit{display:flex;flex-direction:column;gap:18px}
.profile-settings-dialog .dialog-header{margin:0}.profile-settings-dialog .eyebrow{font-size:10px;color:var(--accent);margin-bottom:6px}
.profile-settings-preview{position:relative;isolation:isolate;display:flex;align-items:end;gap:17px;min-height:150px;padding:20px;overflow:hidden;border-radius:16px;background:#101725}
.profile-settings-preview:after{position:absolute;inset:0;z-index:-1;content:'';background:linear-gradient(90deg,#07101bcf,transparent),linear-gradient(0deg,#07101be8,transparent)}
.settings-preview-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.settings-preview-avatar{width:82px;height:82px;object-fit:contain;border-radius:50%;background:#09111b80}
.profile-settings-preview>div{min-width:0;overflow-wrap:anywhere}.profile-settings-preview strong{display:block;font-size:24px;color:#fff}.profile-settings-preview small{display:block;margin-top:8px;color:#d4dce9}
.profile-settings-tabs{display:flex;gap:7px;padding:5px;background:#0002;border-radius:12px}.profile-settings-tabs button{flex:1;padding:11px;border:0;border-radius:9px;background:transparent;color:var(--muted);transition:background .2s,color .2s}
.profile-settings-tabs button[aria-selected=true]{background:color-mix(in srgb,var(--accent) 17%,var(--panel));color:var(--text)}
.profile-picker-search{display:flex;align-items:center;gap:9px;margin-bottom:12px}.profile-picker-search input{width:100%;min-width:0}.profile-picker-search .ui-icon{width:20px;height:20px;color:var(--muted)}
.profile-settings-dialog .profile-picker{display:grid;gap:10px;border:0;padding:0;margin:0;max-height:360px;overflow:auto;align-content:start}.profile-picker legend{float:left;width:100%;font-size:12px;color:var(--muted);padding:0 0 10px;grid-column:1/-1}
.profile-settings-dialog .profile-card-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-settings-dialog .profile-char-picker{grid-template-columns:repeat(auto-fill,minmax(86px,1fr))}.profile-settings-dialog .profile-element-picker{grid-template-columns:repeat(6,minmax(0,1fr));max-height:none;margin-bottom:22px}
.profile-settings-dialog .profile-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:9px;border:1px solid transparent;border-radius:12px;background:#ffffff04;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.profile-option input{position:absolute!important;width:1px!important;height:1px!important;opacity:0;clip-path:inset(50%);padding:0!important;min-height:0!important}.profile-option>i{display:none;position:absolute;right:6px;top:6px;background:var(--accent);color:#09101a;width:19px;height:19px;border-radius:50%;font-size:12px;align-items:center;justify-content:center;font-style:normal}
.profile-settings-dialog .profile-option:has(input:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,transparent)}.profile-option:has(input:checked)>i{display:flex}.profile-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.profile-option:hover{transform:translateY(-2px);background:#ffffff0b}.profile-option>span{font-size:11px;line-height:1.4;text-align:center;max-width:100%;overflow-wrap:anywhere}.profile-settings-dialog .profile-card-picker img{width:100%;height:67px;object-fit:cover;border-radius:7px}.profile-settings-dialog .profile-char-picker img{width:58px;height:58px;object-fit:contain}.profile-settings-dialog .profile-element-picker img{width:33px;height:33px;object-fit:contain}
.profile-settings-dialog .profile-option[hidden]{display:none!important}
.profile-settings-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;position:sticky;bottom:-24px;padding:14px 0;background:var(--panel);border-top:1px solid var(--line);z-index:2}.profile-settings-footer .account-error{flex:1;min-width:0;margin:0}
@media(max-width:760px){body .account-dialog.profile-settings-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);padding:16px}.profile-settings-dialog .profile-edit{gap:14px}.profile-settings-preview{min-height:125px;padding:15px}.settings-preview-avatar{width:62px;height:62px}.profile-settings-preview>div{min-width:0;overflow-wrap:anywhere}.profile-settings-preview strong{font-size:21px}.profile-settings-dialog .profile-card-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-settings-dialog .profile-element-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-settings-dialog .profile-picker{max-height:43dvh}.profile-settings-dialog .profile-char-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-settings-footer{bottom:-16px}.profile-settings-footer .button{min-height:44px}.profile-settings-preview small{font-size:12px}}
@media(prefers-reduced-motion:reduce){.profile-option,.profile-settings-tabs button{transition:none}.profile-option:hover{transform:none}}
