* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0f17;
  --bg2: #111827;
  --panel: #151d2e;
  --panel2: #1a2338;
  --line: #26334d;
  --txt: #dbe4f3;
  --muted: #7d8aa5;
  --accent: #2dd4bf;
  --accent2: #38bdf8;
  --warn: #fbbf24;
  --danger: #f87171;
  --green: #34d399;
  --radius: 12px;
}

html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  overflow: hidden;
}

.app { display: flex; height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 230px; min-width: 230px;
  background: linear-gradient(180deg, #0d1524, #0a0f1a);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 20px 14px;
}
.logo { display: flex; align-items: center; gap: 12px; padding: 6px 8px 22px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #06121a; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(45, 212, 191, .35);
}
.logo-title { font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.logo-sub { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; margin-top: 2px; }

nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 9px;
  color: var(--muted); cursor: pointer;
  transition: all .18s; user-select: none;
  border-left: 3px solid transparent;
}
.nav-item .ico { width: 20px; text-align: center; font-size: 15px; }
.nav-item:hover { background: var(--panel); color: var(--txt); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(45,212,191,.12), transparent);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}
.sidebar-foot {
  padding: 14px 8px 4px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--green); display: flex; flex-direction: column; gap: 4px;
}
.ai-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); display: inline-block; margin-right: 6px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.ai-status-sub { color: var(--muted); font-size: 11px; }

/* ---------- 主区 ---------- */
.main { flex: 1; overflow-y: auto; padding: 22px 26px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.topbar h1 { font-size: 22px; font-weight: 700; }
.topbar-sub { color: var(--muted); margin-top: 4px; font-size: 13px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.clock { font-family: Consolas, monospace; font-size: 15px; color: var(--accent2); }

.badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; }
.badge-green { background: rgba(52, 211, 153, .12); color: var(--green); border: 1px solid rgba(52,211,153,.3); }

.page { display: none; }
.page.active { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 卡片/面板 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.12), transparent 70%);
}
.card .c-label { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.card .c-value { font-size: 26px; font-weight: 800; font-family: Consolas, monospace; }
.card .c-value.green { color: var(--accent); }
.card .c-value.blue { color: var(--accent2); }
.card .c-value.yellow { color: var(--warn); }
.card .c-sub { color: var(--muted); font-size: 11px; margin-top: 6px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.panel-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--txt); display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ""; width: 4px; height: 14px; background: linear-gradient(var(--accent), var(--accent2)); border-radius: 2px; }
.panel-title.small { font-size: 13px; margin-top: 14px; }

.chart { width: 100%; height: 300px; }
.chart.tall { height: 360px; }

/* ---------- 上传区 ---------- */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 38px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--bg2);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(45,212,191,.05); }
.dz-icon { font-size: 42px; margin-bottom: 8px; }
.dz-text { color: var(--txt); margin-bottom: 6px; }
.dz-hint { color: var(--muted); font-size: 12px; }
.dz-hint a { color: var(--accent2); text-decoration: none; }

.file-chip {
  margin-top: 10px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; color: var(--accent2);
}
.file-chip button { background: none; border: none; color: var(--danger); font-size: 16px; cursor: pointer; }

