/* Chat home: consistent edges, one compact header, and one bottom safe inset. */
body.vobixInbox .main{min-width:0}
body.vobixInbox .content{width:100%;max-width:1100px;margin-inline:auto;box-sizing:border-box}
body.vobixInbox .topbar{box-sizing:border-box;gap:8px;padding-inline:16px;box-shadow:none!important}
body.vobixInbox:not(.hasSelectedUser) #topStatus{display:none}
body.vobixInbox .head{min-width:0;flex:1}
body.vobixInbox .vobixQrShortcut{width:44px;min-width:44px;height:44px;padding:10px;box-sizing:border-box}
body.vobixInbox .vobixQrShortcut span{display:none}
body.vobixInbox .searchbox{margin:0 0 10px}
body.vobixInbox .searchbox input{box-sizing:border-box;width:100%;min-width:0;height:46px;padding-block:10px}
body.vobixInbox .searchbox button{min-height:46px;height:46px}
body.vobixInbox .contactSearchHint{display:none;margin:0 2px 12px;font-size:12px;line-height:1.45}
body.vobixInbox.finding .contactSearchHint,body.vobixInbox .searchbox:focus-within+.contactSearchHint{display:block}
body.vobixInbox .inboxFilters{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:0 0 6px;padding:2px 0;overflow:visible;scrollbar-width:none}
body.vobixInbox .inboxFilters button{min-height:44px;padding:8px 15px}
body.vobixInbox .inboxArchived{padding:6px 6px;gap:18px;min-height:44px}
body.vobixInbox .inboxArchived .inboxIcon{margin-inline:7px}
body.vobixInbox .historyItem{gap:0}
body.vobixInbox .chatHomeRow{gap:12px;padding:10px 0;min-width:0;min-height:70px;box-sizing:border-box}
body.vobixInbox .chatHomeAvatar{width:46px;height:46px;min-width:46px}
body.vobixInbox .chatHomeInfo{min-width:0;flex:1}
body.vobixInbox .chatHomeInfo :is(b,span){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.vobixInbox .historyMenuButton{flex:0 0 36px;min-height:44px;width:36px}
body.vobixInbox .newChatFloat{width:54px;height:54px;right:max(16px,env(safe-area-inset-right));border-radius:17px}
@media(max-width:760px){
 body.vobixInbox{--vobix-dock-safe:max(48px,var(--vobix-safe-bottom,env(safe-area-inset-bottom,0px)))}
 body.vobixInbox .shell{height:var(--vobix-inbox-height,100dvh);min-height:0;padding-bottom:0!important;scroll-padding-bottom:calc(148px + var(--vobix-dock-safe))}
 body.vobixInbox .topbar{min-height:calc(58px + var(--vobix-safe-top));padding:var(--vobix-safe-top) 14px 0!important}
 body.vobixInbox .content{padding:8px 14px calc(148px + var(--vobix-dock-safe))!important}
 body.vobixInbox .mobileNav{bottom:8px!important;height:calc(68px + var(--vobix-dock-safe));min-height:calc(68px + var(--vobix-dock-safe));padding:4px max(4px,env(safe-area-inset-right,0px)) calc(8px + var(--vobix-dock-safe)) max(4px,env(safe-area-inset-left,0px));box-sizing:border-box;align-items:stretch}
 body.vobixInbox .newChatFloat{bottom:calc(88px + var(--vobix-dock-safe))!important}
 body.vobixInbox.keyboardOpen .content{padding-bottom:16px!important}
 body.vobixInbox.keyboardOpen .newChatFloat{display:none!important}
 body.vobixInbox.keyboardOpen .shell{scroll-padding-bottom:16px}
}
@media(min-width:761px){body.vobixInbox .content{padding:16px 28px 96px}}
html:is([data-vobix-font=large],[data-vobix-font=xlarge]) body.vobixInbox .chatHomeRow{min-height:84px}

/* A quiet inbox: keep conversation space white and use blue for emphasis.
   Share the existing theme layer so its global !important palette cannot
   repaint the inbox. Accessibility contrast modes keep their own colors. */
@layer vobixLight {
 html:has(body.vobixInbox:not(.seniorHighContrast):not(.contrast)),
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) {
  background:#fff!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) {
  --text:#172027!important;--muted:#667078!important;
  --bg:#fff!important;--bg2:#fff!important;--line:#edf0f2!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.shell,.main,.content,.side,.topbar,.chatHome,.chatHomeList,.mobileNav) {
  background:#fff!important;box-shadow:none!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.topbar,.side,.mobileNav) {
  border-color:#edf0f2!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .topbar {border-bottom:0!important;backdrop-filter:none}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.head b,.vobixWordmark,.vobixWordmark>span) {color:#0786db!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.vobixQrShortcut,#topSettings,#backBtn) {
  background:transparent!important;color:#172027!important;border-color:transparent!important;box-shadow:none!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .searchbox input {
  background:#f3f4f5!important;border-color:transparent!important;color:#172027!important;box-shadow:none!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .searchbox input::placeholder {color:#69737a!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .searchbox button {
  background:transparent!important;color:#69737a!important;box-shadow:none!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .inboxFilters button {
  background:#f4f5f6!important;color:#58636c!important;border-color:transparent!important;box-shadow:none!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) #inboxFilters button[aria-pressed=true] {
  background:#e2f2ff!important;color:#076caa!important;border-color:transparent!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .inboxArchived {
  background:transparent!important;color:#667078!important;border:0!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.chatHomeRow,.historyItem) {
  background:transparent!important;border:0!important;box-shadow:none!important;color:#172027!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .chatHomeInfo b {color:#172027!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.chatHomeInfo span,.chatHomeRow time,.historyMenuButton) {color:#69737a!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) #chatHomeList .chatHomeRow time {color:#69737a!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.chatHomeAvatar,.avatar[data-contact-color]) {
  background-color:var(--contact-avatar-bg,#eaf4fb)!important;
  color:var(--contact-avatar-fg,#337ca8)!important;border:0!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) #chatHomeList .chatHomeRow.hasUnread time {color:#0675bd!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.inboxUnreadCount,.mobileNav .inboxDockBadge) {
  background:#087fc8!important;color:#fff!important;border-color:#fff!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.chatHomeRow:active,.historyItem:focus-within) {background:#f4f8fb!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .mobileNav :is(a,button,span,.inboxIcon) {
  background:transparent!important;color:#27343d!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .mobileNav [aria-current=page] {background:transparent!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .mobileNav [aria-current=page]>.inboxIcon {
  background:#e2f2ff!important;color:#0675bd!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .mobileNav #inboxUnreadBadge {background:#087fc8!important;color:#fff!important;border-color:#fff!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .newChatFloat {
  background:#0095ff!important;color:#fff!important;box-shadow:0 3px 10px #122b451c!important;
 }
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .newChatFloat .inboxIcon {color:#fff!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .side .nav button {color:#27343d!important}
}
body.vobixInbox .chatHome>.chatHomeTop{display:none}
body.vobixInbox:not(.hasSelectedUser) #topName::before{width:.72em;height:.72em;width:1cap;height:1cap;margin-right:7px;vertical-align:baseline}
body.vobixInbox .head b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.vobixInbox .vobixQrShortcut{border-radius:50%}
body.vobixInbox #topSettings{flex:0 0 44px;width:44px;min-height:44px;padding:0}
body.vobixInbox .searchbox input{border:0;height:46px;border-radius:24px;padding-left:46px}
body.vobixInbox .searchbox button{width:44px;min-width:44px;min-height:46px;border-radius:50%}
body.vobixInbox .inboxFilters{margin:4px 0 6px;gap:8px}
body.vobixInbox .inboxFilters button{min-height:40px;padding:7px 16px;font-weight:600}
body.vobixInbox .inboxArchived{min-height:48px;margin-bottom:2px;font-weight:500}
body.vobixInbox .chatHomeRow{min-height:76px;padding-block:12px}
body.vobixInbox .chatHomeAvatar{width:48px;height:48px;min-width:48px;font-weight:600}
body.vobixInbox .historyMenuButton{flex-basis:32px;width:32px;font-size:20px}

/* Chat typography matched visually to the supplied phone reference; keep each saved size. */
html body.vobixInbox :is(.chatHomeInfo,.mobileHistoryList .conversation,.inboxFontPreview) b {
 font-size:calc(var(--inbox-name-size,13px) + 4px)!important;
}
html body.vobixInbox :is(.chatHomeInfo,.mobileHistoryList .conversation,.inboxFontPreview) span {
 font-size:calc(var(--inbox-preview-size,11px) + 4px)!important;
}

/* More readable access to archived chats. */
html body.vobixInbox .inboxArchived{font-size:calc(var(--inbox-name-size,13px) + 4px)!important;font-weight:600;gap:14px}
html body.vobixInbox .inboxArchived .inboxIcon{width:24px;height:24px}
html body.vobixInbox .inboxArchived{justify-content:center;text-align:center;width:100%;box-sizing:border-box}
html body.vobixInbox .inboxArchived #inboxArchivedCount{margin-left:0}

body.vobixInbox .searchbox{gap:8px;align-items:center}
body.vobixInbox .searchbox input{flex:1 1 0;width:0}
body.vobixInbox #inboxAssistant{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:46px;padding:0 12px;border-radius:24px;text-decoration:none;white-space:nowrap;font:600 13px system-ui;flex:0 0 auto;background:#e9f4fc;color:#09628a;box-sizing:border-box}
body.vobixInbox #inboxAssistant span{font-size:18px}
body.vobixInbox #inboxAssistant:focus-visible{outline:3px solid #0086ce;outline-offset:2px}
body.vobixInbox .personalPalette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0}
body.vobixInbox .personalPalette button{display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 12px;border:1px solid #ccdce7;border-radius:13px;cursor:pointer;font:600 14px system-ui}
body.vobixInbox .personalPalette button::before{content:'';width:20px;height:20px;border-radius:50%;background:var(--swatch);flex:none}
body.vobixInbox .personalPalette [aria-pressed=true]{outline:2px solid #0086ce;outline-offset:1px}
body.vobixInbox .personalHint{font-size:14px;line-height:1.5;color:#536b79}
body.vobixInbox .personalProfile{display:block;margin:16px 0;min-height:44px;align-content:center;color:#076caa}
@media(prefers-reduced-motion:no-preference){body.vobixInbox :is(#inboxAssistant,.inboxFilters button,.inboxArchived,.newChatFloat,.settingsMenuButton){transition:transform .15s ease,background-color .15s ease}body.vobixInbox :is(#inboxAssistant,.inboxFilters button,.newChatFloat):active{transform:scale(.97)}}
@layer vobixLight{
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .newChatFloat{background:var(--inbox-personal-accent,#0086ce)!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) :is(.head b,.vobixWordmark,.vobixWordmark>span){color:var(--inbox-personal-accent,#0786db)!important}
 body.vobixInbox:not(.seniorHighContrast):not(.contrast) .personalPalette button{background:#fff!important;color:#243b48!important}
}

/* Names, previews and time labels use the same scale in the inbox and history. */
html body.vobixInbox :is(.chatHomeRow time,.mobileHistoryList .conversation time){font-size:calc(var(--inbox-time-size,10px) + 2px)!important;line-height:1.4}
html body.vobixInbox .searchbox input::placeholder{font-size:16px}

/* Four equal destinations: shared icon/label rows keep the dock level. */
body.vobixInbox .mobileNav{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:0}
body.vobixInbox .mobileNav>:is(a,button){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:32px 18px;align-content:center;justify-items:center;gap:3px;min-width:0;min-height:54px;padding:0;box-sizing:border-box}
body.vobixInbox .mobileNav>:is(a,button)>.inboxIcon{width:22px;height:22px;box-sizing:content-box;padding:5px 16px;margin:0}
html body.vobixInbox .mobileNav>:is(a,button)>span:not(.inboxDockBadge){display:block;width:100%;min-width:0;max-width:100%;margin:0;font-size:12px;font-weight:500;line-height:18px;text-align:center;white-space:nowrap;overflow-wrap:normal;word-break:normal;overflow:hidden;text-overflow:ellipsis}
html body.vobixInbox .mobileNav .inboxDockBadge{width:auto;max-width:none;font-size:11px;font-weight:750;line-height:14px;white-space:nowrap;overflow:visible}
@media(min-width:360px){html:is([data-vobix-font=large],[data-vobix-font=xlarge]) body.vobixInbox .mobileNav>:is(a,button)>span:not(.inboxDockBadge){font-size:13px}}


/* Visible return paths and a clear space above the system navigation. */
body.vobixInbox .inboxFilters{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;max-width:100%;min-width:0;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:none;padding:4px 0 8px;gap:6px}
body.vobixInbox .inboxFilters[data-dragging]{cursor:grabbing;user-select:none}
body.vobixInbox .inboxFilters :is(button,a){display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:8px 13px;border:1px solid #d2e4ee;border-radius:24px;background:#f3f8fb;color:#315b74;font:600 14px/1.25 system-ui;text-decoration:none;white-space:nowrap}
body.vobixInbox .inboxFilters button[aria-pressed=true]{background:#dcefff;color:#0069ae;border-color:#bbdff6}
body.vobixInbox .inboxFilters::-webkit-scrollbar{display:none}
body.vobixInbox #agendaPanel .chatHomeTop{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center}
body.vobixInbox #closeAgenda{grid-column:1;grid-row:1;display:grid!important;place-items:center;width:44px;height:44px;min-width:44px;padding:0;background:transparent;color:#0879c5;border:0;font-size:26px}
body.vobixInbox #agendaPanel .chatHomeTop>div{grid-column:2;grid-row:1;text-align:center}
body.vobixInbox #agendaPanel h1{font-size:22px}
body.vobixInbox .inboxAiFloat{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(158px + var(--vobix-dock-safe,var(--vobix-safe-bottom,0px)));z-index:12;display:flex;align-items:center;justify-content:center;gap:3px;width:54px;height:54px;border:1px solid #b9ddf5;border-radius:18px;background:#f2faff;box-shadow:0 4px 18px #006fc21c;text-decoration:none;color:#0072be}
body.vobixInbox .inboxAiFloat img{width:34px;height:34px}
body.vobixInbox .inboxAiFloat span{position:absolute;right:2px;bottom:2px;background:#0879d2;color:white;border:2px solid white;border-radius:7px;padding:1px 3px;font:700 10px system-ui}
body.vobixInbox:is(.finding,.hasSelectedUser,.agendaOpen,.keyboardOpen) :is(.inboxAiFloat,.newChatFloat),body.vobixInbox:has(.settings.open,.mobileHistoryPanel.open,.qrSharePanel:not([hidden]),dialog[open]) .inboxAiFloat{display:none!important}
@media(max-width:760px){
 body.vobixInbox .mobileNav{bottom:0!important;height:calc(80px + var(--vobix-dock-safe));min-height:calc(80px + var(--vobix-dock-safe));padding:8px 4px calc(16px + var(--vobix-dock-safe))!important}
 body.vobixInbox .mobileNav :is(a,button){min-height:48px;padding:2px 0;align-self:start}
 body.vobixInbox .newChatFloat{bottom:calc(96px + var(--vobix-dock-safe))!important}
 body.vobixInbox .content{padding-bottom:calc(222px + var(--vobix-dock-safe))!important}
 body.vobixInbox.keyboardOpen .content{padding-bottom:16px!important}
}
/* Keep the app name comfortably below the phone status bar. */
body.vobixInbox .topbar{padding-top:calc(max(24px,var(--vobix-safe-top,env(safe-area-inset-top,0px))) + 12px)!important;padding-bottom:12px!important}

