:root {
  --ink: #1c1d1a;
  --ink-soft: #5b5c56;
  --paper: #faf9f4;
  --panel: #ffffff;
  --line: #e2e0d5;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --accent-soft: #e4efe9;
  --danger: #a4402e;
  --danger-soft: #f6e6e1;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Noto Serif", serif;
  line-height: 1.5;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 48px 20px 80px; }
.wrap.narrow { max-width: 380px; }
header h1, .wrap > h1 { font-size: 26px; margin: 0 0 24px; letter-spacing: -0.01em; }
.admin-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

.status {
  display: flex; padding: 18px 20px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 24px;
}
.status .count { font-size: 22px; font-weight: 600; }
.status .count small { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.status .bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 10px; width: 100%; }
.status .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.status.full .count { color: var(--danger); }
.status.full .bar > i { background: var(--danger); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.card h2 { font-size: 17px; margin: 0 0 16px; font-weight: 600; }
label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"] {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink);
}
button, .link-btn {
  font: inherit; font-size: 15px; font-weight: 600; padding: 11px 20px;
  border-radius: 7px; border: none; cursor: pointer; display: inline-block; text-decoration: none;
}
button.primary, .link-btn.primary { background: var(--accent); color: var(--accent-ink); }
button.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
button.ghost:hover { border-color: var(--accent); color: var(--accent); }
button.small, .link-btn.small { padding: 6px 10px; font-size: 13px; font-weight: 500; }

.msg { padding: 13px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.msg.ok { background: var(--accent-soft); color: var(--accent); }
.msg.err { background: var(--danger-soft); color: var(--danger); }
.full-note { text-align: center; padding: 28px 20px; color: var(--ink-soft); font-size: 15px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-weight: 500; font-size: 12.5px; }
td.num { color: var(--ink-soft); width: 28px; }
.row-actions { text-align: right; }
.row-actions form { display: inline; }
.empty-admin { color: var(--ink-soft); font-size: 14px; }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form input[type="number"] { width: 76px; }
.table-scroll { overflow-x: auto; }

/* Honeypot anti-spam field — hidden from real visitors, left in the
   tab/DOM order so simple bots still find and fill it. */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
