:root {
  --bg: #FAF9FB; --surface: #FFFFFF; --sunk: #F0EDF2; --ink: #1D1622; --muted: #6A6172; --line: #E1DCE5;
  --brass: #9A6F17; --brass-soft: #F4EAD2; --on-brass: #FFFFFF; --danger: #BF2860; --ok: #0B7F72;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15121A; --surface: #201C25; --sunk: #1A171F; --ink: #F2EEF5; --muted: #A49BAD; --line: #2F2A36;
    --brass: #E3B95C; --brass-soft: #3A2F18; --on-brass: #1D1622; --danger: #F36C9F; --ok: #3CC4B3;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 560px; margin: 0 auto; padding: 28px 16px 64px; }
main.wide { max-width: 980px; }
h1 { font-size: 30px; line-height: 1.1; margin: 4px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0 0 8px; }
.eyebrow { color: var(--brass); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
p { margin: 0 0 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; }
label.field { display: block; font-weight: 600; margin: 0 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
textarea, input[type=text], input[type=password] {
  width: 100%; font: inherit; color: var(--ink); background: var(--sunk);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
textarea { min-height: 150px; resize: vertical; }
textarea:focus, input:focus, button:focus-visible, .pick:focus-within { outline: 2px solid var(--brass); outline-offset: 1px; }

select {
  width: 100%; font: inherit; color: var(--ink); background-color: var(--sunk); cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 40px 12px 12px; appearance: none;
  /* Own arrow, because iOS and Windows draw very different ones */
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
select:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

.pick {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px; color: var(--brass); font-weight: 700;
}
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--sunk); aspect-ratio: 9 / 16; border: 1px solid var(--line); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .size { position: absolute; left: 4px; bottom: 4px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 6px; border-radius: 6px; }
.thumb .bad { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 6px; font-size: 12px; background: rgba(191,40,96,.85); color: #fff; }
.thumb button {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}

button.primary, a.primary {
  display: block; width: 100%; border: 0; border-radius: 14px; padding: 15px; font: inherit; font-weight: 700;
  background: var(--brass); color: var(--on-brass); cursor: pointer; text-align: center; text-decoration: none;
}
button.primary:disabled { opacity: .5; cursor: default; }
button.ghost {
  font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 7px 12px; cursor: pointer;
}
button.ghost.danger { color: var(--danger); }
.error { color: var(--danger); font-weight: 600; margin: 10px 0 0; }

.progress { height: 8px; background: var(--sunk); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress div { height: 100%; width: 0; background: var(--brass); transition: width .2s; }

details { margin-top: 10px; }
summary { cursor: pointer; color: var(--brass); font-weight: 600; }
details ol { padding-left: 20px; margin: 8px 0 0; }
.human { margin: 0 0 12px; min-height: 0; }
.req { color: var(--danger); }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.center { text-align: center; margin-top: 14px; }
a { color: var(--brass); }
.prose h2 { margin-top: 22px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.hidden { display: none !important; }
.done { text-align: center; padding: 28px 18px; }
.done .tick { font-size: 44px; color: var(--ok); line-height: 1; }

/* Beheer */
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button[aria-pressed=true] { background: var(--brass-soft); border-color: var(--brass); }
.report h2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sunk); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.tag.bug { color: var(--danger); }
.tag.nieuw { background: var(--brass-soft); border-color: var(--brass); }
.tag.opgelost { color: var(--ok); }
.report .text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 10px 0; }
.media figure { margin: 0; }
.media img, .media video { width: 100%; max-height: 420px; object-fit: contain; background: #000; border-radius: 10px; display: block; }
.media figcaption { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.media a { color: var(--brass); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.meter { font-size: 14px; color: var(--muted); }
