/* Curated, opt-in Plus-only profile palettes. Classic and trust symbols untouched. */
body .classic-member-profile.ejp-profile-prestige[data-plus-theme]{
 --ejp-palette-accent:var(--ejpr-gold);
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="electric-blue"]{
 --ejpr-deep:#091B52;--ejpr-forest:#254CC8;--ejpr-gold:#9ED7FF;
 --ejpr-ink:#173466;--ejpr-fog:#F4F8FF;--ejpr-line:#D1DFFC;
 --ejp-palette-accent:#9ED7FF;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="urban-teal"]{
 --ejpr-deep:#052D36;--ejpr-forest:#087A77;--ejpr-gold:#77E2D8;
 --ejpr-ink:#12524F;--ejpr-fog:#F1FAF8;--ejpr-line:#C8E8E2;
 --ejp-palette-accent:#77E2D8;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="tech-violet"]{
 --ejpr-deep:#23144B;--ejpr-forest:#684CDD;--ejpr-gold:#C3B2FF;
 --ejpr-ink:#3D2C6C;--ejpr-fog:#F7F4FF;--ejpr-line:#DED7F1;
 --ejp-palette-accent:#C3B2FF;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="powder-rose"]{
 --ejpr-deep:#573044;--ejpr-forest:#A8607D;--ejpr-gold:#F8D8E4;
 --ejpr-ink:#643449;--ejpr-fog:#FFF6F8;--ejpr-line:#EDDAE1;
 --ejp-palette-accent:#F8D8E4;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="soft-lavender"]{
 --ejpr-deep:#37274F;--ejpr-forest:#8468AA;--ejpr-gold:#E4D1FC;
 --ejpr-ink:#493569;--ejpr-fog:#FBF8FF;--ejpr-line:#E4DCF0;
 --ejp-palette-accent:#E4D1FC;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="peach-elegance"]{
 --ejpr-deep:#61381E;--ejpr-forest:#AE704E;--ejpr-gold:#FFE0BA;
 --ejpr-ink:#6B422C;--ejpr-fog:#FFF9F2;--ejpr-line:#E8DBCC;
 --ejp-palette-accent:#FFE0BA;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="royal-emerald"]{
 --ejpr-deep:#072521;--ejpr-forest:#043B33;--ejpr-gold:#CDA463;
 --ejpr-ink:#12372D;--ejpr-fog:#F7F6F0;--ejpr-line:#E4DFD1;
 --ejp-palette-accent:#CDA463;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="royal-navy"]{
 --ejpr-deep:#09172C;--ejpr-forest:#162D4B;--ejpr-gold:#E4BC79;
 --ejpr-ink:#1D304A;--ejpr-fog:#F7F8FC;--ejpr-line:#D8DEE9;
 --ejp-palette-accent:#E4BC79;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="imperial-burgundy"]{
 --ejpr-deep:#260E26;--ejpr-forest:#582E45;--ejpr-gold:#E6BC8D;
 --ejpr-ink:#502039;--ejpr-fog:#FAF6F8;--ejpr-line:#E8DCE3;
 --ejp-palette-accent:#E6BC8D;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="heritage-olive"]{
 --ejpr-deep:#2A3018;--ejpr-forest:#586542;--ejpr-gold:#DDC991;
 --ejpr-ink:#3C492C;--ejpr-fog:#F8F8F1;--ejpr-line:#DFE3D1;
 --ejp-palette-accent:#DDC991;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="copper-brown"]{
 --ejpr-deep:#302015;--ejpr-forest:#7A4B2C;--ejpr-gold:#E3BA8D;
 --ejpr-ink:#5D351D;--ejpr-fog:#FFF9F3;--ejpr-line:#E7D9C9;
 --ejp-palette-accent:#E3BA8D;
}

body .classic-member-profile.ejp-profile-prestige[data-plus-theme="sandstone"]{
 --ejpr-deep:#55452E;--ejpr-forest:#967B56;--ejpr-gold:#F3DFAF;
 --ejpr-ink:#58482E;--ejpr-fog:#FCFAF3;--ejpr-line:#E6DFD2;
 --ejp-palette-accent:#F3DFAF;
}

