/* Assignment review — the hub, the three-pane workspace and the originality
   settings page. Builds on artlms.css tokens and components; nothing here
   redefines a base component. Logical properties only, so every rule mirrors
   under dir="rtl". Class names are prefixed rv-. */

/* ------------------------------------------------------------ shared bits */
.rv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.rv [hidden], .rv-hub [hidden], .rv-admin [hidden] { display: none !important; }
.rv-empty { text-align: center; padding: var(--s6) var(--s4); color: var(--muted); }
.rv-empty strong { display: block; color: var(--ink-strong); font-size: var(--fs-md); margin-block-end: 4px; }
.rv-empty .btn { margin-block-start: var(--s3); }
.rv-quiet { font-size: var(--fs-xs); color: var(--muted); }
.rv-overdue { color: var(--danger-ink); }
.rv-flash { margin-block-end: var(--s4); }
kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-block-end-width: 2px;
  border-radius: var(--r-xs);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
}

/* ================================================================== hub */
.rv-kpis { margin-block-end: var(--s4); }
.rv-hubfilter { align-items: flex-end; }
.rv-hubfilter .field { margin: 0; }
.rv-hubfilter .field.grow { flex: 1 1 220px; }
.rv-viewpick { border: 0; padding: 0; min-width: 0; }
.rv-viewpick legend { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); margin-block-end: 5px; }
.rv-viewpick .segmented { flex-wrap: wrap; }
.rv-viewpick .seg:focus-within { outline: 2px solid var(--ring); outline-offset: -2px; }
.rv-hubtable { max-height: none; }
.rv-hubtable td { vertical-align: top; }
.rv-hubtable tr.rv-needs > td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .rv-hubtable tr.rv-needs > td:first-child { box-shadow: inset -3px 0 0 var(--accent); }
.rv-hub-title { min-width: 260px; max-width: 460px; }
.rv-hub-title a { color: var(--ink-strong); }
.rv-hub-title a:hover { color: var(--accent-ink); }
.rv-hub-alt, .rv-hub-sub { display: block; font-size: var(--fs-xs); color: var(--muted); margin-block-start: 2px; }
.rv-hub-course { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-block-start: 4px;
  font-size: var(--fs-xs); color: var(--muted); }
.rv-frac { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-hub-meter { display: block; margin-block-start: 5px; min-width: 64px; }
.rv-hubfoot { margin-block-start: var(--s3); }

/* ============================================================ workspace */
.rv {
  --rv-gap: 12px;
  display: flex;
  flex-direction: column;
  padding: var(--s3) var(--s4) var(--s4);
  min-width: 0;
}

/* header: title, facts, counts */
.rv-head { display: flex; flex-direction: column; gap: 6px; padding-block-end: var(--s2); }
.rv-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.rv-back { margin-inline-start: calc(-1 * var(--s2)); }
.rv-title { font-size: var(--fs-h3); line-height: 1.3; min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
.rv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px var(--s4);
  font-size: var(--fs-sm); color: var(--muted); }
.rv-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.rv-meta b { color: var(--ink); font-weight: 600; }
.rv-counts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 2px; }
.rv-counts li {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.rv-counts b { color: var(--ink-strong); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.rv-counts .rv-c-tomark { border-color: var(--accent-tint-2); background: var(--accent-tint); color: var(--accent-ink); }
.rv-counts .rv-c-tomark b { color: var(--accent-ink); }
.rv-counts .rv-c-late b, .rv-counts .rv-c-flag b { color: var(--warn-ink); }

/* the rubric opens as a panel over the panes, not a shove of the layout */
.rv-rubric { position: relative; }
.rv-rubric > summary {
  cursor: pointer;
  color: var(--accent-ink);
  font-weight: 600;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--r-xs);
}
.rv-rubric > summary::-webkit-details-marker { display: none; }
.rv-rubric > summary::after { content: "▾"; font-size: 10px; }
.rv-rubric[open] > summary::after { content: "▴"; }
.rv-rubric > summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.rv-rubric-pop {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 30;
  width: min(820px, 88vw);
  max-height: 60vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-pop);
  padding: var(--s3);
  color: var(--ink);
}
.rv-rubric-pop th[scope="row"] { font-weight: 600; min-width: 150px; vertical-align: top; }
.rv-rubric-pop td { vertical-align: top; }
.rv-levels { display: grid; grid-template-columns: max-content 1fr; gap: 3px var(--s3); font-size: var(--fs-xs); }
.rv-levels dt { font-weight: 600; color: var(--ink-strong); }
.rv-levels dd { color: var(--muted); }

