/* Shared screen theme. Print deliberately uses the original light stylesheet. */
.rscg-theme-bar{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:8px 20px;background:#fff;color:#243c50;border-bottom:1px solid #d6e1e9;font:600 13px 'Segoe UI',Arial,sans-serif;position:relative;z-index:20;min-height:48px}
.rscg-theme-bar select{width:auto;min-width:100px;padding:6px 12px;border:1px solid #aabac8;border-radius:8px;background:#fff;color:#152d42;font:inherit}
.rscg-theme-bar select:focus-visible{outline:3px solid #218ed6;outline-offset:2px}
.rscg-theme-bar label{margin:0;display:block;color:inherit}
img[src*="rscg-logo.png"]{object-fit:contain;filter:none!important;mix-blend-mode:normal!important}
.document-brand-logo{width:210px;max-width:100%;height:100px;object-fit:contain;background:#fff;border-radius:8px;padding:8px}
@media screen {
 html[data-theme="dark"]{color-scheme:dark;--bg:#080b10;--panel:#141a22;--text:#f0f4fa;--ink:#f0f4fa;--muted:#afbdce;--border:#344252;--line:#344252;--pale:#19222d;--soft:#19222d;--sky:#173e5b}
 html[data-theme="dark"] body:not(:where(.email-preview *, .dialog-preview *)){background:#080b10!important;color:#f0f4fa!important}
 html[data-theme="dark"] :is(main,.main,.main-content,.app-shell,.page,.page-shell,.intake-page){background:#080b10!important;color:#f0f4fa}
 html[data-theme="dark"] :is(header,.topbar,.site-top,.rscg-theme-bar,dialog,section,[class$="-card"],[class$="-panel"],.card,.panel,.estimate-paper,.customer-paper,.customer-estimate,.body,.footer,.meta>div,.payment,.autocomplete-results,.autocomplete-option,.pipeline-card,.pipeline-column,.saved-estimate-card):not(:where(.email-preview *, .dialog-preview *)){background:#141a22!important;color:#f0f4fa!important;border-color:#344252!important;background-image:none!important}
 html[data-theme="dark"] :is(h1,h2,h3,h4,h5,label,p,small,strong,span,td,th,li,.label,.note,.internal-note,.line-number):not(:where(.email-preview *, .dialog-preview *)){color:inherit}
 html[data-theme="dark"] :is(input,textarea,select,option):not(:where(.email-preview *, .dialog-preview *)){background:#0e141c!important;color:#f5f7fb!important;border-color:#405269!important}
 html[data-theme="dark"] :is(input,textarea)::placeholder{color:#a9b7c8!important}
 html[data-theme="dark"] :is(.item-row>*,.estimate-item-rscg>*,.estimate-item-v1,.calculated-cell,.totals,.totals-card>div,.meta-grid,.summary-grid,table,tr,td):not(:where(.email-preview *, .dialog-preview *)){background:#141a22!important;color:#f0f4fa!important;border-color:#344252!important}
 html[data-theme="dark"] :is(.private,.internal-cell,.totals-card .internal):not(:where(.email-preview *, .dialog-preview *)){background:#202a36!important;color:#ecf2f9!important}
 html[data-theme="dark"] :is(.section-row,.estimate-section-row,.customer-section-line td,.customer-table .section td,.column-head,.estimate-line-head,.group-head span:first-child,.customer-group,th):not(:where(.email-preview *, .dialog-preview *)){background:#143c59!important;color:#d9efff!important;border-color:#326482!important}
 html[data-theme="dark"] :is(.section-row,.estimate-section-row) input:not(:where(.email-preview *, .dialog-preview *)){background:transparent!important;color:#e3f4ff!important}
 html[data-theme="dark"] :is(.internal-group,.group-head span:last-child):not(:where(.email-preview *, .dialog-preview *)){background:#344150!important;color:#eef4fb!important}
 html[data-theme="dark"] :is(.secondary,.secondary-btn,.ghost-btn,.text-btn,.phone-btn,.section-add-row,.section-add-row-v1):not(:where(.email-preview *, .dialog-preview *)){background:#1b3045!important;color:#cbeaff!important;border-color:#3c6586!important}
 html[data-theme="dark"] :is(.primary,.primary-btn,.submit-btn,.accept-btn,.print-btn):not(:where(.email-preview *, .dialog-preview *)){background:#1679b9!important;color:white!important}
 html[data-theme="dark"] :is(.remove,.item-remove-v1):not(:where(.email-preview *, .dialog-preview *)){color:#ff9ca6!important}
 html[data-theme="dark"] :is(.sidebar,.system-sidebar):not(:where(.email-preview *, .dialog-preview *)){background:#080e16!important}
 html[data-theme="dark"] a:not(:where(.email-preview *, .dialog-preview *)){color:#7cc9ff}
 html[data-theme="dark"] :is(.auth-shell,.auth-screen,.dropzone,.empty,.saved-estimate,.stat-card,.customer-summary,.estimate-customer-summary,.form-section,.input-suffix,.project-number-box,.receipt-banner,.warranty,.customer-warranty,.customer-deposit,.balance-box,.badge,.step-chip,.percent-input,.multiplier-readout,.assumptions .readonly strong,.assumptions b):not(:where(.email-preview *, .dialog-preview *)){background:#1b2836!important;color:#e3edf8!important;border-color:#344252!important;background-image:none!important}
 html[data-theme="dark"] :is(.profit,.paid,.ok,.success):not(:where(.email-preview *, .dialog-preview *)){color:#73e0b0!important}
 html[data-theme="dark"] :is(.signature-wrap,canvas):not(:where(.email-preview *, .dialog-preview *)){background:white!important;color:#172938!important}
 html[data-theme="dark"] img[src*="rscg-logo.png"]:not(:where(.email-preview *, .dialog-preview *)){background:#f3f6fa!important;border-radius:8px!important;padding:8px;box-sizing:border-box}
 /* Sidebar logos retain their transparent edges and use brighter brand colors.
    Keep the light-theme artwork and document/print logo treatment unchanged. */
 html[data-theme="dark"] :is(.sidebar,.system-sidebar,.rossi-gallery-system-sidebar) img.sidebar-logo[src*="rscg-logo.png"]:not(:where(.email-preview *, .dialog-preview *)){
   background:transparent!important;
   border-radius:0!important;
   padding:0!important;
   box-shadow:none!important;
   filter:invert(1) hue-rotate(180deg) brightness(1.35)!important;
 }
 /* Estimate editor surfaces use the same dark palette as the surrounding panel. */
 html[data-theme="dark"] #estimatesView :is(.estimate-editor-top,.estimate-save-bar,.estimate-library-head,.estimate-library-search){
   background:#141a22!important;
   background-image:none!important;
   color:#f0f4fa!important;
   border-color:#344252!important;
 }
 html[data-theme="dark"] #estimatesView .estimate-share-bar{
   background:#192b3b!important;
   background-image:none!important;
   color:#e3edf8!important;
   border-color:#3c6586!important;
 }
 html[data-theme="dark"] #estimatesView :is(.estimate-kicker,.estimate-share-copy strong){color:#7cc9ff!important}
 html[data-theme="dark"] #estimatesView :is(#estimateEditorHint,.section-help,.estimate-share-copy span,#estimateSaveMsg){color:#afbdce!important}
 html[data-theme="dark"] #estimatesView #estimateSaveMsg.ok{color:#73e0b0!important}
 html[data-theme="dark"] #estimatesView #estimateSaveMsg.error{color:#ff9ca6!important}
 html[data-theme="dark"] #estimatesView .danger-btn{
   background:#3a2028!important;
   color:#ffb6bf!important;
   border-color:#85434e!important;
 }
 html[data-theme="dark"] #estimatesView :is(.estimate-top-actions,.estimate-save-actions) button:disabled{
   background:#19222d!important;
   color:#9aa8bb!important;
   border-color:#344252!important;
   box-shadow:none!important;
   opacity:1!important;
 }
 html[data-theme="dark"] #estimatesView :is(.estimate-top-actions,.estimate-save-actions) .secondary-btn:hover:not(:disabled){background:#25445d!important}
 html[data-theme="dark"] #estimatesView :is(.estimate-top-actions,.estimate-save-actions) button:focus-visible{outline:2px solid #7cc9ff;outline-offset:3px}
 /* Shared cards, drawers and notices that have their own light surface colors. */
 html[data-theme="dark"] :is(
   .metric,.schedule-shell,.appointment-edit-info,.view-filter-bar,
   .pipeline-total,.pipeline-guide,.pipeline-stage,.pipeline-stage-head,.pipeline-stage-count,
   .pipeline-contact-action,.pipeline-step-btn,.pipeline-stage-picker,.pipeline-stage-choice,
   .pipeline-appointment-help,.pipeline-message-hint,.autocomplete-group-label,
   .customer-profile-shell,.customer-profile-head,.customer-profile-field,.customer-profile-project,
   .customer-profile-footer,.profile-list-row,.profile-note,
   .appointment-address-box,.appointment-detail-shell,.appointment-detail-head,
   .appointment-detail-field,.appointment-detail-actions,.appointment-contact-link,
   .users-security-note,.permission-editor,.permission-option,.user-active-toggle,
   .room-picker-header,.room-picker-toggle,.room-action,.room-chip,
   .estimate-grid-scroll,.estimate-line-head-rscg,.estimate-total>div,
   .percent-input span,.multiplier-readout span,.multiplier-readout strong,.deposit-percent-field span,
   .engine-status,.selected-counter,.service-filter-wrap,.service-chip,.mini-tag,
   .design-tools,.creative-studio,.creative-model-badge,.generated-concept,
   .preview-shell,.preview-meta,.gallery-picker-grid,.history-pill,
   .flyer-business-lock,.flyer-empty,.flyer-empty-icon,.flyer-canvas-wrap,.flyer-brief>div,
   .flyer-campaign-mode,.flyer-campaign-mode-icon,.flyer-brand-kit,
   .dialog-shell,.dialog-head,.dialog-actions,.invoice-items,.invoice-items-head,
   .invoice-payment-summary,.payment-row,.check-line,.quick-receipt-callout,
   .quick-customer-snapshot>div,.quick-customer-suggestions,.quick-suggestion,
   .scan-drop-zone,.scan-camera-icon,.scan-preview-wrap,.scan-pdf-preview,.scan-progress,
   .expense-editor,.expense-items-table,.expense-items-head,.expense-archive-summary>div,
   .expense-detail-grid>div,.expense-detail-totals,.expense-detail-note,
   .intake-header,.intake-footer,.section-title>span,.receipt-card .field,
   .receipt-card .description,.receipt-card .thanks,.estimate-preview-paper,
   .collab-bar,.collab-history-row
 ){
   background:#1b2836!important;
   background-image:none!important;
   color:#e3edf8!important;
   border-color:#344252!important;
 }
 html[data-theme="dark"] :is(.pipeline-mini-badge,.user-role-badge,.user-status-badge,.user-access-pill,.status,.confidence-badge,.customer-profile-section-head>span){
   background:#26384b!important;color:#d8e5f3!important;border-color:#405269!important;
 }
 html[data-theme="dark"] :is(.pipeline-move-stage-btn,.appointment-map-link,.pipeline-stage-choice.current,.service-chip:has(input:checked),.estimate-saved-card.active){
   background:#143c59!important;color:#d9efff!important;border-color:#4f8bb7!important;
 }
 html[data-theme="dark"] .pipeline-move-stage-btn>span:first-child{background:#254e6b!important;color:#d9efff!important}
 html[data-theme="dark"] :is(.pipeline-card.followup-recent,.pipeline-card.appointment-soon,.appointment-card.appointment-soon,.estimate-accepted-banner,.warranty-callout,.accepted-top,.accepted-signature){
   background:#15352b!important;background-image:none!important;color:#c6f4de!important;border-color:#367d60!important;
 }
 html[data-theme="dark"] :is(.pipeline-card.followup-due,.pipeline-card.appointment-tomorrow,.appointment-card.appointment-tomorrow,.send-readiness,.quick-edit-banner,.accountant-note,.permission-parent-note,.internal-profile-note,.revoke-estimate-warning,.revoke-estimate-lost-option){
   background:#3b301b!important;background-image:none!important;color:#ffe4a6!important;border-color:#806638!important;
 }
 html[data-theme="dark"] :is(.pipeline-card.appointment-today,.appointment-card.appointment-today,.estimate-revoked-banner){
   background:#3a2028!important;background-image:none!important;color:#ffb6bf!important;border-color:#85434e!important;
 }
 html[data-theme="dark"] :is(.badge.green,.status-paid,.confidence-high,.user-status-badge.active,.quick-success-icon,.success-icon,.check,.pipeline-followup-badge.followup-recent,.appointment-urgency-badge.appointment-soon){background:#174b39!important;color:#a5f0ce!important;border-color:#367d60!important}
 html[data-theme="dark"] :is(.badge.amber,.status-partially-paid,.confidence-medium,.pipeline-followup-badge.followup-due,.appointment-urgency-badge.appointment-tomorrow){background:#554019!important;color:#ffe4a6!important;border-color:#806638!important}
 html[data-theme="dark"] :is(.badge.red,.confidence-low,.user-status-badge.inactive,.appointment-urgency-badge.appointment-today){background:#532731!important;color:#ffc3cb!important;border-color:#85434e!important}
 html[data-theme="dark"] :is(.status-draft,.creative-model-badge){background:#352c55!important;color:#e0d3ff!important;border-color:#706097!important}
 html[data-theme="dark"] :is(.icon-btn,.room-picker-close,.password-toggle,.ai-btn){background:#1b3045!important;background-image:none!important;color:#cbeaff!important;border-color:#3c6586!important}
 html[data-theme="dark"] :is(.danger-btn,.danger-outline-btn,.remove-row-btn){background:#3a2028!important;color:#ffb6bf!important;border-color:#85434e!important}
 html[data-theme="dark"] :is(.danger-text-btn,.danger-link,.msg.err,.save-message.error,.form-msg.error){color:#ff9ca6!important}
 html[data-theme="dark"] :is(.msg.ok,.save-message.ok,.form-msg.ok){color:#73e0b0!important}
 html[data-theme="dark"] :is(.table-primary-link,.customer-name,.eyebrow,.auth-brand,.intake-kicker){color:#7cc9ff!important}
 html[data-theme="dark"] :is(.muted,.filter-label,.audience-note,.generated-concepts-label,.quick-result-meta,.quick-email-note,.line-custom-note,.empty-state-inline){color:#afbdce!important}
 html[data-theme="dark"] :is(.quick-result-amount,.item-line-amount){color:#f0f4fa!important}
 html[data-theme="dark"] :is(.metric,.pipeline-contact-action,.pipeline-stage-choice,.room-picker-toggle,.room-action,.quick-suggestion,.service-chip):hover{background:#25445d!important;color:#e3edf8!important}
 html[data-theme="dark"] .permission-subgroup.parent-off .permission-tool-option{background:#202a36!important}
 html[data-theme="dark"] .room-check:hover{background:#25445d!important}
 html[data-theme="dark"] :is(.scan-drop-zone,.dropzone,.flyer-empty){border-color:#60758c!important}
 html[data-theme="dark"] .estimate-line-head-rscg span:nth-child(n+7){background:#344150!important;color:#eef4fb!important;border-color:#405269!important}
 html[data-theme="dark"] :is(.pipeline-card-service,.pipeline-card-address,#editCustomerDialog .dialog-head p,.top-contact,.customer-business-meta){color:#afbdce!important}
 html[data-theme="dark"] :is(.profile-eyebrow,.appointment-detail-eyebrow,.table-link,.receipt-btn){color:#7cc9ff!important}
 html[data-theme="dark"] :is(legend,.stack-card .amount,.brand){color:#e3edf8!important}
 html[data-theme="dark"] :is(#invoiceBalance,.payment-row .payment-amount){color:#73e0b0!important}
 html[data-theme="dark"] :is(.gallery-logout-btn,.collab-dialog button){background:#1b3045!important;color:#cbeaff!important;border-color:#3c6586!important}
 html[data-theme="dark"] .send-btn{background:#1679b9!important;color:#fff!important;border-color:#3c6586!important}
 html[data-theme="dark"] .send-btn:disabled{background:#19222d!important;color:#afbdce!important;border-color:#344252!important;opacity:1!important}
 html[data-theme="dark"] :is(.customer-estimate-footer,.document-footer){color:#afbdce!important}
 html[data-theme="dark"] :is(.estimate-title>div,.signature-label){color:#e3edf8!important}
 html[data-theme="dark"] :is(.deposit,.payment .amt){color:#73e0b0!important}
 html[data-theme="dark"] #signHint{color:#526a7c!important}
 html[data-theme="dark"] :is(.email-preview,.dialog-preview){color:#203d56!important}
}
@media print{.rscg-theme-bar{display:none!important}html{color-scheme:light}}
