.section-editor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.section-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-editor-header h4 { margin: 0; font-size: 14px; color: var(--accent); }
.rules-items-block { margin-top: 12px; }
.rules-items-block .menu-list-header { margin-bottom: 8px; }

.rules-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 11px;
  color: var(--text-muted);
  max-height: 520px;
  overflow-y: auto;
}
.rp-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.rp-title { font-size: 15px; font-weight: 700; color: var(--text); }
.rp-sub { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.rp-close { color: var(--text-dim); font-size: 14px; }
.rp-warning {
  border: 1px solid rgba(110, 207, 176, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--accent);
  font-size: 10px;
  margin-bottom: 14px;
  background: rgba(110, 207, 176, 0.06);
}
.rp-section { margin-bottom: 14px; }
.rp-sec-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.rp-badge {
  font-size: 9px; padding: 2px 8px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(110, 207, 176, 0.25);
}
.rp-text-box, .rp-detail {
  background: var(--surface-raised); border-radius: 8px; padding: 10px;
  border: 1px solid var(--border);
}
.rp-summary {
  display: flex; gap: 6px; margin-bottom: 6px;
}
.rp-summary > div {
  flex: 1; background: var(--surface-raised); border-radius: 6px;
  padding: 8px 6px; text-align: center; font-size: 9px;
  border: 1px solid var(--border);
}
.rp-cell-label { color: var(--text-muted); margin-bottom: 3px; }
.rp-gold { color: var(--accent); font-weight: 600; }
.rp-detail-head { font-weight: 600; color: var(--text); margin-bottom: 6px; font-size: 11px; }
.rp-rule { display: flex; gap: 4px; margin-bottom: 4px; line-height: 1.5; }
.rp-dot { color: var(--text-dim); font-size: 6px; margin-top: 4px; flex-shrink: 0; }
.rp-empty { color: var(--text-dim); font-style: italic; }
