/* ============================================================================
   Revamp components: the styles behind the Jinja macros in app/templates/ui/.
   Loaded after solar-tokens.css, only by revamp templates (R04). Tokens only: no raw colours,
   no px font sizes below the 12 px floor. Every class is prefixed rv- (R13); Bootstrap's own
   class names are never restyled here. Test hooks use data-testid / data-ui, never these classes (R09).
   Spec: marketing/06_brand/ux_concepts/handoff/screens/foundations.yaml (macro_contracts).
   ========================================================================= */

/* ---- page base ------------------------------------------------------------ */
[data-theme] {
  color: var(--ink);
  font-family: var(--f-ui);
}
.rv-body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font: var(--w-reg) var(--t-body)/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.rv-body :focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
}
.rv-body :focus:not(:focus-visible) { outline: none; }
/* Skip link (F-34): fixed and above the frame's own layers (header 1020, rail 1030, popovers
   1060, tooltips 1085), so it is on top and inside the viewport when it has focus, even after
   a scroll. An open dialog traps focus, so the link cannot take focus over one. */
.rv-skip {
  position: fixed;
  left: var(--sp-4);
  top: calc(-1 * var(--sp-8));
  z-index: 1100;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line-ctl);
  border-radius: var(--r);
  background: var(--raised);
  color: var(--ink);
  font-weight: var(--w-emph);
}
.rv-skip:focus { top: var(--sp-4); }
.rv-main:focus { outline: none; }
.rv-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-bottom: 0;
}
.rv-link:hover { color: var(--ink-2); border-bottom: 0; }
.rv-link[aria-current] { font-weight: var(--w-emph); text-decoration: none; }
.rv-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- the bar's title and the page head (owner 2026-11-15, HEADER-AND-MARK.md) ----------------------
   Every 72 px page bar shows only the product name (ui/app_name.html). The page's own name and lead sit below the bar's line, at the
   start of <main> (revamp/base.html, blocks page_title and page_lead). */
.rv-appname { flex: none; margin: 0; color: var(--ink); font: var(--w-emph) var(--t-sub)/1.3 var(--f-ui); white-space: nowrap; }
.rv-page-head { margin-bottom: var(--sp-5); }
.rv-page-head__title { margin: 0; color: var(--ink); font: var(--w-display) var(--t-title)/1.3 var(--f-ui); overflow-wrap: anywhere; }
.rv-page-head__lead { margin: var(--sp-1) 0 0; color: var(--ink-2); font: var(--w-reg) var(--t-body)/1.5 var(--f-ui); }

/* ---- type scale (foundations.yaml tokens.type) ----------------------------- */
.rv-t-display-l { font: var(--w-display) var(--t-display-l)/.95 var(--f-ui); letter-spacing: var(--tr-tight); }
.rv-t-display-m { font: var(--w-display) var(--t-display-m)/1.05 var(--f-ui); letter-spacing: var(--tr-tight); }
.rv-t-heading   { font: var(--w-display) var(--t-screen)/1.15 var(--f-ui); }
.rv-t-title     { font: var(--w-emph) var(--t-title)/1.3 var(--f-ui); }
.rv-t-body      { font: var(--w-reg) var(--t-sub)/1.55 var(--f-ui); }
.rv-t-body-s    { font: var(--w-reg) var(--t-body)/1.5 var(--f-ui); }
.rv-t-label {
  font: 500 var(--t-micro)/1.2 var(--f-data);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
}
.rv-t-data { font: 500 var(--t-data)/1.3 var(--f-data); font-variant-numeric: tabular-nums; }
.rv-muted { color: var(--ink-3); }
.rv-soft { color: var(--ink-2); }
@media (max-width: 1023px) {
  .rv-t-display-l { font-size: var(--t-display-m); }
}
@media (max-width: 767px) {
  .rv-t-display-l, .rv-t-display-m { font-size: 32px; }
}

/* ---- button ---------------------------------------------------------------- */
.rv-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--ctl);
  padding: 0 var(--sp-4);
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: var(--w-emph) var(--t-body)/1 var(--f-ui);
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rv-btn--s { height: var(--h-sm); padding: 0 var(--sp-3); font-size: var(--t-data); }
.rv-btn--l { height: var(--ctl-lg); padding: 0 var(--sp-5); font-size: var(--t-sub); }
.rv-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
}
.rv-btn__spin {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rv-spin .8s linear infinite;
}
@keyframes rv-spin { to { transform: rotate(360deg); } }
/* Loading without an icon (DV-foundations-1, option C): the spinner is centred over the label,
   out of the flow, so the width never changes. The label keeps its space and stays the accessible
   name: transparent text, never visibility: hidden. */
.rv-btn__over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.rv-btn__over ~ .rv-btn__label { color: transparent; }
@media (forced-colors: active) {
  .rv-btn__over ~ .rv-btn__label { forced-color-adjust: none; color: transparent; }
}

.rv-btn--primary   { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.rv-btn--inverse   { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rv-btn--secondary { border-color: var(--line-ctl); color: var(--ink); }
.rv-btn--ghost     { color: var(--ink-2); }
.rv-btn--danger    { border-color: var(--line-ctl); color: var(--ink); }   /* outlined, never a red fill (D36) */

.rv-btn--primary:hover:not(.is-disabled),
[data-force="hover"] .rv-btn--primary:not(.is-disabled) { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.rv-btn--inverse:hover:not(.is-disabled),
[data-force="hover"] .rv-btn--inverse:not(.is-disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.rv-btn--secondary:hover:not(.is-disabled),
.rv-btn--ghost:hover:not(.is-disabled),
[data-force="hover"] .rv-btn--secondary:not(.is-disabled),
[data-force="hover"] .rv-btn--ghost:not(.is-disabled) { background: var(--hover); color: var(--ink); }
.rv-btn--danger:hover:not(.is-disabled),
[data-force="hover"] .rv-btn--danger:not(.is-disabled) {
  background: var(--hover);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rv-btn:active:not(.is-disabled),
[data-force="active"] .rv-btn:not(.is-disabled) { box-shadow: inset 0 0 0 999px var(--press); }
.rv-btn:focus-visible,
[data-force="focus"] .rv-btn:not(.is-disabled) {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r);
}
.rv-btn.is-disabled,
.rv-btn.is-disabled:hover {
  background: var(--sunk);
  border-color: var(--line);
  color: var(--ink-4);
  cursor: not-allowed;
}
.rv-btn.is-loading { cursor: progress; }

/* ---- chip ------------------------------------------------------------------ */
.rv-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--h-sm);
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-ctl);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font: var(--w-reg) var(--t-data)/1 var(--f-ui);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rv-chip--static { cursor: default; }
.rv-chip__count { font: 500 var(--t-data)/1 var(--f-data); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rv-chip__dot { width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--primary); }
.rv-chip__dot--neutral { background: var(--ink-3); }
button.rv-chip:hover:not(:disabled),
[data-force="hover"] button.rv-chip:not(:disabled) { background: var(--hover); color: var(--ink); }
.rv-chip[aria-pressed="true"],
.rv-chip[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rv-chip[aria-pressed="true"] .rv-chip__count { color: var(--accent-ink); }
.rv-chip:focus-visible,
[data-force="focus"] button.rv-chip:not(:disabled) {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-pill);
}
.rv-chip:disabled { border-color: var(--line); color: var(--ink-4); cursor: not-allowed; }
.rv-chip:disabled .rv-chip__count { color: var(--ink-4); }
/* chip that opens a dialog (chip(haspopup='dialog'), OD-kn-17): trailing chevron 16 px --ink-3, never a pressed look */
.rv-chip__chev { flex: none; margin-inline-end: calc(var(--sp-1) * -1); color: var(--ink-3); font-size: 16px; line-height: 1; }
.rv-chip--popup:disabled .rv-chip__chev { color: var(--ink-4); }

/* ---- status pill ----------------------------------------------------------- */
.rv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--h-chip);
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 500 var(--t-micro)/1 var(--f-data);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  white-space: nowrap;
}
.rv-pill--needs   { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.rv-pill--neutral { border-color: var(--line-3); color: var(--ink-2); }
.rv-pill--done    { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rv-pill--quiet   { background: var(--sunk); border-color: var(--line); color: var(--ink-3); }
/* S15 (OD-5 resolved): a failed job is outlined in --error, text and border only, never a fill (D36). */
.rv-pill--failed  { background: transparent; border-color: var(--error); color: var(--error); }

/* ---- blocker (banner.html): outlined red, text only (D36) ------------------ */
.rv-blocker {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
  height: var(--h-chip);
  padding: 0 10px;
  border: 1px solid var(--error);
  border-radius: var(--r-pill);
  color: var(--error);
  font: 500 var(--t-micro)/1 var(--f-data);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- field ----------------------------------------------------------------- */
.rv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rv-field__label { color: var(--ink-2); font: var(--w-reg) var(--t-body)/1.3 var(--f-ui); }
.rv-field__wrap { position: relative; display: flex; }
/* Form text is 14 px (--t-body) and 16 px (--t-sub) on phones (A-26; below). This covers every
   input, select and textarea on a revamp page, also the hidden radios of the segmented control and
   Bootstrap's own form controls, so the computed size never falls back to the browser's 13.33 px. */
.rv-body :is(input, select, textarea) { font-size: var(--t-body); }
.rv-field__control {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: var(--ctl);
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-ctl);
  border-radius: var(--r);             /* 8, same as buttons (DV-foundations-2, OD-10); --r-in is map squares only */
  background: var(--field-bg);
  color: var(--ink);
  font: var(--w-reg) var(--t-body)/1 var(--f-ui);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rv-field__control::placeholder { color: var(--ink-3); opacity: 1; }
select.rv-field__control { appearance: none; padding-right: var(--sp-7); cursor: pointer; }
/* type 'textarea' (Workspace · Members B2/S8): 2 rows (min 64 px), the screen's script grows it to 5; same border, radius and text size */
textarea.rv-field__control { display: block; height: auto; min-height: 64px; padding: var(--sp-2) var(--sp-3); line-height: 1.45; resize: none; }
.rv-field__chev {
  position: absolute;
  right: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.rv-field__control:hover:not(:disabled),
[data-force="hover"] .rv-field__control:not(:disabled) { border-color: var(--ink-3); }
.rv-field__control:focus,
.rv-field__control:focus-visible,
[data-force="focus"] .rv-field__control:not(:disabled) {
  background: var(--raised);
  border-color: var(--ink);
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 1px;
  border-radius: var(--r);
}
.rv-field__control:disabled { background: var(--sunk); border-color: var(--line); color: var(--ink-3); cursor: not-allowed; }
.rv-field--error .rv-field__control,
.rv-field__control[aria-invalid="true"] { border-color: var(--error); }
.rv-field__hint { margin: 0; color: var(--ink-3); font-size: var(--t-meta); line-height: 1.4; }
.rv-field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--error);
  font-size: var(--t-data);
  line-height: 1.4;
}

/* ---- segmented (radio group; arrow keys are native) ------------------------- */
.rv-seg {
  display: inline-flex;
  box-sizing: border-box;
  height: var(--h-sm);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-ctl);
  border-radius: var(--r);
  flex-shrink: 0;
  max-width: 100%;                       /* never wider than its container: labels wrap inside the 32 px height (issue 203, A-27) */
}
.rv-seg__opt { position: relative; display: inline-flex; min-width: 0; margin: 0; }
.rv-seg__opt:first-of-type .rv-seg__txt { border-radius: 7px 0 0 7px; }
.rv-seg__opt:last-of-type .rv-seg__txt { border-radius: 0 7px 7px 0; }
.rv-seg__opt + .rv-seg__opt { border-left: 1px solid var(--line); }
.rv-seg__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rv-seg__txt {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--sp-3);
  color: var(--ink-2);
  font: var(--w-emph) var(--t-data)/1.1 var(--f-ui);
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rv-seg__input:hover + .rv-seg__txt,
[data-force="hover"] .rv-seg__txt { background: var(--hover); color: var(--ink); }
.rv-seg__input:checked + .rv-seg__txt { background: var(--accent); color: var(--accent-ink); }
.rv-seg__input:focus-visible + .rv-seg__txt,
[data-force="focus"] .rv-seg__input:checked + .rv-seg__txt {
  box-shadow: inset 0 0 0 var(--focus-w) var(--focus), inset 0 0 0 4px var(--ground);
}
.rv-seg__input:disabled + .rv-seg__txt { color: var(--ink-4); cursor: not-allowed; }

/* ---- answer map squares (map.html) ------------------------------------------ */
.rv-sq {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: var(--r-in);
  background: var(--map-fully);
}
.rv-sq--partial { background: var(--map-partial); }
.rv-sq--not { background: var(--map-not); box-shadow: inset 0 0 0 1px var(--line-3); }
.rv-sq--needs { background: var(--map-needs); }
.rv-sq--empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line-3); }
.rv-sq--selected { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.rv-map-row { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-mini {
  display: grid;
  grid-template-columns: repeat(10, 8px);
  gap: 2px;
  flex: none;
}
.rv-mini .rv-sq { width: 8px; height: 8px; border-radius: 2px; }
.rv-legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0; padding: 0; list-style: none; }
.rv-legend__item { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ink-2); font-size: var(--t-data); }
.rv-legend .rv-sq { width: 12px; height: 12px; border-radius: 3px; }

