/* ==========================================================================
   架构抽屉的补充层（只加不改 feat-console.css）
   1. 全源接入：顶部「汇流结果条」——四个来源逐个点亮 → 统一接入层 → 资产 / 风险 / 告警数字累加
   ========================================================================== */

.ingest-triple-stage .im {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #dfe7fb;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7faff, #f1f6ff);
}

.ingest-triple-stage .im-srcs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  flex: 0 1 196px;
  min-width: 0;
}

.ingest-triple-stage .im-src {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 10.5px;
  color: #8592ad;
  transition: color 0.3s;
}
.ingest-triple-stage .im-src i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3cde6;
  transition: background 0.3s, box-shadow 0.3s;
}
.ingest-triple-stage .im-src b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.ingest-triple-stage .im-src.is-on { color: #0f1b3d; }
.ingest-triple-stage .im-src.is-on i {
  background: #12a150;
  box-shadow: 0 0 0 3px rgba(18, 161, 80, 0.16);
}

.ingest-triple-stage .im-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  color: #b6c3e2;
  transition: color 0.3s;
}
.ingest-triple-stage .im-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ingest-triple-stage .im.is-live .im-arrow { color: #003fec; }

.ingest-triple-stage .im-hub {
  position: relative;
  flex: 1 1 110px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 8px 10px;
  border-radius: 9px;
  background: #e4ebfb;
  color: #6f82b3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  transition: background 0.4s, color 0.4s;
}
.ingest-triple-stage .im-hub span,
.ingest-triple-stage .im-hub em { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ingest-triple-stage .im-hub em { font-style: normal; font-size: 9px; font-weight: 600; opacity: 0.85; }
.ingest-triple-stage .im-hub-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(0, 63, 236, 0.12);
}
.ingest-triple-stage .im-hub-bar u {
  display: block;
  width: 0;
  height: 100%;
  background: #003fec;
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ingest-triple-stage .im.is-live .im-hub { background: #003fec; color: #fff; }
.ingest-triple-stage .im.is-live .im-hub-bar { background: rgba(255, 255, 255, 0.25); }
.ingest-triple-stage .im.is-live .im-hub-bar u { background: #fff; }
.ingest-triple-stage .im.is-done .im-hub { animation: im-hub 1.5s ease-out 2; }

.ingest-triple-stage .im-outs { display: flex; flex: none; gap: 6px; }
.ingest-triple-stage .im-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 4px 8px;
  border: 1px solid #e3e9f6;
  border-radius: 8px;
  background: #fff;
  line-height: 1.15;
  transition: background 0.4s, border-color 0.4s;
}
.ingest-triple-stage .im-out b {
  font-size: 15px;
  font-weight: 800;
  color: #aab5cf;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.ingest-triple-stage .im-out em { font-style: normal; font-size: 9.5px; font-weight: 600; color: #8592ad; }
.ingest-triple-stage .im.is-live .im-out--asset { background: #f1f5ff; border-color: #cfe0ff; }
.ingest-triple-stage .im.is-live .im-out--risk { background: #fff8ec; border-color: #f5dfb8; }
.ingest-triple-stage .im.is-live .im-out--alert { background: #fff3f2; border-color: #f5c9c4; }
.ingest-triple-stage .im.is-live .im-out--asset b { color: #003fec; }
.ingest-triple-stage .im.is-live .im-out--risk b { color: #a2650a; }
.ingest-triple-stage .im.is-live .im-out--alert b { color: #c2372a; }
.ingest-triple-stage .im-out.is-pop b { animation: im-pop 0.4s ease; display: inline-block; }

@keyframes im-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@keyframes im-hub {
  0% { box-shadow: 0 0 0 0 rgba(0, 63, 236, 0.4); }
  100% { box-shadow: 0 0 0 9px rgba(0, 63, 236, 0); }
}

@media (max-width: 720px) {
  .ingest-triple-stage .im { flex-wrap: wrap; row-gap: 6px; }
  .ingest-triple-stage .im-srcs { flex: 1 1 100%; }
  .ingest-triple-stage .im-arrow { display: none; }
  .ingest-triple-stage .im-hub { flex: 1 1 100%; }
  .ingest-triple-stage .im-outs { flex: 1 1 100%; }
  .ingest-triple-stage .im-out { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ingest-triple-stage .im *, .ingest-triple-stage .im { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   2. 告警降噪：漏斗条（原始 → 归并 → 高危 → 闭环率）
   ========================================================================== */
.alert-stage .dn-fun {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  margin: 0 0 8px;
  padding: 9px 10px;
  border: 1px solid #dfe7fb;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7faff, #f1f6ff);
}
.dn-st {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 4px 8px;
  opacity: 0.45;
  transition: opacity 0.4s;
}
.dn-st.is-on { opacity: 1; }
.dn-st b {
  font-size: 19px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f1b3d;
  font-variant-numeric: tabular-nums;
}
.dn-st em { font-style: normal; font-size: 10px; font-weight: 600; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-bar {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 4px;
  border-radius: 4px;
  background: #e1e8f7;
  overflow: hidden;
}
.dn-bar u { display: block; height: 100%; width: 100%; border-radius: inherit; background: #9db3e8; }
.dn-st--fp .dn-bar u { background: #003fec; }
.dn-st--keep b { color: #c2372a; }
.dn-st--keep .dn-bar u { background: #c2372a; }
.dn-st--fp:not(.is-on) .dn-bar u, .dn-st--keep:not(.is-on) .dn-bar u { width: 0; }

/* 数量条：归并那一格从“满”融化到 18%，高危那一格从 0 长到 4% */
.dn-fun.is-p1 .dn-st--fp .dn-bar u { animation: dn-melt 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.dn-fun.is-p2 .dn-st--fp .dn-bar u { width: 18%; }
.dn-fun.is-p2 .dn-st--keep .dn-bar u { animation: dn-grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes dn-melt { from { width: 100%; } to { width: 18%; } }
@keyframes dn-grow { from { width: 0; } to { width: 6%; } }

.dn-arr {
  flex: none;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 52px;
  color: #b6c3e2;
  transition: color 0.3s;
}
.dn-arr em { font-style: normal; font-size: 9px; font-weight: 600; white-space: nowrap; }
.dn-arr svg { width: 100%; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dn-arr.is-on { color: #003fec; }

.dn-ai {
  flex: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 74px;
  padding: 2px 10px;
  border-left: 1px dashed #cdd8f0;
  opacity: 0.45;
  transition: opacity 0.4s;
}
.dn-ai.is-on { opacity: 1; }
.dn-ai b { font-size: 19px; font-weight: 800; line-height: 1.1; color: #0b7a43; font-variant-numeric: tabular-nums; }
.dn-ai sup { font-size: 10px; font-weight: 700; color: #0b7a43; }
.dn-ai em { font-style: normal; font-size: 10px; font-weight: 600; color: #64748b; white-space: nowrap; }

@media (max-width: 720px) {
  .alert-stage .dn-fun { flex-wrap: wrap; row-gap: 8px; }
  .dn-arr { display: none; }
  .dn-st { flex: 1 1 28%; }
  .dn-ai { flex: 1 1 100%; flex-direction: row; align-items: baseline; gap: 8px; border-left: 0; border-top: 1px dashed #cdd8f0; padding-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .dn-fun *, .dn-fun { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   3. AI 解析适配：日志字段着色 + 已映射值 + event.json 逐行填满
   ========================================================================== */
.parse-log-line code .pt { border-radius: 3px; padding: 0 2px; transition: background 0.35s, color 0.35s, box-shadow 0.35s; }
.parse-log-line code .pt.is-lit.pt--host { background: rgba(0, 63, 236, 0.22); color: #cfe0ff; }
.parse-log-line code .pt.is-lit.pt--path { background: rgba(124, 92, 240, 0.30); color: #e2d9ff; }
.parse-log-line code .pt.is-lit.pt--action { background: rgba(245, 158, 11, 0.28); color: #ffe3b0; }
.parse-log-line code .pt.is-bad {
  background: rgba(239, 68, 68, 0.2);
  color: #ffb4ab;
  text-decoration: underline wavy #ef4444;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.parse-log-line code .pt.is-ok { background: rgba(34, 197, 94, 0.25); color: #b9f5cf; text-decoration: none; }

.parse-fld-st .pv {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef3ff;
  color: #2a4bb0;
  font-size: 0.9em;
  font-weight: 600;
  animation: pj-in 0.4s ease both;
}
.parse-fld[data-fld="path"] .pv { background: #f1ecff; color: #5a3fc7; }
.parse-fld[data-fld="action"] .pv { background: #fff3dd; color: #94590a; }

.parse-json {
  margin-top: 10px;
  border: 1px solid #e3e9f6;
  border-radius: 9px;
  background: #fbfcff;
  overflow: hidden;
}
.pj-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #eef2fa;
  background: #f4f7ff;
  font-size: 10.5px;
  color: #64748b;
}
.pj-hd code { font-weight: 700; color: #2a4bb0; }
.pj-hd span { font-variant-numeric: tabular-nums; font-weight: 700; }
.pj-bd { padding: 8px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.75; }
.pj-l { display: flex; gap: 5px; align-items: baseline; border-radius: 4px; transition: background 0.4s; }
.pj-k { font-style: normal; color: #5a3fc7; }
.pj-c { color: #94a3b8; }
.pj-v { font-weight: 600; color: #b6c0d6; }
.pj-l.is-lit .pj-v { color: #0b7a43; }
.pj-l[data-pj="severity"].is-lit .pj-v { color: #c2372a; }
.pj-l.is-new { animation: pj-flash 1.1s ease both; }
.pj-l.is-new .pj-v { animation: pj-in 0.45s ease both; }
@keyframes pj-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes pj-flash { 0% { background: rgba(0, 63, 236, 0.16); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .pj-l, .pj-l *, .parse-fld-st .pv { animation: none !important; }
}

/* 手机：解析抽屉的两栏按内容撑高，不再被压缩后互相覆盖 */
@media (max-width: 720px) {
  .parse-stage .parse-layout { flex: 0 0 auto; }
  .parse-stage .parse-layout .pg-pane { flex: 0 0 auto; }
  .parse-stage .parse-layout .pg-pane-bd { flex: 0 0 auto; }
  .parse-stage .parse-log { max-height: none; }
}

/* —— 解析适配抽屉（桌面）：字放大、行距放松，让两栏撑得起这块高度 —— */
@media (min-width: 721px) {
  .parse-stage .parse-log { padding: 14px 16px; }
  .parse-stage .parse-log-line { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
  .parse-stage .parse-log-line code { font-size: 13px; overflow-wrap: normal; word-break: normal; white-space: normal; }
  .parse-stage .pj-hd { font-size: 12px; padding: 9px 16px; }
  .parse-stage .pj-bd { font-size: 14px; line-height: 2; padding: 12px 18px; }
  .parse-stage .parse-fld-table th { font-size: 12px; padding: 12px 14px; }
  .parse-stage .parse-fld-table td { padding: 15px 14px; font-size: 14px; }
  .parse-stage .parse-fld-table td code { font-size: 13px; }
  .parse-stage .parse-patch-hd { font-size: 12px; padding: 14px 14px 8px; }
  .parse-stage .parse-patches { gap: 8px; padding: 0 14px 14px; }
  .parse-stage .parse-patch { font-size: 13px; padding: 10px 14px; line-height: 1.5; border-radius: 8px; }
  .parse-stage .parse-patch em { font-size: 11px; margin-right: 8px; }
  .parse-stage .parse-steps li { padding: 11px 14px; }
  .parse-stage .parse-steps li span { font-size: 13px; }
  .parse-stage .parse-steps li b { font-size: 12px; }
}

.parse-stage .parse-log-line code { overflow-wrap: normal; word-break: normal; white-space: normal; }

/* =============================================================================
   Agent 治理：大卡片 + 带图标的边界规则 + 计数条（“拦截 0”是核心立场）
   ============================================================================= */
.agov-card header { align-items: flex-start; gap: 0.6rem; margin-bottom: 0; }
.agov-av {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #e8eefc, #d7e3ff); color: #1c3fb0; font-style: normal; font-size: 17px; font-weight: 800;
}
.agov-card:nth-child(2) .agov-av { background: linear-gradient(135deg, #efe9ff, #e0d6ff); color: #5a3fc7; }
.agov-card:nth-child(3) .agov-av { background: linear-gradient(135deg, #e3f6f7, #cdeef0); color: #0e8f9c; }
.agov-card:nth-child(4) .agov-av { background: linear-gradient(135deg, #fff1de, #ffe3bd); color: #a2650a; }
.agov-who { min-width: 0; flex: 1 1 auto; }
.agov-who strong { display: block; font-size: 15px; line-height: 1.25; color: #0f1b3d; }
.agov-who p { margin: 2px 0 0; font-size: 12px; color: #64748b; }
.agov-chip { white-space: nowrap; border-radius: 999px; font-size: 11px; padding: 3px 9px; background: #f3f6fb; border-color: transparent; transition: background 0.3s, color 0.3s; }
.agov-chip.is-on { background: #e6eefd; border-color: transparent; }
.agov-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.agov-card em.agov-st { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; font-family: var(--mono, ui-monospace, monospace); color: #7584a3; }
.agov-card.is-run em.agov-st { color: #0b7a43; font-weight: 700; }
.agov-card.is-run em.agov-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #12a150; animation: hc-pulse-green 1.6s ease-out infinite; }
.agov-cnt { font-size: 12px; color: #94a3b8; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.agov-cnt.is-on { opacity: 1; color: #475569; }
.agov-cnt b { font-size: 15px; color: #0f1b3d; display: inline-block; font-variant-numeric: tabular-nums; }
.agov-card.is-run { box-shadow: 0 6px 18px rgba(0, 63, 236, 0.1); }
@keyframes hc-pulse-green { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0.45); } 100% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); } }

.agov-bound-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agov-b { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.agov-b i { flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 0; position: relative; background: #e6f6ec; }
.agov-b i::after { content: ""; position: absolute; left: 7px; top: 4.5px; width: 5px; height: 9px; border: solid #12a150; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.agov-b--deny i { background: #fdeceb; }
.agov-b--deny i::after { left: 10px; top: 4px; width: 2px; height: 14px; border: 0; background: #c2372a; transform: rotate(45deg); box-shadow: none; border-radius: 2px; }
.agov-b--deny i::before { content: ""; position: absolute; left: 10px; top: 4px; width: 2px; height: 14px; background: #c2372a; transform: rotate(-45deg); border-radius: 2px; }
.agov-b--scope i { background: #e6eefd; }
.agov-b--scope i::after { left: 6px; top: 6px; width: 10px; height: 10px; border: 2px solid #003fec; border-radius: 50%; transform: none; }
.agov-b span { min-width: 0; }

.agov-mon-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.agov-sum { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.agov-sum-i { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #f3f6fb; color: #64748b; font-size: 11.5px; font-weight: 600; }
.agov-sum-i b { font-size: 15px; color: #0f1b3d; display: inline-block; font-variant-numeric: tabular-nums; }
.agov-sum-i.is-ok b { color: #0b7a43; }
.agov-sum-i.is-deny { background: #fdeceb; color: #a8322a; }
.agov-sum-i.is-deny b { color: #c2372a; }
.agov-sum-i.is-block { background: #e8eefc; color: #1c3fb0; }
.agov-sum-i.is-block b { color: #003fec; }
.agov-stage b.is-pop { animation: hc-pop 0.45s ease; }

@media (min-width: 721px) {
  .agov-stage { gap: 14px; padding: 18px 20px 18px; }
  .agov-stage-hd h3 { font-size: 20px; }
  .agov-stage-hd p { font-size: 13px; }
  /* 上：一排 4 张 Agent 卡；下：左边界规则 · 右实时调用 */
  .agov-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border: 0; gap: 14px; overflow: visible; height: 0; }
  .agov-layout > .pg-pane { height: auto; min-height: 0; border: 1px solid #e3e9f5; border-radius: 16px; overflow: hidden; }
  .agov-layout > .pg-pane + .pg-pane { border-left: 1px solid #e3e9f5; }
  .agov-layout .pg-pane-hd { font-size: 13px; padding: 12px 16px; }
  .agov-layout > .pg-pane .pg-pane-bd { padding: 16px; }
  .agov-layout > .pg-pane:first-child .pg-pane-bd { flex: none; overflow: visible; }
  .agov-layout > .pg-pane + .pg-pane .pg-pane-bd {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto minmax(0, 1fr);
    column-gap: 18px; row-gap: 10px; align-content: start;
  }
  .agov-bound { grid-column: 1; grid-row: 1 / 3; align-self: start; margin: 0; padding: 16px; border-radius: 14px; }
  .agov-mon-hd { grid-column: 2; grid-row: 1; margin: 0; font-size: 14px; }
  .agov-audit { grid-column: 2; grid-row: 2; gap: 10px; }
  .agov-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .agov-card { display: flex; flex-direction: column; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(15, 27, 61, 0.06); }
  .agov-who strong { font-size: 14.5px; }
  .agov-bound strong { font-size: 15px; margin-bottom: 4px; }
  .agov-bound > p { font-size: 12.5px; margin-bottom: 12px; }
  .agov-bound-list { font-size: 14.5px; gap: 12px; }
  .agov-bound { padding: 20px; }
  .agov-bound strong { font-size: 16px; }
  .agov-audit-row { grid-template-columns: 5.2rem 1fr; gap: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; border-radius: 10px; }
  .agov-audit-row time { font-size: 12px; }
  .agov-hint { font-size: 13.5px; }
}

/* =============================================================================
   策略优化：真正的 diff（行号 · +/− · key/value），不再是两块空白代码框
   ============================================================================= */
.policy-code { padding: 6px 0; white-space: normal; font-size: 12.5px; line-height: 1.5; }
.policy-code code { display: block; }
.pl { display: grid; grid-template-columns: 2rem 1.2rem minmax(5.5rem, auto) minmax(0, 1fr); align-items: baseline; padding: 3px 10px 3px 0; border-left: 3px solid transparent; overflow-wrap: anywhere; }
.pl-n { font-style: normal; text-align: right; padding-right: 8px; color: #b3bdcf; font-size: 0.85em; user-select: none; }
.pl-s { font-style: normal; font-weight: 800; text-align: center; }
.pl-k { color: #6b7a99; padding-right: 10px; white-space: nowrap; }
.pl-v { color: #1e293b; min-width: 0; }
.pl-del { background: #fdeeed; border-left-color: #e5534b; }
.pl-del .pl-s { color: #c2372a; }
.pl-del .pl-v { color: #9b4b45; text-decoration: line-through; text-decoration-color: rgba(194, 55, 42, 0.45); }
.pl-add { background: #e9f7ef; border-left-color: #12a150; }
.pl-add .pl-s { color: #0b7a43; }
.pl-add .pl-v { color: #0b4f2c; font-weight: 600; }
.pl.is-ghost { opacity: 0.45; background: none; border-left-color: transparent; }
.pl.is-ghost .pl-v { font-weight: 400; color: #94a3b8; }
.policy-side.is-now .policy-code { color: inherit; }
.is-typed .pl-add { animation: pl-in 0.45s ease both; animation-delay: calc(var(--li, 0) * 120ms); }
@keyframes pl-in { from { opacity: 0; transform: translateX(-8px); background: #c9efd8; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .is-typed .pl-add { animation: none; } }

@media (min-width: 721px) {
  .policy-stage { padding-top: 16px; }
  .policy-opt { gap: 14px; }
  .policy-anchor { padding: 14px 18px; border-radius: 14px; gap: 4px 12px; }
  .policy-anchor strong { font-size: 17px; }
  .policy-anchor em { font-size: 13px; }
  .policy-anchor p { font-size: 14px; margin-top: 6px; }
  .policy-board { flex: 0 0 auto; min-height: 0; gap: 12px; }
  .policy-side { border-radius: 14px; overflow: hidden; }
  .policy-side header { padding: 11px 16px; font-size: 14px; }
  .policy-side-st { font-size: 12px; padding: 2px 9px; border-radius: 999px; }
  .policy-code { font-size: 14.5px; line-height: 1.55; padding: 8px 0; }
  .pl { padding-top: 6px; padding-bottom: 6px; grid-template-columns: 2.4rem 1.4rem 6.6rem minmax(0, 1fr); }
  .policy-arrow { font-size: 24px; }
  .policy-impact { gap: 12px; }
  .policy-impact li { padding: 14px 16px; border-radius: 14px; }
  .policy-impact li b { font-size: 30px; line-height: 1.1; }
  .policy-impact li span { font-size: 13px; }
  .policy-ship { padding: 14px 18px; border-radius: 14px; font-size: 14px; }
  .policy-ship strong { font-size: 16px; }
  .policy-hint { font-size: 13.5px; }
}
@media (max-width: 720px) {
  .pl { grid-template-columns: 1.6rem 1rem 4.8rem minmax(0, 1fr); }
  .policy-code { font-size: 12px; }
}

/* =============================================================================
   记忆：放大层级——企业卡 / 待写入 / 图谱核心 / 黑白名单都用可读字号，图谱中心更有"轨道感"
   ============================================================================= */
@keyframes mem-orbit { to { transform: rotate(360deg); } }
@media (min-width: 721px) {
  .mem-page--flow { padding: 16px 20px 18px; gap: 14px; }
  .mem-flow-hd h3 { font-size: 20px; }
  .mem-flow-hd p { font-size: 13px; margin-top: 4px; }
  .mem-page--flow .mem-kpis { gap: 10px; }
  .mem-page--flow .mem-kpis .kpi { min-width: 90px; padding: 8px 16px; border-radius: 0 12px 12px 0; }
  .mem-page--flow .mem-kpis b { font-size: 26px; line-height: 1.1; }
  .mem-page--flow .mem-kpis span { font-size: 12px; }
  .mem-page--flow .mem-tenants { gap: 12px; }
  .mem-page--flow .mem-tenant { padding: 14px 16px; border-radius: 14px; gap: 6px; }
  .mem-page--flow .mem-tenant b { font-size: 15.5px; }
  .mem-page--flow .mem-tenant span { font-size: 12.5px; line-height: 1.45; }
  .mem-tenant-badge { font-size: 11px; padding: 2px 9px; top: 12px; right: 12px; }
  .mem-habit { font-size: 14px; }
  .mem-steps { gap: 18px; }
  .mem-steps li { font-size: 13.5px; gap: 7px; }
  .mem-steps b { width: 22px; height: 22px; font-size: 12px; }
  .mem-flow { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(0, 1.05fr); gap: 14px; }
  .mem-page--flow .mem-inbox, .mem-hub, .mem-page--flow .mem-list { padding: 16px; border-radius: 16px; }
  .mem-inbox-hd { font-size: 14px; font-weight: 700; }
  .mem-inbox-cap { font-size: 12.5px; margin-bottom: 10px; }
  .mem-page--flow .mem-seed { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; gap: 4px; }
  .mem-page--flow .mem-seed em { font-size: 12px; }
  .mem-page--flow .mem-seed span { font-size: 14.5px; line-height: 1.4; }
  .mem-hub { gap: 22px; background-image: radial-gradient(rgba(0, 63, 236, 0.1) 1px, transparent 1.2px); background-size: 18px 18px; }
  .mem-hub-core { width: 11rem; height: 11rem; position: relative; }
  .mem-hub-core::before { content: ""; position: absolute; inset: -28px; border-radius: 50%; border: 1.5px dashed rgba(0, 63, 236, 0.28); animation: mem-orbit 40s linear infinite; }
  .mem-hub-core b { font-size: 18px; }
  .mem-hub-core span { font-size: 13px; margin-top: 4px; }
  .mem-hub-rings { gap: 8px; padding: 0 6px; }
  .mem-ring { font-size: 13px; padding: 6px 13px; background: #fff; }
  .mem-hub.is-live .mem-hub-core { box-shadow: 0 0 0 16px rgba(0, 63, 236, 0.08); }
  .mem-list-row { padding: 14px 16px; border-radius: 14px; }
  .mem-row-hd { gap: 10px; align-items: center; }
  .mem-row-hd .tag { font-size: 12px; padding: 3px 9px; }
  .mem-list-row strong { font-size: 15px; }
  .mem-list-row em { font-size: 12.5px; }
  .mem-row-stats { gap: 14px; margin-top: 10px; }
  .mem-stat { font-size: 12.5px; }
  .mem-stat b { font-size: 20px; }
  .mem-list-note, .mem-feed-note { font-size: 13px; line-height: 1.55; }
  .mem-page--flow .mem-hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mem-hub-core::before { animation: none; } }

/* =============================================================================
   记忆：放大层级——企业卡 / 待写入 / 图谱核心 / 黑白名单都用可读字号，图谱中心更有"轨道感"
   ============================================================================= */
@keyframes mem-orbit { to { transform: rotate(360deg); } }
@media (min-width: 721px) {
  .mem-page--flow { padding: 16px 20px 18px; gap: 14px; }
  .mem-flow-hd h3 { font-size: 20px; }
  .mem-flow-hd p { font-size: 13px; margin-top: 4px; }
  .mem-page--flow .mem-kpis { gap: 10px; }
  .mem-page--flow .mem-kpis .kpi { min-width: 90px; padding: 8px 16px; border-radius: 0 12px 12px 0; }
  .mem-page--flow .mem-kpis b { font-size: 26px; line-height: 1.1; }
  .mem-page--flow .mem-kpis span { font-size: 12px; }
  .mem-page--flow .mem-tenants { gap: 12px; }
  .mem-page--flow .mem-tenant { padding: 14px 16px; border-radius: 14px; gap: 6px; }
  .mem-page--flow .mem-tenant b { font-size: 15.5px; }
  .mem-page--flow .mem-tenant span { font-size: 12.5px; line-height: 1.45; }
  .mem-tenant-badge { font-size: 11px; padding: 2px 9px; top: 12px; right: 12px; }
  .mem-habit { font-size: 14px; }
  .mem-steps { gap: 18px; }
  .mem-steps li { font-size: 13.5px; gap: 7px; }
  .mem-steps b { width: 22px; height: 22px; font-size: 12px; }
  .mem-flow { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(0, 1.05fr); gap: 14px; }
  .mem-page--flow .mem-inbox, .mem-hub, .mem-page--flow .mem-list { padding: 16px; border-radius: 16px; }
  .mem-inbox-hd { font-size: 14px; font-weight: 700; }
  .mem-inbox-cap { font-size: 12.5px; margin-bottom: 10px; }
  .mem-page--flow .mem-seed { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; gap: 4px; }
  .mem-page--flow .mem-seed em { font-size: 12px; }
  .mem-page--flow .mem-seed span { font-size: 14.5px; line-height: 1.4; }
  .mem-hub { gap: 22px; background-image: radial-gradient(rgba(0, 63, 236, 0.1) 1px, transparent 1.2px); background-size: 18px 18px; }
  .mem-hub-core { width: 11rem; height: 11rem; position: relative; }
  .mem-hub-core::before { content: ""; position: absolute; inset: -28px; border-radius: 50%; border: 1.5px dashed rgba(0, 63, 236, 0.28); animation: mem-orbit 40s linear infinite; }
  .mem-hub-core b { font-size: 18px; }
  .mem-hub-core span { font-size: 13px; margin-top: 4px; }
  .mem-hub-rings { gap: 8px; padding: 0 6px; }
  .mem-ring { font-size: 13px; padding: 6px 13px; background: #fff; }
  .mem-hub.is-live .mem-hub-core { box-shadow: 0 0 0 16px rgba(0, 63, 236, 0.08); }
  .mem-list-row { padding: 14px 16px; border-radius: 14px; }
  .mem-row-hd { gap: 10px; align-items: center; }
  .mem-row-hd .tag { font-size: 12px; padding: 3px 9px; }
  .mem-list-row strong { font-size: 15px; }
  .mem-list-row em { font-size: 12.5px; }
  .mem-row-stats { gap: 14px; margin-top: 10px; }
  .mem-stat { font-size: 12.5px; }
  .mem-stat b { font-size: 20px; }
  .mem-list-note, .mem-feed-note { font-size: 13px; line-height: 1.55; }
  .mem-page--flow .mem-hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mem-hub-core::before { animation: none; } }
@media (min-width: 721px) {
  .mem-page--flow .mem-list { margin-top: 0; gap: 10px; }
  .mem-row-stats { flex-wrap: wrap; row-gap: 8px; }
  .mem-keep { flex: 1 0 100%; max-width: none; margin: 2px 0 0; height: 5px; }
}
.mem-row-hd { flex-wrap: wrap; row-gap: 4px; }
.mem-row-hd strong { flex: 1 1 100%; order: 3; overflow-wrap: anywhere; }
@media (min-width: 721px) {
  .mem-hub { gap: 16px; }
  .mem-hub-core { width: 9.5rem; height: 9.5rem; }
  .mem-hub-core b { font-size: 16.5px; }
  .mem-ring { font-size: 12.5px; padding: 5px 11px; }
}
@media (max-width: 720px) {
  .policy-opt > * { flex-shrink: 0; }
  .policy-board { min-height: 0; }
  .policy-side .policy-code { overflow: visible; flex: none; }
}

/* =============================================================================
   报告：左侧体裁清单不再被裁，右侧稿件放大成可读的“成稿样张”
   ============================================================================= */
.rpt-card { grid-template-columns: minmax(0, 1fr) auto; box-sizing: border-box; }
.rpt-shelf { min-width: 0; }
@media (min-width: 721px) {
  .rpt-stage { padding: 16px 20px 18px; gap: 14px; }
  .rpt-stage-hd h3 { font-size: 20px; }
  .rpt-stage-hd p { font-size: 13px; }
  .rpt-layout { border-radius: 16px; }
  .rpt-layout .pg-pane-hd { font-size: 13px; padding: 12px 18px; }
  .rpt-layout .pg-pane-bd { padding: 16px 18px; }
  .rpt-shelf { gap: 10px; }
  .rpt-group { font-size: 12px; margin-top: 10px; }
  .rpt-card { padding: 14px 16px; border-radius: 12px; gap: 4px 10px; }
  .rpt-card b { font-size: 16px; }
  .rpt-card span { font-size: 13px; }
  .rpt-card-st { font-size: 12px; }
  .rpt-sheet-hd h4 { font-size: 22px; }
  .rpt-sheet-hd em, .rpt-ctx { font-size: 12.5px; }
  .rpt-uses span { font-size: 12.5px; padding: 4px 10px; }
  .rpt-kpis b, .rpt-diff b { font-size: 16px; }
  .rpt-kpis span, .rpt-diff span, .rpt-note, .rpt-delta { font-size: 12.5px; }
  .rpt-lessons li, .rpt-path li { font-size: 14px; line-height: 1.55; }
  .rpt-meter b { font-size: 14px; }
  .rpt-hint { font-size: 13.5px; }
}
