.hsg-list-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 16px}
.hsg-list-filters label{display:grid;gap:5px;min-width:160px;flex:1;font-size:12px;font-weight:600}
.hsg-list-filters select{min-height:44px;width:100%;max-width:100%;font:inherit;color:inherit;background:var(--branco,#fff);border:1px solid #9aafc4;border-radius:9px;padding:8px}
.hsg-list-filters button{min-height:44px}
#hsg-live-status{display:block;padding:10px 14px;border:1px solid #a6bed8;border-radius:10px;font-size:13px;background:#eaf4ff;color:#163957;margin-bottom:12px}
#hsg-live-status[hidden]{display:none}
.hsg-live-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:20px 0}
.hsg-live-metrics article{padding:20px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;display:grid;gap:8px}
.hsg-live-metrics strong{font-size:30px;color:#125b9c}
.hsg-live-table{overflow:auto;max-height:550px}
.hsg-live-table table{min-width:650px}
#horizon-sge-app.hsg-dark .hsg-list-filters select{background:#142b42;color:#edf4ff;border-color:#56708c}
@media(max-width:900px){
 html.hsg-app-page body{padding-bottom:0!important}
 #horizon-sge-app{max-width:100%;overflow-x:clip;--hsg-bottom-space:calc(76px + env(safe-area-inset-bottom,0px))}
 #horizon-sge-app #system-container .main-content{min-width:0;max-width:100%;box-sizing:border-box;padding-bottom:calc(var(--hsg-bottom-space) + 20px)!important;scroll-padding-bottom:calc(var(--hsg-bottom-space) + 20px)}
 #horizon-sge-app #hsg21-mobile-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;box-sizing:border-box;z-index:2500!important;border-radius:16px 16px 0 0!important;padding:6px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;margin:0!important;transform:none!important}
 #horizon-sge-app #hsg21-mobile-nav button{min-height:48px;min-width:0;touch-action:manipulation;cursor:pointer}
 #horizon-sge-app #hsg21-mobile-nav button:focus-visible{outline:3px solid #1a75d3;outline-offset:-3px}
 #horizon-sge-app :is(.table-container,.hsg-form-table,.hsg311-table-wrap){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 #horizon-sge-app :is(.form-grid,.view-section,.tab-content){min-width:0}
 #horizon-sge-app :is(input,select,textarea){max-width:100%;box-sizing:border-box;font-size:16px!important}
 #horizon-sge-app .modal-overlay{box-sizing:border-box;padding:12px!important;z-index:5000!important}
 #horizon-sge-app .modal-overlay .modal{max-height:calc(var(--hsg-visual-height,100dvh) - 24px)!important;overflow-y:auto!important;overscroll-behavior:contain}
 #horizon-sge-app .tonico-launcher{bottom:calc(var(--hsg-bottom-space) + 12px)!important}
 .hsg-offline-badge{bottom:calc(80px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 24px);box-sizing:border-box}
}
@media(max-width:480px){.hsg-list-filters{display:grid;grid-template-columns:minmax(0,1fr)}.hsg-list-filters label{min-width:0}.hsg-list-filters button{width:100%}}
@media print{#horizon-sge-app #hsg21-mobile-nav,#hsg-live-status{display:none!important}}
/* Master-only diagnostic copies share the monitoring surface. */
.h351-monitor{margin-top:24px}.h351-monitor [hidden]{display:none!important}.h351-monitor .hsg-monitor-card>small{font-size:11px;font-weight:750;letter-spacing:.08em;color:#426ca5}.h351-monitor .hsg-live-table{overflow:auto}.h351-monitor table{min-width:840px}.h351-monitor td{vertical-align:top}.h351-monitor td small{display:block;margin-top:5px}.h351-pages{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:16px 0}.h351-detail{margin-top:18px;border-top:1px solid #b9cadc;padding-top:18px}.h351-detail>button{float:right}.h351-detail dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.h351-detail dt{font-size:12px;font-weight:700}.h351-detail dd{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.h351-sync-note{font-size:12px;line-height:1.6;padding:12px;border:1px solid #bad0e8;border-radius:10px;color:inherit;background:transparent;grid-column:1/-1}
.hsg-delegated-management [data-nexhub-restricted]{display:none!important}.h352-management{padding:18px 20px;margin-bottom:20px;border:1px solid var(--ws-line);border-radius:14px;background:var(--ws-bg)}.h352-management .hsg-monitor-intro{margin-bottom:0}
