/* ==========================================================================
   Drop — Liquid Glass
   Translucent glass over a soft color field. One focal point per screen.
   ========================================================================== */

:root {
  --ink: #0B1220;
  --ink-2: #2C3444;
  --muted: #3E4757;
  --muted-2: #5B6474;
  --blue: #0071E3;
  --blue-glass: rgba(0, 113, 227, 0.9);
  --green: #1FB36B;
  --red: #C4161C;
  --bg: #EEF2F8;

  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.72);
  --glass-blur: blur(30px) saturate(180%);
  --glass-hi: inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
  --shadow-s: 0 8px 24px rgba(28, 52, 110, 0.12);
  --shadow-m: 0 16px 40px rgba(28, 52, 110, 0.16);
  --shadow-l: 0 30px 80px rgba(28, 52, 110, 0.18);

  --font: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Spacing on Apple's 4/8-pt grid. Cards inset their content by --inset (20pt,
     16pt on phones); anything rounded inside a card uses --r-inner, and the card
     itself --r-card = inset + inner, so nested corners stay concentric. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
  --inset: 20px;
  --r-inner: 12px;
  --r-card: calc(var(--inset) + var(--r-inner));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The soft color field the glass refracts. Fixed so it never scrolls. Its top and bottom
   fade into the page color: Safari (iPhone and Mac) fills the status bar and toolbars with that
   one color, so the page runs edge to edge with no seam. */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0, rgba(238, 242, 248, 0) 14%, rgba(238, 242, 248, 0) 86%, var(--bg) 100%),
    radial-gradient(38vmax 38vmax at 12% 11%, rgba(91, 157, 255, 0.6) 0%, rgba(91, 157, 255, 0.48) 34%, rgba(91, 157, 255, 0.15) 70%, rgba(91, 157, 255, 0) 100%),
    radial-gradient(32vmax 32vmax at 90% 46%, rgba(69, 208, 192, 0.5) 0%, rgba(69, 208, 192, 0.38) 34%, rgba(69, 208, 192, 0.1) 70%, rgba(69, 208, 192, 0) 100%),
    radial-gradient(36vmax 36vmax at 57% 104%, rgba(255, 178, 135, 0.62) 0%, rgba(255, 178, 135, 0.5) 34%, rgba(255, 178, 135, 0.15) 70%, rgba(255, 178, 135, 0) 100%),
    var(--bg);
}


/* ---------- Glass primitives ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-hi), var(--shadow-m);
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .btn-glass, .round-btn, .capsule, .pill, .toolbar, .field, .banner, .save-menu, .lock-pill, .lock-card, .badge, .home-screen-pill { background: #FFFFFF !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ---------- Layout shell ---------- */
.screen {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(28px + var(--safe-top)) 24px calc(28px + var(--safe-bottom));
}
.topbar {
  width: 100%; max-width: 1180px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  min-height: 44px;
}
.center {
  margin: auto 0;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 0;
}

/* ---------- Brand + headline ---------- */
.capsule {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 22px; text-decoration: none;
  font-size: 17px; font-weight: 650; letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9), var(--shadow-s);
}
.headline {
  margin: 0; display: flex; flex-direction: column; text-align: center;
  font-size: clamp(46px, 8.6vw, 86px); font-weight: 650; letter-spacing: -0.05em; line-height: 0.98;
}
.headline .dim { color: var(--muted-2); }
.title { margin: 0; font-size: clamp(40px, 6vw, 64px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; text-align: center; }
.footnote { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 26px; border: 0;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), opacity 0.2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-lg { height: 64px; min-width: 168px; padding: 0 34px; border-radius: 32px; font-size: 20px; }
.btn-primary {
  background: var(--blue-glass); color: #FFFFFF;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 8px rgba(0, 40, 110, 0.22), 0 10px 28px rgba(0, 113, 227, 0.33);
}
@media (hover: hover) { .btn-primary:hover { background: rgba(0, 113, 227, 0.97); } }
.btn-glass {
  background: rgba(255, 255, 255, 0.46); color: var(--ink);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), var(--shadow-s);
}
@media (hover: hover) { .btn-glass:hover { background: rgba(255, 255, 255, 0.62); } }
.btn-plain { background: transparent; color: var(--ink); height: 46px; padding: 0 18px; border-radius: 23px; font-size: 15px; }
@media (hover: hover) { .btn-plain:hover { background: rgba(255, 255, 255, 0.5); } }
.btn-danger { color: var(--red); }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 22px; font-size: 15px; }
.btn-block { width: 100%; }
:where(.btn, .round-btn, .capsule, a, input, textarea, .switch):focus-visible { outline: 3px solid rgba(0, 113, 227, 0.55); outline-offset: 2px; }

