/*
 * The admin Acceptance page (Admin::AcceptanceController), reviewed one item at a time: a top bar
 * with the title and three thin labelled bars, then a two-pane frame — the open item as the hero
 * (the title, the words being agreed, and our assessment in one box beside them), and the list of
 * everything to review down the left, its areas folding open and shut. From lg each pane scrolls
 * by itself inside the shell's fixed frame (.admin-frame, shell.css); on a phone they stack, the
 * item first. The report (Admin::AcceptanceReportsController) closes the file, with its print rules.
 *
 * Token vars only — enforced by test/lint/css_token_lint_test.rb.
 */

/* The page runs edge to edge beside the rail: its own panes carry their gutters and hairlines. */
.admin-shell__content:has(> .acceptance) {
  max-width: none;
  padding: 0;
}

/* Doubled to outweigh .admin-frame's own gap (shell.css loads after this file). */
.admin-frame.acceptance {
  gap: 0;
  font-size: var(--text-base);
  line-height: 1.55;
}

/* ---------- Top bar ---------- */

.acceptance__header {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
  padding: var(--space-4);
  border-bottom: var(--border-hairline);
}

.acceptance__heading {
  flex: 1 1 calc(var(--space-20) * 2.5);
  min-width: 0;
  margin: 0;
  font-size: var(--text-xl);
  line-height: var(--text-xl--line-height);
  font-weight: 700;
  color: var(--color-ink);
}

.acceptance__progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  width: 100%;
}

.acceptance__bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.acceptance__bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}

.acceptance__bar-label {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-ink-muted);
}

.acceptance__bar-label--link {
  color: var(--color-accent-pressed);
  text-decoration: none;
}

.acceptance__bar-label--link:hover {
  text-decoration: underline;
}

.acceptance__bar-count {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  font-variant-numeric: var(--numeric-tabular);
  color: var(--color-ink);
  white-space: nowrap;
}

/* A native <progress>, its track and fill drawn through the browser's own pseudo-elements. */
.acceptance__meter {
  appearance: none;
  display: block;
  width: 100%;
  height: var(--space-1);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
  overflow: hidden;
}

.acceptance__meter::-webkit-progress-bar {
  background: var(--color-surface-sunken);
  border-radius: var(--radius-pill);
}

.acceptance__meter::-webkit-progress-value {
  background: var(--color-accent-strong);
  border-radius: var(--radius-pill);
}

.acceptance__meter::-moz-progress-bar {
  background: var(--color-accent-strong);
  border-radius: var(--radius-pill);
}

/* ---------- The frame: the open item and the list ---------- */

.acceptance__frame {
  display: flex;
  flex-direction: column;
}

/* The Turbo Frame holding the item takes no box of its own. */
.acceptance__pane {
  display: contents;
}

.acceptance__item {
  flex: 1 1 auto;
  min-width: 0;
  scroll-margin-top: var(--space-16);
  container: acceptance-item / inline-size;
}

.acceptance__item:focus-visible,
.acceptance__list:focus-visible {
  outline: 2px solid var(--color-accent-pressed);
  outline-offset: -2px;
}

.acceptance__list {
  padding: var(--space-2) 0 var(--space-6);
  border-top: var(--border-hairline);
  background: var(--color-surface-solid);
}

.acceptance__group-summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5) var(--space-2);
  list-style: none;
  cursor: pointer;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.acceptance__group-summary::-webkit-details-marker {
  display: none;
}

.acceptance__group-summary:hover {
  color: var(--color-ink);
}

.acceptance__group-summary:focus-visible {
  outline: 2px solid var(--color-accent-pressed);
  outline-offset: -2px;
}

/* An svg's own transform makes no containing block of the row, so one chevron turns. */
.acceptance__chevron {
  flex: none;
  width: var(--icon-xs);
  height: var(--icon-xs);
  color: var(--color-accent-strong);
  transition: transform var(--duration-fast) var(--ease-out);
}

.acceptance__group[open] .acceptance__chevron {
  transform: rotate(90deg);
}

.acceptance__group-title {
  flex: 1 1 auto;
  min-width: 0;
}

.acceptance__links {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 0 var(--space-2);
  list-style: none;
}

.acceptance__links--standalone {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--border-hairline);
}

