:root {
  --bg: #0b0d12;
  --panel: #121622;
  --panel2: #0f1320;
  --text: #e9ecf1;
  --muted: #9ab1c3;
  --border: #232a3a;
  --primary: #6ea8fe;
  --danger: #ff6b6b;
  --ok: #32d296;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.header {
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tabs button {
  margin-left: 8px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
}

.btn-ghost {
  background: transparent;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 10px;
}

.card-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.muted {
  color: var(--muted);
}

.flash {
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
}

.flash.ok {
  background: #133c2c;
}

.flash.danger {
  background: #3c1313;
}
