:root {
  --bg: #1a1d24;
  --surface: #232731;
  --surface-2: #2a2f3a;
  --border: #3a3f4d;
  --text: #e6e8eb;
  --text-dim: #aab1bd;
  --text-faint: #8b93a3;
  --accent: #f5a623;
  --accent-hover: #ffb938;
  --success: #4ade80;
  --error: #f87171;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

h1 {
  color: var(--accent);
  margin: 0 0 8px;
  font-size: 1.8rem;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.tagline {
  color: var(--text-dim);
  margin: 0 0 12px;
  font-size: 0.95rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  line-height: 1.6;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}

.success-card { border-color: var(--success); }
.error { border-color: var(--error); }

.label {
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.identity {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.identity-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.identity-grade {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.btn-primary, .btn-secondary {
  background: var(--accent);
  color: var(--bg);
  border: 0;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: #555; color: #aaa; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--text);
}

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

.summary-counts {
  display: flex;
  gap: 24px;
  margin: 16px 0;
}

.count {
  flex: 1;
  text-align: center;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 12px;
}

.count-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.count-label {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.folder-path {
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.status {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
}

.progress-wrap {
  background: var(--surface-2);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar {
  background: var(--accent);
  height: 100%;
  width: 0%;
  transition: width 0.2s;
}

.progress-current {
  font-weight: 600;
  margin: 0;
}

.progress-stage {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 4px 0 12px;
}

.progress-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: right;
}

.log {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 4px;
  padding: 8px;
}

.log li {
  padding: 4px 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.log-ok { color: var(--success); }
.log-error { color: var(--error); }

footer {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 32px;
}

code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}
