:root {
  /* 中国传统高级色 */
  --paper: #F5F1E6;        /* 宣纸 */
  --paper-2: #EDE6D4;
  --ink: #2B2B2B;          /* 墨 */
  --ink-soft: #6A6253;
  --qing: #2E4A7D;         /* 群青 */
  --bi: #2E8B82;           /* 青碧 */
  --zhi: #A8552B;          /* 赭石 */
  --yan: #B5485B;          /* 胭脂 */
  --dai: #5B4B8A;          /* 黛紫 */
  --zhu: #6B8E5A;          /* 竹青 */
  --teng: #D99A2B;         /* 藤黄 */
  --line: #E5DBC4;
  --card: #FFFDF7;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(43,43,43,.04), 0 4px 14px rgba(43,43,43,.06);
  --shadow-md: 0 2px 6px rgba(43,43,43,.06), 0 12px 30px rgba(43,43,43,.09);
  --shadow-lg: 0 4px 12px rgba(43,43,43,.08), 0 20px 44px rgba(43,43,43,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background:
    radial-gradient(1200px 560px at 85% -10%, rgba(217,154,43,.08), transparent 58%),
    radial-gradient(950px 500px at -10% 6%, rgba(46,74,125,.06), transparent 55%),
    radial-gradient(700px 420px at 50% 110%, rgba(46,139,130,.05), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
#app { display: flex; min-height: 100vh; }

/* ---------- 侧栏 ---------- */
.sidebar {
  width: 250px;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(217,154,43,.10), transparent 60%),
    linear-gradient(180deg, #141B2C 0%, #1D2A45 55%, #19233C 100%);
  color: #EDE6D6; display: flex; flex-direction: column; padding: 22px 14px 16px;
  position: sticky; top: 0; height: 100vh;
  box-shadow: 2px 0 24px rgba(15,22,38,.25);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.09); position: relative; }
.brand::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teng), transparent); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 11px; background: #FFF;
  overflow: hidden; flex: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.12);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text h1 { font-size: 16.5px; color: #FFF; letter-spacing: .5px; font-family: var(--serif); white-space: nowrap; }
.brand-text span { font-size: 10px; color: #97A5C2; letter-spacing: 2.5px; white-space: nowrap; }

nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding-right: 2px; }
.nav-sec {
  font-size: 10.5px; letter-spacing: 3px; color: rgba(214,222,240,.42);
  margin: 14px 8px 5px; padding-left: 2px; user-select: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.10), transparent); }
.nav-sec:first-of-type { margin-top: 4px; }
.nav-item {
  text-align: left; background: transparent; border: none; color: #BFC9DD;
  padding: 8px 13px; border-radius: 9px; cursor: pointer; font-size: 13px;
  transition: all .18s var(--ease); border-left: 3px solid transparent; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #FFF; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(217,154,43,.24), rgba(217,154,43,.06));
  color: #FFE5AC; border-left-color: var(--teng); font-weight: 600;
}
.sidebar-foot {
  font-size: 11px; color: #8E9BB5; display: flex; align-items: center; gap: 7px; margin-top: 12px;
  padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.sidebar-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zhu); box-shadow: 0 0 8px var(--zhu); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 主区 / 顶栏 ---------- */
.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px;
  background: rgba(255,253,247,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 34px;
  position: sticky; top: 0; z-index: 5;
}
.crumb { font-size: 18px; font-weight: 700; color: var(--qing); font-family: var(--serif); letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.crumb::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--teng), var(--zhi)); transform: rotate(45deg); flex: none; }
.topbar-right { display: flex; align-items: center; }
#clock {
  font-size: 12px; color: var(--ink-soft); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 12px;
  display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm);
}
#clock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bi); box-shadow: 0 0 6px var(--bi); animation: pulse 2.4s infinite; }