.round-btn {
  width: 44px; height: 44px; flex: none; border-radius: 22px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: rgba(255, 255, 255, 0.4); color: var(--ink);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9), var(--shadow-s);
  transition: background-color 0.2s, transform 0.15s var(--ease);
}
@media (hover: hover) { .round-btn:hover { background: rgba(255, 255, 255, 0.62); } }
.round-btn:active { transform: scale(0.94); }
.round-btn svg { width: 18px; height: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; margin: 0;
  border-radius: 20px; font-size: 15px; font-weight: 500; text-align: left;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.pill-sm { min-height: 36px; padding: 6px 14px; border-radius: 18px; font-size: 14px; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted-2); }
.dot.live { background: var(--green); animation: breathe 2s ease-in-out infinite; }
.dot.wait { background: var(--blue); animation: breathe 1.4s ease-in-out infinite; }

/* ---------- Home ---------- */
.home-actions { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Cards ---------- */
.card {
  width: 100%; max-width: 520px; border-radius: 40px; padding: var(--s8);
  display: flex; flex-direction: column; align-items: center; gap: var(--s6);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.35), var(--shadow-l);
}
.eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); }
.code {
  margin: 0; font-size: clamp(44px, 8vw, 70px); font-weight: 650; letter-spacing: -0.05em; line-height: 1.05; text-align: center;
  overflow-wrap: anywhere; cursor: copy;
}
.code-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr-tile {
  padding: 14px; border-radius: 26px; background: #FFFFFF; box-shadow: 0 10px 30px rgba(28, 52, 110, 0.14);
  line-height: 0;
}
.qr-tile svg { width: 188px; height: 188px; display: block; }
.qr-tile.sm { padding: 10px; border-radius: 16px; box-shadow: none; }
.qr-tile.sm svg { width: 116px; height: 116px; }
.hint { margin: 0; font-size: 16px; color: var(--muted); text-align: center; }
.row { display: flex; gap: var(--s3); align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---------- Floating toolbar ---------- */
.toolbar {
  display: flex; align-items: center; gap: var(--s1); padding: 6px; border-radius: 32px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--glass-hi), var(--shadow-m);
  max-width: 100%;
}
/* 52pt capsules 6pt inside a 32pt-radius bar: concentric. */
.toolbar .btn-plain, .toolbar .btn-primary { height: 52px; border-radius: 26px; }

/* ---------- Composer (send) ---------- */
.composer {
  width: 100%; max-width: 560px; border-radius: 34px; overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), var(--shadow-l);
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.composer.dragging { box-shadow: inset 0 0 0 2px rgba(0, 113, 227, 0.55), var(--shadow-l); transform: scale(1.01); }
.composer textarea {
  display: block; width: 100%; min-height: 132px; max-height: 46vh; resize: none; border: 0; outline: none;
  padding: var(--s6) var(--s6) var(--s4); background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 16px; line-height: 1.6;
}
.composer textarea::placeholder { font-family: var(--font); font-size: 19px; color: rgba(62, 71, 87, 0.75); }
.composer .files { list-style: none; margin: 0; padding: var(--s1) var(--s5); border-top: 1px solid rgba(255, 255, 255, 0.6); }
.composer .files:empty { display: none; }
.composer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: var(--s3) var(--s4); border-top: 1px solid rgba(255, 255, 255, 0.6);
}
.toggle { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; cursor: pointer; padding: 4px 6px; }
.switch {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 46px; height: 28px; border-radius: 14px;
  background: rgba(11, 18, 32, 0.14); position: relative; cursor: pointer; transition: background-color 0.2s;
  box-shadow: inset 0 1px 2px rgba(11, 18, 32, 0.12);
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px;
  background: #FFFFFF; box-shadow: 0 2px 6px rgba(11, 18, 32, 0.2); transition: transform 0.22s var(--ease);
}
.switch:checked { background: var(--blue); }
.switch:checked::before { transform: translateX(18px); }
.send-actions { margin-top: var(--s6); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.send-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); text-align: center; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s; }
.send-note.on { visibility: visible; opacity: 1; }

