/* 设备卡片、每卡资料和多选目标使用统一的信息层级。 */
.inventory-summary{display:flex;gap:28px;flex-wrap:wrap;margin-bottom:24px;color:var(--muted);font-size:12px}.inventory-summary strong{margin-left:8px;color:var(--text);font-size:18px;font-weight:650}.inventory-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:24px}.inventory-toolbar .search-field{flex:1;max-width:420px}.inventory-toolbar>select{width:150px}.inventory-toolbar>button{margin-left:auto}.device-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}.device-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;min-width:0;display:flex;flex-direction:column}.device-card-head{display:flex;gap:12px;align-items:center}.device-card-head>div{min-width:0;flex:1}.device-card-head h2{font-size:15px;overflow-wrap:anywhere}.device-card-head small{display:block;font-size:10px;margin-top:3px}.device-avatar{width:42px;height:46px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex-shrink:0}.device-tags{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 12px;min-height:22px}.device-tags>span{font-size:10px;color:#47665a;background:#edf4ef;padding:2px 8px;border-radius:5px}.device-tags .untagged{background:#f4f6f5;color:var(--muted)}.device-tags .tag-paused{color:var(--amber);background:var(--amber-soft)}.device-note{font-size:12px;color:var(--muted);line-height:1.8;min-height:40px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.device-location{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin:12px 0 16px}.device-location .icon{width:13px;height:13px}.device-location>span:last-child{margin-left:auto;flex-shrink:0}.sim-card-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:1}.sim-card{min-width:0;border:1px solid #dfe8e2;border-radius:8px;background:#f8fbf9;padding:12px}.sim-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.sim-head>strong{font-size:10px}.sim-head .pill{font-size:9px;padding:1px 5px}.sim-head>small{font-size:8px}.sim-number{font:600 13px/1.8 Consolas,monospace;margin-top:10px;overflow-wrap:anywhere}.sim-number>span{font-size:8px;font-family:inherit;font-weight:400;color:var(--muted);margin-left:5px}.sim-card>p{font-size:9px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.sim-card>small{display:block;font-size:9px;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}.sim-card .mapping-warning{color:var(--amber)}.device-sync{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;margin:16px 0;flex-wrap:wrap}.device-card-actions{display:flex;gap:6px;border-top:1px solid var(--line);padding-top:16px;flex-wrap:wrap}.device-card-actions>button{font-size:10px;padding:7px 10px}.device-card-actions>button:first-child{margin-right:auto}.device-card-actions .icon{width:14px;height:14px}.inventory-footnote{font-size:11px;color:var(--muted);margin-top:20px;line-height:1.8}dialog.wide{width:min(800px,calc(100% - 32px))}.sim-editor{border:1px solid var(--line);border-radius:10px;padding:20px;margin:20px 0;background:#fafcfb}.sim-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.sim-editor-head small{font-size:10px}.sim-editor .form-field:last-child{margin-bottom:0}#device-note{min-height:80px}.batch-targets{padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0;margin:0 0 24px}.batch-targets legend{font-size:12px;font-weight:650;padding:0 8px}.target-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 135px;gap:10px;margin-bottom:12px}.target-toolbar input,.target-toolbar select{font-size:11px;padding:8px 10px}.target-selection{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px;font-size:10px}.target-selection button{font-size:9px;padding:4px 6px;background:transparent;border-color:transparent;color:var(--accent)}.target-chips{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.target-chips button{font-size:9px;padding:3px 7px;color:var(--accent);background:var(--accent-soft);border-color:#d4e5db}.target-list{max-height:380px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.target-device{border:1px solid var(--line);border-radius:8px;margin-bottom:10px;overflow:hidden}.target-device-name{display:flex;gap:10px;align-items:center;margin:0;background:#f6f9f7;padding:12px;font-size:11px}.target-device-name>span{display:flex;gap:7px;align-items:center;min-width:0}.target-device-name strong{font-size:11px;overflow-wrap:anywhere}.target-device-name .icon{width:14px;height:14px}.target-device-name>small{margin-left:auto;font-size:9px;font-weight:400;flex-shrink:0}.target-sims{padding:0 12px}.target-sim{display:flex;gap:10px;align-items:center;padding:12px 0;margin:0;border-top:1px solid #edf2ef;font-weight:400;cursor:pointer}.target-sim:first-child{border-top:0}.target-sim>span{flex:1;min-width:0}.target-sim strong{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere}.target-sim small{display:block;color:var(--muted);font-size:9px;margin-top:3px;font-weight:400}.target-sim>.pill{flex:0 0 auto;font-size:9px}.target-sim.unavailable{opacity:.65;cursor:default}.form-hint{color:var(--muted);font-size:10px;line-height:1.8;margin-top:12px}.reply-card-choice{display:flex;gap:12px;align-items:center;margin-bottom:12px}.reply-card-choice label{font-size:10px;margin:0}.reply-card-choice select{width:auto;font-size:11px;padding:6px;max-width:100%}
@media(max-width:1024px){.inventory-toolbar{flex-wrap:wrap}.inventory-toolbar .search-field{max-width:none;flex-basis:100%}.device-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}}
@media(max-width:768px){.inventory-summary{gap:12px 20px}.inventory-summary>span{font-size:10px}.inventory-summary strong{font-size:16px;margin-left:4px}.inventory-toolbar{gap:10px}.inventory-toolbar>select{flex:1;width:120px}.inventory-toolbar>button{width:100%;margin-left:0}.device-card{padding:18px}.device-card-head h2{font-size:14px}.sim-card{padding:10px}.sim-number{font-size:12px}.device-card-actions>button{font-size:10px}.sim-editor{padding:16px}.sim-editor-head{align-items:flex-start;flex-direction:column;gap:4px}.target-toolbar{grid-template-columns:1fr}.target-selection{flex-wrap:wrap;gap:4px}.target-device-name{flex-wrap:wrap}.target-device-name>small{width:100%;margin-left:26px}.batch-targets{padding:12px}.target-sim{gap:8px}.target-sim .pill{font-size:8px}.reply-card-choice{flex-direction:column;align-items:flex-start;gap:6px}.reply-card-choice select{width:100%}}

