:root {
  --bg: #0d0a09; --panel: #171210; --line: rgba(255,255,255,.08); --text: #f4ece8; --muted: #a99c96; --faint: #6f6460;
  --accent: #ff8a3d; --accent-2: #ffc078; --accent-rgb: 255, 138, 61; --good: #8fd16a; --bad: #ff7c8a;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { background: radial-gradient(1200px 600px at 50% -10%, rgba(var(--accent-rgb), .12), transparent 60%), var(--bg); min-height: 100vh; }
main { max-width: 860px; margin: 0 auto; padding: 56px 16px 40px; }
header { text-align: center; margin-bottom: 28px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: .08em; }
.brand img { filter: drop-shadow(0 8px 24px rgba(var(--accent-rgb), .35)); }
.brand b { color: var(--accent); }
.kicker { color: var(--accent-2); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 6vw, 48px); margin: 0; font-weight: 650; letter-spacing: -.02em; }
h1 span { color: var(--accent); }
.lead { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 1.5px dashed rgba(var(--accent-rgb), .45); border-radius: 16px;
  cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { background: rgba(var(--accent-rgb), .07); border-color: var(--accent); }
.drop svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop b { font-size: 16px; } .drop small { color: var(--muted); }
.drop.locked { pointer-events: none; opacity: .5; }

.list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.list .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.list .s { font-size: 12px; color: var(--muted); }
.list .x { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 16px; }
.list .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.list .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }
.list li.done .bar i { background: var(--good); } .list li.done .s { color: var(--good); }
.list li.error .bar i { background: var(--bad); width: 100% !important; } .list li.error .s { color: var(--bad); }
.list .note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

.opts { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 18px; }
.opts label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; background: rgba(255,255,255,.05); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: rgba(var(--accent-rgb), .2); color: #fff; }
select { background: #221a17; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; }

.actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.overall { flex: 1; min-width: 180px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
.overall i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }
.overall span { position: absolute; right: 0; top: 14px; font-size: 12px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; margin-left: auto; }
.btn.primary { background: var(--accent); color: #1a0d05; } .btn.primary:hover { filter: brightness(1.08); }
.btn.primary:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: none; border-color: var(--line); color: var(--muted); margin-left: 0; }
.hidden { display: none !important; }
.msg { min-height: 18px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.msg.bad { color: var(--bad); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.facts div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.facts b { display: block; font-size: 14px; margin-bottom: 4px; } .facts span { color: var(--muted); font-size: 13px; line-height: 1.5; }
footer { color: var(--faint); font-size: 12px; text-align: center; margin-top: 22px; line-height: 1.5; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } .btn { width: 100%; margin-left: 0; } main { padding-top: 36px; } }
