:root {
  --bg: #0b0f14;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: rgba(255,255,255,0.08);
  --accent: #60a5fa;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.container { max-width: 1100px; margin: 0 auto; padding: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input, select, button, textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  outline: none;
}
button {
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(96,165,250,0.18);
}
button:hover { background: rgba(96,165,250,0.26); }
button.secondary { background: rgba(255,255,255,0.06); }
button.secondary:hover { background: rgba(255,255,255,0.1); }

.small { font-size: 13px; color: var(--muted); }

.tableWrap {
  margin-top: 14px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: rgba(255,255,255,0.02);
}
th, td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px;
  text-align: center;
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: rgba(17,24,39,0.98); }
thead th { position: sticky; top: 0; background: rgba(17,24,39,0.98); z-index: 2; }
thead th:first-child { z-index: 3; }

td.statusCell { cursor: pointer; font-size: 18px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }

hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.notice { color: #fbbf24; }
.ok { color: #34d399; }
.err { color: #f87171; }
