/* A compact fleet directory: bounded rows, quiet status and on-demand detail. */
#main[data-page="devices"] .page-title{margin-bottom:20px;align-items:flex-start}
#main[data-page="devices"] .page-title h1{font-size:25px;line-height:1.35;letter-spacing:0}
#main[data-page="devices"] .page-title .eyebrow{display:none}
#main[data-page="devices"] .page-title .subtitle{font-size:13px;margin-top:6px}
.fleet-directory{min-width:0}.fleet-filters{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:18px}
.fleet-filter{display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font-size:13px;min-height:42px}
.fleet-filter:hover{background:#fff}.fleet-filter.selected{color:#1d4fb1;background:#fff;border-color:#cbd8ef;box-shadow:0 1px 2px #182b4810}
.fleet-filter strong{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--ink)}
.fleet-state-dot{width:6px;height:6px;border-radius:50%;background:#9ba7b8;flex:none}.fleet-state-dot.online{background:#25976d}.fleet-state-dot.offline{background:#c28a31}.fleet-state-dot.active{background:#2b5dc4}
.fleet-panel{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0}
.fleet-toolbar{padding:18px 20px 12px;display:flex;justify-content:space-between;gap:20px;align-items:center}
.fleet-search{display:flex;gap:8px;flex:1;max-width:560px}.fleet-search input{flex:1;min-width:120px;width:100%;font-size:13px;min-height:38px}
.fleet-search .button{min-height:38px;padding-inline:18px}.fleet-sort{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:12px;color:var(--muted)}
.fleet-sort select{min-height:38px;max-width:140px}.fleet-result-line{display:flex;justify-content:space-between;gap:14px;padding:0 20px 14px;font-size:12px;color:var(--muted)}
.fleet-result-line strong{font-variant-numeric:tabular-nums;color:var(--ink);font-weight:650}.fleet-clear{border:0;background:none;color:#285ac1;font-size:12px;padding:3px 9px;min-height:30px}
.fleet-table-wrap{max-width:100%;max-height:calc(100dvh - 465px);min-height:180px;overflow:auto;overscroll-behavior:contain}
.fleet-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px}
.fleet-table caption{height:1px}.fleet-table thead th{position:sticky;top:0;z-index:1;background:#f7f9fc;color:#69778c;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 14px;text-align:left;font-size:12px;font-weight:550;white-space:nowrap}
.fleet-table thead th:first-child{width:27%;padding-left:20px}.fleet-table .fleet-col-state{width:10%}.fleet-table .fleet-col-heartbeat{width:12%}.fleet-table .fleet-col-version{width:14%}.fleet-table .fleet-col-resources{width:16%}.fleet-table .fleet-col-queue{width:13%}.fleet-table .fleet-col-action{width:8%;text-align:right}
.fleet-table tbody td,.fleet-table tbody th{height:64px;padding:11px 14px;border-bottom:1px solid #edf0f5;vertical-align:middle;font-size:12px;font-weight:400;text-align:left}
.fleet-table tbody th{padding-left:20px}.fleet-table tbody tr:last-child>*{border-bottom:0}.fleet-table tbody tr:hover{background:#f8faff}
.fleet-device{display:block;border:0;background:transparent;text-align:left;padding:0;width:100%;min-height:42px;color:var(--ink)}
.fleet-device strong{display:block;font-size:14px;font-weight:650;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fleet-device>span{display:block;font-size:11px;color:#69778c;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fleet-device:hover strong{color:#285ac1}.fleet-table .pill{font-size:11px;padding:3px 8px;max-width:100%}.fleet-version{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fleet-col-resources .numeric{font-size:12px;white-space:nowrap}.fleet-divider{color:#b7bfcd;margin-inline:2px}.fleet-col-queue small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.fleet-stale{color:#69778c}
.fleet-detail-button{border:0;background:transparent;color:#285ac1;min-height:42px;padding:8px 0 8px 8px;font-size:12px;white-space:nowrap}.fleet-detail-button span{font-size:18px;margin-left:5px}
.fleet-mobile-age{display:none}.fleet-empty{text-align:center;padding:48px 18px;color:var(--muted)}.fleet-empty strong{color:var(--ink);font-size:15px}.fleet-empty p{margin-top:8px;font-size:12px}
.fleet-pager{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:13px 20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.fleet-pager>span{margin-right:auto}.fleet-pager label{display:flex;gap:6px;align-items:center}.fleet-pager select{min-height:34px;font-size:12px;min-width:62px}
.fleet-pages{display:flex;gap:12px;align-items:center}.fleet-pages>span{min-width:45px;text-align:center;font-variant-numeric:tabular-nums}.fleet-pages .button:disabled{cursor:default}
.fleet-footnote{font-size:11px;color:var(--muted);margin-top:12px;text-align:right}
#device-dialog{width:min(660px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;margin:0 0 0 auto;border:0;border-left:1px solid var(--line);border-radius:0;padding:0;color:var(--ink);background:#fff;box-shadow:-12px 0 50px #17243b20}
#device-dialog[open]{display:flex;flex-direction:column}#device-dialog::backdrop{background:#1d2b4145;overflow:hidden;overscroll-behavior:contain}
#device-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 25px;border-bottom:1px solid var(--line);flex:none;background:#fff}
#device-dialog h2{font-size:22px;overflow-wrap:anywhere}#device-dialog>header p{font-size:11px;color:var(--muted);margin-bottom:3px}#device-dialog>header form{flex:none}
#device-detail-body{overflow:auto;min-height:0;padding:0 25px 24px;overscroll-behavior:contain}.fleet-detail-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-block:18px;font-size:12px;color:var(--muted)}
.fleet-snapshot-note{background:#faf5e9;border:1px solid #eddfbc;border-radius:5px;padding:10px 12px;color:#87672d;font-size:12px}
.fleet-detail-section{padding:20px 0;border-bottom:1px solid var(--line)}.fleet-detail-section:last-child{border:0}.fleet-detail-section h3{font-size:14px;margin-bottom:10px}.fleet-detail-section .detail-grid{font-size:12px}
.fleet-remote-actions{display:flex;gap:9px;flex-wrap:wrap}#device-ssh-info{font-size:12px;padding-top:14px}.fleet-detail-loading{padding:35px 0;color:var(--muted)}.fleet-detail-loading .button{margin-top:15px}
@media(min-width:1500px){.fleet-table tbody td,.fleet-table tbody th{height:66px}.fleet-col-resources .numeric{font-size:12px}}
@media(max-width:1150px){.fleet-col-version{display:none}.fleet-table thead th:first-child{width:30%}.fleet-table .fleet-col-state{width:13%}.fleet-table .fleet-col-resources{width:18%}.fleet-table .fleet-col-heartbeat{width:14%}.fleet-table .fleet-col-queue{width:15%}.fleet-table .fleet-col-action{width:10%}.fleet-toolbar{gap:12px;padding-inline:16px}.fleet-result-line{padding-inline:16px}}
@media(max-width:760px){.fleet-col-resources,.fleet-col-queue{display:none}.fleet-table thead th:first-child{width:47%}.fleet-table .fleet-col-state{width:18%}.fleet-table .fleet-col-heartbeat{width:22%}.fleet-table .fleet-col-action{width:13%}.fleet-filters{gap:4px;margin-bottom:12px}.fleet-filter{font-size:12px;padding:8px 10px;gap:6px;min-height:44px}.fleet-filter strong{font-size:14px}.fleet-toolbar{flex-wrap:wrap;padding:14px 14px 10px;gap:10px}.fleet-search{max-width:none;flex-basis:100%}.fleet-search input{font-size:16px;min-height:44px}.fleet-search .button{min-height:44px}.fleet-sort{margin-left:auto}.fleet-sort select{min-height:40px}.fleet-result-line{padding-inline:14px;font-size:11px;align-items:center}.fleet-result-line>span:last-child{display:none}.fleet-pager{gap:10px;padding:12px 14px}.fleet-pager>span{flex-basis:100%}.fleet-pages{margin-left:auto;gap:7px}.fleet-pager .button,.fleet-pager select{min-height:42px}.fleet-table-wrap{max-height:65dvh;min-height:180px}.fleet-table tbody th,.fleet-table thead th:first-child{padding-left:14px}.fleet-table tbody td,.fleet-table thead th{padding-inline:10px}.fleet-footnote{text-align:left;font-size:10px}}
@media(max-width:480px){.fleet-col-heartbeat{display:none}.fleet-mobile-age{display:block;font-size:10px;color:var(--muted);margin-top:5px}.fleet-table thead th:first-child{width:59%}.fleet-table .fleet-col-state{width:25%}.fleet-table .fleet-col-action{width:16%}.fleet-table .pill{font-size:10px;padding:3px 6px}.fleet-device strong{font-size:13px}.fleet-device>span{font-size:10px}.fleet-pages{gap:5px}.fleet-pages .button{padding-inline:9px}.fleet-pages>span{min-width:35px}#device-detail-body{padding-inline:18px}#device-dialog>header{padding:18px}.fleet-detail-section .detail-grid{grid-template-columns:110px minmax(0,1fr)}}