.btn {
  border: none; border-radius: 9px; padding: 11px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary:disabled { background: #2a3649; color: #7d8aa5; opacity: 1; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #06121a;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.15); box-shadow: 0 4px 16px rgba(45,212,191,.3); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.w-full { width: 100%; margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.gap { margin-top: 12px; }
.row.wrap { flex-wrap: wrap; }
.w-full.row { margin-top: 0; }

.input, select.input {
  background: var(--bg2); border: 1px solid var(--line); color: var(--txt);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; outline: none;
  flex: 1; min-width: 120px;
}
.input:focus { border-color: var(--accent); }
.field-label { width: 90px; color: var(--muted); font-size: 13px; flex-shrink: 0; }

/* ---------- 识别流程 ---------- */
.pipeline { margin-top: 16px; }
.pipe-step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; margin-bottom: 6px;
  background: var(--bg2); font-size: 13px;
  opacity: .4;
}
.pipe-step.active { opacity: 1; border: 1px solid var(--accent); }
.pipe-step.done { opacity: .9; }
.pipe-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.pipe-step.done .pipe-dot { border-color: var(--green); background: var(--green); }
.pipe-step.active .pipe-dot { border-color: var(--accent2); animation: spin .8s linear infinite; border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.pipe-time { margin-left: auto; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; }

/* ---------- 识别结果 ---------- */
.result-area { min-height: 260px; }
.empty-tip { color: var(--muted); text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: 10px; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv { background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.kv .k { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.kv .v { font-size: 14px; font-weight: 600; }
.kv .v.accent { color: var(--accent); }
.kv .edit-field { width: 100%; padding: 8px 10px; font-size: 13px; }
.kv .dims { display: flex; align-items: center; gap: 4px; }
.kv .dims .edit-field { padding: 8px 4px; text-align: center; min-width: 0; }
.kv .dims span { color: var(--muted); }
.conf-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.correct-tip {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: var(--green);
  animation: fade .3s;
}
.conf-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.conf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.override-row { margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.override-row select { flex: 1; }

/* ---------- 参数表 ---------- */
.param-table { width: 100%; border-collapse: collapse; }
.param-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.param-table td:first-child { color: var(--muted); width: 46%; }
.param-table td:last-child { font-weight: 600; font-family: Consolas, monospace; }
.compare {
  background: linear-gradient(160deg, rgba(45,212,191,.08), var(--bg2));
  border: 1px solid rgba(45,212,191,.25); border-radius: 10px;
  padding: 14px; margin-top: 4px;
}
.compare .c-title { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.compare .c-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; color: var(--muted); }
.compare .c-row b { color: var(--txt); font-family: Consolas, monospace; }
.send-result { margin-top: 12px; padding: 12px; border-radius: 9px; font-size: 13px; display: none; }
.send-result.ok { display: block; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: var(--green); }
.send-result.err { display: block; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3); color: var(--danger); }

/* ---------- 设备 ---------- */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.device-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.device-card .d-head { display: flex; justify-content: space-between; align-items: center; }
.device-card .d-name { font-weight: 700; font-size: 14px; }
.device-card .d-type { color: var(--muted); font-size: 11px; }
.d-status { font-size: 11px; padding: 3px 9px; border-radius: 12px; }
.d-status.run { background: rgba(52,211,153,.12); color: var(--green); }
.d-status.idle { background: rgba(251,191,36,.12); color: var(--warn); }
.d-status.maint { background: rgba(248,113,113,.12); color: var(--danger); }
.d-load { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.d-load-bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.d-load-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.d-ai { font-size: 11px; }
.d-ai.yes { color: var(--accent); }
.d-ai.no { color: var(--warn); }
.device-card .d-foot { margin-top: 4px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid rgba(38,51,77,.5); }
.table tr:hover td { background: var(--bg2); }
.tbl-tag { padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.tbl-tag.ai { background: rgba(45,212,191,.12); color: var(--accent); }
.tbl-tag.manual { background: rgba(251,191,36,.12); color: var(--warn); }
.tbl-tag.done { background: rgba(52,211,153,.12); color: var(--green); }

/* ---------- 大脑 ---------- */
.weight-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.weight-item label { width: 90px; color: var(--muted); font-size: 13px; }
.weight-item input[type=range] { flex: 1; accent-color: var(--accent); }
.w-val { width: 44px; font-family: Consolas, monospace; color: var(--accent); font-size: 13px; }
.advice-box {
  margin-top: 14px; padding: 14px; border-radius: 10px; font-size: 13px; line-height: 1.7;
  background: linear-gradient(135deg, rgba(56,189,248,.1), rgba(45,212,191,.06));
  border: 1px solid rgba(56,189,248,.3); display: none;
}
.advice-box.show { display: block; animation: fade .3s; }
.advice-box .a-tag { color: var(--accent2); font-weight: 700; }

/* ---------- 培训 ---------- */
.intro-panel {
  background: linear-gradient(120deg, rgba(45,212,191,.08), var(--panel) 55%);
  border-color: rgba(45,212,191,.3);
}
.intro-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.intro-text { color: var(--muted); font-size: 13px; line-height: 1.8; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.course-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: all .2s;
}
.course-card:hover { transform: translateY(-3px); border-color: rgba(45,212,191,.4); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.c-course-top { display: flex; justify-content: space-between; align-items: center; }
.course-level { font-size: 11px; padding: 3px 10px; border-radius: 12px; }
.lv-入门 { background: rgba(52,211,153,.12); color: var(--green); }
.lv-进阶 { background: rgba(56,189,248,.12); color: var(--accent2); }
.lv-高级 { background: rgba(251,191,36,.12); color: var(--warn); }
.course-title { font-size: 15px; font-weight: 700; }
.course-desc { color: var(--muted); font-size: 12px; line-height: 1.7; flex: 1; }
.course-meta { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.course-meta span b { color: var(--txt); }
.course-foot { display: flex; justify-content: space-between; align-items: center; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ---------- 模型市场 ---------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 16px; }
.model-card {
  background: linear-gradient(165deg, var(--panel2), var(--bg2));
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.model-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent2));
}
.model-name { font-size: 15px; font-weight: 800; }
.model-domain { font-size: 11px; color: var(--accent2); margin-bottom: 2px; }
.m-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.m-stat { background: var(--bg); border-radius: 8px; padding: 8px; text-align: center; }
.m-stat .v { font-size: 16px; font-weight: 800; color: var(--accent); font-family: Consolas, monospace; }
.m-stat .k { font-size: 10px; color: var(--muted); margin-top: 2px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.m-tag { font-size: 11px; padding: 3px 9px; border-radius: 10px; background: rgba(56,189,248,.1); color: var(--accent2); }
.m-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.m-price { font-size: 18px; font-weight: 800; color: var(--warn); font-family: Consolas, monospace; }
.m-price small { font-size: 11px; color: var(--muted); font-weight: 400; }
.m-maturity { font-size: 11px; }
.transfer-result { margin-top: 14px; }
.t-step { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg2); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.t-step .t-ok { color: var(--green); }
.t-step .t-wait { color: var(--warn); }
.t-step .t-time { margin-left: auto; color: var(--muted); font-size: 11px; }
.t-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.t-sum { background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 12px; text-align: center; }
.t-sum .v { font-size: 18px; font-weight: 800; color: var(--accent); }
.t-sum .k { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- 其他 ---------- */
.hidden { display: none !important; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mini-dev {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 5px;
}
.mini-dev .md-name { font-weight: 600; }
.mini-dev .md-sub { color: var(--muted); font-size: 11px; }
.mini-dev.on { border-color: rgba(45,212,191,.35); }
.mini-dev.off { border-color: rgba(251,191,36,.3); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(4,8,14,.7);
  display: flex; align-items: center; justify-content: center; z-index: 99;
  backdrop-filter: blur(3px);
}
.modal {
  width: 420px; max-width: 92vw; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  animation: fade .25s;
}
.modal-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.modal .row { margin-bottom: 12px; }
.modal .row label { width: 130px; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- v4.0 新增: 推荐依据 / RAG 案例 / 反馈闭环 ---------- */
.reason-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.reason-item {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 9px 12px;
}
.reason-item b { font-size: 12px; color: var(--accent); }
.reason-item span { font-size: 12px; color: var(--muted); line-height: 1.55; }

.case-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.case-item {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
}
.case-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.case-adopt { color: var(--green); }
.case-main { font-size: 12px; color: var(--txt); margin-top: 4px; }
.case-params { font-size: 12px; color: var(--accent2); font-family: Consolas, monospace; margin-top: 3px; }
.case-outcome { font-size: 11px; color: var(--muted); margin-top: 3px; }

.fb-note { font-size: 12px; color: var(--muted); align-self: center; }
.fb-good:hover { border-color: var(--green); color: var(--green); }
.fb-warn:hover { border-color: var(--warn); color: var(--warn); }

/* ---------- 智能监控 ---------- */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-left: 6px; vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.twin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.twin-card {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 7px;
}
.twin-card.maint { opacity: .55; }
.twin-card.idle { opacity: .8; }
.t-head { display: flex; justify-content: space-between; align-items: center; }
.t-id { font-weight: 700; font-size: 13px; color: var(--accent2); }
.t-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.t-status.run { background: rgba(52,211,153,.12); color: var(--green); }
.t-status.maint { background: rgba(248,113,113,.12); color: var(--danger); }
.t-status.idle { background: rgba(125,138,165,.12); color: var(--muted); }
.t-name { font-size: 12px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name em { font-style: normal; color: var(--muted); font-size: 11px; }
.t-metrics { display: flex; flex-direction: column; gap: 4px; }
.t-m { display: grid; grid-template-columns: 34px 62px 1fr; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.t-m b { color: var(--txt); font-family: Consolas, monospace; font-weight: 600; }
.t-m b.danger { color: var(--danger); }
.t-m b.warn { color: var(--warn); }
.t-m b small { font-weight: 400; color: var(--muted); }
.bar { display: block; height: 4px; background: rgba(125,138,165,.15); border-radius: 2px; overflow: hidden; }
.bar u { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.bar u.warn { background: var(--warn); }
.bar u.danger { background: var(--danger); }
.t-tool { font-size: 11px; padding: 5px 8px; border-radius: 6px; }
.t-tool.ok { background: rgba(45,212,191,.08); color: var(--accent); }
.t-tool.warn { background: rgba(251,191,36,.1); color: var(--warn); }
.t-tool.danger { background: rgba(248,113,113,.12); color: var(--danger); }

.rule-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.rule-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.r-trigger { font-size: 12px; color: var(--warn); font-weight: 600; }
.r-action { font-size: 12px; color: var(--txt); margin-top: 4px; }
.r-sensor { font-size: 11px; color: var(--muted); margin-top: 4px; }

.event-stream { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 300px; overflow-y: auto; }
.evt {
  display: flex; align-items: baseline; gap: 8px; font-size: 11px;
  border-left: 3px solid var(--accent); background: var(--panel2);
  border-radius: 6px; padding: 7px 10px;
}
.evt.warn { border-left-color: var(--warn); }
.evt-time { color: var(--muted); font-family: Consolas, monospace; flex-shrink: 0; }
.evt-dev { color: var(--accent2); font-weight: 700; flex-shrink: 0; }
.evt-type { color: var(--txt); font-weight: 600; flex-shrink: 0; }
.evt-msg { color: var(--muted); }
.evt-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 30px 0; }
