/* One home link and one navigation dock throughout the application. */
.header:not(.participant-header){grid-template-columns:minmax(0,1fr) auto}
.brand-home{display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;column-gap:10px;min-width:0;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left}.brand-home .brand,.brand-home .header-copy,.brand-home .header-copy small{display:block}.brand-home:focus-visible{border-radius:13px;outline:2px solid var(--gold);outline-offset:5px}
.shell.messenger-shell{height:var(--chat-viewport-height,100dvh);min-height:0;display:flex;flex-direction:column;padding-bottom:calc(99px + env(safe-area-inset-bottom));overflow:hidden}.shell.messenger-shell>.header{flex-shrink:0}.shell.messenger-shell>.chat-content{flex:1;min-height:0;overflow:hidden}
.shell.messenger-shell>.dock{position:fixed;display:flex;align-items:center;justify-content:space-around;left:50%;transform:translateX(-50%);bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 30px);max-width:510px;height:73px;min-height:73px;margin:0;padding:5px 10px;z-index:25}
.shell.messenger-shell .inbox-tabs>div{min-width:0;overflow-x:auto;scrollbar-width:none}.shell.messenger-shell .inbox-tabs{flex:none;min-width:0}
@media(min-width:700px){.brand-home{grid-template-columns:56px minmax(0,1fr);column-gap:14px}}
@media(max-width:360px){.brand-home{grid-template-columns:42px minmax(0,1fr);column-gap:7px}}
@media(max-height:520px) and (max-width:699px){.messenger-shell:has(#msg-text:focus)>.header{display:none}}
html{scrollbar-gutter:stable}
@media(max-width:699px){
 .shell.messenger-shell:has(.msg-screen:not(.has-thread)){padding-bottom:0}
 .msg-screen:not(.has-thread) #msg-rows{padding-bottom:105px}
}

/* Match the application canvas exactly to the resting bottom navigation. */
:root[data-background-mode][data-card-style] body,
:root[data-background-mode][data-card-style] .shell,
:root[data-background-mode][data-card-style] .shell>.header{background:#fcfcfa}
