:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent: #22c55e;
  --accent-2: #3b82f6;
  --border: #1f2937;
  --danger: #ef4444;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, Arial, sans-serif; background: #020617; color: var(--text); }
button, input, select, textarea { font: inherit; }
.container { max-width: 1400px; margin: 0 auto; padding: 16px; }
.card { background: rgba(17,24,39,.96); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.title { font-size: 1.5rem; font-weight: 700; }
.subtitle { color: var(--muted); font-size: .95rem; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid #334155; background: #0b1220; color: white; }
textarea { min-height: 90px; resize: vertical; }
label { display: block; margin-bottom: 8px; color: #cbd5e1; font-size: .92rem; }
.btn { border: 0; border-radius: 12px; padding: 11px 14px; cursor: pointer; color: white; background: #334155; }
.btn.primary { background: var(--accent); color: #052e16; font-weight: 700; }
.btn.secondary { background: var(--accent-2); }
.btn.danger { background: var(--danger); }
.btn.ghost { background: transparent; border: 1px solid #334155; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1000px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #1f2937; vertical-align: top; text-align: left; }
th { position: sticky; top: 0; background: #0b1220; z-index: 1; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #1f2937; font-size: .8rem; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.kpi { padding: 14px; border-radius: 16px; background: #0b1220; border: 1px solid #1f2937; }
.kpi .value { font-size: 1.6rem; font-weight: 800; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: min(450px, 100%); }
.nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.nav button.active { background: var(--accent-2); }
.small { font-size: .85rem; color: var(--muted); }
.success { color: #86efac; }
.hidden { display:none; }
