/* Wordmark face — self-hosted (CSP blocks CDN assets). Oswald variable, latin subset. */
/* block (not swap): the wordmark IS the brand — a brief blank beats a flash of
   the wrong face and the baseline rules reflowing; the file is preloaded. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: block;
  src: url("../assets/fonts/oswald-latin.woff2") format("woff2");
}

:root {
  --navy: #22303e;       /* contact panel */
  --paper: #f4f4ef;      /* brand panel */
  --steel: #4a6c8c;      /* wordmark blue, rules, links */
  --steel-dark: #3c5875;
  --logo-gray: #85888b;  /* "CAPITAL,LLC" — 3.2:1 on paper (large-text AA) */
  --mist: #c7ced6;       /* address text on navy */
  --label: #97a1ac;      /* CONTACT eyebrow — 5.1:1 on navy */
  --ink: #1e2732;        /* text on paper */
  --muted: #5a6370;      /* 5.5:1 on paper */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 42fr) 58fr;
  grid-template-areas: "contact brand";
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.panel {
  padding: clamp(2rem, 5vw, 4rem);
}

/* ---- Left: contact panel ---- */

.panel-contact {
  grid-area: contact;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-label {
  margin: 0;
  color: var(--label);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.55em;
  text-transform: uppercase;
}

.contact-rule {
  width: 44px;
  height: 2px;
  margin: 1.1rem 0 1.6rem;
  background: var(--steel);
}

.contact {
  font-style: normal;
}

.contact p {
  margin: 0 0 1.1rem;
}

.contact-address {
  color: var(--mist);
}

.contact-email a {
  color: var(--steel);
  text-decoration: none;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  color: var(--mist);
  text-decoration: underline;
}

/* ---- Right: brand panel ---- */

.panel-brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wordmark: ELC baseline-locked to CAPITAL,LLC; the rule runs thick under
   ELC then thin to the end of the mark (grid columns keep the widths true) */
.wordmark {
  margin: 0;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  font-family: "Oswald", "Arial Narrow", "Liberation Sans Narrow",
    "Roboto Condensed", sans-serif-condensed, sans-serif;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 1;
  user-select: none;
}

.wm-elc {
  grid-column: 1;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--steel);
}

.wm-rest {
  grid-column: 2;
  font-size: 0.36em;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--logo-gray);
  padding-left: 0.18em;
}

.wm-rule-thick {
  grid-column: 1;
  height: 6px;
  margin-top: 14px;
  background: var(--steel);
  align-self: start;
}

.wm-rule-thin {
  grid-column: 2;
  height: 2px;
  margin-top: 14px;
  background: var(--steel);
  align-self: start;
}

.cta {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding: 0.9rem 2.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-dark);
  background: transparent;
  border: 1px solid var(--steel);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.cta:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

/* ---- Signed-in panel ---- */