.acceptance__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  border-left: 2px solid transparent;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.acceptance__link:hover {
  background: var(--color-surface-inset-solid);
  color: var(--color-ink);
}

.acceptance__link:focus-visible {
  outline: 2px solid var(--color-accent-pressed);
  outline-offset: -2px;
}

.acceptance__link[aria-current="page"] {
  border-left-color: var(--color-accent-strong);
  background: var(--color-accent-50);
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance__link-title {
  min-width: 0;
}

/* An item's state in the list (Admin::AcceptanceHelper#acceptance_mark). */
.acceptance-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--space-6);
  height: var(--space-6);
  border-radius: var(--radius-round);
}

.acceptance-mark--to-review {
  border: 2px solid var(--color-border-strong);
}

.acceptance-mark--accepted {
  background: var(--color-success-subtle);
  color: var(--color-success-ink);
}

.acceptance-mark--not-yet {
  border: 2px solid var(--color-warning);
  color: var(--color-warning-ink);
}

.acceptance-mark--reading {
  color: var(--color-ink-soft);
}

.acceptance-mark__icon {
  width: var(--icon-xs);
  height: var(--icon-xs);
}

.acceptance-mark__dot {
  width: var(--space-1);
  height: var(--space-1);
  border-radius: var(--radius-round);
  background: currentColor;
}

/* The phone's way to the items standing alone, at the top of the item; the list holds them from lg. */
.acceptance__jump {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-hairline);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-ink-muted);
}

.acceptance__jump-label {
  font-weight: 600;
}

.acceptance__jump-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--space-8);
  color: var(--color-accent-pressed);
  font-weight: 600;
  text-decoration: none;
}

.acceptance__jump-link:hover,
.acceptance__jump-link[aria-current="page"] {
  text-decoration: underline;
}

/* ---------- The hero ---------- */

.acceptance__hero {
  display: grid;
  gap: var(--space-10);
  padding: var(--space-8) var(--space-4) var(--space-10);
  border-bottom: var(--border-hairline);
}

.acceptance__hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  max-width: 48rem;
}

.acceptance__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.acceptance__title {
  margin: 0;
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
  font-weight: 600;
  color: var(--color-accent-strong);
  text-wrap: balance;
}

.acceptance__standfirst {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-ink);
}

/* ---------- Our assessment ---------- */

.acceptance__box {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: var(--space-5);
  min-width: 0;
  padding: var(--space-6);
}

.acceptance__box-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}

.acceptance__box-section--ruled {
  padding-top: var(--space-4);
  border-top: var(--border-hairline);
}

.acceptance__box-title {
  margin: 0;
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  font-weight: 600;
  color: var(--color-accent-strong);
}

.acceptance__proposed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.acceptance__proposed-label {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance__text {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-ink);
}

.acceptance__text strong {
  font-weight: 600;
}

.acceptance__byline {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-ink-muted);
}

.acceptance__byline strong {
  font-weight: 600;
}

.acceptance__check-title {
  width: fit-content;
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: var(--space-1);
}

.acceptance__verdict-line {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-accent-pressed);
}

.acceptance__verdict-line--agreed {
  color: var(--color-success-ink);
}

/* Who said what: one line per person, their latest and how many before it, then the note. */
.acceptance__people {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.acceptance__person {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.acceptance__person-name {
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance__person-what {
  color: var(--color-ink-muted);
}

.acceptance__person-note {
  flex-basis: 100%;
  color: var(--color-ink);
}

/* A person's earlier verdicts, folded under their latest. */
.acceptance__earlier {
  flex-basis: 100%;
  margin-top: var(--space-1);
}

.acceptance__earlier-summary {
  width: fit-content;
  cursor: pointer;
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  color: var(--color-accent-pressed);
}

.acceptance__earlier-summary:focus-visible {
  outline: 2px solid var(--color-accent-pressed);
  outline-offset: 2px;
}

.acceptance__earlier-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: var(--space-1) 0 0;
  padding: 0 0 0 var(--space-3);
  border-left: 2px solid var(--color-border);
  list-style: none;
}

.acceptance__earlier-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
}

.acceptance__stale {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-danger-ink);
}