/* ---------- File + item rows ---------- */
.file-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; }
.thumb {
  width: 48px; height: 48px; flex: none; border-radius: var(--r-inner); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #CFE0F7; color: #3B6AA8; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.doc { background: #F9D9C9; color: #9A4A26; }
.thumb.txt { background: #E3E7EF; color: var(--ink-2); }
.thumb.av { background: #D8E8E4; color: #2F6F63; }
.meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }
.meta .name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .sub { font-size: 13px; color: var(--muted); }
.bar { height: 4px; border-radius: 2px; background: rgba(11, 18, 32, 0.1); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--blue); transition: width 0.3s linear; }

/* ---------- Opened drop (visitor) ---------- */
.stack { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: var(--s3); }
.drop-head { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: 0 0 var(--s6); text-align: center; }
.drop-head .code { font-size: clamp(36px, 7vw, 52px); cursor: default; }
.item {
  display: flex; flex-direction: column; gap: var(--s4); padding: var(--inset); border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 12px 30px rgba(28, 52, 110, 0.12);
  animation: rise 0.45s var(--ease) both;
}
.item.file { flex-direction: row; align-items: center; }
.item.file .thumb { width: 56px; height: 56px; }
/* Names wrap to two lines instead of hiding the end (version numbers, extensions). */
.item.file .meta .name { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.item .text {
  margin: 0; font-family: var(--mono); font-size: 14.5px; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto;
  -webkit-user-select: text; user-select: text;
}
.item .text.burned { font-family: var(--font); color: var(--muted); }
.item-actions { display: flex; justify-content: flex-end; gap: var(--s2); }
.item .btn-glass { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95); } /* sits in the card, doesn't float above it */
.dock { position: sticky; bottom: calc(var(--s4) + var(--safe-bottom)); display: flex; justify-content: center; margin-top: var(--s6); }
/* "Save all" while it gathers everything: the pill fills up. */
.btn-progress {
  position: relative; overflow: hidden; width: 132px; padding: 0;
  background: rgba(255, 255, 255, 0.6); color: var(--blue); box-shadow: inset 0 0 0 1.5px rgba(0, 113, 227, 0.35);
  font-variant-numeric: tabular-nums; cursor: default;
}
.btn-progress > i { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; background: var(--blue-glass); font-style: normal; }
/* The percentage twice, each cut to its side of the fill: blue on the track, white on the fill. */
.btn-progress > span, .btn-progress > i > span { position: absolute; inset: 0 auto 0 0; width: 132px; display: flex; align-items: center; justify-content: center; }
.btn-progress > i > span { color: #FFFFFF; }
/* Computers: "Save all" asks — separate files or one zip. */
.save-menu {
  position: absolute; bottom: calc(100% + var(--s2)); left: 0; right: 0; margin: 0 auto; width: max-content; min-width: 250px;
  display: flex; flex-direction: column; padding: 6px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--glass-hi), var(--shadow-m);
  animation: rise 0.2s var(--ease) both;
}
.save-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s8);
  height: 48px; padding: 0 var(--s4); border: 0; border-radius: 16px; background: transparent;
  font-size: 16px; font-weight: 600; text-align: left; transition: background-color 0.15s;
}
.save-menu button .sub { font-size: 14px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.save-menu button:disabled { opacity: 0.45; cursor: default; }
@media (hover: hover) { .save-menu button:not(:disabled):hover { background: rgba(255, 255, 255, 0.85); } }

/* Timeline: a small label over each moment things were sent or added. */
.moment { margin: var(--s3) 0 0; font-size: 13px; color: var(--muted); text-align: center; animation: rise 0.45s var(--ease) both; }
.moment:first-child { margin-top: 0; }
.moment b { font-weight: 600; color: var(--ink-2); }
.still { animation: none; } /* already on screen: only new arrivals animate in */

/* ---------- Receive ---------- */
.field {
  width: 100%; max-width: 600px; display: flex; align-items: center; gap: 8px;
  height: 78px; padding: 0 8px 0 30px; border-radius: 39px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 20px 50px rgba(28, 52, 110, 0.16);
  transition: box-shadow 0.2s;
}
.field:focus-within { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(0, 113, 227, 0.22), 0 20px 50px rgba(28, 52, 110, 0.16); }
.field.shake { animation: shake 0.42s; }
.field input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent;
  font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink);
}
.field input::placeholder { color: rgba(62, 71, 87, 0.55); font-weight: 500; }
.go {
  width: 62px; height: 62px; flex: none; border: 0; border-radius: 31px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-glass); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 8px 22px rgba(0, 113, 227, 0.35);
  transition: transform 0.15s var(--ease), opacity 0.2s;
}
.go:active { transform: scale(0.94); }
.go:disabled { opacity: 0.45; }
.field-msg { min-height: 22px; margin: var(--s3) 0 0; font-size: 15px; color: var(--muted); text-align: center; }
.field-msg.error { color: var(--red); }
.or { margin: var(--s6) 0; font-size: 14px; color: var(--muted); }
.scan-card {
  display: flex; align-items: center; gap: var(--s5); padding: var(--s4) var(--s6) var(--s4) var(--s4); border-radius: 32px; max-width: 100%;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--glass-hi), 0 16px 40px rgba(28, 52, 110, 0.12);
}
.scan-card h2 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.scan-card p { margin: var(--s2) 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 260px; }

