:root {
  --bg: #0b1020;
  --panel: rgba(16, 24, 46, 0.86);
  --panel-2: rgba(21, 32, 61, 0.88);
  --line: rgba(255,255,255,0.08);
  --text: #eef3ff;
  --muted: #9ba7c2;
  --accent: #73a3ff;
  --accent-2: #72f0c4;
  --danger: #ff6b7b;
  --warn: #f4c46a;
  --success: #57d18c;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Pretendard, system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(115,163,255,0.18), transparent 35%),
              radial-gradient(circle at top right, rgba(114,240,196,0.16), transparent 28%),
              linear-gradient(180deg, #09111f, #0a1326 46%, #09111d);
}
button, input { font: inherit; }
.shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}
.sidebar, .main { padding: 24px; }
.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 27, 0.64);
  backdrop-filter: blur(18px);
}
.brand h1 { margin: 8px 0; font-size: 32px; }
.brand p, .brand__eyebrow, .hero__eyebrow, .dropzone__sub, .current-folder, .section-head button, .empty { color: var(--muted); }
.brand__eyebrow, .hero__eyebrow { letter-spacing: 0.18em; font-size: 12px; text-transform: uppercase; }
.main {
  display: grid;
  gap: 18px;
  align-content: start;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.hero h2 { margin: 10px 0 8px; font-size: 30px; }
.hero p { margin: 0; color: var(--muted); max-width: 780px; }
.hero__meta { display: grid; gap: 10px; min-width: 220px; text-align: right; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 18px; }
.ghost, button {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(115,163,255,0.18), rgba(115,163,255,0.08));
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
}
.folder-create { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 14px; }
.folder-list, .queue-list, .file-list { display: grid; gap: 12px; }
.folder-item, .queue-item, .file-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.folder-item.active { outline: 1px solid var(--accent); }
.folder-path { font-weight: 600; }
.folder-meta, .file-meta, .queue-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.dropzone {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(115,163,255,0.45);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(115,163,255,0.08), rgba(114,240,196,0.06));
  text-align: center;
  padding: 28px;
  cursor: pointer;
}
.dropzone.dragover { border-color: var(--accent-2); background: rgba(114,240,196,0.12); }
.dropzone__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.progress {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 12px;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}
.badge.success { color: #c5ffdf; background: rgba(87,209,140,0.14); }
.badge.warn { color: #ffe7ad; background: rgba(244,196,106,0.14); }
.badge.danger { color: #ffd4db; background: rgba(255,107,123,0.14); }
.stats dl { display: grid; gap: 10px; margin: 0; }
.stats div { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.stats strong { color: var(--text); }
.queue-head, .file-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.queue-item h3, .file-item h3 { margin: 0; font-size: 16px; }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { flex-direction: column; align-items: start; }
  .hero__meta { text-align: left; }
}
