.dashboard-card [hidden] { display: none !important; }
.dashboard-card { max-width: 650px; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-header .brand, .dashboard-header .state { white-space: nowrap; flex-shrink: 0; }
.loading { display: flex; align-items: center; gap: 9px; margin-top: 27px; color: #a8aab4; font-size: 13px; }
.spinner { width: 14px; height: 14px; border: 2px solid #454751; border-top-color: #d5f6a6; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dashboard-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 44px; }
.dashboard-title h1 { margin: 0; font-size: clamp(22px, 6vw, 40px); white-space: nowrap; }
.state { color: #8ee2a8; font-size: 13px; }
.state.offline { color: #f29b9b; }
.dashboard-form { display: flex; gap: 10px; margin-top: 26px; }
.password-field { display: flex; flex: 1; border: 1px solid #444651; border-radius: 11px; background: #15161a; min-width: 0; }
.password-field input { border: 0; background: transparent; color: #fff; min-width: 0; }
.password-field button { border: 0; background: transparent; color: #8f929f; cursor: pointer; padding: 0 14px; }
.dashboard-form .submit { margin-top: 0; width: auto; white-space: nowrap; }
.logout { border: 0; background: transparent; color: #a8aab4; cursor: pointer; padding: 0; white-space: nowrap; }
.count { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 16px; }
.count strong { font-size: 44px; letter-spacing: -.05em; }
.count span { color: #a8aab4; }
.connections { border-top: 1px solid #353640; }
.connection-card { padding: 16px 0; border-bottom: 1px solid #353640; }
.connection-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.connection-card-head strong { color: #f6f7fb; font-size: 15px; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 18px; }
.connection-grid div { min-width: 0; }
.connection-grid small { display: block; color: #858895; font-size: 11px; margin-bottom: 4px; }
.connection-grid span { display: block; color: #c9cad1; font-size: 12px; overflow-wrap: anywhere; }
.connection-grid .traffic { grid-column: 1 / -1; }
.active-state { color: #8ee2a8; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.empty { color: #858895; padding: 18px 0; }
.users-title { margin: 54px 0 24px; font-size: 18px; }
.users-list { border-top: 1px solid #353640; }
.user-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #353640; }
.user-card strong { display: block; color: #f6f7fb; font-size: 13px; }
.user-card small { display: block; margin-top: 4px; color: #858895; font-size: 11px; }
.user-card small.profile-status.connected { color: #8ee2a8; }
.user-card small.profile-status.disabled { color: #f29b9b; }
.user-actions { display: flex; align-items: center; gap: 8px; }
.user-toggle, .user-delete { border: 1px solid #4a4d58; border-radius: 999px; padding: 8px 12px; background: transparent; color: #a8aab4; cursor: pointer; font-size: 11px; white-space: nowrap; }
.user-toggle { width: 90px; }
.user-toggle:not(.enabled) { border-color: #f29b9b; color: #f29b9b; }
.user-toggle.enabled { border-color: #4a4d58; color: #a8aab4; }
.user-toggle:disabled, .user-delete:disabled { opacity: .5; cursor: wait; }
.user-delete { border-color: #f29b9b; color: #f29b9b; }
.confirm-dialog { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }
.confirm-dialog[hidden] { display: none; }
.confirm-dialog-backdrop { position: absolute; inset: 0; background: #090a0dcc; backdrop-filter: blur(4px); }
.confirm-dialog-card { position: relative; width: min(100%, 420px); padding: 24px; border: 1px solid #3a3c47; border-radius: 18px; background: #18191e; box-shadow: 0 24px 80px #0009; }
.confirm-dialog-card h2 { margin: 0; font-size: 20px; }
.confirm-dialog-card p { margin: 12px 0 22px; color: #a8aab4; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-dialog-actions button { border: 1px solid #4a4d58; border-radius: 999px; padding: 8px 12px; background: transparent; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
.confirm-cancel { color: #c9cad1; }
.confirm-cancel:hover { background: #292b33; }
.confirm-delete { border-color: #f29b9b !important; color: #f29b9b; }
.confirm-delete:hover { background: #3a2428; }
@media (max-width: 480px) { .user-card { align-items: flex-start; } .user-actions { flex-direction: column; align-items: stretch; } }
@media (max-width: 480px) { .dashboard-form { display: block; } .dashboard-form .submit { margin-top: 10px; width: 100%; } }
