.rec-body { display: grid; gap: 14px; }
.rec-table-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.rec-table-heading p { color: var(--muted); font-size: .9rem; }
.rec-scroll-hint { display: none; }
.rec-table-scroll { position: relative; min-width: 0; overflow-x: auto; padding: 0 2px 2px; }
.rec-table-scroll:focus-visible { outline-offset: -3px; }
.rec-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rec-table th, .rec-table td { padding: 8px 10px; border: 1px solid var(--line); text-align: center; }
.rec-table th { font-size: .9rem; background: var(--page); }
.rec-table th[scope="row"] { text-align: left; }
.rec-table .rec-unknown { background: var(--page); }
.rec-prediction { color: var(--brand-purple); background: var(--tint); font-weight: 650; }
.rec-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.rec-actions label { font-weight: 650; }
.rec-actions select { width: auto; min-width: 3.5rem; }
#rec-count { width: 4rem; padding: 7px 8px; }
#rec-resample, #rec-calculate, #rec-round { padding: 7px 12px; font-weight: 650; }
#rec-resample, #rec-round { color: var(--brand-purple); border-color: var(--control-line); }
#rec-resample:hover, #rec-round:hover { background: var(--tint); }
#rec-round[aria-pressed="true"] { background: var(--brand-purple); border-color: var(--brand-purple); color: var(--surface); }
#rec-calculate { color: var(--surface); background: var(--brand-purple); border-color: var(--brand-purple); }
#rec-calculate:hover { background: var(--plot-background); }
#rec-result { margin-top: 20px; }
#rec-error:empty { display: none; }
.rec-key { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-purple); font-size: .875rem; }
.rec-key::before { content: ""; width: .85rem; height: .85rem; background: var(--tint); border: 1px solid var(--line); border-radius: 2px; }
.rec-note { color: var(--muted); font-size: .9rem; }

@media (max-width: 715px) {
  .rec-scroll-hint { display: block; }
}

@media (max-width: 580px) {
  .rec-table th, .rec-table td { padding: 6px; }
  .rec-table { min-width: 34rem; }
}
