.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.privacy-callout {
  display: block;
  margin-top: 10px;
  color: #2457a7;
  font-size: 16px;
  font-weight: 800;
}

.transfer-workspace {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.transfer-main-panel,
.summary-panel,
.privacy-panel,
.download-panel,
.tips-panel {
  border: 1px solid #cfdae8;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 253, 0.98));
  box-shadow: 0 20px 48px rgba(19, 44, 82, 0.09);
}

.transfer-main-panel {
  padding: 20px;
}

.transfer-side-panel {
  display: grid;
  gap: 16px;
}

.transfer-surface {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 24px;
  border: 1px dashed rgba(47, 111, 227, 0.34);
  background:
    radial-gradient(circle at top left, rgba(103, 174, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(47, 111, 227, 0.12), rgba(255, 255, 255, 0.94));
}

.upload-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 111, 227, 0.14);
  color: #38506e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.transfer-icon {
  margin-top: 22px;
}

.transfer-icon img {
  width: 82px;
  height: 82px;
  display: block;
}

.transfer-surface h2,
.file-card h3,
.privacy-panel h2,
.download-panel h2,
.tips-panel h2 {
  margin: 0;
  font-family: "SF Pro Display", "Sora", "Inter", sans-serif;
  letter-spacing: -0.4px;
}

.transfer-surface h2 {
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
}

.transfer-surface p {
  max-width: 40ch;
  margin: 12px 0 0;
  color: #53657a;
  font-size: 17px;
}

.quick-steps {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-step {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 111, 227, 0.14);
  color: #435a75;
  font-size: 13px;
  font-weight: 700;
}

.transfer-tabs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(47, 111, 227, 0.09), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(47, 111, 227, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mode-button {
  min-height: 72px;
  border: 1px solid rgba(47, 111, 227, 0.14);
  border-radius: 22px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.88);
  color: #35506f;
  font-family: "Sora", "Inter", sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 12px 26px rgba(18, 40, 74, 0.06);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mode-button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 111, 227, 0.28);
  box-shadow: 0 16px 30px rgba(47, 111, 227, 0.12);
}

.mode-button:focus-visible {
  outline: 3px solid rgba(47, 111, 227, 0.2);
  outline-offset: 3px;
}

.mode-button.active {
  border-color: rgba(47, 111, 227, 0.3);
  background: linear-gradient(135deg, #2f6fe3, #2ebdf2);
  color: #ffffff;
  box-shadow: 0 20px 36px rgba(47, 111, 227, 0.24);
}

.transfer-panel {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-label {
  color: #365271;
  font-size: 14px;
  font-weight: 800;
}

.field-hint,
.summary-note,
.code-note,
#receivedFileMeta,
#incomingFileMeta,
#senderFileMeta,
.tips-list {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-trigger {
  cursor: pointer;
}

.inline-actions,
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 1;
  color: #7b8798;
  border-color: #d5ddea;
  background: #e7edf6;
  box-shadow: none;
  filter: none;
}

.button:disabled:hover {
  transform: none;
}

.button-primary:disabled,
.button-secondary:disabled {
  color: #7b8798;
  border-color: #d5ddea;
  background: #e7edf6;
  box-shadow: none;
}

.code-input {
  width: min(320px, 100%);
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #cfdae8;
  background: #ffffff;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.code-input:focus {
  outline: 2px solid rgba(47, 111, 227, 0.22);
  outline-offset: 2px;
  border-color: rgba(47, 111, 227, 0.44);
}

.file-card,
.code-card {
  padding: 18px;
  border: 1px solid #d7dfeb;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(18, 40, 74, 0.06);
}

.summary-label {
  margin: 0 0 14px;
  color: #5a6f89;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-card h3,
.download-panel h2 {
  font-size: 24px;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.pickup-code {
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: 0.18em;
  color: #1e4ba8;
}

.status-banner {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(47, 111, 227, 0.14);
  color: #41556e;
  font-size: 14px;
  font-weight: 700;
}

.status-banner[data-tone="success"] {
  border-color: rgba(31, 162, 97, 0.18);
  background: rgba(239, 251, 245, 0.92);
  color: #1a6b48;
}

.status-banner[data-tone="error"] {
  border-color: rgba(202, 73, 73, 0.2);
  background: rgba(255, 243, 243, 0.96);
  color: #9b2f2f;
}

.status-banner[data-tone="working"] {
  border-color: rgba(47, 111, 227, 0.24);
  background: rgba(240, 246, 255, 0.96);
  color: #2456a5;
}

.progress-shell {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(47, 111, 227, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #38506e;
}

.progress-track {
  margin-top: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(47, 111, 227, 0.1);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2ebdf2);
  transition: width 0.18s ease;
}

.summary-panel,
.privacy-panel,
.download-panel,
.tips-panel {
  padding: 22px 20px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(206, 217, 233, 0.88);
  color: #4a6077;
}

.summary-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.summary-row strong {
  color: var(--text);
  font-size: 16px;
  text-align: right;
}

.privacy-panel h2 {
  font-size: 26px;
  line-height: 1.05;
}

.privacy-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.download-panel .button {
  margin-top: 18px;
  width: 100%;
}

.tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tips-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 111, 227, 0.12);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .transfer-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .transfer-main-panel,
  .summary-panel,
  .privacy-panel,
  .download-panel,
  .tips-panel,
  .transfer-surface,
  .file-card,
  .code-card {
    border-radius: 24px;
  }

  .transfer-surface {
    padding: 24px;
  }

  .transfer-tabs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mode-button {
    width: 100%;
    min-height: 64px;
    font-size: 24px;
  }

  .inline-actions,
  .action-row {
    width: 100%;
  }

  .inline-actions .button,
  .action-row .button {
    flex: 1 1 180px;
  }

  .quick-step {
    width: 100%;
    justify-content: center;
  }

  .code-input {
    width: 100%;
    letter-spacing: 0.18em;
  }

  .progress-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill,
  .mode-button {
    transition: none;
  }

  .mode-button:hover {
    transform: none;
  }
}
