/* NAKJÁ SaaS Design Tokens v0.2 alpha.3 - theme applies to UI, not reports */
:root {
  --nk-primary: #10324a; --nk-accent: #0f766e; --nk-background: #f6f8fb;
  --nk-surface: #ffffff; --nk-text: #15263e; --nk-muted: #475569;
  --nk-border: #cbd5e1; --nk-focus: #2563eb; --nk-success: #166534;
  --nk-warning: #92400e; --nk-danger: #b91c1c; --nk-info: #075985;
  --nk-radius: 1rem; --nk-shadow: 0 10px 30px rgba(15,23,42,.08);
  color-scheme: light;
}
html[data-resolved-theme="dark"] {
  --nk-primary: #9dd4ee; --nk-accent: #55d6c5; --nk-background: #101827;
  --nk-surface: #1b293a; --nk-text: #eff6ff; --nk-muted: #cbd5e1;
  --nk-border: #64748b; --nk-focus: #93c5fd; --nk-success: #86efac;
  --nk-warning: #fcd34d; --nk-danger: #fca5a5; --nk-info: #7dd3fc;
  --nk-shadow: 0 14px 36px rgba(0,0,0,.24); color-scheme: dark;
}
html body { background:var(--nk-background); color:var(--nk-text); }
html .card { background:var(--nk-surface); border-color:var(--nk-border); color:var(--nk-text); box-shadow:var(--nk-shadow); border-radius:var(--nk-radius); }
html input,html select,html textarea { accent-color:var(--nk-accent); }
/* WCAG legibility: replace low-contrast helper text on white surfaces. */
html main .text-slate-400 { color:var(--nk-muted) !important; }
html main .text-gray-400 { color:var(--nk-muted) !important; }
html main input::placeholder,html main textarea::placeholder { color:var(--nk-muted); opacity:1; }
html .mobile-bottom a,html .mobile-bottom button { min-height:44px; min-width:44px; }
html main .quick-event-primary { background:#0b625b !important; color:#fff !important; border-color:#0b625b !important; }
html[data-resolved-theme="dark"] main .quick-event-primary { background:#72e1cb !important; color:#12372f !important; }
html[data-resolved-theme="dark"] main .bg-teal-50 { background:#103e37 !important; }
html[data-resolved-theme="dark"] main .text-teal-900,html[data-resolved-theme="dark"] main .text-teal-700 { color:#c8f9e9 !important; }

html input:focus-visible,html select:focus-visible,html textarea:focus-visible,html a:focus-visible,html button:focus-visible {
  outline: 3px solid var(--nk-focus); outline-offset: 2px;
}
html[data-resolved-theme="dark"] main .bg-white,
html[data-resolved-theme="dark"] main .bg-slate-50,
html[data-resolved-theme="dark"] main .bg-gray-50,
html[data-resolved-theme="dark"] .mobile-bottom { background:var(--nk-surface) !important; color:var(--nk-text); }
html[data-resolved-theme="dark"] main .text-slate-800,
html[data-resolved-theme="dark"] main .text-slate-900,
html[data-resolved-theme="dark"] main .text-gray-900 { color:var(--nk-text) !important; }
html[data-resolved-theme="dark"] main .text-slate-400,
html[data-resolved-theme="dark"] main .text-slate-500,
html[data-resolved-theme="dark"] main .text-slate-600,
html[data-resolved-theme="dark"] main .text-gray-500 { color:var(--nk-muted) !important; }
html[data-resolved-theme="dark"] main input,
html[data-resolved-theme="dark"] main select,
html[data-resolved-theme="dark"] main textarea,
html[data-resolved-theme="dark"] main .border { background:var(--nk-surface); border-color:var(--nk-border); color:var(--nk-text); }
html[data-resolved-theme="dark"] main .bg-emerald-50 { background:#103f36; color:#d1fae5; }
html[data-resolved-theme="dark"] main .bg-red-50 { background:#4b1c23; color:#fee2e2; }
html[data-resolved-theme="dark"] main .bg-amber-50 { background:#453614; color:#fef3c7; }
html[data-resolved-theme="dark"] main .border-b { border-color:var(--nk-border); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition-duration:0.01ms !important; } }
@media print { html, html[data-resolved-theme="dark"] { color-scheme:light; }
  html body,html[data-resolved-theme="dark"] body { background:#fff !important; color:#111827 !important; }
  html .card,html[data-resolved-theme="dark"] .card { background:#fff !important; color:#111827 !important; box-shadow:none !important; }
}
