.users-page { min-height: 100vh; }
.users-shell { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; padding: 24px; }
.users-header, .users-intro, .user-row { display: flex; align-items: center; }
.users-header { justify-content: space-between; gap: 20px; padding-bottom: 24px; }
.users-header .identity-line { min-width: 0; }
.users-intro { justify-content: space-between; gap: 20px; margin: 10px 0 22px; }
.users-intro h1 { margin: 0; font-size: 30px; }
.users-intro p { margin: 5px 0 0; color: var(--muted); }
.user-session { color: var(--green); }
.users-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(460px, 1.28fr); gap: 16px; }
.users-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 23, 34, .92); box-shadow: var(--shadow); }
.users-card h2 { margin: 0 0 18px; font-size: 21px; }
.users-card label { display: block; margin: 13px 0 6px; color: var(--text-soft); font-weight: 700; }
.users-card input, .users-card select { width: 100%; height: 42px; padding: 0 11px; color: #fff; border: 1px solid #38516a; border-radius: 7px; outline: 0; background: #06111b; font: inherit; }
.users-card input:focus, .users-card select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(53, 219, 67, .13); }
.users-card small { display: block; margin-top: 6px; color: var(--muted); }
.create-user { width: 100%; color: #031006; border-color: var(--green); background: var(--green); font-weight: 800; }
.form-message { min-height: 21px; color: #ff9ca5; }
.form-message.success { color: var(--green); }
.users-list { display: grid; gap: 8px; }
.user-row { justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.015); }
.user-copy { min-width: 0; }
.user-copy strong, .user-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.user-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.role-badge { padding: 4px 7px; color: var(--teal); border: 1px solid rgba(33,195,199,.3); border-radius: 99px; font-size: 11px; text-transform: uppercase; }
.user-row.inactive { opacity: .52; }
.toggle-user { min-width: 80px; }
.page-error { padding: 14px; color: #ffd8dd; border: 1px solid rgba(255,109,122,.35); border-radius: 9px; background: rgba(255,109,122,.07); }

@media (max-width: 780px) {
  .users-shell { padding: 16px 12px; }
  .users-header, .users-intro { align-items: center; flex-direction: column; text-align: center; }
  .users-header .identity-line { justify-content: center; }
  .users-grid { grid-template-columns: 1fr; }
  .user-row { align-items: flex-start; flex-direction: column; }
  .user-meta { width: 100%; justify-content: space-between; }
}
