:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --bg: #fafaf8;
  --muted: #5c5c5c;
  --line: #d8d8d4;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #ececea; --bg: #141414; --muted: #a3a3a0; --line: #3a3a38; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}
header, main, footer { max-width: 44rem; margin: 0 auto; padding: 1.5rem; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 600; text-decoration: none; color: inherit; }
nav ul { list-style: none; display: flex; gap: 0.75rem; margin: 0; padding: 0; }
nav a { color: var(--muted); }
nav a[aria-current="page"] { color: var(--fg); font-weight: 600; text-decoration: none; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 2rem 0 1.5rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.choice { border: 1px solid var(--line); border-radius: 0.5rem; padding: 1.25rem; }
.choice h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.choice p { margin: 0; color: var(--muted); }
.locales { list-style: none; padding: 0; }
.locales li { margin: 0.5rem 0; }
[hidden] { display: none !important; }
.field { margin: 0 0 1.25rem; }
.field > label, .label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0.35rem 0 0; }
.error { color: #b3261e; font-weight: 600; }
@media (prefers-color-scheme: dark) { .error { color: #ff8a80; } }
textarea, input[type="text"], input[type="password"], input[type="number"], select {
  width: 100%; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--muted); border-radius: 0.375rem; padding: 0.5rem 0.6rem;
}
input[type="number"] { max-width: 8rem; }
textarea { resize: vertical; min-height: 8rem; }
button {
  font: inherit; color: inherit; background: transparent; cursor: pointer;
  border: 1px solid var(--muted); border-radius: 0.375rem; padding: 0.5rem 1rem; min-height: 2.75rem;
}
button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
:focus-visible { outline: 3px solid #2f6fdf; outline-offset: 2px; }
.drop { border: 2px dashed var(--line); border-radius: 0.5rem; padding: 1rem; text-align: center; }
.drop p { margin: 0; }
.drop.over { border-color: var(--fg); }
.file-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.file-list button { min-height: 2.25rem; padding: 0.25rem 0.75rem; }
progress { width: 100%; height: 1rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 0.5rem; padding: 1rem; font: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; flex: none; }
.check label { font-weight: 600; }
.uploads { list-style: none; padding: 0; margin: 0; }
.uploads > li { border: 1px solid var(--line); border-radius: 0.5rem; padding: 1rem; margin: 0 0 1rem; overflow-wrap: anywhere; }
.uploads > li > p:first-child { margin-top: 0; }
#send-link, #keep-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
