@media (min-width:901px){html,body{font-size:14px}.nm-app{grid-template-columns:232px minmax(0,1fr)}.nm-work{grid-template-rows:74px minmax(0,1fr) 42px}.nm-brand{gap:14px;padding:22px 17px}.nm-brand>b{width:40px;height:46px;font-size:27px}.nm-brand strong{font-size:20px}.nm-brand small{font-size:11px}.nm-brand em{font-size:10px}.nm-company{padding:0 23px 17px}.nm-company>strong{font-size:11px;line-height:1.35}.nm-company button{font-size:11px}.nm-nav{gap:5px;padding:9px}.nm-nav button{grid-template-columns:27px 1fr;padding:15px 18px;font-size:13px}.nm-connected{padding:18px 22px}.nm-connected strong{font-size:13px}.nm-connected small{font-size:10px}.nm-top{gap:16px;padding:0 20px}.nm-top>label{width:310px;padding:0 14px}.nm-top input{height:42px;font-size:12px}.nm-top>b{font-size:10px}.nm-user strong{font-size:13px}.nm-user small{font-size:9px}.nm-content{padding:18px}.nm-title{margin-bottom:13px}.nm-title h1{font-size:25px}.nm-title span{font-size:12px}.nm-blue-btn,.nm-dark-btn,.nm-title button,.nm-device-tools button,.nm-topology-tools button{min-height:40px;padding:0 18px;font-size:12px}.nm-kpis,.nm-device-kpis,.nm-alarm-kpis{gap:10px;margin-bottom:12px}.nm-kpi{min-height:88px;padding:16px}.nm-kpi small{font-size:10px}.nm-kpi strong{margin:9px 0 4px;font-size:25px}.nm-kpi span{font-size:10px}.nm-box>header{min-height:46px;padding:0 16px}.nm-box h2{font-size:13px}.nm-box header span,.nm-box header button{font-size:10px}.nm-row{grid-template-columns:76px 1fr 210px 62px;margin:0 14px 6px;padding:9px 11px;font-size:11px}.nm-row b{font-size:10px}.nm-mini-line{padding:7px 0;font-size:10px}.nm-traffic footer b{font-size:10px}.nm-device-tools,.nm-topology-tools,.nm-alarm-filter{gap:12px;padding:10px 12px}.nm-device-tools input,.nm-topology-tools input,.nm-alarm-filter input{height:34px;font-size:11px}.nm-device-tools select,.nm-topology-tools select,.nm-alarm-filter select,.nm-title select{height:35px;font-size:11px}.nm-dev-table th,.nm-dev-table td,.nm-alarm-table th,.nm-alarm-table td{padding:12px 11px;font-size:11px}.nm-detail-head{padding:18px 21px}.nm-detail-head h1{font-size:23px}.nm-detail-head b{font-size:10px}.nm-detail-head p{font-size:11px}.nm-gauge{height:174px}.nm-ring{width:104px;height:104px}.nm-ring strong{font-size:25px}.nm-gauge span{font-size:12px}.nm-port-panel h3{margin:9px 20px;font-size:10px}.nm-port-legend{padding:12px 20px;font-size:11px}.nm-port-grid{grid-template-columns:repeat(12,minmax(72px,1fr));gap:8px;padding:5px 20px}.nm-port{min-height:52px;font-size:10px}.nm-port-grid.is-detailed .nm-port{min-height:78px}.nm-port-grid--logical{grid-template-columns:repeat(2,86px)}.nm-topology-tools,.nm-topology-tools>span{font-size:10px}.nm-inspector,.nm-alarm-inspector{padding:17px}.nm-inspector small,.nm-alarm-inspector small{font-size:9px}.nm-inspector h2,.nm-alarm-inspector h2{font-size:19px}.nm-inspector dt{font-size:9px}.nm-inspector dd{font-size:11px}.nm-tabs button{padding:15px 23px;font-size:12px}.nm-alarm-filter b{font-size:10px}.nm-settings{grid-template-columns:168px 1fr}.nm-settings>nav:before{font-size:10px}.nm-settings>nav button{padding:15px 17px;font-size:11px}.nm-settings-body{padding:24px}.nm-settings-body h2{font-size:21px}.nm-settings-body>p{font-size:11px}.nm-field label{font-size:10px}.nm-field input,.nm-field select{height:44px;font-size:12px}.nm-statusbar{padding:0 22px;font-size:10px}.nm-traffic-detail h2{font-size:21px}.nm-history-table th,.nm-history-table td{padding:10px 8px;font-size:10px}}
@media (min-width:1500px){html,body{font-size:15px}.nm-app{grid-template-columns:250px minmax(0,1fr)}.nm-title h1{font-size:27px}.nm-dev-table th,.nm-dev-table td,.nm-alarm-table th,.nm-alarm-table td{font-size:12px}}

