/* Piece reports (owner ruling 2026-12-05): the Experimental badge, the open
   report count, the quirk line and the report dialog. Builder and map page.
   Tokens only (omni-ui.css + public-site/site.css). */

/* the badge and the count, on a palette tile, a piece editor and an obstacle row */
.rc-pbadges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.rc-btile .rc-pbadges { margin-left: var(--space-1); }
.rc-pexp, .rc-pcount {
  display: inline-flex; align-items: center; border-radius: var(--r-chip); padding: 0 var(--space-1);
  font: 600 var(--fs-micro)/1.6 var(--site-mono); letter-spacing: .02em; white-space: nowrap;
}
.rc-pexp { color: var(--warn); border: 1px solid var(--warn); }
.rc-pcount { color: var(--text-dim); border: 1px solid var(--border-strong); }
.rc-pquirk { margin: 0; font-size: var(--fs-small); color: var(--text-dim); }

/* the piece editor's row: badge, quirk, the report button */
.rc-preport-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; }
.rc-preport-row .rc-pquirk { flex: 1 1 100%; }
.rc-bobj > .rc-pquirk { margin: var(--space-1) 0 0; }
.rc-preport-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px dashed var(--border); }

/* after a test race: "Report this piece" under a marked piece */
.rc-preport-mini { margin: 0 var(--space-3) var(--space-2); }

/* the map page entry */
.rc-preport-entry { margin-top: var(--space-4); }

/* the dialog (gate.js look) */
.rc-preport { max-width: min(520px, calc(100vw - 2 * var(--space-4))); }
.rc-preport-box { max-height: calc(100vh - 2 * var(--space-6)); overflow-y: auto; }
.rc-preport-form, .rc-preport-done { display: flex; flex-direction: column; gap: var(--space-3); }
.rc-preport-form[hidden], .rc-preport-done[hidden], .rc-preport-field[hidden], .rc-preport-info[hidden] { display: none; }
.rc-preport-title { font-size: 28px; }
.rc-preport-field { display: flex; flex-direction: column; gap: var(--space-1); }
.rc-preport-info { display: flex; flex-direction: column; gap: var(--space-1); }
.rc-preport-reasons { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.rc-preport-reasons legend { padding: 0; margin-bottom: var(--space-1); }
.rc-preport-reason { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; color: var(--text); }
.rc-preport-reason input { accent-color: var(--site-accent); margin: 0; }
.rc-preport-note { min-height: 80px; resize: vertical; }
.rc-preport-left { margin: 0; font-size: var(--fs-micro); color: var(--text-faint); text-align: right; }
.rc-preport .rc-status:empty { display: none; }

@media (max-width: 480px) {
  .rc-preport-title { font-size: 24px; }
  .rc-preport .rc-gate-box { padding: var(--space-4); }
}