/* toolbar: batch actions, stays in view */
.rv-toolbar {
  position: sticky;
  inset-block-start: var(--topbar-h);
  z-index: 25;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  margin-block-end: var(--rv-gap);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.rv-force { font-size: var(--fs-xs); color: var(--muted); }
.rv-batch {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block-start: var(--s2);
  border-block-start: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.rv-batch-label { font-weight: 600; color: var(--ink-strong); white-space: nowrap; }
.rv-batch-bar { flex: 1 1 auto; height: 6px; background: var(--track); border-radius: var(--r-pill); overflow: hidden; min-width: 80px; }
.rv-batch-bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: var(--r-pill);
  transition: width .3s ease; }
.rv-batch-bar.rv-indet > i { width: 30%; animation: rv-slide 1.1s ease-in-out infinite; }
@keyframes rv-slide { from { transform: translateX(-110%); } to { transform: translateX(360%); } }
[dir="rtl"] .rv-batch-bar.rv-indet > i { animation-name: rv-slide-rtl; }
@keyframes rv-slide-rtl { from { transform: translateX(110%); } to { transform: translateX(-360%); } }
.rv-batch-count { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

/* the three panes: each scrolls on its own, the page does not */
.rv-panes {
  display: grid;
  grid-template-columns: clamp(270px, 24vw, 440px) minmax(0, 1fr) clamp(290px, 24vw, 420px);
  gap: var(--rv-gap);
  height: calc(100vh - var(--topbar-h) - var(--rv-head-h, 190px) - var(--s4));
  min-height: 520px;
}
.rv-pane {
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
}
.rv-pane-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s3) var(--s2);
}
.rv-pane-head h2, .rv-workhead h2 { font-size: var(--fs-md); font-weight: 600; flex: 1 1 auto; min-width: 0; }
.rv-sort select { min-height: 28px; padding-block: 2px; font-size: var(--fs-xs); width: auto; }

/* ------------------------------------------------------------ roster */
.rv-roster { container-type: inline-size; container-name: roster; }
.rv-tabs { display: flex; gap: 2px; padding: 0 var(--s2); border-block-end: 1px solid var(--line); overflow-x: auto; }
.rv-tab {
  appearance: none;
  background: none;
  border: 0;
  border-block-end: 2px solid transparent;
  padding: 6px var(--s2) 7px;
  margin-block-end: -1px;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.rv-tab:hover { color: var(--ink-strong); }
.rv-tab[aria-selected="true"] { color: var(--accent-ink); font-weight: 600; border-block-end-color: var(--accent); }
.rv-tab:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; border-radius: var(--r-xs); }
.rv-tabn { font-variant-numeric: tabular-nums; color: var(--faint); margin-inline-start: 2px; }
.rv-tab[aria-selected="true"] .rv-tabn { color: var(--accent-ink); }

.rv-cols, .rv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 40px 40px 44px 46px;
  align-items: center;
  column-gap: 6px;
  padding-inline: var(--s3);
}
.rv-cols {
  padding-block: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  background: var(--subtle);
  border-block-end: 1px solid var(--line);
}
.rv-c-n { text-align: end; }
.rv-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.rv-list:focus-visible { box-shadow: inset 0 0 0 2px var(--ring); }
.rv-row {
  position: relative;
  min-height: 44px;
  padding-block: 6px;
  border-block-end: 1px solid var(--line);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.rv-row:hover { background: var(--subtle); }
.rv-row[aria-selected="true"] { background: var(--accent-tint); }
.rv-row[aria-selected="true"]::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--accent);
}
.rv-row.rv-active { box-shadow: inset 0 0 0 2px var(--ring); }
.rv-rname { min-width: 0; }
.rv-rname b { display: block; font-weight: 600; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-rsub { display: flex; align-items: center; gap: 6px; margin-block-start: 2px; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; min-width: 0; }
.rv-rmark { font-weight: 600; }
.rv-num { text-align: end; font-variant-numeric: tabular-nums; font-size: var(--fs-xs); color: var(--ink); white-space: nowrap; }
.rv-num.rv-dim { color: var(--faint); }
.rv-pct-amber { color: var(--warn-ink); font-weight: 600; }
.rv-pct-red { color: var(--danger-ink); font-weight: 700; }
.rv-list-empty { padding: var(--s5) var(--s3); text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.rv-keys {
  padding: 6px var(--s3);
  border-block-start: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  background: var(--subtle);
  border-end-start-radius: var(--r-lg);
  border-end-end-radius: var(--r-lg);
}

/* status chips */
.rv-state {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--subtle-2);
  color: var(--muted);
}
.rv-state-submitted { background: var(--info-bg); color: var(--info-ink); }
.rv-state-late { background: var(--warn-bg); color: var(--warn-ink); }
.rv-state-draft { background: var(--accent-tint); color: var(--accent-ink); }
.rv-state-released { background: var(--success-bg); color: var(--success-ink); }
.rv-state-missing.rv-overdue-state { background: var(--danger-bg); color: var(--danger-ink); }

/* a spinner in the cell an action is working on */
.rv-spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-tint-2);
  border-block-start-color: var(--accent);
  border-radius: 50%;
  animation: rv-rot .8s linear infinite;
  vertical-align: -2px;
}
@keyframes rv-rot { to { transform: rotate(360deg); } }

