/* The admin app's whole stylesheet. It is an internal tool for platform
   moderators, so it stays plain and readable rather than following the
   product's visual system. */
:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --text: #1c1b1f;
  --muted: #5f5b66;
  --border: #d9d5df;
  --accent: #0b6e4f;
  --danger: #b3261e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1c1b1f;
    --text: #ece9f1;
    --muted: #a9a4b2;
    --border: #3a3640;
    --accent: #6fd3a8;
    --danger: #f2b8b5;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font:
    16px/1.5 system-ui,
    sans-serif;
  background: var(--surface);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.topbar h1 {
  margin: 0;
  font-size: 1.125rem;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px;
}

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

.card header h3 {
  margin: 0;
}

.stack,
.action-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
}

button {
  justify-self: start;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
}

.context {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
}

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

.context dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reports {
  padding-left: 20px;
}

.note {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.error {
  color: var(--danger);
  margin: 0;
}