/* ---- answer_map (map.html answer_map, answer_legend): ONE map for the Verdict and Answering ----------------
   verdict.yaml R13 + shape_cue (vd-S1, vd-B2 to B4, vd-S9, vd-S10); answering.yaml AN-04, AN-28, C1-1.
   Rows, sizes, rings, dot and selected ring are defined HERE once; `.rv-map--live` (Answering) only removes
   the interaction and adds the live motion. mini_map and the Bids home legend keep the rules above:
   everything below is scoped to .rv-map and to the 12 px square modifier .rv-sq--12 (legend, List, Table, Lanes). */
.rv-map { --rv-map-dot: var(--ink); display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
[data-theme="night"] .rv-map { --rv-map-dot: var(--ground); }
.rv-map__row { position: relative; display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.rv-map__name {
  align-self: flex-start;
  margin: 0;
  border-bottom: 0;                    /* the legacy `a` rule draws a 1 px underline border: the row is 20 + 4 + 22 */
  color: var(--ink);
  font: var(--w-reg) var(--t-body)/20px var(--f-ui);
  overflow-wrap: anywhere;
  text-decoration: none;
}
a.rv-map__name:hover { border-bottom: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a.rv-map__name:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.rv-map__line { display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 0; }
.rv-map__sqs, .rv-map__pic { display: flex; flex: 1 1 0; flex-wrap: wrap; gap: 5px; min-width: 0; }
.rv-map__pic { display: none; }
.rv-map__count {
  flex: none;
  width: max-content;
  min-width: 52px;
  color: var(--ink-3);
  font: var(--w-reg) var(--t-data)/22px var(--f-data);
  text-align: right;
}
.rv-map__note { margin: var(--sp-2) 0 0; color: var(--ink-3); font-size: var(--t-data); }
.rv-map__rowlink { display: none; }
.rv-map--interactive .rv-map__name--plain { display: none; }

/* the five square styles (shape_cue, issue 242): fully / partially = the ramp fills; not = fill + a SOLID 1 px ring;
   hollow = the 3A BROKEN ring (an SVG mask on ::before: 8 whole dashes, so it never looks like the browser's
   grainy `dashed`); needs = fill + the centred dot (+ a --solar-ink ring, the same amber as the fill on Night).
   The ring belongs to the SQUARE, not to its container (OD-vd-18): the 22 and 11 px squares of .rv-map and the
   12 px square (.rv-sq--12, map_square size='12': the legend, the Answers List row, the Table grade cell and the
   Lanes card). The mini maps (8, 6 and 4 px) draw no ring: no cue fits there (the whole-map preview says it). */
.rv-map .rv-sq, .rv-sq--12 { position: relative; display: inline-grid; place-items: center; }
.rv-map .rv-sq { width: 22px; height: 22px; border-radius: var(--r-in); --rv-dot: 6px; }
.rv-sq--12 { width: 12px; height: 12px; border-radius: 3px; --rv-dot: 4px; --rv-map-dot: var(--ink); }
[data-theme="night"] .rv-sq--12 { --rv-map-dot: var(--ground); }
.rv-map .rv-sq--not, .rv-sq--12.rv-sq--not { box-shadow: inset 0 0 0 1px var(--line-ctl); }
.rv-map .rv-sq--empty, .rv-sq--12.rv-sq--empty { box-shadow: none; }
.rv-map .rv-sq--empty::before, .rv-sq--12.rv-sq--empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--line-ctl);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Crect x='.5' y='.5' width='21' height='21' rx='3.5' fill='none' stroke='black' stroke-width='1' stroke-dasharray='6 3 7.4978 3' stroke-dashoffset='15.4978'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Crect x='.5' y='.5' width='21' height='21' rx='3.5' fill='none' stroke='black' stroke-width='1' stroke-dasharray='6 3 7.4978 3' stroke-dashoffset='15.4978'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.rv-sq--12.rv-sq--empty::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Crect x='.5' y='.5' width='11' height='11' rx='2.5' fill='none' stroke='black' stroke-width='1' stroke-dasharray='2 1 5.927 1' stroke-dashoffset='7.927'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Crect x='.5' y='.5' width='11' height='11' rx='2.5' fill='none' stroke='black' stroke-width='1' stroke-dasharray='2 1 5.927 1' stroke-dashoffset='7.927'/%3E%3C/svg%3E"); }
.rv-map .rv-sq--needs, .rv-sq--12.rv-sq--needs { box-shadow: inset 0 0 0 1px var(--solar-ink); }
.rv-map .rv-sq--needs::after, .rv-sq--12.rv-sq--needs::after {
  content: "";
  width: var(--rv-dot, 6px);
  height: var(--rv-dot, 6px);
  border-radius: 50%;
  background: var(--rv-map-dot, var(--ink));
}
/* selected = 2 px --ink, offset 2 (not --focus: amber on Night would leave a persistent amber ring, D35);
   keyboard focus = the --focus outline on the same square (roving tabindex puts it on the selected one) */
.rv-map .rv-sq--selected { outline: var(--focus-w) solid var(--ink); outline-offset: 2px; }
.rv-map__btn {
  display: inline-flex;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-in);
  background: none;
  line-height: 0;
  cursor: pointer;
}
.rv-map__btn:focus { outline: none; }
.rv-map__btn:focus-visible .rv-sq,
[data-force="focus"] .rv-map__btn[tabindex="0"] .rv-sq { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
/* the decision highlight: the other squares fade, no ring (vd-B3); the script toggles .rv-map--fade on the map
   and .rv-sq--group on the group's squares */
.rv-map--fade .rv-sq:not(.rv-sq--group) { opacity: .3; }
/* live (Answering): not selectable, no pointer or focus style on a square; a square changes state in place and the
   ONLY motion is the live motion below (answering.yaml layout_rules.live_motion: transform and opacity only) */
.rv-map--live .rv-sq { cursor: default; pointer-events: none; }
/* IN PROGRESS (OD-ans-18): a hollow square a worker holds keeps the 3A ring and gains a still centred --ink-3 mark
   on ::after (never amber). On the map it breathes TWICE (2 x 2.4 s), then holds still at full size (WCAG 2.2.2). */
.rv-sq--working::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--ink-3); }
.rv-sq--12.rv-sq--working::after { width: 6px; height: 6px; border-radius: 1.5px; }
.rv-map--live .rv-sq--working::after { animation: rv-breathe 2.4s cubic-bezier(.45, 0, .55, 1) 2; will-change: transform, opacity; }
@keyframes rv-breathe { 50% { transform: scale(.6); opacity: .7; } }
/* LANDING: a hollow square that becomes a grade grows in over 200 ms (answering.js adds the class and removes it on animationend) */
.rv-map--live .rv-sq--landed { animation: rv-land var(--dur-2) var(--ease); }
@keyframes rv-land { from { transform: scale(.55); opacity: .35; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rv-map--live .rv-sq--landed, .rv-map--live .rv-sq--working::after { animation: none; }
}
/* hint lines (issue 242, map_hints): the .rv-map__note look; the narrow one shows below 768; the chevron only there */
.rv-map__hint--narrow { display: none; }
/* keyboard start (VD-KBD): the at-rest hint and the key line share ONE grid cell, so the block is as tall as the taller
   one and nothing under it moves; the hidden one is visibility: hidden (never display: none, never opacity). The key line
   shows only where the page says so (verdict.css: :focus-within). */
.rv-map__hintcell { display: grid; }
.rv-map__hintcell > .rv-map__hint { grid-area: 1 / 1; align-self: start; }
.rv-map__hint--keys { visibility: hidden; }
.rv-map__chev { display: none; }
/* touch and pen at 768 and up: each button's hit area fills the 5 px gap (27 x 27 at pitch 27); the squares stay 22 px */
@media (min-width: 768px) and (pointer: coarse) {
  .rv-map__btn { padding: 2.5px; margin: -2.5px; }
}
@media (max-width: 767px) {
  .rv-map .rv-sq { width: 11px; height: 11px; border-radius: 2px; --rv-dot: 3px; }
  .rv-map .rv-sq--empty::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Crect x='.5' y='.5' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1' stroke-dasharray='3 1 4.356 1' stroke-dashoffset='7.356'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Crect x='.5' y='.5' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1' stroke-dasharray='3 1 4.356 1' stroke-dashoffset='7.356'/%3E%3C/svg%3E"); }
  .rv-map .rv-sq--working::after { width: 5px; height: 5px; border-radius: 1px; }
  .rv-map__hint--wide, .rv-map__keys-sr { display: none; }
  .rv-map__hint--narrow { display: block; }
  .rv-map--interactive .rv-map__chev { display: block; flex: none; align-self: center; width: 16px; color: var(--ink-3); font-size: 16px; line-height: 1; }
  .rv-map__sqs, .rv-map__pic { gap: 3px; }
  .rv-map--fade .rv-sq:not(.rv-sq--group) { opacity: 1; }
  /* interactive: a picture and one 48 px row link; no square is a button or a tab stop */
  .rv-map--interactive .rv-map__sqs { display: none; }
  .rv-map--interactive .rv-map__pic { display: flex; }
  .rv-map--interactive .rv-map__name--link { display: none; }
  .rv-map--interactive .rv-map__name--plain { display: block; }
  .rv-map--interactive .rv-map__row { min-height: 48px; justify-content: center; }
  .rv-map__rowlink { display: block; position: absolute; inset: 0; border-bottom: 0; border-radius: var(--r-in); }
  .rv-map__rowlink:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: -2px; }
}

