/* Dropbox layout on top of the ws theme (ws.css): colours and fonts come from its tokens. */

body { min-height: 100vh; display: flex; flex-direction: column; color: var(--text-primary); }
h1 { margin: 0; font-size: 64px; line-height: 72px; font-weight: 700; letter-spacing: -0.5px; }
h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; }
.mono { font-family: var(--font-mono); }
.hero { padding: 72px 5% 56px; }
.wrap { max-width: var(--container-1000); margin: 0 auto; }
.body { flex-grow: 1; padding: 56px 5% 72px; background: var(--surface-050); }
.body.centered { display: flex; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.body.centered .wrap { width: 100%; }
.stack { display: flex; flex-direction: column; }
.form { gap: var(--space-30); }
.sections { gap: var(--space-40); }
.gap-10 { gap: var(--space-10); }
.gap-16 { gap: 16px; }
.gap-20 { gap: var(--space-20); }
.note { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.label { font-size: 14px; font-weight: 500; color: var(--text-read); }
.lead { margin: 0; font-size: 16px; color: var(--text-card); }
.lead-soft { margin: 0; max-width: 640px; font-size: 22px; line-height: 30px; letter-spacing: 0.6px; color: var(--text-soft); }
.error { margin: 0; color: var(--warning); font-weight: 500; }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-20); flex-wrap: wrap; }
.ws-btn:disabled { opacity: 0.5; cursor: default; }
.btn-secondary { padding: 0 var(--space-20); background: var(--lighter-blue); color: var(--text-on-light); font-weight: 500; }
.btn-dl { height: 40px; padding: 0 16px; gap: 8px; font-size: 16px; }

/* Upload */
.zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-10); padding: 64px var(--space-30); border: 2px dashed var(--surface-700); border-radius: var(--radius-10); background: var(--surface-150); text-align: center; cursor: pointer; }
.zone:hover { border-color: var(--light-blue); }
.zone:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.zone-title { font-size: 24px; line-height: 30px; font-weight: 700; }
.zone-detail { font-size: 16px; line-height: 22px; color: var(--text-card); }
.zone-max { margin-top: var(--space-6); font-size: 14px; color: var(--text-muted); }
.text-input { height: 50px; padding: 0 16px; border: 1px solid var(--surface-700); border-radius: var(--radius-2); background: var(--surface-400); color: var(--text-primary); font: 16px var(--font-sans); }

/* Uploaded and sent */
.ok { margin: 0 0 var(--space-20); display: flex; align-items: center; gap: var(--space-10); font-size: 16px; font-weight: 600; color: #6fd060; }
.share { display: flex; gap: var(--space-10); flex-wrap: wrap; }
.share input { flex: 1 1 420px; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid var(--surface-700); border-radius: var(--radius-2); background: var(--surface-400); color: var(--text-primary); font: 16px var(--font-mono); }
.files { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-5); overflow: hidden; background: var(--surface-300); }
.files li { display: flex; align-items: center; gap: 14px; padding: 16px var(--space-20); border-top: 1px solid var(--surface-050); }
.files li:first-child { border-top: 0; }
.fname { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.size { font: 14px var(--font-mono); color: var(--text-card); }
.ws-read { align-self: flex-start; }

/* Download */
.dl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-10); }
.dl li { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 16px 16px var(--space-20); border-radius: var(--radius-5); background: var(--surface-300); box-shadow: var(--shadow-card); }
.dl .meta { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl .fname { font-size: 18px; line-height: 24px; font-weight: 600; }

@media (max-width: 700px) {
  h1 { font-size: 40px; line-height: 46px; }
  .hero { padding: 48px 20px 40px; }
  .body { padding: 40px 20px 56px; }
  .ws-btn--inverse { min-width: 0; width: 100%; }
}
