:root {
  --bg: #101827;
  --surface: #172133;
  --border: #26364B;
  --emerald: #0D8B69;
  --gold: #D6A84F;
  --text: #F1F5F9;
  --muted: #94A3B8;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--emerald); text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 256px; background: #0B1220; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px; }
.brand { padding-bottom: 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
.brand-title { font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { flex: 1; padding: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.nav-link { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.nav-link.active, .nav-link:hover { background: rgba(13,139,105,0.16); color: #34D399; }
.sidebar-footer { border-top: 1px solid var(--border); padding-top: 12px; font-size: 12px; color: var(--muted); }
.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 64px; border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.topbar-actions { display: flex; gap: 10px; }
.content { padding: 24px; max-width: 1320px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.kpi { font-size: 24px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.btn-primary { background: var(--emerald); color: #fff; border: 0; padding: 9px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 13px; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
input, select, textarea { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; }
.reply-box { margin-top: 16px; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
pre { white-space: pre-wrap; font-family: inherit; line-height: 1.5; }
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.alert-err { padding: 10px; border-radius: 8px; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); color: #FCA5A5; font-size: 13px; }
