/* Grantee · Review: the approval queue. A left list sectioned by state, the item on the right.
   Builds on base.css tokens and the record panel's Who-holds-title classes (property.css). */

.rv { --rv-side: var(--surface); height: 100%; display: grid; grid-template-columns: minmax(360px, 420px) minmax(0, 1fr); background: var(--canvas); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv { --rv-side: var(--canvas); } }
:root[data-theme="dark"] .rv { --rv-side: var(--canvas); }
.rv kbd { font: 500 11px/1 var(--mono); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 2px 5px; color: var(--graphite); background: var(--surface); }

/* ───────── list pane ───────── */
.rv-list { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--rv-side); border-right: 1px solid var(--rule); }
.rv-lhd { flex: none; padding: 18px 18px 12px; border-bottom: 1px solid var(--rule); }
.rv-title { display: flex; align-items: baseline; gap: 12px; }
.rv-title h1 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.rv-title > .mono { margin-left: auto; font-size: 12.5px; color: var(--graphite); white-space: nowrap; }
.rv-csv { gap: 6px; min-height: 28px; margin-left: auto; font-size: 12.5px; color: var(--graphite); font-weight: 500; text-decoration: none; white-space: nowrap; }
.rv-csv:hover { color: var(--ink); }
.rv-csv + .mono { margin-left: 0; padding-left: 12px; border-left: 1px solid var(--rule); }

/* calibration: one quiet line and the only setting */
.rv-cal { position: relative; display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-size: 13.5px; color: var(--graphite); }
.rv-cal p { margin: 0; flex: 1; min-width: 0; line-height: 1.5; }
.rv-cal p .k { color: var(--ink); font-weight: 600; }
.rv-cal p .mono { font-size: 12.5px; color: var(--ink); }
.rv-cal > .link { font-size: 12.5px; min-height: 24px; flex: none; }
.rv-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: -6px; right: -6px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); padding: 14px 14px 10px; color: var(--ink); }
.rv-pop[hidden] { display: none; }
.rv-pop h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
.rv-pop .sub { margin: 3px 0 8px; font-size: 12.5px; color: var(--graphite); line-height: 1.45; }
.rv-pop .sub.foot { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--rule); color: var(--quiet); }
.rv-pop .pr { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.rv-pop .pr b { display: block; font-size: 13.5px; font-weight: 600; }
.rv-pop .pr small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--graphite); }
.rv-pop .pr.locked > .mono { font-size: 12.5px; color: var(--quiet); padding: 6px 10px; border: 1px dashed var(--rule-strong); border-radius: 8px; flex: none; }

.rv-seg { display: inline-flex; flex: none; border: 1px solid var(--rule-strong); border-radius: 10px; padding: 2px; gap: 2px; background: var(--surface); }
.rv-seg button { height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--graphite); font-weight: 500; white-space: nowrap; }
.rv-seg button:hover { color: var(--ink); background: var(--hover); }
.rv-seg button[aria-pressed="true"], .rv-seg button[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }

.rv-ro { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--rule-strong); border-radius: 8px; font-size: 12.5px; line-height: 1.45; color: var(--graphite); }
.rv-ro b { color: var(--ink); font-weight: 600; }

.rv-filters { display: flex; margin-top: 12px; }
.rv-filters .rv-seg { width: 100%; }
.rv-filters .rv-seg button { flex: 1; }
/* count filters: one mono line of text links */
.rv-counts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 8px; font-size: 11px; color: var(--quiet); }
.rv-cl { min-height: 24px; padding: 0; font: inherit; color: var(--graphite); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; white-space: nowrap; }
.rv-cl b { font-weight: 500; color: var(--ink); }
.rv-cl:hover { color: var(--ink); text-decoration-color: var(--ink); }
.rv-cl[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; }
.rv-cl[aria-pressed="true"] b { font-weight: 600; }

.rv-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 76px; }
.rv-sec { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; padding: 14px 18px 7px; background: var(--rv-side); border-bottom: 1px solid var(--rule); font-size: 13.5px; font-weight: 600; }
.rv-sec .mono { font-weight: 400; font-size: 12.5px; color: var(--graphite); }
.rv-none, .rv-more { margin: 0; padding: 14px 18px; font-size: 12.5px; color: var(--graphite); border-bottom: 1px solid var(--rule); }
.rv-more { padding: 6px 18px; }

