/* Forum controls retain their separate stylesheet. Account pages share the public profile's square blue frames and charcoal panels. */
html body .cb-site .site-page:not(.admin-page) .account-profile-workspace:where(:not(:has(.forum-control-grid))).account-theme-shell {
 margin:0!important;padding:0!important;border:0!important;outline:0!important;
 box-shadow:none!important;background:transparent!important;min-height:0!important;
}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) {
 font:11px/1.4 Arial,Helvetica,sans-serif;color:#e1e5e8;
}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid)))>.account-shared-tabs {
 display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;
 height:auto!important;min-height:34px!important;gap:3px!important;
 margin:0 0 8px!important;padding:5px 5px 0!important;
 border:1px solid #3777a8!important;background:#182b38!important;
}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-shared-tabs>.legacy-tab {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 height:auto!important;min-height:27px!important;margin:0!important;padding:5px 9px!important;
 border:1px solid #3777a8!important;border-bottom:0!important;border-radius:0!important;
 font:700 11px/16px Arial,Helvetica,sans-serif!important;
}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .legacy-panel-head [role=heading] {
 margin:0!important;padding:0!important;color:inherit!important;background:none!important;
 font:700 11px/14px Arial,Helvetica,sans-serif!important;text-align:center!important;
}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid)))>h1 {
 display:flex;align-items:center;justify-content:center;
 margin:0 0 8px!important;padding:4px 7px!important;min-height:24px!important;
 border:1px solid #3777a8;background:linear-gradient(#0b2638,#000)!important;
 color:#eee!important;font:700 11px/16px Arial,Helvetica,sans-serif!important;
}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-theme-panel>.legacy-panel-body {line-height:1.4!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.account-intro,.account-empty) {margin:0!important;padding:2px 0;color:#c1cbd1}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) button {
 min-height:26px!important;height:auto!important;padding:4px 9px!important;
 border:1px solid #82939c!important;border-radius:0!important;
 background:linear-gradient(#f2f2f2,#aeb8bd)!important;color:#10222d!important;
 font:700 11px/16px Arial,Helvetica,sans-serif!important;cursor:pointer;
}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) button:disabled {opacity:.55;cursor:default}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(button,a,input,select,textarea,summary):focus-visible {
 outline:2px solid #89c9ef!important;outline-offset:2px!important;
}

