:root{--auth-ink:#16233d;--auth-muted:#718099;--auth-green:#0064e6;--auth-line:#dce5f2;--auth-card:#fff}.auth-preview{min-height:100vh;display:grid;grid-template-columns:230px 1fr;background:#f2f3f5;color:var(--auth-ink);font:14px system-ui}.auth-preview aside{background:white;padding:32px 24px}.auth-preview aside b{font-size:24px;letter-spacing:2px}.auth-preview nav{display:grid;gap:26px;margin-top:50px;color:#67768f}.auth-preview main{padding:42px}.auth-preview h1{font-size:30px}.auth-preview .preview-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}.preview-cards article,.preview-chart{padding:28px;border-radius:16px;background:white;border:1px solid #e4e7eb}.preview-cards strong{display:block;margin:15px 0;font-size:30px}.preview-chart{height:260px;display:flex;align-items:flex-end;gap:18px}.preview-chart span{flex:1;height:55%;background:#bec7d5;border-radius:8px 8px 0 0}.preview-chart span:nth-child(2n){height:75%;background:#73839f}.preview-chart span:nth-child(3n){height:90%;background:#31425e}.auth-dialog{position:fixed;margin:auto;width:min(460px,calc(100% - 28px));max-height:94dvh;overflow-y:auto;border:1px solid #ffffff85;border-radius:24px;padding:36px;background:var(--auth-card);color:var(--auth-ink);box-shadow:0 28px 100px #10192835;font:14px system-ui;animation:auth-arrive .22s ease-out}.auth-dialog::backdrop{background:rgba(12,24,18,.30);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:30px}.auth-brand-mark{height:44px;width:44px;display:grid;place-items:center;background:var(--auth-green);color:white;border-radius:13px;font-size:25px;font-weight:850}.auth-brand strong{font-size:21px;letter-spacing:2px}.auth-brand small{display:block;font-size:10px;letter-spacing:1.7px;color:var(--auth-muted);margin-top:3px}.auth-dialog h1{font-size:25px;letter-spacing:-.7px;margin:8px 0}.auth-dialog p{color:var(--auth-muted);line-height:1.55;font-size:12px}.auth-step{color:var(--auth-green);font-size:10px;letter-spacing:1.4px;font-weight:750;text-transform:uppercase}.auth-field{display:block;margin-top:18px;font-size:11px;font-weight:650}.auth-field input{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:13px;border:1px solid var(--auth-line);border-radius:9px;background:var(--auth-card);color:var(--auth-ink);font:14px system-ui}.auth-field input:focus{outline:3px solid #0670ff33;border-color:var(--auth-green)}.auth-submit{width:100%;margin-top:24px;padding:14px;border:0;border-radius:10px;color:#fff;background:var(--auth-green);font:700 13px system-ui;cursor:pointer}.auth-submit:disabled{opacity:.6;cursor:wait}.auth-submit:disabled::after{content:'';display:inline-block;width:12px;height:12px;border:2px solid #ffffff55;border-top-color:white;border-radius:50%;margin-left:9px;vertical-align:middle;animation:auth-spin .7s linear infinite}.auth-error{min-height:18px;color:#a63737!important;font-size:12px;margin:12px 0}.auth-quiet{border:0;background:none;color:var(--auth-muted);font:12px system-ui;cursor:pointer;padding:10px 0;text-decoration:underline}.auth-demo-label{display:block;padding:9px 11px;border:1px solid #c9d1de;background:#edf0f6;border-radius:8px;font-size:11px;color:#354662;margin-bottom:15px}.auth-lock-hint{font-size:11px;border-top:1px solid var(--auth-line);padding-top:14px}.auth-remember{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--auth-muted);margin-top:16px}.auth-locked>.main,.auth-locked>.sidebar{filter:blur(12px);pointer-events:none;user-select:none}.auth-tools{display:flex;gap:6px}.auth-role-pill{display:inline-block;font-size:10px;padding:5px 8px;background:var(--mint,#eaf2ff);border-radius:20px}.auth-personal-form{display:grid;gap:12px}.auth-session-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,#ddd)}@keyframes auth-arrive{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}@keyframes auth-spin{to{transform:rotate(360deg)}}@media(max-width:600px){.auth-dialog{padding:27px 23px;border-radius:19px}.auth-preview{grid-template-columns:1fr}.auth-preview aside{display:none}.auth-preview main{padding:24px}.auth-preview .preview-cards{grid-template-columns:1fr}.auth-dialog h1{font-size:23px}.auth-tools .button{padding:8px}.staff-clock .button{min-height:48px}.staff-schedule .button{min-height:44px}}@media(prefers-reduced-motion:reduce){.auth-dialog,.auth-submit:disabled::after{animation:none}}body.dark .auth-dialog{--auth-card:#16233d;--auth-ink:#e8eefb;--auth-muted:#a1b3d0;--auth-line:#304769;--auth-green:#72abff}.auth-dialog button:focus-visible{outline:3px solid #72abff;outline-offset:3px}
.auth-login-page{margin:0}.auth-preview main{min-width:0}.auth-dialog{box-sizing:border-box}.auth-dialog input{min-width:0}
.employee-admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.employee-secret{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;padding:18px;background:var(--mint,#eef1f6);border-radius:10px;font:13px system-ui;line-height:1.7}.employee-permission-list{max-height:52vh;overflow:auto;border:1px solid var(--line,#ddd);border-radius:8px}.employee-permission-row{display:grid;grid-template-columns:140px repeat(6,minmax(95px,1fr));gap:8px;padding:10px;border-bottom:1px solid var(--line,#ddd);min-width:800px}.employee-permission-row>b{font-size:11px}.employee-permission-row label{display:grid;gap:4px;font-size:9px}.employee-permission-row select{max-width:100%;padding:7px;background:var(--card,#fff);color:var(--ink,#16233d);border:1px solid var(--line,#ddd);border-radius:5px;font-size:10px}.employee-role-checks{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;font-size:12px}#employee-admin-dialog{width:min(1120px,96vw);max-height:94dvh;overflow:auto}

:root{--brand-navy:#040d20;--brand-blue:#0670ff;--brand-button:#0064e6}.auth-preview{background:#f4f7fc}.auth-preview nav{color:#7385a3}.auth-preview aside{background:#08152d;color:#fff}.preview-chart span{background:#b8d3ff}.preview-chart span:nth-child(2n){background:#72aaff}.preview-chart span:nth-child(3n){background:#0064e6}.auth-brand{gap:14px}.auth-brand-mark{height:64px;width:64px;flex:0 0 64px;border-radius:16px;overflow:hidden;background:var(--brand-navy)}.auth-brand-mark img{width:100%;height:100%;object-fit:contain;display:block}.auth-submit,body.dark .auth-submit{background:var(--brand-button);color:white}.auth-submit:hover{background:#0052bd}.auth-dialog{box-shadow:0 28px 100px #040d2038}.auth-dialog::backdrop{background:#040d2070}.auth-demo-label{background:#edf4ff;border-color:#cfdef5;color:#355781}.auth-remember input{accent-color:var(--brand-button)}

/* Employee workspace: one profile action per person and a responsive detail panel. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.main:has(.employee-page) #new-lead,.main:has(.employee-page) .page-heading{display:none!important}
.employee-page{min-width:0;padding-top:16px}.employee-page .employee-admin-tabs{gap:4px;flex-wrap:nowrap;overflow-x:auto;padding:0 0 12px;margin:0 0 24px;border-bottom:1px solid var(--line)}
.employee-section-tab{flex:0 0 auto;min-height:42px;padding:10px 14px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap}.employee-section-tab.active{background:var(--mint);color:var(--green-dark)}.employee-section-tab:hover{background:var(--mint)}
.employee-overview{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.employee-overview h2{font-size:29px;letter-spacing:-.7px;margin:5px 0 7px}.employee-overview p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}.employee-overview>.button{flex-shrink:0;min-height:44px}
.employee-section-label{font-size:10px;font-weight:750;letter-spacing:1.2px;color:var(--muted)}.employee-summary{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.employee-summary>span{padding:9px 13px;border:1px solid var(--line);border-radius:9px;background:var(--card);font-size:12px;color:var(--muted)}.employee-summary b{color:var(--ink);margin-right:4px;font-variant-numeric:tabular-nums}
.employee-list-toolbar{display:flex;gap:12px;align-items:center;padding:18px 18px 10px;flex-wrap:wrap}.employee-search{flex:1 1 260px;min-width:160px}.employee-search input{width:100%;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:10px 12px;font-size:13px;background:var(--card);color:var(--ink)}.employee-filter{display:grid;gap:4px;font-size:10px;font-weight:600;color:var(--muted)}.employee-filter select{min-height:40px;max-width:190px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font-size:12px}.employee-list-count{padding:0 18px 13px;color:var(--muted);font-size:11px}
.employee-table-wrap{overflow-x:auto}.employee-table{min-width:0!important}.employee-table td{font-size:12px;vertical-align:middle;padding:17px 15px}.employee-table td small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}.employee-table tr{cursor:default!important}.employee-table td:first-child{width:29%}.employee-table td:nth-child(2){width:23%}.employee-table th{font-size:9px;padding:12px 15px}.employee-identity{display:flex;align-items:center;gap:11px}.employee-identity>div{min-width:0}.employee-identity b{font-size:13px}.employee-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:var(--mint);color:var(--green-dark);font-size:12px;font-weight:750}.employee-avatar-large{width:48px;height:48px;flex-basis:48px;font-size:16px}.employee-open-cell{text-align:right;white-space:nowrap}.employee-open-cell button{min-height:40px;padding:9px 12px;font-size:11px}.employee-open-cell button span{margin-left:6px}
.employee-badge{display:inline-flex;align-items:center;gap:6px;line-height:1.4;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:650;white-space:nowrap;background:#f0f3f8;color:#526079}.employee-badge-ready{background:#eaf2ff;color:#1759ae}.employee-badge-ready:before{content:'';width:6px;height:6px;border-radius:50%;background:#2673d5}.employee-badge-pending{background:#fff5de;color:#855c14}.employee-badge-muted{background:#edf0f5;color:#68758b}.employee-empty{padding:36px 20px;text-align:center}.employee-empty h3{font-size:16px}.employee-empty p{font-size:13px;color:var(--muted)}.employee-team-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}
#employee-admin-dialog[data-mode=edit],#employee-admin-dialog[data-mode=profile]{position:fixed;inset:0 0 0 auto;margin:0;width:min(660px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;overflow:hidden;border:0;border-left:1px solid var(--line);border-radius:20px 0 0 20px;box-shadow:-15px 0 70px #040d2033;background:var(--card);color:var(--ink)}
#employee-admin-dialog[data-mode=edit]>form,#employee-admin-dialog[data-mode=profile]>.employee-panel{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:0;margin:0}
.employee-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px;border-bottom:1px solid var(--line)}.employee-panel-head h2{font-size:22px;letter-spacing:-.5px;line-height:1.25;margin:5px 0 7px;overflow-wrap:anywhere}.employee-panel-head p{font-size:12px;line-height:1.5;color:var(--muted);margin:0}.employee-panel-head>.icon-button{flex:0 0 40px;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font-size:24px}.employee-profile-title{display:flex;gap:13px;align-items:center;min-width:0}.employee-profile-title>div{min-width:0}
.employee-panel-body{overflow:auto;min-height:0;overscroll-behavior:contain;padding:24px;scroll-padding:20px}.employee-panel-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line);background:var(--card);padding-bottom:max(16px,env(safe-area-inset-bottom))}.employee-panel-footer .button{min-height:44px;min-width:120px;font-size:13px}
.employee-form-section{min-width:0;margin:0 0 26px;padding:0;border:0}.employee-form-section legend{font-size:14px;font-weight:700;margin-bottom:15px;padding:0}.employee-form-section .form-grid{gap:16px}.employee-form-section .field{margin:0;min-width:0}.employee-form-section .field>span{font-size:12px;font-weight:550}.employee-form-section .field input,.employee-form-section .field select{min-width:0;width:100%;min-height:44px;padding:10px 12px;font-size:14px;border-radius:9px}.employee-form-section .field input[type=number]{min-width:0}
.employee-access-toggle{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--line);border-radius:10px;background:var(--mint);margin-bottom:16px}.employee-access-toggle>input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:#0064e6}.employee-access-toggle>span{min-width:0}.employee-access-toggle b{display:block;font-size:13px}.employee-access-toggle small{display:block;font-size:12px;font-weight:400;line-height:1.6;color:var(--muted);margin-top:5px}.employee-help,.employee-required-note{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}.employee-form-notice{font-size:12px;line-height:1.6;padding:12px 14px;margin:0 0 24px;border:1px solid #e6cf93;border-radius:9px;background:#fff7e6;color:#785714}
.employee-profile-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.employee-profile-section{margin-bottom:26px}.employee-profile-section h3{font-size:14px;line-height:1.4;margin:0 0 15px}.employee-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;margin:0}.employee-facts>div{min-width:0}.employee-facts dt{font-size:11px;color:var(--muted);margin-bottom:6px}.employee-facts dd{font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere;color:var(--ink)}.employee-profile-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.employee-profile-actions>.button{min-height:40px}.employee-security-actions{flex-basis:100%;padding:10px 0;font-size:12px}.employee-security-actions summary{cursor:pointer;color:var(--muted)}.employee-security-actions>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.employee-danger-zone{border-top:1px solid var(--line);padding-top:18px;margin-top:26px;font-size:12px}.employee-danger-zone summary{cursor:pointer;color:#a13d46}.employee-danger-zone p{color:var(--muted);line-height:1.6}.employee-danger-zone .button{min-height:40px}
.dark .employee-badge-ready{background:#16355f;color:#a8cfff}.dark .employee-badge-pending{background:#3e311b;color:#efd38d}.dark .employee-badge-muted,.dark .employee-badge-neutral{background:#24324b;color:#bdcce3}.dark .employee-form-notice{background:#382c17;color:#f0d79c;border-color:#6b552a}.dark .employee-danger-zone summary{color:#ffb2bd}
@media(max-width:1100px){.employee-table thead{display:none}.employee-table,.employee-table tbody{display:block;width:100%}.employee-table tr{display:grid;grid-template-columns:1fr 1fr;padding:16px;gap:14px;border-top:1px solid var(--line)}.employee-table td{display:block;width:auto!important;padding:0!important;border:0!important;min-width:0}.employee-table td.employee-name-cell,.employee-table td:nth-child(2),.employee-table td.employee-open-cell{grid-column:1/-1}.employee-table td:not(.employee-name-cell):not(.employee-open-cell):before{content:attr(data-label);display:block;margin-bottom:6px;font-size:10px;color:var(--muted)}.employee-table .employee-open-cell{text-align:left}.employee-open-cell button{min-height:44px}.employee-table-wrap{overflow:visible}}
@media(max-width:700px){.employee-page{padding-top:10px}.employee-page .employee-admin-tabs{margin-bottom:16px;gap:2px}.employee-section-tab{font-size:12px;padding:10px 12px;min-height:44px}.employee-overview{align-items:stretch;flex-direction:column;gap:14px;margin-bottom:14px}.employee-overview h2{font-size:26px}.employee-summary{gap:7px;margin-bottom:16px}.employee-summary>span{font-size:11px;padding:8px 10px}.employee-list-toolbar{padding:14px 14px 10px;gap:10px}.employee-search{flex:1 0 100%}.employee-filter{flex:1;min-width:0}.employee-filter select{width:100%;max-width:none;min-height:44px}.employee-list-count{padding:0 14px 12px}.employee-panel-head{padding:20px;padding-top:max(20px,env(safe-area-inset-top))}.employee-panel-body{padding:20px}.employee-panel-footer{padding-left:20px;padding-right:20px}.employee-panel-footer .button{flex:1;min-width:0}.employee-facts{gap:18px 14px}}
@media(max-width:520px){#employee-admin-dialog[data-mode=edit],#employee-admin-dialog[data-mode=profile]{width:100vw;border:0;border-radius:0}.employee-form-section .form-grid,.employee-facts{grid-template-columns:1fr}.employee-panel-head h2{font-size:21px}.employee-identity b{font-size:14px}}

@media(max-width:700px){.employee-panel-head,.employee-panel-body,.employee-panel-footer{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}}

.employee-panel #employee-form-error{font-size:12px;line-height:1.6}.employee-panel #employee-form-error[data-state=saving]{color:var(--green-dark)}.employee-panel #employee-form-error[data-state=error]{padding:12px 14px;border:1px solid #ecc5cb;border-radius:9px;background:#fff0f2;color:#9c3444}.dark .employee-panel #employee-form-error[data-state=error]{background:#392432;border-color:#70404c;color:#ffbfca}
