:root{--app-nav-height:78px;--app-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));--app-top-inset:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px))}
html{scroll-padding-top:calc(20px + var(--app-top-inset));scroll-padding-bottom:calc(var(--app-nav-height) + var(--app-safe-bottom) + 24px)}
.shell{padding-top:var(--app-top-inset);padding-bottom:calc(var(--app-nav-height) + var(--app-safe-bottom) + 44px)}
.page-heading{margin-top:28px}
.page-heading h1{letter-spacing:-.7px}
.heading-actions #open-audit,.heading-actions #open-guide,.heading-actions #open-payments{display:none}
.app-navigation{position:fixed;z-index:20;bottom:calc(18px + var(--app-safe-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;width:min(500px,calc(100% - 36px));padding:8px;border:1px solid #e4e4e7;border-radius:22px;background:#fffffff5;box-shadow:0 10px 40px #18181b10,0 2px 6px #18181b04;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.app-nav-item{position:relative;display:flex;flex:1;min-width:0;min-height:60px;align-items:center;justify-content:center;gap:4px;flex-direction:column;padding:6px 4px;border-radius:15px;color:#8a8a94;font-size:10px;line-height:1.8;white-space:nowrap;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:background .16s ease,color .16s ease}
.app-nav-item:hover{color:#27272a;background:#f7f7f8}
.app-nav-item.active{background:#f0f0f2;color:#202124;font-weight:700}
.app-nav-icon{position:relative;display:grid;place-items:center;width:32px;height:27px}
.app-nav-icon svg{width:23px;height:23px}
.app-nav-item.active .app-nav-icon svg{stroke-width:2}
.app-nav-item:focus-visible{outline:2px solid #52525b;outline-offset:1px}
.app-nav-count{position:absolute;top:-3px;right:-7px;display:grid;place-items:center;min-width:16px;height:16px;padding-inline:4px;border:2px solid #fff;border-radius:10px;background:#dc4747;color:white;font-size:8px;line-height:1;font-weight:700}
.notice{z-index:30;bottom:calc(var(--app-nav-height) + var(--app-safe-bottom) + 30px)}
.guide-sidebar{top:calc(20px + var(--app-top-inset));max-height:calc(100dvh - 220px)}
.guide-article{scroll-margin-top:calc(20px + var(--app-top-inset))}
@media(max-width:720px){
 .shell{padding-inline:18px;padding-bottom:calc(var(--app-nav-height) + var(--app-safe-bottom) + 32px)}
 .page-heading{margin-top:25px;align-items:center}
 .page-heading h1{font-size:23px}
 .page-heading p{font-size:11px}
 .app-navigation{bottom:0;gap:2px;width:100%;padding:8px max(12px,env(safe-area-inset-left,0px)) calc(8px + var(--app-safe-bottom)) max(12px,env(safe-area-inset-right,0px));border:0;border-top:1px solid #e8e8ec;border-radius:22px 22px 0 0;box-shadow:0 -8px 30px #18181b05}
 .app-nav-item{min-height:59px;border-radius:13px;font-size:10px}
 .app-nav-item.active{background:#f1f1f3}
 .app-nav-icon svg{width:22px;height:22px}
 .back-list{margin-top:18px;margin-bottom:18px}
 .guide-sidebar{max-height:none}
 .guide-article{scroll-margin-top:calc(20px + var(--app-top-inset))}
}
@media(prefers-reduced-motion:reduce){.app-nav-item{transition:none}}
