/* Админка: тот же «осязаемый» стиль, что у мини-приложения. */
:root {
  color-scheme: light;
  --paper: #e8e8e3;
  --card: #f6f6f2;
  --ink: #111111;
  --muted: #6b6b66;
  --dark: #414040;
  --lime: #b8ec68;
  --red: #b3261e;
  --radius: 12px;
  --font: "Inter", "Segoe UI", Roboto, -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 0, 0, .13) 1px, transparent 1.2px);
  background-size: 18px 18px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

/* Вход / настройка */
.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.panel {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 6px 6px 0 var(--ink);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font: 700 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 { margin: 0 0 8px; font-size: 32px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
h2 { margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.sub { margin: 0 0 24px; color: var(--muted); font-weight: 500; line-height: 1.45; }
.msg { margin: 16px 0 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.msg.err { color: var(--red); }
.msg:empty { display: none; }

.btn {
  width: 100%;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--dark);
  color: var(--lime);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { box-shadow: 0 4px 0 var(--ink), 0 0 12px var(--lime); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.small { width: auto; height: 38px; padding: 0 14px; font-size: 12px; box-shadow: 0 3px 0 var(--ink); }
.btn.light { background: var(--card); color: var(--ink); }
.btn.danger { background: var(--card); color: var(--red); }
.link {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
label.field { display: block; margin: 0 0 18px; font-size: 14px; font-weight: 700; }
label.field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

/* Панель */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 2px solid var(--ink);
  background: var(--card);
}
.brand { font: 800 18px/1 var(--font); letter-spacing: -0.01em; }
.brand b { padding: 3px 7px; border: 2px solid var(--ink); border-radius: 6px; background: var(--lime); }
main.wrap { max-width: 1100px; margin: 0 auto; padding: 28px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat {
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 5px 5px 0 var(--ink);
}
.stat .num { font: 900 34px/1 var(--font); letter-spacing: -0.02em; }
.stat .lbl { margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.box {
  margin-bottom: 28px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 5px 5px 0 var(--ink);
  overflow-x: auto;
}
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.box-head h2 { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid rgba(0, 0, 0, .12); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
td.mono { font-family: var(--mono); }
.tag { padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.yes { background: var(--lime); }
.tag.no { background: #fff; color: var(--muted); }
.empty { color: var(--muted); font-weight: 600; }
