/* The review room (work-review.js): where a finished round is judged, marked up and decided.
   One rhythm throughout: small labels, thin rules, space. No cards inside cards. */

/* ---------- a session's two views ---------- */
/* The switch is Work's segmented control (.rv-seg, in work.css). */
.work-views { flex: none; display: flex; align-items: center; gap: 4px; }
.work-views:empty { display: none; }
.work-views-round { color: var(--tertiary); font-variant-numeric: tabular-nums; font-weight: 600; }
.work-views-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verified); }
.rv-icon.work-split-toggle { display: none; }
/* Expanded, the review takes the sessions list's place too. */
@media (min-width: 720px) {
  .work-workspace.is-expanded { grid-template-columns: minmax(0, 1fr); }
  .work-workspace.is-expanded > .work-sessions { display: none; }
}
@media (max-width: 719px) { .rv-icon.work-expand-toggle { display: none; } }
.work-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.work-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.work-session.is-review .work-pane { display: none; }
@container (min-width: 1180px) {
  .rv-icon.work-split-toggle { display: grid; }
  .work-session.is-split .work-panes { grid-template-columns: minmax(380px, 2fr) minmax(760px, 5fr); }
  .work-session.is-split .work-pane { display: flex; border-right: 1px solid var(--hairline); }
}
@container (max-width: 640px) {
  /* On a phone the switch takes its own row under the title. */
  .work-session .work-header { flex-wrap: wrap; row-gap: 6px; }
  .work-views { order: 5; flex: 1 0 100%; }
  .work-views .rv-seg { flex: 1; }
  .work-views .rv-seg button { flex: 1; justify-content: center; height: 30px; }
  .work-confirm { flex-wrap: wrap; padding: 12px 16px; }
  .work-confirm .rv-confirm-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- the room ---------- */
.work-review { container: review / inline-size; position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: clip; background: var(--canvas); }
.work-review > .work-empty { flex: 1; }
.rv {
  --rv-rail: 312px; --rv-pad: 20px; --rv-stage: clamp(340px, calc(100dvh - 318px), 740px);
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--rv-rail); grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "head actions" "confirm confirm" "body rail"; font-size: 14px; line-height: 1.5;
}
.rv :is(button, summary, a, pre, .rv-frame, .rv-confirm, .rv-data-scroll):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rv-muted { margin: 0; color: var(--secondary); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Labels speak as the sidebar's sections and the cards' titles do: sentence case, no tracking. */
.rv-label { flex: none; margin: 0; font: 600 13px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); white-space: nowrap; }
.rv-key { flex: none; margin: 0; font: 500 12.5px/1.3 var(--font); color: var(--tertiary); white-space: nowrap; }
.rv-meta { min-width: 0; font-size: 12px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
summary.rv-icon { list-style: none; }
.rv-num {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font: 650 11px/1 var(--font); font-variant-numeric: tabular-nums;
}
.rv-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--secondary); text-decoration: none; }
.rv-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rv-links { display: inline-flex; gap: 14px; }

