/* Device appearance. Layout and calendar geometry are inherited unchanged. */
:root{--card:#fff;--text:var(--ink);--pw-theme-surface:#fff;--pw-theme-field:#fff}
html[data-pw-theme="light"]{color-scheme:light}
html[data-pw-theme="dark"]{color-scheme:dark;--ink:#f0f1f3;--muted:#b7bac3;--line:#41444d;--soft:#26282e;--white:#1d1e22;--card:#1d1e22;--text:#f0f1f3;--navy:#111318;--navy-2:#24272d;--blue:#7db5ff;--blue-2:#a5ceff;--yellow:#ffd45d;--green:#67dab0;--red:#ff9aaa;--purple:#c3a4ff;--teal:#6bd9d4;--pw-theme-surface:#1d1e22;--pw-theme-field:#17181d;--shadow:0 16px 48px #0005}
.pw-theme-control{display:flex;align-items:center;gap:6px;flex:none;font-size:.75rem;font-weight:650;color:var(--muted);white-space:nowrap;margin:0}
.pw-theme-control select{width:94px;min-width:0;min-height:38px;height:38px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:var(--pw-theme-field);color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
.pw-theme-control select:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.pw-login-appearance{margin-bottom:20px}
.pw-login-card .pw-theme-control{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;font-size:.8rem;color:var(--muted)}
.pw-login-card .pw-theme-control select{width:110px}
.calendar-toolbar>.pw-theme-control{margin-left:auto}
@media(max-width:560px){.pw-theme-control{gap:4px;font-size:.7rem}.pw-theme-control select{width:84px}.calendar-toolbar>.pw-theme-control{margin-left:0}}
@media print{
/* Paper stays light regardless of the device appearance preference. */
html[data-pw-theme="dark"]{color-scheme:light!important;--navy:#082a58;--navy-2:#103b73;--blue:#1760b9;--blue-2:#2d76cc;--yellow:#ffd233;--ink:#142238;--muted:#6d7d91;--line:#dfe6ef;--soft:#f4f7fb;--white:#fff;--card:#fff;--text:#142238;--red:#c24d59;--green:#1f936a;--purple:#765bc8;--teal:#168c8c;--pw-theme-surface:#fff;--pw-theme-field:#fff;--shadow:0 16px 48px rgba(21,43,72,.12)}
[data-pw-theme-control],[data-pw-theme-host]{display:none!important}
}

@media screen{
/* Existing fixed colours: original.css */
html[data-pw-theme="dark"] .sidebar{color:#ffffff}
html[data-pw-theme="dark"] .sidebar nav button{color:#bdcadc}
html[data-pw-theme="dark"] .sidebar nav button:hover{color:#ffffff}
html[data-pw-theme="dark"] .sidebar nav button.active{color:var(--ink)}
html[data-pw-theme="dark"] .sidebar nav b{color:#ffffff}
html[data-pw-theme="dark"] .server-state small,
html[data-pw-theme="dark"] .signed-in small{color:#afc0d7}
html[data-pw-theme="dark"] .avatar{color:#ffffff;border:2px solid #545454}
html[data-pw-theme="dark"] .avatar.yellow{color:#f3d595}
html[data-pw-theme="dark"] .avatar.purple{background:linear-gradient(145deg,#2b1c54,#5c3aaf)}
html[data-pw-theme="dark"] .topbar{background:#1d1e22}
html[data-pw-theme="dark"] .global-search svg{color:#bec6cf}
html[data-pw-theme="dark"] .global-search input{border:1px solid #496c92;background:#1d1e22}
html[data-pw-theme="dark"] .global-search input:focus{background:#1d1e22}
html[data-pw-theme="dark"] .global-search kbd{border:1px solid #486893;background:#1d1e22;color:#c0c6ce}
html[data-pw-theme="dark"] .sync-state small{color:#bfc6cf}
html[data-pw-theme="dark"] .primary{color:#ffffff}
html[data-pw-theme="dark"] .soft{background:#1d1e22;color:#b5c3d3}
html[data-pw-theme="dark"] .soft:hover{border-color:#4e6b8e;background:#1d1e22}
html[data-pw-theme="dark"] .date-switch{background:#1d1e22}
html[data-pw-theme="dark"] .date-switch button{background:#1d1e22;color:#bec6d0}
html[data-pw-theme="dark"] .calendar-card,
html[data-pw-theme="dark"] .table-card,
html[data-pw-theme="dark"] .employee-card,
html[data-pw-theme="dark"] .admin-card,
html[data-pw-theme="dark"] .resource-card,
html[data-pw-theme="dark"] .today-jobs,
html[data-pw-theme="dark"] .field-workspace,
html[data-pw-theme="dark"] .customer-list,
html[data-pw-theme="dark"] .customer-profile,
html[data-pw-theme="dark"] .overview-card{background:#1d1e22}
html[data-pw-theme="dark"] .range-switch{background:#1d1e22}
html[data-pw-theme="dark"] .range-switch button{color:#bec6cf}
html[data-pw-theme="dark"] .range-switch button.active{background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .calendar-toolbar select{background:#1d1e22}
html[data-pw-theme="dark"] .team-builder{background:#1d1e22}
html[data-pw-theme="dark"] .team-builder small{color:#bfc6cf}
html[data-pw-theme="dark"] .person-chip{border:1px solid #4a6c91;background:#1d1e22}
html[data-pw-theme="dark"] .person-chip.selected{background:#1d1e22}
html[data-pw-theme="dark"] .time-corner{color:#bfc6cf}
html[data-pw-theme="dark"] .day-head>span{color:#bfc6cf}
html[data-pw-theme="dark"] .day-head>small{color:#bfc6cf}
html[data-pw-theme="dark"] .day-head.today{background:#1d1e22}
html[data-pw-theme="dark"] .day-head.today strong{color:#ffffff}
html[data-pw-theme="dark"] .time-axis{background:#1d1e22}
html[data-pw-theme="dark"] .time-axis span{color:#bfc6cf}
html[data-pw-theme="dark"] .day-column{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 55px,#1d1e22 55px,#1d1e22 56px)}
html[data-pw-theme="dark"] .day-column.today-column{background-color:#1d1e22}
html[data-pw-theme="dark"] .day-column.drag-target{background-color:#1d1e22}
html[data-pw-theme="dark"] .blue-event{background:#1d1e22;border-color:#3c6b9f;color:#99c1f0}
html[data-pw-theme="dark"] .yellow-event{background:#54491c;border-color:#9f8c3c;color:#f3db95}
html[data-pw-theme="dark"] .purple-event{background:#1d1e22;border-color:#563c9f;color:#b8acdc}
html[data-pw-theme="dark"] .teal-event{background:#1d1e22;border-color:#429991;color:#9feae9}
html[data-pw-theme="dark"] .absence-card{border:1px dashed #455263;background:repeating-linear-gradient(135deg,#1d1e22 0,#1d1e22 8px,#1d1e22 8px,#1d1e22 16px);color:#bfc6cf}
html[data-pw-theme="dark"] .absence-card em{color:#c1c6cd}
html[data-pw-theme="dark"] .now-line span{color:#ffffff}
html[data-pw-theme="dark"] .legend{color:#bfc6cf!important}
html[data-pw-theme="dark"] .legend i,
html[data-pw-theme="dark"] .legend b{background:#1d1e22}
html[data-pw-theme="dark"] .legend b{background:#26282e}
html[data-pw-theme="dark"] .period-day{background:#1d1e22}
html[data-pw-theme="dark"] .period-day.muted{background:#1d1e22;color:#c0c6ce}
html[data-pw-theme="dark"] .period-day.absent{background:repeating-linear-gradient(135deg,#1d1e22 0,#1d1e22 7px,#1d1e22 7px,#1d1e22 14px)}
html[data-pw-theme="dark"] .resource-dock>strong{color:#c0c6ce}
html[data-pw-theme="dark"] .resource-dock button{border:1px solid #4a6c91;background:#1d1e22}
html[data-pw-theme="dark"] .resource-dock button span{color:#c0c6ce}
html[data-pw-theme="dark"] .resource-dock button.blocked{background:#1d1e22;color:#c1c7cd}
html[data-pw-theme="dark"] .employee-photo{color:#ffffff}
html[data-pw-theme="dark"] .employee-photo.yellow{color:#f3d695}
html[data-pw-theme="dark"] .employee-photo.purple{background:linear-gradient(145deg,#2a1c54,#5f40ad)}
html[data-pw-theme="dark"] .employee-photo i{color:#ffffff}
html[data-pw-theme="dark"] .employee-name small{color:#bfc6cf}
html[data-pw-theme="dark"] .employee-name button{color:#c0c6ce}
html[data-pw-theme="dark"] .absent-badge{background:#1d1e22;color:#c1c6cd}
html[data-pw-theme="dark"] .assigned-roles span{background:#1d1e22;color:#9ac2ee}
html[data-pw-theme="dark"] .admin-head p{color:#c0c6ce}
html[data-pw-theme="dark"] .icon-box.blue{background:#1d1e22}
html[data-pw-theme="dark"] .icon-box.grey{background:#1d1e22;color:#c0c6ce}
html[data-pw-theme="dark"] .editable-list>div{border:1px solid #526b8a;background:#1d1e22}
html[data-pw-theme="dark"] .editable-list button{color:#c0c6ce}
html[data-pw-theme="dark"] .editable-list button:hover{background:#1d1e22}
html[data-pw-theme="dark"] .grey-list>div{background:#1d1e22}
html[data-pw-theme="dark"] .live-sync{background:#1d1e22;border:1px solid #3f9c70}
html[data-pw-theme="dark"] .live-sync strong{color:#9eebd0}
html[data-pw-theme="dark"] .live-sync small{color:#bbd3cb}
html[data-pw-theme="dark"] .worker-head small{color:#c0c6ce}
html[data-pw-theme="dark"] .job-select{background:#1d1e22}
html[data-pw-theme="dark"] .job-select.active{background:#1d1e22;border-color:#3c699f}
html[data-pw-theme="dark"] .job-select small{color:#bfc6ce}
html[data-pw-theme="dark"] .job-select i{background:#1d1e22}
html[data-pw-theme="dark"] .offline-note{background:#54491c;border:1px solid #9f8d3c}
html[data-pw-theme="dark"] .offline-note svg{color:#f3de95}
html[data-pw-theme="dark"] .offline-note small{color:#d1ccbc}
html[data-pw-theme="dark"] .field-header p{color:#bfc5cf}
html[data-pw-theme="dark"] .field-tabs button{color:#bfc6cf}
html[data-pw-theme="dark"] .field-tabs span{background:#1d1e22}
html[data-pw-theme="dark"] .progress-head small{color:#c0c6ce}
html[data-pw-theme="dark"] .progress{background:#1d1e22}
html[data-pw-theme="dark"] .mobile-task{background:#1d1e22}
html[data-pw-theme="dark"] .mobile-task>span{border:2px solid #435366}
html[data-pw-theme="dark"] .mobile-task small{color:#c0c6ce}
html[data-pw-theme="dark"] .mobile-task.done{background:#1d1e22;color:#c3cbc5}
html[data-pw-theme="dark"] .mobile-task.done>span{background:#1d1e22;border-color:#42996e}
html[data-pw-theme="dark"] .mobile-task.done>span svg{color:#9beed0}
html[data-pw-theme="dark"] .field-note textarea,
html[data-pw-theme="dark"] .measurement-form textarea{border:1px solid #4c6e8f}
html[data-pw-theme="dark"] .object-toolbar p{color:#bfc6ce}
html[data-pw-theme="dark"] .measurement-form>label,
html[data-pw-theme="dark"] .measure-row label{color:#bac6d4}
html[data-pw-theme="dark"] .measurement-form input,
html[data-pw-theme="dark"] .measurement-form select{border:1px solid #4c6e8f;background:#1d1e22}
html[data-pw-theme="dark"] .photo-uploader{border:1px dashed #4c6d8f}
html[data-pw-theme="dark"] .photo-uploader>label{color:#b4c4d5}
html[data-pw-theme="dark"] .photo-uploader>label small{color:#c0c6ce}
html[data-pw-theme="dark"] .photo-placeholder{background:linear-gradient(145deg,#1d1e22,#26282e);color:#bac7d4}
html[data-pw-theme="dark"] .photo-placeholder.detail{background:linear-gradient(145deg,#26282e,#463b2a)}
html[data-pw-theme="dark"] .saved-measurements article>span{background:#1d1e22}
html[data-pw-theme="dark"] .saved-measurements small{color:#c0c6ce}
html[data-pw-theme="dark"] .file-list button{background:#1d1e22}
html[data-pw-theme="dark"] .file-list button>span{background:#1d1e22;color:#e1a7ad}
html[data-pw-theme="dark"] .file-list .photo-file{background:#1d1e22}
html[data-pw-theme="dark"] .file-list small{color:#c0c6ce}
html[data-pw-theme="dark"] .file-list button>svg{color:#c0c6ce}
html[data-pw-theme="dark"] .blue-bg{background:#1d1e22;color:#9cc1ec}
html[data-pw-theme="dark"] .yellow-bg{background:#54491c;color:#f3d795}
html[data-pw-theme="dark"] .purple-bg{background:#1d1e22;color:#b9abde}
html[data-pw-theme="dark"] .teal-bg{background:#1d1e22;color:#9eebe9}
html[data-pw-theme="dark"] .grey-bg{background:#1d1e22;color:#c0c7ce}
html[data-pw-theme="dark"] .resource-visual>span{background:#1d1e22}
html[data-pw-theme="dark"] .available{color:#9beed0}
html[data-pw-theme="dark"] .booked{color:#f3d795}
html[data-pw-theme="dark"] .workshop{color:#e1a8ae}
html[data-pw-theme="dark"] .resource-info>small{color:#c0c6ce}
html[data-pw-theme="dark"] .resource-info>p{color:#bfc6cf}
html[data-pw-theme="dark"] .booking{background:#1d1e22}
html[data-pw-theme="dark"] .booking.empty{color:#c0c6ce}
html[data-pw-theme="dark"] .booking small{color:#c0c7ce}
html[data-pw-theme="dark"] .blocked-info{background:#1d1e22;border:1px solid #9f3c47}
html[data-pw-theme="dark"] .blocked-info strong{color:#e0a8ae}
html[data-pw-theme="dark"] .blocked-info small{color:#d0bec1}
html[data-pw-theme="dark"] .table-tools small{color:#bfc6ce}
html[data-pw-theme="dark"] th,
html[data-pw-theme="dark"] td{border-bottom:1px solid #496e92}
html[data-pw-theme="dark"] thead th{background:#1d1e22;color:#bec5d0}
html[data-pw-theme="dark"] .filters th{background:#1d1e22}
html[data-pw-theme="dark"] .filters input,
html[data-pw-theme="dark"] .filters select{border:1px solid #4c6c90}
html[data-pw-theme="dark"] .table-card tbody tr:hover{background:#1d1e22}
html[data-pw-theme="dark"] .table-card td:first-child small{color:#c0c6ce}
html[data-pw-theme="dark"] .status.planned{background:#1d1e22;color:#98bff0}
html[data-pw-theme="dark"] .status.working{background:#1d1e22;color:#9beed0}
html[data-pw-theme="dark"] .status.clarify{background:#54471c;color:#f3d895}
html[data-pw-theme="dark"] .customer-list>button{background:#1d1e22}
html[data-pw-theme="dark"] .customer-list>button.active,
html[data-pw-theme="dark"] .customer-list>button:hover{background:#1d1e22}
html[data-pw-theme="dark"] .customer-list small{color:#c0c6ce}
html[data-pw-theme="dark"] .client-avatar{background:#1d1e22;color:#9ac2ee}
html[data-pw-theme="dark"] .profile-head p{color:#bfc5cf}
html[data-pw-theme="dark"] .crm-actions a,
html[data-pw-theme="dark"] .crm-actions button{background:#1d1e22}
html[data-pw-theme="dark"] .crm-actions small{color:#c0c6ce}
html[data-pw-theme="dark"] .timeline article{border-top:1px solid #4e6e8d}
html[data-pw-theme="dark"] .timeline-icon{background:#1d1e22}
html[data-pw-theme="dark"] .timeline-icon.file{background:#54481c;color:#f3d695}
html[data-pw-theme="dark"] .timeline-icon.green{background:#1d1e22}
html[data-pw-theme="dark"] .timeline p{color:#bec6d0}
html[data-pw-theme="dark"] .timeline small{color:#c0c6ce}
html[data-pw-theme="dark"] .overview-card.featured{color:#ffffff}
html[data-pw-theme="dark"] .overview-card span{color:#bfc5cf}
html[data-pw-theme="dark"] .overview-card p{color:#bec6cf}
html[data-pw-theme="dark"] .drawer{background:#1d1e22}
html[data-pw-theme="dark"] .drawer header button,
html[data-pw-theme="dark"] .modal header button{background:#1d1e22}
html[data-pw-theme="dark"] .drawer-state small{color:#c0c6ce}
html[data-pw-theme="dark"] .address{color:#bfc5cf}
html[data-pw-theme="dark"] .drawer-actions a,
html[data-pw-theme="dark"] .drawer-actions button{background:#1d1e22;color:#b1c3d7}
html[data-pw-theme="dark"] .section-head>span{color:#bfc5cf}
html[data-pw-theme="dark"] .assignment-picks button{background:#1d1e22}
html[data-pw-theme="dark"] .assignment-picks button.selected{background:#1d1e22}
html[data-pw-theme="dark"] .drawer-tasks button{background:#1d1e22}
html[data-pw-theme="dark"] .drawer-tasks button>span{border:1.5px solid #445465;background:#1d1e22}
html[data-pw-theme="dark"] .drawer-tasks button.done{color:#c1c7cd}
html[data-pw-theme="dark"] .drawer-tasks button.done>span{background:#1d1e22;border-color:#42996e}
html[data-pw-theme="dark"] .drawer-tasks button.done svg{color:#9beed0}
html[data-pw-theme="dark"] .object-summary{background:#1d1e22}
html[data-pw-theme="dark"] .object-summary>span{background:#1d1e22}
html[data-pw-theme="dark"] .object-summary small{color:#c0c6ce}
html[data-pw-theme="dark"] .object-summary>svg{color:#c0c6ce}
html[data-pw-theme="dark"] .document{background:#1d1e22}
html[data-pw-theme="dark"] .document>span{background:#1d1e22;color:#e2a7ac}
html[data-pw-theme="dark"] .document small{color:#c0c6ce}
html[data-pw-theme="dark"] .document>svg{color:#c0c6ce}
html[data-pw-theme="dark"] .modal{background:#1d1e22}
html[data-pw-theme="dark"] .form-grid label{color:#b5c3d4}
html[data-pw-theme="dark"] .form-grid input,
html[data-pw-theme="dark"] .form-grid select,
html[data-pw-theme="dark"] .form-grid textarea{border:1px solid #4b6e90}
html[data-pw-theme="dark"] .toast{color:#ffffff}
html[data-pw-theme="dark"] .schedule-layout-switch button{color:#bfc6cf}
html[data-pw-theme="dark"] .schedule-layout-switch button.active{background:#1d1e22;border-color:#3c679f}
html[data-pw-theme="dark"] .calendar-notices{background:#1d1e22}
html[data-pw-theme="dark"] .notice-label{color:#d7ceb1}
html[data-pw-theme="dark"] .calendar-notices button{border:1px solid #887b53;background:#1d1e22;color:#bec6cf}
html[data-pw-theme="dark"] .grey-dot{background:#2d3339}
html[data-pw-theme="dark"] .calendar-notices .add-absence{border-color:#3c699f}
html[data-pw-theme="dark"] .staff-head{background:#1d1e22}
html[data-pw-theme="dark"] .staff-head:hover,
html[data-pw-theme="dark"] .staff-head.selected{background:#1d1e22}
html[data-pw-theme="dark"] .staff-head.absent{background:#1d1e22;color:#c1c6cd}
html[data-pw-theme="dark"] .staff-head small{color:#c0c6ce}
html[data-pw-theme="dark"] .staff-head em{background:#1d1e22}
html[data-pw-theme="dark"] .staff-column{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 55px,#1d1e22 55px,#1d1e22 56px)}
html[data-pw-theme="dark"] .staff-column.drag-target{background-color:#1d1e22}
html[data-pw-theme="dark"] .staff-column.unavailable{background-color:#1d1e22}
html[data-pw-theme="dark"] .absence-card.vacation{border-color:#9f8a3c;background:repeating-linear-gradient(135deg,#1d1e22 0,#1d1e22 8px,#544b1c 8px,#544b1c 16px);color:#ead99f}
html[data-pw-theme="dark"] .tasks-board{background:#1d1e22}
html[data-pw-theme="dark"] .tasks-board-head p{color:#bfc6cf}
html[data-pw-theme="dark"] .task-summary{background:#1d1e22}
html[data-pw-theme="dark"] .task-summary>span{color:#c0c6ce}
html[data-pw-theme="dark"] .task-summary b{color:#a9c0df}
html[data-pw-theme="dark"] .task-summary .holiday-sync{color:#a6e2cc}
html[data-pw-theme="dark"] .assignment-task{border-bottom:1px solid #496a92}
html[data-pw-theme="dark"] .assignment-task:hover{background:#1d1e22}
html[data-pw-theme="dark"] .task-check{border:2px solid #425366;background:#1d1e22}
html[data-pw-theme="dark"] .done-task .task-check{background:#1d1e22;border-color:#43986c}
html[data-pw-theme="dark"] .done-task .task-check svg{color:#9cecd0}
html[data-pw-theme="dark"] .task-main p{color:#c0c6ce}
html[data-pw-theme="dark"] .task-main small{color:#c0c6ce}
html[data-pw-theme="dark"] .task-main small strong{color:#bec6d0}
html[data-pw-theme="dark"] .done-task .task-main h3{color:#c1c7cd}
html[data-pw-theme="dark"] .task-type.montage{background:#1d1e22;color:#98c0f1}
html[data-pw-theme="dark"] .task-type.aufnahme{background:#1d1e22;color:#9cece8}
html[data-pw-theme="dark"] .task-type.material{background:#54471c;color:#f3d895}
html[data-pw-theme="dark"] .task-type.abklaerung{background:#1d1e22;color:#baacdd}
html[data-pw-theme="dark"] .task-owner small{color:#c0c6ce}
html[data-pw-theme="dark"] .task-delete{color:#c0c6ce}
html[data-pw-theme="dark"] .task-delete:hover{background:#1d1e22;color:#e1a7ad}
html[data-pw-theme="dark"] .created-by{background:#1d1e22}
html[data-pw-theme="dark"] .created-by small{color:#c0c6ce}
html[data-pw-theme="dark"] .confirm-dialog{background:#1d1e22}
html[data-pw-theme="dark"] .confirm-icon{background:#54471c;color:#f3d895}
html[data-pw-theme="dark"] .confirm-dialog p{color:#c0c6ce}
html[data-pw-theme="dark"] .date-jump{background:#1d1e22;color:#bcc6d2}
html[data-pw-theme="dark"] .simple-planning-flow{background:#1d1e22;color:#b4c4d5}
html[data-pw-theme="dark"] .simple-planning-flow span b{color:#ffffff}
html[data-pw-theme="dark"] .simple-planning-flow>i{color:#b5c3d3}
html[data-pw-theme="dark"] .staff-head.team-linked{background:#1d1e22}
html[data-pw-theme="dark"] .staff-head.team-linked:after{background:#26282e;color:#9feacf}
html[data-pw-theme="dark"] .staff-column.task-target{background-color:#544a1c}
html[data-pw-theme="dark"] .staff-head.drag-target{background:#544b1c}
html[data-pw-theme="dark"] .calendar-task-badge{border:1px solid #9f8b3c;background:#544a1c;color:#f3dd95}
html[data-pw-theme="dark"] .assignment-task.selected-for-plan{background:#544a1c}
html[data-pw-theme="dark"] .resource-occupancy{background:#1d1e22}
html[data-pw-theme="dark"] .occupancy-label small{color:#bfc6cf}
html[data-pw-theme="dark"] .occupancy-timeline{border:1px solid #4a6c91;background:#1d1e22}
html[data-pw-theme="dark"] .occupancy-timeline .occupied{background:#1d1e22;color:#98c2f1;border-right:1px solid #3c6a9f}
html[data-pw-theme="dark"] .occupancy-timeline .free{color:#bdd1c8;background:#1d1e22}
html[data-pw-theme="dark"] .resource-rule{background:#1d1e22}
html[data-pw-theme="dark"] .resource-rule>span{color:#ffffff}
html[data-pw-theme="dark"] .resource-rule small{color:#bec5cf}
html[data-pw-theme="dark"] .booking-conflict{border:1px solid #9f3c45;background:#1d1e22;color:#e2a7ad}
html[data-pw-theme="dark"] .staff-calendar-head,
html[data-pw-theme="dark"] .calendar-head{background:#1d1e22}
html[data-pw-theme="dark"] .staff-all-day,
html[data-pw-theme="dark"] .day-all-day{border-bottom:1px solid #4d6b8e;background:#1d1e22}
html[data-pw-theme="dark"] .staff-all-day>div,
html[data-pw-theme="dark"] .day-all-day>div{color:#c0c6ce}
html[data-pw-theme="dark"] .staff-all-day>span,
html[data-pw-theme="dark"] .day-all-day>span{color:#bcc6d2}
html[data-pw-theme="dark"] .staff-all-day .blocked,
html[data-pw-theme="dark"] .day-all-day .blocked{background:#1d1e22;color:#c0c7ce}
html[data-pw-theme="dark"] .staff-all-day .blocked i,
html[data-pw-theme="dark"] .day-all-day .blocked:before{background:#26282e}
html[data-pw-theme="dark"] .staff-all-day .school,
html[data-pw-theme="dark"] .day-all-day .school{background:#1d1e22;color:#9dc4ec}
html[data-pw-theme="dark"] .day-all-day .vacation{background:#54491c;color:#f3df95}
html[data-pw-theme="dark"] .staff-column,
html[data-pw-theme="dark"] .day-column{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 27px,rgba(230,235,241,.65) 27px,rgba(230,235,241,.65) 28px,transparent 28px,transparent 55px,#1d1e22 55px,#1d1e22 56px)}
html[data-pw-theme="dark"] .employee-color{border:1px solid #4a6c91;background:#1d1e22;color:#bfc6cf}
html[data-pw-theme="dark"] .resource-photo-upload{color:#ffffff}
html[data-pw-theme="dark"] .fuel-panel,
html[data-pw-theme="dark"] .analytics-card{background:#1d1e22}
html[data-pw-theme="dark"] .panel-head p{color:#bfc6cf}
html[data-pw-theme="dark"] .fuel-total{background:#54491c;border:1px solid #9f8c3c}
html[data-pw-theme="dark"] .fuel-total small{color:#e3d5a6}
html[data-pw-theme="dark"] .fuel-total strong{color:#f3df95}
html[data-pw-theme="dark"] .fuel-total span{color:#ded2aa}
html[data-pw-theme="dark"] .fuel-form{background:#1d1e22}
html[data-pw-theme="dark"] .fuel-form label{color:#bec6cf}
html[data-pw-theme="dark"] .fuel-form input,
html[data-pw-theme="dark"] .fuel-form select,
html[data-pw-theme="dark"] .stats-period,
html[data-pw-theme="dark"] #object-hours-filter{border:1px solid #4a6c91;background:#1d1e22;color:#aec1db}
html[data-pw-theme="dark"] .fuel-table th,
html[data-pw-theme="dark"] .fuel-table td,
html[data-pw-theme="dark"] .report-table-wrap th,
html[data-pw-theme="dark"] .report-table-wrap td{border-bottom:1px solid #4b6b90}
html[data-pw-theme="dark"] .fuel-table th,
html[data-pw-theme="dark"] .report-table-wrap th{background:#1d1e22;color:#bfc6cf}
html[data-pw-theme="dark"] .report-badge{background:#1d1e22;color:#9ac5ef}
html[data-pw-theme="dark"] .utilization-list article{border-bottom:1px solid #4e6e8d}
html[data-pw-theme="dark"] .util-person small{color:#c0c6ce}
html[data-pw-theme="dark"] .utilization-list article>b{color:#adc2db}
html[data-pw-theme="dark"] .util-track{background:#1d1e22}
html[data-pw-theme="dark"] .object-time-grid>article{border-bottom:1px solid #4b6b90}
html[data-pw-theme="dark"] .object-number{color:#98c3f0;background:#1d1e22}
html[data-pw-theme="dark"] .object-time-grid article>div:nth-child(2) small{color:#c0c6ce}
html[data-pw-theme="dark"] .object-hours>span small{color:#c1c6cd}
html[data-pw-theme="dark"] .object-hours .good{background:#1d1e22;color:#9eead0}
html[data-pw-theme="dark"] .object-hours .over{background:#1d1e22;color:#e2a7ac}
html[data-pw-theme="dark"] .signed-in i{color:#bac6d4}
html[data-pw-theme="dark"] .security-summary article,
html[data-pw-theme="dark"] .access-card{background:#1d1e22}
html[data-pw-theme="dark"] .security-icon{background:#1d1e22;color:#9bc3ee}
html[data-pw-theme="dark"] .security-icon.yellow{background:#54491c;color:#f3dc95}
html[data-pw-theme="dark"] .security-summary small{color:#bfc6ce}
html[data-pw-theme="dark"] .security-summary p{color:#bfc6cf}
html[data-pw-theme="dark"] .panel-head select{border:1px solid #4e6c8d;background:#1d1e22;color:#bac6d4}
html[data-pw-theme="dark"] .user-table-wrap th,
html[data-pw-theme="dark"] .user-table-wrap td{border-bottom:1px solid #4b6b90}
html[data-pw-theme="dark"] .user-table-wrap th{color:#bfc6cf;background:#1d1e22}
html[data-pw-theme="dark"] .role-pill.admin{background:#1d1e22;color:#97c2f2}
html[data-pw-theme="dark"] .role-pill.lead{background:#1d1e22;color:#baacdd}
html[data-pw-theme="dark"] .role-pill.worker{background:#1d1e22;color:#9fe9d0}
html[data-pw-theme="dark"] .login-status.active{background:#1d1e22;color:#9feace}
html[data-pw-theme="dark"] .login-status.invited{background:#54471c;color:#f3da95}
html[data-pw-theme="dark"] .login-status.blocked{background:#1d1e22;color:#c1c7cd}
html[data-pw-theme="dark"] .table-action{border:1px solid #4c6c90;background:#1d1e22;color:#9fc2e9}
html[data-pw-theme="dark"] .permission-list>div{border-bottom:1px solid #4d6e8e}
html[data-pw-theme="dark"] .permission-list small{color:#c0c6ce}
html[data-pw-theme="dark"] .permission-list label{color:#bdc6d1}
html[data-pw-theme="dark"] .permission-footer{background:#1d1e22}
html[data-pw-theme="dark"] .permission-footer>span{color:#c0c6ce}
html[data-pw-theme="dark"] .project-lead-section{background:#1d1e22}
html[data-pw-theme="dark"] .project-lead-section>small{color:#bfc6ce}
html[data-pw-theme="dark"] .login-card{background:#1d1e22}
html[data-pw-theme="dark"] .login-brand small{color:#bfc6cf}
html[data-pw-theme="dark"] .login-card>p{color:#c0c6ce}
html[data-pw-theme="dark"] .login-card>label{color:#bdc6d1}
html[data-pw-theme="dark"] .login-card input{border:1px solid #486a93}
html[data-pw-theme="dark"] .demo-logins{border-top:1px solid #4d6b8e}
html[data-pw-theme="dark"] .demo-logins>span{color:#c0c6ce}
html[data-pw-theme="dark"] .demo-logins button,
html[data-pw-theme="dark"] .login-close{border:1px solid #4a6c91;background:#1d1e22;color:#a3c3e5}
html[data-pw-theme="dark"] .login-close{color:#c1c6cd}
html[data-pw-theme="dark"] .security-note{color:#c0c6ce}
html[data-pw-theme="dark"] .secure-invite{background:#1d1e22}
html[data-pw-theme="dark"] .secure-invite>span{background:#26282e;color:#9feacd}
html[data-pw-theme="dark"] .secure-invite small{color:#c3cbc6}
html[data-pw-theme="dark"] .resource-create-photo{border:1px dashed #4e6d8d}
html[data-pw-theme="dark"] .resource-create-photo>span{background:#1d1e22;color:#9bc3ee}
html[data-pw-theme="dark"] .resource-create-photo small{color:#bfc6ce}
html[data-pw-theme="dark"] .open-work-panel{background:#1d1e22}
html[data-pw-theme="dark"] .open-work-list>button{border-bottom:1px solid #4b6b90;background:#1d1e22}
html[data-pw-theme="dark"] .open-work-list>button:hover{background:#1d1e22}
html[data-pw-theme="dark"] .open-work-list small{color:#c0c6ce}
html[data-pw-theme="dark"] .open-work-list time{color:#b5c3d4}
html[data-pw-theme="dark"] .open-work-list em{color:#c0c6ce}
html[data-pw-theme="dark"] .work-priority.overdue{background:#1d1e22;color:#e2a7ad}
html[data-pw-theme="dark"] .work-priority.clarify{background:#1d1e22;color:#bbaddc}
html[data-pw-theme="dark"] .work-priority.open{background:#54481c;color:#f3dc95}
html[data-pw-theme="dark"] .work-item{border:1px solid #4c6b8f;background:#1d1e22}
html[data-pw-theme="dark"] .work-item.overdue{background:#1d1e22}
html[data-pw-theme="dark"] .work-item.done{background:#1d1e22}
html[data-pw-theme="dark"] .work-item small{color:#c0c6ce}
html[data-pw-theme="dark"] .work-item.done strong{color:#c3cac5}
html[data-pw-theme="dark"] .work-check>span{border:2px solid #435466}
html[data-pw-theme="dark"] .work-item.done .work-check>span{background:#1d1e22;border-color:#44976d}
html[data-pw-theme="dark"] .work-item.done .work-check svg{color:#9cecd0}
html[data-pw-theme="dark"] .work-actions button{color:#bfc6cf}
html[data-pw-theme="dark"] .work-actions button:hover{background:#1d1e22;color:#9bc4ed}
html[data-pw-theme="dark"] .work-actions [data-delete-work]:hover{background:#1d1e22;color:#e2a7ac}
html[data-pw-theme="dark"] .object-summary{background:#1d1e22}
html[data-pw-theme="dark"] .preview-dialog{background:#1d1e22}
html[data-pw-theme="dark"] .preview-dialog header button{background:#1d1e22}
html[data-pw-theme="dark"] .preview-dialog footer>span{color:#bfc6ce}
html[data-pw-theme="dark"] .preview-body{background:#1d1e22}
html[data-pw-theme="dark"] .pdf-preview-page{background:#1d1e22}
html[data-pw-theme="dark"] .pdf-preview-page .pdf-logo{color:var(--ink)}
html[data-pw-theme="dark"] .pdf-preview-page p{color:#bec6cf}
html[data-pw-theme="dark"] .pdf-lines i{background:#1d1e22}
html[data-pw-theme="dark"] .photo-preview-grid div{background:linear-gradient(135deg,#8fa2b5,#26282e);color:#ffffff}
html[data-pw-theme="dark"] .photo-preview-grid div:first-child{background:linear-gradient(145deg,#526f89,#293a47 55%,#333b2b)}
html[data-pw-theme="dark"] .photo-preview-grid div:nth-child(2){background:linear-gradient(135deg,#513b1f,#2f3337)}
html[data-pw-theme="dark"] .photo-preview-grid div:nth-child(3){background:linear-gradient(135deg,#26282e,#596b7b)}
html[data-pw-theme="dark"] .customer-list-entry .customer-select{background:#1d1e22}
html[data-pw-theme="dark"] .customer-list-entry .customer-select.active,
html[data-pw-theme="dark"] .customer-list-entry .customer-select:hover{background:#1d1e22}
html[data-pw-theme="dark"] .customer-list-entry .customer-delete{color:#d3bbc0}
html[data-pw-theme="dark"] .customer-list-entry .customer-delete:hover{background:#1d1e22;color:#e2a7ac}
html[data-pw-theme="dark"] .customer-list-empty{color:#bfc6cf}
/* Existing fixed colours: styles.css */
html[data-pw-theme="dark"] .pw-error{color:#e4a5ad}
html[data-pw-theme="dark"] .pw-search-icon{color:#bec5d0}
html[data-pw-theme="dark"] .pw-signout{color:#ffffff}
html[data-pw-theme="dark"] .pw-summary-strip{color:#bfc6cf}
html[data-pw-theme="dark"] .pw-day-head{background:#1d1e22}
html[data-pw-theme="dark"] .pw-hours{background:#1d1e22}
html[data-pw-theme="dark"] .pw-hours span{color:#bec6d0}
html[data-pw-theme="dark"] .pw-day-column{background:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,#1d1e22 29px,#1d1e22 30px,transparent 30px,transparent 59px,#1d1e22 59px,#1d1e22 60px)}
html[data-pw-theme="dark"] .pw-day-column:hover{background-color:#1d1e22}
html[data-pw-theme="dark"] .pw-event{border:1px solid #3c6a9f;background:#1d1e22;color:#99c1f0}
html[data-pw-theme="dark"] .pw-event.yellow{background:#54481c;border-color:#9f8b3c;color:#f3da95}
html[data-pw-theme="dark"] .pw-event.purple{background:#1d1e22;border-color:#563c9f;border-left-color:#593c9f;color:#beaddc}
html[data-pw-theme="dark"] .pw-event.teal{background:#1d1e22;border-color:#409b87;color:#a1e8dd}
html[data-pw-theme="dark"] .pw-event.red{background:#1d1e22;border-color:#9f3c53;border-left-color:#9f3c53;color:#d9afba}
html[data-pw-theme="dark"] .pw-event.pw-absence{background:repeating-linear-gradient(135deg,#1d1e22,#1d1e22 7px,#1d1e22 7px,#1d1e22 14px);border-color:#455363;border-left-color:#495360;color:#bfc6cf}
html[data-pw-theme="dark"] .pw-prep{color:#bfc6ce}
html[data-pw-theme="dark"] .pw-prep.done{color:#9eebcf}
html[data-pw-theme="dark"] .pw-prep.blocked{color:#f3ca95}
html[data-pw-theme="dark"] .pw-period-corner,
html[data-pw-theme="dark"] .pw-period-head{background:#1d1e22}
html[data-pw-theme="dark"] .pw-period-head.today{background:#1d1e22}
html[data-pw-theme="dark"] .pw-period-user{background:#1d1e22}
html[data-pw-theme="dark"] .pw-period-cell.weekend,
html[data-pw-theme="dark"] .pw-period-head.weekend{background:#1d1e22}
html[data-pw-theme="dark"] .pw-period-cell:hover{background:#1d1e22}
html[data-pw-theme="dark"] .pw-drop{background-color:#1d1e22!important}
html[data-pw-theme="dark"] .resource-dock{background:#1d1e22}
html[data-pw-theme="dark"] .pw-planning-bottom strong{color:#b5c3d4}
html[data-pw-theme="dark"] .pw-task-dock{background:#1d1e22}
html[data-pw-theme="dark"] .pw-task-chip{background:#1d1e22}
html[data-pw-theme="dark"] .pw-dialog{background:#1d1e22}
html[data-pw-theme="dark"] .pw-dialog footer{background:#1d1e22}
html[data-pw-theme="dark"] .pw-field input,
html[data-pw-theme="dark"] .pw-field select,
html[data-pw-theme="dark"] .pw-field textarea{border:1px solid #496a92;background:#1d1e22}
html[data-pw-theme="dark"] .pw-checkboxes label:has(input:checked){background:#1d1e22;border-color:#3c6a9f}
html[data-pw-theme="dark"] .pw-form-note{background:#1d1e22}
html[data-pw-theme="dark"] .pw-danger{color:#e4a5ad;border-color:#9f3c50}
html[data-pw-theme="dark"] .pw-toast{color:#ffffff}
html[data-pw-theme="dark"] .pw-login{background:#1d1e22}
html[data-pw-theme="dark"] .pw-login-card .brand{color:var(--ink)}
html[data-pw-theme="dark"] .pw-login-art{color:#ffffff}
@media(max-width:860px){
html[data-pw-theme="dark"] .title-actions input{background:#1d1e22}
}
html[data-pw-theme="dark"] [data-cell-date] .pw-event:not(.pw-absence){background:color-mix(in srgb,var(--pw-color),#1d1e22 90%);border-color:color-mix(in srgb,var(--pw-color),#ffffff 65%);color:color-mix(in srgb,var(--pw-color),#f0f1f3 24%)}
/* Existing fixed colours: modules.css */
html[data-pw-theme="dark"] .biz-stat{background:#1d1e22}
html[data-pw-theme="dark"] .biz-stat strong{color:var(--ink)}
html[data-pw-theme="dark"] .biz-panel{background:#1d1e22}
html[data-pw-theme="dark"] .biz-panel h2{color:var(--ink)}
html[data-pw-theme="dark"] .biz-table th{background:#1d1e22}
html[data-pw-theme="dark"] .biz-table td{border-top:1px solid #4e6e8d}
html[data-pw-theme="dark"] .biz-table tbody tr:hover{background:#1d1e22}
html[data-pw-theme="dark"] .biz-search input{background:#1d1e22}
html[data-pw-theme="dark"] .biz-empty-symbol{background:#1d1e22;color:#b3c3d6}
html[data-pw-theme="dark"] .biz-empty h3{color:var(--ink)}
html[data-pw-theme="dark"] .biz-badge{background:#1d1e22;color:#bbc6d3}
html[data-pw-theme="dark"] .biz-open{background:#54471c;color:#f3da95}
html[data-pw-theme="dark"] .biz-active{background:#1d1e22;color:#9ac4ef}
html[data-pw-theme="dark"] .biz-done{background:#1d1e22;color:#9debcc}
html[data-pw-theme="dark"] .biz-blocked{background:#543d1c;color:#f3c695}
html[data-pw-theme="dark"] .biz-detail-row{border-bottom:1px solid #4e6e8d}
html[data-pw-theme="dark"] .biz-copy{color:#bcc6d2}
html[data-pw-theme="dark"] .biz-task{border-bottom:1px solid #477195}
html[data-pw-theme="dark"] .biz-tick{border:2px solid #496c92;background:#1d1e22}
html[data-pw-theme="dark"] .is-done .biz-tick{border-color:#449771;background:#1d1e22}
html[data-pw-theme="dark"] .is-done>div>strong{color:#c1ccc6}
html[data-pw-theme="dark"] .biz-task-note{color:#f2c997}
html[data-pw-theme="dark"] .biz-dot{background:#26282e}
html[data-pw-theme="dark"] .biz-dot.open{background:#26282e}
html[data-pw-theme="dark"] .biz-prep-blocked{background:#1d1e22}
html[data-pw-theme="dark"] .biz-timeline article{border-left:2px solid #42689a}
html[data-pw-theme="dark"] .biz-field{color:#b4c3d5}
html[data-pw-theme="dark"] .biz-field>input,
html[data-pw-theme="dark"] .biz-field>select,
html[data-pw-theme="dark"] .biz-field>textarea{border:1px solid #476c94;background:#1d1e22}
html[data-pw-theme="dark"] .biz-field select:disabled{background:#1d1e22}
html[data-pw-theme="dark"] .biz-form>h3{color:var(--ink)}
html[data-pw-theme="dark"] .biz-form-note{border:1px solid #3c699f;background:#1d1e22;color:#bac6d4}
html[data-pw-theme="dark"] .biz-members legend{color:var(--ink)}
html[data-pw-theme="dark"] .biz-person,
html[data-pw-theme="dark"] .biz-resource{background:#1d1e22}
html[data-pw-theme="dark"] .biz-person-top{background:#1d1e22}
html[data-pw-theme="dark"] .biz-avatar{color:#ffffff}
html[data-pw-theme="dark"] .biz-team-grid article{background:#1d1e22;border:1px solid #436b98}
html[data-pw-theme="dark"] .biz-team-grid h3{color:var(--ink)}
html[data-pw-theme="dark"] .biz-resource-icon{background:#1d1e22}
html[data-pw-theme="dark"] .biz-resource h2{color:var(--ink)}
html[data-pw-theme="dark"] .biz-file{color:var(--ink);border-bottom:1px solid #477195}
html[data-pw-theme="dark"] .biz-file-icon{background:#1d1e22}
html[data-pw-theme="dark"] .biz-time-presets{background:#1d1e22}
html[data-pw-theme="dark"] .biz-module-list>div{border-bottom:1px solid #426a99}
html[data-pw-theme="dark"] .biz-role-explain article{border-bottom:1px solid #426a99}
html[data-pw-theme="dark"] .biz-role-explain h3{color:var(--ink)}
html[data-pw-theme="dark"] .biz-danger-zone{border-top:1px solid #4d678e}
html[data-pw-theme="dark"] .biz-danger-zone .soft{color:#deaab0;border-color:#99424f}
html[data-pw-theme="dark"] .biz-assigned-resources article{border-bottom:1px solid #4d678e}
html[data-pw-theme="dark"] .biz-task-running{background:#1d1e22}
html[data-pw-theme="dark"] .biz-priority-high{background:#54431c;color:#f3ce95}
html[data-pw-theme="dark"] .biz-priority-urgent{background:#1d1e22;color:#ea9fa6}
html[data-pw-theme="dark"] .biz-priority-notice{background:#54431c;color:#f3d495}
html[data-pw-theme="dark"] .biz-running-timer{background:#1d1e22;border:1px solid #449764;color:#a0e8c2}
html[data-pw-theme="dark"] .biz-timer-live{color:#9debcc!important}
html[data-pw-theme="dark"] .biz-report>summary{background:#1d1e22}
html[data-pw-theme="dark"] .biz-report>summary:before{color:#aec2db}
html[data-pw-theme="dark"] .biz-emergency-link{background:#54431c;border:1px solid #9f863c;color:#f3d495!important}
html[data-pw-theme="dark"] .biz-job-card{background:#1d1e22}
html[data-pw-theme="dark"] .biz-job-card>header{background:#1d1e22}
html[data-pw-theme="dark"] .biz-job-card h2{color:var(--ink)}
html[data-pw-theme="dark"] .biz-navigation-link{border:1px solid #3c699f;background:#1d1e22}
html[data-pw-theme="dark"] .biz-job-assignments p{color:#b2c4d6}
html[data-pw-theme="dark"] .biz-job-tabs button{color:#bcc6d1}
html[data-pw-theme="dark"] .biz-job-tabs button span{background:#1d1e22}
html[data-pw-theme="dark"] .biz-job-progress{background:#1d1e22}
html[data-pw-theme="dark"] .biz-prep-attention{color:#f2c997!important}
html[data-pw-theme="dark"] .biz-leave-summary{background:#1d1e22;border:1px solid #3c699f}
html[data-pw-theme="dark"] .biz-leave-summary strong{color:var(--ink)}
html[data-pw-theme="dark"] .biz-report-filters{background:#1d1e22}
html[data-pw-theme="dark"] .biz-report-total{color:var(--ink)}
html[data-pw-theme="dark"] .biz-edit-history{background:#1d1e22}
html[data-pw-theme="dark"] .biz-document-photo{background:#1d1e22}
html[data-pw-theme="dark"] .biz-survey-photos a{color:var(--ink)}
html[data-pw-theme="dark"] .biz-warehouse-tools{background:#1d1e22}
html[data-pw-theme="dark"] .biz-warehouse-card>header{background:#1d1e22}
html[data-pw-theme="dark"] .biz-warehouse-due{color:#bac6d4}
html[data-pw-theme="dark"] .biz-warehouse-card .biz-prep-blocked{background:#1d1e22}
html[data-pw-theme="dark"] .biz-warehouse-detail-body h3{color:var(--ink)}
html[data-pw-theme="dark"] .biz-leave-allowances>article{background:#1d1e22}
html[data-pw-theme="dark"] .biz-leave-allowances strong{color:var(--ink)}
html[data-pw-theme="dark"] .biz-field-actions{background:#1d1e22;border:1px solid #9f873c}
html[data-pw-theme="dark"] .biz-photo-gallery>a{color:var(--ink);background:#1d1e22}
html[data-pw-theme="dark"] .biz-commission-contacts strong{color:var(--ink)}
html[data-pw-theme="dark"] .biz-latest-note{border:1px solid #3c6a9f;background:#1d1e22}
html[data-pw-theme="dark"] .biz-latest-note>strong{color:var(--ink)}
html[data-pw-theme="dark"] .biz-upload-drop{border:2px dashed #4d6b8e;background:#1d1e22}
html[data-pw-theme="dark"] .biz-upload-drop.is-dragover{background:#1d1e22}
html[data-pw-theme="dark"] .biz-upload-status{color:#f2c997}
html[data-pw-theme="dark"] .biz-upload-queue>li{background:#1d1e22}
html[data-pw-theme="dark"] .biz-upload-queue>.biz-upload-saved{border-color:#4a9266;background:#1d1e22}
html[data-pw-theme="dark"] .biz-upload-queue>.biz-upload-error{border-color:#9f3c48;background:#1d1e22}
html[data-pw-theme="dark"] .biz-upload-queue>.biz-upload-uploading{border-color:#3c6c9f;background:#1d1e22}
html[data-pw-theme="dark"] .biz-permission-editor>h3{color:var(--ink)}
html[data-pw-theme="dark"] .biz-permission-editor legend{color:var(--ink)}
html[data-pw-theme="dark"] .biz-absence-reason legend{color:var(--ink)}
html[data-pw-theme="dark"] .pw-report-periods .active{background:#1d1e22;border-color:#3c689f;color:#98c0f1}
html[data-pw-theme="dark"] .pw-report-periods input{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-workbench{background:#1d1e22;border:1px solid #3c699f}
html[data-pw-theme="dark"] .pw-commission-workbench-terms strong{color:var(--ink)}
html[data-pw-theme="dark"] .pw-task-sequence-number{background:#1d1e22;color:#a0c2e9}
html[data-pw-theme="dark"] .pw-task-stage{color:#a4c4e5}
html[data-pw-theme="dark"] .pw-completed-archive>summary{color:var(--ink)}
html[data-pw-theme="dark"] .pw-date-agreement-fields{border:1px solid #3c6c9f}
html[data-pw-theme="dark"] .pw-task-package>legend,
html[data-pw-theme="dark"] .pw-package-task>legend{color:var(--ink)}
html[data-pw-theme="dark"] .pw-package-task{background:#1d1e22}
html[data-pw-theme="dark"] .pw-name-avatar{background:#1d1e22;color:#acc4dd}
html[data-pw-theme="dark"] .pw-actual-report{background:#1d1e22;color:#c7c7c7}
html[data-pw-theme="dark"] .pw-actual-report h1{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-actual-report h2,
html[data-pw-theme="dark"] .pw-actual-report h3{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-report-document-header small{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-report-customer{background:#1d1e22}
html[data-pw-theme="dark"] .pw-report-identification dt{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-report-job{background:#1d1e22}
html[data-pw-theme="dark"] .pw-actual-report th,
html[data-pw-theme="dark"] .pw-actual-report td{border:1px solid #545454}
html[data-pw-theme="dark"] .pw-actual-report th{background:#1d1e22}
html[data-pw-theme="dark"] .pw-report-summary-row th,
html[data-pw-theme="dark"] .pw-report-summary-row td{background:#1d1e22}
html[data-pw-theme="dark"] .pw-report-work-meta{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-report-contact dt{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-report-resources{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-report-note{background:#1d1e22}
html[data-pw-theme="dark"] .pw-report-signatures>div{border-top:1px solid #777777}
html[data-pw-theme="dark"] .pw-report-footer{border-top:1px solid #545454;color:#c7c7c7}
html[data-pw-theme="dark"] .pw-customer-contact-action{border:1px solid #3c699f;background:#1d1e22}
html[data-pw-theme="dark"] a.pw-customer-contact-action:hover{background:#1d1e22;border-color:#3c699f}
html[data-pw-theme="dark"] .pw-customer-contact-action[aria-disabled=true]{background:#1d1e22;border-color:#4c6b8f;color:#bcc5d2}
html[data-pw-theme="dark"] .pw-material-fields>legend{color:var(--ink)}
html[data-pw-theme="dark"] .pw-material-not_ready{background:#1d1e22;color:#f0c998}
html[data-pw-theme="dark"] .pw-material-ready{background:#1d1e22;color:#a6e3c1}
html[data-pw-theme="dark"] .pw-material-done{background:#1d1e22;color:#b4c2d4}
html[data-pw-theme="dark"] .pw-material-none{background:#1d1e22;color:#bdc6d1}
html[data-pw-theme="dark"] .pw-material-unknown{background:#1d1e22;color:#bdc6d1}
/* Existing fixed colours: tablet.css */
html[data-pw-theme="dark"] .pw-touch-ghost{color:#ffffff}
html[data-pw-theme="dark"] .pw-tablet-banner{border:1px solid #9f903c;background:#1d1e22;color:#d8d1b1}
html[data-pw-theme="dark"] .pw-tablet-banner button{background:#1d1e22;border-color:#9f8b3c}
html[data-pw-theme="dark"] .pw-demo-roles button{border:1px solid #3d689e;background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-demo-roles button:first-child{background:#1d1e22}
html[data-pw-theme="dark"] .pw-demo-roles button:active{background:#1d1e22}
html[data-pw-theme="dark"] .pw-demo-password-value{background:#1d1e22}
html[data-pw-theme="dark"] .pw-custom-controls{background:#1d1e22}
html[data-pw-theme="dark"] .pw-custom-fields label{color:#bac6d3}
html[data-pw-theme="dark"] .pw-custom-fields input,
html[data-pw-theme="dark"] .pw-custom-fields select{border:1px solid #416a9a;background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-team-context{border-bottom:1px solid #3c699f;background:#1d1e22}
html[data-pw-theme="dark"] .pw-team-context strong{color:var(--ink)}
html[data-pw-theme="dark"] .pw-team-context span{color:#bbc6d2}
html[data-pw-theme="dark"] .pw-zoom-tools{background:#1d1e22}
html[data-pw-theme="dark"] .pw-event.pw-vacation{background:#1d1e22!important;border-color:#4d8e82!important;color:#a0e9dc!important}
html[data-pw-theme="dark"] .pw-priority.high{background:#54471c;color:#f3d895}
html[data-pw-theme="dark"] .pw-priority.urgent{background:#1d1e22;color:#e7a2ad}
html[data-pw-theme="dark"] .pw-mini-calendar{border:1px solid #3f689c;background:#1d1e22}
html[data-pw-theme="dark"] .pw-mini-days>button{background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-mini-days .selected{background:#544a1c}
html[data-pw-theme="dark"] .pw-mini-days .start,
html[data-pw-theme="dark"] .pw-mini-days .end{color:#ffffff}
html[data-pw-theme="dark"] .pw-people-tools{background:#1d1e22}
html[data-pw-theme="dark"] .pw-staff-picker{background:#1d1e22;border-block:1px solid #3c659f}
html[data-pw-theme="dark"] .pw-day-head .pw-time-label{background:#1d1e22}
html[data-pw-theme="dark"] .person-chip:not(.selected){background:#1d1e22}
html[data-pw-theme="dark"] .person-chip.selected{background:#1d1e22;border:1px solid #3c6c9f}
html[data-pw-theme="dark"] .person-chip.pw-companion-chip{border-color:#4a6f91}
html[data-pw-theme="dark"] .pw-shared-note{color:#bbc6d3;background:#1d1e22}
html[data-pw-theme="dark"] .pw-staff [data-open-day]{color:#b9c6d4}
html[data-pw-theme="dark"] .pw-staff.weekend{background:#1d1e22}
html[data-pw-theme="dark"] .pw-editor-note{color:#bbc6d3}
html[data-pw-theme="dark"] .pw-move-confirm{background:#54451c;border:1px solid #9f863c}
html[data-pw-theme="dark"] .pw-drop-guide>span{color:#ffffff}
html[data-pw-theme="dark"] .pw-planning-fullscreen .pw-calendar-card{background:#1d1e22}
html[data-pw-theme="dark"] .pw-month-overview .pw-period-user{color:var(--ink)}
html[data-pw-theme="dark"] .pw-calendar-card .pw-month-overview button.pw-period-user:hover{background:#1d1e22}
/* Existing fixed colours: planning-features.css */
html[data-pw-theme="dark"] .pw-axis-toolbar{background:#1d1e22}
html[data-pw-theme="dark"] .pw-axis-switch{border:1px solid #3c689f}
html[data-pw-theme="dark"] .pw-axis-switch button{background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-axis-switch button.active{color:#ffffff}
html[data-pw-theme="dark"] .pw-commission-heading{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-open{color:var(--ink)}
html[data-pw-theme="dark"] .pw-commission-cell{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-cell.weekend{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-cell:hover{background:#1d1e22}
html[data-pw-theme="dark"] .pw-cell-hint{color:#bcc6d2}
html[data-pw-theme="dark"] .pw-calendar-lease{background:#54431c;color:#efd39a;border:1px solid #9f803c}
html[data-pw-theme="dark"] .pw-recurrence{border:1px solid #3c689f;background:#1d1e22}
html[data-pw-theme="dark"] .pw-recurrence legend{color:var(--ink)}
html[data-pw-theme="dark"] .pw-repeat-summary{color:#acc5dd}
html[data-pw-theme="dark"] .pw-repeat-summary.pw-error{color:#e4a5ad}
html[data-pw-theme="dark"] .pw-repeat-badge{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-row>.pw-commission-heading{background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 96%)}
html[data-pw-theme="dark"] .pw-commission-row>.pw-commission-cell{background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 98%)}
html[data-pw-theme="dark"] .pw-commission-row>.pw-commission-cell.weekend{background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 97%)}
html[data-pw-theme="dark"] .pw-commission-row>.pw-commission-cell:hover{background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 92%)}
html[data-pw-theme="dark"] .pw-cell-new-task{background:#1d1e22;border:1px dashed color-mix(in srgb,var(--pw-commission-color),#ffffff 50%)}
html[data-pw-theme="dark"] .pw-cell-new-task:hover{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-envelope{border:1px solid color-mix(in srgb,var(--pw-commission-color),#ffffff 55%);background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 91%)}
html[data-pw-theme="dark"] .pw-commission-task{border:1px solid color-mix(in srgb,var(--pw-commission-color),#ffffff 57%);background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 90%);color:color-mix(in srgb,var(--pw-commission-color),#f0f1f3 25%)}
html[data-pw-theme="dark"] .pw-commission-task.done{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-conflict{border:1px solid #9f3c48;background:#1d1e22;color:#e7a2ab}
html[data-pw-theme="dark"] .pw-commission-days{background-color:color-mix(in srgb,var(--pw-commission-color),#1d1e22 98%)}
html[data-pw-theme="dark"] .pw-presence-avatar{color:#ffffff}
html[data-pw-theme="dark"] .pw-presence.is-own{background:#1d1e22;border-color:#499278;color:#a6e2c6}
html[data-pw-theme="dark"] .pw-commission-row>.pw-commission-presence-range{border-bottom:2px solid #9f7f3c}
html[data-pw-theme="dark"] .pw-staff.pw-today,
html[data-pw-theme="dark"] .pw-period-head.pw-today{background:#1d1e22}
html[data-pw-theme="dark"] .pw-staff.pw-today [data-open-day],
html[data-pw-theme="dark"] .pw-period-head.pw-today{color:#97c1f2}
html[data-pw-theme="dark"] .pw-day-column.pw-today,
html[data-pw-theme="dark"] .pw-commission-row>.pw-commission-cell.pw-today,
html[data-pw-theme="dark"] .pw-commission-today-marker{background-color:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-row>.pw-commission-cell.pw-calendar-past,
html[data-pw-theme="dark"] .pw-day-column.pw-calendar-past{background-color:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-past.pw-drop{background-color:#1d1e22!important}
html[data-pw-theme="dark"] .pw-commission-picker{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-picker [data-calendar-commission-all].active{color:#ffffff}
html[data-pw-theme="dark"] .pw-commission-chip{border:1px solid #446b97;background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-commission-chip.selected{background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 92%)}
html[data-pw-theme="dark"] .pw-date-required{background:#54401c;color:#f3d195}
html[data-pw-theme="dark"] .pw-date-confirmed{background:#1d1e22;color:#a8e0c6}
html[data-pw-theme="dark"] .pw-calendar-task-label{background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 95%);color:var(--ink)}
html[data-pw-theme="dark"] .pw-calendar-task-label.done{border-left-color:#475261;background:#1d1e22;color:#bfc6cf}
html[data-pw-theme="dark"] .pw-calendar-rollover{color:#a8e0c6}
html[data-pw-theme="dark"] .pw-calendar-rollover.blocked{color:#f3d595;background:#54431c}
html[data-pw-theme="dark"] .pw-today-commissions{background:#1d1e22}
html[data-pw-theme="dark"] .pw-today-commission{border:1px solid #496c92;background:#1d1e22}
html[data-pw-theme="dark"] .pw-today-commission-chip{background:color-mix(in srgb,var(--pw-commission-color),#1d1e22 95%);color:var(--ink)}
html[data-pw-theme="dark"] .pw-today-tasks .pw-task-chip.is-assigned{background:#1d1e22;border-color:#528a66}
html[data-pw-theme="dark"] .pw-staff.pw-planning-busy{background:#54411c}
html[data-pw-theme="dark"] .pw-day-column.pw-planning-busy{background-color:#1d1e22}
html[data-pw-theme="dark"] .pw-day-grid.pw-uniform-calendar .pw-day-column{background-image:repeating-linear-gradient(to bottom,#25364b 0,#25364b 1px,transparent 1px,transparent 60px),repeating-linear-gradient(to bottom,#26282e 0,#26282e 1px,transparent 1px,transparent 30px),repeating-linear-gradient(to bottom,#1d1e22 0,#1d1e22 1px,transparent 1px,transparent 15px)}
html[data-pw-theme="dark"] .pw-calendar-week{color:#bac7d4}
html[data-pw-theme="dark"] .pw-project-notice{background:#1d1e22;border-bottom:1px solid #9f7f3c;color:#f0d199}
html[data-pw-theme="dark"] .pw-commission-overdue{color:#f0b699;background:#543c1c}
html[data-pw-theme="dark"] .pw-commission-overdue.is-open-end{color:#bbc7d3;background:#1d1e22}
html[data-pw-theme="dark"] .pw-project-period{background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-project-period-dates b{color:#a0c3e9}
html[data-pw-theme="dark"] .pw-project-scale button.active{color:#ffffff}
html[data-pw-theme="dark"] .pw-project-week-row{background:#1d1e22;border-bottom:1px solid #3c699f}
html[data-pw-theme="dark"] .pw-project-week-corner{background:#1d1e22}
html[data-pw-theme="dark"] .pw-project-week-head{border-right:1px solid #3c699f;background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-commission-assignment{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-assignment>label{color:var(--ink)}
html[data-pw-theme="dark"] .pw-assignment-commission-card{border:1px solid #3c699f;background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-commission-view-switch button.active{color:#ffffff}
html[data-pw-theme="dark"] .pw-commission-compact-table thead th{background:#1d1e22}
html[data-pw-theme="dark"] [data-calendar-axis="employee"] .pw-day-grid.pw-uniform-calendar .pw-day-column{background-image:repeating-linear-gradient(to bottom,#26282e 0,#26282e 1px,transparent 1px,transparent 60px),repeating-linear-gradient(to bottom,#1d1e22 0,#1d1e22 1px,transparent 1px,transparent 30px),repeating-linear-gradient(to bottom,#1d1e22 0,#1d1e22 1px,transparent 1px,transparent 15px);border-right-color:#4e6e8d}
html[data-pw-theme="dark"] [data-calendar-axis="employee"] .pw-day-head{border-bottom-color:#516e8a}
html[data-pw-theme="dark"] [data-calendar-axis="employee"] .pw-day-head .pw-staff{border-right-color:#4e6e8d}
html[data-pw-theme="dark"] [data-calendar-axis="employee"] .pw-time-label,
html[data-pw-theme="dark"] [data-calendar-axis="employee"] .pw-hours{border-right-color:#506b8b}
html[data-pw-theme="dark"] .pw-commission-compact-table.pw-compact-gantt .pw-compact-gantt-name{background:#1d1e22}
html[data-pw-theme="dark"] .pw-compact-gantt thead .pw-compact-gantt-name{background:#1d1e22}
html[data-pw-theme="dark"] .pw-compact-period-track{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-view-switch button{background:#1d1e22;color:#b5c3d3}
html[data-pw-theme="dark"] .pw-commission-view-switch button:hover:not(.active){border-color:#4e6b8e;background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-docks{background:#1d1e22}
html[data-pw-theme="dark"] .pw-dock-heading>strong{color:var(--ink)}
html[data-pw-theme="dark"] #pw-resource-search,
html[data-pw-theme="dark"] #pw-commission-search{border:1px solid #446b97;background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-calendar-full-height .pw-day-grid .pw-day-column{background-image:repeating-linear-gradient(to bottom,#26282e 0,#26282e 1px,transparent 1px,transparent var(--pw-calendar-hour-height))}
html[data-pw-theme="dark"] .pw-calendar-full-height .pw-hours>span{color:#b6c3d3}
html[data-pw-theme="dark"] .pw-calendar-full-height .pw-hours>.pw-day-end-label{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-controls{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-controls>#pw-filter{background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-calendar-fit-dates{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-fit-dates button{background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-calendar-fit-dates button.pw-today{background:#1d1e22;color:#97c1f2}
html[data-pw-theme="dark"] .pw-assignment-filters{background:#1d1e22}
html[data-pw-theme="dark"] .pw-assignment-filters>strong{color:var(--ink)}
html[data-pw-theme="dark"] .pw-assignment-fields input,
html[data-pw-theme="dark"] .pw-assignment-fields select{background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-project-grid .pw-commission-row>.pw-commission-cell.weekend{background:color-mix(in srgb,var(--pw-commission-color) 7%,#1d1e22 93%)}
html[data-pw-theme="dark"] .pw-commission-task-list>summary{color:var(--ink)}
html[data-pw-theme="dark"] .pw-calendar-card>.calendar-toolbar{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-card>.calendar-toolbar .pw-zoom-tools{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-drawer{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-drawer-toggle{color:#b4c3d5}
html[data-pw-theme="dark"] .pw-calendar-drawer[open]>.pw-calendar-drawer-toggle{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-drawer-content{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-overflow-note{background:#1d1e22;color:#f0d199}
html[data-pw-theme="dark"] .pw-calendar-week{color:#bdc5d1}
html[data-pw-theme="dark"] .pw-project-weeks>.pw-period-head,
html[data-pw-theme="dark"] .pw-project-weeks>.pw-period-corner{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-fit-dates,
html[data-pw-theme="dark"] .pw-calendar-fit-dates button{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commission-row-tools>summary{color:#b4c3d5}
html[data-pw-theme="dark"] .pw-calendar-full-height .pw-commission-row-tools-content{background:#1d1e22}
html[data-pw-theme="dark"] .pw-period-head>button.pw-calendar-week{color:#bdc5d1}
html[data-pw-theme="dark"] .pw-inline-selection .pw-inline-choice{background:#1d1e22;color:#b4c4d5}
html[data-pw-theme="dark"] .pw-inline-selection .pw-inline-choice.selected{border-color:#3c679f;background:#1d1e22;color:#99c1f0}
html[data-pw-theme="dark"] .pw-inline-selection-more>summary{background:#1d1e22;color:#b4c4d5}
html[data-pw-theme="dark"] .pw-inline-selection-more>summary small{background:#1d1e22;color:#99c1f0}
html[data-pw-theme="dark"] .pw-inline-selection-more[open]>summary{border-color:#3c679f;background:#1d1e22}
html[data-pw-theme="dark"] .pw-inline-selection-panel{background:#1d1e22}
html[data-pw-theme="dark"] .pw-inline-selection-panel>section>strong{color:#bdc5d1}
html[data-pw-theme="dark"] .pw-calendar-card>.pw-calendar-range-position{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-range-position>.pw-calendar-controls{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-search-panel{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-search-panel>summary{color:#b4c3d5}
html[data-pw-theme="dark"] .pw-calendar-search-panel[open]>#pw-calendar-search-content{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-search-panel .pw-assignment-row{background:#1d1e22}
html[data-pw-theme="dark"] .pw-event-commission .pw-event-commission-result{background:#1d1e22}
html[data-pw-theme="dark"] .pw-event-commission-result>strong{color:var(--ink)}
html[data-pw-theme="dark"] .pw-event-commission .pw-event-commission-result[aria-selected="true"]{border-color:#3c689f;background:#1d1e22}
html[data-pw-theme="dark"] .pw-warehouse-done,
html[data-pw-theme="dark"] .pw-material-warehouse-done{color:#9feabf;background:#1d1e22;border:1px solid #419b60}
html[data-pw-theme="dark"] .pw-resource-fixed-tag{border:1px solid #9f823c;background:#54431c;color:#e9d1a0}
/* Existing fixed colours: calendar-commandbar.css */
html[data-pw-theme="dark"] .pw-command-menu>summary{border:1px solid var(--border,#556c86);background:var(--card,#1d1e22)}
html[data-pw-theme="dark"] .pw-command-menu[open]>summary{background:#1d1e22;border-color:#3c719f;color:#9ec8eb}
html[data-pw-theme="dark"] .pw-command-panel{border:1px solid #4c6b8f;background:var(--card,#1d1e22);color:var(--text,#a6c5e3)}
html[data-pw-theme="dark"] .pw-command-list{border-top:1px solid #4e6e8d;border-bottom:1px solid #4e6e8d}
html[data-pw-theme="dark"] .pw-command-row{border-bottom:1px solid #4e668d}
html[data-pw-theme="dark"] .pw-command-item small{color:#bdc6d1}
html[data-pw-theme="dark"] .pw-command-pin{color:#f3d396}
html[data-pw-theme="dark"] .pw-calendar-pins{background:#1d1e22;border-top:1px solid #496b92;border-bottom:1px solid #496b92}
html[data-pw-theme="dark"] .pw-pin-label{color:#b4c6d4}
html[data-pw-theme="dark"] .pw-pin-wrap{border:1px solid #406c9c;background:#1d1e22}
html[data-pw-theme="dark"] .pw-pin-remove{color:#bdc5d1}
html[data-pw-theme="dark"] .pw-calendar-pins.pw-drop{background:#1d1e22}
html[data-pw-theme="dark"] .pw-commandbar button:focus-visible,
html[data-pw-theme="dark"] .pw-commandbar summary:focus-visible,
html[data-pw-theme="dark"] .pw-calendar-pins button:focus-visible{outline:3px solid #3c739f}
html[data-pw-theme="dark"] .pw-staff-pair-handle{background:#1d1e22!important;color:#aec6db}
html[data-pw-theme="dark"] .pw-booking-unavailable{color:#c1c5cd}
html[data-pw-theme="dark"] .pw-booking-unavailable>small[data-booking-hint]{color:#dabeaf}
html[data-pw-theme="dark"] .pw-pin-items:focus-visible{outline:2px solid #3c739f}
html[data-pw-theme="dark"] .pw-command-favorites>span{color:#f3d396}
/* Existing fixed colours: calendar-date-picker.css */
html[data-pw-theme="dark"] .pw-calendar-date-panel{border:1px solid #3e6b9d;background:#1d1e22;color:#a1c4e8}
html[data-pw-theme="dark"] .pw-date-mode-tabs{background:#1d1e22}
html[data-pw-theme="dark"] .pw-date-mode-tabs button{color:#b3c3d6}
html[data-pw-theme="dark"] .pw-date-mode-tabs [aria-selected=true]{background:#1d1e22;color:#95bdf3}
html[data-pw-theme="dark"] .pw-date-span-fields input{border:1px solid #436b99;background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-date-grid>.pw-date-week,
html[data-pw-theme="dark"] .pw-date-week-heading,
html[data-pw-theme="dark"] .pw-date-weekday{color:#bac6d4}
html[data-pw-theme="dark"] .pw-calendar-date-grid>.pw-date-week{border-right:1px solid #456c96}
html[data-pw-theme="dark"] .pw-calendar-date-grid button{background:#1d1e22;color:#a1c4e8}
html[data-pw-theme="dark"] .pw-calendar-date-grid button.outside{color:#bfc6cf;background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-date-grid button.selected{color:#ffffff}
html[data-pw-theme="dark"] .pw-date-selected-days button{border:1px solid #3c699f;background:#1d1e22;color:#9cc3ed}
html[data-pw-theme="dark"] .pw-date-summary{color:#bac6d4}
html[data-pw-theme="dark"] .pw-date-error{color:#e9a0aa}
/* Existing fixed colours: calendar-entity-picker.css */
html[data-pw-theme="dark"] .pw-entity-label{color:#b4c3d5}
html[data-pw-theme="dark"] .pw-entity-trigger{border:1px solid #476c94;background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-entity-trigger:disabled{background:#1d1e22}
html[data-pw-theme="dark"] .pw-entity-chip{border:1px solid #3c699f;background:#1d1e22;color:#a4c4e5}
html[data-pw-theme="dark"] .pw-entity-chip>button:hover{background:#1d1e22}
html[data-pw-theme="dark"] .pw-entity-panel{border:1px solid #3c689f;background:#1d1e22}
html[data-pw-theme="dark"] .pw-dialog .pw-entity-panel>input,
html[data-pw-theme="dark"] .pw-entity-panel>input{border:1px solid #476c94}
html[data-pw-theme="dark"] .pw-entity-option{color:var(--ink)}
html[data-pw-theme="dark"] .pw-entity-option:hover,
html[data-pw-theme="dark"] .pw-entity-option:has(input:checked){background:#1d1e22}
html[data-pw-theme="dark"] .pw-entity-favorite,
html[data-pw-theme="dark"] [data-picker-favorite]{color:#f3d795}
html[data-pw-theme="dark"] .pw-entity-panel-footer>button{border:1px solid #3c689f;background:#1d1e22;color:var(--ink)}
html[data-pw-theme="dark"] .pw-entity-favorites-filter{color:var(--ink)}
html[data-pw-theme="dark"] .pw-entity-favorites-filter>span{color:#f3d795}
/* Existing fixed colours: calendar-search.css */
html[data-pw-theme="dark"] .pw-calendar-search-panel{border-bottom:1px solid #3f689d;background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-search-line label{color:#aec4da}
html[data-pw-theme="dark"] .pw-search-result-group h3{color:#aec4da}
html[data-pw-theme="dark"] .pw-day-column[data-cell-user="unassigned:"]{background-color:#1d1e22}
html[data-pw-theme="dark"] .pw-staff[data-cell-user="unassigned:"]{background:#1d1e22}
html[data-pw-theme="dark"] .pw-assignment-scope,
html[data-pw-theme="dark"] .pw-assignment-events{border:1px solid #42699a}
html[data-pw-theme="dark"] .pw-assignment-events small{color:#bcc6d2}
/* Existing fixed colours: offers.css */
html[data-pw-theme="dark"] .pw-offer-card{border-top:1px solid #495f5c}
html[data-pw-theme="dark"] .pw-offer-card small,
html[data-pw-theme="dark"] .pw-offer-library small{color:#c2cccb}
html[data-pw-theme="dark"] .pw-offer-library{border-top:1px solid #495f5c}
html[data-pw-theme="dark"] .pw-offer-library article{border-bottom:1px solid #48615d}
html[data-pw-theme="dark"] .pw-offer-line{border-top:1px solid #495f5c}
html[data-pw-theme="dark"] .pw-offer-totals{background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-attachments{border:1px solid #495f5c}
html[data-pw-theme="dark"] .pw-offer-document{background:#1d1e22;color:#abddd8}
html[data-pw-theme="dark"] .pw-offer-document header small{color:#c1cdcb}
html[data-pw-theme="dark"] .pw-offer-document th,
html[data-pw-theme="dark"] .pw-offer-document td{border-bottom:1px solid #476158}
html[data-pw-theme="dark"] .pw-offer-conditions{border-top:1px solid #495f5c}
@media screen and (max-width:600px){
html[data-pw-theme="dark"] .pw-offer-document tbody tr{border:1px solid #476158;background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-document tbody td:first-child{border-bottom:1px solid #476158}
html[data-pw-theme="dark"] .pw-offer-document tbody td::before{color:#c2cccb}
}
html[data-pw-theme="dark"] .pw-offer-library{background:#1d1e22}
html[data-pw-theme="dark"] .pw-edit-presence{background:#1d1e22;border:1px solid #9f823c}
html[data-pw-theme="dark"] .pw-edit-presence.own{background:#1d1e22;border-color:#54886b}
html[data-pw-theme="dark"] .pw-presence-initials{color:#ffffff}
html[data-pw-theme="dark"] .pw-edit-presence>small{color:#e6d1a2}
html[data-pw-theme="dark"] .pw-edit-presence.own>small{color:#acdcc7}
html[data-pw-theme="dark"] .pw-offer-contact{background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-preview{background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-send-status{background:#1d1e22;border:1px solid #9f853c}
html[data-pw-theme="dark"] .pw-offer-document .pw-offer-optional{color:#c2cccb;background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-document footer{border-top:1px solid #495f5c}
html[data-pw-theme="dark"] .pw-offer-document h1{color:var(--offer-accent,#a6c8e3)}
html[data-pw-theme="dark"] .pw-offer-document{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-offer-document header small{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-offer-document h1{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-offer-document h2{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-offer-recipient{background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-meta dt{color:#c7c7c7}
html[data-pw-theme="dark"] .pw-offer-job{background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-document th,
html[data-pw-theme="dark"] .pw-offer-document td{border:1px solid #545454}
html[data-pw-theme="dark"] .pw-offer-document th{background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-document .pw-offer-optional{color:#c7c7c7;background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-notes{background:#1d1e22}
html[data-pw-theme="dark"] .pw-offer-document .pw-offer-total-row{border-top:1px solid #545454}
html[data-pw-theme="dark"] .pw-offer-signatures>div{border-top:1px solid #777777}
html[data-pw-theme="dark"] .pw-offer-document footer{border-top:1px solid #545454;color:#c7c7c7}
/* Existing fixed colours: booklet.css */
html[data-pw-theme="dark"] .pw-booklet-preview{border:1px solid var(--line,#495f5c);background:#1d1e22}
/* Existing fixed colours: navigation-history.css */
html[data-pw-theme="dark"] .pw-task-questions article{border-bottom:1px solid #486994}
html[data-pw-theme="dark"] .pw-task-questions small{color:#bdc6d0}
html[data-pw-theme="dark"] .pw-task-questions .pw-question-answer{background:#1d1e22}
/* Existing fixed colours: contact-survey.css */
html[data-pw-theme="dark"] .pw-survey-address{background:var(--surface, #1d1e22)}
html[data-pw-theme="dark"] .pw-survey-address small{color:var(--muted, #bfc6cf)}
html[data-pw-theme="dark"] .pw-survey-position{border:1px solid var(--line, #557386)}
html[data-pw-theme="dark"] .pw-survey-position-form{border:1px solid var(--line, #557386)}
html[data-pw-theme="dark"] .pw-survey-import-list .biz-check{border:1px solid var(--line, #557386)}
/* Existing fixed colours: responsibility-workflow.css */
html[data-pw-theme="dark"] .pw-responsibility{color:var(--ink,#a6c2e3)}
html[data-pw-theme="dark"] .pw-responsibility-counts>div{background:#1d1e22}
html[data-pw-theme="dark"] .pw-responsibility-entries{border:1px solid var(--line,#4e6e8d)}
html[data-pw-theme="dark"] .pw-responsibility-entries li{border-top:1px solid var(--line,#4e6e8d)}
html[data-pw-theme="dark"] .pw-responsibility-entries small,
html[data-pw-theme="dark"] .pw-responsibility-history small{color:var(--muted,#bec6cf)}
html[data-pw-theme="dark"] .pw-responsibility label.pw-responsibility-confirm{background:#1d1e22}
html[data-pw-theme="dark"] .pw-responsibility-history li{border-bottom:1px solid var(--line,#4e6e8d)}
html[data-pw-theme="dark"] .pw-notifications article.is-read{border-left-color:#516d8a}
html[data-pw-theme="dark"] .pw-notification-read-status{color:var(--muted,#bec6cf)}
/* Existing fixed colours: archive.css */
html[data-pw-theme="dark"] .pw-archive header p{color:var(--muted,#bec7d0)}
html[data-pw-theme="dark"] .pw-archive-filters{border:1px solid #50708c;background:#1d1e22}
html[data-pw-theme="dark"] .pw-archive-table{border:1px solid #50708c}
html[data-pw-theme="dark"] .pw-archive th,
html[data-pw-theme="dark"] .pw-archive td{border-bottom:1px solid #4e6e8d}
html[data-pw-theme="dark"] .pw-archive td small{color:#bec7d0}
html[data-pw-theme="dark"] .pw-archive th{background:#1d1e22}
html[data-pw-theme="dark"] .pw-archive-preview{border:1px solid #50708c;background:#1d1e22}
html[data-pw-theme="dark"] .pw-archive-paths{border:1px solid #50708c;background:#1d1e22}
html[data-pw-theme="dark"] .pw-archive-paths small{color:#bec7d0}
/* Existing fixed colours: calendar-documents.css */
html[data-pw-theme="dark"] .pw-calendar-documents{border-top:1px solid #445864}
html[data-pw-theme="dark"] .pw-calendar-document-list li,
html[data-pw-theme="dark"] .pw-calendar-document-queue li{background:#1d1e22}
html[data-pw-theme="dark"] .pw-calendar-document-drop{border:1px dashed #455863}
html[data-pw-theme="dark"] .pw-calendar-document-status{color:#bcccd2}
}

/* Shared surfaces/controls and data-coloured appointments use semantic palette tokens. */
@media screen{
html[data-pw-theme="dark"],html[data-pw-theme="dark"] body{background:#0f1115;color:var(--ink)}
html[data-pw-theme="dark"] :is(input,select,textarea){background:var(--pw-theme-field);color:var(--ink);border-color:var(--line);accent-color:#7db5ff}
html[data-pw-theme="dark"] :is(input,textarea)::placeholder{color:#9eadc2;opacity:1}
html[data-pw-theme="dark"] :is(.primary,button.primary){background:#246bbd;color:#fff}
html[data-pw-theme="dark"] :is(.soft,button.soft){background:#272a31;color:#d6e6fc;border-color:var(--line)}
html[data-pw-theme="dark"] :is(.card,.pw-calendar-card,.pw-dialog,.pw-entity-panel,.pw-command-panel,.pw-calendar-date-panel,.pw-calendar-search-panel){background:var(--card);color:var(--ink);border-color:var(--line)}
html[data-pw-theme="dark"] .pw-dialog footer{background:#17181d}
html[data-pw-theme="dark"] :is(.pw-calendar-date-panel,.pw-entity-panel,.pw-command-panel){box-shadow:0 12px 36px #0007}
html[data-pw-theme="dark"] :is(.pw-command-item,.pw-calendar-pin,.pw-inline-choice,.pw-inline-selection-more>summary){background:#282b32;color:var(--ink);border-color:var(--line)}
html[data-pw-theme="dark"] :is(.pw-command-pin,.pw-pin-remove,.pw-entity-chip>button){color:var(--ink)}
html[data-pw-theme="dark"] .pw-command-pin.is-pinned{color:#ffd45d}
html[data-pw-theme="dark"] .pw-date-mode-tabs [aria-selected="true"]{background:#284971;color:#fff}
html[data-pw-theme="dark"] .pw-calendar-date-grid button{background:#292b31;color:#f0f1f3}
html[data-pw-theme="dark"] .pw-calendar-date-grid button.outside{background:#1d1e22;color:#a7b7ce}
html[data-pw-theme="dark"] .pw-calendar-date-grid button.selected{background:#246bbd;color:#fff}
html[data-pw-theme="dark"] :is(.pw-day-head,.pw-staff,.pw-period-head,.pw-period-user,.pw-calendar-fit-dates,.pw-calendar-fit-dates button){background:#24262c;color:var(--ink);border-color:var(--line)}
html[data-pw-theme="dark"] :is(.pw-hours,.pw-time-label){background:#181a1f;color:#b7bac3}
html[data-pw-theme="dark"] [data-calendar-axis="employee"] .pw-day-grid.pw-uniform-calendar .pw-day-column{background-color:#1b1d22;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,#292c33 29px,#292c33 30px,transparent 30px,transparent 59px,#42454d 59px,#42454d 60px)}
html[data-pw-theme="dark"] .pw-day-column[data-cell-user="unassigned:"]{background-color:#232830}
html[data-pw-theme="dark"] [data-cell-date] .pw-event:not(.pw-absence){background:color-mix(in srgb,var(--pw-color,#438de0),#1b1d22 77%);border-color:color-mix(in srgb,var(--pw-color,#438de0),#1b1d22 40%);border-left-color:var(--pw-color,#438de0);color:color-mix(in srgb,var(--pw-color,#438de0),white 68%)}
html[data-pw-theme="dark"] .pw-event.pw-absence{background:repeating-linear-gradient(135deg,#2b2e36,#2b2e36 7px,#24272f 7px,#24272f 14px);color:#c2ccdb;border-color:#62718a;border-left-color:#93a2b8}
html[data-pw-theme="dark"] .pw-event-resource{background:#ffffff13;color:inherit}
html[data-pw-theme="dark"] .pw-resource-fixed-tag{background:#47391c;color:#ffe1a1;border-color:#8d7233}
html[data-pw-theme="dark"] :is(.pw-error,.pw-date-error,.biz-priority-urgent){color:#ff9aaa}
html[data-pw-theme="dark"] .sidebar nav button.active{color:#17191e}
html[data-pw-theme="dark"] .pw-login{background:#17191e}
html[data-pw-theme="dark"] .pw-login-card .brand{color:#f0f1f3}
html[data-pw-theme="dark"] [data-resource-allocation-confirmations]{border-color:var(--line)}
html[data-pw-theme="dark"] [data-resource-allocation-confirmations] label{border-bottom-color:var(--line)!important}
html[data-pw-theme="dark"] a{color:#9cc7ff}
html[data-pw-theme="dark"] .pw-dialog::backdrop{background:#020915ba}
}

/* Planning colours identify commissions and statuses in either appearance.
   Keep their original light, readable cards against the dark calendar surface. */
@media screen{
html[data-pw-theme="dark"] .pw-event{background:#e9f3ff;color:#154d8d;border:1px solid #bad7f8;border-left:4px solid #2c75c9}
html[data-pw-theme="dark"] .pw-event.yellow{background:#fff5cf;border-color:#ecd67f;border-left-color:#d3a414;color:#795901}
html[data-pw-theme="dark"] .pw-event.purple{background:#f0ebfd;border-color:#d8cef4;border-left-color:#8064c5;color:#614299}
html[data-pw-theme="dark"] .pw-event.teal{background:#e6f5f2;border-color:#b9e2d9;border-left-color:#2a9b89;color:#1b6e61}
html[data-pw-theme="dark"] .pw-event.red{background:#faedf0;border-color:#edc6cf;border-left-color:#cd637b;color:#94465a}
html[data-pw-theme="dark"] [data-cell-date] .pw-event:not(.pw-absence){background:color-mix(in srgb,var(--pw-color,#2c75c9),white 90%);border-color:color-mix(in srgb,var(--pw-color,#2c75c9),white 65%);border-left-color:var(--pw-color,#2c75c9);color:color-mix(in srgb,var(--pw-color,#2c75c9),black 24%)}
html[data-pw-theme="dark"] .month .pw-event{border-left-width:3px}
html[data-pw-theme="dark"] .pw-event.pw-vacation{background:#e8f3f1!important;border-color:#a6cfc7!important;border-left-color:#258879!important;color:#176456!important}
html[data-pw-theme="dark"] .pw-event.pw-absence{background:repeating-linear-gradient(135deg,#f3f5f7,#f3f5f7 7px,#e9edf1 7px,#e9edf1 14px);border-color:#bec7d2;border-left-color:#8a96a6;color:#617082}
html[data-pw-theme="dark"] .pw-event-resource{background:#ffffff8c;color:inherit}
html[data-pw-theme="dark"] .pw-commission-task{border:1px solid color-mix(in srgb,var(--pw-commission-color),white 57%);border-left:4px solid var(--pw-commission-color);background:color-mix(in srgb,var(--pw-commission-color),white 90%);color:color-mix(in srgb,var(--pw-commission-color),black 25%)}
html[data-pw-theme="dark"] .pw-commission-task.done{background:#f1f6f4}
html[data-pw-theme="dark"] .pw-calendar-task-label{background:color-mix(in srgb,var(--pw-commission-color),white 95%);color:#082a58}
html[data-pw-theme="dark"] .pw-calendar-task-label :is(span,small){color:#6d7d91}
html[data-pw-theme="dark"] .pw-calendar-task-label.done{border-left-color:#98a4b4;background:#edf0f4;color:#68778b}
html[data-pw-theme="dark"] .status.planned{background:#e7f1ff;color:#1858a8}
html[data-pw-theme="dark"] .status.working{background:#e6f6ee;color:#147451}
html[data-pw-theme="dark"] .status.clarify{background:#fff2c7;color:#896100}
html[data-pw-theme="dark"] .pw-material-not_ready{background:#fff1df;color:#855213}
html[data-pw-theme="dark"] .pw-material-ready{background:#e7f6ed;color:#216941}
html[data-pw-theme="dark"] .pw-material-done{background:#edf1f8;color:#425773}
html[data-pw-theme="dark"] :is(.pw-material-none,.pw-material-unknown){background:#f1f4f8;color:#61738a}
html[data-pw-theme="dark"] :is(.pw-warehouse-done,.pw-material-warehouse-done){color:#17683a;background:#dbf5e3;border:1px solid #79c794}
}

html[data-pw-theme="dark"] .pw-command-link{border:1px solid var(--border,#556c86);background:var(--card,#1d1e22);color:var(--ink)}
html[data-pw-theme="dark"] .pw-command-menu>summary:hover,html[data-pw-theme="dark"] .pw-command-link:hover{border-color:#3c719f;background:var(--soft)}