/* Recording for, on one compact row: the label, then each name. */
.acceptance__for {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--text-sm);
}

/* The radio's unchecked frame is drawn for a glass card; on the page's own surface it needs a ring. */
.acceptance__for .ui-radio__input:not(:checked) ~ .ui-radio__dot-frame {
  box-shadow: inset 0 0 0 2px var(--color-ink-soft);
}

.acceptance__for-legend {
  float: left;
  margin-right: var(--space-1);
  padding: 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  color: var(--color-ink-muted);
}

.acceptance__verdict-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.acceptance__comment-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.acceptance__note-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.acceptance__note-panel[hidden] {
  display: none;
}

.acceptance__note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.acceptance__error {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: 500;
  color: var(--color-danger-ink);
}

/* ---------- Under the hero ---------- */

.acceptance__body {
  display: grid;
  gap: var(--space-10);
  padding: var(--space-8) var(--space-4) var(--space-12);
}

.acceptance__body-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
  max-width: 48rem;
}

.acceptance__body-side {
  min-width: 0;
}

.acceptance__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.acceptance__section-title {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance__section-title--warning {
  color: var(--color-warning-ink);
}

.acceptance__muted {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-ink-muted);
}

/* A list whose lines each lead with a dash, hanging. */
.acceptance__dashes {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-ink-muted);
}

.acceptance__dashes li {
  padding-left: var(--space-3);
  text-indent: calc(var(--space-3) * -1);
}

.acceptance__dashes li::before {
  content: "– ";
}

.acceptance__shots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.acceptance__shot {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: calc(var(--space-20) * 2);
  color: var(--color-ink-muted);
  text-decoration: none;
  border-radius: var(--radius-xs);
}

.acceptance__shot:hover {
  color: var(--color-ink);
}

.acceptance__shot:focus-visible {
  outline: 2px solid var(--color-accent-pressed);
  outline-offset: 2px;
}

.acceptance__shot-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(var(--space-20) * 2.5);
  object-fit: cover;
  object-position: top;
  border: var(--border-hairline);
  border-radius: var(--radius-xs);
  background: var(--color-surface-sunken);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.acceptance__shot:hover .acceptance__shot-image {
  border-color: var(--color-accent);
}

.acceptance__shot-caption {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

/* ---------- Lists to read: from you, accounts, app stores ---------- */

.acceptance__rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acceptance__rows > li + li {
  border-top: var(--border-hairline);
}

.acceptance__rows--ruled {
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
}

.acceptance__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) 0;
}

.acceptance__row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.acceptance__row-title {
  font-size: var(--text-base);
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-ink);
}

/* ---------- Decisions ---------- */

.acceptance__decisions {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.acceptance__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.acceptance__count {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance__decision-group {
  display: flex;
  flex-direction: column;
}

.acceptance__group-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: var(--border-hairline);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance__group-count {
  font-weight: 400;
  color: var(--color-ink-muted);
}

.acceptance__decision {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  scroll-margin-top: var(--space-6);
}

.acceptance__decision-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.acceptance__decision-line {
  flex: 1 1 calc(var(--space-20) * 3);
  min-width: 0;
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-ink);
}

.acceptance__decision-line:focus {
  outline: none;
}

.acceptance__decision-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.acceptance__decision-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* An option's label is a phrase, not a verb: let it wrap rather than run off a phone. */
.acceptance__option {
  height: auto;
  white-space: normal;
  text-align: left;
}

.acceptance__option-current {
  font-weight: 400;
}

.acceptance__answering {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-ink-muted);
}

.acceptance__answering span {
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance__change-summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--space-8);
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: 600;
  color: var(--color-accent-pressed);
}

.acceptance__change-summary::-webkit-details-marker {
  display: none;
}

.acceptance__change-summary:hover {
  text-decoration: underline;
}

.acceptance__change-summary:focus-visible {
  outline: 2px solid var(--color-accent-pressed);
  outline-offset: 2px;
}

.acceptance__change-chevron {
  width: var(--icon-xs);
  height: var(--icon-xs);
  transition: transform var(--duration-fast) var(--ease-out);
}

.acceptance__change[open] .acceptance__change-chevron {
  transform: rotate(180deg);
}

.acceptance__change-body {
  padding-top: var(--space-2);
}

