/* Wordmark face — self-hosted (CSP blocks CDN assets). Oswald variable, latin subset. */
/* block (not swap): the text wordmark under the mark IS the brand — a brief blank
   beats a flash of the wrong face reflowing under the logo; 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");
}

/* Dark / gold system. The compass-rose mark is drawn for black, so the page is
   near-black with a slightly lifted panel; gold carries brand, rules, links and
   the one primary action; silver is the secondary control tone. Contrast on
   --bg / --panel / --field-bg (all pairs computed, WCAG AA):
     --text       16.8 / 15.9 / 15.3   body copy
     --muted       8.2 /  7.8 /  7.5   secondary copy
     --gold        8.2 /  7.7 /  7.5   links, labels, badges
     --gold-light 11.7 / 11.0 / 10.6   hover text, invite code
     --silver     10.3 /  9.7 /  9.4   outlined controls, address
     --ok          8.9 /  8.4 /  8.2
     --warn        8.7 /  8.3 /  8.0
     --danger      6.1 /  5.7 /  5.5
     --bg on --gold 8.2, on --gold-light 11.7, on --silver 10.3, on --danger 6.1
     (filled buttons, pills, hover fills)
     --field-border 3.9 /  3.7 /  3.6   control boundaries (non-text, 3:1 min)
   --gold-dark, --hairline and --field-border are NEVER used for text — rules and
   borders only. --hairline (1.3:1) is for dividers and table rules; form-control
   boundaries at rest use --field-border so they clear WCAG 1.4.11. */
:root {
  color-scheme: dark;     /* dark-only page: UA scrollbars / form chrome match --bg */
  --bg: #0b0b0d;          /* brand panel / page */
  --panel: #131316;       /* contact panel, raised blocks */
  --gold: #c9a24a;        /* brand, rules, links, primary fill */
  --gold-light: #e3c56d;  /* hover / emphasis on dark */
  --gold-dark: #9a7a2f;   /* deep rules and borders (non-text) */
  --silver: #b8bcc4;      /* secondary controls, address */
  --text: #f1ede3;        /* body text */
  --muted: #a3a8b1;       /* secondary text */
  --hairline: #2a2b31;    /* dividers / table rules (not control borders) */
  --field-border: #6b6f78; /* input + dropzone boundary at rest (3:1 on all surfaces) */
  --field-bg: #16171b;    /* inputs, dropzone, notice surfaces */
  --ok: #6cc08b;          /* clean */
  --warn: #d9a441;        /* pending / unscanned */
  --danger: #e06c5f;      /* malicious */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "brand";
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

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

/* ---- Brand panel (the whole page — no contact panel by decision, 2026-09-21) ---- */

.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: the compass-rose mark, then FLYING FORT set in Oswald beneath it.
   The h1's accessible name comes from the image alt (see index.html). */
.wordmark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

.logo {
  display: block;
  width: clamp(180px, 28vw, 300px);
  height: auto;
}

.wordmark-text {
  font-family: "Oswald", "Arial Narrow", "Liberation Sans Narrow",
    "Roboto Condensed", sans-serif-condensed, sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  /* letter-spacing trails the last glyph; pull it back so the word sits
     optically centered under the mark */
  margin-right: -0.34em;
}

/* Primary CTA: gold fill, near-black label — the one thing to press. */
.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(--bg);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  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 ---- */

/* 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(--text);
  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(--gold);
  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(--text);
}

.tab.is-on {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.tab:focus-visible {
  outline: 2px solid var(--gold);
  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(--bg);
  background: var(--gold);
  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(--text);
  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(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 0;
  margin-bottom: 0.5rem;
  color-scheme: dark; /* native select/textarea chrome follows the theme */
}

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

/* Primary action — gold fill 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(--bg);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

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

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

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

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

/* ---- 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(--field-border);
  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(--muted);
  background: #1b1c21;
}

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

/* Dragover: the dashed rule turns gold and solid, surface warms toward gold. */
.dropzone.is-dragover {
  border-color: var(--gold);
  border-style: solid;
  background: #1c1911;
}

/* 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(--text);
  font-size: 0.95rem;
}

.dropzone-link {
  color: var(--gold);
  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(--text);
  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(--gold);
  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(--silver);
  background: transparent;
  border: 1px solid var(--silver);
  cursor: pointer;
}

.retry-btn:hover,
.retry-btn:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold);
}

.retry-btn:focus-visible {
  outline: 2px solid var(--gold);
  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(--gold-dark);
  white-space: nowrap;
}

.files-table td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  color: var(--text);
  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(--gold);
  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 gold for sent, filled gold for received, so the
   two read as one family and never collide with the scan-status colors. */
.badge-sent { color: var(--gold); }

.badge-received {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

/* 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;
}

/* Secondary controls: outlined silver; hover fills silver with dark text. */
.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(--silver);
  color: var(--silver);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

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

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

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

.row-btn-primary:hover,
.row-btn-primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
}

.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(--bg);
}

/* 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(--bg);
}

.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(--gold);
  background: var(--field-bg);
  color: var(--text);
}

.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(--gold);
  background: var(--panel);
}

.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(--gold-light);
  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(--gold-light);
  border-bottom-color: var(--gold);
}

.signout:focus-visible {
  outline: 2px solid var(--gold);
  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 ---- */

@media (max-width: 760px) {
  .panel-brand {
    min-height: 100dvh;
  }

  .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(--gold);
    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;
  }
}

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

/* ---- Print: browsers drop panel backgrounds, so print dark-on-white and hide
   the interactive bits ---- */

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

  .wordmark-text {
    color: #000;
  }

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

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