dialog.device-dialog{width:min(1180px,96vw);max-height:94vh;background:#f5f7fb}
.device-dialog .dialog-head{position:sticky;top:0;z-index:2;background:#fff;padding:18px 26px}
.device-dialog #dialog-body{padding:22px}
.device-detail{display:grid;gap:18px;min-width:0}
.device-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:22px;min-width:0;margin:0}
.device-card:empty{display:none}
.device-tools-card:not(:has(button)){display:none}
.device-card>h3:first-child,.device-card .inline-title:first-child{margin-top:0}
.device-card h3{font-size:14px;margin:0 0 14px}
.device-summary .detail-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 24px;margin-bottom:24px}
.device-detail .detail-grid strong{display:block;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.device-detail .actions{gap:10px;margin:12px 0;align-items:stretch}
.device-detail button{min-height:38px;white-space:normal}
.device-detail .empty{padding:18px 14px;background:#fafbfd;border-radius:7px;margin:12px 0}
.device-detail .empty strong{font-size:13px;margin-bottom:2px}
.device-detail .note{margin:14px 0}
.device-detail details{min-width:0}
.device-detail summary{cursor:pointer;font-weight:600;font-size:13px;padding:8px 0}
.device-detail .table-wrap{border:1px solid #edf0f5;border-radius:8px;margin:14px 0}
.device-detail table{white-space:normal;table-layout:fixed}
.device-detail td,.device-detail th{padding:12px 14px;overflow-wrap:anywhere;vertical-align:top}
.device-detail td:last-child{width:145px}
.device-detail .row-link{line-height:1.5}
.device-detail h4{margin:22px 0 10px;font-size:13px}
@media(max-width:850px){.device-summary .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.device-card{padding:16px}.device-dialog #dialog-body{padding:12px}.device-detail .table-wrap{overflow-x:auto}.device-detail table{min-width:620px}}
@media(max-width:480px){dialog.device-dialog{width:calc(100vw - 12px);max-height:96vh}.device-detail .actions>button{flex:1 1 140px}.device-summary .detail-grid{gap:16px}.device-dialog .dialog-head{padding:14px 16px}.device-detail{gap:12px}}
