/* ==========================================================================
   Metacog Report — 深度分析报告模块样式
   All selectors are namespaced with .mcr- / #metacogReportRoot.
   与主 App 共享 CSS 变量，但提供本地 fallback，不覆盖全局变量。
   ========================================================================== */

.mcr-root {
  --mcr-bg: var(--bg, #0b0f14);
  --mcr-surface: var(--surface, #121821);
  --mcr-surface-2: var(--surface-2, #1a2230);
  --mcr-text: var(--text, #e8eef7);
  --mcr-muted: var(--muted, #94a3b8);
  --mcr-line: var(--line, rgba(148, 163, 184, 0.18));
  --mcr-accent: var(--accent, #6ee7c7);
  --mcr-amber: var(--amber, #f5c26b);
  --mcr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  position: fixed;
  inset: 0;
  z-index: 99999;
  color: var(--mcr-text);
  font-family: var(--mcr-font);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  color-scheme: dark;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mcr-root[hidden] {
  display: none !important;
}

.mcr-root *,
.mcr-root *::before,
.mcr-root *::after {
  box-sizing: border-box;
}

.mcr-root h2,
.mcr-root h3,
.mcr-root h4,
.mcr-root p,
.mcr-root ul,
.mcr-root dl,
.mcr-root dd,
.mcr-root dt {
  margin: 0;
}

.mcr-root ul {
  padding: 0;
  list-style: none;
}

.mcr-root button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.mcr-root ::selection {
  background: rgba(110, 231, 199, 0.24);
  color: var(--mcr-text);
}

.mcr-root :focus-visible {
  outline: 2px solid var(--mcr-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Overlay + panel
   -------------------------------------------------------------------------- */

.mcr-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 12, 0.84);
}

.mcr-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background-color: #0b1017;
  background-image:
    linear-gradient(180deg, rgba(18, 24, 33, 0.99), rgba(11, 16, 23, 0.995));
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(110, 231, 199, 0.035) inset;
  animation: mcr-rise 0.2s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.mcr-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  z-index: 2;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 199, 0.42), transparent);
}

.mcr-panel:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.mcr-header {
  position: relative;
  flex: 0 0 auto;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--mcr-line);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(110, 231, 199, 0.055), transparent 58%),
    linear-gradient(180deg, rgba(26, 34, 48, 0.24), transparent);
}

.mcr-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 18px;
  margin-bottom: 11px;
  padding-right: 44px;
}

.mcr-mark {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(110, 231, 199, 0.5);
  border-radius: 5px;
}

.mcr-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background: var(--mcr-accent);
  opacity: 0.82;
}

.mcr-kicker {
  color: var(--mcr-accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mcr-kicker-sep {
  color: rgba(148, 163, 184, 0.35);
  font-size: 10px;
}

.mcr-kicker-muted {
  color: var(--mcr-muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.mcr-title {
  max-width: 760px;
  padding-right: 46px;
  color: var(--mcr-text);
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.mcr-subtitle {
  margin-top: 7px;
  color: var(--mcr-muted);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.mcr-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--mcr-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.mcr-close:hover {
  color: var(--mcr-text);
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--mcr-line);
}

.mcr-close-glyph {
  display: block;
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.mcr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.mcr-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid var(--mcr-line);
  border-radius: 7px;
  background: rgba(26, 34, 48, 0.42);
  font-size: 10.5px;
  line-height: 1.4;
}

.mcr-chip-k {
  flex: 0 0 auto;
  color: rgba(148, 163, 184, 0.72);
  letter-spacing: 0.03em;
}

.mcr-chip-v {
  color: rgba(232, 238, 247, 0.88);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.mcr-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.mcr-profile:empty,
.mcr-radar-note:empty,
.mcr-export-status:empty {
  display: none;
}

.mcr-profile-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 6px;
  background: transparent;
  font-size: 10px;
  line-height: 1.45;
}

.mcr-profile-k {
  flex: 0 0 auto;
  color: rgba(148, 163, 184, 0.54);
  letter-spacing: 0.04em;
}

.mcr-profile-v {
  color: rgba(148, 163, 184, 0.9);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Body + layout
   -------------------------------------------------------------------------- */

.mcr-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 28px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.mcr-body::-webkit-scrollbar {
  width: 10px;
}

.mcr-body::-webkit-scrollbar-track {
  background: transparent;
}

.mcr-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.mcr-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.mcr-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--mcr-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(26, 34, 48, 0.48), rgba(18, 24, 33, 0.3));
}

.mcr-radar-card,
.mcr-metrics-card {
  display: flex;
  flex-direction: column;
}

.mcr-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--mcr-line);
}

.mcr-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.mcr-card .mcr-section-head {
  margin-bottom: 10px;
}

.mcr-section-titles {
  min-width: 0;
}

.mcr-h3 {
  color: var(--mcr-text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.005em;
  line-height: 1.35;
}

.mcr-card .mcr-h3 {
  font-size: 14px;
}

.mcr-section-sub {
  margin-top: 5px;
  color: var(--mcr-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.mcr-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  color: var(--mcr-accent);
  background: rgba(110, 231, 199, 0.065);
  border: 1px solid rgba(110, 231, 199, 0.22);
  border-radius: 999px;
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Radar card
   -------------------------------------------------------------------------- */

.mcr-canvas-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: 4px;
}

.mcr-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.mcr-disclaimer {
  margin-top: 8px;
  color: rgba(148, 163, 184, 0.76);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.mcr-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin-top: 13px;
}

.mcr-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.45;
}

.mcr-legend-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mcr-legend-dot.is-direct {
  background: var(--mcr-accent);
  box-shadow: 0 0 0 3px rgba(110, 231, 199, 0.075);
}

.mcr-legend-dot.is-est {
  background: transparent;
  border: 1.5px solid var(--mcr-amber);
}

.mcr-legend-dot.is-null {
  background: rgba(148, 163, 184, 0.3);
}

.mcr-legend-name {
  min-width: 0;
  overflow: hidden;
  color: var(--mcr-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mcr-legend-value {
  margin-left: auto;
  color: var(--mcr-text);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.mcr-legend-value.is-direct {
  color: var(--mcr-accent);
}

.mcr-legend-value.is-est {
  color: var(--mcr-amber);
}

.mcr-legend-value.is-null {
  color: rgba(148, 163, 184, 0.64);
  font-weight: 500;
}

.mcr-legend-key {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.14);
  color: rgba(148, 163, 184, 0.64);
  font-size: 9.5px;
}

.mcr-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mcr-key .mcr-legend-dot {
  width: 6px;
  height: 6px;
}

.mcr-radar-note {
  margin-top: 8px;
  color: rgba(245, 194, 107, 0.8);
  font-size: 10px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Metrics + rooms
   -------------------------------------------------------------------------- */

.mcr-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.mcr-metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--mcr-line);
  border-radius: 12px;
  background: rgba(11, 15, 20, 0.3);
}

.mcr-metric-label {
  color: var(--mcr-muted);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.mcr-metric-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 6px;
  color: var(--mcr-text);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.mcr-metric-value.is-text {
  color: var(--mcr-amber);
  font-size: 17px;
  letter-spacing: 0;
}

.mcr-metric-value.is-amber {
  color: var(--mcr-amber);
}

.mcr-metric-unit {
  color: rgba(148, 163, 184, 0.62);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.mcr-metric-sub {
  margin-top: 5px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 10.5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.mcr-progress {
  position: relative;
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.13);
}

.mcr-progress.is-empty {
  background: repeating-linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.13) 0 6px,
    transparent 6px 10px
  );
}

.mcr-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(110, 231, 199, 0.5), var(--mcr-accent));
}

.mcr-rooms {
  margin-top: auto;
  padding-top: 16px;
}

.mcr-rooms-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--mcr-line);
  color: rgba(148, 163, 184, 0.72);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.mcr-rooms-count {
  color: rgba(148, 163, 184, 0.48);
  font-variant-numeric: tabular-nums;
}

.mcr-room-list {
  max-height: 168px;
  margin-top: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
}

.mcr-room {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.1);
}

.mcr-room:last-child {
  border-bottom: 0;
}

.mcr-room-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.mcr-room-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(232, 238, 247, 0.9);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcr-room-domain {
  min-width: 0;
  overflow: hidden;
  color: rgba(148, 163, 184, 0.52);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcr-room-stats {
  margin-top: 3px;
  color: rgba(148, 163, 184, 0.68);
  font-size: 10px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.mcr-rooms-more,
.mcr-empty-inline {
  margin-top: 9px;
  color: rgba(148, 163, 184, 0.58);
  font-size: 10.5px;
  line-height: 1.55;
}

.mcr-empty-inline {
  padding-top: 12px;
  border-top: 1px solid var(--mcr-line);
}

/* --------------------------------------------------------------------------
   Blind-spot tags
   -------------------------------------------------------------------------- */

.mcr-tag-summary {
  display: flex;
  gap: 11px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(110, 231, 199, 0.18);
  border-radius: 12px;
  background: rgba(110, 231, 199, 0.045);
}

.mcr-tag-summary-mark {
  flex: 0 0 auto;
  width: 3px;
  border-radius: 3px;
  background: var(--mcr-accent);
}

.mcr-tag-summary strong {
  display: block;
  color: var(--mcr-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.mcr-tag-summary p {
  margin-top: 3px;
  color: var(--mcr-muted);
  font-size: 11px;
  line-height: 1.55;
}

.mcr-empty-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(26, 34, 48, 0.2);
}

.mcr-empty-mark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--mcr-amber);
  box-shadow: 0 0 0 3px rgba(245, 194, 107, 0.075);
}

.mcr-empty-note h4 {
  color: var(--mcr-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.mcr-empty-note p {
  margin-top: 3px;
  color: var(--mcr-muted);
  font-size: 11px;
  line-height: 1.6;
}

.mcr-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mcr-tag {
  position: relative;
  min-width: 0;
  padding: 15px 16px 14px 18px;
  border: 1px solid var(--mcr-line);
  border-radius: 14px;
  background: rgba(18, 24, 33, 0.42);
  overflow: hidden;
}

.mcr-tag::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 2px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.24);
}

.mcr-tag.is-hit {
  border-color: rgba(245, 194, 107, 0.36);
  background:
    linear-gradient(180deg, rgba(245, 194, 107, 0.07), rgba(18, 24, 33, 0.34) 58%);
}

.mcr-tag.is-hit::before {
  background: var(--mcr-amber);
}

.mcr-tag.is-miss {
  border-color: rgba(110, 231, 199, 0.2);
}

.mcr-tag.is-miss::before {
  background: rgba(110, 231, 199, 0.45);
}

.mcr-tag.is-insufficient {
  border-style: dashed;
  background: rgba(18, 24, 33, 0.28);
}

.mcr-tag.is-insufficient::before {
  background: rgba(148, 163, 184, 0.25);
}

.mcr-tag-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mcr-tag-name-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mcr-tag-name {
  color: var(--mcr-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.mcr-primary-badge {
  padding: 1px 6px;
  color: var(--mcr-amber);
  background: rgba(245, 194, 107, 0.08);
  border: 1px solid rgba(245, 194, 107, 0.24);
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
}

.mcr-tag-status {
  flex: 0 0 auto;
  padding: 2px 7px;
  color: rgba(148, 163, 184, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  font-size: 9.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.mcr-tag-status.is-hit {
  color: var(--mcr-amber);
  background: rgba(245, 194, 107, 0.08);
  border-color: rgba(245, 194, 107, 0.36);
}

.mcr-tag-status.is-miss {
  color: rgba(110, 231, 199, 0.82);
  background: rgba(110, 231, 199, 0.05);
  border-color: rgba(110, 231, 199, 0.22);
}

.mcr-tag-status.is-insufficient {
  color: rgba(148, 163, 184, 0.7);
  border-color: rgba(148, 163, 184, 0.18);
}

.mcr-tag-def {
  margin-top: 6px;
  color: rgba(148, 163, 184, 0.76);
  font-size: 11px;
  line-height: 1.55;
}

.mcr-tag-evidence {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
}

.mcr-tag-evidence li {
  position: relative;
  padding-left: 10px;
  color: rgba(232, 238, 247, 0.76);
  font-size: 10.5px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.mcr-tag-evidence li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.48);
}

.mcr-tag-reading {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(148, 163, 184, 0.88);
  font-size: 11px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Survival guide
   -------------------------------------------------------------------------- */

.mcr-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mcr-guide-item {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--mcr-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(26, 34, 48, 0.36), rgba(18, 24, 33, 0.26));
}

.mcr-guide-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.mcr-guide-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.mcr-guide-index {
  color: rgba(110, 231, 199, 0.85);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.mcr-guide-source {
  padding: 2px 7px;
  color: var(--mcr-amber);
  background: rgba(245, 194, 107, 0.055);
  border: 1px solid rgba(245, 194, 107, 0.2);
  border-radius: 999px;
  font-size: 9.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.mcr-guide-source.is-generic {
  color: rgba(148, 163, 184, 0.72);
  background: transparent;
  border-color: rgba(148, 163, 184, 0.18);
}

.mcr-guide-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mcr-guide-rows > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.mcr-guide-rows dt {
  padding-top: 1px;
  color: rgba(148, 163, 184, 0.58);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.mcr-guide-rows dd {
  color: rgba(232, 238, 247, 0.87);
  font-size: 11.2px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@media (min-width: 761px) {
  .mcr-guide-item:last-child:nth-child(odd) .mcr-guide-rows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .mcr-guide-item:last-child:nth-child(odd) .mcr-guide-rows > div {
    display: block;
  }

  .mcr-guide-item:last-child:nth-child(odd) .mcr-guide-rows dt {
    margin-bottom: 4px;
  }
}

/* --------------------------------------------------------------------------
   Method / disclosure
   -------------------------------------------------------------------------- */

.mcr-method {
  margin-top: 24px;
  border: 1px solid var(--mcr-line);
  border-radius: 12px;
  background: rgba(11, 15, 20, 0.26);
}

.mcr-method-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  color: var(--mcr-muted);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.mcr-method-summary::-webkit-details-marker {
  display: none;
}

.mcr-method-summary::before {
  content: "+";
  flex: 0 0 auto;
  color: var(--mcr-accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.mcr-method[open] .mcr-method-summary::before {
  content: "−";
}

.mcr-method[open] .mcr-method-summary {
  border-bottom: 1px solid var(--mcr-line);
}

.mcr-method-label {
  margin-right: auto;
  color: rgba(232, 238, 247, 0.8);
  font-weight: 500;
}

.mcr-method-hint {
  color: rgba(148, 163, 184, 0.46);
  font-size: 9.5px;
}

.mcr-method-body {
  padding: 13px 15px 15px;
}

.mcr-method-p {
  color: var(--mcr-muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.mcr-method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.mcr-method-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: start;
  font-size: 10.5px;
  line-height: 1.6;
}

.mcr-method-name {
  color: rgba(232, 238, 247, 0.84);
  font-weight: 600;
}

.mcr-method-formula {
  color: rgba(148, 163, 184, 0.62);
}

.mcr-method-current {
  color: var(--mcr-accent);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mcr-method-current.is-est {
  color: var(--mcr-amber);
}

.mcr-method-current.is-null {
  color: rgba(148, 163, 184, 0.55);
  font-weight: 500;
}

.mcr-method-note {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.13);
}

.mcr-method-note p {
  color: rgba(148, 163, 184, 0.62);
  font-size: 10.2px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.mcr-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-top: 1px solid var(--mcr-line);
  background: rgba(10, 15, 21, 0.78);
}

.mcr-privacy {
  max-width: 54%;
  color: rgba(148, 163, 184, 0.6);
  font-size: 10.2px;
  line-height: 1.55;
}

.mcr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.mcr-export-status {
  color: rgba(110, 231, 199, 0.82);
  font-size: 10px;
  line-height: 1.5;
}

.mcr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  color: var(--mcr-accent);
  background: rgba(110, 231, 199, 0.09);
  border: 1px solid rgba(110, 231, 199, 0.32);
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.1s ease;
}

.mcr-btn:hover {
  background: rgba(110, 231, 199, 0.15);
  border-color: rgba(110, 231, 199, 0.5);
}

.mcr-btn:active {
  transform: translateY(1px);
}

.mcr-btn-icon {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes mcr-rise {
  from {
    transform: translateY(10px) scale(0.995);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcr-panel {
    animation: none;
  }

  .mcr-btn,
  .mcr-close {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .mcr-canvas-wrap {
    height: 370px;
  }
}

@media (max-width: 980px) {
  .mcr-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcr-canvas-wrap {
    height: 360px;
  }

  .mcr-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mcr-rooms {
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  .mcr-overlay {
    padding: 8px;
  }

  .mcr-panel {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .mcr-header {
    padding: 19px 18px 15px;
  }

  .mcr-brand {
    margin-bottom: 9px;
  }

  .mcr-title {
    padding-right: 34px;
    font-size: 22px;
  }

  .mcr-subtitle {
    font-size: 11.5px;
  }

  .mcr-meta {
    margin-top: 12px;
  }

  .mcr-body {
    padding: 16px 16px 22px;
  }

  .mcr-card {
    padding: 16px;
  }

  .mcr-section {
    margin-top: 22px;
    padding-top: 18px;
  }

  .mcr-section-head {
    gap: 10px;
  }

  .mcr-canvas-wrap {
    height: 330px;
  }

  .mcr-tags,
  .mcr-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcr-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .mcr-privacy {
    max-width: none;
  }

  .mcr-actions {
    justify-content: space-between;
  }

  .mcr-close {
    top: 11px;
    right: 12px;
  }

  .mcr-method-row {
    grid-template-columns: 84px minmax(0, 1fr) 58px;
  }

  .mcr-method-formula {
    grid-column: 2 / 3;
  }

  .mcr-method-current {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
  }

  .mcr-guide-rows > div {
    grid-template-columns: 52px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .mcr-header {
    padding: 17px 15px 14px;
  }

  .mcr-kicker {
    font-size: 9.5px;
  }

  .mcr-kicker-muted {
    display: none;
  }

  .mcr-title {
    font-size: 20px;
  }

  .mcr-body {
    padding: 14px 13px 20px;
  }

  .mcr-card {
    padding: 14px;
    border-radius: 14px;
  }

  .mcr-canvas-wrap {
    height: 300px;
  }

  .mcr-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mcr-metric {
    padding: 11px 12px;
  }

  .mcr-metric-value {
    font-size: 23px;
  }

  .mcr-metric-value.is-text {
    font-size: 15px;
  }

  .mcr-legend {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .mcr-tag {
    padding: 14px 14px 13px 16px;
  }

  .mcr-guide-item {
    padding: 14px;
  }

  .mcr-method-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
  }

  .mcr-method-name {
    grid-column: 1 / 2;
  }

  .mcr-method-current {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .mcr-method-formula {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
  }

  .mcr-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .mcr-export-status {
    order: 2;
    text-align: center;
  }

  .mcr-btn {
    width: 100%;
  }

  .mcr-section-head {
    flex-direction: column;
    gap: 7px;
  }

  .mcr-badge {
    align-self: flex-start;
  }
}

@media (max-width: 360px) {
  .mcr-canvas-wrap {
    height: 280px;
  }

  .mcr-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcr-title {
    font-size: 19px;
  }
}

.mcr-room-focus {
  flex: 0 0 auto;
  padding: 1px 5px;
  color: #8ff0d6;
  border: 1px solid rgba(110, 231, 199, 0.18);
  border-radius: 3px;
  background: rgba(110, 231, 199, 0.05);
  font-family: var(--font-mono, monospace);
  font-size: 7.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.mcr-room-insight {
  margin-top: 3px;
  color: rgba(148, 163, 184, 0.68);
  font-size: 9px;
  line-height: 1.5;
}

.mcr-room-insight.is-low {
  color: #f5c26b;
}

.mcr-room-insight.is-high {
  color: #8ff0d6;
}

/* --------------------------------------------------------------------------
   V5.3 · 灵魂三问
   -------------------------------------------------------------------------- */

.mcr-soul {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid rgba(110, 231, 199, 0.12);
}

.mcr-soul .mcr-section-sub {
  color: rgba(148, 163, 184, 0.6);
}

.mcr-soul-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mcr-soul-item {
  position: relative;
  min-height: 108px;
  padding: 15px 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 199, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(220px 110px at 12% 0%, rgba(110, 231, 199, 0.08), transparent 70%),
    linear-gradient(160deg, rgba(15, 27, 38, 0.72), rgba(7, 13, 21, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.2);
}

.mcr-soul-item::after {
  position: absolute;
  top: -18px;
  right: 10px;
  color: rgba(110, 231, 199, 0.08);
  content: "“";
  font-family: Georgia, "Songti SC", serif;
  font-size: 90px;
  line-height: 1;
  pointer-events: none;
}

.mcr-soul-index {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: #8ff0d6;
  border: 1px solid rgba(110, 231, 199, 0.22);
  border-radius: 50%;
  background: rgba(110, 231, 199, 0.05);
  font: 500 8px/1 var(--font-mono, monospace);
}

.mcr-soul-question {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #dcf6ef;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

@media (max-width: 900px) {
  .mcr-soul-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .mcr-soul-item {
    min-height: 0;
    padding: 13px 13px 12px;
  }

  .mcr-soul-question {
    font-size: 12.5px;
  }
}

/* V5.4 · 外部寻宝 / 长文本质检分析 */
.mcr-long-section {
  margin-top: 14px;
}

.mcr-long-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mcr-long-stat {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.035);
}

.mcr-long-label {
  width: 100%;
  color: #7f96a8;
  font-size: 9px;
}

.mcr-long-value {
  color: #bff7e9;
  font: 500 19px/1.1 var(--font-mono, monospace);
}

.mcr-long-unit {
  color: #6d8496;
  font-size: 8.5px;
}

.mcr-long-narrative {
  margin: 12px 0 0;
  padding: 11px 12px;
  color: #c8dbe5;
  border-left: 2px solid rgba(110, 231, 199, 0.3);
  background: rgba(110, 231, 199, 0.035);
  font-size: 11px;
  line-height: 1.85;
}

.mcr-long-note {
  margin: 8px 0 0;
  color: #607889;
  font-size: 9px;
  line-height: 1.7;
}

.mcr-long-prompt {
  margin-top: 10px;
  color: #607889;
  font-size: 9px;
}

.mcr-long-prompt summary {
  cursor: pointer;
}

.mcr-long-prompt pre {
  max-height: 220px;
  margin: 8px 0 0;
  padding: 9px 10px;
  overflow: auto;
  color: #8fa6b8;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  font: 9.5px/1.7 var(--font-mono, monospace);
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  .mcr-long-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mcr-long-narrative {
    font-size: 10.5px;
  }
}
