/* Profile/account migration: scoped; no changes to global navigation or reader fonts. */
html[data-theme] body :is(#ds-app-profile,#ds-account-page){font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) :is(h1,h2,h3,button,input,select,textarea,.ds-btn,.ds-app-btn){font-family:inherit!important;box-sizing:border-box}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) h1{font-size:clamp(28px,4vw,46px)!important;line-height:1.15!important;font-weight:650!important;letter-spacing:-.03em!important;overflow-wrap:anywhere}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) h2{font-size:24px!important;line-height:1.3!important;font-weight:650!important}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) h3{font-size:18px!important;line-height:1.4!important;font-weight:600!important}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) p{font-size:15px!important;line-height:1.6!important;font-weight:400!important;overflow-wrap:anywhere}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) :is(button,.ds-btn,.ds-app-btn){min-height:44px;border-radius:10px!important;box-shadow:none!important;font-size:14px!important;font-weight:600!important;white-space:normal}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px!important;border-radius:10px!important;min-width:0;max-width:100%;box-sizing:border-box}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--ds-accent)!important;outline-offset:3px}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) [hidden]{display:none!important}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) :is(.ds-card,.ds-app-card,.ds-profile-hero-card,.ds-profile-info-card,.ds-profile-section){border-radius:16px!important;box-shadow:none!important}
html[data-theme] body :is(#ds-app-profile,#ds-account-page) :is(.ds-app-bg,.ds-account-bg){display:none!important}
html[data-theme] body #ds-app-profile .ds-profile-tabs{display:flex!important;flex-wrap:wrap!important;gap:8px!important;position:static!important}
html[data-theme] body #ds-app-profile .ds-profile-tabs>button{flex:1 1 auto!important;width:auto!important;padding:10px 12px!important;min-width:0!important;white-space:normal!important;word-break:normal!important}
html[data-theme] body #ds-app-profile .ds-profile-main{min-width:0}
html[data-theme] body #ds-app-profile .ds-profile-side{position:static!important}
/* Paint the glow across the whole card, not a filtered sublayer behind the
   biography. Nested blur/backdrop compositing produced hard tiles on Safari. */
html[data-theme] body #ds-app-profile .ds-profile-hero-card{isolation:isolate;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:radial-gradient(ellipse at 4% 0%,color-mix(in srgb,var(--ds-accent) 15%,transparent),transparent 64%),radial-gradient(ellipse at 95% 100%,color-mix(in srgb,var(--ds-accent2) 9%,transparent),transparent 64%),var(--ds-card)!important}
html[data-theme] body #ds-app-profile .ds-profile-hero-glow{display:none!important}
html[data-theme] body #ds-app-profile .ds-profile-hero-main{align-items:start!important}
html[data-theme] body #ds-app-profile .ds-profile-avatar{max-width:100%;margin:0!important;transform:none!important;box-shadow:0 8px 24px color-mix(in srgb,var(--ds-accent) 10%,transparent)!important}
html[data-theme] body #ds-app-profile .ds-profile-hero-text,html[data-theme] body #ds-app-profile .ds-profile-hero-text>p{background:transparent!important;filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
@media(max-width:600px){
 html[data-theme] body #ds-app-profile .ds-profile-layout{display:flex!important;flex-direction:column!important;gap:16px!important}
 html[data-theme] body #ds-app-profile .ds-profile-main{order:0;width:100%}
 html[data-theme] body #ds-app-profile .ds-profile-side{order:1;width:100%}
 html[data-theme] body #ds-account-page .ds-auth-card{order:0!important}
 html[data-theme] body #ds-account-page .ds-info-card{order:1!important}
 html[data-theme] body :is(#ds-app-profile,#ds-account-page) :is(.ds-app-wrap,.ds-account-wrap){padding-inline:12px!important}
 html[data-theme] body :is(#ds-app-profile,#ds-account-page) :is(.ds-card,.ds-app-card,.ds-profile-hero-card){padding:16px!important}
 html[data-theme] body #ds-app-profile .ds-profile-search-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:8px}
 html[data-theme] body #ds-app-profile .ds-profile-search-row>*{width:100%!important;min-width:0!important}
 html[data-theme] body #ds-app-profile .ds-profile-toolbar{display:grid!important;gap:16px}
 html[data-theme] body #ds-account-page .ds-account-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 html[data-theme] body #ds-account-page .ds-tabs{display:flex;flex-wrap:wrap;gap:8px}
 html[data-theme] body #ds-account-page .ds-tabs button{flex:1 1 auto}
}
