:root {
  --bg: #0d9f8f;
  --panel: #10203c;
  --panel-2: #152949;
  --field: #344766;
  --text: #ffffff;
  --muted: #c7d1e6;
  --ok: #1ac49b;
  --error: #df5b6d;
  --border: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0d9f8f 0%, #0a8779 100%);
}

.shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.panel {
  width: 100%;
  max-width: 760px;
  background: var(--panel);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.small-panel { max-width: 520px; }
.brand-row { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  font-size: 22px;
}
h1, h2 { margin: 0 0 10px; }
.subtle { color: var(--muted); margin: 0; }

.form-grid { display: grid; gap: 12px; }
label { font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 0;
  background: var(--field);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 15px;
}
textarea { min-height: 140px; resize: vertical; }
button, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  font-size: 16px;
  cursor: pointer;
}
.primary-btn { background: var(--ok); color: #fff; }
.secondary-btn { background: rgba(255,255,255,.12); color: #fff; }
.help-box, .notice-box {
  background: var(--panel-2);
  border-radius: 18px;
  padding: 18px 20px;
  margin-top: 10px;
}
.help-box ol { margin: 0; padding-left: 20px; color: var(--muted); }
.notice-box p { margin: 8px 0; color: var(--muted); }
.alert {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(26,196,155,.18); }
.alert-error { background: rgba(223,91,109,.18); }
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.status-grid div {
  background: var(--panel-2);
  border-radius: 16px;
  padding: 14px 16px;
}
.status-grid dt { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.status-grid dd { margin: 0; font-weight: 700; }

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.sidebar {
  background: #0d1830;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
}
.sidebar nav { display: grid; gap: 8px; }
.sidebar a {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.06);
  padding: 12px 14px;
  border-radius: 12px;
}
.content-panel {
  padding: 28px;
  overflow-x: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
}
.stat-card span { color: var(--muted); display: block; margin-bottom: 10px; }
.stat-card strong { font-size: 34px; }
.filters-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filters-row input, .filters-row select { max-width: 280px; }
.admin-form { max-width: 760px; }
.table-wrap {
  background: var(--panel);
  border-radius: 18px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th { color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
}
.help-box a {
  color: #dc2626; /* красный */
}

.alert alert-error a {
  color: #dc2626; /* красный */
}
