/* Product branding only. Currency controls and application behavior stay independent. */
.mbc-brand-image { display:block; height:auto; object-fit:contain; }
.auth-card>.auth-preferences { position:relative!important; top:auto!important; right:auto!important; left:auto!important; width:100%!important; margin:0 0 12px!important; }
.auth-brand .auth-mark { display:none!important; }
.auth-brand .mbc-auth-logo { display:block; width:172px; max-width:70%; height:auto; margin:0 auto 12px; object-fit:contain; }
.auth-brand:has(.mbc-auth-logo) h1 { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip-path:inset(50%)!important; white-space:nowrap!important; border:0!important; }
.sidebar .brand:has(.mbc-sidebar-brand) { display:block; min-height:0; padding:0; width:auto; overflow:visible; }
.sidebar .brand:has(.mbc-sidebar-brand)>div,
.sidebar .brand:has(.mbc-sidebar-brand)>.ux-brand-logo { display:none!important; }
.mbc-sidebar-brand { display:block; width:164px; max-width:100%; margin:0 auto; }
.mbc-sidebar-brand img { display:block; width:100%; height:auto; max-height:96px; object-fit:contain; }
.global-brand-header .brand-logo-wrap { width:180px; max-width:100%; }
.global-brand-header .brand-logo-wrap>img { display:block; width:100%; height:auto; }
.global-brand-header .cenuliq-signature { position:static; margin:6px 0 0; text-align:center; }
.mbc-gate-logo { display:block; width:144px; max-width:60%; height:auto; margin:0 0 14px; object-fit:contain; }
.mbc-topbar-mark { display:none; }
.mbc-public-brand { display:block; width:160px; max-width:65vw; margin:0 0 24px; background:#fff; padding:8px; border-radius:12px; }
.mbc-public-brand img { display:block; width:100%; height:auto; }
.mbc-public-brand:focus-visible { outline:3px solid #167ca6; outline-offset:6px; border-radius:4px; }
.design-header .design-brand { width:160px; align-items:center; gap:6px; }
.design-header .design-brand img { display:block; width:160px; max-width:100%; height:auto; object-fit:contain; }
.design-header .design-brand>span { margin:0; font-size:11px; line-height:1.35; }
.design-header .design-brand strong { font-size:14px; letter-spacing:0; }
.mbc-account-brand img { width:160px; max-width:56vw; height:auto; }
:is(.mbc-auth-logo,.mbc-gate-logo,.mbc-sidebar-brand,.mbc-topbar-mark),
body.mbc-ux-review .topbar>.ux-portrait-logo { background:#fff; padding:8px; border-radius:12px; }
body:not(.mbc-ux-review) .sidebar .mbc-sidebar-brand { background:#fff; padding:8px; border-radius:12px; }
@media(max-width:1000px) and (min-width:701px) {
 .sidebar .brand:has(.mbc-sidebar-brand) { width:auto!important; overflow:visible!important; }
 .mbc-sidebar-brand { width:60px; }
 .mbc-sidebar-brand img { max-height:44px; }
 body[data-ux-theme=dark] .mbc-sidebar-brand { padding:4px; border-radius:8px; }
}
@media(max-width:700px) {
 .auth-brand .mbc-auth-logo { width:156px; margin-bottom:10px; }
 .design-header .design-brand { width:140px; gap:4px; }
 .design-header .design-brand img { width:140px; }
 .design-header .design-brand>span { font-size:10px; }
 .design-header .design-brand strong { font-size:12px; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark) { display:grid!important; grid-template-columns:80px minmax(0,1fr) 52px!important; align-items:center; gap:8px!important; margin-bottom:16px; }
 body:not(.mbc-native) .topbar>.mbc-topbar-mark { display:block; grid-column:1; grid-row:1; width:80px; height:44px; object-fit:contain; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark)>div:first-of-type { grid-column:2; grid-row:1; min-width:0; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark)>.user-area { grid-column:3; grid-row:1; justify-content:flex-end; align-self:center; }
 /* The original localized button text remains its accessible name. */
 body:not(.mbc-native).mbc-ux-review .topbar #addButton { display:inline-flex; align-items:center; justify-content:center; width:52px; min-width:52px; max-width:52px; height:52px; min-height:52px!important; padding:0; border:0; border-radius:50%; background:#0669ff; color:#fff; font-size:0!important; line-height:1; box-shadow:0 4px 12px #0067ff26; }
 body:not(.mbc-native).mbc-ux-review .topbar #addButton::after { content:'+'; font:300 36px/1 Arial,sans-serif; }
 /* A retry is a full-width secondary row, separate from the compact plus slot. */
 body.mbc-ux-review .topbar:has(#uxSyncRetry:not(.hidden))>.user-area { display:contents!important; }
 body.mbc-ux-review .topbar:has(#uxSyncRetry:not(.hidden)) #addButton { grid-column:3; grid-row:1; justify-self:end; }
 body.mbc-ux-review .topbar #uxSyncRetry:not(.hidden) { grid-column:1/-1; grid-row:2; justify-self:stretch; width:100%; max-width:100%; min-height:44px; margin:0; padding:8px 12px; white-space:normal; overflow-wrap:normal; text-align:center; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark) :is(#viewTitle,#monthLabel) { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark) .month-row { grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; min-width:0; gap:4px; justify-content:center; }
 body:not(.mbc-native) .topbar.ux-dashboard-header:has(>.mbc-topbar-mark) .month-row { display:grid!important; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark) .month-row>div { grid-column:1/-1; grid-row:1; min-width:0; flex-direction:column; justify-content:center; text-align:center; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark) #prevMonth { grid-column:1; grid-row:2; justify-self:end; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark) #nextMonth { grid-column:2; grid-row:2; justify-self:start; }
 body:not(.mbc-native) .topbar:has(>.mbc-topbar-mark) #uxCurrentMonth { grid-column:1/-1; grid-row:3; width:100%; white-space:normal; text-align:center; }
 body:not(.mbc-ux-review) .global-brand-header { display:none; }
}
@media(orientation:portrait) {
 body.mbc-ux-review .topbar>.ux-portrait-logo { width:80px; max-width:100%; height:44px; object-fit:contain; object-position:center; }
 body.mbc-ux-review.mbc-native .sidebar .brand:has(.mbc-sidebar-brand) { display:none!important; }
}
@media(max-height:650px) {
 .auth-brand .mbc-auth-logo { width:136px; margin-bottom:8px; }
}
