/* sentit — editorial paper & ink, with a single vermilion accent. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --sunken: #ecebe5;
  --field: #ffffff;
  --ink: #141413;
  --ink-2: #3b3a36;
  --muted: #67665f;
  --faint: #a4a39c;
  --line: rgb(20 20 19 / 8%);
  --line-strong: rgb(20 20 19 / 15%);
  --accent: #ff4f1a;
  --accent-ink: #ffffff;
  --accent-soft: rgb(255 79 26 / 14%);
  --accent-text: #d63d0b;
  /* Interactive fills and focus rings that must meet contrast. */
  --accent-strong: #c93809;
  --on-accent: #ffffff;
  --focus: #c93809;
  --live: #17733f;
  --live-soft: rgb(31 138 76 / 12%);
  --warn: #8a5200;
  --warn-soft: rgb(214 140 18 / 15%);
  --danger: #c4321b;
  --danger-soft: rgb(196 50 27 / 10%);
  --shadow-sm: 0 1px 2px rgb(20 20 19 / 5%), 0 1px 1px rgb(20 20 19 / 3%);
  --shadow-md:
    0 2px 4px rgb(20 20 19 / 4%), 0 8px 24px -6px rgb(20 20 19 / 12%);
  --shadow-lg:
    0 4px 8px rgb(20 20 19 / 4%), 0 24px 64px -12px rgb(20 20 19 / 24%);
  --sans:
    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif:
    "Instrument Serif", "Iowan Old Style", "Apple Garamond", Baskerville,
    Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* File-type tiles. */
  --tile-image: #f7e2d6;
  --tile-image-ink: #9b4419;
  --tile-video: #e6e0f6;
  --tile-video-ink: #5a3fa6;
  --tile-audio: #dcefe4;
  --tile-audio-ink: #1d6b47;
  --tile-document: #dde7f4;
  --tile-document-ink: #2a5a90;
  --tile-design: #f5dde6;
  --tile-design-ink: #9f3159;
  --tile-archive: #efe6d2;
  --tile-archive-ink: #775e1d;
  --tile-font: #e7e6e0;
  --tile-font-ink: #3f3e39;
  --tile-code: #dfe4e9;
  --tile-code-ink: #374759;
  --tile-other: #ecebe5;
  --tile-other-ink: #6b6a64;
  --tile-edge: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0c;
    --surface: #161615;
    --surface-2: #1b1b1a;
    --sunken: #0a0a09;
    --field: #121211;
    --ink: #f3f2ec;
    --ink-2: #cfcec7;
    --muted: #97968e;
    --faint: #64635d;
    --line: rgb(243 242 236 / 8%);
    --line-strong: rgb(243 242 236 / 15%);
    --accent: #ff6436;
    --accent-ink: #ffffff;
    --accent-soft: rgb(255 100 54 / 18%);
    --accent-text: #ff8a63;
    --accent-strong: #ff6436;
    --on-accent: #0d0d0c;
    --focus: #ff6436;
    --live: #4cc685;
    --live-soft: rgb(76 198 133 / 14%);
    --warn: #f0b04a;
    --warn-soft: rgb(240 176 74 / 14%);
    --danger: #ff7a66;
    --danger-soft: rgb(255 122 102 / 12%);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 2px 4px rgb(0 0 0 / 30%), 0 12px 32px -8px rgb(0 0 0 / 60%);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / 30%), 0 32px 80px -12px rgb(0 0 0 / 70%);
    --tile-image: #3b2619;
    --tile-image-ink: #f2a679;
    --tile-video: #2c2445;
    --tile-video-ink: #b9a4f2;
    --tile-audio: #1a3427;
    --tile-audio-ink: #82d3a8;
    --tile-document: #1c2b46;
    --tile-document-ink: #93b8e8;
    --tile-design: #3c1b31;
    --tile-design-ink: #f09bbb;
    --tile-archive: #352d18;
    --tile-archive-ink: #dfc27a;
    --tile-font: #292926;
    --tile-font-ink: #cfcec7;
    --tile-code: #202934;
    --tile-code-ink: #a7bdd4;
    --tile-other: #252523;
    --tile-other-ink: #a3a29a;
    --tile-edge: rgb(255 255 255 / 14%);
  }
}

/* Base */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--accent-soft);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
img {
  max-width: 100%;
}
.icon,
.mark {
  flex-shrink: 0;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}