.rv-row { position: relative; display: grid; gap: 3px; padding: 10px 16px 10px 18px; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; transition: background-color 120ms var(--ease); }
.rv-row:hover { background: var(--hover); }
.rv-row[aria-current="true"] { background: var(--hover); }
.rv-row[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.rv-row:focus-visible { outline-offset: -2px; }
.rv-row .r1, .rv-row .r2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* state mark: the 10 px clipped-corner outline (amber awaiting, green released); a dot for sent back */
.rv-mk { flex: none; display: block; fill: none; stroke: var(--amber); stroke-width: 1; }
.rv-row.is-rel .rv-mk { stroke: var(--green); fill: color-mix(in srgb, var(--green) 30%, transparent); }
.rv-nd { flex: none; width: 10px; height: 10px; display: grid; place-items: center; }
.rv-nd::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--needs); }
.rv-row .addr { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-row .age { flex: none; font-size: 11px; color: var(--graphite); }
.rv-row .r2 { padding-left: 18px; gap: 6px; font-size: 12.5px; }
.rv-row .rv-fld { flex: none; font-size: 11px; letter-spacing: .04em; color: var(--graphite); }
.rv-row .val { flex: 0 1 auto; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-row .val.mono { font-size: 12.5px; letter-spacing: -.01em; }
.rv-row .why { flex: 0 1000 auto; min-width: 0; color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-row .why::before { content: "·"; margin-right: 6px; color: var(--quiet); }
.rv-row .why.warn { color: var(--ink); }
.rv-row.is-back .why, .rv-row.is-rel .why { color: var(--quiet); }

/* undo: a ledger line whose 8 ticks drain, one per second */
.rv-list > .rv-undo-slot { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; }
.rv-undo { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px 6px 12px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 12.5px; color: var(--graphite); }
.rv-undo .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-undo .t b { color: var(--ink); font-weight: 600; }
.rv-undo button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 8px; font-weight: 600; color: var(--ink); flex: none; }
.rv-undo button:hover { background: var(--hover); }
.rv-undo button kbd { margin-left: 2px; }
.rv-ticks { display: flex; gap: 3px; flex: none; color: var(--graphite); }
.rv-undo.ox .rv-ticks { color: var(--stamp); }
.rv-ticks i { width: 1.5px; height: 10px; background: currentColor; animation: rvTick 1ms linear forwards; }
.rv-ticks i:nth-child(8) { animation-delay: calc(var(--el, 0s) + 1s); }
.rv-ticks i:nth-child(7) { animation-delay: calc(var(--el, 0s) + 2s); }
.rv-ticks i:nth-child(6) { animation-delay: calc(var(--el, 0s) + 3s); }
.rv-ticks i:nth-child(5) { animation-delay: calc(var(--el, 0s) + 4s); }
.rv-ticks i:nth-child(4) { animation-delay: calc(var(--el, 0s) + 5s); }
.rv-ticks i:nth-child(3) { animation-delay: calc(var(--el, 0s) + 6s); }
.rv-ticks i:nth-child(2) { animation-delay: calc(var(--el, 0s) + 7s); }
.rv-ticks i:nth-child(1) { animation-delay: calc(var(--el, 0s) + 8s); }
@keyframes rvTick { to { opacity: .18; } }

/* ───────── item pane ───────── */
.rv-item { position: relative; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.rv-in { flex: 1 0 auto; width: 100%; max-width: 820px; padding: 22px 36px 8px; }
.rv-bar { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.rv-back { display: none; }
.rv-pos { font-size: 11px; color: var(--graphite); }
.rv-step { margin-left: auto; display: flex; gap: 6px; }
.rv-step button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); font-size: 12.5px; color: var(--graphite); }
.rv-step button:hover { color: var(--ink); border-color: var(--rule-strong); }
.rv-addr { margin: 12px 0 0; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.rv-addr:focus { outline: none; }
.rv-addr:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 12.5px; color: var(--graphite); }
.rv-meta b { color: var(--ink); font-weight: 600; }
.rv-meta .link { font-size: 12.5px; min-height: 24px; }

/* the proposed value: the one thing being decided */
.rv-vwrap { position: relative; margin-top: 22px; }
.rv-value { position: relative; z-index: 1; padding: 18px 20px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; touch-action: pan-y; transition: transform 220ms var(--ease), border-color 160ms var(--ease); }
.rv-value.is-approved { border-color: color-mix(in srgb, var(--stamp) 35%, var(--rule)); }
.rv-vlbl { font-size: 12.5px; color: var(--graphite); }
.rv-key { margin-top: 10px; font-size: 15px; line-height: 1.3; color: var(--graphite); font-weight: 500; }
.rv-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 2px; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.rv-big .v { min-width: 0; overflow-wrap: anywhere; }
.rv-big .v.mono { font-weight: 500; letter-spacing: -.03em; }
.rv-big .v-addr { flex-basis: 100%; font-size: 24px; }
.rv-big .k2 { font-size: 15px; color: var(--graphite); font-weight: 500; letter-spacing: 0; }
.rv-vchip { margin-top: 8px; }
.rv-vsub { margin-top: 10px; font-size: 13.5px; color: var(--graphite); line-height: 1.5; }
.rv-vsub b { color: var(--ink); font-weight: 600; }
.rv-sent { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink); }
.rv-value .impression { top: -14px; right: 16px; }
/* a withdrawn release: the impression stays, voided by one ruled line */
.rv-value .impression.is-void { opacity: .45; }
.rv-value .impression.is-void::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 1.5px; background: var(--stamp); transform: rotate(-4deg); }
.rv-swipe-hint { position: absolute; inset: 0; display: none; align-items: center; gap: 8px; padding-left: 18px; border: 1.5px dashed var(--rule-strong); border-radius: 10px; color: var(--graphite); font: 700 15px/1 var(--sans); font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; }
.rv-vwrap.swiping .rv-swipe-hint { display: flex; }
.rv-vwrap.swiping .rv-value { transition: none; box-shadow: var(--shadow); }
.rv-vwrap.armed .rv-swipe-hint { color: var(--stamp); border-color: var(--stamp); background: var(--stamp-wash); }

