.dashboard-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dashboard-links .card{color:var(--ink);transition:box-shadow .15s}.dashboard-links .card:hover{box-shadow:0 6px 20px #16335812;text-decoration:none}.dashboard-links h2{color:var(--blue)}.dashboard-links p{color:var(--muted);margin-bottom:0}.fleet-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:end}.filter-actions{display:flex;gap:10px}.filter-note{font-size:12px;margin:18px 0 0}.fleet-tags{display:flex;flex-wrap:wrap;gap:6px;min-height:10px}.fleet-tags span{background:#edf2fc;border-radius:20px;padding:4px 9px;font-size:11px;color:#34557c;overflow-wrap:anywhere}.group-path{font-size:12px;overflow-wrap:anywhere}.organize-link{display:inline-block;padding:12px 0;font-size:12px;min-height:44px}.pagination{display:flex;justify-content:center;gap:12px;padding:24px}.organization-columns{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;align-items:start}.organization-entry{border-top:1px solid var(--border);margin-top:22px;padding-top:18px}.organization-entry .stack{margin-bottom:16px}.org-heading{display:flex;gap:12px;align-items:center;justify-content:space-between}.org-heading a{overflow-wrap:anywhere;min-width:0}.org-heading .badge{font-size:10px;flex-shrink:0}.tag-choices{border:1px solid var(--border);padding:20px;border-radius:10px}.tag-choices label{display:inline-flex;align-items:center;gap:10px;margin:6px 20px 6px 0;min-height:44px}.tag-choices input{width:18px;min-height:18px;margin:0}.metric:hover{text-decoration:none;border-color:#92afe4}.badge{white-space:nowrap}
@media(max-width:1000px){.organization-columns{grid-template-columns:1fr}.fleet-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-links{grid-template-columns:1fr}.dashboard-links .card{margin-bottom:0}.dashboard-links{margin-bottom:24px}}
@media(max-width:700px){.fleet-filters{grid-template-columns:1fr}.filter-actions>*{flex:1}.org-heading{align-items:start;flex-direction:column}.device-grid{grid-template-columns:1fr}.sidebar{overflow-x:auto}.sidebar a{flex-shrink:0;white-space:nowrap}}

/* Compact fleet cards keep identity and connection state on the same row. */
.compact-device{padding:16px 18px;background:white;display:flex;flex-direction:column}
.compact-device .device-card-head{margin-bottom:4px;align-items:flex-start;gap:10px}
.compact-device h3{margin:0;font-size:16px;min-width:0}
.compact-device .device-model{font-size:12px;margin-bottom:8px}
.compact-device .group-path{margin-bottom:6px}
.compact-device .fleet-tags:empty{display:none}
.compact-device .device-stats{margin:8px 0;padding:8px 0;gap:24px}
.compact-device .device-stats span{display:flex;align-items:baseline;gap:8px}
.compact-device .device-stats b{margin:0;font-size:13px}
.compact-device .device-card-foot{margin-top:auto}
.compact-device .device-card-foot small{font-size:11px}
.device-card-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:2px}
.device-card-actions a{display:inline-flex;align-items:center;font-size:12px;min-height:44px;padding:6px 0}

/* Information and map occupy one shared row; organization follows below. */
.overview-cards{align-items:stretch;margin-bottom:22px}
.overview-cards>.card{margin-bottom:0;min-width:0}
.overview-cards .device-information{display:flex;flex-direction:column;grid-row:1 / 3}
.overview-cards .device-information .properties{align-content:start}
.overview-cards .device-information .properties dt,.overview-cards .device-information .properties dd{display:flex;align-items:center}
.overview-cards .device-organization{grid-column:2}
.recent-commands h2{margin-bottom:10px}
.commands-table th,.commands-table td{padding:8px 12px;min-width:0}
.commands-table th:first-child,.commands-table td:first-child{width:38%;padding-left:0}
.commands-table th:nth-child(2),.commands-table td:nth-child(2){width:22%}
.commands-table th:last-child,.commands-table td:last-child{width:40%;text-align:right;padding-right:0}
.commands-table td:last-child{font-size:12px;color:var(--muted)}
.commands-table .badge{padding:3px 9px}
.commands-table tbody tr:last-child td{border-bottom:0}
@media(max-width:1100px){.overview-cards .device-organization{grid-column:auto}.overview-cards .device-information{grid-row:auto}}
@media(max-width:700px){.overview-cards{gap:18px}.commands-table th,.commands-table td{padding:7px 6px}.commands-table td,.commands-table td:last-child{font-size:11px}.commands-table .badge{font-size:10px;padding:3px 6px}}

.device-network{margin-top:24px;border-top:1px solid var(--border);padding-top:20px}.device-network h3{font-size:15px;margin-bottom:10px}.device-network .properties dd{display:block!important}.network-value{display:block;overflow-wrap:anywhere}.network-value+.network-value{margin-top:6px}.network-interface{font-size:11px;color:var(--muted);font-weight:400}.device-network .properties dt,.device-network .properties dd{padding-block:10px}.network-note{font-size:11px;color:var(--muted);margin:12px 0 0}

@media(min-width:1101px){.overview-cards{grid-template-rows:minmax(0,1fr) auto}.overview-cards .device-map-card{display:flex;flex-direction:column}.overview-cards .device-map-card .device-map{flex:1;min-height:330px}}

.overview-cards .device-map-card>.badge{align-self:flex-start}