/* Fit the application inside the real browser viewport, including Windows taskbar-safe space. */
html,body,.nm-app{height:100dvh;max-height:100dvh}.nm-work,.nm-content{min-height:0}.nm-content{height:100%;padding-bottom:max(18px,env(safe-area-inset-bottom))}.nm-statusbar{position:relative;z-index:5;min-height:42px}.nm-dash-grid{height:calc(100dvh - 292px);min-height:430px;grid-template-rows:clamp(112px,15dvh,145px) minmax(185px,1fr) clamp(105px,13dvh,132px)}.nm-topology-layout{height:calc(100dvh - 205px);min-height:470px}.nm-alarm-layout{height:calc(100dvh - 305px);min-height:430px}.nm-settings{height:calc(100dvh - 146px);min-height:470px}.nm-port-panel{min-height:calc(100dvh - 405px)}
.nm-settings-body{overflow:auto}.nm-settings-body h3{margin:26px 0 12px;padding-bottom:8px;border-bottom:1px solid #1a3548;color:#dcecf4;font-size:13px}.nm-settings-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.nm-settings-actions button{min-height:38px;padding:0 15px;color:#dcebf3;border:1px solid #29485c;background:#102638;cursor:pointer}.nm-settings-actions button:first-child{border-color:#1598ed;background:#1598ed;color:#fff}.nm-field--wide{grid-column:1/-1}.nm-field textarea{min-height:82px;padding:10px;color:#e8f3f8;border:1px solid #1a3548;background:#102536;resize:vertical}.nm-switch{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border:1px solid #1a3548;background:#102536}.nm-switch input{width:16px;height:16px}.nm-setting-note{margin-top:18px;padding:12px 14px;color:#91adbd;border-left:3px solid #1598ed;background:#0e2434}.nm-system-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:18px}.nm-system-grid div{padding:14px;border:1px solid #1a3548;background:#102536}.nm-system-grid small{display:block;color:#7595a8;font-size:9px}.nm-system-grid strong{display:block;margin-top:6px;color:#20d486}
@media(max-height:800px) and (min-width:901px){.nm-work{grid-template-rows:66px minmax(0,1fr) 38px}.nm-content{padding:12px}.nm-title{margin-bottom:8px}.nm-title h1{font-size:22px}.nm-kpi{min-height:70px;padding:11px}.nm-kpi strong{margin:5px 0 2px;font-size:21px}.nm-dash-grid{height:calc(100dvh - 235px);min-height:390px;grid-template-rows:105px minmax(170px,1fr) 100px}.nm-box>header{min-height:38px}.nm-row{padding:5px 9px}.nm-topology-layout{height:calc(100dvh - 165px)}.nm-alarm-layout{height:calc(100dvh - 245px)}.nm-settings{height:calc(100dvh - 115px)}.nm-gauge{height:132px}.nm-ring{width:82px;height:82px}.nm-port-panel{min-height:calc(100dvh - 335px)}}
@media(max-width:900px){html,body,.nm-app{height:auto;max-height:none}.nm-content{height:auto}.nm-dash-grid,.nm-topology-layout,.nm-alarm-layout,.nm-settings{height:auto;min-height:0}.nm-port-panel{min-height:520px}.nm-system-grid{grid-template-columns:repeat(2,1fr)}}