/* ---- banner ----------------------------------------------------------------- */
.rv-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-sizing: border-box;
  padding: var(--sp-3) 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sunk);
  color: var(--ink);
}
.rv-banner--decision { background: var(--primary-tint); border-color: var(--primary); }   /* board: solid amber line, both themes */
.rv-banner--error { background: var(--error-tint); border-color: var(--error); }
.rv-banner__mark { width: 10px; height: 10px; flex: none; border-radius: 2px; background: var(--primary); }
.rv-banner__icon { flex: none; font-size: 18px; line-height: 1; color: var(--ink-3); }
.rv-banner--error .rv-banner__icon { color: var(--error); }
.rv-banner__text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--t-body); line-height: 1.45; }
.rv-banner__text b { font-weight: var(--w-emph); }
.rv-banner__actions { display: flex; flex: none; gap: var(--sp-2); }
@media (max-width: 767px) {
  .rv-banner { flex-wrap: wrap; }
  .rv-banner__text { flex-basis: calc(100% - 40px); }
}
/* banner(stacked=True): a banner INSIDE A CARD (classify 241, DL-BUG-1). The card, not the viewport, is the constraint, so
   the layout is the same at every width: the icon in its own column, top-aligned with the first line; the sentence at the
   full body width; the actions 8 px under it from the sentence's left edge, wrapping (gap 8 / 12). A text link
   (kind='link') may wrap; nothing but a button label is nowrap. */
.rv-banner--stacked { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--sp-3); }
.rv-banner--stacked .rv-banner__icon { margin-top: 1px; }
.rv-banner--stacked .rv-banner__mark { margin-top: 5px; }
.rv-banner__body { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.rv-banner--stacked .rv-banner__text { flex: none; min-width: 0; overflow-wrap: break-word; }
.rv-banner--stacked .rv-banner__actions { flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); min-width: 0; }
.rv-banner__actions .rv-link { display: block; min-width: 0; padding-block: 2px; font-size: var(--t-body); line-height: 1.45; overflow-wrap: anywhere; }

/* ---- card ------------------------------------------------------------------- */
.rv-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
  box-sizing: border-box;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--raised);
  box-shadow: var(--edge-hi);
}
.rv-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--h-sm); }
.rv-card__label { margin: 0; color: var(--ink-3); }
.rv-card__actions { display: flex; flex: none; gap: var(--sp-2); }
.rv-card__body { min-width: 0; }

/* ---- table ------------------------------------------------------------------ */
.rv-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--raised);
}
.rv-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-body); }
.rv-table__head th {
  position: sticky;
  top: 0;
  z-index: 1;             /* above the rows, which are position: relative for their link box */
  height: var(--h-sm);
  padding: 0 var(--sp-3);
  border-bottom: 1px solid var(--line);
  background: var(--sunk);
  color: var(--ink-3);
  font: 500 var(--t-micro)/1.2 var(--f-data);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.rv-table__row { position: relative; }
.rv-table td {
  height: var(--row);
  padding: 0 var(--sp-3);
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  vertical-align: middle;
  white-space: nowrap;
}
.rv-table--dense td { height: var(--row-dense); }
.rv-table--comfy td { height: var(--row-comfy); }
.rv-table tbody tr:last-child td { border-bottom: 0; }
.rv-table__row:hover td,
[data-force="hover"] .rv-table__row td { background: var(--hover); }
.rv-table .is-num {
  text-align: right;
  font-family: var(--f-data);
  font-size: var(--t-data);
  font-variant-numeric: tabular-nums;
}
.rv-table__head th.is-num { font-size: var(--t-micro); }
.rv-table__link { color: var(--ink); font-weight: var(--w-emph); text-decoration: none; border-bottom: 0; }
.rv-table__link:hover { color: var(--ink); border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }
/* The row link's tap area is exactly the row (inset: 0 on the position: relative <tr>), never
   larger, so two rows' tap areas never overlap (A-12). The row menu button is position: relative
   and comes later in the row, so it paints and hit-tests above this box without a z-index; the
   rest of the menu cell opens the row like every other cell. */
.rv-table__link::after { content: ""; position: absolute; inset: 0; }
.rv-table__sub { color: var(--ink-3); font-size: var(--t-data); }
.rv-table__menu { width: var(--sp-7); text-align: right; }
@media (min-width: 768px) {
  /* a 32 px menu button would push a dense row (32 px, rule included) to 33 */
  .rv-table--dense .rv-table__menu .rv-btn { height: var(--h-chip); }
}
.rv-table__empty td { height: auto; padding: var(--sp-6) var(--sp-4); color: var(--ink-2); text-align: center; white-space: normal; }
.rv-skel {
  display: block;
  height: 12px;
  border-radius: var(--r-in);
  background: linear-gradient(90deg, var(--skel-a), var(--skel-b), var(--skel-a));
  background-size: 200% 100%;
  animation: rv-shimmer 1.4s ease-in-out infinite;
}
.rv-skel--short { width: 40%; }
.rv-skel--mid { width: 65%; }
.rv-skel--long { width: 90%; }
@keyframes rv-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Row menus are Bootstrap dropdowns (R01); rv-menu re-points their variables at the tokens. */
.rv-menu {
  --bs-dropdown-bg: var(--raised);
  --bs-dropdown-color: var(--ink);
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-border-radius: var(--r);
  --bs-dropdown-font-size: var(--t-body);
  --bs-dropdown-link-color: var(--ink);
  --bs-dropdown-link-hover-color: var(--ink);
  --bs-dropdown-link-hover-bg: var(--hover);
  --bs-dropdown-link-active-color: var(--accent-ink);
  --bs-dropdown-link-active-bg: var(--accent);
  box-shadow: var(--sh-pop);
}
.rv-menu .dropdown-item { border-bottom: 0; }

/* ---- reference row ----------------------------------------------------------- */
.rv-ref {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-sizing: border-box;
  min-width: 0;
  height: var(--ctl);
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.rv-ref__grip { flex: none; color: var(--ink-3); }
.rv-ref__n { flex: none; color: var(--ink-2); font: var(--w-reg) var(--t-data)/1 var(--f-data); }
.rv-ref__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-body); }
.rv-ref__meta { flex: none; color: var(--ink-3); font: var(--w-reg) var(--t-micro)/1 var(--f-data); }

/* ==== ANSWERS LIST components (screens/answers-list.yaml; own block, so it merges apart from Deliver's) ==================
   answer_list_row (ui/answer_row.html), bulk_bar (ui/bulk_bar.html), the toast's 'list' position (ui/toast.html) and the
   read-only reference row (ui/reference_row.html grip=False). The page layout is answers.css. Design tokens only. */
.rv-ref--read { padding-inline: var(--sp-3); }
.rv-ref__open { flex: none; display: inline-grid; place-items: center; width: var(--h-sm); height: var(--h-sm); margin-right: calc(-1 * var(--sp-2)); border-bottom: 0; border-radius: var(--r); color: var(--ink-2); text-decoration: none; }
.rv-ref__open:hover { background: var(--hover); color: var(--ink); border-bottom: 0; }

.rv-arow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: 40px;
  padding: 0 10px;
  border-bottom: 0;
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
}
.rv-arow:hover, [data-force="hover"] .rv-arow { background: var(--hover); color: var(--ink); border-bottom: 0; }
/* selected = the --hover fill PLUS a 2 px --ink bar on the left edge (AL-S2: the fill alone is 1.13:1 and looks like hover) */
.rv-arow[aria-current="true"] { background: var(--hover); }
.rv-arow[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--ink); }
.rv-arow:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: -2px; }
.rv-arow[hidden] { display: none; }
/* the 12 px grade square is map_square(state, size="12") (.rv-sq--12: the rings and the 4 px dot, one rule set with the legend, OD-vd-18, AL-S3) */
.rv-arow__q { flex: none; width: auto; min-width: 5ch; white-space: nowrap; color: var(--ink-2); font: var(--w-reg) var(--t-data)/1 var(--f-data); }
.rv-arow__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--w-reg) var(--t-body)/1.4 var(--f-ui); }
.rv-arow__final { flex: none; color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1 var(--f-data); }

.rv-bulk {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  box-sizing: border-box;
  padding: 10px;                       /* line 2 is 51 characters of mono 12 = 367.2 px: a 391 px card needs an inner width of 369 px to keep it on one line (AL-33) */
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--raised);
}
.rv-bulk__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-width: 0; }
.rv-bulk__text { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font: var(--w-reg) var(--t-body)/1.4 var(--f-ui); overflow-wrap: anywhere; }
.rv-bulk__text:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; border-radius: var(--r-in); }
.rv-bulk__action { flex: none; }
.rv-bulk__detail { margin: 0; color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.4 var(--f-data); overflow-wrap: anywhere; }
.rv-bulk__detail[hidden] { display: none; }

