.device-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);flex-shrink:0;padding:0 10px;gap:2px}
.device-tabs button{font-size:11px;padding:13px 2px;border-bottom:2px solid transparent;color:var(--tone-7)}
.device-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--ink);font-weight:600}
.device-tabs button:focus-visible,.inventory-cell:focus-visible,.inventory-open:focus-visible{outline:2px solid var(--tone-8);outline-offset:-2px;border-radius:4px}
.device-panel[hidden],[data-bulk-value-wrap][hidden]{display:none!important}
.device-tab-intro{font-size:11px;line-height:1.7;color:var(--tone-7);margin:0 0 20px}
.device-actions{display:flex;gap:8px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px;flex-wrap:wrap}
.device-advanced{margin:20px 0;border:1px solid var(--line);border-radius:6px;padding:12px}
.device-advanced>summary{font-size:11px;cursor:pointer;color:var(--tone-8)}
.device-advanced[open]>summary{margin-bottom:18px}
.device-panel .connection-item{width:100%;text-align:left}
.device-panel .hardware-section{border-top:0;margin-top:0;padding-top:0}
.device-panel textarea{min-height:230px;resize:vertical}
.device-panel .hardware-section>summary{display:none}
.inventory-bulkbar{display:flex;align-items:center;gap:10px;padding:13px 16px;background:var(--paper);border:1px solid var(--line);border-radius:8px;flex-wrap:wrap}
.inventory-bulkbar strong{font-size:12px;font-weight:600;display:block}
.inventory-bulkbar small{font-size:10px;color:var(--tone-7);display:block;margin-top:4px}
.inventory-bulkbar>.btn{font-size:11px}
.inventory-history{margin-left:auto;display:flex;gap:6px}
.inventory-history .btn{font-size:10px;padding:8px 10px}
.inventory-edit-note{font-size:10px;color:var(--tone-7);padding:13px 2px;line-height:1.6}
.equipment-inventory-view{padding:24px 28px}
.equipment-inventory-view .view-heading{margin-bottom:18px}
.equipment-inventory-view .view-heading h2{font-size:23px;margin-top:5px}
.equipment-inventory-view .inventory-tools{margin-bottom:12px}
.equipment-inventory-view .inventory-bulkbar{padding:10px 14px}
.editable-inventory{max-height:calc(100vh - 420px);min-height:170px;overflow:auto}
.editable-inventory .inventory-table th{position:sticky;top:0;z-index:1;text-transform:uppercase}
.editable-inventory .inventory-table td{padding:0;border-color:var(--line)}
.editable-inventory .inventory-table tbody tr{cursor:default}
.editable-inventory .inventory-table .inventory-select-col{padding:12px 14px;min-width:42px;text-align:center}
.inventory-select-col input{width:15px;height:15px;accent-color:var(--ink);cursor:pointer}
.editable-inventory .inventory-selected{background:var(--tone-2)}
.editable-inventory td:first-child,.editable-inventory th:first-child{position:sticky;left:0;z-index:2;background:var(--paper);width:44px;min-width:44px}
.editable-inventory td:nth-child(2),.editable-inventory th:nth-child(2){position:sticky;left:44px;z-index:2;background:var(--paper);border-right:1px solid var(--line)}
.editable-inventory th:first-child,.editable-inventory th:nth-child(2){z-index:3;background:var(--tone-1)}
.editable-inventory .inventory-selected td:first-child,.editable-inventory .inventory-selected td:nth-child(2){background:var(--tone-2)}
.editable-inventory td:last-child,.editable-inventory th:last-child{position:sticky;right:0;z-index:2;background:var(--paper);border-left:1px solid var(--line)}
.editable-inventory th:last-child{z-index:3;background:var(--tone-1)}
.device-quick-info{padding:0 20px 15px;font:10px var(--mono);color:var(--tone-7)}
.device-quick-info button{text-align:left;line-height:1.7}
.inventory-cell{display:flex;align-items:center;text-align:left;width:100%;min-width:110px;max-width:260px;gap:8px;padding:15px 14px;min-height:62px;font-size:11px;line-height:1.6;border:1px solid transparent}
.inventory-cell>span:not(.cell-edit-hint){white-space:normal;overflow-wrap:anywhere;min-width:80px}
.inventory-cell small{display:block;color:var(--tone-7);font-size:9px}
.inventory-cell svg{width:16px;height:16px;flex-shrink:0;color:var(--tone-7)}
.inventory-cell:hover{background:var(--tone-2);border-color:var(--line)}
.inventory-cell .unset{color:var(--tone-6);font-size:10px}
.cell-edit-hint{opacity:0;margin-left:auto;font-size:12px;color:var(--tone-7)}
.inventory-cell:hover .cell-edit-hint,.inventory-cell:focus-visible .cell-edit-hint{opacity:1}
.inventory-cell-form{min-width:185px;padding:7px;display:flex;gap:4px;align-items:center}
.inventory-cell-form input,.inventory-cell-form select{min-width:110px;width:100%;font-size:11px;padding:8px;border-color:var(--ink)}
.inventory-cell-form>div{display:flex;flex-direction:column}
.inventory-cell-form button{display:flex;padding:2px}
.inventory-cell-form .icon{width:15px;height:15px}
.inventory-cell-form [aria-invalid=true]{outline:1px solid var(--error)}
.editable-inventory .hardware-inventory{padding:14px;min-width:190px;max-width:280px;white-space:normal;font-size:10px;line-height:1.7}
.inventory-open{padding:14px;display:flex}
.inventory-open .icon{width:17px;height:17px}
.bulk-field{padding:13px 0;border-bottom:1px solid var(--line)}
.bulk-field>.field{margin-bottom:0}
.bulk-field>[data-bulk-value-wrap]{margin-top:12px}
.bulk-preview{max-height:45vh;overflow:auto;padding-right:5px}
.bulk-preview section{padding:14px;border:1px solid var(--line);border-radius:6px;margin-bottom:10px}
.bulk-preview section>strong{font-size:12px;display:block;margin-bottom:8px}
.bulk-preview section>div{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;font-size:11px;line-height:1.6;margin-top:10px;overflow-wrap:anywhere}
.bulk-preview section>div>span{grid-column:1/-1;color:var(--tone-7);font-size:10px}
.bulk-preview del{color:var(--tone-7);font-weight:400}
.bulk-preview b{font-weight:500}
@media(min-width:1000px){.inspector:not(.route-inspector){width:320px}}
@media(max-width:680px){.device-tabs{padding:0 5px}.device-tabs button{font-size:10px}.inventory-bulkbar{padding:12px;gap:8px}.inventory-history{margin-left:0;width:100%}.editable-inventory{max-height:55vh}.equipment-inventory-view .view-heading{align-items:flex-start;gap:10px}.equipment-inventory-view .view-heading h2{font-size:21px}}