.rv-blk { margin-top: 26px; }
.rv-blk > .sec-hd h2 { font-size: 13.5px; }
.rv-blk > .sec-hd span { font-size: 12.5px; }

/* evidence chips and the inline source crop */
.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chips .prov[aria-expanded="true"]::before { background: color-mix(in srgb, var(--stamp) 12%, var(--surface)); }
.rv-chips .prov.ink[aria-expanded="true"]::before { background: var(--hover); }
.rv-chips .prov-un { cursor: pointer; padding: 0 2px; height: auto; min-height: 22px; white-space: normal; text-align: left; line-height: 1.5; text-decoration: underline dotted var(--rule-strong); text-underline-offset: 4px; }
.rv-chips .prov-un[aria-expanded="true"] { color: var(--ink); text-decoration-color: var(--ink); }
.rv-crop { margin-top: 12px; max-width: 560px; }
.rv-crop[hidden] { display: none; }
.rv-paper { position: relative; padding: 16px 18px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--shadow-sm); color: #3B3F47; font: 400 11px/1.75 var(--mono); letter-spacing: -.01em;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); animation: rvCrop 220ms var(--ease) both; }
@keyframes rvCrop { from { opacity: 0; transform: translateY(6px); } }
.rv-paper .doc-afn, .rv-paper .doc-box { top: 12px; right: 12px; font-size: 9.5px; padding: 3px 4px; }
.rv-paper .cl { padding-right: 92px; }
.rv-paper .cl.t { font-weight: 600; letter-spacing: .06em; color: #16181D; margin-bottom: 4px; }
.rv-paper .hit { padding: 3px 0; color: #16181D; }
.rv-paper mark { background: rgba(158, 42, 43, .07); color: #16181D; font-weight: 500; outline: 1.5px solid #9E2A2B; outline-offset: 2px; border-radius: 0; padding: 0 2px; }
.rv-paper.ink mark { background: rgba(22, 24, 29, .05); outline-color: #16181D; }
.rv-paper .tag { margin-left: 10px; font-size: 9px; letter-spacing: .08em; color: #9E2A2B; }
.rv-paper .kv { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 10px; padding: 1px 0; border-bottom: 1px dotted #C9CDD3; }
.rv-paper .kv:last-child { border-bottom: 0; }
.rv-paper .kv > span:first-child { color: #6B7079; font-size: 10.5px; }
.rv-paper .kv.hit { padding: 4px 0; }
.rv-paper .kv mark { justify-self: start; }
.rv-crop-ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--graphite); }
.rv-crop-ft .link { font-size: 12.5px; }
.rv-trace { padding: 4px 0 4px 12px; border-left: 1px dashed var(--rule-strong); font-size: 12.5px; color: var(--graphite); }
.rv-trace p { margin: 4px 0 0; line-height: 1.5; }
.rv-trace b { color: var(--ink); font-weight: 600; }

/* lookup tools vs the record: the record panel's card, compact */
.rv-who { margin: 26px 0 0; order: initial; }
.rv-who .wc-hd h2 { font-size: 13.5px; }
.rv-who .rv-tight { padding-top: 0; }
.rv-who .rv-sm { font-size: 13.5px; }

/* compliance gate */
.rv-checks { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.rv-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 14px; border-top: 1px solid var(--rule); }
.rv-checks li:first-child { border-top: 0; }
.rv-checks .mk { color: var(--ink); padding-top: 1px; }
.rv-checks .mk .ico { display: block; }
.rv-checks .fail .mk i { display: block; width: 8px; height: 8px; margin: 6px 0 0 4px; border-radius: 50%; background: var(--needs); }
.rv-checks .nm b { display: block; font-size: 13.5px; font-weight: 600; }
.rv-checks .nm small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--graphite); }
.rv-checks .fail .nm small { color: var(--ink); }
.rv-checks .cond .nm small { color: var(--ink); }
.rv-checks .src { display: grid; gap: 2px; text-align: right; font-size: 12.5px; color: var(--graphite); }
.rv-checks .src .mono { font-size: 11px; color: var(--ink); }
.rv-na { margin: 0; padding: 12px 14px; border: 1px dashed var(--rule-strong); border-radius: 10px; font-size: 12.5px; color: var(--graphite); }

.rv-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--graphite); }
.rv-hist li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; }
.rv-hist .mono { font-size: 11px; color: var(--quiet); }
.rv-hist b { color: var(--ink); font-weight: 600; }
.rv-hist li.ap { color: var(--ink); }
.rv-hist li.ap b { color: var(--stamp); font-weight: 600; }
.rv-hist li.wd { color: var(--ink); }
.rv-hist li.ap { animation: rvCrop 220ms var(--ease) both; }