/* toast position 'list': the bottom of a master-detail page's LIST column, above its hint line, never over the panel (AL-B1) */
.rv-toast-region.rv-toast-region--list { position: absolute; z-index: 6; left: var(--rv-list-left, 32px); right: var(--rv-list-right, 16px); bottom: var(--rv-list-bottom, 44px); width: auto; transform: none; justify-content: flex-start; }
.rv-toast-region.rv-toast-region--list .rv-toast { width: 100%; max-width: min(420px, 100%); }
@media (max-width: 1023px) {
  .rv-toast-region.rv-toast-region--list { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .rv-toast-region.rv-toast-region--list { left: calc(var(--w-rail) + var(--sp-4)); }
}
@media (max-width: 767px) {
  .rv-toast-region.rv-toast-region--list { bottom: calc(72px + env(safe-area-inset-bottom) + var(--sp-2)); }
}
/* the list region's top position (F-80 (7), AL-B1): from 1024 px up 16 px under the list column's sticky top, which the page sets as the
   page CSS variable --rv-list-top (answers.css); below 1024 the frame's top, the left and right insets unchanged */
@media (min-width: 1024px) {
  .rv-toast-region.rv-toast-region--list.rv-toast-region--top { top: var(--rv-list-top, var(--sp-4)); bottom: auto; }
}
@media (max-width: 1023px) {
  .rv-toast-region.rv-toast-region--list.rv-toast-region--top { top: calc(var(--h-bar) + var(--sp-4)); bottom: auto; }
}

/* ---- phone (<= 767 px): 16 px form text, 44 px tap areas that never overlap -------------
   Rule (A-12, DV-foundations-2): a tap area never extends past its element into a neighbouring
   target; where 44 px does not fit, the element or the gap grows. */
@media (max-width: 767px) {
  /* A-26: iOS Safari zooms the page when a field with text under 16 px gets focus. */
  .rv-body :is(input, select, textarea) { font-size: var(--t-sub); }

  /* Buttons (s, m), chips and segmented options keep their 32 / 40 px look; the tap area is an
     invisible ::after, as wide as the element and 44 px (--h-tap) high, CENTRED on the control
     (foundations A-12, amended 2026-09-29, shipped with the Frame): people aim at the visual
     centre, so the box reaches 6 px above and 6 px below a 32 px control and 2 px above and below
     a 40 px one. 'No wrap' is measured on the label's line count (one line box), not on the
     button's scrollHeight.
     Spacing (A-12, R2-2): between two stacked targets the rendered gap is at least the sum of how
     far their boxes reach (0 for a target 44 px or taller, 2 px for 40 px, 6 px for 32 px: 40/40
     >= 4, 40/32 >= 8, 32/32 >= 12). By construction 32 px targets carry a 6 px block margin and
     40 px buttons a 2 px block margin (vertical only, so a field + button row stays flush);
     fields: the <label for> above supplies the extra height. Block margins can collapse between
     block-level siblings, so the rendered gap is what counts; the A-12 probe
     (test/ux/test_foundations_touch.py, elementFromPoint) is the arbiter.
     Too narrow elements (an icon-only button) grow to 44 px wide instead, so there is no sideways
     overlap. Static chips are not targets and stay as they are. */
  .rv-btn--s,
  .rv-chip:not(.rv-chip--static),
  .rv-seg { margin-block: calc((var(--h-tap) - var(--h-sm)) / 2); }
  .rv-btn--m { margin-block: calc((var(--h-tap) - var(--ctl)) / 2); }
  .rv-btn--s,
  .rv-btn--m,
  .rv-chip:not(.rv-chip--static),
  .rv-seg__opt { min-width: var(--h-tap); }
  /* The ::after sits in the padding box (inside the 1 px border), hence the extra 1 px. */
  .rv-btn--s::after,
  .rv-chip:not(.rv-chip--static)::after,
  .rv-seg__opt::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block: calc((var(--h-tap) - var(--h-sm)) / -2 - 1px);
  }
  .rv-btn--m::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block: calc((var(--h-tap) - var(--ctl)) / -2 - 1px);
  }
  /* Segmented options sit inside the group's 1 px border and are 30 px high: 7 px above and below
     gives 44 px centred on the 32 px group. */

  /* Fields: <input> and <select> cannot carry a pseudo-element, so the tap area above the 40 px
     control is the field's own <label for>, which the browser routes to the control. The label
     reaches down to the control's top edge (the 6 px gap is not dead space): label + control is
     at least 24 + 40 px tall and ends at the control's bottom edge. */
  .rv-field__label { padding-bottom: 6px; margin-bottom: -6px; }

  /* Tables (OD-11): every variant (dense, default, comfy) uses 48 px rows (--row-comfy), and the
     row link's box stays exactly the row (inset: 0, above), so rows never share a tap area.
     The row menu button is 40 px here, sitting 2 px above the row's bottom rule, so its 44 px
     box stays inside its own 48 px row. */
  .rv-table .rv-table__row td { height: var(--row-comfy); }
  .rv-table .rv-table__menu { padding-bottom: 2px; vertical-align: bottom; }
  .rv-table__menu .rv-btn { height: var(--ctl); margin-block: 0; }
  .rv-table__menu .rv-btn::after { inset-block: calc((var(--h-tap) - var(--ctl)) / -2 - 1px); }
}

/* ---- dialog (dialog.html): a Bootstrap modal in the Solar look -------------------------------
   Only Bootstrap's --bs-modal-* variables are re-pointed, scoped to .rv-dialog (R13). */
.rv-dialog {
  --bs-modal-width: 480px;
  --bs-modal-bg: var(--raised);
  --bs-modal-color: var(--ink);
  --bs-modal-border-color: var(--line);
  --bs-modal-border-radius: var(--r-card);
  --bs-modal-box-shadow: var(--sh-modal);
  --bs-modal-margin: var(--sp-4);
}
.rv-dialog__box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  box-shadow: var(--sh-modal);
}
.rv-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.rv-dialog__title { margin: 0; font: var(--w-emph) var(--t-title)/1.3 var(--f-ui); color: var(--ink); overflow-wrap: anywhere; }
.rv-dialog__body { min-height: 0; overflow-y: auto; font-size: var(--t-body); }
.rv-dialog__text { margin: 0; color: var(--ink-2); }
.rv-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); }

/* The wide size (size='wide'; deliver-extras PR-0, DX-28): Bootstrap's modal-lg width, no new number. The body is a NON-scrolling flex
   column (the default body is itself the scroller): only .rv-dialog__region scrolls, so the head and the foot never leave the window.
   Fixed parts stay in the body; an empty .rv-dialog__slot (an error slot) is display: none and adds no gap. */
.rv-dialog--wide { --bs-modal-width: min(800px, 100vw - 2 * var(--sp-4)); }
.rv-dialog--wide .rv-dialog__body { display: flex; flex-direction: column; gap: var(--sp-4); overflow: hidden; }
.rv-dialog__region { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
/* The error slot, one shared rule (A-29): when it holds text it looks like a field error (--error, --t-data regular, --f-ui, 1.4) with the dialog's
   12 px rhythm above it; the :empty and [hidden] rule below keeps an empty slot out of the layout. */
.rv-dialog__slot { margin: var(--sp-3) 0 0; color: var(--error); font: var(--w-reg) var(--t-data)/1.4 var(--f-ui); overflow-wrap: anywhere; }
.rv-dialog--wide .rv-dialog__body > .rv-dialog__slot { margin-top: 0; }   /* the wide body's own 16 px gap is the rhythm there (DS-dialog-slot-wide) */
.rv-dialog__slot > .rv-banner { font-size: var(--t-body); line-height: 1.5; }   /* a banner in the slot keeps body type (the Deliver new-version slot) */
.rv-dialog__slot:empty, .rv-dialog__slot[hidden] { display: none; }

/* Entrance (A-30, DS-w35-dialog-fade): the dialog has no Bootstrap `fade` class, so `shown` fires at once and focus moves at once; the box and
   the backdrop fade in over --dur with --ease, opacity only (no slide), and only when motion is allowed. The keyframe has no `to`, so each
   element ends at its own opacity (the box 1, the backdrop Bootstrap's --bs-backdrop-opacity). Closing is instant (no leave transition).
   The Ask palette has no entrance (ASK-11); a legacy `modal fade` keeps its own backdrop (it carries `fade`). The rules sit inside
   no-preference, so they do not rely on the .rv-body reduced-motion override (a dialog moved to the end of <body> sits outside .rv-body). */
@media (prefers-reduced-motion: no-preference) {
  .rv-dialog.show:not(.rv-dialog--palette) .rv-dialog__box { animation: rv-dialog-in var(--dur) var(--ease); }
  body:not(:has(.rv-dialog--palette.show)) > .modal-backdrop:not(.fade) { animation: rv-dialog-in var(--dur) var(--ease); }
}
@keyframes rv-dialog-in { from { opacity: 0; } }

/* ---- added with Bids home (screens/bids-home.yaml; additive, no existing rule changes) ------------ */
/* mini map sizes (B1): 'row' 4 px squares, gap 1, a 49 x 49 box; 'card' 6 px, gap 2, 78 x 78. The box
   height is reserved for 10 rows whatever the count; with no squares it is the reserved box (R2-5). */
.rv-mini--row, .rv-mini--card { box-sizing: border-box; align-content: start; }
.rv-mini--row { grid-template-columns: repeat(10, 4px); grid-auto-rows: 4px; gap: 1px; width: 49px; height: 49px; }
.rv-mini--row .rv-sq { width: 4px; height: 4px; border-radius: 1px; }
.rv-mini--card { grid-template-columns: repeat(10, 6px); grid-auto-rows: 6px; gap: 2px; width: 78px; height: 78px; }
.rv-mini--card .rv-sq { width: 6px; height: 6px; border-radius: 1px; }

/* the table's mono meta line (F-4): a variation of .rv-table__sub (already --ink-3); only the font changes */
.rv-table__sub--meta { font: var(--w-reg) var(--t-meta)/1.35 var(--f-data); }

/* filter chips as links (Bids home: the URL is the state, BH-03); the global a rules must not win */
a.rv-chip { text-decoration: none; }
a.rv-chip:hover { border-color: var(--line-ctl); background: var(--hover); color: var(--ink); }
a.rv-chip[aria-pressed="true"]:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* button icon after the label (a caret on a control that opens a menu) */
.rv-btn__icon--end { margin-left: calc(var(--sp-1) * -1); }

/* search field (search_field in field.html): the icon and the input inside one <label> */
.rv-search { flex: 1 1 200px; min-width: 200px; max-width: 360px; }
.rv-search__box { position: relative; display: flex; align-items: center; margin: 0; cursor: text; }
.rv-search__icon { position: absolute; left: var(--sp-3); color: var(--ink-3); font-size: 16px; line-height: 1; pointer-events: none; }
.rv-search__control { padding-left: calc(var(--sp-3) + 16px + var(--sp-2)); background: var(--raised); }
.rv-search__control:hover { border-color: var(--ink-3); }
.rv-search__control:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 1px; }

