:root{
  --bg:#020617;
  --card:#020617;
  --accent:#22c55e;
  --accent-soft:rgba(34,197,94,0.08);
  --accent2:#0ea5e9;
  --border:#1f2937;
  --text:#e5e7eb;
  --muted:#9ca3af;
}
*{box-sizing:border-box;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Inter",sans-serif}
body{
  margin:0;
  background:radial-gradient(circle at top,#0f172a 0,#020617 55%,#000 100%);
  color:var(--text);
}
.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:260px 1fr;
}
.sidebar{
  border-right:1px solid var(--border);
  padding:18px 16px;
  background:rgba(15,23,42,0.96);
  backdrop-filter:blur(16px);
}
.logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  margin-bottom:18px;
}
.logo-pill{
  width:26px;height:26px;border-radius:999px;
  background:radial-gradient(circle at 30% 20%,#22c55e,#16a34a,#0f766e);
  display:flex;align-items:center;justify-content:center;
  font-size:12px;color:white;
}
.nav-section-title{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin:14px 0 6px;
}
.nav{
  list-style:none;
  padding:0;
  margin:0;
}
.nav li{
  margin-bottom:4px;
}
.nav button{
  width:100%;
  text-align:left;
  border-radius:10px;
  border:0;
  background:transparent;
  color:var(--muted);
  padding:8px 10px;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}
.nav button.active{
  background:var(--accent-soft);
  color:var(--text);
}
.nav button:hover{
  background:rgba(15,23,42,0.9);
}
.nav .pill{
  font-size:10px;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(148,163,184,.25);
}

.main{
  padding:18px 22px;
}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.3);
  font-size:11px;
  color:var(--muted);
}
.chip span{
  display:inline-flex;
  width:6px;height:6px;
  border-radius:999px;
  background:#22c55e;
}
h1{
  font-size:18px;
  margin:0 0 4px;
}
h2{
  font-size:15px;
  margin:0 0 8px;
}
p{
  margin:0;
}
.card{
  background:rgba(15,23,42,0.9);
  border-radius:16px;
  border:1px solid var(--border);
  padding:14px 16px;
  margin-bottom:14px;
}
.card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.card-header h2{
  margin:0;
}
.btn{
  border-radius:999px;
  border:0;
  padding:7px 12px;
  font-size:12px;
  cursor:pointer;
}
.btn-primary{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:white;
}
.btn-ghost{
  background:transparent;
  color:var(--muted);
}
.grid-2{
  display:grid;
  grid-template-columns:2fr 1.3fr;
  gap:12px;
}
.table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}
.table th,.table td{
  padding:6px 4px;
  border-bottom:1px solid rgba(31,41,55,.8);
}
.table th{
  text-align:left;
  color:var(--muted);
  font-weight:500;
  font-size:11px;
}
.badge{
  padding:2px 8px;
  border-radius:999px;
  font-size:10px;
  background:rgba(31,41,55,1);
}
.badge.green{
  background:rgba(22,163,74,.18);
  color:#4ade80;
}
.badge.orange{
  background:rgba(194,65,12,.25);
  color:#fdba74;
}
.input-row{
  display:flex;
  gap:8px;
  margin-bottom:8px;
}
input, select{
  background:#020617;
  border-radius:10px;
  border:1px solid rgba(31,41,55,1);
  padding:7px 9px;
  font-size:12px;
  color:var(--text);
  width:100%;
}
input::placeholder{
  color:var(--muted);
}
.section{
  display:none;
}
.section.active{
  display:block;
}
.auth-layout{
  max-width:420px;
  margin:40px auto;
}
.auth-card{
  background:rgba(15,23,42,0.96);
  border-radius:16px;
  border:1px solid var(--border);
  padding:18px 16px 16px;
}
.auth-card h1{
  font-size:18px;
  margin-bottom:6px;
}
.auth-card p{
  font-size:13px;
  color:var(--muted);
  margin-bottom:14px;
}
.alert{
  font-size:12px;
  margin-bottom:8px;
  padding:6px 8px;
  border-radius:10px;
}
.alert.error{
  background:rgba(239,68,68,.15);
  color:#fecaca;
  border:1px solid rgba(248,113,113,.4);
}
@media(max-width:880px){
  .app-shell{
    grid-template-columns:1fr;
  }
  .sidebar{
    display:none;
  }
}
