:root{
  --bg:#0b0f16;
  --panel:#0f1622;
  --panel2:#0c121d;
  --border:#1d2a3d;
  --text:#e7eefc;
  --muted:#9fb0cc;
  --accent:#7aa2ff;
  --danger:#ff5c7a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1000px 600px at 10% 10%, rgba(122,162,255,.15), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(255,92,122,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.link{color:var(--text); text-decoration:none}
.link:hover{color:var(--accent)}
.topbar{
  position:sticky; top:0; z-index:30;
  background: linear-gradient(to bottom, rgba(11,15,22,.92), rgba(11,15,22,.75));
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
}
.brand{display:flex; flex-direction:column; gap:3px}
.logo{font-weight:800; letter-spacing:.2px; font-size:18px}
.sub{font-size:12px; color:var(--muted)}
.top-actions{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.wrap{max-width:1280px; margin:18px auto; padding:0 18px 30px}
.card{
  background: linear-gradient(180deg, rgba(15,22,34,.92), rgba(12,18,29,.92));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
  margin-bottom:14px;
}
.card-head{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding-bottom:10px}
.h{font-size:14px; font-weight:800; letter-spacing:.2px}
.muted{color:var(--muted); font-size:12px}
.row{display:flex; align-items:center}
.gap{gap:10px}
.spacer{flex:1}
.pill{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.02);
}
kbd{
  font-family:var(--mono);
  font-size:11px;
  padding:2px 6px;
  border:1px solid var(--border);
  border-bottom-color: rgba(0,0,0,.6);
  border-radius:8px;
  background: rgba(255,255,255,.03);
}
.btn{
  border:1px solid var(--border);
  background: rgba(122,162,255,.12);
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.btn:hover{border-color: rgba(122,162,255,.45)}
.btn.ghost{background: rgba(255,255,255,.03)}
.btn.danger{background: rgba(255,92,122,.16); border-color: rgba(255,92,122,.35)}
.input,.select,.cell{
  width:100%;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  border-radius:10px;
  padding:8px 10px;
  font-size:12px;
  outline:none;
}
.input:focus,.select:focus,.cell:focus{border-color: rgba(122,162,255,.55)}
.import{
  width:100%;
  min-height:90px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color:var(--text);
  border-radius:12px;
  padding:10px;
  font-size:12px;
  font-family:var(--mono);
  outline:none;
}
.filters{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  padding-bottom:12px;
}
.table-wrap{
  overflow:auto;
  border-radius:12px;
  border:1px solid var(--border);
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:980px;
}
.table thead th{
  position:sticky; top:0;
  background: rgba(11,15,22,.95);
  border-bottom:1px solid var(--border);
  padding:10px;
  text-align:left;
  font-size:11px;
  color:var(--muted);
}
.table tbody td{
  border-bottom:1px solid rgba(29,42,61,.6);
  padding:8px 10px;
  vertical-align:middle;
  font-size:12px;
}
.table tbody tr:hover td{background: rgba(255,255,255,.02)}
.c-check{width:46px}
.c-small{width:90px}
.checkbox{transform: translateY(1px)}
.cell{
  background: rgba(255,255,255,.02);
  padding:7px 9px;
}
.cell.mono{font-family:var(--mono)}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  font-size:11px;
  color:var(--muted);
  background: rgba(255,255,255,.02);
}
.dot{width:8px; height:8px; border-radius:999px; background: rgba(122,162,255,.8)}
.dot.ok{background: rgba(120,255,170,.8)}
.dot.no{background: rgba(255,92,122,.8)}
.foot{padding:8px 4px}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.field{display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--muted)}
@media (max-width: 900px){
  .grid2{grid-template-columns:1fr}
  .top-actions{justify-content:flex-start}
  .table{min-width:1100px}
}
.compact .table tbody td{padding:6px 8px}
.compact .input,.compact .select,.compact .cell{padding:6px 8px}