/* toast (ui/toast.html, S8): ONE look; the region is the page's empty role=status container, bottom
   centre of the content column (a page sets --rv-col-left and --rv-col-w; default: the viewport) */
.rv-toast-region {
  position: fixed;
  z-index: 1080;
  bottom: calc(var(--sp-4) + var(--rv-idle-bottom, 0px));
  left: calc(var(--rv-col-left, 0px) + var(--rv-col-w, 100vw) / 2);
  display: flex;
  justify-content: center;
  width: min(420px, calc(100vw - 2 * var(--sp-4)));
  transform: translateX(-50%);
  pointer-events: none;
}
.rv-toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-sizing: border-box;
  max-width: 420px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--raised);
  box-shadow: var(--sh-pop);
  color: var(--ink);
  font: var(--w-reg) var(--t-body)/1.45 var(--f-ui);
  pointer-events: auto;
}
.rv-toast__text { margin: 0; overflow-wrap: anywhere; }
.rv-toast__actions { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .rv-toast { animation: rv-toast-in var(--dur-2) var(--ease); }
}
@keyframes rv-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* the top position (frame F-80, DS-fr-toast-focus): RV.toast sets this ONE class on the region when the default bottom would cover the
   focused element; 16 px under the sticky header, the same column and centre; instant (no transition), the toast's look unchanged */
.rv-toast-region.rv-toast-region--top { top: calc(var(--h-bar) + var(--sp-4) + var(--rv-idle-top, 0px)); bottom: auto; }
/* the frame's idle warning (frame.yaml idle_warning.place, FU-frame-idle-warning): the empty role=status container data-ref=frame.idle, first
   child of main#content, zero height until idle.js fills it; a FIXED overlay in the toast's column (it never pushes the page), default TOP
   16 px under the sticky header, the toast's bottom position by ONE class when it would cover the focused element (F-80). It sits nearest
   the edge; a toast at the same position stacks on the inner side 8 px away (idle.js sets --rv-idle-top / --rv-idle-bottom, page CSS
   variables, not design tokens). Above a modal backdrop and clickable (OD-fr-idle-2 correction 4). No animation. */
.rv-idle-region {
  position: fixed;
  z-index: 1090;
  top: calc(var(--h-bar) + var(--sp-4));
  left: calc(var(--rv-col-left, 0px) + var(--rv-col-w, 100vw) / 2);
  width: min(420px, calc(100vw - 2 * var(--sp-4)));
  transform: translateX(-50%);
}
.rv-idle-region:empty { display: none; }
.rv-idle-region.rv-idle-region--bottom { top: auto; bottom: var(--sp-4); }
.rv-idle-region .rv-banner { box-shadow: var(--sh-pop); flex-wrap: wrap; }
.rv-idle-region .rv-banner__text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.rv-idle-region .rv-btn { height: var(--ctl); white-space: nowrap; }
@media (max-width: 767px) {
  .rv-idle-region.rv-idle-region--bottom { bottom: calc(var(--rv-tabbar-h, 0px) + var(--sp-2)); }
  /* the 40 px button keeps a 44 px tap area that does not reach line 2: 2 px above and below */
  .rv-idle-region .rv-banner__actions { padding-block: 2px; }
  .rv-idle-region .rv-btn { position: relative; margin-block: 0; }
  /* the ::after sits in the padding box (inside the 1 px border), hence the extra 1 px, as the table menu button's */
  .rv-idle-region .rv-btn::after { content: ""; position: absolute; inset-inline: 0; inset-block: calc((var(--h-tap) - var(--ctl)) / -2 - 1px); }
}
@media (max-width: 767px) {
  .rv-toast-region { bottom: calc(var(--rv-tabbar-h, 0px) + var(--sp-2) + var(--rv-idle-bottom, 0px)); }
  /* A-12: the search <label> reaches 2 px above and below the 40 px field: a 44 px hit area */
  .rv-search__box { padding-block: 2px; margin-block: -2px; }
}

/* empty state (ui/empty_state.html) */
.rv-empty { max-width: 480px; padding: var(--sp-6) 0; }
.rv-empty .rv-mini { margin-bottom: var(--sp-5); }
.rv-empty__title { margin: 0 0 var(--sp-3); color: var(--ink); font: var(--w-display) var(--t-screen)/1.15 var(--f-ui); letter-spacing: var(--tr-tight); }
.rv-empty__text { margin: 0 0 var(--sp-5); color: var(--ink-2); font-size: var(--t-sub); line-height: 1.55; }
.rv-empty__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---- reduced motion: no non-essential motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rv-body *,
  .rv-body *::before,
  .rv-body *::after {
    transition: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
  }
  .rv-btn__spin { animation: rv-spin 1.6s linear infinite !important; }
}

/* ============================================================================================================
   Verdict (screens/verdict.yaml, pilot queue 7): the weak-topic figure, the coverage bar, the decision card and
   the sticky action bar. Own block: Answering (parallel build) does not touch it. The page layout is verdict.css.
   ============================================================================================================ */
.rv-map__count--weak { color: var(--ink); font-weight: var(--w-emph); }               /* vd-S3: ink 600, no amber, no tag */
.rv-map__name:empty { display: none; }                                                 /* one unlabelled group (OD-ans-1) */

/* coverage bar (aria-hidden svg, widths = the counts fully : partially : not) and its words line */
.rv-cov { display: block; width: 100%; height: 12px; border-radius: var(--r-in); clip-path: inset(0 round var(--r-in)); }
.rv-cov__seg { stroke: var(--ground); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.rv-cov__seg--fully { fill: var(--map-fully); }
.rv-cov__seg--partially { fill: var(--map-partial); }
.rv-cov__seg--not { fill: var(--map-not); stroke: var(--line-ctl); stroke-width: 1px; }   /* vd-N3: the square's ring */
.rv-cov__words { display: flex; flex-wrap: wrap; margin: var(--sp-2) 0 0; color: var(--ink-2); font: var(--w-reg) var(--t-data)/1.4 var(--f-data); }
.rv-cov__part + .rv-cov__part::before { content: "·"; margin: 0 var(--sp-2); }

/* decision card (ui/banner.html decision_card): the decision-banner look as role=group; the button sits right of
   the text in a wide card and under it, full width, in a narrow one (the container is the wrapper around it) */
.rv-dcard {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  box-sizing: border-box;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--ink);
}
.rv-dcard__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.rv-dcard__eyebrow { margin: 0; color: var(--solar-ink); font: 500 var(--t-micro)/1.2 var(--f-data); letter-spacing: var(--tr-caps); text-transform: uppercase; }
.rv-dcard__title { margin: 0; color: var(--ink); font: var(--w-emph) var(--t-sub)/1.3 var(--f-ui); overflow-wrap: anywhere; }
.rv-dcard__reason { margin: 0; color: var(--ink-2); font: var(--w-reg) var(--t-data)/1.4 var(--f-ui); }
.rv-dcard__action { flex: none; }
.rv-dcard--neutral { border-color: var(--line); background: var(--raised); }
.rv-dcard--neutral .rv-dcard__eyebrow { color: var(--ink-3); }
@media (max-width: 1279px) {      /* the 580 px card (desktop right column) keeps the button at its right; every narrower band stacks it (M3) */
  .rv-dcard { flex-direction: column; align-items: stretch; }
  .rv-dcard__action .rv-btn { width: 100%; }
}
/* the early warning card (kind='early', answering-extras ew-S2): the text block first and the action row under it at
   EVERY width, buttons at natural width and left-aligned from 768 up, the two stacked at full width below 768.
   Additive: the selectors below are more specific than the two rules above, so the Verdict's own max-width 1279px
   rules stay as they are and lose here (AX-12 checks the outcome at 1440, 1024, 768 and 390). */
.rv-dcard.rv-dcard--stack { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
.rv-dcard--stack .rv-dcard__action { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-start; }
.rv-dcard--stack .rv-dcard__action .rv-btn { width: auto; }
@media (max-width: 767px) {
  .rv-dcard--stack .rv-dcard__action { flex-direction: column; align-items: stretch; }
  .rv-dcard--stack .rv-dcard__action .rv-btn { width: 100%; height: var(--h-tap, 44px); margin-block: 0; }   /* 44 px tall, the tap box is the button itself */
}

/* sticky action bar (ONE rule for the Verdict and New bid, NB-28): a raised card, sticky at the bottom; below 768
   its bottom edge meets the top edge of the 72 px tab bar (safe area included) and scroll-padding-bottom keeps a
   focused element clear of it (WCAG 2.4.11). --rv-abar-h is the bar's own height (verdict.js keeps it exact); the
   page reserves it at its end (verdict.css .rv-vd__slot, DQ-1). The min-height is the height the bar has without
   script (the reserved slot uses it until --rv-abar-h is set), so it does not read the variable.
   .rv-abar--wide: a bar that renders from 768 up only (display: none below): scroll-padding follows the DISPLAYED bar.
   .rv-abar__t--wide / --narrow: the bar's two whole text strings, one per width band (S5), never one assembled string. */
.rv-abar {
  position: sticky;
  bottom: var(--sp-5);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-4);
  box-sizing: border-box;
  min-height: 74px;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--raised);
  color: var(--ink);
}
.rv-abar__text { margin: 0; font: var(--w-reg) var(--t-body)/1.4 var(--f-ui); }
.rv-abar__text b { font-weight: var(--w-emph); }
.rv-abar__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.rv-abar__t--narrow { display: none; }
@media (min-width: 768px) {
  :root:has(.rv-abar) { scroll-padding-bottom: calc(var(--rv-abar-h, 74px) + var(--sp-5) + var(--sp-5)); }
}
@media (max-width: 767px) {
  .rv-abar { bottom: calc(72px + env(safe-area-inset-bottom)); min-height: 104px; flex-direction: column; align-items: stretch; padding: var(--sp-3) var(--sp-4); }
  .rv-abar--wide { display: none; }
  .rv-abar__t--wide { display: none; }
  .rv-abar__t--narrow { display: inline; }
  .rv-abar__actions .rv-btn { width: 100%; min-height: 48px; }
  :root:has(.rv-abar:not(.rv-abar--wide)) { scroll-padding-bottom: calc(var(--rv-abar-h, 104px) + 72px + env(safe-area-inset-bottom) + var(--sp-5)); }
}

