:root {
  --bg: #f6f4f1;
  --paper: #ffffff;
  --ink: #151312;
  --muted: #6b645f;
  --line: #d8d0c9;
  --accent: #2d2018;
  --accent-soft: #f0e6de;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(560px 240px at 0% -6%, rgba(146, 109, 78, 0.16), transparent 62%),
    radial-gradient(580px 230px at 100% 0%, rgba(177, 136, 104, 0.14), transparent 62%),
    var(--bg);
}

.admin-wrap {
  width: min(980px, 94vw);
  margin: 1.2rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-family: "Bodoni Moda", serif;
}

.admin-head a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 18px rgba(22, 17, 14, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(22, 17, 14, 0.09);
}

.stacked-form {
  display: grid;
  gap: 0.5rem;
}

.stacked-form input,
.stacked-form textarea,
.stacked-form button,
.stacked-form select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.62rem;
}

.stacked-form button {
  border: none;
  background: var(--ink);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.stacked-form button:hover {
  filter: brightness(1.06);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.list {
  display: grid;
  gap: 0.6rem;
}

.list-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  display: grid;
  gap: 0.45rem;
  background: #fff;
}

.list-row h3,
.list-row p {
  margin: 0;
}

.row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.row-actions button,
.row-actions select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
  padding: 0.35rem 0.65rem;
}

.row-actions button {
  cursor: pointer;
}

.admin-tools {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.admin-tools input,
.admin-tools select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.52rem 0.75rem;
}

.admin-metrics {
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.58rem 0.72rem;
  background: var(--accent-soft);
  font-size: 0.88rem;
  color: var(--muted);
}

:is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 860px) {
  .admin-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .admin-tools {
    grid-template-columns: 1fr auto;
  }

  .admin-head {
    grid-column: 1 / -1;
  }

  #ordersCard {
    grid-column: 1 / -1;
  }
}
