:root {
  --ink: #25211f;
  --muted: #746b66;
  --line: #e7ded7;
  --paper: #fffaf6;
  --white: #ffffff;
  --rose: #be4f62;
  --leaf: #47715d;
  --soft: #f3ebe3;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7f1ec;
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, #25211f, #463530);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; margin-bottom: 30px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--rose); border-radius: 50%; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar a {
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
}
.sidebar a:hover, .sidebar a.active { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.main { padding: 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.topbar h1 { margin: 0; font-size: 1.9rem; }
.user-pill { padding: 8px 12px; border-radius: 999px; background: var(--white); color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(61, 38, 31, 0.08);
}
.stat strong { display: block; margin-top: 8px; font-size: 2rem; color: var(--rose); }
.section { margin-top: 22px; }
.section h2 { margin: 0 0 14px; font-size: 1.3rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tabs a { padding: 9px 12px; border-radius: 999px; background: var(--white); color: var(--muted); border: 1px solid var(--line); }
.tabs a.active { color: var(--white); background: var(--leaf); border-color: var(--leaf); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span { color: var(--muted); font-size: 0.9rem; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
}
.field textarea { min-height: 100px; resize: vertical; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--white);
  background: var(--rose);
  cursor: pointer;
}
.button.secondary { background: var(--leaf); }
.button.muted { background: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.9rem; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--white);
  background: var(--leaf);
  cursor: pointer;
}
.mini-button.danger { background: #b23b3b; }
.notice { padding: 12px 14px; border-radius: 8px; background: #e8f3e9; color: #2f6847; margin-bottom: 16px; }
.error { padding: 12px 14px; border-radius: 8px; background: #ffe8e8; color: #9b2d2d; margin-bottom: 16px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #f9dce2, #fffaf6 48%, #dfe9df); }
.login-card { width: min(420px, 100%); }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid, .form-grid { grid-template-columns: 1fr; }
}
