.admin-workspace-nav a[data-screen="users"]:not([data-users-authorized]){display:none}
.users-manager{--users-navy:#193a57;--users-line:#d5e0e9;--users-muted:#5d7286;color:#243e57;font-family:"Segoe UI",Aptos,Arial,sans-serif;min-width:0;max-width:100%}
.users-manager *,.users-dialog *{box-sizing:border-box}
.users-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;margin-bottom:1.4rem}
.users-manager h3{font:750 1.4rem/1.3 "Segoe UI",Aptos,Arial,sans-serif;color:#173953;letter-spacing:-.02em;margin:.3rem 0 .55rem}
.users-toolbar p,.users-section-heading p{font-size:.9rem;line-height:1.6;margin:0;color:var(--users-muted);max-width:760px}
.users-eyebrow{font-size:.66rem!important;letter-spacing:.11em;font-weight:800;color:#607f9a}
.users-actions,.users-dialog-actions{display:flex;align-items:center;gap:.65rem;flex-shrink:0;flex-wrap:wrap}
.users-primary,.users-secondary,.users-text-button{font:700 .86rem/1.3 "Segoe UI",Aptos,Arial,sans-serif;cursor:pointer;min-height:42px;padding:.7rem 1rem;border:1px solid transparent;border-radius:7px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.users-primary{background:#173e60;color:#fff;border-color:#173e60}
.users-primary:hover:not(:disabled){background:#245579}
.users-secondary{background:#fff;color:#244863;border-color:#afc1d0}
.users-secondary:hover:not(:disabled){background:#eff5f9}
.users-manager button:disabled,.users-dialog button:disabled,.staff-setup-form button:disabled{cursor:not-allowed;opacity:.55}
.users-manager[aria-busy="true"] button:disabled,.users-dialog[aria-busy="true"] button:disabled{cursor:wait}
.users-manager :focus-visible,.users-dialog :focus-visible,.staff-setup-card :focus-visible{outline:3px solid #b58529;outline-offset:3px}
.users-message,.users-dialog-message{color:#285c4b;line-height:1.55;font-size:.9rem;overflow-wrap:anywhere}
.users-message:empty,.users-dialog-message:empty{display:none}
.users-message.is-error,.users-dialog-message[role="alert"]{color:#99352c}
.users-configuration{padding:1.1rem 1.3rem;border:1px solid #dcb95e;border-left:5px solid #b28a2b;border-radius:8px;background:#fffae9;margin:1rem 0 1.3rem}
.users-configuration h4{font:750 1rem/1.4 "Segoe UI",Aptos,Arial,sans-serif;margin:0 0 .4rem;color:#725218}
.users-configuration p{font-size:.86rem;line-height:1.55;margin:.3rem 0;color:#725c2c;max-width:90ch}
.users-grid-tools{display:flex;align-items:flex-end;flex-wrap:wrap;gap:1rem;margin:1.1rem 0}
.users-grid-tools label{display:grid;gap:.35rem;font-size:.77rem;font-weight:700;color:#4f687c;min-width:0}
.users-grid-tools label:first-child{flex:1;max-width:420px}
.users-grid-tools input,.users-grid-tools select{width:100%;min-height:43px;padding:.65rem .75rem;border:1px solid #bdcbd7;border-radius:6px;background:#fff;color:#213e55;font:400 .9rem/1.35 "Segoe UI",Aptos,Arial,sans-serif}
.users-grid-tools input:disabled,.users-grid-tools select:disabled{background:#f0f3f6;cursor:not-allowed;color:#718391}
.users-result-count{font-size:.78rem;color:#64788a;margin:0 0 .7rem auto;white-space:nowrap}
.users-permission-help{font-size:.78rem;line-height:1.55;color:#60768a;margin:.8rem 0 1rem;max-width:105ch}
.users-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--users-line);border-radius:9px;isolation:isolate;scrollbar-gutter:stable}
.users-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1110px;table-layout:fixed;text-align:left;font-size:.83rem;line-height:1.45}
.users-table th,.users-table td{padding:.7rem .65rem;border:0;border-bottom:1px solid #e0e8ef;vertical-align:middle}
.users-table thead th{position:sticky;top:0;z-index:2;background:#edf3f7;color:#244660;vertical-align:top}
.users-table .users-identity{position:sticky;left:0;width:252px;min-width:252px;background:#fff;z-index:1;text-align:left;border-right:1px solid #d5e0e9;box-shadow:4px 0 7px #20354b05}
.users-table thead .users-identity{z-index:3;background:#edf3f7;padding:1rem;font-size:.79rem}
.users-table .users-permission-heading{text-align:center;width:123px;min-width:123px;font-size:.77rem;white-space:normal;text-transform:none;letter-spacing:0}
.users-column-help{display:block;font-size:.66rem;line-height:1.4;font-weight:400;color:#647b8e;margin-top:.4rem}
.users-table .users-permission-cell{text-align:center;border-right:1px solid #edf1f5}
.users-table tbody tr:last-child>*{border-bottom:0}
.users-table tbody tr:hover td,.users-table tbody tr:hover .users-identity{background:#f8fbfd}
.users-person{min-width:0;font-weight:400}
.users-manager .users-name-button{display:inline;text-align:left;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:#173e60;font:750 1rem/1.45 "Segoe UI",Aptos,Arial,sans-serif;text-decoration:underline;text-underline-offset:.2em;overflow-wrap:anywhere;cursor:pointer}
.users-manager .users-name-button:hover{color:#876718}
.users-profile-facts{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:.5rem 1rem;margin:.2rem 0;font-size:.9rem}
.users-profile-facts dt{font-weight:700}.users-profile-facts dd{margin:0;overflow-wrap:anywhere}
.users-profile-form input[readonly]{background:#f0f3f6;color:#4e6374}
.users-grid-tools label{font-size:.875rem}.users-table .users-permission-heading{font-size:.875rem;overflow-wrap:normal;word-break:normal}
.users-seat-note{font-size:.875rem;line-height:1.5;max-width:80ch}
.users-person>strong{font-size:.9rem;line-height:1.45;font-weight:750;color:#1c3c57;overflow-wrap:anywhere}
.users-email{display:block;color:#64798b;font-size:.76rem;margin-top:.2rem;overflow-wrap:anywhere}
.users-you{display:inline-block;margin-left:.4rem;font-size:.61rem;text-transform:uppercase;font-weight:750;color:#60778b;white-space:nowrap}
.users-person-badges{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.55rem}
.users-status{display:inline-flex;border-radius:30px;white-space:nowrap;padding:.2rem .5rem;font-size:.67rem;line-height:1.5;font-weight:700;background:#eaf0f6;color:#375977}
.users-status-active{background:#e4f2ea;color:#226447}
.users-status-inactive{background:#edf0f3;color:#5e6a78}
.users-status-pending{background:#fff2d9;color:#805b18}
.users-permission-control{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;gap:.6rem;margin:0;cursor:pointer}
.users-manager .users-permission-control input[type="checkbox"]{appearance:auto;display:block;width:21px;min-width:21px;max-width:21px;height:21px;min-height:21px;padding:0;margin:0;accent-color:#19654f;flex:none;cursor:pointer}
.users-manager .users-permission-control input[type="checkbox"]:disabled{cursor:not-allowed;opacity:.55}
.users-save-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#f2f7fa;border:1px solid #d5e0e9;border-radius:8px;padding:.85rem 1rem;margin-top:1rem}
.users-save-bar p{font-size:.83rem;line-height:1.5;font-weight:600;color:#4f697d;margin:0}
.users-empty{font:400 .87rem/1.6 "Segoe UI",Aptos,Arial,sans-serif;color:#687d8e;padding:1.2rem!important}
.users-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.users-mobile-cards{display:none}
.users-page-access{margin-top:2rem;padding-top:1.3rem;border-top:1px solid #d7e1e9}
.users-page-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.8rem;margin-top:1rem}
.users-page-card{display:grid;align-content:start;gap:.8rem;padding:1rem;border:1px solid #d5e0e9;background:#f8fafc;border-radius:8px;min-width:0}
.users-page-card h4{font:700 .91rem/1.45 "Segoe UI",Aptos,Arial,sans-serif;letter-spacing:0;margin:0;color:#254760;overflow-wrap:anywhere}
.users-page-card .users-status{justify-self:start}
.users-page-card button{justify-self:start;font-size:.77rem;min-height:38px;padding:.55rem .8rem}
.users-dialog{box-sizing:border-box;width:min(640px,calc(100% - 32px));max-width:640px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #cfdae4;border-radius:14px;background:#fff;color:#254159;box-shadow:0 28px 100px #07182e55;font-family:"Segoe UI",Aptos,Arial,sans-serif;overflow:auto}
.users-dialog::backdrop{background:rgba(9,24,43,.65);backdrop-filter:blur(2px)}
.users-form{display:grid;gap:1rem;padding:1.6rem;margin:0}
.users-form header{padding-bottom:1rem;border-bottom:1px solid #dce5ec}
.users-form h2{margin:.35rem 0 .5rem;font:750 1.55rem/1.2 "Segoe UI",Aptos,Arial,sans-serif;letter-spacing:-.03em;color:#153b5b}
.users-form p{margin:0;line-height:1.6;font-size:.87rem;overflow-wrap:anywhere}
.users-form header>p:last-child{color:#60758a}
.users-form label,.staff-setup-form label{display:grid;gap:.4rem;font-size:.85rem;font-weight:700}
.users-form input,.users-form select,.users-form textarea,.staff-setup-form input{box-sizing:border-box;width:100%;min-width:0;min-height:45px;padding:.75rem .8rem;border:1px solid #b8c9d8;border-radius:6px;font:400 1rem/1.4 "Segoe UI",Aptos,Arial,sans-serif;color:#19374f;background:#fff}
.users-form input:disabled,.users-form select:disabled{background:#edf1f4;color:#617688;cursor:not-allowed}
.users-form .users-field-help{margin-top:-.45rem;font-size:.79rem;color:#64778a;font-weight:400;line-height:1.55}
.users-dialog-actions{justify-content:flex-end;border-top:1px solid #e0e7ed;padding-top:1.1rem;margin-top:.1rem}
.users-dialog-actions button{min-width:100px}
.users-page-access-detail{display:grid;gap:.8rem}
.users-form .users-public-summary{font-weight:750;color:#224760}
.users-page-staff{padding:0;margin:.3rem 0;list-style:none;border-top:1px solid #dce5ed}
.users-page-staff li{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 0;border-bottom:1px solid #dce5ed}
.users-page-staff li>strong{font-size:.87rem;overflow-wrap:anywhere}
.users-page-staff li>div{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}
.users-manager [hidden],.users-dialog [hidden],.staff-setup-card [hidden]{display:none!important}
.staff-setup-page{margin:0;min-height:100dvh;display:grid;place-items:center;background:#eff3f7;color:#254159;font:16px/1.6 "Segoe UI",Aptos,Arial,sans-serif;padding:32px 18px;box-sizing:border-box}
.staff-setup-card{box-sizing:border-box;width:100%;max-width:510px;background:#fff;border:1px solid #d4e0e9;border-top:5px solid #b18c42;border-radius:13px;padding:2rem;box-shadow:0 18px 55px #233c5812}
.staff-setup-card h1{font-size:1.9rem;line-height:1.2;letter-spacing:-.035em;color:#153b5b;margin:.4rem 0 1rem}
.staff-setup-card p{color:#60758a;font-size:.92rem}
.staff-setup-form{display:grid;gap:1.1rem;margin-top:1.5rem}
.staff-setup-form small{font-weight:400;color:#64778a;line-height:1.6}
.staff-setup-form button{margin-top:.2rem;width:100%}
#staff-setup-message{color:#92382d;overflow-wrap:anywhere}
#staff-setup-message:empty{display:none}
#staff-setup-success{padding-top:.6rem}
#staff-setup-success h2{color:#215f46;font-size:1.3rem}
#staff-setup-success a{margin-top:.5rem}
.staff-setup-footer{font-size:.8rem!important;padding-top:1rem;border-top:1px solid #e0e7ed;margin-top:1.5rem}

@media(max-width:1100px){.users-toolbar{flex-direction:column;gap:1rem}.users-table .users-identity{width:220px;min-width:220px}.users-table{min-width:1080px}}
@media(max-width:700px){.users-grid-tools{flex-wrap:wrap;gap:.8rem}.users-grid-tools label:first-child{max-width:none;flex-basis:100%}.users-grid-tools label:nth-child(2){flex:1}.users-result-count{margin-bottom:.7rem}.users-table-wrap{display:none}.users-mobile-cards{display:grid;gap:.85rem}.users-mobile-card{padding:1rem;border:1px solid #d5e0e9;border-radius:9px;background:#fff;min-width:0}.users-mobile-card .users-person{padding-bottom:.8rem;margin-bottom:.4rem;border-bottom:1px solid #dce5ed}.users-mobile-card .users-permission-control{display:flex;justify-content:flex-start;width:100%;min-height:48px;padding:.55rem 0;border-bottom:1px solid #edf1f4}.users-mobile-card .users-permission-control:last-child{border-bottom:0}.users-mobile-permission-name{font-size:.82rem;font-weight:650;line-height:1.4;min-width:0}.users-permission-value{margin-left:auto;color:#667b8e;font-size:.7rem;white-space:nowrap;font-weight:400}.users-save-bar{flex-direction:column;align-items:stretch}.users-save-bar .users-actions{justify-content:flex-end}.users-form{padding:1.25rem}.users-dialog-actions>button{flex:1}.users-page-staff li{align-items:flex-start}.staff-setup-card{padding:1.4rem}.staff-setup-card h1{font-size:1.7rem}}
@media(max-width:420px){.users-toolbar .users-actions{width:100%}.users-toolbar .users-actions button{flex:1;padding:.7rem}.users-save-bar .users-actions{flex-wrap:nowrap}.users-save-bar .users-actions button{flex:1;font-size:.8rem;padding:.7rem}.users-page-staff li{flex-direction:column;gap:.5rem}.users-page-staff li>div{justify-content:flex-start}.users-dialog-actions{flex-wrap:wrap}.users-permission-value{font-size:.65rem}.users-mobile-permission-name{font-size:.79rem}}
@media(prefers-reduced-motion:reduce){.users-dialog::backdrop{backdrop-filter:none}}

/* A bounded working surface: both axes scroll inside the grid, never the page. */
.users-manager .users-table-wrap{display:block;max-height:clamp(18rem,56dvh,40rem);overflow:scroll;overscroll-behavior:contain;scrollbar-color:#7d91a6 #edf2f7;scrollbar-width:auto}
.users-manager .users-table{table-layout:fixed;overflow:visible}
.users-manager .users-table .users-identity{width:280px;min-width:280px;max-width:280px;left:0;position:sticky;z-index:2}
.users-manager .users-table .users-permission-heading{width:164px;min-width:164px;font-size:.875rem}
.users-manager .users-table thead th{position:sticky;top:0;z-index:3;background:#eaf1f7;box-shadow:0 2px 0 #c6d3de}
.users-manager .users-table thead .users-identity{top:0;left:0;z-index:4;background:#eaf1f7}
.users-scroll-tools{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;flex-basis:100%;font-size:.875rem}
.users-scroll-tools button{min-height:36px;padding:.35rem .7rem}
.users-column-count{margin-right:auto;color:#51677d;font-weight:600}
.users-top-scroll{flex:0 0 100%;height:20px;overflow-x:scroll;overflow-y:hidden;scrollbar-color:#7d91a6 #edf2f7;scrollbar-width:auto;border:1px solid #d5e0e9;border-radius:4px;max-width:100%}
.users-table-wrap::-webkit-scrollbar,.users-top-scroll::-webkit-scrollbar{width:15px;height:15px}
.users-table-wrap::-webkit-scrollbar-track,.users-top-scroll::-webkit-scrollbar-track{background:#edf2f7}
.users-table-wrap::-webkit-scrollbar-thumb,.users-top-scroll::-webkit-scrollbar-thumb{background:#7d91a6;border:3px solid #edf2f7;border-radius:8px}
.users-manager .users-mobile-cards{display:none}
.users-grid-dialog{box-sizing:border-box;width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none;margin:auto;padding:1.25rem;border:1px solid #bdcbd9;border-radius:12px;background:#fff;overflow:auto}
.users-grid-dialog::backdrop{background:#09182ba6}
.users-expanded{height:100%;display:flex;flex-direction:column;min-height:0}
.users-expanded .users-toolbar{flex-direction:row;margin-bottom:.3rem}
.users-expanded .users-toolbar p:not(.users-eyebrow),.users-expanded .users-permission-help,.users-expanded .users-seat-note,.users-expanded .users-page-access{display:none}
.users-expanded .users-grid-tools{margin:.4rem 0;gap:.5rem}
.users-expanded .users-table-wrap{flex:1;min-height:180px;max-height:none}
.users-expanded .users-save-bar{margin-top:.5rem;padding:.65rem .8rem}
.users-expanded .users-message{margin:.2rem 0}
.users-account-dialog{width:min(960px,calc(100vw - 24px));max-width:960px;height:min(900px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
.users-account-form{display:flex;flex-direction:column;height:100%;min-height:0;padding:0;gap:0}
.users-account-form>header{flex:none;padding:1.1rem 1.4rem;background:#f3f7fa}
.users-account-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:1.2rem 1.4rem;scrollbar-gutter:stable}
.users-account-section{display:grid;gap:1rem;margin:0 0 1.5rem}
.users-account-section h3{font:750 1.08rem/1.4 "Segoe UI",Arial,sans-serif;color:#173e60;margin:0}
.users-account-fields,.users-account-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.users-account-permissions fieldset{min-width:0;margin:0;padding:.7rem .8rem;border:1px solid #ccd9e3;border-radius:8px}
.users-account-permissions legend{font-size:.9rem;font-weight:750;padding:0 .4rem;color:#244660}
.users-account-presets{display:flex;flex-wrap:wrap;gap:.5rem}
.users-form .users-account-check{display:flex;align-items:center;gap:.7rem;padding:.45rem 0;min-height:40px;font-size:.9rem;line-height:1.45;font-weight:500}
.users-form .users-account-check input[type="checkbox"]{appearance:auto;width:21px;min-width:21px;max-width:21px;height:21px;min-height:21px;margin:0;padding:0;flex:none;accent-color:#19654f}
.users-account-footer{flex:none;background:#fff;border-top:1px solid #cddbe5;padding:.8rem 1.4rem}
.users-account-footer .users-dialog-actions{border:0;margin:0;padding:0}
.users-account-footer .users-dialog-message{margin-bottom:.7rem}
.users-form .users-field-help,.users-form label,.users-form p{font-size:.875rem}
@media(max-width:700px){.users-manager .users-table .users-identity{width:200px;min-width:200px;max-width:200px}.users-expanded .users-toolbar{flex-direction:column;gap:.3rem}.users-expanded .users-toolbar h3{font-size:1.1rem}.users-expanded .users-grid-tools label:first-child{flex-basis:auto}.users-expanded .users-grid-tools label{flex:1;min-width:130px}.users-account-fields,.users-account-permissions{grid-template-columns:1fr}.users-account-form>header,.users-account-body,.users-account-footer{padding:1rem}.users-account-form h2{font-size:1.3rem}.users-expanded .users-table-wrap{min-height:160px}.users-expanded .users-save-bar{flex-direction:row}.users-column-count{flex-basis:100%}}
