/* Device adaptation; keep long financial matrices scrollable inside their cards. */
.mobile-menu{display:none}.mobile-links{display:grid;gap:6px;margin:18px 0}.mobile-navigation{max-width:440px}.mobile-navigation .nav-item{width:100%;white-space:normal;min-height:44px}
.install-dialog{max-width:560px}.install-dialog li{margin:12px 0;line-height:1.6}.install-actions{display:flex;flex-wrap:wrap;gap:12px}.connection-status{background:#fff3d6;border-bottom:1px solid #e9cd8e;color:#654815;padding:10px 20px;font-size:14px}.auth-card>.install-app{margin-top:14px}.topbar>.install-app{white-space:nowrap}.detail-panel{height:100dvh;max-height:100dvh}.center-dialog,.reader-dialog{max-height:calc(100dvh - 24px)}
@media(max-width:900px){
 .sidebar{padding-top:max(14px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .mobile-menu{display:block;position:absolute;top:16px;right:96px;min-height:44px;padding:8px 14px}
 .sidebar .brand{margin-right:170px;font-size:21px}.sidebar .brand-symbol{width:34px;height:34px}.sidebar nav{scrollbar-width:thin;scroll-padding:8px}.sidebar .sidebar-bottom{display:flex;position:absolute;right:16px;top:18px;margin:0}.sidebar-bottom .version{display:none}.sidebar-bottom .quiet{font-size:0;padding:8px}.sidebar-bottom .quiet svg{width:22px;height:22px}.sidebar-bottom .quiet:after{content:'Sair';font-size:12px}
 .topbar{height:auto;min-height:54px;flex-wrap:wrap;gap:8px;padding-top:8px;padding-bottom:8px}.topbar>.install-app{display:none}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}
 .button,.small-button,.text-button,.filter-more{min-height:44px}.exclusion-chip{min-height:28px}.filter-chip{min-height:32px}
 .op-form{min-width:0}.op-form>label{min-width:0}.op-form input,.op-form select,.op-form textarea{width:100%;max-width:100%}
 main{padding-bottom:max(30px,env(safe-area-inset-bottom))}.detail-panel{padding-bottom:max(22px,env(safe-area-inset-bottom))}
}
@media(max-width:700px){
 .sidebar .brand{font-size:19px;gap:7px;margin-right:160px}.sidebar .brand-symbol{width:30px;height:30px}.mobile-menu{right:92px;font-size:13px;padding:6px 10px;top:12px}
 .sidebar .sidebar-bottom{top:12px;right:12px}.sidebar nav{margin-top:8px}.topbar{padding-left:16px;padding-right:16px}
 .mobile-cards,.op-card .mobile-cards,.radar-table.mobile-cards{min-width:0!important;width:100%;table-layout:fixed}
 .mobile-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-cards tbody{display:block}.mobile-cards tr{display:grid;grid-template-columns:minmax(0,1fr);padding:12px;border-bottom:1px solid var(--line);gap:10px}
 .mobile-cards td,#radar-results-workspace .mobile-cards td,.op-card .mobile-cards td{display:block;width:auto!important;min-width:0;max-width:none;padding:0!important;border:0;overflow-wrap:anywhere}
 .mobile-cards td:before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.03em;font-weight:600;color:var(--muted);margin:0 0 4px}
 .mobile-cards td:first-child:before,.mobile-cards td:last-child:before{display:none}.mobile-cards .object-link{align-items:flex-start}.mobile-cards .object-link strong{white-space:normal;max-width:none}.mobile-cards .org{max-width:none}
 .mobile-cards td:last-child .button{width:100%}.mobile-cards td:last-child a{display:inline-block;margin:8px 0}.mobile-cards .deadline{white-space:normal}
 .results-surface,.national-scroll,.overview-item-table{max-width:100%}.result-tabs{gap:4px}.result-tabs #expand-radar{margin-left:0}
 .center-dialog,.nav-dialog{max-width:calc(100vw - 16px);padding:16px}.auth-page{min-height:100dvh;padding:16px}.auth-card{padding:20px}.auth-header .brand{font-size:21px}
}
@media(max-width:370px){.sidebar .brand>span{font-size:17px}.sidebar .brand-symbol{width:26px;height:26px}.sidebar .brand{gap:5px}.topbar .header-button{padding:8px}.filter-line{gap:4px}}
@media(max-height:500px) and (orientation:landscape){.detail-panel{padding-top:12px}.dialog-top{margin-bottom:10px}.auth-story{display:none}.auth-layout{display:block;max-width:600px;margin:auto}}
@media(display-mode:standalone){body{overscroll-behavior-y:none}.install-app{display:none}}