.device-history-progress{padding:10px 16px;font-size:11px;color:var(--muted);background:#f6f8f7;overflow-wrap:anywhere}

.inventory-toolbar{flex-wrap:wrap}.inventory-toolbar>button{margin-left:0}.inventory-toolbar .search-field{min-width:min(100%,180px)}

.sim-lookup{display:flex;align-items:center;gap:12px;margin:8px 0 14px;flex-wrap:wrap}.sim-lookup small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}

.sim-geography{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.sim-geography strong{display:inline-flex;padding:4px 8px;border-radius:6px;font-size:12px;line-height:1.5}.carrier-emphasis{color:#164f40;background:#e1f1e9;border:1px solid #c0dece}.region-emphasis{color:#65460b;background:#fff2d5;border:1px solid #ead7a7}.view-switch{display:flex;gap:0}.view-switch button{border-radius:0}.view-switch button:first-child{border-radius:6px 0 0 6px}.view-switch button:last-child{border-radius:0 6px 6px 0}.view-switch [aria-pressed="true"]{background:#176a56;color:white;border-color:#176a56}#device-results .table-wrap{background:#fff;border:1px solid var(--line);border-radius:8px}#device-results td{min-width:120px}#device-results .device-card-actions{min-width:240px;flex-wrap:wrap}.list-sim{margin:6px 0}.list-sim strong{font-size:12px;white-space:nowrap}.inventory-toolbar{flex-wrap:wrap}

#device-results .table-wrap td,#device-results .table-wrap th{padding:12px;min-width:0}#device-results .table-wrap td:first-child{min-width:140px}#device-results .table-wrap td:first-child>strong{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#device-results .table-wrap td:nth-child(3){min-width:160px}#device-results .table-wrap td:nth-child(4){min-width:160px}#device-results .table-wrap .sim-geography strong{white-space:nowrap}#device-results .table-wrap .device-card-actions{min-width:200px;padding:0;margin:0;border:0;gap:6px}#device-results .table-wrap .device-card-actions button{font-size:11px}