/* Wallet modules use public panel chrome; reward cards remain compact inside it. */
html body .cb-site .wallet-workspace .wallet-balances {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0!important;
}
html body .cb-site .wallet-workspace .wallet-balances>article {
 min-width:0;padding:0!important;border:1px solid #3777a8!important;
 background:linear-gradient(135deg,#0a151d,#293138 65%)!important;
}
html body .cb-site .wallet-workspace .wallet-balances h2 {
 margin:0!important;padding:4px 7px!important;border-bottom:1px solid #3777a8;
 background:linear-gradient(#0b2638,#000)!important;color:#eee!important;
 font:700 11px/16px Arial,Helvetica,sans-serif!important;text-align:center;
}
html body .cb-site .wallet-workspace .wallet-balances strong {display:block;overflow-wrap:anywhere;padding:8px 10px;font:700 20px/24px Arial,Helvetica,sans-serif!important;color:#fff!important}
html body .cb-site .wallet-workspace .wallet-balances small {font-size:11px;font-weight:400;color:#b9cbd5}
html body .cb-site .wallet-workspace .wallet-preferences {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px}
html body .cb-site .wallet-workspace :is(.wallet-help,.wallet-preferences label) {margin:0!important;line-height:1.4!important;font-size:11px!important;color:#bdcbd3!important}
html body .cb-site .wallet-workspace .wallet-preferences label {display:inline-flex;align-items:center;gap:6px}
html body .cb-site .wallet-workspace .wallet-updating {margin:6px 0;color:#a8d0e5}
html body .cb-site .wallet-workspace .wallet-reward-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body .cb-site .wallet-workspace .wallet-reward-card {min-width:0;border:1px solid #3777a8;background:#252e35}
html body .cb-site .wallet-workspace .wallet-reward-card>header {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;border-bottom:1px solid #3777a8;background:linear-gradient(#0c2433,#17242d)}
html body .cb-site .wallet-workspace .wallet-reward-card h3 {margin:0!important;font:700 12px/16px Arial,Helvetica,sans-serif!important;color:#e1e5e8!important;overflow-wrap:anywhere}
html body .cb-site .wallet-workspace .wallet-reward-card>header>strong {flex-shrink:0;max-width:100%;overflow-wrap:anywhere;font-size:11px;color:#a8d5eb}
html body .cb-site .wallet-workspace .wallet-reward-content {padding:8px}
html body .cb-site .wallet-workspace .wallet-reward-content p {margin:0 0 7px;overflow-wrap:anywhere}
html body .cb-site .wallet-workspace .wallet-reward-status {color:#bdcbd3;font-size:11px}
html body .cb-site .wallet-workspace .wallet-hold {padding:6px 8px;border-left:3px solid #c3a456;background:#383526;color:#e7dba8}
html body .cb-site .wallet-workspace .wallet-reward-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:8px}
html body .cb-site .wallet-workspace .wallet-history {border:0!important;overflow-x:auto}
html body .cb-site .wallet-workspace .wallet-history table {min-width:540px;font-size:11px!important}
html body .cb-site .wallet-workspace .wallet-history :is(th,td) {padding:6px 8px!important;vertical-align:top}
html body .cb-site .wallet-workspace .wallet-history :is(th,td):first-child {width:190px;white-space:nowrap}
html body .cb-site .wallet-workspace .wallet-history td:nth-child(3) {font-variant-numeric:tabular-nums}
html body .cb-site .wallet-workspace .wallet-history summary {cursor:pointer;color:#6ec3eb}
html body .cb-site .wallet-workspace .wallet-history details {max-width:330px;overflow-wrap:anywhere}
html body .cb-site .wallet-workspace nav.wallet-pagination {display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:8px 0 0!important;padding-top:8px;border-top:1px solid #456879}

/* Keep profile editing and preferences within the same form and title system. */
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-preferences-form {padding:0!important;border:0!important;background:transparent!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) fieldset {min-width:0;margin:0 0 10px!important;padding:8px!important;border:1px solid #3777a8!important;background:#283137!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) legend {padding:3px 8px!important;border:1px solid #3777a8;background:linear-gradient(#0b2638,#000)!important;color:#eee!important;font:700 11px/16px Arial,Helvetica,sans-serif!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.community-field,.account-preferences-form .form-row) {display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;align-items:start!important;gap:8px 12px!important;margin:8px 0!important;padding:0!important;border:0!important;min-width:0}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.community-field,.account-preferences-form .form-row)>:is(span,label):first-child {padding-top:5px!important;text-align:right;font-size:11px!important;line-height:16px!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]),select,textarea) {
 max-width:100%!important;box-sizing:border-box!important;border:1px solid #638296!important;
 border-radius:0!important;background:#182831!important;color:#e4edf2!important;
 font:11px/16px Arial,Helvetica,sans-serif!important;padding:5px 7px!important;
}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.community-field,.account-preferences-form .form-row) :is(input:not([type=file]):not([type=checkbox]):not([type=radio]),select,textarea) {width:100%!important;min-height:28px!important;height:auto!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) textarea {resize:vertical}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(input,textarea)::placeholder {color:#9bacb8;opacity:1}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(input[type=checkbox],input[type=radio]) {width:auto!important;height:auto!important;min-height:0!important;margin:0!important;accent-color:#66a9cf;flex-shrink:0}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) input[type=file] {max-width:100%!important;color:#cbd7de!important;font-size:11px!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.preference-private-field small,.community-field small) {display:block;margin-top:4px;color:#adbdc8!important;font-size:10px!important;line-height:14px!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.community-form-actions,.account-preferences-form>.action) {margin:8px 0 0!important;padding:8px 0 0!important;border-top:1px solid #456879!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-preferences-form>.action>button {justify-self:start}

/* Security remains the same workflow, using the account panel's compact chrome. */
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-security-workspace {padding:0}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-section-tabs {gap:3px!important;margin:0 0 8px!important;padding:0 0 5px!important;border-color:#3777a8!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-section-tabs button {padding:4px 9px!important;border:1px solid #3777a8!important;background:linear-gradient(#0b4264,#06253a)!important;color:#82c9e7!important;border-radius:0!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-section-tabs button[aria-pressed=true] {background:linear-gradient(#89c9f1,#3f8dbc)!important;color:#081b27!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-summary-grid {gap:8px}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.security-summary-grid>section,.security-account-links,.security-password-panel) {padding:8px;border:1px solid #3777a8;background:linear-gradient(135deg,#0a151d,#293138 65%);border-radius:0}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.security-summary-grid>section,.security-account-links)>h3 {display:flex;align-items:center;justify-content:center;margin:-8px -8px 8px!important;padding:4px 7px!important;min-height:24px;height:auto!important;border-bottom:1px solid #3777a8;background:linear-gradient(#0b2638,#000)!important;color:#eee!important;font:700 11px/16px Arial,Helvetica,sans-serif!important;text-align:center!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-security-workspace p {margin:5px 0 8px!important;line-height:1.4!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-number {font:700 20px/25px Arial,Helvetica,sans-serif!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-account-links {margin-top:8px}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-account-links>div {gap:6px}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-account-links a {gap:2px;padding:7px 8px;background:#192b36;border-color:#3777a8}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .password-change-fields {gap:8px 12px!important;margin:12px 0!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .password-change-fields input {height:28px!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-show-password {margin-top:10px}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-sessions-head {background:linear-gradient(#0b2638,#000)!important;border-color:#3777a8!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-sessions-head h3 {margin:0!important;color:#eee!important;font:700 11px/16px Arial,Helvetica,sans-serif!important}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.security-session-toolbar,.security-pagination) {padding:8px;border-color:#456879;gap:8px}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-session {min-height:50px;padding:8px!important;background:#283137!important;gap:8px}
html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-session.current {background:#1d303b!important}

@media(max-width:700px) {
 html body .cb-site .wallet-workspace .wallet-reward-grid {grid-template-columns:1fr}
 html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.community-field,.account-preferences-form .form-row) {grid-template-columns:120px minmax(0,1fr)!important}
 html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .security-section-tabs {flex-wrap:wrap}
}
@media(max-width:480px) {
 html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.community-field,.account-preferences-form .form-row) {grid-template-columns:minmax(0,1fr)!important;gap:4px!important}
 html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) :is(.community-field,.account-preferences-form .form-row)>:is(span,label):first-child {text-align:left;padding-top:0!important}
 html body .cb-site .account-profile-workspace:where(:not(:has(.forum-control-grid))) .account-preferences-form>.action>span {display:none}
}
