:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101214;
  color: #f3f4f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(36, 70, 58, 0.7), transparent 38%),
    linear-gradient(280deg, rgba(117, 52, 46, 0.42), transparent 42%),
    #101214;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 430px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 28px;
  background: rgba(16, 18, 20, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 8px;
  color: #9fd3b7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 22px;
  font-size: 2rem;
  line-height: 1.05;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #c9ccc6;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 12px;
  background: #171a1d;
  color: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

button,
.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #9fd3b7;
  color: #101214;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.hint,
.muted {
  color: #b8bcb5;
  line-height: 1.55;
}

.hint {
  margin: 18px 0 0;
}

.admin-panel {
  width: min(100%, 920px);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.tool-block {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.tool-block h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.notice {
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(159, 211, 183, 0.13);
  color: #dff5e9;
}

.notice.error {
  background: rgba(227, 91, 75, 0.16);
  color: #ffd8d4;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px;
  text-align: left;
}

th {
  color: #9fd3b7;
  font-weight: 800;
}

@media (max-width: 760px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
