.metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.metrics article{min-width:0}.metric-label{gap:6px}.metric-value{font-size:30px}.metric-label>span{flex-shrink:0}.compact-label{font-size:10px;color:#75827d;display:flex;gap:8px;align-items:center}.compact-label select,.history-controls input,.history-controls select{font:inherit;color:var(--ink);border:1px solid #dce4d7;background:#fcfdfa;border-radius:5px;padding:9px 10px;min-width:0}.app-groups{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.app-group{border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0}.app-group-heading{background:#edf4ed;padding:14px;display:flex;justify-content:space-between;align-items:center}.app-group.connector .app-group-heading{background:#edf1f7}.app-group-heading h3{font-size:14px;margin:0}.app-group-heading span{font-size:10px;color:#779076}.app-item{padding:15px;border-top:1px solid var(--line)}.app-item:first-of-type{border-top:0}.app-item-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;font-size:12px}.app-path{font:10px ui-monospace,monospace;color:#899480;overflow-wrap:anywhere;line-height:1.7;margin:10px 0}.app-props{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.app-props dt{font-size:9px;color:#93a085}.app-props dd{margin:4px 0 0;font-size:11px;font-weight:500;overflow-wrap:anywhere}.app-item details{font-size:11px;color:#79906e;padding-top:10px;border-top:1px solid #edf1e8}.app-item details p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto}.app-item summary{cursor:pointer}.app-group-empty{padding:22px;font-size:12px;color:#98a18e}.badge.unknown{background:#f1f2ee;color:#8a937f}.badge.error{background:#faeeeb;color:#a65748}.badge.warning{background:#f9f1e4;color:#a2783d}.app-list-path{display:block;font:9px ui-monospace,monospace;color:#98a28d;max-width:300px;overflow:hidden;text-overflow:ellipsis;margin-top:6px}.app-fleet-name{color:#3f5942;font-weight:600}#detail-dialog{width:min(980px,calc(100% - 32px));max-height:90vh;overflow:auto}.history-tabs{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:0 0 18px;gap:5px}.history-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}.history-controls label{font-size:10px;color:#7f8f74;display:flex;flex-direction:column;gap:7px}.history-controls label:first-child{min-width:190px;flex:1}.history-query{flex:1.3;min-width:180px}.history-controls label:last-of-type{width:75px}.history-controls .text-button{padding-bottom:11px}.history-scroll{max-height:520px;min-height:180px;overflow:auto;border-top:1px solid var(--line)}.history-row{padding:14px 8px;border-bottom:1px solid #edf0e8;display:grid;grid-template-columns:30px 1fr auto;gap:10px}.history-row .activity-symbol{width:27px;height:27px}.history-row.error .activity-symbol{background:#fbefeb;color:#ad5a49}.history-row.warning .activity-symbol{background:#fbf2e5;color:#a37c40}.history-row-title{font-size:12px;font-weight:500;margin-bottom:7px}.history-row-detail{font-size:11px;color:#8a967d;line-height:1.6;overflow-wrap:anywhere}.history-row-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:9px;color:#8a967d;margin-top:8px}.history-row time{font-size:10px;color:#879578;white-space:nowrap;padding-top:3px}.history-pagination{padding-top:18px;display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:11px;color:#7d8f6f}.history-pagination>div{display:flex;align-items:center;gap:13px}.history-pagination button:disabled{opacity:.4;cursor:default}.history-help{font-size:10px;color:#9ba58f;margin:14px 0 0}.history-loading{opacity:.55}.new-events{background:#edf5e9!important;border-color:#b7d0ad!important}.history-empty{padding:50px 20px;text-align:center;color:#8f9e80;line-height:1.8}.release-card h2,.panel-release h2{margin:12px 0 22px}.release-card #release-list,.panel-release #panel-release-list{max-height:650px;overflow:auto}.panel-release .release-row{gap:13px}.panel-release .release-row p{font-size:11px}button[aria-pressed=true]{font-weight:650}
@media(max-width:1250px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.history-controls label:first-child{min-width:170px}}@media(max-width:850px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.app-groups{grid-template-columns:1fr}.history-pagination{align-items:flex-start;flex-direction:column}.history-row{grid-template-columns:24px 1fr}.history-row time{grid-column:2}.history-controls label{flex:1;min-width:120px}.history-controls label:first-child{flex-basis:100%}.history-pagination button{padding:9px 12px}}@media(max-width:520px){.app-props{grid-template-columns:1fr 1fr}.app-item-title{flex-direction:column}.history-controls{gap:10px}.activity-card{padding:16px}.history-controls .history-query{flex-basis:100%}.metric-value{font-size:29px}}

.history-scroll{max-height:min(520px,48vh)}#applications-view .table-scroll{max-height:600px}


/* Keep all navigation reachable at browser zoom and short viewport heights. */
.sidebar{height:100vh;height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#648c7d var(--nav)}
.sidebar>*{flex-shrink:0}.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-thumb{background:#648c7d;border-radius:6px}
@media(min-width:851px) and (max-height:850px){.sidebar{padding-top:20px}.workspace{margin-top:20px;margin-bottom:16px}.account-tools{margin-bottom:12px}.nav-caption{margin-bottom:9px}.sidebar nav button{padding-top:10px;padding-bottom:10px;margin-bottom:4px}.sidebar .profile{padding-top:12px;padding-bottom:14px}}
.remote-section{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.remote-section .section-heading{flex-wrap:wrap}.remote-section h3{font-size:15px}.remote-record{border-top:1px solid var(--line);padding:12px 0;font-size:12px}.remote-record .badge{margin-left:10px}.remote-record small{display:block;margin-top:8px;color:var(--muted);overflow-wrap:anywhere}.remote-record p{margin-bottom:0;overflow-wrap:anywhere}#remote-command-list{max-height:320px;overflow:auto}.remote-action{margin:10px 0}.remote-action:disabled{opacity:.5}

#detail-dialog{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto}

.update-card{padding:24px}.update-hint{display:block;margin-top:6px;font-size:10px;color:var(--muted)}.update-detail{padding:16px 0;border-top:1px solid var(--line);margin-top:18px}.update-detail p{font-size:12px}#updates-feedback{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}#updates-rows input{width:17px;height:17px;accent-color:var(--green)}

.connector-options{display:flex;flex-wrap:wrap;gap:12px 22px;padding:14px;background:#f3f6ef;border-radius:7px;margin:15px 0;font-size:12px}.connector-options label{display:flex;align-items:center;gap:7px}.connector-options small{flex-basis:100%;color:var(--muted)}.connector-package{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.connector-package small{display:block;font-size:11px;color:var(--muted)}.connector-package button{margin-top:9px}#connector-update-feedback{font-size:12px;overflow-wrap:anywhere}

.backup-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.backup-card{padding:25px}.backup-card h2{margin:12px 0}.backup-card select{display:block;width:100%;padding:11px;margin-top:8px;border:1px solid var(--line);border-radius:6px;background:#fcfdfa;color:var(--ink)}.backup-toggle{display:flex;align-items:center;gap:10px}.backup-toggle input[type=checkbox]{width:18px;display:inline-block;margin:0}.backup-summary{margin:24px 0}.backup-summary dt{font-size:11px;color:var(--muted);margin-top:18px}.backup-summary dd{margin:7px 0;font-size:13px;overflow-wrap:anywhere}.backup-history{margin-top:22px}.backup-detail{white-space:normal;min-width:210px;max-width:480px;line-height:1.7}#backup-feedback{font-size:12px;overflow-wrap:anywhere}@media(max-width:1000px){.backup-layout{grid-template-columns:1fr}}

.settings-section{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.settings-section .section-heading{flex-wrap:wrap}.settings-section .remote-record p{font-size:11px;line-height:1.7}

:is(#devices-view, #updates-view, #connector-updates-view) .table-scroll {
  max-height: min(600px, 60vh);
  overflow: auto;
}
:is(#devices-view, #updates-view, #connector-updates-view) .table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

#devices-view .table-scroll table { white-space: normal; }
#devices-view .customer-cell { min-width: 0; }
#devices-view .customer-cell > span:last-child { min-width: 0; overflow-wrap: anywhere; }
#devices-view .customer-avatar { flex-shrink: 0; }
#devices-view .device-detail-cell {
  position: sticky;
  left: 0;
  width: 1%;
  padding-inline: 12px;
  white-space: nowrap;
  background: var(--surface, #fff);
  z-index: 1;
}
#devices-view .table-scroll thead .device-detail-cell {
  background: var(--surface-raised, #fafbf8);
  z-index: 2;
}
#devices-view .device-detail-button { padding: 6px 9px; }

/* Keep detail dismissal reachable while its content scrolls. */
#detail-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
#detail-dialog>.dialog-heading{position:sticky;top:-27px;z-index:5;background:var(--detail-heading-bg,#fff);padding:16px 0;border-bottom:1px solid var(--line)}
html[data-theme="dark"] #detail-dialog{--detail-heading-bg:#19293b}
#detail-close{flex-shrink:0;min-width:44px;min-height:44px}
#devices-view .toolbar{flex-wrap:wrap;gap:14px}
.device-sort-label{margin-left:auto;flex-wrap:wrap}
#devices-view .search{max-width:100%}
@media(max-width:1200px){.device-sort-label{margin-left:0}}

#notifications-dialog{width:min(800px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}#notifications-dialog>.dialog-heading{position:sticky;top:-27px;z-index:3;background:var(--detail-heading-bg,#fff);padding:16px 0}html[data-theme="dark"] #notifications-dialog{--detail-heading-bg:#19293b}.notification-tools{display:flex;gap:10px;flex-wrap:wrap}.notification-item{border-top:1px solid var(--line);padding:18px 0}.notification-item>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.notification-item p{overflow-wrap:anywhere}.notification-item small{display:block;margin-bottom:12px}.notification-state{font-size:12px;color:var(--ink)}#notifications-dialog p{font-size:12px;line-height:1.6}#notifications-count{margin-left:5px}#notifications-close{min-width:44px;min-height:44px}@media(max-width:600px){#notifications-open{font-size:11px;padding:8px}.topbar-right{flex-wrap:wrap}}

#mail-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}#mail-dialog>.dialog-heading{position:sticky;top:-27px;z-index:3;background:var(--detail-heading-bg,#fff);padding:14px 0}html[data-theme="dark"] #mail-dialog{--detail-heading-bg:#19293b}.mail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}#mail-dialog p{font-size:12px;line-height:1.6}#mail-form input[type="checkbox"]{display:inline-block;width:auto;padding:0;margin:0 8px 0 0}#mail-close{min-width:44px;min-height:44px}@media(max-width:600px){.mail-grid{grid-template-columns:1fr}}

#notification-rules-dialog{max-height:calc(100dvh - 32px);overflow:auto}#notification-rules-dialog p{font-size:12px;line-height:1.6}#notification-rules-form input[type="checkbox"]{display:inline-block;width:auto;margin-right:8px}#notification-rules-close{min-width:44px;min-height:44px}

#settings-backup-list{max-height:min(460px,55dvh);overflow-y:auto;overscroll-behavior:auto;padding-right:10px}#settings-backup-list .remote-record:first-child{margin-top:0}.settings-backup-paging{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.settings-backup-paging small{margin-right:auto}.notification-resolution{border-left:3px solid #479e77;padding-left:12px}

#local-access-dialog p{font-size:13px;line-height:1.6}#local-access-dialog label{font-size:13px;display:block;margin:20px 0}#local-access-code{font:700 24px ui-monospace,monospace;letter-spacing:3px}
