/* Analytics Reports editor. Same visual language as the questions editor, kept
   in its own file so a change to one page cannot silently reshape the other. */
.r-row { cursor: pointer; }
.r-row:hover { background: var(--hover); }
.r-row code { font-size: 12px; }
.r-row--warn td:first-child { box-shadow: inset 3px 0 0 var(--warn, #b26a00); }

.r-editor > td { background: var(--surface-2); padding: 16px 14px; }
.r-editor-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px 18px; }
.r-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #555; }
.r-field span { font-weight: 600; }
.r-wide { grid-column: 1 / -1; }
.r-field textarea,
.r-field input[type="text"],
.r-field select {
  font-family: inherit; font-size: 13px; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 5px;
}
.r-field textarea[data-k="query"] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; resize: vertical; }

.r-surfaces { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.r-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

.r-tag {
  display: inline-block; padding: 1px 7px; border-radius: 10px;
  font-size: 11px; background: var(--surface-2); border: 1px solid var(--border);
}
.r-tag--ai_safe { border-color: #7a9; }

/* The GROUP BY guard. Loud on purpose — an ai_safe report without a grouping
   can send per-customer rows to the model. */
.r-warn {
  margin: 12px 0; padding: 10px 14px; border-radius: 6px;
  border: 1px solid #d9a441; background: #fff8e8; color: #6b4a00; font-size: 13px;
}
.r-warn ul { margin: 6px 0 0; padding-left: 20px; }
.r-warn code { font-size: 12px; }
.r-warn-inline { color: #b26a00; font-size: 12px; }
