/* Minimal skeleton styles. The full design system (Bootstrap 5.3, Inter, components) arrives in Prompt 1.3. */

:root {
    --bg: #F6F7FB;
    --surface: #FFFFFF;
    --text: #1A1D24;
    --muted: #6B7280;
    --primary: #5B5BD6;
    --income: #16A34A;
    --expense: #DC2626;
    --warning: #D97706;
    --border: #E5E7EB;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0F1115;
        --surface: #1A1D24;
        --text: #E8EAF0;
        --muted: #9CA3AF;
        --primary: #7C7CF0;
        --income: #22C55E;
        --expense: #F87171;
        --warning: #FBBF24;
        --border: #2A2E37;
        color-scheme: dark;
    }
}

*, *::before, *::after { 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;
}

a { color: var(--primary); }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
}

.brand { font-weight: 700; font-size: 1.125rem; text-decoration: none; }

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

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

h1 { font-size: 1.375rem; margin: 0 0 4px; }
h2 { font-size: 1.125rem; margin: 0 0 12px; }

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

.facts { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 16px 0 0; }
.facts dt { color: var(--muted); font-size: .8125rem; margin-top: 8px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.amount { font-weight: 700; font-variant-numeric: tabular-nums; }

.links { padding-left: 20px; margin: 0 0 16px; }
.links li { margin-bottom: 8px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: #FFFFFF; }

.flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--border); background: var(--surface); }
.flash-success { border-color: var(--income); }
.flash-error { border-color: var(--expense); }

.error-page { text-align: center; padding: 48px 0; }
.error-code { font-size: 3.5rem; font-weight: 800; color: var(--primary); margin: 0; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
