/* Appearance uses calm, layered surfaces; proof and photo pixels are never filtered. */
:root{--surface:#fff;--surface-raised:#f5f8fa;--ink:#203747;--muted:#5a7182;--line:#c7d4de;--field:#fff;--focus:#217da6;color-scheme:light}
:root[data-theme=dark]{--surface:#20272d;--surface-raised:#2a333c;--ink:#dce3e8;--muted:#afbec9;--line:#52636f;--field:#252e36;--focus:#80b9d5;color-scheme:dark;background:#171d22;color:var(--ink)}
.settings-dropdown{position:fixed;z-index:60;width:min(360px,calc(100vw - 24px));overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:15px;box-shadow:0 12px 35px #0a172538;font-size:13px}.settings-menu-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-menu-header>button{padding:2px 8px;font-size:20px;border:0;background:transparent;color:var(--muted)}.settings-version{display:block;color:var(--muted);margin:3px 0 17px}.settings-dropdown h3{font-size:12px;margin:0 0 8px}.theme-options{display:flex;gap:5px;margin-bottom:14px}.theme-choice{flex:1;background:var(--field);color:var(--ink);border:1px solid var(--line);padding:8px;font-size:12px}.theme-choice[aria-checked=true]{background:#e4eff5;border-color:#5386a3;color:#234b63;font-weight:750}.settings-dropdown .settings-choice{margin:3px 0;padding:10px 4px;border:0;background:transparent;color:var(--ink);font-size:12px;border-radius:5px}.settings-dropdown .settings-choice:hover{background:var(--surface-raised)}.settings-save-state{display:block;min-height:16px;font-size:10px;color:var(--muted);margin-top:7px}.settings-admin{border-top:1px solid var(--line);margin-top:8px;padding-top:10px}.settings-admin>small{font-size:9px;letter-spacing:.08em;color:var(--muted)}.notification-settings[hidden]{display:none}.settings-help{font-size:11px;line-height:1.5;color:var(--muted)}.notification-settings fieldset{padding:7px 0;margin:14px 0 0;border:0;border-top:1px solid var(--line)}.notification-settings legend{font-size:11px;font-weight:750;padding:0 5px 0 0;color:var(--muted)}.notification-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;padding:8px 0;line-height:1.35;cursor:pointer}.notification-switch input{appearance:none;flex:0 0 30px;width:30px;height:18px;border:1px solid #8597a4;border-radius:15px;position:relative;background:#d1dbe2;margin:0;cursor:pointer}.notification-switch input:before{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #0003}.notification-switch input:checked{background:#37758e;border-color:#37758e}.notification-switch input:checked:before{left:14px}.notification-switch input:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.card-archive,.detail-archive{box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;padding:0!important}.card-archive svg,.detail-archive svg{display:block;flex:0 0 17px;width:17px;height:17px}.card-complete:hover,.card-complete:focus-visible,#detail .detail-cover>.detail-completion:hover,#detail .detail-cover>.detail-completion:focus-visible{z-index:12}.card-complete:after,.detail-completion:after{z-index:20}.share-project{flex:0 0 34px}.approval-views label{display:block;margin:9px 0}.upload-result-name{color:#244357}
:root[data-theme=dark] body{background:#171d22;color:var(--ink)}
:root[data-theme=dark] main{background-color:#171d22!important;background-blend-mode:multiply}
:root[data-theme=dark] .appbar,:root[data-theme=dark] .team-head{background:#182129;color:var(--ink)}
:root[data-theme=dark] #boardControls{background:#20272d;color:var(--ink);border-color:#46545f}
:root[data-theme=dark] :is(h1,h2,h3,h4,.project-title-edit,.customer-title,.customer-company,.customer-name,.team-message-text,.team-question-text,.team-attachment-title){color:var(--ink)}
:root[data-theme=dark] :is(.quiet,.field-label,.kicker,.count,.heading p,.contact-value,.attachment-date,.archive-date,.team-question-author,.notification-context,.picker-hint,.customer-card-body small,.date-group small,.chat-room-header small){color:var(--muted)!important}
:root[data-theme=dark] :is(button,input,select,textarea){color:var(--ink);background-color:var(--field);border-color:var(--line)}
:root[data-theme=dark] :is(input,textarea)::placeholder{color:#a2b1bd;opacity:1}
:root[data-theme=dark] :is(button.primary,.primary){background:#365f73;color:#edf2f5;border-color:#5b8194}
:root[data-theme=dark] button:hover:not(.cover):not(.attachment-preview):not(.detail-cover-image){filter:brightness(1.1)}
:root[data-theme=dark] :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
:root[data-theme=dark] :is(dialog,.workflow-popover,.settings-dropdown,.team-sidebar,.chat-dialog,.team-toast,.chat-toast,.release-notice,.upload-queue){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 12px 35px #080c1266}
:root[data-theme=dark] dialog::backdrop{background:#050a10aa}
:root[data-theme=dark] :is(.dialogtop,.staff-directory .dialogtop,.team-settings .dialogtop){background:var(--surface)}
:root[data-theme=dark] .lane{background:color-mix(in srgb,var(--lane-light,#8192a3) 17%,#232b32)!important}
:root[data-theme=dark] :is(.card,.customer-card,.team-message,.team-question,.question-card,.attention-card){background:#242d35;color:var(--ink);border-color:#45545f}
:root[data-theme=dark] :is(.card .body,.customer-card-body){background:#242d35}
:root[data-theme=dark] :is(.cover,.attachment-preview,.detail-cover,.customer-photo){background:#2e363d}
:root[data-theme=dark] :is(.card-complete,.card-archive,.detail-archive,#detail .detail-cover>.detail-completion,#detail .detail-cover>.detail-archive,#detail>.detail-close){background:#2c3842;color:#c6ddd0;border-color:#71847b}
:root[data-theme=dark] :is(.card-complete.is-complete,.detail-completion.is-complete){background:#2d493d!important;color:#b7e1c1;border-color:#6a9d7b}
:root[data-theme=dark] :is(.card-complete:after,.detail-completion:after){background:#374753;color:var(--ink);border-color:#5c7281}
:root[data-theme=dark] :is(.chip,.badge,.status-note,.priority,.tag,.completed-chip,.contact-purpose,.team-chip,.people-name-chip){background:#35414d;color:#d3e0e9;border-color:#5e7383}
:root[data-theme=dark] .adaptive-color{background:color-mix(in srgb,var(--tag-original,#9bafbe) 22%,#25303a)!important;color:#e1e7eb!important;border-color:color-mix(in srgb,var(--tag-original,#9bafbe) 50%,#425360)!important}
:root[data-theme=dark] :is(.board-location.design,.badge.design){background:#4f323c;color:#f1bdc6}
:root[data-theme=dark] :is(.board-location.production,.badge.production){background:#2b425b;color:#b9d4ee}
:root[data-theme=dark] :is(.board-location.install,.badge.install){background:#41484f;color:#dce0e4}
:root[data-theme=dark] .priority.high{background:#5b323d;color:#f4bdc8}:root[data-theme=dark] .priority.low{background:#2c4357;color:#c2d8ec}
:root[data-theme=dark] :is(.date-overdue,.photo-warning,.error){background:#4a3039!important;color:#f0b4c0!important;border-color:#936371}
:root[data-theme=dark] .date-today{background:#51452b!important;color:#f0d8a2!important;border-color:#9e8c5c}
:root[data-theme=dark] .date-tomorrow{background:#444634!important;color:#dfe4ab!important;border-color:#7c865b}
:root[data-theme=dark] :is(.completed-date,.proof-approved,.proof-approved-view){background:#29463a!important;color:#b2ddbf!important;border-color:#679b78}
:root[data-theme=dark] :is(.note-section,.customer-section,.customer-collapsed,.quote-section,.compact-quote,.customer-profile-summary,.customer-profile-contacts .contact,.contact){background:#262f37;border-color:#455967;color:var(--ink)}
:root[data-theme=dark] :is(.note-value,.production-value,.production-path,.production-material-row>div,.field-option-value,.field-suggestions,.inline-editor,.draft-editor,.attachment-label-host .inplace-notes,.revision-notes .entry,.revision-placeholder){background:#2c3741!important;color:var(--ink)!important;border-color:#526675!important}
:root[data-theme=dark] :is(.memo-text,.memo-tooltip,.attention,.exception-notes){background:#453f2f;color:#e1d5ad;border-color:#887b51}
:root[data-theme=dark] .memo-text.empty{background:transparent;color:#b5b3a2}
:root[data-theme=dark] :is(.team-attention,.project-questions){background:#302f2b!important;border-color:#72674e!important;color:var(--ink)}
:root[data-theme=dark] :is(.team-question-attachment,.team-attachment,.team-question-recipient,.team-answer-button,.team-answer,.team-resolved){background:#304354;color:#d7e5ef;border-color:#526d80}
:root[data-theme=dark] .attachment-section{background:#222b33;border-color:#465866;--section-tint:#2d3b45}
:root[data-theme=dark] .attachment-proof{--section-tint:#293f48;--section-accent:#7faebd}:root[data-theme=dark] .attachment-before{--section-tint:#473039;--section-accent:#c58b96}:root[data-theme=dark] .attachment-drop-off{--section-tint:#443c2e;--section-accent:#c2ac78}:root[data-theme=dark] .attachment-completed{--section-tint:#2d4337;--section-accent:#91b982}:root[data-theme=dark] .attachment-examples{--section-tint:#3c3449;--section-accent:#b2a0cb}
:root[data-theme=dark] :is(.attachment-empty,.attachment-upload,.imported-section,.archive details,.proof-action-list,.previous-proof-revisions,.detail-drag-gap){background:#2b3640;color:var(--muted);border-color:#5b7080}
:root[data-theme=dark] :is(.attachment-section>summary,.proof-revision-heading){color:var(--ink)}
:root[data-theme=dark] :is(.attachment-label,.link-button,.team-link,.customer-profile-link,.calendar-nav button,.chat-room-title){color:#b3d5e9}
:root[data-theme=dark] :is(.attachment-count,.proof-version,.team-count){background:#35434e;color:#c6d4df;border-color:#546875}
:root[data-theme=dark] :is(.chat-navigation,.chat-room-header,.chat-compose-host,.team-body,.chat-room-panel){background:#222c35;color:var(--ink);border-color:#465b6b}
:root[data-theme=dark] :is(.chat-room.active,.chat-conversation-option.active,.team-sidebar.is-minimized .chat-room.active){background:#385366;color:#dceaf3}
:root[data-theme=dark] :is(.chat-conversation-menu,.team-suggestions,.chat-reaction,.chat-emoji,.team-notification,.chat-image-draft){background:#2b3945;color:var(--ink);border-color:#526979}
:root[data-theme=dark] :is(.chat-conversation-option,.team-suggestion,.chat-room){background:transparent;color:var(--ink)}
:root[data-theme=dark] :is(.theme-choice[aria-checked=true],.calendar-day.selected){background:#3e5d73;color:#e3edf4;border-color:#7dabc7}
:root[data-theme=dark] .calendar-day.in-range{background:#334a5c}
:root[data-theme=dark] :is(.upload-success,.upload-result-status.saved){background:#284337;color:#b3dcbf;border-color:#639277}
:root[data-theme=dark] .upload-result-name{color:var(--ink)}
:root[data-theme=dark] .upload-result-status.failed{color:#f0adba}
:root[data-theme=dark] .signin-button{background:#355e74;color:#e9eff4}
:root[data-theme=dark] .settings-dropdown .settings-choice{color:var(--ink)}
:root[data-theme=dark] :is(.customer-label,.team-message>small,.notification-type,.customer-website,.quote-field-label,.production-label,.attachment-filename){color:var(--muted)}
:root[data-theme=dark] :is(.title,.project-title-edit,.customer-title,.customer-name,.customer-company,.link-button,.team-link,.board-title-link,.calendar-nav button){background:transparent}
:root[data-theme=dark] #boardControls .controls{background:transparent;color:var(--ink)}
:root[data-theme=dark] #clearFilters,:root[data-theme=dark] #tabs button.active{background:#354655;color:var(--ink);border-color:var(--line)}
:root[data-theme=dark] .team-question-card{background:#252f37;border-color:#71654d;color:var(--ink)}
:root[data-theme=dark] :is(.team-question-card small,.team-question-attachment small,.quote-entry>small,.production-section small,.proof-reuse-hint,.proof-action-list small,.imported-section>summary){color:var(--muted)}
:root[data-theme=dark] .team-question-recipient{background:#304354;color:#c6deed!important}
:root[data-theme=dark] :is(.team-question-recipient.is-mine,.team-group-question.is-mine,.team-project-question.is-mine){background:#4a303b;color:#f2bbc8!important}
:root[data-theme=dark] .team-personal-count{color:#f2bbc8}
:root[data-theme=dark] .team-attention-toggle{background:transparent!important}
:root[data-theme=dark] .production-section .production-field{background:#2c3741;color:var(--ink);border-color:#526675}
:root[data-theme=dark] .card-quote-summary{color:#bad2c6;border-color:#50615d}
:root[data-theme=dark] .notification-switch input:checked{background:#497f97;border-color:#8bb9ce}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.usage-summary{display:grid;grid-template-columns:minmax(100px,1fr) minmax(120px,1fr);gap:10px 16px}.usage-summary dt{font-weight:600}.usage-summary dd{margin:0;overflow-wrap:anywhere}.usage-report h3{margin-top:24px}
