:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #10141c;
  color: #e8edf5;
}
* { box-sizing: border-box; }
body { margin: 0; background: #10141c; }
.container { width: min(1180px, calc(100% - 32px)); margin: 32px auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
h1, h2 { margin: 0 0 10px; }
p { color: #aeb8c8; }
.card, .login-card { background: #191f2b; border: 1px solid #2d3748; border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.login-card { width: min(420px, 100%); margin: 12vh auto 0; }
.user-form { display: grid; grid-template-columns: 1.2fr 1.5fr auto; gap: 12px; align-items: end; }
.user-row { border-top: 1px solid #30394a; padding: 16px 0; grid-template-columns: 1.2fr 1.5fr; }
.user-row:first-child { border-top: 0; }
.meta { grid-column: 1 / 4; color: #8f9aad; font-size: 13px; line-height: 1.5; }
.actions { display: flex; gap: 8px; justify-content: end; }
.login-label { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px #111722; }
.status-dot.online { background: #22c55e; }
.status-dot.offline { background: #64748b; }
.table-wrap { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th, .users-table td { padding: 13px 16px; border-bottom: 1px solid #30394a; text-align: left; }
.users-table th { color: #8f9aad; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.users-table td:nth-child(n+2), .users-table th:nth-child(n+2) { text-align: center; }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table tbody tr:hover { background: #1e2634; }
.user-name { font-weight: 650; }
.icon-button { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; background: #303a4d; font-size: 18px; }
.icon-button:hover { background: #3b82f6; }
.icon-button.blocked { background: #7f2933; }
.info-button { color: #8ec5ff; }
.user-dialog { width: min(620px, calc(100% - 32px)); color: #e8edf5; background: #191f2b; border: 1px solid #3b465a; border-radius: 14px; padding: 22px; box-shadow: 0 24px 80px #000a; }
.user-dialog::backdrop { background: #05080dbf; backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.dialog-header p { margin: 0; }
.user-dialog h3 { margin: 22px 0 10px; }
.resources-list { margin: 0; display: grid; gap: 2px; }
.resources-list div { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 9px 0; border-bottom: 1px solid #30394a; }
.resources-list dt { color: #aeb8c8; }
.resources-list dd { margin: 0; font-weight: 600; text-align: right; }
.dialog-meta { margin-top: 20px; color: #8f9aad; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 20px; }
.dialog-actions form { margin: 0; }
label { display: grid; gap: 6px; color: #b9c2d0; font-size: 14px; }
label.check { display: flex; align-items: center; padding-bottom: 10px; }
input { width: 100%; border: 1px solid #3b465a; border-radius: 7px; background: #111722; color: #fff; padding: 10px; }
input[type=checkbox] { width: auto; }
button { border: 0; border-radius: 7px; background: #3b82f6; color: white; padding: 10px 14px; cursor: pointer; }
button.secondary { background: #394255; }
button.danger { background: #b83b45; }
.alert { background: #622a31; border-radius: 7px; padding: 10px; margin: 12px 0; }
.muted { color: #7f8999; }
@media (max-width: 850px) {
  .user-form, .user-row { grid-template-columns: 1fr; }
  .meta { grid-column: 1; }
  .actions { justify-content: start; }
}
