:root {
    color-scheme: light;
    --page-bg: #f1f5f9;
    --panel: #ffffff;
    --border: #cbd5e1;
    --text: #0f172a;
    --muted: #475569;
    --accent: #0e7490;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

[hidden], [x-cloak] { display: none !important; }

[data-lucide] {
    width: 1rem;
    height: 1rem;
    stroke-width: 1.8;
}

button, a, input, select, textarea { transition: border-color 150ms, background-color 150ms, color 150ms, box-shadow 150ms; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgb(8 145 178 / 0.24);
    outline-offset: 2px;
}

.drop-zone.dragover {
    border-color: #0891b2 !important;
    background: #ecfeff !important;
}

.app-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #cbd5e1;
    border-top-color: #0891b2;
    border-radius: 999px;
    animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fade-in 220ms ease-out; }
@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.report-content { color: #334155; line-height: 1.7; }
.report-content h1, .report-content h2, .report-content h3 { color: #0f172a; font-weight: 700; line-height: 1.25; }
.report-content h1 { margin: 2rem 0 1rem; font-size: 1.75rem; }
.report-content h2 { margin: 1.75rem 0 0.75rem; border-bottom: 1px solid #cbd5e1; padding-bottom: 0.5rem; font-size: 1.3rem; }
.report-content h3 { margin: 1.25rem 0 0.5rem; font-size: 1.05rem; }
.report-content p, .report-content ul, .report-content ol { margin: 0.75rem 0; }
.report-content ul, .report-content ol { padding-left: 1.5rem; }
.report-content ul { list-style: disc; }
.report-content ol { list-style: decimal; }
.report-content code { border-radius: 0.25rem; background: #f1f5f9; padding: 0.15rem 0.35rem; color: #be123c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.report-content pre { overflow-x: auto; border: 1px solid #334155; border-radius: 0.5rem; background: #0f172a; padding: 1rem; color: #e2e8f0; }
.report-content pre code { background: transparent; padding: 0; color: inherit; }
.report-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.report-content th, .report-content td { border: 1px solid #cbd5e1; padding: 0.65rem 0.75rem; text-align: left; vertical-align: top; }
.report-content th { background: #e2e8f0; color: #0f172a; font-weight: 700; }
.report-content blockquote { border-left: 3px solid #0891b2; background: #ecfeff; margin: 1rem 0; padding: 0.75rem 1rem; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { border: 2px solid #e2e8f0; border-radius: 999px; background: #94a3b8; }

@media print {
    .no-print { display: none !important; }
    body { background: white; }
}