/* ---------- Wider ---------- */

@media (min-width: 640px) {
  .acceptance__progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* From --bp-lg the list sits down the left and the item beside it. */
@media (min-width: 1024px) {
  .acceptance__header {
    padding: var(--space-4) var(--space-8);
  }

  .acceptance__progress {
    width: calc(var(--space-20) * 8);
  }

  .acceptance__jump {
    display: none;
  }

  .acceptance__frame {
    flex: 1 1 auto;
    flex-direction: row;
    min-height: 0;
  }

  .acceptance__item {
    order: 2;
  }

  .acceptance__list {
    order: 1;
    flex: none;
    width: calc(var(--space-20) * 3.8);
    border-top: 0;
    border-right: var(--border-hairline);
  }

  .acceptance__hero {
    padding: var(--space-10) var(--space-10) var(--space-12);
  }

  .acceptance__body {
    padding: var(--space-10) var(--space-10) var(--space-12);
  }
}

/* Inside the shell's fixed frame each pane is its own scroller. */
@media (min-width: 1024px) and (min-height: 640px) {
  .acceptance__item,
  .acceptance__list {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Two columns once the item pane has room for the box beside the words: a container query, since
   the rail's width, not the window's, decides how much room the pane has. */
@container acceptance-item (min-width: 880px) {
  .acceptance__hero--boxed {
    grid-template-columns: minmax(0, 1fr) calc(var(--space-20) * 4.8);
    gap: var(--space-12);
  }

  .acceptance__hero,
  .acceptance__body {
    padding-inline: var(--space-12);
  }

  .acceptance__title {
    font-size: var(--text-display);
    line-height: var(--text-display--line-height);
  }

  .acceptance__body--shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-12);
  }
}

/* ---------- The report ---------- */

.acceptance-report {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.acceptance-report__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.acceptance-report__crumb {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.acceptance-report__title {
  margin: var(--space-1) 0 0;
  font-size: var(--text-xl);
  line-height: var(--text-xl--line-height);
  font-weight: 700;
  color: var(--color-ink);
}

.acceptance-report__document {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  max-width: 48rem;
}

.acceptance-report__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-ink);
}

.acceptance-report__eyebrow {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.acceptance-report__heading-title,
.acceptance-report__section-title {
  margin: 0;
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance-report__meta,
.acceptance-report__muted {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.acceptance-report__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.acceptance-report__item {
  display: grid;
  gap: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border-hairline);
  break-inside: avoid;
  page-break-inside: avoid;
}

.acceptance-report__words {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.acceptance-report__item-title {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-ink);
}

.acceptance-report__statement {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-ink);
}

.acceptance-report__shots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-1);
}

.acceptance-report__shot {
  width: calc(var(--space-20) * 1.2);
  height: auto;
  max-height: calc(var(--space-20) * 1.5);
  object-fit: cover;
  object-position: top;
  border: var(--border-hairline);
  border-radius: var(--radius-xs);
}

.acceptance-report__verdicts {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-ink);
}

.acceptance-report__verdicts p {
  margin: 0;
}

.acceptance-report__label {
  display: block;
  font-weight: 600;
  color: var(--color-accent-pressed);
}

.acceptance-report__label--agreed {
  color: var(--color-success-ink);
}

.acceptance-report__quote {
  display: block;
}

.acceptance-report__earlier summary {
  font-weight: 600;
}

.acceptance-report__earlier ul {
  margin: var(--space-1) 0 0;
  padding-left: var(--space-3);
  list-style: none;
}

@media (min-width: 640px) {
  .acceptance-report__item {
    grid-template-columns: minmax(0, 1fr) calc(var(--space-20) * 2.8);
  }
}

/* Printed, the report is the document alone: the browser's Save as PDF is the export. */
@media print {
  .admin-rail,
  .admin-mobile-bar,
  .admin-rail-tip,
  .skip-link,
  #toasts,
  .acceptance-report__bar {
    display: none !important;
  }

  body,
  .admin-shell {
    display: block;
    background: var(--color-surface-solid);
  }

  .admin-shell__content {
    max-width: none;
    padding: 0;
  }

  .acceptance-report__document {
    max-width: none;
  }
}
