:root{
  --bg:#0f172a;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --green:#16a34a;
  --orange:#f59e0b;
  --red:#dc2626;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial, sans-serif;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:var(--text);
  min-height:100vh;
  padding:24px;
}
.wrap{max-width:1180px;margin:0 auto}
.top{
  color:white;
  margin-bottom:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.top h1{margin:0;font-size:28px}
.top p{margin:6px 0 0;color:#cbd5e1}
.btn, button{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  background:var(--blue);
  color:white;
  text-decoration:none;
  font-weight:bold;
  border:0;
  cursor:pointer;
}
.btn:hover, button:hover{background:var(--blue2)}
.btn.gray{background:#64748b}
.card{
  background:var(--card);
  border-radius:18px;
  padding:18px;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}
.alert{
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:14px;
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
}
.ok{
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:14px;
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}
.form{
  max-width:420px;
  margin:40px auto;
}
label{
  display:block;
  font-weight:bold;
  margin:12px 0 6px;
}
input{
  width:100%;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:15px;
}
.table-wrap{overflow:auto}
table{
  width:100%;
  border-collapse:collapse;
  min-width:950px;
}
th,td{
  padding:11px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
  font-size:14px;
}
th{background:#f8fafc;color:#334155;position:sticky;top:0}
.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:bold;
}
.active{background:#dcfce7;color:#166534}
.off{background:#fee2e2;color:#991b1b}
.maint{background:#fef3c7;color:#92400e}
.small{color:var(--muted);font-size:12px}
.footer{
  margin-top:14px;
  color:#cbd5e1;
  text-align:center;
  font-size:13px;
}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
