/*
 * COVR portal styles. Mobile first: one column, then wider at 48rem and 64rem.
 *
 * Colors are the console's tokens (apps/covr-console/app/styles/app.css), chosen for
 * WCAG 2.2 AA in both themes: text at least 4.5:1 on its surface, control borders and
 * the focus ring at least 3:1. html[data-theme] is always "light" or "dark".
 * Touch targets are at least 44px (above the 24px of 2.5.8). Nothing has a fixed height,
 * so text spacing (1.4.12) and 400% zoom / 320px width (1.4.10) reflow.
 */

:root {
  color-scheme: light;

  --surface-app: #f5f6f8;
  --surface-raised: #fff;
  --surface-sunken: #eef0f3;
  --surface-hover: #e9ecf1;
  --text-strong: #11151b;
  --text: #1f252d;
  --text-muted: #4d5562;
  --text-on-accent: #fff;
  --border: #dde1e7;
  --border-control: #767e8b;
  --border-strong: #5c6470;
  --accent: #2550c4;
  --accent-hover: #1d42a6;
  --accent-text: #2048b5;
  --focus-ring: #2550c4;
  --focus-gap: #fff;
  --tone-info-bg: #e7eefc;
  --tone-info-text: #1c45a8;
  --tone-info-border: #6f8fdb;
  --tone-success-bg: #e5f4ea;
  --tone-success-text: #155f2c;
  --tone-success-border: #5fa576;
  --tone-warning-bg: #fdf0d5;
  --tone-warning-text: #744600;
  --tone-warning-border: #c58a1a;
  --tone-danger-bg: #fde8e6;
  --tone-danger-text: #9e2218;
  --tone-danger-border: #d06a60;
  --tone-neutral-bg: #eceef2;
  --tone-neutral-text: #3c434e;
  --tone-neutral-border: #8a919c;
  --font-sans:
    system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial,
    sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
  --target: 2.75rem;
  --motion: 150ms;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --surface-app: #0d1015;
  --surface-raised: #161a21;
  --surface-sunken: #11151b;
  --surface-hover: #212732;
  --text-strong: #f2f4f7;
  --text: #e2e6ec;
  --text-muted: #a5adba;
  --text-on-accent: #0d1015;
  --border: #2a303b;
  --border-control: #77808e;
  --border-strong: #8d96a3;
  --accent: #85a9ff;
  --accent-hover: #a6c0ff;
  --accent-text: #93b3ff;
  --focus-ring: #93b3ff;
  --focus-gap: #0d1015;
  --tone-info-bg: #16264a;
  --tone-info-text: #a8c2ff;
  --tone-info-border: #4d6fbf;
  --tone-success-bg: #11301d;
  --tone-success-text: #86dca2;
  --tone-success-border: #3f8a58;
  --tone-warning-bg: #36270a;
  --tone-warning-text: #f3c46a;
  --tone-warning-border: #a77a22;
  --tone-danger-bg: #3a1714;
  --tone-danger-text: #ffa39a;
  --tone-danger-border: #b35a51;
  --tone-neutral-bg: #232832;
  --tone-neutral-text: #c9cfd8;
  --tone-neutral-border: #6c7584;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Base ------------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
  scroll-padding-block: 1.5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface-app);
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  color: var(--text-strong);
  line-height: 1.25;
  font-weight: 650;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.0625rem;
}

p {
  margin: 0 0 0.75rem;
  text-wrap: pretty;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

/* One focus style everywhere: a ring with a gap, visible on every surface (2.4.7, 2.4.13). */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-gap);
}

[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

.error-summary:focus,
.banner:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.9375rem;
}

/* Frame ----------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--surface-raised);
  color: var(--accent-text);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.site-nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--target);
  color: var(--text-strong);
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  width: 2.25rem;
  height: auto;
}

.brand__name {
  font-weight: 750;
  letter-spacing: 0.04em;
  font-size: 1.125rem;
}

.brand__sub {
  color: var(--text-muted);
  border-left: 1px solid var(--border-control);
  padding-left: 0.5rem;
}

.site-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-button {
  min-height: var(--target);
  min-width: var(--target);
  padding: 0.25rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.tool-button:hover {
  background: var(--surface-hover);
}

.tool-button[aria-pressed="true"] {
  background: var(--tone-info-bg);
  color: var(--tone-info-text);
  border-color: var(--tone-info-border);
}

.site-nav {
  border-top: 1px solid var(--border);
  padding-block: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 0.25rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 550;
}

.site-nav a:hover {
  color: var(--accent-text);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}

.site-nav__who {
  margin: 0 0 0 auto;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.site-main:focus {
  outline: none;
}

.site-notice:empty {
  display: none;
}

.site-notice {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 5;
  max-width: 32rem;
  margin: 0 auto;
}

.site-notice p {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--tone-success-bg);
  color: var(--tone-success-text);
  border: 1px solid var(--tone-success-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

/* Pages ----------------------------------------------------------------------- */
.page {
  max-width: 48rem;
  margin: 0 auto;
}