/* ---------- header: the verdict and the decision ---------- */
.rv-head { grid-area: head; min-width: 0; display: grid; align-content: center; gap: 9px; padding: 13px 20px 13px var(--rv-pad); border-bottom: 1px solid var(--hairline); }
.rv-head-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.rv-round-slot { flex: none; }
.rv-round {
  display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--fill);
  color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; list-style: none;
}
summary.rv-round { padding-right: 6px; cursor: pointer; transition: background 0.15s; }
summary.rv-round:hover, .rv-round-menu[open] > summary { background: rgba(29, 29, 31, 0.1); }
.rv-verdict {
  margin: 1px 0 0; min-width: 0; font: 560 16px/1.38 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.rv-chips { display: flex; gap: 6px; min-width: 0; margin-right: -20px; padding-right: 20px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to left, transparent, #000 28px); mask-image: linear-gradient(to left, transparent, #000 28px); }
.rv-chips::-webkit-scrollbar { display: none; }
.rv-chip[data-tone="plain"] { padding-left: 10px; }
.rv-chip[data-tone="ok"] svg { color: var(--verified); }
/* Amber or red only where something failed or did not run, and only on the mark and the words that say so. */
.rv-chip[data-tone="warn"] :is(svg, .rv-chip-extra) { color: var(--attention); }
.rv-chip[data-tone="bad"] :is(svg, .rv-chip-extra) { color: var(--destructive); }
.rv-chip-extra::before { content: "·"; margin-right: 5px; color: var(--tertiary); }

.rv-actions {
  grid-area: actions; min-width: 0; display: grid; align-content: center; justify-items: end; gap: 6px; padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--hairline); border-left: 1px solid var(--hairline); background: rgba(251, 250, 247, 0.6);
}
.rv-actions-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; max-width: 100%; }
.rv-actions .btn { height: 34px; padding: 0 14px; white-space: nowrap; }
.rv-send[data-count]::after, .rv-notes-toggle[data-count]::after {
  content: attr(data-count); display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.rv-send:not(.secondary)[data-count]::after { background: #fff; color: var(--ink); }
.rv-notes-toggle { display: none; }
.rv-hint { margin: 0; max-width: 100%; font-size: 11.5px; line-height: 1.3; color: var(--tertiary); text-align: right; }
.rv-hint:empty { display: none; }
.rv-readonly { padding: 0 4px; font-size: 12.5px; color: var(--secondary); white-space: nowrap; }

.rv-pop { position: relative; }
.rv-menu {
  position: absolute; z-index: 12; top: calc(100% + 4px); left: 0; min-width: 184px; padding: 5px; display: grid;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-2); animation: work-pop 0.12s ease-out;
}
.rv-more .rv-menu { left: auto; right: 0; }
.rv-menu > :is(button, a) {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font-size: 13px; line-height: 18px; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.rv-menu > :is(button, a):hover:not(:disabled) { background: var(--fill); }
.rv-menu > button[aria-checked="true"] { font-weight: 600; }
.rv-menu > button:disabled { opacity: 0.4; cursor: default; }
.rv-menu-sub { font-size: 12px; font-weight: 450; color: var(--tertiary); }
.rv-menu-link svg { color: var(--tertiary); }
.rv-menu > .rv-menu-danger { color: var(--destructive); }

/* The same second step asks before a session is stopped (.work-confirm, under the session's header). */
.rv-confirm, .work-confirm { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--hairline); background: #faf6ec; outline: none; }
.rv-confirm { grid-area: confirm; padding-left: var(--rv-pad); }
.rv-confirm[hidden] { display: none; }
.rv-confirm-mark { flex: none; margin-top: 2px; color: var(--attention); }
.rv-confirm-text { flex: 1; min-width: 0; font-size: 13px; }
.rv-confirm-text > strong { font-size: 13.5px; font-weight: 620; }
.rv-confirm-text p { margin: 1px 0 0; color: var(--secondary); }
.rv-confirm-checks { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; color: var(--secondary); }
.rv-confirm-checks strong { font-weight: 600; color: var(--ink); }
.rv-confirm-actions { flex: none; align-self: center; display: flex; gap: 6px; }

/* ---------- body ---------- */
.rv-scroll { grid-area: body; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.rv-body { max-width: 1180px; padding: 0 var(--rv-pad) 72px; overflow-wrap: anywhere; }
.rv-section { padding-top: 22px; scroll-margin-top: 0; }
.rv-section + .rv-section, .rv-group + .rv-group { margin-top: 24px; border-top: 1px solid var(--hairline); }
.rv-group + .rv-group { padding-top: 22px; }
/* Decisions under their own headings (an audit's findings) are one section: no rules between them. */
.rv-decisions .rv-group + .rv-group { margin-top: 10px; padding-top: 0; border-top: 0; }
.rv-section-head { display: flex; align-items: center; gap: 12px; min-height: 30px; margin-bottom: 8px; }
.rv-section-head > :is(.rv-seg, .rv-links) { margin-left: auto; }
.rv-section.is-target > .rv-section-head .rv-label, .rv-group.is-target .rv-label { color: var(--ink); transition: color 0.2s; }
.rv-fold > summary { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; font-size: 13px; color: var(--secondary); cursor: pointer; }
.rv-fold > summary:hover { color: var(--ink); }
.rv-fold > summary svg, .rv-output > summary svg { transition: transform 0.15s; }
.rv-fold[open] > summary svg, .rv-output[open] > summary svg { transform: rotate(90deg); }
.rv-changes .files { margin-top: 10px; }

/* Summary: what was asked, what changed, where to look. */
.rv-facts { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px 20px; max-width: 860px; }
.rv-key { padding-top: 3px; }
/* One sentence already said in the header is not said again under it. */
.rv-facts > .is-said { display: none; }
.rv-value p { margin: 0; }
.rv-asked { color: var(--secondary); }
.rv-changed { font-size: 16px; line-height: 1.5; }
.rv-look, .rv-risks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rv-jump {
  display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; margin: -3px -8px; padding: 3px 8px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; transition: background 0.15s;
}
.rv-jump:hover { background: var(--fill); }
.rv-jump svg { flex: none; align-self: center; color: var(--tertiary); }
.rv-jump-to { font-size: 12.5px; color: var(--tertiary); white-space: nowrap; }
.rv-jump.small { font-size: 12.5px; color: var(--secondary); }
.rv-risks li { display: flex; align-items: flex-start; gap: 8px; }
.rv-risks svg { flex: none; margin-top: 3px; color: var(--attention); }
.rv-question + .rv-question { margin-top: 14px; }
.rv-question-text { margin: 0 0 7px; }
.rv textarea { display: block; width: 100%; resize: none; line-height: 1.45; }
.rv-answer { max-width: 560px; min-height: 36px; padding: 7px 11px; border-radius: 10px; background: var(--surface); border-color: rgba(29, 29, 31, 0.1); }
.rv-answer-sent { margin: 0; font-size: 13px; color: var(--secondary); }
.rv-question.is-hot .rv-question-text, .rv-decision.is-hot .rv-decision-text { animation: rv-flash 1.6s ease-out; }

/* Rows: checks, tests, earlier notes, decisions. A mark, a name, one muted line. */
.rv-rows { margin: 0; padding: 0; list-style: none; }
.rv-row { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 11px; align-items: start; padding: 10px 0; }
.rv-row + .rv-row { border-top: 1px solid var(--hairline); }
.rv-row.is-hot, .rv-data tr.is-hot { animation: rv-flash 1.6s ease-out; }
@keyframes rv-flash { 0%, 35% { background: rgba(29, 29, 31, 0.07); } 100% { background: transparent; } }
.rv-mark { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--tertiary); }
.rv-mark[data-status="passed"] { background: rgba(31, 122, 53, 0.12); color: var(--verified); }
.rv-mark[data-status="failed"] { background: rgba(199, 0, 19, 0.1); color: var(--destructive); }
/* Did not run is its own state: a hollow amber ring, never a filled mark. */
.rv-mark[data-status="did_not_run"] { background: none; box-shadow: inset 0 0 0 1.5px var(--attention); color: var(--attention); }
.rv-row-line { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rv-row-name { min-width: 0; font-weight: 560; }
.rv-row-state { flex: none; font-size: 12px; font-weight: 600; color: var(--secondary); white-space: nowrap; }
.rv-row[data-status="failed"] .rv-row-state { color: var(--destructive); }
.rv-row[data-status="did_not_run"] .rv-row-state { color: var(--attention); }
.rv-row-proves { margin: 1px 0 0; font-size: 13px; color: var(--secondary); }
.rv-row-plain { margin: 5px 0 0; font-size: 13.5px; }
.rv-output { margin-top: 5px; font-size: 12px; }
.rv-output > summary { display: inline-flex; align-items: center; gap: 4px; color: var(--tertiary); cursor: pointer; }
.rv-output > summary:hover { color: var(--secondary); }
.rv-output:not([open]) .rv-output-hide, .rv-output[open] .rv-output-show { display: none; }
.rv-output pre {
  margin: 8px 0 2px; padding: 10px 12px; max-height: 260px; overflow: auto; border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--surface); font: 11.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.rv-row-side { display: flex; align-items: center; gap: 4px; min-height: 22px; }
.rv-row-marks { display: inline-flex; gap: 4px; }
.rv-row-mark { cursor: pointer; }
.rv-row-add { width: 26px; height: 22px; opacity: 0; }
:is(.rv-row, .rv-data tr):hover .rv-row-add, .rv-row-add:focus-visible, :is(.rv-row, .rv-data tr):focus-within .rv-row-add { opacity: 1; }
@media (hover: none) { .rv-row-add { opacity: 1; } }
.rv-passed { border-top: 1px solid var(--hairline); }
.rv-rows + .rv-passed { margin-top: 0; }
.rv-passed > summary { display: flex; align-items: center; gap: 11px; padding: 10px 0; color: var(--secondary); cursor: pointer; }
.rv-passed > summary:hover { color: var(--ink); }
.rv-passed > summary .rv-mark { margin-top: 0; }
.rv-passed-count { font-weight: 560; }
.rv-passed .rv-row-name { font-weight: 450; }
.rv-passed > summary > svg { color: var(--tertiary); transition: transform 0.15s; }
.rv-passed[open] > summary > svg { transform: rotate(180deg); }
.rv-passed > .rv-rows { border-top: 1px solid var(--hairline); }
.rv-since-note { font-weight: 560; quotes: "“" "”"; }
.rv-since-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0 8px; }
.rv-bullet { width: 5px; height: 5px; margin: 9px 0 0 6px; border-radius: 50%; background: var(--tertiary); }
.rv-decision-text { margin: 0; }
.rv-attachment { grid-template-columns: minmax(0, 1fr); }
.rv-video { display: grid; justify-items: start; gap: 8px; margin-top: 8px; }
.rv-video video { display: block; max-width: 100%; max-height: 60vh; border-radius: 10px; }

/* Data: before → after per column, in mono so stray spaces show. */
.rv-data-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.rv-data table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rv-data th { padding: 0 16px 7px 0; text-align: left; font-size: 12px; font-weight: 560; color: var(--tertiary); white-space: nowrap; }
.rv-data td { padding: 9px 16px 9px 0; border-top: 1px solid var(--hairline); vertical-align: top; }
.rv-data .rv-cell-side { width: 1%; padding-right: 0; white-space: nowrap; }
.rv-data .rv-slot-row > td { padding: 0; border: 0; }
.rv-data .rv-slot-row > td:empty { display: none; }
.rv-val { padding: 1px 5px; border-radius: 5px; background: var(--fill); font: 12px/1.5 var(--mono); white-space: pre-wrap; }
.rv-none { color: var(--tertiary); }
.rv-change { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.rv-was .rv-val { color: var(--secondary); background: none; box-shadow: inset 0 0 0 1px var(--hairline); }
.rv-space { color: var(--attention); }
.rv-arrow { color: var(--tertiary); }
.rv-cell-detail { min-width: 180px; color: var(--secondary); }
.rv-data-state { margin-right: 8px; font-size: 12px; font-weight: 600; color: var(--secondary); }
.rv-data-state[data-status="failed"] { color: var(--destructive); }
.rv-data-state[data-status="added"] { color: var(--verified); }
.rv-files { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.rv-files li { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.rv-files code { min-width: 0; font: 12px/1.5 var(--mono); color: var(--secondary); overflow-wrap: anywhere; }
.rv-kind { flex: none; width: 16px; font: 650 10.5px/1.5 var(--mono); color: var(--tertiary); text-align: center; }
.rv-kind[data-kind="added"] { color: var(--verified); }
.rv-kind[data-kind="deleted"], .rv-kind[data-kind="removed"] { color: var(--destructive); }

/* Guide edits: the stored guide before and after, drawn as a file's diff is. Prose wraps. */
.rv-guide-edit + .rv-guide-edit { margin-top: 20px; }
.rv-guide-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rv-guide-head .work-delta { margin-left: auto; }
.rv-guide-path { font: 600 12.5px/1.5 var(--mono); }
.rv-guide-diff { max-width: 860px; margin-top: 10px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); overflow: hidden; }
.rv-guide-diff .work-diff { max-height: 420px; line-height: 20px; }
.rv-guide-diff .work-diff-lines { width: 100%; }
.rv-guide-diff .work-diff-line .work-diff-text { padding-top: 1px; padding-bottom: 1px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- screens: one large viewer ---------- */
.rv-viewer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.rv-captures { display: flex; gap: 6px 18px; min-width: 0; min-height: 36px; margin: -2px 138px 8px -2px; padding: 2px 16px 2px 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to left, transparent, #000 16px); mask-image: linear-gradient(to left, transparent, #000 16px); }
.rv-captures::-webkit-scrollbar { display: none; }
.rv-cap-group { flex: none; display: flex; align-items: center; gap: 3px; }
.rv-cap-name { margin-right: 5px; font-size: 12.5px; font-weight: 560; color: var(--secondary); white-space: nowrap; }
.rv-cap {
 flex: none; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px;
 text-align: left;
}
.rv-thumb { display: none; flex: none; width: 34px; height: 26px; border-radius: 5px; overflow: hidden; background: var(--raised); box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.1); }
.rv-thumb[data-shape="tall"] { width: 18px; height: 30px; margin: 0 8px; border-radius: 4px; }
.rv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rv-cap-text { min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.rv-cap-label { font-size: 12.5px; font-weight: 560; white-space: nowrap; }
.rv-cap-size { display: none; font-size: 11px; color: var(--tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-cap-count { min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
.rv-cap-count[hidden] { display: none; }
.rv-stage-col { min-width: 0; }
/* Stepping between screens stays in one place above the stage, whatever height the pictures take. */
.rv-bar { position: absolute; top: 0; right: 0; height: 32px; display: flex; align-items: center; gap: 10px; }
.rv-bar-title { display: none; min-width: 0; font-size: 13px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-stage {
  position: relative; height: var(--rv-stage); max-height: var(--rv-stage); min-height: 200px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  gap: 14px; padding: 12px 16px 16px; border-radius: 16px; background: var(--raised); touch-action: pan-y; transition: box-shadow 0.25s;
}
.rv-stage.is-target { box-shadow: 0 0 0 2px rgba(29, 29, 31, 0.5); }
.rv-stage[data-mode="side"][data-flow="stacked"] { grid-auto-flow: row; grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.rv-panel { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
.rv-panel:hover { z-index: 2; }
.rv-panel.has-editor { z-index: 3; }
/* Capture ancestors stay untransformed so pin and editor coordinates stay exact. */
.rv-panel-label { font: 560 11.5px/1.2 var(--font); color: var(--tertiary); text-align: center; }
.rv-stage:not([data-mode="side"]) .rv-panel-label { display: none; }
.rv-stage:not([data-mode="side"]) .rv-panel { grid-template-rows: minmax(0, 1fr); }
.rv-stage[data-mode="slider"] .rv-panel { padding-top: 26px; }
.rv-fit { container-type: size; min-width: 0; min-height: 0; display: grid; place-items: center; }
.rv-frame {
  position: relative; width: min(100cqw, calc(100cqh * var(--w) / var(--h)), calc(var(--w) * 1px)); aspect-ratio: var(--w) / var(--h);
  border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.1), 0 8px 28px rgba(29, 29, 31, 0.12); cursor: crosshair;
}
.rv .rv-frame:focus-visible { outline-offset: 3px; }
.work-review[data-editable="false"] .rv-frame { cursor: zoom-in; }
.rv-frame.is-placing { outline: 2px solid var(--ink); outline-offset: 3px; }
.rv-shot { position: absolute; inset: 0; border-radius: inherit; }
.rv-shot img { display: block; width: 100%; height: 100%; border-radius: inherit; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.rv-shot.is-broken img { visibility: hidden; }
.rv-broken { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; font-size: 13px; color: var(--secondary); cursor: default; }
.rv-broken[hidden] { display: none; }
.rv-missing { display: grid; place-content: center; justify-items: center; gap: 2px; padding: 16px; border: 1px dashed rgba(29, 29, 31, 0.16); border-radius: 10px; text-align: center; font-size: 13px; color: var(--secondary); }
.rv-missing strong { font-weight: 560; color: var(--ink); }
.rv-pins { position: absolute; inset: 0; pointer-events: none; }
.rv-pin {
  position: absolute; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, 0.3); pointer-events: auto; cursor: pointer; transition: transform 0.12s;
}
button.rv-pin:hover, button.rv-pin:focus-visible { z-index: 4; transform: translate(-50%, -50%) scale(1.1); }
.rv-pin.is-draft { box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(29, 29, 31, 0.16), 0 2px 8px rgba(0, 0, 0, 0.3); pointer-events: none; }
.rv-pin.is-placing { box-shadow: 0 0 0 2px #fff, 0 0 0 9px rgba(29, 29, 31, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3); }
.rv-pin.is-hot { animation: rv-pulse 0.6s ease-out 3; }
@keyframes rv-pulse { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(29, 29, 31, 0.5); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 16px rgba(29, 29, 31, 0); } }
.rv-pin-tip {
  position: absolute; left: 50%; bottom: calc(100% + 9px); width: max-content; max-width: 240px; padding: 7px 10px; border-radius: 10px;
  transform: translateX(-16px); background: var(--ink); color: #fff; font: 450 12.5px/1.4 var(--font); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 0.12s;
}
.rv-pin[data-tip~="left"] .rv-pin-tip { left: auto; right: 50%; transform: translateX(16px); }
.rv-pin[data-tip~="below"] .rv-pin-tip { bottom: auto; top: calc(100% + 9px); }
.rv-pin:hover .rv-pin-tip, .rv-pin:focus-visible .rv-pin-tip { opacity: 1; }
.rv-panel.has-editor .rv-pin-tip { display: none; }
@media (hover: none) { .rv-pin-tip { display: none; } }
/* Slider: before left of the divider, after right of it. */
.rv-slide .rv-shot[data-side="before"] { clip-path: inset(-40px calc(100% - var(--split)) -40px -40px); }
.rv-slide .rv-shot[data-side="after"] { clip-path: inset(-40px -40px -40px var(--split)); }
.rv-divider { position: absolute; z-index: 3; top: -8px; bottom: -8px; left: var(--split); width: 32px; margin-left: -16px; display: grid; place-items: center; cursor: ew-resize; touch-action: none; }
.rv-divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75); }
.rv-grip { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 10px rgba(0, 0, 0, 0.3); transition: transform 0.12s; }
.rv-divider:hover .rv-grip, .rv-divider.is-dragging .rv-grip { transform: scale(1.08); }
.rv .rv-divider:focus-visible { outline: none; }
.rv-divider:focus-visible .rv-grip { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.rv-tag { position: absolute; top: -22px; font: 560 11.5px/1.2 var(--font); color: var(--tertiary); pointer-events: none; }
.rv-tag-before { left: 1px; }
.rv-tag-after { right: 1px; }
.rv-caption { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; padding: 9px 2px 0; font-size: 12.5px; color: var(--tertiary); }
.rv-caption strong { font-weight: 560; color: var(--ink); }
.rv-page { font-family: var(--mono); font-size: 11.5px; }
.rv-pager { flex: none; display: flex; align-items: center; gap: 2px; }
.rv-position { min-width: 40px; font-size: 12px; color: var(--secondary); text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- writing a note: a bubble on the pin, a field under the row, a dock on a phone ---------- */
.rv-editor { display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.1), var(--shadow-2); }
.rv-editor textarea { min-height: 32px; padding: 5px 7px; }
.rv-editor-title { display: none; padding: 0 7px; font-size: 11.5px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-editor-foot { display: flex; align-items: center; gap: 6px; }
.rv-editor-hint { flex: 1; min-width: 0; padding-left: 7px; font-size: 11px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-editor-delete:hover:not(:disabled) { color: var(--destructive); background: rgba(199, 0, 19, 0.06); }
.rv-editor-delete + .rv-editor-hint { padding-left: 0; }
.rv-editor .btn.small { height: 28px; padding: 0 11px; }
.rv-bubble { position: absolute; z-index: 6; width: 276px; transform: translate(18px, -16px); cursor: auto; animation: rv-appear 0.12s ease-out; }
@keyframes rv-appear { from { opacity: 0; } }
.rv-bubble.flip-x { transform: translate(calc(-100% - 18px), -16px); }
.rv-bubble.flip-y { transform: translate(18px, calc(-100% + 16px)); }
.rv-bubble.flip-x.flip-y { transform: translate(calc(-100% - 18px), calc(-100% + 16px)); }
.rv-bubble .rv-editor-cancel { display: none; }
.rv-inline { max-width: 560px; margin: 8px 0 2px; }
.rv-inline .rv-editor { box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.12), var(--shadow-1); }
.rv-data .rv-inline { margin: 0 0 10px; }
.rv-dock {
  /* The phone editor must also sit above the full comparison (z-index: 40). */
  position: absolute; z-index: 41; left: 0; right: 0; bottom: var(--rv-keyboard, 0px); padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline); background: var(--canvas); box-shadow: 0 -10px 30px rgba(29, 29, 31, 0.12);
}
.rv-dock .rv-editor { padding: 0; background: none; box-shadow: none; }
.rv-dock .rv-editor-title { display: block; padding: 0 4px; }
.rv-dock .rv-editor textarea { padding: 9px 12px; }
.rv-dock .rv-editor-hint { visibility: hidden; }

/* ---------- the notes rail ---------- */
.rv-rail { grid-area: rail; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--hairline); background: rgba(251, 250, 247, 0.6); }
.rv-rail-head { flex: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px 0 16px; }
.rv-count { font-size: 12px; font-weight: 600; color: var(--secondary); font-variant-numeric: tabular-nums; }
.rv-save { margin-left: auto; font-size: 11.5px; color: var(--tertiary); }
.rv-save[data-status="Retry"], .rv-save[data-status="Conflict"] { color: var(--attention); font-weight: 600; }
/* With nothing written yet there is nothing to call saved. */
.rv-rail:not(:has(.rv-note)) .rv-save[data-status="Saved"] { visibility: hidden; }
.rv-rail-close { display: none; }
.rv-rail-alert { flex: none; display: grid; justify-items: start; gap: 8px; margin: 0 12px 10px; padding: 10px 12px; border-radius: 12px; background: #faf6ec; font-size: 12.5px; }
.rv-rail-alert[hidden] { display: none; }
.rv-rail-alert p { margin: 0; }
.rv-rail-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 12px; }
.rv-rail-empty { margin: 2px 8px; font-size: 13px; line-height: 1.5; color: var(--tertiary); }
.rv-note { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 3px 8px; padding: 8px; border-radius: 12px; transition: background 0.15s; }
.rv-note:hover, .rv-note:focus-within { background: rgba(29, 29, 31, 0.04); }
.rv-note.is-hot { animation: rv-flash 1.6s ease-out; }
.rv-note-head { grid-area: 1 / 1; min-width: 0; min-height: 24px; display: flex; align-items: center; gap: 8px; padding: 0; text-align: left; }
.rv-note-where { min-width: 0; font-size: 11.5px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-note-head:hover .rv-note-where { color: var(--ink); }
.rv-note-text { grid-area: 2 / 1; margin: 0 0 0 22px; padding: 3px 6px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv textarea.rv-note-text { width: calc(100% - 22px); }
.rv-note-crop { grid-area: 2 / 2; width: 40px; height: 40px; margin-top: 2px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.1); }
.rv-note-crop[hidden] { display: none; }
.rv-note > :is(.rv-note-delete, .rv-sent) { grid-area: 1 / 2; justify-self: end; }
.rv-note-delete { width: 24px; height: 24px; opacity: 0; }
.rv-note:hover .rv-note-delete, .rv-note:focus-within .rv-note-delete { opacity: 1; }
.rv-note-delete:hover:not(:disabled) { color: var(--destructive); background: rgba(199, 0, 19, 0.06); }
@media (hover: none) { .rv-note-delete { opacity: 1; } }
.rv-sent { align-self: center; font-size: 11px; color: var(--tertiary); }
.rv-rail-foot { flex: none; padding: 10px 12px 12px; border-top: 1px solid var(--hairline); }
.rv-feedback { min-height: 40px; padding: 9px 12px; border-color: rgba(29, 29, 31, 0.1); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-1); }
.rv-feedback:focus { border-color: rgba(29, 29, 31, 0.26); }
.rv-feedback-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 7px 3px 0; font-size: 11.5px; line-height: 1.35; color: var(--tertiary); }
.rv-key-hint { flex: none; min-width: 18px; padding: 1px 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.14); font: 600 10.5px/1.4 var(--font); text-align: center; color: var(--tertiary); }
@media (hover: none) { .rv-key-hint { display: none; } }
.rv-scrim { display: none; }

/* ---------- wide: captures listed at the side of the stage ---------- */
@container review (min-width: 1360px) {
  .rv-viewer { grid-template-columns: 184px minmax(0, 1fr); gap: 0 18px; align-items: start; }
  .rv-captures { display: grid; gap: 14px; align-content: start; max-height: calc(var(--rv-stage) + 40px); margin: -2px; padding: 2px; overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .rv-cap-group { display: grid; gap: 2px; }
  .rv-cap-name { margin: 0 0 3px 8px; overflow: hidden; text-overflow: ellipsis; }
  .rv-cap { width: 100%; height: auto; gap: 10px; padding: 6px 8px; }
  .rv-thumb { display: block; }
  .rv-cap-text { flex: 1; display: grid; gap: 0; }
  .rv-cap-size { display: block; }
  .rv-bar { position: static; justify-content: space-between; margin-bottom: 8px; }
  .rv-bar-title { display: block; }
}
@container review (max-width: 899px) {
  .rv { --rv-rail: 280px; --rv-pad: 20px; }
  .rv-pictures .rv-meta { display: none; }
}

/* ---------- phone: one column, notes in a drawer, the decision in a bar at the bottom ---------- */
@container review (max-width: 719px) {
  .rv {
    --rv-pad: 16px; --rv-stage: clamp(300px, calc(100dvh - 336px), 640px);
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "head" "body" "confirm" "actions";
  }
  /* One row of round and status stays in place; the verdict is the first thing in the board ("Changed"). */
  .rv-head { display: flex; align-items: center; gap: 6px; padding: 8px 0 8px 16px; }
  .rv-verdict { display: none; }
  .rv-facts > .is-said { display: block; }
  .rv-chips { flex: 1; margin: 0; padding: 0 16px 0 0; -webkit-mask-image: none; mask-image: none; }
  .rv-actions { justify-items: stretch; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--hairline); background: var(--canvas); }
  .rv-actions-row { gap: 8px; }
  .rv-actions .btn { height: 38px; }
  .rv-notes-toggle { display: inline-flex; margin-right: auto; }
  .rv-readonly { margin-left: auto; }
  .rv-hint { display: none; }
  .rv-more .rv-menu { top: auto; bottom: calc(100% + 6px); }
  .rv-confirm { flex-wrap: wrap; padding: 12px 16px; border-bottom: 0; border-top: 1px solid var(--hairline); }
  .rv-confirm-actions { width: 100%; justify-content: flex-end; }
  .rv-body { padding-bottom: 40px; }
  .rv-facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rv-key { padding-top: 10px; }
  .rv-facts > .rv-key:first-child { padding-top: 0; }
  .rv-jump { align-items: flex-start; }
  .rv-jump svg { margin-top: 3px; align-self: flex-start; }
  .rv-section-head { flex-wrap: wrap; row-gap: 6px; }
  .rv-pictures .rv-meta { display: none; }
  /* Outrank the shared .ctl-button.ctl-button display rule, loaded after this sheet. */
  .rv-modes button[data-mode="side"], .rv-modes button[data-mode="slider"] { display: none; }
  .rv-captures { display: none; }
  .rv-bar { position: static; justify-content: space-between; margin-bottom: 8px; }
  .rv-bar-title { display: block; }
  .rv-stage { padding: 12px; }
  .rv-row-add { width: 32px; height: 28px; }
  .rv-editor-hint { visibility: hidden; }
  .rv-rail {
    position: absolute; z-index: 25; left: 0; right: 0; bottom: 0; max-height: min(80%, 640px); border-left: 0; border-radius: 20px 20px 0 0; background: var(--canvas);
    box-shadow: 0 -12px 48px rgba(29, 29, 31, 0.2); padding-bottom: env(safe-area-inset-bottom); transform: translateY(104%); visibility: hidden; transition: transform 0.22s ease, visibility 0s 0.22s;
  }
  .rv-rail.open { transform: none; visibility: visible; transition: transform 0.22s ease; }
  .rv-rail-head { min-height: 52px; padding: 4px 8px 0 18px; }
  .rv-rail-close { display: grid; width: 36px; height: 36px; }
  .rv-rail-list { padding: 0 10px 12px; }
  .rv-scrim { display: block; position: absolute; z-index: 24; inset: 0; background: rgba(29, 29, 31, 0.3); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .rv-scrim.open { opacity: 1; pointer-events: auto; }
}
/* Touch keyboards zoom the page for small type; keep fields at 16px there. */
@media (hover: none) and (pointer: coarse) { }
@media (prefers-reduced-motion: reduce) {
  .rv-stage .rv-panel, .rv-bubble, .rv-menu, .rv-pin.is-hot, .rv-row.is-hot, .rv-note.is-hot { animation: none; }
  .rv-rail, .rv-scrim, .rv-pin { transition: none; }
}

/* Outputs lead the room; attached renders fit the width and keep their own tall scroll. */
.rv-changed.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-summary-more { margin-top: 6px; }
.rv-check-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 1.6; }
.rv-stage.is-attachment { display: block; height: auto; max-height: 80vh; overflow: auto; }
.rv-stage.is-attachment .rv-panel { display: block; }
.rv-stage.is-attachment .rv-fit { container-type: normal; display: flex; justify-content: center; align-items: start; }
.rv-stage.is-attachment .rv-frame { flex: none; width: min(100%, calc(var(--w) * 1px)); }
.rv-picture-description { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.rv-picture-description.is-expanded { display: block; }
.rv-document { padding: 16px; border: 1px solid var(--hairline); border-radius: 8px; margin-top: 12px; }
.rv-document > summary { display: block; align-items: center; gap: 8px; cursor: pointer; }
.rv-document-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; }
.rv-document-content { max-height: 70vh; overflow: auto; margin: 16px 0; }
.rv-document:not([open]) > :is(.rv-document-content, button, .rv-row-slot) { display: none; }
.rv-document[open] .rv-document-preview { display: none; }
.rv-document-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.rv-document-title { display: flex; align-items: center; gap: 8px; }

.rv-stage.is-attachment .rv-frame.is-loading { width: 100%; min-height: 200px; aspect-ratio: auto; }
.rv :is(.rv-modes, .rv-summary-more, .rv-group > button, .rv-passed > button)[hidden] { display: none; }

/* Outputs are a sheet; the notes column exists only while it is open. */
.rv { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head actions" "confirm confirm" "body body"; }
.rv.has-notes { grid-template-columns: minmax(0, 1fr) var(--rv-rail); grid-template-areas: "head actions" "confirm confirm" "body rail"; }
.rv-rail { display: none; background: var(--canvas); }
.rv.has-notes .rv-rail.open { display: flex; }
.rv-rail-close { display: grid; }
.rv-notes-toggle { display: inline-flex; }
.rv-body { max-width: none; overflow-wrap: normal; }
.rv-pictures { padding-top: 16px; }
.rv-picture-sheet { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1px; align-items: start; column-gap: 24px; }
.rv-picture-tile { min-width: 0; width: 340px; max-width: 100%; }
.rv-picture-tile[data-shape="wide"], .rv-picture-sheet[data-layout="single"] .rv-picture-tile { width: 100%; }
.rv-tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv-tile-title { flex: 1; min-width: 0; }
.rv-tile-meta { display: flex; gap: 8px; }
.rv-tile-head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.rv-tile-tools { display: flex; align-items: center; justify-content: flex-end; flex: none; gap: 8px; margin-left: auto; min-height: 28px; }
.rv-tile-tools .rv-jump.ctl-button { font-size: 11px; margin: 0; padding: 4px 0; white-space: nowrap; color: var(--tertiary); }
.rv-tile-switch { display: inline-flex; align-items: center; gap: 4px; }
.rv-tile-tools .rv-tile-switch button[aria-pressed="true"] { color: var(--ink); }
.rv-tile-tools:empty { display: none; }
.rv-tile-stage { position: relative; width: min(100%, calc(var(--natural-width) + 24px)); padding: 12px; border-radius: 16px; background: var(--raised); }
.rv-tile-crop { position: relative; }
.rv-picture-tile .rv-frame { width: min(100%, var(--natural-width)); aspect-ratio: var(--w) / var(--h); box-shadow: 0 0 0 1px var(--hairline); }
.rv-picture-tile.is-tall:not(.is-expanded) .rv-tile-crop { max-height: min(60vh, 720px); overflow: clip; }
.rv-picture-tile.is-tall:not(.is-expanded) .rv-tile-crop::after { content: ""; position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; height: 48px; pointer-events: none; background: linear-gradient(transparent, var(--raised)); }
.rv-tile-tools .rv-tile-full.ctl-button { --ctl-height: 28px; min-width: 28px; color: var(--tertiary); }
.rv-notes-below { position: absolute; z-index: 3; bottom: 16px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.rv-notes-below[hidden] { display: none; }
.rv-tile-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; margin: 8px 2px 0; font-size: 12.5px; color: var(--secondary); }
.rv-tile-caption.is-expanded { display: block; }
.rv-expand-height[hidden] { display: none; }
.rv-pin-detail { position: absolute; z-index: 5; width: min(240px, 75%); padding: 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-2); transform: translate(10px, 16px); font-size: 13px; }
.rv-pin-detail p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-pin-detail button + button { margin-left: 16px; }
.rv-document > summary { display: block !important; position: relative; padding-right: 24px; }
.rv-document-title { display: flex; justify-content: space-between; }
.rv-document-title svg { position: absolute; top: 3px; right: 0; }
.rv-document[open] .rv-document-title svg { transform: rotate(90deg); }
.rv-document > summary .rv-row-proves { margin-top: 4px; }
.rv-document-preview { margin-bottom: 0; }
.rv-document-block { position: relative; cursor: text; }
.rv-document-block > .rv-row-side { display: inline-flex; float: right; margin-left: 8px; }
.rv-document-block > .rv-row-side .rv-row-add { display: none; }
.rv-document-block:hover { background: var(--fill); }
.rv-design-look { margin-top: 12px; font-size: 12px; }
.rv-not-included .rv-row { display: block; width: 100%; }
.rv-not-included .rv-row-main { width: 100%; min-width: 0; }
.rv-not-included strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-not-included .rv-row-proves { white-space: normal; overflow-wrap: break-word; word-break: normal; }
.rv-send { min-width: 90px; }
.rv-section[data-section="send"] { padding-top: 28px; }
.rv-section[data-section="send"] > .rv-label { margin-bottom: 12px; }
.rv-feedback { min-height: 96px; resize: none; width: 100%; box-shadow: none; font-size: 15px; line-height: 1.5; }
.rv-send-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.rv-send-actions .btn { min-height: 52px; padding: 0 24px; font-size: 16px; font-weight: 600; }
.rv-send-actions .rv-send-main.ctl-button { flex: 1 1 440px; max-width: 440px; }
.rv-send-hint { margin-top: 10px; font-size: 12px; }
.rv-full-view { position: absolute; z-index: 40; inset: 0; padding: 20px; overflow: auto; background: var(--canvas); }
.rv-full-close { margin-bottom: 12px; }
.rv-stage[data-mode="diff"] .rv-divider, .rv-stage[data-mode="diff"] .rv-tag { display: none; }
.rv-stage[data-mode="diff"] .rv-shot { clip-path: none; }
.rv-stage[data-mode="diff"] .rv-shot[data-side="after"] { mix-blend-mode: difference; }
@container review (max-width: 699px) {
  .rv, .rv.has-notes { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "head" "body" "confirm" "actions"; }
  .rv-head { display: grid; padding: 12px 16px; }
  .rv-verdict { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rv-picture-tile, .rv-picture-tile[data-shape="wide"] { width: 100%; }
  .rv-send-actions { flex-direction: column; align-items: stretch; }
  .rv-send-actions .btn.ctl-button { flex: none; width: 100%; max-width: none; }
  .rv-bubble { width: min(276px, calc(100cqw - 40px)); transform: translate(4px, 12px); }
  .rv-bubble.flip-x { transform: translate(4px, 12px); }
  .rv-bubble.flip-y, .rv-bubble.flip-x.flip-y { transform: translate(4px, calc(-100% + 16px)); }
}

.rv-send-actions .btn.ctl-button { --ctl-height: 52px; min-height: 52px; padding-inline: 24px; font-size: 16px; font-weight: 600; }
@container review (min-width: 700px) { .rv-rail { position: static; transform: none; visibility: visible; max-height: none; border-radius: 0; box-shadow: none; } .rv-scrim { display: none; } }
.rv textarea.rv-feedback.ctl-field { min-height: 96px; font-size: 16px; line-height: 1.5; }
.rv-document > summary.ctl-button { height: auto; min-height: 0; white-space: normal; text-align: left; width: 100%; justify-content: start; }
.rv-document-block > td:last-child > .rv-row-side .rv-row-add { display: none; }
@container review (max-width: 699px) {
  .rv-actions { position: relative; z-index: 26; }
  .rv-rail { bottom: calc(56px + env(safe-area-inset-bottom)); }
  .rv-full-view .rv-modes { flex-wrap: wrap; }
  .rv-full-view .rv-modes button[data-mode="side"], .rv-full-view .rv-modes button[data-mode="slider"] { display: inline-flex; }
}

.rv-picture-tile .rv-meta { display: inline; }

/* =====================================================================
   The v3 review room (work-review.js mountReviewPage). One column on the
   app's canvas: a sticky top with the verdict, the outcome and the two
   decisions; then white parts with a hairline. Colour only where it
   means something: red for must-fix and failures, green for passes.
   ===================================================================== */
/* The room's tokens. Notes mode (notes-mode.css, .nm-root) draws the room's own pins and note
   boxes anywhere in the app with them, so a note looks the same wherever he writes one. */
.rr, .nm-root {
  --rr-col: 1120px; --rr-pad: 32px; --rr-line: rgba(29, 29, 31, 0.09); --rr-soft: rgba(29, 29, 31, 0.055);
  --rr-red: #c4321f; --rr-red-wash: #fdf1ef; --rr-green: #1f7a3d; --rr-green-wash: #edf6ef; --rr-amber: #8a5a00; --rr-amber-wash: #fbf4e6;
  --rr-stage: #f0f0f1; --rr-row: #fafaf9; --rr-mono: var(--mono);
  --rr-shadow: 0 1px 0 rgba(29, 29, 31, 0.03), 0 1px 2px rgba(29, 29, 31, 0.05);
  --rr-lift: 0 1px 1px rgba(29, 29, 31, 0.04), 0 8px 24px rgba(29, 29, 31, 0.08);
  color: var(--ink); font-size: 14px; line-height: 1.5;
}
.rr {
  container: rr / inline-size;
  position: relative; height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 168px;
  background: var(--canvas);
}
:is(.rr, .nm-root) :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
:where(.rr, .nm-root) button { font: inherit; color: inherit; }
:is(.rr, .nm-root) textarea:is(.rr-field, .rr-master):focus-visible { outline: none !important; }
.rr h1, .rr h2, .rr h3 { text-transform: none; letter-spacing: normal; }
.rr-spacer { flex: 1; }
.rr-meta { min-width: 0; font-size: 12.5px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-quiet { color: var(--tertiary); }
.rr-bad { color: var(--rr-red); font-weight: 600; }
.rr-plus { color: var(--rr-green); }
.rr-minus { color: var(--rr-red); }
.rr-glyph { flex: none; display: block; }
.rr-spin { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(29, 29, 31, 0.14); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
.rr-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rr-num { flex: none; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font: 650 11px/1 var(--font); font-variant-numeric: tabular-nums; }
.is-flash { animation: rr-flash 1.6s var(--ctl-ease, ease); }
@keyframes rr-flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.16); } }
.rr-slot:empty { display: none; }

/* small controls drawn by the room itself */
.rr-mini { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 11px; border: 1px solid var(--rr-line); border-radius: 8px; background: #fff; box-shadow: var(--rr-shadow); font: 550 12.5px/1 var(--font) !important; color: var(--ink); cursor: pointer; white-space: nowrap; }
.rr-mini:hover:not(:disabled) { border-color: rgba(29, 29, 31, 0.18); }
.rr-mini.is-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.rr-mini:disabled { opacity: 0.5; cursor: default; }
.rr-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; border: 0; background: none; font: 550 13px/1.2 var(--font) !important; color: var(--secondary) !important; cursor: pointer; text-decoration: none; }
.rr-link:hover { color: var(--ink) !important; }
.rr-link.rr-danger { color: var(--rr-red) !important; }
.rr-icon-link { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--tertiary); }
.rr-icon-link:hover { background: var(--rr-soft); color: var(--ink); }
.rr-seg { display: inline-flex; flex: none; padding: 2px; border-radius: 9px; background: #ecebe7; }
.rr-seg button { height: 26px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font: 550 12.5px/1 var(--font); color: var(--secondary); cursor: pointer; }
.rr-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--rr-shadow); }
.rr-chev { flex: none; display: grid; place-items: center; width: 18px; color: var(--tertiary); transition: transform 160ms var(--ctl-ease, ease); }
[aria-expanded="true"] > .rr-chev { transform: rotate(90deg); }
.rr-quiet-line { display: flex; align-items: center; gap: 8px; margin: 8px 16px; font-size: 13px; color: var(--tertiary); }
.rr-quiet-line.is-error { color: var(--rr-red); }
.rr-more-lines { display: block; margin: 8px 16px 10px; height: 30px; padding: 0 12px; border: 1px dashed rgba(29, 29, 31, 0.18); border-radius: 8px; background: transparent; font: 550 12.5px/1 var(--font); color: var(--secondary); cursor: pointer; }
.rr-more-lines:hover { color: var(--ink); border-color: rgba(29, 29, 31, 0.3); }

/* ---------- the top: verdict, outcome, state, decision ---------- */
/* No scroll anchoring in the room: when the sticky top compacted, Chrome's anchoring threw the scroll
   back to the very top, which un-compacted it, and the top flickered between its two sizes. WebKit
   has no anchoring; the room now behaves the same in both. */
.rr { overflow-anchor: none; }
.rr-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--canvas) 95%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color 160ms ease, box-shadow 160ms ease; }
.rr-top.is-compact { border-bottom-color: var(--rr-line); box-shadow: 0 6px 18px -14px rgba(29, 29, 31, 0.25); }
.rr-top-inner { max-width: var(--rr-col); margin: 0 auto; padding: 12px var(--rr-pad) 18px; }
.rr-bar { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; color: var(--secondary); }
.rr-back { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-left: -8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; }
.rr-back:hover { background: var(--rr-soft); }
.rr-crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rr-rooms { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.rr-rooms-label { margin-right: 6px; font-size: 12.5px; color: var(--tertiary); }
.rr-room { min-width: 26px; height: 26px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; font: 600 12.5px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--secondary); cursor: pointer; }
.rr-room:hover { background: var(--rr-soft); color: var(--ink); }
.rr-room[aria-current="page"] { background: var(--ink); color: #fff; }
.rr-hero { display: flex; align-items: flex-end; gap: 28px; margin-top: 10px; }
.rr-hero-text { flex: 1; min-width: 0; }
.rr-verdict { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; padding: 0 12px 0 9px; border: 1px solid var(--rr-line); border-radius: 999px; background: #fff; box-shadow: var(--rr-shadow); font: 600 13px/1 var(--font) !important; color: var(--ink); cursor: pointer; white-space: nowrap; }
.rr-verdict > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.rr-verdict-mark { display: grid; place-items: center; width: 14px; height: 14px; color: var(--tertiary); }
.rr-verdict[data-tone="bad"] { color: var(--rr-red); border-color: rgba(196, 50, 31, 0.22); background: var(--rr-red-wash); }
.rr-verdict[data-tone="bad"] .rr-verdict-mark { color: var(--rr-red); }
.rr-verdict[data-tone="good"] .rr-verdict-mark { color: var(--rr-green); }
.rr-verdict[data-tone="checking"], .rr-verdict[data-tone="quiet"] { color: var(--secondary); }
.rr-verdict .rr-spin { width: 12px; height: 12px; border-width: 1.75px; }
.rr-verdict-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rr-review-again.btn.small { height: 28px; padding: 0 12px; font-weight: 600; }
.rr-headline { margin: 12px 0 0; font: 560 27px/1.18 var(--display); letter-spacing: -0.024em; color: var(--ink); text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rr-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; margin: 8px 0 0; font-size: 13px; color: var(--tertiary); }
.rr-state > span + span::before { content: "·"; margin: 0 8px; color: var(--tertiary); }
.rr-state-word { color: var(--ink); font-weight: 600; }
.rr-state[data-state="stopped"] .rr-state-word { color: var(--rr-amber); }
.rr-actions { display: flex; align-items: center; gap: 8px; flex: none; padding-bottom: 2px; }
.rr .rr-actions .btn.ctl-button, .rr .rr-dock .btn.ctl-button { --ctl-height: 40px; padding-inline: 18px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.rr .rr-actions .btn[data-action="approve"] { min-width: 112px; }
.rr-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font: 650 11px/1 var(--font); font-variant-numeric: tabular-nums; }
.btn:disabled .rr-badge { background: var(--tertiary); }
.rr-approved { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 11px; background: var(--rr-green-wash); color: var(--rr-green); font: 600 14px/1 var(--font); }
.rr-approved a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.rr-approved a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rr-top.is-compact .rr-top-inner { padding-bottom: 12px; }
.rr-top.is-compact .rr-headline { margin-top: 8px; font-size: 19px; -webkit-line-clamp: 1; }
.rr-top.is-compact .rr-state { display: none; }
.rr-confirm { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 10px 10px 16px; border: 1px solid var(--rr-line); border-radius: 13px; background: #fff; box-shadow: var(--rr-lift); font-size: 14px; font-weight: 550; animation: rise 160ms ease; }
.rr-confirm > span { flex: 1; min-width: 0; }
.rr-confirm-actions { display: flex; gap: 6px; flex: none; }
.rr-banner { margin: 10px 0 0; font-size: 13px; color: var(--secondary); }
.rr-notice { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid rgba(196, 50, 31, 0.2); border-radius: 12px; background: var(--rr-red-wash); color: var(--ink); font-size: 13.5px; }
.rr-notice[hidden] { display: none; }
.rr-notice > span { flex: 1; }

/* ---------- the body ---------- */
.rr-main { display: grid; gap: 30px; max-width: var(--rr-col); margin: 0 auto; padding: 10px var(--rr-pad) 48px; }
.rr-sec-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin: 0 0 12px; }
.rr-sec-head h2 { flex: none; margin: 0; font: 560 18px/1.25 var(--display); letter-spacing: -0.012em; color: var(--ink); }
.rr-quiet-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; border-radius: 14px; background: rgba(29, 29, 31, 0.035); font-size: 13.5px; color: var(--tertiary); }
.rr-quiet-row > strong { flex: none; color: var(--secondary); font-weight: 600; }
.rr-quiet-row > span:not(.rr-quiet-icon) { min-width: 0; }
.rr-quiet-row > .rr-preview { margin-left: auto; }
.rr-quiet-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(29, 29, 31, 0.05); color: var(--tertiary); }
.rr-empty { display: grid; justify-items: start; gap: 10px; padding: 32px 0; }
.rr-empty h2 { margin: 0; font: 560 22px/1.2 var(--display); color: var(--ink); }
.rr-empty p { margin: 0; color: var(--secondary); }
.rr-empty.is-loading { gap: 12px; }
.rr-empty.is-loading span { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #ebeae6, #f3f2ef, #ebeae6); background-size: 800px 100%; animation: shimmer 1.4s linear infinite; }
.rr-empty.is-loading span:nth-child(1) { width: 38%; height: 26px; }
.rr-empty.is-loading span:nth-child(2) { width: 72%; }
.rr-empty.is-loading span:nth-child(3) { width: 56%; }

/* notes and the one inline editor */
.rr-add-note { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--tertiary); cursor: pointer; opacity: 0; transition: opacity 120ms ease, background 120ms ease; }
.rr-add-note[hidden] { display: none; }
.rr-add-note:hover { background: var(--rr-soft); color: var(--ink); }
:is(.rr-finding-head, .rr-test, .rr-agent-row):hover > .rr-add-note, .rr-add-note:focus-visible { opacity: 1; }
@media (hover: none) { .rr-add-note { opacity: 0.7; } }
.rr-thread-wrap:not(.has-notes):not(:has(.rr-editor)) { display: none; }
.rr-thread { display: grid; gap: 6px; }
.rr-thread:empty { display: none; }
.rr-thread + .rr-editor-slot:not(:empty) { margin-top: 8px; }
.rr-note { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 7px 10px 7px 7px; border: 0; border-radius: 10px; background: #f3f2ef; text-align: left; font: 13.5px/1.45 var(--font) !important; color: var(--ink); cursor: text; }
.rr-note:hover { background: #eceae6; }
.rr-note.is-sent { background: rgba(29, 29, 31, 0.035); color: var(--secondary); cursor: default; }
.rr-note.is-sent .rr-num { background: #8e8e93; }
.rr-note-text { flex: 1; min-width: 0; padding-top: 1px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rr-note-meta { flex: none; padding-top: 2px; font-size: 11.5px; color: var(--tertiary); }
.rr-editor { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid rgba(29, 29, 31, 0.16); border-radius: 13px; background: #fff; box-shadow: var(--rr-lift); animation: rise 140ms ease; cursor: auto; font-family: var(--font); }
.rr-editor-title { font: 600 12px/1.3 var(--font); color: var(--tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.rr, .nm-root) textarea.rr-field { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; outline: 0; resize: none; background: transparent; box-shadow: none; font: 14.5px/1.5 var(--font); color: var(--ink); }
.rr-editor-foot { display: flex; align-items: center; gap: 6px; }
.rr-editor-hint { margin-right: auto; font-size: 11.5px; color: var(--tertiary); }
@media (hover: none) { .rr-editor-hint { visibility: hidden; } }

/* ---------- shipping ---------- */
.rr-ship { padding: 14px 16px; border: 1px solid var(--rr-line); border-radius: 16px; background: #fff; box-shadow: var(--rr-shadow); }
.rr-ship-main { display: flex; align-items: center; gap: 12px; }
.rr-ship-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--rr-stage); color: var(--secondary); }
.rr-ship[data-tone="good"] .rr-ship-mark { background: var(--rr-green-wash); color: var(--rr-green); }
.rr-ship[data-tone="bad"] .rr-ship-mark { background: var(--rr-red-wash); color: var(--rr-red); }
.rr-ship[data-tone="warn"] .rr-ship-mark { background: var(--rr-amber-wash); color: var(--rr-amber); }
.rr-ship-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rr-ship-text strong { font: 600 15px/1.35 var(--font); font-variant-numeric: tabular-nums; }
.rr-ship-text span { font-size: 13px; color: var(--secondary); }
.rr-ship-actions { display: flex; gap: 8px; flex: none; }
.rr-ship-actions:empty { display: none; }
.rr .rr-ship-actions .btn.ctl-button { --ctl-height: 36px; padding-inline: 16px; border-radius: 10px; font-weight: 600; }
.rr-ship[data-mode="reason"] { padding: 10px 14px; background: rgba(29, 29, 31, 0.035); border-color: transparent; box-shadow: none; }
.rr-ship[data-mode="reason"] .rr-ship-mark { width: 28px; height: 28px; background: rgba(29, 29, 31, 0.05); }
.rr-ship-failures { display: grid; gap: 6px; margin: 12px 0 0 46px; padding: 0; list-style: none; font-size: 13px; }
.rr-ship-failures li { display: flex; align-items: baseline; gap: 8px; }
.rr-ship-failures li > span:last-child { color: var(--secondary); font: 12px/1.4 var(--rr-mono); }
.rr-x { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--rr-red); color: #fff; align-self: center; }
.rr-ship > .rr-link { margin: 10px 0 0 46px; }
.rr-ship .rr-confirm { box-shadow: none; background: var(--rr-row); }
.rr-ship .rr-confirm[hidden] { display: none; }
.rr-releases { margin: 10px 0 0 46px; }
.rr-releases > summary { display: inline-flex; align-items: center; gap: 4px; font: 550 13px/1 var(--font); color: var(--secondary); cursor: pointer; }
.rr-releases[open] > summary .rr-glyph { transform: rotate(90deg); }
.rr-release-list { margin-top: 6px; }
.rr-release { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rr-soft); }
.rr-release-text { flex: 1; min-width: 0; display: grid; }
.rr-release-text strong { font: 600 13px/1.4 var(--rr-mono); }
.rr-release-text span { font-size: 12.5px; color: var(--tertiary); }
.rr-release[data-state="live"] .rr-release-text strong { color: var(--rr-green); }
.rr-release-list .rr-quiet-line { margin-inline: 0; }

/* ---------- review notes ---------- */
.rr-findings-list { display: grid; gap: 8px; }
.rr-finding { position: relative; border: 1px solid var(--rr-line); border-radius: 15px; background: #fff; box-shadow: var(--rr-shadow); overflow: hidden; }
.rr-finding[data-severity="must_fix"]:not([data-status="fixed"])::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--rr-red); }
.rr-finding-head { display: flex; align-items: flex-start; gap: 12px; padding: 13px 10px 13px 18px; cursor: pointer; }
.rr-finding-head:focus-visible { outline-offset: -2px; border-radius: 15px; }
.rr-sev { flex: none; display: inline-flex; align-items: center; gap: 7px; width: 88px; font: 600 12px/20px var(--font); color: var(--secondary); white-space: nowrap; }
.rr-sev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rr-sev[data-severity="must_fix"] { color: var(--rr-red); }
.rr-sev[data-severity="should_fix"] { color: var(--ink); }
.rr-sev[data-severity="note"] { color: var(--tertiary); }
.rr-sev[data-severity="note"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.rr-finding-title { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rr-finding-title strong { font-size: 14.5px; line-height: 20px; font-weight: 600; }
.rr-where { justify-self: start; max-width: 100%; padding: 0; border: 0; background: none; font: 12px/1.5 var(--rr-mono) !important; color: var(--secondary) !important; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.rr-where:hover { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.rr-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--rr-soft); font: 600 11.5px/1 var(--font); color: var(--secondary); white-space: nowrap; margin-top: -1px; }
.rr-chip[data-status="fixed"] { background: var(--rr-green-wash); color: var(--rr-green); }
.rr-chip[data-status="still_open"] { background: var(--rr-red-wash); color: var(--rr-red); }
.rr-finding-body { display: none; padding: 0 18px 14px 118px; color: var(--secondary); font-size: 14px; line-height: 1.55; }
.rr-finding.is-open .rr-finding-body { display: grid; gap: 8px; }
.rr-finding-body p { margin: 0; overflow-wrap: anywhere; }
.rr-fix { color: var(--ink); }
.rr-fix > span { display: inline-block; margin-right: 8px; font: 650 11px/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--tertiary); }
.rr-finding[data-status="fixed"] .rr-finding-title strong { color: var(--secondary); }
.rr-finding > .rr-thread-wrap { padding: 0 18px 14px 118px; }
.rr-findings > .rr-quiet-line { margin: 10px 2px 0; }
.rr-issues-slot:not(:empty) { margin-top: 12px; }
.rr-issues { padding: 12px 16px 6px; border: 1px solid var(--rr-line); border-radius: 15px; background: #fff; box-shadow: var(--rr-shadow); }
.rr-issues-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.rr-issues-head > div { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.rr-issues-head h3 { margin: 0; font: 600 14.5px/1.3 var(--font); }
.rr-page { font: 12px/1.4 var(--rr-mono); color: var(--tertiary); background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-issue { display: grid; gap: 4px; padding: 11px 0; border-top: 1px solid var(--rr-soft); }
.rr-issue-head { display: flex; align-items: baseline; gap: 10px; }
.rr-issue-head .rr-sev { width: auto; }
.rr-issue code.rr-where { cursor: default; }
.rr-issue-text { margin: 0; font-size: 13.5px; color: var(--secondary); }
.rr-issue-fix { margin: 0; font-size: 13.5px; }
.rr-issue-fix > span { font-weight: 600; }
.rr-issue-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--tertiary); }
.rr-issue-actions { display: flex; gap: 6px; }
.rr-issues-list .rr-quiet-line { margin-inline: 0; }
.rr-issues-list { transition: opacity 120ms ease; }
.rr-issues-list.is-stale { opacity: 0.5; pointer-events: none; }

/* ---------- screens ---------- */
.rr-preview { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--rr-line); border-radius: 999px; background: #fff; box-shadow: var(--rr-shadow); font: 550 13px/1 var(--font) !important; color: var(--ink); cursor: pointer; align-self: center; }
.rr-preview:hover { border-color: rgba(29, 29, 31, 0.2); }
.rr-groups { display: grid; gap: 16px; }
.rr-group { padding: 14px 16px 16px; border: 1px solid var(--rr-line); border-radius: 18px; background: #fff; box-shadow: var(--rr-shadow); }
.rr-group-head { display: flex; align-items: center; gap: 12px; min-height: 30px; margin-bottom: 12px; }
.rr-group-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.rr-group-title h3 { flex: none; max-width: 70%; margin: 0; font: 600 15px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-shots { display: flex; align-items: flex-start; gap: 18px; }
.rr-shot { position: relative; min-width: 0; margin: 0; }
.rr-stage { position: relative; overflow: hidden; border-radius: 12px; background: var(--rr-stage); box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.07); }
.rr-shot[data-shape="narrow"] .rr-stage { border-radius: 16px; }
.rr-stage.is-tall::after { content: ""; position: absolute; inset: auto 0 0; height: 96px; background: linear-gradient(transparent, rgba(255, 255, 255, 0.94)); pointer-events: none; }
.rr-more-height { position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%); height: 30px; padding: 0 14px; border: 1px solid var(--rr-line); border-radius: 999px; background: #fff; box-shadow: var(--rr-lift); font: 550 12.5px/1 var(--font) !important; cursor: pointer; }
.rr-stage:not(.is-tall) .rr-more-height { position: static; display: block; transform: none; margin: 8px auto; }
.rr-frame { position: relative; width: 100%; }
.rr[data-state="ready"] .rr-frame { cursor: crosshair; }
.rr-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rr-frame:focus-visible { outline-offset: -2px; }
.rr-pins { position: absolute; inset: 0; pointer-events: none; }
.rr-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(29, 29, 31, 0.25); font: 700 12px/1 var(--font) !important; pointer-events: auto; cursor: pointer; transition: transform 120ms ease; }
.rr-pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.rr-pin.is-sent { background: #6e6e73; }
.rr-pin.is-draft { background: #fff; color: var(--ink); border-color: var(--ink); animation: rr-pop 200ms var(--ctl-ease, ease); }
@keyframes rr-pop { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }
.rr-bubble { position: absolute; z-index: 6; width: 300px; transform: translate(20px, -22px); cursor: auto; }
.rr-bubble.flip-x { transform: translate(calc(-100% - 20px), -22px); }
.rr-bubble.flip-y { transform: translate(20px, calc(-100% + 22px)); }
.rr-bubble.flip-x.flip-y { transform: translate(calc(-100% - 20px), calc(-100% + 22px)); }
.rr-broken { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: var(--rr-stage); color: var(--tertiary); font-size: 13px; }
.rr-broken[hidden] { display: none; }
.rr-noshot { display: grid; place-content: center; justify-items: center; gap: 4px; padding: 24px; text-align: center; font-size: 13px; color: var(--tertiary); background: repeating-linear-gradient(135deg, #f3f3f4 0 12px, #efeff0 12px 24px); }
.rr-noshot strong { color: var(--secondary); font-weight: 600; }
.rr-noshot span { max-width: 240px; }
.rr-shot-foot { display: flex; align-items: center; gap: 8px; min-height: 26px; margin-top: 8px; font-size: 12.5px; color: var(--tertiary); }
.rr-shot-name { color: var(--ink); font-weight: 600; }
.rr-shot-size { font-variant-numeric: tabular-nums; }
.rr-shot-count:empty { display: none; }
.rr-shot-foot .rr-icon-link { margin-left: auto; }
.rr-shot-notes { display: grid; gap: 6px; margin-top: 6px; }
.rr-shot-notes:empty { display: none; }
.rr-shot > .rr-editor-slot:not(:empty) { margin-top: 8px; }

/* ---------- tests and files: one line each until opened ---------- */
.rr-foldable { border: 1px solid var(--rr-line); border-radius: 16px; background: #fff; box-shadow: var(--rr-shadow); overflow: clip; }
.rr-fold { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) 18px; grid-template-areas: "icon title line chev"; align-items: center; column-gap: 12px; width: 100%; padding: 15px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.rr-fold:hover { background: var(--rr-row); }
.rr-fold-icon { grid-area: icon; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--rr-stage); color: var(--secondary); }
.rr-fold-icon[data-tone="bad"] { background: var(--rr-red-wash); color: var(--rr-red); }
.rr-fold-icon[data-tone="good"] { background: var(--rr-green-wash); color: var(--rr-green); }
.rr-fold-icon[data-tone="quiet"] { color: var(--tertiary); }
.rr-fold-title { grid-area: title; font: 560 16px/1.3 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.rr-fold-line { grid-area: line; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; min-width: 0; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.rr-fold-line .rr-sep { color: var(--tertiary); }
.rr-fold > .rr-chev { grid-area: chev; }
.rr-meter { display: flex; gap: 2px; height: 4px; margin: -4px 16px 14px 58px; border-radius: 2px; overflow: hidden; background: transparent; }
.rr-meter > span { display: block; height: 100%; border-radius: 2px; }
.rr-meter > .is-pass { flex: 1 1 auto; background: #9ccbaa; }
.rr-meter > .is-fail { flex: none; background: var(--rr-red); min-width: 4px; }
.rr-meter > .is-skip { flex: none; background: #c7c7cc; min-width: 3px; }
.rr-meter > :is(.is-fail, .is-skip)[style="width:0%"] { display: none; }
.rr-meter.is-ship { margin: 12px 0 0 46px; height: 5px; background: var(--rr-stage); }
.rr-meter.is-ship > .is-pass { flex: none; background: var(--ink); transition: width 400ms ease; }
.rr-fold-body { padding: 4px 0 8px; border-top: 1px solid var(--rr-soft); }
.rr-fold-body h3 { margin: 12px 16px 4px; font: 650 11.5px/1.3 var(--font); letter-spacing: 0.04em; text-transform: uppercase !important; color: var(--tertiary); }
.rr-test { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; padding: 9px 10px 9px 16px; }
.rr[data-state="ready"] .rr-test { cursor: text; }
.rr-test:hover { background: var(--rr-row); }
.rr-test + .rr-test { box-shadow: inset 0 1px 0 var(--rr-soft); }
.rr-test-mark { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; color: var(--rr-green); }
.rr-test-mark[data-status="failed"] { background: var(--rr-red); color: #fff; }
.rr-test-mark:is([data-status="did_not_run"], [data-status="skipped"], [data-status="stopped"], [data-status="unknown"]) { box-shadow: inset 0 0 0 1.5px #c7c7cc; }
.rr-test-mark .rr-spin { width: 13px; height: 13px; }
.rr-dash { width: 7px; height: 1.5px; border-radius: 1px; background: #a1a1a6; }
.rr-test-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13.5px; }
.rr-test-text strong { font-weight: 550; overflow-wrap: anywhere; }
.rr-reason { font: 12.5px/1.45 var(--rr-mono); color: var(--secondary); overflow-wrap: anywhere; }
.rr-test[data-status="failed"] .rr-reason { color: #8f2a1c; }
.rr-test-text > .rr-quiet { font-size: 12px; }
.rr-test > .rr-thread-wrap { flex: 0 0 100%; padding: 8px 28px 2px 30px; }
.rr-test > .rr-row-output { flex: 0 0 100%; padding: 6px 28px 2px 30px; }
.rr-row-output pre { margin: 0; max-height: 320px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: #1d1d1f; color: #e6e6e9; font: 12px/1.55 var(--rr-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.rr-row-output-toggle { font-size: 12px; padding: 0; }
.rr-test-text > .rr-quiet .rr-sep { margin: 0 6px; }
.rr-tgroup + .rr-tgroup { box-shadow: inset 0 1px 0 var(--rr-soft); }
.rr-tgroup-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.rr-tgroup-head:hover { background: var(--rr-row); }
.rr-tgroup-title { flex: 1; min-width: 0; display: grid; font-size: 13.5px; }
.rr-tgroup-title strong { font-weight: 600; }
.rr-tgroup-title code { font: 11.5px/1.5 var(--rr-mono); color: var(--tertiary); background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-tgroup-counts { flex: none; font-size: 12.5px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.rr-group-body { display: none; }
.rr-tgroup.is-open > .rr-group-body { display: block; padding: 0 0 6px 18px; }
.rr-output-row { padding: 4px 16px 8px; }
.rr-output pre { margin: 0 16px 10px; max-height: 360px; overflow: auto; padding: 12px 14px; border-radius: 10px; background: #1d1d1f; color: #e6e6e9; font: 12px/1.55 var(--rr-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.rr-files { border-top: 1px solid var(--rr-soft); }
.rr-file + .rr-file { box-shadow: inset 0 1px 0 var(--rr-soft); }
.rr-file-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px 9px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.rr-file-row:hover:not(:disabled) { background: var(--rr-row); }
.rr-file-row:disabled { cursor: default; opacity: 1; color: inherit; }
.rr-file.is-open > .rr-file-row { background: var(--rr-row); }
.rr-letter { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--rr-stage); color: var(--secondary); font: 700 10.5px/1 var(--rr-mono); }
.rr-letter[data-status="added"] { background: var(--rr-green-wash); color: var(--rr-green); }
.rr-letter[data-status="deleted"] { background: var(--rr-red-wash); color: var(--rr-red); }
.rr-path { flex: 1; min-width: 0; display: flex; font: 12.5px/1.4 var(--rr-mono); }
.rr-dir { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tertiary); }
.rr-name { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.rr-renamed { flex: none; }
.rr-delta { flex: none; display: flex; gap: 8px; font: 12px/1 var(--rr-mono); font-variant-numeric: tabular-nums; }
.rr-count-badge { flex: none; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font: 650 10.5px/1 var(--font); }
.rr-count-badge[hidden] { display: none; }
.rr-files > .rr-quiet-line { margin: 10px 16px 12px; }
.rr-diff { background: #fcfcfb; box-shadow: inset 0 1px 0 var(--rr-soft); }
.rr-diff > .rr-quiet-line { margin: 10px 16px; }
.rr-diff-lines { font: 12px/1.65 var(--rr-mono); padding: 4px 0 8px; }
.rr-line { position: relative; display: grid; grid-template-columns: 46px 46px 20px minmax(0, 1fr) 30px; align-items: start; }
.rr-line[data-key] { cursor: text; }
.rr-ln { padding: 0 8px; text-align: right; font-size: 11px; line-height: 19.8px; color: #a5a5aa; -webkit-user-select: none; user-select: none; font-variant-numeric: tabular-nums; }
.rr-sign { text-align: center; color: var(--tertiary); -webkit-user-select: none; user-select: none; }
.rr-code { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 4px; color: #2b2b2e; }
.rr-line.is-add { background: #eaf6ed; }
.rr-line.is-add .rr-sign { color: var(--rr-green); }
.rr-line.is-del { background: #fcefed; }
.rr-line.is-del .rr-sign { color: var(--rr-red); }
.rr-line.is-hunk { margin-top: 4px; background: #f2f2f4; color: var(--tertiary); }
.rr-line.is-hunk .rr-code { color: var(--tertiary); }
.rr-line.is-note .rr-code { color: var(--tertiary); font-style: italic; }
.rr[data-state="ready"] .rr-line[data-key]:hover { box-shadow: inset 2px 0 0 var(--ink); }
.rr-line.has-note { box-shadow: inset 3px 0 0 var(--ink); }
.rr-line-add { display: grid; place-items: center; width: 24px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: var(--ink); color: #fff; cursor: pointer; opacity: 0; }
.rr-line[data-key]:hover .rr-line-add { opacity: 1; }
@media (hover: none) { .rr-line-add { display: none; } }
.rr-line-thread, .rr-line-slot { display: grid; gap: 6px; padding: 8px 14px 10px 112px; border-block: 1px solid var(--rr-soft); background: #fff; font-family: var(--font); }
.rr-more-lines + .rr-line-thread { margin-top: 6px; }

/* ---------- documents ---------- */
.rr-doc { border: 1px solid var(--rr-line); border-radius: 16px; background: #fff; box-shadow: var(--rr-shadow); overflow: hidden; }
.rr-doc + .rr-doc { margin-top: 12px; }
.rr-doc-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; }
.rr-doc-head > div { display: grid; min-width: 0; }
.rr-doc-head strong { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-doc-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--rr-stage); color: var(--secondary); }
.rr-doc-body { position: relative; max-height: 360px; overflow: hidden; padding: 2px 24px 10px; border-top: 1px solid var(--rr-soft); font-size: 14.5px; line-height: 1.6; }
.rr-doc-body::after { content: ""; position: absolute; inset: auto 0 0; height: 80px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.rr-doc.is-open .rr-doc-body { max-height: none; }
.rr-doc.is-open .rr-doc-body::after { display: none; }
.rr-doc-body > :first-child { margin-top: 14px; }
.rr-doc-body :is(h1, h2, h3) { font-family: var(--display); font-weight: 560; letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.rr-doc-body h1 { font-size: 21px; margin: 18px 0 8px; }
.rr-doc-body h2 { font-size: 17px; margin: 18px 0 6px; }
.rr-doc-body h3 { font-size: 15px; margin: 14px 0 4px; }
.rr-doc-body pre { padding: 10px 12px; border-radius: 10px; background: var(--rr-stage); font-size: 12.5px; white-space: pre-wrap; }
.rr[data-state="ready"] .rr-block { cursor: text; border-radius: 6px; transition: background 120ms ease; }
.rr[data-state="ready"] .rr-block:hover { background: #f6f5f2; box-shadow: -6px 0 0 #f6f5f2, 6px 0 0 #f6f5f2; }
.rr-doc-body .rr-thread-wrap { margin: 6px 0 12px; font-size: 13.5px; }
.rr-doc-more { display: block; width: 100%; height: 42px; border: 0; border-top: 1px solid var(--rr-soft); background: #fff; font: 600 13px/1 var(--font); color: var(--ink); cursor: pointer; }
.rr-doc-more:hover { background: var(--rr-row); }
.rr-doc-more[hidden] { display: none; }
.rr-doc-name { flex: 1 1 auto; }
.rr-doc-name .rr-meta { font-family: var(--rr-mono); font-size: 12px; }
.rr-doc-head > .rr-doc-seg { display: inline-flex; margin-left: auto; }
/* A short document shows whole: no fade over its last line. */
.rr-doc.is-whole .rr-doc-body::after { display: none; }
/* The document the room leads with: read in full, at a reading measure, the page scrolling it. */
.rr-doc.is-primary .rr-doc-body { padding: 4px 40px 26px; font-size: 15.5px; line-height: 1.65; }
.rr-doc.is-primary .rr-doc-body > :first-child { margin-top: 22px; }
/* The renderer shifts headings down one level (# is h2). */
.rr-doc.is-primary .rr-doc-body :is(p, ul, ol, blockquote, h2, h3, h4, h5) { max-width: 72ch; }
.rr-doc.is-primary .rr-doc-body :is(h4, h5) { font-family: var(--display); font-weight: 560; color: var(--ink); text-transform: none; }
.rr-doc.is-primary .rr-doc-body h2 { font-size: 27px; line-height: 1.2; letter-spacing: -0.015em; margin: 26px 0 12px; }
.rr-doc.is-primary .rr-doc-body h3 { font-size: 20px; margin: 32px 0 8px; }
.rr-doc.is-primary .rr-doc-body h4 { font-size: 16.5px; margin: 22px 0 6px; }
.rr-doc-body .table-wrap { margin: 10px 0 16px; border: 1px solid var(--rr-soft); border-radius: 12px; overflow-x: auto; }
.rr-doc-body .table-wrap table { font-size: 13.5px; }
.rr-doc-body .table-wrap tr:last-child td { border-bottom: 0; }
.rr-doc-body .table-wrap a { color: var(--ink); text-decoration-color: rgba(29, 29, 31, 0.3); text-underline-offset: 2px; }
.rr-doc-body.is-table { padding-top: 12px; }
.rr-doc-body .rr-block-row td { padding: 4px 12px 10px; border-bottom: 1px solid var(--hairline); }
/* A row's note slot takes no room until it holds a note or the editor, and stays in view in a wide table. */
.rr-doc-body .rr-block-row td > .rr-thread-wrap { position: sticky; left: 12px; width: min(620px, calc(100cqi - 24px)); }
.rr-doc-body .rr-block-row:not(:has(.rr-thread-wrap.has-notes, .rr-editor)) { display: none; }
.rr-doc-cut { margin-top: 18px; }
.rr-doc-diff { border-top: 1px solid var(--rr-soft); }
.rr-doc-diff .rr-diff { border: 0; border-radius: 0; }

/* ---------- parts with nothing to show, said once at the bottom ---------- */
.rr-foot { display: grid; gap: 6px; padding: 0 4px; }
.rr-foot-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--tertiary); }
.rr-foot-line svg { flex: none; color: var(--tertiary); }
.rr-foot-line strong { flex: none; font-weight: 600; color: var(--secondary); }
.rr-foot-line span { min-width: 0; }

/* ---------- the agent's notes ---------- */
.rr-agent-list { border: 1px solid var(--rr-line); border-radius: 16px; background: #fff; box-shadow: var(--rr-shadow); overflow: hidden; }
.rr-agent-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 28px; align-items: start; gap: 6px 14px; padding: 13px 10px 13px 18px; }
.rr[data-state="ready"] .rr-agent-row { cursor: text; }
.rr-agent-row:hover { background: var(--rr-row); }
.rr-agent-row + .rr-agent-row { box-shadow: inset 0 1px 0 var(--rr-soft); }
.rr-agent-row p code { font: 0.88em/1.4 var(--rr-mono); padding: 1px 5px; border-radius: 5px; background: var(--rr-stage); overflow-wrap: anywhere; }
.rr-kind { font: 600 12px/20px var(--font); color: var(--tertiary); white-space: nowrap; }
.rr-agent-row[data-kind="question"] .rr-kind { color: var(--ink); }
.rr-agent-row[data-kind="unverified"] .rr-kind { color: var(--rr-amber); }
.rr-agent-row > p { margin: 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.rr-agent-row > .rr-add-note { margin-top: -4px; }
.rr-agent-row > .rr-thread-wrap { grid-column: 2 / -1; padding-right: 18px; }

/* ---------- send back ---------- */
.rr-send-box { padding: 16px 16px 16px 20px; border: 1px solid rgba(29, 29, 31, 0.12); border-radius: 20px; background: #fff; box-shadow: var(--rr-lift); }
.rr-send-box:focus-within { border-color: rgba(29, 29, 31, 0.3); }
.rr textarea.rr-master { display: block; width: 100%; min-height: 84px; padding: 2px 0; border: 0; outline: 0; resize: none; background: transparent; box-shadow: none; font: 15.5px/1.55 var(--font); color: var(--ink); }
.rr-send-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.rr-send-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rr-send-summary { margin: 0; font-size: 13.5px; color: var(--secondary); }
.rr-save-state { font-size: 12.5px; color: var(--tertiary); }
.rr-save-state:empty { display: none; }
.rr-save-state:is([data-status="Retry"], [data-status="Conflict"]) { color: var(--rr-red); }
.rr .btn.rr-send-big.ctl-button { --ctl-height: 52px; min-width: 200px; padding-inline: 32px; border-radius: 15px; font-size: 16px; font-weight: 650; }
.rr-sent .rr-quiet-icon { color: var(--rr-green); background: var(--rr-green-wash); }

/* ---------- the phone ---------- */
.rr-video { padding: 0 20px 20px; }
.rr-video video { display: block; width: 100%; max-height: 72vh; border-radius: 10px; background: #111; }
.rr-video [hidden] { display: none; }
.rr-dock { display: none; }
@container rr (max-width: 760px) {
  .rr-finding-body, .rr-finding > .rr-thread-wrap { padding-left: 18px; }
  .rr-sev { width: auto; }
}
@container rr (max-width: 640px) {
  .rr-top-inner { padding: 6px 16px 12px; }
  .rr-bar { min-height: 36px; }
  .rr-back { width: 36px; height: 36px; }
  .rr-rooms-label { display: none; }
  .rr-hero { margin-top: 6px; }
  .rr-actions { display: none; }
  .rr-headline { margin-top: 10px; font-size: 21px; line-height: 1.2; }
  .rr-top.is-compact .rr-headline { font-size: 16.5px; margin-top: 6px; }
  .rr-top.is-compact .rr-bar { display: none; }
  .rr-top.is-compact .rr-top-inner { padding-top: 10px; padding-bottom: 10px; }
  .rr-confirm { flex-wrap: wrap; padding: 12px; }
  .rr-confirm-actions { width: 100%; justify-content: flex-end; }
  .rr-main { gap: 24px; padding: 6px 16px 24px; }
  .rr-sec-head h2 { font-size: 17px; }
  .rr-sec-head .rr-meta { display: none; }
  .rr-screens .rr-sec-head .rr-meta { display: block; }
  .rr-group { padding: 12px 0 14px; border-radius: 16px; }
  .rr-group-head { padding: 0 12px; flex-wrap: wrap; row-gap: 6px; }
  .rr-group-title { flex-basis: 100%; }
  .rr-group-head .rr-seg { margin-left: 0; }
  .rr-shots { gap: 12px; padding: 0 12px 2px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rr-shots::-webkit-scrollbar { display: none; }
  .rr-shot { scroll-snap-align: start; }
  .rr-shot[data-shape="narrow"] { flex: 0 0 72%; }
  .rr-shot[data-shape="wide"] { flex: 0 0 90%; }
  .rr-shots[data-count="1"] .rr-shot { flex-basis: 100%; }
  .rr-shots[data-count="1"] .rr-shot[data-shape="narrow"] { flex-basis: 78%; margin-inline: auto; }
  .rr-finding-head { flex-wrap: wrap; gap: 4px 10px; padding: 12px 6px 12px 16px; }
  .rr-finding-title { order: 3; flex-basis: calc(100% - 10px); }
  .rr-finding-head > .rr-chip { margin-left: auto; }
  .rr-finding-head > .rr-sev + .rr-finding-title + .rr-add-note { margin-left: auto; }
  .rr-finding-body, .rr-finding > .rr-thread-wrap { padding: 0 16px 14px; }
  .rr-fold { grid-template-columns: 30px minmax(0, 1fr) 18px; grid-template-areas: "icon title chev" "icon line chev"; row-gap: 2px; padding: 13px 14px; }
  .rr-fold-line { font-size: 13.5px; }
  .rr-meter { margin-left: 56px; margin-right: 14px; }
  .rr-file-row { padding-left: 14px; }
  .rr-line { grid-template-columns: 34px 34px 16px minmax(0, 1fr) 4px; }
  .rr-ln { padding: 0 4px; font-size: 10px; }
  .rr-line-thread, .rr-line-slot { padding-left: 14px; }
  .rr-tgroup-head { flex-wrap: wrap; }
  .rr-tgroup-counts { order: 4; flex-basis: 100%; padding-left: 30px; }
  .rr-tgroup.is-open > .rr-group-body { padding-left: 0; }
  .rr-test > .rr-thread-wrap { padding: 8px 4px 2px 30px; }
  .rr-agent-row { grid-template-columns: minmax(0, 1fr) 28px; padding: 12px 6px 12px 16px; gap: 2px 8px; }
  .rr-kind { grid-column: 1; grid-row: 1; line-height: 18px; }
  .rr-agent-row > p { grid-column: 1; }
  .rr-agent-row > .rr-add-note { grid-column: 2; grid-row: 1 / span 2; }
  .rr-agent-row > .rr-thread-wrap { grid-column: 1 / -1; padding-right: 10px; }
  .rr-doc-body { padding: 0 16px 8px; max-height: 300px; }
  .rr-doc.is-primary .rr-doc-body { padding: 0 16px 18px; font-size: 15px; }
  .rr-doc.is-primary .rr-doc-body h2 { font-size: 23px; margin-top: 18px; }
  .rr-doc.is-primary .rr-doc-body h3 { font-size: 18.5px; }
  .rr-doc-head { flex-wrap: wrap; row-gap: 10px; }
  .rr-doc-head > .rr-doc-seg { margin-left: 44px; }
  .rr-ship-main { flex-wrap: wrap; }
  .rr-ship-actions { width: 100%; }
  .rr .rr-ship-actions .btn.ctl-button { flex: 1; }
  .rr-ship-failures, .rr-releases, .rr-ship > .rr-link, .rr-meter.is-ship { margin-left: 0; }
  .rr-send-box { padding: 14px; border-radius: 18px; }
  .rr-send-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .rr .btn.rr-send-big.ctl-button { width: 100%; }
  .rr-dock { position: sticky; bottom: 0; z-index: 25; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--canvas) 90%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--rr-line); }
  .rr-dock-inner { display: flex; gap: 10px; }
  .rr .rr-dock .btn.ctl-button, .rr-dock .rr-approved { flex: 1; --ctl-height: 46px; justify-content: center; border-radius: 13px; font-size: 15px; }
  .rr.is-typing .rr-dock { display: none; }
  .rr-bubble { display: none; }
  .rr-issues-head { flex-wrap: wrap; }
  .rr-issues-head > div { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rr *, .rr *::before, .rr *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
.rr-running { display: inline-flex; align-items: center; gap: 6px; color: var(--secondary); }
.rr-running .rr-spin { width: 12px; height: 12px; border-width: 1.75px; }
.rr-file.is-open > .rr-file-row { position: sticky; top: var(--rr-top-h, 0px); z-index: 4; box-shadow: 0 1px 0 var(--rr-soft); }
@container rr (min-width: 641px) { .rr-shot { flex: var(--rr-aspect, 1) 1 0; } .rr-shot[data-shape="narrow"] { min-width: 210px; } .rr-shot[data-shape="wide"] { min-width: 320px; } }
/* Nothing in the room may widen the page: every grid track can shrink to the screen. */
.rr-main, .rr-groups, .rr-findings-list { grid-template-columns: minmax(0, 1fr); }
.rr-main > *, .rr-slot > *, .rr-groups > *, .rr-findings-list > * { min-width: 0; }
.rr-top-inner, .rr-hero-text { min-width: 0; }
@container rr (max-width: 640px) { .rr-state .rr-since { display: none; } }
.rr { overflow-x: hidden; }
.rr-release-text strong { font: 600 13.5px/1.4 var(--font); }
.rr-release-text strong code { margin-right: 2px; font: 600 12.5px/1.4 var(--rr-mono); background: none; padding: 0; }
.rr-ship-failures li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: start; }
.rr-ship-failures li > .rr-x { margin-top: 2px; }
.rr-ship-failures li > span:last-child { grid-column: 2; overflow-wrap: anywhere; }
@container rr (max-width: 640px) {
  .rr-quiet-row { flex-wrap: wrap; row-gap: 2px; }
  .rr-quiet-row > span:not(.rr-quiet-icon):not(.rr-running) { flex-basis: 100%; padding-left: 38px; }
  .rr-quiet-row > .rr-preview { margin-left: 38px; }
  .rr-diff-lines { font-size: 11px; }
}

/* WebKit re-blurs frosted glass on every scrolled frame (a long diff stutters under it); the room's
   top and dock are nearly opaque anyway, so they are solid there. */
@supports (-webkit-hyphens: none) {
  .rr-top, .rr-dock { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--canvas); }
}
