@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#262638;background:#f5f5f9;font-synthesis:none;--purple:#7660d5;--line:#eeedf3;--muted:#92919f}*{box-sizing:border-box}body{margin:0}a{color:var(--purple);text-decoration:none}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b7a5f1;outline-offset:4px}aside{position:fixed;inset:0 auto 0 0;width:246px;background:#191a29;color:#e9e9f2;padding:34px 20px;z-index:10;border-right:1px solid #242535}.brand{display:flex;align-items:center;gap:10px;font:800 24px Manrope,Arial,sans-serif;color:white;letter-spacing:-1.2px;padding:0 10px}.mark{background:#a18be9;color:white;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;font-size:26px}.brand-dot{font-size:10px;align-self:start;letter-spacing:0;padding-top:4px}.workspace{border:1px solid #353645;border-radius:9px;margin:35px 3px 30px;display:flex;align-items:center;gap:10px;padding:12px;font-size:12px;font-weight:600}.workspace small{display:block;font-weight:400;font-size:10px;color:#8e8da2;margin-top:5px}.workspace-icon{border-radius:6px;background:#353447;padding:9px;font-size:13px;color:#c2b2ee}.workspace-arrow{margin-left:auto;color:#77768e}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#77788f;margin:28px 13px 12px}nav a{display:flex;align-items:center;gap:12px;color:#a5a4b9;padding:13px 15px;border-radius:7px;font-size:12px;margin-bottom:5px;transition:background .18s,color .18s}nav a:hover{background:#262638;color:#e5dcff}nav a.active{background:#7760d6;color:#fff;box-shadow:0 5px 15px #0002}.nav-icon{font-size:19px;width:19px;text-align:center;line-height:1}.nav-end{margin-left:auto;background:#ffffff26;font-size:9px;padding:3px 5px;border-radius:4px}.future-nav{padding:0 15px;color:#66677e;font-size:12px}.future-nav>span{display:block;padding:13px 0}.future-nav small{font-size:7px;letter-spacing:.8px;border:1px solid #3b3a50;border-radius:3px;padding:3px;margin-left:10px}.aside-bottom{position:absolute;bottom:20px;left:23px;right:23px}.foundation-card{position:relative;overflow:hidden;padding:18px;background:linear-gradient(125deg,#302942,#242333);border:1px solid #47405b;border-radius:10px}.foundation-card>span{font-size:7px;letter-spacing:1.2px;color:#b0a3cb}.foundation-card strong{display:block;font:600 17px/1.5 Manrope,sans-serif;margin:10px 0 18px;color:#e7dff8}.foundation-card a{font-size:10px;color:#c3aff9}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid #323243;margin-top:23px;padding-top:19px;font-size:11px}.profile small{display:block;font-size:9px;color:#77788d;margin-top:5px}.profile>span:last-child{margin-left:auto;font-size:10px;color:#828398}.avatar{width:34px;height:34px;display:inline-grid;place-items:center;background:#eae4fa;color:#775db8;border-radius:50%;font-size:10px;font-weight:700;flex-shrink:0}.profile .avatar{background:#3b354b;color:#d4c4f2}.small-avatar{width:32px;height:32px;font-size:9px}main{margin-left:246px;padding:0 38px;max-width:1900px}header{height:79px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e6e5ed}.breadcrumb{font-size:11px;color:#aaa8b5;display:flex;gap:14px}.breadcrumb strong{font-weight:500;color:#565465}.breadcrumb>span{color:#c6c3d0}.header-right{display:flex;align-items:center;gap:18px}.local-pill{font-size:10px;color:#868491;display:flex;align-items:center;gap:7px}.local-pill i,.notice-dot{width:5px;height:5px;border-radius:50%;background:#83af99;display:inline-block}.header-divider{width:1px;height:24px;background:#e4e1ec}.notice{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.2px;color:#91809f;padding-top:23px}.notice-dot{background:#a28bd9}.notice>span:last-child{letter-spacing:0;color:#aaa4b1;font-size:9px;margin-left:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:29px 0 29px}.kicker{font-size:9px;letter-spacing:1.8px;color:#8c7dad;font-weight:600;margin-bottom:8px}h1{font:800 clamp(24px,2.35vw,35px)/1.3 Manrope,Arial,sans-serif;letter-spacing:-1.3px;margin:0 0 9px}h2{font:700 14px/1.4 Manrope,Arial,sans-serif;letter-spacing:-.3px;margin:0}p{line-height:1.6}.muted{color:var(--muted);font-size:11px;margin:0}.heading .muted{font-size:12px}.heading-actions{display:flex;align-items:center;gap:11px;flex-shrink:0}button,.primary,.secondary-link{cursor:pointer;border:1px solid #e4e0ed;background:#fff;border-radius:7px;padding:11px 14px;font-size:10px;font-weight:600;color:#656071;transition:transform .15s,box-shadow .15s}.primary{color:#fff;background:#7660d5;border-color:#7660d5;box-shadow:0 4px 8px #7660d51a}.primary:hover{background:#6650c4;box-shadow:0 5px 12px #7660d533;transform:translateY(-1px)}.secondary-link:hover{background:#f1edf9}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.card{border:1px solid #e9e7ef;border-radius:11px;background:#fff;box-shadow:0 3px 10px #23213b02;padding:23px}.stat-card{padding:20px 21px 0;overflow:hidden}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.stat-label{font-size:11px;color:#838091}.stat-icon{display:grid;place-items:center;background:#f2edfc;border:1px solid #ebe4fb;color:#9475cd;border-radius:8px;width:31px;height:31px;font-size:19px}.s1{color:#c5985e;background:#fcf4e8;border-color:#f7ead7}.s2{color:#639fa3;background:#ebf6f4;border-color:#dff0ee}.s3{color:#8193c5;background:#eff2fb;border-color:#e4eaf8}.stat-value{display:flex;align-items:baseline;gap:10px;margin:10px 0 18px}.number{font:700 34px Manrope,sans-serif;letter-spacing:-1.6px}.stat-context{font-size:7px;letter-spacing:1.1px;color:#aba6b5}.stat-bottom{display:flex;align-items:center;gap:6px;font-size:8px;color:#9994a5;border-top:1px solid #f1eef5;padding:12px 0}.tiny-dot{width:4px;height:4px;background:#ac9acb;border-radius:50%;flex-shrink:0}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:22px;margin-top:23px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.panel-heading .muted{font-size:10px;margin-top:5px}.outline-badge{font-size:7px;letter-spacing:.8px;color:#9a90aa;border:1px solid #ede7f3;border-radius:4px;padding:6px;white-space:nowrap}.composition-content{display:flex;align-items:center;gap:30px;padding:12px 0 5px}.donut{position:relative;width:190px;max-width:48%;flex-shrink:0}.donut svg{display:block;width:100%;height:auto}.donut-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut-label strong{font:700 28px Manrope,sans-serif;letter-spacing:-1px}.donut-label span{font-size:8px;color:#aaa2b7;margin-top:4px}.legend{flex:1}.legend>div{display:flex;align-items:center;gap:14px;padding:12px 0;font-size:10px;border-bottom:1px solid #f5f2f8}.legend>div:last-child{border:0}.legend-name{display:flex;align-items:center;gap:8px;color:#83808e;flex:1}.legend-name i{width:7px;height:7px;border-radius:2px}.legend strong{font-size:11px;font-weight:500}.legend>div>span:last-child{color:#aaa4b5;font-size:9px;min-width:28px;text-align:right}.panel-bottom{border-top:1px solid var(--line);padding-top:14px;font-size:9px;color:#a29baa}.progress-count{color:#7460c5;font:700 25px Manrope,sans-serif}.progress-count small{font-size:12px;color:#bbb3c9;margin-left:3px}.progress-track{height:4px;background:#eeeaf7;margin:21px 0 7px;border-radius:10px;overflow:hidden}.progress-track>span{display:block;height:100%;background:#9780df;border-radius:10px;transition:width .3s}.checklist-item{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #f2eff6;font-size:10px;color:#777080}.checklist-item:last-child{border:0;padding-bottom:0}.check-circle{width:20px;height:20px;display:grid;place-items:center;border:1px solid #e8e2f0;color:#aca2bd;border-radius:50%;font-size:8px}.check-circle.done{background:#eee8fc;color:#7f65be;border-color:#e8e0f9}.check-arrow{margin-left:auto;font-size:9px;color:#b0a6c2}.people-panel{padding-bottom:0;overflow:hidden}.people-panel>.panel-heading{margin-bottom:22px}.text-link{font-size:10px;font-weight:500;white-space:nowrap}.count-badge{display:inline-block;background:#f3effb;color:#9480b8;font-size:9px;padding:2px 6px;border-radius:4px;margin-left:5px;vertical-align:middle}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:10px}th{background:#f8f7fb;color:#a19aaa;font-size:7px;letter-spacing:1px;font-weight:500;padding:12px 10px}td{padding:16px 10px;border-bottom:1px solid #f3f0f7;color:#7b7485}td strong{color:#454050;font-weight:500}td small{display:block;margin-top:5px;font-size:8px;color:#aaa2b4}.person{display:flex;align-items:center;gap:9px}.person-avatar{width:29px;height:29px;font-size:8px}.tag{display:inline-block;font-size:8px;background:#f1ecfb;color:#8e77b5;border:1px solid #ebe4f5;border-radius:4px;padding:4px 7px}.empty{text-align:center;padding:25px 10px 30px;white-space:normal}.empty-icon{display:grid;place-items:center;margin:0 auto 12px;background:#f5f1fc;border-radius:12px;width:40px;height:40px;font-size:25px;color:#b19ad4}.empty strong{display:block;font-size:12px}.empty p{font-size:9px;color:#aaa1b5;margin:8px 0 15px}.empty a{font-size:9px}.insight-card{position:relative;overflow:hidden;background:linear-gradient(125deg,#2b2340,#302746 55%,#4e3a65);padding:25px;border-radius:11px;color:#ede3fb;min-height:275px}.insight-kicker{font-size:7px;letter-spacing:2px;color:#bda5d5}.insight-symbol{position:absolute;right:25px;top:29px;color:#d6b7f2;font-size:25px}.insight-card h2{position:relative;font:500 27px/1.3 Manrope,sans-serif;letter-spacing:-.8px;margin-top:27px}.insight-card p{font-size:10px;color:#b6a4ca;position:relative;margin:16px 0 22px}.insight-card a{display:flex;justify-content:space-between;align-items:center;color:#e6d5fa;font-size:10px;border-top:1px solid #ffffff20;padding-top:15px;position:relative}.insight-card a span{font-size:16px}.insight-orbit{position:absolute;border:1px solid #c69cf01a;border-radius:50%;width:280px;height:280px;right:-140px;top:65px}.orbit-two{width:350px;height:350px;right:-175px;top:30px}.toolbar{display:flex;gap:12px;margin:22px 0;flex-wrap:wrap}input,select{border:1px solid #e1dce9;background:#fdfcfe;border-radius:6px;padding:11px 12px;color:#5f566b;font-size:12px;max-width:100%}input[type=search]{min-width:290px}input::placeholder{color:#b2a9bf}label{display:flex;flex-direction:column;gap:8px;font-size:10px;font-weight:500;color:var(--muted);margin-bottom:18px}.panels{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.panels h2{margin-bottom:20px}.wide{grid-column:1/-1}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px;margin-bottom:15px}.inline-form{display:flex;gap:10px;margin-top:22px}.inline-form input{flex:1;min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}#company-form{max-width:640px}#company-form .muted{margin-bottom:20px}.role-note{font-size:11px;padding:14px 18px;border:1px solid #e9e0f6;border-radius:7px;background:#f1ecf8;color:#9781ac;margin-bottom:24px}dialog{border:1px solid #eee7f7;border-radius:16px;padding:30px;width:min(560px,92vw);color:#40364e;box-shadow:0 30px 100px #17132344}dialog::backdrop{background:#17132375;backdrop-filter:blur(6px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:20px}.close{border:0;font-size:23px;background:transparent;padding:0 8px}dialog .muted{margin:12px 0 24px}#form-error{font-size:11px;color:#aa5368}#message{font-size:12px;color:#78629f}#message:empty{display:none}footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #e9e4ef;padding:22px 0;margin-top:30px;color:#aaa1b5;font-size:8px}footer strong{color:#88808f;font:700 11px Manrope,sans-serif;letter-spacing:-.5px;margin-right:5px}footer b{font-weight:400;margin:0 6px}button:disabled{opacity:.5;cursor:not-allowed}@media(min-width:1600px){main{padding:0 60px}.heading{margin-top:38px;margin-bottom:36px}.card{padding:28px}.stat-card{padding:25px 25px 0}.composition-content{padding:20px 0}.donut{width:220px}.dashboard-grid{gap:25px}.insight-card{padding:30px}.stat-value{margin:16px 0 24px}.checklist-item{padding:16px 0}}@media(max-height:850px){.foundation-card{display:none}.aside-bottom{bottom:18px}.workspace{margin-top:25px;margin-bottom:20px}}@media(max-width:1200px){aside{width:215px;padding:30px 15px}main{margin-left:215px;padding:0 25px}.brand{font-size:21px}.heading{align-items:flex-start}.heading-actions{flex-direction:column-reverse;align-items:stretch}.secondary-link{text-align:center}.stat-card{padding:16px 15px 0}.stat-label{font-size:10px}.stat-bottom{font-size:7px}.composition-content{gap:15px}.donut{width:155px}.legend>div{gap:7px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.header-right{gap:12px}}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.composition-content{justify-content:center;gap:40px}.donut{width:190px}.legend{max-width:350px}.insight-card{min-height:280px}.panels{grid-template-columns:1fr}.wide{grid-column:auto}.heading-actions{flex-shrink:1}.stat-bottom{font-size:9px}}@media(max-width:650px){aside{position:static;width:auto;padding:20px}.brand{font-size:23px}.workspace,.eyebrow,.future-nav,.aside-bottom{display:none}nav{display:flex;gap:4px;margin-top:20px;flex-wrap:wrap}nav a{font-size:10px;padding:10px 9px;gap:7px;margin:0}.nav-icon{font-size:14px;width:14px}.nav-end{display:none}main{margin:0;padding:0 18px}header{height:65px}.breadcrumb{font-size:10px;gap:8px}.local-pill{display:none}.header-divider{display:none}.notice{font-size:7px}.notice>span:last-child{font-size:7px}.heading{flex-direction:column;margin:26px 0 23px;gap:18px}.heading-actions{flex-direction:row;align-items:center}h1{font-size:27px}.heading .muted{font-size:11px}.stats{gap:12px}.stat-card{padding:14px 12px 0}.stat-icon{width:25px;height:25px;font-size:16px}.stat-label{font-size:9px}.stat-bottom{font-size:7px}.number{font-size:29px}.stat-context{font-size:6px}.stat-value{gap:5px}.card{padding:18px}.stat-card{padding-bottom:0}.composition-content{gap:15px}.donut{width:160px}.legend>div{font-size:9px;gap:6px}.legend-name{gap:5px}.legend>div>span:last-child{font-size:8px;min-width:22px}.panel-heading h2{font-size:13px}.panel-heading .muted{font-size:9px}.outline-badge{font-size:6px}.dashboard-grid{gap:16px;margin-top:16px}.form-grid{grid-template-columns:1fr}.toolbar input[type=search]{min-width:0;width:100%}.toolbar select{width:100%}.people-panel{padding-bottom:0}.text-link{font-size:9px}.insight-card h2{font-size:28px}footer{flex-direction:column;font-size:8px}.panels{margin-top:18px}.role-note{font-size:10px}dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* People operations and organisation workspace */
.directory-summary{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #e6e1ed;background:#fff;border-radius:10px;margin-bottom:25px;padding:21px 8px}.directory-summary>div{display:flex;align-items:center;justify-content:center;gap:10px;border-right:1px solid #eee9f3;color:#8b8296;font-size:10px}.directory-summary>div:last-child{border:0}.directory-summary strong{color:#4e425f;font-size:17px;font-weight:600;margin-right:5px}.summary-icon{display:grid;place-items:center;width:29px;height:29px;background:#f5f0fc;color:#a58ac6;border-radius:7px;font-size:18px}.green-dot,.grey-dot{width:7px;height:7px;border-radius:50%;background:#82b79c}.grey-dot{background:#bdb4c8}.directory-card{padding:0;overflow:hidden}.directory-title{display:flex;justify-content:space-between;align-items:center;padding:23px 24px 0}.directory-card .toolbar{padding:0 24px;margin:22px 0}.directory-card input[type=search]{flex:1;min-width:150px}.directory-card select{min-width:135px;font-size:11px}.directory-card td{padding-top:20px;padding-bottom:20px}.directory-card th:first-child,.directory-card td:first-child{padding-left:24px}.directory-bottom{display:flex;justify-content:space-between;gap:12px;padding:17px 24px;font-size:9px;color:#a095ad;background:#fdfcff}.person-link{padding:0;border:0;border-radius:0;background:transparent;font-size:11px;color:#554564;font-weight:600;text-align:left}.person-link:hover{color:#7b5bcb;text-decoration:underline}.edit-button{padding:6px 9px;font-size:9px;background:#fbf9fe;border-color:#eee8f6;color:#9881b6;white-space:nowrap}.status-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:8px}.status-pill:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.active-status{color:#64947b;background:#eef7f1}.inactive-status{color:#9e8b9c;background:#f4f0f4}.org-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px;border-radius:11px;background:linear-gradient(115deg,#302541,#504064);color:#eee4fa;margin-bottom:25px;position:relative;overflow:hidden}.org-banner h2{font-size:23px;font-weight:600;margin:10px 0}.org-banner p{font-size:10px;color:#baaccb;margin:0}.org-banner .kicker{color:#b4a2cc;font-size:8px}.structure-path{display:flex;align-items:center;gap:12px;font-size:10px;color:#c1b2d0}.structure-path span{padding:12px 16px;border:1px solid #ffffff22;background:#ffffff08;border-radius:7px}.structure-path b{font-size:16px;font-weight:400;color:#9480ab}.section-label{font-size:8px;letter-spacing:1.5px;color:#b19cc4;margin-bottom:12px}.org-unit{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #f0ebf6}.org-unit-icon{width:34px;height:34px;background:#f4eefb;color:#ac91ca;border-radius:8px;display:grid;place-items:center;font-size:19px}.org-unit strong{font-size:12px;font-weight:500;color:#635170}.org-unit small{display:block;font-size:9px;color:#ad9eb9;margin-top:5px}.org-unit .tag{margin-left:auto}.panels .card>.muted{padding:20px;border:1px dashed #e6dbef;border-radius:7px;text-align:center}.panels .card.wide{background:linear-gradient(120deg,#fff 65%,#faf7ff)}dialog{max-height:90vh;overflow-y:auto}.person-link:focus-visible{outline-offset:3px}
@media(max-width:1000px){.directory-summary{grid-template-columns:1fr 1fr;gap:20px}.directory-summary>div:nth-child(2){border:0}.structure-path{gap:6px}.structure-path span{padding:10px}.org-banner{padding:23px}}
@media(max-width:650px){.directory-summary{padding:18px 10px;gap:20px 0}.directory-summary>div{font-size:8px;gap:7px}.directory-summary strong{font-size:15px}.summary-icon{width:24px;height:24px;font-size:15px}.directory-title{padding:20px 17px 0}.directory-card .toolbar{padding:0 17px;gap:8px}.directory-card input[type=search]{flex:auto;width:100%}.directory-card select{min-width:0;flex:1;width:auto}.directory-bottom{flex-direction:column;padding:16px 17px;font-size:8px}.org-banner{align-items:flex-start;flex-direction:column}.structure-path{font-size:9px;gap:12px}.org-banner h2{font-size:21px}.org-banner p{font-size:9px}.org-unit strong{font-size:11px}}
.attendance-controls{display:flex;align-items:center;gap:16px;margin-bottom:23px}.attendance-controls label{margin:0;font-size:9px;min-width:170px}.attendance-controls input,.attendance-controls select{font-size:11px}.timezone-note{margin-left:auto;font-size:10px;color:#a294af}.attendance-stat{display:flex;flex-direction:column;padding:20px 24px;gap:14px}.attendance-stat>strong{font:600 30px Manrope,sans-serif;letter-spacing:-1px;color:#514260}.attendance-stat>small{font-size:9px;color:#b1a3bb}.attendance-note{font-size:10px;color:#a493b3;margin:19px 0 23px;line-height:1.8}.attendance-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr);gap:23px}.attendance-layout table{margin-top:22px}.shift-panel>h2{margin-bottom:8px}.shift-item{display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #eee7f4;padding:22px 0}.shift-item strong{font-size:12px;font-weight:600;color:#7b628d}.shift-item p{font-size:11px;color:#9c88ae;margin:8px 0}.shift-item small{font-size:9px;color:#b7a4c6}.empty-shift{font-size:11px;border:1px dashed #e6dbee;color:#ad99bd;border-radius:7px;padding:26px 15px;line-height:1.8;margin:24px 0}.shift-footnote{font-size:9px;color:#b2a1bf;line-height:1.8;margin-top:24px}.form-error{font-size:11px;color:#b15b74}.late-text{color:#bb8f5a}textarea{font:inherit;font-size:12px;color:#695575;border:1px solid #e1dce9;border-radius:6px;padding:12px;resize:vertical;max-width:100%;background:#fdfcfe}label[hidden]{display:none!important}@media(max-width:1100px){.attendance-layout{grid-template-columns:1fr}.shift-panel{min-width:0}.timezone-note{font-size:9px}.attendance-controls label{min-width:140px}}@media(max-width:650px){.attendance-controls{flex-wrap:wrap;gap:12px}.attendance-controls label{flex:1;min-width:120px}.timezone-note{width:100%;margin:0}.attendance-stat{padding:17px;gap:12px}.attendance-stat>strong{font-size:25px}.attendance-stat>small{font-size:8px}.attendance-note{font-size:9px}.attendance-layout{gap:17px}}
.attendance-controls{flex-wrap:wrap}.attendance-controls input[type=search]{min-width:0;width:190px}@media(max-width:650px){.attendance-controls label:has(#attendance-search){flex-basis:100%}.attendance-controls input[type=search]{width:100%}}
.leave-workspace{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr);gap:23px;margin-top:25px;align-items:start}.leave-side{display:flex;flex-direction:column;gap:23px}.calendar-nav{display:flex;gap:5px}.calendar-nav button{padding:4px 10px;font-size:17px;color:#aa90c2}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-top:20px;gap:3px}.calendar-day{text-align:center;font-size:7px;letter-spacing:.6px;color:#b6a6c3;padding:9px 0}.calendar-cell{min-height:43px;padding:7px 3px;border-radius:5px;text-align:center;color:#897596;background:#fbf9fd;font-size:10px}.calendar-cell strong{display:block;font-size:6px;font-weight:500;color:#62937c;background:#eaf5ef;padding:3px 0;margin-top:5px;border-radius:3px}.calendar-today{box-shadow:inset 0 0 0 1px #b29cd5;background:#f3ecfc;color:#8561ad;font-weight:600}.other-month{opacity:.35}.calendar-legend{display:flex;align-items:center;gap:7px;color:#aa9ab7;font-size:8px;margin-top:16px}.leave-guidance{padding:27px;border-radius:11px;background:linear-gradient(120deg,#302541,#504064);color:#e7dcf2}.leave-guidance .kicker{color:#b7a0ce}.leave-guidance h2{font-size:20px;font-weight:500;margin-top:12px}.leave-guidance p{font-size:10px;color:#baabcb;line-height:1.9;margin:18px 0 23px}.leave-guidance>div{display:flex;gap:12px;font-size:8px;color:#d1bddf;border-top:1px solid #ffffff22;padding-top:17px}.pending-status{color:#b18c51;background:#fbf5e9}.rejected-status{color:#b8798f;background:#fbf0f4}.review-employee{display:flex;align-items:center;gap:12px;padding:15px 0 20px}.review-employee .avatar{width:40px;height:40px}.review-employee h2{font-size:14px}.review-employee p{font-size:10px;color:#ad9aba;margin:5px 0}.review-employee>.status-pill{margin-left:auto}.review-dates{display:grid;grid-template-columns:1fr 1fr 1fr;gap:15px;padding:18px 14px;background:#f8f4fc;border:1px solid #eee6f5;border-radius:8px}.review-dates span{display:block;font-size:7px;color:#b19ac3;letter-spacing:1px}.review-dates strong{display:block;font-size:11px;color:#8b6ca2;font-weight:500;margin-top:10px}.review-reason{padding:24px 0 8px}.review-reason p{font-size:12px;color:#8b7998;white-space:pre-wrap;overflow-wrap:anywhere}.review-history{padding:16px 0 24px}.review-history>p{font-size:10px;color:#b1a0bd}.review-history>div:not(.section-label){padding:15px;border-left:2px solid #e6d8f1;background:#fcfaff;margin-top:10px}.review-history p{font-size:11px;color:#9a81ad;white-space:pre-wrap;overflow-wrap:anywhere}.review-history small{font-size:8px;color:#baa7c9}.leave-actions{display:flex;flex-wrap:wrap;gap:10px}.leave-register .toolbar select{flex:1}.leave-register table{margin-top:5px}.calendar-card{padding:23px}.calendar-card .section-label{font-size:7px}@media(max-width:1200px){.leave-workspace{grid-template-columns:1fr}.leave-side{display:grid;grid-template-columns:1fr 1fr;align-items:start}.calendar-cell{min-height:49px}}@media(max-width:650px){.leave-side{display:flex}.leave-workspace{gap:17px}.leave-side{gap:17px}.review-dates{gap:10px;padding:15px 10px}.review-dates strong{font-size:9px}.review-dates span{font-size:6px}.leave-actions button{font-size:9px}.calendar-cell strong{font-size:7px}.calendar-day{font-size:8px}.leave-guidance h2{font-size:21px}}
.report-filter-bar{display:flex;gap:15px;align-items:flex-end;background:#fff;border:1px solid #e9e1f0;border-radius:10px;padding:21px 24px;margin-bottom:23px;flex-wrap:wrap}.report-filter-bar label{margin:0;min-width:145px;font-size:9px}.report-filter-bar label select{min-width:145px}.report-filter-bar input,.report-filter-bar select{font-size:11px}.report-filter-bar>span{font-size:9px;line-height:1.8;color:#ae9cbc;margin-left:auto}.report-filter-bar button{margin-bottom:1px}.report-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:23px;margin-top:25px}.chart-legend{display:flex;justify-content:flex-end;gap:14px;font-size:9px;color:#ac99bd;margin:19px 0 5px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:7px;height:7px;background:#9c83d2;border-radius:2px}.chart-legend span:last-child i{background:#dfc8ad}.report-bars{display:flex;gap:12px;height:210px;align-items:flex-end;padding:15px 0 20px;border-bottom:1px solid #f1eaf7;margin-bottom:18px}.bar-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;min-width:0;height:100%;gap:8px}.bar-track{width:100%;max-width:32px;display:flex;flex-direction:column-reverse;justify-content:flex-start;height:145px;background:repeating-linear-gradient(to top,transparent,transparent 35px,#f7f3fb 36px);border-bottom:1px solid #e9e1f0;border-radius:4px 4px 0 0;overflow:hidden}.bar-present{background:linear-gradient(to top,#9680cd,#bc9fe2);width:100%;min-height:0}.bar-absent{background:#dfc8ad;width:100%}.bar-total{font:500 10px Manrope,sans-serif;color:#b29dc4}.bar-date{font-size:7px;color:#baabc7;white-space:nowrap}.report-breakdown .row{font-size:10px;padding:13px 0;margin-bottom:0}.report-breakdown .row strong{font:600 15px Manrope,sans-serif;color:#9576ad}.report-breakdown>h2{margin-bottom:12px}.report-breakdown>.muted{font-size:9px;line-height:1.8;margin-top:17px}.report-departments .table-wrap{margin-top:22px}.department-share{height:4px;width:110px;background:#f0e8f7;border-radius:3px;overflow:hidden;display:inline-block;vertical-align:middle}.department-share>span{display:block;height:100%;background:#b39ad2;border-radius:3px}.report-departments td:last-child small{display:inline;margin-left:9px}.report-export{border-radius:11px;background:linear-gradient(125deg,#302541,#4e3a65);padding:27px;color:#e9dcf4}.report-export .kicker{color:#b9a1ce}.report-export h2{font:500 24px/1.4 Manrope,sans-serif;margin:17px 0}.report-export p{font-size:10px;line-height:1.9;color:#bfadce}.report-export button{display:block;margin:10px 0;width:100%;text-align:left;background:#ffffff0d;border:1px solid #ffffff20;color:#e4d1f3;font-size:10px}.report-export button:hover{background:#ffffff18}.report-export small{display:block;font-size:8px;line-height:1.9;color:#b5a0c6;margin-top:18px}@media(max-height:950px){aside .workspace{margin-top:25px;margin-bottom:15px}aside .eyebrow{margin-top:22px}.foundation-card{display:none}}@media(max-width:1100px){.report-grid{grid-template-columns:1fr}.report-filter-bar>span{width:100%;margin:0}.report-bars{gap:7px}.report-departments{overflow:hidden}}@media(max-width:650px){.report-filter-bar{padding:18px;gap:12px}.report-filter-bar label{flex:1;min-width:120px}.report-filter-bar input,.report-filter-bar select{width:100%}.report-filter-bar label select{min-width:0}.report-filter-bar>span{font-size:8px}.report-bars{gap:5px}.bar-date{font-size:6px}.bar-total{font-size:8px}.report-grid{gap:17px}.report-export h2{font-size:25px}.report-chart{padding:18px 12px}.report-chart .panel-heading h2{font-size:12px}.report-chart .panel-heading .muted{font-size:8px}.report-chart .panel-bottom{font-size:8px;line-height:1.7}.report-chart .outline-badge{font-size:6px}}
.restore-file-label{margin-top:22px;padding:16px;border:1px dashed #d6c5e9;border-radius:8px;background:#faf7fe}.restore-file-label input{font-size:10px;margin-top:4px;padding:8px;background:#fff}.restore-file-label input::file-selector-button{border:0;background:#f0e8fa;color:#9a7bb5;border-radius:4px;padding:8px 12px;margin-right:12px;font:inherit}.restore-empty{text-align:center;padding:26px 10px;color:#ab94be}.restore-empty>span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#f4ecfc;font-size:23px;margin-bottom:14px}.restore-empty p{font-size:10px;color:#b09bbf}.restore-file-name{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #eee4f6;padding:9px 0 18px;margin-bottom:18px;font-size:10px;color:#80a48c}.restore-file-name small{font-size:9px;color:#b49dc7;overflow-wrap:anywhere}.restore-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.restore-counts>div{border:1px solid #eee5f5;border-radius:8px;background:#fcf9ff;padding:13px}.restore-counts span{display:block;font-size:8px;color:#ab92be}.restore-counts strong{display:block;font:600 22px Manrope,sans-serif;color:#9475b2;margin:8px 0}.restore-counts small{font-size:8px;color:#bba5cd}.restore-warning{font-size:10px;line-height:1.8;border:1px solid #f0e3ca;background:#fff9ef;border-radius:7px;padding:14px;color:#b09a76;margin-top:17px}.restore-consent{display:flex;flex-direction:row;align-items:flex-start;gap:10px;font-size:10px;line-height:1.8;color:#a28ab7;margin:19px 0}.restore-consent input{margin-top:3px;accent-color:#9e82cd}button[hidden]{display:none!important}@media(max-width:650px){.restore-counts{grid-template-columns:repeat(2,1fr)}.restore-file-name{flex-direction:column;gap:8px}.restore-consent{font-size:9px}.restore-warning{font-size:9px}}
.roster-controls{display:flex;align-items:flex-end;gap:18px;margin:0 0 23px;flex-wrap:wrap}.roster-controls label{margin:0;font-size:9px;min-width:160px}.roster-controls input,.roster-controls select{font-size:11px}.week-switch{display:flex;align-items:center;gap:18px;background:white;border:1px solid #e9e1ef;padding:12px;border-radius:8px;margin-right:auto}.week-switch button{font-size:18px;padding:2px 10px;border:0;background:#f8f3fe;color:#b29bcc}.week-switch span{display:block;font-size:7px;letter-spacing:1.2px;color:#b39cc6}.week-switch strong{display:block;font:600 12px Manrope,sans-serif;margin-top:6px;color:#8c6ca5}.roster-board{padding:0;overflow:hidden}.roster-board .directory-title{padding-bottom:23px;gap:20px;align-items:center}.roster-board .muted{font-size:9px;margin-top:6px}.roster-board input[type=search]{font-size:10px;min-width:240px}.roster-table{min-width:960px;table-layout:fixed}.roster-table th:first-child{width:180px;padding-left:23px}.roster-table th:not(:first-child){text-align:center}.roster-table th span{display:block;font-size:7px;text-transform:uppercase}.roster-table th strong{display:block;font-size:12px;font-weight:500;letter-spacing:0;color:#ac94c0;margin-top:7px}.roster-table td{height:105px;padding:8px;border-right:1px solid #f5eff9;white-space:normal;vertical-align:middle;text-align:center}.roster-table td:first-child{padding-left:23px;text-align:left;background:#fff}.roster-table td:first-child strong{font-size:11px;font-weight:500;display:block}.roster-table td:first-child small{line-height:1.8}.roster-table td.empty{height:180px}.roster-slot{width:100%;min-height:78px;text-align:left;border:1px solid #e8dbf4;border-radius:6px;background:#f4edfc;padding:10px;color:#9e7eb7}.roster-slot:hover{background:#ece0f8;border-color:#cdb4e1}.roster-slot strong{display:block;font-size:9px;line-height:1.5;color:#a07cba}.roster-slot span{display:block;font-size:8px;white-space:nowrap;margin-top:5px;color:#ae91c6}.roster-slot small{font-size:7px;display:block;margin-top:8px;color:#b59bca}.night-slot{background:#eeeaf7;border-color:#dcd4ed}.night-slot strong{color:#9685b9}.roster-open{width:100%;min-height:76px;background:transparent;border:1px dashed #f0e8f7;border-radius:6px;color:#d0bde0;font-size:18px}.roster-open:hover{border-color:#c9acdf;background:#faf6ff;color:#ac8ac6}.roster-leave{display:block;background:#edf6f0;padding:12px 5px;border-radius:6px;color:#90b19c;font-size:9px}.roster-unavailable{color:#d4c6de}.roster-lower{display:grid;grid-template-columns:1.5fr 1fr;gap:23px;margin-top:23px}.roster-lower .card>.muted{margin-top:20px;font-size:10px}.roster-cancelled{padding:15px 0;border-bottom:1px solid #f0e7f7}.roster-cancelled strong{display:block;font-size:11px;font-weight:500;color:#a286b5}.roster-cancelled>span{font-size:9px;color:#b79cc8;display:block;margin-top:6px}.roster-cancelled p{font-size:10px;color:#b19abd;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}.roster-review-divider{border-top:1px solid #eee3f6;margin:25px 0}#roster-attendance{margin-bottom:22px}#roster-review-actions>.muted{font-size:9px;margin-bottom:0;margin-top:12px}#roster-review-actions[hidden]{display:none}@media(max-width:1000px){.roster-lower{grid-template-columns:1fr}.roster-board .directory-title{align-items:flex-start;flex-direction:column}.roster-controls{gap:14px}}@media(max-width:650px){.roster-controls{gap:12px}.week-switch{width:100%;justify-content:space-between;padding:12px}.roster-controls label{flex:1;min-width:120px}.roster-board .directory-title{padding:20px 17px}.roster-board input[type=search]{min-width:0;width:100%}.roster-table{min-width:900px}.roster-table th:first-child{width:150px}.roster-lower{gap:17px;margin-top:17px}}
.overtime-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:23px;margin-top:25px;align-items:start}.overtime-layout .table-wrap{margin-top:23px}.overtime-available{border:1px solid #e9def4;background:#f8f2fe;padding:15px;border-radius:7px;font-size:10px;line-height:1.8;color:#a28ab7;margin-bottom:22px}@media(max-width:1100px){.overtime-layout{grid-template-columns:1fr}}@media(max-width:650px){.overtime-layout{gap:17px}}
@media(max-width:650px){aside{padding-bottom:15px}nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:#736086 #222131}nav a{white-space:nowrap;flex-shrink:0}nav::-webkit-scrollbar{height:3px}nav::-webkit-scrollbar-thumb{background:#736086;border-radius:2px}}
.auth-page{display:grid;grid-template-columns:1.05fr 1fr;min-height:100vh}.auth-story{display:flex;flex-direction:column;justify-content:space-between;padding:55px 60px;background:radial-gradient(ellipse at 90% 80%,#67508050,transparent 65%),#1e1b2d;color:#f0e8fa;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;right:-220px;bottom:-240px;width:650px;height:650px;border:1px solid #a382c828;border-radius:50%;pointer-events:none}.auth-story .brand{padding:0;position:relative;z-index:1}.auth-story>div{margin:60px 0;position:relative;z-index:1}.auth-story .kicker{font-size:9px;color:#af98c9}.auth-story h1{font:500 clamp(30px,3.7vw,60px)/1.3 Manrope,sans-serif;letter-spacing:-1.8px;margin:24px 0}.auth-story p{font-size:13px;line-height:1.9;color:#b8a4cb}.auth-story>small{font-size:8px;letter-spacing:1.8px;color:#887097}.auth-content{display:flex;flex-direction:column;justify-content:space-between;padding:55px 65px;background:#faf8fd}.auth-content>.local-pill{justify-content:flex-end;display:flex}.auth-form-wrap{max-width:380px;width:100%;margin:65px auto}.auth-form-wrap h1{font-size:28px;letter-spacing:-1px;line-height:1.4;margin:11px 0}.auth-form-wrap>.muted{line-height:1.9;margin:12px 0 28px}.auth-form-wrap label{font-size:11px;margin-bottom:19px}.auth-form-wrap input{padding:13px;background:#fff}.auth-form-wrap label[hidden]{display:none!important}.auth-form-wrap .primary{width:100%;padding:14px;font-size:11px}.auth-footnote{font-size:10px;color:#b29dc2;line-height:1.9;margin-top:24px}.auth-bottom{font-size:8px;color:#b3a3c1;text-align:center}.sign-out{font-size:9px;padding:7px 10px;background:#faf7fd}.server-notice,.sync-alert{padding:17px 20px;margin-top:19px;border-radius:8px;border:1px solid #e8ddf3;background:#f7f0ff;color:#a18ab4}.server-notice p,.sync-alert p{font-size:10px;line-height:1.8;margin:0 0 12px}.server-notice button,.sync-alert button{font-size:9px;margin:0 8px 5px 0}.sync-alert{background:#fff5ee;border-color:#efdecf;color:#b59077}#server-notice[hidden],#sync-alert[hidden],#login-form[hidden]{display:none!important}#view[inert]{opacity:.6;pointer-events:none}header .local-pill{display:flex!important}@media(max-width:1050px){.auth-story{padding:40px}.auth-content{padding:40px}.auth-story h1{font-size:36px}}@media(max-width:650px){.auth-page{grid-template-columns:1fr}.auth-story{padding:26px;min-height:230px}.auth-story>div{margin:35px 0 15px}.auth-story h1{font-size:29px;margin:15px 0}.auth-story h1 br:nth-of-type(2){display:none}.auth-story p,.auth-story>small{display:none}.auth-content{padding:27px;min-height:65vh}.auth-form-wrap{margin:35px auto}.auth-form-wrap h1{font-size:27px}.auth-content>.local-pill{font-size:9px}.header-right{gap:8px}.header-right .local-pill{font-size:8px}.header-right .small-avatar,.header-right .header-divider{display:none}.breadcrumb{max-width:45%;overflow:hidden;white-space:nowrap}.server-notice,.sync-alert{padding:15px}.server-notice p,.sync-alert p{font-size:9px}}
.access-role{padding:18px 0;border-bottom:1px solid #eee7f5}.access-role strong{font-size:12px;color:#9075a6}.access-role p{font-size:10px;line-height:1.9;color:#b09abd;margin:8px 0 0}.access-event{padding:14px 0;border-bottom:1px solid #f1eaf7}.access-event strong{font-size:10px;color:#9e83b3;text-transform:capitalize}.access-event p{font-size:10px;color:#b09dc0;margin:5px 0}.access-event small{font-size:8px;color:#bea9cd}.access-plants{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.access-plant{display:flex;flex-direction:row;align-items:center;gap:7px;border:1px solid #e5d9ef;background:#faf6fe;padding:10px 12px;border-radius:6px;font-size:10px;margin:0}.access-plant input{accent-color:#9774c3}#invite-result{margin-top:24px;border-top:1px solid #eee2f6;padding-top:20px}#invite-result[hidden]{display:none}#access-accounts{margin-top:23px}#access-invitations{margin-top:22px}#member-form>.muted{margin:18px 0}[hidden]{display:none!important}
@media(min-width:651px){aside{display:flex;flex-direction:column;height:100dvh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4c405e #191a29}aside nav,aside .workspace,aside .brand{flex-shrink:0}.aside-bottom{position:static;margin-top:auto;padding-top:15px;flex-shrink:0}.aside-bottom .profile{margin-top:12px}.aside-bottom .foundation-card{margin-top:15px}}
.draft-banner{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:24px;padding:14px 18px;border:1px dashed #c9b6ec;border-radius:9px;background:repeating-linear-gradient(135deg,#faf7ff,#faf7ff 12px,#f4eefc 12px,#f4eefc 24px);font-size:11px;color:#7b6a93}.draft-banner strong{font-size:9px;letter-spacing:1px;color:#6650c4;background:#fff;border:1px solid #e2d6f6;border-radius:4px;padding:5px 8px}.draft-banner.compact{margin:22px 0 18px}
.payroll-section{margin-top:24px}.payroll-list{margin-top:18px;border-top:1px solid var(--line)}.payroll-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.payroll-list small{display:block;color:var(--muted);margin-top:3px}
.statutory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}.statutory-card{border:1px solid #ece8f3;border-radius:9px;padding:18px;display:flex;flex-direction:column;gap:12px;background:#fcfbfe}.statutory-card>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.statutory-card .muted{font-size:9px;line-height:1.55;margin:0}.statutory-card label{margin-bottom:0}.statutory-confirmation{font-size:10px;color:#5f566d;background:#f1ecf8;border-radius:6px;padding:10px;margin:0;line-height:1.5}
.draft-preview{border-color:#dccff2;background:linear-gradient(180deg,#fff,#fdfbff)}.payroll-preview-title{padding:0 0 18px}.money{font-size:20px!important;letter-spacing:-.4px}.payroll-preview td{vertical-align:top;white-space:nowrap}.payroll-preview td:first-child{white-space:normal;min-width:240px}.payroll-preview summary{cursor:pointer;list-style:none}.payroll-preview summary::-webkit-details-marker{display:none}.payroll-preview summary small{display:block;color:var(--muted)}
.preview-lines{margin-top:12px;border-left:2px solid #e2d6f6;padding-left:12px;display:grid;gap:9px}.preview-lines>div{display:grid;grid-template-columns:1fr auto;gap:2px 12px;font-size:10px}.preview-lines small{grid-column:1/-1;color:var(--muted);font-size:9px;line-height:1.5;white-space:normal}.preview-lines .not-applied{opacity:.6}.preview-flag{margin:0;font-size:9px;color:#9a6a12;background:#fff7e6;border:1px solid #f4e2b8;border-radius:5px;padding:7px 9px;line-height:1.5;white-space:normal}
dialog.wide-dialog{width:min(760px,94vw)}.component-row{display:grid;grid-template-columns:1.4fr 1.1fr .9fr auto auto;gap:8px;align-items:center;margin-bottom:10px}.component-row input,.component-row select{min-width:0}.component-row .component-check{flex-direction:row;align-items:center;gap:6px;margin:0;font-size:9px;white-space:nowrap}.component-row [data-component-remove]{padding:8px 11px}#add-component{margin:4px 0 18px}
@media(max-width:1000px){.statutory-grid{grid-template-columns:1fr}}@media(max-width:650px){.component-row{grid-template-columns:1fr 1fr}.component-row>input[name="name"]{grid-column:1/-1}}
.draft-save{display:grid;grid-template-columns:1.4fr 1fr auto;gap:14px 18px;align-items:end;margin-top:22px;padding:18px;border:1px solid #dccff2;border-radius:9px;background:#faf7ff}.draft-save strong{font-size:12px}.draft-save .muted{font-size:9px;line-height:1.55;margin-top:6px}.draft-save label{margin:0}.draft-save .form-error{grid-column:1/-1;margin:0}
#draft-history .toolbar{align-items:center}.draft-version{border-color:#cdbdf0}.draft-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:4px 0 18px}.draft-meta>div{border:1px solid #ece8f3;border-radius:8px;padding:12px 14px;background:#fcfbfe;display:flex;flex-direction:column;gap:4px;min-width:0}.draft-meta span{font-size:7px;letter-spacing:.8px;color:#9a90aa}.draft-meta strong{font-size:11px;overflow-wrap:anywhere}.draft-meta small{font-size:9px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}.statutory-snapshot{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){.draft-save{grid-template-columns:1fr}.draft-meta,.statutory-snapshot{grid-template-columns:1fr 1fr}}@media(max-width:650px){.draft-meta,.statutory-snapshot{grid-template-columns:1fr}}
.backup-scope{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 4px}.backup-scope>div{border:1px solid #ece8f3;border-radius:8px;background:#fcfbfe;padding:14px 16px}.backup-scope ul{margin:8px 0 0;padding-left:16px;font-size:10px;line-height:1.8;color:#7b6a93}.backup-scope>div:last-child ul{color:#a99bb8}.restore-changes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}.restore-changes>div{border:1px solid #eee5f5;border-radius:8px;padding:13px;min-width:0}.restore-changes h3{font-size:10px;margin:0 0 8px;color:#4b3f63}.restore-changes p{font-size:9px;line-height:1.7;margin:3px 0;color:#9a8aac;overflow-wrap:anywhere}.restore-changes .added{color:#4f8f68}.restore-changes .removed{color:#b25a6a}.restore-changes .changed{color:#a07a2c}.restore-history{border:1px solid #f2d3d9;background:#fff6f8;border-radius:8px;padding:13px 15px;margin:0 0 14px;font-size:10px;line-height:1.8;color:#a4576a}.restore-history strong{display:block;font-size:9px;letter-spacing:.8px;margin-bottom:4px}.restore-statutory td small{display:block;color:#a99bb8}.restore-counts.four{grid-template-columns:repeat(4,minmax(0,1fr))}.restore-copies{margin-top:22px;border-top:1px solid #eee4f6;padding-top:16px}.restore-copies>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;font-size:10px;color:#7b6a93;border-bottom:1px solid #f4eff9}@media(max-width:650px){.backup-scope,.restore-changes{grid-template-columns:1fr}.restore-counts.four{grid-template-columns:1fr 1fr}.restore-copies>div{flex-direction:column;align-items:flex-start}}

.review-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:4px 0 18px}.review-controls label{flex:1 1 260px;max-width:420px}.review-controls .muted{font-size:9px}.review-outcome{display:flex;flex-direction:column;gap:5px;border-radius:9px;padding:16px 18px;margin-bottom:18px;border:1px solid #e7dcf3;background:#fbf8ff}.review-outcome strong{font-size:12px;letter-spacing:1px;color:#5d4a86}.review-outcome span{font-size:10px;color:#7b6a93}.review-outcome small{font-size:9px;color:#a99bb8}.review-outcome.has-blocking{border-color:#f2d3d9;background:#fff6f8}.review-outcome.has-blocking strong{color:#a4495e}.review-group{margin:18px 0 6px}.review-group>.muted{font-size:9px;margin:4px 0 10px}.review-finding{border:1px solid #ece8f3;border-left:3px solid #c9b6ec;border-radius:7px;padding:12px 14px;margin-top:9px;background:#fff}.review-finding strong{font-size:11px;color:#4b3f63}.review-finding p{font-size:10px;line-height:1.7;color:#8a7a9e;margin:5px 0 7px}.review-finding.blocking{border-left-color:#d0677d;background:#fffafb}.review-finding.warning{border-left-color:#d9a54a}.review-finding.info{border-left-color:#9fb6d6}@media(max-width:650px){.review-controls{flex-direction:column;align-items:stretch}.review-controls label{max-width:none}}.readiness-review>.section-label{margin-top:24px}.readiness-review>.section-label+.table-wrap,.readiness-review>.section-label+.review-history{margin-top:10px}
.proration-card{max-width:none}.proration-rules{margin:10px 0 12px;padding-left:18px;font-size:10px;line-height:1.8;color:#7b6a93}.proration-deductions{border:1px solid #ece8f3;border-radius:8px;padding:12px 14px;margin:12px 0;display:flex;flex-direction:column;gap:8px}.proration-deductions legend{font-size:9px;letter-spacing:.6px;color:#9a90aa;padding:0 6px}.proration-deductions label{flex-direction:row;align-items:flex-start;gap:8px;font-size:10px;line-height:1.6;color:#6d5d84}.proration-deductions input{margin-top:3px;accent-color:#9e82cd}.preview-flag.info{background:#f6f4fc;border-color:#e3dbf3;color:#6d5d84}
.proration-method{margin:10px 0 14px;font-size:10px;color:#6d5d84}.proration-method summary{cursor:pointer;font-weight:600}.proration-history td small{display:block;color:#a99bb8}.superseded-row td{opacity:.62}.superseded-row td strong{text-decoration:line-through}.proration-notice{margin:10px 0}
.statutory-history{margin:10px 0 14px}.statutory-history>div{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.statutory-history small{display:block;color:#a99bb8;font-size:9px;line-height:1.6}.statutory-history .superseded-row>span:first-child{opacity:.6}
.workbench{border:1px dashed #c9b6ec}.workbench-banner strong{background:#fff7e6;border-color:#f0dcb0;color:#9a6a1c}.workbench-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:6px 0 16px}.workbench-summary strong{font-size:12px;color:#4b3f63}.workbench-summary>span{font-size:10px;color:#9a8aac}.workbench-summary>div{display:flex;flex-wrap:wrap;gap:6px}.selected-row td{background:#faf6ff}.workbench-detail{border:1px solid #ece8f3;border-radius:10px;padding:18px;margin:18px 0;background:#fdfcff}.workbench-detail h3{margin:2px 0 0;font-size:15px;color:#3f3456}.workbench-workings{font-size:10px;line-height:1.8;color:#6d5d84;padding-left:18px;margin:6px 0 16px}.workbench-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-inputs small{display:block;font-size:9px;line-height:1.6;color:#7b6a93;overflow-wrap:anywhere}.workbench-refusal{border-radius:8px;padding:12px 14px;margin:12px 0;font-size:10px}.workbench-refusal p{margin:4px 0}.workbench-refusal.expected{border:1px solid #cfe6d6;background:#f5fbf7;color:#3f7a54}.workbench-refusal.unexpected{border:1px solid #f2d3d9;background:#fff6f8;color:#a4495e}.workbench-row{border:1px solid #ece8f3;border-radius:8px;padding:12px 14px;margin:10px 0;font-size:11px;color:#4b3f63;background:#fff}@media(max-width:650px){.workbench-inputs{grid-template-columns:1fr}.workbench-detail{padding:12px}}
.reconciliation>.section-label{margin-top:24px}.reconciliation>.section-label+.table-wrap,.reconciliation>.section-label+.draft-meta{margin-top:10px}
.preview-lines .employer-line{border-top:1px dashed #e3dbf3;margin-top:4px;padding-top:6px}.preview-lines .employer-line strong{color:#6650c4}
/* Payroll period input worksheets */
.worksheet-banner strong{color:#8a5a00;border-color:#efd9a8}.worksheet-detail{margin:22px 0;padding:18px;border:1px solid #ece7f5;border-radius:9px;background:#fcfbfe}.worksheet-detail h3{margin:4px 0 0;font-size:15px}.worksheet-form{margin-top:24px}.worksheet-entry input{width:100%;min-width:90px}.worksheet-entry td small{display:block}.worksheet-flags .status-pill{margin-right:6px}.quantity-source{border-left:3px solid #c9b6ec;padding-left:10px}
.worksheet-detail .section-label,.worksheet>.section-label{margin-top:20px}.worksheet-detail>.muted{margin-top:6px}
/* Worksheet corrections: conflicts, comparison and blocked entries */
.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}
.worksheet-unsaved{color:#8a5a00;background:#fff7e6;border:1px solid #efd9a8;border-radius:4px;padding:2px 6px;letter-spacing:.5px}
.worksheet-conflict{margin:14px 0;padding:16px 18px;border:1px solid #d9c8f5;border-left:4px solid #6650c4;border-radius:9px;background:#faf7ff;color:#3d3354}.worksheet-conflict p{margin:6px 0 12px;font-size:13px}
.worksheet-discard{margin-top:10px;padding:12px 14px;border:1px dashed #e0a4a4;border-radius:8px;background:#fff8f8}
.danger-button{color:#a12c2c;border-color:#e6b4b4;background:#fff}.danger-button:hover,.danger-button:focus-visible{background:#fdeeee}
.worksheet-compare{margin:18px 0;padding:18px;border:1px solid #ece7f5;border-radius:9px;background:#fff}
.worksheet-compare fieldset,.worksheet-blocked fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px}
.worksheet-choice{display:inline-flex;align-items:center;gap:6px;font-size:12px;cursor:pointer}.worksheet-choice input{accent-color:#6650c4;width:16px;height:16px}
.worksheet-compare-person td{background:#faf8fe}.worksheet-compare-table td small{display:block}
.worksheet-blocked{margin-top:8px}.worksheet-blocked p{margin:0 0 6px;font-size:12px}
.worksheet-pending{font-size:12px;color:#5a4c78}
.worksheet-notice{padding:10px 14px;border-radius:8px;background:#f1fbf4;border:1px solid #bfe3c9;color:#245c36;font-size:13px}
.worksheet-set-aside{margin:12px 0;padding:12px 14px;border:1px dashed #c9b6ec;border-radius:8px;background:#fcfbfe}.worksheet-set-aside p{margin:4px 0;font-size:12px}.worksheet-set-aside small{display:block;color:#7b6a93}
@media (max-width:640px){.worksheet-conflict .heading-actions,.worksheet-discard .heading-actions,.worksheet-compare .heading-actions{flex-direction:column;align-items:stretch}}
.worksheet-choice{flex-direction:row;margin:0;font-size:12px;font-weight:500;color:#3d3354;padding:4px 0}.worksheet-choice input{width:16px;height:16px;min-width:16px;padding:0;margin:0}
@media (max-width:640px){.worksheet-compare-table thead{display:none}.worksheet-compare-table,.worksheet-compare-table tbody,.worksheet-compare-table tr,.worksheet-compare-table td{display:block;width:100%}.worksheet-compare-field td{display:grid;grid-template-columns:42% 1fr;gap:8px;padding:6px 10px;border:0}.worksheet-compare-field td::before{content:attr(data-label);font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#b19cc4}.worksheet-compare-field{border-bottom:1px solid #ece7f5;padding:6px 0}}
.worksheet-fieldset{border:0;margin:0;padding:0;min-width:0}.worksheet-fieldset:disabled input,.worksheet-fieldset:disabled button{opacity:.6;cursor:not-allowed}.worksheet-saving{margin-top:10px;font-size:12px;color:#6650c4}

/* Payroll audit history (read-only) */
.audit-banner strong{color:#4e3f9e}
.audit-filters{margin:4px 0 18px}.audit-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.audit-filters .heading-actions{justify-content:flex-start}.audit-apply{width:auto;padding:10px 18px}
.audit-table td small{display:block;margin-top:3px}.audit-table td{vertical-align:top;font-size:12px}.audit-table time{white-space:nowrap}
.audit-history-only td{background:#fffcf4}
.audit-actor{display:inline-block;font-size:11px;padding:3px 8px;border-radius:999px;background:#f4f0fc;color:#5a4c78}.audit-actor-unknown{background:#fbf0f4;color:#a1536c}.audit-actor-none{background:#f5f4f7;color:#7d7887;font-style:italic}
.audit-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:11px;color:var(--muted)}
.audit-coverage{margin-top:16px;font-size:12px;color:#5a4c78}.audit-coverage summary{cursor:pointer;font-weight:600;color:#6650c4}.audit-coverage ul{margin:8px 0 0 18px;padding:0}.audit-coverage li{margin:4px 0}
@media (max-width:900px){.audit-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.audit-filter-grid{grid-template-columns:1fr}.audit-table thead{display:none}.audit-table,.audit-table tbody,.audit-table tr,.audit-table td{display:block;width:100%}.audit-row{border-bottom:1px solid #ece7f5;padding:8px 0}.audit-row td{display:grid;grid-template-columns:34% 1fr;gap:8px;padding:5px 10px;border:0}.audit-row td::before{content:attr(data-label);font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#b19cc4}.audit-pager{flex-wrap:wrap;justify-content:center}}
.audit-table td{white-space:normal;overflow-wrap:anywhere}.audit-table td[data-label="Details"]{min-width:320px;line-height:1.5}.audit-table td:last-child{white-space:nowrap}
@media (max-width:640px){.audit-row td{display:block;padding:5px 10px}.audit-row td::before{display:block;margin-bottom:2px}.audit-table td[data-label="Details"]{min-width:0}.audit-row td[data-label=""]::before{display:none}}
.audit-actor{white-space:nowrap}
/* Payroll period overview (read-only) */
.overview-banner strong{color:#4e3f9e}
.overview-layout{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:22px;align-items:start}
.overview-months td{vertical-align:top;font-size:12px;white-space:normal}.overview-months td small{display:block;color:var(--muted)}.overview-selected td{background:#f6f2fe}
.overview-detail{padding:18px;border:1px solid #ece7f5;border-radius:9px;background:#fcfbfe;min-width:0}
.overview-month-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.overview-month-head h3{margin:0;font-size:17px}
.overview-facts,.overview-checks{margin-top:16px}.overview-checks{display:grid;gap:16px}
.overview-basis{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.overview-findings,.overview-versions{list-style:none;margin:6px 0 0;padding:0}.overview-findings li,.overview-versions li{padding:6px 0;border-bottom:1px solid #f0ecf7;font-size:12px}.overview-findings small,.overview-versions small{color:var(--muted);margin-left:4px}
.overview-counts{font-size:13px}.overview-unavailable{font-size:12px;padding:10px 12px;border:1px dashed #efd9a8;border-radius:8px;background:#fffaf0}
.overview-quantity{font-size:12px;margin-top:10px}.overview-links{margin-top:16px;flex-wrap:wrap;justify-content:flex-start}
.overview-version-lists{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.overview-empty{font-size:13px;margin-top:12px}
@media (max-width:1100px){.overview-layout{grid-template-columns:1fr}}
@media (max-width:640px){.overview-basis,.overview-version-lists{grid-template-columns:1fr}.overview-months thead{display:none}.overview-months,.overview-months tbody,.overview-months tr,.overview-months td{display:block;width:100%}.overview-months tr{border-bottom:1px solid #ece7f5;padding:6px 0}.overview-months td{padding:4px 10px;border:0}.overview-months td::before{content:attr(data-label);display:block;font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#b19cc4}.overview-months td[data-label=""]::before{display:none}.overview-detail{padding:12px}}
.overview-checks p{font-size:12px;line-height:1.5}
/* Public holidays and plant calendars */
.holiday-card .holiday-years{align-items:center;gap:10px}.holiday-card .holiday-years strong{font-size:15px;color:#3d3354;min-width:44px;text-align:center}
.holiday-table td small{display:block;color:var(--muted)}.holiday-form{margin-top:18px}.holiday-plants{border:0;padding:0;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:6px 16px}.holiday-plants legend{font-size:10px;color:var(--muted);margin-bottom:6px}
.holiday-tag{display:block;margin-top:3px;font-size:9px;font-weight:600;color:#6650c4;background:#f4f0fc;border-radius:4px;padding:2px 4px;white-space:normal}
.holiday-note{margin:12px 0}
/* Employee profile (Core HR) */
.profile-facts{margin-bottom:18px}.profile-facts .status-pill{margin-top:4px}
.profile-panels{margin-bottom:18px}.profile-section{margin-bottom:18px}.profile-section td small{display:block;color:var(--muted)}
.profile-form{margin-top:14px;padding-top:14px;border-top:1px solid #f0ecf7}.profile-form .primary{width:auto;padding:10px 18px}
.profile-timeline{list-style:none;margin:8px 0 0;padding:0 0 0 14px;border-left:2px solid #e2d6f6}.profile-timeline li{position:relative;padding:8px 0 10px 10px;font-size:12px}.profile-timeline li::before{content:'';position:absolute;left:-21px;top:12px;width:10px;height:10px;border-radius:50%;background:#7660d5;border:2px solid #fff}.profile-timeline small{display:block;color:var(--muted);margin-top:2px}
.profile-attention{margin-bottom:18px}.employee-more{margin:6px 0 14px}.employee-more summary{cursor:pointer;font-size:12px;color:#6650c4;font-weight:600;margin-bottom:10px}
a.person-link{color:inherit;font-weight:600;text-decoration:none}a.person-link:hover,a.person-link:focus-visible{color:#6650c4;text-decoration:underline}
/* Leave policy and balances */
.leave-policy{margin-bottom:22px}.leave-policy-form{margin-top:10px}.leave-entitlements{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.leave-balances td small{display:block;color:var(--muted)}.leave-negative{color:#b15b74}.leave-balance-label{margin-top:18px}
.leave-balance-note{margin:12px 0}.leave-over{border-color:#e6b4b4;background:#fff7f8}
/* Payroll approval and payslips */
.payroll-approval .approval-status{align-items:center}.payroll-approval .approval-status small{display:block;font-size:10px;color:var(--muted)}
.approval-banner strong{color:#4e3f9e}.approval-checks{margin:10px 0;padding:10px 14px;border:1px solid #e6b4b4;border-radius:8px;background:#fff8f8;font-size:12px}.approval-warnings{margin:10px 0;padding:10px 14px;border:1px solid #efd9a8;border-radius:8px;background:#fffaf0;font-size:12px}
.approval-checks ul,.approval-warnings ul{margin:6px 0 0 18px;padding:0}.approval-ok{font-size:12px;color:#245c36}
.approval-form{margin:12px 0;display:grid;gap:8px;max-width:640px}.approval-form .primary{width:auto;justify-self:start;padding:10px 18px}.approval-form button{justify-self:start}
.payslips{margin-top:20px}.payslip{border:1px solid #ece7f5;border-radius:10px;padding:16px 18px;margin:14px 0;background:#fff;break-inside:avoid}
.payslip header{height:auto;align-items:flex-start;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid #f0ecf7;padding-bottom:10px}.payslip header small{display:block;color:var(--muted);font-size:11px}.payslip-period{text-align:right}.payslip-period span{font-size:10px;letter-spacing:1px;color:#6650c4;font-weight:600}
.payslip-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:10px}.payslip h4{margin:0 0 6px;font-size:11px;letter-spacing:1px;color:var(--muted);text-transform:uppercase}.payslip p{display:flex;justify-content:space-between;gap:12px;margin:4px 0;font-size:12px}
.payslip-total{border-top:1px dashed #e2d6f6;padding-top:6px}.payslip-net{font-size:15px!important;margin-top:12px!important;padding:10px 12px;border-radius:8px;background:#f6f2fe}.payslip footer{margin-top:10px;font-size:10px;color:var(--muted)}.payslip-rule-notice{margin-top:10px;padding:8px 10px;border-left:3px solid #b7791f;background:#fffaf0;font-size:11px;color:#5f4b1f}
@media (max-width:640px){.payslip-cols{grid-template-columns:1fr}.payslip-period{text-align:left}}
@media print{body *{visibility:hidden}#payslips,#payslips *{visibility:visible}#payslips{position:absolute;left:0;top:0;width:100%}#payslips .heading-actions{display:none}.payslip{page-break-inside:avoid}}
/* Employee self-service */
.self-page{background:#f7f5fb;min-height:100vh}.self-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 28px;background:#1d1a2b}.self-header .brand{color:#fff}.self-header .local-pill{color:#d8d0ee}
.self-main{max-width:980px;margin:0 auto;padding:28px 20px}.self-card{margin:18px 0}.self-leave{margin:16px 0}.self-leave .primary{width:auto;padding:10px 18px}.self-cancel{display:flex;gap:6px}.self-cancel input{min-width:0;flex:1}
@media (max-width:640px){.self-header{padding:12px 14px}.self-main{padding:18px 12px}}
.cost-table td small{display:block;color:var(--muted)}.cost-table tfoot th,.cost-table tfoot td{font-weight:600;border-top:2px solid #e2d6f6}
@media (max-width:640px){.cost-table thead{display:none}.cost-table,.cost-table tbody,.cost-table tr,.cost-table td{display:block;width:100%}.cost-table tbody tr{border-bottom:1px solid #ece7f5;padding:6px 0}.cost-table tbody td{display:grid;grid-template-columns:42% 1fr;padding:4px 10px;border:0}.cost-table tbody td::before{content:attr(data-label);font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#b19cc4}}
/* People programmes */
.prog-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.prog-tabs button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 14px;border-radius:10px;font-size:12px}.prog-tabs button small{font-size:9px;color:var(--muted);letter-spacing:.5px}.prog-tabs button.active{background:#7660d5;color:#fff;border-color:#7660d5}.prog-tabs button.active small{color:#e6defa}
.prog-layout{align-items:start}.prog-layout>*{min-width:0}.prog-table td small{display:block;color:var(--muted)}.prog-detail .directory-title p{margin:4px 0 0}
.prog-form textarea{width:100%}.prog-form .primary{width:auto;padding:10px 18px}.prog-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 18px;margin:12px 0}.prog-values dt{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#b19cc4}.prog-values dd{margin:2px 0 0;font-size:13px;white-space:pre-wrap}
.prog-checklist{list-style:none;margin:6px 0 14px;padding:0}.prog-checklist li{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;padding:8px 0;border-bottom:1px solid #f0ecf7;font-size:12px}.prog-checklist small{grid-column:1/-1;color:var(--muted)}.prog-status{margin:10px 0 18px;flex-wrap:wrap;justify-content:flex-start}
@media (max-width:640px){.prog-tabs button{flex:1 1 45%}.prog-table thead{display:none}.prog-table,.prog-table tbody,.prog-table tr,.prog-table td{display:block;width:100%}.prog-table tr{border-bottom:1px solid #ece7f5;padding:6px 0}.prog-table td{padding:3px 10px;border:0}}
.prog-expiring{margin:10px 0 14px;padding:12px 14px;border:1px solid #efd9a8;border-radius:8px;background:#fffaf0;font-size:12px}.prog-expiring ul{margin:6px 0;padding-left:18px}.prog-expiring li{margin:4px 0}.prog-expiring small{color:var(--muted)}
.letter-preview{margin:10px 0;padding:24px 28px;border:1px solid #ece7f5;border-radius:10px;background:#fff;font-size:13px;line-height:1.6}.letter-preview h3{margin:10px 0}.letter-body{white-space:pre-wrap}.letter-meta{color:var(--muted);font-size:11px}.letter-note{font-size:11px;margin-top:14px}
@media print{body.printing-letter *{visibility:hidden}body.printing-letter #letter-preview,body.printing-letter #letter-preview *,body.printing-letter #self-letter,body.printing-letter #self-letter *{visibility:visible}body.printing-letter #letter-preview,body.printing-letter #self-letter{position:absolute;left:0;top:0;width:100%;border:0}body.printing-letter .letter-note,body.printing-letter #self-letter button,body.printing-letter #self-letter .form-error{display:none}}

.access-reset{margin-top:14px;padding:12px 14px;border:1px solid #e2d6f6;border-radius:8px;background:#faf7ff;font-size:12px}.access-reset input{width:100%;margin-top:6px}

#mfa-form[hidden]{display:none!important}
.link-button{display:block;margin:14px auto 0;background:none;border:0;color:#5b3fa0;font-size:12px;text-decoration:underline;cursor:pointer}

.mfa-steps{padding-left:20px;line-height:1.7}.mfa-steps>li{margin:14px 0}.mfa-key code{font-size:16px;letter-spacing:1px;background:#f6f3fb;padding:6px 10px;border-radius:6px;display:inline-block;word-break:break-all}
.mfa-codes{columns:2;max-width:360px;padding-left:22px;margin:10px 0}.mfa-codes code{font-size:13px}.mfa-inline{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:10px}.mfa-inline label{flex:1 1 200px;margin:0}
.mfa-actions{display:grid;gap:14px}.mfa-new-codes{margin:12px 0;padding:12px;border:1px solid #e2d6f6;border-radius:8px;background:#faf7ff}
a.sign-out{text-decoration:none;display:inline-flex;align-items:center}
@media print{.mfa-inline,.mfa-actions form{display:none}}

#workforce-analytics{margin-top:22px}#workforce-analytics h3{margin:22px 0 8px;font-size:15px}.analytics-table td small{display:block;color:#6b6478;font-size:11px;margin-top:3px}

.survey-editor .survey-q{border:1px solid #e7e1f0;border-radius:8px;padding:10px 14px;margin:12px 0}.survey-q legend{font-size:11px;font-weight:600;padding:0 4px}
.survey-q-actions,.survey-form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.survey-options[hidden]{display:none!important}
.survey-result{border-top:1px solid #efeaf5;padding:12px 0}.survey-result>strong{display:block}.survey-result>small{color:#6b6478}
.survey-bars{display:flex;gap:14px;align-items:flex-end;margin-top:8px}.survey-bars span{display:flex;flex-direction:column;align-items:center;font-size:11px;color:#6b6478}.survey-bars i{display:block;width:22px;background:#7b5cc4;border-radius:3px 3px 0 0;min-height:2px}.survey-bars b{color:#1d1530}
.survey-enps b{font-size:22px;margin:0 8px}.survey-enps span{color:#6b6478;font-size:12px}.survey-counts,.survey-comments{margin:6px 0;padding-left:18px}.survey-comments li{margin:4px 0}
.survey-group{border:1px solid #efeaf5;border-radius:8px;padding:10px 14px;margin:10px 0}.link-cell{background:none;border:0;padding:0;color:#3d2a73;font-weight:600;cursor:pointer;text-align:left}.inline-label{display:inline-flex;gap:6px;align-items:center;margin-left:8px}
.self-survey fieldset{border:0;padding:0;margin:14px 0}.self-survey legend{font-weight:600;margin-bottom:6px}.self-scale{display:flex;flex-wrap:wrap;gap:6px}.self-scale label{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;border:1px solid #d9d0ea;border-radius:8px;cursor:pointer;margin:0}.self-scale input{position:absolute;opacity:0}.self-scale label:has(input:checked){background:#3d2a73;color:#fff;border-color:#3d2a73}.self-scale label:has(input:focus-visible){outline:2px solid #7b5cc4}.self-scale-ends{display:flex;justify-content:space-between;font-size:11px;color:#6b6478;max-width:460px}

.attention-panel{margin-bottom:18px}.attention-list{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.attention-list a{display:flex;gap:12px;align-items:center;padding:12px 14px;border:1px solid #e7e1f0;border-radius:10px;text-decoration:none;color:inherit;background:#fdfcff}.attention-list a:hover,.attention-list a:focus-visible{border-color:#7b5cc4}.attention-list strong{font-size:22px;min-width:34px;color:#3d2a73}.attention-list span{flex:1;font-size:13px}.attention-list small{display:block;color:#6b6478}.attention-list b{color:#7b5cc4}

.appr-item{margin:12px 0}.appr-item h3{margin:6px 0}.appr-item small{display:block;color:#6b6478}.appr-rec{border-left:3px solid #7b5cc4;padding:4px 10px;margin:8px 0}.appr-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.appr-heading{font-size:16px;margin:18px 0 6px}

.self-option{display:flex;gap:8px;align-items:center;min-height:40px;margin:2px 0}

.self-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.settlement-panel,.settlement,.settlement fieldset,.settlement form{min-width:0;max-width:100%}.settlement td,.settlement p{overflow-wrap:anywhere}.settlement-panel{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}.settlement{border:1px solid #e7e1f5;border-radius:12px;padding:14px;margin:10px 0;background:#fcfbff}.settlement-open{border-color:#c9bdf0;box-shadow:0 0 0 3px #f1edfc}.settlement h3{margin:0;font-size:15px}.settlement-lines{white-space:normal}.settlement-lines th[scope=row]{display:table-cell;text-align:left;font-weight:600;font-size:11px;letter-spacing:0;color:#5f5670;background:#fff;padding:12px 10px}.settlement-lines td{padding:12px 10px;font-size:12px;vertical-align:top}.settlement-lines td:nth-child(2){white-space:nowrap}.settlement-total th,.settlement-total td{border-top:2px solid #e2dcf3;font-weight:700}.settlement-list{border:1px dashed #e2dcf3;border-radius:10px;margin:10px 0;padding:8px 10px}.settlement-row{align-items:end}.settlement-actions{margin-top:10px}.settlement-actions .heading-actions{flex-wrap:wrap;gap:8px}
@media (max-width:640px){.settlement{padding:10px}.settlement-row{grid-template-columns:1fr}.settlement-lines th[scope=row]{display:block;padding-top:8px}}
/* Multi-organisation phase 2: organisation switcher, access-ended page, leave dialog, history re-check, chooser. */
.ws-switcher{position:relative}
.org-switch summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;align-items:flex-end;padding:6px 12px;border:1px solid #e3dcf3;border-radius:10px;background:#faf8ff;min-width:0;max-width:260px}
.org-switch summary::-webkit-details-marker{display:none}
.org-switch summary:focus-visible{outline:2px solid #6650c4;outline-offset:2px}
.org-switch .org-name{font-weight:700;color:#24163f;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:236px}
.org-switch .org-role{font-size:11px;color:#6650c4;letter-spacing:.3px}
.org-switch ul{position:absolute;right:0;top:calc(100% + 6px);z-index:20;margin:0;padding:8px;list-style:none;background:#fff;border:1px solid #e3dcf3;border-radius:12px;box-shadow:0 12px 32px rgba(36,22,63,.12);min-width:240px}
.org-switch li{padding:8px 10px;font-size:13px;border-radius:8px}
.org-switch li a{color:#4a36a8;font-weight:600}
.org-switch li.current{background:#f4f0ff}
.org-switch li.unavailable{color:#8b8199}
.access-ended{max-width:640px;margin:12vh auto;padding:32px;background:#fff;border:1px solid #e3dcf3;border-radius:16px}
.access-ended h1{font-size:24px;color:#24163f}
html.ws-checking body{visibility:hidden}
html.ws-checking #ws-checking-note{visibility:visible;position:fixed;top:24px;left:50%;transform:translateX(-50%);margin:0;padding:12px 18px;background:#fff;border:1px solid #e3dcf3;border-radius:12px;color:#24163f;z-index:50}
#ws-checking-note{margin:0}
.leave-dialog{max-width:520px;border:1px solid #e3dcf3;border-radius:16px;padding:24px}
.leave-dialog ul{padding-left:18px}
.chooser{max-width:720px;margin:10vh auto;padding:32px}
.chooser ul{list-style:none;padding:0;display:grid;gap:12px}
.chooser li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border:1px solid #e3dcf3;border-radius:14px;background:#fff}
.chooser li a{font-weight:700;color:#4a36a8;font-size:16px}
.chooser .tag{font-size:12px}
@media(max-width:650px){.org-switch summary{max-width:150px}.org-switch .org-name{max-width:126px}.org-switch ul{right:-40px;min-width:220px}}
/* Platform console (phase 3). */
.platform{max-width:1100px;margin:0 auto;padding:24px}
.platform-header{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:12px}
.platform .card{margin:16px 0}
.platform code{word-break:break-all}
.identity-facts{border:1px solid #e3dcf3;border-radius:12px;padding:12px 16px;margin:12px 0}
#pf-create-result,[data-case-result]{word-break:break-all}
.platform .inline-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.platform .inline-form label{flex:1 1 200px;min-width:0}
.platform input,.platform select{max-width:100%;box-sizing:border-box}
.platform .heading-actions{flex-wrap:wrap}
/* Restore report for the organisation owner (phase 4) */
.review-facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:16px 0}
.review-facts dt{font-weight:600}
.review-facts dd{margin:0;overflow-wrap:anywhere}
#review-lists ul{padding-left:18px}
#review-lists li{overflow-wrap:anywhere}
@media (max-width:560px){.review-facts{grid-template-columns:1fr}.review-facts dd{margin-bottom:6px}}
/* Grid items may shrink below their content, so wide tables scroll inside .table-wrap instead of widening the page (phone overflow on Roles & access, 30 Oct 2026). */
.panels>*{min-width:0}
/* A table's visually hidden header text (.sr-only, position:absolute) is placed against the nearest positioned ancestor; without
   one inside .table-wrap it escapes the scrolling box and widens the page on phones (employee profile documents and files,
   rehearsal 11 Nov 2026: 122 px). */
.table-wrap{position:relative}

/* Phase 5 B: set-up screen, organisation logo, custom fields on the employee profile */
.setup-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.setup-item{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #eee9f5;padding:8px 0}
.setup-item>div{min-width:0;flex:1 1 260px}.setup-item small{display:block;color:#6b6478;margin-top:4px}
.setup-logo{max-width:128px;max-height:128px;display:block;margin:8px 0;border:1px solid #eee9f5;border-radius:8px}
.org-logo{width:28px;height:28px;object-fit:contain;border-radius:6px;vertical-align:middle;margin-right:8px}
.setup-draft{border:1px solid #eee9f5;border-radius:10px;padding:12px;margin:8px 0}.setup-draft small{display:block;color:#6b6478}
.setup-draft pre{white-space:pre-wrap;word-break:break-word;font-size:12px;background:#faf8fd;padding:8px;border-radius:6px;max-height:220px;overflow:auto}
.setup-versions small{display:block;color:#6b6478}
.custom-fields-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}

/* Branding on issued documents (from the issue snapshot; neutral when none was recorded). */
.doc-brand{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:0 0 10px;border-bottom:3px solid var(--doc-accent,#d9d4e3);min-width:0}
.doc-brand[data-accent=teal]{--doc-accent:#0f766e}.doc-brand[data-accent=blue]{--doc-accent:#1d4ed8}.doc-brand[data-accent=violet]{--doc-accent:#6d28d9}.doc-brand[data-accent=amber]{--doc-accent:#b45309}.doc-brand[data-accent=rose]{--doc-accent:#be123c}.doc-brand[data-accent=slate]{--doc-accent:#334155}
.doc-brand-logo{display:block;max-height:56px;max-width:160px;width:auto;height:auto;object-fit:contain;flex:0 0 auto}
.doc-brand-names{min-width:0;display:flex;flex-direction:column;gap:2px}.doc-brand-names strong{font-size:16px;color:var(--doc-accent,#1d1a2b);overflow-wrap:anywhere}.doc-brand-names small{color:#6b6478;font-size:11px;overflow-wrap:anywhere}
.doc-brand-neutral{border-bottom:1px dashed #d9d4e3}.doc-brand-note{margin:0;color:var(--muted);font-size:11px}.doc-brand-missing{font-style:italic}
@media (max-width:480px){.doc-brand{flex-direction:column;align-items:flex-start}.doc-brand-logo{max-height:44px;max-width:130px}}
@media print{.doc-brand{-webkit-print-color-adjust:exact;print-color-adjust:exact}.doc-brand-logo{max-height:48px}}
.letter-body,.letter-preview h3{overflow-wrap:anywhere}
/* Self-service header on phones: the organisation switcher, status and Sign out wrap instead of running off-screen. */
@media (max-width:640px){.self-header{flex-wrap:wrap;row-gap:8px}.self-header .header-right{flex-wrap:wrap;min-width:0;max-width:100%;row-gap:6px}.self-header .ws-switcher{min-width:0;max-width:100%}}
@media print{body.printing-letter #payslips,body.printing-letter #payslips *{visibility:hidden}}
/* Checkpoint C: grade and category changes open on their own row under the entry, so phones never scroll sideways. */
.org-unit:has(.people-actions){flex-wrap:wrap}.people-actions{flex-basis:100%;min-width:0}.people-actions summary{cursor:pointer;font-size:11px;color:#7460d8}
.people-actions .inline-form{margin-top:10px}.people-actions .inline-form input{flex:1 1 160px;min-width:0}
.numbering-form{margin-top:16px}
.numbering-preflight{margin-top:14px;padding:12px 14px;border:1px solid #e6e1f7;border-radius:12px;background:#faf9fe;min-width:0}.numbering-preflight ul{margin:6px 0 0;padding-left:18px;font-size:12px;overflow-wrap:anywhere}.numbering-preflight code{font-size:11px}
.restore-plan{margin:14px 0;border:1px solid #e7dcf3;border-radius:9px;padding:14px 16px;background:#fbf8ff}.restore-plan h3{font-size:13px;color:#5d4a86;margin:0 0 6px}.restore-plan h4{font-size:11px;letter-spacing:.5px;color:#6b5a8f;margin:14px 0 6px}.restore-plan p{font-size:10px;line-height:1.7;overflow-wrap:anywhere}.restore-findings,.restore-advisories{list-style:none;padding:0;margin:0}.restore-findings li{border:1px solid #ece8f3;border-left:3px solid #c9b6ec;border-radius:7px;padding:10px 12px;margin-top:8px;background:#fff;font-size:10px;overflow-wrap:anywhere}.restore-findings li.blocking{border-left-color:#d0677d;background:#fffafb}.restore-findings label{display:block;margin-top:6px}.restore-advisories li{font-size:10px;color:#8a6a2e;margin:3px 0}#review-import{margin:10px 0}
.pill{display:inline-block;border-radius:999px;padding:2px 9px;font-size:9px;font-weight:600;letter-spacing:.4px;background:#efe7fb;color:#5d4a86}.pill.danger{background:#fbe9ed;color:#a4495e}#access-invitations td{overflow-wrap:anywhere}
.rule-form textarea{width:100%;font-family:ui-monospace,Consolas,monospace;font-size:10px}#setup-rules .setup-item small{display:block;overflow-wrap:anywhere}
.roster-warnings{margin:10px 0;border-left:3px solid #d9a54a}.roster-warnings ul{margin:6px 0 4px 16px;font-size:11px;overflow-wrap:anywhere}

/* Phase 6: rule-priced payroll lines */
.preview-lines .rule-line-meta{display:block;color:var(--muted,#6b6880);font-size:.78rem;margin-top:2px;overflow-wrap:anywhere}
.preview-lines .provisional strong{color:#8a5a00}
.badge-provisional{font-style:normal;font-size:.7rem;font-weight:700;letter-spacing:.04em;color:#8a5a00;background:#fff4dc;border:1px solid #f0d9a8;border-radius:999px;padding:1px 7px;margin-left:4px;white-space:nowrap}
.rule-form{min-width:0;max-width:100%}.rule-form label{min-width:0;max-width:100%}.rule-form select,.rule-form input{width:100%;max-width:100%;min-width:0}

/* Phase 6, fourth round: unresolved items banner, sick assessment, shutdown plan, settlement adviser row */
.unresolved-banner{border-left:4px solid #aa5368}
.unresolved-banner strong{display:block;margin-bottom:.25rem}
.sick-assessment{margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--line,#e4e0f0)}
.sick-assessment ul,.unresolved-banner ul{margin:.25rem 0 0 1rem}
#leave-shutdowns .prog-table td small{display:block}
#settlement-adviser .form-grid{min-width:0}
.rule-guide{margin:.25rem 0;padding-left:1rem;font-size:.85rem}
.rules-readiness .readiness-area{margin:.5rem 0}
.rules-readiness li{margin:.15rem 0}
@media (max-width:640px){#leave-shutdowns .prog-table,#shutdown-plan .prog-table{font-size:.85rem}}
.rule-group{border:1px solid #ece8f6;border-radius:9px;margin:8px 0;padding:8px 10px;min-width:0;max-width:100%}.rule-group legend{font-size:10px;font-weight:600;color:#7660d5;padding:0 4px}
.rule-item{border-top:1px dashed #e2dcf3;padding-top:8px;margin-top:8px}.rule-item:first-of-type{border-top:0;margin-top:0;padding-top:0}.rule-checks{display:flex;flex-wrap:wrap;gap:4px 12px}
.rule-fields label,.rule-fields select,.rule-fields input,.rule-fields textarea{min-width:0;max-width:100%}.rule-fields select,.rule-fields input:not([type=checkbox]):not([type=radio]),.rule-fields textarea{width:100%}
.rule-advanced{margin:8px 0}.rule-advanced summary{cursor:pointer;font-size:11px;color:#7660d5}

/* ═══ Themes and dashboard (3 Nov 2026) ═══════════════════════════════════════════════════════════════════════════════
   Shared design tokens: the light theme (Concept 01) is the base; [data-theme=dark] (Concept 02, the default) swaps the
   tokens and, on screen only, re-colours the application's common components. Print never uses the dark theme. */
:root{--bg:#f4f2fa;--surface:#ffffff;--surface-2:#f8f6fc;--surface-3:#f1edfa;--border:#e7e2f1;--border-strong:#d9d2ea;--text:#1f1b2e;--text-2:#4e475f;--muted:#6b6580;
  --accent:#6d4fe0;--accent-2:#8b72f0;--accent-soft:#efeafd;--accent-text:#5b3fd0;--teal:#137568;--teal-soft:#e3f6f3;--amber:#945f10;--amber-soft:#fcf1dd;--danger:#c4506b;--danger-soft:#fbe9ee;
  --nav-bg:linear-gradient(180deg,#1d1430 0%,#170f26 100%);--nav-text:#cdc4e3;--nav-muted:#8e84a8;--nav-active:#6d4fe0;--nav-hover:#ffffff12;--nav-border:#ffffff14;
  --chart-grid:#ece8f4;--chart-now:#6d4fe0;--chart-prev:#1fa596;--focus:#8b72f0;--shadow:0 1px 2px #1f1b2e0a,0 6px 18px #1f1b2e0d;--radius:14px;color-scheme:light}
@media screen{:root[data-theme=dark]{--bg:#0f0d16;--surface:#191621;--surface-2:#1f1b2a;--surface-3:#262133;--border:#2c2738;--border-strong:#3a3349;--text:#efedf7;--text-2:#c3bdd3;--muted:#8e87a2;
  --accent:#6d4ce6;--accent-2:#a08af8;--accent-soft:#2c2347;--accent-text:#b7a6ff;--teal:#34c3ad;--teal-soft:#16302d;--amber:#efb04a;--amber-soft:#33281a;--danger:#ef7090;--danger-soft:#3a1d27;
  --nav-bg:linear-gradient(180deg,#1f1230 0%,#150c22 100%);--nav-text:#d6cdea;--nav-muted:#8f84a8;--nav-active:#6e4ee8;--nav-hover:#ffffff10;--nav-border:#ffffff12;
  --chart-grid:#2a2535;--chart-now:#9b7dff;--chart-prev:#34c3ad;--focus:#a08af8;--shadow:0 1px 0 #ffffff06 inset,0 8px 24px #00000059;color-scheme:dark}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* ── Shell ── */
body{background:var(--bg);color:var(--text)}
.ic{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.ic.tiny{width:14px;height:14px}
aside#ws-sidebar{background:var(--nav-bg);color:var(--nav-text);border-right:1px solid var(--nav-border);display:flex;flex-direction:column;padding:22px 16px;overflow-y:auto;width:246px}
#ws-sidebar .aside-top{display:flex;align-items:center;justify-content:space-between}
#ws-sidebar .brand{font:800 22px Manrope,Arial,sans-serif;letter-spacing:-.6px;color:#fff;gap:10px;padding:0 6px}
#ws-sidebar .brand .mark{width:34px;height:28px;background:none;color:#a48bff;border-radius:0}#ws-sidebar .brand .mark svg{width:34px;height:26px}
.aside-close{display:none;background:transparent;border:0;color:var(--nav-text);font-size:24px;padding:4px 10px}
.sidebar-org{margin:22px 0 18px}
.sidebar-org .org-switch{border:1px solid var(--nav-border);border-radius:12px;background:#ffffff08}
.sidebar-org .org-switch summary{display:flex;flex-direction:column;gap:4px;padding:12px 14px;cursor:pointer;list-style:none;color:#fff}
.sidebar-org .org-switch summary::-webkit-details-marker{display:none}
.sidebar-org .org-name{font-weight:700;font-size:13px}.sidebar-org .org-role{font-size:10px;color:var(--nav-muted)}
.sidebar-org .org-switch ul{margin:0;padding:6px 14px 12px;font-size:11px;color:var(--nav-text)}.sidebar-org .org-switch a{color:#cbbcff}
#ws-sidebar nav{display:flex;flex-direction:column;gap:2px}
#ws-sidebar nav a{display:flex;align-items:center;gap:12px;color:var(--nav-text);padding:10px 12px;border-radius:10px;font-size:12.5px;margin:0;transition:background .15s,color .15s}
#ws-sidebar nav a:hover{background:var(--nav-hover);color:#fff}
#ws-sidebar nav a.active{background:var(--nav-active);color:#fff;box-shadow:0 6px 18px #6d4fe055}
#ws-sidebar nav a .nav-end{margin-left:auto;font-size:8px;letter-spacing:.8px;background:#ffffff1f;padding:3px 6px;border-radius:5px}
#ws-sidebar nav a[hidden]{display:none}
#ws-sidebar .aside-bottom{display:block;position:static;margin-top:auto;padding-top:18px}
#ws-sidebar .profile{border-top:1px solid var(--nav-border);color:var(--nav-text)}#ws-sidebar .profile small{color:var(--nav-muted)}
.nav-scrim{position:fixed;inset:0;background:#0b0912a6;z-index:19}
main{background:var(--bg)}
header{border-bottom:1px solid var(--border);gap:14px}
header .header-left{display:flex;align-items:center;gap:12px;min-width:0}
.breadcrumb{color:var(--muted)}.breadcrumb strong{color:var(--text)}
.header-right{flex-wrap:nowrap;min-width:0}
.icon-button{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border-radius:10px;background:var(--surface);border:1px solid var(--border);color:var(--text-2);position:relative}
.icon-button:hover{color:var(--text);border-color:var(--border-strong)}
.menu-button{display:none}
.bell-count{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--accent);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center}
.bell-panel{position:absolute;right:38px;top:70px;width:min(360px,92vw);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px;z-index:30;color:var(--text)}
.bell-panel h2{font-size:14px;margin-bottom:8px}.bell-panel ul{list-style:none;margin:0;padding:0}.bell-panel a{display:flex;justify-content:space-between;gap:10px;padding:10px 4px;border-top:1px solid var(--border);color:var(--text);font-size:12px}.bell-panel strong{color:var(--accent-text)}
.ws-search{position:relative;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:0 12px;height:40px;color:var(--muted);min-width:0;width:min(320px,26vw)}
.ws-search input{border:0;background:transparent;padding:0;height:38px;width:100%;color:var(--text);font-size:12px}.ws-search input:focus-visible{outline:none}.ws-search:focus-within{outline:3px solid var(--focus);outline-offset:2px}
#ws-search-results{position:absolute;left:0;right:0;top:46px;list-style:none;margin:0;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);z-index:30}
#ws-search-results li{padding:0}#ws-search-results li.muted{padding:10px;font-size:12px}#ws-search-results a{display:flex;flex-direction:column;padding:8px 10px;border-radius:8px;color:var(--text)}#ws-search-results a small{color:var(--muted);font-size:10px}
#ws-search-results [aria-selected=true] a,#ws-search-results a:hover{background:var(--accent-soft)}
.page-tools{display:flex;gap:10px;align-items:center}.page-tools:empty{display:none}
.page-tools .tool{display:flex;align-items:center;gap:6px;flex-direction:row;margin:0;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:0 10px;height:40px;color:var(--muted)}
.page-tools select,.page-tools input{border:0;background:transparent;padding:0;height:38px;color:var(--text);font-size:12px;min-width:0}
.theme-control{margin:0}.theme-control select{height:40px;border-radius:10px;background:var(--surface);border:1px solid var(--border);color:var(--text);font-size:12px;padding:0 10px}
.local-pill{color:var(--muted)}
.notice{color:var(--muted)}
.mobile-tabs{display:none}

/* ── Dashboard ── */
.dash{padding-bottom:10px}
.dash-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:26px 0 22px}
.dash-heading .greeting{margin:0 0 4px;color:var(--text-2);font-size:16px}
.dash-heading h1{font:800 clamp(28px,3vw,42px)/1.1 Manrope,Arial,sans-serif;letter-spacing:-1.4px;color:var(--text);margin:0 0 8px}
.dash-heading .muted{font-size:14px;color:var(--muted)}
.dash-heading .heading-actions{flex-direction:row;align-items:center}
.secondary-link{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);color:var(--text-2);border-radius:10px;font-size:12px}
.quick-menu{position:relative}.quick-menu summary{list-style:none;display:inline-flex;align-items:center;gap:8px;border-radius:10px;font-size:13px;padding:12px 16px}.quick-menu summary::-webkit-details-marker{display:none}
.quick-menu ul{position:absolute;right:0;top:50px;z-index:25;margin:0;padding:6px;list-style:none;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);min-width:200px}
.quick-menu a{display:block;padding:10px 12px;border-radius:8px;color:var(--text);font-size:12px}.quick-menu a:hover,.quick-menu a:focus-visible{background:var(--accent-soft)}
.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.dash-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.metric-card{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:12px;row-gap:6px;align-items:center;padding:18px 18px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text);min-width:0;transition:border-color .15s,transform .15s}
.metric-card:hover{border-color:var(--border-strong);transform:translateY(-1px)}.metric-card:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.metric-icon{grid-row:1;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-text)}
.metric-card.teal .metric-icon{background:var(--teal-soft);color:var(--teal)}.metric-card.amber .metric-icon{background:var(--amber-soft);color:var(--amber)}
.metric-title{font-size:13px;font-weight:600;color:var(--text-2)}
.metric-value{grid-column:1;font:800 34px/1 Manrope,Arial,sans-serif;letter-spacing:-1.2px;color:var(--text)}
.metric-card .spark,.metric-card .mini-bars{grid-column:2;grid-row:2;justify-self:end}
.metric-sub{grid-column:1/-1;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px}
.metric-sub .ic.up{width:14px;height:14px;transform:rotate(-90deg);color:var(--teal)}
.spark{width:96px;height:34px}.spark polyline{fill:none;stroke:var(--chart-now);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mini-bars{display:inline-flex;align-items:flex-end;gap:3px;height:32px}.mini-bars i{display:block;width:7px;border-radius:2px;background:var(--chart-now);opacity:.9}
.mini-bars.teal i{background:var(--teal)}.mini-bars.amber i{background:var(--amber)}.mini-bars.violet i{background:var(--chart-now)}
.mini-bars i.empty{background:transparent;border:1px dashed var(--border-strong);opacity:1}
.dash-grid{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);gap:18px;grid-auto-flow:row dense}
.dash-grid .slot-cards{grid-column:1/-1}.dash-grid .slot-pulse,.dash-grid .slot-plants{grid-column:1}.dash-grid .slot-queue,.dash-grid .slot-upcoming{grid-column:2}
.dash-grid .slot-cards .dash-cards{margin:0}
.dash-grid>.dash-slot{min-width:0}.dash-grid .card{height:100%;margin:0}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--text)}
.widget-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.widget-head h2{font:700 16px Manrope,Arial,sans-serif;letter-spacing:-.3px;color:var(--text);display:flex;align-items:center;gap:8px}
.widget-note{margin:12px 0 0;font-size:10.5px;color:var(--muted);line-height:1.5}
.count-pill{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 7px;border-radius:11px;background:var(--accent-soft);color:var(--accent-text);font-size:11px;font-weight:700}
.seg{display:inline-flex;border:1px solid var(--border);border-radius:10px;padding:3px;background:var(--surface-2)}
.seg button{border:0;background:transparent;color:var(--text-2);border-radius:8px;padding:7px 14px;font-size:12px}
.seg button[aria-selected=true]{background:var(--accent);color:#fff}
.pulse-body{display:grid;grid-template-columns:minmax(150px,auto) minmax(0,1fr);gap:18px;align-items:center}
.pulse-figure{display:flex;flex-direction:column;gap:6px}.pulse-figure strong{font:800 40px/1 Manrope,Arial,sans-serif;letter-spacing:-1.4px;color:var(--text)}.pulse-figure span{color:var(--text-2);font-size:13px}.pulse-figure small{color:var(--muted);font-size:11px}
.chip{display:inline-flex;align-items:center;gap:4px;width:max-content;max-width:100%;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:600}
.chip.up{background:var(--teal-soft);color:var(--teal)}.chip.down{background:var(--danger-soft);color:var(--danger)}.chip.muted-chip{background:var(--surface-3);color:var(--muted);font-weight:500;white-space:normal}
.chart-wrap{position:relative;min-width:0}
.chart{width:100%;height:auto;display:block;overflow:visible}
.chart .grid line{stroke:var(--chart-grid);stroke-width:1}.chart text{fill:var(--muted);font-size:11px}
.chart .line{fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.chart .line.now{stroke:var(--chart-now)}.chart .line.prev{stroke:var(--chart-prev)}.chart .line.dashed{stroke-dasharray:6 6;stroke-width:2}
.chart .area.now{opacity:1}
.chart .point{stroke:var(--surface);stroke-width:2}.chart .point.now{fill:var(--chart-now)}.chart .point.prev{fill:var(--chart-prev)}
.chart .point:focus-visible{outline:none;stroke:var(--focus);stroke-width:4}
.chart-tip{position:absolute;max-width:190px;padding:8px 10px;border-radius:10px;background:var(--surface-3);border:1px solid var(--border-strong);color:var(--text);font-size:11px;box-shadow:var(--shadow);pointer-events:none;z-index:5}
.legend-line{display:flex;align-items:center;gap:8px;justify-content:center;margin:6px 0 0;font-size:11px;color:var(--muted)}.legend-line .key{display:inline-block;width:18px;height:0;border-top:3px solid var(--chart-now);margin-left:10px}.legend-line .key.prev{border-top:2px dashed var(--chart-prev)}
.as-table{margin-top:10px}.as-table summary{cursor:pointer;font-size:11px;color:var(--accent-text)}.as-table table{margin-top:8px}
.queue-list,.event-list{list-style:none;margin:0;padding:0}
.queue-row,.event-list a{display:flex;align-items:center;gap:12px;padding:12px 6px;border-top:1px solid var(--border);color:var(--text);border-radius:10px}
.queue-list li:first-child .queue-row,.event-list li:first-child a{border-top:0}
.queue-row:hover,.event-list a:hover{background:var(--surface-2)}.queue-row:focus-visible,.event-list a:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.queue-icon,.plant-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--surface-3);color:var(--text-2);flex-shrink:0}
.queue-text,.event-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.queue-text strong,.event-text strong{font-size:13px;font-weight:600}.queue-text small,.event-text small{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px}
.queue-row>.ic,.event-list a>.ic{color:var(--muted)}
.draft-tag{background:var(--accent-soft);color:var(--accent-text);border-color:transparent;font-size:9px;letter-spacing:.6px}
.plants-table{white-space:nowrap}.plants-table th,.plants-table td{background:transparent;color:var(--text);border-bottom:1px solid var(--border);font-size:12px;padding:12px 8px}
.plants-table thead th{color:var(--muted);font-size:10px;letter-spacing:.8px;text-transform:uppercase}
.plants-table tbody th{display:flex;align-items:center;gap:10px;font-weight:600}.plants-table .plant-icon{width:32px;height:32px}
.plants-table .rate{display:inline-block;min-width:76px;font-weight:600}.plants-table .mini-bars{vertical-align:middle;height:22px}
/* Across your plants (5 Nov 2026): a figure that is a link looks like one (underline, chevron, focus ring); plain figures stay plain text. */
.figure-link{display:inline-flex;align-items:center;gap:2px;min-height:32px;padding:0 6px;margin:0 -6px;border-radius:8px;color:var(--accent-text);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.figure-link .ic{width:12px;height:12px}.figure-link:hover{background:var(--surface-2)}.figure-link:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.row-link{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--muted)}.row-link:hover{background:var(--surface-2);color:var(--text)}
.date-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;width:52px;height:52px;border-radius:12px;background:var(--surface-3);flex-shrink:0}.date-tile small{font-size:9px;color:var(--accent-text);font-weight:700;letter-spacing:.8px}.date-tile strong{font:800 18px Manrope,Arial,sans-serif;color:var(--text)}
.empty-state{padding:24px 6px;color:var(--muted);font-size:13px;text-align:center}
.dash-foot{display:flex;align-items:center;gap:6px;margin:16px 0 0;color:var(--muted);font-size:11px}
.dash-error{margin:0 0 16px}
.dash-loading .skeleton{background:linear-gradient(90deg,var(--surface) 0%,var(--surface-2) 50%,var(--surface) 100%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:var(--radius);border:1px solid var(--border)}
.dash-loading .skeleton.cards{height:120px;margin-bottom:18px}.dash-loading .skeleton.wide{height:300px}
@keyframes shimmer{to{background-position:-200% 0}}
.customiser{margin-bottom:18px}.cust-list{margin:12px 0;padding-left:20px}.cust-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--border)}
.cust-list label{flex-direction:row;align-items:center;gap:10px;margin:0;font-size:13px;color:var(--text)}.cust-moves{display:flex;gap:6px}.cust-moves .icon-button{width:34px;height:34px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* ── Dark theme for the application's common components (screen only; print keeps the light styles) ── */
@media screen{
  [data-theme=dark] body,[data-theme=dark] main{background:var(--bg);color:var(--text)}
  [data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] td strong,[data-theme=dark] .row,[data-theme=dark] .legend strong{color:var(--text)}
  [data-theme=dark] .muted,[data-theme=dark] .kicker,[data-theme=dark] p.muted,[data-theme=dark] small,[data-theme=dark] td small{color:var(--muted)}
  [data-theme=dark] .card,[data-theme=dark] .stat-card,[data-theme=dark] dialog,[data-theme=dark] .settlement,[data-theme=dark] .setup-item,[data-theme=dark] .directory-summary>div,[data-theme=dark] .org-banner,[data-theme=dark] .letter-preview,[data-theme=dark] .payslip{background:var(--surface);border-color:var(--border);color:var(--text)}
  [data-theme=dark] dialog::backdrop{background:#05030ab3}
  [data-theme=dark] th{background:var(--surface-2);color:var(--muted)}
  [data-theme=dark] td{color:var(--text-2);border-bottom-color:var(--border)}
  [data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:var(--surface-2);border-color:var(--border-strong);color:var(--text)}
  [data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:var(--muted)}
  [data-theme=dark] label{color:var(--text-2)}
  [data-theme=dark] button:not(.primary):not(.icon-button):not([role=tab]):not(.danger-button),[data-theme=dark] .secondary-link,[data-theme=dark] .edit-button{background:var(--surface-2);border-color:var(--border-strong);color:var(--text-2)}
  [data-theme=dark] .primary{background:var(--accent);border-color:var(--accent);color:#fff}
  [data-theme=dark] .danger-button{background:var(--danger-soft);border-color:#5a2a38;color:var(--danger)}
  [data-theme=dark] .role-note,[data-theme=dark] .sync-alert,[data-theme=dark] .server-notice{background:var(--accent-soft);border-color:#3c3160;color:var(--text-2)}
  [data-theme=dark] .approval-checks{background:var(--danger-soft);border-color:#5a2a38;color:var(--text)}
  [data-theme=dark] .approval-ok{background:var(--teal-soft);border-color:#22463f;color:var(--text)}
  [data-theme=dark] .tag,[data-theme=dark] .count-badge,[data-theme=dark] .outline-badge{background:var(--accent-soft);border-color:#3c3160;color:var(--accent-text)}
  [data-theme=dark] .active-status{background:var(--teal-soft);color:var(--teal)}[data-theme=dark] .pending-status{background:var(--amber-soft);color:var(--amber)}[data-theme=dark] .inactive-status{background:var(--surface-3);color:var(--muted)}
  [data-theme=dark] .form-error,[data-theme=dark] #form-error{color:var(--danger)}
  [data-theme=dark] a{color:var(--accent-text)}[data-theme=dark] #ws-sidebar nav a{color:var(--nav-text)}[data-theme=dark] #ws-sidebar nav a.active{color:#fff}
  [data-theme=dark] footer{border-top-color:var(--border);color:var(--muted)}[data-theme=dark] footer strong{color:var(--text-2)}
  [data-theme=dark] details>summary{color:var(--text-2)}
  [data-theme=dark] .table-wrap{scrollbar-color:var(--border-strong) transparent}
  [data-theme=dark] .empty strong,[data-theme=dark] .person-link{color:var(--text)}
  [data-theme=dark] .avatar{background:var(--accent-soft);color:var(--accent-text)}
  [data-theme=dark] .draft-banner{background:var(--amber-soft);color:var(--text);border-color:#4a3a1f}
  [data-theme=dark] .access-ended{background:var(--bg);color:var(--text)}
  [data-theme=dark] .prog-table td,[data-theme=dark] .prog-table th{border-color:var(--border)}
  [data-theme=dark] hr{border-color:var(--border)}
}
/* Print: always the light, issued look — never the dark theme. */
@media print{:root,:root[data-theme=dark]{color-scheme:light}body{background:#fff;color:#262638}aside#ws-sidebar,.mobile-tabs,main>header,.nav-scrim{display:none!important}main{margin:0!important;background:#fff}}

/* ── Responsive ── */
@media (max-width:1200px){.ws-search{width:min(240px,22vw)}.local-pill{display:none}.dash-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1000px){.dash-grid{grid-template-columns:1fr;grid-auto-flow:row}.dash-grid .dash-slot{grid-column:auto!important}.pulse-body{grid-template-columns:1fr}}
@media (max-width:860px){
  aside#ws-sidebar{position:fixed;inset:0 auto 0 0;width:min(300px,86vw);transform:translateX(-102%);transition:transform .2s;z-index:20;display:flex}
  body.nav-open aside#ws-sidebar{transform:none}
  .aside-close{display:block}
  main{margin-left:0;padding:0 18px 84px}
  .menu-button{display:inline-grid}
  header{height:auto;min-height:64px;flex-wrap:wrap;padding:10px 0;row-gap:10px}
  .header-right{flex-wrap:wrap;justify-content:flex-end;width:100%;gap:8px}
  .ws-search{order:5;width:100%}
  .page-tools{order:6;width:100%}.page-tools .tool{flex:1}
  .small-avatar{display:none}
  .mobile-tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:18;background:var(--surface);border-top:1px solid var(--border);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
  .mobile-tabs a,.mobile-tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;border:0;background:transparent;color:var(--muted);font-size:10px;border-radius:10px}
  .mobile-tabs a.active{color:var(--accent-text)}
  .bell-panel{right:12px;left:12px;top:auto;bottom:76px;width:auto;position:fixed}
  .notice>span:last-child{display:none}
}
@media (max-width:650px){
  .dash-heading{flex-direction:column;align-items:flex-start;margin:18px 0 16px}.dash-heading h1{font-size:26px}
  .dash-heading .heading-actions{width:100%;justify-content:space-between}
  .dash-cards{gap:10px}.metric-card{padding:14px;grid-template-columns:auto 1fr}.metric-value{font-size:26px}.metric-card .spark,.metric-card .mini-bars{display:none}.metric-sub{font-size:11px}
  .pulse-figure strong{font-size:32px}
  .plants-table{white-space:normal}.plants-table thead th:nth-child(4),.plants-table td:nth-child(4){display:none}
}

/* Dashboard refinements (visual QA 1) */
.sidebar-org .org-switch summary{background:transparent;border:0;align-items:flex-start;max-width:none;padding:12px 14px}
.sidebar-org .org-switch .org-name{color:#fff;max-width:190px}.sidebar-org .org-switch .org-role{color:var(--nav-muted)}
.sidebar-org .org-switch{position:relative}.sidebar-org .org-switch ul{left:0;right:auto;top:calc(100% + 6px);background:var(--surface);border:1px solid var(--border);color:var(--text);min-width:220px}
.sidebar-org .org-switch li a{color:var(--accent-text)}
#ws-sidebar .profile-actions{display:flex;gap:8px;margin-top:12px}
#ws-sidebar .profile-actions .sign-out{flex:1;justify-content:center;background:#ffffff0d;border:1px solid var(--nav-border);color:var(--nav-text);border-radius:9px;font-size:11px;padding:8px 10px}
#ws-sidebar .profile-actions .sign-out:hover{background:#ffffff1a;color:#fff}
.page-tools #dash-plant{min-width:132px}.page-tools #dash-date{min-width:120px}
.local-pill{white-space:nowrap}
.chart{color:var(--chart-now)}.chart text{font-size:12px}.chart .area.now{opacity:1}
.chart .line{stroke-width:2.8}
[data-theme] .queue-row,[data-theme] .event-list a,[data-theme] .metric-card{color:var(--text)}
[data-theme] .queue-row strong,[data-theme] .event-list a strong{color:var(--text)}
.plants-table tbody th{letter-spacing:0;text-transform:none;font-size:13px}
[data-theme] .plants-table th,[data-theme] .plants-table td{background:transparent}
.plants-table td:nth-child(4){min-width:180px}
.dash-plants .table-wrap{overflow-x:auto}
.metric-sub{line-height:1.4}
[data-theme=dark] .ws-search input,[data-theme=dark] .page-tools select,[data-theme=dark] .page-tools input{background:transparent;border:0}
.header-right>*{flex-shrink:0}.header-right>.ws-search{flex:1 1 220px;min-width:160px}
@media (max-width:860px){header .local-pill{display:none}.breadcrumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60vw}.breadcrumb strong{display:inline}}
:root{--bar-teal:#1aa594;--bar-amber:#e0a032}@media screen{:root[data-theme=dark]{--bar-teal:#34c3ad;--bar-amber:#efb04a}}
.mini-bars.teal i{background:var(--bar-teal)}.mini-bars.amber i{background:var(--bar-amber)}.metric-card.teal .metric-icon{color:var(--teal)}
.mini-bars i.empty,.mini-bars.teal i.empty,.mini-bars.amber i.empty,.mini-bars.violet i.empty{background:transparent}
@media screen{[data-theme=dark] .number,[data-theme=dark] .stat-value,[data-theme=dark] .directory-summary strong{color:var(--text)}[data-theme=dark] .stat-label,[data-theme=dark] .stat-context{color:var(--text-2)}
[data-theme=dark] .directory-summary{background:var(--surface);border-color:var(--border)}
[data-theme=dark] .card :is(div,ul,li,p,section,article,form,fieldset,hr,table,tr){border-color:var(--border)}
[data-theme=dark] .settlement-open{border-color:var(--accent)}[data-theme=dark] .rule-group{border-color:var(--border-strong)}[data-theme=dark] .stat-bottom{border-top-color:var(--border)}}
@media (max-width:860px){.page-tools .tool{flex:1 1 0;min-width:0}.page-tools #dash-plant,.page-tools #dash-date{min-width:0;width:100%}}
.chart-wrap{max-width:520px;width:100%;justify-self:center}
.mobile-tabs a.active,.mobile-tabs a:hover{background:transparent;color:var(--accent-text)}
[data-theme] .mobile-tabs button{background:transparent;border:0;color:var(--muted)}
.mobile-tabs a.active .ic{stroke-width:2.2}
.mobile-tabs a,.mobile-tabs a.active{box-shadow:none!important;background:transparent!important}
.mobile-tabs button{background:transparent!important;border:0!important;box-shadow:none!important}
@media (max-width:860px){header .local-pill{display:none!important}}

/* "How this is counted" disclosures (3 Nov 2026) */
.help{margin-top:10px}.help summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:11px;color:var(--muted);list-style:none;border-radius:6px;padding:2px 4px}.help summary::-webkit-details-marker{display:none}
.help summary:hover{color:var(--text-2)}.help[open] summary{color:var(--text-2)}.help p{margin:6px 0 0;font-size:11.5px;line-height:1.55;color:var(--text-2);max-width:72ch}
.widget-foot{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:flex-start;margin-top:8px}.widget-foot .as-table,.widget-foot .help{margin-top:0}.widget-foot .as-table{flex:1 1 100%}.widget-foot .as-table:not([open]){flex:0 0 auto}
.cards-help{grid-column:1/-1;margin:-6px 0 4px}
.widget-foot>*{min-width:0;max-width:100%}.widget-foot .as-table[open]{flex:1 1 100%}

/* Theme verification (3 Nov 2026): the canvas follows the theme on short pages; self-service tiles and the switcher in dark. */
@media screen{:root{background:var(--bg)}
[data-theme=dark] .draft-meta>div{background:var(--surface-2);border-color:var(--border)}[data-theme=dark] .draft-meta span{color:var(--muted)}[data-theme=dark] .draft-meta strong{color:var(--text)}
[data-theme=dark] .org-switch summary{background:var(--surface-2);border-color:var(--border-strong)}[data-theme=dark] .org-switch .org-name{color:var(--text)}[data-theme=dark] .org-switch .org-role{color:var(--accent-text)}
[data-theme=dark] .org-switch ul{background:var(--surface);border-color:var(--border);box-shadow:0 12px 32px #0008}[data-theme=dark] .org-switch li a{color:var(--accent-text)}[data-theme=dark] .org-switch li.current{background:var(--accent-soft)}[data-theme=dark] .org-switch li.unavailable{color:var(--muted)}
[data-theme=dark] .self-scale label{border-color:var(--border-strong)}[data-theme=dark] .self-scale label:has(input:checked){background:var(--accent);border-color:var(--accent)}[data-theme=dark] .self-scale-ends{color:var(--muted)}
[data-theme=dark] .identity-facts{border-color:var(--border)}
[data-theme=dark] .sidebar-org .org-switch summary{background:transparent;border:0}[data-theme=dark] .sidebar-org .org-switch .org-name{color:#fff}[data-theme=dark] .sidebar-org .org-switch .org-role{color:var(--nav-muted)}}

/* Payslip in the dark theme (screen); print keeps the light, issued look because the dark tokens are screen-only. */
@media screen{[data-theme=dark] .payslip-net{background:var(--accent-soft);color:var(--text)}[data-theme=dark] .payslip-rule-notice{background:var(--amber-soft);color:var(--text-2)}
[data-theme=dark] .payslip header{border-bottom-color:var(--border)}[data-theme=dark] .payslip-total{border-top-color:var(--border-strong)}[data-theme=dark] .payslip header small,[data-theme=dark] .payslip h4,[data-theme=dark] .payslip footer{color:var(--muted)}[data-theme=dark] .payslip-period span{color:var(--accent-text)}}

/* Contrast floor (3 Nov 2026): WCAG AA (4.5:1 text, 3:1 large text) for legacy hand-picked colours, measured by the
   contrast-audit browser scenario. Hues are kept; only lightness changes. Theme tokens adapt to light, dark and print. */
:root{--label:#6a5a8c;--danger:#b03d59}
@media screen{:root[data-theme=dark]{--label:#b3a6cf}}
input::placeholder,textarea::placeholder{color:var(--muted)}
.section-label,.kicker,.draft-meta span,.proration-deductions legend,.outline-badge,.calendar-day,.calendar-legend,.week-switch span,.report-filter-bar>span,.attendance-note,.timezone-note,.chart-legend,.bar-date,.bar-total{color:var(--label)}
th,td small,.directory-bottom,.directory-summary>div,.stat-label,.panel-bottom,.empty p,.shift-footnote,.shift-item small,.attendance-stat>small,.org-unit small,.access-event small,.access-event p,.access-role p,.statutory-history small,.proration-history td small,footer,footer strong,.breadcrumb>span,.notice>span:last-child,.calendar-cell,.restore-consent,.inactive-status{color:var(--muted)}
td,.draft-banner,.role-note{color:var(--text-2)}
.shift-item p,.access-event strong,.access-role strong,.report-breakdown .row strong,.week-switch strong,.roster-table th strong,.roster-slot span,.roster-slot small,.roster-slot strong,.count-badge,.tag,.avatar,.edit-button,.calendar-nav button,.week-switch button,.roster-open,.summary-icon,.empty-icon,.org-unit-icon,.calendar-today{color:var(--accent-text)}
.active-status{color:var(--teal)}.pending-status,.workbench-banner strong{color:var(--amber)}
.prog-tabs button.active small{color:#fff}
#ws-sidebar nav a.active .nav-end{background:#00000029}
/* Text on the dark hero banners (the same in both themes). */
:root .leave-guidance .kicker,:root .report-export .kicker,:root .org-banner .kicker,:root .structure-path b{color:#d4c6ea}
:root .leave-guidance p,:root .report-export small,:root .org-banner p,:root .structure-path{color:#e4daf2}
/* Dark theme: legacy panels that kept a white or near-white background. */
@media screen{
[data-theme=dark] .calendar-cell.other-month,[data-theme=dark] .directory-bottom,[data-theme=dark] .numbering-preflight,[data-theme=dark] .overview-detail,[data-theme=dark] .week-switch,[data-theme=dark] .report-filter-bar,[data-theme=dark] .statutory-card,[data-theme=dark] .access-plant,[data-theme=dark] .roster-table td:first-child{background:var(--surface-2);border-color:var(--border)}
[data-theme=dark] .panels .card.wide{background:var(--surface)}
[data-theme=dark] .calendar-today,[data-theme=dark] .overview-selected td,[data-theme=dark] .summary-icon,[data-theme=dark] .empty-icon,[data-theme=dark] .org-unit-icon{background:var(--accent-soft)}
[data-theme=dark] .draft-banner strong{background:var(--surface-2);border-color:var(--border-strong);color:var(--accent-text)}
[data-theme=dark] .workbench-banner strong{background:var(--amber-soft);border-color:#4a3a1f;color:var(--amber)}
[data-theme=dark] .audit-coverage,[data-theme=dark] .proration-rules{color:var(--muted)}
[data-theme=dark] .shift-item strong,[data-theme=dark] .access-role strong,[data-theme=dark] .rule-group legend{color:var(--accent-text)}
[data-theme=dark] .attendance-stat>strong,[data-theme=dark] .holiday-card .holiday-years strong,[data-theme=dark] .org-unit strong{color:var(--text)}
[data-theme=dark] .role-note small,[data-theme=dark] .overview-selected td small{color:var(--text-2)}
[data-theme=dark] .calendar-cell{background:var(--surface-2)}[data-theme=dark] .calendar-cell.other-month{background:transparent}}
/* Days of the neighbouring months: shown plainly (muted, no fill) instead of faded to 35% opacity, which made them unreadable. */
.calendar-cell.other-month{opacity:1;background:transparent;color:var(--muted)}

/* Navigation groups (3 Nov 2026): Home, then collapsible groups. The sidebar is dark in both themes. */
#ws-sidebar .nav-group[hidden]{display:none}
#ws-sidebar .nav-group-head{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;margin:0;border:0;border-radius:10px;background:transparent;color:var(--nav-text);font:inherit;font-size:12.5px;font-weight:600;text-align:left;cursor:pointer;box-shadow:none;transition:background .15s,color .15s}
#ws-sidebar .nav-group-head:hover{background:var(--nav-hover);color:#fff}
#ws-sidebar .nav-group-head span{flex:1}
#ws-sidebar .nav-group-head .nav-chevron{width:14px;height:14px;transition:transform .15s;opacity:.8}
#ws-sidebar .nav-group-head[aria-expanded=true] .nav-chevron{transform:rotate(180deg)}
#ws-sidebar .nav-group.has-current>.nav-group-head{color:#fff}
#ws-sidebar .nav-group-items{display:flex;flex-direction:column;gap:2px;margin:2px 0 6px;padding-left:18px;position:relative}
#ws-sidebar .nav-group-items::before{content:'';position:absolute;left:21px;top:4px;bottom:4px;width:1px;background:var(--nav-border)}
#ws-sidebar .nav-group-items[hidden]{display:none}
#ws-sidebar .nav-group-items a{padding:8px 12px 8px 20px;font-size:12px;gap:8px}
#ws-sidebar nav a.nav-home{font-weight:600}
#ws-sidebar nav a:focus-visible,#ws-sidebar .nav-group-head:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
@media (prefers-reduced-motion:reduce){#ws-sidebar .nav-group-head .nav-chevron{transition:none}}
/* Group headings fit the 246 px sidebar on one line (the sidebar may show a thin scrollbar when several groups are open). */
aside#ws-sidebar{scrollbar-width:thin;scrollbar-color:#ffffff26 transparent}
#ws-sidebar .nav-group-head{gap:10px;padding:10px 6px 10px 12px;white-space:nowrap;letter-spacing:-.1px}
#ws-sidebar .nav-group-head>.ic:first-child{width:18px;height:18px}
#ws-sidebar .nav-group-head .nav-chevron{width:12px;height:12px}
/* Workforce composition (4 Nov 2026). Category slots in catalogue order, validated as a set for each theme against its card
   surface (adjacent pairs, colour-vision deficiency and normal vision); amber is under 3:1 on white, so every segment
   also has a visible label, count and table row. "Other" is neutral; "not assigned" is neutral with a hatch texture. */
:root{--mix-1:#6d4fe0;--mix-2:#1aa594;--mix-3:#d98a00;--mix-4:#d4558a;--mix-5:#2a78d6;--mix-other:#8c8798;--mix-none:#8c8798}
@media screen{:root[data-theme=dark]{--mix-1:#8466f0;--mix-2:#1a9e8a;--mix-3:#c98500;--mix-4:#d55181;--mix-5:#3987e5;--mix-other:#8a8499;--mix-none:#8a8499}}
.dash-grid .slot-workforce{grid-column:1/-1}
.wf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 26px}
.wf-panel{min-width:0}.wf-panel h3{font:700 13px Manrope,Arial,sans-serif;margin:0 0 10px;color:var(--text)}
.dash-workforce .widget-head .muted{font-size:12px}
.hbar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.hbar-row{display:grid;grid-template-columns:minmax(0,9.5em) minmax(40px,1fr) auto 16px;align-items:center;gap:10px;padding:6px 6px;border-radius:8px;color:var(--text);font-size:12px}
a.hbar-row:hover{background:var(--surface-2)}a.hbar-row .ic{width:14px;height:14px;color:var(--muted)}
.hbar-label{overflow-wrap:anywhere;line-height:1.3;color:var(--text-2)}
.hbar-track{height:10px;border-radius:5px;background:var(--surface-3);overflow:hidden}
.hbar-track i{display:block;height:100%;border-radius:0 4px 4px 0;background:var(--chart-now)}
.hbar-track i.none{background:repeating-linear-gradient(135deg,var(--mix-none) 0 3px,transparent 3px 6px)}
.hbar-value{display:flex;align-items:baseline;gap:6px;justify-content:flex-end;min-width:5.6em;font-variant-numeric:tabular-nums}
.hbar-value strong{font-weight:700;color:var(--text)}.hbar-value small{font-size:10.5px;color:var(--muted)}
.mix-bar{display:flex;gap:2px;height:16px;border-radius:5px;overflow:hidden;margin:4px 0 12px;background:var(--surface-3)}
.mix-bar i{display:block;min-width:3px;flex-basis:0}
.mix-1{background:var(--mix-1)}.mix-2{background:var(--mix-2)}.mix-3{background:var(--mix-3)}.mix-4{background:var(--mix-4)}.mix-5{background:var(--mix-5)}.mix-other{background:var(--mix-other)}
.mix-none{background:repeating-linear-gradient(135deg,var(--mix-none) 0 3px,transparent 3px 6px);box-shadow:inset 0 0 0 1px var(--mix-none)}
.mix-legend,.mix-legend ul{list-style:none;margin:0;padding:0}
.mix-legend li,.mix-legend summary{display:grid;grid-template-columns:12px minmax(0,1fr) auto 3.8em;align-items:center;gap:8px;padding:5px 2px;font-size:12px;color:var(--text-2)}
.mix-legend li.mix-other-item{display:block;padding:0}
.mix-legend summary{cursor:pointer;list-style:none;padding:5px 2px;border-radius:6px}.mix-legend summary::-webkit-details-marker{display:none}
.mix-legend summary .mix-name{text-decoration:underline dotted;text-underline-offset:3px}
.mix-legend details ul{padding-left:14px;border-left:1px solid var(--border);margin-left:5px}
.mix-legend .swatch{width:12px;height:12px;border-radius:3px}
.mix-legend .mix-name{overflow-wrap:anywhere;line-height:1.3}
.mix-legend strong{color:var(--text);font-variant-numeric:tabular-nums}.mix-legend small{color:var(--muted);font-size:10.5px;text-align:right;font-variant-numeric:tabular-nums}
.dash-workforce .as-table{margin-top:8px}.dash-workforce tfoot th,.dash-workforce tfoot td{font-weight:700;color:var(--text)}
.dash-workforce a.hbar-row:focus-visible,.mix-legend summary:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
@media (prefers-reduced-motion:no-preference){.hbar-track i{transition:width .25s ease}}
@media (max-width:1200px){.wf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-panel[data-wf=mix]{grid-column:1/-1}}
@media (max-width:760px){.wf-grid{grid-template-columns:1fr}.hbar-row{grid-template-columns:minmax(0,7.5em) minmax(30px,1fr) auto 14px;gap:8px}}
@media print{.mix-1,.mix-2,.mix-3,.mix-4,.mix-5,.mix-other,.hbar-track i{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Directory view opened from a dashboard plant bar (4 Nov 2026): the filter summary, with a way back to the full directory. */
.workforce-filter{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 24px 0;padding:14px 16px;border:1px solid var(--border-strong);border-left:4px solid var(--accent);border-radius:12px;background:var(--accent-soft);color:var(--text)}
.workforce-filter>div{display:grid;gap:4px;min-width:0}
.workforce-filter strong{font-size:14px;color:var(--text);overflow-wrap:anywhere}
.workforce-filter span{font-size:12.5px;line-height:1.45;color:var(--text-2)}
.workforce-filter.problem{border-left-color:var(--danger);background:var(--danger-soft)}
.workforce-filter .secondary-link{flex:none;padding:9px 14px;min-height:40px;font-weight:600;color:var(--accent-text)}
.workforce-filter .secondary-link:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media(max-width:650px){.workforce-filter{margin:14px 17px 0;flex-direction:column;align-items:stretch}.workforce-filter .secondary-link{justify-content:center}}

/* Directory summary tiles describe the current results (5 Nov 2026): the caption says which filters they cover. */
.directory-summary-caption{margin:0 0 10px;font-size:12.5px;line-height:1.45;color:var(--text-2);overflow-wrap:anywhere}
/* The register's linked Present view (5 Nov 2026) reuses the summary above its controls, outside a card. */
#attendance-filter.workforce-filter{margin:0 0 18px}

/* ── Sign-in page (contrast review, 10 Nov 2026) ── One consistent surface per theme from the shared tokens. Signed-out
   pages are dark (no account preference yet); a signed-in person who opens an invitation link sees their own theme, so
   both are supported. Field borders and the focus ring meet 3:1 against the panel, text meets WCAG AA (4.5:1). The
   story panel on the left is always dark. Checked by tests/browser/scenarios/contrast-audit.mjs (desktop and phone). */
.auth-page{--auth-field-border:#857e9b;--auth-error:#a83a55}
@media screen{[data-theme=dark] .auth-page{--auth-field-border:#6f6890;--auth-error:var(--danger)}}
.auth-page .auth-content{background:var(--surface);color:var(--text)}
@media screen{[data-theme=dark] .auth-page .auth-content{background:var(--bg)}}
.auth-page .auth-form-wrap h1{color:var(--text)}
.auth-page .auth-form-wrap .kicker{color:var(--accent-text)}
.auth-page .auth-form-wrap>.muted{color:var(--text-2)}
.auth-page .auth-form-wrap label{color:var(--text-2)}
.auth-page .auth-form-wrap input{background:var(--surface-2);border:1px solid var(--auth-field-border);color:var(--text)}
.auth-page .auth-form-wrap input::placeholder{color:var(--muted);opacity:1}
.auth-page .auth-form-wrap input[readonly]{background:var(--surface-3);color:var(--text-2)}
.auth-page .auth-form-wrap input:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-color:var(--accent)}
.auth-page .auth-form-wrap .primary:focus-visible,.auth-page .link-button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.auth-page .form-error{color:var(--auth-error)}
.auth-page .auth-footnote{color:var(--text-2)}
.auth-page .auth-bottom{color:var(--muted)}
.auth-page .auth-content>.local-pill{color:var(--text-2)}
.auth-page .link-button{color:var(--accent-text)}
.auth-page .auth-story>small{color:#a99abb}
.auth-page .auth-story .kicker{color:#bba9d8}
.auth-page .invite-join{margin:8px 0 0}.auth-page .invite-join .form-error{margin:12px 0 0;line-height:1.6}.auth-page .invite-join .form-error:empty{display:none}
/* Authenticator set-up (11 Nov 2026): QR code on a plain white panel in both themes, readable at desktop and phone
   widths; the setup key, instructions, backup codes, status and errors take the theme's text and surface colours (the
   key used to be light text on a fixed light background in the dark theme). */
.mfa-setup{display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:start;margin:12px 0 4px}
.mfa-qr figure{margin:0;padding:14px;background:#ffffff;border:1px solid var(--border-strong);border-radius:12px;display:inline-block}
.mfa-qr-code{display:block;width:232px;height:232px}
.mfa-qr figcaption{margin-top:8px;text-align:center;font-size:12px;color:#3d3850;background:#ffffff}
.mfa-setup-text{min-width:0;color:var(--text-2);line-height:1.6}
.mfa-setup-text strong,.mfa-setup-text b{color:var(--text)}
.mfa-account{margin:0 0 8px;overflow-wrap:anywhere}
.mfa-apps{margin:0 0 12px;padding-left:18px}
.mfa-manual{border-top:1px solid var(--border);padding-top:10px}.mfa-manual p{margin:6px 0}
.mfa-key code,.mfa-setup .mfa-key code{color:var(--text);background:var(--surface-3);border:1px solid var(--border-strong);font-size:17px;letter-spacing:1px;padding:8px 12px;border-radius:8px;display:inline-block;word-break:break-all;user-select:all}
.mfa-copy{margin-left:6px;vertical-align:middle}
.mfa-copy-status{min-height:1.2em;color:var(--teal);font-weight:600}.mfa-copy-status:empty{margin:0}
.mfa-note{color:var(--text-2);font-size:12px}
.mfa-steps{color:var(--text)}.mfa-steps>li::marker{color:var(--text-2)}
.mfa-codes li{color:var(--text)}.mfa-codes li::marker{color:var(--text-2)}
.mfa-codes code,.mfa-codes-inline code{color:var(--text);background:var(--surface-2);border:1px solid var(--border);padding:2px 6px;border-radius:5px}
.mfa-new-codes,[data-theme=dark] .mfa-new-codes{background:var(--surface-2);border-color:var(--border-strong);color:var(--text)}
#mfa-verify input[name=code]{color:var(--text);background:var(--surface);border-color:var(--border-strong);font-size:18px;letter-spacing:3px;max-width:12ch}
[data-theme=dark] #mfa-verify input[name=code]{background:var(--surface-2)}
.mfa-steps .form-error,.self-card .form-error,#pf-enrol .form-error{color:var(--danger)}
.mfa-steps .role-note,.self-card .role-note{color:var(--text-2)}
@media(max-width:650px){.mfa-setup{grid-template-columns:minmax(0,1fr);gap:14px}.mfa-qr{justify-self:center}.mfa-qr-code{width:220px;height:220px}.mfa-key code{font-size:15px}}
@media print{.mfa-setup .mfa-qr{display:none}}

/* Responsive fixes (12 Nov 2026). Found by tests/browser/scenarios/responsive-*.mjs (320 to 1920 px, phone landscape,
   a short laptop, 200% zoom, both themes); each rule names the defect it fixes (R1-R9 in CLAUDE_HANDOFF.md). */
@media (max-width:860px){
  /* R1: the closed navigation drawer was moved off screen but stayed in the keyboard order and the accessibility tree
     (about 15 hidden links before the page). Hidden once it has slid out; shown at once when opened. */
  aside#ws-sidebar{visibility:hidden;transition:transform .2s,visibility 0s linear .2s}
  body.nav-open aside#ws-sidebar{visibility:visible;transition:transform .2s,visibility 0s}
  /* R2: on short screens (phone landscape, 200% zoom) the open drawer squeezed its items over one another; it now
     keeps their height and scrolls. */
  aside#ws-sidebar{overflow-y:auto;overscroll-behavior:contain}
  aside#ws-sidebar>*{flex-shrink:0}
  /* R3: content scrolled to, or focused from the keyboard, could stop under the fixed bottom bar. */
  html{scroll-padding-bottom:88px}
  /* R4 (320 px): the header search kept the 290 px minimum of search fields, and the four bottom tabs could not
     shrink below their content: the page scrolled 29 px sideways on every screen (dialogs were centred off it). */
  .ws-search input[type=search]{min-width:0}
  .mobile-tabs a,.mobile-tabs button{min-width:0}
  .mobile-tabs a>span,.mobile-tabs button>span{max-width:100%;overflow-wrap:anywhere;text-align:center}
  /* R5: small disclosure links ("How this is counted", "Show as a table", "Change") were 14 to 21 px tall. */
  details>summary{min-height:24px}
}
/* R6 (861 px and wider): the header's right-hand group (search, notifications, theme, save status and, on the
   dashboard, the plant and date tools) could not shrink and ran past the right edge from 1024 to 1440 px; the
   theme control then sat under the search field. The group now wraps onto a second row when there is no room. */
@media (min-width:861px){
  main>header{height:auto;min-height:79px;flex-wrap:wrap;row-gap:10px;padding-block:10px}
  .header-right{flex-wrap:wrap;justify-content:flex-end;margin-left:auto;row-gap:8px}
}
/* R7 (320 px): forms in a one-column grid were as wide as their widest date or month field. */
.form-grid>*{min-width:0}
.form-grid input,.form-grid select,.form-grid textarea{max-width:100%;min-width:0}
/* R8 (320 px): a long organisation name was cut off in the structure banner. Only the text block may shrink (and
   wraps the name); the "Company → Plants → People" path keeps its size, and wraps when the banner stacks. */
.org-banner>*{max-width:100%}
.org-banner>:not(.structure-path){min-width:0}
.org-banner .structure-path{flex-shrink:0;flex-wrap:wrap}
.org-banner h2{overflow-wrap:anywhere}
/* R10 (320 px, with attendance recorded): the Workforce pulse panel's single column grew to its widest line (the
   status chip), 14 px past the screen; the column now shrinks to the card and the chip wraps. */
@media (max-width:1000px){.pulse-body{grid-template-columns:minmax(0,1fr)}}
.pulse-body>*{min-width:0}
.pulse-figure .chip{max-width:100%;white-space:normal}
/* R13 (320 px, large payroll figures): the draft preview's totals (₦599,999,999.94) were drawn over one another in the
   two-column stats grid and the page scrolled sideways. Money totals get one column on narrow screens; a figure that
   is still too wide wraps rather than overflowing. */
@media (max-width:480px){.stats:has(strong.money){grid-template-columns:minmax(0,1fr)}}
.attendance-stat{min-width:0}
.attendance-stat>strong.money{overflow-wrap:anywhere}
/* R14 (320 px): the payroll approval status ("Approved and locked · version 1 · Approved by …") ran past the edge. */
#payroll-approval .directory-title{flex-wrap:wrap}
#payroll-approval .approval-status{flex-wrap:wrap;min-width:0;max-width:100%;overflow-wrap:anywhere}
/* R12: small controls. The chooser's organisation links were 21 px tall (phone landscape, tablet); the payroll
   proration options' labels were under 24 px with 13 px radio buttons. Both now give a 24 px target. */
.chooser li a{display:inline-flex;align-items:center;min-height:24px;padding-block:2px}
.proration-deductions label{min-height:24px;align-items:center}
.proration-deductions input{margin-top:0;width:16px;height:16px;flex-shrink:0}
/* R17: more small targets found in the follow-up sweeps. The menu button (40 x 40 by design) was squeezed to 22 px wide
   by the header row at 320-375 px; the payroll draft "compare" checkboxes were bare 13 px boxes; text-style buttons in
   tables (People programmes: the letter subject) were 14 px tall. */
.menu-button{flex-shrink:0}
.draft-select{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;margin:0;cursor:pointer}
button.person-link{min-height:24px}
/* R18 (print): printing payslips or a letter hid the rest of the page with visibility:hidden, which keeps its height, so
   the PDF ran on with blank pages (two payslips: 12 A4 pages, 11 blank; one self-service payslip: 2 pages, 1 blank).
   While printing, everything that is neither the printed block, inside it, nor one of its ancestors takes no space. */
@media print{
  body:not(.printing-letter):has(#payslips) *:not(:has(#payslips)):not(#payslips,#payslips *){display:none!important}
  body.printing-letter *:not(:has(#letter-preview,#self-letter)):not(#letter-preview,#letter-preview *,#self-letter,#self-letter *){display:none!important}
}
/* R15: truncated organisation names. The header breadcrumb (up to 860 px) wrapped the name in an ellipsis; it now
   wraps the whole name. The organisation switcher keeps its short label, but opening it (Enter, Space or a tap)
   shows the full name; its summary also carries the full name for screen readers (aria-label) and as a tooltip. */
@media (max-width:860px){.breadcrumb{white-space:normal;overflow:visible;text-overflow:clip;max-width:none;min-width:0}
  .breadcrumb strong{overflow-wrap:anywhere}}
.org-switch[open] .org-name{white-space:normal;overflow:visible;text-overflow:clip;max-width:none;overflow-wrap:anywhere}
/* R16 (320-375 px): in self-service, a long letter subject in the letters list is a button that never wrapped
   (.edit-button is nowrap), so the page scrolled up to 119 px sideways. Buttons in these lists wrap their text. */
.overview-versions li{min-width:0;overflow-wrap:anywhere}
.overview-versions .edit-button{white-space:normal;text-align:left;max-width:100%}
/* R9: in the dashboard's "Show as a table" views a long plant or department name stayed on one line, so the counts
   began outside the panel; the name column now wraps (the table still scrolls inside its panel if needed). */
.wf-panel .as-table table th:first-child,.wf-panel .as-table table td:first-child{white-space:normal;min-width:9em;overflow-wrap:anywhere}
/* Administrator two-step set-up page (14 Nov 2026): account-level, outside any organisation. Its own container (the
   chooser's list styles must not reach the set-up panel's lists); the panel keeps the Security screen's styles. */
.security-setup{max-width:720px;margin:8vh auto;padding:32px}
.security-setup #setup-panel{margin:18px 0}
.security-setup .setup-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
@media (max-width:480px){.security-setup{margin:4vh auto;padding:20px 16px}}
/* Light theme, standalone pages (chooser, restore report, recovery, platform set-up, two-step set-up): the brand link at
   the top is white by default (made for the dark sidebar) and was invisible on the light page; the dark theme already
   recolours it through [data-theme=dark] a. */
[data-theme=light] main.chooser>.brand,[data-theme=light] main.security-setup>.brand{color:#4a36a8}