/* Incoming banners (top right, like notifications) */
.banners { position: fixed; top: calc(16px + var(--safe-top)); right: 16px; z-index: 20; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.banner {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4) var(--s3) var(--s3); border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--glass-hi), var(--shadow-m);
  animation: drop-in 0.5s var(--ease) both;
}
.banner .thumb { width: 44px; height: 44px; border-radius: 10px; } /* 22pt banner, 12pt inset */
.banner .meta .name { font-size: 14px; }
.banner .meta .sub { font-size: 12.5px; }

/* ---------- Your drop: toolbar under the card, then what you sent (a plain list, no card) ---------- */
.center > .toolbar { margin-top: var(--s6); }
.toolbar .count { padding: 0 var(--s3); font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.sent { width: 100%; max-width: 480px; margin-top: var(--s6); padding: 0 var(--s1); }
.sent:empty { display: none; }
.sent .moment { margin: 0; padding: var(--s5) 0 var(--s1); text-align: left; animation: none; }
.sent .moment:first-child { padding-top: 0; }
.sent .file-row { padding: var(--s2) 0; }
.sent .thumb { width: 40px; height: 40px; border-radius: 10px; }
.sent .meta .name { font-size: 15px; }

/* ---------- Opened: a quiet timeline of the devices that opened a drop, newest first ---------- */
.top-right { position: relative; display: flex; flex-direction: column; align-items: center; }
.opens { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.opens:empty { display: none; }
.opens li { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 32px; }
/* The line joining each dot to the one above it. */
.opens li + li::before { content: ""; position: absolute; left: 4px; top: calc(-50% + 9px); bottom: calc(50% + 9px); width: 1px; background: rgba(11, 18, 32, 0.16); }
.opens li:not(.now) .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted-2); }
.opens .what { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opens time { flex: none; font-variant-numeric: tabular-nums; }
.opens .now { font-size: 15px; font-weight: 500; color: var(--ink); }
.opens .now time { font-weight: 400; color: var(--muted); }
.opens.at-end { width: 100%; max-width: 480px; padding: 0 var(--s1); } /* the page's bottom padding already sets it apart */
/* Wide screens: centered under "Gone in", clear of the centered code card. */
.opens.at-top { position: absolute; top: calc(100% + var(--s4)); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; animation: fade 0.5s var(--ease) both; }
@media (max-width: 1319px) { .opens.at-top { display: none; } }
@media (min-width: 1320px) { .opens.at-end { display: none; } }

/* ---------- "Add more": the Send box over the code screen ---------- */
.modal {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--s4) + var(--safe-top)) var(--s4) calc(var(--s4) + var(--safe-bottom));
  background: rgba(238, 242, 248, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: fade 0.2s var(--ease) both;
}
.modal-panel { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: var(--s5); animation: rise 0.35s var(--ease) both; }
.modal-title { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Drag overlay + toast ---------- */
.drop-overlay {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  background: rgba(238, 242, 248, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.18s;
}
.drop-overlay.on { opacity: 1; }
.drop-overlay-card {
  padding: 28px 40px; border-radius: 34px; font-size: 24px; font-weight: 650; letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.6); border: 2px dashed rgba(0, 113, 227, 0.55); box-shadow: var(--shadow-l);
}
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 22px; font-size: 15px; font-weight: 550; max-width: calc(100vw - 32px); text-align: center;
  background: rgba(11, 18, 32, 0.86); color: #FFFFFF; box-shadow: var(--shadow-m);
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(160, 20, 28, 0.92); }

