/* A single readable dark palette for page content, dialogs and shared widgets. */
html:is([data-cms-theme=dark],[data-site-theme=dark]){
 --fa-page:#15191e;--fa-surface:#20262d;--fa-inset:#191e24;--fa-raised:#303a46;--fa-text:#e3e7ed;--fa-muted:#b5bfcc;--fa-border:#495564;
 --cms-text:var(--fa-text);--cms-muted:var(--fa-muted);--public-text:var(--fa-text);--public-muted:var(--fa-muted);
 --fa-primary-text:#000;--fa-primary-hover-text:#000;--fa-secondary-text:#000;--fa-secondary-hover-text:#000;--fa-dark-button-text:#fff;--fa-dark-hover-text:#fff;
}
html:is([data-cms-theme=dark],[data-site-theme=dark]) body{background:var(--fa-page);color:var(--fa-text)}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(body,.site-root,.cms-standalone,dialog){
 --surface:var(--fa-surface);--border:var(--fa-border);--text:var(--fa-text);--muted:var(--fa-muted);--site-panel-bg:var(--fa-surface);--site-border:var(--fa-border);
 --neutralButtonColor:var(--fa-raised)!important;--neutralButtonText:var(--fa-text)!important;--neutralButtonHover:#414e5e!important;
 --primaryButtonText:var(--fa-primary-text)!important;--secondaryButtonText:var(--fa-secondary-text)!important;--darkButtonText:var(--fa-dark-button-text)!important;
}
/* Outline controls inherit the colour of their actual surface, including in light mode. */
:is(.site-root,dialog) .btn.ghost{color:inherit;border-color:currentColor}
:is(.site-root,dialog) .btn.ghost:hover{color:#fff}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.btn.primary,.btn.primary:hover){color:var(--fa-primary-text)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) .btn.primary:hover{color:var(--fa-primary-hover-text)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .dashboard-public-link{color:var(--fa-secondary-text)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .dashboard-public-link:hover{color:var(--fa-secondary-hover-text)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,dialog) .btn.dark:hover{color:var(--fa-dark-hover-text)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.code,.listing-access-notice,.listing-trend,.machine-placeholder,.company-logo-fallback,.menu-level,.menu-drag-ghost,.account-steps li,.listing-status-badge,.ap-status,.professional-record,.professional-check-grid label,.role-option,.role-chip,.quote-lines){background:var(--fa-inset)!important;color:var(--fa-text)!important;border-color:var(--fa-border)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.badge,.status-sold,.access-read,.role-access-read,.cc-status-in_progress,.cc-priority-normal){background:#243a55!important;color:#d1e5ff!important;border-color:var(--fa-border)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.status-active,.user-status-active,.access-write,.role-access-write,.cc-status-resolved,.ap-approved,.ap-paid,.wa-window.open,.support-alert:not(:empty),.support-status[data-status=resolved],.support-status[data-status=closed]){background:#193d30!important;color:#b8efd6!important;border-color:#3b8266!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.status-draft,.ap-review,.ap-recognition-review,.email-dialog #emailDialogMessage:not(:empty),.crm-deal-dialog #crmEditMessage:not(:empty),#apFeedback:not(:empty),.maintenance-state.is-active,.support-status[data-status=new],.support-status[data-status=open],.support-status[data-status=waiting_customer],.support-status[data-status=waiting_internal]){background:#45391f!important;color:#ffe2a0!important;border-color:#897141!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.ap-rejected,.security-alert,.user-status-suspended,.support-error:not(:empty)){background:#47252b!important;color:#ffd3da!important;border-color:#a2525d!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.cc-status-spam,.cc-status-archived,.cc-priority-low,.access-none,.role-access-none){background:var(--fa-raised)!important;color:var(--fa-muted)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.crm-list-row small,.crm-list-row>div>span,.crm-column header small,.crm-deal-card span,.crm-deal-card small,.crm-data-table td small,.crm-deal-panel dt,.crm-deal-preview dt,.crm-timeline-entry p,.crm-deal-aside .field span,.crm-drag-handle,.crm-deal-panel .muted,.cc-table small,.cc-message-meta span,.cc-message small,.role-option small,.access-table td:first-child small,.menu-item-options summary,.listing-admin-table small,.rfq-table small,.rfq-match small,[data-dossier-content] small,#rfqTimeline small,.wa-bubble small,.email-deal-row p,.maintenance-toggle small,.maintenance-form small,.plan-price small,.support-ticket small,.support-ticket span,.support-empty p,.support-metrics small,.support-message-content small){color:var(--fa-muted)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.success-text,.ap-overdue,.ap-recognition-warnings,#accountError,#verificationError,#onboardingError){color:#ffd3a3!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) .success-text{color:#b8efd6!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.support-ticket,.support-ticket:hover,.support-ticket:focus-visible,.support-inbox-title,.support-empty,.support-thread article,.support-message-content,.support-private-message .support-message-content){background:var(--fa-surface)!important;color:var(--fa-text)!important;border-color:var(--fa-border)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.crm-stage-track button,.crm-status-actions button){background:var(--fa-raised);color:var(--fa-text);border-color:var(--fa-border)}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) :is(.crm-stage-track button.current,.crm-stage-track button.reached){background:#45391f;color:#ffe2a0}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .crm-status-actions [data-status=won]{background:#193d30;color:#b8efd6}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .crm-status-actions [data-status=lost]{background:#47252b;color:#ffd3da}
/* The email document editor and exported previews retain their document colours. */
html:is([data-cms-theme=dark],[data-site-theme=dark]) .fa-template-content{background:#fff;color:#202830;color-scheme:light}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .fa-template-preview-wrap{background:var(--fa-inset)}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.sanne-panel,.sanne-log,.sanne-bubble,.sanne-examples,.sanne-form,.sanne-panel footer){background:var(--fa-surface)!important;color:var(--fa-text)!important;border-color:var(--fa-border)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.sanne-bubble strong,.sanne-source,.sanne-panel footer a,.sanne-status:not(:empty)){color:#ffdc88!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .sanne-bubble.user{background:#303c4b!important;color:var(--fa-text)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.sanne-form textarea,.sanne-examples button,.sanne-panel footer button){background:var(--fa-inset)!important;color:var(--fa-text)!important;border-color:var(--fa-border)!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .sanne-panel .sanne-form button:not([type=button]){background:#f3c316!important;color:#141414!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .sanne-panel .sanne-form button:not([type=button]):hover{background:#ddb00e!important;color:#141414!important}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .sanne-panel .sanne-form textarea::placeholder{color:var(--fa-muted);opacity:1}
html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.touch-sheet-items>select,.touch-sheet-items>a,.touch-sheet-items>button){background:var(--fa-inset);color:var(--fa-text);border-color:var(--fa-border)}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .fa-cookie-toast{background:var(--fa-surface);color:var(--fa-text);border-color:var(--fa-border)}
html:is([data-cms-theme=dark],[data-site-theme=dark]) .site-dashboard .eyebrow{color:#ffdc88}
html:is([data-cms-theme=dark],[data-site-theme=dark]) body :is(.site-root,.cms-standalone,dialog) :is(.btn.primary,.dashboard-public-link) :is(span,small,strong){color:inherit!important}

html:is([data-cms-theme=dark],[data-site-theme=dark]) :is(.site-root,.cms-standalone,dialog) .ap-vat-calculator{background:var(--fa-inset);color:var(--fa-text);border-color:var(--fa-border)}
