.a047-page .a047-account-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.a047-page #status, .a047-page #account-role { color: var(--muted); }
.a047-page #digital-id { display: block; margin-top: 6px; overflow-wrap: anywhere; font-size: 16px; }
.a047-page #roles:empty { display: none; }
.a047-page .account-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0; }
.a047-page .account-links a { display: inline-flex; align-items: center; min-height: 44px; }
.a047-page .login-card > .btn { margin: 12px 0; }
.a047-page .account-tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.a047-page .account-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 3px solid transparent; text-decoration: none; }
.a047-page .account-tabs [aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); font-weight: 700; }
.a047-page .account-help { color: var(--muted); font-size: 14px; }
.a047-page .account-existing { margin-top: 28px; }
.a047-page .account-welcome { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.a047-page #registration-status { color: var(--text); }
@media (max-width: 600px) {
  .a047-page .a047-account-panel { padding: 20px 16px; }
  .a047-page .account-links { flex-direction: column; gap: 6px; }
  .a047-page .login-card > .btn { width: 100%; }
}

/* Account extension of the existing Premium LUX system. */
html[data-theme] .account-workspace{max-width:1120px}
html[data-theme] .account-overview{padding:0;border:0;background:transparent;border-radius:0}
.account-identity{display:flex;align-items:center;gap:20px;padding:24px 0 32px;border-bottom:1px solid var(--line)}
.account-identity h2{margin:0;font-size:clamp(26px,3vw,36px);overflow-wrap:anywhere}
.account-identity p{margin:6px 0 0}
#account-monogram{display:grid;place-items:center;flex:none;width:72px;height:72px;border-radius:12px;background:var(--panel2);color:var(--accent);font:700 26px/1 'Golos Text',sans-serif}
.account-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:48px;padding-top:32px}
.account-section-nav{display:flex;flex-direction:column;align-self:start;gap:6px;position:sticky;top:16px}
.account-section-nav a{display:flex;align-items:center;min-height:46px;padding:10px 12px;text-decoration:none;color:var(--text);border-radius:8px}
.account-section-nav a:hover{background:var(--panel2)}
.account-content{min-width:0}.account-content>section+section{margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}
.account-content h2{font-size:26px;margin:0 0 16px}.account-content p{max-width:70ch}
.account-destinations{display:flex;flex-direction:column}
.account-destinations>a{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:88px;padding:18px 0;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none}
.account-destinations strong{display:block;font-size:18px}.account-destinations small{display:block;margin-top:6px;color:var(--muted);font-size:14px;line-height:1.5}
.account-destinations>a:hover strong{color:var(--accent)}
.account-destinations>a>span:last-child{flex:none;color:var(--accent);font-variant-numeric:tabular-nums}
html[data-theme] .account-profile-details{margin:16px 0;padding:0;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}
.account-profile-details>summary{padding:16px 0;min-height:48px;cursor:pointer;font-weight:700}
html[data-theme] .account-profile-details #profile-settings{margin:0;padding:16px 0;border:0;background:transparent}
.account-logout{margin-top:24px}
.account-workspace :is(a,button,summary):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.account-workspace section{scroll-margin-top:24px}
@media(max-width:760px){.account-layout{grid-template-columns:minmax(0,1fr);gap:24px;padding-top:20px}.account-section-nav{position:static;flex-direction:row;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);padding-bottom:12px}.account-section-nav a{padding:8px;font-size:14px}.account-identity{gap:14px;padding:16px 0 24px}#account-monogram{width:56px;height:56px;font-size:22px}.account-destinations>a{gap:12px}.account-content>section+section{margin-top:28px;padding-top:24px}}
/* Personal workspace: one task-focused panel at a time. */
.account-workspace [hidden]{display:none!important}
.account-section-nav [aria-current=page]{background:var(--panel2);color:var(--accent);font-weight:700}
.account-content>section+section{margin-top:0;padding-top:0;border-top:0}
.account-next{padding:24px;background:var(--panel2);border-radius:12px;margin:0 0 32px}
.account-next h3{margin:0;font-size:20px}.account-next p{margin:12px 0 16px}
.account-inline-action{display:inline-flex;align-items:center;min-height:44px;line-height:1.4;overflow-wrap:anywhere}
.account-next .account-inline-action{font-weight:700;color:var(--text);text-decoration-thickness:2px;text-underline-offset:5px}
.account-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.account-section-heading :is(h2,h3){margin:0}.account-section-heading>a{min-height:44px;display:flex;align-items:center}
.account-following{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:16px}
.account-match-row,.account-prediction-row{padding:20px 0;border-bottom:1px solid var(--line)}
.account-match-row>a,.account-prediction-row>a:first-child{display:flex;font-size:19px;font-weight:700;color:var(--text)}
.account-match-row p{margin:4px 0;color:var(--muted)}
.account-match-row small,.account-prediction-row small{display:block;color:var(--muted);font-size:14px}
.account-prediction-row p{font-variant-numeric:tabular-nums}
#account-awards{margin-top:32px}.account-award-list{display:flex;flex-wrap:wrap;gap:16px}
.account-identity #account-public-page{display:inline-flex;min-height:44px;align-items:center}
.account-identity .rlf-verification-badge{width:1em;height:1em}
@media(max-width:760px){.account-next{padding:20px}.account-section-nav{display:grid;grid-template-columns:1fr 1fr}.account-section-nav a{min-height:48px}.account-section-heading{gap:8px}.account-match-row>a,.account-prediction-row>a:first-child{font-size:17px}}
.account-portrait{width:72px;height:72px;object-fit:cover;border-radius:12px;flex:none}@media(max-width:760px){.account-portrait{width:56px;height:56px}}
#account-next-match{display:grid;gap:12px;padding-block:24px}#account-next-match a{min-height:44px;display:flex;align-items:center}#account-next-match p{margin:0}#account-next-match small{max-width:65ch}
