/* Header typography belongs to the shared component, independent of page resets. */
body [data-account-header-ui] { font:400 14px/1.4 Manrope,Arial,sans-serif; }
body [data-account-header-ui] :is(button,input,select,textarea) { font-family:Manrope,Arial,sans-serif; }
/* Quiet account controls. Existing outer header/workspace geometry is retained. */
body [data-account-header-ui] :is(.nb-account-summary,.c76-credits-menu) {
  display:flex !important; align-items:center !important; height:44px !important; gap:8px !important;
}
body [data-account-header-ui] :is(.mkt-account-trigger,.mkt-account-balance,.mkt-notification-trigger) {
  box-sizing:border-box !important; position:relative; display:inline-flex !important;
  align-items:center !important; justify-content:center !important; flex:none !important;
  height:44px !important; min-height:44px !important; margin:0 !important;
  color:var(--mkt-legacy-text-44a85f77256e,#504b58) !important; text-decoration:none !important; box-shadow:none !important;
  transform:none !important; filter:none !important; cursor:pointer; transition:background-color .16s,border-color .16s;
}
body [data-account-header-ui] .mkt-account-trigger {
  width:64px !important; min-width:64px !important; padding:4px !important; gap:8px !important;
  border:0 !important; border-radius:10px !important; background:transparent !important;
}
body [data-account-header-ui] .mkt-account-trigger::before,
body [data-account-header-ui] .mkt-account-balance::before { content:none !important; }
body [data-account-header-ui] .mkt-account-trigger > .mkt-account-avatar,
body .mkt-account-popover .mkt-account-avatar {
  box-sizing:border-box !important; display:grid !important; place-items:center !important;
  width:32px !important; height:32px !important; min-width:32px !important; flex:0 0 32px !important;
  margin:0 !important; padding:0 !important; border:1px solid var(--mkt-legacy-border-b43903b8c70d,#e7e3ec) !important; border-radius:50% !important;
  background:var(--mkt-legacy-background-2bdfbcedb265,#efedf3) !important; background-image:none !important; color:var(--mkt-legacy-text-af1e68f62ca0,#62586f) !important;
  font:600 11px/1 Manrope,Arial,sans-serif !important;
}
body [data-account-header-ui] .mkt-account-balance {
  width:auto !important; min-width:64px !important; padding:0 10px !important; gap:6px !important;
  border:1px solid var(--mkt-legacy-border-c84579347be5,#e9e6ee) !important; border-radius:10px !important; background:var(--mkt-legacy-background-f002f4fd0d01,#f7f6f9) !important;
}
body [data-account-header-ui] .mkt-account-balance__value { font:600 14px/20px Manrope,Arial,sans-serif !important; font-variant-numeric:tabular-nums !important; }
body [data-account-header-ui] .mkt-notification-trigger { width:44px !important; min-width:44px !important; padding:0 !important; border:0 !important; border-radius:10px !important; background:transparent !important; }
body [data-account-header-ui] .nb-notifications-pill__badge { top:1px !important; right:0 !important; }
body [data-account-header-ui] :is(.mkt-account-trigger,.mkt-notification-trigger):is(:hover,[aria-expanded="true"]) { background:var(--mkt-legacy-background-55843cd316f0,#f3f1f6) !important; }
body [data-account-header-ui] .mkt-account-balance:hover { background:var(--mkt-legacy-background-2bdfbcedb265,#efedf3) !important; border-color:var(--mkt-legacy-border-e2c9809a9cac,#ddd7e6) !important; }
body [data-account-header-ui] :is(.mkt-account-trigger,.mkt-account-balance,.mkt-notification-trigger):focus-visible,
body .mkt-account-popover a:focus-visible { outline:2px solid var(--mkt-legacy-border-e6deaae2c9aa,#8b75ab) !important; outline-offset:3px !important; }
body .mkt-account-icon { box-sizing:border-box; display:block; width:20px; height:20px; min-width:20px; flex:0 0 20px; margin:0; padding:0; fill:none !important; stroke:currentColor !important; }
body .mkt-account-icon :is(path,circle,rect) { fill:none !important; stroke:currentColor !important; }
body [data-account-header-ui] .mkt-account-trigger > .mkt-account-icon { width:16px; height:16px; min-width:16px; flex:0 0 16px; transition:transform .16s; }
body [data-account-header-ui] .mkt-account-trigger[aria-expanded="true"] > .mkt-account-icon { transform:rotate(180deg); }
/* Body-level overlays escape fixed/transformed/overflow-hidden header owners. */
body .mkt-account-popover {
  box-sizing:border-box !important; position:fixed !important; z-index:1200 !important;
  inset:auto !important; top:var(--mkt-popover-top,88px) !important; left:var(--mkt-popover-left,16px) !important;
  width:min(248px,calc(100vw - 32px)) !important; max-width:none !important;
  max-height:calc(100dvh - var(--mkt-popover-top,88px) - 16px) !important; overflow:auto !important;
  margin:0 !important; padding:8px !important; transform:none !important;
  border:1px solid var(--mkt-legacy-border-c2929b2205fd,#e8e4ed) !important; border-radius:14px !important; background:var(--mkt-legacy-background-cd4f35c69835,#fff) !important;
  color:var(--mkt-legacy-text-e8232d7a200b,#403a47); box-shadow:0 12px 36px var(--mkt-legacy-shadow-a47fea32a6fb,rgba(40,30,55,.12)) !important;
  font-family:Manrope,Arial,sans-serif; overscroll-behavior:contain;
}
body .mkt-account-popover[hidden] { display:none !important; }
body .mkt-account-popover *,body .mkt-account-popover *::before,body .mkt-account-popover *::after { box-sizing:border-box; }
body .mkt-account-popover .mkt-account-identity {
  display:flex !important; align-items:center !important; gap:10px !important;
  margin:0 0 6px !important; padding:8px 10px 14px !important; border-bottom:1px solid var(--mkt-legacy-border-bde55aa8ee96,#eeebf2) !important;
}
body .mkt-account-popover .mkt-account-identity b { display:block; color:var(--mkt-legacy-text-7e931f040b62,#39333f); font:600 14px/20px Manrope,Arial,sans-serif; }
body .mkt-account-popover .mkt-account-identity small { display:block; color:var(--mkt-legacy-text-4171083e6163,#8c8594); font:400 11px/17px Manrope,Arial,sans-serif; }
body .mkt-account-popover [role="menuitem"] {
  display:flex !important; align-items:center !important; gap:10px !important; min-height:44px !important;
  margin:0 !important; padding:10px !important; border:0 !important; border-radius:8px !important;
  background:transparent !important; color:var(--mkt-legacy-text-3218d3a1d3f4,#625b6b) !important; text-decoration:none !important;
  font:400 13px/20px Manrope,Arial,sans-serif !important;
}
body .mkt-account-popover [role="menuitem"]:is(:hover,:focus-visible,[aria-current="page"]) { background:var(--mkt-legacy-background-e75f08b83a5c,#f5f3f8) !important; color:var(--mkt-legacy-text-51f3d48d190f,#403748) !important; }
body .mkt-account-popover .mkt-account-menu-label { display:block !important; width:auto !important; height:auto !important; flex:1 1 auto !important; min-width:0; padding:0 !important; background:transparent !important; color:inherit !important; border:0 !important; border-radius:0 !important; }
body .mkt-account-popover [data-account-menu-balance] {
  display:grid !important; grid-template-columns:minmax(0,1fr) auto auto; gap:6px !important;
  width:100% !important; min-width:0 !important; height:auto !important; box-shadow:none !important;
  color:var(--mkt-secondary,var(--mkt-legacy-text-5d2d9ad05069,#57455f)) !important; font-variant-numeric:tabular-nums;
}
body .mkt-account-popover [data-account-menu-balance] b { font:500 13px/20px Manrope,Arial,sans-serif; }
body .mkt-account-popover [data-account-menu-balance] .mkt-account-balance__value { font:600 14px/20px Manrope,Arial,sans-serif; color:var(--mkt-text,var(--mkt-legacy-text-24e1b88eae52,#403447)); }
body .mkt-account-popover [data-account-menu-balance] small { font:400 12px/20px Manrope,Arial,sans-serif; color:var(--mkt-muted,var(--mkt-legacy-text-51139dafd6a1,#75697e)); }
body .mkt-account-popover .mkt-account-menu-count { position:static !important; display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border:0 !important; border-radius:6px; background:var(--mkt-legacy-background-bde55aa8ee96,#eeebf2); color:var(--mkt-legacy-text-fa39ba383d79,#6e6579); font:600 10px/1 Manrope,Arial,sans-serif; }
body .mkt-account-popover .mkt-account-menu-count[hidden] { display:none !important; }
body .mkt-account-mobile-nav { display:none; }
body .mkt-notification-popover { width:min(360px,calc(100vw - 32px)) !important; padding:0 !important; }
body .mkt-notification-popover__heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 18px 12px; }
body .mkt-notification-popover__heading h2 { margin:0 !important; color:var(--mkt-legacy-text-7e931f040b62,#39333f); font:600 16px/22px Manrope,Arial,sans-serif !important; }
body .mkt-notification-popover__heading > span { color:var(--mkt-legacy-text-c3e074b1b59f,#8b8294); font:400 11px/16px Manrope,Arial,sans-serif; white-space:nowrap; }
body .mkt-notification-popover ul { display:block !important; list-style:none !important; margin:0 !important; padding:0 6px !important; }
body .mkt-notification-popover li { display:block; margin:0; padding:0; }
body .mkt-notification-preview { display:flex; align-items:flex-start; gap:10px; padding:12px; border-radius:9px; color:var(--mkt-legacy-text-d2bab62451d5,#716979); text-decoration:none !important; }
body .mkt-notification-preview:hover { background:var(--mkt-legacy-background-7dd663ef036a,#f7f5fa); color:var(--mkt-legacy-text-c7f9ecfd6b61,#51475c); }
body .mkt-notification-preview > .mkt-account-icon { width:18px; min-width:18px; flex:0 0 18px; height:18px; margin-top:2px; }
body .mkt-notification-preview__copy { display:block; flex:1; min-width:0; }
body .mkt-notification-preview__copy strong { display:block; color:var(--mkt-legacy-text-824c3514d3a6,#49414f); font:500 13px/19px Manrope,Arial,sans-serif; }
body .mkt-notification-preview.is-unread .mkt-notification-preview__copy strong { color:var(--mkt-legacy-text-b9b686dba89b,#352e3d); font-weight:600; }
body .mkt-notification-preview__copy > span { display:block; margin-top:3px; color:var(--mkt-legacy-text-325e73242e6c,#8c8494); font:400 11px/17px Manrope,Arial,sans-serif; }
body .mkt-notification-preview time { display:block; margin-top:5px; color:var(--mkt-legacy-text-a49ae518c4b0,#9d95a5); font:400 10px/15px Manrope,Arial,sans-serif; }
body .mkt-notification-preview__dot { width:5px; height:5px; flex:0 0 5px; margin-top:7px; border-radius:50%; background:transparent; }
body .mkt-notification-preview.is-unread .mkt-notification-preview__dot { background:var(--mkt-legacy-background-e6deaae2c9aa,#8b75ab); }
body .mkt-notification-popover__all { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; margin-top:6px; border-top:1px solid var(--mkt-legacy-border-bde55aa8ee96,#eeebf2); color:var(--mkt-legacy-text-0512fb2bdb58,#716079); text-decoration:none !important; font:500 12px/18px Manrope,Arial,sans-serif; }
body .mkt-notification-popover__all:hover { background:var(--mkt-legacy-background-fcde32233fa1,#f8f6fb); }
@media(max-width:991.98px) { body .mkt-account-mobile-nav { display:block; margin-bottom:6px; padding-bottom:6px; border-bottom:1px solid var(--mkt-legacy-border-bde55aa8ee96,#eeebf2); } }
@media(max-width:575.98px) {
  body [data-account-header-ui] :is(.nb-account-summary,.c76-credits-menu) { gap:4px !important; }
  body [data-account-header-ui] .mkt-account-trigger { width:48px !important; min-width:48px !important; gap:4px !important; padding:2px !important; }
  body [data-account-header-ui] .mkt-account-trigger > .mkt-account-avatar { width:28px !important; height:28px !important; min-width:28px !important; flex-basis:28px !important; font-size:10px !important; }
  body [data-account-header-ui] .mkt-account-trigger > .mkt-account-icon { width:12px; height:12px; min-width:12px; flex-basis:12px; }
  body [data-account-header-ui] .mkt-account-balance { min-width:60px !important; padding:0 7px !important; gap:4px !important; }
  body [data-account-header-ui] .mkt-account-balance > .mkt-account-icon { width:16px; height:16px; min-width:16px; flex-basis:16px; }
  body [data-account-header-ui] .mkt-account-balance__value { font-size:13px !important; }
}
@media(prefers-reduced-motion:reduce) { body [data-account-header-ui] :is(.mkt-account-trigger,.mkt-account-balance,.mkt-notification-trigger),body .mkt-account-icon { transition:none !important; } }
