:root {
  color: #202225;
  background: #f6f7f4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --ink: #202225;
  --muted: #65706c;
  --paper: #f6f7f4;
  --panel: #ffffff;
  --line: #d8ded8;
  --red: #e6533c;
  --green: #1f7a5a;
  --yellow: #f4c84a;
  --blue: #2f5f8f;
  --sidebar: #171916;
  --soft: #eef2ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

button:hover:not(:disabled) {
  border-color: var(--ink);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.eyebrow,
.slot-code,
.metric-card span,
.daily-card span {
  margin: 0 0 8px;
  color: #8a3d1d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

input[type="password"],
input[type="text"],
input[type="number"],
input[type="datetime-local"] {
  width: min(260px, 42vw);
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.config-grid label {
  display: grid;
  gap: 8px;
}

.config-grid label span,
.config-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.config-grid input[type="text"],
.config-grid input[type="number"],
.config-grid input[type="datetime-local"],
.config-grid select {
  width: 100%;
}

.config-note {
  display: block;
  margin-top: 12px;
}

select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

select {
  height: 38px;
  padding: 0 12px;
  font-weight: 900;
}

textarea {
  width: 100%;
  min-height: 180px;
  margin-top: 14px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.secondary {
  background: #fff;
}

.quick-actions {
  justify-content: flex-start;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.toast {
  min-height: 22px;
  color: var(--muted);
  font-weight: 900;
}

.toast.success {
  color: var(--green);
}

.toast.error {
  color: var(--red);
}

.module {
  display: none;
}

.module.active {
  display: grid;
  gap: 18px;
}

.check-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.check-item.warning span {
  background: #ffe0d8;
  color: var(--red);
}

.check-item.passed span {
  background: #dff3e9;
  color: var(--green);
}

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


  input[type="password"],
  input[type="text"],
  input[type="number"],
  input[type="datetime-local"],
  select,
  button {
    width: 100%;
  }
}
