/* src/styles/admin.css */
:root {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
}

body {
  display: flex;
  color: #f3f1ea;
  background: #171a1f;
  justify-content: center;
  align-items:  flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 40px 16px 16px;
  font-family: Atkinson Hyperlegible, Segoe UI, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.shell {
  width: 100%;
  min-width: 900px;
  max-width: 1000px;
}

.panel {
  background: #20242b;
  border: 1px solid #3c434c;
  min-height: 500px;
  padding: 12px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 12px;
}

h1, h2, p {
  margin: 0 0 10px;
}

h1 {
  font-size: 24px;
}

.sub {
  color: #cbc7bd;
}

.stack {
  margin-top: 14px;
}

input, textarea, button, select {
  font: inherit;
  color: #f3f1ea;
  background: #2a3038;
  border: 1px solid #4a525d;
  margin: 4px 0;
}

textarea {
  resize: vertical;
  min-height: 64px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 14px;
  font-size: 14px;
}

th, td {
  text-align: left;
  vertical-align: top;
  border: 1px solid #3c434c;
  padding: 6px;
}

button {
  cursor: pointer;
}

code, pre {
  font-family: IBM Plex Mono, SFMono-Regular, ui-monospace, monospace;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions {
  display: flex;
  gap: 8px;
}

#status {
  color: #9ec7ff;
  margin-top: 10px;
}

dialog {
  color: #f3f1ea;
  background: #20242b;
  border: 1px solid #3c434c;
  width: calc(100% - 24px);
  max-width: 760px;
  padding: 12px;
}

dialog::backdrop {
  background: #00000040;
}

@media (max-width: 760px) {
  .panel-head, .row {
    flex-direction: column;
  }
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 300px;
  margin: 0 auto;
}

form h2 {
  text-align: center;
}

.login .panel {
  display: flex;
  justify-content: center;
  align-items:  center;
}

.login .stack {
  margin-top: 0;
}
