:root { font-family: Inter, "Segoe UI", Arial, sans-serif; color: #10222d; background: #eef2f5; font-size: 16px; }
* { box-sizing: border-box; }
body.auth-page { margin: 0; min-width: 320px; line-height: 1.5; }
.auth-page button, .auth-page input, .auth-page select { font: inherit; }
.auth-page a { color: #0876d7; }
.auth-header { min-height: 72px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #00171f; color: white; }
.auth-header a { color: white; text-decoration: none; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.auth-mark { display: grid; place-items: center; width: 40px; height: 40px; background: #0876d7; border-radius: 8px; font-size: 14px; }
.login-layout { display: grid; place-items: center; min-height: calc(100svh - 72px); padding: 32px 20px; }
.login-form { width: 100%; max-width: 400px; }
.auth-page h1 { font-size: 28px; line-height: 1.25; margin: 0 0 24px; }
.auth-page h2 { font-size: 20px; margin: 0 0 16px; }
.auth-page label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.auth-page input, .auth-page select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #b7c5ce; border-radius: 6px; background: white; color: #10222d; }
.auth-page :focus-visible { outline: 3px solid #65bbff; outline-offset: 2px; }
.auth-page button { border: 1px solid #b7c5ce; border-radius: 6px; min-height: 44px; padding: 9px 16px; background: white; color: #10222d; cursor: pointer; }
.auth-page button.primary { background: #0876d7; border-color: #0876d7; color: white; font-weight: 600; }
.login-form button[type=submit] { width: 100%; }
.auth-page button:disabled { opacity: .55; cursor: wait; }
.auth-page [hidden] { display: none !important; }
.auth-message { font-size: 14px; min-height: 24px; color: #ad2344; overflow-wrap: anywhere; }
.auth-message.success { color: #00785b; }
.auth-hint { font-size: 14px; color: #5a6d79; margin: -8px 0 16px; }
.account-main { padding: 32px 24px; }
.account-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.account-heading h1 { margin: 0; }
.account-section { padding: 24px 0; border-top: 1px solid #cdd7df; }
.password-form { max-width: 400px; }
.user-form { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)) auto; gap: 16px; align-items: end; }
.user-form label { margin-bottom: 0; }
.users-scroll { overflow: auto; margin-top: 24px; }
.users-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.users-table th, .users-table td { border-bottom: 1px solid #d8e0e6; padding: 12px; vertical-align: middle; }
.users-table th { color: #5a6d79; font-weight: 600; }
.users-table select { min-width: 150px; }
.users-table .user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; border: 1px solid #cdd7df; border-radius: 8px; }
.auth-dialog::backdrop { background: #00171f66; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
.dashboard-account { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid #ffffff40; border-radius: 6px; color: white; font-size: 14px; text-decoration: none; white-space: nowrap; }
html[data-dashboard-role=viewer] .crm-card-edit,
html[data-dashboard-role=viewer] [data-create-menu] { display: none !important; }
@media (max-width: 1000px) { .user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .auth-header { padding: 16px; } .account-main { padding: 24px 16px; } .user-form { grid-template-columns: 1fr; } .auth-page h1 { font-size: 24px; } }
