/* One desktop shell for every tab: only main content scrolls. */
html.desktop-client{height:100%;overflow:hidden}
html.desktop-client body{height:100dvh;overflow:hidden}
html.desktop-client body #app{height:100%;min-height:0}
html.desktop-client body .shell,html.desktop-client body.messenger-page .shell{display:flex;flex-direction:column;height:100%;min-height:0;box-sizing:border-box;width:100%;max-width:1380px;margin:0 auto;padding:12px 28px 20px!important}
html.desktop-client body .top,html.desktop-client body.messenger-page .top{display:flex!important;flex:0 0 82px;height:82px;min-height:82px;padding:0}
html.desktop-client body .layout,html.desktop-client body.messenger-page .layout{display:grid!important;grid-template-columns:176px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr);align-items:stretch;gap:24px!important;flex:1 1 0;height:auto!important;min-height:0;width:100%;padding:0!important;margin:0}
html.desktop-client body .sidebar{padding:16px 0 0!important;min-height:0;overflow-y:auto;align-self:stretch}
html.desktop-client body .nav{position:relative;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none}
html.desktop-client body .main{height:100%;min-height:0;padding:0 0 24px!important;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain}
html.desktop-client body.messenger-page .main{height:100%;padding:0!important;overflow:hidden;scrollbar-gutter:stable}
html.desktop-client body.messenger-page #messenger-root{height:100%;min-height:0}
.telegram-user-link{color:var(--blue,#2788d5);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}.telegram-user-link:hover{text-decoration-thickness:2px}
@media(max-width:760px){html.desktop-client body .shell,html.desktop-client body.messenger-page .shell{padding:8px 14px 16px!important}html.desktop-client body .layout,html.desktop-client body.messenger-page .layout{grid-template-columns:116px minmax(0,1fr)!important;gap:14px!important}}
.finance .fin-heading .page-heading{margin-bottom:0}
.finance .fin-heading .page-heading h1{font-size:var(--page-title-size,32px);font-weight:600;line-height:1.18;letter-spacing:-.7px}
/* Regular desktop pages use the browser scrollbar at the window edge. */
html.desktop-client{height:auto;min-height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
html.desktop-client body:not(.messenger-page){height:auto;min-height:100dvh;overflow:visible}
html.desktop-client body:not(.messenger-page) #app{height:auto;min-height:100dvh}
html.desktop-client body:not(.messenger-page) .shell{height:auto;min-height:100dvh;overflow:visible;padding-bottom:32px!important}
html.desktop-client body:not(.messenger-page) .layout{flex:1 0 auto;grid-template-rows:auto;min-height:0;height:auto!important;align-items:start}
html.desktop-client body:not(.messenger-page) .main{height:auto;min-height:0;overflow:visible;scrollbar-gutter:auto;padding-bottom:0!important}
html.desktop-client body:not(.messenger-page) .sidebar{overflow:visible;height:auto;align-self:stretch}
html.desktop-client body:not(.messenger-page) .nav{position:sticky;top:20px!important}
/* Chat keeps its history and composer inside the visible viewport. */
html.desktop-client:has(body.messenger-page){height:100%;overflow:hidden}
html.desktop-client body.messenger-page{height:100dvh;overflow:hidden}
@media(max-width:760px){html.desktop-client body:not(.messenger-page) .shell{padding-bottom:24px!important}}

/* Match the website: admin links use the same alignment and pill as all navigation items. */
html.desktop-client body .nav button{border-radius:999px!important}
