:root {
  --bg: #0f172a;
  --card: #1e293b;
  --line: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --ok: #22c55e;
  --err: #f87171;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100dvh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

h1 { font-size: 1.4rem; margin: 0; letter-spacing: -0.5px; }

.lock {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

form { display: flex; flex-direction: column; gap: 12px; }

input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
}

.remember { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }

button[type="submit"] {
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #04293a;
  cursor: pointer;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 36px 16px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.dropzone .big { font-size: 2.5rem; line-height: 1; color: var(--accent); }

.queue { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.item .name { word-break: break-all; font-size: 0.92rem; }
.item .status { font-size: 0.8rem; white-space: nowrap; }
.item .status.ok { color: var(--ok); }
.item .status.err { color: var(--err); }

.bar { height: 6px; border-radius: 99px; background: #0b1220; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.15s ease; }

.error { color: var(--err); font-size: 0.9rem; }

footer { text-align: center; margin-top: auto; }