.page--narrow {
  max-width: 40rem;
}

.page--wide {
  max-width: 72rem;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.page-head h1 {
  margin: 0;
  margin-right: auto;
}

.lede {
  font-size: 1.125rem;
}

.back-link {
  margin-bottom: 0.5rem;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

.back-link a::before {
  content: "←";
  margin-right: 0.4rem;
}

.section {
  margin-top: 1.5rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.stack > .card {
  margin-bottom: 0;
}

.card-list,
.plain-list,
.choice-list,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-list {
  display: grid;
  gap: 0.75rem;
}

@media (width >= 48rem) {
  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card--link {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card--link:hover {
  border-color: var(--border-control);
}

/* The whole card is the link's target; the link text stays the claim number. */
.card--link .card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card--link .card__title a:focus-visible {
  outline: none;
  box-shadow: none;
}

.card--link:has(.card__title a:focus-visible) {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.card__title {
  margin: 0;
}

.choice-list {
  display: grid;
  gap: 0.75rem;
}

.empty {
  padding: 1rem;
  border: 1px dashed var(--border-control);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.facts {
  display: grid;
  gap: 0.25rem 1rem;
  margin: 0;
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

.facts dt {
  color: var(--text-muted);
}

.facts dt::after {
  content: ":";
}

.facts dd {
  margin: 0;
  font-weight: 550;
}

.facts--wide {
  margin-bottom: 1.25rem;
}

@media (width >= 48rem) {
  .facts--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facts--wide div {
    flex-direction: column;
  }

  .facts--wide dt::after {
    content: none;
  }
}

.todo {
  color: var(--tone-warning-text);
}

.numbered {
  padding-left: 1.5rem;
}

.numbered li + li {
  margin-top: 0.5rem;
}

/* Banners and badges ------------------------------------------------------------ */
.banner {
  border: 1px solid;
  border-left-width: 6px;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.banner p:last-child {
  margin-bottom: 0;
}

.banner .button {
  margin-top: 0.5rem;
}

.banner--info {
  background: var(--tone-info-bg);
  color: var(--tone-info-text);
  border-color: var(--tone-info-border);
}

.banner--info a {
  color: inherit;
}

.banner--warning {
  background: var(--tone-warning-bg);
  color: var(--tone-warning-text);
  border-color: var(--tone-warning-border);
}

.banner--danger {
  background: var(--tone-danger-bg);
  color: var(--tone-danger-text);
  border-color: var(--tone-danger-border);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.1rem 0.6rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge--open,
.badge--submitted {
  background: var(--tone-info-bg);
  color: var(--tone-info-text);
  border-color: var(--tone-info-border);
}

.badge--closed,
.badge--waived {
  background: var(--tone-neutral-bg);
  color: var(--tone-neutral-text);
  border-color: var(--tone-neutral-border);
}

.badge--linked,
.badge--received {
  background: var(--tone-success-bg);
  color: var(--tone-success-text);
  border-color: var(--tone-success-border);
}

/* Timeline ---------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__step {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(0.75rem - 1px);
  top: 1.75rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--border-control);
}

.timeline__mark {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  border: 2px solid var(--border-control);
  background: var(--surface-raised);
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.timeline__step--done .timeline__mark {
  background: var(--tone-success-text);
  border-color: var(--tone-success-text);
  color: var(--surface-raised);
}

.timeline__step--done .timeline__mark::after {
  content: "✓";
}

.timeline__step--current .timeline__mark {
  border-color: var(--accent);
  border-width: 3px;
}

.timeline__step--current .timeline__mark::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.timeline__step--skipped .timeline__mark {
  border-style: dashed;
}

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

.timeline__title {
  font-weight: 600;
  color: var(--text-strong);
}

.timeline__step--skipped .timeline__title,
.timeline__step--upcoming .timeline__title {
  font-weight: 500;
  color: var(--text-muted);
}

.timeline__state {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.timeline__step--current .timeline__state {
  color: var(--accent-text);
  font-weight: 600;
}

.timeline__next {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
}

/* Lists of rows (payments, files, letters) -------------------------------------- */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.row > span:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row__title {
  font-weight: 600;
  color: var(--text-strong);
}

.row__note {
  font-style: italic;
}

.row__amount,
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.total {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.adjuster__name {
  font-size: 1.125rem;
  font-weight: 650;
  color: var(--text-strong);
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.contact-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  align-items: center;
  min-height: var(--target);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.contact-link:hover {
  background: var(--surface-hover);
}

.contact-link__label {
  font-weight: 650;
  min-width: 4rem;
}

.request {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.request__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.request__title {
  margin: 0;
}

.request [id$="-panel"] {
  margin-top: 0.75rem;
}

.disclosure {
  padding: 0.75rem 1rem;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.disclosure ul {
  margin: 0;
  padding-left: 1.25rem;
}

.disclosure li + li {
  margin-top: 0.4rem;
}

/* Forms ------------------------------------------------------------------------- */
.form,
.upload {
  display: grid;
  gap: 0.25rem;
}

.field {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field__label {
  display: block;
  padding: 0;
  margin-bottom: 0.25rem;
  font-weight: 650;
  color: var(--text-strong);
}

legend.field__label {
  font-size: 1.0625rem;
}

.field__optional {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.field__hint {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field__error {
  color: var(--tone-danger-text);
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.field--error {
  padding-left: 0.875rem;
  border-left: 4px solid var(--tone-danger-border);
}

input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: var(--target);
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--text-strong);
  background: var(--surface-raised);
  border: 2px solid var(--border-control);
  border-radius: var(--radius-sm);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.input--short {
  max-width: 16rem;
}

[aria-invalid="true"] {
  border-color: var(--tone-danger-text);
}

input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.5rem;
  font: inherit;
  border: 2px dashed var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  min-height: 2.5rem;
  margin-right: 0.75rem;
  padding: 0.25rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--surface-raised);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.file-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.radio-group__options {
  display: grid;
  gap: 0.5rem;
}

@media (width >= 40rem) {
  .radio-group--columns .radio-group__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--target);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  cursor: pointer;
}

.choice:hover {
  background: var(--surface-hover);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--accent);
}

.choice--check {
  align-items: flex-start;
}

.choice--check input {
  margin-top: 0.15rem;
}

.conditional {
  margin: -0.5rem 0 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--border-control);
}

.error-summary {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 3px solid var(--tone-danger-border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.error-summary h2 {
  color: var(--tone-danger-text);
}

.error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.error-summary a {
  color: var(--tone-danger-text);
  font-weight: 650;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

/* Buttons ----------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--motion);
}

.button[disabled],
.button[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.75;
}

.button--primary {
  background: var(--accent);
  color: var(--text-on-accent);
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--secondary {
  background: var(--surface-raised);
  color: var(--accent-text);
  border-color: var(--accent);
}

.button--secondary:hover {
  background: var(--surface-hover);
}

.button--danger {
  background: var(--tone-danger-text);
  color: var(--surface-raised);
}

.button--link {
  padding-inline: 0.25rem;
  background: none;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 550;
}

.button--block {
  width: 100%;
}

/* The report form ------------------------------------------------------------------ */
.step-count {
  margin: 0.5rem 0 0.25rem;
  font-weight: 650;
  color: var(--accent-text);
}

.steps {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  flex: 1;
  padding-top: 0.5rem;
  border-top: 4px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  counter-increment: step;
}

.steps__item--done {
  border-top-color: var(--tone-success-border);
}

.steps__item--current {
  border-top-color: var(--accent);
  color: var(--text-strong);
  font-weight: 650;
}

/* On a phone the step names would be squeezed: keep the bar, hide the names (the
   "Step 2 of 5" line and the step's heading carry the same words). */
@media (width < 40rem) {
  .steps__item {
    font-size: 0;
  }
}

.review {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-bottom: 1rem;
}

.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.review__head h3 {
  margin: 0;
}

.review__list {
  margin: 0;
}

.review__row {
  display: grid;
  gap: 0 1rem;
  padding: 0.4rem 0;
}

@media (width >= 40rem) {
  .review__row {
    grid-template-columns: 14rem 1fr;
  }
}

.review__row dt {
  color: var(--text-muted);
}

.review__row dd {
  margin: 0;
  white-space: pre-line;
}

.restart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.restart .banner {
  width: 100%;
}

.confirmation {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--tone-success-bg);
  color: var(--tone-success-text);
  border: 1px solid var(--tone-success-border);
  border-radius: var(--radius);
}

.confirmation h1 {
  color: inherit;
}

.reference {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.upload__status:empty {
  display: none;
}

.result {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.result--ok {
  color: var(--tone-success-text);
}

.result--failed {
  color: var(--tone-danger-text);
}

.result__mark {
  font-weight: 800;
}

/* The agent's list ---------------------------------------------------------------- */
.search__fields {
  display: grid;
  gap: 0 1rem;
}

@media (width >= 48rem) {
  .search__fields {
    grid-template-columns: 2fr 1fr;
  }
}

.field--inline input {
  max-width: 28rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 52rem;
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table thead th {
  background: var(--surface-sunken);
  color: var(--text-strong);
  font-size: 0.9375rem;
}

.table tbody th {
  font-weight: 600;
}

.table tbody tr:hover {
  background: var(--surface-hover);
}

.table .num {
  text-align: right;
}

.loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid var(--border-control);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Windows high contrast: keep shapes that were only colour. */
@media (forced-colors: active) {
  .timeline__step--done .timeline__mark,
  .timeline__step--current .timeline__mark::after {
    forced-color-adjust: none;
    background: CanvasText;
    color: Canvas;
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: Highlight;
  }
}
