:root {
  color-scheme: light;
  --ink: #0e3548;
  --accent: #d94025;
  --surface: #fff;
  --page: #f3f5f5;
  --line: #dbe3e6;
  --muted: #546b76;
  --soft: #f2f6f7;
  --focus: #b9341d;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.link-recovery { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.link-recovery input { min-width: 0; flex: 1 1 220px; padding: 10px; }
.link-recovery .field-help { flex-basis: 100%; margin: 0; }
a { color: inherit; }
button, .primary, .secondary {
  font: inherit;
  cursor: pointer;
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.card {
  max-width: 640px;
  margin: 48px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 36px;
}
.site-header {
  width: 100%;
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
}
.site-header-inner, .site-footer-inner {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}
.site-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-header img { display: block; width: 250px; height: auto; }
.product-lockup { display: flex; align-items: center; gap: 11px; color: white; font-size: 0.77rem; font-weight: 800; letter-spacing: 0.2em; }
.beta-badge { border: 1px solid rgba(255,255,255,.58); border-radius: 999px; padding: 5px 8px 4px 9px; color: white; font-size: 0.62rem; letter-spacing: 0.14em; }
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 0 16px;
}
h1 { font-weight: 550; letter-spacing: -0.03em; font-size: 32px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 28px 0 12px; }
.muted { color: var(--muted); line-height: 1.6; }
.summary { margin: 18px 0; color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
input[type="text"], input[type="password"], .file-search input[type="search"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
.drop {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  background: var(--soft);
  color: var(--muted);
}
.primary {
  display: inline-block;
  background: var(--ink);
  color: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
}
.secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  text-decoration: none;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.file-list, .history { list-style: none; padding: 0; margin: 0; }
.file, .pkg {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 14px;
}
.file span, .pkg span { color: var(--muted); }
.more {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.more h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.status { font-size: 13px; color: var(--muted); }
.error { color: var(--accent); font-size: 14px; }
progress { width: 100%; margin-top: 12px; }
@media (max-width: 640px) {
  .card { margin: 16px; padding: 28px 20px; }
  h1 { font-size: 26px; }
  .file, .pkg { flex-direction: column; align-items: flex-start; }
}

/* File Drop product shell */
:root {
  --accent: #f0361a;
  --accent-dark: #bf2b16;
  --sky: #8cc9df;
  --soft: #f2f7f9;
  --line: #dce5e9;
  --shadow: 0 24px 70px rgba(14, 53, 72, 0.09);
}
body {
  background:
    linear-gradient(135deg, rgba(140, 201, 223, 0.12), transparent 38%),
    var(--page);
  font-size: 16px;
}
button, input, textarea { min-height: 44px; }
button:disabled { cursor: wait; opacity: 0.62; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}
.wrap {
  width: min(100% - 40px, 820px);
  max-width: none;
  padding: 36px 0 64px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.login-panel { max-width: 600px; }
.login-panel form { max-width: 440px; }
.login-note { margin: -8px 0 20px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.emergency-login { max-width: 440px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.emergency-login summary { color: var(--muted); cursor: pointer; font-size: 0.84rem; font-weight: 650; }
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading.compact { margin: 44px 0 16px; }
.section-heading h1, .section-heading h2 { margin-bottom: 8px; }
.section-heading .lead { margin-bottom: 0; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 650;
  line-height: 1.08;
}
h2 { font-size: 1.35rem; }
.lead {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
label { margin-top: 20px; font-size: 0.84rem; }
input[type="text"], input[type="password"], .file-search input[type="search"], textarea {
  border-color: #bdcbd1;
  border-radius: 7px;
  padding: 12px 14px;
}
textarea { resize: vertical; }
.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
}
.field-heading label { margin: 0; }
.field-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  border: 2px dashed #aac0ca;
  padding: 32px 20px;
  transition: border-color 150ms ease, background 150ms ease;
}
.drop.is-dragging {
  border-color: var(--accent);
  background: #fff4f1;
}
.drop-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  place-items: center;
  border-radius: 50%;
  background: #e2f0f5;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
}
.drop > span { font-size: 0.88rem; }
.browse-button { margin-top: 8px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.primary {
  min-height: 46px;
  border-radius: 7px;
  padding: 12px 20px;
}
.primary:hover { background: #174e64; border-color: #174e64; }
.secondary {
  min-height: 42px;
  border-color: #b9c9d0;
  border-radius: 7px;
}
.secondary:hover { border-color: var(--ink); background: var(--soft); }
.quiet-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.selected-files { margin-top: 12px; }
.bounded-file-list { max-height: 360px; max-height: min(360px, 50dvh); overflow-y: auto; scrollbar-gutter: stable; padding-right: 8px; }
.bounded-file-list:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.selection-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.selection-tools p { margin: 0; }
.selection-tools button { flex: none; min-height: 44px; }
.bounded-file-list .remove-file { min-height: 44px; }
@media (max-width: 640px) { .selection-tools { align-items: flex-start; } }
.file {
  min-width: 0;
  padding: 16px 0;
}
.file-details {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.file-details strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.file-details span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.remove-file { min-height: 36px; flex: none; }
.upload-state {
  margin: 22px 0 4px;
  border-radius: 8px;
  background: var(--soft);
  padding: 16px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
progress {
  display: block;
  width: 100%;
  height: 10px;
  margin: 0 0 8px;
  accent-color: var(--accent);
}
.completion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin-top: 24px;
  border-top: 4px solid var(--accent);
}
.completion > label, .completion > .copy-row, .completion > .copy-status {
  grid-column: 1 / -1;
}
.completion h2 { margin: 0 0 4px; }
.completion .eyebrow { margin-top: 2px; }
.success-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 800;
}
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.copy-status { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; }
.recipient-links { display: grid; grid-column: 1 / -1; gap: 16px; margin-top: 8px; }
.recipient-link { border-top: 1px solid var(--line); padding-top: 16px; }
.recipient-link-heading { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.recipient-link-heading span { color: var(--muted); font-size: 0.84rem; }
.history { display: grid; gap: 12px; }
.pkg {
  align-items: center;
  padding: 20px 22px;
  box-shadow: none;
}
.package-details { flex: 1; min-width: 0; }
.package-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
}
.package-meta, .package-activity {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.package-activity { color: var(--ink); }
.status {
  display: inline-block;
  border-radius: 999px;
  background: #e2f0f5;
  padding: 4px 9px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
}
.status-downloaded { background: #e7f3eb; color: #235f38; }
.status-revoked, .status-expired { background: #f2eeee; color: #75413b; }
.empty-state {
  margin: 0;
  border: 1px dashed var(--line);
  padding: 22px;
  color: var(--muted);
  text-align: center;
}
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #d9e6eb;
}
.site-footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.site-footer .footer-corporate-link { display: inline-flex; align-items: center; width: 200px; max-width: 100%; min-height: 44px; flex: none; }
.site-footer .footer-corporate-link img { display: block; width: 100%; height: auto; }

/* Recipient */
.recipient-card {
  width: min(calc(100% - 32px), 720px);
  max-width: none;
  margin: 40px auto;
  padding: 38px 42px;
  box-shadow: var(--shadow);
}
.recipient-intro h1 { margin-bottom: 10px; }
.shared-by { margin: 0; color: var(--muted); line-height: 1.5; }
.recipient-note {
  margin: 22px 0 0;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  padding: 14px 16px;
}
.recipient-note span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.recipient-note p { margin: 6px 0 0; line-height: 1.55; }
.transfer-summary {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.6fr;
  margin: 26px 0 0;
  border-block: 1px solid var(--line);
}
.transfer-summary div { padding: 15px 16px 15px 0; }
.transfer-summary div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.transfer-summary dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.transfer-summary dd { margin: 5px 0 0; font-size: 0.9rem; font-weight: 700; line-height: 1.35; }
.primary-action { margin: 24px 0 0; }
.download-primary { min-width: 190px; text-align: center; }
.download-status { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.download-status.is-active { background: #e7f3eb; color: #235f38; border-left: 3px solid #235f38; border-radius: 5px; padding: 12px 14px; }
.download-help { color: var(--muted); font-size: 0.84rem; line-height: 1.55; margin: 10px 0 0; }
.package-expanded { margin-top: 14px; overflow-wrap: anywhere; }
.history-views, .history-pagination, .package-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.history-views button[aria-pressed="true"] { background: var(--navy, #0E3548); color: #fff; border-color: #0E3548; }
.history-pagination { justify-content: center; margin: 22px 0; }
.package-actions { flex-direction: column; align-items: stretch; flex: none; }
@media (max-width: 640px) { .history .pkg { flex-direction: column; } .package-actions { flex-direction: row; width: 100%; } }
.package-expanded summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.package-expanded ul, .package-expanded ol { padding-left: 22px; line-height: 1.6; }
.download-retry { padding: 10px 0; text-align: left; }
.download-started, .download-started:disabled { background: #e7f3eb; border-color: #a9cbb3; color: #235f38; opacity: 1; cursor: default; }
.download-started:hover { background: #e7f3eb; border-color: #a9cbb3; }
.transfer-files { margin-top: 34px; }
.transfer-files h2 { margin-bottom: 8px; }
.transfer-files .file:first-child { border-top: 0; }
.file-download { flex: none; }
.more { margin-top: 34px; padding-top: 24px; }
.more p { margin-bottom: 0; line-height: 1.55; }

@media (max-width: 640px) {
  .site-header-inner { min-height: 72px; gap: 16px; }
  .site-header img { width: 170px; }
  .product-lockup > span:first-child { display: none; }
  .site-footer-inner { min-height: 82px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 5px; padding: 18px 0; }
  .wrap { width: min(100% - 28px, 820px); padding-top: 22px; }
  .panel { padding: 24px 20px; }
  .section-heading { display: block; }
  .section-heading > .quiet-button { margin-top: 12px; }
  .field-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .drop { padding: 26px 14px; }
  .completion { grid-template-columns: auto 1fr; }
  .copy-row { grid-template-columns: 1fr; }
  .copy-row .primary { width: 100%; }
  .pkg { flex-direction: row; align-items: flex-start; gap: 12px; }
  .revoke-button { min-height: 40px; }
  .recipient-card {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 26px 20px;
  }
  .transfer-summary { grid-template-columns: 1fr 1fr; }
  .transfer-summary div { padding: 13px 10px 13px 0; }
  .transfer-summary div + div { padding-left: 10px; }
  .transfer-summary div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }
  .download-primary { width: 100%; }
  .transfer-files .file { flex-direction: row; align-items: center; }
  .file-download { min-height: 44px; max-width: 48%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .drop { transition: none; }
}

/* Sender-only workspace; recipient and sign-in widths remain unchanged. */
.sender-layout, .transfer-column, .activity-column { min-width: 0; }
.transfer-metadata { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.transfer-metadata > div { min-width: 0; }
.recipient-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.recipient-guidance { position: relative; }
.recipient-guidance summary { cursor: pointer; color: var(--muted); font-size: 0.75rem; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.recipient-guidance summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.recipient-guidance .field-help { position: absolute; z-index: 3; top: 26px; right: 0; width: min(320px, 75vw); margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.revoke-confirmation { width: min(520px, calc(100% - 32px)); padding: 28px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.revoke-confirmation::backdrop { background: rgb(14 53 72 / 60%); }
.revoke-confirmation h2 { margin: 0 0 16px; }
.revoke-confirmation p { line-height: 1.5; overflow-wrap: anywhere; }
#revoke-package { font-weight: 700; }
.revoke-confirmation .actions { justify-content: space-between; margin-bottom: 0; }
.revoke-confirm-action { background: #8d2828; color: #fff; border-color: #8d2828; }
.revoke-confirm-action:hover { background: #6e1e1e; color: #fff; border-color: #6e1e1e; }
.transfer-metadata label { margin-top: 0; }
.transfer-metadata textarea { display: block; height: 46px; min-height: 46px; padding: 10px 14px; }
.sender-toolbar { display: flex; align-items: center; gap: 16px; flex: none; }
.account-actions { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.activity-column { display: none; }
.activity-toggle { white-space: nowrap; }
.activity-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; box-sizing: border-box; border: 0; border-left: 3px solid var(--accent); padding: 24px; background: #e4edf1; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.activity-drawer::backdrop { background: rgb(14 53 72 / 45%); }
.drawer-heading { position: sticky; top: -24px; z-index: 2; background: #e4edf1; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.drawer-heading h2 { margin: 0; }
.activity-drawer .section-heading.compact { margin: 0 0 16px; }
body:has(.activity-drawer[open]) { overflow: hidden; }
.activity-pane-tools { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.activity-rail { display: none; position: sticky; top: 28px; width: 64px; min-height: 180px; padding: 12px; writing-mode: vertical-rl; background: #e4edf1; color: var(--ink); border: 1px solid #b8cbd5; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; }
.activity-rail small { display: block; margin-inline-start: 10px; font-size: 0.55rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.activity-column[hidden], .activity-rail[hidden] { display: none !important; }
.history .pkg { display: block; }
.package-title .package-actions { margin-left: auto; }
.history .package-danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5c9c4; }
.package-danger-zone p { margin: 0; color: #774039; font-size: 0.8rem; }
.history .revoke-button { color: #8d2828; background: #fff4f2; border-color: #bf7770; min-height: 44px; }
.history .revoke-button:hover { background: #fbe2dd; border-color: #8d2828; }
/* Explicit, page-local appearance choice; no tracking or stored account data. */
body.file-drop-dark { color-scheme: dark; --ink: #e3eef3; --surface: #142f3d; --page: #0b202b; --line: #385562; --muted: #b4c8d2; --soft: #1c3a49; --accent-dark: #ff927e; --shadow: 0 24px 70px rgba(0, 0, 0, 0.2); }
.file-drop-dark .site-header, .file-drop-dark .site-footer { background: #0e3548; }
.file-drop-dark input, .file-drop-dark textarea, .file-drop-dark .secondary { border-color: #587580; }
.file-drop-dark input::placeholder, .file-drop-dark textarea::placeholder { color: var(--muted); opacity: 1; }
.file-drop-dark .success-mark { background: #365b6c; }
.file-drop-dark .primary { background: #8cc9df; border-color: #8cc9df; color: #0b202b; }
.file-drop-dark .primary:hover { background: #b2dfef; border-color: #b2dfef; }
.file-drop-dark .activity-column, .file-drop-dark .activity-drawer, .file-drop-dark .drawer-heading, .file-drop-dark .activity-rail { background: #234655; border-color: #587580; }
.file-drop-dark .drop { border-color: #64818e; }
.file-drop-dark .drop.is-dragging { background: #284b59; }
.file-drop-dark .drop-icon, .file-drop-dark .status { background: #365b6c; color: #e3eef3; }
.file-drop-dark .status-downloaded { background: #244e3b; color: #c0e9cd; }
.file-drop-dark .status-revoked, .file-drop-dark .status-expired { background: #543735; color: #f1c5be; }
.file-drop-dark .package-danger-zone { border-color: #855b58; }
.file-drop-dark .package-danger-zone p { color: #f1c5be; }
.file-drop-dark .history .revoke-button { background: #54302e; border-color: #c68c82; color: #ffd4ca; }
.file-drop-dark .history .revoke-button:hover { background: #6c3d37; }
.file-drop-dark .error { color: #ff927e; }
@media (min-width: 1180px) {
  .sender-shell { width: min(100% - 64px, 1440px); }
  .sender-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 40px; align-items: start; }
  .activity-toggle { display: none; }
  .activity-column { display: block; position: sticky; top: 28px; max-height: calc(100dvh - 56px); overflow: hidden; padding: 22px; background: #e4edf1; border: 1px solid #b8cbd5; border-radius: 16px; box-sizing: border-box; }
  .activity-column .history-section { max-height: calc(100dvh - 168px); overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; }
  .activity-column .section-heading.compact { margin: 0 0 16px; }
  .sender-layout.is-activity-collapsed { grid-template-columns: minmax(0, 1fr) 64px; }
  .is-activity-collapsed .transfer-column { width: 100%; max-width: 820px; justify-self: center; }
  .is-activity-collapsed .activity-rail { display: block; }
}
@media (max-width: 640px) {
  .transfer-metadata { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sender-toolbar { margin-top: 16px; }
  .activity-drawer { padding: 22px 14px; }
  .drawer-heading { top: -22px; }
}

/* R1 File Drop header composition. Artwork is unchanged outlined Aptos;
   all endorsement, Beta, role, task copy and controls are real UI text. */
.fd-brand-shell { font-family: Aptos, "Segoe UI", Arial, sans-serif; background: var(--page); }
.fd-brand-shell.file-drop-dark { --ink: #F3F4F6; --surface: #202020; --page: #202020; --muted: #F3F4F6; --soft: #0E3548; --line: #667085; }
.fd-brand-shell .fd-product-header { background: #FFFFFF; color: #202020; }
.fd-brand-shell .fd-product-header .site-header-inner { display: block; width: min(100%, 1104px); padding: 10px 24px 20px; min-height: 192px; }
.fd-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-height: 118px; }
.fd-identity { position: relative; width: 440px; height: 112px; flex: none; }
.fd-brand-art { display: block; width: 320px; height: 88px; }
.fd-art-dark { display: none; }
.fd-identity .beta-badge { position: absolute; left: 319px; top: 27px; min-width: 49px; height: 23px; border: 1px solid #667085; border-radius: 5px; color: #667085; font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 3px 8px; text-align: center; line-height: 15px; }
.fd-endorsement { position: absolute; top: 84px; left: 106px; color: #667085; font-size: 13px; font-weight: 400; line-height: 18px; white-space: nowrap; }
.fd-role { display: grid; gap: 12px; min-width: 120px; padding-top: 24px; }
.fd-role span { color: #667085; font-size: 12px; letter-spacing: 0.08em; font-weight: 700; }
.fd-role strong { font-size: 17px; font-weight: 700; }
.fd-header-context { border-top: 1px solid #667085; padding-top: 20px; }
.fd-task-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.fd-mobile-role, .fd-task-help { display: none; }
.fd-brand-shell.file-drop-dark .fd-product-header { background: #202020; color: #F3F4F6; }
.file-drop-dark .fd-art-light { display: none; }
.file-drop-dark .fd-art-dark { display: block; }
.file-drop-dark .fd-identity .beta-badge, .file-drop-dark .fd-endorsement, .file-drop-dark .fd-role span { color: #F3F4F6; border-color: #F3F4F6; }
.fd-brand-shell.file-drop-dark .activity-column, .fd-brand-shell.file-drop-dark .activity-drawer, .fd-brand-shell.file-drop-dark .drawer-heading, .fd-brand-shell.file-drop-dark .activity-rail { background: #0E3548; }
.recipient-appearance { display: flex; justify-content: flex-end; margin-bottom: 20px; }
@media (max-width: 640px) {
  .fd-brand-shell .fd-product-header .site-header-inner { padding: 12px 20px 24px; min-height: 244px; }
  .fd-header-top { min-height: 94px; }
  .fd-identity { width: 100%; height: 94px; }
  .fd-brand-art { width: 208px; height: 57.2px; }
  .fd-identity .beta-badge { left: auto; right: 0; top: 14px; min-width: 45px; height: 22px; padding: 3px 6px; }
  .fd-endorsement { left: 0; top: 62px; font-size: 13px; }
  .fd-role { display: none; }
  .fd-header-context { padding-top: 24px; }
  .fd-mobile-role { display: block; color: #667085; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 20px; }
  .file-drop-dark .fd-mobile-role { color: #F3F4F6; }
  .fd-task-title { font-size: 24px; }
  .fd-task-help { display: block; margin: 20px 0 0; font-size: 15px; color: #667085; line-height: 1.4; }
  .file-drop-dark .fd-task-help { color: #F3F4F6; }
}
@media (max-width: 335px) {
  .fd-brand-shell .fd-product-header .site-header-inner { padding-inline: 12px; }
  .fd-identity .beta-badge { top: 62px; }
  .fd-endorsement { font-size: 12px; }
}

.recipient-download-panel { margin: 24px 0 0; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--soft); }
.recipient-download-panel h2 { margin: 0; font-size: 1.1rem; }
.recipient-download-panel .primary-action { margin-top: 14px; width: 100%; }
.recipient-download-panel .download-primary { width: 100%; min-height: 56px; font-size: 1.05rem; font-weight: 750; }
