.mg-person{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.4rem}.mg-person h2{font-size:1.15rem;margin:.2rem 0}.mg-person p{margin:.45rem 0}.mg-balance{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;padding:1rem;background:var(--surface,#10212a);border-radius:12px;margin-bottom:1rem}.multiline{white-space:pre-wrap;overflow-wrap:anywhere}#management-dialog{max-width:1050px}#management-form textarea{min-height:90px}#management-dialog table{font-size:.85rem}#management-dialog .feature-actions input{max-width:190px}.scanner-video{display:block;width:100%;max-height:48vh;object-fit:contain;background:#000;border-radius:12px}.scanner-result{display:grid;gap:1rem;margin:1rem 0}.public-info{max-width:850px;margin:3rem auto;padding:1.5rem}.public-info article{padding:1.5rem;margin:1rem 0}.public-info p{line-height:1.9}.scan-dialog{width:min(90vw,650px)}.auth-links{flex-wrap:wrap;gap:1rem}#due-count{margin-inline-start:auto}@media(max-width:700px){.mg-person{align-items:stretch;flex-direction:column}.mg-balance{grid-template-columns:1fr}.public-info{margin:1rem auto;padding:.8rem}.feature-actions{flex-wrap:wrap}.mg-person .button{flex:1}#management-dialog .form-grid{grid-template-columns:1fr}#management-dialog .span-2{grid-column:auto}}

/* Keep the full sidebar in one scroll area: never shrink the tab list. */
.sidebar{overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:16px}
.sidebar>*{flex-shrink:0}
.sidebar .nav-list{flex:0 0 auto;min-height:auto;max-height:none;overflow:visible}
.sidebar .sidebar-bottom{flex:0 0 auto}
.sidebar .nav-item{white-space:normal;text-overflow:clip;height:auto;min-height:45px;flex-shrink:0}
