/* Employee-only palette; black replaces olive without changing operational status colours. */
body.employee-mode{--staff-bg:#f7f5ef;--staff-card:#fff;--staff-text:#111;--staff-muted:#555;--staff-line:#d8d0c6;--olive:#111;--ink:var(--staff-text);--paper:var(--staff-bg);--stone:var(--staff-line);--muted:var(--staff-muted);background:var(--staff-bg);color:var(--staff-text)}
html[data-theme=dark] body.employee-mode{--staff-bg:#262626;--staff-card:#000;--staff-text:#fff;--staff-muted:#bfbfbf;--staff-line:#555;--olive:#fff}
.employee-mode .card{background:var(--staff-card);color:var(--staff-text);border:1px solid var(--staff-line)}
.employee-mode .staff-nav{background:#111;color:#fff;border-top:1px solid var(--staff-line)}
.employee-mode .staff-top .brand,.employee-mode .staff-head,.employee-mode .staff-sticky-header{color:var(--staff-text)}
.employee-mode .staff-sticky-header{background:var(--staff-bg)}
.employee-mode .btn:not(.secondary):not(.rust){background:#111;color:#fff;border-color:#111}
html[data-theme=dark] .employee-mode .btn:not(.secondary):not(.rust){background:#fff;color:#111;border-color:#fff}
.employee-mode .btn.secondary{background:var(--staff-card);color:var(--staff-text);border-color:var(--staff-line)}
.employee-mode input,.employee-mode textarea,.employee-mode select{background:var(--staff-card);color:var(--staff-text);border-color:var(--staff-line)}
.employee-mode .staff-calendar-property{background:var(--staff-card);color:var(--staff-text)}
.employee-mode .calendar-claim-reason.weekly-warning,.employee-mode .cleaning-request-explanation{background:#fff0ae!important;color:#493400!important;border:1px solid #c99a24!important;border-radius:10px;padding:12px;line-height:1.5}
.person-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#e4e4e4;color:#333;font-size:13px;font-weight:700}.person-avatar.large{width:64px;height:64px;font-size:24px}.person-avatar img{width:100%;height:100%;object-fit:cover}.assigned-worker{display:flex;align-items:center;gap:9px;margin:10px 0}.assigned-worker>span:last-child{display:grid}.assigned-worker small{font-size:11px;color:var(--muted)}.assigned-worker strong{font-size:14px}.profile-photo-upload{position:relative;display:inline-flex;align-items:center;min-height:44px}.profile-photo-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.profile-image-settings .btn{margin:4px 6px 4px 0}
.material-entity-list{display:flex;flex-wrap:wrap;gap:6px}.material-category-group{margin:10px 0;border:1px solid var(--stone);border-radius:6px;padding:10px}.material-category-group legend{font-weight:650;padding-inline:5px}.material-article-dialog{width:min(850px,calc(100vw - 24px))}.material-article-dialog .compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.material-article-dialog input,.material-article-dialog select{min-width:0;width:100%}.material-article-dialog fieldset{margin-block:14px;border:1px solid var(--stone);border-radius:6px}.material-article-dialog textarea{width:100%;min-height:70px}.material-tier{display:grid;grid-template-columns:24px 1fr 1fr;gap:12px;align-items:end;margin:8px 0}.material-entity-dialog{width:min(420px,calc(100vw - 24px))}@media(max-width:600px){.material-article-dialog .compact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.material-article-dialog{padding:12px}.material-tier{gap:6px}}
html[data-theme=dark] body.employee-mode{background:var(--staff-bg);color:var(--staff-text)}
html[data-theme=dark] body.employee-mode .card,html[data-theme=dark] body.employee-mode .bedroom-card,html[data-theme=dark] body.employee-mode .staff-calendar-property{background:var(--staff-card);color:var(--staff-text);border-color:var(--staff-line)}
html[data-theme=dark] body.employee-mode .staff-top,html[data-theme=dark] body.employee-mode .staff-mode{background:var(--staff-bg);color:var(--staff-text);border-color:var(--staff-line)}
html[data-theme=dark] body.employee-mode input,html[data-theme=dark] body.employee-mode textarea,html[data-theme=dark] body.employee-mode select,html[data-theme=dark] body.employee-mode .btn.secondary{background:var(--staff-card);color:var(--staff-text);border-color:var(--staff-line)}
html[data-theme=dark] body.employee-mode .staff-nav{background:#000;color:#fff;border-color:#555}html[data-theme=dark] body.employee-mode .staff-nav a{color:#fff}body.employee-mode .staff-nav a.active{background:#ffffff26;color:#fff;border-color:#fff}
body.employee-mode .staff-preparation{background:var(--staff-card);color:var(--staff-text);border-color:var(--staff-line)}
html[data-theme=dark] body.employee-mode .staff-preparation{background:#000;color:#fff;border-color:#555}
body.employee-mode .bedroom-card.room-must-lock{background:rgba(220,38,38,.5);color:#351111;border-color:#ae2222}html[data-theme=dark] body.employee-mode .bedroom-card.room-must-lock{background:#7e1d1d;color:#fff;border-color:#f87171}
body.employee-mode .calendar-claim-icon.needs-approval,html[data-theme=dark] body.employee-mode .calendar-claim-icon.needs-approval{background:#fff0ae!important;color:#493400!important;border-color:#c99a24!important}
