:root{--account-surface:#222127;--account-raised:#2a2731;--account-line:#3b3444;--account-text:#eee9f5;--account-muted:#aea3ba;--account-accent:#d2bbf5;--account-accent-bg:#352b44}
[data-theme="light"]{--account-surface:#fff;--account-raised:#f5f0fa;--account-line:#e5dceb;--account-text:#352a40;--account-muted:#786884;--account-accent:#7951a3;--account-accent-bg:#eee4f9}
.app[data-page="profile"] .content{max-width:1120px;padding:28px 40px 56px}
.app[data-page="profile"] .composer{display:none!important}
#profile-view[hidden]{display:none}
.profile-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}
.profile-heading h1{font-size:28px;font-weight:600;margin:0 0 8px;color:var(--account-text)}
.profile-heading p{font-size:14px;line-height:1.7;color:var(--account-muted);margin:0}
.profile-heading #profile-refresh{flex-shrink:0;padding:9px 13px;border-radius:9px;background:transparent;border:1px solid var(--account-line);color:var(--account-muted);font-size:13px}
#profile-refresh:disabled{opacity:.6;cursor:wait}
.profile-heading-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#profile-logout{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border-radius:9px;border:1px solid var(--account-line);background:var(--account-raised);color:var(--account-text);font-size:13px;white-space:nowrap}
#profile-logout svg,.header-actions .shop-entry svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#profile-logout:hover{border-color:var(--account-accent);color:var(--account-accent)}
#profile-logout:disabled{opacity:.6;cursor:wait}
.header-actions .shop-entry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 15px;border:1px solid var(--account-accent);border-radius:11px;background:var(--account-accent);color:#2d203c;text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap}
[data-theme="light"] .header-actions .shop-entry{color:#fff;background:#7951a3;border-color:#7951a3}
.header-actions .shop-entry:hover{filter:brightness(1.08)}
@media(max-width:720px){.header-actions .shop-entry{padding:7px 10px;gap:5px;font-size:12px}.header-actions .shop-entry svg{width:16px;height:16px}.profile-heading{flex-wrap:wrap}.profile-heading-actions{gap:8px}}
.account-card{border:1px solid var(--account-line);border-radius:18px;background:var(--account-surface);color:var(--account-text)}
.account-hero{display:flex;align-items:center;gap:20px;padding:28px;margin-bottom:18px;background:linear-gradient(112deg,var(--account-accent-bg),var(--account-surface) 68%)}
.account-avatar{display:grid;place-items:center;flex-shrink:0;width:76px;height:76px;border-radius:24px;background:var(--account-accent-bg);color:var(--account-accent);border:1px solid var(--account-line);font-size:30px;overflow:hidden}
.account-avatar img{width:100%;height:100%;object-fit:cover}
.account-identity{min-width:0;flex:1}.account-identity-name{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.account-identity h2{margin:0;color:var(--account-text);font-size:23px;line-height:1.5;overflow-wrap:anywhere;font-weight:600}
.account-identity p{margin:7px 0 0;color:var(--account-muted);font-size:14px;overflow-wrap:anywhere}
.account-role{padding:4px 9px;font-size:12px;border-radius:7px;background:var(--account-accent-bg);color:var(--account-accent);white-space:nowrap}
#profile-view button.account-primary{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border-radius:10px;background:#cbb4ef;color:#291b3a;font-size:14px;line-height:1.5;font-weight:600;white-space:nowrap}
[data-theme="light"] #profile-view button.account-primary{background:#8b64b4;color:#fff}
#profile-view svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.account-stat{padding:22px 24px;min-width:0;text-decoration:none;display:block}
a.account-stat:hover{border-color:var(--account-accent);background:var(--account-raised)}
.account-stat-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--account-muted);font-size:14px;margin-bottom:13px}
.account-stat-label svg{color:var(--account-accent)}
.account-stat strong{display:block;color:var(--account-text);font-size:32px;line-height:1.3;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.account-stat small{display:block;margin-top:8px;font-size:12px;line-height:1.6;color:var(--account-muted)}
.account-columns{display:grid;grid-template-columns:1.05fr 1fr;gap:20px}
.account-section{padding:24px}.account-section h2{font-size:17px;font-weight:600;margin:0 0 22px;color:var(--account-text)}
.account-details{margin:0;display:flex;flex-direction:column;gap:0}
.account-details>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:16px;padding:16px 0;border-bottom:1px solid var(--account-line);font-size:14px;line-height:1.7}
.account-details>div:first-child{padding-top:0}.account-details>div:last-child{border:0;padding-bottom:0}
.account-details dt{color:var(--account-muted)}.account-details dd{margin:0;color:var(--account-text);text-align:right;overflow-wrap:anywhere}
.account-shortcuts{display:flex;flex-direction:column;gap:10px}
.account-shortcut{display:flex;align-items:center;gap:13px;width:100%;min-height:76px;padding:13px 14px;border:1px solid transparent;border-radius:12px;background:var(--account-raised);color:var(--account-text);text-align:left;font:inherit}
.account-shortcut:hover{border-color:var(--account-line);background:var(--account-accent-bg)}
.account-shortcut>svg{color:var(--account-accent)}.account-shortcut>span{flex:1;min-width:0}
.account-shortcut b{display:block;font-weight:500;font-size:14px;line-height:1.6}.account-shortcut small{display:block;color:var(--account-muted);font-size:12px;line-height:1.6;margin-top:3px}
.account-shortcut i{font-size:18px;font-style:normal;color:var(--account-muted)}
#profile-status{padding:12px 16px;margin:0 0 18px;border-radius:10px;border:1px solid var(--account-line);color:var(--account-accent);background:var(--account-accent-bg);font-size:14px;line-height:1.7}
.app a.profile{border-radius:12px;min-height:50px;gap:10px;color:inherit;cursor:pointer;text-decoration:none}
.app a.profile:hover,.app a.profile[aria-current="page"]{background:var(--account-accent-bg)}
.app a.profile[aria-current="page"] .profile-name{color:var(--account-accent)}
#profile-view a:focus-visible,#profile-view button:focus-visible,a.profile:focus-visible{outline:2px solid var(--account-accent);outline-offset:4px}
@media(max-width:1000px){.app[data-page="profile"] .content{padding:24px}.account-hero{padding:24px}.account-stat{padding:20px}.account-columns{grid-template-columns:1fr}.account-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.account-shortcut{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}.account-shortcut>span{flex-basis:100%}.account-shortcut i{display:none}}
@media(max-width:600px){.app[data-page="profile"] .content{padding:20px 14px 36px}.profile-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:18px}.profile-heading h1{font-size:25px}.profile-heading p{font-size:14px}.account-hero{flex-wrap:wrap;gap:15px;padding:19px}.account-avatar{width:55px;height:55px;border-radius:18px;font-size:24px}.account-identity h2{font-size:19px}.account-identity-name{gap:6px}.account-identity p{font-size:13px}.account-hero .account-primary{width:100%}.account-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.account-stat:first-child{grid-column:1/-1}.account-stat{padding:17px 14px;border-radius:14px}.account-stat strong{font-size:27px}.account-stat-label{font-size:13px;margin-bottom:10px}.account-stat-label svg{width:18px!important;height:18px!important}.account-section{padding:19px}.account-section h2{font-size:16px}.account-details>div{grid-template-columns:58px minmax(0,1fr);gap:12px;font-size:13px}.account-shortcuts{display:flex}.account-shortcut{flex-wrap:nowrap;gap:12px}.account-shortcut>span{flex-basis:auto}.account-shortcut i{display:block}.account-columns{gap:16px}}
