.receive-page {
  --paper: #faf9f6;
  --denim: #283a57;
  --orange: #ff842f;
  --secondary: #64645e;
  --hairline: #dad9d2;
  min-height: 100vh;
  color: var(--denim);
  background: var(--paper);
  font-family: var(--body);
}
.receive-bar {
  border-bottom: 1px solid var(--hairline);
}
.receive-nav, .receive-main {
  width: min(1190px, calc(100% - clamp(40px, 11vw, 156px)));
  margin-inline: auto;
}
.receive-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.receive-nav .brand {
  color: var(--denim);
}
.receive-private {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: .88rem;
  font-weight: 600;
}
.receive-main {
  padding-block: clamp(32px, 6vw, 82px) 28px;
}
.receive-page h1, .receive-page h2 {
  color: inherit;
  font-family: var(--display);
  word-break: normal;
  overflow-wrap: anywhere;
}
.receive-page h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5.7vw, 5.9rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .99;
}
.receive-page .receive-origin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #3d527a;
  font-weight: 650;
  font-size: .94rem;
}
.receive-origin::before {
  content: "";
  width: 23px;
  height: 2px;
  background: currentColor;
}
.receive-gate {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  min-height: clamp(410px, 64vh, 640px);
  border: 1px solid var(--hairline);
  border-radius: 23px;
  overflow: hidden;
  background: #fff;
}
.receive-gate-copy {
  align-self: center;
  padding: clamp(30px, 5vw, 76px);
}
.receive-gate-copy h1 em {
  font-style: normal;
  color: #ad470f;
}
.receive-gate-copy > p:not(.receive-origin):not(.notice) {
  max-width: 39ch;
  margin: 22px 0 27px;
  color: var(--secondary);
  line-height: 1.65;
}
.receive-gate-art, .receive-feature-art {
  background: var(--transfer-tint), var(--transfer-art) center / cover no-repeat #283a57;
  background-blend-mode: color, normal;
}
.receive-gate-art {
  min-height: 100%;
}
.receive-code-form {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 320px;
  margin: 0 0 14px;
}
.receive-code-form[hidden] {
  display: none;
}
.receive-code-form label {
  font-size: .9rem;
  font-weight: 650;
}
.receive-code-form input {
  width: 100%;
  min-height: 52px;
  padding: 9px 14px;
  border: 1px solid #949aa4;
  border-radius: 10px;
  background-color: #fdfcf9;
  color: var(--denim);
  font: inherit;
  font-size: 1.4rem;
  letter-spacing: .3em;
}
.receive-code-form input::placeholder {
  color: #76766f;
}
.receive-code-form button {
  margin-top: 6px;
}
.receive-page .notice {
  margin-block: 16px 0;
}
.receive-page .receive-demo {
  margin-top: 20px;
  color: var(--secondary);
  font-size: .81rem;
}
.receive-button, .receive-text-button, .receive-expand, .receive-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 100px;
  padding: 10px 19px;
  border: 1px solid transparent;
  font: 650 .94rem/1.3 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.receive-page :is(button, a, input):focus-visible {
  outline: 3px solid #a53b09;
  outline-offset: 3px;
}
.receive-feature :is(button, a):focus-visible,
.receive-viewer button:focus-visible {
  outline-color: #ff842f;
}
.receive-button svg, .receive-kind svg, .receive-private svg {
  flex: none;
}
.receive-primary {
  background: var(--orange);
  color: #282824;
}
.receive-primary:hover {
  background: #ff9c67;
}
.receive-gate .receive-primary {
  background: var(--denim);
  color: #fff;
}
.receive-gate .receive-primary:hover {
  background: #3d527a;
}
.receive-text-button {
  min-height: 35px;
  padding: 4px 0;
  background: transparent;
  color: var(--denim);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.receive-transfer {
  width: 100%;
}
.receive-header {
  max-width: 1020px;
}
.receive-header .receive-origin {
  margin-bottom: 14px;
}
.receive-header h1 {
  font-size: clamp(2.55rem, 5.7vw, 5.25rem);
  text-wrap: balance;
}
.receive-page .receive-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  margin: 20px 0 0;
  color: var(--secondary);
  font-size: .96rem;
}
.receive-summary span + span {
  padding-left: 16px;
  border-left: 1px solid #c3c0b7;
}
.receive-page .receive-message {
  max-width: 76ch;
  margin-block: 22px 0;
  padding-left: 15px;
  border-left: 3px solid #f26a1f;
  color: #3d4553;
  font-size: 1.02rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.receive-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 306px;
  margin-top: clamp(23px, 3.4vw, 42px);
  overflow: hidden;
  border-radius: 21px;
  color: white;
  background: #283a57;
}
.receive-feature-copy {
  align-self: center;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(24px, 4vw, 52px);
}
.receive-feature-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 50%;
}
.receive-feature-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #283a57 0%, transparent 33%);
}
.receive-page .receive-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--orange);
  font-size: .91rem;
  font-weight: 650;
}
.receive-feature h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 3.4rem);
  line-height: 1.06;
  font-weight: 620;
  letter-spacing: -.052em;
}
.receive-page .receive-size {
  margin: 8px 0 24px;
  color: #d7d4cb;
  font-size: .9rem;
}
.receive-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.receive-feature .receive-download {
  color: #fff;
  background: #34465f;
  border-color: #647995;
}
.receive-feature .receive-download:hover {
  background: #465b7b;
}
.receive-attachments {
  margin-top: 38px;
}
.receive-attachments h2 {
  margin: 0 0 13px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -.04em;
}
.receive-attachments ul {
  list-style: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
  padding: 0;
}
.receive-attachments li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.receive-file-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 50px;
  border: 1px solid #dedbd4;
  border-radius: 9px;
  background: #f7ede4;
  color: #3d527a;
}
.receive-file-name {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.receive-file-name strong, .receive-file-name span {
  display: block;
}
.receive-file-name strong {
  font-size: 1rem;
  line-height: 1.3;
}
.receive-file-name span, .receive-restricted {
  color: var(--secondary);
  font-size: .86rem;
}
.receive-small, .receive-attachments .receive-download {
  min-height: 39px;
  padding: 8px 13px;
  font-size: .87rem;
}
.receive-small {
  color: var(--denim);
  background: #f0efea;
  border-color: #dbd6cd;
}
.receive-attachments .receive-download {
  color: var(--denim);
  background: transparent;
  border-color: var(--hairline);
}
.receive-small:hover, .receive-attachments .receive-download:hover {
  background: #ece9e2;
}
html:has(.receive-viewer[open]) {
  overflow: hidden;
}
.receive-viewer {
  box-sizing: border-box;
  width: min(1430px, calc(100vw - 48px));
  height: min(900px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #435b7d;
  border-radius: 15px;
  background: #283a57;
  color: #faf9f6;
}
.receive-viewer[open] {
  display: flex;
  flex-direction: column;
}
.receive-viewer::backdrop {
  background: rgb(18 24 35 / .85);
}
.receive-viewer header {
  display: flex;
  align-items: center;
  flex: none;
  gap: 9px;
  padding: 10px 15px 10px 20px;
}
.receive-viewer h2 {
  margin: 0 auto 0 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.024em;
}
.receive-file-nav {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  border: 1px solid #677d9c;
  border-radius: 999px;
  padding: 2px;
  color: #e9edf4;
}
.receive-file-nav[hidden] { display: none; }
.receive-file-nav button {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: inherit;
}
.receive-file-nav button:not(:disabled):hover { background: #4a6082; }
.receive-file-nav button:disabled { opacity: .35; cursor: default; }
.receive-file-position {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: .85rem;
  padding: 0 2px;
}
.receive-viewer-feedback {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  color: #3d527a;
  text-align: center;
  padding: 20px;
}
.receive-expand, .receive-close {
  flex: none;
  min-height: 38px;
  border-color: #677d9c;
  background: #3d527a;
  color: #fff;
  padding: 7px 12px;
}
.receive-expand {
  width: 38px;
  padding: 6px;
}
.receive-expand:hover, .receive-close:hover, .receive-expand[aria-pressed="true"] {
  background: #4a6082;
}
.receive-viewer #viewer-body {
  min-height: 0;
  flex: 1;
  background: #f8f7f3;
}
.receive-viewer iframe, .receive-viewer img {
  display: block;
  border: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.receive-viewer.receive-expanded {
  width: 100vw;
  height: 100dvh;
  border: 0;
  border-radius: 0;
}
@media (max-width: 750px) {
  .receive-nav, .receive-main { width: calc(100% - 36px); }
  .receive-nav { min-height: 66px; }
  .receive-main { padding-top: 24px; }
  .receive-gate { grid-template-columns: 1fr; min-height: auto; }
  .receive-gate-art { grid-row: 1; min-height: 0; height: clamp(126px, 30vw, 195px); background-position: center 45%; }
  .receive-gate-copy { padding: clamp(24px, 5vw, 40px); }
  .receive-gate-copy h1 { font-size: clamp(2.65rem, 9.5vw, 4rem); }
  .receive-gate-copy .receive-origin { margin-bottom: 14px; }
  .receive-gate-copy > p:not(.receive-origin):not(.notice) { margin: 15px 0 20px; }
  .receive-feature { grid-template-columns: 1fr; min-height: auto; }
  .receive-feature-art { position: relative; inset: auto; grid-row: 1; height: clamp(108px, 25vw, 174px); background-position: center 43%; }
  .receive-feature-art::before { background: linear-gradient(0deg, #283a57 0%, transparent 34%); }
  .receive-feature-copy { padding-top: 12px; }
  .receive-viewer { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .receive-viewer header { padding: 9px 11px; }
  .receive-expand { display: none; }
  .receive-attachments li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; }
  .receive-attachments .receive-actions, .receive-restricted { grid-column: 2; }
}
@media (max-width: 420px) {
  .receive-viewer .receive-close { width: 38px; padding: 6px; justify-content: center; }
  .receive-viewer .receive-close span { display: none; }
  .receive-summary span + span { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .receive-feature .receive-actions { gap: 7px; }
  .receive-feature .receive-button { padding-inline: 13px; font-size: .89rem; }
}
@media (prefers-reduced-motion: reduce) {
  .receive-page * { transition: none; }
}
