:root {
  --bg: #0b1220;
  --card: #111a2e;
  --text: #e7eefc;
  --muted: #a9b6d6;
  --accent: #5ad7ff;
  --danger: #ff6b6b;
}

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

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  font-size: 22px;
}

h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

h3 {
  font-size: 14px;
  margin: 18px 0 10px 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

input, select {
  background: #0f1730;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
}

.btn {
  background: var(--accent);
  color: #062033;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(90, 215, 255, 0.5);
}

.hidden { display: none; }
.muted { color: var(--muted); }

.pre {
  background: #0f1730;
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  max-height: 240px;
}

.signin {
  min-height: 38px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}

textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  background: #0f1730;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
}

.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: rgba(20, 30, 56, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 420px;
}

