/* ldu/pages-dan-reviews.css: Daniel's Reviews (reviews/index, reviews/_group, reviews/show; Milan, 12 Nov 2026: calm at 50 requests, and clear
   how he reviews, edits and makes a new document). Layout and the page's own pieces only: buttons, cards, chips, fields, tabs, the search and the
   dropdowns are the DS components (ldu/components.css). The table matches the client's Document checks (pages-reviews.css), which loads for clients only.
   Tokens only (bin/ds-lint). Hover is a fill, never a lift. The page frame (.page.ldu-page, a size container named `page`) owns the gap between groups. */

.rvl { display: grid; gap: 24px; min-width: 0; }
.rvl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── the bar: search, then the four filters at one width, so picking one never moves the others. The search keeps a set width and the filters
   sit beside it on the same row, wrapping among themselves when the page narrows, never under a full-width search (Milan, round 5 point 16) ── */
.rvl-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 0; }
.rvl-bar__search { flex: 1 1 280px; min-width: 240px; } /* grows to fill the row beside the filters, its placeholder always whole */
.rvl-bar__more[open] { flex: 0 1 auto; min-width: 0; }
.rvl-bar__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.rvl-bar__filters .ldu-dd { flex: none; } /* each at its natural width */
.rvl-bar__filters .ldu-dd__trigger { width: 100%; }
.rvl-bar__filters .ldu-dd__panel { max-height: 320px; overflow-y: auto; }
.rvl-bar__more { display: block; min-width: 0; }
.rvl-bar__toggle { display: none; list-style: none; }
.rvl-bar__toggle::-webkit-details-marker { display: none; }

/* ── a group: title with its count, one line, the table ── */
.rvl-group { display: grid; gap: 8px; min-width: 0; }
.rvl-group + .rvl-group { margin-top: 16px; }
.rvl-group__title, .rvd-h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--display); font-size: var(--fs-h3); font-weight: 600; color: var(--ink); }
.rvl-group__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; box-sizing: border-box; border-radius: 999px;
  background: var(--ldu-wash); font-family: var(--sans); font-size: var(--fs-meta); font-weight: 600; color: var(--ink-2); }
.rvl-group__text, .rvd-lede { max-width: 64ch; margin: 0 0 8px; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); }
.rvl-group__more { justify-self: start; }