/* the decision bar */
.rv-act { position: sticky; bottom: 0; z-index: 5; flex: none; margin-top: 28px; background: var(--surface); border-top: 1px solid var(--rule); }
.rv-act-w { max-width: 820px; padding: 12px 36px 10px; }
.rv-act .rv-undo-slot { display: none; }
.rv-act-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-note { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rv-note p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--graphite); }
.rv-note p b { color: var(--ink); font-weight: 600; }
.rv-note p:focus { outline: none; }
.rv-note p.flash { animation: rvFlash 900ms var(--ease); }
@keyframes rvFlash { 0%, 40% { background: color-mix(in srgb, var(--needs) 14%, transparent); } 100% { background: transparent; } }
.rv-act .btns { display: flex; align-items: center; gap: 8px; flex: none; }
.rv-act .btn kbd { margin-left: 4px; padding: 2px 5px; border-color: color-mix(in srgb, var(--on-ink) 35%, transparent); background: transparent; color: inherit; opacity: .75; }
.rv-act .btn[disabled] kbd { border-color: var(--rule-strong); }
.rv-act .rej { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--graphite); }
.rv-act .rej:hover, .rv-act .rej[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.rv-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11px; color: var(--quiet); }
.rv-keys kbd { margin-right: 3px; }
.rv-sb { display: grid; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.rv-sb .reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-sb .reasons button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 6px; border: 1px solid var(--rule-strong); border-radius: 8px; font-size: 12.5px; }
.rv-sb .reasons button:hover { background: var(--hover); }
.rv-sb .reasons button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.rv-sb .reasons button[aria-pressed="true"] kbd { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--on-ink) 35%, transparent); }
.rv-sb .row { display: flex; gap: 8px; align-items: center; }
.rv-sb .row .input { flex: 1; min-width: 0; }
.rv-wd-n { margin: 0; font-size: 12.5px; color: var(--graphite); }

