:root {
  --bg: #11151b;
  --card: #1a2029;
  --text: #e6eaf0;
  --muted: #9aa5b4;
  --line: #2e3744;
  --accent: #5b8ff0;
  --accent-text: #0b0f14;
  --error-bg: #3a1d1f;
  --error-line: #7a3a3e;
  --success-bg: #17301f;
  --success-line: #2f6b43;
  --notice-bg: #33290f;
  --notice-line: #6b5a24;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

section, header { margin-bottom: 24px; }

h1 { font-size: 28px; margin: 4px 0 8px; }
h2 { font-size: 20px; margin: 0 0 8px; word-break: break-word; }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.muted { color: var(--muted); }

.tree {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  font-size: 14px;
}

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  border-radius: 8px;
  padding: 12px 16px;
}
.notice.error { background: var(--error-bg); border-color: var(--error-line); }
.notice.success { background: var(--success-bg); border-color: var(--success-line); }
.notice ul { margin: 4px 0 0; padding-left: 20px; }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 40px 16px;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}
.drop.over { border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

label[for="files-dir"] { display: block; font-weight: 600; margin: 16px 0 4px; }

select {
  width: 100%;
  max-width: 420px;
  padding: 8px;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

button {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}
button.secondary { background: transparent; color: var(--accent); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

progress { width: 100%; height: 14px; accent-color: var(--accent); }

#resume-list { padding-left: 20px; }
