/* Local fallback for the shared navigation and account pages. */
body { font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.5; }
.main-nav { border-bottom: 1px solid #dce3d6; }
.main-nav .nav-content { max-width: 1152px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; }
.main-nav .nav-brand { font-size: 20px; font-weight: 700; letter-spacing: -.025em; text-decoration: none; }
.main-nav .nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.main-nav .nav-links > a { padding: 8px 16px; font-size: 13px; font-weight: 600; text-decoration: none; }
.content { max-width: 1152px; margin: 0 auto; padding: 32px 16px; box-sizing: border-box; }
.ui-icon { width: 20px; height: 20px; flex-shrink: 0; }
.eye-slash { display: none; }
.password-visible .eye-slash { display: block; }
/* Account controls and training user management. */
.account-dropdown { position: relative; }
.account-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid transparent; border-radius: 50%; color: #52614f; cursor: pointer; list-style: none; transition: background .15s, color .15s; }
.account-icon::-webkit-details-marker { display: none; }
.account-icon svg { width: 24px; height: 24px; }
.account-icon:hover, .account-dropdown[open] .account-icon { background: #e6eee3; color: #2e7d32; }
.user-icon { color: #2e7d32; background: #e8f1e5; }
.account-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 230px; max-width: min(320px, calc(100vw - 32px)); padding: 8px; background: #fff; border: 1px solid #e0e6dc; border-radius: 12px; box-shadow: 0 12px 32px #2430201c; }
.account-panel-label { margin: 0; padding: 7px 10px; font-size: 11px; color: #707a6c; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.account-profile { padding: 0 0 12px; margin-bottom: 6px; border-bottom: 1px solid #eef0eb; }
.account-profile strong { display: block; padding: 0 10px; font-size: 14px; overflow-wrap: anywhere; }
.nav-links .account-menu-item, .account-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px; width: 100%; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 13px; font-weight: 500; text-align: left; color: #40493d; cursor: pointer; text-decoration: none; }
.nav-links .account-menu-item:hover, .account-menu-item:hover { background: #f1f5ee; }
.account-menu-item .ui-icon { font-size: 20px; }
.account-menu-item.logout-item { color: #a92b2b; }
.account-icon:focus-visible, .account-menu-item:focus-visible, .auth-primary:focus-visible, .auth-secondary:focus-visible, .access-toggle:focus-visible, .password-visibility:focus-visible { outline: 3px solid #88b781; outline-offset: 3px; }
.users-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 8px 0 30px; }
.page-eyebrow { color: #2e7d32; font-size: 11px; font-weight: 700; letter-spacing: .12em; margin: 0 0 8px; }
.users-heading h1 { font-size: 28px; font-weight: 650; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.025em; }
.page-description { font-size: 14px; color: #707a6c; margin: 0; line-height: 1.6; }
.user-count { white-space: nowrap; border: 1px solid #e0e6dc; background: #fff; border-radius: 20px; padding: 7px 12px; color: #52614f; font-size: 12px; }
.users-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.users-card { border: 1px solid #e0e6dc; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 6px #24302004; }
.card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-heading > .ui-icon { color: #2e7d32; font-size: 22px; }
.card-heading h1, .card-heading h2 { font-size: 17px; font-weight: 650; margin: 0; letter-spacing: -.015em; }
.card-description { color: #707a6c; font-size: 12px; line-height: 1.6; margin: 0 0 22px; }
.auth-form { display: grid; gap: 18px; }
.auth-field label { display: block; color: #40493d; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.auth-input-wrap { position: relative; }
.auth-form input { width: 100%; height: 42px; border: 1px solid #d7ded2; border-radius: 7px; background: #fff; font: inherit; font-size: 14px; padding: 9px 12px; box-sizing: border-box; color: #1b1c1c; }
.auth-form input[type=password], .auth-form input[autocomplete=new-password] { padding-right: 42px; }
.auth-form input:focus { outline: 2px solid #bdd6b6; outline-offset: 1px; border-color: #6a9c60; }
.auth-help { font-size: 11px; line-height: 1.5; color: #707a6c; margin-top: 7px; }
.auth-errors { font-size: 12px; color: #ba1a1a; margin-top: 6px; }
.auth-errors ul { list-style: none; padding: 0; margin: 0; }
.password-visibility { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #707a6c; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.password-visibility:hover { background: #f1f5ee; }
.password-visibility .ui-icon { font-size: 19px; }
.auth-primary, .auth-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 7px; cursor: pointer; text-decoration: none; }
.auth-primary { color: #fff; border: 1px solid #2e7d32; background: #2e7d32; }
.auth-primary:hover { background: #246529; }
.auth-secondary { background: #fff; color: #52614f; border: 1px solid #dce2d7; }
.auth-secondary:hover { background: #f5f8f2; }
.auth-secondary.compact { font-size: 11px; padding: 7px 9px; white-space: nowrap; }
.auth-secondary.compact .ui-icon { font-size: 17px; }
.users-list { padding: 24px 0 0; overflow: hidden; }
.users-list > .card-heading { padding: 0 24px 14px; }
.users-table-wrap { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; text-align: left; }
.users-table th { background: #f8faf5; color: #707a6c; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; border-top: 1px solid #eef0eb; border-bottom: 1px solid #eef0eb; }
.users-table td { padding: 16px; border-bottom: 1px solid #eef0eb; font-size: 12px; vertical-align: middle; }
.users-table th:first-child, .users-table td:first-child { padding-left: 24px; }
.user-identity { display: flex; align-items: center; gap: 10px; }
.user-avatar { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 600; color: #52614f; background: #eff3e9; }
.user-name { font-weight: 600; overflow-wrap: anywhere; }
.user-name small { display: block; font-size: 10px; color: #8a9285; font-weight: 400; margin-top: 2px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-active { background: #edf6e9; color: #39713b; }
.status-inactive { background: #f0f0ee; color: #777d73; }
.status-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.staff-value { color: #707a6c; }
.user-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.actions-heading { text-align: right; }
.access-toggle { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; color: #707a6c; cursor: pointer; font: inherit; font-size: 10px; white-space: nowrap; padding: 4px 0; }
.toggle-track { display: block; width: 30px; height: 18px; border-radius: 20px; padding: 3px; background: #d5dbd0; transition: background .15s; }
.toggle-thumb { display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.access-enabled .toggle-track { background: #2e7d32; }
.access-enabled .toggle-thumb { transform: translateX(12px); }
.protected-account { display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #8a9285; font-size: 11px; white-space: nowrap; }
.protected-account .ui-icon { font-size: 14px; }
.users-note { display: flex; align-items: flex-start; gap: 8px; padding: 17px 24px; margin: 0; color: #707a6c; font-size: 11px; line-height: 1.6; }
.users-note .ui-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.password-page { max-width: 460px; margin: 12px auto; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #52614f; font-size: 12px; margin-bottom: 20px; text-decoration: none; }
.back-link .ui-icon { font-size: 17px; }
.auth-form-actions { display: flex; gap: 10px; margin-top: 6px; }
@media (max-width: 1080px) { .users-layout { grid-template-columns: 1fr; } .create-participant { max-width: 460px; } }
@media (max-width: 600px) { .users-heading { align-items: flex-start; gap: 12px; } .users-heading h1 { font-size: 24px; } .page-description { font-size: 12px; } .users-card { padding: 20px; } .users-list { padding: 20px 0 0; } .user-actions { gap: 8px; } .users-table { min-width: 640px; } .nav-content { flex-wrap: wrap; gap: 8px; } .nav-links { margin-left: auto; } .nav-links > a { padding-left: 8px; padding-right: 8px; } }

.card-heading > .ui-icon { width: 22px; height: 22px; }
.auth-secondary.compact .ui-icon, .back-link .ui-icon { width: 17px; height: 17px; }
.protected-account .ui-icon { width: 14px; height: 14px; }
.users-note .ui-icon { width: 16px; height: 16px; }
.password-visibility .ui-icon { width: 19px; height: 19px; }
.toggle-track, .toggle-thumb { box-sizing: border-box; }

/* Short-lived notifications stay clear of the navigation. */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border: 1px solid #dce3d6; border-left: 3px solid currentColor; border-radius: 10px; background: #fff; box-shadow: 0 6px 24px #2430201a; pointer-events: auto; opacity: 1; transform: translateY(0); transition: opacity .18s, transform .18s; }
.toast-success { color: #2e7d32; }
.toast-error { color: #ba1a1a; }
.toast-info { color: #1565c0; }
.toast-text { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.toast-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 5px; background: transparent; color: #707a6c; cursor: pointer; }
.toast-close:hover { background: #f0f3ed; }
.toast-close:focus-visible { outline: 2px solid #88b781; outline-offset: 2px; }
.toast-close .ui-icon { width: 16px; height: 16px; }
.toast-leaving { opacity: 0; transform: translateY(8px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

.fmea-name-link { color: #2e7d32; font-weight: 600; text-decoration: none; }
.fmea-name-link:hover { text-decoration: underline; }
.fmea-sharing { display: block; color: #707a6c; font-size: 10px; margin-top: 4px; }
.fmea-date { white-space: nowrap; color: #707a6c; }
.auth-secondary.fmea-delete { color: #ba1a1a; border-color: #ebd5d3; }
.fmea-management-table { min-width: 880px; }
