:root {
  color-scheme: dark;
  --bg: #1a1d24;
  --surface: #232731;
  --surface-2: #2d323e;
  --border: #3a3f4d;
  --text: #e6e8eb;
  --text-dim: #aab1bd;
  --text-muted: #8b919e;
  --accent: #f5a623;
  --accent-hover: #ffb938;
  --success: #4ade80;
  --error: #f87171;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.5; min-height: 100vh;
}
.container { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }
header { text-align: center; margin-bottom: 32px; }
h1 { color: var(--accent); font-size: 2rem; margin: 0 0 8px 0; font-weight: 600; }
h2 { color: var(--accent); font-size: 1.2rem; margin: 0 0 16px 0; font-weight: 600; }
.tagline { color: var(--text-dim); margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin: 16px 0; }
.card.error { border-color: var(--error); }
.identity { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.identity-name { font-size: 1.2rem; font-weight: 600; }
.identity-grade { color: var(--text-dim); font-size: 0.95rem; margin-top: 2px; }
button { font-family: inherit; font-size: 1rem; font-weight: 600; padding: 12px 24px; border-radius: 4px; border: 0; cursor: pointer; transition: background-color 0.15s; }
.btn-primary { background: var(--accent); color: #1a1d24; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.summary-counts { display: flex; gap: 16px; margin: 16px 0; }
.count { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 16px; text-align: center; }
.count-num { font-size: 2rem; font-weight: 600; color: var(--accent); }
.count-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.folder-path { color: var(--text-dim); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.9rem; word-break: break-all; margin: 8px 0 0 0; }
.status { color: var(--text-dim); margin: 0; }
.progress-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; height: 8px; overflow: hidden; margin-bottom: 12px; }
.progress-bar { background: var(--accent); height: 100%; width: 0%; transition: width 0.2s; }
.progress-text { font-weight: 600; margin: 0 0 4px 0; }
.progress-current { color: var(--text-dim); font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.85rem; margin: 0; word-break: break-all; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.9em; }
footer { margin-top: 48px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
footer p { margin: 0; }
