@font-face {
  font-family: Commissioner;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/commissioner-greek-wght-normal.woff2) format("woff2");
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: Commissioner;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/commissioner-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
:root {
  color-scheme: dark;
  --canvas: #08090a;
  --surface: #141516;
  --line: #2a2b2f;
  --input-line: #8a8f98;
  --text: #f7f8f8;
  --secondary: #d0d6e0;
  --muted: #8a8f98;
  --accent: #c4826b;
  --button: #f7f8f8;
  --button-text: #08090a;
  --radius: 12px;
  --fast: 180ms;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #f7f8f8;
    --surface: #f7f8f8;
    --line: #d0d6e0;
    --input-line: #8a8f98;
    --text: #08090a;
    --secondary: #34343a;
    --muted: #5d626b;
    --accent: #b87660;
    --button: #08090a;
    --button-text: #f7f8f8;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font-family: Commissioner, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
header,
footer {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 480;
  letter-spacing: -.02em;
}
.brand img {
  object-fit: contain;
}
.report-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.report-link:hover {
  color: var(--text);
}
main {
  width: 100%;
  max-width: 504px;
  padding: 48px 32px 64px;
  margin: 0 auto;
  flex: 1;
  outline: none;
}
.sender {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
}
.sender b {
  color: var(--text);
  font-weight: 550;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 550;
  flex-shrink: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 560;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.message {
  font-size: 15px;
  line-height: 1.65;
  color: var(--secondary);
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.file {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.file-row > .icon {
  color: var(--muted);
}
.filename {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.filename:hover {
  text-decoration: underline;
}
.size {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.file-download {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  color: var(--secondary);
}
.file-download:hover {
  background: var(--surface);
  color: var(--text);
}
.primary {
  width: 100%;
  border: 0;
  margin-top: 24px;
  min-height: 48px;
  border-radius: var(--radius);
  background: var(--button);
  color: var(--button-text);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font: 600 15px / 1.5 Commissioner, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--fast), transform var(--fast);
}
.primary:hover {
  opacity: 0.9;
}
.primary:active {
  transform: translateY(1px);
}
.primary[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.8;
}
.primary[data-state="requested"] {
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--text);
}
.button-size {
  font-weight: 450;
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  flex-wrap: wrap;
}
.download-status:empty {
  display: none;
}
.download-status {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}
.preview {
  margin-left: 32px;
  font-size: 13px;
}
.preview summary {
  cursor: pointer;
  color: var(--secondary);
  padding: 8px 0;
  min-height: 40px;
}
.preview-media {
  margin: 8px 0 16px;
}
.preview-media img,
.preview-media video {
  max-width: 100%;
  max-height: 400px;
  display: block;
  object-fit: contain;
}
.preview-media iframe {
  width: 100%;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.report {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.report summary {
  cursor: pointer;
  padding: 8px 0;
}
.report form {
  margin-top: 16px;
}
label {
  display: block;
  font-size: 14px;
  color: var(--secondary);
  margin: 16px 0 8px;
}
input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--input-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 12px;
  min-height: 48px;
}
textarea {
  resize: vertical;
}
.secondary {
  border: 1px solid var(--input-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 500 14px Commissioner, sans-serif;
  min-height: 44px;
  padding: 12px 16px;
  margin-top: 16px;
  cursor: pointer;
}
.secondary:hover {
  border-color: var(--text);
}
.state {
  padding-top: 32px;
}
.state-icon {
  color: var(--accent);
  margin-bottom: 24px;
}
.state-icon .icon {
  width: 32px;
  height: 32px;
}
.unlock {
  margin-top: 32px;
}
.unlock .primary {
  margin-top: 16px;
}
[aria-invalid="true"] {
  border-color: var(--accent);
}
footer {
  font-size: 12px;
  color: var(--muted);
  padding-top: 24px;
  padding-bottom: 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.by {
  display: block;
  font-size: 11px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  background: var(--button);
  color: var(--button-text);
  padding: 12px 16px;
  z-index: 10;
}
.skip:focus {
  top: 16px;
}
@media (max-width: 480px) {
  header,
  footer {
    padding: 16px 20px;
    gap: 16px;
  }
  main {
    padding: 32px 20px 48px;
  }
  h1 {
    font-size: 28px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .report-link {
    font-size: 12px;
  }
  .file-row {
    gap: 8px;
  }
  .file-row > .icon {
    width: 16px;
  }
  .file-download {
    min-width: 36px;
  }
  .filename {
    font-size: 13px;
  }
  .size {
    font-size: 12px;
  }
  .meta {
    gap: 8px;
  }
  .preview {
    margin-left: 24px;
  }
  footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .state {
    padding-top: 24px;
  }
}
/* Approved download A: a single restrained entrance, with 60ms stagger. */
@keyframes transfer-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.transfer > .sender,
.transfer > h1,
.transfer > .message,
.transfer > .notice,
.transfer > .file-list,
.transfer > .download-all,
.transfer > .meta {
  animation: transfer-enter 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.transfer > h1 {
  animation-delay: 60ms;
}
.transfer > .message {
  animation-delay: 120ms;
}
.transfer > .notice {
  animation-delay: 120ms;
}
.transfer > .file-list {
  animation-delay: 180ms;
}
.transfer > .download-all {
  animation-delay: 240ms;
}
.transfer > .meta {
  animation-delay: 300ms;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

main:has(.legal) {
  width: 100%;
  max-width: 784px;
  padding-block: 28px 48px;
}
body:not(.recipient-page) > header {
  position: relative;
  z-index: 30;
  width: 100%;
  min-height: 56px;
  padding: 6px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(16px);
}
body:not(.recipient-page) > header .brand {
  font-size: 17px;
  gap: 9px;
}
body:not(.recipient-page) > header .brand img {
  width: 28px;
  height: 28px;
}
body:not(.recipient-page) > footer {
  width: 100%;
  padding: 8px clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.legal {
  padding: 28px 0;
  line-height: 1.75;
}
.legal h1 {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 500;
}
.legal h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 28px 0 12px;
}
.legal p {
  margin: 12px 0;
}
.legal a {
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal-date {
  font-size: 13px;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--text);
}
.size strong {
  display: inline-block;
  max-width: 10rem;
  white-space: normal;
  color: var(--text);
}
.notice {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  line-height: 1.5;
}
.legal li {
  overflow-wrap: anywhere;
}

/* Recipient A: files lead the composition; the delivery controls stay distinct. */
.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 8px;
  color: var(--secondary);
}
.language-switch a[aria-current] {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.sign-in-link {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}
select {
  max-width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--input-line);
  border-radius: 8px;
  padding: 12px;
  min-height: 48px;
  font: inherit;
}
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.recipient-page header,
.recipient-page footer {
  width: min(1180px, 100%);
}
.recipient-page {
  --status-text: #c4826b;
}
@media (prefers-color-scheme: light) {
  .recipient-page {
    --status-text: #93513c;
  }
}
.recipient-page main {
  max-width: 1040px;
  padding: 40px 32px 64px;
}
.recipient .sender {
  margin-bottom: 26px;
}
.recipient .avatar {
  width: 40px;
  height: 40px;
  color: var(--status-text);
}
.recipient h1 {
  font-size: 44px;
  font-weight: 560;
  line-height: 1.2;
  margin-bottom: 18px;
}
.recipient-message {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.8;
}
.recipient-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  margin: 24px 0;
}
.recipient-notice .icon {
  color: var(--accent);
  margin-top: 2px;
}
.recipient-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 36px;
  margin-top: 28px;
  animation: transfer-enter 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}
.recipient-content {
  min-width: 0;
}
.recipient-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 16px;
}
.recipient-toolbar h2,
.recipient-side h2 {
  font-size: 14px;
  font-weight: 550;
  margin: 0;
}
.recipient-toolbar h2 span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.file-views {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.file-views button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: var(--secondary);
  cursor: pointer;
}
.file-views button[aria-pressed="true"] {
  color: var(--text);
  background: var(--surface);
}
.file-views .icon {
  width: 17px;
  height: 17px;
}
.recipient-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.file-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--fast);
}
.file-card:hover {
  border-color: var(--input-line);
}
.file-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  height: 140px;
  padding: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
}
.file-art .icon {
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.file-art span {
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: center;
}
.file-info {
  min-width: 0;
  padding: 12px 16px 16px;
}
.file-heading {
  display: flex;
  gap: 8px;
  align-items: center;
}
.file-heading h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.file-heading .filename {
  font-size: inherit;
}
.file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.file-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
}
.file-warning .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-top: 2px;
}
.file-card .preview {
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
}
.file-card .preview summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 12px;
  list-style: none;
}
.file-card .preview summary::-webkit-details-marker {
  display: none;
}
.file-card .preview summary::after {
  content: "+";
  font-size: 18px;
  margin-left: auto;
}
.file-card .preview[open] summary::after {
  content: "−";
}
.file-card .preview .icon {
  width: 17px;
  height: 17px;
}
.preview-notice {
  margin: 0 0 12px;
  line-height: 1.7;
}
.file-card .preview-media {
  margin: 0;
}
.preview-media img,
.preview-media video,
.preview-media iframe {
  width: 100%;
  border-radius: 6px;
}
.preview-error {
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 0;
}
.recipient-preview-hint {
  margin-top: 18px;
  max-width: 540px;
  line-height: 1.7;
}
.recipient-files[data-view="list"] {
  grid-template-columns: minmax(0, 1fr);
}
.recipient-files[data-view="list"] .file-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
}
.recipient-files[data-view="list"] .file-art {
  height: 100%;
  min-height: 96px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  padding: 12px 8px;
}
.recipient-files[data-view="list"] .file-art .icon {
  width: 28px;
  height: 28px;
}
.recipient-side {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--surface);
  position: sticky;
  top: 24px;
}
.recipient-side h2 {
  font-size: 12px;
  color: var(--secondary);
}
.recipient-side .total {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.delivery-count {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.delivery-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--status-text);
  font-size: 12px;
  line-height: 1.65;
  margin: 20px 0 0;
}
.delivery-status .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.recipient-side .primary {
  margin: 24px 0 0;
  font-size: 14px;
}
.delivery-details {
  border-top: 1px solid var(--line);
  margin: 24px 0 0;
  padding-top: 20px;
  font-size: 12px;
}
.delivery-details div + div {
  margin-top: 18px;
}
.delivery-details dt {
  color: var(--muted);
  margin-bottom: 4px;
}
.delivery-details dd {
  color: var(--secondary);
  margin: 0;
  overflow-wrap: anywhere;
}
.recipient-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-top: 20px;
  font-size: 12px;
  text-decoration: none;
  color: var(--secondary);
}
.recipient-bottom {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  animation: transfer-enter 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 240ms both;
}
.recipient-bottom > span:first-child {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}
.recipient-bottom .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.recipient-page .report {
  max-width: 640px;
  margin-top: 56px;
}
@media (max-width: 900px) {
  .recipient-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }
  .recipient-files {
    grid-template-columns: minmax(0, 1fr);
  }
  .recipient-bottom {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .recipient-page header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .recipient-page .site-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .recipient-page .report-link {
    color: var(--secondary);
  }
  .recipient-page .sign-in-link {
    display: none;
  }
  .recipient-page main {
    padding: 28px 20px 48px;
  }
  .recipient h1 {
    font-size: 32px;
  }
  .recipient-message {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .recipient-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .recipient-content,
  .recipient-side {
    width: 100%;
  }
  .recipient-side {
    position: static;
    order: -1;
    padding: 20px;
  }
  .delivery-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .delivery-details div + div {
    margin-top: 0;
  }
  .recipient-bottom > span:first-child {
    flex-shrink: 1;
  }
  .file-art {
    height: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .recipient-grid,
  .recipient-bottom {
    animation: none;
  }
}

/* The same image canvas as the sender, with functional UI kept on a solid surface. */
.recipient-page {
  color-scheme: dark;
  --canvas: #08090a;
  --surface: #141516;
  --line: #36383e;
  --text: #f7f8f8;
  --secondary: #d0d6e0;
  --muted: #a0a5af;
  --accent: #c4826b;
  --status-text: #d5a492;
  --button: #f7f8f8;
  --button-text: #08090a;
  isolation: isolate;
}
.recipient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #08090a;
}
.recipient-landscape-frame {
  position: absolute;
  inset: 0;
}
.recipient-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.recipient-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #08090ae0 0%, #08090a70 58%, #08090a30 100%);
}
.recipient-page header,
.recipient-page footer {
  width: min(1376px, 100%);
}
.recipient-page header {
  background: #08090ab3;
}
.recipient-page footer {
  background: #08090ae8;
  color: var(--muted);
}
.recipient-page main {
  max-width: 1376px;
  padding: 32px 32px 48px;
}
.recipient {
  width: min(760px, 100%);
  padding: 28px;
  border: 1px solid #45474c;
  border-radius: 20px;
  background: #0f1012f5;
  box-shadow: 0 16px 60px #00000026;
}
.recipient .sender {
  margin-bottom: 16px;
  color: var(--secondary);
}
.recipient .avatar {
  flex-shrink: 0;
  background: var(--surface);
}
.recipient .avatar .icon {
  width: 20px;
  height: 20px;
}
.recipient h1 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.recipient-message {
  margin-bottom: 20px;
}
.recipient-grid {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  margin-top: 20px;
}
.recipient-files {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.recipient .file-card {
  background: var(--canvas);
}
.recipient .file-art {
  height: 80px;
  flex-direction: row;
  padding: 12px;
  gap: 8px;
}
.recipient .file-art .icon {
  width: 26px;
  height: 26px;
}
.recipient .file-info {
  padding: 12px;
}
.recipient-side {
  padding: 20px;
  position: static;
}
.recipient-side .total {
  font-size: 28px;
}
.recipient-side .primary {
  margin-top: 18px;
}
.delivery-details {
  margin-top: 18px;
  padding-top: 16px;
}
.delivery-details div + div {
  margin-top: 14px;
}
.recipient-bottom {
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.recipient-page .report {
  margin-top: 24px;
  padding: 16px 20px;
  background: #08090ae8;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.recipient-page .report summary {
  color: var(--secondary);
}
.recipient-quotes {
  position: fixed;
  left: max(850px, 68%);
  right: 6%;
  bottom: 24%;
  display: grid;
  max-width: 270px;
}
.recipient-quote {
  grid-area: 1 / 1;
  align-self: end;
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.65;
  text-wrap: balance;
  text-shadow: 0 1px 8px #000c;
}
.recipient > .sender,
.recipient > h1,
.recipient > .message,
.recipient-grid,
.recipient-bottom {
  animation: recipient-arrive 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes recipient-arrive {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .recipient-quotes {
    position: static;
    min-height: 7em;
    margin: 28px 0 8px auto;
    max-width: 290px;
  }
}
@media (max-width: 760px) {
  .recipient-page header {
    padding: 18px 20px;
  }
  .recipient-page main {
    padding: 20px 16px 36px;
  }
  .recipient {
    padding: 20px;
    border-radius: 16px;
  }
  .recipient-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .recipient-content,
  .recipient-side {
    width: 100%;
  }
  .recipient-side {
    order: -1;
    padding: 18px;
  }
  .delivery-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .delivery-details div + div {
    margin: 0;
  }
  .recipient-side .recipient-help {
    margin-top: 10px;
  }
  .recipient .file-art {
    height: 64px;
  }
  .recipient-backdrop img {
    object-position: 65% center;
  }
  .recipient-quotes {
    margin: 28px 12px 12px auto;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .recipient > .sender,
  .recipient > h1,
  .recipient > .message,
  .recipient-grid,
  .recipient-bottom {
    animation: none;
  }
}

@media (max-width: 760px) {
  .recipient-landscape-frame[data-scene="09-autumn-river"] img,
  .recipient-landscape-frame[data-scene="06-lunar-shore"] img {
    object-position: 73% center;
  }
  .recipient-landscape-frame[data-scene="03-desert-wind"] img,
  .recipient-landscape-frame[data-scene="10-starlit-earth"] img {
    object-position: 58% center;
  }
}

.recipient-side {
  position: relative;
  top: auto;
}
.delivery-emblem {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 58px;
  height: 58px;
  color: var(--accent);
  pointer-events: none;
}
.delivery-emblem svg {
  width: 100%;
  height: 100%;
}
.delivery-arrow {
  animation: delivery-arrive 1500ms ease-in-out 3;
}
.recipient-side h2,
.recipient-side .total,
.recipient-side .delivery-count {
  max-width: calc(100% - 58px);
}
.recipient-side[data-delivery-state="requested"] .delivery-arrow {
  animation: none;
}
@keyframes delivery-arrive {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .delivery-arrow {
    animation: none;
  }
}

/* Compact glass chrome retains the uninterrupted recipient landscape. */
.recipient-page header,
.recipient-page footer {
  width: 100%;
  padding: 8px max(32px, calc((100vw - 1312px) / 2));
  gap: 8px 24px;
  background: #08090a99;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.recipient-page header {
  min-height: 60px;
  border-bottom: 1px solid #ffffff14;
}
.recipient-page .brand {
  min-height: 44px;
  gap: 8px;
  font-size: 17px;
}
.recipient-page .brand img {
  width: 28px;
  height: 28px;
}
.recipient-page .site-actions {
  gap: 16px;
}
.recipient-page .language-switch a[aria-current] {
  background: #ffffff0a;
  box-shadow: none;
}
.recipient-page .sign-in-link {
  font-size: 12px;
  border-color: #ffffff14;
}
.recipient-page footer {
  border-top: 1px solid #ffffff14;
  font-size: 11px;
}
.recipient-page footer .by {
  display: inline;
}
.recipient-page footer nav {
  gap: 0 16px;
}
.recipient-page footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 760px) {
  .recipient-page header,
  .recipient-page footer {
    padding-inline: 16px;
  }
}
@media (max-width: 640px) {
  .recipient-page header {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .recipient-page .brand {
    font-size: 16px;
    gap: 6px;
  }
  .recipient-page .site-actions {
    width: auto;
    gap: 4px;
  }
  .recipient-page .site-actions .report-link {
    display: none;
  }
  .recipient-page footer {
    gap: 2px 16px;
  }
  .recipient-page footer nav {
    gap: 0 8px;
  }
}

/* A compact delivery card: download first, additional metadata on request. */
.delivery-options {
  margin-top: 12px;
}
.delivery-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  font-size: 12px;
  color: var(--secondary);
  list-style: none;
}
.delivery-options > summary::-webkit-details-marker {
  display: none;
}
.delivery-options > summary::after {
  content: "+";
  font-size: 18px;
}
.delivery-options[open] > summary::after {
  content: "−";
}
.delivery-options .delivery-details {
  margin-top: 0;
  padding-top: 8px;
}
.delivery-options .recipient-help {
  margin-top: 8px;
}
.recipient-limits {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.recipient-files[data-view="list"] .file-card {
  grid-template-columns: 38px minmax(0, 1fr);
}
.recipient-files[data-view="list"] .file-art {
  min-height: 60px;
  align-items: flex-start;
  padding: 18px 8px 8px;
}
.recipient-files[data-view="list"] .file-art .icon {
  width: 20px;
  height: 20px;
}
.recipient-files[data-view="list"] .file-art span {
  display: none;
}
.recipient-files[data-view="list"] .file-info {
  position: relative;
  padding: 8px 10px;
}
.recipient-files[data-view="list"] .file-heading,
.recipient-files[data-view="list"] .file-meta {
  padding-right: 40px;
}
.recipient-files[data-view="list"] .file-heading h3 {
  font-size: 12px;
}
.recipient-files[data-view="list"] .file-download {
  position: absolute;
  right: 4px;
  top: 8px;
  min-width: 44px;
  min-height: 44px;
}
.recipient-files[data-view="list"] .file-meta {
  font-size: 11px;
  gap: 8px;
}
@media (min-width: 761px) {
  .recipient {
    width: min(440px, 100%);
    padding: 20px;
    border-radius: 16px;
  }
  .recipient .sender {
    margin-bottom: 8px;
    font-size: 12px;
    gap: 10px;
  }
  .recipient .avatar {
    width: 28px;
    height: 28px;
  }
  .recipient .avatar .icon {
    width: 16px;
    height: 16px;
  }
  .recipient h1 {
    font-size: 24px;
    margin-bottom: 0;
  }
  .recipient-message {
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 0;
  }
  .recipient-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }
  .recipient-content,
  .recipient-side {
    width: 100%;
  }
  .recipient-side {
    order: -1;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 10px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .recipient-side .delivery-emblem {
    position: static;
    grid-area: 1 / 1 / 4 / 2;
    width: 32px;
    height: 32px;
  }
  .recipient-side h2,
  .recipient-side .total,
  .recipient-side .delivery-count {
    max-width: none;
  }
  .recipient-side h2 {
    grid-area: 1 / 2;
    font-size: 11px;
  }
  .recipient-side .total {
    grid-area: 2 / 2;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
  }
  .recipient-side .delivery-count {
    display: none;
  }
  .recipient-side .delivery-status {
    grid-area: 3 / 2;
    margin: 0;
    font-size: 11px;
  }
  .recipient-side .primary {
    grid-area: 1 / 3 / 4 / 4;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    font-size: 12px;
  }
  .recipient-side .delivery-options,
  .recipient-side .download-confirmation {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
  .delivery-options > summary {
    min-height: 32px;
    font-size: 11px;
  }
  .delivery-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .delivery-details div + div {
    margin: 0;
  }
  .recipient-toolbar {
    min-height: 32px;
    margin-bottom: 8px;
  }
  .recipient-toolbar h2 {
    font-size: 12px;
  }
  .file-views button {
    min-width: 32px;
    min-height: 32px;
  }
  .recipient-files {
    gap: 6px;
  }
  .recipient-files[data-view="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recipient .file-art {
    height: 56px;
  }
  .recipient-bottom {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.6;
  }
  .recipient-page .report {
    max-width: 440px;
    margin-top: 16px;
    padding: 12px 16px;
  }
}

.recipient-support {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
}
.recipient-support .recipient-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  font-size: 11px;
  color: var(--secondary);
}
.recipient-support .icon {
  width: 15px;
  height: 15px;
}
.report-dialog {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px #0008;
}
.report-dialog::backdrop {
  background: #08090ab3;
  backdrop-filter: blur(8px);
}
.report-dialog .report {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.report h2 {
  margin: 0 32px 16px 0;
  font-size: 18px;
  font-weight: 500;
}
.report form {
  margin-top: 0;
  gap: 10px;
}
.report label {
  font-size: 12px;
}
.report input,
.report select,
.report textarea {
  font-size: 14px;
}
.report .hint {
  font-size: 11px;
}
.report-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary);
  font-size: 24px;
}
.language-picker {
  position: relative;
  color: var(--secondary);
  font-size: 12px;
}
.language-picker > summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
}
.language-picker > summary::-webkit-details-marker {
  display: none;
}
.language-picker > summary:hover,
.language-picker[open] > summary {
  background: var(--surface);
  color: var(--text);
}
.language-picker > nav {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 164px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px #0004;
}
.language-picker nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}
.language-picker nav a:hover,
.language-picker nav a[aria-current] {
  background: var(--canvas);
  color: var(--text);
}
.language-picker .icon {
  width: 18px;
  height: 18px;
}
.language-picker[open] > nav {
  animation: language-enter 140ms ease-out;
}
@keyframes language-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (pointer: coarse) {
  .recipient-support .recipient-help,
  .language-picker > summary,
  .language-picker nav a {
    min-height: 44px;
  }
}
@media (max-width: 640px) {
  .report-dialog {
    padding: 18px;
  }
  .report input,
  .report select,
  .report textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .language-picker[open] > nav {
    animation: none;
  }
}

.report-fallback {
  margin-top: 24px;
}
.report-fallback > summary {
  cursor: pointer;
  font-size: 12px;
}
.report-fallback .report {
  margin-top: 12px;
}
