@font-face {
  font-family: "DM Sans";
  src: url("/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #0e1a2b;
  --muted: #44505f;
  --accent: #d9652b;
  --accent-ink: #a4441a;
  --accent-line: #d39b7e;
  --accent-tint: #f7e8de;
  --line: #d8cfbf;
  --paper: #f6f2ea;
  --paper-shade: #ece5d8;
  --white: #fff;
  --error: #b3261e;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .68; }
a { color: inherit; }
[hidden], .symbols { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.site-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-size: 22px; font-weight: 780; letter-spacing: -.065em; }
.brand-mark { display: block; width: 38px; height: 38px; flex: 0 0 auto; }
.header-nav { display: flex; gap: 20px; align-items: center; }
.plain { background: none; border: 0; padding: 5px 0; color: var(--muted); font-weight: 650; }
.plain:hover { color: var(--accent-ink); }
.header-help { font-size: 14px; }
.icon-button { display: inline-grid; place-items: center; width: 41px; height: 41px; padding: 0; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.icon-button:hover { border-color: var(--accent-line); color: var(--accent-ink); }

.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 27px 48px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
  min-height: min(770px, calc(100vh - 101px));
}
.content { min-width: 0; padding: 14px 0; }
.intro { margin-bottom: 31px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(52px, 6.6vw, 96px); font-weight: 770; line-height: .94; letter-spacing: -.083em; }
h1 em { font-style: normal; color: var(--accent-ink); }
.intro p { margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.65vw, 20px); letter-spacing: -.02em; }
.art {
  position: relative;
  border-radius: 29px;
  overflow: hidden;
  background: var(--paper-shade);
  aspect-ratio: 5 / 6;
  align-self: center;
  box-shadow: 0 22px 45px #0e1a2b17;
}
.art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.card {
  background: var(--white);
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: 0 10px 28px #0e1a2b0b, 0 2px 5px #0e1a2b06;
}
.dropzone {
  min-height: 194px;
  border: 1.5px dashed var(--accent-line);
  border-radius: 15px;
  background: var(--paper);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.dropzone.dragging { background: var(--accent-tint); border-color: var(--accent-ink); }
.dropzone.compact { min-height: auto; flex-direction: row; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.dropzone.compact .drop-icon, .dropzone.compact .drop-text { display: none; }
.dropzone.compact .button { margin-left: auto; }
.drop-icon { width: 43px; height: 43px; border-radius: 13px; display: inline-grid; place-items: center; color: var(--accent-ink); background: var(--accent-tint); }
.drop-icon .icon { width: 22px; height: 22px; }
.drop-text { display: grid; gap: 3px; }
.drop-text strong { font-size: 16px; font-weight: 750; }
.drop-text span { color: var(--muted); font-size: 13px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none;
}
.button .icon { height: 17px; width: 17px; }
.primary { background: var(--accent); color: var(--ink); }
.primary:hover { background: var(--accent-ink); color: var(--white); }
.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.secondary:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.compose-footer { min-height: 42px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 1px 0; }
.expiry { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.expiry .icon { width: 16px; height: 16px; }
.expiry select { padding: 5px 2px; border: none; border-radius: 5px; background: transparent; color: var(--ink); font-weight: 740; }
.custom-mode { order: -1; font-size: 13px; color: var(--muted); }
.privacy-line { display: flex; flex-wrap: wrap; gap: 12px 23px; margin: 21px 2px 0; color: var(--muted); font-size: 13px; font-weight: 580; }
.privacy-line span { display: inline-flex; align-items: center; gap: 6px; }
.privacy-line .icon { width: 16px; height: 16px; color: var(--accent-ink); }

.files { list-style: none; margin: 11px 0 0; padding: 0; max-height: 240px; overflow-y: auto; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.file-type { color: var(--accent-ink); border-radius: 9px; padding: 8px; background: var(--accent-tint); }
.file-info { display: grid; gap: 2px; flex: 1; min-width: 0; }
.file-name { font-weight: 710; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-size { color: var(--muted); font-size: 12px; }
.file-remove { width: 34px; height: 34px; }
.file-remove .icon { width: 15px; height: 15px; }
.error { border-radius: 9px; padding: 8px 10px; margin-top: 10px; font-size: 13px; color: var(--error); background: #fff2f3; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.4; }
.state-card, .receive-status { display: grid; justify-items: start; gap: 12px; padding: 7px; }
h2 { font-size: 23px; font-weight: 760; letter-spacing: -.04em; line-height: 1.14; }
.state-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
progress { accent-color: var(--accent-ink); width: 100%; height: 10px; }
.link-input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
.danger { color: var(--error); font-size: 13px; }
.receive-card { padding: 19px; }
.receive-card .files { max-height: 340px; margin: 0 0 12px; }
.receive-card #refresh-link { margin-top: 8px; }
.text-link { display: inline-flex; gap: 4px; align-items: center; font-size: 14px; font-weight: 720; text-decoration: none; color: var(--accent-ink); margin-top: 14px; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 16px; height: 16px; }
dialog { border: 1px solid var(--line); border-radius: 21px; max-height: calc(100dvh - 36px); width: min(470px, calc(100% - 32px)); padding: 23px; color: var(--ink); box-shadow: 0 30px 110px #0e1a2b52; }
dialog::backdrop { background: #0e1a2b75; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.dialog-head .icon-button { height: 33px; width: 33px; }
.dialog-head .icon { height: 16px; width: 16px; }
.how-list { display: grid; gap: 14px; margin: 0; }
.how-list dt { font-weight: 750; }
.how-list dd { margin: 3px 0 0; color: var(--muted); line-height: 1.45; }
.mode-picker { padding: 0; margin: 0 0 12px; border: none; }
.mode-picker legend { font-size: 13px; font-weight: 750; margin-bottom: 7px; }
.mode-row { display: flex; gap: 9px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.mode-row:has(input:checked) { background: var(--accent-tint); border-color: var(--accent-line); }
.mode-row input { margin-top: 3px; accent-color: var(--accent-ink); }
.mode-row strong, .mode-row small { display: block; }
.mode-row strong { font-size: 14px; }
.mode-row small { color: var(--muted); margin-top: 2px; }
.blossom-settings { display: grid; gap: 7px; margin-bottom: 13px; }
.blossom-settings .button { justify-self: start; }
.field { font-size: 13px; font-weight: 750; }

@media (max-width: 900px) {
  .site-header { padding: 24px 30px; }
  .layout { padding: 23px 30px 40px; gap: 34px; }
}
@media (max-width: 680px) {
  .site-header { padding: 18px 20px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-nav { gap: 12px; }
  .header-help { font-size: 13px; }
  .settings-button { width: 36px; height: 36px; }
  .layout { padding: 25px 20px 28px; grid-template-columns: 1fr; gap: 25px; min-height: 0; }
  .content { padding: 0; }
  .intro { margin-bottom: 20px; }
  h1 { font-size: clamp(52px, 11vw, 76px); }
  .intro p { margin-top: 14px; }
  .art { border-radius: 20px; }
  .privacy-line { margin-top: 14px; }
}
@media (max-width: 340px) {
  .site-header, .layout { padding-left: 14px; padding-right: 14px; }
  .header-nav { gap: 8px; }
  .brand { font-size: 18px; }
  .header-help { font-size: 12px; }
}

.transfer-modes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--paper-shade);
  border-radius: 10px;
  margin-bottom: 12px;
}
.transfer-modes button {
  color: var(--muted);
  font-weight: 720;
  font-size: 13px;
  border: 0;
  border-radius: 8px;
  padding: 7px 11px;
  background: transparent;
}
.transfer-modes button[aria-pressed="true"] {
  color: var(--accent-ink);
  background: #fff;
  box-shadow: 0 1px 4px #0e1a2b1a;
}