.signed-in {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* [hidden] is display:none only at UA specificity — restate it so the flex
   rule above doesn't leak the signed-in panel into the signed-out state. */
.signed-in[hidden] {
  display: none;
}

/* Userbar: identity chip + sign out on one line. Centered while signed in
   without the portal; right-aligned once the portal widens the column. */
.userbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.signed-in.has-portal .userbar {
  justify-content: flex-end;
}

.signed-in-user {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  background: var(--field-bg);
  padding: 0.3rem 0.9rem;
}

/* ---- Portal (Phase 4): upload / files / admin panels ---- */

/* Tokens for scan-status badges — muted so they read as a quiet financial UI,
   all ≥4.5:1 on --paper. */
:root {
  --ok: #2f6b4f;      /* clean */
  --warn: #7a5c2e;    /* pending / unscanned */
  --danger: #a3342c;  /* malicious */
  --hairline: #d7d8d0; /* dividers / table rules on paper */
  --field-bg: #fbfbf8;
}

/* When the portal is showing, the signed-in column widens and left-aligns so
   forms and file tables read naturally instead of centered. */
.signed-in.has-portal {
  max-width: 42rem;
  align-items: stretch;
  text-align: left;
}

/* min-width:0 down the grid/flex chain so the scroll container (below) actually
   scrolls the wide file tables instead of blowing out the page. The grid item
   (.panel) itself must be included — grid/flex items default to min-width:auto,
   which sizes to content and defeats the descendant's overflow scrolling. */
.panel,
.brand,
.signed-in,
.portal,
.portal-panel,
.files-region {
  min-width: 0;
}

.portal {
  margin-top: 1.75rem;
  width: 100%;
}

.portal[hidden] {
  display: none;
}

.portal-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-panel {
  width: 100%;
}

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

/* A revealed panel takes programmatic focus; don't paint an outline for that. */
.portal-panel:focus {
  outline: none;
}

.portal-heading {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.portal-subheading {
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portal-subheading-form {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.portal-text {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Tabs: one screen, one job ---- */

.tabbar {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 1.6rem;
}

.tab {
  padding: 0.85rem 0.15rem 0.7rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px; /* underline sits on the bar's rule */
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  color: var(--steel-dark);
}

.tab.is-on {
  color: var(--navy);
  border-bottom-color: var(--steel);
}

.tab:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

.tab[hidden] {
  display: none;
}

/* Count bubble on "Your files": how many files are waiting in the list. */
.tab-count {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.05rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--paper);
  background: var(--steel);
  border-radius: 99px;
  vertical-align: 1px;
}

.tab-count[hidden] {
  display: none;
}

.tabpanel[hidden] {
  display: none;
}

/* ---- Forms ---- */

.stack-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0;
}

.approve-form {
  gap: 0.4rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

.field-label {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-input {
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--steel);
  border-radius: 0;
  margin-bottom: 0.5rem;
}

.field-input:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
}

/* Primary action — solid navy so the main thing to press is unmissable. */
.portal-btn {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.75rem 2rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.portal-btn:hover,
.portal-btn:focus-visible {
  background: var(--steel-dark);
  border-color: var(--steel-dark);
}

.portal-btn:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.portal-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.portal-btn[disabled]:hover {
  background: var(--navy);
  border-color: var(--navy);
}

/* ---- Send-to recipient select ---- */

.send-recipient {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0.25rem 0 1.4rem;
}

select.field-input {
  width: 100%;
  max-width: 26rem;
  margin-bottom: 0;
  cursor: pointer;
}

select.field-input:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---- Message emailed to the recipient ---- */

.send-comment {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
}

/* Same control language as select.field-input; width:100% with the global
   border-box keeps long lines inside the column on narrow screens, and vertical
   resizing only so the user can't drag it past the panel edge. */
textarea.field-input {
  width: 100%;
  max-width: 26rem;
  margin-bottom: 0;
  min-height: 4.5rem;
  line-height: 1.5;
  resize: vertical;
}

/* Helper note under the select (empty recipient list / load error). */
.portal-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.portal-hint[hidden] {
  display: none;
}

/* ---- Dropzone ---- */

.dropzone {
  padding: 2.75rem 1.5rem;
  border: 1.5px dashed var(--steel);
  background: var(--field-bg);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--steel-dark);
  background: #f0f1ec;
}

.dropzone:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.dropzone.is-dragover {
  border-color: var(--navy);
  border-style: solid;
  background: #eceee8;
}

/* No valid recipient yet → send is off; make the dropzone read as inert. */
.dropzone.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: var(--hairline);
}

.dropzone.is-disabled:hover {
  border-color: var(--hairline);
  background: var(--field-bg);
}

.dropzone-text {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.dropzone-link {
  color: var(--steel-dark);
  text-decoration: underline;
}

.dropzone-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

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

/* ---- Upload queue ---- */

.upload-queue {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.upload-queue:empty {
  margin: 0;
}

.upload-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}

.upload-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.upload-item-name {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-all;
}

.upload-item-status {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.upload-item-status.is-error {
  color: var(--danger);
}

.upload-item-status.is-done {
  color: var(--ok);
}

.progress-track {
  margin-top: 0.5rem;
  height: 4px;
  background: var(--hairline);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--steel);
  transition: width 0.2s ease;
}

.retry-btn {
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-dark);
  background: transparent;
  border: 1px solid var(--steel);
  cursor: pointer;
}

.retry-btn:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

/* ---- File tables ---- */

.files-region {
  width: 100%;
}

.files-empty {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.files-table th {
  text-align: left;
  padding: 0.5rem 0.75rem 0.5rem 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--steel);
  white-space: nowrap;
}

.files-table td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.files-table .cell-name {
  font-weight: 600;
  word-break: break-word;
  min-width: 9rem;
}

.files-table .cell-num {
  white-space: nowrap;
  color: var(--muted);
}

/* Row an email link pointed at: the raised surface + left accent used by
   .inline-notice, so it reads as "this is the one" rather than as a status.
   box-shadow rather than a border keeps the collapsed table borders intact. */
.files-table tr.is-linked td {
  background: var(--field-bg);
}

.files-table tr.is-linked td:first-child {
  box-shadow: inset 3px 0 0 var(--steel);
  padding-left: 0.55rem;
}

/* ---- Scan status / uploader status badges ---- */

.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.badge-clean,
.badge-active { color: var(--ok); }

.badge-pending { color: var(--warn); }

.badge-malicious,
.badge-revoked { color: var(--danger); }

/* Uploaders admin: "pending" invite awaiting first sign-in reads as neutral. */
.badge-pending-invite { color: var(--muted); }

/* Direction pills: outline steel for sent, filled steel for received, so the
   two read as one family and never collide with the scan-status colors. */
.badge-sent { color: var(--steel-dark); }

.badge-received {
  color: var(--paper);
  background: var(--steel-dark);
  border-color: var(--steel-dark);
}

/* Direction cell: pill + "to/from {name}". A min-width keeps auto table layout
   from starving the column (which would overlap Size); the name wraps within it. */
.cell-direction {
  min-width: 11.5rem;
}

.cell-direction .direction-who {
  margin-left: 0.5rem;
  color: var(--muted);
}

/* ---- Row action buttons (Download / Delete / Revoke) ---- */

/* A file row carries two actions. Wrapping lets them stack on a narrow screen
   rather than widening the table into a horizontal scroll. */
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.row-btn {
  padding: 0.3rem 0.85rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--steel);
  color: var(--steel-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.row-btn:hover,
.row-btn:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.row-btn:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

/* The routine per-row act (Download) is filled steel so it reads first. */
.row-btn-primary {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
}

.row-btn-primary:hover,
.row-btn-primary:focus-visible {
  background: var(--steel-dark);
  border-color: var(--steel-dark);
  color: #fff;
}

.row-btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.row-btn-danger:hover,
.row-btn-danger:focus-visible {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--paper);
}

/* Delete sits next to Download and must stay quieter than it: fetching a file is
   the routine act. Muted at rest, --danger only under pointer or focus, so the
   consequence registers on the way to the click rather than after it. Reuses the
   badge/revoke danger tone — no second red in the palette. */
.row-btn-quiet {
  border-color: var(--hairline);
  color: var(--muted);
}

.row-btn-quiet:hover,
.row-btn-quiet:focus-visible {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--paper);
}

.row-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

/* ---- Notices ---- */

.inline-notice {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--steel);
  background: var(--field-bg);
  color: var(--ink);
}

