/* The same palette variables used by Home, applied to the existing account UI. */
:root{color-scheme:dark;background:var(--canvas,#171918);color:var(--ink,#f6f4fa)}
body{background:var(--canvas);color:var(--ink)}
body :is(main,.site-header,.profile-header,.profile-card,.account-choice,.account-benefits article,.profile-shortcuts a,#account-status){background:var(--paper);color:var(--ink);border-color:var(--line)}
body .friends-main,body main.profile-mode{background:transparent}
body :is(a,.suber-friends a,.profile-mode>#account-status){color:var(--purple)}
body :is(button,.account-primary-link,.suber-friends button,.suber-friends .friends-button){background:var(--accent-fill);color:var(--on-accent);border-color:var(--control-line)}
body :is(.secondary,#clerk-sign-up,.cover-button,.profile-card .secondary){background:var(--paper);color:var(--ink);border-color:var(--control-line)}
body :is(.profile-name p,.privacy-card p,#profile-status,.profile-empty,.account-local-note,.profile-card time){color:var(--muted)}
body :is(input,select,textarea){font:inherit;background:var(--canvas);color:var(--ink);border:1px solid var(--control-line);border-radius:.5rem;padding:.6rem;max-width:100%}
.account-appearance{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;font-size:.875rem;min-width:0;max-width:100%}.account-appearance label{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;min-width:0;max-width:100%}.account-appearance select{min-height:44px;min-width:0;max-width:100%}.account-appearance [role=status]{flex-basis:100%;overflow-wrap:anywhere}
.profile-cover{position:relative}.profile-cover>.suber-own-banner{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-cover>:not(img){position:relative;z-index:1}.profile-avatar .suber-own-avatar{z-index:1}
/* Keep private editors legible: the structural card rule otherwise wins. */
body .profile-card :is(textarea,select){background:var(--canvas,#171918);color:var(--ink,#f6f4fa);border-color:var(--control-line,#87918c)}
#profile-recovery{padding:12px;margin:12px 0;border-radius:12px}
#profile-recovery .profile-actions{justify-content:flex-start}
#profile-recovery button{max-width:100%;padding:8px 12px;white-space:normal;overflow-wrap:normal;flex:1 1 190px}
@media(max-width:40rem){main.profile-mode{padding:0 10px}.profile-mode .profile-card{padding:12px}#profile-recovery{padding:10px;margin:12px -4px}}
