.admin {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 48px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.admin-header h1 {
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.02em;
}

.admin-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-title .muted { font-size: 13px; }

#user-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
#current-user {
  font-size: 13px;
  color: var(--muted);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--accent);
}

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-size: 16px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.15);
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.input-row input { flex: 1; min-width: 0; }
.input-row .btn { flex-shrink: 0; white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.18s ease, background 0.15s;
}
.btn.primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(91, 108, 255, 0.6);
}
.btn.primary:hover { box-shadow: 0 10px 24px -8px rgba(91, 108, 255, 0.7); }
.btn.primary:active { transform: translateY(1px); }
.btn.primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 14px;
  font-size: 13px;
}
.btn.ghost:hover { color: var(--fg); border-color: #cbd5e1; }

.btn.danger {
  background: transparent;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  font-size: 12px;
}
.btn.danger:hover { background: #fef2f2; }

.error {
  color: #b91c1c;
  font-size: 13px;
  margin: 0 0 10px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.users {
  list-style: none;
  margin: 0;
  padding: 0;
}

.users li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.users li:last-child { border-bottom: 0; }

.users .username {
  font-weight: 500;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.users .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.users .user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.users .user-name { font-size: 14px; font-weight: 600; }
.users .user-pwd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.users .pwd-value {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}
.users .copy-btn {
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.center { text-align: center; }
