:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #657381;
  --line: #d9e0e5;
  --surface: #ffffff;
  --canvas: #f5f7f8;
  --accent: #116b5d;
  --accent-dark: #0b5147;
  --accent-soft: #e3f1ed;
  --danger: #a33b37;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; background: var(--canvas); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 5vw; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .18em; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 20px; font-weight: 400; }
.status-pill { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-pill.is-paused { border-color: #e4b8b4; color: var(--danger); background: #fff8f7; }
.shell { width: min(820px, calc(100% - 36px)); margin: 0 auto; padding: 44px 0 36px; }
.intro { max-width: 700px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 700px; margin: 0; font-size: 46px; line-height: 1.12; letter-spacing: 0; }
.intro p:last-child { max-width: 580px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.mode-switch { display: flex; gap: 4px; width: fit-content; padding: 4px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: #edf1f2; }
.mode-button { border: 0; border-radius: 5px; padding: 9px 17px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.mode-button.is-active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(23,33,43,.12); }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 9px 30px rgba(37,55,67,.05); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .68fr); align-items: start; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .field legend { color: var(--ink); font-size: 13px; font-weight: 800; }
.field small, .dropzone small, .footnote { color: var(--muted); font-size: 12px; line-height: 1.45; }
input[type=email], input[type=text] { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 7px; padding: 0 13px; outline: none; color: var(--ink); background: #fbfcfc; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.downloads-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.downloads-field legend { padding: 0; margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #f4f6f6; }
.segmented label { position: relative; cursor: pointer; text-align: center; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 10px 5px; border-radius: 5px; color: var(--muted); font-size: 13px; }
.segmented input:checked + span { color: var(--accent-dark); background: var(--surface); box-shadow: 0 1px 3px rgba(23,33,43,.12); font-weight: 800; }
.dropzone { display: grid; place-items: center; min-height: 170px; margin: 24px 0 20px; padding: 24px; border: 1px dashed #9eafb7; border-radius: 7px; color: var(--muted); text-align: center; cursor: pointer; background: #fbfcfc; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 25px; }
.dropzone strong, .dropzone small { max-width: 100%; overflow-wrap: anywhere; }
.dropzone strong { color: var(--ink); font-size: 15px; }
.progress-wrap { margin: 0 0 20px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
progress { display: block; width: 100%; height: 8px; accent-color: var(--accent); }
.action-row { display: flex; align-items: center; gap: 12px; }
.primary-button, .download-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 7px; padding: 0 17px; color: #fff; background: var(--accent); text-decoration: none; cursor: pointer; font-weight: 800; }
.primary-button:hover, .download-button:hover { background: var(--accent-dark); }
.primary-button:disabled { opacity: .5; cursor: wait; }
.quiet-button, .copy-button { border: 1px solid var(--line); border-radius: 7px; padding: 10px 14px; color: var(--muted); background: var(--surface); cursor: pointer; font-weight: 700; }
.form-message { min-height: 20px; margin: 14px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.form-message.is-error { color: var(--danger); }
#receive-form .primary-button { justify-self: start; margin-top: 14px; }
#receive-form .form-message { margin-top: 0; }
.result { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
.result-label { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.code-row code { overflow: hidden; color: var(--ink); font-size: clamp(21px, 5vw, 30px); font-weight: 900; letter-spacing: .15em; white-space: nowrap; }
.result p:not(.result-label) { color: var(--muted); font-size: 13px; line-height: 1.55; }
.text-button { border: 0; padding: 0; color: var(--accent); background: none; cursor: pointer; font-weight: 800; }
.download-result { display: grid; gap: 20px; margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
.file-summary { display: flex; align-items: center; gap: 13px; min-width: 0; }
.archive-badge { display: grid; place-items: center; flex: 0 0 45px; height: 45px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; font-weight: 900; }
.file-summary div { display: grid; min-width: 0; gap: 3px; }
.file-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-summary small { color: var(--muted); }
.footnote { display: flex; flex-wrap: wrap; gap: 13px 24px; margin-top: 17px; }
@media (max-width: 620px) {
  .topbar { padding: 0 18px; }
  .shell { width: min(100% - 28px, 820px); padding-top: 32px; }
  .intro { margin-bottom: 24px; }
  h1 { font-size: 34px; line-height: 1.14; }
  .intro p:last-child { font-size: 15px; line-height: 1.6; }
  .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .status-pill { font-size: 11px; }
  .dropzone { min-height: 160px; margin-top: 22px; padding: 20px; }
}
@media (max-width: 360px) {
  .topbar { padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .status-pill { padding: 6px 9px; }
  h1 { font-size: 30px; }
  .panel { padding: 18px; }
}