/* ---------- Message card (expired, not found, burn gate, sent) ---------- */
.message { max-width: 440px; text-align: center; }
.message h1 { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.message p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.message p.note { font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* ---------- Back to your drops (bottom of Send) ---------- */
.resume-dock { display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: 100%; max-width: 420px; }
.resume {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s4) 0 var(--s5); border-radius: 22px;
  font-size: 15px; font-weight: 550; color: var(--ink-2); text-decoration: none;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9), var(--shadow-s);
  transition: background-color 0.2s;
}
@media (hover: hover) { .resume:hover { background: rgba(255, 255, 255, 0.62); } }
.resume svg { width: 16px; height: 16px; flex: none; color: var(--muted-2); transition: transform 0.2s var(--ease); }
.resume[aria-expanded="true"] svg { transform: rotate(-90deg); }
.resume-list { margin: 0; padding: var(--s2); }
.resume-list .resume {
  display: flex; justify-content: space-between; width: 100%;
  background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-radius: calc(var(--r-card) - var(--s2));
}
@media (hover: hover) { .resume-list .resume:hover { background: rgba(255, 255, 255, 0.6); } }
.check {
  width: 64px; height: 64px; border-radius: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--green); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 10px 28px rgba(31, 179, 107, 0.35);
  animation: pop 0.5s var(--ease) both;
}
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(0, 113, 227, 0.2); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
.noscript { text-align: center; padding: 40px; }

/* ---------- The lock: locked drops are end-to-end encrypted ---------- */
/* A second capsule peeks out from behind "Drop": open by default, closed (blue) when locked. */
.brand { position: relative; display: inline-flex; }
.brand > .capsule { position: relative; z-index: 2; }
.lock-pill {
  /* In the flow, tucked 44px (about half of "Drop") behind the capsule, so its own rounded end stays
     hidden and only straight edges meet the capsule's. The two stay centered together, label and all. */
  position: relative; z-index: 1; margin-left: -44px; height: 44px; padding: 0 14px 0 54px;
  display: inline-flex; align-items: center; border-radius: 22px; white-space: nowrap;
  font-size: 15px; font-weight: 550; color: var(--muted-2);
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.8), 0 6px 18px rgba(28, 52, 110, 0.1);
  transition: background-color 0.2s, color 0.2s, padding 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* a phone taps it twice (see what it does, then lock): no double-tap zoom */
}
.lock-pill.on { color: var(--blue); }
.lock-pill .label { display: inline-block; max-width: 0; margin-left: 0; overflow: hidden; opacity: 0; transition: max-width 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.2s; }
.lock-pill.open { background: rgba(255, 255, 255, 0.55); color: var(--ink-2); padding-right: 16px; }
.lock-pill.open .label { max-width: 200px; margin-left: 8px; opacity: 1; }
@media (hover: hover) {
  button.lock-pill:not(.on):hover { background: rgba(255, 255, 255, 0.55); color: var(--ink-2); padding-right: 16px; }
  button.lock-pill:not(.on):hover .label { max-width: 200px; margin-left: 8px; opacity: 1; }
  button.lock-pill.on:hover { background: rgba(255, 255, 255, 0.55); }
}
button.lock-pill.on[aria-expanded="true"] { background: rgba(255, 255, 255, 0.55); }
.lock-card {
  /* Centered with `translate`, which the rise animation's transform leaves alone. */
  position: absolute; z-index: 25; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  width: min(320px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--glass-hi), var(--shadow-m);
  text-align: left; animation: rise 0.2s var(--ease) both;
}
.lock-card-title { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.lock-card-label { margin: 0 0 var(--s1); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lock-card-row { display: flex; align-items: center; gap: var(--s3); padding: 6px 0; }
.lock-card-row .name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-card-remove { height: 36px; padding: 0 var(--s3); font-size: 14px; }
.device-tile { width: 32px; height: 32px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #E3E7EF; color: var(--ink-2); }
.eyebrow .lock-glyph { display: inline-flex; color: var(--blue); margin-right: 6px; vertical-align: -2px; }
/* A glass circle with an icon: "wants to open", "Waiting for permission", "Not allowed". */
.badge {
  width: 64px; height: 64px; flex: none; border-radius: 32px; display: flex; align-items: center; justify-content: center; color: var(--blue);
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--glass-hi), var(--shadow-s);
}
.badge.muted { color: var(--muted-2); }
.badge.wait { animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: var(--glass-hi), 0 0 0 0 rgba(0, 113, 227, 0.28); } 80%, 100% { box-shadow: var(--glass-hi), 0 0 0 18px rgba(0, 113, 227, 0); } }
.message .eyebrow + h1 { margin-top: -16px; }
/* The sender is asked: Allow / Always allow / Don't allow. */
.ask-card { max-width: 360px; gap: var(--s4); text-align: center; }
.ask-card .badge { width: 56px; height: 56px; }
.ask-text h2 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.ask-text p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.ask-actions { width: 100%; display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s1); }