.inline-notice[hidden] {
  display: none;
}

.inline-notice.is-error {
  border-left-color: var(--danger);
  color: var(--danger);
}

.inline-notice.is-success {
  border-left-color: var(--ok);
}

/* Download-warning confirm block */
.confirm-msg {
  margin: 0;
}

.confirm-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---- Invite-code reveal (shown once) ---- */

.invite-result {
  margin: 1rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--steel);
  background: var(--field-bg);
}

.invite-result[hidden] {
  display: none;
}

.invite-code {
  margin: 0.35rem 0;
  font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
  word-break: break-all;
}

.invite-instruction {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.privacy-line {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.signout {
  padding: 0.35rem 0.25rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.signout:hover,
.signout:focus-visible {
  color: var(--steel-dark);
  border-bottom-color: var(--steel);
}

.signout:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.notice {
  margin: 1.25rem auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.colophon {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.colophon p {
  margin: 0;
}

/* ---- Small screens: brand above contact ---- */

@media (max-width: 760px) {
  body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "contact";
  }

  .panel-brand {
    min-height: 72dvh;
  }

  .cta {
    width: 100%;
    max-width: 20rem;
    padding: 0.9rem 0.5rem;
    letter-spacing: 0.1em;
  }

  /* On phones let the portal fill the column. Both flex ancestors center by
     default (shrink-to-content), which lets a wide table set the width and
     overflow the page; stretch them so .table-scroll can scroll instead.
     The wordmark stays centered because .brand keeps align-items:center. */
  .panel-brand > .brand:has(.signed-in.has-portal) {
    align-self: stretch;
  }

  .signed-in.has-portal {
    max-width: 100%;
    align-self: stretch;
  }

  .portal-btn {
    align-self: stretch;
    text-align: center;
  }

  /* Phones: tables become stacked cards. A horizontally scrolled table hides
     Size/Scan and — worst of all — the Download button off the right edge with
     no cue that it exists. Cards keep every action on screen. */
  .files-table {
    font-size: 0.85rem;
  }

  .files-table thead {
    display: none;
  }

  .files-table,
  .files-table tbody {
    display: block;
    width: 100%;
  }

  .files-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.9rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--hairline);
  }

  .files-table td {
    display: block;
    border: 0;
    padding: 0;
  }

  /* Name, then direction, each on their own line; size/date/scan share a line;
     the action buttons close the card at full width. */
  .files-table .cell-name {
    flex: 1 1 100%;
    min-width: 0;
  }

  .files-table .cell-direction {
    flex: 1 1 100%;
    min-width: 0;
  }

  .files-table td:last-child {
    flex: 1 1 100%;
    margin-top: 0.3rem;
  }

  /* The email-link highlight moves from the first cell to the whole card. */
  .files-table tr.is-linked {
    background: var(--field-bg);
    box-shadow: inset 3px 0 0 var(--steel);
    padding-left: 0.55rem;
  }

  .files-table tr.is-linked td:first-child {
    box-shadow: none;
    padding-left: 0;
  }

  .tabbar {
    gap: 1.1rem;
  }

  .tab {
    font-size: 0.8rem;
  }

  .userbar {
    flex-wrap: wrap;
  }

  .colophon {
    position: static;
    margin-top: 3rem;
  }

  .panel-contact {
    justify-content: flex-start;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .signout,
  .portal-btn,
  .row-btn,
  .retry-btn,
  .dropzone,
  .progress-fill {
    transition: none;
  }
}

/* ---- Print: browsers drop panel backgrounds, so restate the contact info
   in dark-on-white and hide the interactive bits ---- */

@media print {
  body {
    display: block;
    background: #fff;
    color: #000;
  }

  .panel-contact {
    background: none;
  }

  .contact-label,
  .contact-address,
  .contact-email a {
    color: #000;
  }

  .cta,
  .notice,
  .signed-in {
    display: none;
  }

  .colophon {
    position: static;
    color: #000;
  }
}
