/* Dark palette generated from the shared component styles; see work/theme/build_theme.py. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:10px;border:1px solid #ffffff50;border-radius:8px;background:#ffffff12;color:white;cursor:pointer}
.theme-toggle:hover{background:#ffffff26}.theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.theme-toggle:focus-visible{outline:3px solid #eac67f;outline-offset:3px}
html{color-scheme:light}html[data-theme="dark"]{color-scheme:dark;--text:#e5ede7;--text-muted:#b9c8bd;--border:#3c5144;--cream:#1b2821;--cream-dark:#223229;--navy:#a4d8b4;--navy-light:#bee8ca;--navy-dark:#e5ede7;--coffee:#e5ede7;--coffee-light:#b9c8bd;--pos:#a4d8b4;--neg:#ffb2a6;--warn:#f1cd8b;--gold:#eac67f;--red:#ffb2a6;--theme-primary-bg:#28563f;--theme-primary-hover:#356d50}
html[data-theme="dark"] body{background:#101a15;color:var(--text)}
html[data-theme="dark"] .access-ui{--au-ink:#e5ede7;--au-muted:#b9c8bd;--au-line:#3c5144;--au-green:#a4d8b4;--au-soft:#223229}

/* styles.css */
html[data-theme="dark"] body{background:#19251f}
html[data-theme="dark"] #loading{background:#153326;color:#e5ede7}
html[data-theme="dark"] #loading .loading-logo{background:#19251f;box-shadow:0 8px 28px #00000047}
html[data-theme="dark"] #loading .detail{color:#b9c8bd}
html[data-theme="dark"] #loading .err{background:#192a2133;border:1px solid #665a4980}
html[data-theme="dark"] .login-wrap{background:#153326}
html[data-theme="dark"] .login-card{background:#19251f;box-shadow:0 20px 60px #0000004c}
html[data-theme="dark"] .login-card .brand-logo{box-shadow:0 2px 8px #00000026}
html[data-theme="dark"] .login-card h1{color:#e5ede7}
html[data-theme="dark"] .login-card .err{background:#361c1c;border:1px solid #665a49}
html[data-theme="dark"] .login-forgot:hover{color:#e5ede7}
html[data-theme="dark"] .login-card .btn-primary{background:#153326}
html[data-theme="dark"] .login-card .btn-primary:hover{background:#122c21}
html[data-theme="dark"] .field input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea{background:#19251f}
html[data-theme="dark"] .field input:not([type="checkbox"]):not([type="radio"]):focus,html[data-theme="dark"] .field select:focus,html[data-theme="dark"] .field textarea:focus{outline:2px solid #9ac7f140}
html[data-theme="dark"] .checklist{background:#19251f}
html[data-theme="dark"] .btn-primary{background:var(--theme-primary-bg);color:#e5ede7}
html[data-theme="dark"] .btn-primary:hover{background:var(--theme-primary-hover)}
html[data-theme="dark"] .btn-secondary{background:#19251f}
html[data-theme="dark"] .btn-danger{background:#19251f;border-color:#665a49}
html[data-theme="dark"] .btn-danger:hover{background:#361c1c}
html[data-theme="dark"] .btn-call{background:#1f5c35;color:#e5ede7;border-color:#496b57}
html[data-theme="dark"] .btn-call:hover{background:#1f5c34}
html[data-theme="dark"] header{background:#153326;color:#e5ede7;box-shadow:0 2px 8px #0000001a}
html[data-theme="dark"] .brand-logo{background:#19251f;box-shadow:0 2px 8px #00000038}
html[data-theme="dark"] .subtitle{color:#b9c8bd}
html[data-theme="dark"] .header-user{color:#e5ede7}
html[data-theme="dark"] .header-user b{color:#e5ede7}
html[data-theme="dark"] .header-settings{border:1px solid #3c514447;color:#e5ede7}
html[data-theme="dark"] .header-settings:focus-visible{outline:3px solid #f1cd8bbf}
html[data-theme="dark"] .header-btn{color:#e5ede7;border:1px solid #3c514440}
html[data-theme="dark"] nav.tabs{background:#19251f;box-shadow:0 1px 3px #0000000d}
html[data-theme="dark"] .filter-bar{background:#19251ff7;box-shadow:0 2px 8px #0000000d}
html[data-theme="dark"] .filter-select{background:#19251f}
html[data-theme="dark"] .filter-select:focus{outline:2px solid #9ac7f140}
html[data-theme="dark"] .card{background:#19251f;box-shadow:0 1px 3px #0000000d}
html[data-theme="dark"] table.data th,html[data-theme="dark"] table.data td{border-bottom:1px solid #3c5144}
html[data-theme="dark"] table.data tr:hover td{background:#19251f}
html[data-theme="dark"] .badge{border-radius:10px;background:#edf1ea;color:#2d2925}
html[data-theme="dark"] .badge-pos{background:#dcfce7;color:#166534}
html[data-theme="dark"] .badge-warn{background:#fef3c7;color:#92400e}
html[data-theme="dark"] .badge-neg{background:#fee2e2;color:#991b1b}
html[data-theme="dark"] .badge-info{background:#dbeafe;color:#1e40af}
html[data-theme="dark"] .badge-media{background:#ffedd5;color:#9a3412}
html[data-theme="dark"] .badge-baja{background:#fef9c3;color:#854d0e}
html[data-theme="dark"] .resumen-click:hover{box-shadow:0 4px 14px #00000014}
html[data-theme="dark"] .resumen-click.resumen-seleccionado{background:#19251f;outline:2px solid #b9c8bd;box-shadow:0 3px 10px #00000014}
html[data-theme="dark"] .resumen-click.resumen-seleccionado .resumen-label{color:#e5ede7}
html[data-theme="dark"] .badge-neutral{background:#edf1ea;color:#2d2925}
html[data-theme="dark"] .aging-pos{color:#a4d8b4}
html[data-theme="dark"] .aging-warn{color:#f1cd8b}
html[data-theme="dark"] .aging-neg{color:#ffb2a6}
html[data-theme="dark"] .modal-bg{background:#22322980}
html[data-theme="dark"] .modal{background:#19251f;box-shadow:0 20px 60px #0000004c}
html[data-theme="dark"] .modal-head{background:var(--theme-primary-bg);color:#e5ede7}
html[data-theme="dark"] .modal-close{color:#e5ede7}
html[data-theme="dark"] .toast{box-shadow:0 4px 16px #00000033;color:#e5ede7}
html[data-theme="dark"] td.celda-editable:hover{background:#362d1c;box-shadow:inset 0 0 0 1px #00000047}
html[data-theme="dark"] .inline-edit-control{background:#19251f}
html[data-theme="dark"] .inline-edit-control:focus{box-shadow:0 0 0 3px #00000024}
html[data-theme="dark"] .checkbox-control{background:#19251f}
html[data-theme="dark"] .checkbox-control input{accent-color:#e5ede7}
html[data-theme="dark"] .admin-permissions-wrap{border:1px solid #3c5144}
html[data-theme="dark"] table.admin-permissions-table th,html[data-theme="dark"] table.admin-permissions-table td{border-right:1px solid #3c5144;border-bottom:1px solid #3c5144}
html[data-theme="dark"] table.admin-permissions-table thead th{background:#19251f;color:#e5ede7}
html[data-theme="dark"] table.admin-permissions-table thead th:first-child,html[data-theme="dark"] table.admin-permissions-table tbody td:first-child{background:#362f1c}
html[data-theme="dark"] table.admin-permissions-table thead th:first-child{background:#19251f}
html[data-theme="dark"] .admin-permission-cell input{accent-color:#e5ede7}
html[data-theme="dark"] .admin-module-order li{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .admin-order-handle{color:#b9c8bd}
html[data-theme="dark"] .admin-order-label{color:#e5ede7}
html[data-theme="dark"] .admin-user-count{border:1px solid #9dbbad;border-radius:999px;background:#edf5f0;color:#18563b}
html[data-theme="dark"] .admin-user-count:hover{background:#dcece3;border-color:#5f9878}
html[data-theme="dark"] .admin-user-count:focus-visible{outline:3px solid rgba(211,147,47,.55);outline-offset:2px}
html[data-theme="dark"] .admin-role-user{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .admin-role-avatar{background:#19251f;color:#a4d8b4}
html[data-theme="dark"] .admin-branch-select summary{background:#19251f}
html[data-theme="dark"] .admin-branch-select summary::after{color:#e5ede7}
html[data-theme="dark"] .admin-branch-select[open] summary{outline:2px solid #9ac7f140}
html[data-theme="dark"] .admin-branch-options{border:1px solid #3c5144;background:#19251f;box-shadow:0 8px 24px #00000024}
html[data-theme="dark"] .field .admin-branch-option:hover{background:#19251f}
html[data-theme="dark"] .field .admin-branch-option input{accent-color:#e5ede7}
html[data-theme="dark"] .user-view-banner{border:1px solid #665a49;background:#362e1c;color:#f1cd8b;box-shadow:0 10px 32px #00000047}
html[data-theme="dark"] .user-view-banner span{color:#f1cd8b}
html[data-theme="dark"] .user-view-banner .btn{background:#342911;color:#e5ede7;border-color:#665a49}
html[data-theme="dark"] .contacto-card{background:#19251f}
html[data-theme="dark"] .busqueda-inline{color:#b9c8bd}
html[data-theme="dark"] .busqueda-input{background:#19251f}
html[data-theme="dark"] .busqueda-input:focus{border-color:#3c5144;box-shadow:0 0 0 3px #0000001f}
html[data-theme="dark"] .upload-progress{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .upload-progress-head{color:#e5ede7}
html[data-theme="dark"] .upload-progress-track{background:#19251f}
html[data-theme="dark"] .upload-progress-fill{background:#153326}
html[data-theme="dark"] .upload-progress.error{border-color:#665a49;background:#361c1c}
html[data-theme="dark"] .upload-progress.error .upload-progress-head{color:#ffb2a6}
html[data-theme="dark"] .upload-progress.error .upload-progress-fill{background:#5c1f1f}
html[data-theme="dark"] .log-photo-card{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .log-photo-preview{background:#19251f}
html[data-theme="dark"] .log-photo-placeholder{color:#b9c8bd}
html[data-theme="dark"] .log-photo-remove{background:#361e1c;color:#ffb2a6;border:1px solid #665a49}
html[data-theme="dark"] .log-photo-remove:hover{background:#361f1c;color:#ffb2a6}
html[data-theme="dark"] .log-photo-remove:focus-visible{outline:3px solid #a4d8b4}
html[data-theme="dark"] .log-photo-card.pending-removal{border:2px dashed #665a49}
html[data-theme="dark"] .log-photo-card.pending-removal .log-photo-remove{background:#19251f;color:#a4d8b4;border-color:#3c5144}
/* design.css */
html[data-theme="dark"] body{background:#19251f}
html[data-theme="dark"] :focus-visible{outline:3px solid #b9c8bd}
html[data-theme="dark"] .subtitle{color:#e5ede7}
html[data-theme="dark"] .tab-btn.active{background:#19251f;border-bottom-color:#3c5144;color:#e5ede7}
html[data-theme="dark"] .busqueda-input,html[data-theme="dark"] #doc-busqueda{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .btn-secondary{border-color:#3c5144;color:#e5ede7;background:#19251f}
html[data-theme="dark"] .btn-primary{background:#153326;color:#e5ede7}
html[data-theme="dark"] .btn-danger{border-color:#3c5144;color:#ffb2a6}
html[data-theme="dark"] .btn:hover{box-shadow:0 1px 3px #00000012}
html[data-theme="dark"] .filter-bar{background:#19251f}
html[data-theme="dark"] .filter-select{color:#e5ede7;border-color:#3c5144}
html[data-theme="dark"] .extra-filters input{background:#19251f}
html[data-theme="dark"] .filter-chip{border:1px solid #d2ded1;background:#e9efe5;color:#355b40;border-radius:20px}
html[data-theme="dark"] .column-picker[open]>summary{background:#19251f}
html[data-theme="dark"] .column-options{background:#19251f;box-shadow:0 8px 30px #00000025}
html[data-theme="dark"] .column-options input{accent-color:#e5ede7}
html[data-theme="dark"] .subtab-btn.active{background:#19251f;border-color:#3c5144}
html[data-theme="dark"] .card{box-shadow:0 1px 2px #00000010}
html[data-theme="dark"] table.data th,html[data-theme="dark"] table.data td{border-bottom:1px solid #3c5144}
html[data-theme="dark"] table.data th{color:#e5ede7;background:#19251f}
html[data-theme="dark"] table.data td{background:#19251f}
html[data-theme="dark"] table.data tr:hover td{background:#19251f}
html[data-theme="dark"] table.record-table .identity-column{background:#19251f;border-right:1px solid #3c5144}
html[data-theme="dark"] table.record-table thead .identity-column{background:#19251f}
html[data-theme="dark"] .column-filter-trigger{color:#b9c8bd}
html[data-theme="dark"] .column-filter-trigger:hover,html[data-theme="dark"] .column-filter-trigger:focus-visible{background:#19251f;border-color:#3c5144;color:#e5ede7}
html[data-theme="dark"] .column-filter-trigger.active{background:#19251f;border-color:#3c5144;color:#a4d8b4}
html[data-theme="dark"] .column-filter-popover{background:#19251f;color:#e5ede7;border:1px solid #3c5144;box-shadow:0 14px 36px #0000003d}
html[data-theme="dark"] .column-filter-title{color:#e5ede7}
html[data-theme="dark"] .column-filter-search{border:1px solid #3c5144;background:#19251f;color:#e5ede7}
html[data-theme="dark"] .column-filter-all{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .column-filter-all input,html[data-theme="dark"] .column-filter-option input{accent-color:#e5ede7}
html[data-theme="dark"] .column-filter-option:hover{background:#19251f}
html[data-theme="dark"] .column-filter-actions{border-top:1px solid #3c5144}
html[data-theme="dark"] .cell-secondary{color:#b9c8bd}
html[data-theme="dark"] .badge,html[data-theme="dark"] #tabla-Clientes .badge,html[data-theme="dark"] #tabla-Proveedores .badge{border-radius:5px}
html[data-theme="dark"] .badge-neutral{background:#eef0e9;color:#546344}
html[data-theme="dark"] .celda-editable:focus{outline:2px solid #b9c8bd}
html[data-theme="dark"] .record-table td input,html[data-theme="dark"] .record-table td select,html[data-theme="dark"] .record-table td textarea{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .resumen-click.resumen-seleccionado{background:#19251f;outline:1px solid #b9c8bd}
html[data-theme="dark"] .annual-summary{background:#19251f}
html[data-theme="dark"] .empty-state strong{color:#e5ede7}
html[data-theme="dark"] .attachment img{border:1px solid #3c5144}
html[data-theme="dark"] .attachment-unavailable{color:#e5ede7;background:#36291c}
html[data-theme="dark"] .link-archivo{color:#e5ede7}
html[data-theme="dark"] .modal-head{background:#153326}
html[data-theme="dark"] .modal-foot{background:#19251f}
html[data-theme="dark"] .form-section legend{color:#e5ede7}
html[data-theme="dark"] .field label{color:#e5ede7}
html[data-theme="dark"] .form-section .contactos-editor{background:#19251f}
html[data-theme="dark"] .upload-picker{border:1px dashed #3c5144;background:#19251f;color:#e5ede7!important}
html[data-theme="dark"] .upload-picker:has(+input:focus-visible){outline:3px solid #b9c8bd}
html[data-theme="dark"] .record-drawer{background:#19251f;box-shadow:-10px 0 40px #00000020}
html[data-theme="dark"] .drawer-head{background:#19251f}
html[data-theme="dark"] .drawer-foot{background:#19251f}
html[data-theme="dark"] .detail-field dt{color:#e5ede7}
@media(max-width:640px){
html[data-theme="dark"] .documents-table tr{background:#19251f}
}
html[data-theme="dark"] .inicio-card{color:#e5ede7!important;background:#19251f!important;border:1px solid #3c5144!important}
html[data-theme="dark"] .inicio-card.zero-count{background:#19251f!important;color:#b9c8bd!important}
html[data-theme="dark"] .calendar-view{background:#19251f}
html[data-theme="dark"] .calendar-weekday{background:#19251f}
html[data-theme="dark"] .calendar-blank{background:#19251f}
html[data-theme="dark"] .calendar-day.today{background:#2c331f}
html[data-theme="dark"] .calendar-day.today>span{background:#153326;color:#e5ede7}
html[data-theme="dark"] .calendar-event{border-left:3px solid #3c5144;background:#19251f}
html[data-theme="dark"] .calendar-event small{color:#b9c8bd}
html[data-theme="dark"] .document-upload-hint{color:#b9c8bd}
html[data-theme="dark"] .permission-module h4{color:#e5ede7}
html[data-theme="dark"] .permission-module input{accent-color:#e5ede7}
@media(max-width:640px){
html[data-theme="dark"] .extra-filters{background:#19251f}
html[data-theme="dark"] .record-table tr{background:#19251f}
html[data-theme="dark"] .record-table td.mobile-priority:not(.identity-column)::before{color:#b9c8bd}
html[data-theme="dark"] .record-table td.actions{border-top:1px solid #3c5144!important}
html[data-theme="dark"] .drawer-backdrop{background:#132a1e80}
}
html[data-theme="dark"] .doc-sidebar{background:#19251f}
html[data-theme="dark"] .doc-sidebar-count{background:#19251f}
html[data-theme="dark"] .doc-sidebar li>div>ul{border-left:1px solid #3c5144}
html[data-theme="dark"] .doc-folder-link{color:#e5ede7}
html[data-theme="dark"] .doc-folder-link:hover{background:#19251f}
html[data-theme="dark"] .doc-folder-link[aria-current]{background:#19251f;color:#e5ede7}
html[data-theme="dark"] .doc-tree-toggle{color:#b9c8bd}
html[data-theme="dark"] .doc-breadcrumbs li>span{color:#b9c8bd}
html[data-theme="dark"] .doc-breadcrumbs button{color:#e5ede7}
html[data-theme="dark"] .doc-breadcrumbs button[aria-current]{color:#e5ede7}
html[data-theme="dark"] .doc-search-tools{background:#19251f}
html[data-theme="dark"] .doc-filter>span{color:#e5ede7}
html[data-theme="dark"] .doc-load-error{border:1px solid #3c5144;background:#36241c;color:#ffb2a6}
html[data-theme="dark"] .doc-table-wrap{background:#19251f}
html[data-theme="dark"] .doc-files-table th{color:#e5ede7;background:#19251f}
html[data-theme="dark"] .doc-files-table td{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .doc-files-table tr:hover td{background:#19251f}
html[data-theme="dark"] .doc-files-table .doc-selected td{background:#19251f}
html[data-theme="dark"] .doc-select-cell input{accent-color:#e5ede7}
html[data-theme="dark"] .doc-file-icon{background:#19251f}
html[data-theme="dark"] .doc-name{color:#e5ede7}
html[data-theme="dark"] .doc-external{color:#b9c8bd}
html[data-theme="dark"] .doc-description-short,html[data-theme="dark"] .doc-description{color:#b9c8bd}
html[data-theme="dark"] .doc-description summary span{color:#e5ede7}
html[data-theme="dark"] .doc-location-link{color:#e5ede7}
html[data-theme="dark"] .doc-action-menu>div{background:#19251f;box-shadow:0 8px 24px #00000020}
html[data-theme="dark"] .doc-action-menu button{color:#e5ede7}
html[data-theme="dark"] .doc-action-menu button:hover{background:#19251f}
html[data-theme="dark"] .doc-action-menu button.doc-delete{color:#ffb2a6}
html[data-theme="dark"] .doc-empty strong{color:#e5ede7}
@media(max-width:760px){
html[data-theme="dark"] .doc-files-table tr{background:#19251f}
html[data-theme="dark"] .doc-files-table .doc-selected{background:#19251f}
}
html[data-theme="dark"] .column-defaults{border-top:1px solid var(--border,#3c5144)}
html[data-theme="dark"] .column-default-card{border:1px solid var(--border,#3c5144);background:#19251f}
html[data-theme="dark"] .column-default-card>summary{color:var(--navy,#e5ede7)}
html[data-theme="dark"] .column-default-card>summary>span{color:#b9c8bd}
html[data-theme="dark"] .saved-attachment-row{border:1px solid var(--border,#3c5144)}
html[data-theme="dark"] .saved-attachment-row .attachment-remove{color:var(--danger,#ffb2a6)}
html[data-theme="dark"] .saved-attachment-row.pending-removal{background:#192a2112}
html[data-theme="dark"] .customer-access-section h3,html[data-theme="dark"] .customer-web-orders h3{color:#e5ede7}
html[data-theme="dark"] .customer-access-form label,html[data-theme="dark"] .web-order-form label{color:#e5ede7}
html[data-theme="dark"] .customer-access-form input,html[data-theme="dark"] .web-order-form :is(input,select,textarea){background:var(--#19251f,#19251f);color:var(--ink,#e5ede7)}
html[data-theme="dark"] .customer-access-form [role=status],html[data-theme="dark"] .web-order-actions [role=status]{color:#e5ede7}
html[data-theme="dark"] .web-order-card{background:var(--#19251f,#19251f)}
html[data-theme="dark"] .web-order-card h4{color:#e5ede7}
html[data-theme="dark"] .web-order-facts b{color:#e5ede7}
html[data-theme="dark"] .web-order-details summary{color:#a4d8b4}
html[data-theme="dark"] .web-order-detail-grid dt{color:#e5ede7}
html[data-theme="dark"] .customer-channel-toggle button[aria-pressed="true"]{color:#e5ede7;background:var(--green, #153326);border-color:var(--green, #3c5144)}
html[data-theme="dark"] .customer-awaiting-access td:first-child{box-shadow:inset 4px 0 #00000050}
html[data-theme="dark"] .orders-heading p{color:#b9c8bd}
html[data-theme="dark"] .orders-filters input,html[data-theme="dark"] .orders-filters select,html[data-theme="dark"] .orders-create input,html[data-theme="dark"] .orders-create select,html[data-theme="dark"] .orders-create textarea{border:1px solid #3c5144;background:#19251f;color:#e5ede7}
html[data-theme="dark"] .orders-table th,html[data-theme="dark"] .orders-table td{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .orders-table th{color:#b9c8bd}
html[data-theme="dark"] .orders-table small{color:#b9c8bd}
html[data-theme="dark"] .orders-client{color:#a4d8b4}
html[data-theme="dark"] .orders-count{color:#b9c8bd}
html[data-theme="dark"] .orders-item{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .orders-message{color:#ffb2a6}
html[data-theme="dark"] .receipt-section{border-top:1px solid #3c5144}
html[data-theme="dark"] .receipt-card{background:#19251f;border:1px solid #3c5144}
html[data-theme="dark"] .receipt-reason textarea,html[data-theme="dark"] .receipt-total input{border:1px solid #3c5144}
html[data-theme="dark"] .receipt-total{background:#362f1c}
html[data-theme="dark"] .receipt-message{color:#f1cd8b}
html[data-theme="dark"] .receipt-tabs [aria-pressed="true"]{background:var(--primary,#223229);color:#e5ede7}
/* notifications.css */
html[data-theme="dark"] .push-device-panel{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .push-device-panel strong{color:#e5ede7}
html[data-theme="dark"] .push-device-panel p{color:#e5ede7}
html[data-theme="dark"] .push-device-panel .push-error{color:#ffb2a6}
html[data-theme="dark"] .notification-count,html[data-theme="dark"] .notification-nav-count{background:#f9cf66;color:#332812;border-radius:999px}
html[data-theme="dark"] .notification-nav-count{background:#e5f1ed;color:#18533e}
html[data-theme="dark"] .notification-bell:focus-visible,html[data-theme="dark"] .note-preview-button:focus-visible,html[data-theme="dark"] .notification-item:focus-visible{outline:3px solid #f1cd8b}
html[data-theme="dark"] .unread-filter[aria-pressed="true"]{background:#19251f!important;border-color:#496b57!important;color:#a4d8b4!important}
html[data-theme="dark"] .note-preview-meta{color:#e5ede7}
html[data-theme="dark"] .note-preview-meta time{color:#b9c8bd}
html[data-theme="dark"] .note-preview-text{color:#e5ede7}
html[data-theme="dark"] .note-open-label{color:#a4d8b4}
html[data-theme="dark"] .unread-pill{background:#fff1c9;color:#6b4406;border:1px solid #f0d18a;border-radius:999px}
html[data-theme="dark"] .unread-record-label{color:#f1cd8b}
html[data-theme="dark"] .record-unread .identity-column{box-shadow:inset 3px 0 #00000050}
html[data-theme="dark"] .notification-tabs{background:#19251f}
html[data-theme="dark"] .notification-tabs button{color:#e5ede7}
html[data-theme="dark"] .notification-tabs button[aria-pressed="true"]{background:#19251f;color:#a4d8b4;box-shadow:0 1px 4px #0000001a}
html[data-theme="dark"] .notification-help{color:#b9c8bd}
html[data-theme="dark"] .notification-items{border-top:1px solid #3c5144}
html[data-theme="dark"] .notification-row{border-bottom:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .notification-row.is-unread{background:#19251f}
html[data-theme="dark"] .notification-item{color:#e5ede7}
html[data-theme="dark"] .notification-row:hover{background:#19251f}
html[data-theme="dark"] .notification-row.is-unread:hover{background:#19251f}
html[data-theme="dark"] .notification-read-one{border:1px solid #3c5144;background:#19251f;color:#a4d8b4}
html[data-theme="dark"] .notification-read-one:hover{background:#19251f}
html[data-theme="dark"] .notification-read-one:focus-visible{outline:3px solid #f1cd8b}
html[data-theme="dark"] .notification-back{border:1px solid #3c5144;background:#19251f;color:#a4d8b4;box-shadow:0 1px 3px #00000024}
html[data-theme="dark"] .notification-back:hover{background:#19251f;border-color:#3c5144;box-shadow:0 2px 5px #00000030}
html[data-theme="dark"] .notification-back:focus-visible{outline:3px solid #f1cd8b}
html[data-theme="dark"] .notification-symbol{border:1px solid #3c5144;background:#19251f;color:#a4d8b4}
html[data-theme="dark"] .notification-item-top{color:#b9c8bd}
html[data-theme="dark"] .notification-action{color:#e5ede7}
html[data-theme="dark"] .notification-excerpt{color:#e5ede7}
html[data-theme="dark"] .notification-dot{background:#1a4d38}
html[data-theme="dark"] .notification-empty{color:#b9c8bd}
html[data-theme="dark"] .notification-empty>span{background:#19251f;color:#a4d8b4}
html[data-theme="dark"] .notification-empty h3{color:#e5ede7}
html[data-theme="dark"] .conversation-context{border-bottom:1px solid #3c5144;color:#b9c8bd}
html[data-theme="dark"] .conversation-refresh{border:1px solid #665a49;background:#362e1c;color:#f1cd8b}
html[data-theme="dark"] .conversation-message{background:#19251f;border:1px solid #3c5144}
html[data-theme="dark"] .conversation-message.own-message{background:#19251f;border-color:#3c5144}
html[data-theme="dark"] .conversation-message-head{color:#e5ede7}
html[data-theme="dark"] .comment-avatar{background:#19251f}
html[data-theme="dark"] .conversation-message-head time{color:#b9c8bd}
html[data-theme="dark"] .conversation-message p{color:#e5ede7}
html[data-theme="dark"] .conversation-empty{color:#b9c8bd}
html[data-theme="dark"] .conversation-read-status{color:#b9c8bd}
html[data-theme="dark"] .conversation-overlay .drawer-foot{background:#19251f}
html[data-theme="dark"] .conversation-composer>label{color:#e5ede7}
html[data-theme="dark"] .conversation-composer textarea{border:1px solid #3c5144;background:#19251f;color:#e5ede7}
html[data-theme="dark"] .conversation-composer textarea:focus{outline:2px solid #e5ede7}
html[data-theme="dark"] .composer-bottom>span{color:#b9c8bd}
html[data-theme="dark"] .composer-error{color:#ffb2a6}
html[data-theme="dark"] .application-notification-summary{border-left:3px solid #665a49;background:#362f1c}
@media(max-width:760px){
html[data-theme="dark"] .record-table td.conversation-cell.mobile-priority:not(.column-hidden){border-top:1px solid #3c5144}
}
html[data-theme="dark"] .activity-context{color:#e5ede7}
html[data-theme="dark"] .activity-event:not(:last-child)::before{border-left:1px solid #3c5144}
html[data-theme="dark"] .activity-event-icon{background:#19251f;color:#e5ede7}
html[data-theme="dark"] .activity-event-heading{color:#e5ede7}
html[data-theme="dark"] .activity-event-heading time{color:#b9c8bd}
html[data-theme="dark"] .activity-actor{color:#b9c8bd}
html[data-theme="dark"] .activity-changes{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .activity-changes dt{color:#b9c8bd}
html[data-theme="dark"] .activity-changes dd{color:#e5ede7}
html[data-theme="dark"] .activity-changes dd>span:first-child{color:#b9c8bd}
html[data-theme="dark"] .activity-read-status{color:#e5ede7}
html[data-theme="dark"] .record-activity-button{color:#e5ede7!important}
/* appearance.css */
html[data-theme="dark"] .branding-plan{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .branding-plan h4,html[data-theme="dark"] .branding-schedule h4{color:#e5ede7}
html[data-theme="dark"] .branding-plan input[type=date],html[data-theme="dark"] .branding-schedule input[type=date]{border:1px solid #3c5144;background:#19251f;color:#e5ede7}
html[data-theme="dark"] .branding-schedule-item{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .branding-schedule-item p{color:#b9c8bd}
html[data-theme="dark"] .branding-inventory-upload{background:#19251f;border:1px solid #3c5144}
html[data-theme="dark"] .branding-inventory-row{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .branding-inventory-row span:last-child{color:#e5ede7}
html[data-theme="dark"] .branding-retention{background:#19251f;border:1px solid #3c5144}
html[data-theme="dark"] .branding-retention input{accent-color:#e5ede7}
html[data-theme="dark"] .branding-library{border-top:1px solid #3c5144}
html[data-theme="dark"] .branding-library h4{color:#e5ede7}
html[data-theme="dark"] .branding-library-heading>span{background:#19251f;color:#e5ede7}
html[data-theme="dark"] .branding-library-card{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .branding-library-card>img,html[data-theme="dark"] .branding-library-missing{background:#19251f}
html[data-theme="dark"] .branding-library-card>p,html[data-theme="dark"] .branding-library-status{color:#b9c8bd}
html[data-theme="dark"] .branding-library-missing{color:#b9c8bd}
html[data-theme="dark"] .branding-devices{background:#19251f;border:1px solid #3c5144}
html[data-theme="dark"] .branding-device{color:#e5ede7}
html[data-theme="dark"] .branding-device[aria-pressed=true]{background:#153326;color:#e5ede7;box-shadow:0 1px 3px #00000026}
html[data-theme="dark"] .branding-device:hover:not([aria-pressed=true]){background:#19251f}
html[data-theme="dark"] .branding-device:focus-visible{outline:3px solid #b9c8bd}
html[data-theme="dark"] .branding-preview-meta{color:#e5ede7}
html[data-theme="dark"] .branding-preview-stage{background:#19251f;border:1px solid #3c5144}
html[data-theme="dark"] .branding-preview-stage>.branding-preview{box-shadow:0 2px 10px #00000026}
html[data-theme="dark"] #app-screen>header.has-brand-banner{background:#153326}
html[data-theme="dark"] #app-screen>header>.header-date{background:#19251f;color:#e5ede7;border:1px solid #3c5144;box-shadow:0 1px 4px #0000001a}
html[data-theme="dark"] .has-brand-banner .header-btn{background:#112d20ed;border-color:#3c514475;color:#e5ede7}
html[data-theme="dark"] .has-brand-banner .account-menu>summary{background:#112d20ed;border:1px solid #3c514475}
html[data-theme="dark"] .has-brand-banner .account-menu>summary:hover,html[data-theme="dark"] .has-brand-banner .account-menu>summary:focus-visible,html[data-theme="dark"] .has-brand-banner .account-menu[open]>summary{background:#112d20;color:#e5ede7}
html[data-theme="dark"] .account-menu>summary{border:1px solid #3c514435;color:#e5ede7}
html[data-theme="dark"] .account-menu .header-user b{color:#e5ede7}
html[data-theme="dark"] .account-menu .header-user span{color:#e5ede7}
html[data-theme="dark"] .account-menu-items{background:#19251f;color:#e5ede7;border:1px solid #3c5144;box-shadow:0 10px 28px #00000033}
html[data-theme="dark"] .account-menu-item{color:#e5ede7}
html[data-theme="dark"] .account-menu-item:hover{background:#19251f}
html[data-theme="dark"] .notification-bell .notification-count{border:2px solid #fff;background:#dc2626;color:#fff;border-radius:999px;box-shadow:0 1px 3px #4c101035}
html[data-theme="dark"] .branding-settings h3{color:#e5ede7}
html[data-theme="dark"] .branding-hint{color:#b9c8bd}
html[data-theme="dark"] .branding-preview{background:#153326;color:#e5ede7}
html[data-theme="dark"] .branding-settings input[type=file]::file-selector-button{border:1px solid #3c5144;background:#19251f;color:#e5ede7}
html[data-theme="dark"] .branding-status{color:#e5ede7}
html[data-theme="dark"] .branding-error{color:#ffb2a6}
html[data-theme="dark"] .branding-frame{background:#19251f}
html[data-theme="dark"] .branding-frame legend{color:#e5ede7}
html[data-theme="dark"] .branding-range label{color:#e5ede7}
html[data-theme="dark"] .branding-range output{color:#e5ede7}
html[data-theme="dark"] .branding-range input[type=range]{accent-color:#a4d8b4}
html[data-theme="dark"] .branding-range input:focus-visible{outline:3px solid #b9c8bd}
html[data-theme="dark"] .branding-range-ends{color:#b9c8bd}
html[data-theme="dark"] #nav-tabs{background:var(--navigation-bg,#19251f);border-bottom-color:var(--navigation-accent,#3c5144)}
html[data-theme="dark"] #nav-tabs>.tab-btn{color:var(--navigation-ink,#e5ede7)}
html[data-theme="dark"] #nav-tabs>.tab-btn:hover,html[data-theme="dark"] #nav-tabs>.tab-btn.active{background:var(--navigation-active,#19251f);color:var(--navigation-ink,#e5ede7)}
html[data-theme="dark"] #nav-tabs>.tab-btn.active{border-bottom-color:var(--navigation-accent,#3c5144)}
html[data-theme="dark"] #nav-tabs>.tab-btn:focus-visible{outline:2px solid var(--navigation-ink,#e5ede7)}
html[data-theme="dark"] .navigation-settings h4{color:#e5ede7}
html[data-theme="dark"] .navigation-preview{background:var(--navigation-bg,#19251f);color:var(--navigation-ink,#e5ede7);border:1px solid #3c5144}
html[data-theme="dark"] .navigation-preview>.selected{background:var(--navigation-active,#19251f);border-bottom:3px solid var(--navigation-accent,#3c5144)}
html[data-theme="dark"] .navigation-color-controls input[type=color]{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .navigation-color-controls output{color:#e5ede7}
/* controls.css */
html[data-theme="dark"] body input[type="checkbox"],html[data-theme="dark"] body input[type="radio"]{border:1.5px solid #3c5144;background:#19251f;color:#e5ede7}
html[data-theme="dark"] body input[type="checkbox"]:checked,html[data-theme="dark"] body input[type="checkbox"]:indeterminate,html[data-theme="dark"] body input[type="radio"]:checked{background:#153326;border-color:#3c5144}
html[data-theme="dark"] body input:is([type="checkbox"],[type="radio"]):focus-visible{outline:3px solid #b9c8bd}
html[data-theme="dark"] body .checklist-item:has(input:checked){background:#19251f}
html[data-theme="dark"] body .checklist-item:hover{background:#19251f}
html[data-theme="dark"] .people-existing{border-top:1px solid #3c5144}
html[data-theme="dark"] .personal-scope{border-top:1px solid #3c5144}
html[data-theme="dark"] .personal-scope select{border:1px solid #3c5144;background:#19251f;color:#e5ede7}
/* access.css */
html[data-theme="dark"] .access-ui{color:var(--text,#e5ede7)}
html[data-theme="dark"] .access-ui h3{color:#e5ede7}
html[data-theme="dark"] .access-ui h4{color:#e5ede7}
html[data-theme="dark"] .access-heading p{color:#b9c8bd}
html[data-theme="dark"] .access-tools input,html[data-theme="dark"] .access-tools select,html[data-theme="dark"] .access-action-row select{border:1px solid #3c5144;background:#19251f;color:#e5ede7}
html[data-theme="dark"] .access-role-card{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .access-role-card p{color:#b9c8bd}
html[data-theme="dark"] .access-pill{background:#edf3ef;color:#375e48;border-radius:20px}
html[data-theme="dark"] .access-note{background:#19251f;border:1px solid #3c5144;color:#e5ede7}
html[data-theme="dark"] .access-rule-card{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .access-advanced{border-top:1px solid #3c5144}
html[data-theme="dark"] .access-advanced summary,html[data-theme="dark"] .access-effective-list summary{color:#e5ede7}
html[data-theme="dark"] .access-effective-action{border-top:1px solid #3c5144}
html[data-theme="dark"] .access-ui input[type=search]{border:1px solid #3c5144}
/* access-admin-ui.css */
html[data-theme="dark"] .au-workspace :is(button,input,select):focus-visible{outline:3px solid #b9c8bd}
html[data-theme="dark"] .au-eyebrow{color:#b9c8bd}
html[data-theme="dark"] .au-segments{background:#19251f}
html[data-theme="dark"] .au-segments .btn{color:#e5ede7}
html[data-theme="dark"] .au-segments .btn.is-selected{background:#19251f;color:#e5ede7;box-shadow:0 1px 5px #00000020}
html[data-theme="dark"] .au-browser{background:#19251f}
html[data-theme="dark"] .au-browser input[type=search]{background:#19251f}
html[data-theme="dark"] .au-workspace input:not([type=checkbox]),html[data-theme="dark"] .au-workspace select{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .au-list-item:hover{background:#19251f}
html[data-theme="dark"] .au-list-item.is-selected{border-color:#3c5144;background:#19251f;box-shadow:0 2px 6px #00000008}
html[data-theme="dark"] .au-chevron{color:#b9c8bd}
html[data-theme="dark"] .au-avatar{background:#19251f;color:#e5ede7}
html[data-theme="dark"] .au-detail{background:#19251f}
html[data-theme="dark"] .au-summary-cards>div{background:#19251f;border:1px solid #3c5144}
html[data-theme="dark"] .au-chip-button,html[data-theme="dark"] .au-pill{border:1px solid #d8e4dc;border-radius:20px;background:#f3f7f3;color:#45664f}
html[data-theme="dark"] .au-chip-button:hover{background:#e1eee3}
html[data-theme="dark"] .au-text-button{color:#e5ede7}
html[data-theme="dark"] .au-danger{color:#ffb2a6!important}
html[data-theme="dark"] .au-check{color:#e5ede7}
html[data-theme="dark"] .au-matrix,html[data-theme="dark"] .au-comparison,html[data-theme="dark"] .au-review-table{background:#19251f}
html[data-theme="dark"] .au-matrix thead th,html[data-theme="dark"] .au-comparison thead th,html[data-theme="dark"] .au-review-table thead th{color:#b9c8bd;background:#19251f}
html[data-theme="dark"] .au-matrix td,html[data-theme="dark"] .au-matrix tbody th,html[data-theme="dark"] .au-comparison td,html[data-theme="dark"] .au-comparison tbody th,html[data-theme="dark"] .au-review-table td,html[data-theme="dark"] .au-review-table tbody th{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .au-matrix tr.au-module-row th{background:#19251f;color:#e5ede7;border-top:1px solid #3c5144}
html[data-theme="dark"] .au-permission-line>span:first-child{color:#b9c8bd}
html[data-theme="dark"] .au-company{color:#9ac7f1}
html[data-theme="dark"] .au-assigned,html[data-theme="dark"] .au-branches,html[data-theme="dark"] .au-yes{color:#e5ede7}
html[data-theme="dark"] .au-own{color:#f1cd8b}
html[data-theme="dark"] .au-none{color:#b9c8bd}
html[data-theme="dark"] .au-row-denied{background:#19251f}
html[data-theme="dark"] .au-row-denied th{color:#b9c8bd}
html[data-theme="dark"] .au-muted{color:#b9c8bd}
html[data-theme="dark"] .au-footnote{color:#b9c8bd}
html[data-theme="dark"] .au-workspace .field label,html[data-theme="dark"] .au-small-label{color:#e5ede7}
html[data-theme="dark"] .au-empty{color:#b9c8bd}
html[data-theme="dark"] .au-empty-soft{background:#19251f}
html[data-theme="dark"] .au-loading{background:#19251f}
html[data-theme="dark"] .au-notice{background:#19251f;border:1px solid #3c5144;color:#e5ede7}
html[data-theme="dark"] .au-role-preview{background:#19251f}
html[data-theme="dark"] .au-role-preview p{color:#b9c8bd}
html[data-theme="dark"] .au-form-section{border-top:1px solid #3c5144}
html[data-theme="dark"] .au-choice{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .au-choice:has(input:checked){background:#19251f;border-color:#3c5144}
html[data-theme="dark"] .au-choice small{color:#b9c8bd}
html[data-theme="dark"] .au-source-row{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .au-source-row p{color:#b9c8bd}
html[data-theme="dark"] .au-change-summary>div{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .au-change-summary>div>span:first-child{color:#b9c8bd}
html[data-theme="dark"] .au-module-menu{background:#19251f}
html[data-theme="dark"] .au-module-menu button{color:#e5ede7}
html[data-theme="dark"] .au-module-menu button.is-selected{background:#19251f;color:#e5ede7;box-shadow:0 1px 5px #00000020}
html[data-theme="dark"] .au-module-menu small{background:#19251f}
html[data-theme="dark"] .au-module-title p{color:#b9c8bd}
html[data-theme="dark"] .au-edit-card{border:1px solid #3c5144;background:#19251f}
html[data-theme="dark"] .au-presets .btn{background:#19251f;border-color:#3c5144}
html[data-theme="dark"] .au-rule-summary{color:#b9c8bd}
html[data-theme="dark"] .au-permission-editor .au-read-control{background:#19251f}
html[data-theme="dark"] .au-disabled-card{background:#19251f}
html[data-theme="dark"] .au-disabled-card select:disabled{background:#19251f;color:#b9c8bd;border-color:#3c5144}
html[data-theme="dark"] .au-save-bar{border:1px solid #3c5144;background:#36311cf5;box-shadow:0 3px 24px #00000018}
html[data-theme="dark"] .au-save-bar>div>span{color:#b9c8bd}
html[data-theme="dark"] .au-section-heading h4 span{color:#b9c8bd}
html[data-theme="dark"] .au-member{border-bottom:1px solid #3c5144}
html[data-theme="dark"] .au-member small{color:#b9c8bd}
html[data-theme="dark"] .au-inline-note{color:#b9c8bd}
html[data-theme="dark"] .au-shared-document{border:1px solid #3c5144}
html[data-theme="dark"] .au-shared-document span{color:#b9c8bd}
html[data-theme="dark"] .au-preview-panel{background:#19251f;border:1px solid #3c5144}
html[data-theme="dark"] .au-preview-panel p{color:#b9c8bd}
html[data-theme="dark"] .au-preview-count span{color:#b9c8bd}
html[data-theme="dark"] .au-step{background:#19251f;color:#e5ede7}
@media(max-width:760px){
html[data-theme="dark"] .au-matrix tr:not(.au-module-row){border-bottom:1px solid #3c5144}
html[data-theme="dark"] .au-matrix td::before{color:#b9c8bd}
}
html[data-theme="dark"] .au-pill.au-yes,html[data-theme="dark"] .au-pill.au-assigned,html[data-theme="dark"] .au-pill.au-branches{color:#356447}
html[data-theme="dark"] .au-pill.au-none{color:#526455}
html[data-theme="dark"] .au-pill.au-company{color:#285a8a}
html[data-theme="dark"] .au-pill.au-own{color:#7a5014}

html[data-theme="dark"] body{background:#101a15;color:#e5ede7}
/* Dynamic colors and controls. Light mode retains the company's original palette. */
html[data-theme="dark"] [data-theme-bg]{background-color:var(--wadi-inline-bg)!important}
html[data-theme="dark"] [data-theme-fg]{color:var(--wadi-inline-fg)!important}
html[data-theme="dark"] #nav-tabs{--navigation-bg:#19251f!important;--navigation-ink:#e5ede7!important;--navigation-active:#2a4033!important;--navigation-accent:#a4d8b4!important}
html[data-theme="dark"] .btn-primary{background:var(--theme-primary-bg);color:#f2faf4;border-color:#537a61}
html[data-theme="dark"] .btn-primary:hover{background:var(--theme-primary-hover)}
/* These semantic fills retain their light-mode colors and need their own ink. */
html[data-theme="dark"] .btn-gold{background:#c8a15a;color:#153626}
html[data-theme="dark"] .toast.ok{background:#16a34a;color:#081b0f}
html[data-theme="dark"] .toast.error{background:#dc2626;color:#ffffff}
html[data-theme="dark"] :is(input,select,textarea){color:var(--text);border-color:#708777}
html[data-theme="dark"] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),select,textarea){background-color:#142018}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#a8b8ac;opacity:1}
html[data-theme="dark"] input[type=checkbox]:checked,html[data-theme="dark"] input[type=radio]:checked{background:#28563f;border-color:#a4d8b4;color:#fff}
html[data-theme="dark"] .au-none,html[data-theme="dark"] .au-row-denied th{color:#a8b8ac}
html[data-theme="dark"] .au-company{color:#9ac7f1}html[data-theme="dark"] .au-own{color:#f1cd8b}
html[data-theme="dark"] .au-save-bar{background:#1b2821f5}
html[data-theme="dark"] .header-date,html[data-theme="dark"] .header-actions{color:#f2faf4}
html[data-theme="dark"] .theme-toggle{background:#ffffff12;color:#fff;border-color:#ffffff50}
html[data-theme="dark"] .theme-toggle:hover{background:#ffffff26}
#app-screen>header.has-brand-banner #theme-toggle{background:#163b2b;color:#fff;border-color:#ffffff75}
#app-screen>header.has-brand-banner #theme-toggle:hover{background:#214e3b}
html[data-theme="dark"] ::selection{background:#47745a;color:white}
@media print{html[data-theme="dark"]{color-scheme:light}html[data-theme="dark"] body,html[data-theme="dark"] body *{background-color:transparent!important;color:#000!important;border-color:#888!important;box-shadow:none!important;text-shadow:none!important}html[data-theme="dark"] body{background:white!important}}
