.admin-topbar { align-items: center; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.login-panel { max-width: 420px; margin: 40px auto; }
.login-panel h2 { margin: 0 0 6px; font-size: 19px; color: var(--text); }

.field {
  width: 100%;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  padding: 11px 13px;
  margin-top: 8px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field:focus {
  background: #fff;
  border-color: rgba(44, 153, 218, 0.55);
  box-shadow: 0 0 0 4px rgba(44, 153, 218, 0.1);
}

textarea.field { resize: vertical; line-height: 1.7; min-height: 92px; font-family: inherit; }

.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sec-head h3 { margin: 0 0 12px; font-size: 15.5px; color: var(--text); }

.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 22px; }
.lb { display: block; font-size: 13px; color: #2c4b58; font-weight: 600; }
.hint { margin: 6px 0 0; font-size: 12px; color: #93a7b2; line-height: 1.5; }

.switch { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #2c4b58; cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: #2c99da; cursor: pointer; }
.switch.sm { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.radio-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  color: #2c4b58;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.radio-group label:hover { border-color: rgba(44, 153, 218, 0.45); }
.radio-group input { accent-color: #2c99da; }
.radio-group input:checked + span { color: var(--green-ink); font-weight: 600; }
.radio-group label:has(input:checked) {
  background: rgba(111, 228, 137, 0.14);
  border-color: rgba(111, 228, 137, 0.5);
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-card {
  background: linear-gradient(140deg, rgba(111, 228, 137, 0.12), rgba(44, 153, 218, 0.1));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 17px;
}
.stat-card .n { font-size: 23px; font-weight: 700; color: var(--blue-ink); }
.stat-card .t { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-card.hl .n { color: var(--green-ink); }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.log-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.log-table th, .log-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--text); }
.log-table th { color: var(--muted); font-weight: 600; background: var(--panel-soft); }
.log-table tr:last-child td { border-bottom: none; }
.tag { padding: 2px 9px; border-radius: 7px; font-size: 11.5px; }
.tag.ok { background: rgba(111, 228, 137, 0.18); color: var(--green-ink); font-weight: 600; }
.tag.no { background: rgba(217, 82, 96, 0.12); color: #b93a48; }
.tag.info { background: rgba(44, 153, 218, 0.1); color: var(--blue-ink); }

.save-tip { font-size: 13px; color: var(--green-ink); align-self: center; font-weight: 600; }
.btn.wide { width: 100%; margin-top: 14px; }