.view { display: none; padding: 28px 34px 52px; width: 100%; max-width: 1340px; align-self: center; }
.view.active { display: block; animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 卡片 / 面板 ---------- */
.panel {
  background: linear-gradient(180deg, #FFFDF9 0%, var(--card) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); position: relative;
}
.panel h2 { font-size: 17px; color: var(--qing); margin-bottom: 6px; font-family: var(--serif); position: relative; padding-left: 14px; letter-spacing: .5px; }
.panel h2::before { content:''; position:absolute; left:0; top:3px; bottom:3px; width:4px; border-radius:3px; background: linear-gradient(180deg, var(--teng), var(--zhi)); }
.panel .sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.75; }
.panel h3 { font-size: 14.5px; color: var(--zhi); margin: 16px 0 10px; font-family: var(--serif); }

/* ---------- 仪表盘 ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: linear-gradient(180deg, #FFFDF9, var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--qing); }
.stat.bi::before { background: var(--bi); }
.stat.zhi::before { background: var(--zhi); }
.stat.yan::before { background: var(--yan); }
.stat .num { font-size: 30px; font-weight: 700; color: var(--ink); font-family: var(--serif); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.stat .tag { font-size: 10.5px; color: #fff; background: var(--zhu); padding: 1px 8px; border-radius: 10px; margin-left: 6px; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; border-radius: var(--radius-sm); overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--qing); font-weight: 600; background: var(--paper-2); font-size: 12.5px; letter-spacing: .5px; }
tr:hover td { background: #FBF6E9; }

/* ---------- 表单 ---------- */
label { display: block; font-size: 12px; color: var(--ink-soft); margin: 12px 0 5px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #FFF; color: var(--ink); font-family: inherit; font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--qing); box-shadow: 0 0 0 3px rgba(46,74,125,.12); }
textarea { resize: vertical; min-height: 84px; }
.row { display: flex; gap: 14px; }
.row > div { flex: 1; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; border-radius: 9px; padding: 9px 18px; cursor: pointer; font-size: 13px;
  font-weight: 600; transition: all .18s var(--ease); color: #fff; background: linear-gradient(180deg, #3A5A93, var(--qing));
  box-shadow: 0 2px 8px rgba(46,74,125,.28); letter-spacing: .3px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
  text-decoration: none;
}
a.btn { text-decoration: none; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn.bi { background: linear-gradient(180deg, #38A198, var(--bi)); box-shadow: 0 2px 8px rgba(46,139,130,.28); }
.btn.zhi { background: linear-gradient(180deg, #BC663C, var(--zhi)); box-shadow: 0 2px 8px rgba(168,85,43,.28); }
.btn.yan { background: linear-gradient(180deg, #C55C6E, var(--yan)); box-shadow: 0 2px 8px rgba(181,72,91,.28); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); box-shadow: none; }
.btn.ghost:hover { background: var(--paper); border-color: var(--qing); color: var(--qing); }
.btn.sm { padding: 5px 12px; font-size: 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 徽标 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .3px; }
.badge.ok { background: #E7F2E8; color: #2E7D32; box-shadow: inset 0 0 0 1px #C4DCC7; }
.badge.warn { background: #FCF2DC; color: #96690A; box-shadow: inset 0 0 0 1px #EBD5A3; }
.badge.bad { background: #F9E5E9; color: #AD3C51; box-shadow: inset 0 0 0 1px #EBC3CB; }
.badge.q { background: #E8EBF3; color: var(--qing); box-shadow: inset 0 0 0 1px #CBD3E4; }
.badge.run { background: #E3F1EF; color: #23746C; box-shadow: inset 0 0 0 1px #BFDAD6; }
.badge.rv { background: #FCF2DC; color: #96690A; box-shadow: inset 0 0 0 1px #EBD5A3; }
.badge.qing { background: #E8EBF3; color: var(--qing); box-shadow: inset 0 0 0 1px #CBD3E4; }
.badge.bi { background: #E3F1EF; color: var(--bi); box-shadow: inset 0 0 0 1px #BFDAD6; }
.badge.zhi { background: #F6E9E0; color: var(--zhi); box-shadow: inset 0 0 0 1px #E6CBB8; }
.badge.yan { background: #F9E5E9; color: var(--yan); box-shadow: inset 0 0 0 1px #EBC3CB; }
.badge.red { background: #F9E5E9; color: #AD3C51; box-shadow: inset 0 0 0 1px #EBC3CB; }

/* ---------- 代码/JSON ---------- */
pre {
  background: linear-gradient(180deg,#232B3E,#1B2233); color: #E8E2D2; padding: 16px 18px; border-radius: 12px; overflow: auto;
  font-family: "SF Mono", Consolas, monospace; font-size: 12px; line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow-sm);
}
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--zhi); font-weight: 600; }
code {
  font-family: "SF Mono", Consolas, "PingFang SC", monospace; font-size: 12px;
  color: var(--qing); background: #EAF0F7; border: 1px solid #D5DFEC;
  padding: 1px 7px; border-radius: 6px; white-space: nowrap;
}

/* ---------- 流程条 ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.flow .step {
  font-size: 11px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2);
  color: var(--ink-soft); border: 1px solid var(--line);
}
.flow .step.done { background: #E7F2E8; color: #2E7D32; border-color: #C4DCC7; }
.flow .step.fail { background: #F9E5E9; color: var(--yan); border-color: #EBC3CB; }
.flow .step.run { background: #E3F1EF; color: var(--bi); border-color: #BFDAD6; }

.muted { color: var(--ink-soft); font-size: 12.5px; }
.hr { height: 1px; background: linear-gradient(90deg, var(--line), transparent); margin: 16px 0; }
.pill { font-size: 11px; color: var(--dai); background: #ECEAF4; padding: 2px 9px; border-radius: 999px; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 24px; border-radius: 12px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: all .28s var(--ease); z-index: 50; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--yan); }

/* ---------- 偏好标注 · DPO 闭环 ---------- */
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 14px; margin-top: 14px; }
.cand-card { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--card); transition: all .18s var(--ease); box-shadow: var(--shadow-sm); }
.cand-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cand-card.chosen { border-color: var(--zhu); box-shadow: 0 0 0 2px rgba(107,142,90,.25); }
.cand-card.rejected { border-color: var(--yan); box-shadow: 0 0 0 2px rgba(181,72,91,.2); }
.cand-head { font-weight: 700; color: var(--qing); margin-bottom: 7px; font-size: 13.5px; }
.cand-summary { font-size: 13px; margin-bottom: 7px; line-height: 1.6; }
.cand-dlg { font-size: 12px; color: var(--ink-soft); margin-bottom: 7px; line-height: 1.6; }
.cand-emotion { font-size: 12px; color: var(--zhi); margin-bottom: 11px; }
.cand-actions { display: flex; gap: 8px; }
.cand-actions .btn.sm.ok { background: #E7F2E8; color: #2E7D32; border: 1px solid #C4DCC7; }
.cand-actions .btn.sm.bad { background: #F9E5E9; color: var(--yan); border: 1px solid #EBC3CB; }
.cand-actions .btn.sm.ok.on { background: var(--zhu); color: #fff; }
.cand-actions .btn.sm.bad.on { background: var(--yan); color: #fff; }
.cand-tip { margin-top: 12px; font-size: 12px; color: var(--ink-soft); }
.cand-tip.good { color: var(--zhu); font-weight: 600; }
.pref-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pref-pair { flex: 1; font-size: 12.5px; }
.pref-chosen { color: var(--zhu); }
.pref-rejected { color: var(--yan); }
/* 工程包 */
.btn-cell { white-space: nowrap; }
.btn-cell .btn { margin-right: 6px; }
.kv-table td { padding: 7px 12px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv-table .kv-k { color: var(--ink-soft); width: 110px; font-weight: 600; }

/* ---------- 出海本地化 ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13px; color: var(--ink-soft); transition: all .15s; }
.tab:hover { background: var(--paper); }
.tab.active { background: linear-gradient(180deg, #3A5A93, var(--qing)); color: #fff; border-color: var(--qing); box-shadow: 0 2px 8px rgba(46,74,125,.28); }
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.lang-opt { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--card); cursor: pointer; transition: all .18s var(--ease); box-shadow: var(--shadow-sm); }
.lang-opt:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lang-opt.active { border-color: var(--teng); box-shadow: 0 0 0 3px rgba(217,154,43,.22); }
.lang-opt .lo-name { font-weight: 700; color: var(--qing); font-size: 14px; }
.lang-opt .lo-market { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.lz-line { display: grid; grid-template-columns: 1fr 1fr 64px; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: center; }
.lz-line .zh { color: var(--ink); }
.lz-line .tx { color: var(--zhi); }
.lz-zh { background: var(--paper-2); padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.8; color: var(--ink); }
.lz-tx { background: #EAF2EF; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.8; color: #1f5b50; }
.taboo-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 13px; background: var(--card); }
.taboo-box.ok { border-color: #C4DCC7; background: #F0F6F0; }
.taboo-box.warn { border-color: #EBC3CB; background: #FBEFF1; }

/* ---------- 实时运营驾驶舱 ---------- */
.dash-hero { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, #FFFDF8 0%, #FBF4E4 100%); }
.dash-hero-left { flex: 0 0 190px; display: grid; place-items: center; }
.health-ring {
  width: 178px; height: 178px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--paper-2) 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; box-shadow: 0 10px 28px rgba(43,43,43,.14), inset 0 2px 6px rgba(255,255,255,.4);
}
.health-ring::after {
  content: ''; position: absolute; inset: 15px; border-radius: 50%; background: var(--card);
  box-shadow: inset 0 2px 10px rgba(43,43,43,.07); z-index: 0;
}
.health-score { position: relative; z-index: 1; font-size: 50px; font-weight: 800; line-height: 1; font-family: var(--serif); }
.health-level { position: relative; z-index: 1; font-size: 13px; margin-top: 6px; font-weight: 700; }
.dash-hero-right { flex: 1; min-width: 260px; }
.health-reasons { margin: 0; padding-left: 20px; font-size: 13px; color: var(--ink-soft); line-height: 1.85; }
.health-reasons li { margin: 4px 0; }
.health-reasons li::marker { color: var(--teng); }

.dash-card {
  background: linear-gradient(180deg, #FFFDF9, var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  transition: all .2s var(--ease); cursor: pointer; border-top: 3px solid var(--qing);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.dash-card::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.05)); pointer-events:none; }
.dash-card.bi { border-top-color: var(--bi); }
.dash-card.zhi { border-top-color: var(--zhi); }
.dash-card.yan { border-top-color: var(--yan); }
.dash-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dash-card-title { font-weight: 700; color: var(--qing); font-size: 14.5px; font-family: var(--serif); letter-spacing: .5px; }
.dash-card-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 6px; text-align: center; }
.dash-card-metrics div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.dash-card-metrics b {
  font-size: 21px; color: var(--ink); font-weight: 700; font-family: var(--serif);
  font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2;
}
.dash-card-metrics span { font-size: 10px; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0; white-space: nowrap; }
.dash-card-metrics .warn-t { color: var(--teng); }
.dash-card-metrics .bad-t { color: var(--yan); }
.dash-actions { font-size: 13.5px; line-height: 2.3; }
.dash-actions .badge { margin-right: 6px; }
.trend-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.trend-head h2 { margin-bottom: 0; }
.trend-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.mc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.mc-chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mc-chip b { color: var(--ink); font-weight: 700; }

/* ---------- 智能预警中心 ---------- */
.alert-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 2px; padding: 13px 18px; border-radius: 14px;
  background: #FBEFF1; border: 1px solid #EBC3CB; font-size: 13px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.alert-strip.ok { background: #F0F6F0; border-color: #C4DCC7; }
.alert-strip.sev-P0 { background: #FBEFF1; border-color: var(--yan); box-shadow: 0 0 0 3px rgba(181,72,91,.08), var(--shadow-sm); }
.alert-strip.sev-P1 { background: #FCF4E3; border-color: var(--teng); box-shadow: 0 0 0 3px rgba(217,154,43,.08), var(--shadow-sm); }
.alert-strip.sev-P2 { background: #EEF2F8; border-color: var(--qing); box-shadow: 0 0 0 3px rgba(46,74,125,.07), var(--shadow-sm); }
.alert-top { color: var(--ink); font-weight: 600; }
.alert-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.alert-list { display: flex; flex-direction: column; gap: 14px; }
.alert-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  background: var(--card); border-left: 4px solid var(--zhu); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.alert-item:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.alert-item.sev-P0 { border-left-color: var(--yan); }
.alert-item.sev-P1 { border-left-color: var(--teng); }
.alert-item.sev-P2 { border-left-color: var(--qing); }
.alert-item-head { display: flex; align-items: center; gap: 10px; }
.alert-title { font-weight: 700; color: var(--ink); font-size: 15px; flex: 1; font-family: var(--serif); }
.alert-detail { margin: 9px 0 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.alert-action { font-size: 12.5px; color: var(--ink-soft); background: var(--paper); border-radius: 10px; padding: 8px 12px; line-height: 1.7; }
.alert-action b { color: var(--zhi); }
.alert-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.alert-item.acked { opacity: .55; background: #F4F6F4; }
.alert-item.acked .alert-title { text-decoration: line-through; }
.alert-done-zone { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 14px; }
.alert-done-zone h3 { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.alert-item.resurrected { border-left: 4px solid var(--teng); background: #FFF8E8; }
.alert-item.resurrected .alert-title { color: var(--teng); }
.ttl-sel { font-size: 12px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink-soft); }
.alert-resur-note { margin: 14px 0 2px; padding: 9px 12px; border-radius: 10px; background: #FFF8E8; border: 1px solid #F0DCA0; font-size: 13px; color: var(--ink-soft); }

/* ---------- 预警处置审计流 ---------- */
.audit-trail { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 14px; }
.audit-trail h3 { font-size: 14.5px; color: var(--zhi); margin: 0 0 12px; font-family: var(--serif); }
.audit-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.audit-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.audit-item:last-child { border-bottom: none; }
.audit-desc { flex: 1; color: var(--ink); }
.audit-ts { color: var(--ink-soft); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 分项指标时序网格 ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-top: 10px; }
.mg-card { background: linear-gradient(180deg, #FFFDF9, #FAF7F0); border: 1px solid #EAE3D2; border-radius: 14px; padding: 14px 14px 12px; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.mg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mg-head { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #6B5D4F; font-family: var(--serif); }
.mg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.mg-val { font-size: 30px; font-weight: 800; color: #2B2620; font-family: var(--serif); line-height: 1.1; margin: 8px 0 4px; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.mg-unit { font-size: 14px; font-weight: 600; color: #9A8F82; margin-left: 3px; }
.mg-spark { height: 52px; margin: 2px -2px 6px; }
.mg-spark svg { width: 100%; height: 52px; }
.mg-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8A7F72; }
.mg-badge.bad { background: rgba(181,72,91,.12); color: #B5485B; border: 1px solid rgba(181,72,91,.3); padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-left: 2px; }
.mg-range { font-size: 11px; color: #9A8F82; margin-top: 5px; font-variant-numeric: tabular-nums; }

/* ---------- 工单批量操作条（v56） ---------- */
.tk-batch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 14px; padding: 9px 12px; background: linear-gradient(180deg, #FFFDF9, #FAF7F0); border: 1px solid #EAE3D2; border-radius: 12px; }
.tk-pick-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6B5D4F; cursor: pointer; }
.tk-selcount { font-size: 12.5px; color: #8A7F72; }
.tk-selcount b { color: var(--qing); font-size: 14px; }
.tk-batch-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; transition: opacity .18s var(--ease); }
.tk-pick { display: inline-flex; align-items: center; cursor: pointer; }
.tk-pick input { width: 14px; height: 14px; accent-color: var(--qing); cursor: pointer; }

/* ---------- 模板库卡片网格（v37） ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 12px; }
.tpl-card { background: linear-gradient(180deg, #FFFFFF, #F7F9FC); border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 9px; transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tpl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.tpl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12px; color: var(--ink-soft); }
.tpl-theme { color: var(--zhi); font-weight: 600; }
.tpl-ver { color: var(--ink-soft); }
.tpl-body { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); background: #F3F6FB; border-left: 3px solid var(--qing); border-radius: 0 8px 8px 0; padding: 8px 10px; max-height: 96px; overflow: hidden; }
.tpl-body .ph { color: var(--bi); font-weight: 600; background: rgba(39,123,160,.10); border-radius: 4px; padding: 0 3px; }
.tpl-foot { display: flex; gap: 8px; margin-top: auto; }

/* ---------- 巡检时间线（v38） ---------- */
.pt-timeline { position: relative; margin-top: 12px; padding-left: 22px; }
.pt-timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--qing), rgba(46,74,125,.05)); }
.pt-item { position: relative; padding-bottom: 14px; }
.pt-item:last-child { padding-bottom: 0; }
.pt-node { position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--qing); box-shadow: 0 0 0 3px rgba(46,74,125,.12); }
.pt-item.is-new .pt-node { border-color: var(--bi); box-shadow: 0 0 0 4px rgba(39,123,160,.18); animation: pt-pulse 1.8s ease-in-out infinite; }
@keyframes pt-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(39,123,160,.18); } 50% { box-shadow: 0 0 0 7px rgba(39,123,160,.06); } }
.pt-card { background: linear-gradient(180deg, #FFFFFF, #F7F9FC); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; box-shadow: var(--shadow-sm); }
.pt-item.is-new .pt-card { border-color: rgba(39,123,160,.4); }
.pt-card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pt-time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt-sum { color: var(--ink-soft); font-size: 12.5px; }
.pt-sum b { color: var(--qing); font-size: 14px; }
.pt-card-metrics { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.pt-card-metrics b { color: var(--ink); }

/* ---------- 工单台账卡片（v39） ---------- */
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.tk-card { background: linear-gradient(180deg, #FFFFFF, #F7F9FC); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.tk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tk-card.sev-P0 { border-left-color: #B5485B; }
.tk-card.sev-P1 { border-left-color: var(--rv); }
.tk-card.sev-P2 { border-left-color: var(--q); }
.tk-card-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tk-id { margin-left: auto; font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tk-title { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.4; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-soft); }
.tk-sla { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.tk-foot { display: flex; gap: 7px; margin-top: auto; flex-wrap: wrap; }

/* ---------- 训练集配比建议卡片（v40） ---------- */
.ds-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.ds-plan-card { background: linear-gradient(180deg, #FFFFFF, #F7F9FC); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.ds-plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ds-plan-head { font-weight: 700; font-size: 14px; color: var(--ink); }
.ds-plan-bars { display: flex; gap: 18px; }
.ds-plan-row { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-soft); }
.ds-plan-row b { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ds-plan-action { font-size: 12px; line-height: 1.5; }

/* ---------- 任务编排卡片（v41） ---------- */
.tk-task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.tk-task-card { background: linear-gradient(180deg, #FFFFFF, #F7F9FC); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.tk-task-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tk-task-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.tk-ep { font-weight: 800; font-size: 14px; color: var(--qing); font-variant-numeric: tabular-nums; }
.tk-theme { font-weight: 600; color: var(--ink); }
.tk-pri { color: var(--ink-soft); }
.tk-task-foot { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------- RAG 知识库卡片 ---------- */
.rag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 6px; }
.rag-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 12px; border-radius: 14px;
  background: linear-gradient(180deg, #FFFEFB, var(--card)); box-shadow: 0 2px 10px rgba(46,74,125,.08), inset 0 0 0 1px var(--line);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.rag-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(46,74,125,.14), inset 0 0 0 1px var(--line); }
.rag-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rag-title { font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.rag-snip { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; min-height: 40px; }
.rag-foot { display: flex; gap: 8px; margin-top: auto; }
.rag-hit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 8px; }
.rag-hit { padding: 13px 14px; border-radius: 12px; background: linear-gradient(180deg, #FFFEFB, var(--card));
  box-shadow: 0 2px 8px rgba(46,74,125,.07), inset 0 0 0 1px var(--line); }
.rag-hit-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rag-hit-top b { font-size: 13.5px; color: var(--ink); }
.rag-hit-meta { font-size: 11.5px; color: var(--zhi); margin-top: 6px; }

/* ---------- 成片质检台账卡片 ---------- */
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 6px; }
.qc-card { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px 12px; border-radius: 14px;
  background: linear-gradient(180deg, #FFFEFB, var(--card)); box-shadow: 0 2px 10px rgba(46,74,125,.08), inset 0 0 0 1px var(--line);
  border-left: 4px solid var(--line); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.qc-card.g-ok { border-left-color: #2E7D32; }
.qc-card.g-rv { border-left-color: #96690A; }
.qc-card.g-bad { border-left-color: #AD3C51; }
.qc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(46,74,125,.14), inset 0 0 0 1px var(--line); }
.qc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qc-ep { font-size: 14px; color: var(--ink); }
.qc-score { display: flex; align-items: baseline; gap: 6px; }
.qc-score b { font-size: 26px; font-weight: 700; color: var(--qing); line-height: 1; }
.qc-score span { font-size: 12px; color: var(--ink-soft); }
.qc-gate { margin-left: auto; }
.qc-meta { font-size: 11.5px; }
.qc-foot { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }

/* ---------- API 网关密钥卡片 ---------- */
.key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 6px; }
.key-card { display: flex; flex-direction: column; gap: 10px; padding: 15px 16px 12px; border-radius: 14px;
  background: linear-gradient(180deg, #FFFEFB, var(--card)); box-shadow: 0 2px 10px rgba(46,74,125,.08), inset 0 0 0 1px var(--line);
  border-top: 3px solid var(--bi); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.key-card.revoked { border-top-color: #C9BC9C; opacity: .82; }
.key-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(46,74,125,.14), inset 0 0 0 1px var(--line); }
.key-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.key-name { font-size: 14.5px; color: var(--ink); }
.key-code { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  background: #1E2740; color: #BFE3FF; padding: 6px 10px; border-radius: 8px; letter-spacing: .4px; word-break: break-all; }
.key-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-soft); }
.key-meta b { color: var(--ink); }
.key-foot { display: flex; gap: 8px; margin-top: auto; min-height: 28px; align-items: center; }

/* ---------- 日志筛选栏 ---------- */
.log-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.log-filter input { flex: 1 1 220px; min-width: 180px; }
.log-filter select { flex: 0 0 auto; }
.log-count { font-size: 12px; color: var(--ink-soft); margin-left: auto; }
.table-wrap { overflow-x: auto; }

/* ---------- 周报环比角标 ---------- */
.delta { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.4; padding: 1px 7px; border-radius: 999px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.delta.good { color: #1F9D55; background: rgba(31,157,85,.12); }
.delta.bad { color: #D23B3B; background: rgba(210,59,59,.12); }
.delta.flat { color: #98A2B3; background: rgba(152,162,179,.12); font-weight: 600; }

/* ---------- 合规表格：按动作严重度着色的行色条 ---------- */
tbody tr.comp-row td:first-child { box-shadow: inset 3px 0 0 transparent; }
tbody tr.comp-row.sev-block td:first-child { box-shadow: inset 3px 0 0 #AD3C51; }
tbody tr.comp-row.sev-replace td:first-child { box-shadow: inset 3px 0 0 #96690A; }
tbody tr.comp-row.sev-report td:first-child { box-shadow: inset 3px 0 0 var(--qing); }
tbody tr.comp-row:hover { background: rgba(58,90,147,.06); }

/* ---------- 训练集版本对比表：A/B 选中高亮 ---------- */
.ds-ver-table th:first-child, .ds-ver-table th:nth-child(2), .ds-ver-table td:first-child, .ds-ver-table td:nth-child(2) { text-align: center; }
tr.ds-ver-row { transition: background .15s var(--ease); }
tr.ds-ver-row:hover { background: rgba(58,90,147,.05); }
tr.ds-ver-row.sel-a { background: rgba(58,90,147,.09); }
tr.ds-ver-row.sel-a td:first-child { box-shadow: inset 3px 0 0 var(--qing); }
tr.ds-ver-row.sel-b { background: rgba(150,105,10,.08); }
tr.ds-ver-row.sel-b td:first-child { box-shadow: inset 3px 0 0 #96690A; }

/* ---------- 模型适配层：状态总览 + kv 卡片化 ---------- */
.llm-status { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; margin: 4px 0 14px; background: linear-gradient(180deg, #FFFDF8, #FBF6EC); box-shadow: 0 1px 3px rgba(46,74,125,.08), inset 0 0 0 1px rgba(46,74,125,.08); }
.llm-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; margin-top: 4px; }
.llm-dot.on { background: #2E7D32; animation: llmPulse 2s ease-in-out infinite; }
.llm-dot.off { background: #98A2B3; box-shadow: 0 0 0 3px rgba(152,162,179,.14); }
@keyframes llmPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(46,125,50,.18); } 50% { box-shadow: 0 0 0 6px rgba(46,125,50,.06); } }
.llm-status-txt { font-size: 13px; line-height: 1.5; }
.llm-status-txt .muted { display: block; font-size: 12px; margin-top: 3px; }
.kv-card { padding: 14px 16px; border-radius: 10px; background: linear-gradient(180deg, #FFFDF8, #FBF6EC); box-shadow: 0 1px 3px rgba(46,74,125,.08), inset 0 0 0 1px rgba(46,74,125,.08); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D9CFB8; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #C9BC9C; }
::-webkit-scrollbar-track { background: transparent; }
nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }
nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.24); }

/* ---------- v57：全局检索 · 命令面板 ---------- */
.cmd-open {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 12.5px; color: var(--ink-soft); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px;
  box-shadow: var(--shadow-sm); transition: all .18s var(--ease); margin-right: 10px;
  font-family: inherit;
}
.cmd-open:hover { color: var(--qing); border-color: rgba(46,74,125,.32); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cmd-open-ico { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid currentColor; position: relative; opacity: .75; }
.cmd-open-ico::after { content: ''; position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.6px; background: currentColor; transform: rotate(45deg); border-radius: 2px; }
.cmd-open kbd, .cmd-kbd {
  font-family: inherit; font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 6px;
  color: var(--ink-soft); background: rgba(46,74,125,.07); border: 1px solid var(--line);
}
.cmd-mask {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(24,26,32,.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 9vh 16px 16px; animation: cmdIn .16s var(--ease);
}
.cmd-mask[hidden] { display: none; }
@keyframes cmdIn { from { opacity: 0; } to { opacity: 1; } }
.cmd-panel {
  width: 100%; max-width: 720px; background: linear-gradient(180deg, #FFFDF9, var(--card));
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column; max-height: 72vh;
  animation: cmdUp .2s var(--ease);
}
@keyframes cmdUp { from { opacity: 0; transform: translateY(-12px) scale(.985); } to { opacity: 1; transform: none; } }
.cmd-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(217,154,43,.05); }
.cmd-ico { width: 15px; height: 15px; border-radius: 50%; border: 1.8px solid var(--zhi); position: relative; flex: none; }
.cmd-ico::after { content: ''; position: absolute; right: -5px; bottom: -4px; width: 7px; height: 1.8px; background: var(--zhi); transform: rotate(45deg); border-radius: 2px; }
.cmd-input {
  flex: 1; border: none; background: transparent; outline: none; font-size: 15px; color: var(--ink);
  font-family: inherit; padding: 2px 0;
}
.cmd-input::placeholder { color: #B4AA93; }
.cmd-body { overflow-y: auto; padding: 8px 10px 12px; }
.cmd-group { margin-top: 8px; }
.cmd-group-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 6px;
  font-size: 11px; letter-spacing: 1.4px; color: var(--zhi); font-weight: 700;
}
.cmd-group-count { color: var(--ink-soft); font-weight: 600; letter-spacing: 0; }
.cmd-group-go { margin-left: auto; color: #A79B84; font-weight: 500; letter-spacing: 0; }
.cmd-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  transition: background .14s var(--ease); border-left: 3px solid transparent;
}
.cmd-item.sel { background: linear-gradient(90deg, rgba(217,154,43,.16), rgba(217,154,43,.05)); border-left-color: var(--teng); }
.cmd-item-main { flex: 1; min-width: 0; }
.cmd-item-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.cmd-item-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-item-side { flex: none; text-align: right; max-width: 260px; }
.cmd-item-meta { font-size: 11px; color: #A79B84; margin-top: 3px; line-height: 1.4; }
.cmd-item mark { background: rgba(217,154,43,.28); color: var(--zhi); border-radius: 3px; padding: 0 1px; font-weight: 700; }
.cmd-empty { padding: 26px 16px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.cmd-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 18px; border-top: 1px solid var(--line); background: rgba(245,241,230,.6);
  font-size: 11.5px; color: var(--ink-soft);
}
.cmd-meta { color: #A79B84; }
