[hidden]{display:none!important}
:root{--bg:#f4f7fb;--panel:#fff;--ink:#152033;--muted:#6b778c;--line:#e4e9f1;--navy:#0f2747;--blue:#235da8;--blue2:#367bd0;--green:#147d64;--amber:#a56607;--red:#b42318;--shadow:0 14px 40px rgba(20,37,63,.10);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}.login-screen{min-height:100dvh;height:100dvh;overflow:hidden;display:grid;grid-template-columns:1.2fr .8fr;background:linear-gradient(135deg,#0f2747 0 45%,#f5f8fc 45%)}.brand-panel{color:white;display:flex;align-items:center;gap:28px;padding:8vw}.brand-panel h1{font-size:52px;margin:0}.brand-panel p{font-size:20px;opacity:.82}.brand-mark{width:104px;height:104px;display:grid;place-items:center;background:transparent;flex:0 0 auto}.brand-mark img{width:100%;height:100%;object-fit:contain;display:block}.brand-mark.small{width:46px;height:46px}.brand-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.brand-chips span{padding:8px 11px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.08);font-size:12px}.login-card{align-self:center;justify-self:center;width:min(430px,88%);max-height:calc(100dvh - 40px);overflow-y:auto;background:white;padding:36px;border-radius:22px;box-shadow:var(--shadow)}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:var(--blue);margin-bottom:6px}.login-card h2{font-size:30px;margin:4px 0 8px}.muted{color:var(--muted)}label{display:grid;gap:7px;font-size:13px;font-weight:700;margin:18px 0}input,select,textarea{border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:white;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#79a9e6;box-shadow:0 0 0 3px rgba(54,123,208,.12)}textarea{min-height:92px;resize:vertical}.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.btn.primary{background:var(--blue);color:#fff}.btn.secondary{background:#eef4fb;color:var(--blue)}.btn.danger{background:#fff0ef;color:var(--red)}.btn.wide{width:100%;padding:12px}.btn:disabled{opacity:.5;cursor:not-allowed}.security-note{font-size:11px;line-height:1.5;color:var(--muted);margin-top:18px}.error{padding:9px 11px;background:#fff2f0;color:var(--red);border-radius:8px;font-size:12px}.app-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:var(--navy);color:white;padding:22px 14px;display:flex;flex-direction:column}.side-brand{display:flex;align-items:center;gap:11px;padding:0 8px 22px;border-bottom:1px solid rgba(255,255,255,.12)}.side-brand small{display:block;color:#9bb0c8;margin-top:3px}.sidebar nav{display:grid;gap:5px;padding:18px 0}.nav-btn{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;background:transparent;border:0;border-radius:9px;color:#c7d5e6;text-align:left;cursor:pointer}.nav-btn:hover,.nav-btn.active{background:rgba(255,255,255,.10);color:white}.side-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding:16px 8px 0;display:flex;justify-content:space-between;align-items:center}.role-badge{font-size:10px;text-transform:uppercase;background:#1d4d7c;padding:6px 8px;border-radius:999px}.link-btn{background:none;border:0;color:#bcd0e6;cursor:pointer}.main{min-width:0}.topbar{height:84px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:4}.topbar h2{margin:0;font-size:22px}.user-chip{display:flex;align-items:center;gap:10px}.user-chip small{display:block;color:var(--muted);max-width:220px;overflow:hidden;text-overflow:ellipsis}.avatar{width:38px;height:38px;border-radius:50%;background:#e8f1fc;color:var(--blue);display:grid;place-items:center;font-weight:900}.content{padding:26px}.grid{display:grid;gap:16px}.cards{grid-template-columns:repeat(5,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 5px 18px rgba(16,39,71,.04)}.metric strong{display:block;font-size:28px;margin:8px 0 2px}.metric small,.small{color:var(--muted);font-size:12px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.section-head h3{margin:0}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{font-size:11px;letter-spacing:.04em;color:#657286;background:#f8fafc;position:sticky;top:0}tr:last-child td{border-bottom:0}.status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;background:#eef3f8;color:#435266}.status.open,.status.active,.status.hired,.status.finalized{background:#e8f6f1;color:var(--green)}.status.rejected,.status.cancelled,.status.terminated{background:#fff0ef;color:var(--red)}.status.offer,.status.calibration,.status.pending_approval{background:#fff6df;color:var(--amber)}.pipeline{grid-template-columns:repeat(5,minmax(150px,1fr));overflow:auto}.stage{min-height:130px;background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:12px}.stage h4{margin:0 0 10px;font-size:12px;text-transform:uppercase;color:#526174}.stage-count{font-size:26px;font-weight:900}.two-col{grid-template-columns:1fr 1fr}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.form-grid .full{grid-column:1/-1}.empty{padding:38px;text-align:center;color:var(--muted)}.toast{position:fixed;right:24px;bottom:24px;z-index:99;background:#142b48;color:white;padding:12px 16px;border-radius:10px;box-shadow:var(--shadow);max-width:360px}.kicker{font-size:11px;color:var(--blue);font-weight:800}.security-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.security-item{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}.security-item b{display:block;margin-bottom:5px}.inline-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.inline-form label{margin:0;min-width:180px}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;background:#f1f4f8;border-radius:6px;padding:2px 5px}.hidden{display:none!important}@media(max-width:1050px){.cards{grid-template-columns:repeat(2,1fr)}.app-shell{grid-template-columns:210px 1fr}.pipeline{grid-template-columns:repeat(3,minmax(160px,1fr))}}@media(max-width:760px){.login-screen{grid-template-columns:1fr;background:#f5f8fc}.brand-panel{display:none}.app-shell{display:block}.sidebar{height:auto;position:relative}.sidebar nav{grid-template-columns:repeat(2,1fr)}.topbar{position:relative}.cards,.two-col,.security-list{grid-template-columns:1fr}.content{padding:16px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}

/* V1.1 secure auth flow */
.auth-view[hidden]{display:none!important}.auth-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px}.auth-link{border:0;background:transparent;color:var(--blue);font-weight:800;padding:5px 0;cursor:pointer;text-decoration:none}.auth-link:hover{text-decoration:underline}.back-link{margin-top:14px}.notice{padding:10px 12px;background:#eaf7f1;color:#12634f;border-radius:8px;font-size:12px;line-height:1.5}.password-rule{font-size:11px;line-height:1.45;color:var(--muted);margin:-8px 0 16px}.pending-row{background:#fffaf0}.access-actions{display:flex;gap:6px;flex-wrap:wrap}.btn.tiny{font-size:11px;padding:7px 9px}.status.pending{background:#fff6df;color:var(--amber)}.status.approved{background:#e8f6f1;color:var(--green)}.status.rejected{background:#fff0ef;color:var(--red)}

/* V1.1.2 robust auth navigation: hash routing still works if the module client fails to initialize. */
#signupView:target,#forgotView:target,#resetView:target{display:block!important}
#authCard:has(#signupView:target) #signInView,#authCard:has(#forgotView:target) #signInView,#authCard:has(#resetView:target) #signInView{display:none!important}
.auth-link{display:inline-flex;align-items:center;min-height:32px}


/* V1.1.5 recovery redirect fix + password visibility control */
.password-wrap{position:relative;width:100%}.password-wrap input{width:100%;padding-right:46px}.password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#607087;cursor:pointer;padding:0}.password-toggle:hover{background:#eef4fb;color:var(--blue)}.password-toggle:focus-visible{outline:2px solid #79a9e6;outline-offset:1px}.password-toggle svg{width:20px;height:20px;display:block;pointer-events:none}
