/* Profile Theme Library v3. Shared visual language, distinct surfaces per preset.
   The member's --profile-accent override remains authoritative. */
#profile{
 --pf-surface:#242128;--pf-surface-deep:#0d1013;--pf-border:#827076;
 --pf-spot:rgba(178,91,104,.16);--pf-spot-alt:rgba(146,161,138,.08);
 --pf-heading:#ece1d3;--pf-dim:#b9afa8;
 position:relative;isolation:isolate;
 background:radial-gradient(circle at 12% 0%,var(--pf-spot),transparent 38%),
 radial-gradient(circle at 95% 68%,var(--pf-spot-alt),transparent 48%),
 linear-gradient(157deg,var(--pf-surface),var(--pf-surface-deep) 81%);
 border:1px solid color-mix(in srgb,var(--pf-border) 55%,var(--profile-accent,#b25b68) 45%);box-shadow:0 24px 70px #0009,inset 0 1px #ffffff10;
}
#profile[data-theme="ember"]{--pf-surface:#242128;--pf-surface-deep:#0d1013;--pf-border:#827076;--pf-spot:rgba(178,91,104,.20);--pf-spot-alt:rgba(199,167,124,.08)}
#profile[data-theme="midnight"]{--pf-surface:#141a3b;--pf-surface-deep:#080f23;--pf-border:#526ba3;--pf-spot:rgba(98,127,255,.19);--pf-spot-alt:rgba(121,232,255,.08)}
#profile[data-theme="toxic"]{--pf-surface:#16261e;--pf-surface-deep:#0d1419;--pf-border:#507f53;--pf-spot:rgba(156,232,75,.16);--pf-spot-alt:rgba(85,215,167,.09)}
#profile[data-theme="bubblegum"]{--pf-surface:#281731;--pf-surface-deep:#151426;--pf-border:#a14d92;--pf-spot:rgba(255,98,199,.22);--pf-spot-alt:rgba(166,118,255,.1)}
#profile[data-theme="mono"]{--pf-surface:#24252c;--pf-surface-deep:#101219;--pf-border:#707583;--pf-spot:rgba(225,225,238,.09);--pf-spot-alt:rgba(180,190,212,.05)}
#profile[data-theme="gravewave"]{--pf-surface:#152333;--pf-surface-deep:#0b1221;--pf-border:#4d9c9b;--pf-spot:rgba(121,255,231,.19);--pf-spot-alt:rgba(255,85,216,.13)}
#profile[data-theme="bloodmoon"]{--pf-surface:#301921;--pf-surface-deep:#120d17;--pf-border:#ac536b;--pf-spot:rgba(255,102,119,.23);--pf-spot-alt:rgba(255,85,216,.07)}
#profile[data-theme="spectral"]{--pf-surface:#211b37;--pf-surface-deep:#0b0e25;--pf-border:#8670b7;--pf-spot:rgba(197,156,255,.21);--pf-spot-alt:rgba(121,255,231,.09)}
#profile[data-theme="void"]{--pf-surface:#1d2430;--pf-surface-deep:#070c14;--pf-border:#75879c;--pf-spot:rgba(212,233,255,.11);--pf-spot-alt:rgba(111,126,163,.07)}
#profile[data-theme="gravewave"] .profile-cover{background:radial-gradient(circle at 30% 0%,#79ffe73b,transparent 51%),repeating-linear-gradient(115deg,transparent 0 22px,#79ffe711 22px 23px),#0b1727}
#profile[data-theme="bloodmoon"] .profile-cover{background:radial-gradient(circle at 75% 34%,#ff667746 0 13%,transparent 14%),linear-gradient(125deg,#481627,#100d18)}
#profile[data-theme="spectral"] .profile-cover{background:radial-gradient(ellipse at 20% 20%,#c59cff4d,transparent 52%),linear-gradient(125deg,#22193b,#0b1526)}
#profile[data-theme="void"] .profile-cover{background:radial-gradient(ellipse at 60% 30%,#a9c8eb42,transparent 42%),linear-gradient(120deg,#202d42,#070c13)}
#profile .profile-heading h1{color:color-mix(in srgb,var(--profile-accent,#b25b68) 65%,#fff 35%);text-shadow:0 0 28px color-mix(in srgb,var(--profile-accent,#b25b68) 18%,transparent);overflow-wrap:anywhere}
#profile .profile-heading .handle,#profile .profile-tagline,#profile .muted{color:var(--pf-dim)}
#profile .profile-actions-wrap .action,#profile :is(.friends-panel,.profile-photo-card,.profile-favorites,.profile-social-panel,.profile-birth-chart,.profile-album-tools,.activity-card){
 border-color:color-mix(in srgb,var(--pf-border) 65%,var(--profile-accent,#b25b68) 35%);
 background:radial-gradient(ellipse at 8% 0%,color-mix(in srgb,var(--profile-accent,#b25b68) 7%,transparent),transparent 55%),linear-gradient(160deg,var(--pf-surface),var(--pf-surface-deep));
 box-shadow:inset 0 1px #ffffff0a,0 8px 24px #0002
}
#profile .profile-actions-wrap .action{min-height:43px;border-radius:10px;font-weight:850;color:#e9e3f4}
#profile .profile-actions-wrap .action.primary{background:color-mix(in srgb,var(--profile-accent,#b25b68) 17%,var(--pf-surface));border-color:var(--profile-accent,#b25b68)}
#profile .profile-actions-wrap .action:hover,#profile .profile-actions-wrap .action:focus-visible{border-color:var(--profile-accent,#b25b68);color:#fff;filter:brightness(1.15)}
#profile :is(.profile-quote,.profile-status-message){border-color:color-mix(in srgb,var(--profile-accent,#b25b68) 60%,#8b759c);background:color-mix(in srgb,var(--pf-surface) 94%,var(--profile-accent,#b25b68) 6%);color:#eee7f7}
#profile .profile-stats>div{border:1px solid color-mix(in srgb,var(--pf-border) 70%,var(--profile-accent,#b25b68) 30%)!important;background:linear-gradient(153deg,var(--pf-surface),var(--pf-surface-deep))!important;border-radius:13px!important}
#profile .profile-stats b{color:var(--profile-accent,#b25b68)}
#profile :is(a,button,input,textarea,select):focus-visible{outline:2px solid var(--profile-accent,#b25b68);outline-offset:3px}
#profile :is(.profile-favorites,.profile-social-panel,.profile-birth-chart,.friends-panel){padding:clamp(13px,2vw,22px)}
#profile .profile-favorites strong{color:var(--pf-dim)}
#profile .profile-favorites h2,#profile .friends-panel h2,#profile .photo-gallery-head h2{color:var(--profile-accent,#b25b68)}
#profile .avatar-img,#profile .avatar{border:3px solid var(--profile-accent,#b25b68);box-shadow:0 0 0 4px color-mix(in srgb,var(--profile-accent,#b25b68) 12%,transparent),0 7px 28px #0008}
#profile .profile-cover{border-color:color-mix(in srgb,var(--profile-accent,#b25b68) 35%,var(--pf-border))}
#profile .profile-cover img{width:100%;height:100%;object-fit:cover}
@media(max-width:620px){#profile .profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#profile .profile-actions-wrap{position:relative;z-index:1}#profile .profile-heading h1{font-size:clamp(1.4rem,7vw,2.5rem)}}
@media(prefers-reduced-motion:reduce){#profile :is(a,button){transition:none!important}}
/* Matched theme shapes in the Studio preview, not just tint swapping. */
.studio-preview-card[data-theme="ember"]{background:radial-gradient(circle at 5% 0%,#b25b681b,transparent 55%),#17171c}
.studio-preview-card[data-theme="midnight"]{background:radial-gradient(circle at 25% 0%,#7894ff24,transparent 55%),#0d132b}
.studio-preview-card[data-theme="toxic"]{background:radial-gradient(circle at 15% 0%,#9ce84b23,transparent 55%),#0c1c19}
.studio-preview-card[data-theme="bubblegum"]{background:radial-gradient(circle at 15% 0%,#ff62c730,transparent 55%),#1b0f25}
.studio-preview-card[data-theme="mono"]{background:linear-gradient(140deg,#282932,#11111a)}
.studio-preview-card[data-theme="gravewave"]{background:radial-gradient(ellipse at 15% 0%,#79ffe724,transparent 55%),linear-gradient(120deg,#182437,#0b1221)}
.studio-preview-card[data-theme="bloodmoon"]{background:radial-gradient(ellipse at 85% 0%,#ff667730,transparent 56%),linear-gradient(120deg,#2f1928,#120d18)}
.studio-preview-card[data-theme="spectral"]{background:radial-gradient(ellipse at 15% 0%,#c59cff30,transparent 58%),linear-gradient(120deg,#261d40,#0b1325)}
.studio-preview-card[data-theme="void"]{background:radial-gradient(ellipse at 40% 0%,#e0f4ff21,transparent 52%),linear-gradient(125deg,#202838,#080e19)}
.studio-theme-presets [data-theme-preset]{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:43px;padding:9px 12px!important}
.studio-theme-presets [data-theme-preset]::before{content:"";flex:none;display:inline-block;width:15px;height:15px;border:1px solid #ffffff70;border-radius:50%;background:var(--theme-dot,#b25b68);box-shadow:0 0 8px var(--theme-dot,#b25b68)}
.studio-theme-presets [data-theme-preset="midnight"]{--theme-dot:#7894ff}.studio-theme-presets [data-theme-preset="toxic"]{--theme-dot:#9ce84b}.studio-theme-presets [data-theme-preset="bubblegum"]{--theme-dot:#ff62c7}.studio-theme-presets [data-theme-preset="mono"]{--theme-dot:#e4e4e4}.studio-theme-presets [data-theme-preset="gravewave"]{--theme-dot:#79ffe7}.studio-theme-presets [data-theme-preset="bloodmoon"]{--theme-dot:#ff6677}.studio-theme-presets [data-theme-preset="spectral"]{--theme-dot:#c59cff}.studio-theme-presets [data-theme-preset="void"]{--theme-dot:#e0f4ff}

/* Shared art collection presets: one theme contract, one profile stylesheet. */
#profile[data-theme="obsidian"],.studio-preview-card[data-theme="obsidian"]{--pf-surface:#20162f;--pf-surface-deep:#0b0e1c;--pf-border:#a875ff;--pf-spot:color-mix(in srgb,#a875ff 22%,transparent);--pf-spot-alt:color-mix(in srgb,#a875ff 8%,transparent);--pf-heading:#fff2ec;--pf-dim:#d0c2c9;--pf-collection-art:url("/assets/knightfall/chaosphere/obsidian-chat.svg");--pf-panel-art:url("/assets/knightfall/chaosphere/obsidian-panel.svg")}
#profile[data-theme="hellfire"],.studio-preview-card[data-theme="hellfire"]{--pf-surface:#31151a;--pf-surface-deep:#140b0e;--pf-border:#ff7826;--pf-spot:color-mix(in srgb,#ff7826 22%,transparent);--pf-spot-alt:color-mix(in srgb,#ff7826 8%,transparent);--pf-heading:#fff2ec;--pf-dim:#d0c2c9;--pf-collection-art:url("/assets/knightfall/chaosphere/hellfire-chat.svg");--pf-panel-art:url("/assets/knightfall/chaosphere/hellfire-panel.svg")}
#profile[data-theme="egypt"],.studio-preview-card[data-theme="egypt"]{--pf-surface:#1a3030;--pf-surface-deep:#0b1b22;--pf-border:#e9bd69;--pf-spot:color-mix(in srgb,#e9bd69 22%,transparent);--pf-spot-alt:color-mix(in srgb,#e9bd69 8%,transparent);--pf-heading:#fff2ec;--pf-dim:#d0c2c9;--pf-collection-art:url("/assets/knightfall/chaosphere/egypt-chat.svg");--pf-panel-art:url("/assets/knightfall/chaosphere/egypt-panel.svg")}
#profile[data-theme="mustafar"],.studio-preview-card[data-theme="mustafar"]{--pf-surface:#311b19;--pf-surface-deep:#0d0e14;--pf-border:#f25832;--pf-spot:color-mix(in srgb,#f25832 22%,transparent);--pf-spot-alt:color-mix(in srgb,#f25832 8%,transparent);--pf-heading:#fff2ec;--pf-dim:#d0c2c9;--pf-collection-art:url("/assets/knightfall/chaosphere/mustafar-chat.svg");--pf-panel-art:url("/assets/knightfall/chaosphere/mustafar-panel.svg")}
#profile[data-theme="korriban"],.studio-preview-card[data-theme="korriban"]{--pf-surface:#2b2029;--pf-surface-deep:#100f18;--pf-border:#d38a94;--pf-spot:color-mix(in srgb,#d38a94 22%,transparent);--pf-spot-alt:color-mix(in srgb,#d38a94 8%,transparent);--pf-heading:#fff2ec;--pf-dim:#d0c2c9;--pf-collection-art:url("/assets/knightfall/chaosphere/korriban-chat.svg");--pf-panel-art:url("/assets/knightfall/chaosphere/korriban-panel.svg")}
#profile[data-theme="vader"],.studio-preview-card[data-theme="vader"]{--pf-surface:#1e1e26;--pf-surface-deep:#090a10;--pf-border:#f14457;--pf-spot:color-mix(in srgb,#f14457 22%,transparent);--pf-spot-alt:color-mix(in srgb,#f14457 8%,transparent);--pf-heading:#fff2ec;--pf-dim:#d0c2c9;--pf-collection-art:url("/assets/knightfall/chaosphere/vader-chat.svg");--pf-panel-art:url("/assets/knightfall/chaosphere/vader-panel.svg")}
#profile[data-theme] .profile-cover{background-image:linear-gradient(#080a10a0,#080a10b8),var(--pf-collection-art,none);background-size:cover;background-position:center}
#profile[data-theme] :is(.profile-heading,.profile-about-heading,.profile-birth-chart>h2){background-image:var(--pf-panel-art,none);background-position:top center;background-size:100% 100%;background-repeat:no-repeat}
.studio-preview-card[data-theme="obsidian"]{background:linear-gradient(145deg,var(--pf-surface),var(--pf-surface-deep));border-color:var(--pf-border)}.studio-preview-card[data-theme="obsidian"] .studio-preview-cover{background:linear-gradient(#0b0b15a0,#0b0b15a0),url("/assets/knightfall/chaosphere/obsidian-chat.svg") center/cover}
.studio-preview-card[data-theme="hellfire"]{background:linear-gradient(145deg,var(--pf-surface),var(--pf-surface-deep));border-color:var(--pf-border)}.studio-preview-card[data-theme="hellfire"] .studio-preview-cover{background:linear-gradient(#0b0b15a0,#0b0b15a0),url("/assets/knightfall/chaosphere/hellfire-chat.svg") center/cover}
.studio-preview-card[data-theme="egypt"]{background:linear-gradient(145deg,var(--pf-surface),var(--pf-surface-deep));border-color:var(--pf-border)}.studio-preview-card[data-theme="egypt"] .studio-preview-cover{background:linear-gradient(#0b0b15a0,#0b0b15a0),url("/assets/knightfall/chaosphere/egypt-chat.svg") center/cover}
.studio-preview-card[data-theme="mustafar"]{background:linear-gradient(145deg,var(--pf-surface),var(--pf-surface-deep));border-color:var(--pf-border)}.studio-preview-card[data-theme="mustafar"] .studio-preview-cover{background:linear-gradient(#0b0b15a0,#0b0b15a0),url("/assets/knightfall/chaosphere/mustafar-chat.svg") center/cover}
.studio-preview-card[data-theme="korriban"]{background:linear-gradient(145deg,var(--pf-surface),var(--pf-surface-deep));border-color:var(--pf-border)}.studio-preview-card[data-theme="korriban"] .studio-preview-cover{background:linear-gradient(#0b0b15a0,#0b0b15a0),url("/assets/knightfall/chaosphere/korriban-chat.svg") center/cover}
.studio-preview-card[data-theme="vader"]{background:linear-gradient(145deg,var(--pf-surface),var(--pf-surface-deep));border-color:var(--pf-border)}.studio-preview-card[data-theme="vader"] .studio-preview-cover{background:linear-gradient(#0b0b15a0,#0b0b15a0),url("/assets/knightfall/chaosphere/vader-chat.svg") center/cover}

/* Collection typography and modern curved surfaces. Uses installed system fonts, no extra font files. */
#profile[data-theme="egypt"]{--pf-display:Georgia,"Palatino Linotype",serif;--pf-body:"Trebuchet MS",system-ui,sans-serif}
#profile[data-theme="hellfire"],#profile[data-theme="mustafar"]{--pf-display:Impact,"Arial Narrow",sans-serif;--pf-body:"Trebuchet MS",system-ui,sans-serif}
#profile[data-theme="vader"],#profile[data-theme="korriban"]{--pf-display:"Arial Black",system-ui,sans-serif;--pf-body:"Segoe UI",system-ui,sans-serif}
#profile[data-theme="obsidian"]{--pf-display:"Trebuchet MS",system-ui,sans-serif;--pf-body:"Segoe UI",system-ui,sans-serif}
#profile[data-theme] {font-family:var(--pf-body,system-ui,sans-serif);border-radius:30px;overflow:hidden}
#profile[data-theme] :is(h1,h2,h3,.profile-heading strong){font-family:var(--pf-display,inherit);letter-spacing:-.025em}
#profile[data-theme] :is(.profile-about,.profile-birth-chart,.profile-favorites,.profile-social-panel,.friends-panel,.activity-card,.profile-photo-card,.profile-stats>div){border-radius:22px!important}
#profile[data-theme] :is(.action,button){border-radius:999px!important}
#profile[data-theme] :is(input,select,textarea){border-radius:16px}
#profile[data-theme] .profile-cover{border-radius:25px;overflow:hidden}
@media(max-width:620px){#profile[data-theme]{border-radius:22px}#profile[data-theme] :is(.profile-about,.profile-birth-chart,.profile-favorites,.profile-social-panel,.friends-panel){border-radius:18px!important}}
