/* A quiet, shared profile palette. Activity, rights and navigation stay unchanged. */
:is(#uxProfile,#freeProfile,#progression){--profile-paper:#fffdf8;--profile-wash:#eef2eb;--profile-line:#dce2d7;--profile-ink:#193f36;--profile-muted:#5e7064;--profile-progress:#557461;--profile-gold:#927440;--profile-gold-wash:#f4eedf;color:var(--profile-ink)}
body:is(.ux-modern,.free-home-modern) :is(#uxProfile,#freeProfile,#progression) :is(.ux-profile-metrics>button,.journey-profile-stats>div,.ux-xp-help,.ux-profile-badges>article,.ux-action-list>button,.catalogue-grid>button,.pk-theme-settings,.premium-invitation){background:var(--profile-paper)!important;background-image:none!important;border:1px solid var(--profile-line)!important;box-shadow:none!important;color:var(--profile-ink)!important}
body:is(.ux-modern,.free-home-modern) :is(#uxProfile,#freeProfile,#progression) .ux-profile-intro{background:var(--profile-wash)!important;background-image:none!important;border:1px solid var(--profile-line)!important;box-shadow:none!important;color:var(--profile-ink)!important;border-radius:18px;padding:20px 65px 20px 18px;margin:16px 0}
body:is(.ux-modern,.free-home-modern) :is(#uxProfile,#freeProfile,#progression) .ux-profile-intro h3{color:var(--profile-ink);font:600 24px/1.3 Georgia,serif;letter-spacing:-.02em}
:is(#uxProfile,#freeProfile,#progression) :is(.ux-profile-intro p,.ux-profile-caption,.ui-action-copy small,.catalogue-grid small,.ux-profile-badges small,.ux-badge-status,.journey-profile-stats small,.ux-xp-help p){color:var(--profile-muted)!important}
:is(#uxProfile,#freeProfile,#progression) .profile-emblem{top:20px;right:16px;background:transparent!important;border:1px solid var(--profile-line)!important}
:is(#uxProfile,#freeProfile,#progression) svg.ux-library-art{color:var(--profile-ink)!important}
:is(#uxProfile,#freeProfile,#progression) svg.ux-library-art>circle{fill:var(--profile-wash)!important}
:is(#uxProfile,#freeProfile,#progression) .ux-action-list .ux-library-picture{background:transparent!important}
body:is(.ux-modern,.free-home-modern) :is(#uxProfile,#freeProfile,#progression) .ux-profile-badges>article{border-left-width:1px!important}
:is(#uxProfile,#freeProfile,#progression) .ux-badge-symbol{background:var(--profile-wash);color:#6b7d6d;font-size:20px}
:is(#uxProfile,#freeProfile,#progression) .ux-profile-badges>article.earned .ux-badge-symbol{background:var(--profile-gold-wash);color:var(--profile-gold)}
:is(#uxProfile,#freeProfile,#progression) progress{accent-color:var(--profile-progress);background:var(--profile-line);border:0}
:is(#uxProfile,#freeProfile,#progression) progress::-webkit-progress-bar{background:var(--profile-line);border-radius:6px}
:is(#uxProfile,#freeProfile,#progression) progress::-webkit-progress-value{background:var(--profile-progress);border-radius:6px}
:is(#uxProfile,#freeProfile,#progression) progress::-moz-progress-bar{background:var(--profile-progress);border-radius:6px}
:is(#uxProfile,#freeProfile,#progression) .pk-theme-settings button{background:var(--profile-paper);border-color:var(--profile-line);color:var(--profile-ink)}
:is(#uxProfile,#freeProfile,#progression) .pk-theme-settings button[aria-pressed=true]{background:var(--profile-ink);border-color:var(--profile-ink);color:var(--profile-paper)}
:is(#uxProfile,#freeProfile,#progression) select{background:var(--profile-paper);border:1px solid var(--profile-line);color:var(--profile-ink)}
:is(#uxProfile,#freeProfile,#progression) :is(.profile-chevron,.ux-profile-metrics strong,.journey-profile-stats strong){color:var(--profile-ink)}
:is(#uxProfile,#freeProfile,#progression) :is(.premium-invitation-label,.catalogue-lock){color:var(--profile-gold)!important}
:is(#uxProfile,#freeProfile,#progression) .premium-invitation button{background:var(--profile-ink);border-color:var(--profile-ink);color:var(--profile-paper)}
:is(#uxProfile,#freeProfile,#progression) :is(button,select,summary):focus-visible{outline:2px solid var(--profile-gold);outline-offset:3px}
@media(hover:hover){body:is(.ux-modern,.free-home-modern) :is(#uxProfile,#freeProfile,#progression) :is(.ux-action-list,.catalogue-grid)>button:hover{background:var(--profile-wash)!important;border-color:#a3b19e!important}}
:root[data-theme=dark] :is(#uxProfile,#freeProfile,#progression){--profile-paper:#24392e;--profile-wash:#2c4335;--profile-line:#4c6051;--profile-ink:#e7eee3;--profile-muted:#bccbbb;--profile-progress:#94b19b;--profile-gold:#d2bb83;--profile-gold-wash:#443e2d}
:root[data-theme=dark] :is(#uxProfile,#freeProfile,#progression) .ux-badge-symbol{color:#b2c3b2}
/* Account and preferences stay near the top; detailed activity lives in Progress. */
body:is(.ux-modern,.free-home-modern) :is(#uxProfile,#freeProfile) .ux-profile-intro.profile-identity{padding:12px 58px 12px 15px;margin:8px 0 12px}
body:is(.ux-modern,.free-home-modern) :is(#uxProfile,#freeProfile) .ux-profile-intro.profile-identity h3{font-size:18px;line-height:1.35;margin:5px 0 0}
:is(#uxProfile,#freeProfile) .profile-identity .profile-emblem{width:32px;height:32px;right:14px;top:15px;border:0!important}
:is(#uxProfile,#freeProfile) .profile-account-actions{margin:10px 0!important}
:is(#uxProfile,#freeProfile) .profile-settings{margin:10px 0 18px;background:var(--profile-paper);border:1px solid var(--profile-line);border-radius:17px;overflow:hidden}
:is(#uxProfile,#freeProfile) .profile-settings>summary{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:64px;box-sizing:border-box;list-style:none;cursor:pointer}
:is(#uxProfile,#freeProfile) .profile-settings>summary::-webkit-details-marker{display:none}
:is(#uxProfile,#freeProfile) .profile-settings>summary>span:nth-child(2){flex:1;min-width:0}
:is(#uxProfile,#freeProfile) .profile-settings>summary strong,:is(#uxProfile,#freeProfile) .profile-settings>summary small{display:block}
:is(#uxProfile,#freeProfile) .profile-settings>summary strong{font:600 16px/1.4 system-ui,sans-serif;color:var(--profile-ink)}
:is(#uxProfile,#freeProfile) .profile-settings>summary small{font:12px/1.5 system-ui,sans-serif;color:var(--profile-muted);margin-top:2px}
:is(#uxProfile,#freeProfile) .profile-settings>summary svg{width:27px;height:27px}
:is(#uxProfile,#freeProfile) .profile-settings[open]>summary{border-bottom:1px solid var(--profile-line)}
:is(#uxProfile,#freeProfile) .profile-settings[open]>summary>.profile-chevron{transform:rotate(90deg)}
:is(#uxProfile,#freeProfile) .profile-settings-body{padding:12px 14px}
body:is(.ux-modern,.free-home-modern) :is(#uxProfile,#freeProfile) .profile-settings .pk-theme-settings{border:0!important;padding:12px 0;margin:0;border-radius:0}
:is(#uxProfile,#freeProfile) .profile-settings-body .ux-action-list{margin:0 0 10px}
:is(#uxProfile,#freeProfile) .profile-settings-body h2{font:600 16px/1.4 system-ui,sans-serif!important}
#progression .study-island{margin:14px 0 26px}
#progression .study-activity{margin:14px 0 24px}
#progression .study-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
#progression .study-metrics>div{min-width:0;padding:14px 11px;border:1px solid var(--profile-line);border-radius:16px;background:var(--profile-paper);color:var(--profile-ink)}
#progression .study-metrics strong,#progression .study-metrics>div>span:last-child{display:block}
#progression .study-metrics strong{font:600 25px/1.2 system-ui,sans-serif;margin:8px 0 5px}
#progression .study-metrics>div>span:last-child{font-size:12px;line-height:1.4;color:var(--profile-muted)}
#progression .study-activity .ux-xp-help{margin:12px 0 20px}
.free-home-modern #freeJourney .journey-profile-stats>div{background:#fffdf8;border:1px solid #dce2d7;color:#193f36}
:root[data-theme=dark] .free-home-modern #freeJourney .journey-profile-stats>div{background:#24392e!important;border-color:#4c6051;color:#e7eee3}
@media(max-width:340px){#progression .study-metrics{grid-template-columns:1fr}#progression .study-metrics>div{display:flex;align-items:center;gap:10px}#progression .study-metrics strong{margin:0}}
