:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --paper: #f6f3ee;
  --card: #fffcf8;
  --accent: #9a3412;
  --accent-dark: #7c2d12;
  --ok: #166534;
  --danger: #9f1239;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: "Segoe UI", Candara, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 320px at 10% -10%, #ffedd5 0%, transparent 60%),
    var(--paper);
}
.top {
  display: flex;
  align-items: center;
  padding: 22px 7vw 0;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand p, .muted { color: var(--muted); margin: 0; }
.brand strong { font-size: 1.05rem; }
.mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(#fff, #fff) 8px 6px / 18px 26px no-repeat,
    linear-gradient(#fff, #fff) 16px 10px / 18px 26px no-repeat,
    var(--accent);
  box-shadow: 0 8px 20px rgba(154, 52, 18, .25);
}
main { padding: 28px 7vw 64px; max-width: 980px; }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin: 0 0 8px; }
.hero p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(28, 25, 23, .05);
}
h1, h2 { font-weight: 650; }
.lead { color: var(--muted); }
label { display: block; font-size: .92rem; margin: 14px 0 6px; }
input[type="text"], input[type="password"], select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.drop {
  border: 1.5px dashed #d6d3d1;
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  background: #fff;
}
.drop.over { border-color: var(--accent); background: #fff7ed; }
.drop-title { font-size: 1.25rem; margin: 0 0 6px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
button, .link-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.queue { margin-top: 18px; }
.queue-head, .result { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.queue-head select { width: 240px; }
#samples { margin: 12px 0; padding-left: 1.4rem; color: var(--muted); }
.folder { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.check { display: flex; gap: 8px; align-items: center; }
.progress { margin-top: 18px; }
.bar { height: 10px; background: #f5f5f4; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.error { color: var(--danger); }
.result { margin-top: 18px; align-items: center; }
#skipped { width: 100%; color: var(--muted); }
@media (max-width: 700px) {
  .top, main { padding-left: 16px; padding-right: 16px; }
  .queue-head, .result { align-items: stretch; }
  .queue-head select { width: 100%; }
}
