/* CMES V2.1 · 监测与预警页面分片样式（dev-monitor 独占）
   约定：仅新增 cm- 前缀类，复用 theme.css 的 .card/.grid/.badge/.btn 等基础类，不覆盖它们。
   报告页使用稳定 CSS Grid / 文档流，禁止固定高度与绝对定位导致的溢出重叠。 */

.cm-page { display: block; }

/* ---------------- KPI 卡 ---------------- */
.cm-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cm-kpi-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cm-kpi {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--pri-l);
  border-radius: 9px; padding: 12px 14px; box-shadow: var(--shadow);
  cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.cm-kpi:hover { box-shadow: 0 3px 12px rgba(16,54,92,.12); transform: translateY(-2px); }
.cm-kpi-link { cursor: pointer; }
.cm-kpi-link.on { box-shadow: 0 0 0 2px rgba(26,114,198,.35), 0 3px 12px rgba(16,54,92,.12); }
.kpi.cm-kpi-link { transition: box-shadow .2s, transform .2s, border-color .2s; }
.kpi.cm-kpi-link:hover { transform: translateY(-2px); border-color: #a9cbe8; }
.cm-kpi-label { font-size: 11.5px; color: var(--ink2); display: flex; align-items: center; gap: 7px; }
.cm-kpi-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 8px; }
.cm-kpi-value { font-size: 27px; font-weight: 800; line-height: 1.25; margin-top: 5px; font-variant-numeric: tabular-nums; }
.cm-kpi-unit { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.cm-kpi-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.cm-kpi-more { font-size: 10px; color: var(--pri-l); margin-top: 8px; opacity: 0; transition: opacity .2s; }
.cm-kpi:hover .cm-kpi-more { opacity: 1; }

/* 统计卡即筛选条件：卡内等级 chip 与右侧口径读数 */
.cm-kpi-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.cm-kpi-chip {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 10px; color: var(--ink2); cursor: pointer; transition: border-color .18s, background .18s;
}
.cm-kpi-chip i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.cm-kpi-chip b { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-kpi-chip:hover { border-color: #a9cbe8; background: #f5faff; }
.cm-kpi-chip.on { border-color: var(--pri-l); background: var(--pri-x); color: var(--pri-d); }
.cm-kpi-gap { font-weight: 800; color: #c96a1c; }
.cm-alert-count { display: flex; align-items: baseline; gap: 3px; font-size: 10.5px; color: var(--muted); }
.cm-alert-count b { font-size: 14px; font-weight: 800; color: var(--pri); font-variant-numeric: tabular-nums; }
.cm-sub-note { font-size: 10px; font-weight: 400; color: var(--muted); }

/* ---------------- 图表 / 列表 ---------------- */
.cm-chart { width: 100%; }
.cm-list { display: flex; flex-direction: column; }
.cm-list-item {
  display: flex; align-items: flex-start; gap: 8px; padding: 7px 2px;
  border-bottom: 1px solid var(--line2); cursor: pointer; transition: background-color .15s;
}
.cm-list-item:last-child { border-bottom: 0; }
.cm-list-item:hover { background: #f6faff; }
.cm-li-main { flex: 1; min-width: 0; }
.cm-li-title { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-li-meta { font-size: 10px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-empty { text-align: center; color: var(--muted); font-size: 11.5px; padding: 16px 8px; }
.cm-nav-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #eef5fc; border: 1px solid #cfe0f2; color: #1c4f80; border-radius: 7px; padding: 8px 12px; margin: 0 0 12px; font-size: 11.5px; line-height: 1.6; }
.cm-sub-title { font-size: 11px; font-weight: 700; color: var(--pri); letter-spacing: .3px; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.cm-sub-title::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: var(--pri-l); }

/* ---------------- 地图：风险提示轮播浮层（渐隐渐显） ---------------- */
.cm-carousel {
  position: absolute; left: 14px; top: 14px; z-index: 600; width: 246px;
  background: rgba(255,255,255,.95); border: 1px solid #e2eaf3; border-left: 4px solid var(--lv1);
  border-radius: 9px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(16,54,92,.18);
  cursor: pointer; opacity: 1; transition: opacity .6s ease;
}
.cm-carousel.is-faded { opacity: 0; }
.cm-carousel:hover { box-shadow: 0 8px 24px rgba(16,54,92,.24); }
.cm-car-head { font-size: 9.5px; color: var(--muted); letter-spacing: .3px; margin-bottom: 5px; }
.cm-car-title { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.cm-car-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 10px; color: var(--ink2); margin-top: 7px; }
.cm-car-tip { font-size: 9.5px; color: var(--pri-l); margin-top: 7px; border-top: 1px dashed var(--line); padding-top: 6px; }
.cm-map-timeline-note { font-size: 10px; color: var(--muted); margin-top: 6px; }

/* ---------------- 地图大屏：全屏画布 + 右上浮动控制台 ---------------- */
.cm-map-screen{padding-bottom:0}
.cm-map-stage{position:relative}
.map-wrap.leaflet-host.cm-map-canvas{height:calc(100vh - 200px);min-height:640px;border-radius:12px;background:#e9eef5;box-shadow:0 12px 32px rgba(11,38,66,.16)}
.cm-map-hud{position:absolute;left:16px;top:14px;z-index:610;color:#fff;background:linear-gradient(135deg,rgba(11,38,66,.92),rgba(18,58,99,.62));border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:9px 13px;pointer-events:none;box-shadow:0 8px 24px rgba(9,35,62,.22)}
.cm-map-hud-title b{display:block;font-size:14px;letter-spacing:.04em}
.cm-map-hud-title span{font-size:10px;color:#b9d2e8}
.cm-map-hud-stats{display:flex;gap:14px;margin-top:6px}
.cm-map-hud-stats span{display:flex;flex-direction:column;gap:1px}
.cm-map-hud-stats em{font-style:normal;font-size:9px;color:#9db8d1}
.cm-map-hud-stats b{font-size:13px;font-variant-numeric:tabular-nums}
.cm-map-dock{position:absolute;top:14px;right:14px;z-index:700;width:368px;max-height:calc(100% - 28px);display:flex;flex-direction:column;background:rgba(255,255,255,.97);border:1px solid #d7e5f2;border-radius:12px;box-shadow:0 14px 34px rgba(9,35,62,.24);overflow:hidden}
.cm-map-dock.collapsed{width:auto;background:transparent;border:0;box-shadow:none;overflow:visible}
.cm-map-dock-open{border:1px solid #d7e5f2;background:rgba(255,255,255,.97);color:#123a63;font-size:11px;font-weight:600;border-radius:999px;padding:6px 12px;cursor:pointer;box-shadow:0 6px 18px rgba(9,35,62,.18)}
.cm-map-tabs{display:flex;gap:4px;align-items:center;padding:7px 8px;border-bottom:1px solid #eef3f8;background:#f6faff}
.cm-map-tabs button{border:0;background:transparent;color:#5b7189;font-size:11px;font-weight:600;padding:5px 9px;border-radius:6px;cursor:pointer}
.cm-map-tabs button.on{background:#123a63;color:#fff}
.cm-map-dock-x{margin-left:auto;font-size:15px!important;line-height:1;color:#8aa0b5!important}
.cm-map-panel{padding:10px 12px;overflow:auto;max-height:calc(100vh - 280px)}
.cm-map-panel .sw-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid #eef3f8;font-size:11.5px;color:#33475b}
.cm-map-panel .sw-row:last-of-type{border-bottom:0}
.cm-map-panel .dot{width:8px;height:8px;border-radius:50%;flex:0 0 8px}
/* 图例符号与地图渲染同款：热力渐变块、航线四级风险色线、航道菱形、港口蓝点、事件红点+光晕 */
.cm-map-panel .sw{flex:0 0 auto;display:inline-block}
.cm-map-panel .sw-heat{width:10px;height:10px;border-radius:2px;background:linear-gradient(180deg,#b02c28,#db5247 25%,#eba042 50%,#f0d682 75%,#dee8f2)}
.cm-map-panel .sw-line{width:16px;height:3px;border-radius:2px;background:linear-gradient(90deg,#3a9d6a 0 25%,#c9971a 0 50%,#e8802f 0 75%,#d94b45 0)}
.cm-map-panel .sw-diamond{width:9px;height:9px;background:#e8802f;border:1.5px solid #fff;box-shadow:0 0 0 1px #e8802f;transform:rotate(45deg)}
.cm-map-panel .sw-port{width:9px;height:9px;border-radius:50%;background:#1a72c6;border:1.5px solid #fff;box-shadow:0 0 0 1px #1a72c6}
.cm-map-panel .sw-evt{width:10px;height:10px;border-radius:50%;background:#d94b45;border:1.5px solid #fff;box-shadow:0 0 0 3px rgba(217,75,69,.22)}
/* 图层开关为 button 后的复位与关闭态对比度 */
.cm-map-panel button.toggle{border:0;padding:0;cursor:pointer;font:inherit}
.cm-map-panel .toggle:not(.on){background:#9fb0c2}
.cm-map-panel .sw-label{flex:1}
.cm-map-legend{display:flex;flex-wrap:wrap;gap:8px;font-size:10px;color:#7c8fa3;margin-top:8px;padding-top:8px;border-top:1px dashed #e3ecf5}
.cm-map-legend i{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:3px}
.cm-map-filter{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:6px 0;border-bottom:1px dashed #eef3f8}
.cm-map-filter-k{width:56px;flex:0 0 56px;font-size:10px;color:#7c8fa3}
.cm-map-filter-note{font-size:10px;color:#7c8fa3;line-height:1.7;margin:8px 0 6px}
.cm-map-sub{font-size:10px;font-weight:700;color:#123a63;letter-spacing:.03em;margin:10px 0 5px}
.cm-map-kv{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:10px;padding:3px 0;border-bottom:1px dashed #f0f4f9}
.cm-map-kv span{color:#7c8fa3;flex:0 0 auto}
.cm-map-kv b{color:#33475b;font-weight:600;text-align:right;line-height:1.6}
.cm-map-link{display:inline-block;font-size:10.5px;color:#1a72c6;margin:6px 0 2px;text-decoration:none}
.cm-map-link:hover{text-decoration:underline}
.cm-map-link.offline{color:#8aa0b5;cursor:default;text-decoration:none}
.cm-map-src{color:#1a72c6;text-decoration:none}
.cm-map-src:hover{text-decoration:underline}
.cm-map-text{font-size:10.5px;line-height:1.8;color:#4a6178;margin:0 0 4px}
.cm-map-raw{font-size:10px;line-height:1.8;color:#5b7189;background:#f7fafd;border:1px solid #e8f0f7;border-radius:7px;padding:7px 9px;max-height:170px;overflow:auto;white-space:pre-wrap;word-break:break-word}
.cm-map-raw.open{max-height:none}
.cm-map-rep{display:flex;gap:6px;font-size:10px;padding:3px 0;border-bottom:1px dashed #f0f4f9;line-height:1.6}
.cm-map-rep span{color:#7c8fa3;flex:0 0 auto}
.cm-map-rep b{color:#33475b;font-weight:500}
.cm-map-chips{display:flex;flex-wrap:wrap;gap:5px}
.cm-map-chip{font-size:9.5px;color:#1f5d8c;background:#eef6fd;border:1px solid #d5e8f8;border-radius:999px;padding:2px 8px}
.cm-map-score{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.cm-map-score>div{background:#f6faff;border:1px solid #e5eef7;border-radius:7px;padding:6px 8px;display:flex;flex-direction:column;gap:1px}
.cm-map-score span{font-size:9px;color:#7c8fa3}
.cm-map-score b{font-size:15px;color:#123a63}
.cm-map-note{font-size:9.5px;color:#8aa0b5;line-height:1.7;margin-top:6px}
.cm-map-alert{display:flex;align-items:flex-start;gap:6px;font-size:10px;padding:4px 0;border-bottom:1px dashed #f0f4f9}
.cm-map-alert b{font-weight:500;color:#33475b;line-height:1.6}
.cm-map-ev-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cm-map-ev-title{font-size:13.5px;font-weight:700;color:#123a63;line-height:1.55;margin:7px 0 4px}
.cm-map-ev-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:9.5px;color:#7c8fa3}
.cm-map-ev-tabs{display:flex;gap:4px;margin:9px 0 6px;border-bottom:1px solid #eef3f8}
.cm-map-ev-tabs button{border:0;background:transparent;color:#5b7189;font-size:10.5px;font-weight:600;padding:5px 8px;border-bottom:2px solid transparent;cursor:pointer}
.cm-map-ev-tabs button.on{color:#1a72c6;border-bottom-color:#1a72c6}
.cm-map-ev-body{max-height:calc(100vh - 430px);min-height:120px;overflow:auto;padding-right:2px}
.cm-map-ev-ft{border-top:1px solid #eef3f8;padding-top:8px;margin-top:8px;display:flex;justify-content:flex-end}
.cm-map-region-hd{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cm-map-region-hd b{flex:1;font-size:12.5px;color:#123a63}
.cm-map-region-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:9px 0 4px}
.cm-map-region-stats>div{background:#f6faff;border:1px solid #e5eef7;border-radius:7px;padding:6px 8px;display:flex;flex-direction:column;gap:1px}
.cm-map-region-stats span{font-size:9px;color:#7c8fa3}
.cm-map-region-stats b{font-size:13px;color:#123a63}
.cm-map-node-row{display:grid;grid-template-columns:16px minmax(0,1fr) 70px 34px;gap:5px;align-items:center;padding:4px 0;border-bottom:1px dashed #f0f4f9;font-size:10px;color:#5b7189}
.cm-map-node-row>span{color:#9db4cb;font-variant-numeric:tabular-nums}
.cm-map-node-row b{color:#33475b;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-map-node-row i{height:6px;background:#eef3f8;border-radius:3px;overflow:hidden;display:block}
.cm-map-node-row em{display:block;height:100%;border-radius:3px}
.cm-map-node-row u{text-decoration:none;text-align:right;color:#123a63;font-weight:600}
.cm-map-region-row{display:flex;align-items:center;gap:8px;padding:6px 4px;border-radius:6px;cursor:pointer;border-bottom:1px dashed #f0f4f9}
.cm-map-region-row:hover{background:#f5fbff}
.cm-map-region-row .dr{width:28px;height:22px;border-radius:5px;color:#fff;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 28px}
.cm-map-region-row .dn{flex:1;font-size:11px;color:#33475b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-map-region-row .dx{font-size:9.5px;color:#8aa0b5;white-space:nowrap}
.cm-route-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 8px;align-items:center;padding:7px 5px;border-radius:7px;cursor:pointer;border-bottom:1px dashed #f0f4f9}
.cm-route-row:hover{background:#f5fbff}
.cm-route-row.on{background:#eaf4fd;box-shadow:inset 2px 0 0 #0b4f8a}
.cm-route-row>b{font-size:11px;color:#33475b;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-route-row .cr-cargo{font-size:9px;color:#1f5d8c;background:#eef6fd;border:1px solid #d5e8f8;border-radius:999px;padding:1px 7px;white-space:nowrap}
.cm-route-row .cr-via{grid-column:1/-1;font-size:9.5px;color:#8aa0b5;line-height:1.6;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cm-route-detail{margin-top:9px;padding:8px 10px;background:#f7fafd;border:1px solid #e8f0f7;border-radius:8px}
.leaflet-overlay-pane path.cm-route{cursor:pointer}
.cm-map-ev-row{display:flex;align-items:flex-start;gap:6px;padding:5px 4px;cursor:pointer;border-bottom:1px dashed #f0f4f9;border-radius:6px}
.cm-map-ev-row:hover{background:#f5fbff}
.cm-map-ev-row>span:nth-child(2){flex:1;font-size:10px;color:#33475b;line-height:1.6}
.cm-map-ev-row em{font-style:normal;font-size:9px;color:#8aa0b5;white-space:nowrap}
.cm-map-carousel{top:auto;bottom:96px;left:16px;width:260px}
.cm-map-screen .map-scale{left:16px;top:118px;bottom:auto}
.cm-map-timebar{position:absolute;left:16px;right:396px;bottom:12px;z-index:620;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.96);border:1px solid #d7e5f2;border-radius:10px;padding:7px 10px;box-shadow:0 8px 22px rgba(9,35,62,.18)}
.cm-map-timebar-track{flex:1;min-width:160px}
.cm-map-timebar-marks{display:flex;justify-content:space-between;font-size:9.5px;color:#8aa0b5;margin-top:3px}
.cm-map-timebar-cur{display:flex;align-items:center;gap:6px;max-width:44%;font-size:9.5px;color:#4a6178;cursor:pointer}
.cm-map-timebar-cur>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 时间窗档位：24h/72h/7d/全部，圈定地图事件池 */
.cm-map-timewin{display:flex;gap:4px;flex:0 0 auto}
.cm-map-timewin .tag{font-size:10px;padding:2px 8px;margin:0}
@media (max-width:1280px){
  .map-wrap.leaflet-host.cm-map-canvas{height:calc(100vh - 190px);min-height:560px}
  .cm-map-dock{width:320px}
  .cm-map-timebar{right:350px}
  .cm-map-carousel{width:220px}
}
@media (max-width:900px){
  .cm-map-timebar{left:12px;right:12px;flex-wrap:wrap;gap:6px}
  .cm-map-timebar-track{flex:1 1 100%;min-width:0}
  .cm-map-timebar-cur{flex:0 1 100%;max-width:100%}
  .cm-map-timewin{margin-left:auto}
  .cm-map-carousel{bottom:126px;width:calc(100% - 24px);max-width:260px}
}
@media (max-width:640px){
  .cm-map-hud{max-width:calc(100% - 32px)}
  .cm-map-hud-title b{white-space:normal}
  .cm-map-hud-stats{flex-wrap:wrap}
  .cm-map-dock{width:calc(100% - 28px);max-width:368px}
}
.cm-filter-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.cm-filter-label { font-size: 10.5px; color: var(--muted); width: 56px; flex: 0 0 56px; }
.cm-map-below { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cm-map-below>.card { margin-bottom: 0; min-width: 0; }
.cm-map-below .card-head { flex-wrap: wrap; }
.cm-map-below-node { width: 100%; border: 0; border-bottom: 1px dashed #f0f4f9; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.cm-map-below-node:last-of-type { border-bottom: 0; }
.cm-map-below-node:hover { background: #f5fbff; }
.cm-rank-row { display: flex; align-items: center; gap: 9px; padding: 6px 2px; border-bottom: 1px solid var(--line2); font-size: 11.5px; }
.cm-rank-row:last-child { border-bottom: 0; }
.cm-rank-no { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; background: var(--pri-x); color: var(--pri-d); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cm-rank-name { flex: 1; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-rank-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.cm-health { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cm-health-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #f7fafd; border: 1px solid var(--line2); border-radius: 7px; padding: 7px 10px; font-size: 11px; color: var(--ink2); }
.cm-health-item b { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--pri-d); }
.cm-health-item b.cm-ok { color: var(--lv4); }
.cm-health-item b.cm-warn { color: var(--lv2); }
.cm-health-item b.cm-down { color: var(--lv1); }
.cm-health-note { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin: 9px 0; }

/* ---------------- 事件页：工具条 / 表格行 / 分页 ---------------- */
.cm-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cm-table-head, .cm-evt-row {
  display: grid;
  grid-template-columns: 62px minmax(120px, 1.6fr) minmax(120px, 1.4fr) 132px 116px minmax(232px, 1.3fr);
  gap: 10px; align-items: center; padding: 9px 6px;
}
.cm-table-head { font-size: 10.5px; color: var(--muted); font-weight: 700; background: #f7fafd; border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; }
.cm-evt-row { border-bottom: 1px solid var(--line2); font-size: 11.5px; transition: background-color .15s; }
.cm-evt-row:hover { background: #f6faff; }
.cm-evt-title { font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1.5; min-width: 0; }
.cm-evt-title:hover { color: var(--pri-l); }
.cm-evt-meta { color: var(--muted); font-size: 10.5px; line-height: 1.55; min-width: 0; }
.cm-evt-time { color: var(--ink2); font-size: 10.5px; }
.cm-src-tag {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: var(--pri-x); color: var(--pri-d); border: 1px solid #cfe3f7;
  border-radius: 5px; padding: 3px 8px; font-size: 10.5px; font-weight: 700;
  max-width: 100%; transition: background-color .18s, border-color .18s, transform .12s;
}
.cm-src-tag:hover { background: #d6e9fb; border-color: var(--pri-l); transform: translateY(-1px); }
.cm-src-tier { font-size: 9px; color: var(--muted); font-weight: 500; }
.cm-evt-ops { display: flex; flex-wrap: wrap; gap: 4px; }
.cm-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 2px; font-size: 11.5px; color: var(--ink2); }

/* ---------------- 详情 / 抽屉 / 弹窗内容 ---------------- */
.cm-detail-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cm-detail-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 12px; line-height: 1.5; }
.cm-detail-sec { margin-bottom: 15px; }
.cm-p { font-size: 12px; color: var(--ink2); line-height: 1.8; margin: 0; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.cm-raw { background: #f7fafd; border: 1px solid var(--line2); border-radius: 7px; padding: 10px 12px; max-height: 180px; overflow-y: auto; }
.cm-raw.open { max-height: none; }
.cm-raw-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10.5px; color: #7c8fa3; margin: 4px 0 7px; }
.cm-raw-meta a { color: #1a72c6; text-decoration: none; }
.cm-raw-meta a:hover { text-decoration: underline; }
.cm-sub-title .cm-link { margin-left: 8px; font-size: 10px; }
.cm-sub-scope { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11px; color: #1f7a4d; background: #f0faf4; border: 1px solid #d6f0e2; border-radius: 7px; padding: 7px 9px; margin-top: 10px; }
.cm-sub-scope.off { color: #8a6a1f; background: #fdf7e8; border-color: #f0e2b8; }
.cm-sub-scope .cm-link { font-weight: 600; }
.cm-chain-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fbfdff; margin-bottom: 6px; font-size: 11.5px; }
.cm-chain-name { color: var(--ink2); flex: 0 0 120px; }
.cm-chain-val { color: var(--pri-d); font-weight: 800; font-variant-numeric: tabular-nums; }
.cm-chain-src { color: var(--muted); font-size: 10px; margin-left: auto; }
.cm-tl { display: flex; gap: 12px; font-size: 11.5px; padding: 5px 0; border-bottom: 1px dashed var(--line2); }
.cm-tl-t { color: var(--pri-d); font-weight: 700; flex: 0 0 130px; }
.cm-advice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cm-advice { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fbfdff; display: flex; flex-direction: column; gap: 4px; }
.cm-advice b { color: var(--pri-d); font-size: 11.5px; }
.cm-advice span { color: var(--ink2); font-size: 11px; line-height: 1.6; }
.cm-trace { display: flex; flex-direction: column; gap: 10px; }
.cm-trace-step { display: flex; gap: 11px; align-items: flex-start; }
.cm-trace-no { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cm-trace-body { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fbfdff; }
.cm-trace-name { font-size: 12px; font-weight: 700; color: var(--pri-d); margin-bottom: 4px; }
.cm-trace-row { font-size: 11px; color: var(--ink2); line-height: 1.7; word-break: break-word; }

/* ---------------- 预警页 ---------------- */
.cm-evi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cm-evi { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fbfdff; }
.cm-evi.miss { border-color: #f3c8c5; background: #fff5f4; }
.cm-evi-k { font-size: 10.5px; color: var(--muted); }
.cm-evi-v { font-size: 12px; font-weight: 700; color: var(--ink); margin-top: 3px; word-break: break-word; }
.cm-kv { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; background: #f7fafd; margin-bottom: 5px; font-size: 11.5px; }
.cm-kv span { color: var(--muted); width: 96px; flex: 0 0 96px; }
.cm-kv b { color: var(--ink); font-weight: 600; flex: 1; word-break: break-word; }
.cm-history-row { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border: 1px solid var(--line2); border-radius: 7px; margin-bottom: 6px; background: #fff; }
.cm-history-row b { font-size: 11.5px; color: var(--ink); }
.cm-history-row span { font-size: 10px; color: var(--muted); line-height: 1.55; }

/* ---------------- 报告页：稳定栅格，禁止固定高度与绝对定位 ---------------- */
.cm-report-toolbar { margin-bottom: 14px; }
.cm-report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.cm-report-side { min-width: 0; }
.cm-paper { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; box-shadow: var(--shadow); min-width: 0; }
.cm-paper-title { font-size: 17px; color: #123a63; margin: 0 0 6px; text-align: center; line-height: 1.4; }
.cm-paper-meta { text-align: center; font-size: 10.5px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 6px; line-height: 1.7; }
.cm-sec { margin-top: 14px; }
.cm-sec-title { font-size: 13px; color: var(--pri-d); margin: 0 0 7px; line-height: 1.5; }
.cm-sec-p { font-size: 12px; color: var(--ink2); line-height: 1.9; margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.cm-src { font-size: 10px; color: var(--muted); }
.cm-compliance { background: #eefaf2; border: 1px solid #bfe6cd; color: #1f7a4d; border-radius: 8px; padding: 10px 13px; font-size: 11px; line-height: 1.75; margin-top: 18px; word-break: break-word; }
.cm-outage { font-size: 11px; color: var(--ink2); padding: 6px 0; border-bottom: 1px dashed var(--line2); line-height: 1.6; }
.cm-outage:last-child { border-bottom: 0; }
.cm-ok-note { font-size: 11px; color: #1f7a4d; background: #eefaf2; border-radius: 7px; padding: 8px 10px; line-height: 1.6; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .cm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-kpi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-report-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cm-map-below { grid-template-columns: 1fr; }
  .cm-table-head { display: none; }
  .cm-evt-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .cm-kpi-grid, .cm-kpi-grid-4 { grid-template-columns: 1fr; }
  .cm-paper { padding: 16px; }
  .cm-advice-grid, .cm-evi-grid, .cm-health { grid-template-columns: 1fr; }
}

/* ---------------- 事件卡片关键项（可点击下钻） ---------------- */
.cm-evt-main { min-width: 0; }
.cm-evt-keys { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cm-evt-keys .badge { font-weight: 600; }
.cm-link { cursor: pointer; color: var(--pri-d); text-decoration: none; transition: color .15s; }
.cm-link:hover { color: var(--pri-l); text-decoration: underline; }
.cm-borrowed{display:block;margin-top:6px;font-size:12px}

/* ================= 事件驱动晨报：矢量态势与推演链 ================= */
.cm-brief { margin-top: 14px; }
.cm-brief-hero { display: grid; grid-template-columns: minmax(0, 1fr) 178px; gap: 18px; align-items: center; background: linear-gradient(135deg, #f7fafd, #edf4fb); border: 1px solid #dbe6f1; border-radius: 10px; padding: 17px 19px; }
.cm-brief-hero-main { min-width: 0; }
.cm-brief-kicker { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 10.5px; color: #5b7189; }
.cm-brief-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cm-brief-headline { font-size: 20px; line-height: 1.45; color: #123a63; margin: 8px 0 6px; font-weight: 700; word-break: break-word; }
.cm-brief-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 10.5px; color: #6b7f93; }
.cm-brief-summary { font-size: 12px; line-height: 1.8; color: #3b4f63; margin: 9px 0 7px; word-break: break-word; }
.cm-brief-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cm-brief-chip { font-size: 10.5px; background: #e8f1fa; color: #1a5c96; border-radius: 999px; padding: 2px 9px; }
.cm-brief-judge { font-size: 11.5px; line-height: 1.75; color: #1f5d8c; background: #eef6fd; border-left: 3px solid #1a72c6; padding: 8px 11px; margin: 10px 0 0; border-radius: 0 6px 6px 0; }
.cm-brief-gauge { text-align: center; border-left: 1px dashed #cfdcea; padding-left: 14px; }
.cm-brief-gauge svg { width: 132px; height: auto; display: block; margin: 0 auto; }
.cm-gauge-track { fill: none; stroke: #dce7f2; stroke-width: 9; stroke-linecap: round; }
.cm-gauge-fill { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.cm-gauge-val { font-size: 27px; font-weight: 700; line-height: 1; margin-top: -21px; }
.cm-gauge-label { font-size: 10.5px; color: #5b7189; margin-top: 5px; }
.cm-gauge-delta { font-size: 10px; color: #8798aa; margin-top: 3px; }

.cm-brief-timeline { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; }
.cm-brief-tl { flex: 0 0 196px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 2px 7px; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.cm-brief-tl i { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; grid-row: span 3; }
.cm-brief-tl b { font-size: 10.5px; color: #5b7189; font-weight: 600; }
.cm-brief-tl span { font-size: 11.5px; color: #22384d; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-brief-tl em { font-style: normal; font-size: 10px; color: #8798aa; }
.cm-brief-tl:hover, .cm-brief-tl.on { border-color: #1a72c6; box-shadow: 0 0 0 2px rgba(26, 114, 198, .10); }

.cm-brief-block { margin-top: 16px; border-top: 1px solid #eef2f7; padding-top: 13px; }
.cm-brief-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cm-brief-h h3 { font-size: 13px; color: #123a63; margin: 0; }
.cm-brief-h > span { font-size: 10px; color: #8798aa; }
.cm-brief-flow { width: 100%; height: auto; display: block; margin: 2px 0; }
.cm-flow-box { fill: #f7fafd; stroke: #dbe6f1; }
.cm-flow-label { font-size: 11px; fill: #5b7189; text-anchor: middle; }
.cm-flow-val { font-size: 21px; font-weight: 700; fill: #123a63; text-anchor: middle; }
.cm-flow-unit { font-size: 9.5px; fill: #8798aa; text-anchor: middle; }
.cm-flow-arrow { stroke: #9db4cb; stroke-width: 2; }
.cm-flow-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 12px; margin-top: 2px; }
.cm-flow-notes span { font-size: 10px; color: #7c8fa3; line-height: 1.55; }
.cm-flow-notes b { color: #4a6178; font-weight: 600; margin-right: 3px; }
.cm-brief-value { font-size: 11.5px; line-height: 1.8; color: #334a60; background: #f6f9fc; border-radius: 7px; padding: 8px 11px; margin: 8px 0 0; }

.cm-brief-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.cm-brief-map-actions { display: flex; gap: 6px; }
.cm-brief-map { width: 100%; height: auto; display: block; background: #f3f7fb; border: 1px solid #dbe6f1; border-radius: 8px; }
.cm-land { fill: #e3ebf3; stroke: #c8d6e4; stroke-width: .6; vector-effect: non-scaling-stroke; }
.cm-brief-link { fill: none; stroke-width: 1.2; stroke-dasharray: 4 3; opacity: .55; vector-effect: non-scaling-stroke; }
.cm-brief-marker { cursor: pointer; outline: none; }
.cm-brief-marker:focus circle { stroke: #123a63; stroke-width: 1.6; }
.cm-brief-marker:hover circle { filter: brightness(1.08); }
.cm-brief-pulse { fill: none; stroke-width: 1.4; opacity: .65; animation: cm-brief-pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes cm-brief-pulse {
  0% { transform: scale(.8); opacity: .75; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .cm-brief-pulse { animation: none; opacity: .35; } }
.cm-brief-map-label { font-size: 9px; fill: #33475b; paint-order: stroke; stroke: #fff; stroke-width: 2.4px; stroke-linejoin: round; pointer-events: none; }
.cm-brief-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 9.5px; color: #6b7f93; padding: 7px 0 0; }
.cm-brief-legend span { display: inline-flex; align-items: center; gap: 4px; }
.lg-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lg-ring { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #5b7189; display: inline-block; }
.lg-line { width: 14px; border-top: 1.5px dashed #8aa0b8; display: inline-block; }
.cm-brief-map-detail { margin-top: 7px; border: 1px solid #e3ecf5; background: #f8fbfe; border-radius: 7px; padding: 7px 9px; font-size: 10.5px; color: #4a6178; display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center; }
.cm-brief-map-detail b { color: #123a63; font-size: 11.5px; }
.cm-brief-map-detail.muted { color: #8798aa; display: block; }

.cm-impact-row { padding: 7px 0 8px; border-bottom: 1px dashed var(--line2); cursor:pointer; border-radius:5px; }
.cm-impact-row:hover, .cm-impact-row:focus-visible { background:#f6faff; }
.cm-dash .bar-row{cursor:pointer;border-radius:6px;padding:2px 4px;margin-left:-4px;margin-right:-4px}
.cm-dash .bar-row:hover,.cm-dash .bar-row:focus-visible{background:#f6faff}
.cm-impact-row:last-child { border-bottom: 0; }
.cm-impact-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cm-impact-top b { font-size: 11.5px; color: #22384d; }
.cm-impact-top span { font-size: 13px; font-weight: 700; color: #c0392b; }
.cm-impact-bar { height: 5px; background: #eef2f7; border-radius: 3px; overflow: hidden; margin: 4px 0; }
.cm-impact-bar i { display: block; height: 100%; border-radius: 3px; transition: width .5s ease; }
.cm-impact-meta { font-size: 9.5px; color: #8798aa; line-height: 1.5; }

.cm-ded { border-top: 1px dashed var(--line2); padding: 11px 0 9px; }
.cm-ded:first-of-type { border-top: 0; padding-top: 3px; }
.cm-ded-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-ded-head b { font-size: 12px; color: #123a63; }
.cm-ded-note { font-size: 10px; color: #8798aa; }
.cm-ded-chain { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 9px 0 3px; }
.cm-ded-node { min-width: 132px; border: 1px solid #dbe6f1; border-radius: 8px; padding: 7px 9px; background: #f8fbfe; display: flex; flex-direction: column; gap: 2px; }
.cm-ded-node.root { background: #123a63; color: #fff; border-color: #123a63; justify-content: center; font-weight: 600; font-size: 11.5px; }
.cm-ded-node b { font-size: 11.5px; color: #22384d; }
.cm-ded-node.root b { color: #fff; }
.cm-ded-prob { font-size: 12px; color: #c0392b; font-weight: 700; }
.cm-ded-meta { font-size: 9.5px; color: #7c8fa3; }
.cm-ded-arrow { display: flex; align-items: center; color: #9db4cb; font-weight: 700; }
.cm-ded-support { font-size: 10.5px; color: #1f7a4d; line-height: 1.65; background: #f0faf4; border-radius: 6px; padding: 6px 9px; margin-top: 4px; }
.cm-ded-support.muted { color: #8798aa; background: #f6f8fa; }
.cm-ded-click { cursor: pointer; border-radius: 8px; padding-left: 8px; padding-right: 8px; transition: background-color .18s ease, box-shadow .18s ease; }
.cm-ded-click:hover { background: #f5fbff; box-shadow: inset 2px 0 0 #2f6fab; }
.cm-ded-click:focus-visible { outline: 2px solid #2f6fab; outline-offset: 2px; }
.cm-ded-go { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #2f6fab; }
.cm-ded-click:hover .cm-ded-go { text-decoration: underline; }
.cm-ded-progress { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cm-ded-progress-k { font-size: 9.5px; color: #7c8fa3; letter-spacing: .04em; }
.cm-ded-steps { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cm-ded-steps i { font-style: normal; font-size: 10px; color: #2f6fab; background: #eaf3fc; border: 1px solid #cfe2f5; border-radius: 999px; padding: 1px 7px; }
.cm-ded-steps em { font-style: normal; font-size: 10px; color: #9db4cb; }
.cm-ded-range { position: relative; display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #e7eef6; overflow: hidden; }
.cm-ded-range i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: #e8802f; }

.cm-brief-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cm-action { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fbfdff; min-width: 0; }
.cm-action-top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; flex-wrap: wrap; }
.cm-action-ico { width: 17px; height: 17px; fill: none; stroke: #1a72c6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.cm-action-top b { font-size: 11.5px; color: #123a63; }
.cm-action p { font-size: 11px; color: #3b4f63; line-height: 1.7; margin: 0; word-break: break-word; }
.cm-action-src { font-size: 9.5px; color: #8798aa; margin-top: 5px; line-height: 1.5; }

.cm-gov-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cm-gov { border: 1px solid #e3ecf5; background: #f8fbfe; border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-gov span { font-size: 9.5px; color: #7c8fa3; }
.cm-gov b { font-size: 17px; color: #123a63; line-height: 1.2; }
.cm-gov em { font-style: normal; font-size: 9px; color: #8798aa; line-height: 1.45; }
.cm-brief-rule { font-size: 10.5px; color: #1f7a4d; background: #f0faf4; border-radius: 6px; padding: 7px 10px; margin: 9px 0 0; line-height: 1.65; }
.cm-brief-manual { margin-top: 14px; font-size: 10.5px; color: #8a5a00; background: #fff8e6; border: 1px solid #f0dcae; border-radius: 7px; padding: 8px 11px; line-height: 1.65; }
.cm-brief-text { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: #fcfdff; }
.cm-brief-text summary { cursor: pointer; font-size: 11.5px; color: #1a72c6; }
.cm-brief-text .cm-sec { margin-top: 10px; }

@media (max-width: 1180px) {
  .cm-brief-grid { grid-template-columns: 1fr; }
  .cm-gov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-flow-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cm-brief-hero { grid-template-columns: 1fr; }
  .cm-brief-gauge { border-left: 0; border-top: 1px dashed #cfdcea; padding: 10px 0 0; }
  .cm-brief-actions { grid-template-columns: 1fr; }
  .cm-flow-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cm-brief-headline { font-size: 17px; }
  .cm-gov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-brief-hero { padding: 13px; }
}
/* 报期日期条与事件预警、弹窗化功能入口 */
.cm-report-solo { grid-template-columns: minmax(0, 1fr); }
.cm-report-dates { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-top: 11px; margin-top: 11px; border-top: 1px dashed var(--line2); }
.cm-report-dates-label { flex: 0 0 auto; font-size: 10px; color: #8798aa; margin-right: 2px; }
.cm-report-date { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; cursor: pointer; display: flex; align-items: baseline; gap: 5px; color: #22384d; font: inherit; transition: border-color .15s, background .15s, color .15s; }
.cm-report-date b { font-size: 11.5px; font-weight: 600; }
.cm-report-date em { font-style: normal; font-size: 9.5px; color: #8798aa; }
.cm-report-date:hover { border-color: #1a72c6; }
.cm-report-date.on { background: #123a63; border-color: #123a63; color: #fff; }
.cm-report-date.on em { color: #cfe3f5; }
.cm-report-date.today:not(.on) { border-color: #9dc3e6; }
.cm-report-date.off { color: #a9b6c4; background: #f7f9fb; cursor: not-allowed; }
.cm-report-date.off em { color: #b9c4cf; }

.cm-alert-list { display: grid; gap: 8px; }
.cm-alert-row { border: 1px solid var(--line); border-left: 4px solid #dfb53c; border-radius: 8px; padding: 9px 12px; background: #fcfdff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cm-alert-row:hover { box-shadow: 0 2px 10px rgba(11, 79, 138, .08); }
.cm-alert-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-alert-top b { font-size: 12px; color: #123a63; line-height: 1.5; }
.cm-alert-time { margin-left: auto; font-size: 9.5px; color: #8798aa; }
.cm-alert-meta { font-size: 10px; color: #5b7189; line-height: 1.6; margin-top: 3px; }
.cm-alert-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.cm-alert-advice { font-size: 10px; color: #1f7a4d; }
.cm-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 60vh; overflow: auto; }
.cm-history-list .cm-history-card { margin: 0; }
@media (max-width: 640px) { .cm-history-list { grid-template-columns: 1fr; } }

/* 首页事件驱动改造：牵引事件/预警/推演/影响/建议 */
.cm-dash-hero{margin-bottom:12px}
.cm-dash-hero .cm-brief-headline{font-size:22px}
.cm-dash-hero .row.tight{margin-top:10px}
.cm-dash-actions{display:grid;gap:8px}
.cm-dash-actions .cm-action{padding:8px 10px}
.cm-dash-actions .cm-action p{font-size:10.5px}
.cm-dash-bg{padding:0;overflow:hidden}
.cm-dash-bg>summary{list-style:none;cursor:pointer;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:600;color:#123a63}
.cm-dash-bg>summary::-webkit-details-marker{display:none}
.cm-dash-bg>summary:after{content:'＋';font-size:13px;color:#1a72c6}
.cm-dash-bg[open]>summary:after{content:'－'}
.cm-dash-bg>summary .card-note{font-weight:400;margin-left:auto}
.cm-dash-bg> .cm-kpi-grid,.cm-dash-bg> .grid,.cm-dash-bg> .card{margin-left:16px;margin-right:16px}
.cm-dash-bg> .grid:last-child{margin-bottom:16px}
@media (max-width:900px){.cm-dash-hero .cm-brief-headline{font-size:19px}}

/* ---------------- 预警中心：触发规则与四维建议一览 ---------------- */
.cm-alert-rulebar { display: flex; gap: 10px; align-items: baseline; border: 1px solid #f0e2b8; background: #fffaf0; border-radius: 8px; padding: 8px 11px; margin: 0 0 12px; font-size: 11px; color: #7a5a1f; line-height: 1.7; }
.cm-alert-rulebar b { flex: 0 0 auto; color: #8a5a12; }
.cm-alert-trigger { margin-top: 6px; font-size: 10px; color: #5b7189; background: #f7fafd; border-left: 2px solid #e8802f; padding: 4px 7px; border-radius: 0 5px 5px 0; line-height: 1.6; }
.cm-alert-trigger-k { display: inline-block; margin-right: 5px; color: #c96a1c; font-weight: 700; }
.cm-alert-trigger em { font-style: normal; color: #9db4cb; }
.cm-alert-trigger-detail { border: 1px solid #f0e2b8; background: #fffaf0; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-size: 11px; color: #5b7189; line-height: 1.7; }
.cm-alert-trigger-detail b { color: #8a5a12; margin-right: 6px; }
.ah-list { margin: 3px 0 0; padding-left: 15px; font-size: 10.5px; line-height: 1.7; color: #4a6178; }
.ah-list li { margin-bottom: 2px; }

/* ---------------- 事件详情：后验概率来源 ---------------- */
.cm-prob-formula { border: 1px solid #dbe8f4; background: #f7fbff; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 10.5px; color: #4a6178; line-height: 1.7; }
.cm-prob-formula code { display: block; font-family: inherit; font-weight: 700; color: #123a63; font-size: 11px; margin-bottom: 4px; }
.cm-prob-meta { display: flex; gap: 10px; flex-wrap: wrap; color: #5b7189; }
.cm-prob-meta span { background: #fff; border: 1px solid #e3ecf5; border-radius: 999px; padding: 1px 8px; }
.cm-chain-head { display: grid; grid-template-columns: 1fr 90px 1.2fr; gap: 8px; font-size: 9.5px; color: #8aa0b5; padding: 3px 0; border-bottom: 1px solid #eef3f8; }
.cm-chain-head span:last-child { text-align: right; }

/* ---------------- 历史报告：新版式重排（无结构化载荷） ---------------- */
.cm-brief-legacy .cm-legacy-hero { background: linear-gradient(90deg, #f5f9fd, #ffffff); }
.cm-legacy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-legacy-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #eef3f8; font-size: 11px; line-height: 1.75; color: #33475b; }
.cm-legacy-list li:last-child { border-bottom: 0; }
.cm-legacy-list li em { font-style: normal; color: #8aa0b5; font-size: 9px; white-space: nowrap; }

/* ---------------- 风险总览：CRI + 地图缩略 + 最新预警 + 节点卡 ---------------- */
.cm-dash-top{display:grid;grid-template-columns:300px minmax(0,1fr) 340px;gap:14px;margin-bottom:12px;align-items:stretch}
.cm-dash-top>.card{margin-bottom:0;display:flex;flex-direction:column;min-width:0}
.cm-dash-top>.cm-dash-map{display:grid;grid-template-rows:auto auto minmax(0,1fr);align-content:stretch;align-self:stretch}
.cm-dash-top .card-head{margin-bottom:6px}
.cm-dash-gauge{display:flex;flex-direction:column;align-items:center;padding:2px 0 6px}
.cm-dash-gauge svg{width:160px;height:99px}
.cm-dash-kv{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:4px 0 10px}
.cm-dash-kv>div{border:1px solid #e6eef7;border-radius:7px;background:#fbfdff;padding:5px 8px}
.cm-dash-kv span{display:block;font-size:9.5px;color:#8aa0b5}
.cm-dash-kv b{font-size:15px;color:#123a63;font-variant-numeric:tabular-nums}
.cm-dash-top .btn{margin-top:auto;align-self:flex-start}
.cm-dash-map{cursor:pointer;transition:border-color .18s,box-shadow .18s}
.cm-dash-map:hover{border-color:#9cc7ee;box-shadow:0 4px 16px rgba(16,54,92,.10)}
.cm-dash-world{width:100%;height:auto;min-height:0;aspect-ratio:1000 / 460;display:block;background:radial-gradient(circle at 60% 30%,#f2f9ff,#fbfdff 70%);border-radius:8px}
.cm-dash-land{fill:#e4eef8;stroke:#c7dcee;stroke-width:.8}
.cm-dash-dot{stroke:#fff;stroke-width:1.5}
.cm-dash-legend{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:10px;color:#8aa0b5;margin-top:6px}
.cm-dash-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:3px;vertical-align:0}
.cm-dash-map-go{margin-left:auto;color:var(--pri);font-weight:700}
.cm-dash-alert-list{max-height:212px;overflow:auto}
.cm-dash-alerts .cm-alert-row{padding:6px 8px;margin-bottom:5px}
.cm-dash-alerts .btn{margin-top:auto;align-self:flex-start}
.cm-collect-entry{display:flex;align-items:center;gap:18px;padding:13px 18px;cursor:pointer;border:1px solid #dbeafe;background:linear-gradient(90deg,#eff6ff,#fbfdff);transition:border-color .18s,box-shadow .18s}
.cm-collect-entry:hover{border-color:#3b82f6;box-shadow:0 5px 16px rgba(16,54,92,.08)}
.cm-collect-entry-main{flex:1;min-width:0}
.cm-collect-entry-title{font-weight:600;font-size:15px;color:#1d4ed8}
.cm-collect-entry-kpi{display:flex;gap:22px}
.cm-collect-entry-kpi>div{display:flex;flex-direction:column;align-items:center}
.cm-collect-entry-kpi b{font-size:20px;color:#0f172a}
.cm-collect-entry-kpi span{font-size:11px;color:#64748b}
.cm-collect-entry-go{color:#3b82f6;font-size:13px;white-space:nowrap}
.cm-collect-entry .ml6{margin-left:6px}
@media (max-width:760px){.cm-collect-entry{flex-wrap:wrap}.cm-collect-entry-kpi{gap:16px}}
.cm-node-section{margin-bottom:14px}
.cm-node-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.cm-node-card{border:1px solid #e6eef7;border-radius:9px;padding:9px 11px;background:#fbfdff;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.cm-node-card:hover{border-color:#9cc7ee;box-shadow:0 5px 16px rgba(16,54,92,.08);transform:translateY(-1px)}
.cm-node-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.cm-node-top b{font-size:12px;color:#1d3449;line-height:1.4}
.cm-node-score{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}
.cm-node-meta{font-size:9.5px;color:#8aa0b5;margin:2px 0 6px;line-height:1.5}
.cm-node-bar{height:5px;border-radius:3px;background:#eef3f8;overflow:hidden}
.cm-node-bar i{display:block;height:100%;border-radius:3px;transition:width .5s ease}
.cm-node-foot{display:flex;justify-content:space-between;gap:8px;font-size:9.5px;color:#8aa0b5;margin-top:5px}
.cm-node-foot span:last-child{color:var(--pri)}
@media (max-width:1280px){.cm-dash-top{grid-template-columns:1fr 1fr}.cm-dash-alerts{grid-column:1 / -1}.cm-dash-alert-list{max-height:180px}}
@media (max-width:900px){.cm-dash-top{grid-template-columns:1fr}}

/* ---------------- 事件监测：卡片 / 表格双视图 ---------------- */
.cm-view-toggle{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-left:auto}
.cm-view-toggle button{border:0;background:#fff;color:#6b8299;font-size:11px;padding:5px 11px;cursor:pointer;transition:background-color .16s,color .16s}
.cm-view-toggle button+button{border-left:1px solid var(--line)}
.cm-view-toggle button.on{background:var(--pri-x);color:var(--pri-d);font-weight:700}
.cm-evt-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:11px;margin-top:2px}
.cm-evt-card{border:1px solid #e6eef7;border-radius:10px;background:#fff;padding:11px 13px;display:flex;flex-direction:column;transition:border-color .18s,box-shadow .18s}
.cm-evt-card:hover{border-color:#b8d6f0;box-shadow:0 5px 18px rgba(16,54,92,.08)}
.cm-evt-card-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cm-evt-card-time{margin-left:auto;font-size:9.5px;color:#8aa0b5}
.cm-evt-card-title{font-size:13px;line-height:1.5;color:#1d3449;margin:6px 0 4px;cursor:pointer}
.cm-evt-card-title:hover{color:var(--pri)}
.cm-evt-card-sum{font-size:11px;line-height:1.7;color:#5b7189;margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cm-evt-card-quant{display:flex;gap:10px;flex-wrap:wrap;font-size:10px;color:#7c8fa3;background:#f8fbfe;border:1px dashed #dbe8f4;border-radius:7px;padding:5px 8px;margin-bottom:6px}
.cm-evt-card-quant b{color:#0d5199;font-variant-numeric:tabular-nums}
.cm-evt-card-src{cursor:pointer}
.cm-evt-card-src:hover{color:var(--pri)}
.cm-evt-card-nodes{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:6px}
.cm-evt-card-nodes a{font-size:9.5px;color:#4a6580;border:1px solid #dbe8f4;border-radius:10px;padding:1px 7px;cursor:pointer;transition:border-color .16s,color .16s}
.cm-evt-card-nodes a:hover{border-color:var(--pri-l);color:var(--pri)}
.cm-evt-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:6px}
@media (max-width:900px){.cm-evt-cards{grid-template-columns:1fr}}

/* ---- P0 补齐：CRI 排行/驱动、预警趋势、个人标记、透视表、专题看板 ---- */
.cm-trend-chips{display:inline-flex;gap:4px;margin-right:8px}
.cm-rank-row{display:flex;justify-content:space-between;gap:10px;padding:4px 2px;border-bottom:1px dashed #f0f4f9;font-size:11px;color:#33475b}
.cm-rank-row>b{font-variant-numeric:tabular-nums;color:#123a63}
.cm-rank-row>b.up{color:#d94b45}
.cm-rank-row>b.down{color:#3a9d6a}
.cm-mark-ops{display:inline-flex;gap:3px;margin-left:auto}
.cm-list-item.dim{opacity:.55}
.cm-pivot-wrap{overflow-x:auto}
.cm-pivot{border-collapse:collapse;width:100%;font-size:11px}
.cm-pivot th,.cm-pivot td{border:1px solid #e3ecf5;padding:5px 8px;text-align:center;color:#33475b;white-space:nowrap}
.cm-pivot th{background:#f5f9fd;font-weight:600}
.cm-pivot td:first-child,.cm-pivot th:first-child{text-align:left;position:sticky;left:0;background:#fff}
.cm-pivot th:first-child{background:#f5f9fd}
.cm-topic-tabs{display:flex;gap:6px;flex-wrap:wrap}
.cm-chain-row{display:flex;gap:8px;align-items:flex-start;padding:7px 4px;border-bottom:1px dashed #f0f4f9}
.cm-chain-row>b{flex:0 0 20px;height:20px;border-radius:50%;background:#0b4f8a;color:#fff;font-size:10.5px;display:flex;align-items:center;justify-content:center}
.cm-chain-main>div:first-child{font-size:11.5px;font-weight:600;color:#33475b}
.cm-topic-map{height:320px;border-radius:10px;border:1px solid #e3ecf5;background:#dfe8f2}
.cm-outlook{border-top:1px dashed #e3ecf5;padding:8px 0}
.cm-outlook:first-of-type{border-top:0}
.cm-outlook-head{display:flex;align-items:center;gap:8px;margin-bottom:4px;flex-wrap:wrap}
.cm-outlook-head>b{font-size:12px;color:#123a63}
.cm-outlook-row{display:flex;gap:8px;padding:3px 0;font-size:11px;color:#4a6178;line-height:1.6}
.cm-outlook-row>span:last-child{flex:1}
.cm-outlook-row em{font-style:normal;color:#8aa0b5}
.cm-outlook-h{flex:0 0 52px;font-weight:700;color:#1f5d8c;background:#eef6fd;border:1px solid #d5e8f8;border-radius:6px;text-align:center;font-size:10px;height:18px;line-height:16px;display:inline-flex;align-items:center;justify-content:center;gap:3px}
.cm-outlook-h>i{font-style:normal;background:#0b4f8a;color:#fff;border-radius:8px;padding:0 5px;font-size:9px;line-height:14px}
.cm-pager{display:flex;align-items:center;gap:10px;justify-content:flex-end;padding:8px 2px 0}
.cm-chain-row.gap{opacity:.6}
.cm-chain-row.gap>b{background:#8aa0b5}

/* ---------------- 专题工作台：时间线为主视图 ---------------- */
.cm-topic-page{--topic-border:#dce7f1;--topic-ink:#19344a;--topic-muted:#60768a;min-width:0}
.cm-topic-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:4px 0 18px;border-bottom:1px solid var(--topic-border)}
.cm-topic-header>div{min-width:0}
.cm-topic-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;color:var(--pri);margin-bottom:4px}
.cm-topic-header h1{font-size:24px;line-height:1.25;color:var(--topic-ink);margin:0 0 7px;font-weight:750}
.cm-topic-header p{max-width:780px;font-size:12px;line-height:1.7;color:var(--topic-muted);margin:0}
.cm-topic-header>.btn{flex:0 0 auto;min-height:36px}
.cm-topic-shell{display:grid;grid-template-columns:236px minmax(0,1fr);gap:20px;padding-top:18px;align-items:start}
.cm-topic-rail{min-width:0;border:1px solid var(--topic-border);background:#f8fbfe;border-radius:10px;padding:12px;position:sticky;top:12px;max-height:calc(100vh - 36px);display:flex;flex-direction:column}
.cm-topic-search{display:flex;flex-direction:column;gap:6px;font-size:10.5px;color:var(--topic-muted);font-weight:600}
.cm-topic-search input{width:100%;min-height:34px;border:1px solid var(--topic-border);border-radius:6px;background:#fff;padding:7px 9px;color:var(--topic-ink);font:inherit}
.cm-topic-rail-head{display:flex;align-items:center;justify-content:space-between;margin:11px 1px 6px;font-size:10.5px;color:var(--topic-muted)}
.cm-topic-rail-head .icon-btn{min-width:28px;min-height:28px}
.cm-topic-item{width:100%;text-align:left;border:1px solid transparent;border-left:3px solid transparent;border-radius:7px;background:transparent;padding:10px 9px;margin:2px 0;cursor:pointer;transition:background-color .16s,border-color .16s}
.cm-topic-item:hover{background:#eef5fb}
.cm-topic-item.on{background:#fff;border-color:#cfdfed;border-left-color:var(--pri);box-shadow:0 2px 8px rgba(16,54,92,.06)}
.cm-topic-item:focus-visible,.cm-topic-cluster-head:focus-visible,.cm-topic-event:focus-visible{outline:2px solid var(--pri);outline-offset:2px}
.cm-topic-item-title{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.45;font-weight:700;color:var(--topic-ink)}
.cm-topic-item-title .cm-meta-chip{margin-left:auto}
.cm-topic-item p{font-size:10.5px;line-height:1.55;color:var(--topic-muted);margin:5px 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cm-topic-item-meta{display:flex;align-items:center;gap:9px;font-size:9.5px;color:var(--topic-muted)}
.cm-topic-item-meta .cm-stale{margin-left:auto;color:#a65d14}
.cm-topic-empty{padding:26px 8px;text-align:center;font-size:11px;color:var(--topic-muted)}
.cm-topic-rail .cm-inline-error{margin-top:8px}
.cm-topic-main{min-width:0}
.cm-topic-titlebar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.cm-topic-titlebar>div:first-child{min-width:0}
.cm-topic-titleline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cm-topic-titleline h2{font-size:21px;line-height:1.35;font-weight:750;color:var(--topic-ink);margin:0}
.cm-topic-titlebar p{font-size:11.5px;line-height:1.6;color:var(--topic-muted);margin:5px 0 0}
.cm-topic-titlebar>.right{flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end}
.cm-topic-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--topic-border);border-radius:9px;background:#fff;margin-bottom:14px;overflow:hidden}
.cm-topic-metrics>div{padding:12px 15px;border-right:1px solid var(--topic-border);display:flex;flex-direction:column;gap:3px}
.cm-topic-metrics>div:last-child{border-right:0}
.cm-topic-metrics span{font-size:10.5px;color:var(--topic-muted)}
.cm-topic-metrics strong{font-size:25px;line-height:1.15;color:var(--topic-ink);font-variant-numeric:tabular-nums}
.cm-topic-metrics small{font-size:9.5px;color:var(--topic-muted)}
.cm-topic-page .cm-topic-tabs{gap:0;border-bottom:1px solid var(--topic-border);margin-bottom:14px}
.cm-topic-page .cm-topic-tabs button{min-height:38px;border:0;border-bottom:2px solid transparent;background:transparent;padding:8px 15px;font-size:11.5px;color:var(--topic-muted);cursor:pointer}
.cm-topic-page .cm-topic-tabs button.on{border-bottom-color:var(--pri);color:var(--pri);font-weight:700}
.cm-topic-section{min-width:0}
.cm-topic-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.cm-topic-toolbar>.xs{line-height:1.6}
.cm-topic-page .seg button{min-height:30px;min-width:48px}
.cm-topic-timeline{min-width:0}
.cm-topic-bucket{display:grid;grid-template-columns:126px minmax(0,1fr);gap:12px;position:relative;padding-bottom:14px}
.cm-topic-date{padding-top:8px;color:var(--topic-muted);font-size:10.5px;line-height:1.5}
.cm-topic-date strong{display:block;color:var(--topic-ink);font-size:11px;font-weight:700}
.cm-topic-date span{display:block;margin-top:3px;font-size:9.5px}
.cm-topic-dayline{border-left:1px solid #cbddea;padding-left:18px;display:flex;flex-direction:column;gap:9px;min-width:0}
.cm-topic-event{position:relative;border:1px solid var(--topic-border);border-radius:8px;background:#fff;padding:12px 14px;cursor:pointer;transition:border-color .16s,box-shadow .16s}
.cm-topic-event:hover{border-color:#a9c6df;box-shadow:0 3px 12px rgba(16,54,92,.07)}
.cm-topic-event-mark{position:absolute;left:-23px;top:18px;width:9px;height:9px;border-radius:50%;background:#dfb53c;border:2px solid #fff;box-shadow:0 0 0 1px #cbddea}
.cm-topic-event-mark.lvl-extreme{background:#d94b45}.cm-topic-event-mark.lvl-high{background:#e8802f}.cm-topic-event-mark.lvl-low{background:#3a9d6a}
.cm-topic-event-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cm-topic-event-time{margin-left:auto;font-size:9.5px;color:var(--topic-muted);font-variant-numeric:tabular-nums}
.cm-topic-event h3{font-size:13.5px;line-height:1.55;color:var(--topic-ink);margin:7px 0 5px;font-weight:700}
.cm-topic-summary{font-size:11px;line-height:1.75;color:var(--topic-muted);margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cm-topic-event-foot{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;font-size:9.5px;line-height:1.5;color:var(--topic-muted)}
.cm-topic-event-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px;padding-top:7px;border-top:1px dashed #e5edf4;min-height:25px}
.cm-topic-event-actions .lnk,.cm-topic-event-actions a{font-size:10px}
.cm-topic-loadmore{display:flex;justify-content:center;align-items:center;min-height:54px;padding-left:138px}
.cm-topic-meta-chip,.cm-meta-chip{display:inline-flex;align-items:center;min-height:20px;border:1px solid #dce7f1;border-radius:4px;background:#f6f9fc;color:#526b81;padding:1px 6px;font-size:9px;line-height:1.4;white-space:nowrap}
.cm-topic-page .cm-meta-chip.warn{background:#fff8eb;border-color:#f0dfbc;color:#8c611d}
.cm-topic-state{padding:42px 20px;text-align:center;border:1px dashed var(--topic-border);border-radius:8px;background:#f8fbfe;color:var(--topic-muted);font-size:12px;line-height:1.7}
.cm-topic-state b{display:block;color:var(--topic-ink);margin-bottom:4px}
.cm-topic-state.error{color:#a3423d;background:#fff8f7}
.cm-inline-error{border:1px solid #efd2ce;background:#fff7f6;color:#98433d;border-radius:6px;padding:9px 10px;font-size:10.5px;line-height:1.6}
.cm-topic-section-intro{padding:0 0 12px;border-bottom:1px solid var(--topic-border);margin-bottom:12px}
.cm-topic-section-intro b{font-size:12px;color:var(--topic-ink)}
.cm-topic-section-intro p{font-size:10.5px;line-height:1.65;color:var(--topic-muted);margin:4px 0 0}
.cm-topic-cluster{border:1px solid var(--topic-border);border-radius:8px;background:#fff;margin-bottom:8px;overflow:hidden}
.cm-topic-cluster-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:10px 13px;border:0;background:#fff;text-align:left;color:var(--topic-ink);cursor:pointer}
.cm-topic-cluster-head:hover{background:#f8fbfe}
.cm-topic-cluster-head>span:first-child{min-width:0}
.cm-topic-cluster-head b{display:block;font-size:12px;line-height:1.5}
.cm-topic-cluster-head small{display:block;font-size:9.5px;line-height:1.5;color:var(--topic-muted);margin-top:3px}
.cm-topic-cluster-list{border-top:1px solid var(--topic-border);background:#f8fbfe;padding:4px 12px}
.cm-topic-cluster-list button{display:grid;grid-template-columns:130px minmax(0,1fr) auto;align-items:baseline;gap:10px;width:100%;border:0;border-bottom:1px dashed #dce7f1;background:transparent;padding:9px 2px;text-align:left;color:var(--topic-muted);font-size:10px;cursor:pointer}
.cm-topic-cluster-list button:last-child{border-bottom:0}
.cm-topic-cluster-list button:hover b{color:var(--pri)}
.cm-topic-cluster-list b{font-size:10.5px;line-height:1.5;color:var(--topic-ink)}
.cm-topic-cluster-list small{font-size:9px;white-space:nowrap}
.cm-topic-facts{margin:0}
.cm-topic-facts>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #e8eff5;font-size:11px;line-height:1.65}
.cm-topic-facts dt{color:var(--topic-muted)}
.cm-topic-facts dd{margin:0;color:var(--topic-ink);overflow-wrap:anywhere}
.cm-topic-drawer{max-width:100vw}
.cm-topic-drawer .el-drawer__body{padding:20px 22px}
.cm-topic-form{display:flex;flex-direction:column;gap:16px}
.cm-topic-form label{display:flex;flex-direction:column;gap:7px;color:var(--topic-ink);font-size:11.5px;font-weight:600}
.cm-topic-form input,.cm-topic-form textarea{width:100%;border:1px solid var(--topic-border);border-radius:6px;padding:9px 10px;background:#fff;color:var(--topic-ink);font:inherit;font-weight:400;line-height:1.6}
.cm-topic-form textarea{resize:vertical;min-height:80px}
.cm-topic-form input:focus,.cm-topic-form textarea:focus,.cm-topic-search input:focus{outline:2px solid rgba(26,114,198,.28);border-color:var(--pri)}
.cm-topic-form small{font-size:9.5px;line-height:1.55;color:var(--topic-muted);font-weight:400}
.cm-topic-form .required{color:#b3443d;margin-left:3px}
.cm-topic-form label:has(.required){display:block}
.cm-topic-form label:has(.required) input{display:block;margin-top:7px}
.cm-form-lead{margin:0;padding:10px 12px;border-left:3px solid var(--pri-l);background:#f4f9fd;font-size:11px;line-height:1.75;color:var(--topic-muted)}
.cm-topic-form-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:6px;border-top:1px solid var(--topic-border)}
.cm-topic-trace-title{padding-bottom:13px;border-bottom:1px solid var(--topic-border)}
.cm-topic-trace-title h2{font-size:19px;line-height:1.5;color:var(--topic-ink);margin:8px 0 6px}
.cm-topic-trace-title p{font-size:11.5px;line-height:1.75;color:var(--topic-muted);margin:0}
.cm-topic-trace-meta{display:flex;gap:7px 16px;flex-wrap:wrap;padding:11px 0;font-size:10px;line-height:1.6;color:var(--topic-muted)}
.cm-topic-trace-section{padding:14px 0;border-top:1px solid var(--topic-border)}
.cm-topic-trace-section h3{font-size:12px;color:var(--topic-ink);margin:0 0 9px}
.cm-topic-raw{max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f9fc;border:1px solid var(--topic-border);border-radius:7px;padding:12px;font-family:inherit;font-size:10.5px;line-height:1.75;color:#344d63;margin:0}
.cm-trace-step{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:7px 0;font-size:10.5px;line-height:1.6}
.cm-trace-step time{color:var(--topic-muted);font-variant-numeric:tabular-nums}
.cm-trace-step b{display:block;color:var(--topic-ink)}
.cm-trace-step p{margin:2px 0;color:var(--topic-muted)}
.cm-topic-report{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;border:0;border-bottom:1px dashed #dce7f1;background:transparent;padding:8px 2px;cursor:pointer}
.cm-topic-report span{font-size:9.5px;color:var(--topic-muted)}
.cm-topic-report b{font-size:10.5px;line-height:1.55;color:var(--topic-ink)}
.cm-topic-report:hover b{color:var(--pri)}
.cm-topic-alert{margin-top:7px;padding:7px 9px;border-left:3px solid #e8802f;background:#fff8eb;color:#75501d;font-size:10.5px;line-height:1.6}
.cm-topic-score{border-top:1px solid var(--topic-border);padding:12px 0}
.cm-topic-score summary{cursor:pointer;color:var(--pri);font-size:11px;font-weight:600;min-height:24px}
.cm-topic-score pre{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f9fc;border-radius:6px;padding:10px;font-size:10px;line-height:1.65;color:#344d63}
.cm-topic-page button:focus-visible,.cm-topic-page a:focus-visible,.cm-topic-drawer button:focus-visible{outline:2px solid var(--pri);outline-offset:2px}
@media (max-width:1100px){
  .cm-topic-shell{grid-template-columns:200px minmax(0,1fr);gap:14px}
  .cm-topic-titlebar{flex-direction:column}
  .cm-topic-titlebar>.right{justify-content:flex-start}
  .cm-topic-cluster-list button{grid-template-columns:110px minmax(0,1fr)}
  .cm-topic-cluster-list small{grid-column:2}
}
@media (max-width:820px){
  .cm-topic-shell{display:block;padding-top:12px}
  .cm-topic-rail{position:static;max-height:none;display:block;margin-bottom:14px;padding:10px}
  .cm-topic-rail-head{margin-top:8px}
  .cm-topic-rail>.cm-topic-item{display:inline-block;width:230px;margin-right:6px;vertical-align:top}
  .cm-topic-rail{overflow-x:auto}
  .cm-topic-metrics>div{padding:10px}
  .cm-topic-metrics strong{font-size:21px}
  .cm-topic-bucket{grid-template-columns:98px minmax(0,1fr);gap:9px}
  .cm-topic-dayline{padding-left:14px}
  .cm-topic-event-mark{left:-19px}
  .cm-topic-loadmore{padding-left:107px}
  .cm-topic-page .grid.g-1-2{grid-template-columns:1fr}
}
@media (max-width:520px){
  .cm-topic-header{display:block;padding-bottom:13px}
  .cm-topic-header h1{font-size:21px}
  .cm-topic-header>.btn{margin-top:12px;width:100%}
  .cm-topic-titleline h2{font-size:18px}
  .cm-topic-titlebar>.right{width:100%}
  .cm-topic-metrics{grid-template-columns:1fr 1fr}
  .cm-topic-metrics>div:nth-child(2){border-right:0}
  .cm-topic-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--topic-border)}
  .cm-topic-page .cm-topic-tabs{overflow-x:auto;flex-wrap:nowrap}
  .cm-topic-page .cm-topic-tabs button{flex:0 0 auto;padding:8px 11px;white-space:nowrap}
  .cm-topic-bucket{display:block;padding-bottom:15px}
  .cm-topic-date{display:flex;align-items:baseline;gap:8px;padding:0 0 7px}
  .cm-topic-date span{margin:0}
  .cm-topic-dayline{padding-left:14px}
  .cm-topic-event{padding:10px}
  .cm-topic-event-time{width:100%;margin-left:0}
  .cm-topic-event-foot{gap:4px 10px}
  .cm-topic-loadmore{padding-left:14px}
  .cm-topic-cluster-list button{display:flex;flex-direction:column;gap:3px}
  .cm-topic-facts>div{grid-template-columns:86px minmax(0,1fr)}
  .cm-topic-drawer .el-drawer__body{padding:16px}
  .cm-form-row{grid-template-columns:1fr}
  .cm-trace-step{grid-template-columns:1fr;gap:2px}
  .cm-topic-map{height:260px}
}
@media (prefers-reduced-motion:reduce){
  .cm-topic-item,.cm-topic-event,.cm-topic-cluster-head{transition:none}
}

.cm-dash-ant .cm-ant-step { padding: 2px 0; border-left: 2px solid #1677b3; padding-left: 8px; margin: 2px 0; }
.cm-dash-ant .cm-ant-know { padding: 2px 0; }