/* empty and not-found */
.rv-empty { margin: 12vh auto 48px; padding: 0 24px; max-width: 460px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.rv-empty p { margin: 0; color: var(--graphite); font-size: 13.5px; line-height: 1.5; }
.rv-empty > b { font-size: 15px; font-weight: 600; }
.rv-empty-imp { --c: 6px; display: grid; justify-items: center; gap: 6px; padding: 14px 22px 12px; transform: rotate(-1.5deg); color: var(--graphite); }
.rv-empty-imp b { font: 700 19px/1 var(--sans); font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; }
.rv-empty-imp .mono { font-size: 10.5px; letter-spacing: .02em; }
.rv-empty .rv-back-l { display: none; }

/* ───────── narrower desktops ───────── */
@media (max-width: 1100px) and (min-width: 721px) {
  .rv { grid-template-columns: 340px minmax(0, 1fr); }
  .rv-in { padding: 20px 24px 8px; }
  .rv-act-w { padding: 12px 24px 10px; }
  .rv-step .t { display: none; }
  .rv-act .btn kbd, .rv-act .rej kbd { display: none; }
}

/* ───────── phone: the list is full screen; an item opens full screen ───────── */
@media (max-width: 720px) {
  .rv { display: block; position: relative; }
  .rv-list, .rv-item { position: absolute; inset: 0; }
  .rv-list { border-right: 0; }
  .rv[data-view="list"] .rv-item { display: none; }
  .rv[data-view="item"] .rv-list { display: none; }
  .rv kbd, .rv-keys { display: none; }
  .rv-lhd { padding: 14px 16px 10px; }
  .rv-title h1 { font-size: 21px; }
  .rv-csv { min-height: 40px; }
  .rv-filters { margin-top: 10px; }
  .rv-seg button { height: 38px; padding: 0 8px; }
  .rv-counts { gap: 0 6px; }
  .rv-cl { min-height: 36px; }
  .rv-cal > .link { min-height: 32px; }
  .rv-pop { position: fixed; top: auto; bottom: calc(68px + env(safe-area-inset-bottom)); left: 12px; right: 12px; max-height: calc(100% - 200px); overflow-y: auto; overscroll-behavior: contain; }
  .rv-pop .pr { flex-wrap: wrap; }
  .rv-sec { padding: 12px 16px 7px; }
  .rv-row { padding: 11px 14px 11px 16px; min-height: 60px; }
  .rv-row .r2 { padding-left: 18px; }
  .rv-list > .rv-undo-slot { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }

  .rv-in { padding: 8px 16px 8px; }
  .rv-bar { margin: 0 -6px; }
  .rv-back { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 8px 0 4px; font-weight: 600; font-size: 13.5px; color: var(--ink); border-radius: 8px; }
  .rv-pos { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .rv-step .t { display: none; }
  .rv-step button { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .rv-addr { margin-top: 6px; font-size: 21px; }
  .rv-vwrap { margin-top: 20px; }
  .rv-value { padding: 16px 16px 14px; }
  .rv-big { font-size: 24px; gap: 2px 8px; }
  .rv-big .v-addr { font-size: 21px; }
  .rv-big .k2 { font-size: 13.5px; }

  .rv-value .impression { right: 10px; top: -16px; }
  .rv-value .impression b { font-size: 15px; }
  .rv-chips .prov { height: 32px; }
  .rv-chips .prov-un { min-height: 32px; }
  .rv-paper { padding: 12px 12px 16px; font-size: 11px; }
  .rv-paper .cl { padding-right: 0; }
  .rv-paper .cl.t { padding-right: 96px; min-height: 40px; }
  .rv-paper .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rv-paper .kv.hit { padding: 5px 0; }
  .rv-checks li { grid-template-columns: 20px minmax(0, 1fr); }
  .rv-checks .src { grid-column: 2; display: flex; gap: 8px; text-align: left; flex-wrap: wrap; }
  .rv-hist li { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .rv-act { margin-top: 20px; box-shadow: 0 -6px 16px rgba(22, 24, 29, .06); }
  .rv-act-w { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .rv-act .rv-undo-slot { display: block; }
  .rv-act .rv-undo { margin-bottom: 10px; box-shadow: none; }
  .rv-act-in { gap: 10px; }
  .rv-note { flex-basis: 100%; }
  .rv-note p { font-size: 12.5px; }
  .rv-act .btns { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .rv-act .btns > :only-child { grid-column: 1 / -1; }
  .rv-act .btn { height: auto; min-height: 48px; padding: 6px 14px; white-space: normal; line-height: 1.2; text-align: left; justify-content: flex-start; }
  .rv-act .rej { height: 48px; padding: 0 14px; border: 1px solid var(--rule-strong); color: var(--ink); }
  .rv-sb .reasons button { height: 40px; }
  .rv-sb .row { flex-wrap: wrap; }
  .rv-sb .row .input { flex-basis: 100%; min-height: 44px; font-size: 16px; }
  .rv-sb .row .btn { min-height: 44px; flex: 1; justify-content: center; }
  .rv-empty .rv-back-l { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-paper, .rv-hist li.ap { animation: none; }
  .rv-value { transition: none; }
}

/* batch hand-off: parcels that need a person (from a finished batch) */
.rv-bn-wrap { margin: 0 0 8px; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--amber) 6%, var(--surface)); }
.rv-bn-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 4px; font-size: 13.5px; }
.rv-bn-note { margin: 0; padding: 0 18px 8px; font-size: 12.5px; color: var(--graphite); }
.rv-row.rv-bn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--rule); min-height: 44px; }
.rv-row.rv-bn:hover { background: var(--hover); }
.rv-bn-a { font-weight: 600; font-size: 13.5px; }
.rv-bn-a::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--needs); vertical-align: 1px; }
.rv-bn-p { font-size: 11px; color: var(--graphite); }
