:root {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --border: #e2ddd3;
  --text: #2b2620;
  --muted: #756d5f;
  --gold: #b8925a;
  --gold-dark: #96723f;
  --danger: #b3432b;
  --success: #3f7a4f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--gold-dark); }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #211c16;
  color: #ece6da;
  padding: 24px 16px;
}

.admin-sidebar .brand { font-weight: 700; margin-bottom: 24px; display: block; }
.admin-sidebar nav a {
  display: block;
  color: #d8cfbf;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
  font-size: 14px;
}
.admin-sidebar nav a:hover { background: #34291d; color: #fff; }

.admin-main { flex: 1; padding: 28px 32px; max-width: 1100px; }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=number], .field textarea, .field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.field textarea { min-height: 100px; }
.field-inline { display: flex; align-items: center; gap: 8px; }
.field-inline label { margin: 0; }

.btn-primary, .btn-secondary, .btn-danger {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.btn-primary { background: var(--gold-dark); color: #fff; }
.btn-secondary { background: #efe9dd; color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge-success { background: #e2f0e4; color: var(--success); }
.badge-muted { background: #eee; color: var(--muted); }
.badge-warning { background: #f6e6d8; color: #a15a12; }

.auth-error { color: var(--danger); font-size: 14px; }

.admin-auth-shell { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.admin-auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 32px; width: 340px; }
.admin-auth-brand { margin-bottom: 20px; }
.admin-auth-brand strong { display: block; font-size: 18px; }
.admin-auth-brand span { color: var(--muted); font-size: 13px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.actions form { display: inline; margin-right: 6px; }
.hint { color: var(--muted); font-size: 13px; }
