.app-bottom-nav{display:none}
@media screen and (max-width:850px){
html{scroll-padding-top:90px}body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-text-size-adjust:100%;min-height:100dvh;background:#f5f5fa}
.topbar{height:auto;min-height:64px;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;gap:10px;background:#fff;z-index:30}
.brand{margin:0;gap:8px;font-size:16px;min-width:0}.brand .brand-logo{width:38px;height:38px;object-fit:contain}.brand .brand-name{width:auto;height:auto;background:none;box-shadow:none;color:var(--ink);font-size:16px;white-space:nowrap}
.topbar nav{top:100%;max-height:65dvh;overflow-y:auto}.menu-button{min-height:44px}.alerts-wrap{flex-shrink:0}.alerts-panel{position:fixed;left:14px;right:14px;top:auto;margin-top:12px;width:auto;max-height:65dvh;overflow:auto}.alerts-count:empty{display:none}
.container{padding:20px 14px calc(95px + env(safe-area-inset-bottom));min-width:0}.page-heading{margin-bottom:18px}.page-heading .eyebrow{display:none}h1{font-size:26px;line-height:1.2}h2{font-size:19px}.panel{padding:18px 14px;border-radius:19px;box-shadow:0 4px 18px #18203406}
.form-grid,.split,.operation-grid{grid-template-columns:minmax(0,1fr)}.span-2{grid-column:auto}input,select,textarea{font-size:16px;min-width:0;max-width:100%;min-height:46px}input[type=checkbox],input[type=radio]{min-height:20px;width:20px}label{font-size:13px}.button{min-height:46px;white-space:normal;text-align:center}form,.form-grid>*{min-width:0}
.toolbar,.document-actions,.external-services-title{flex-wrap:wrap}.filters{max-width:100%;overflow:auto}.filters a{white-space:nowrap}.stats-grid,.stats-grid.compact,.expense-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats-grid .stat{padding:15px 11px;min-width:0}.stats-grid .stat strong{font-size:clamp(15px,4.4vw,21px);white-space:normal;overflow-wrap:anywhere}.stat small{font-size:11px}.quote-totals{grid-template-columns:minmax(0,1fr)}.quote-item{grid-template-columns:minmax(0,1fr) 75px}.quote-item>label:first-child{grid-column:1/-1}.external-service-row{display:flex;flex-direction:column;align-items:stretch}.external-service-row>*{width:100%}
.table-wrap{overflow-x:auto}tr[hidden],[hidden]{display:none!important}.calendar-detail{max-height:none}.collection-modal{box-sizing:border-box;width:calc(100% - 28px);max-height:85dvh;overflow:auto;border:0;border-radius:22px;padding:22px}.collection-modal input{font-size:16px}.collection-amounts{gap:6px}.collection-amounts strong{font-size:16px;overflow-wrap:anywhere}
.app-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #e7e9f2;z-index:25;backdrop-filter:blur(18px)}.app-bottom-nav a{margin:0;padding:7px 2px;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;color:#68728a;min-height:46px}.app-bottom-nav svg{width:21px;height:21px}.app-bottom-nav a.active{background:#efecff;color:#5b4cf0}body>footer{display:none}
.formal-quote,.legacy-contract,.contract{padding:20px 14px;max-width:100%;overflow-wrap:anywhere}.formal-header{flex-wrap:wrap}.auth-page{padding:18px;padding-top:calc(18px + env(safe-area-inset-top))}.login-shell{max-width:100%}
}
@media print{.app-bottom-nav{display:none!important}}