h1 {
  font: 400 clamp(40px, 4.6vw, 62px) / 1.02 var(--serif);
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
strong,
b {
  font-weight: 600;
}
p {
  color: var(--muted);
  text-wrap: pretty;
}
.eyebrow {
  display: inline-block;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.lede {
  font-size: 16px;
  margin-top: 12px;
  max-width: 62ch;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1280px;
  height: var(--header);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
}
.brand-mark circle {
  fill: var(--accent);
}
.brand-mark path {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-word {
  font: 400 26px/1 var(--serif);
  letter-spacing: -0.01em;
  transform: translateY(-1px);
}
.brand:hover .brand-mark {
  transform: rotate(-12deg);
}
.brand-mark {
  transition: transform 0.35s var(--ease);
}
.main-nav {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--sunken);
  border: 1px solid var(--line);
}
.main-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.15s,
    background 0.15s;
}
.main-nav a:hover {
  color: var(--ink);
}
.main-nav a.selected,
.main-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-note {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.account-menu,
.mobile-menu {
  position: relative;
}
.account-menu summary,
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 400 18px/1 var(--serif);
  transition: box-shadow 0.15s;
}
.account-menu summary {
  border-radius: 50%;
}
.account-menu[open] .avatar,
.account-menu summary:hover .avatar {
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.menu-panel,
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: pop 0.16s var(--ease);
}
.menu-identity {
  display: flex;
  flex-direction: column;
  padding: 8px 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.menu-identity strong {
  color: var(--ink);
  font-size: 14px;
}
.menu-identity span {
  font-size: 12.5px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 14px;
  text-align: left;
  color: var(--ink-2);
}
.menu-item:hover {
  background: var(--sunken);
  color: var(--ink);
}
.mobile-menu {
  display: none;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

/* Page frame */
.main,
.recipient-main,
.auth-main {
  flex: 1;
  width: min(100% - 2 * var(--gutter), 1180px);
  margin: 0 auto;
  padding: 48px 0 96px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-heading > div {
  min-width: 0;
}
.page-heading .pill {
  margin-bottom: 14px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px 12px 6px 8px;
  margin-left: -8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
  transition:
    background 0.15s,
    color 0.15s;
}
.back-link:hover {
  background: var(--sunken);
  color: var(--ink);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.card > h2 + p {
  margin-top: 6px;
}

/* Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s,
    transform 0.18s var(--ease),
    box-shadow 0.18s;
}
.button:hover:not(:disabled) {
  background: var(--accent-strong);
  color: var(--on-accent);
}
.button:active:not(:disabled) {
  transform: scale(0.98);
}
.button:disabled {
  opacity: 0.45;
}
.button.ghost,
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.button.ghost:hover:not(:disabled),
.button.secondary:hover:not(:disabled) {
  background: var(--sunken);
  color: var(--ink);
}
.button.small {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
}
.button.wide {
  width: 100%;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: color 0.15s;
}
.text-button:hover:not(:disabled) {
  color: var(--ink);
}
.text-button:disabled {
  opacity: 0.45;
}
.text-button.danger:hover:not(:disabled) {
  color: var(--danger);
}
.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.link-button:hover {
  color: var(--accent-text);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
}
.text-link:hover {
  color: var(--accent-text);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-button:hover:not(:disabled) {
  background: var(--sunken);
  color: var(--ink);
}
.icon-button:disabled {
  opacity: 0.35;
}
.icon-button.is-copied {
  color: var(--live);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.pill[data-tone="live"] {
  background: var(--live-soft);
  color: var(--live);
}
.pill[data-tone="live"]::before {
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
.pill[data-tone="warn"] {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill[data-tone="expired"] {
  background: var(--danger-soft);
  color: var(--danger);
}
.pill[data-tone="draft"],
.pill[data-tone="archived"] {
  color: var(--muted);
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--live) 0%, transparent);
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.chip span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip:hover {
  border-color: var(--ink-2);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip[aria-pressed="true"] span {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}

/* Forms */
label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
}
label span {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 400;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  box-shadow: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px var(--danger-soft);
}
input[readonly] {
  background: var(--surface-2);
}
input[type="date"] {
  font-variant-numeric: tabular-nums;
}
input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  accent-color: var(--accent);
  flex-shrink: 0;
  box-shadow: none;
}
input[type="search"] {
  padding-left: 40px;
  background: var(--field)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23999890' stroke-width='1.6' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM20 20l-4-4'/%3E%3C/svg%3E")
    no-repeat 14px center;
}
.fine-print {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}
.fine-details {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.fine-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 500;
}
.fine-details summary:hover {
  color: var(--ink);
}
.fine-details p {
  margin-top: 6px;
  line-height: 1.5;
}
.status-message {
  margin-top: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.status-message:empty {
  display: none;
}
.field-error {
  margin-top: 8px;
  color: var(--danger);
  font-size: 12.5px;
}

/* Notices (sign-in steps, errors) */
.auth-main {
  display: grid;
  place-items: center;
  padding: 40px 0 72px;
}
.narrow {
  width: min(100%, 460px);
  margin: 0 auto;
}
.notice {
  padding: 40px 36px 36px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}
.notice h1 {
  font-size: clamp(34px, 5vw, 44px);
  margin: 10px 0 0;
}
.notice p {
  margin: 14px auto 0;
  max-width: 38ch;
}
.notice .button {
  margin-top: 24px;
}
.notice .text-button,
.notice .text-link {
  margin-top: 16px;
}
.notice-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.notice form {
  margin-top: 8px;
}

/* Sign in */
.auth-split {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.auth-headline {
  margin-top: 18px;
  font: 400 clamp(52px, 7.4vw, 108px) / 0.94 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.auth-headline em {
  color: var(--accent);
}
.auth-points {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 12px;
  max-width: 440px;
}
.auth-points li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14.5px;
}
.auth-points span {
  font: 500 11px/1.9 var(--mono);
  color: var(--accent-text);
}
.login-form {
  padding: 36px;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}
.login-form h1 {
  font-size: 44px;
}
.login-form > p {
  margin-top: 10px;
}
.login-form label {
  margin-top: 26px;
}
.login-form .button {
  margin-top: 18px;
  min-height: 48px;
}
.cf-turnstile {
  margin-top: 16px;
}

/* Deliveries */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
}
.delivery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s;
}
.delivery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.delivery-card:has(.delivery-link:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.delivery-cover {
  aspect-ratio: 16 / 10;
  border-radius: 15px;
  overflow: hidden;
  background: var(--sunken);
}
.delivery-cover.mosaic {
  display: grid;
  gap: 2px;
}
.delivery-cover.mosaic .file-thumb {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.delivery-cover.mosaic img {
  transition: transform 0.6s var(--ease);
}
.delivery-card:hover .delivery-cover.mosaic img {
  transform: scale(1.04);
}
.delivery-cover[data-count="2"] {
  grid-template-columns: 1fr 1fr;
}
.delivery-cover[data-count="3"] {
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.delivery-cover[data-count="3"] > :first-child {
  grid-row: span 2;
}
.delivery-cover[data-count="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.delivery-cover.stack {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 120%,
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 60%
    ),
    var(--sunken);
}
.delivery-cover.stack .file-thumb {
  width: 64px;
  height: 80px;
  border-radius: 10px;
  margin: 0 -10px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--tile-edge);
  transition: transform 0.35s var(--ease);
}
.delivery-cover.stack[data-count="2"] .file-thumb:first-child,
.delivery-cover.stack[data-count="3"] .file-thumb:first-child {
  transform: rotate(-8deg) translateY(4px);
}
.delivery-cover.stack .file-thumb:nth-child(2) {
  z-index: 1;
  transform: translateY(-4px);
}
.delivery-cover.stack .file-thumb:nth-child(3) {
  transform: rotate(8deg) translateY(4px);
}
.delivery-card:hover .delivery-cover.stack .file-thumb:first-child {
  transform: rotate(-12deg) translate(-6px, 4px);
}
.delivery-card:hover .delivery-cover.stack .file-thumb:nth-child(3) {
  transform: rotate(12deg) translate(6px, 4px);
}
.delivery-cover.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 10px,
      var(--line) 10px 11px
    ),
    var(--surface-2);
}
.delivery-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 8px 4px;
}
.delivery-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.delivery-when {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
.delivery-card h3 {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.delivery-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.delivery-link:focus-visible {
  outline: none;
}
.delivery-meta {
  margin-top: 4px;
  font-size: 13px;
}
.delivery-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.delivery-activity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2px;
}
.filter-empty {
  padding: 48px 0;
  text-align: center;
}
.empty-state {
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 28px;
  background: var(--surface-2);
}
.empty-state h2 {
  font: 400 clamp(34px, 4vw, 48px) / 1.05 var(--serif);
  letter-spacing: -0.01em;
}
.empty-state p {
  max-width: 46ch;
  margin: 14px auto 0;
}
.empty-state form {
  margin-top: 28px;
}
.empty-state.compact {
  padding: 48px 24px;
}
.empty-state.compact h2 {
  font-size: 32px;
}
.empty-art {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.empty-art span {
  width: 54px;
  height: 68px;
  margin: 0 -8px;
  border-radius: 10px;
  border: 2px solid var(--tile-edge);
  box-shadow: var(--shadow-md);
}
.empty-art span:nth-child(1) {
  background: var(--tile-image);
  transform: rotate(-10deg) translateY(6px);
}
.empty-art span:nth-child(2) {
  z-index: 1;
  background: var(--accent);
}
.empty-art span:nth-child(3) {
  background: var(--tile-document);
  transform: rotate(10deg) translateY(6px);
}

/* File tiles */
.file-thumb {
  --tile: var(--tile-other);
  --tile-ink: var(--tile-other-ink);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--tile);
  color: var(--tile-ink);
}
.file-thumb[data-kind="image"] {
  --tile: var(--tile-image);
  --tile-ink: var(--tile-image-ink);
}
.file-thumb[data-kind="video"] {
  --tile: var(--tile-video);
  --tile-ink: var(--tile-video-ink);
}
.file-thumb[data-kind="audio"] {
  --tile: var(--tile-audio);
  --tile-ink: var(--tile-audio-ink);
}
.file-thumb[data-kind="document"] {
  --tile: var(--tile-document);
  --tile-ink: var(--tile-document-ink);
}
.file-thumb[data-kind="design"] {
  --tile: var(--tile-design);
  --tile-ink: var(--tile-design-ink);
}
.file-thumb[data-kind="archive"] {
  --tile: var(--tile-archive);
  --tile-ink: var(--tile-archive-ink);
}
.file-thumb[data-kind="font"] {
  --tile: var(--tile-font);
  --tile-ink: var(--tile-font-ink);
}
.file-thumb[data-kind="code"] {
  --tile: var(--tile-code);
  --tile-ink: var(--tile-code-ink);
}
.file-ext {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.06em;
}
.file-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.provider-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Composer */
.composer-heading {
  margin-bottom: 32px;
}
.composer-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.composer-hint {
  font-size: 13px;
  color: var(--muted);
}
.composer-title {
  max-width: 22ch;
}
.composer-title[data-empty] {
  color: var(--muted);
  font-style: italic;
}
.composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.staging,
.details {
  min-width: 0;
}
.drop-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 32px 24px;
  text-align: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      ellipse at 50% 0%,
      color-mix(in srgb, var(--accent) 6%, transparent),
      transparent 70%
    ),
    var(--surface-2);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.2s var(--ease);
}
.drop-zone:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line-strong));
}
.drop-zone.dragging {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  transform: scale(1.01);
}
.drop-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease);
}
.drop-zone:hover .drop-icon,
.drop-zone.dragging .drop-icon {
  transform: translateY(-3px);
}
.drop-title {
  color: var(--ink);
  font: 400 26px/1.15 var(--serif);
}
.drop-sub {
  margin-top: 6px;
  font-size: 14px;
}
.source-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 36px;
}
.source-buttons > span {
  margin-right: 4px;
  font-size: 13px;
  color: var(--muted);
}
.source-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s,
    transform 0.15s var(--ease);
}
.source-button:hover:not(:disabled) {
  border-color: var(--ink-2);
  transform: translateY(-1px);
}
.source-button:disabled {
  opacity: 0.5;
}
.package-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.package-header h2 {
  font-size: 15px;
}
#file-summary {
  margin-left: 6px;
  font-weight: 400;
  color: var(--muted);
}
.view-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--sunken);
  border: 1px solid var(--line);
}
.view-toggle button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}
.view-toggle button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.file-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.file-list:empty {
  display: none;
}
.file-empty {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 14px;
  text-align: center;
}
.file-list:empty + .file-empty {
  display: block;
}
.file-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 10px 10px 12px;
  background: var(--surface);
  transition: background 0.15s;
}
.file-row + .file-row {
  border-top: 1px solid var(--line);
}
.file-row:hover {
  background: var(--surface-2);
}
.file-row[draggable="true"] {
  cursor: grab;
}
.file-row.is-dragging {
  opacity: 0.4;
}
.file-row .file-thumb {
  width: 52px;
  height: 52px;
}
.file-row[data-state="uploading"] .file-thumb img,
.file-row[data-state="failed"] .file-thumb,
.file-row[data-state="unavailable"] .file-thumb {
  opacity: 0.55;
}
.file-description {
  flex: 1;
  min-width: 0;
}
.file-description strong {
  display: block;
  font-size: 14.5px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.file-description small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.file-row[data-state="failed"] .file-description small,
.file-row[data-state="unavailable"] .file-description small {
  color: var(--danger);
}
.file-controls {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.file-row:hover .file-controls,
.file-row:focus-within .file-controls,
.file-row[data-state="failed"] .file-controls,
.file-row[data-state="unavailable"] .file-controls {
  opacity: 1;
}
.file-controls .remove-file:hover {
  color: var(--danger);
  background: var(--danger-soft);
}
.file-progress {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.file-row[data-state="uploading"] .file-progress {
  display: block;
}
.file-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  transition: transform 0.25s linear;
}
.file-row:not([data-progress]) .file-progress::after {
  width: 35%;
  transform: none;
  animation: indeterminate 1.1s ease-in-out infinite;
}
@keyframes indeterminate {
  from {
    left: -35%;
  }
  to {
    left: 100%;
  }
}
/* Grid layout of the same rows. */
.file-list[data-view="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.file-list[data-view="grid"]:empty {
  display: none;
}
.file-list[data-view="grid"] .file-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 6px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.file-list[data-view="grid"] .file-row + .file-row {
  border-top: 1px solid var(--line);
}
.file-list[data-view="grid"] .file-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 11px;
}
.file-list[data-view="grid"] .file-ext {
  font-size: 13px;
}
.file-list[data-view="grid"] .file-description {
  padding: 0 4px;
}
.file-list[data-view="grid"] .file-description strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-list[data-view="grid"] .file-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}
.file-list[data-view="grid"] .file-controls .icon-button {
  width: 28px;
  height: 28px;
}
.file-list[data-view="grid"] .move-up .icon,
.file-list[data-view="grid"] .move-down .icon {
  transform: rotate(-90deg);
}
.file-list[data-view="grid"] .file-progress {
  left: 10px;
  right: 10px;
  bottom: 6px;
}
.details {
  position: sticky;
  top: calc(var(--header) + 24px);
  display: grid;
  gap: 16px;
}
.details-card label:first-child {
  margin-top: 0;
}
.form-actions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.form-actions .button {
  min-height: 46px;
}
.access-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
#save-status {
  text-align: center;
}
.share-card {
  border-color: color-mix(in srgb, var(--live) 30%, var(--line));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--live) 7%, transparent),
      transparent 70%
    ),
    var(--surface);
}
.share-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.share-head label {
  margin: 0;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px var(--live-soft);
}
.share-field {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--field);
}
.share-field input {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  font: 12.5px/1.2 var(--mono);
  color: var(--ink-2);
  text-overflow: ellipsis;
}
.share-field input:focus {
  box-shadow: none;
}
.share-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.share-card .text-link {
  margin-top: 12px;
}
.danger-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 8px;
}
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.2s;
}
.drop-overlay span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 56px;
  border: 2px dashed var(--accent);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  font: 400 30px/1.1 var(--serif);
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.25s var(--ease);
}
.drop-overlay .icon {
  color: var(--accent);
}
body.dropping .drop-overlay {
  opacity: 1;
}
body.dropping .drop-overlay span {
  transform: none;
}

