/* RELIEF Studio: the Review queue and the review page (REVIEW.md G). Only studio.css's tokens, always with a fallback,
   so light and dark follow the shell; every class is rv- prefixed. State is never colour alone: each check carries
   its word and a glyph. Pictures are whole coins: object-fit contain, never cropped. */

/* the nav count */
.rv-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
            font-size: 11.5px; font-weight: 600; line-height: 1; vertical-align: 1px; font-variant-numeric: tabular-nums;
            background: var(--accent, #b4302b); color: var(--panel, #fff); }
.rv-count[hidden] { display: none; }

.rv kbd { display: inline-block; min-width: 1.5em; padding: 0 5px; border: 1px solid var(--rule, #dde1e6); border-bottom-width: 2px;
          border-radius: 5px; font: 500 11px/1.5 var(--mono, monospace); text-align: center; color: var(--ink2, #4a515c);
          background: var(--soft, #f0f2f5); vertical-align: 1px; }
.rv button kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .6; margin-left: 4px; }
.rv h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #7d8591); font-weight: 600; margin: 0 0 10px; }
.rv .rv-keys { margin-top: 28px; }

/* ---------------------------------------------------------------- the queue */
.rv-qhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.rv-qhead .lede { margin-bottom: 18px; }
.rv-start { display: grid; justify-items: end; gap: 4px; }
.rv-start small { text-align: right; }
.rv-filter { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13.5px; color: var(--ink2, #4a515c); }
.rv-filter .rv-seg { margin-top: 0; }
.rv-filter select { padding: 5px 8px; font-size: 13.5px; }
.rv-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule, #dde1e6); overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.rv-tabs::-webkit-scrollbar { display: none; }
.rv-tab { flex: none; background: transparent; color: var(--ink2, #4a515c); border: 0; border-radius: 7px 7px 0 0; padding: 9px 12px;
          font-weight: 400; font-size: 14px; box-shadow: inset 0 -2px 0 transparent; }
.rv-tab:hover:not(:disabled) { background: var(--soft, #f0f2f5); color: var(--ink, #16191d); }
.rv-tab.on { color: var(--ink, #16191d); font-weight: 500; box-shadow: inset 0 -2px 0 var(--accent, #b4302b); }
.rv-n { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: 12px; text-align: center;
        background: var(--chip, #eef0f3); color: var(--ink2, #4a515c); font-variant-numeric: tabular-nums; }
.rv-tab.on .rv-n { background: var(--ink, #16191d); color: var(--panel, #fff); }
.rv-notready { margin: 0 0 12px; color: var(--ink2, #4a515c); }

.rv-rows { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: var(--panel, #fff); border: 1px solid var(--rule, #dde1e6);
           border-radius: var(--radius, 12px); box-shadow: var(--shadow-sm, none); }
.rv-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px;
          border-radius: calc(var(--radius, 12px) - 4px); transition: background .12s; }
.rv-row:hover, .rv-row.rv-sel { background: var(--soft, #f0f2f5); }
.rv-row.rv-sel { box-shadow: inset 3px 0 0 var(--focus, #2a78d6); }
.rv-row + .rv-row::before { content: ""; position: absolute; left: 88px; right: 10px; top: -1px; height: 1px; background: var(--rule, #dde1e6); }
.rv-row:hover::before, .rv-row:hover + .rv-row::before, .rv-sel::before, .rv-sel + .rv-row::before { opacity: 0; }
.rv-pic { position: relative; display: block; width: 64px; height: 64px; }
.rv-thumb { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
            background: var(--stage, #0f1114); }
/* "Relief, no colour measured": the coins list's crossed droplet, on its own disc at the picture's corner (never a tint) */
.rv-mark { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; padding: 2px; border-radius: 50%; box-sizing: border-box;
           color: var(--ink2, #4a515c); background: var(--panel, #fff); box-shadow: 0 0 0 1px var(--rule, #dde1e6); z-index: 1; }
.rv-mark svg { width: 100%; height: 100%; display: block; }
.rv-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }   /* the whole coin, never cropped */
.rv-disc { width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--muted, #7d8591) 60%, transparent); }
.rv-row-body { min-width: 0; }
.rv-row-head { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.rv-row-name { color: var(--ink, #16191d); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.rv-row-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }      /* the whole row opens the coin */
.rv-row-name:focus-visible { outline: none; }
.rv-row:has(.rv-row-name:focus-visible) { outline: 2px solid var(--focus, #2a78d6); outline-offset: -2px; }
.rv-slug { color: var(--muted, #7d8591); font-size: 12px; overflow-wrap: anywhere; }
.rv-row-line { margin: 2px 0 6px; font-size: 13.5px; color: var(--ink2, #4a515c); overflow-wrap: anywhere; }
.rv-row-note { margin: -2px 0 6px; font-size: 12.5px; color: var(--warn, #9a6a00); }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--chip, #eef0f3); color: var(--ink2, #4a515c);
           border: 1px solid transparent; white-space: nowrap; }
.rv-chip-on { background: color-mix(in srgb, var(--focus, #2a78d6) 14%, var(--chip, #eef0f3)); }
.rv-chip-warn { background: color-mix(in srgb, var(--warn, #9a6a00) 18%, var(--chip, #eef0f3)); }
.rv-go { color: var(--muted, #7d8591); font-size: 20px; padding-right: 4px; }
.rv-empty { list-style: none; text-align: center; padding: 40px 16px; color: var(--ink2, #4a515c); }
.rv-rules { margin-top: 22px; }
.rv-rules small { margin: 2px 0 6px 26px; }
.rv-check-line { display: flex; gap: 8px; align-items: baseline; color: var(--ink2, #4a515c); margin: 8px 0 2px; cursor: pointer; }
.rv-check-line input { flex: none; margin: 0; }

/* ---------------------------------------------------------------- the review page */
.rv-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 18px; }
.rv-head h1 { margin: 0; overflow-wrap: anywhere; }
.rv-back { color: var(--muted, #7d8591); text-decoration: none; font-size: 13.5px; }
.rv-back:hover { color: var(--ink, #16191d); }
.rv-back kbd { margin-left: 4px; }
.rv-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted, #7d8591); }
.rv-sub span:empty { display: none; }
.rv-sub .mono { overflow-wrap: anywhere; }
.rv-headline { margin: 10px 0 0; font-size: 15.5px; color: var(--ink, #16191d); max-width: 75ch; overflow-wrap: anywhere;
               padding-left: 12px; border-left: 3px solid var(--rule, #dde1e6); }
.rv-headline:empty { display: none; }
.rv-headline.rv-st-ready { border-left-color: var(--focus, #2a78d6); }
.rv-headline.rv-st-changes, .rv-headline.rv-st-changed { border-left-color: var(--warn, #9a6a00); }
.rv-headline.rv-st-accepted { border-left-color: var(--ok, #1f7a4a); }
.rv-line { margin: 4px 0 0 15px; color: var(--ink2, #4a515c); }

.rv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .rv-grid { grid-template-columns: minmax(0, 1fr); } }
.rv-look { display: grid; gap: 16px; min-width: 0; }
.rv-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-side { margin: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.rv-side .stage-cap { font-size: 12.5px; }
.rv-pic { cursor: zoom-in; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }   /* the square holds the picture, whatever its pixels */
.rv-pic .stage-pic { min-width: 0; min-height: 0; }
.rv-pic .stage-pic img { display: block; }
.rv-pic-empty { cursor: default; }
.rv-pic:focus-visible { outline: 2px solid var(--focus, #2a78d6); outline-offset: 2px; }
.rv-pic .stage-empty { font-size: 13px; padding: 12px; }
.rv-pic .stage-empty .disc { width: 40%; margin-bottom: 10px; }
.rv-side > .link { margin-top: 2px; }
.rv-solid > .small { margin: 0; }
.rv-solid-stage { aspect-ratio: 4 / 3; }
.rv-solid-stage:focus-visible, .rv-solid-stage:focus { outline: 2px solid var(--focus, #2a78d6); outline-offset: 2px; }

.rv-decide { display: grid; gap: 18px; min-width: 0; }
.rv-decide > div:empty { display: none; }
.rv-block { background: var(--panel, #fff); border: 1px solid var(--rule, #dde1e6); border-radius: var(--radius, 12px); padding: 14px 16px;
            box-shadow: var(--shadow-sm, none); min-width: 0; }
.rv-assign { padding: 10px 14px; }
.rv-assign-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.rv-assign-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rv-assign-acts button.ghost { padding: 4px 10px; font-size: 13.5px; }
.rv-assign-pick { display: inline-block; margin: 10px 10px 0 0; }
.rv-assign-pick select { max-width: 100%; }
.rv-note { margin: 0; font-size: 13.5px; color: var(--ink2, #4a515c); padding: 8px 12px; border-radius: 8px; background: var(--soft, #f0f2f5); }
.rv-note-warn { background: color-mix(in srgb, var(--warn, #9a6a00) 12%, var(--panel, #fff)); color: var(--ink, #16191d); }
.rv-stale { margin: 0; }

.rv-checks, .rv-confs, .rv-reqs, .rv-waive, .rv-hist { list-style: none; margin: 0; padding: 0; }
.rv-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule, #dde1e6); }
.rv-check:first-child { border-top: 0; padding-top: 2px; }
.rv-glyph { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1;
            background: var(--chip, #eef0f3); color: var(--muted, #7d8591); }
.rv-s-pass .rv-glyph { background: color-mix(in srgb, var(--ok, #1f7a4a) 16%, var(--panel, #fff)); color: var(--ok, #1f7a4a); }
.rv-s-attention .rv-glyph { background: color-mix(in srgb, var(--warn, #9a6a00) 18%, var(--panel, #fff)); color: var(--warn, #9a6a00); }
.rv-s-fail .rv-glyph { background: color-mix(in srgb, var(--bad, #b4302b) 16%, var(--panel, #fff)); color: var(--bad, #b4302b); }
.rv-s-pending .rv-glyph { color: var(--focus, #2a78d6); }
.rv-ck-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.rv-ck-label { font-weight: 500; }
.rv-word { font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted, #7d8591); }
.rv-s-pass .rv-word { color: var(--ok, #1f7a4a); }
.rv-s-attention .rv-word { color: var(--warn, #9a6a00); }
.rv-s-fail .rv-word { color: var(--bad, #b4302b); }
.rv-req { font-size: 11px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--rule, #dde1e6); color: var(--muted, #7d8591); }
.rv-ck-detail { margin: 2px 0 0; font-size: 13.5px; color: var(--ink2, #4a515c); overflow-wrap: anywhere; }

.rv-conf { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 8px; margin: 0 -8px;
           border-radius: 8px; cursor: pointer; }
.rv-conf:hover { background: var(--soft, #f0f2f5); }
.rv-conf input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--ok, #1f7a4a); }
.rv-conf kbd { margin-top: 1px; }
.rv-conf-text strong { font-weight: 500; display: block; }
.rv-conf-text small { margin-top: 1px; overflow-wrap: anywhere; }
.rv-conf.on strong { color: var(--ok, #1f7a4a); }

.rv-openreq { border-color: color-mix(in srgb, var(--warn, #9a6a00) 55%, var(--rule, #dde1e6)); }
.rv-reqs li + li { border-top: 1px solid var(--rule, #dde1e6); padding-top: 8px; margin-top: 8px; }
.rv-reqs p { margin: 0 0 4px; overflow-wrap: anywhere; }
.rv-withdraw { margin-top: 6px; }

.rv-decision { min-width: 0; }
.rv-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rv-acts button { min-width: 0; }
.rv-acts button.big { grid-column: 1 / -1; }
.rv-why { margin: 8px 0 0; color: var(--ink2, #4a515c); }
.rv-err { margin: 8px 0 0; color: var(--bad, #b4302b); font-size: 13.5px; }
.rv-panel { background: var(--panel, #fff); border: 1px solid var(--ink, #16191d); border-radius: var(--radius, 12px); padding: 16px;
            box-shadow: var(--shadow, none); }
.rv-panel > p:first-child { margin-top: 0; }
.rv-field { display: grid; gap: 4px; font-size: 13px; color: var(--ink2, #4a515c); margin: 10px 0; }
.rv-field textarea, .rv-field input { width: 100%; font: inherit; font-size: 14px; resize: vertical; }
.rv-panel-acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.rv-panel .small.muted { margin: 8px 0 0; }
.rv-waive { margin: 6px 0; padding-left: 0; }
.rv-waive li { padding: 6px 10px; margin: 4px 0; border-radius: 8px; font-size: 13.5px; overflow-wrap: anywhere;
               background: color-mix(in srgb, var(--warn, #9a6a00) 10%, var(--panel, #fff)); }
.rv-radios { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.rv-radio { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.rv-radio:hover { background: var(--soft, #f0f2f5); }
.rv-radio input { margin: 0; flex: none; }
.rv-radio:has(input:checked) { background: var(--soft, #f0f2f5); box-shadow: inset 0 0 0 1px var(--rule, #dde1e6); }
.rv-done { background: var(--panel, #fff); border: 1px solid var(--ok, #1f7a4a); border-radius: var(--radius, 12px); padding: 16px;
           box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok, #1f7a4a) 12%, transparent); }
.rv-done > p:first-child { margin-top: 0; }
.rv-next { display: grid; justify-items: start; gap: 4px; margin: 12px 0 6px; }
.rv-next button { max-width: 100%; text-align: left; overflow-wrap: anywhere; }

.rv-hist li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 2px 12px; padding: 7px 0; font-size: 13.5px;
              border-top: 1px solid var(--rule, #dde1e6); }
.rv-hist li:first-child { border-top: 0; padding-top: 0; }
.rv-hist li.muted { display: block; }
.rv-hist time { color: var(--muted, #7d8591); font-variant-numeric: tabular-nums; }
.rv-hist span { overflow-wrap: anywhere; }
@media (max-width: 520px) { .rv-hist li { grid-template-columns: minmax(0, 1fr); } }

/* dialogs: the large picture (whole, contained) and the key list */
.rv-dlg { padding: 0; border: 1px solid var(--rule, #dde1e6); border-radius: var(--radius, 12px); background: var(--panel, #fff); color: var(--ink, #16191d);
          max-width: calc(100vw - 24px); }
.rv-dlg::backdrop { background: rgba(10, 12, 15, .6); }
.rv-dlg-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--rule, #dde1e6); }
.rv-dlg-head strong { font-weight: 500; font-size: 14px; }
.rv-big { width: min(1100px, 96vw); }
.rv-big-body { display: grid; place-items: center; background: var(--stage, #0f1114); height: min(78vh, 1000px); }
.rv-big-body img { width: 100%; height: 100%; object-fit: contain; padding: 2%; display: block; }   /* whole, never cropped */
.rv-big-keys { margin: 0; padding: 8px 14px; }
.rv-help { width: min(560px, 96vw); max-height: calc(100dvh - 24px); overflow: auto; }   /* the last row stays reachable */
.rv-keylist { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; padding: 14px 16px; font-size: 14px; }
.rv-keylist dd { margin: 0; color: var(--ink2, #4a515c); }
.rv-help > p { padding: 0 16px 14px; margin: 0; }

@media (max-width: 560px) {
  .rv-start { justify-items: stretch; width: 100%; }
  .rv-start small { text-align: left; }
  .rv-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .rv-pic, .rv-thumb { width: 56px; height: 56px; }
  .rv-go { display: none; }
  .rv-row + .rv-row::before { left: 78px; }
  .rv-acts { grid-template-columns: minmax(0, 1fr); }
  .rv-tabs { flex-wrap: wrap; overflow-x: visible; }
  .rv-block { padding: 12px; }
  .rv-keylist { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rv-keylist dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .rv-row { transition: none; } }
/* a touch screen (or a phone-width window) has no keys to hint at */
@media (hover: none), (pointer: coarse), (max-width: 560px) {
  .rv .rv-keys, .rv button kbd, .rv-conf kbd, .rv-radio kbd, .rv-back kbd, .rv-panel .small.muted:has(kbd), .rv-big-keys { display: none; }
}

/* the checks card: what is met folds into one line */
.rv-fold > summary { cursor: pointer; padding: 6px 0; color: var(--ink2, #4a515c); font-size: 14px; list-style-position: inside; }
.rv-fold > summary::marker { color: var(--muted, #7d8591); }
.rv-checks + .rv-fold { border-top: 1px solid var(--rule, #dde1e6); margin-top: 2px; }
.rv-fold[open] > summary { margin-bottom: 4px; }
.rv-radio input:disabled + kbd, .rv-radio input:disabled ~ span { opacity: .55; }
.rv-radio:has(input:disabled) { cursor: default; }

/* an accepted coin: what the acceptor confirmed, read-only */
.rv-conf-done { grid-template-columns: 22px minmax(0, 1fr); cursor: default; }
.rv-conf-done:hover { background: transparent; }
.rv-conf-done .rv-glyph { background: color-mix(in srgb, var(--ok, #1f7a4a) 16%, var(--panel, #fff)); color: var(--ok, #1f7a4a); }
.rv-conf-by { padding: 6px 0 0; }

/* the coin page: a send-back waits on the step that carries the action (amber, never the red of a failed step) */
.step.waiting { border-color: color-mix(in srgb, var(--warn, #9a6a00) 60%, var(--rule, #dde1e6));
                background: color-mix(in srgb, var(--warn, #9a6a00) 5%, var(--panel, #fff)); margin: 3px 0; z-index: 1; }
.step.waiting .num, .step.waiting .tag { border-color: var(--warn, #9a6a00); color: var(--warn, #9a6a00); }

/* ---- audit 2026-10-25 (docs/audit/2026-10-25-studio-audit/BACKLOG.md S1, S2, R1): each check's outcome, the honest
   count, what an acceptance covers, the raw evidence. A check that did not run is never drawn as passed. */
.rv-ck-sum { margin: 0 0 8px; font-weight: 500; color: var(--ink, #16191d); }
.rv-st-not_evaluated .rv-glyph, .rv-st-not_applicable .rv-glyph { background: var(--soft, #f0f2f5); color: var(--muted, #7d8591); }
.rv-st-not_evaluated .rv-word, .rv-st-not_applicable .rv-word { color: var(--muted, #7d8591); }
.rv-st-not_evaluated .rv-glyph { box-shadow: inset 0 0 0 1.5px var(--muted, #7d8591); }
.rv-req-quiet { border-style: dashed; }
.rv-scope { border: 1px solid var(--rule, #dde1e6); border-radius: 10px; padding: 8px 10px 6px; margin: 10px 0 0; display: grid; gap: 2px; }
.rv-scope legend { font-size: 12px; color: var(--muted, #7d8591); padding: 0 4px; text-transform: uppercase; letter-spacing: .05em; }
.rv-scope .rv-radio { align-items: start; }
.rv-scope .rv-radio input { margin-top: 4px; }
.rv-scope .rv-radio strong { font-weight: 500; display: block; }
.rv-scope .rv-radio small { color: var(--ink2, #4a515c); }
.rv-conf-out { opacity: .6; cursor: default; }
.rv-conf-out:hover { background: transparent; }
.rv-evidence p { margin: 0 0 6px; }
.rv-solid-none { margin: 0; }

/* what the acceptance covers: the two choices side by side on a desktop, so the decision stays in the first screen */
.rv-scope { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.rv-scope legend { font-weight: 600; margin-bottom: 4px; }
.rv-scope .rv-radio { align-items: flex-start; }
@media (min-width: 900px) { .rv-scope { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Phase 3: what the reviewer's ticks decide */
.rv-confs > li { list-style: none; }
.rv-conf-blocked input { opacity: .5; }
.rv-conf small.rv-conf-blocked { color: var(--warn, #9a6a00); }
.rv-uprights { margin: 2px 0 10px 52px; }
.rv-up-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.rv-up-pair figure { margin: 0; min-width: 0; }
.rv-up-pic { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--rule, #dde1e6); border-radius: 8px;
             background: var(--soft, #f0f2f5); }
.rv-up-pic img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }   /* the whole coin, never cropped */
.rv-grade-ask { display: grid; grid-template-columns: repeat(2, minmax(0, 12rem)); gap: 4px 12px; margin: 2px 0 10px 52px; }
.rv-grade-ask p { grid-column: 1 / -1; margin: 0; }
.rv-grade-ask input[aria-invalid="true"] { border-color: var(--bad, #b4302b); }
.rv-pick { margin: 0 0 10px 52px; }
.rv-pick ul { margin: 6px 0; padding-left: 18px; }
.rv-tl { width: 100%; border-collapse: collapse; }
.rv-tl th, .rv-tl td { text-align: left; vertical-align: top; padding: 3px 8px 3px 0; border-top: 1px solid var(--rule, #dde1e6);
                       font-weight: 400; overflow-wrap: anywhere; }
.rv-tl td.mono { white-space: nowrap; }
@media (max-width: 640px) {
  .rv-uprights, .rv-grade-ask, .rv-pick { margin-left: 0; }
  .rv-grade-ask { grid-template-columns: minmax(0, 1fr); }
}

/* the one status model on the review page and the queue (statusview.js) */
.rv-state { margin-top: 2px; line-height: 1.3; }
.rv-state .stage-tag { padding: 0 8px 0 6px; font-size: 12px; }
.rv-state .rep-chip { font-size: 11.5px; }
.rv-state-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.rv-state-more summary { cursor: pointer; color: var(--muted, #6b7280); }
.rv-state-more[open] { flex-basis: 100%; }
.rv-state-next { margin: 4px 0 0; }
.rv-state-more .dims { padding: 6px 0 2px; }
.rv-chip-legacy { border: 1px dashed var(--muted, #6b7280); background: transparent; }
.rv-legacy-head { list-style: none; padding: 10px 4px 2px; }

/* the queue, simplified (views/reviewqueue.js rowHtml, DESIGN.md 4.5): the name on one line, one chip and who has it
   beside it, the row's line behind the chip's '?'; the lab imports folded under one line */
.rv-queue .rv-row-body { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.rv-queue .rv-row-name { flex: 0 1 auto; min-width: 0; max-width: min(52ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-queue .rv-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rv-queue .rv-notready { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rv-legacy-group { list-style: none; padding: 4px 4px 2px; }
.rv-legacy-group > details > summary { color: var(--ink2, #4a515c); font-weight: 500; padding: 8px 6px; }
.rv-legacy-group .rv-legacy-rows { border: 0; box-shadow: none; padding: 0; background: transparent; }
.rv-qhead h1.tipped { display: inline-flex; gap: 8px; }
@media (max-width: 560px) {
  .rv-queue .rv-row-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* ---------------------------------------------------------------- the review page, simplified (DESIGN.md 4.4)
   One status line of chips, the coin's one next action, each check and each tick one line with its words behind a '?'
   (views/tips.js), the rest in closed Details under the decision. */
.rv-status { margin: 8px 0 0; }
.rv-status:empty { display: none; }
.rv-nextbox:empty { display: none; }
.rv-nextbox .cs-next { margin: 6px 0 0; color: var(--ink, #16191d); }
.rv-nextbox .cs-next .tip { margin-left: 4px; }
.rv-side .stage-cap .tipped { white-space: normal; }
.rv-side-links { display: flex; gap: 12px; justify-content: center; }
.rv-ck-head .tip { margin-left: 2px; }
.rv-ck-sum { margin: 0 0 6px; color: var(--ink2, #4a515c); }
.rv-checks-block details.disclose { margin-top: 0; }
.rv-conf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 8px; }
.rv-conf-row > .rv-conf { min-width: 0; }
.rv-conf-row > .tip { margin-top: 9px; }
.rv-conf-row > .rv-chip { grid-column: 1 / -1; justify-self: start; margin: -4px 0 6px 32px; }
.rv-confs > li + li { border-top: 1px solid var(--rule, #dde1e6); }
.rv-uprights { display: grid; gap: 8px; margin: 2px 0 8px 32px; }
.rv-up-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 8px; }
.rv-up-pair figure { margin: 0; min-width: 0; }
.rv-up-pair figcaption { color: var(--ink2, #4a515c); margin-top: 2px; }
.rv-oc { margin: 0 0 8px 32px; display: grid; gap: 4px; }
.rv-oc details.disclose { margin-top: 0; }
.rv-oc details.disclose > summary { font-weight: 400; color: var(--ink2, #4a515c); }
.rv-oc ul { margin: 4px 0; padding-left: 18px; }
.rv-oc li { margin-bottom: 4px; overflow-wrap: anywhere; }
.rv-oc-warn { margin: 0; color: var(--warn, #9a6a00); }
.rv-oc-short { margin: 0; }
.rv-oc-replaces { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn, #9a6a00) 9%, var(--panel, #fff)); }
.rv-pick { margin: 0 0 8px 32px; }
.rv-pick > summary { font-weight: 400; color: var(--ink2, #4a515c); }
.rv-upfix-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; }
.rv-scope { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rv-scope legend { float: left; display: inline-flex; align-items: center; gap: 4px; padding: 0; margin-right: 4px; font-size: 13.5px; color: var(--ink2, #4a515c); }
.rv-scope .rv-radio { padding: 4px 8px; font-size: 13.5px; }
.rv-why { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-more { display: grid; gap: 10px; }
.rv-more > div:empty { display: none; }
.rv-more details.rv-more-d { margin: 0; background: var(--panel, #fff); border: 1px solid var(--rule, #dde1e6); border-radius: var(--radius, 12px);
                             padding: 10px 16px; box-shadow: var(--shadow-sm, none); }
.rv-more details.rv-more-d > summary { color: var(--ink, #16191d); }
.rv-more details.rv-more-d > summary .tip { margin-left: 6px; }
.rv .rv-keys { margin-top: 8px; }
.rv .rv-keys .tip { margin-left: 4px; }
.rv-reqs p .tip { margin-left: 4px; }
@media (max-width: 560px) { .rv-uprights, .rv-oc, .rv-pick { margin-left: 0; } }

/* ---------------------------------------------------------------- Studio v2 (plan WP-D): both sides in sight, the
   decisions in three groups, the identification in the open, one decision bar */
/* both sides stay in sight while the right column scrolls (a desktop); on a phone they come first */
@media (min-width: 861px) {
  .rv-look { position: sticky; top: 72px; max-height: calc(100vh - 84px); overflow-y: auto; scrollbar-width: thin; }
}
/* the two section heads in sentence case ("What you confirm", "Exceptions"); the group heads small, as before */
.rv h2.rv-h2 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink, #16191d); margin-bottom: 8px; }
.rv-group + .rv-group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule, #dde1e6); }
.rv-group[hidden] { display: none; }
.rv-group > h3, .rv-openreq > h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #7d8591);
  font-weight: 600; margin: 0 0 4px; }
.rv-openreq { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule, #dde1e6); }
.rv-exc-none { margin: 0 0 6px; color: var(--ok, #1f7a4a); }
.rv-exc-block .rv-ck-sum { font-size: 13.5px; }
/* the checks' count line wraps on a phone ("5 passed · 2 not met · 1 not evaluated · 1 not applicable") */
.rv-ck-sum .tipped, #rv-state .tipped:has(.cs-unmet) { white-space: normal; max-width: 100%; }
.cs-unmet { color: var(--warn, #9a6a00); font-size: 13px; font-weight: 500; }
/* the queue row's unmet chip is four words; "+1" beside it counts the rest (the whole line behind the row's '?') */
.rv-more { margin-left: 4px; font-size: 11.5px; font-weight: 600; color: var(--warn, #9a6a00); }

/* the identification, in the open: its fields, legends, type and grade; the report text it also confirms under Details */
.rv-idv { margin: 0 0 8px 32px; display: grid; gap: 6px; }
.rv-idf { margin: 0; display: grid; gap: 2px; }
.rv-idf-row { display: grid; grid-template-columns: minmax(6.5em, max-content) minmax(0, 1fr); gap: 2px 12px; align-items: baseline; }
.rv-idf dt { color: var(--muted, #7d8591); }
.rv-idf dd { margin: 0; color: var(--ink, #16191d); overflow-wrap: anywhere; }
.rv-idf-legends { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.rv-idf-cap { margin: 0; }
.rv-idv details.disclose { margin-top: 0; }
.rv-idv details.disclose > summary { font-weight: 400; color: var(--ink2, #4a515c); }
.rv-oc-group { margin-top: 6px; }
.rv-oc-kind { margin: 0; font-weight: 500; color: var(--ink2, #4a515c); }
.rv-oc-group ul, .rv-idv .disclose-body > ul { margin: 2px 0 4px; padding-left: 18px; }
.rv-oc-group li { margin-bottom: 3px; overflow-wrap: anywhere; }
.rv-oc-line { margin: 0 0 4px; color: var(--ink2, #4a515c); }
/* the condition and report statements (owner decision D2): every sentence in the open, their own approval */
.rv-stm { margin: 0 0 8px 32px; display: grid; gap: 4px; }
li[data-confitem="statements"] > button[data-rv="approve-statements"] { margin: 4px 0 0 32px; }
.g-lead-wrap { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }

/* "Require a second reviewer": its chip and its one sentence, in sight */
.rv-fe { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 0; font-size: 13.5px; color: var(--ink2, #4a515c); }
#rv-fe:empty { display: none; }
.rv-fe-why { margin: 2px 0 0 26px; }
.rv-tobar { margin-left: 6px; font-size: 13.5px; }

/* the decision bar: sticky at the bottom of the right column on a desktop, a fixed bar on a phone */
.rv-bar { position: sticky; bottom: 0; z-index: 3; background: var(--panel, #fff); border: 1px solid var(--rule, #dde1e6);
  border-radius: var(--radius, 12px); padding: 12px 14px; box-shadow: 0 -8px 20px -14px rgba(10, 12, 15, .45); }
.rv-bar[hidden] { display: none; }
.rv-bar .rv-why { margin-top: 8px; }
.rv-acts-one { grid-template-columns: minmax(0, 1fr); }
/* only Send back is usable (the second-reviewer rule): one slim row */
.rv-acts-slim { display: flex; justify-content: flex-end; }
.rv-bar.rv-bar-slim { padding: 8px 14px; }
@media (max-width: 860px) {
  .rv-bar { position: fixed; left: 0; right: 0; bottom: 0; border-radius: 0; border-width: 1px 0 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .rv-bar .rv-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rv-bar .rv-acts button { padding: 9px 10px; font-size: 14px; }
  .rv-bar .rv-acts button.big { font-size: 15.5px; padding: 10px 14px; }
  .rv-bar .rv-why { margin-top: 6px; font-size: 13px; }
  .rv-page.rv-has-bar { padding-bottom: 150px; }
  .rv-bar.rv-bar-slim { padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .rv-bar .rv-acts-slim { display: flex; }
  .rv-page.rv-has-slimbar { padding-bottom: 64px; }
}
@media (max-width: 640px) { .rv-idv, .rv-stm { margin-left: 0; } .rv-fe-why { margin-left: 0; }
  li[data-confitem="statements"] > button[data-rv="approve-statements"] { margin-left: 0; } }
.rv-fe-toggle { display: flex; align-items: center; gap: 6px; }
.rv-fe-toggle .rv-check-line { margin: 8px 0 2px; }

/* v0.1.43 trust fixes (outside review of v0.1.42). 2: what the decision records, live above its buttons */
.rv-approving { margin: 0 0 8px; color: var(--ink, #1b1f24); font-weight: 500; }
/* 3: the statements this approval does not cover, with their text, collapsed */
.rv-stm-alone { margin: 8px 0 0; }
.rv-stm-alone > summary { cursor: pointer; color: var(--ink2, #4a515c); }
.rv-stm-alone ul { margin: 4px 0 0; padding-left: 18px; }
.rv-stm-alone p { margin: 4px 0 0; }
/* 5: no WebGL: the two reliefs large, side by side, and the solid one line with its STL */
.rv-page.rv-nogl .rv-side .rv-pic { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.rv-page.rv-nogl .rv-side .rv-pic .stage-pic img { width: 100%; height: 100%; object-fit: contain; }
.rv-solid-nogl { margin: 0; }

/* ---------------------------------------------------------------- v0.1.45: the evidence workspace (the design canvas's
   "Review workspace" and "Phone · Review", locked). Evidence about 60 % | decisions 40 %, the evidence in sight while
   the decisions scroll; three sections with their completion marks; the statements one by one; one compact sticky
   footer whose own space at the page's end is kept, so it never covers the last content. */
main:has(> .rv-ws) { max-width: 1440px; }
.rv-ws .rv-head { align-items: stretch; margin-bottom: 14px; }
.rv-ws .rv-head-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.rv-ws .rv-head-row h1 { font-size: 22px; letter-spacing: -.01em; }
.rv-ws .rv-head-row .rv-sub { gap: 4px 12px; }
.rv-ws .rv-nextcoin { margin-left: auto; padding: 6px 12px; font-size: 13.5px; }
@media (min-width: 861px) { .rv-ws .rv-ws-grid { grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr); } }
.rv-ws .rv-look { gap: 0; }
@media (min-width: 861px) { .rv-ws .rv-look { top: calc(var(--rv-top, 60px) + 12px); max-height: calc(100vh - var(--rv-top, 60px) - 24px); } }
.rv-ev { background: var(--stage, #0f1114); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.rv-ev:has(> .rv-solid:empty) .rv-solid, .rv-ev .stage-tools:empty { display: none; }
.rv-ev-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.rv-ev .rv-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(42, 47, 54, .7); border: 1px solid rgba(255, 255, 255, .08); }
.rv-ev .rv-seg button { font: inherit; font-size: 13px; border: 0; background: transparent; color: #b9bfc8; height: 30px; padding: 0 12px; border-radius: 7px; }
.rv-ev .rv-seg button:hover:not(:disabled) { background: rgba(255, 255, 255, .08); color: #eceef1; }
.rv-ev .rv-seg button.on { background: #eceef1; color: #121417; font-weight: 500; }
.rv-ev .rv-seg button:disabled { color: #6c737e; cursor: not-allowed; }
.rv-ev .rv-sides { gap: 12px; }
.rv-ev .rv-sides.rv-one { grid-template-columns: minmax(0, 1fr); }
.rv-ev .rv-sides:empty { display: none; }
.rv-ev .rv-side { align-items: stretch; }
.rv-ev .rv-side .rv-pic { width: 100%; height: auto; aspect-ratio: 1 / 1; position: relative; }
.rv-ev .rv-side .stage-cap, .rv-ev .rv-side-cap { color: #b9bfc8; display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; font-size: 12.5px; }
.rv-ev .rv-side-cap button.link { color: #b9bfc8; }
.rv-ev .rv-side-cap button.link:hover:not(:disabled) { color: #eceef1; }
.rv-ev .rv-solid-stage { aspect-ratio: 1 / 1; max-height: calc(100vh - var(--rv-top, 60px) - 150px); width: 100%; }
.rv-ev .rv-solid > .small, .rv-ev .rv-solid-nogl { color: #b9bfc8; }
.rv-ev .rv-solid-nogl a { color: #d7dbe0; }
/* the selected statement's side: ringed, its label on it (where the statement's words name a side) */
.rv-hl { position: absolute; inset: 3%; border: 2px solid #8bbcf5; border-radius: 50%; pointer-events: none; z-index: 1;
         box-shadow: 0 0 0 9999px rgba(15, 17, 20, .35); display: flex; justify-content: center; align-items: flex-start; }
.rv-hl[hidden] { display: none; }
.rv-hl .rv-hltag { margin-top: -10px; font-size: 12px; font-weight: 500; background: #8bbcf5; color: #0f1114; border-radius: 6px; padding: 2px 8px;
                   max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .rv-hl { transition: opacity .2s; } }

/* the decisions: three sections, each with its completion mark and words */
.rv-ws .rv-decide { gap: 14px; }
.rv-sect { background: var(--panel, #fff); border: 1px solid var(--rule, #dde1e6); border-radius: 12px; min-width: 0; box-shadow: var(--shadow-sm, none); }
.rv-sh { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.rv.rv-ws .rv-sh h2 { margin: 0; flex: 1; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink, #16191d); }
.rv-sum { font-size: 13px; color: var(--ink2, #4a515c); text-align: right; }
.rv-cm { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted, #7d8591); display: grid; place-items: center; box-sizing: border-box; }
.rv-cm.done { background: var(--ok, #1f7a4a); border-color: var(--ok, #1f7a4a); color: var(--panel, #fff); }
.rv-sb { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rv-sb > div:empty, .rv-sb > ul:empty { display: none; }
.rv-ws .rv-confs { margin: 0; }
.rv-ws .rv-exc { background: var(--soft, #f0f2f5); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.rv-ws .rv-exc p { margin: 0; font-size: 13.5px; }
.rv-ws .rv-exc .rv-waive { margin: 0; padding-left: 18px; font-size: 13.5px; }
.rv-ws .rv-exc textarea { width: 100%; resize: vertical; }
.rv-look3d { margin: 2px 0 0 52px; }
.rv-scanonly { margin: 0; }
.rv-flash { margin: 0; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--ok, #1f7a4a) 12%, var(--panel, #fff)); color: var(--ink, #16191d); }

/* the report statements, one by one */
.rv-st-list { display: flex; flex-direction: column; gap: 10px; }
.rv-st { display: flex; flex-direction: column; gap: 6px; }
button.rv-st-pick { display: block; width: 100%; text-align: left; font: inherit; font-weight: 400; color: var(--ink, #16191d); background: var(--panel, #fff);
                    border: 1px solid var(--rule, #dde1e6); border-radius: 10px; padding: 11px 14px; cursor: pointer; }
button.rv-st-pick:hover:not(:disabled) { background: var(--soft, #f0f2f5); color: var(--ink, #16191d); }
button.rv-st-pick.sel { border-color: var(--focus, #2a78d6); box-shadow: 0 0 0 1px var(--focus, #2a78d6); }
.rv-st-marked button.rv-st-pick { background: color-mix(in srgb, var(--soft, #f0f2f5) 60%, var(--panel, #fff)); }
.rv-st-lb { display: flex; gap: 8px; font-size: 12px; color: var(--muted, #7d8591); }
.rv-st-where { margin-left: auto; color: var(--focus, #2a78d6); white-space: nowrap; }
.rv-st-tx { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.rv-st-tx del { color: var(--muted, #7d8591); }
.rv-st-tx ins { text-decoration: none; display: block; margin-top: 2px; }
.rv-st-acts { display: flex; gap: 10px; align-items: center; padding: 0 2px; }
.rv-st-acts button.ghost, .rv-sect button.sm { padding: 4px 10px; font-size: 13px; }
.rv-st-res { display: flex; gap: 8px; align-items: center; padding: 0 2px; font-size: 13px; color: var(--ink2, #4a515c); }
.rv-st-ok { color: var(--ok, #1f7a4a); font-weight: 600; }
.rv-st-edit { display: grid; gap: 6px; padding: 0 2px; }
.rv-st-edit textarea { width: 100%; resize: vertical; min-height: 64px; border-color: var(--focus, #2a78d6); }
.rv-stm-none, .rv-stm-renew { margin: 0; color: var(--ink2, #4a515c); }
.rv-stm-done > summary { cursor: pointer; color: var(--ink2, #4a515c); }
.rv-stm-done ul { margin: 4px 0 0; padding-left: 18px; }

/* the footer: sticky at the page's foot (its place in the flow kept, so the end of the page is never under it) */
.rv-ws.rv-has-bar { padding-bottom: 0; }
.rv-foot { position: sticky; bottom: 0; z-index: 4; margin: 24px -20px 0; padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
           background: var(--panel, #fff); border-top: 1px solid var(--rule, #dde1e6); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); }
.rv-foot[hidden] { display: none; }
.rv-foot-in { display: flex; align-items: flex-start; gap: 8px 12px; }
.rv-foot-top { flex: 1 1 auto; display: flex; align-items: flex-start; gap: 8px 12px; min-width: 0; }
.rv-foot-sum { margin: 0; padding-top: 8px; flex: 1 1 auto; min-width: 0; font-size: 14px; }
.rv-foot-sum .rv-dot { color: var(--muted, #7d8591); }
.rv-foot-appr { display: flex; gap: 12px; align-items: flex-start; flex: none; }
.rv-appr { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; }
.rv-appr button { white-space: nowrap; }
.rv-appr button.primary { background: var(--ink, #16191d); color: var(--panel, #fff); }
.rv-reason { font-size: 12px; color: var(--ink2, #4a515c); min-height: 17px; text-align: center; max-width: 28ch; }
.rv-reason:empty { visibility: hidden; }
@media (max-width: 1180px) and (min-width: 861px) { .rv-foot-in { flex-wrap: wrap; } .rv-foot-top { flex-basis: 100%; } .rv-foot-appr { margin-left: auto; } }
.rv-foot-err { margin: 6px 0 0; }
@media (max-width: 860px) {
  .rv-ws .rv-evidence { position: sticky; top: var(--rv-top, 0px); z-index: 3; background: var(--bg, #f5f6f7); padding: 6px 0; margin: 0 -4px; }
  .rv-ev { padding: 8px; gap: 6px; border-radius: 12px; }
  .rv-ev .rv-ev-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rv-ev .rv-ev-tools .rv-seg[aria-label="Look"] { display: none; }
  .rv-ev .rv-seg button { height: 26px; padding: 0 9px; font-size: 12.5px; }
  .rv-ev .rv-sides { gap: 8px; }
  .rv-ev .rv-side-links { display: none; }
  .rv-ev .rv-side .stage-cap { font-size: 12px; }
  .rv-ev .rv-sides.rv-one .rv-side { max-width: 260px; margin: 0 auto; width: 100%; }
  .rv-ev .rv-solid-stage { max-height: 46vh; }
  .rv-ws .rv-head-row h1 { font-size: 19px; }
  .rv-foot { margin: 16px -20px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .rv-foot-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .rv-foot-top { align-items: center; }
  .rv-foot-sum { padding-top: 0; font-size: 13px; display: flex; flex-direction: column; line-height: 1.4; }
  .rv-foot-sum .rv-dot { display: none; }
  .rv-foot-top > .rv-sendback { flex: none; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px;
                                color: var(--ink2, #4a515c); padding: 4px 0; font-size: 13.5px; }
  .rv-foot-top > .rv-sendback kbd { display: none; }
  .rv-foot-appr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rv-appr button { white-space: normal; padding: 9px 8px; }
  .rv-reason { max-width: none; white-space: normal; }
}
.rv-ev .rv-side .stage { border-color: transparent; background: transparent; box-shadow: none; }
@media (max-width: 860px) { .rv-ev .rv-sides:not(.rv-one) { max-width: 330px; margin: 0 auto; width: 100%; } }
