:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  font-family: ui-sans-serif, system-ui, sans-serif;
  margin: 0; padding: 1.5rem;
  background: #0d0f12; color: #e5e7eb; line-height: 1.4;
  max-width: 1100px; margin-inline: auto;
}
h1 { margin-top: 0; }
h2 { margin-top: 2rem; border-bottom: 1px solid #2a2f36; padding-bottom: 0.4rem; }
a { color: #93c5fd; }
button {
  background: #2563eb; color: white; border: 0; padding: 0.45rem 0.9rem;
  border-radius: 6px; cursor: pointer; font-size: 0.9rem;
}
button.danger { background: #b91c1c; }
button.success { background: #15803d; }
button.secondary { background: #374151; }
button:hover { filter: brightness(1.1); }
button[disabled] { opacity: 0.5; cursor: not-allowed; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=file] {
  background: #1f2329; color: #e5e7eb; border: 1px solid #374151;
  padding: 0.45rem 0.7rem; border-radius: 6px; font: inherit; width: 100%;
}
label { display: block; font-size: 0.85rem; color: #9ca3af; margin: 0.3rem 0; }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 0.6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.card { background: #161a20; border: 1px solid #2a2f36; border-radius: 8px; padding: 1rem; margin-bottom: 0.8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.art {
  background: #161a20; border: 1px solid #2a2f36; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
}
.art img { width: 100%; height: 160px; object-fit: cover; background: #0a0c10; }
.art .meta { padding: 0.55rem 0.7rem; font-size: 0.8rem; }
.art.tombstoned { opacity: 0.5; }
.pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: #374151; font-size: 0.7rem; }
.pill.pending { background: #5a3b15; color: #fed7aa; }
.pill.approved { background: #1f4f2c; color: #bbf7d0; }
.pill.tombstoned { background: #5a1f1f; color: #fca5a5; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid #2a2f36; font-size: 0.9rem; vertical-align: top; }
code { background: #1f2329; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.85em; }
.muted { color: #9ca3af; font-size: 0.85rem; }
.center-card { max-width: 380px; margin: 6rem auto; }
.err { color: #fca5a5; min-height: 1.2em; font-size: 0.85rem; }
.toast {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  background: #1f2937; padding: 0.6rem 1rem; border-radius: 8px;
  border: 1px solid #374151; font-size: 0.9rem;
}
form > * + * { margin-top: 0.6rem; }
