* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #08090d;
  --bg-surface: #141722;
  --bg-elevated: #1a1e2e;
  --accent: #8b6cf6;
  --text-primary: #eaecf4;
  --text-secondary: #8890a8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

body.top { align-items: flex-start; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.card.wide { max-width: 720px; }

h1 { font-size: 20px; margin-bottom: 20px; }

label { display: block; font-size: 13px; color: var(--text-secondary); margin: 12px 0 4px; }

input, select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 10px 12px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary { background: var(--bg-elevated); border: 1px solid var(--border); width: auto; margin: 0; }

.error { color: #f87171; font-size: 13px; margin-top: 12px; min-height: 16px; }
.hint { color: var(--text-secondary); font-size: 13px; margin-top: 12px; }

table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
th { color: var(--text-secondary); font-weight: 500; }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions button { margin: 0; padding: 4px 10px; font-size: 12px; }

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.top-bar a { color: var(--text-secondary); font-size: 13px; text-decoration: none; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: var(--bg-elevated); }

.ok-text { color: #4ade80; }
.err-text { color: #f87171; }
