:root{--bg: #0f1117;--surface: #1a1d27;--border: #2a2d3a;--text: #e4e4e7;--text-muted: #9ca3af;--accent: #6366f1;--accent-hover: #818cf8;--success: #22c55e;--error: #ef4444}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}.app{max-width:800px;margin:0 auto;padding:2rem}h1{font-size:1.75rem;font-weight:700;margin-bottom:.25rem}.subtitle{color:var(--text-muted);margin-bottom:2rem;font-size:.95rem}.actions{display:flex;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}.btn{padding:.65rem 1.25rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:.9rem;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;gap:.5rem}.btn:hover{border-color:var(--accent);background:#1e2130}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-danger{background:var(--error);border-color:var(--error);color:#fff}.btn-danger:hover{background:#dc2626}.btn:disabled{opacity:.5;cursor:not-allowed}.upload-zone{border:2px dashed var(--border);border-radius:12px;padding:3rem 2rem;text-align:center;cursor:pointer;transition:all .2s ease;margin-bottom:2rem}.upload-zone:hover,.upload-zone.dragover{border-color:var(--accent);background:#6366f10d}.upload-zone p{color:var(--text-muted);margin-top:.5rem;font-size:.9rem}.results{display:flex;flex-direction:column;gap:.75rem}.result-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1rem 1.25rem;display:flex;justify-content:space-between;align-items:center}.result-card .info{display:flex;flex-direction:column;gap:.15rem}.result-card .filename{font-weight:600;font-size:.95rem}.result-card .meta{color:var(--text-muted);font-size:.8rem}.badge{padding:.25rem .75rem;border-radius:999px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.badge-invoice{background:#22c55e26;color:#22c55e}.badge-tax-statement{background:#eab30826;color:#eab308}.badge-unrecognized{background:#9ca3af26;color:#9ca3af}.section-title{font-size:1.1rem;font-weight:600;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2rem;min-width:320px}.modal h3{margin-bottom:1rem;font-size:1.1rem}.modal select{width:100%;padding:.6rem;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.95rem;margin-bottom:1.25rem}.modal .modal-actions{display:flex;gap:.75rem;justify-content:flex-end}.folders-section{margin-top:2rem}.folder-group{margin-bottom:1.25rem}.folder-group h4{font-size:.95rem;font-weight:600;margin-bottom:.5rem;text-transform:capitalize}.file-list{display:flex;flex-direction:column;gap:.25rem}.file-item{padding:.35rem .75rem;background:var(--bg);border-radius:4px;font-size:.85rem;color:var(--text-muted);font-family:monospace}.spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--text-muted);border-top-color:var(--accent);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.status-msg{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;margin-bottom:1rem;font-size:.9rem}.status-msg.error{border-color:var(--error);color:var(--error)}.status-msg.success{border-color:var(--success);color:var(--success)}
