/* Compatibility adjustments only: existing visual design and desktop layout retained. */
@media screen and (max-width:1023px){
 main,.auth-main,.auth-card,.app,.container,.container-fluid{min-width:0;max-width:100%;box-sizing:border-box}
 main>*,form,fieldset,.bento>*{min-width:0;box-sizing:border-box}
 fieldset{max-width:100%}
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea{min-width:0;max-width:100%;box-sizing:border-box}
 img,video,canvas{max-width:100%}
 main p,main label,main h1,main h2,main h3,.result-ref,.result-body,.auth-card{overflow-wrap:anywhere}
 .result-head,.result-foot{flex-wrap:wrap;gap:.5rem}
 .bal-amount{font-size:clamp(1.25rem,6vw,1.75rem);overflow-wrap:anywhere}
 #sidebar,#adminSidebar,#admin-sidebar{max-width:calc(100vw - 16px);max-height:100dvh}
 .overflow-x-auto,.table-responsive,.responsive-table-scroll{max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .responsive-table-scroll table{width:100%}
 pre{max-width:100%;overflow:auto}
 .site-nav__inner,.header-inner{min-width:0;gap:.5rem}
 .site-nav__brand,.auth-brand{max-width:100%;min-width:0}
 dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}
}
@media screen and (max-width:575px){
 .auth-main{padding-left:16px;padding-right:16px}
 .auth-card{min-width:0}
 .bento{gap:.75rem}
 main .flex.items-center.justify-between{column-gap:.5rem;row-gap:.5rem;flex-wrap:wrap}
 main .flex.items-center.justify-between>div{min-width:0}
 main button,main a,form button{max-width:100%}
 main button[type=submit],form .btn{white-space:normal;overflow-wrap:anywhere}
 .bottom-nav{padding-bottom:calc(.5rem + env(safe-area-inset-bottom,0px))}
 .bottom-nav .nav-item{min-width:0;padding-left:.35rem;padding-right:.35rem}
 .bottom-nav .nav-item span{overflow-wrap:anywhere;text-align:center}
 input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}
}
@media screen and (max-width:359px){
 .auth-brand,.site-nav__brand{font-size:.875rem}
 main .text-3xl{font-size:1.5rem;line-height:1.2}
 main .text-2xl{font-size:1.25rem;line-height:1.25}
 .site-nav__logo{width:30px;height:30px;flex-shrink:0}
}
