/* Shared light/dark preference for the dashboard and photo selection pages. */
html[data-theme="dark"]{color-scheme:dark;background-color:#151719!important;--theme-bg:#151719;--theme-surface:#202326;--theme-raised:#282c30;--theme-text:#f2efe8;--theme-muted:#b5b0a4;--theme-border:#414449;--theme-gold:#e2c16f;--theme-soft:#37301f;--theme-input:#1b1e21}
html[data-theme="dark"] body{background-color:var(--theme-bg)!important;color:var(--theme-text)!important}
html[data-theme="dark"] :is(.site-brand img,.photo-brand img,.brand-logo img,.brand img){filter:brightness(0) invert(1)}
html[data-theme="dark"] body :is(h1,h2,h3,h4,h5,p,span,strong,b,small,label,summary,li,dt,dd,th,td,legend,figcaption){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.muted,.subtitle,.eyebrow,.field-help,.footnote,.calendar-footnote,.help,.hint,.description,.secondary-text){color:var(--theme-muted)!important}
html[data-theme="dark"] body a{color:var(--theme-gold)!important}
html[data-theme="dark"] body :is(.site-header,.photo-header,.topbar,.sidebar,.panel,.calendar-panel,.settings-card,.settings-notice,.client-data-panel,.client-data-card,.client-edit-dialog,.client-edit-head,.client-detail-row,.summary article,.team-card,.team-person,.member-dialog,.activity-report,.activity-report-item,.tracked-tool,.tracked-unit,.equipment-history-dialog,.inventory-row,.saved-row,.job-card,.unit-card,.job-tools-dialog,.job-dialog-head,.images-card,.qr-card,.qr-form,.editor-panel,.social-item,.upload-confirm-dialog,.picker,.candidate,.production-dialog,.confirm-dialog,.trash-panel,.deleted-package,.package-picker-actions,.calendar-note-dialog,.download-card,.selected-files-panel,.gallery-item,.create-card,.settings-panel,.owner-share-link,.photo-admin-panel,.admin-menu-panel,.owner-notify-panel){background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.kpi,.payment-summary>div,.team-chipbox,.search,.filters,.job-suggestions,.preview-card,.photo-preview,.prototype-note,.job-note,.notice,.activity-location-notice,.not-carried-report,.report-summary,.content-view,.form-section,.calendar-toolbar,.month-day,.week-day,.week-event,.event-fact,.event-job-crew,.settings-notice,.selected-files-toggle,.link-action,.client-control,.download-icon){background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.site-header,.photo-header,.topbar,.admin-menu-panel,.photo-admin-panel,.owner-notify-panel){background-color:#1b1e21!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.quiet,.secondary,.secondary-button,.close,.close-button,.admin-menu-trigger,.photo-admin-menu summary,.card-actions button,.calendar-navigation button,.calendar-filters button,.month-day button,.week-nav,.week-current,.photo-dashboard,.photo-header-actions button){background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(input,select,textarea){background-color:var(--theme-input)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;color-scheme:dark}
html[data-theme="dark"] body input::placeholder,html[data-theme="dark"] body textarea::placeholder{color:#a7a49c!important;opacity:1}
html[data-theme="dark"] body :is(table,thead,tbody,tr,th,td){border-color:var(--theme-border)!important}
html[data-theme="dark"] body hr,html[data-theme="dark"] body :is(.divider,.panel-head,.team-columns,.payment-summary>div){border-color:var(--theme-border)!important}
html[data-theme="dark"] body :is(.gold,.gold-button,.primary,.save-button,#saveEvent,.production-status-tile.is-active){background-color:#d7b45e!important;border-color:#e2c16f!important;color:#211d14!important}
html[data-theme="dark"] body :is(.error,.alert,.notice-error,.expired-banner,.month-event.is-no-team,.status-error){background-color:#422727!important;border-color:#794340!important;color:#ffd9d4!important}
html[data-theme="dark"] body :is(.success,.report-done,.stage-done,.is-complete,.production-social-uploaded,.client-request-status.is-approved){background-color:#24392d!important;border-color:#42634e!important;color:#c9efd2!important}
html[data-theme="dark"] body :is(.warning,.status-pending,.production-social-queued){background-color:#40351e!important;border-color:#68542d!important;color:#f2dfa9!important}
html[data-theme="dark"] body :is(.month-event.is-task,.week-event.is-task){background-color:#24382c!important;border-color:#42634e!important;color:#d0edd8!important}
html[data-theme="dark"] body :is(.month-event.is-editing,.week-event.is-editing){background-color:#26333b!important;border-color:#465b68!important;color:#d5e7f2!important}
html[data-theme="dark"] body :is(.calendar-note.is-yellow,.calendar-note.is-red,.calendar-note.is-purple){filter:brightness(.78) saturate(.9)}
html[data-theme="dark"] body :is(dialog,.modal,.member-dialog,.calendar-note-dialog,.equipment-history-dialog,.confirm-dialog,.production-dialog,.client-edit-dialog,.job-tools-dialog){background-color:var(--theme-surface)!important;color:var(--theme-text)!important;box-shadow:0 22px 70px #0009!important}
html[data-theme="dark"] body :is(dialog,.modal,.member-dialog,.calendar-note-dialog,.equipment-history-dialog,.confirm-dialog,.production-dialog,.client-edit-dialog,.job-tools-dialog)::backdrop{background:#0009!important}
html[data-theme="dark"] body :is(.theme-switch){background:#111315;border-color:#414449}
.theme-switch{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;padding:3px;border:1px solid #e8e3d8;border-radius:999px;background:#f5f3ed}
.theme-option{min-height:32px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:999px;background:transparent;color:#655a43;font:600 11px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}
.theme-option[aria-pressed="true"]{background:#fff;border-color:#e2d2aa;color:#624b1f;box-shadow:0 2px 6px #33281712}
.theme-option-icon{font-size:14px;line-height:1}
html[data-theme="dark"] .theme-switch{background:#111315;border-color:#414449}
html[data-theme="dark"] .theme-option{background:transparent!important;border-color:transparent!important;color:#d7d3c9!important}
html[data-theme="dark"] .theme-option[aria-pressed="true"]{background:#35383b!important;border-color:#686056!important;color:#f3d98c!important}
@media(max-width:760px){.theme-switch{gap:1px;padding:2px}.theme-option{min-height:32px;padding:0 7px;font-size:10px}.site-header nav,.photo-header-actions,.top-actions{gap:5px!important}}
@media(max-width:420px){.theme-option{width:31px;padding:0}.theme-option-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}
html[data-theme="dark"] body :is(.month-event,.week-event,.kind-pill,.count-pill,.count,.button-count,.owner-pill){background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body button{background-color:var(--theme-raised);border-color:var(--theme-border);color:var(--theme-text)}
html[data-theme="dark"] body :is(.toggle-password,.activity-button,.restore-package){background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.danger,.delete-package,.client-edit-actions .delete){background-color:#422727!important;border-color:#794340!important;color:#ffd9d4!important}
html[data-theme="dark"] .theme-option[aria-pressed="true"] span{color:#f3d98c!important}
/* Public pricelist uses its own light surfaces, so give those sections explicit dark colors. */
html[data-theme="dark"] body.pricelist-page #header{background:rgba(27,30,33,.94)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page #header nav .nav-chat{background:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page .price-package-card,
html[data-theme="dark"] body.pricelist-page .price-package-heading,
html[data-theme="dark"] body.pricelist-page .price-extra-grid section,
html[data-theme="dark"] body.pricelist-page .price-footer{background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page .price-package-heading{border-bottom-color:var(--theme-border)!important}
html[data-theme="dark"] body.pricelist-page .price-package-heading h3,
html[data-theme="dark"] body.pricelist-page .price-package-heading>p,
html[data-theme="dark"] body.pricelist-page .price-package-heading>.price-package-qualifier,
html[data-theme="dark"] body.pricelist-page .price-package-price,
html[data-theme="dark"] body.pricelist-page .package-highlights p span,
html[data-theme="dark"] body.pricelist-page .package-highlights ul,
html[data-theme="dark"] body.pricelist-page .price-extra-grid ul{color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page .package-highlights,
html[data-theme="dark"] body.pricelist-page .package-highlights p,
html[data-theme="dark"] body.pricelist-page .package-highlights>div,
html[data-theme="dark"] body.pricelist-page .price-extra-grid th,
html[data-theme="dark"] body.pricelist-page .price-extra-grid td{border-color:var(--theme-border)!important}
html[data-theme="dark"] body.pricelist-page .price-back,
html[data-theme="dark"] body.pricelist-page .price-compare-open,
html[data-theme="dark"] body.pricelist-page .price-mode-switch button{background:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page .price-mode-switch button.active{background:#d7b45e!important;border-color:#e2c16f!important;color:#211d14!important}
/* Public pages share the same preference without changing their page structure. */
html[data-theme="dark"] body :is(header.light,#header.light,.client-form-header){background-color:#1b1e21!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] body :is(.category-card,.price-package-card,.price-package-heading,.price-extra-grid section,.portfolio-social-link,.client-data-form,.client-status-card,.package-picker-glass,.client-total-summary,.progress-task,.progress-overview,.client-manual-cost-entry,.client-compare-table,.portfolio-footer,.price-footer,.client-form-footer,.client-status-footer){background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.category-card p,.package-card p,.price-package-session,.package-highlights p span,.package-highlights ul,.portfolio-social-copy small,.client-form-intro>p,.client-status-intro>p,.client-status-privacy,.progress-task-detail,.progress-task-description,.field-hint,.demo-note,.price-lead,.price-tagline){color:var(--theme-muted)!important}
html[data-theme="dark"] body :is(.price-package-card,.package-card,.price-extra-grid section,.client-data-form,.client-status-card,.client-compare-table,.client-compare-scroll){box-shadow:0 14px 38px #0004!important}
html[data-theme="dark"] body :is(.client-total-row,.client-compare-table th,.client-compare-table td,.progress-task,.progress-results,.client-form-section,.client-manual-cost-entry,.package-highlights,.package-highlights p,.package-highlights>div,.price-footer,.client-form-footer,.client-status-footer){border-color:var(--theme-border)!important}
html[data-theme="dark"] body :is(.client-extra-option,.client-extras-open,.client-manual-cost-entry input,.client-compare-selectors select,.client-status-card input,.client-fields input,.client-fields select,.client-fields textarea,.package-option,.client-suggestion){background-color:var(--theme-input)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.client-extra-copy strong,.client-total-row strong,.client-cost-line h2,.client-cost-line>strong,.client-balance-row,.client-balance-row strong,.package-highlights p strong,.package-highlights>div>strong,.price-package-heading h3,.price-package-heading>p,.price-package-label){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.progress-task-complete,.progress-task-complete .progress-tile,.progress-drive-link){background-color:#24392d!important;border-color:#42634e!important;color:#c9efd2!important}
html[data-theme="dark"] body :is(.progress-bar,.progress-task-detail,.client-payment-note,.price-extra-grid ul,.price-table-wrap){background-color:var(--theme-raised)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.client-status-page,.client-form-page,.pricelist-page,.portfolio-page){background-color:var(--theme-bg)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.client-form-header,.client-form-header nav,.client-status-page #header,.pricelist-page #header,.portfolio-page #header){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.price-mode-switch button,.price-compare-open,.client-add-manual-cost,.client-manual-cost-remove,.client-extras-open-icon,.client-suggestion){background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.client-submit-button,.client-extras-done,.price-availability,.price-whatsapp){background-color:#d7b45e!important;color:#211d14!important}
html[data-theme="dark"] body :is(.client-form-brand img,.client-form-footer img,.portfolio-footer img,.price-footer img,.client-status-footer img){filter:brightness(0) invert(1)}
html[data-theme="dark"] .theme-switch{flex:0 0 auto}
html[data-theme="dark"] body :is(.gold-button,.client-submit,.download-link,.price-availability,.price-whatsapp){background:#d7b45e!important;border-color:#e2c16f!important;color:#211d14!important}
html[data-theme="dark"] body .photo-card.selected{outline-color:#e2c16f}
html[data-theme="dark"] body .photo-card.selected::after{background:rgba(226,193,111,.13)}
html[data-theme="dark"] body .photo-card.selected .photo-check{background:#e2c16f!important;border-color:#e2c16f!important;color:#211d14!important}
html[data-theme="dark"] body :is(.selected-files-dialog,.selected-files-panel,.gallery-item,.download-card){background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.selected-files-dialog .selected-files-title-row>p,.selected-files-dialog .selected-files-names,.selected-files-panel li,.gallery-meta,.client-title,.client-subtitle,.quota-count strong,.client-deadline){color:var(--theme-text)!important}
.home-session-panel .theme-switch{width:max-content;max-width:100%;margin:2px 6px 6px}
html[data-theme="dark"] body :is(.home-session-link:hover,.home-session-logout:hover){background-color:var(--theme-raised)!important;color:var(--theme-gold)!important}
/* Keep category descriptions readable over photography in dark mode only. */
html[data-theme="dark"] body.pricelist-page .price-category-card .price-card-copy>p{color:#fff!important;text-shadow:0 1px 5px #0009!important}

/* Dark surfaces for dashboard cards whose contents are rendered after page load. */
html[data-theme="dark"] body :is(.team-directory-card,.team-more-details,.team-detail-row,.team-detail-row .payment-status,.team-directory-stats>span,.production-status-row,.production-status-detail,.production-status-detail select,.detail-section,.pay-summary article,.job-row,.task-row,.detail-info,.expense,.finance-summary>div,.legendrow,.finance-totals article,.finance-entry,.qr-create-panel,.qr-history-panel,.qr-card,.gallery-list-section,.generated-gallery,.gallery-progress,.job-launch,.job-card,.unit-card,.unit-group,.report-summary li,.return-toolbar,.return-check,.checklist-allocation,.checklist-allocation-group){background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.team-directory-stats .paid,.team-directory-stats .unpaid,.team-directory-stats .unknown,.production-status-tile:hover,.production-status-tile:focus-visible,.schedule-badge,.progress-badge,.card-status,.payment-status,.return-status){background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.team-directory-card,.team-more-details,.team-detail-row,.team-directory-stats,.production-status-tile,.production-status-detail,.expense,.finance-entry,.qr-card,.generated-gallery,.job-launch,.job-row,.task-row,.unit-card,.report-summary li,.return-toolbar,.return-check,.checklist-allocation,.checklist-allocation-group) :is(p,span,strong,b,small,label,h2,h3,h4,li,button){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.team-directory-stats .paid,.team-directory-stats .unpaid,.team-directory-stats .unknown,.production-status-tile-copy small,.production-status-tile-arrow,.qr-meta,.qr-note,.qr-code-field small,.job-launch small,.job-row p,.task-row p,.unit-heading small,.report-summary li,.expense small,.finance-entry small){color:var(--theme-muted)!important}
html[data-theme="dark"] body :is(table,thead,tbody,tr,th,td){background-color:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
.topbar .top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap;min-width:0}
.topbar .top-actions .theme-switch{display:inline-flex;flex-direction:row;align-items:center;flex:0 0 auto;width:max-content;white-space:nowrap}
/* Dashboard production pipeline and editing backlog use page-local light colors. */
html[data-theme="dark"] body :is(.stage,.editing-backlog,.editing-backlog-item,.editing-backlog-client,.editing-backlog-open,.pipeline-detail-item){background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.stage,.editing-backlog,.editing-backlog-item,.editing-backlog-client,.editing-backlog-open,.pipeline-detail-item) :is(strong,span,small,p){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.stage span,.editing-backlog small,.editing-backlog-empty,.editing-backlog-open small,.pipeline-detail-item small){color:var(--theme-muted)!important}
html[data-theme="dark"] body :is(.editing-backlog-client,.editing-backlog-open){background-color:var(--theme-raised)!important}
/* Keep page labels, counters, and owner notifications legible in dark mode. */
html[data-theme="dark"] body :is(.tag,.tag.lime,.tag.purple,.tiny,.count,.count-pill,.button-count,.delivery-tag,.client-request-actions b){background:var(--theme-raised)!important;background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .tag.lime{background:#24392d!important;border-color:#42634e!important;color:#c9efd2!important}
html[data-theme="dark"] body .owner-notify-button{background:var(--theme-raised)!important;background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-gold)!important;box-shadow:0 4px 16px #0004!important}
html[data-theme="dark"] body .owner-notify-badge{background:#b64f55!important;border-color:#1b1e21!important;color:#fff!important}
html[data-theme="dark"] body .owner-notify-panel,html[data-theme="dark"] body .owner-notification-history-dialog,html[data-theme="dark"] body .owner-photo-files-dialog{background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.owner-notify-panel,.owner-notification-history-dialog,.owner-photo-files-dialog) :is(strong,span,small,p,em,header,footer){color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] body :is(.owner-notify-panel,.owner-notification-history-dialog,.owner-photo-files-dialog) :is(small,.owner-notify-head span,.owner-notify-list p,.owner-notification-history-card footer,.owner-notification-history-list em){color:var(--theme-muted)!important}
html[data-theme="dark"] body :is(.owner-notify-panel,.owner-notification-history-dialog,.owner-photo-files-dialog) button{background:var(--theme-raised)!important;background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .owner-notification-history-list em{background:var(--theme-raised)!important}
/* Keep the loading pill dark while the gold Loknyana mark remains visible. */
html[data-theme="dark"] body .dashboard-loading{background:var(--theme-raised)!important;background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;box-shadow:0 8px 28px #0006!important}
/* Team profile cards use a light gradient in their page stylesheet; remove it in dark mode. */
html[data-theme="dark"] body .team-card{background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;background-image:none!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;box-shadow:0 7px 24px #0003!important}
html[data-theme="dark"] body .team-card :is(h3,p,.team-card-salary,.team-card-schedule,.team-card-schedule strong,.team-card-schedule span){color:var(--theme-text)!important}
html[data-theme="dark"] body .team-card .team-notification-count{background:#3a321f!important;border-color:#5f512f!important;color:#f3d98c!important}
/* Equipment workspace has several inline light surfaces outside the shared panel styles. */
html[data-theme="dark"] body :is(.owner-jobs-section,.owner-report-section){background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;box-shadow:0 10px 30px #0003!important}
html[data-theme="dark"] body .owner-job-card{background:var(--theme-raised)!important;background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .owner-job-card small{color:var(--theme-muted)!important}
html[data-theme="dark"] body .equipment-workspace-nav{background:#1b1e21ed!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] body .equipment-workspace-nav button{background:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .equipment-workspace-nav button[aria-selected="true"]{background:#3a321f!important;border-color:#685831!important;color:#f3d98c!important}
html[data-theme="dark"] body .checklist-launch{background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .checklist-launch small{color:var(--theme-muted)!important}
html[data-theme="dark"] body .checklist-launch-action{background:#3a321f!important;color:#f3d98c!important}
html[data-theme="dark"] body :is(.equipment-checklist-dialog,.checklist-dialog-head){background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .equipment-checklist-frame{background:var(--theme-surface)!important}
/* Notification settings: separate the mail actions and keep the sticky save area dark. */
html[data-theme="dark"] body .notification-actions{background:linear-gradient(180deg,transparent,var(--theme-surface) 30%)!important}
html[data-theme="dark"] body .notification-actions .gold{background:#d7b45e!important;background-image:none!important;border:1px solid #e2c16f!important;color:#211d14!important;opacity:1!important}
html[data-theme="dark"] body .notification-actions .gold:disabled{background:#76633a!important;border-color:#8a7544!important;color:#f7edcf!important}
html[data-theme="dark"] body #notificationMailForm #connectNotificationMail{background:#d7b45e!important;background-image:none!important;border-color:#e2c16f!important;color:#211d14!important}
html[data-theme="dark"] body #notificationMailForm #testNotificationMail{background:var(--theme-raised)!important;background-image:none!important;border:1px solid var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body #notificationMailForm #testNotificationMail:disabled{color:var(--theme-muted)!important}
/* Use calm neutral links and a readable gold accent in dark navigation menus. */
html[data-theme="dark"] body :is(.admin-menu-panel,.photo-admin-panel){background:#202326!important;background-image:none!important;border-color:#414449!important;box-shadow:0 18px 50px #0008!important}
html[data-theme="dark"] body :is(.admin-menu-panel,.photo-admin-panel) a{background:transparent!important;background-image:none!important;border-color:transparent!important;color:#e5e1d8!important}
html[data-theme="dark"] body :is(.admin-menu-panel,.photo-admin-panel) a:hover,html[data-theme="dark"] body :is(.admin-menu-panel,.photo-admin-panel) a:focus-visible,html[data-theme="dark"] body :is(.admin-menu-panel,.photo-admin-panel) a[aria-current="page"]{background:#37301f!important;border-color:#685831!important;color:#f3d98c!important}
html[data-theme="dark"] body :is(.admin-menu-group,.photo-admin-group){border-top-color:#414449!important}
html[data-theme="dark"] body :is(.admin-menu-group,.photo-admin-group)>summary{color:#e5e1d8!important}
html[data-theme="dark"] body :is(.admin-menu-group,.photo-admin-group)>summary span{color:#d7b45e!important}
html[data-theme="dark"] body :is(.admin-menu-panel,.photo-admin-panel) .admin-menu-logout,html[data-theme="dark"] body :is(.admin-menu-panel,.photo-admin-panel) .photo-admin-logout{border-top-color:#414449!important;color:#b5b0a4!important}
/* Public Data Client form, including its package and comparison dialogs. */
html[data-theme="dark"] body :is(.client-form-header,.client-data-form,.client-payment-note,.client-total-summary,.client-extra-option,.client-manual-cost-entry,.client-compare-table,.prewedding-session-card,.package-picker-glass,.package-option,.package-options-empty,.client-extras-open,.client-extras-open-icon,.client-pricelist-link,.client-form-whatsapp){background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;background-image:none!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;box-shadow:none!important}
html[data-theme="dark"] body :is(.client-form-header,.client-data-form,.client-payment-note,.client-total-summary,.client-extra-option,.client-manual-cost-entry,.client-compare-table,.prewedding-session-card,.package-picker-glass,.package-option,.package-options-empty,.client-extras-open,.client-extras-open-icon,.client-pricelist-link,.client-form-whatsapp) :is(p,span,strong,b,small,label,h2,h3,li,button){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.client-data-form,.package-picker-glass,.package-option,.client-extra-option,.client-extras-open,.client-manual-cost-entry,.prewedding-session-card){background-color:var(--theme-raised)!important}
html[data-theme="dark"] body :is(.client-data-form,.client-form-section,.client-payment-note,.client-total-summary,.notification-group){border-color:var(--theme-border)!important}
html[data-theme="dark"] body :is(.client-form-header,.client-form-whatsapp){background-color:#1b1e21!important}
html[data-theme="dark"] body .client-form-intro h1 em{color:#e2c16f!important}
html[data-theme="dark"] body .client-form-eyebrow,html[data-theme="dark"] body .client-section-index{color:#d7b45e!important}
html[data-theme="dark"] body .client-field-hint,html[data-theme="dark"] body .package-picker-hint,html[data-theme="dark"] body .client-submit-help{color:var(--theme-muted)!important}
html[data-theme="dark"] body :is(.client-submit-button,.client-extras-done,.client-submit){background:#d7b45e!important;background-image:none!important;border-color:#e2c16f!important;color:#211d14!important}
html[data-theme="dark"] body .client-owner-save{background:var(--theme-raised)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] body #public-nav .home-session-panel{background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body #public-nav :is(.home-session-link,.home-session-logout){color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] body #public-nav :is(.home-session-trigger,.client-form-whatsapp){background:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body #public-nav .home-session-group{border-top-color:var(--theme-border)!important}
html[data-theme="dark"] body #public-nav .home-session-group>summary{background:transparent!important;color:var(--theme-text)!important}
html[data-theme="dark"] body #public-nav .home-session-group>summary:hover,html[data-theme="dark"] body #public-nav .home-session-group>summary:focus-visible{background:var(--theme-raised)!important;color:var(--theme-gold)!important}
html[data-theme="dark"] body #public-nav .home-session-group-chevron{color:var(--theme-gold)!important}
html[data-theme="dark"] body #public-nav .home-session-status{border-top-color:var(--theme-border)!important;color:var(--theme-muted)!important}
/* Bagi Tugas tabs and calendar shortcut should stay dark with the dashboard theme. */
html[data-theme="dark"] body .task-tabs{background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;background-image:none!important;border-color:var(--theme-border)!important;box-shadow:none!important}
html[data-theme="dark"] body .task-tabs .task-tab{background:transparent!important;background-image:none!important;border-color:transparent!important;color:var(--theme-muted)!important;box-shadow:none!important}
html[data-theme="dark"] body .task-tabs .task-tab:hover,html[data-theme="dark"] body .task-tabs .task-tab:focus-visible{background:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .task-tabs .task-tab.is-active{background:#3a321f!important;border-color:#685831!important;color:#f3d98c!important;box-shadow:none!important}
html[data-theme="dark"] body .week-calendar-link{background:var(--theme-raised)!important;background-color:var(--theme-raised)!important;background-image:none!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;box-shadow:none!important}
html[data-theme="dark"] body .week-calendar-link:hover,html[data-theme="dark"] body .week-calendar-link:focus-visible{background:#3a321f!important;border-color:#685831!important;color:#f3d98c!important}
/* Pricelist dark theme: cover the category cards, package details, dialogs and sticky actions. */
html[data-theme="dark"] body.pricelist-page .price-section-title>span{color:var(--theme-muted)!important}
html[data-theme="dark"] body.pricelist-page :is(.price-category-card,.price-category-card.category-card){background-color:#202326!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] body.pricelist-page .price-category-card :is(h3,p,.category-number,.price-card-action){color:#f2efe8!important}
html[data-theme="dark"] body.pricelist-page .price-category-card .price-card-action.pill{background:#d7b45e!important;border-color:#e2c16f!important;color:#211d14!important}
html[data-theme="dark"] body.pricelist-page :is(.price-package-card,.price-package-heading,.price-package-content,.price-extra-grid section,.additional-section){background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;background-image:none!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page :is(.price-package-card,.price-package-heading,.price-package-content,.price-extra-grid,.additional-section) :is(h2,h3,h4,p,span,strong,b,small,li,th,td,dt,dd){color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page :is(.price-package-session,.price-package-heading>span,.additional-intro,.price-lead){color:var(--theme-muted)!important}
html[data-theme="dark"] body.pricelist-page :is(.price-detail-heading,.price-package-cover){border-color:var(--theme-border)!important}
html[data-theme="dark"] body.pricelist-page :is(#compare-dialog,#package-details-dialog){background:#202326!important;background-color:#202326!important;background-image:none!important;border:1px solid var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page :is(#compare-dialog,#package-details-dialog) :is(h2,h3,p,span,strong,small,label,th,td,li){color:var(--theme-text)!important}
html[data-theme="dark"] body.pricelist-page .price-floating-actions{background:rgba(27,30,33,.96)!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] body.pricelist-page .price-form-back-float{background:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;text-shadow:none!important}
html[data-theme="dark"] body.pricelist-page :is(.price-back,.price-compare-open,.price-mode-switch button){background:var(--theme-raised)!important;background-image:none!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;box-shadow:none!important}
html[data-theme="dark"] body.pricelist-page .price-mode-switch button.active{background:#d7b45e!important;border-color:#e2c16f!important;color:#211d14!important}
html[data-theme="dark"] body.pricelist-page .price-availability{background:#d7b45e!important;border-color:#e2c16f!important;color:#211d14!important}
/* Dashboard client rows use inline light hover colors; override them in dark mode. */
html[data-theme="dark"] body #jobRows tr:nth-child(odd) td,html[data-theme="dark"] body #jobRows tr:nth-child(even) td{background-color:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme="dark"] body #jobRows tr:hover td,html[data-theme="dark"] body #jobRows tr:focus-within td{background-color:#303438!important;color:#fff!important;border-color:#685831!important}
html[data-theme="dark"] body #jobRows tr.team-missing td{background-color:#3b2828!important;color:#ffe7e2!important;border-color:#684343!important}
html[data-theme="dark"] body #jobRows tr.team-missing:hover td,html[data-theme="dark"] body #jobRows tr.team-missing:focus-within td{background-color:#523333!important;color:#fff!important}
/* Keep the theme selector aligned and compact inside the public Owner menu. */
@media(max-width:700px){#public-nav .home-session-panel .theme-switch{display:flex;width:max-content;gap:3px;padding:3px;border-radius:999px}#public-nav .home-session-panel .theme-option{width:42px;min-height:38px;padding:0;border-radius:999px}#public-nav .home-session-panel .theme-option-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#public-nav .home-session-panel .theme-option-icon{font-size:17px}}
/* Keep equipment inventory status cards readable when the shared dark theme is active. */
html[data-theme="dark"] body :is(.service-summary,.category-manager,.ready-equipment,.ready-equipment-unverified){background:var(--theme-surface)!important;background-color:var(--theme-surface)!important;background-image:none!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important;box-shadow:none!important}
html[data-theme="dark"] body :is(.service-summary,.category-manager,.ready-equipment,.ready-equipment-unverified) :is(h3,strong,summary,p,span,small,label){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.service-summary,.ready-equipment) .eyebrow{color:var(--theme-gold)!important}
html[data-theme="dark"] body .service-summary-head>span{background:var(--theme-raised)!important;color:var(--theme-gold)!important}
html[data-theme="dark"] body .service-summary-item,html[data-theme="dark"] body .ready-equipment-item{background:var(--theme-raised)!important;background-color:var(--theme-raised)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.service-summary-item,.ready-equipment-item) :is(strong,b){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.service-summary-item,.ready-equipment-item) small{color:var(--theme-muted)!important}
html[data-theme="dark"] body .service-summary-item button{background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .category-manager>summary{background:transparent!important;color:var(--theme-text)!important}
html[data-theme="dark"] body .ready-equipment-unverified{border-style:dashed!important}
/* Equipment location, service and history cards also contain light gradients and count badges. */
html[data-theme="dark"] body :is(.tracked-unit,.activity-report-item,.history-event,.activity-location-notice,.ready-equipment-item,.studio-unit-count,.outside-unit-count){background:var(--theme-raised)!important;background-color:var(--theme-raised)!important;background-image:none!important;border-color:var(--theme-border)!important;color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.tracked-unit,.activity-report-item,.history-event,.activity-location-notice) :is(strong,b,span,p,small,time,em){color:var(--theme-text)!important}
html[data-theme="dark"] body :is(.tracked-tool,.tracked-unit,.activity-report,.activity-report-item,.history-event,.activity-correction){border-color:var(--theme-border)!important}
html[data-theme="dark"] body .tracked-unit .studio-unit-count{background:#3a321f!important;border-color:#685831!important;color:#f3d98c!important}
html[data-theme="dark"] body .tracked-unit :is(.outside-label,.report-issue,.studio-unit-note){color:#f0b1a7!important}
html[data-theme="dark"] body .tracked-unit :is(.service-active-label,.unverified-label){color:var(--theme-gold)!important}
html[data-theme="dark"] body :is(.equipment-location-filters,.activity-correction) label,html[data-theme="dark"] body .equipment-location-filters label{color:var(--theme-muted)!important}
html[data-theme="dark"] body .history-event p{color:var(--theme-text)!important}

/* Public headers use a black wordmark in light mode; invert it with the shared dark theme. */
html[data-theme="dark"] body :is(.client-form-brand img,.client-form-footer img){filter:brightness(0) invert(1)}

/* Glass-inspired theme control, adapted to the existing persisted theme buttons. */
.theme-switch{--c-glass:rgba(187,187,188,.22);--c-light:rgba(255,255,255,.94);--c-dark:rgba(0,0,0,.20);--c-content:#224;--c-action:#0052f5;--glass-reflex-dark:1;--glass-reflex-light:1;--saturation:150%;position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;padding:4px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(187,187,188,.24) 52%,rgba(255,255,255,.42));color:var(--c-content);box-shadow:inset 0 1px 1px rgba(255,255,255,.9),inset 0 -1px 1px rgba(0,0,0,.08),0 5px 16px rgba(30,34,38,.10);backdrop-filter:blur(18px) saturate(var(--saturation));-webkit-backdrop-filter:blur(18px) saturate(var(--saturation));transition:background 400ms cubic-bezier(1,0,.4,1),border-color 400ms cubic-bezier(1,0,.4,1),box-shadow 400ms cubic-bezier(1,0,.4,1)}
.theme-option{position:relative;min-height:36px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:999px;background:transparent;color:#514e48;font:600 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap;transition:color 260ms ease,background 400ms cubic-bezier(1,0,.4,1),border-color 400ms cubic-bezier(1,0,.4,1),box-shadow 400ms cubic-bezier(1,0,.4,1),transform 260ms ease}
.theme-option:hover{background:rgba(255,255,255,.42)}
.theme-option:active{transform:scale(.96)}
.theme-option[aria-pressed="true"]{background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,255,255,.68));border-color:rgba(255,255,255,.92);color:#173f9d;box-shadow:inset 0 1px 2px rgba(255,255,255,.95),0 2px 8px rgba(0,40,120,.14)}
.theme-option:focus-visible{outline:2px solid var(--c-action);outline-offset:2px}
.theme-option-icon{font-size:15px;line-height:1}
html[data-theme="dark"] .theme-switch{--c-content:#f3f1eb;background:linear-gradient(145deg,rgba(187,187,188,.19),rgba(0,0,0,.34) 52%,rgba(255,255,255,.07));border-color:rgba(255,255,255,.22);color:var(--c-content);box-shadow:inset 0 1px 1px rgba(255,255,255,.20),inset 0 -1px 1px rgba(0,0,0,.35),0 6px 18px rgba(0,0,0,.24)}
html[data-theme="dark"] .theme-option{background:transparent!important;border-color:transparent!important;color:#d7d3c9!important}
html[data-theme="dark"] .theme-option:hover{background:rgba(255,255,255,.10)!important}
html[data-theme="dark"] .theme-option[aria-pressed="true"]{background:linear-gradient(145deg,rgba(255,255,255,.24),rgba(187,187,188,.12))!important;border-color:rgba(255,255,255,.25)!important;color:#f3d98c!important;box-shadow:inset 0 1px 2px rgba(255,255,255,.22),0 2px 9px rgba(0,0,0,.24)!important}
html[data-theme="dark"] .theme-option:focus-visible{outline-color:#e2c16f}
@media(max-width:760px){.theme-switch{gap:2px;padding:3px}.theme-option{min-height:34px;padding:0 10px;font-size:11px}}
@media(max-width:420px){.theme-option{width:32px;padding:0}.theme-option-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.theme-switch,.theme-option{transition:none}}


/* Frosted glass treatment for the homepage's key actions. */
#header nav#public-nav .nav-chat.home-glass-control,
#home .actions .home-glass-control,
#home-view .closing .home-glass-control,
#category-view .category-actions .home-glass-control,
#admin-open.home-glass-control{
  position:relative;isolation:isolate;overflow:hidden;
  border:1px solid rgba(255,255,255,.74);
  background:linear-gradient(145deg,rgba(255,255,255,.38),rgba(187,187,188,.18) 52%,rgba(255,255,255,.25));
  color:#fff;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.68),inset 0 -1px 1px rgba(0,0,0,.08),0 8px 24px rgba(18,24,22,.16);
  backdrop-filter:blur(18px) saturate(155%);-webkit-backdrop-filter:blur(18px) saturate(155%);
  transition:background 400ms cubic-bezier(1,0,.4,1),border-color 400ms cubic-bezier(1,0,.4,1),box-shadow 300ms ease,color 300ms ease,transform 220ms ease;
}
#header nav#public-nav .nav-chat.home-glass-control{background:linear-gradient(145deg,rgba(255,255,255,.24),rgba(187,187,188,.10) 52%,rgba(255,255,255,.18));}
#admin-open.home-glass-control{background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(247,242,226,.86) 52%,rgba(235,226,201,.72));border-color:rgba(216,189,131,.68);color:#39352a;box-shadow:inset 0 1px 1px rgba(255,255,255,.98),0 8px 22px rgba(40,36,24,.12)}
.home-glass-control:hover{transform:translateY(-2px);box-shadow:inset 0 1px 1px rgba(255,255,255,.82),0 11px 28px rgba(18,24,22,.20)}
.home-glass-control:active{transform:translateY(0) scale(.98)}
.home-glass-control:focus-visible{outline:3px solid #e2c16f;outline-offset:3px}
html[data-theme="dark"] #admin-open.home-glass-control{background:linear-gradient(145deg,rgba(187,187,188,.21),rgba(0,0,0,.30) 52%,rgba(255,255,255,.08));border-color:rgba(255,255,255,.28);color:#f3f1eb;box-shadow:inset 0 1px 1px rgba(255,255,255,.22),0 8px 24px rgba(0,0,0,.22)}
html[data-theme="dark"] #header nav#public-nav .nav-chat.home-glass-control,
html[data-theme="dark"] #home .actions .home-glass-control,
html[data-theme="dark"] #home-view .closing .home-glass-control,
html[data-theme="dark"] #category-view .category-actions .home-glass-control{background:linear-gradient(145deg,rgba(187,187,188,.20),rgba(0,0,0,.32) 52%,rgba(255,255,255,.08));border-color:rgba(255,255,255,.30);color:#fff}
@media(prefers-reduced-motion:reduce){.home-glass-control{transition:none!important}}
/* Match glass text to the surface behind it in light mode. */
header#header.light nav#public-nav .nav-chat.home-glass-control{background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(255,255,255,.70) 52%,rgba(241,237,225,.76));border-color:rgba(255,255,255,.95);color:#39352a;box-shadow:inset 0 1px 1px rgba(255,255,255,.98),0 6px 18px rgba(40,36,24,.10)}
#home-view .closing .home-glass-control,#category-view .category-actions .home-glass-control{background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,255,255,.72) 52%,rgba(241,237,225,.80));border-color:rgba(255,255,255,.96);color:#39352a;box-shadow:inset 0 1px 1px rgba(255,255,255,.98),0 8px 22px rgba(40,36,24,.10)}
#category-view .category-banner.wedding-banner .category-actions .home-glass-control{background:linear-gradient(145deg,rgba(255,255,255,.30),rgba(187,187,188,.12) 52%,rgba(255,255,255,.20));border-color:rgba(255,255,255,.72);color:#fff}
html[data-theme="dark"] #home-view .closing .home-glass-control,html[data-theme="dark"] #category-view .category-actions .home-glass-control{background:linear-gradient(145deg,rgba(187,187,188,.20),rgba(0,0,0,.32) 52%,rgba(255,255,255,.08));border-color:rgba(255,255,255,.30);color:#fff}
/* Keep the pale glass Portfolio control readable, and photo-card captions bright in dark mode. */
html[data-theme="dark"] #header nav#public-nav .nav-chat.home-glass-control{color:#202120!important}
html[data-theme="dark"] body #category-grid .category-card p{color:#fff!important;text-shadow:0 1px 5px rgba(0,0,0,.65)}
