/* Screen-only themes leave printed proposals and generated PDFs unchanged. */
.qp-appearance select{max-width:340px}.qp-appearance #qp-theme-status:empty{display:none}
@media screen{
 html[data-theme=light]{color-scheme:light}
 html[data-theme=dark]{color-scheme:dark;--ink:#e6edf3;--muted:#a9b8c6;--teal:#3265df;--line:#354654;--bg:#101920;background:var(--bg);color:var(--ink)}
 html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
 html[data-theme=dark] header{background:#122633;color:#e6edf3}
 html[data-theme=dark] :is(.card,dialog,form,.record,section:not(#view-build):not(#view-jobs):not(#view-company),details,.foreman-composer){background:#192731;color:#e6edf3;border-color:#354654}
 html[data-theme=dark] :is(.fields,.trade-section,.scope-summary,details.card .tool-content){background:transparent}
 html[data-theme=dark] :is(input,textarea,select){background:#101c25;color:#e6edf3;border-color:#4a6071}
 html[data-theme=dark] :is(input,textarea,select):disabled{background:#23323e;color:#a9b8c6}
 html[data-theme=dark] #jobDescription[readonly]{background:#172f35}
 html[data-theme=dark] :is(label,small,details,summary,.fine,.muted,.eyebrow,.hint,.step,.empty,.version,.aside-note,.job-row small,.qp-preview-info>summary){color:#a9b8c6}
 html[data-theme=dark] :is(h1,h2,h3,h4,strong,b,details.card>summary){color:inherit}
 html[data-theme=dark] :is(a,.quiet,.ai-panel summary){color:#9fbcff}
 html[data-theme=dark] :is(button,.primary,.capture){background:#2858cc;color:#fff;border-color:#4d77d8}
 html[data-theme=dark] :is(button.secondary,.file-button,button.quiet){background:#253745;color:#e6edf3;border-color:#4a6071}
 html[data-theme=dark] :is(nav button,nav a,aside nav a){background:transparent;color:#b9c9d7}
 html[data-theme=dark] :is(nav button.active,nav button[aria-pressed=true],nav a[aria-current],nav a:hover){background:#263f5a;color:#d4e2ff}
 html[data-theme=dark] :is(.notice,#status:not(:empty)){background:#183336;color:#bde5da;border-color:#38635e}
 html[data-theme=dark] .notice button{background:transparent;color:#bde5da}
 html[data-theme=dark] :is(#cloudStatus,.best){color:#9cdeca}
 html[data-theme=dark] :is(.warn,#status){color:#f0c48a}
 html[data-theme=dark] .error{color:#ffafaf!important}
 html[data-theme=dark] :is(.line-table th,.proposal-table .group){background:#253745;color:#b9c9d7}
 html[data-theme=dark] :is(td,.sumrow,.cost-box,.rate-row,.file-tile,.measurement-card,.quote,.scope-row,.permit-result,.ai-panel){border-color:#354654}
 html[data-theme=dark] .foreman-turn{background:#253745;color:#e6edf3}
 html[data-theme=dark] .foreman-turn.user{background:#233c60}
 html[data-theme=dark] :is(#crewPreview pre,#visionResults article,.pdf-badge,.file-tile img,.plan-stage){background:#253745;color:#d4e2ff}
 html[data-theme=dark] #qp-mobile-nav{background:#192731;border-color:#354654}
 html[data-theme=dark] #qp-mobile-nav button{background:transparent;color:#b9c9d7}
 html[data-theme=dark] #qp-mobile-nav button.active{background:#263f5a;color:#d4e2ff}
 html[data-theme=dark] #qp-mobile-nav button[data-mobile=foreman]{background:#2858cc;color:white}
 html[data-theme=dark] #qp-mobile-more{background:#192731;color:#e6edf3;border-color:#354654}
 html[data-theme=dark] :is(#qp-mobile-more a,#qp-mobile-more>button,#qp-close-more){background:#253745;color:#e6edf3}
 html[data-theme=dark] :is(button,a,input,select,textarea):focus-visible{outline:3px solid #a4c0ff;outline-offset:3px}
 /* Client proposal preview stays paper-like, as do exported documents. */
 html[data-theme=dark] #proposal{--ink:#142b39;--muted:#60717b;--line:#dae3e6;background:white;color:#142b39;color-scheme:light}
 html[data-theme=dark] #proposal :is(td,.dialog-actions){border-color:#dae3e6}
 html[data-theme=dark] #proposal .group{background:#edf5f4;color:#142b39}
}
