/* MMHVAULT V2 approved round MH vault emblem. Shared by all published pages. */
.brandmark:has(>.mmh-brand-image),.mark:has(>.mmh-brand-image),.auth-mark:has(>.mmh-brand-image),.concept-symbol:has(>.mmh-brand-image),.mmh-mock-brand{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:50%!important;overflow:visible!important;padding:0!important;flex-shrink:0}
.mmh-brand-image{display:block!important;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;border-radius:50%;aspect-ratio:1;flex:none}
.brandmark:has(>.mmh-brand-image){width:30px;height:30px}.auth-mark:has(>.mmh-brand-image){width:54px;height:54px}
@media(max-width:800px){.auth-mark:has(>.mmh-brand-image){width:48px;height:48px}}
@media(max-width:360px){.brandmark:has(>.mmh-brand-image){width:26px;height:26px}}

/* MMHVAULT V2 — unified visual palette. Auth V2.1.1 is the reference.
   Keep layouts, financial status colors, data, language and interactions unchanged. */
:root{--bg:#131923;--sidebar:#192230;--surface:#1a2330;--surface-raised:#263344;--border:#343e4c;--text:#f0f0f1;--muted:#b9c3d2;--accent:#91adf2;--positive:#39c9a0;--negative:#f18484;--mmh-header:#151c27;--mmh-hover:#29384e;--mmh-panel:rgba(25,34,47,.86)}
:root[data-theme=light]{--bg:#f1f5fb;--sidebar:#f5f8fc;--surface:#fff;--surface-raised:#edf2fa;--border:#d5dfec;--text:#20242c;--muted:#596372;--accent:#315fba;--positive:#087653;--negative:#b73743;--mmh-header:#f5f8fc;--mmh-hover:#e8effb;--mmh-panel:rgba(255,255,255,.86)}
/* Same gradients and subtle grid as login/register; avoid altering AI iframe sizing. */
html{background:var(--bg)}
body{isolation:isolate;background:radial-gradient(ellipse at 15% 20%,rgba(65,92,145,.19),transparent 48%),radial-gradient(ellipse at 85% 85%,rgba(41,73,110,.16),transparent 43%),linear-gradient(145deg,#131923 0%,#101318 48%,#121821 100%);background-attachment:fixed;color:var(--text)}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(145,173,242,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(145,173,242,.035) 1px,transparent 1px);background-size:64px 64px;mask-image:radial-gradient(ellipse at center,transparent 20%,#000 90%);-webkit-mask-image:radial-gradient(ellipse at center,transparent 20%,#000 90%)}
html[data-theme=light] body{background:radial-gradient(ellipse at 12% 18%,rgba(83,126,207,.10),transparent 46%),radial-gradient(ellipse at 90% 86%,rgba(77,141,178,.10),transparent 46%),linear-gradient(145deg,#f1f5fb,#fafbfc 52%,#f0f4f9);background-attachment:fixed}
html[data-theme=light] body::before{background-image:linear-gradient(rgba(49,95,186,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(49,95,186,.045) 1px,transparent 1px)}
/* Workspace chrome and public page headers. Use solid navigation for legibility. */
.sidebar{background:var(--sidebar);border-right:1px solid var(--border)}
.topbar{border-bottom-color:var(--border)}
.site-header,.b-header,.policy-header{background:var(--mmh-header);border-bottom-color:var(--border)}
.mobile-nav{background:var(--sidebar);border-color:var(--border)}
.card{background:var(--surface);border-color:var(--border)}
.nav-item{color:var(--muted)}
.nav-item:hover,.nav-item[aria-current=page],.sidebar .mmh-workspace-nav .nav-item:hover,.sidebar .mmh-workspace-nav .nav-item[aria-current=page]{background:var(--mmh-hover);color:var(--accent)}
.avatar,.account-icon{background:var(--surface-raised)}
.meter{background:var(--surface-raised)}
/* Explicit neutral overrides for legacy account controls; retain semantic active/positive/negative colors. */
:root:not([data-theme=light]) .accounts-content input,:root:not([data-theme=light]) .accounts-content select,:root:not([data-theme=light]) #accountDialog,:root:not([data-theme=light]) #balanceCurrencyButton,:root:not([data-theme=light]) .balance-currency-menu,:root:not([data-theme=light]) #balanceCurrencySearch{background:var(--surface);border-color:var(--border);color:var(--text)}
:root:not([data-theme=light]) .currency-list button[aria-pressed=true],:root:not([data-theme=light]) .picker-option[aria-pressed=true],:root:not([data-theme=light]) .picker-option:hover{background:var(--mmh-hover);border-color:var(--border);color:var(--accent)}
:root:not([data-theme=light]) .accounts-content .primary-action{background:#e1e7f1;color:#182132;border-color:#e1e7f1}
:root:not([data-theme=light]) .accounts-content .primary-action:hover{background:#f2f5fb}
/* Policy reading surfaces retain the approved V2.1.1 contrast. Auth inputs and centered form stay untouched. */
body[data-policy] .policy-header{background:var(--policy-header)}
body[data-policy] .policy-content,body[data-policy] .policy-index{background:var(--policy-card)}
@media(max-width:767px){body:not([data-view]){background-attachment:scroll}}