/* ---- added with New bid (screens/new-bid.yaml; additive block, no existing rule changes; shared file,
   NB-shared-1: keep both sides on a merge) ---------------------------------------------------------- */
/* skeleton kinds (ui/skeleton.html wraps .rv-skel; no second look) */
.rv-skel--block { width: 100%; height: 101px; }
.rv-skel--line { height: 16px; }

/* drop zone (ui/drop_zone.html): 1 px dashed --line-ctl (a target: 3:1), radius 14, 240 px (160 on the phone) */
.rv-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  box-sizing: border-box;
  min-height: 240px;
  padding: var(--sp-5);
  border: 1px dashed var(--line-ctl);
  border-radius: var(--r-card);
  text-align: center;
}
.rv-drop__icon { color: var(--ink-3); font-size: 24px; line-height: 1; }
.rv-drop__hint { max-width: 440px; margin: 0; color: var(--ink-2); font: var(--w-reg) var(--t-body)/1.5 var(--f-ui); }
.rv-drop__limits { margin: 0; color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.4 var(--f-data); }
.rv-drop__over { display: none; margin: 0; color: var(--ink); font: var(--w-emph) var(--t-sub)/1.4 var(--f-ui); }
/* drag-over: ink, never amber; the 2 px border takes 1 px from the padding so the zone does not move */
.rv-drop.is-dragover { padding: calc(var(--sp-5) - 1px); border: 2px solid var(--accent); background: var(--accent-tint); }
.rv-drop.is-dragover > :not(.rv-drop__over) { display: none; }
.rv-drop.is-dragover .rv-drop__over { display: block; }
@media (max-width: 767px) {
  .rv-drop { min-height: 160px; padding: var(--sp-4); }
  .rv-drop__icon, .rv-drop__limits { display: none; }
}
/* compact drop zone (drop_zone(compact=True), knowledge-index DR-8): ONE row above a file list, 72 px = 16 + 40 + 16 */
.rv-drop.rv-drop--compact {
  flex-direction: row;
  justify-content: flex-start;
  gap: var(--sp-3);
  min-height: calc(var(--sp-4) * 2 + var(--ctl));
  padding: var(--sp-4);
  text-align: start;
}
.rv-drop--compact .rv-drop__icon { flex: none; font-size: 20px; }
.rv-drop__text { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); min-width: 0; }
.rv-drop--compact .rv-drop__hint { max-width: none; }
.rv-drop--compact [data-rv-choose] { flex: none; margin-inline-start: auto; white-space: nowrap; }
.rv-drop.rv-drop--compact.is-dragover { padding: calc(var(--sp-4) - 1px); }
@media (min-width: 768px) and (max-width: 1023px) {
  .rv-drop__text { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .rv-drop.rv-drop--compact { min-height: calc(var(--sp-4) * 2 + var(--ctl)); }
}

/* column mapping (New bid: one card per mapped column, read only; the Verdict's answer map has its own class) */
.rv-colmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.rv-map-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  box-sizing: border-box;
  min-width: 0;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--raised);
}
.rv-map-card__col { color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.3 var(--f-data); }
.rv-map-card__role { color: var(--ink); font: var(--w-emph) var(--t-sub)/1.3 var(--f-ui); overflow-wrap: anywhere; }
.rv-map-card__hdr { color: var(--ink-3); font: var(--w-reg) var(--t-data)/1.4 var(--f-ui); overflow-wrap: anywhere; }
@media (max-width: 767px) { .rv-colmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the sticky action bar (New bid's bar and, later, Verdict's: ONE implementation, layout_rules.bar): a card that
   follows the content and sticks 24 px above the viewport bottom; on the phone it meets the top of the frame's
   72 px tab bar (safe area included), and the scroller keeps a focused element clear of both */
.rv-actionbar {
  position: sticky;
  bottom: var(--sp-5);
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  box-sizing: border-box;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--raised);
  box-shadow: var(--sh-pop);
}
.rv-actionbar__text { margin: 0; min-width: 0; color: var(--ink); font: var(--w-emph) var(--t-body)/1.4 var(--f-ui); overflow-wrap: anywhere; }
:root:has(.rv-actionbar) { scroll-padding-bottom: calc(var(--rv-bar-h, 82px) + var(--sp-5)); }
@media (max-width: 767px) {
  .rv-actionbar { bottom: var(--rv-tabbar-h, 0px); }
  :root:has(.rv-actionbar) { scroll-padding-bottom: calc(var(--rv-bar-h, 82px) + var(--rv-tabbar-h, 0px) + var(--sp-5)); }
}

/* ==== Deliver's additions (screens/deliver.yaml, pilot queue 12): decision_card title step, card size compact,
   file_row and checkbox_group. Own block: Answers List adds its own below or above, never inside this one. ==== */
.rv-dcard--title .rv-dcard__title { font: var(--w-emph) var(--t-title)/1.3 var(--f-ui); }       /* dl-S3: 20/600 in both variants */
.rv-card--compact { padding: var(--sp-4); }                                                   /* dl-N5: padding 16 instead of 24 */

/* file_row (ui/file_row.html): icon, name 14/600, mono 12 meta lines, the action on the right */
.rv-frow { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.rv-frow__icon { flex: none; color: var(--ink-3); font-size: var(--t-sub); line-height: 1; }
.rv-frow__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.rv-frow__name { margin: 0; color: var(--ink); font: var(--w-emph) var(--t-body)/1.4 var(--f-ui); overflow-wrap: anywhere; }
.rv-frow__meta { margin: 0; color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.4 var(--f-data); overflow-wrap: anywhere; }
.rv-frow__action { display: flex; flex: none; align-items: center; gap: var(--sp-2); }       /* Open then Download, 8 apart, never wrapping (deliver-extras X-16) */
/* the Run details shape (activity.yaml file_row, 22b): the optional format pill and size column; 48 px rows, pill 52 | label | size 64 | actions */
.rv-frow--run { min-height: 48px; box-sizing: border-box; padding-block: var(--sp-2); }
.rv-frow__pill { display: flex; flex: none; align-items: center; width: 52px; }
.rv-frow__size { flex: none; width: 64px; color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.4 var(--f-data); text-align: right; white-space: nowrap; }
@media (max-width: 479px) { .rv-frow { flex-wrap: wrap; } .rv-frow__action { flex: 1 1 100%; } }

/* checkbox_group (ui/checkbox_group.html): NATIVE checkboxes, 16 px, accent-color --ink (never amber); the input never
   carries .form-check-input (it would switch appearance and accent-color off); rows of 32 px, 44 on the phone and on coarse pointers (A-12) */
.rv-cbg { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; }
.rv-cbg:focus { outline: none; }
.rv-cbg:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; border-radius: var(--r-in); }
.rv-cbg__legend { float: none; width: auto; margin: 0 0 var(--sp-2); padding: 0; color: var(--ink-3); }
.rv-cbg__sub { min-width: 0; margin: var(--sp-3) 0 0; padding: 0; border: 0; }
.rv-cbg__sublegend { float: none; width: auto; margin: 0 0 var(--sp-1); padding: 0; color: var(--ink-2); font: var(--w-emph) var(--t-body)/1.4 var(--f-ui); }
.rv-cbg__note { margin: 0 0 var(--sp-1); color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.4 var(--f-ui); }
.rv-cbg__row { display: flex; align-items: flex-start; gap: var(--sp-3); box-sizing: border-box; min-height: 32px; margin: 0; padding: 6px 0; cursor: pointer; }
/* A-12: the row IS the hit area (the browser routes a click on the <label> to the box), so on the phone and on coarse
   pointers it is 44 px (--h-tap) at least, the 16 px box and the text centred in it; rows stack with no gap and no overlap. */
@media (max-width: 767px), (pointer: coarse) { .rv-cbg__row { min-height: var(--h-tap); padding-block: var(--sp-3); } }
.rv-cbg__input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.rv-cbg__input:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.rv-cbg__text { display: flex; flex-direction: column; min-width: 0; }
.rv-cbg__label { color: var(--ink); font: var(--w-reg) var(--t-body)/1.4 var(--f-ui); overflow-wrap: anywhere; }
.rv-cbg__size { color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.4 var(--f-data); }
.rv-cbg__meta { color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.4 var(--f-ui); overflow-wrap: anywhere; }
.rv-cbg__error { margin-top: var(--sp-2); }
.rv-cbg__error[hidden] { display: none; }
/* radio_group (17m, mg-S4): the twin of checkbox_group. The rows ARE .rv-cbg__row (one look per idea: 32 px, 44 px under 767 and on coarse pointers, a two-line row grows,
   the native 16 px input with accent --ink, 12 px gap); only the disabled row is added: dimmed words, no pointer, the radio itself stays the native disabled one. */
.rv-rg__row.is-disabled { cursor: not-allowed; }
.rv-rg__row.is-disabled .rv-cbg__label { color: var(--ink-3); }
.rv-rg__input:disabled { cursor: not-allowed; }
/* move_group_dialog (17m): the dialog's body, in order: the optional no-Undo line, the radio list, the note, the error slot; gap 16, the body of ui/dialog.html scrolls
   (the list scrolls inside the body with the head and foot fixed, at every width). */