/* ---------- Notifications: "Turn on notifications?", and on iPhone, the Home Screen ---------- */
.notify-card { max-width: 440px; }
.home-foot { display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.home-screen-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 var(--s4) 0 var(--s2); border-radius: 22px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 550; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9), var(--shadow-s);
  -webkit-tap-highlight-color: transparent; animation: rise 0.35s var(--ease) both;
}
.home-screen-pill > span:last-child { color: var(--muted-2); }
/* On a phone, how to add it sits at the bottom, near Safari's own buttons. */
@media (max-width: 640px) { .modal-sheet { align-items: flex-end; } }
.card.steps { gap: var(--s4); padding: var(--s6) var(--s5); align-items: stretch; text-align: left; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s4); }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.45; }
.steps b { font-weight: 600; }
.steps .step {
  width: 28px; height: 28px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 113, 227, 0.1); color: var(--blue); font-size: 14px; font-weight: 650;
}
.steps .step-icon { display: inline-flex; vertical-align: -4px; margin: 0 4px; color: var(--ink); }
.steps .step-icon[aria-label="Share"] { color: var(--blue); }
.steps p { margin: 0; padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, 0.6); font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ---------- Motion ---------- */
.reveal > * { animation: rise 0.6s var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: 0.06s; }
.reveal > *:nth-child(3) { animation-delay: 0.12s; }
.reveal > *:nth-child(4) { animation-delay: 0.18s; }
.reveal > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  :root { --inset: 16px; }
  .screen { padding-left: 16px; padding-right: 16px; }
  .home-actions { width: 100%; max-width: 360px; gap: 12px; }
  .home-actions .btn-lg { flex: 1; min-width: 0; padding: 0 18px; height: 60px; }
  .card { padding: var(--s6) var(--s5); border-radius: 32px; gap: var(--s5); }
  .qr-tile svg { width: 168px; height: 168px; }
  .field { height: 66px; padding-left: 22px; }
  .field input { font-size: 24px; }
  .go { width: 52px; height: 52px; }
  .scan-card { padding: var(--s3) var(--s4) var(--s3) var(--s3); gap: var(--s4); border-radius: 28px; }
  .scan-card .qr-tile.sm svg { width: 96px; height: 96px; }
  .toolbar .btn-plain { padding: 0 var(--s3); }
  .composer textarea { padding: var(--s5) var(--s5) var(--s4); }
  .composer .files { padding: var(--s1) var(--s4); }
  .banners { right: 8px; left: 8px; width: auto; }
  .modal { align-items: flex-end; } /* rises from the bottom, like an iPhone sheet */
  .item.file .thumb { width: 48px; height: 48px; } /* room for "790 KB · original quality" beside "Download" */
  .item .btn-sm { padding: 0 var(--s4); }
}