/* Variables alone cannot recolor the legacy hard-coded layers; override only prestige surfaces. */
body .classic-member-profile.ejg-profile-shell.ejp-profile-regal.ejp-profile-prestige[data-profile-panel][data-plus-theme] .ejabat-profile-main>.ejabat-profile-hero{
 background:
 radial-gradient(circle at 11% 22%,var(--ejp-palette-accent) 0 1.5px,transparent 2.5px),
 radial-gradient(circle at 82% 18%,var(--ejp-palette-accent) 0 1.5px,transparent 2.5px),
 radial-gradient(ellipse at 9% 33%,color-mix(in srgb,var(--ejpr-gold) 20%,transparent),transparent 47%),
 repeating-linear-gradient(153deg,transparent 0 44px,color-mix(in srgb,var(--ejpr-gold) 6%,transparent) 45px,transparent 47px),
 linear-gradient(120deg,var(--ejpr-deep),var(--ejpr-forest),var(--ejpr-deep))!important;
 border-color:var(--ejpr-gold)!important;
 box-shadow:0 10px 29px #08172432,inset 0 0 0 1px var(--ejpr-gold)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-premium-dashboard{
 background:linear-gradient(125deg,var(--ejpr-deep),var(--ejpr-forest))!important;
 border-color:var(--ejpr-gold)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-premium-stats{
 border-color:var(--ejpr-gold)!important;
 background:color-mix(in srgb,var(--ejpr-deep) 80%,#101010)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-premium-stat{
 border-inline-start-color:color-mix(in srgb,var(--ejpr-gold) 45%,transparent)!important;
 color:#fff!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-premium-stat .ejp-stat-icon,
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-premium-stat strong{
 color:var(--ejpr-gold)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .archive-member-toolbar[data-profile-tabs]{
 border-color:var(--ejpr-gold)!important;
 background:linear-gradient(112deg,var(--ejpr-deep),var(--ejpr-forest))!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .archive-member-toolbar[data-profile-tabs]>a.active{
 background:var(--ejpr-fog)!important;color:var(--ejpr-ink)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-prestige-overview>article,
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-original-bio{
 background:var(--ejpr-fog)!important;border-color:var(--ejpr-line)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-prestige-overview h2,
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-original-bio-head h2{
 color:var(--ejpr-ink)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-featured-card{
 background:linear-gradient(127deg,var(--ejpr-fog),white)!important;
 border-color:var(--ejpr-gold)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-feature-title,
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-prestige-overview article header a{
 color:var(--ejpr-ink)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-card-more{
 background:var(--ejpr-deep)!important;color:white!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-expertise-card{
 background:linear-gradient(128deg,var(--ejpr-deep),var(--ejpr-forest))!important;color:white!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-expertise-card:nth-child(3n+2){
 background:linear-gradient(137deg,var(--ejpr-forest),var(--ejpr-deep))!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-expertise-card:nth-child(3n+3){
 background:linear-gradient(131deg,var(--ejpr-deep),color-mix(in srgb,var(--ejpr-forest) 80%,#776554))!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-expertise-card>span,
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-achievements-stack .ejp-award-vector{
 color:var(--ejpr-gold)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-original-bio .ejp-inline-bio-edit{
 color:var(--ejpr-ink)!important;background:var(--ejpr-fog)!important;border-color:var(--ejpr-line)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejp-bio-editor-actions button[type=submit]{
 background:var(--ejpr-deep)!important;border-color:var(--ejpr-gold)!important;
}
body .classic-member-profile.ejp-profile-prestige[data-plus-theme] .ejabat-profile-hero .ejabat-portrait{
 border-color:var(--ejpr-gold)!important;
 box-shadow:0 0 0 3px var(--ejpr-deep),0 0 0 5px var(--ejpr-gold),0 12px 30px #0007!important;
}
body .classic-member-profile.ejp-profile-prestige:not(#ejp-never-match)[data-plus-theme] .ejabat-profile-hero .ejabat-profile-actions a.ejabat-classic-profile-action,
body .classic-member-profile.ejp-profile-prestige:not(#ejp-never-match)[data-plus-theme] .ejabat-profile-hero .ejabat-profile-actions button.ejabat-classic-profile-action{
 background:linear-gradient(125deg,var(--ejpr-forest),var(--ejpr-deep))!important;
 border-color:var(--ejpr-gold)!important;
 color:#fff!important;
}
/* Trust badge colours (verified/jail/warning) are intentionally never overridden. */

/* Plus personalization palette gallery */
.ejp-palette-lab{display:grid;gap:12px;padding:14px;border:1px solid #ded5c4;border-radius:14px;background:#fffcf6}
.ejp-palette-heading{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}
.ejp-palette-heading strong{display:block;font-size:16px;color:#204638}
.ejp-palette-heading p{font-size:12px;line-height:1.75;margin:4px 0;color:#57685e}
.ejp-palette-heading>span{white-space:nowrap;border:1px solid #ccb177;background:#fff3da;color:#846127;font-size:11px;font-weight:800;border-radius:9px;padding:6px 7px}
.ejp-palette-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.ejp-palette-filter{display:flex;align-items:center;justify-content:center;min-height:40px;padding:7px 4px;border:1px solid #d4dbd3;border-radius:10px;background:white;color:#1e4e41;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.ejp-palette-filter[aria-pressed="true"]{background:#103e35;color:#fff;border-color:#b99457;box-shadow:0 2px 9px #07322529}
.ejp-palette-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ejp-palette-choice{position:relative;display:flex;flex-direction:column;gap:7px;padding:9px;border:2px solid #e2e1da;background:#fff;border-radius:11px;cursor:pointer;min-width:0}
.ejp-palette-choice[hidden]{display:none!important}
.ejp-palette-choice:has(input:checked){border-color:#bd9553;box-shadow:0 0 0 2px #efdbb550;background:#fffdf6}
.ejp-palette-choice input{position:absolute;top:11px;left:11px;accent-color:#125a44;width:16px;height:16px;z-index:1}
.ejp-palette-swatch{display:flex;gap:5px;align-items:flex-end;padding:12px 7px;height:65px;background:linear-gradient(130deg,var(--pal-deep),var(--pal-primary));border-radius:9px;box-sizing:border-box}
.ejp-palette-choice .ejp-palette-swatch{display:flex!important;width:100%!important;min-height:65px;align-items:center;justify-content:flex-start;gap:6px;overflow:hidden;isolation:isolate;flex:none;position:relative}
.ejp-palette-choice .ejp-palette-avatar{display:block;flex:0 0 27px;width:27px;height:27px;border:2px solid var(--pal-accent);border-radius:50%;box-sizing:border-box;box-shadow:0 0 0 2px #fff5}
.ejp-palette-choice .ejp-palette-rule{display:block;flex:1 1 auto;min-width:8px;max-width:48px;height:7px;opacity:.85;border-radius:8px}
.ejp-palette-choice .ejp-palette-orb{display:block;flex:0 0 11px;width:11px;height:11px;border-radius:50%;margin-inline-start:auto;box-shadow:0 0 9px #fff5}
.ejp-palette-choice-label{font-size:11px;font-weight:850;text-align:center;color:#214d3f}
.ejp-palette-check{position:absolute;top:5px;right:7px;color:#fff;font-weight:800;opacity:0}
.ejp-palette-choice:has(input:checked) .ejp-palette-check{opacity:1}
.ejp-palette-preview{--preview-deep:#072521;--preview-primary:#043b33;--preview-accent:#cda463;border:1px solid #d7dcd5;border-radius:12px;overflow:hidden;background:white}
.ejp-palette-preview-cover{background:linear-gradient(135deg,var(--preview-deep),var(--preview-primary));display:flex;align-items:center;gap:12px;color:white;padding:14px;min-height:83px}
.ejp-palette-preview-avatar{width:52px;height:52px;flex:none;border:2px solid var(--preview-accent);border-radius:50%;display:grid;place-items:center;color:var(--preview-accent);font-size:27px;background:var(--preview-deep)}
.ejp-palette-preview-cover strong{display:block;color:#fff;font-size:15px}.ejp-palette-preview-cover small{color:var(--preview-accent);font-size:11px}
.ejp-palette-preview-stats{display:flex;background:var(--preview-deep);gap:2px;padding:8px}.ejp-palette-preview-stats i{width:25%;height:7px;border-radius:5px;background:var(--preview-accent);opacity:.7}
.ejp-palette-preview p{padding:8px 11px!important;font-size:11px!important;line-height:1.5!important;margin:0!important;color:#596b61!important}
.ejp-palette-lab :focus-visible{outline:3px solid #b68c4d;outline-offset:2px}
@media(max-width:420px){.ejp-palette-lab{padding:10px}.ejp-palette-groups{gap:4px}.ejp-palette-filter{font-size:11px;min-height:38px}.ejp-palette-gallery{gap:5px}.ejp-palette-choice{padding:5px}.ejp-palette-swatch{height:58px;padding:9px 4px}.ejp-palette-choice-label{font-size:10px}.ejp-palette-heading{flex-wrap:wrap}}
@media(max-width:325px){.ejp-palette-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.ejp-palette-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.ejp-palette-lab *{transition:none!important}}

/* Palette swatches are served from this authorized same-origin stylesheet.
   The website's style-src 'self' CSP REJECTS style attributes, so never use
   per-card inline style to set variables, backgrounds, borders, or preview. */
@media(max-width:420px){.ejp-palette-choice .ejp-palette-swatch{min-height:58px;padding:9px 5px!important}.ejp-palette-choice .ejp-palette-avatar{width:24px;height:24px;flex-basis:24px}}

/* Fixed curated theme definitions: zero inline styles, CSP compliant. */
.ejp-palette-choice[data-palette-key="electric-blue"] {--pal-deep:#091B52;--pal-primary:#254CC8;--pal-accent:#9ED7FF;}
.ejp-palette-preview[data-preview-theme="electric-blue"] {--preview-deep:#091B52;--preview-primary:#254CC8;--preview-accent:#9ED7FF;}
.ejp-palette-choice[data-palette-key="urban-teal"] {--pal-deep:#052D36;--pal-primary:#087A77;--pal-accent:#77E2D8;}
.ejp-palette-preview[data-preview-theme="urban-teal"] {--preview-deep:#052D36;--preview-primary:#087A77;--preview-accent:#77E2D8;}
.ejp-palette-choice[data-palette-key="tech-violet"] {--pal-deep:#23144B;--pal-primary:#684CDD;--pal-accent:#C3B2FF;}
.ejp-palette-preview[data-preview-theme="tech-violet"] {--preview-deep:#23144B;--preview-primary:#684CDD;--preview-accent:#C3B2FF;}
.ejp-palette-choice[data-palette-key="powder-rose"] {--pal-deep:#573044;--pal-primary:#A8607D;--pal-accent:#F8D8E4;}
.ejp-palette-preview[data-preview-theme="powder-rose"] {--preview-deep:#573044;--preview-primary:#A8607D;--preview-accent:#F8D8E4;}
.ejp-palette-choice[data-palette-key="soft-lavender"] {--pal-deep:#37274F;--pal-primary:#8468AA;--pal-accent:#E4D1FC;}
.ejp-palette-preview[data-preview-theme="soft-lavender"] {--preview-deep:#37274F;--preview-primary:#8468AA;--preview-accent:#E4D1FC;}
.ejp-palette-choice[data-palette-key="peach-elegance"] {--pal-deep:#61381E;--pal-primary:#AE704E;--pal-accent:#FFE0BA;}
.ejp-palette-preview[data-preview-theme="peach-elegance"] {--preview-deep:#61381E;--preview-primary:#AE704E;--preview-accent:#FFE0BA;}
.ejp-palette-choice[data-palette-key="royal-emerald"] {--pal-deep:#072521;--pal-primary:#043B33;--pal-accent:#CDA463;}
.ejp-palette-preview[data-preview-theme="royal-emerald"] {--preview-deep:#072521;--preview-primary:#043B33;--preview-accent:#CDA463;}
.ejp-palette-choice[data-palette-key="royal-navy"] {--pal-deep:#09172C;--pal-primary:#162D4B;--pal-accent:#E4BC79;}
.ejp-palette-preview[data-preview-theme="royal-navy"] {--preview-deep:#09172C;--preview-primary:#162D4B;--preview-accent:#E4BC79;}
.ejp-palette-choice[data-palette-key="imperial-burgundy"] {--pal-deep:#260E26;--pal-primary:#582E45;--pal-accent:#E6BC8D;}
.ejp-palette-preview[data-preview-theme="imperial-burgundy"] {--preview-deep:#260E26;--preview-primary:#582E45;--preview-accent:#E6BC8D;}
.ejp-palette-choice[data-palette-key="heritage-olive"] {--pal-deep:#2A3018;--pal-primary:#586542;--pal-accent:#DDC991;}
.ejp-palette-preview[data-preview-theme="heritage-olive"] {--preview-deep:#2A3018;--preview-primary:#586542;--preview-accent:#DDC991;}
.ejp-palette-choice[data-palette-key="copper-brown"] {--pal-deep:#302015;--pal-primary:#7A4B2C;--pal-accent:#E3BA8D;}
.ejp-palette-preview[data-preview-theme="copper-brown"] {--preview-deep:#302015;--preview-primary:#7A4B2C;--preview-accent:#E3BA8D;}
.ejp-palette-choice[data-palette-key="sandstone"] {--pal-deep:#55452E;--pal-primary:#967B56;--pal-accent:#F3DFAF;}
.ejp-palette-preview[data-preview-theme="sandstone"] {--preview-deep:#55452E;--preview-primary:#967B56;--preview-accent:#F3DFAF;}

.ejp-palette-choice .ejp-palette-swatch{
 background-color:var(--pal-deep)!important;
 background-image:linear-gradient(130deg,var(--pal-deep),var(--pal-primary))!important;
}
.ejp-palette-choice .ejp-palette-avatar{
 background-color:var(--pal-deep)!important;
 border-color:var(--pal-accent)!important;
}
.ejp-palette-choice .ejp-palette-rule,
.ejp-palette-choice .ejp-palette-orb{
 background-color:var(--pal-accent)!important;
}