/* narrow roster: the figures fold under the mark, labelled, none dropped */
@container roster (max-width: 400px) {
  .rv-cols { display: none; }
  .rv-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name mark" "name figs";
    row-gap: 2px;
  }
  .rv-row > .rv-rname { grid-area: name; }
  .rv-row > .rv-rmark { grid-area: mark; }
  .rv-row > .rv-rfigs { grid-area: figs; display: inline-flex; gap: 7px; justify-content: flex-end; }
  .rv-rfigs .rv-num { font-size: 11px; }
  .rv-rfigs .rv-num::before { content: attr(data-k) "\00a0"; color: var(--faint); font-weight: 400; }
}
@container roster (min-width: 401px) {
  .rv-rfigs { display: contents; }
}

/* -------------------------------------------------------------- work */
.rv-workhead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  padding: var(--s3) var(--s4) var(--s2);
  border-block-end: 1px solid var(--line);
}
.rv-workmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px var(--s3); font-size: var(--fs-xs); color: var(--muted); }
.rv-workmeta b { color: var(--ink); }
.rv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--s4);
  padding: 6px var(--s4);
  font-size: 11px;
  color: var(--muted);
  background: var(--subtle);
  border-block-end: 1px solid var(--line);
}
.rv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rv-sw { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.rv-sw-class { background: #FDECC8; box-shadow: inset 0 -2px 0 #D97706; }
.rv-sw-web { background: #FFD9C2; box-shadow: inset 0 -2px 0 #C2410C; }
.rv-workbody { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--s4) var(--s5) var(--s5); }
.rv-work[aria-busy="true"] .rv-workbody { opacity: .55; transition: opacity .15s ease; }
.rv-text {
  max-width: 76ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-strong);
}
.rv-text[dir="rtl"] { font-size: 16px; line-height: 1.95; }
.rv-text:empty { display: none; }
.rv-notext { font-size: var(--fs-sm); color: var(--muted); font-style: italic; }
.rv-hl {
  border-radius: 2px;
  padding-block: 1px;
  cursor: pointer;
  color: inherit;
}
.rv-hl-class { background: #FDECC8; box-shadow: inset 0 -2px 0 #D97706; }
.rv-hl-web { background: #FFD9C2; box-shadow: inset 0 -2px 0 #C2410C; }
.rv-hl-both { background: linear-gradient(#FFD9C2, #FDECC8); box-shadow: inset 0 -2px 0 #C2410C; }
.rv-hl:hover, .rv-hl:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.rv-hlnote { margin-block-end: var(--s3); }

.rv-files { margin-block-start: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.rv-files > h3 { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-strong); }
.rv-file { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rv-filehead {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 6px var(--s3);
  background: var(--subtle);
  border-block-end: 1px solid var(--line);
  font-size: var(--fs-xs);
}
.rv-filehead .grow { font-weight: 600; color: var(--ink-strong); overflow-wrap: anywhere; }
.rv-ext {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.rv-file iframe { display: block; width: 100%; height: 70vh; min-height: 420px; border: 0; background: var(--subtle-2); }
.rv-file img { display: block; max-width: 100%; height: auto; margin-inline: auto; background: var(--subtle-2); }
.rv-filetext {
  max-height: 60vh;
  overflow: auto;
  padding: var(--s3) var(--s4);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.rv-filenote { padding: var(--s3); font-size: var(--fs-xs); color: var(--muted); }

/* ------------------------------------------------------------- rail */
.rv-rail { overflow-y: auto; overscroll-behavior: contain; background: var(--subtle); gap: 0; }
.rv-card {
  background: var(--surface);
  border-block-end: 1px solid var(--line);
  padding: var(--s3) var(--s4) var(--s4);
}
.rv-card:first-child { border-start-start-radius: var(--r-lg); border-start-end-radius: var(--r-lg); }
.rv-card:last-child { border-block-end: 0; }
.rv-card-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--s2); margin-block-end: var(--s2); }
.rv-card-head h2 { font-size: var(--fs-md); font-weight: 600; flex: 1 1 auto; }
.rv-note { font-size: 11px; color: var(--muted); }
.rv-sub + .rv-sub { margin-block-start: var(--s3); padding-block-start: var(--s3); border-block-start: 1px dashed var(--line); }
.rv-subhead { display: flex; align-items: center; gap: var(--s2); margin-block-end: 6px; }
.rv-subhead h3 { font-size: var(--fs-sm); font-weight: 600; flex: 1 1 auto; }
.rv-badge:empty { display: none; }
.rv-badge {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 1px 8px;
  border-radius: var(--r);
  background: var(--subtle-2);
  color: var(--ink);
}
.rv-badge.rv-ok { background: var(--success-bg); color: var(--success-ink); }
.rv-badge.rv-amber { background: var(--warn-bg); color: var(--warn-ink); }
.rv-badge.rv-red { background: var(--danger-bg); color: var(--danger-ink); }
.rv-badge.rv-stale { background: var(--subtle-2); color: var(--muted); font-family: var(--sans); }
.rv-subbody { font-size: var(--fs-sm); }
.rv-verdict { font-size: var(--fs-sm); color: var(--ink); margin-block-end: var(--s2); }
.rv-staleline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--warn-ink);
  background: var(--warn-bg);
  border-radius: var(--r);
  padding: 4px 8px;
  margin-block-end: var(--s2);
}
.rv-match {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-block-end: 6px;
  background: var(--surface);
  scroll-margin: var(--s4);
}
.rv-match.rv-pulse { animation: rv-pulse 1.2s ease; }
@keyframes rv-pulse { 0%, 60% { box-shadow: 0 0 0 3px var(--ring); } 100% { box-shadow: none; } }
.rv-matchhead {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 5px var(--s2);
  background: var(--subtle);
  border-block-end: 1px solid var(--line);
  font-size: var(--fs-xs);
}
.rv-matchhead .grow { min-width: 0; overflow-wrap: anywhere; }
.rv-matchhead strong { color: var(--ink-strong); }
.rv-matchwhere { display: block; color: var(--muted); }
.rv-passage {
  padding: 6px var(--s2) 8px;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.rv-passage::before { content: "“"; color: var(--faint); }
.rv-passage::after { content: "”"; color: var(--faint); }
.rv-matchlink { display: inline-block; padding: 0 var(--s2) 6px; font-size: var(--fs-xs); }
.rv-linkbtn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.rv-linkbtn:hover { text-decoration: underline; }
.rv-linkbtn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--r-xs); }
.rv-scope { margin-block-start: var(--s2); font-size: 11px; color: var(--muted); line-height: 1.5; }
.rv-scope b { color: var(--ink); font-weight: 600; }
.rv-provlist { display: flex; flex-wrap: wrap; gap: 4px; margin-block-start: 4px; }
.rv-provlist .chip { font-size: 10.5px; }

/* the AI proposal */
.rv-total { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin-block-end: var(--s2); }
.rv-total .rv-big { font-size: var(--fs-h2); font-weight: 600; color: var(--ink-strong); font-variant-numeric: tabular-nums; line-height: 1.1; }
.rv-total .rv-of, .rv-of { font-size: var(--fs-sm); color: var(--muted); }
.rv-crits { display: flex; flex-direction: column; gap: 6px; margin-block-end: var(--s3); }
.rv-critcard { border: 1px solid var(--line); border-radius: var(--r); padding: 6px var(--s2) 8px; }
.rv-critline { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); }
.rv-critline strong { flex: 1 1 auto; min-width: 0; color: var(--ink-strong); font-size: var(--fs-xs); }
.rv-critline .rv-sc { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.rv-critcard .meter { margin-block: 5px 4px; }
.rv-evidence {
  font-size: var(--fs-xs);
  line-height: 1.5;
  padding-inline-start: var(--s2);
  border-inline-start: 2px solid var(--line-strong);
  margin-block: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.rv-evidence.rv-notfound { border-inline-start-color: var(--danger); }
.rv-warnline { display: block; font-size: 11px; color: var(--danger-ink); font-weight: 600; }
.rv-why { font-size: 11px; color: var(--muted); line-height: 1.5; }
.rv-conf { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.rv-conf-low { color: var(--danger-ink); }
.rv-list2 { margin-block: 2px var(--s2); padding-inline-start: 16px; list-style: disc; font-size: var(--fs-xs); line-height: 1.55; }
.rv-kick { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-block-start: var(--s2); }
.rv-draft {
  font-size: var(--fs-xs);
  line-height: 1.6;
  padding: 6px var(--s2);
  background: var(--subtle);
  border-radius: var(--r);
  margin-block: 2px var(--s2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rv-checks { font-size: 11px; color: var(--muted); padding-inline-start: 16px; list-style: circle; }
.rv-aimeta { font-size: 11px; color: var(--muted); margin-block-start: var(--s2); }
.rv-unavail {
  font-size: var(--fs-xs);
  color: var(--warn-ink);
  background: var(--warn-bg);
  border-inline-start: 3px solid var(--warn);
  border-radius: var(--r);
  padding: 6px var(--s2);
}
.rv-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-block-start: var(--s3); }

/* the mark */
.rv-markform .field { margin-block-end: var(--s2); }
.rv-scoreline { display: flex; align-items: flex-end; gap: var(--s3); }
.rv-scorebox { display: inline-flex; align-items: center; gap: 6px; }
.rv-scorebox input { width: 6.5rem; font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-pct { font-size: var(--fs-sm); color: var(--muted); padding-block-end: 8px; }
.rv-crit { margin-block-end: var(--s2); font-size: var(--fs-xs); }
.rv-crit > summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; padding-block: 4px; }
.rv-crit > summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--r-xs); }
.rv-critrow { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem auto; align-items: center; gap: 6px; margin-block: 5px; }
.rv-critname { min-width: 0; overflow-wrap: anywhere; }
.rv-critin { min-height: 28px; padding-block: 2px; }
.rv-error { font-size: var(--fs-xs); color: var(--danger-ink); background: var(--danger-bg); border-radius: var(--r); padding: 6px var(--s2); }
.rv-markview .rv-big { font-size: var(--fs-h2); font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-comment-view { font-size: var(--fs-sm); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--subtle); border-radius: var(--r); padding: var(--s2); }

/* ============================================================ settings */
.rv-admin-help { margin-block: 6px var(--s4); }
.rv-admin-providers { border: 0; padding: 0; margin-block-end: var(--s4); }
.rv-admin-providers legend { margin-block-end: var(--s2); }
.rv-provider {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-block-end: 1px solid var(--line);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.rv-provider:last-of-type { border-block-end: 0; }
.rv-provider input { width: 15px; height: 15px; min-height: 0; accent-color: var(--accent); flex: none; }
.rv-provider-need { display: block; font-size: var(--fs-xs); color: var(--muted); }
.rv-provider-need code { font-family: var(--mono); font-size: 11px; }
.rv-admin-q { max-width: 22rem; }

/* ========================================================== responsive */
@media (max-width: 1099px) {
  .rv-panes { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .rv-roster .rv-list { max-height: 46vh; }
  .rv-workbody { overflow: visible; }
  .rv-rail { overflow: visible; }
  .rv-toolbar { inset-block-start: var(--topbar-h); }
  .rv-file iframe { height: 60vh; }
}
@media (max-width: 640px) {
  .rv { padding: var(--s2) var(--s3) var(--s3); }
  .rv-workbody { padding: var(--s3); }
  .rv-toolbar { position: static; }
  .rv-rubric-pop { width: calc(100vw - 2 * var(--s3)); }
  .rv-hub-title { min-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-spin, .rv-batch-bar.rv-indet > i, .rv-match.rv-pulse { animation: none; }
}
@media print {
  .rv-toolbar, .rv-roster, .rv-card-actions, .rv-keys { display: none !important; }
  .rv-panes { display: block; height: auto; }
  .rv-pane { box-shadow: none; border: 0; }
}
