.rr .pagehead .actions:empty { display: none; }
.rr .rr-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 200px));
  gap: 12px;
  margin-bottom: 20px;
}
.rr #app .rr-filters .field { margin: 0; }
.rr .archivecard { display: flex; flex-direction: column; min-width: 0; }
.rr .archivecard .actions { margin-top: auto; padding-top: 16px; }
.rr #rrCloudRetry { color: #a33730; border-color: #e2b8b4; }
.rr .rr-score, .rr .datatable { font-variant-numeric: tabular-nums; }
.rr .rr-table td, .rr .rr-table th { text-align: center; }
.rr .rr-table td { overflow-wrap: anywhere; }
.rr .rr-table .rr-pairing { min-width: 118px; }
.rr .rr-table .rr-score { white-space: nowrap; }
.rr .rr-table .rr-date { white-space: nowrap; }
.rr .tablewrap:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.rr .rr-match-state { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #f0f0f3; color: #4f4f59; white-space: nowrap; }
.rr .rr-match-state.done { background: #e9f5ee; color: #236042; }
.rr .rr-match-state.forfeit { background: #fff2dc; color: #744800; }
.rr .rr-meta { color: var(--muted); font-size: 12px; }
.rr .rr-empty { padding: 30px 16px; text-align: center; }
.rr .rr-empty h2 { margin: 0 0 6px; }
.rr .rr-empty p { margin: 0; color: var(--muted); }
.rr #rrStatus:empty { margin: 0; }
.rr #rrStatus { margin-bottom: 12px; }
.rr #rrStatus button { margin-left: 8px; }
.rr .rr-error { color: var(--red); }
.rr .rr-guide-intro { max-width: 55ch; margin: 0 0 24px; }
.rr .guide-box ol { padding-left: 1.55em; margin: 0; }
.rr .guide-box li + li { margin-top: .45em; }
.rr .rr-guide-table { margin: 8px 0; min-width: 0; }
.rr #rrGuide { width: min(760px, calc(100% - 24px)); }
.rr #rrEdit { width: min(620px, calc(100% - 24px)); }
.rr dialog .modalhead form { margin: 0; }
.rr .rr-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rr .rr-form-grid :is(input,select), .rr .rr-edit-body label > :is(input,select,textarea) { display: block; width: 100%; margin-top: 4px; }
.rr .rr-edit-body > label { margin-bottom: 14px; }
.rr .rr-edit-body .rr-error:empty { display: none; }
.rr :is(button, a) { touch-action: manipulation; }
.rr button:not(:disabled):active { transform: scale(.98); }
.rr .rr-form-grid[hidden] { display: none; }
/* 同类表格共用列宽，列位置不随各组内容变化。 */
.rr #rrView .rr-table { table-layout: fixed; }
.rr #rrView .rr-points-table { min-width: 38rem; }
.rr #rrView .rr-points-table th { white-space: normal; }
.rr #rrView .rr-points-table th:nth-child(2) { width: 20%; }
@media (min-width: 601px) {
  .rr #rrView .rr-schedule-table { min-width: 38rem; }
  .rr #rrView .rr-schedule-table th:nth-child(2) { width: 10%; }
  .rr #rrView .rr-schedule-table th:nth-child(4) { width: 26%; }
  .rr #rrView .rr-schedule-table th:nth-child(n+5) { width: 14%; }
}
.rr #app .rr-table td { white-space: normal; }
.rr #app .rr-table .rr-date, .rr #app .rr-table .rr-score { white-space: nowrap; }
.rr #app .tablewrap { max-width: 100%; overflow: auto; }
.rr .rr-guide-table :is(th,td) { text-align: center; }
.rr #rrEdit .modalhead button, .rr #rrGuide .modalhead button { width: 44px; height: 44px; font-size: 19px; }
@media screen and (max-width: 600px) {
  .rr #app .rr-table :is(th,td) { padding: 9px; }
  .rr #app .rr-table button.small { min-height: 44px; }
}
@media screen and (max-width: 600px) {
  .rr #app .rr-schedule-table :is(tbody, tr) { display: block; }
  .rr #app .rr-schedule-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .rr #app .rr-schedule-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr);
    grid-template-areas: "date date state" "left score right" "action action action";
    align-items: center;
    gap: 8px 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  .rr #app .rr-schedule-table tbody tr:last-child { padding-bottom: 0; }
  .rr #app .rr-schedule-table td { border: 0; padding: 0; min-width: 0; }
  .rr .rr-schedule-table .rr-left { grid-area: left; }
  .rr .rr-schedule-table .rr-score { grid-area: score; }
  .rr .rr-schedule-table .rr-right { grid-area: right; }
  .rr .rr-schedule-table .rr-row-state { grid-area: state; justify-self: end; }
  .rr .rr-schedule-table .rr-date { grid-area: date; justify-self: start; color: var(--muted); }
  .rr .rr-schedule-table .rr-row-action { grid-area: action; justify-self: end; }
  .rr #app .rr-schedule-table tbody tr:not(:has(.rr-row-action)) { grid-template-areas: "date date state" "left score right"; }
}
.rr #rrEdit .tablewrap { overflow: auto; }
.rr #rrEdit .rr-form-grid select { min-height: 44px; }

.rr .rr-cohort + .rr-cohort{margin-top:20px}
.rr .rr-cohort h3{margin:12px 0 8px}
@media screen and (max-width: 600px) {
  body.rr:not(.is-admin) .sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.rr.is-admin .sidebar nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rr .sidebar header #cloudBar button { height: 30px; min-height: 30px; padding: 4px 5px; }
  .rr .sidebar header #rrHelp { font-size: 10px; padding: 4px 3px; }
  .rr .sidebar header #rrCloudRetry { font-size: 10px; }
}
.rr .rr-cloud-error:not(:empty){margin-bottom:12px;padding:10px 12px;border-radius:10px;background:#fff4df;color:#684408}
.rr .rr-recovery[hidden]{display:none}