.rv-mgd { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.rv-mgd__undo { margin: 0; color: var(--ink-2); font: var(--w-reg) var(--t-body)/1.4 var(--f-ui); }
.rv-mgd__undo[hidden] { display: none; }
.rv-mgd__note { margin: 0; color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1.4 var(--f-ui); }
.rv-mgd__error { margin: 0; }

/* ==== Answers views: the wave 1 shared kit (screens/answers-lanes.yaml shared_kit, KIT-1 to KIT-8) =====================
   view_switch (rv-vsw), checkbox (rv-cb), selection_bar (rv-selbar) with its result (rv-mres), the Bulk move dialog (rv-bmd) and
   the view toolbar (rv-vtb). Tokens only; spacing from the scale (4 8 12 16 24 32 48 64); targets 44 px on the phone and on
   coarse pointers. One definition here: Lanes, Table and Sheet add nothing but their own content. */

/* ---- view switch (KIT-1): links drawn with the .rv-seg look, 40 px, ink fill on the current option --------------------- */
.rv-seg.rv-vsw,
.rv-bmd__group .rv-seg { height: var(--ctl); }          /* the switch and the dialog's segmented controls are 40 px (KIT-7) */
.rv-vsw__opt { text-decoration: none; }
.rv-vsw__opt:hover .rv-seg__txt { background: var(--hover); color: var(--ink); }
.rv-vsw__opt[aria-current="page"] .rv-seg__txt { background: var(--accent); color: var(--accent-ink); }
.rv-vsw__opt:focus-visible { outline: none; }
.rv-vsw__opt:focus-visible .rv-seg__txt { box-shadow: inset 0 0 0 var(--focus-w) var(--focus), inset 0 0 0 4px var(--ground); }
@media (max-width: 767px), (pointer: coarse) {
  .rv-seg.rv-vsw,
  .rv-bmd__group .rv-seg { margin-block: calc((var(--h-tap) - var(--ctl)) / 2); }
  .rv-vsw__opt::after,
  .rv-bmd__group .rv-seg__opt::after { content: ""; position: absolute; inset-inline: 0; inset-block: calc((var(--h-tap) - var(--ctl)) / -2 - 1px); }
}

/* ---- checkbox (KIT-3): a native input, 16 px box, radius 4, 1.5 px --line-ctl border (3:1 or more on --raised), 24 px hit area ---- */
.rv-cb { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; cursor: pointer; vertical-align: middle; }
.rv-cb--text { width: auto; min-height: 24px; justify-content: flex-start; gap: var(--sp-2); }
.rv-cb__label { color: var(--ink); font: var(--w-reg) var(--t-body)/1.4 var(--f-ui); }
.rv-cb__input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid var(--line-ctl);
  border-radius: var(--r-in);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rv-cb__input::after {                /* the tick, in --ground on the ink fill */
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -2px;
  border: solid var(--ground);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.rv-cb__input:hover { border-color: var(--ink-3); }
.rv-cb__input:checked,
.rv-cb__input:indeterminate,
.rv-cb__input[data-indeterminate="true"] { border-color: var(--ink); background: var(--ink); }
.rv-cb__input:checked::after { opacity: 1; }
.rv-cb__input:indeterminate::after,
.rv-cb__input[data-indeterminate="true"]::after {   /* the dash (select-all over a partial selection) */
  width: 8px;
  height: 0;
  margin-top: 0;
  border-width: 2px 0 0 0;
  transform: none;
  opacity: 1;
}
.rv-cb__input:focus-visible,
[data-force="focus"] .rv-cb__input { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.rv-cb__input:disabled { border-color: var(--line); cursor: not-allowed; }
@media (max-width: 767px), (pointer: coarse) { .rv-cb { width: var(--h-tap); height: var(--h-tap); } .rv-cb--text { width: auto; min-height: var(--h-tap); } }

/* ---- selection bar (KIT-2): 48 px in every state, --sunk, 1 px --line (drawn inside, so it adds no height), radius 8 -------- */
.rv-selbar {
  position: sticky;
  top: var(--rv-selbar-top, 0px);
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: var(--sp-2);
  box-sizing: border-box;
  min-height: var(--row-comfy);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r);
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line);
}
.rv-selbar--band { position: static; }
.rv-selbar__cb { display: flex; flex: none; align-items: center; }
.rv-selbar__idle,
.rv-selbar__live { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: center; column-gap: var(--sp-2); min-width: 0; min-height: calc(var(--row-comfy) - 2 * var(--sp-1)); }
.rv-selbar__idle[hidden],
.rv-selbar__live[hidden] { display: none; }
.rv-selbar__count { flex: 0 1 auto; margin: 0; color: var(--ink); font: var(--w-reg) var(--t-body)/1.3 var(--f-ui); }
.rv-selbar__count b { font-weight: var(--w-emph); }
.rv-selbar__count:focus { outline: none; }
.rv-selbar__all {
  flex: 0 1 auto;
  padding: 0 var(--sp-1);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: var(--w-emph) var(--t-body)/1.3 var(--f-ui);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rv-selbar__all:hover { color: var(--ink-2); }
.rv-selbar__all:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; border-radius: var(--r-in); }
.rv-selbar__acts { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--sp-2); min-width: 0; margin-left: auto; }
.rv-selbar .rv-btn--s { margin-block: 0; }
@media (max-width: 1023px) { .rv-selbar--lane { top: var(--rv-selbar-top, var(--h-bar)); } }
@media (max-width: 767px), (pointer: coarse) {
  .rv-selbar { padding-block: 2px; }                      /* the 44 px hit areas (button ::after, the 44 px box) centre in the 48 px row */
  .rv-selbar__all { min-height: var(--h-tap); padding-inline: var(--sp-2); }
}

/* ---- the result of a move (KIT-2): replaces the bar's content in place ---------------------------------------------------- */
.rv-mres { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: center; column-gap: var(--sp-2); min-width: 0; }
.rv-mres__text { flex: 1 1 0; min-width: 0; margin: 0; color: var(--ink); font: var(--w-reg) var(--t-body)/1.3 var(--f-ui); overflow-wrap: anywhere; }
.rv-mres__text:focus { outline: none; }
.rv-mres__clause { color: var(--ink-2); }
.rv-mres--failed .rv-mres__text { color: var(--error); }       /* an error in words, never a fill (D36) */
.rv-mres__acts { display: flex; flex: 0 0 auto; align-items: center; gap: var(--sp-1); margin-left: auto; }
.rv-mres__acts .rv-btn--s { margin-block: 0; }

/* ---- view toolbar (KIT-8): wraps by CONTENT, not by breakpoint; chips 32, fields 40, selects 40, the switch 40 ---------------- */
.rv-vtb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.rv-vtb > * { min-width: 0; }
.rv-vtb__chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.rv-vtb .rv-field:not(.rv-tbsel) { width: 124px; max-width: 100%; }
.rv-vtb .rv-search { flex: 0 1 200px; min-width: 160px; max-width: 200px; }
.rv-vtb .rv-vsw { margin-left: auto; }
.rv-vtb .rv-field .rv-field__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* a select in the toolbar is named for assistive tech only */

/* ---- the toolbar's topic and people selects (ui/nav_select.html, VL-11): ONE width rule for Lanes and the Table; a long option ends in an ellipsis closed ---- */
.rv-tbsel { flex: 0 1 auto; min-width: 120px; max-width: 200px; }
@media (max-width: 767px) { .rv-tbsel { flex: 1 1 140px; max-width: none; } }

/* ---- Bulk move dialog (KIT-7): chips 32, segmented 40, preview rows 40 (--row); the body scrolls, the footer stays ------- */
.rv-bmd { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; margin: 0; }
.rv-bmd__group { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.rv-bmd__legend { padding: 0; color: var(--ink-3); font: 500 var(--t-micro)/1.2 var(--f-data); letter-spacing: var(--tr-caps); text-transform: uppercase; }
.rv-bmd__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.rv-bmd__preview { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.rv-bmd__count { margin: 0; color: var(--ink); font: var(--w-emph) var(--t-body)/1.4 var(--f-ui); }
.rv-bmd__rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rv-bmd__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 40px; align-items: center; column-gap: var(--sp-3); min-height: var(--row); padding: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: var(--w-reg) var(--t-data)/1.3 var(--f-ui); }
.rv-bmd__q,
.rv-bmd__pct { color: var(--ink-2); font: var(--w-reg) var(--t-data)/1.3 var(--f-data); white-space: nowrap; }
.rv-bmd__pct { text-align: right; }
.rv-bmd__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-bmd__grade { color: var(--ink-2); white-space: nowrap; }
.rv-bmd__row--blocked,
.rv-bmd__row--blocked .rv-bmd__q { color: var(--ink-2); }      /* the lock is --ink-2, not amber (ln-N2) */
.rv-bmd__more { margin: 0; color: var(--ink-3); font: var(--w-reg) var(--t-data)/1.4 var(--f-ui); }
.rv-bmd__guard { margin: 0; color: var(--ink-2); font: var(--w-reg) var(--t-data)/1.4 var(--f-ui); }
@media (max-width: 767px) { .rv-bmd__row { grid-template-columns: 48px minmax(0, 1fr) 40px; } .rv-bmd__grade { display: none; } }

/* ---- the Sheet link needs a window of 1024 px (answers-sheet SD-6: hidden by CSS, the server never knows the width); drawn by every Answers view ---- */
@media (max-width: 1023.98px) {
  .rv-vsw__opt[data-view="sheet"] { display: none; }
  .rv-vsw__opt:has(+ .rv-vsw__opt[data-view="sheet"]) .rv-seg__txt { border-radius: 0 7px 7px 0; }
}

/* ---- ui/progress.html: the ONE group progress bar (Activity 22a, design confirm M4) · 8 px, radius 4, track --line-3, fill --ink ---- */
.rv-progress { appearance: none; -webkit-appearance: none; display: block; box-sizing: border-box; width: 100%; height: 8px; margin: 0; border: 0; border-radius: var(--r-in); background: var(--line-3); color: var(--ink); overflow: hidden; }
.rv-progress::-webkit-progress-bar { background: var(--line-3); border-radius: var(--r-in); }
.rv-progress::-webkit-progress-value { background: var(--ink); border-radius: var(--r-in); }
.rv-progress::-moz-progress-bar { background: var(--ink); border-radius: var(--r-in); }
/* size l (progress_bar(size='l'), workspace-plan PL-S5): 16 px high as BPlan draws; radius, track and fill unchanged */
.rv-progress.rv-progress--l { height: 16px; }

/* ---- ui/status_bar.html: the three answer states (Activity issue 1226): final, in review, no answer; the words always stand beside it ---- */
.rv-sbar { display: block; width: 100%; height: 8px; border-radius: var(--r-in); overflow: hidden; }
.rv-sbar--l { height: 14px; border-radius: 7px; }
.rv-sbar__svg { display: block; width: 100%; height: 100%; }
.rv-sbar__open { fill: var(--open); }
.rv-sbar__final { fill: var(--final); }
.rv-sbar__review { fill: var(--review); }
.rv-ring { position: relative; display: inline-block; flex: none; width: 104px; height: 104px; }
.rv-ring__svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.rv-ring__svg circle { fill: none; stroke-width: 10; }
.rv-ring__open { stroke: var(--open); }
.rv-ring__final { stroke: var(--final); }
.rv-ring__review { stroke: var(--review); }
.rv-ring__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; text-align: center; }
.rv-ring__pct { color: var(--ink); font: var(--w-display) 26px/1.05 var(--f-ui); letter-spacing: var(--tr-num); }
.rv-ring__word { color: var(--ink-3); font: var(--w-reg) var(--t-micro)/1.2 var(--f-data); }
.rv-st-key { display: inline-block; width: 9px; height: 9px; margin-right: var(--sp-1); border-radius: 2px; vertical-align: baseline; }
.rv-st-key--final { background: var(--final); }
.rv-st-key--review { background: var(--review); }
.rv-st-key--open { background: var(--open); }

