.workspace-theme-toggle{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:7px 10px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--muted);font-size:10px}
.workspace-theme-toggle:hover{border-color:var(--teal);color:var(--text)}
.workspace-theme-toggle span:first-child{font-size:14px}
@media(max-width:760px){.workspace-theme-toggle span:last-child{display:none}.workspace-theme-toggle{width:30px;padding:5px;justify-content:center}}

/* Light surfaces use dark text; photo bands define their own inverse palette. */
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f4f6f4;--sidebar:#fff;--panel:#fff;--panel-light:#edf3f1;
  --border:#cdd8d5;--text:#18272c;--muted:#52656b;
  --teal:#08766f;--teal-dark:#d7eeea;--orange:#e66700;--danger:#a13c32;
  background:var(--bg);
}
html[data-theme="light"] body{background:var(--bg)}
html[data-theme="light"] .sidebar{box-shadow:4px 0 20px #37584c0a}
html[data-theme="light"] .nav-item{color:#465b62}
html[data-theme="light"] .nav-item:hover{background:#eaf3ef;color:#17252b}
html[data-theme="light"] .nav-item.active{background:#e0f1ee;border-color:#bddbd5;color:#07665f}
html[data-theme="light"] .nav-item b{background:#d7eeea;color:#07665f}
html[data-theme="light"] .brand{color:#18272c}
html[data-theme="light"] .brand span{color:#c45600}
html[data-theme="light"] .user-avatar{background:#d9eeea;color:#075d58;border-color:#aacfc6}
html[data-theme="light"] .primary{background:#08766f;border-color:#08766f;color:#fff}
html[data-theme="light"] .primary:hover:not(:disabled){background:#065f59;border-color:#065f59;color:#fff}
html[data-theme="light"] .secondary{background:#fff;color:#18272c;border-color:#a8bbb8}
html[data-theme="light"] .secondary:hover:not(:disabled){background:#eaf3ef;color:#18272c;border-color:#769a92}
html[data-theme="light"] .text-button:hover{color:#064f4a}
html[data-theme="light"] .danger{background:#a13c32;border-color:#a13c32;color:#fff}
html[data-theme="light"] .skip-link{background:#08766f;color:#fff}
html[data-theme="light"] .field>span{color:#283c43}
html[data-theme="light"] .field :is(input,select,textarea){color:#18272c;background:#fff;border-color:#a8bbb8}
html[data-theme="light"] .field :is(input,textarea)::placeholder{color:#64747a}
html[data-theme="light"] .field :is(input,select,textarea):focus{border-color:#08766f;box-shadow:0 0 0 3px #08766f26}
html[data-theme="light"] .field option{background:#fff;color:#18272c}
html[data-theme="light"] :is(.panel,.stat-card,.material-card,.offer-card,.comparison-summary,.request-card,.order-card){box-shadow:0 8px 25px #2b4e4010}
html[data-theme="light"] .hero{background:linear-gradient(110deg,#e6f2ef,#eef5f3 56%,#f8eee3);border-color:#c8dbd7}
html[data-theme="light"] :is(.hero p,.hero-copy .eyebrow,.hero-footnote){color:#405e60}
html[data-theme="light"] .hero-image-label{color:#2f494c;background:#ffffffeb;border-color:#a8bfbb}
html[data-theme="light"] .login-story{background:radial-gradient(ellipse at 85% 65%,#a9ddd370,transparent 50%),linear-gradient(145deg,#e8f3f0,#f5f7f5 60%,#f8eee3)}
html[data-theme="light"] :is(.login-story p,.login-points){color:#40565b}
html[data-theme="light"] .login-story-copy .eyebrow{color:#9c4600}
html[data-theme="light"] .sample-accounts .sample{background:#fff}
html[data-theme="light"] .sample-accounts .sample:hover{background:#edf6f4}
html[data-theme="light"] .app-footer{border-color:#cdd8d5;color:#52656b}

/* Secondary copy was originally fixed to pale values for the dark workspace. */
html[data-theme="light"] :is(.login-story-footer,.sample-divider,.sample-note,.sample-note code,.login-footer,.workspace-label,.pilot-card small,.sidebar-bottom p,.user-name small,.field small,.form-footnote,.stat-card small,.material-copy>p,.material-card-footer>span,.comparison-summary p,.offer-price>span,.offer-price>small,.offer-action small,.record-id,.record-date,.request-material p,.request-material span,.order-total span,.record-bottom>span,.branch-summary small,.activity-list p,.activity-list small,.detail-grid dt,.timeline small,.timeline p,.saved-estimates p,.saved-estimates small,.mobile-pilot,.project-pending span,.project-pricing-note,.project-revision>p,.project-journey-note,.project-live-price-heading p,.project-live-price-heading .project-price-includes,.project-price-groups span,.project-price-commercial span:first-of-type,.calendar-unscheduled>strong,.calendar-all-scheduled,.calendar-legend,.project-room-costs dt,.project-room-costs small,.report-totals span,.report-totals small,.auth-acknowledgement){color:#52656b}
html[data-theme="light"] :is(.topbar-label,.pilot-card,.stat-card span:not(.stat-icon),.info-strip strong,.empty-state h3,.record-bottom>span strong,.activity-list strong,.detail-grid dd,.checkbox-field,.project-material,.project-assumptions strong,.project-procurement-state>strong,.report-structure,.project-price-groups strong){color:#253c42}
html[data-theme="light"] :is(.project-facts code,.project-history>summary,.order-total strong,.quote-summary>div>strong,.project-quantities strong,.project-room-costs dd,.report-totals strong){color:#075d58}
html[data-theme="light"] .stat-icon{background:#e1efea;color:#31685f}
html[data-theme="light"] .stat-card:nth-child(2) .stat-icon{background:#e7efdd;color:#49672e}
html[data-theme="light"] .stat-card:nth-child(3) .stat-icon{background:#fae9d7;color:#87531f}
html[data-theme="light"] .material-image{background:radial-gradient(ellipse at center,#f3f3ec,#dde8e2 80%)}
html[data-theme="light"] .material-card-footer .icon-button{background:#e7f3ef;color:#07665f;border-color:#b4d1c8}
html[data-theme="light"] :is(.info-strip,.calculator-aside,.formula,.quote-summary,.price-breakdown,.project-quantities,.project-room-costs>div,.report-totals article){background:#edf5f1;border-color:#c0d7ce;color:#253c42}
html[data-theme="light"] :is(.info-strip span,.calculator-aside p,.formula>span,.quote-dates,.price-breakdown>div,.project-quantities span,.project-quantities>div>small,.project-quantities strong small){color:#46655e}
html[data-theme="light"] .price-breakdown>div strong{color:#253c42}
html[data-theme="light"] .price-total strong{color:#075d58!important}
html[data-theme="light"] .dimension{color:#326e5d}
html[data-theme="light"] .category{background:#fff;color:#40565b;border-color:#c0d0cc}
html[data-theme="light"] .category.active{background:#dceee7;color:#075d58;border-color:#8dbbad}
html[data-theme="light"] .step-number{background:#dceee7;color:#075d58;border-color:#8dbbad}
html[data-theme="light"] .supplier-monogram{background:#f0ecdf;color:#6e582c;border-color:#d3c9ae}
html[data-theme="light"] .offer-price>strong.unknown{color:#885500}
html[data-theme="light"] .empty-state{background:#f2f6f4;border-color:#adc7be;color:#52656b}
html[data-theme="light"] :is(.waiting-note,.dialog-summary,.terms,.auth-next-step){background:#edf3f1;border-color:#c0d0cc;color:#405b61}
html[data-theme="light"] .dialog-summary span:not(.badge){color:#46616a}
html[data-theme="light"] dialog{background:#fff;color:#18272c;border-color:#a8bbb8}
html[data-theme="light"] :is(.notice,.exception-card){background:#fff2d9;border-color:#e0c28d;color:#704c14}
html[data-theme="light"] .exception-card p{color:#704c14}
html[data-theme="light"] .form-error{background:#fff0ec;border-color:#d8a095;color:#8a2e25}
html[data-theme="light"] .badge{background:#eef2f3;border-color:#c4d1d4;color:#405860}
html[data-theme="light"] .badge.green{background:#e3f3e9;border-color:#acd2ba;color:#24653e}
html[data-theme="light"] .badge.teal{background:#dcf0ec;border-color:#a4d2c9;color:#075d58}
html[data-theme="light"] .badge.amber{background:#fff0d7;border-color:#e1c190;color:#79501a}
html[data-theme="light"] th{background:#edf3f1;color:#405b61}
html[data-theme="light"] td{color:#344f56}
html[data-theme="light"] td strong{color:#18272c}
html[data-theme="light"] td small{color:#52656b}
html[data-theme="light"] .project-bom tfoot :is(th,td){background:#e4efea;color:#234f43}
html[data-theme="light"] .delivery-progress>div{color:#52656b}
html[data-theme="light"] .delivery-progress>div>span{background:#edf3f1;border-color:#c0d0cc}
html[data-theme="light"] .delivery-progress>div.complete{color:#23634d}
html[data-theme="light"] .delivery-progress>div.complete>span{background:#dceee7;border-color:#8dbbad;color:#075d58}
html[data-theme="light"] .saved-icon{background:#dceee7;color:#326e5d}
html[data-theme="light"] .project-journey{background:linear-gradient(135deg,#e5f1ec,#f1f6f3 68%);border-color:#b2d0c3}
html[data-theme="light"] .project-journey-heading>strong{background:#fff;color:#356457;border-color:#b2d0c3}
html[data-theme="light"] .project-journey-steps li{color:#52656b}
html[data-theme="light"] .project-journey-steps li:after{background:#a8c6ba}
html[data-theme="light"] .project-journey-steps li>span{background:#fff;border-color:#a8bbb8;color:#52656b}
html[data-theme="light"] .project-journey-steps li.complete{color:#28634e}
html[data-theme="light"] .project-journey-steps li.complete>span{background:#dceee7;border-color:#8dbbad;color:#075d58}
html[data-theme="light"] .project-journey-steps li.current{color:#18272c}
html[data-theme="light"] .project-journey-steps li.current>span{background:#08766f;border-color:#08766f;color:#fff}
html[data-theme="light"] .project-next-step{background:#fff;border-color:#a8c6ba}
html[data-theme="light"] .project-next-step p{color:#46655e}
html[data-theme="light"] .project-live-price{background:linear-gradient(135deg,#e1f1e9,#eef5f0);border-color:#a8c6ba}
html[data-theme="light"] .project-live-price-heading h2{color:#075d58}
html[data-theme="light"] .project-price-groups article{background:#fff;border-color:#bfd5ca}
html[data-theme="light"] .project-calendar-scroll{background:#f4f7f5}
html[data-theme="light"] .calendar-weekday{background:#eaf2ee;color:#405e55}
html[data-theme="light"] .project-calendar-day{background:#fff}
html[data-theme="light"] .project-calendar-day>time{color:#253c42}
html[data-theme="light"] .project-calendar-day.outside{background:#edf2ef;color:#63736a}
html[data-theme="light"] .project-calendar-day.outside>time{color:#63736a}
html[data-theme="light"] .project-calendar-day.today{box-shadow:inset 0 0 0 2px #08766f}
html[data-theme="light"] .calendar-event{background:#e0f0ea;border-left-color:#358c76;color:#234f43}
html[data-theme="light"] .calendar-event span{color:#48665c}
html[data-theme="light"] .calendar-event:hover,html[data-theme="light"] .calendar-event:focus-visible{background:#cde6dc;outline-color:#08766f}
html[data-theme="light"] .calendar-event.in_progress{background:#fff0d7;border-left-color:#ad6e14;color:#79501a}
html[data-theme="light"] .calendar-event.complete{background:#e5f0db;border-left-color:#5b842c;color:#3a5d22}
html[data-theme="light"] .calendar-event.delivery{background:#e7eefb;border-left-color:#426bb0;color:#31558d}
html[data-theme="light"] .calendar-unscheduled{border-color:#a8c6ba}

/* Homepage controls remain legible on the light canvas. */
html[data-theme="light"] .landing-page{--text:#18272c;--muted:#52656b;--faint:#5c6b71;--teal:#08766f}
html[data-theme="light"] .landing-page .landing-primary{background:#08766f;color:#fff}
html[data-theme="light"] .landing-page .landing-primary:hover{background:#065f59;color:#fff}
html[data-theme="light"] .landing-page .landing-orange{background:#e66700;color:#17252b}
html[data-theme="light"] .landing-page .landing-search-form button{background:#08766f;color:#fff}
html[data-theme="light"] .landing-page .landing-search-form button:hover{background:#065f59;color:#fff}
html[data-theme="light"] .landing-page .landing-approved-actions>span{color:#5c6b71}
html[data-theme="light"] .landing-page .landing-approved-callout span{color:#40565b}
html[data-theme="light"] .landing-page .landing-footer{color:#52656b}

/* The photography keeps its dark overlay in both themes, with inverse text. */
html[data-theme="light"] .landing-page :is(.landing-approved-journey-head,.landing-approved-supplier,.landing-approved-buyer){
  --text:#f5f9f8;--muted:#d7e6e2;--teal:#79e5d6;--orange:#ffb778;
  color:#f5f9f8;
}
html[data-theme="light"] .landing-page .landing-approved-buyer{background:linear-gradient(120deg,#101c22ed,#101c22d1 62%,#101c22ad);color:#f5f9f8}
html[data-theme="light"] .landing-page :is(.landing-approved-journey-head,.landing-approved-supplier,.landing-approved-buyer) :is(h2,h3,dt){color:#f5f9f8}
html[data-theme="light"] .landing-page :is(.landing-approved-journey-head,.landing-approved-supplier,.landing-approved-buyer) p{color:#d7e6e2}
html[data-theme="light"] .landing-page .landing-approved-supplier :is(dd,small){color:#d7e6e2}
html[data-theme="light"] .landing-page .landing-approved-supplier dl>div{border-bottom-color:#b5d8cf52}
html[data-theme="light"] .landing-page .landing-approved-buyer .landing-outline{background:#10212680;color:#f5f9f8;border-color:#a7c7c0}
html[data-theme="light"] .landing-page :is(.landing-approved-supplier,.landing-approved-buyer) .landing-primary{background:#79e5d6;color:#102b29}
html[data-theme="light"] .landing-page :is(.landing-approved-supplier,.landing-approved-buyer) .landing-primary:hover{background:#a2f0e5;color:#102b29}
html[data-theme="light"] .landing-page .landing-approved-supplier .landing-orange{background:#ffb778;color:#17252b}
