/* 运营中心样式：全部以 ops- 前缀隔离，避免影响原有页面 */
:root {
    --ops-primary: #1a3a5c;
    --ops-primary-2: #2a5f8f;
    --ops-green: #2e7d32;
    --ops-orange: #e65100;
    --ops-red: #c62828;
    --ops-purple: #6a1b9a;
    --ops-border: #e2e8f0;
    --ops-bg: #f7fafc;
    --ops-text: #2d3748;
    --ops-muted: #718096;
}
#tab-ops { color: var(--ops-text); }

.ops-shell { display: flex; gap: 16px; align-items: flex-start; }
.ops-side {
    width: 218px; flex: 0 0 218px; background: #fff; border-radius: 12px; padding: 10px 8px;
    position: sticky; top: 12px; max-height: calc(100vh - 110px); overflow-y: auto;
    box-shadow: 0 4px 18px rgba(26, 58, 92, .07); border: 1px solid #edf2f7;
}
.ops-brand {
    display: flex; align-items: center; gap: 8px; padding: 10px 10px 14px;
    font-size: 15px; font-weight: 700; color: var(--ops-primary);
    border-bottom: 1px solid #f0f4f8; margin-bottom: 8px;
}
.ops-brand small { display: block; font-size: 11px; color: var(--ops-muted); font-weight: 400; margin-top: 2px; }
.ops-group { margin-bottom: 10px; }
.ops-group-title {
    font-size: 11px; letter-spacing: .08em; color: #a0aec0; font-weight: 700;
    padding: 8px 12px 4px; text-transform: uppercase;
}
.ops-nav-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: transparent;
    padding: 8px 12px; border-radius: 7px; cursor: pointer; font-size: 13px; color: #4a5568;
    text-align: left; transition: .15s; font-family: inherit;
}
.ops-nav-btn:hover { background: #eef3f8; color: var(--ops-primary); }
.ops-nav-btn.active { background: var(--ops-primary); color: #fff; box-shadow: 0 4px 10px rgba(26,58,92,.2); }
.ops-nav-btn .ops-dot { margin-left: auto; font-size: 10px; background: #fde8e8; color: #c62828; padding: 1px 7px; border-radius: 9px; }
.ops-nav-btn.active .ops-dot { background: rgba(255,255,255,.2); color: #fff; }

.ops-main { flex: 1; min-width: 0; }
.ops-head {
    background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    box-shadow: 0 4px 18px rgba(26,58,92,.06); border: 1px solid #edf2f7;
}
.ops-head h2 { font-size: 18px; color: var(--ops-primary); margin: 0 0 3px; }
.ops-head p { font-size: 12px; color: var(--ops-muted); margin: 0; }
.ops-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ops-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 14px; border: 1px solid transparent; border-radius: 7px; cursor: pointer;
    font-size: 13px; font-family: inherit; font-weight: 500; transition: .15s; white-space: nowrap;
}
.ops-btn-primary { background: var(--ops-primary); color: #fff; }
.ops-btn-primary:hover { background: #244d76; }
.ops-btn-success { background: var(--ops-green); color: #fff; }
.ops-btn-success:hover { background: #276b2a; }
.ops-btn-danger { background: var(--ops-red); color: #fff; }
.ops-btn-danger:hover { background: #a91f1f; }
.ops-btn-ghost { background: #fff; border-color: var(--ops-border); color: #4a5568; }
.ops-btn-ghost:hover { background: #f7fafc; border-color: #cbd5e0; }
.ops-btn-warn { background: var(--ops-orange); color: #fff; }
.ops-btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.ops-link { border: none; background: transparent; color: var(--ops-primary-2); cursor: pointer; font-size: 12px; padding: 2px 4px; font-family: inherit; }
.ops-link:hover { text-decoration: underline; }
.ops-link.danger { color: var(--ops-red); }

.ops-card {
    background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px;
    box-shadow: 0 4px 18px rgba(26,58,92,.06); border: 1px solid #edf2f7;
}
.ops-card-title {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 14px; font-weight: 600; color: var(--ops-primary);
    padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #f0f4f8;
}
.ops-card-title .ops-sub { font-size: 12px; color: var(--ops-muted); font-weight: 400; }

.ops-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ops-stat {
    background: #fff; border-radius: 10px; padding: 14px 16px; border: 1px solid #edf2f7;
    border-left: 4px solid var(--ops-primary); box-shadow: 0 3px 12px rgba(26,58,92,.05);
}
.ops-stat .n { font-size: 22px; font-weight: 700; color: var(--ops-primary); line-height: 1.15; }
.ops-stat .l { font-size: 12px; color: var(--ops-muted); margin-top: 3px; }
.ops-stat.green { border-left-color: var(--ops-green); } .ops-stat.green .n { color: var(--ops-green); }
.ops-stat.orange { border-left-color: var(--ops-orange); } .ops-stat.orange .n { color: var(--ops-orange); }
.ops-stat.red { border-left-color: var(--ops-red); } .ops-stat.red .n { color: var(--ops-red); }
.ops-stat.purple { border-left-color: var(--ops-purple); } .ops-stat.purple .n { color: var(--ops-purple); }
.ops-stat.blue { border-left-color: #0d47a1; } .ops-stat.blue .n { color: #0d47a1; }

.ops-filters {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px;
    background: var(--ops-bg); border: 1px solid #edf2f7; border-radius: 9px; margin-bottom: 12px;
}
.ops-filters input, .ops-filters select {
    padding: 7px 11px; border: 1px solid var(--ops-border); border-radius: 6px; background: #fff;
    font-size: 13px; font-family: inherit; color: var(--ops-text); outline: none;
}
.ops-filters input:focus, .ops-filters select:focus { border-color: var(--ops-primary-2); box-shadow: 0 0 0 3px rgba(42,95,143,.08); }
.ops-filters .ops-spacer { flex: 1; }

.ops-table-wrap { overflow-x: auto; border: 1px solid #edf2f7; border-radius: 9px; }
/* 列表区域独立滚动，滚动时表头固定 */
.ops-card .ops-table-wrap { max-height: calc(100vh - 330px); min-height: 220px; overflow: auto; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.ops-table th {
    background: #f7fafc; color: #4a5568; font-size: 12px; font-weight: 600; text-align: left;
    padding: 10px 12px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.ops-table thead th { position: sticky; top: 0; z-index: 3; background: #f7fafc; box-shadow: inset 0 -1px 0 #e2e8f0; }
.ops-table td { padding: 9px 12px; border-bottom: 1px solid #f0f4f8; vertical-align: middle; }
.ops-table tbody tr:hover td { background: #f7fbfe; }
.ops-table tbody tr:last-child td { border-bottom: none; }
.ops-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ops-table .center { text-align: center; }
.ops-table .code { font-family: Consolas, 'Courier New', monospace; font-size: 12px; color: #2a5f8f; }
.ops-table .muted { color: var(--ops-muted); font-size: 12px; }
.ops-table .nowrap { white-space: nowrap; }
.ops-empty { padding: 42px 10px; text-align: center; color: #a0aec0; font-size: 13px; }
.ops-empty .ico { font-size: 30px; display: block; margin-bottom: 8px; }

/* 操作帮助 */
.header-help-btn {
    border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff;
    padding: 7px 14px; border-radius: 7px; cursor: pointer; font-size: 13px; font-family: inherit;
}
.header-help-btn:hover { background: rgba(255,255,255,.2); }
.help-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 9000;
    border: none; border-radius: 22px; padding: 10px 16px; cursor: pointer;
    background: #1a3a5c; color: #fff; font-size: 13px; font-family: inherit;
    box-shadow: 0 8px 24px rgba(26,58,92,.28);
}
.help-fab:hover { background: #244d76; }
#opsSubModal {
    position: fixed; inset: 0; background: rgba(15, 30, 48, .45); z-index: 9600;
    display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 26px 12px;
}
#opsSubModal.open { display: flex; }
#opsConfirm {
    position: fixed; inset: 0; background: rgba(15, 30, 48, .45); z-index: 9700;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
#opsConfirm.open { display: flex; }
.ops-confirm-box { background: #fff; border-radius: 13px; width: min(480px, 100%); box-shadow: 0 24px 70px rgba(0,0,0,.3); overflow: hidden; }
.ops-confirm-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #edf2f7; }
.ops-confirm-head h3 { margin: 0; font-size: 15px; color: #1a3a5c; }
.ops-confirm-body { padding: 18px 20px; font-size: 13px; line-height: 1.8; color: #4a5568; max-height: 60vh; overflow-y: auto; }
.ops-confirm-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 12px 18px; border-top: 1px solid #edf2f7; background: #fafcfd; }
.ops-help-intro { font-size: 13px; color: #4a5568; line-height: 1.8; margin-bottom: 12px; }
.ops-help-title { font-size: 13px; font-weight: 700; color: #1a3a5c; margin: 14px 0 6px; }
.ops-help ol, .ops-help ul { margin: 0 0 4px 18px; padding: 0; font-size: 13px; line-height: 1.8; color: #4a5568; }
.ops-help-warn li { color: #b45309; }
.ops-help-tip { margin-top: 12px; padding: 10px 12px; background: #eef6ff; border: 1px solid #cfe4fb; border-radius: 8px; color: #1a3a5c; font-size: 12px; line-height: 1.7; }
@media (max-width: 640px) {
    .header-help-btn { padding: 5px 10px; font-size: 12px; }
    .help-fab { right: 12px; bottom: 12px; padding: 8px 12px; font-size: 12px; }
}

/* 人力分析 */
.hr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.hr-chart-card { background: #fff; border: 1px solid #edf2f7; border-radius: 12px; padding: 16px 18px; box-shadow: 0 4px 18px rgba(26,58,92,.05); }
.hr-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.hr-chart-title { font-size: 14px; font-weight: 700; color: #1a3a5c; }
.hr-chart-sub { font-size: 11px; color: #718096; margin-top: 3px; }
.hr-chart-badge { font-size: 11px; color: #2a78d6; background: #eaf2fd; padding: 2px 8px; border-radius: 9px; white-space: nowrap; }
.hr-bars { display: flex; flex-direction: column; gap: 9px; }
.hr-bar-row { display: grid; grid-template-columns: 92px minmax(80px, 1fr) 96px; align-items: center; gap: 10px; }
.hr-bar-label { font-size: 12px; color: #4a5568; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-bar-track { height: 10px; background: #eef3f8; border-radius: 5px; overflow: hidden; }
.hr-bar-fill { height: 100%; background: #2a78d6; border-radius: 5px; transition: width .3s; }
.hr-bar-fill.muted { background: #b8c0cc; }
.hr-bar-val { font-size: 11px; color: #4a5568; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hr-bar-val span { color: #a0aec0; margin-left: 3px; }
.hr-empty { padding: 26px 8px; text-align: center; color: #718096; font-size: 12px; line-height: 1.8; }
.hr-empty .ico { font-size: 26px; margin-bottom: 6px; }
.hr-empty .hint { color: #a0aec0; font-size: 11px; margin-top: 4px; }
.hr-completeness { display: flex; flex-direction: column; gap: 8px; }
.hr-comp-row { display: grid; grid-template-columns: 110px minmax(100px, 1fr) 72px; align-items: center; gap: 10px; font-size: 12px; color: #4a5568; }
.hr-comp-row .hr-bar-track { height: 8px; }
.hr-comp-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: #718096; }
.hr-note { margin-top: 12px; padding: 10px 12px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 8px; color: #8a5a00; font-size: 12px; line-height: 1.7; }
@media (max-width: 640px) {
    .hr-bar-row { grid-template-columns: 72px minmax(60px, 1fr) 82px; gap: 7px; }
    .hr-comp-row { grid-template-columns: 82px minmax(80px, 1fr) 62px; }
}

.ops-chip { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.ops-chip.green { background: #e8f5e9; color: #2e7d32; }
.ops-chip.orange { background: #fff3e0; color: #e65100; }
.ops-chip.red { background: #fde8e8; color: #c62828; }
.ops-chip.blue { background: #e3f2fd; color: #0d47a1; }
.ops-chip.purple { background: #f3e5f5; color: #6a1b9a; }
.ops-chip.gray { background: #f1f3f5; color: #616161; }

.ops-pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--ops-muted); }
.ops-pager button { padding: 4px 11px; border: 1px solid var(--ops-border); background: #fff; border-radius: 5px; cursor: pointer; font-size: 12px; }
.ops-pager button:disabled { opacity: .45; cursor: default; }
.ops-pager .current { color: var(--ops-primary); font-weight: 600; }

.ops-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ops-form-grid .full { grid-column: 1 / -1; }
.ops-field label { display: block; font-size: 12px; color: var(--ops-muted); margin-bottom: 5px; }
.ops-field label .req { color: var(--ops-red); }
.ops-field input, .ops-field select, .ops-field textarea {
    width: 100%; padding: 8px 11px; border: 1px solid var(--ops-border); border-radius: 6px;
    font-size: 13px; font-family: inherit; color: var(--ops-text); background: #fff; box-sizing: border-box;
}
.ops-field textarea { min-height: 68px; resize: vertical; }
.ops-field input:focus, .ops-field select:focus, .ops-field textarea:focus {
    outline: none; border-color: var(--ops-primary-2); box-shadow: 0 0 0 3px rgba(42,95,143,.08);
}
.ops-field .hint { font-size: 11px; color: #a0aec0; margin-top: 3px; }

.ops-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.ops-section-title { font-size: 13px; font-weight: 600; color: var(--ops-primary); margin: 16px 0 9px; display: flex; align-items: center; gap: 8px; }
.ops-section-title .ops-sub { font-weight: 400; color: var(--ops-muted); font-size: 11px; }

.ops-line-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ops-line-table th { background: #f7fafc; padding: 7px 8px; font-size: 11px; color: #4a5568; text-align: left; border-bottom: 1px solid #e2e8f0; }
.ops-line-table td { padding: 5px 6px; border-bottom: 1px solid #f0f4f8; }
.ops-line-table input, .ops-line-table select { width: 100%; padding: 6px 8px; border: 1px solid var(--ops-border); border-radius: 5px; font-size: 12px; box-sizing: border-box; }
.ops-line-table .ops-line-del { border: none; background: #fde8e8; color: #c62828; border-radius: 5px; padding: 5px 8px; cursor: pointer; }

.ops-tabs { display: flex; gap: 4px; background: #f7fafc; padding: 4px; border-radius: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ops-tabs button { border: none; background: transparent; padding: 6px 15px; border-radius: 6px; font-size: 13px; cursor: pointer; color: #555; font-family: inherit; }
.ops-tabs button.active { background: var(--ops-primary); color: #fff; }

.ops-kanban { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; }
.ops-kanban-col { background: #f7fafc; border-radius: 10px; padding: 10px; min-height: 140px; border-top: 3px solid var(--ops-primary); max-height: calc(100vh - 230px); overflow-y: auto; }
.ops-kanban-col h4 { font-size: 13px; margin: -10px -10px 8px; padding: 10px 12px; color: var(--ops-primary); display: flex; justify-content: space-between; position: sticky; top: -10px; background: #f7fafc; z-index: 2; border-radius: 10px 10px 0 0; }
.ops-kanban-more { display: block; width: 100%; border: 1px dashed #cbd5e0; background: transparent; color: #718096; border-radius: 7px; padding: 7px; font-size: 12px; cursor: pointer; margin-top: 4px; }
.ops-kanban-more:hover { background: #eef3f8; color: var(--ops-primary); }
.ops-kanban-card { background: #fff; border-radius: 8px; padding: 10px 11px; margin-bottom: 8px; border: 1px solid #edf2f7; box-shadow: 0 2px 6px rgba(26,58,92,.04); cursor: pointer; }
.ops-kanban-card:hover { border-color: #bcd3e6; transform: translateY(-1px); }
.ops-kanban-card .no { font-family: Consolas, monospace; font-size: 12px; color: var(--ops-primary-2); }
.ops-kanban-card .cust { font-size: 12px; color: #4a5568; margin: 4px 0; }
.ops-kanban-card .meta { font-size: 11px; color: var(--ops-muted); display: flex; justify-content: space-between; gap: 6px; }
.ops-kanban-badge { display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 999px; background: #fff3e0; color: #b45309; border: 1px solid #ffd59a; font-size: 11px; line-height: 1.5; }
.ops-progress { height: 5px; background: #edf2f7; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.ops-progress > i { display: block; height: 100%; background: var(--ops-green); border-radius: 4px; }

/* 弹窗 */
#opsModal { position: fixed; inset: 0; background: rgba(15, 30, 48, .55); z-index: 9500; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 26px 12px; }
#opsModal.open { display: flex; }
.ops-modal-box { background: #fff; border-radius: 13px; width: min(900px, 100%); box-shadow: 0 24px 70px rgba(0,0,0,.3); overflow: hidden; }
.ops-modal-box.wide { width: min(1180px, 100%); }
.ops-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #edf2f7; }
.ops-modal-head h3 { margin: 0; font-size: 16px; color: var(--ops-primary); }
.ops-modal-close { border: none; width: 30px; height: 30px; border-radius: 6px; background: #f1f3f5; cursor: pointer; font-size: 15px; }
.ops-modal-body { padding: 18px 20px; max-height: calc(100vh - 190px); overflow-y: auto; }
.ops-modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 20px; border-top: 1px solid #edf2f7; background: #fafcfd; }

/* 提示 */
#opsToast { position: fixed; right: 22px; bottom: 22px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.ops-toast { background: #1a3a5c; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: opsToastIn .2s ease-out; }
.ops-toast.ok { background: #2e7d32; } .ops-toast.err { background: #c62828; } .ops-toast.warn { background: #e65100; }
@keyframes opsToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ops-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: start; }
.ops-list { display: flex; flex-direction: column; gap: 8px; }
.ops-list-item { background: #fff; border: 1px solid #edf2f7; border-radius: 9px; padding: 10px 12px; }
.ops-list-item .t { font-size: 13px; color: var(--ops-text); font-weight: 500; }
.ops-list-item .s { font-size: 11px; color: var(--ops-muted); margin-top: 3px; display: flex; justify-content: space-between; gap: 10px; }
.ops-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.ops-quick a { display: block; text-decoration: none; background: #f7fafc; border: 1px solid #edf2f7; border-radius: 9px; padding: 12px; color: var(--ops-primary); font-size: 13px; transition: .15s; }
.ops-quick a:hover { background: #eef3f8; border-color: #cbd5e0; }
.ops-quick a span { display: block; font-size: 18px; margin-bottom: 4px; }

@media (max-width: 900px) {
    .ops-shell { flex-direction: column; }
    .ops-side { width: 100%; flex: none; position: static; max-height: none; }
    .ops-nav-btn { display: inline-flex; width: auto; margin: 2px; }
    .ops-group-title { width: 100%; }
    .ops-form-grid { grid-template-columns: 1fr; }
    .ops-split { grid-template-columns: 1fr; }
    .ops-kanban { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

/* ==================== 设备追溯 ==================== */
.trace-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; background: #f7fafc; border: 1px solid #edf2f7; border-radius: 9px; padding: 14px 16px; }
.trace-kv-item { min-width: 0; }
.trace-kv-item.full { grid-column: 1 / -1; }
.trace-kv-label { font-size: 11px; color: #8a99ad; margin-bottom: 3px; }
.trace-kv-value { font-size: 13px; color: #1a2b3c; word-break: break-all; line-height: 1.45; }
.trace-section-title { font-size: 13px; font-weight: 700; color: #1a3a5c; margin: 20px 0 10px; padding-left: 9px; border-left: 3px solid #2a5f8f; }
.trace-timeline { position: relative; margin: 0 0 4px 8px; padding-left: 20px; border-left: 1px solid #dbe4ee; }
.trace-event { position: relative; padding: 0 0 15px; }
.trace-dot { position: absolute; left: -25px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #2a5f8f; border: 2px solid #fff; box-shadow: 0 0 0 1px #2a5f8f; }
.trace-event-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #1a2b3c; }
.trace-event-head span { color: #8a99ad; font-size: 12px; white-space: nowrap; }
.trace-event-meta { font-size: 12px; color: #718096; margin-top: 2px; }
.trace-event-remark { font-size: 12px; color: #4a5568; margin-top: 5px; padding: 6px 9px; background: #f7fafc; border-radius: 5px; }
.trace-raw { margin-top: 16px; }
.trace-raw summary { cursor: pointer; color: #2a5f8f; font-size: 12px; }
.trace-raw pre { max-height: 320px; overflow: auto; background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px; font-size: 11px; line-height: 1.5; margin-top: 8px; }
.trace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.trace-bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.trace-bar-label { width: 150px; flex: 0 0 150px; font-size: 12px; color: #4a5568; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-bar-track { flex: 1; height: 8px; background: #edf2f7; border-radius: 4px; overflow: hidden; }
.trace-bar-fill { height: 100%; background: linear-gradient(90deg, #2a5f8f, #4a90c2); border-radius: 4px; }
.trace-bar-num { width: 52px; text-align: right; font-size: 12px; color: #1a2b3c; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
    .trace-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trace-grid { grid-template-columns: 1fr; }
    .trace-bar-label { width: 110px; flex-basis: 110px; }
}