/* ---- ui/person_find.html: the people search of a step or a card (a combobox over every active account; New bid #815, Activity issue 1226) ---- */
.rv-find { position: relative; display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.rv-find__list { position: absolute; z-index: 5; inset-inline: 0; top: 100%; max-height: 220px; margin: 0; padding: var(--sp-1); overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--raised); box-shadow: var(--sh-pop); }
.rv-find__opt { padding: var(--sp-2); border-radius: var(--r-in); color: var(--ink); font: var(--w-reg) var(--t-body)/1.3 var(--f-ui); cursor: pointer; overflow-wrap: anywhere; }
.rv-find__opt:hover, .rv-find__opt[aria-selected="true"] { background: var(--hover); box-shadow: inset 2px 0 0 var(--ink); }
.rv-find__none { margin: 0; color: var(--ink-3); font: var(--w-reg) var(--t-data)/1.4 var(--f-ui); }
.rv-find [hidden] { display: none; }

/* ---- ui/toggle.html: the switch (Activity's Status card, 22c-2): ONE role=switch button, track 36 x 20 plus the state word, 32 px high, 44 px on touch ---- */
.rv-toggle { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); box-sizing: border-box; min-height: var(--h-sm); margin: 0; padding: 0 var(--sp-1); border: 0; border-radius: var(--r); background: transparent; color: var(--ink); font: var(--w-emph) var(--t-body)/1.3 var(--f-ui); cursor: pointer; }
.rv-toggle:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.rv-toggle__track { position: relative; flex: none; box-sizing: border-box; width: 36px; height: 20px; border: 1px solid var(--line-ctl); border-radius: var(--r-pill); background: transparent; }
.rv-toggle__thumb { position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 12px; height: 12px; border-radius: var(--r-pill); background: var(--ink-2); }
.rv-toggle[aria-checked="true"] .rv-toggle__track { border-color: var(--accent); background: var(--accent); }
.rv-toggle[aria-checked="true"] .rv-toggle__thumb { inset-inline-start: 19px; background: var(--accent-ink); }
.rv-toggle[aria-busy="true"] { cursor: progress; }
.rv-toggle__word { min-width: 3ch; }
/* locked (toggle(locked=True), Staff console Languages, design confirm M4): cannot change now. NO opacity (a dimmed control fails contrast): the track keeps its
   --line-ctl border, the thumb is --ink-3, the cursor says not-allowed; aria-disabled keeps it focusable and named, its reason sits in words beside it */
.rv-toggle[aria-disabled="true"] { cursor: not-allowed; }
.rv-toggle[aria-disabled="true"] .rv-toggle__track { border-color: var(--line-ctl); background: transparent; }
.rv-toggle[aria-disabled="true"] .rv-toggle__thumb { background: var(--ink-3); }
@media (max-width: 767px), (pointer: coarse) {
  .rv-toggle::after { content: ""; position: absolute; inset-inline: 0; inset-block: calc((var(--h-tap) - var(--h-sm)) / -2); }
}

/* ---- ui/group_state.html: 'Marked complete' as words and a check shape, never a pill (shared by the Answers Table and Activity) ---- */
.rv-agroup__done { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font: var(--w-emph) var(--t-body, 14px)/1.3 var(--f-ui); }

/* ---- ui/section_nav.html: ONE section navigation (Workspace shell, Knowledge; workspace-members S2) · links, not a tablist ----
   40 px tabs (--ctl), radius 8, 14 px, gap 2; the active one an ink pill (--accent / --accent-ink), the others --ink-2 without fill.
   >= 1024 the tab row (never scrolls, never wraps); below 1024 the same items as ui/nav_select.html (never a scrolling row). */
.rv-snav { display: flex; align-items: center; min-width: 0; }
.rv-snav__tabs { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.rv-snav__tab {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--ctl);
  padding: 0 14px;
  border: 0;
  border-radius: var(--r);
  color: var(--ink-2);
  font: 500 var(--t-body)/1 var(--f-ui);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.rv-snav__tab:hover { background: var(--hover); color: var(--ink); border-bottom: 0; }
.rv-snav__tab[aria-current="page"],
.rv-snav__tab[aria-current="page"]:hover { background: var(--accent); color: var(--accent-ink); font-weight: var(--w-emph); }
.rv-snav__tab:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.rv-snav__select { display: none; min-width: 0; }
.rv-snav__select .rv-field { width: 100%; }
@media (max-width: 1023.98px) {
  .rv-snav__tabs { display: none; }
  .rv-snav__select { display: block; width: min(260px, 100%); }
}
/* the vertical variant (orientation='vertical', Staff console SC-D8 / SC-D11): the items stacked at 40 px with the optional mono meta on the right;
   the tab column is kept down to 768 px (its own query, not the horizontal 1024 one), below 768 the same items are the select */
.rv-snav--vertical { display: block; width: 100%; }
.rv-snav--vertical .rv-snav__tabs { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.rv-snav--vertical .rv-snav__tab { justify-content: space-between; gap: var(--sp-3); }
.rv-snav--vertical .rv-snav__select { display: none; }
.rv-snav__meta { color: var(--ink-3); font: var(--w-reg) var(--t-meta)/1 var(--f-data); }
.rv-snav__tab[aria-current="page"] .rv-snav__meta { color: inherit; }
@media (max-width: 767.98px) {
  .rv-snav--vertical .rv-snav__tabs { display: none; }
  .rv-snav--vertical .rv-snav__select { display: block; width: 100%; }
}

/* ---- ui/you_marker.html: '(You)' after the viewer's own name · 14 px regular, --ink-3, never a pill (workspace-members M2) ---- */
.rv-you { color: var(--ink-3); font: var(--w-reg) var(--t-body)/1.4 var(--f-ui); white-space: nowrap; }

/* ---- ui/bar_chart.html: months as bars in one inline svg (workspace-plan PL-S3, PL-S4): ink bars, the current month --ink-2 with 'so far' under its label, mono 12 text, no amber ---- */
.rv-chart { display: block; width: 100%; height: 215px; overflow: visible; }
.rv-chart__base { stroke: var(--line); stroke-width: 1; }
.rv-chart__bar { fill: var(--ink); }
.rv-chart__col--now .rv-chart__bar { fill: var(--ink-2); }
.rv-chart__val { fill: var(--ink); font: 400 var(--t-micro) var(--f-data); }
.rv-chart__lab { fill: var(--ink-3); font: 400 var(--t-micro) var(--f-data); }
.rv-chart__sub { fill: var(--ink-3); font: 400 var(--t-micro) var(--f-data); }

/* ---- the product picker (ui/product_pick.html, js/product_pick.js; issue 1246 A3: moved unchanged from new_bid.css, shared by New bid and the Answer editor) ---- */
.rv-nbx-err { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--error); font-size: var(--t-data); line-height: 1.4; }
.rv-nbx-dlg { display: flex; flex-direction: column; gap: var(--sp-3); }
.rv-nbx-dlg__count { margin: 0; color: var(--ink-2); font: var(--w-reg) var(--t-body)/1.4 var(--f-ui); }
.rv-nbx-pick { position: relative; display: flex; flex-direction: column; gap: var(--sp-1); }
.rv-nbx-pick__box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); box-sizing: border-box; min-height: var(--ctl); padding: 4px var(--sp-2); border: 1px solid var(--line-ctl); border-radius: var(--r); background: var(--raised); }
/* one ring (verify 356 F5): the box draws the field's focus style; the input inside it draws none */
.rv-nbx-pick__box:focus-within { border-color: var(--ink); outline: var(--focus-w) solid var(--focus); outline-offset: 1px; }
.rv-nbx-pick .rv-nbx-pick__input:focus, .rv-nbx-pick .rv-nbx-pick__input:focus-visible { outline: none; }
/* the dialog body scrolls (overflow-y: auto) and so clips at its edge; 4 px of room, given back by the margin, keeps the 3 px ring whole */
.rv-dialog__body:has(> .rv-nbx-dlg > .rv-nbx-pick) { padding: var(--sp-1); margin: calc(-1 * var(--sp-1)); }
.rv-nbx-pick__chips { display: contents; list-style: none; margin: 0; padding: 0; }
.rv-nbx-pchip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 8px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--sunk); color: var(--ink); font: 500 var(--t-data)/1.2 var(--f-data); }
.rv-nbx-pchip__x { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--r-in); background: none; color: var(--ink-2); cursor: pointer; }
.rv-nbx-pchip__x:hover { color: var(--ink); background: var(--hover); }
.rv-nbx-pick__input { flex: 1 1 120px; min-width: 0; height: 32px; border: 0; outline: 0; background: transparent; color: var(--ink); font: var(--w-reg) var(--t-body)/1.2 var(--f-ui); }
.rv-nbx-pick__list { z-index: 5; max-height: 220px; margin: 0; padding: var(--sp-1); overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--raised); box-shadow: var(--sh-pop); }
.rv-nbx-pick__opt { padding: var(--sp-2); border-radius: var(--r-in); color: var(--ink); font: var(--w-reg) var(--t-body)/1.3 var(--f-ui); cursor: pointer; }
.rv-nbx-pick__opt:hover, .rv-nbx-pick__opt[aria-selected="true"] { background: var(--hover); box-shadow: inset 2px 0 0 var(--ink); }
@media (max-width: 767px), (pointer: coarse) { .rv-nbx-pchip__x { width: var(--h-tap); height: var(--h-tap); } }