/* Archive */
.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.list-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto 16px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  transition: background 0.15s;
}
.list-row + .list-row {
  border-top: 1px solid var(--line);
}
.list-row:hover {
  background: var(--surface-2);
}
.list-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sunken);
  color: var(--muted);
}
.list-main {
  min-width: 0;
}
.list-main strong {
  display: block;
  overflow-wrap: anywhere;
}
.list-main small,
.list-meta {
  font-size: 12.5px;
  color: var(--muted);
}
.list-meta {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.list-count {
  flex-direction: row;
  gap: 4px;
  color: var(--ink-2);
}
.list-count span {
  color: var(--muted);
}
.list-chevron {
  color: var(--faint);
}
.pager {
  margin-top: 20px;
}
.archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.facts div {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.facts dt {
  font-size: 12px;
  color: var(--muted);
}
.facts dd {
  margin-top: 2px;
  font: 400 26px/1.1 var(--serif);
}
.archived-file-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.archived-file-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.archived-file-list .file-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  opacity: 0.7;
}
.archived-file-list .provider-badge {
  right: 2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border-radius: 5px;
}
.archived-file-list .provider-badge .mark {
  width: 10px;
  height: 10px;
}
.archived-file-list strong {
  font-weight: 500;
  font-size: 14px;
}
.archived-file-list span:last-child {
  font-size: 12.5px;
  color: var(--muted);
}
.restore-card p {
  margin-top: 8px;
  font-size: 14px;
}
.restore-card form {
  margin-top: 20px;
}
.restore-card .fine-print {
  margin-top: 12px;
}

/* Connections */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.notice-banner[data-tone="success"] {
  background: var(--live-soft);
  border-color: transparent;
  color: var(--live);
}
.notice-banner[data-tone="error"] {
  background: var(--danger-soft);
  border-color: transparent;
  color: var(--danger);
}
.connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.provider-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.provider-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.provider-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.provider-head h2 {
  font-size: 17px;
}
.provider-head .pill {
  margin-top: 4px;
}
.provider-card > p {
  font-size: 14px;
}
.provider-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.provider-actions form {
  margin: 0;
}
.provider-actions .fine-print {
  margin: 0;
}
.fallback-browser {
  display: grid;
  gap: 4px;
  margin: 20px 0;
}
.fallback-browser > p,
.fallback-browser label {
  margin: 0;
}
.fallback-browser label,
.fallback-browser a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.fallback-browser label:hover,
.fallback-browser a:hover {
  background: var(--sunken);
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}
.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.inline-form input {
  flex: 1;
}
.sender-preview {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--ink);
  font: 400 22px/1.2 var(--serif);
  overflow-wrap: anywhere;
}
.storage-figure {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.storage-figure strong {
  margin-right: 4px;
  color: var(--ink);
  font: 400 44px/1 var(--serif);
  letter-spacing: -0.01em;
}
.storage-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.storage-meter span {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.storage-meter progress {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--sunken);
}
.storage-meter progress::-webkit-progress-bar {
  background: var(--sunken);
}
.storage-meter progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink), var(--accent));
}
.storage-meter progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink), var(--accent));
}
.settings-grid .card > p:not(.sender-preview):not(.storage-figure) {
  font-size: 14px;
}
.settings-grid .text-link {
  margin-top: 16px;
}

