/* Общее для кабинета и ТСД: шрифт, бейджи, моноширинный текст, тёмная тема для утилит Tailwind.
   Своё у каждой стороны - app/cabinet/static/cabinet.css и app/tsd/static/tsd.css. */

body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.badge { display: inline-flex; align-items: center; padding: .05rem .45rem; border-radius: 9999px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ── тёмная тема ── */
html.dark { background: #0f172a; }
html.dark body { background: #0f172a; color: #e5e7eb; }
html.dark .bg-white { background-color: #1e293b !important; }
html.dark .bg-gray-50 { background-color: #263140 !important; }
html.dark .bg-gray-100 { background-color: #334155 !important; }
html.dark .text-gray-800, html.dark .text-gray-900 { color: #f1f5f9 !important; }
html.dark .text-gray-700 { color: #e2e8f0 !important; }
html.dark .text-gray-600 { color: #cbd5e1 !important; }
html.dark .text-gray-500 { color: #94a3b8 !important; }
html.dark .text-gray-400 { color: #64748b !important; }
html.dark .border-gray-100, html.dark .border-gray-200 { border-color: #334155 !important; }
html.dark .border-gray-300 { border-color: #475569 !important; }
html.dark .bg-emerald-50 { background-color: rgba(6,78,59,.35) !important; }
html.dark .bg-emerald-100 { background-color: rgba(6,95,70,.45) !important; }
html.dark .bg-amber-50 { background-color: rgba(120,53,15,.35) !important; }
html.dark .bg-amber-100 { background-color: rgba(146,64,14,.45) !important; }
html.dark .bg-rose-50 { background-color: rgba(136,19,55,.35) !important; }
html.dark .bg-rose-100 { background-color: rgba(159,18,57,.45) !important; }
html.dark .bg-indigo-50 { background-color: rgba(49,46,129,.35) !important; }
html.dark .bg-indigo-100 { background-color: rgba(55,48,163,.45) !important; }
html.dark .bg-sky-100 { background-color: rgba(12,74,110,.45) !important; }
html.dark .bg-violet-100 { background-color: rgba(76,29,149,.45) !important; }
html.dark .text-emerald-700, html.dark .text-emerald-800 { color: #6ee7b7 !important; }
html.dark .text-emerald-600 { color: #34d399 !important; }
html.dark .text-amber-700, html.dark .text-amber-800 { color: #fcd34d !important; }
html.dark .text-amber-600 { color: #fbbf24 !important; }
html.dark .text-rose-700, html.dark .text-rose-800 { color: #fda4af !important; }
html.dark .text-rose-600, html.dark .text-rose-500 { color: #fb7185 !important; }
html.dark .text-indigo-700, html.dark .text-indigo-800 { color: #a5b4fc !important; }
html.dark .text-indigo-600, html.dark .text-indigo-500 { color: #818cf8 !important; }
html.dark .text-sky-700 { color: #7dd3fc !important; }
html.dark .text-violet-700, html.dark .text-violet-600 { color: #c4b5fd !important; }
html.dark .border-emerald-100, html.dark .border-emerald-200, html.dark .border-emerald-300 { border-color: rgba(52,211,153,.4) !important; }
html.dark .border-amber-100, html.dark .border-amber-200, html.dark .border-amber-300 { border-color: rgba(251,191,36,.4) !important; }
html.dark .border-rose-100, html.dark .border-rose-200, html.dark .border-rose-300 { border-color: rgba(251,113,133,.4) !important; }
html.dark .border-indigo-100, html.dark .border-indigo-200, html.dark .border-indigo-300 { border-color: rgba(129,140,248,.4) !important; }
html.dark input, html.dark select, html.dark textarea { background: #1e293b !important; color: #f1f5f9 !important; border-color: #475569 !important; }
