.r2e-preview-box {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.r2e-canvas {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--surface);
}
.r2e-meta-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  gap: 8px;
  flex-wrap: wrap;
}
.r2e-kpi-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.35);
  font-size: 12px;
}
.r2e-kpi-strip strong {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: var(--text);
}
.r2e-progress-wrap {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
}
.r2e-progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.r2e-progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}
.r2e-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.2s ease;
}
.r2e-num {
  text-align: right;
  font-family: ui-monospace, monospace;
}
.r2e-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.wb-table td[contenteditable="true"],
.wb-table th[contenteditable="true"] {
  cursor: text;
}
.wb-table td[contenteditable="true"]:focus,
.wb-table th[contenteditable="true"]:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: rgba(37, 99, 235, 0.06);
}

.ai-gate-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.28);
  margin-bottom: 8px;
}
.ai-gate-text {
  font-size: 13px;
  color: var(--text);
  margin: 0 0 10px 0;
}