/* Recipient */
.recipient-main {
  width: min(100% - 2 * var(--gutter), 1120px);
  padding-top: clamp(40px, 7vw, 88px);
}
.recipient-intro {
  max-width: 860px;
  margin-bottom: 48px;
}
.recipient-intro h1 {
  margin-top: 16px;
  font-size: clamp(46px, 7.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.recipient-intro .back-link {
  margin-bottom: 8px;
}
.recipient-message {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.contents-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 28px 0 24px;
}
.contents-summary li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.download-all {
  min-height: 54px;
  padding: 12px 26px 12px 22px;
  font-size: 15.5px;
  box-shadow: var(--shadow-md);
}
.download-all > span {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}
.download-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 60ch;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 14px;
}
.download-warning .icon {
  margin-top: 2px;
}
.recipient-files {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.recipient-file {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 18px 12px 12px;
  transition: background 0.15s;
}
.recipient-file + .recipient-file {
  border-top: 1px solid var(--line);
}
.recipient-file .file-thumb {
  width: 52px;
  height: 52px;
}
a.recipient-file:hover {
  background: var(--surface-2);
}
.recipient-file-text {
  flex: 1;
  min-width: 0;
}
.recipient-file strong {
  display: block;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.recipient-file small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.download-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    transform 0.18s var(--ease);
}
a.recipient-file:hover .download-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: translateY(1px);
}
.recipient-file.unavailable {
  opacity: 0.6;
}
.recipient-file.unavailable small {
  color: var(--danger);
}
.recipient-file.unavailable .download-arrow {
  display: none;
}
.recipient-files.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.gallery .recipient-file {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 6px;
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.gallery .recipient-file + .recipient-file {
  border-top: 1px solid var(--line);
}
a.gallery .recipient-file:hover,
.gallery a.recipient-file:hover {
  background: var(--surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery .file-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}
.gallery .file-ext {
  font-size: 15px;
}
.gallery .file-thumb img {
  transition: transform 0.6s var(--ease);
}
.gallery a.recipient-file:hover .file-thumb img {
  transform: scale(1.04);
}
.gallery .recipient-file-text {
  padding: 12px 52px 8px 10px;
}
.recipient-files.gallery .recipient-file strong {
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.gallery .download-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
}
.recipient-bottom {
  margin-top: 28px;
  font-size: 13px;
}
.site-footer {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.site-footer > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer .brand-word {
  font-size: 18px;
}
.site-footer .brand-mark {
  width: 18px;
  height: 18px;
}

/* Cloud browsing and review dialogs */
.dropbox-browser {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(88dvh, 920px);
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dropbox-browser[open] {
  animation: pop 0.2s var(--ease);
}
.dropbox-browser::backdrop {
  background: rgb(10 10 9 / 45%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.db-header {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -28px;
  padding: 22px 28px 14px;
  background: var(--surface);
}
.db-header,
.db-toolbar,
.db-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.db-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 32px/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.db-toolbar {
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.db-toolbar label {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0;
}
.db-toolbar label input {
  font-size: 14.5px;
}
.db-toolbar > .text-button {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  min-height: 38px;
}
.db-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  color: var(--muted);
}
.db-breadcrumbs .text-button {
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 8px;
}
.db-breadcrumbs .text-button:hover {
  background: var(--sunken);
}
.db-breadcrumbs .text-button:last-of-type {
  color: var(--ink);
}
.db-status {
  min-height: 22px;
  margin-top: 6px;
  font-size: 12.5px;
}
.db-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}
.db-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.2s var(--ease);
}
.db-card:hover {
  border-color: var(--line-strong);
}
.db-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.db-card.selected::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    no-repeat center;
  box-shadow: 0 0 0 2px var(--surface);
}
.db-select {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.db-select strong {
  margin-top: 8px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.db-select small,
.db-reason {
  padding: 0 4px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.db-select:disabled {
  cursor: not-allowed;
}
.db-select:disabled .db-visual,
.db-select:disabled strong {
  opacity: 0.5;
}
.db-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 11px;
}
.db-visual.file-thumb {
  border-radius: 11px;
}
.db-icon {
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.06em;
}
.db-icon .icon {
  width: 30px;
  height: 30px;
}
.db-icon-hidden {
  visibility: hidden;
}
.db-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.db-card > button {
  align-self: flex-start;
  min-height: 30px;
  margin: 4px 0 0;
  padding: 2px 4px;
  font-size: 12.5px;
}
.db-reason {
  display: block;
  margin-top: 2px;
}
.db-list {
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.db-list .db-card {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}
.db-list .db-card + .db-card {
  border-top: 1px solid var(--line);
}
.db-list .db-card.selected {
  box-shadow: inset 3px 0 0 var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.db-list .db-card.selected::after {
  top: 50%;
  left: auto;
  right: 14px;
  transform: translateY(-50%);
}
.db-list .db-select {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.db-list .db-visual {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  aspect-ratio: auto;
  border-radius: 10px;
}
.db-list .db-icon {
  font-size: 9.5px;
}
.db-list .db-icon .icon {
  width: 20px;
  height: 20px;
}
.db-list .db-select strong {
  margin: 0;
  -webkit-line-clamp: 1;
}
.db-list .db-card > button {
  margin: 0;
  flex-shrink: 0;
}
.db-list .db-card.selected > button:last-of-type {
  margin-right: 30px;
}
/* Folders stay compact in the grid so previews surface sooner. */
.db-entries:not(.db-list) .db-card.is-folder {
  align-self: start;
  padding: 8px 8px 4px;
}
.db-entries:not(.db-list) .is-folder .db-select {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}
.db-entries:not(.db-list) .is-folder .db-visual {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  aspect-ratio: auto;
  border-radius: 10px;
}
.db-entries:not(.db-list) .is-folder .db-icon .icon {
  width: 20px;
  height: 20px;
}
.db-entries:not(.db-list) .is-folder .db-select strong {
  margin: 0;
  padding: 0;
  -webkit-line-clamp: 1;
}
.db-entries:not(.db-list) .is-folder .db-select small {
  padding: 0;
}
.db-preview {
  margin: 8px 0 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow-wrap: anywhere;
}
.db-preview h3 {
  margin-top: 12px;
  font: 400 26px/1.15 var(--serif);
}
.db-preview p {
  font-size: 13px;
}
.db-preview img {
  display: block;
  max-width: 100%;
  max-height: 50dvh;
  margin: 16px auto 0;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: var(--shadow-md);
}
.db-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex-wrap: wrap;
  margin: 0 -28px;
  padding: 14px 28px 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.db-footer > strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.db-footer > .button {
  margin-left: auto;
}
.db-selected {
  order: 4;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 84px;
  overflow: auto;
}
.db-selected:empty {
  display: none;
}
.db-selected button {
  max-width: 100%;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: left;
}
.cloud-review {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}
.cloud-review:not([open]) {
  display: none;
}
.cloud-review > h2 {
  font: 400 32px/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.cloud-review > p:first-of-type {
  margin-top: 6px;
  font-size: 13.5px;
}
.cloud-review > label {
  margin: 16px 0 8px;
}
.cloud-review-rows {
  flex: 1;
  min-height: 120px;
  margin-top: 14px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cloud-review-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.cloud-review-row + .cloud-review-row {
  border-top: 1px solid var(--line);
}
.cloud-review-row:hover {
  background: var(--surface-2);
}
.cloud-review-row input {
  margin-top: 2px;
}
.cloud-review-row span {
  min-width: 0;
}
.cloud-review-row strong,
.cloud-review-row small {
  display: block;
  overflow-wrap: anywhere;
}
.cloud-review-row strong {
  font-weight: 550;
}
.cloud-review-row small {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.cloud-review .db-footer {
  position: static;
  flex-shrink: 0;
  margin-top: 12px;
}
.cloud-review .db-footer p {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
}
.cloud-review > button {
  align-self: flex-start;
  margin-top: 8px;
}

.cloud-review-row .file-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.cloud-review-row .file-ext {
  font-size: 8.5px;
}
.db-visual[data-kind="folder"] {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-2));
  color: var(--accent-text);
}
.file-row img,
.db-visual img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Confirmation dialog and toast */
.confirm-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.confirm-dialog[open] {
  animation: pop 0.18s var(--ease);
}
.confirm-dialog::backdrop {
  background: rgb(10 10 9 / 45%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.confirm-dialog h2 {
  font: 400 30px/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.confirm-dialog p {
  margin-top: 10px;
  font-size: 14.5px;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.button.danger {
  background: var(--danger);
  color: var(--bg);
}
.button.danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 85%, var(--ink));
  color: var(--bg);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease);
}
.toast:empty {
  display: none;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */
@media (max-width: 1080px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .main-nav {
    justify-self: center;
  }
}
@media (max-width: 920px) {
  .composer-grid {
    grid-template-columns: 1fr;
  }
  .details {
    position: static;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .auth-split {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .auth-points {
    margin-top: 28px;
  }
}
@media (max-width: 760px) {
  :root {
    --header: 58px;
  }
  .site-header-inner {
    grid-template-columns: 1fr auto;
  }
  .main-nav,
  .header-actions {
    display: none;
  }
  .header-note {
    grid-column: 2;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
  }
  .mobile-menu[open] summary {
    background: var(--ink);
    color: var(--bg);
  }
  .mobile-menu-panel {
    width: min(300px, calc(100vw - 2 * var(--gutter)));
    padding: 10px;
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu nav a {
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
  }
  .mobile-menu nav a:hover {
    background: var(--sunken);
  }
  .mobile-menu nav a[aria-current="page"] {
    background: var(--sunken);
    color: var(--ink);
  }
  .mobile-menu form + form {
    margin-top: 6px;
  }
  .main,
  .recipient-main {
    padding: 28px 0 64px;
  }
  .page-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .drop-zone {
    min-height: 168px;
    padding: 24px 16px;
  }
  .drop-title {
    font-size: 23px;
  }
  .file-row {
    gap: 12px;
    padding: 10px 6px 10px 10px;
  }
  .file-row .file-thumb {
    width: 46px;
    height: 46px;
  }
  .file-list[data-view="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-row {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
  }
  .list-row .list-meta {
    display: none;
  }
  .facts {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .facts div {
    padding: 10px;
  }
  .card {
    padding: 20px;
  }
  .login-form {
    padding: 26px 22px;
  }
  .notice {
    padding: 32px 22px 28px;
  }
  .inline-form {
    flex-direction: column;
  }
  .recipient-intro {
    margin-bottom: 32px;
  }
  .recipient-message {
    font-size: 16.5px;
  }
  .download-all {
    width: 100%;
  }
  .recipient-files:not(.gallery) .recipient-file {
    gap: 12px;
    padding: 10px 12px 10px 10px;
  }
  .recipient-files:not(.gallery) .file-thumb {
    width: 46px;
    height: 46px;
  }
  .recipient-files.gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gallery .recipient-file-text {
    padding: 10px 6px 4px;
  }
  .gallery .recipient-file strong {
    font-size: 13px;
  }
  .gallery .download-arrow {
    display: none;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .dropbox-browser {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
  }
  .db-header,
  .db-footer {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .db-header h2,
  .cloud-review > h2 {
    font-size: 26px;
  }
  .cloud-review {
    padding-top: 18px;
  }
  .db-toolbar {
    gap: 8px;
  }
  .db-toolbar label {
    flex-basis: 100%;
  }
  .db-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .db-entries.db-list {
    grid-template-columns: 1fr;
  }
  .db-list .db-card {
    flex-wrap: wrap;
  }
  .db-footer > .button {
    width: 100%;
  }
}
@media (hover: none) {
  .file-controls {
    opacity: 1;
  }
  .delivery-card:hover,
  .gallery a.recipient-file:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