/* ── the table: the DS .ldu-table frame and column head (components.css), a row per review ── */
.ldu-table > .rvl-table { border-collapse: separate; border-spacing: 0; } /* the document cell is a flex box: collapsed borders step under it */
.rvl-table__head th { padding: 0 16px; }
.rvl-table__head th:nth-child(2) { width: 132px; }
.rvl-table__head th:nth-child(3) { width: 112px; }
.rvl-table__head th:nth-child(4) { width: 256px; } /* "Decide 5 marks · Critical" and "Add your model key" on one line */
.rvl-row { position: relative; transition: background-color var(--dur); }
.rvl-row > td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.rvl-table tbody .rvl-row:first-child > td { border-top: 0; }
.rvl-row:has(.rvl-row__link):is(:hover, :focus-within) { background: var(--ldu-wash); } /* only rows that open something */
.rvl-row__doc { min-width: 0; }
.rvl-row__doc { display: flex; align-items: center; gap: 12px; }
.rvl-row__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-2); background: var(--ldu-wash); color: var(--ink-2); }
.rvl-row--failed .rvl-row__icon { background: var(--danger-soft); color: var(--danger); }
.rvl-row__main { display: grid; gap: 2px; min-width: 0; }
.rvl-row__title { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.rvl-row__link::after { content: ""; position: absolute; inset: 0; } /* the whole row opens the review */
.rvl-row__link:focus-visible { outline: none; }
.rvl-row:has(.rvl-row__link:focus-visible) { outline: var(--ring-w) solid var(--ring); outline-offset: -2px; }
.rvl-row__meta, .rvl-row__sub { font-size: var(--fs-meta); color: var(--ink-2); }
.rvl-row__score { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rvl-row__score strong { font-family: var(--display); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.rvl-row__score small { font-size: var(--fs-meta); color: var(--ink-3); }
.rvl-row__score .rvl-row__sub { display: block; white-space: normal; }
.rvl-row__age { font-size: var(--fs-ui); color: var(--ink-2); white-space: nowrap; }
.rvl-row__age--late { color: var(--warn); font-weight: 600; }
.rvl-row__next { font-size: var(--fs-ui); font-weight: 500; color: var(--ink); }
.rvl-row__part { white-space: nowrap; }
.rvl-row__go { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rvl-row__go > .icon { flex: none; color: var(--ink-3); transition: color var(--dur); }
.rvl-row:is(:hover, :focus-within) .rvl-row__go > .icon { color: var(--ink); }
.rvl-row__actions { display: flex; gap: 8px; align-items: center; }
.rvl-row__actions :is(.btn, form) { position: relative; z-index: 1; }

/* under 640px of page (the fold controller's line too): no column head; each row stacks the document, then score, wait and next step on one line;
   the filters fold under a Filters toggle beside the search */
@container page (max-width: 639px) {
  .rvl-bar__search { flex: 1 1 200px; min-width: 0; } /* the search beside the Filters toggle takes the row */
  .rvl-bar__more { display: block; flex: none; }
  .rvl-bar__more:not([data-fitted]) > .rvl-bar__filters { display: none; } /* it arrives open; folded before it shows */
  .rvl-bar__toggle { display: inline-flex; }
  .rvl-bar__more[open] { flex: 1 1 100%; }
  .rvl-bar__more[open] > .rvl-bar__filters { margin-top: 8px; }
  .rvl-table__head { display: none; }
  .rvl-table, .rvl-table tbody { display: block; }
  .rvl-row { display: grid; grid-template-columns: 72px 72px minmax(0, 1fr); grid-template-areas: "doc doc doc" "score age next"; /* fixed: every row's columns line up */ column-gap: 16px; row-gap: 8px;
    padding: 16px; border-top: 1px solid var(--line); }
  .rvl-table tbody .rvl-row:first-child { border-top: 0; }
  .ldu-table .rvl-row > td { display: block; padding: 0; border: 0; } /* beats the DS table's cell padding and hairline, so the stacked row lines up */
  .rvl-row > .rvl-row__doc { grid-area: doc; display: flex; }
  .rvl-row__score { grid-area: score; }
  .rvl-row__score .rvl-row__sub { display: none; }
  .rvl-row:not(:has(.rvl-row__score strong)) { grid-template-areas: "doc doc doc" "age next next"; } /* not scored: no empty score gap */
  .rvl-row:not(:has(.rvl-row__score strong)) > .rvl-row__score { display: none; }
  .rvl-row__age { grid-area: age; align-self: center; }
  .rvl-row__next { grid-area: next; justify-self: end; align-self: center; text-align: right; }
  .rvl-row__actions { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .rvl-bar__filters { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .rvl-bar__filters .ldu-dd { width: auto; }
}

.rvl-row--released .rvl-row__next, .rvl-row--running .rvl-row__next { font-weight: 400; color: var(--ink-3); }

/* ── one review: what the round-2 page kept (the crumb and next step of a running or failed review, the release popup) ── */
.rvd-crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 -16px; font-size: var(--fs-ui); color: var(--ink-3); }
.rvd-crumb a { color: var(--ink-2); text-decoration: none; transition: color var(--dur); }
.rvd-crumb a:hover { color: var(--ink); text-decoration: underline; }
.rvd-h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--display); font-size: var(--fs-h3); font-weight: 600; color: var(--ink); }
.rvd-lede { max-width: 64ch; margin: 0; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); }
.rvd-error { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; border: 1px solid var(--danger); border-radius: var(--r-2); background: var(--danger-soft); font-size: var(--fs-ui); color: var(--ink); }
.rvd-error > .icon { flex: none; color: var(--danger); }

/* the step he is on (running, failed, released): a title and one line, no box */
.rvd-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.rvd-next__body { display: grid; gap: 4px; min-width: 0; }
.rvd-next__title { margin: 0; font-family: var(--display); font-size: var(--fs-h2); font-weight: 600; line-height: 1.25; color: var(--ink); }
/* a failed one: the DS empty state, its fix and Run it again side by side (round 5 point 18) */
.rvd-failed .ldu-empty__action { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rvd-failed .ldu-empty__action form { margin: 0; }
.rvd-next__text { max-width: 72ch; margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); }

/* the release popup */

/* the score step by step: the twin's, each kind of decision, the total (reviews/_release_score) */
.rvw-steps { margin: 0; padding: 4px 16px; border-radius: var(--r-2); background: var(--ldu-recess); }
.rvw-steps__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; font-size: var(--fs-ui); }
.rvw-steps__row + .rvw-steps__row { border-top: 1px solid var(--line); }
.rvw-steps dt { min-width: 0; color: var(--ink-2); }
.rvw-steps dd { flex: none; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.rvw-steps__row--total dt, .rvw-steps__row--total dd { font-weight: 600; color: var(--ink); }
/* his own move: a stepper beside the reason, both always there, so nothing below moves */
.rvw-move { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.rvw-stepper { display: flex; align-items: center; gap: 4px; }
.rvw-stepper__value { min-width: 3ch; font-size: var(--fs-body); font-weight: 600; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .rvw-move { grid-template-columns: minmax(0, 1fr); } } /* a phone: the reason under the stepper, its hint readable */
.rvw-final { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: var(--fs-ui); color: var(--ink-2); }
.rvw-final strong { font-size: var(--fs-h3); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

@container page (max-width: 639px) {
  .rvd-crumb { margin-bottom: -8px; }
  .rvd-next__title { font-size: var(--fs-h3); }
}

/* ── one review, round 4: the real file in WordCraft / PdfCraft and one side panel for every decision (Milan, 12 Nov: reviews/_workspace) ── */
.rvw { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.rvw-bar { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.rvw-bar__doc { display: flex; flex: 1 1 0; align-items: center; gap: 8px; min-width: 0; }
.rvw-bar__go { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 16px; }
.rvw-bar__title { display: flex; flex-direction: column; min-width: 0; margin: 0; line-height: 1.3; }
.rvw-bar__title strong, .rvw-bar__client { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rvw-bar__title strong { font-size: var(--fs-ui); font-weight: 600; color: var(--ink); }
.rvw-bar__client { font-size: var(--fs-meta); color: var(--ink-3); }
.rvw-bar__count { margin: 0; font-size: var(--fs-ui); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the document beside the rail */
.rvw-body { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.rvw-editor { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rvw-editor .rvw-editor__status { position: absolute; right: 16px; bottom: 16px; z-index: 5; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-2); }
.rvw-editor .rvw-editor__status:has(.doc-editor__status[hidden]) { display: none; }
/* WordCraft's own rows above and below the page are cropped off: the frame is moved up by their height (review_bar#fit measures it) */
.rvw-crop { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.rvw-crop > .doc-editor__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rvw-crop.is-cropped > .doc-editor__frame { top: calc(-1 * var(--rvw-crop-top, 0px)); bottom: auto; height: calc(100% + var(--rvw-crop-top, 0px) + var(--rvw-crop-bottom, 0px)); }

.rvw-rail { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 20px 24px; overflow: auto; border-left: 1px solid var(--line); background: var(--bg); }
.rvw-rail [hidden] { display: none; }
.rvw-rail:focus { outline: none; } /* focused by script only, so a key never reaches the selected clause */
.rvw-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
/* on a desk the navigator stays at the top of the rail while a long form scrolls it (round 4 send-back: "1 of 4" went under the bar) */
@media (min-width: 720px) { .rvw-rail > .rvw-nav { position: sticky; top: -20px; z-index: 2; margin: -20px -24px 0; padding: 20px 24px 4px; background: var(--bg); } }
@media (min-width: 720px) and (max-width: 1023px) { .rvw-rail > .rvw-nav { top: -16px; margin: -16px -16px 0; padding: 16px 16px 4px; } }
/* "1 of 5 · Clause 6" opens the list of every comment (the DS dropdown trigger over a DS .menu), laid over the rail so nothing below moves */
.rvw-jump { position: static; flex: 1; min-width: 0; }
.rvw-jump > .ldu-dd__trigger { gap: 4px; padding: 0 8px 0 12px; font-weight: 500; font-variant-numeric: tabular-nums; } /* "3 of 5 · Clause 4.1" whole in the 360px rail */
.rvw-jump__panel { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: min(360px, 60vh); overflow-y: auto; }
.rvw-jump__item { align-items: flex-start; }
/* the one he is on: the DS menu's trailing check and weight, no fill, so the DS hover wash (a 150 ms fill) is seen on every other row (Milan, round 5 point 12) */
.rvw-jump__item > .rvw-jump__on { margin-left: auto; margin-top: 2px; }
.rvw-jump__text { display: grid; min-width: 0; }
.rvw-jump__text strong { font-weight: 500; }
.rvw-jump__text span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.rvw-state { display: inline-flex; flex: none; margin-top: 2px; }
.menu__item .rvw-state .icon { color: inherit; }
.rvw-state--open, .rvw-state--dismiss { color: var(--ink-3); }
.rvw-state--agree { color: var(--ok); }
.rvw-state--change { color: var(--warn); }
.rvw-meta { display: grid; gap: 6px; justify-items: start; } /* the same two rows on every comment, so nothing below moves */
.rvw-meta__chips { display: flex; gap: 8px; margin: 0; }
.rvw-meta__by { margin: 0; font-size: var(--fs-ui); color: var(--ink-2); }
.rvw-comment { display: grid; gap: 16px; padding: 16px; border-radius: var(--r-2); background: color-mix(in srgb, var(--ink) 5%, var(--bg)); } /* the comment, set apart from the chips and the decisions; a step darker than the recess (Milan, round 5 point 9) */
.rvw-issue, .rvw-suggest__text { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }
.rvw-suggest { margin: -8px; padding: 8px; border-radius: var(--r-1); } /* room for the light-up (review_bar#light); nets to nothing at rest */
.rvw-label { margin: 0 0 4px; font-size: var(--fs-ui); font-weight: 600; color: var(--ink-2); }
.rvw-decide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rvw-decide .btn { justify-content: center; } /* Agree green with a check, Dismiss red with an X (Milan, round 5 point 10) */
.rvw-done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-ui); color: var(--ink-2); }
.rvw-done__saved { flex-basis: 100%; order: 3; padding-left: 24px; font-size: var(--fs-meta); color: var(--ink-3); } /* under "Changed to High", lined up with its words */
.rvw-done__saved[data-state="saved"] { color: var(--ok); }
/* what a Change changed lights up once, then settles (review_bar#light; Milan, round 4 changes point 3) */
.rvw-lit { animation: rvw-lit 1400ms var(--ease-out-quint); }
@keyframes rvw-lit { 0%, 35% { background-color: var(--accent-soft); color: var(--ink); } } /* a soft fill only: never a lilac edge */
@media (prefers-reduced-motion: reduce) { .rvw-lit { animation: none; } }
/* Change, Dismiss and his own comment open in the rail, under what they are about */
.rvw-form { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.rvw-form__title { margin: 0; font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.rvw-form__sev { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 0; border: 0; } /* the DS radios (.radio), two by two */
.rvw-form__sev .field--inline, .rvw-own__sev .field--inline { min-height: 32px; font-size: var(--fs-ui); color: var(--ink); }
.rvw-form__sev legend { width: 100%; margin-bottom: 8px; padding: 0; }
.rvw-form__foot { display: flex; justify-content: flex-end; gap: 8px; }
.rvw-form .textarea { background: var(--bg-2); } /* white on the rail's sand, like the radios beside them (Milan, round 5 point 13) */
.rvw-marks { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.rvw-marks__acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* the release popup's list of Daniel's own comments */
.rvw-own { display: grid; gap: 8px; }
.rvw-own[hidden] { display: none; }
.rvw-own__title { margin: 0; font-weight: 600; color: var(--ink); }
.rvw-own__hint { margin: 0; font-size: var(--fs-ui); color: var(--ink-2); }
.rvw-own__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rvw-own__item { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-2); }
.rvw-own__text { margin: 0; color: var(--ink); }
.rvw-own__sev { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* the AI draft (round 4 (b)): in Compare the rail shows only the draft's scores and changes */
.rvw-bar__modes { flex: none; }
.rvw-rail.is-compare > :not(.rvw-compare) { display: none; }
.rvw-compare, .rvw-compare > div { display: flex; flex-direction: column; gap: 16px; }
.rvw-compare[hidden], .rvw-compare [hidden] { display: none; }
.rvw-compare .btn { align-self: flex-start; }
.rvw-compare__busy, .rvw-compare__hint { margin: 0; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); }
.rvw-compare__error { margin: 0; font-size: var(--fs-ui); color: var(--ink); }
/* the draft itself (reviews/_draft; Milan, round 5 point 14): the client's check page (pages-reviews.css .dcheck-*) cut down to the rail. The same
   band colours, made the same way from the tokens; the score, its band and the four-band scale, then the rows of what it fixes and leaves open */
.rvw-draft {
  --dc-red: oklch(from var(--danger) calc(l + .04) calc(c * 1.25) h);
  --dc-orange: oklch(from var(--warn) calc(l + .08) calc(c * 1.6) calc(h - 18));
  --dc-lime: oklch(from var(--ok) calc(l + .04) calc(c * 1.35) calc(h - 40));
  --dc-green: oklch(from var(--ok) calc(l + .02) calc(c * 1.3) h);
  display: grid; gap: 24px;
}
.rvw-draft__score[data-tone="red"] { --dc-tone: var(--dc-red); }
.rvw-draft__score[data-tone="orange"] { --dc-tone: var(--dc-orange); }
.rvw-draft__score[data-tone="lime"] { --dc-tone: var(--dc-lime); }
.rvw-draft__score[data-tone="green"] { --dc-tone: var(--dc-green); }
.rvw-draft__score { display: grid; gap: 4px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.rvw-draft__score .rvw-label { margin: 0; }
.rvw-draft__num { display: flex; align-items: baseline; gap: 2px; margin: 0; font-family: var(--display); font-variant-numeric: tabular-nums; }
.rvw-draft__num strong { font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--dc-tone, var(--ink)); }
.rvw-draft__num small { font-size: var(--fs-body); color: var(--ink-3); }
.rvw-draft__band { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-ui); font-weight: 600; color: var(--ink); }
.rvw-draft__band::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dc-tone); }
.rvw-draft__scale { position: relative; display: grid; grid-template-columns: 50fr 20fr 15fr 15fr; gap: 3px; height: 8px; margin: 12px 0 8px; }
.rvw-draft__scale i { border-radius: 999px; background: var(--dc-red); }
.rvw-draft__scale i:nth-child(2) { background: var(--dc-orange); }
.rvw-draft__scale i:nth-child(3) { background: var(--dc-lime); }
.rvw-draft__scale i:nth-child(4) { background: var(--dc-green); }
.rvw-draft__scale b { position: absolute; top: -4px; bottom: -4px; left: var(--at); width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--bg); }
.rvw-draft__was { margin: 0; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); }
.rvw-draft__was strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rvw-draft__part { display: grid; gap: 4px; }
.rvw-draft__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.rvw-draft__list { margin: 0; padding: 0; list-style: none; }
.rvw-draft__row { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.rvw-draft__row:first-child { border-top: 0; }
.rvw-draft__top { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-ui); color: var(--ink-2); }
.rvw-draft__pts { margin-left: auto; font-weight: 600; color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rvw-draft__pts--minus { font-weight: 400; color: var(--ink-3); }
.rvw-draft__issue { margin: 0; font-size: var(--fs-ui); font-weight: 600; line-height: 1.5; color: var(--ink); }
.rvw-draft__change, .rvw-draft__none { margin: 0; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); }
.rvw-draft__change strong { font-weight: 500; color: var(--ink); }
.rvw-draft__none { padding-top: 4px; }
/* a severity: the DS chip with its status dot (critical red, high orange, medium a lighter orange, low grey: no lilac on the light rail) */
.rvw-sev::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--ink-3); }
.rvw-sev[data-sev="critical"]::before { background: var(--danger); }
.rvw-sev[data-sev="high"]::before { background: var(--warn); }
.rvw-sev[data-sev="medium"]::before { background: color-mix(in srgb, var(--warn) 50%, var(--bg)); }
.rvw-draft__areas { display: grid; gap: 16px; padding-top: 8px; }
.rvw-draft__area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: var(--fs-ui); color: var(--ink); }
.rvw-draft__area .ldu-progress { grid-column: 1 / -1; }
.rvw-draft__area-pts { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the app's bottom bar would sit over the panel: the bar's back arrow is the way out here */
body:has(.rvw) .menubar { display: none; }
body:has(.rvw) .shell > .main { padding-bottom: 0; } /* the room the hidden bottom bar kept would show as a grey band under the panel */
@media (max-width: 1023px) {
  .rvw-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .rvw-rail { padding: 16px; }
}
/* a phone: WordCraft in Read Mode on top, the comment and the three decisions in a panel under it (he decides here, edits on the desk) */
@media (max-width: 719px) {
  .rvw-bar { gap: 8px; padding: 8px 12px; }
  .rvw-bar__modes { display: none; } /* the phone decides; the draft is compared on the desk */
  .rvw-bar__count { display: none; } /* Release still says what is left when pressed */
  .rvw-bar .backlink { font-size: 0; gap: 0; } /* the arrow alone (its label stays for screen readers): the document's title gets the room */
  .rvw-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .rvw-rail { gap: 10px; max-height: 55vh; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-left: 0; box-shadow: var(--shadow-menu); }
  .rvw-nav .btn--icon, .rvw-decide .btn { min-width: 44px; } /* the DS gives every phone button its 44px height */
  .rvw-rail:has(.rvw-form:not([hidden])) { max-height: 80vh; } /* a form open: room for its choices above the pinned Cancel and Save */
  /* the comment list open: it sits in the panel's flow, so the panel grows to show it whole instead of cutting it at the screen's foot */
  .rvw-rail:has(.rvw-jump[open]) { max-height: 80vh; }
  .rvw-nav:has(.rvw-jump[open]) { align-items: flex-start; }
  .rvw-jump__panel { position: static; margin-top: 4px; }
  .rvw-issue, .rvw-suggest__text { font-size: var(--fs-ui); }
  .rvw-form__foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); margin-bottom: calc(-16px - env(safe-area-inset-bottom)); padding: 8px 0 calc(16px + env(safe-area-inset-bottom)); background: var(--bg); } /* Cancel and Save stay in reach in the short panel */
  .rvw-editor .rvw-editor__status { top: 12px; right: 12px; bottom: auto; left: 12px; } /* Read Mode's pager sits at the bottom; inset from both edges (round 5 send-back) */
  .rvw-marks { display: none; } /* Read Mode cannot select text: his own marks are on the desk */
}
