.app-bottom-nav.four-tab-nav{display:grid!important;grid-template-columns:repeat(5,1fr)!important;height:76px!important;padding:7px 12px 12px!important;background:#fffdf7!important;border-top:1px solid #e3e9ea!important}.four-tab-nav .nav-item{padding:0!important;gap:3px!important;color:#29445e!important;font-weight:400!important;font-size:10px!important;position:relative}.four-tab-nav .nav-item:after,.four-tab-nav .nav-item:before{display:none!important}.four-tab-nav .nav-item.active{color:#3d59d8!important;font-weight:600!important}.four-tab-nav .nav-visual{height:37px;width:44px;border-radius:14px;display:grid;place-items:center;position:relative}.four-tab-nav .active .nav-visual{background:#dce8ff}.four-tab-nav .app-nav-glyph{width:25px!important;height:25px!important}.four-tab-nav .nav-pay .nav-visual{background:#233e59;color:#ffe39a}.four-tab-nav .nav-pay.active .nav-visual{background:#3d59d8}.four-tab-nav .nav-pay svg{width:29px;height:29px}.four-tab-nav:after{content:'';position:absolute;bottom:4px;left:40%;width:20%;height:3px;background:#243d55;border-radius:3px}.four-tab-nav .app-nav-unread{right:-4px;top:-3px}
.primary-header.four-tab-header{height:auto!important;min-height:68px;padding:6px 20px 10px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:32px auto;column-gap:8px;row-gap:2px;align-items:center;overflow:visible;position:sticky}
.four-tab-header .primary-heading h1{font-size:20px!important;line-height:26px!important;font-weight:700!important;letter-spacing:0!important;margin:0!important}
.four-tab-subtitle{margin:2px 0 0!important;font-size:11px!important;line-height:16px!important;font-weight:400!important;color:#718394!important}
.four-tab-header .primary-heading{display:contents!important}.four-tab-header .primary-heading h1{grid-column:1;grid-row:1;max-width:none}.four-tab-header .four-tab-subtitle{grid-column:1 / -1;grid-row:2;margin:0!important}
.four-tab-header .primary-header-actions{gap:6px!important;align-items:center;position:static;grid-column:2;grid-row:1;height:32px;overflow:visible}
.four-tab-header .primary-header-actions>button{width:32px!important;min-width:32px!important;height:32px!important;flex:0 0 32px!important;padding:4px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.four-tab-header .primary-header-actions svg,.four-tab-header .primary-header-actions img{width:24px!important;height:24px!important;flex:none!important}
.four-tab-header .primary-header-actions svg{stroke-width:1.7}
.four-tab-header .primary-chat-more{flex-direction:column;gap:3px!important}.four-tab-header .primary-chat-more i{width:3px!important;height:3px!important;margin:0!important}
.four-tab-header:after,.four-tab-header .primary-heading:after{content:none!important}

.four-tab-header .primary-header-actions>.chat-search-trigger{display:none!important}.chat-scrolled .four-tab-header .primary-header-actions>.chat-search-trigger{display:flex!important;opacity:1;pointer-events:auto}.chat-scrolled .four-tab-header .primary-heading h1{max-width:calc(100% - 160px)}

/* Keep artwork inside its own slot; notification dot stays inside the hit area. */
.four-tab-header .primary-header-actions>.primary-avatar-button{padding:0!important;overflow:visible}.four-tab-header .primary-avatar{width:28px!important;height:28px!important;background-size:327.87px 646.26px!important;background-position:-223.10px -20.32px!important;border-radius:50%}.four-tab-header .primary-notification-button i{top:1px;right:1px}.four-tab-header .primary-notification-button svg{transform:none}.chat-scrolled .four-tab-header .primary-heading h1{max-width:none}
.four-tab-header .primary-heading h1,.four-tab-header .primary-header-actions{align-self:center!important;transform:none!important}.four-tab-header .primary-heading h1{height:auto!important;padding:0!important}

/* Two-row headers own their top padding; the legacy status-bar extension must not cover their artwork. */
#app:has(.four-tab-header)>.status-bar:after{content:none;display:none}

/* Reserve navigation space only when navigation is actually rendered. */


/* Five equal slots, with unread count anchored to the chat glyph. */
#app>.app-bottom-nav.four-tab-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
#app>.app-bottom-nav.four-tab-nav>.nav-item{min-width:0;justify-content:flex-start;line-height:14px}
#app>.app-bottom-nav.four-tab-nav .app-nav-unread{top:0;right:0;min-width:16px;height:16px;padding:0 3px;border-width:1.5px;font-size:9px;line-height:1;z-index:1}


/* Keep original icon sizes; only add a light circular surface to More. */
.chat-hub .chat-primary-header.four-tab-header{grid-template-rows:32px auto}
.chat-hub .four-tab-header .primary-header-actions{height:32px;gap:8px!important}
.chat-hub .four-tab-header .primary-header-actions>button{width:32px!important;min-width:32px!important;height:32px!important;flex:0 0 32px!important;margin:0!important;align-self:center;transform:none}
.chat-hub.chat-scrolled .four-tab-header .primary-avatar-button{opacity:1!important;pointer-events:auto;overflow:visible!important}
.chat-hub .four-tab-header .primary-avatar-button{order:0;opacity:1!important;pointer-events:auto}
.chat-hub .four-tab-header .chat-search-trigger{order:1;transform:none}
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts{order:2;height:28px!important;min-height:28px!important;border-radius:10px}
.chat-hub .four-tab-header .primary-header-actions>.primary-chat-more{order:3;width:32px!important;height:32px!important;border-radius:50%;border:1px solid rgba(23,55,95,.12);background:#f1f6f7}
.chat-hub .four-tab-header .primary-header-actions>.primary-chat-more{border-radius:50%!important;border:1px solid rgba(23,55,95,.12)!important;background:#f1f6f7!important}

/* Match Chat action proportions to the MPay header. */
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts{height:32px!important;min-height:32px!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:50%}
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts img{width:24px!important;height:24px!important}
.chat-hub .four-tab-header .primary-header-actions>.primary-chat-more{background:transparent!important;border-color:rgba(23,55,95,.07)!important}

.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;flex:0 0 28px!important;padding:4px!important;background:#ffe7a0!important;border-radius:9px}
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts img{width:20px!important;height:20px!important}

/* One header action grid; contacts retain their approved yellow accent. */
.four-tab-header .primary-header-actions{gap:9px!important}
.four-tab-header .primary-header-actions>button{width:32px!important;min-width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:50%!important;border:0!important;color:#17375f!important}
.four-tab-header .primary-header-actions>.primary-scan-button,.four-tab-header .primary-header-actions>.primary-notification-button{background:#edf4f8!important}
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;flex:0 0 32px!important;border-radius:11px!important;padding:5px!important;background:#ffe7a0!important}
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts img{width:22px!important;height:22px!important}
.chat-hub .four-tab-header .primary-header-actions>.primary-chat-more{background:#edf4f8!important;border:0!important;box-shadow:inset 0 0 0 1px rgba(23,55,95,.035)!important;border-radius:50%!important;font-size:21px!important;line-height:1!important;padding:6px!important}
.four-tab-header .primary-header-actions>.primary-chat-more svg{width:22px!important;height:22px!important}

/* The portrait fills the same 32px frame as all header actions. */
.four-tab-header .primary-header-actions>.primary-avatar-button{width:32px!important;height:32px!important;min-width:32px!important;flex:0 0 32px!important;padding:0!important}
.four-tab-header .primary-avatar{display:block;width:32px!important;height:32px!important;flex:none;background-size:374.71px 738.58px!important;background-position:-254.97px -23.22px!important}

/* Chat shares the exact action-column spacing used by the other primary pages. */
.chat-hub .four-tab-header .primary-header-actions{gap:9px!important}

.four-tab-header .primary-header-actions>.primary-scan-button svg,.four-tab-header .primary-header-actions>.primary-notification-button svg{width:28px!important;height:28px!important;stroke-width:1.8;transform:none}
.four-tab-header .primary-notification-button i{width:7px;height:7px;top:2px;right:3px;border:1.5px solid #fffdf7;z-index:1}

/* Contacts remain prominent within the blue header palette. */
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts{background:#e1effb!important;box-shadow:inset 0 0 0 1px rgba(57,124,172,.12),inset 0 1px 0 rgba(255,255,255,.75)!important;color:#17375f!important}

.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts{padding:4px!important}
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts img{width:24px!important;height:24px!important}

/* Unread and notification indicators share one semantic red. */
.device{--notification-red:#e45d59}
.device .app-nav-unread,.device .chat-conversation time em,.device .ho-count-badge{background:var(--notification-red)!important;color:#fff!important}
.device .primary-notification-button i,.device .chat-category-unread,.device .home-message-unread,.device .ho-heading-status i{background:var(--notification-red)!important}

.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts{display:flex!important;align-items:center;justify-content:center;gap:5px;width:auto!important;min-width:0!important;flex:0 0 auto!important;padding:4px 9px!important;white-space:nowrap}
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts img{width:22px!important;height:22px!important;flex:none}
.chat-contacts-label{font-size:11px;font-weight:600;line-height:16px}

.chat-hub .four-tab-header .primary-header-actions>.chat-search-trigger{order:1;width:32px!important;min-width:32px!important;height:32px!important;flex:0 0 32px!important;padding:5px!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none;align-items:center;justify-content:center}
.chat-hub .four-tab-header .chat-search-trigger svg{width:22px;height:22px;flex:none}
.chat-hub .four-tab-header .primary-header-actions>.chat-header-contacts{order:0}
.chat-hub .four-tab-header .primary-header-actions>.primary-chat-more{order:2}

/* One notification-dot token across 1109; no halo or white separator ring. */
.device{--notification-dot-size:7px}
.device :is(.primary-notification-button i,.cred-notification-button i,.settings-notification-button i,.header-actions i,.chat-category-unread,.home-message-unread,.ho-heading-status i,.chat-pending-approval-dot,.chat-review-unseen-dot){width:var(--notification-dot-size)!important;height:var(--notification-dot-size)!important;min-width:var(--notification-dot-size)!important;min-height:var(--notification-dot-size)!important;box-sizing:border-box!important;flex-shrink:0;border:0!important;outline:0!important;border-radius:50%!important;background:var(--notification-red)!important;box-shadow:none!important;opacity:1}
.device :is(.app-nav-unread,.chat-conversation time em,.ho-count-badge){border:0!important;outline:0!important;box-shadow:none!important;background:var(--notification-red)!important;color:#fff!important}

/* Bell and Chats filter dots sit at the upper-right edge; other dots keep their anchors. */
.device :is(.primary-notification-button,.cred-notification-button,.settings-notification-button){overflow:visible!important}
.device :is(.primary-notification-button i,.cred-notification-button i,.settings-notification-button i){top:1px!important;right:3px!important;transform:none}
.device .chat-hub.chat-design-scheme .chat-design-filters button{overflow:visible}
.device .chat-hub.chat-design-scheme .chat-design-filters .chat-category-unread{top:1px;right:4px;transform:none}
