/* BuildplateCo shared design system. Owns color, type, chrome and task components. */
:root {
  color-scheme: light;
  --bg: #f5f5f2; --bg-soft: #f5f5f2; --panel: #fff; --panel-strong: #fff;
  --text: #20272d; --muted: #5e6973; --line: #ccd1d5; --line-strong: #aab3ba;
  --accent: #c62832; --accent-strong: #a71e28; --accent-soft: #fff1f2;
  --warning: #815a16; --danger: #a71e28; --success: #236b43;
  --radius: 6px; --shadow: none; --shadow-soft: none; --panel-soft: #fff;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --home-sans: var(--font-sans); --home-mono: var(--font-mono); --page-max: 1280px;
}
html { background: var(--bg); scroll-padding-top: 96px; }
body.site-theme { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
.site-theme *, .site-theme *::before, .site-theme *::after { box-sizing: border-box; }
.site-theme :is(button,input,select,textarea) { font-family: var(--font-sans); }
.site-theme :is(h1,h2,h3,h4,h5,h6) { color: var(--text); font-family: var(--font-sans); letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.site-theme h1 { font-size: clamp(2rem,3.1vw,2.75rem); }
.site-theme h2 { font-size: clamp(1.4rem,2.2vw,2rem); }
.site-theme h3 { font-size: 1.16rem; }
.site-theme :is(p,li,dd,td,th,label,small,span,strong,a) { overflow-wrap: anywhere; }
.site-theme :is(.page-intro h1,.auth-card h1,.hero-copy h1) { max-width: 26ch; font-family: var(--font-sans); font-size: clamp(2rem,3.1vw,2.75rem); line-height: 1.14; letter-spacing: -.035em; }
.site-theme :is(.page-intro,.hero-copy) .lede { max-width: 68ch; }
.site-theme :is(.lede,.microcopy,.label,.tile>span,.card>p,.section-head p,.empty-state) { color: var(--muted); }
.site-theme .lede { font-size: 1.05rem; line-height: 1.65; }
.site-theme .microcopy { font-size: .875rem; line-height: 1.55; }
.site-theme .label { font-size: .8rem; line-height: 1.5; }
.site-theme .eyebrow { color: var(--muted); font: 650 .75rem/1.5 var(--font-sans); letter-spacing: .045em; text-transform: uppercase; }
.site-theme a:focus-visible, .site-theme button:focus-visible, .site-theme summary:focus-visible { outline: 3px solid #246494; outline-offset: 3px; }
.site-theme a.text-link { color: var(--accent-strong); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-theme .page-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
.site-theme .page-shell > main { width: min(var(--page-max),calc(100% - 64px)); min-height: 55vh; margin: 36px auto 0; }
.site-theme .page-shell:has(:is(.home-redesign,.materials-redesign,.capabilities-redesign,.services-redesign,.marketing-redesign,.operations-surface)) > main { width: 100%; margin: 0; }
.site-theme .skip-link { position: fixed; z-index: 1000; top: 10px; left: 12px; padding: 10px 18px; color: #fff; background: #171c22; transform: translateY(-160%); }
.site-theme .skip-link:focus { transform: none; }
.site-theme .topbar { display: flex; align-items: center; gap: 28px; position: relative; z-index: 30; min-height: 76px; margin: 0; padding: 12px max(32px,calc((100vw - 1440px)/2)); background: #171c22; color: #fff; border: 0; border-radius: 0; box-shadow: none; }
.site-theme .topbar-main { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; min-width: 0; }
.site-theme .brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.site-theme .brand-copy { display: block; }
.site-theme .brand-copy strong { color: #fff; font: 750 1.55rem/1.1 var(--font-sans); letter-spacing: -.055em; }
.site-theme :is(.brand-mark,.brand-copy small) { display: none; }
.site-theme .topnav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 4px; flex-wrap: wrap; }
.site-theme .topnav a { padding: 10px; color: #e7eaec; font-size: .875rem; line-height: 1.3; border: 0; border-bottom: 2px solid transparent; background: transparent; border-radius: 0; white-space: nowrap; }
.site-theme .topnav a[aria-current=page] { color: #fff; border-bottom-color: #fff; }
.site-theme .topnav a:hover { background: #29323b; transform: none; }
.site-theme .topbar-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; margin-left: auto; }
.site-theme .topbar-actions :is(a,button,.user-pill) { white-space: nowrap; font-size: .875rem; }
.site-theme .topbar-actions .ghost-button { color: #fff; border-color: #74808b; background: transparent; }
.site-theme .user-pill { display: none; }
.site-theme .mobile-nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; background: transparent; border: 1px solid #74808b; border-radius: 6px; color: #fff; cursor: pointer; }
.site-theme .mobile-nav-icon { display: grid; gap: 4px; }
.site-theme .mobile-nav-icon span { width: 18px; height: 2px; background: currentColor; }
.site-theme .mobile-nav-panel { display: none; }
.site-theme .footer { display: grid; grid-template-columns: 1.05fr 2fr; gap: 48px; width: 100%; margin: 64px 0 0; padding: 48px max(32px,calc((100vw - 1280px)/2)); background: #171c22; color: #c5ccd2; border: 0; border-radius: 0; }
.site-theme .footer-brand strong { color: #fff; font-size: 1.35rem; letter-spacing: -.04em; }
.site-theme .footer-brand p { max-width: 40ch; font-size: .95rem; line-height: 1.65; }
.site-theme .footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.site-theme .footer-column { display: grid; align-content: start; gap: 10px; }
.site-theme .footer-column strong { color: #fff; font-size: .9rem; }
.site-theme .footer-column a { color: #dce1e5; font-size: .875rem; line-height: 1.4; }
.site-theme .footer-column a:hover { color: #fff; text-decoration: underline; }
.site-theme .footer-mini-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8rem; }
.site-theme :is(.solid-button,.ghost-button,.ops-button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 6px; font: 650 .95rem/1.3 var(--font-sans); text-align: center; cursor: pointer; transition: background-color 120ms,border-color 120ms; text-decoration: none; box-shadow: none; }
.site-theme :is(.solid-button,.ops-button-primary) { background: var(--accent); color: #fff; border: 1px solid var(--accent); box-shadow: none; }
.site-theme :is(.solid-button,.ops-button-primary):hover { background: var(--accent-strong); border-color: var(--accent-strong); filter: none; transform: none; box-shadow: none; }
.site-theme :is(.ghost-button,.ops-button-quiet) { background: #fff; color: var(--text); border: 1px solid var(--line-strong); }
.site-theme .ghost-button:hover { background: #edf0f1; transform: none; }
.site-theme button:disabled { cursor: not-allowed; opacity: .65; }
.site-theme :is(.card,.tile,.hero-summary-card,.hero-simple-card,.step-chip,.callout,.empty-state,.compact-card,.quoted-part-card,.order-preview-card,.checkout-picker,.checkout-start-panel,.article-brief-card,.article-bullet-panel,.article-decision-card) { color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; backdrop-filter: none; }
.site-theme :is(.glass,.operations-intro,.checkout-intro,.dashboard-intro,.customer-order-intro,.dashboard-first-run-main,.dashboard-first-run-saves) { color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; backdrop-filter: none; }
.site-theme .hero-shell { padding: 32px; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 40px; }
.site-theme .hero-shell:has(>.hero-copy:only-child) { grid-template-columns: 1fr; }
.site-theme .page-intro { gap: 24px; align-items: center; padding: 8px 0 24px; }
.site-theme .page-intro :is(h1,p) { margin-block: 0 12px; }
.site-theme .page-intro.checkout-intro, .site-theme .page-intro.customer-order-intro { padding: 24px; }
.site-theme :is(.result-summary>div,.detail-grid>div,.dashboard-stat-list>div,.dashboard-first-run-steps,.checkout-assurance-bar,.checkout-summary-action) { color: var(--text); background: #f5f5f2; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
.site-theme :is(.result-summary strong,.detail-grid strong,.summary-line strong,.total-line strong,.customer-order-quick-facts strong) { color: var(--text); }
.site-theme :is(.result-summary .label,.detail-grid .label,.customer-order-quick-facts span) { color: var(--muted); }
.site-theme .tile:hover { transform: none; border-color: var(--line-strong); }
.site-theme :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { min-height: 44px; max-width: 100%; padding: 10px 12px; border: 1px solid #89959f; border-radius: 6px; background: #fff; color: var(--text); font-size: 1rem; line-height: 1.4; color-scheme: light; box-shadow: none; }
.site-theme input[type=file] { width: 100%; }
.site-theme input::placeholder, .site-theme textarea::placeholder { color: #69737d; opacity: 1; }
.site-theme :is(input,select,textarea):focus { border-color: #246494; outline: 2px solid #246494; outline-offset: 1px; box-shadow: none; }
.site-theme :is(input[type=radio],input[type=checkbox]) { accent-color: var(--accent); width: 18px; height: 18px; flex: 0 0 18px; }
.site-theme .field { min-width: 0; }
.site-theme .field > span { color: var(--text); font-size: .9rem; }
.site-theme :is(.field-grid,.checkout-inline-form,.action-row,.file-links,.section-head,.user-directory-tile,.user-search-bar) { min-width: 0; }
.site-theme :is(.help-field-error,.checkout-field-error,.errorlist) { color: var(--danger); }
.site-theme [aria-invalid=true] { border-color: var(--danger); }
.site-theme .callout { border-left: 3px solid #74808b; }
.site-theme :is(.callout.danger,.message-error) { background: #fff1f2; border-color: #d7888e; color: #8f1721; }
.site-theme :is(.callout.warning,.callout.warn) { background: #fff8e9; border-color: #c8a75d; color: #704d12; }
.site-theme :is(.message,.message-success) { padding: 14px 18px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
.site-theme .message-success { border-left: 4px solid var(--success); }
.site-theme .message-stack { width: min(1280px,calc(100% - 48px)); margin: 20px auto; }
.site-theme .status-pill { display: inline-flex; width: fit-content; align-items: center; min-height: 26px; padding: 4px 9px; background: #eef0f1; color: #4c5863; border: 1px solid #c5cbd0; border-radius: 5px; font: 600 .8rem/1.35 var(--font-sans); }
.site-theme :is(.status-pill.good,.customer-progress-step.complete,.customer-progress-step.current.complete) { color: #236b43; background: #edf7ef; border: 1px solid #96c3a4; box-shadow: none; }
.site-theme :is(.status-pill.warn,.status-pill.warning) { color: #704d12; background: #fff8e9; border-color: #d3b56e; }
.site-theme :is(.status-pill.bad,.status-pill.danger) { color: #8f1721; background: #fff1f2; border-color: #d7888e; }
.site-theme .customer-progress-step { color: var(--muted); background: #f5f5f2; border: 1px solid var(--line); }
.site-theme .customer-progress-step.current { color: #244e72; background: #edf4f8; border-color: #8ba9c0; box-shadow: none; }
.site-theme .customer-progress-state { color: inherit; font-size: .75rem; letter-spacing: 0; }
.site-theme .customer-progress-step :is(strong,.customer-progress-state) { color: inherit; }
.site-theme :is(.payment-confirmation-intro,.shipped-order-intro) { border-left: 4px solid var(--success); }
.site-theme :is(.payment-confirmation-intro,.shipped-order-intro) .eyebrow { color: var(--success); }
.site-theme :is(.order-next-step,.dashboard-order-target,.dashboard-reorder-note) { color: var(--text); background: #f5f5f2; border-color: #879ba9; }
.site-theme :is(.order-next-step,.dashboard-order-target,.dashboard-reorder-note) :is(strong,span,time) { color: inherit; }
.site-theme :is(.break-table-wrap,.technical-table-wrap) { width: 100%; max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.site-theme :is(.break-table,.technical-table-wrap table) { width: 100%; border-collapse: collapse; color: var(--text); font: .9rem/1.5 var(--font-sans); }
.site-theme :is(.break-table,.technical-table-wrap table) :is(th,td) { padding: 12px 14px; border-color: var(--line); text-align: left; }
.site-theme :is(.break-table,.technical-table-wrap table) th { background: #edf0f1; color: #35424d; font-weight: 650; font-size: .82rem; letter-spacing: 0; }
.site-theme .break-table tbody tr:hover { background: #f5f5f2; }
.site-theme :is(.material-photo,.material-color-photo,.article-card-image,.article-hero-media img,.article-section-media img,.gallery-photo,.showcase-photo) { filter: none; }
/* Focused account tasks retain recognizable header and readable navigation. */
.site-theme .auth-shell { display: grid; place-items: center; min-height: 55vh; padding-block: 24px; }
.site-theme .auth-card { width: min(560px,100%); padding: clamp(24px,4vw,40px); border-top: 3px solid var(--accent); }
.site-theme .auth-card h1 { font-size: clamp(1.9rem,3vw,2.25rem); max-width: 23ch; }
.site-theme .auth-password-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-block: 16px; }
.site-theme .auth-password-toggle { display: inline-flex; gap: 9px; align-items: center; font-size: .9rem; }
.site-theme .auth-optional-label { color: var(--muted); font-weight: 400; }
.site-theme .auth-return-note { padding: 12px; border-left: 3px solid #74808b; background: var(--bg); }
.site-theme :is(.account-nav,.account-pagination) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block: 0 24px; }
.site-theme :is(.account-nav,.account-pagination) a { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 15px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.site-theme .account-nav a[aria-current=page] { color: #fff; background: #171c22; border-color: #171c22; }
.site-theme .account-filter-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-block: 16px 24px; }
.site-theme .account-filter-form .field { flex: 1 1 220px; }
.site-theme .account-library-item { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.site-theme .account-library-item > * { min-width: 0; }
/* Checkout uses the same light control and status vocabulary. */
.site-theme :is(.checkout-main-card,.checkout-summary-card,.checkout-step-block,.shipping-option-card,.checkout-shipping-calculation,.checkout-assurance-bar,.checkout-summary-action,.checkout-summary-card .compact-card) { color: var(--text); background: #fff; border-color: var(--line); box-shadow: none; }
.site-theme .checkout-step-block { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.site-theme :is(.checkout-summary-action-copy strong,.checkout-summary-card .compact-card strong,.checkout-assurance-bar strong,.checkout-assurance-bar>a strong) { color: var(--text); }
.site-theme :is(.checkout-step-number,.checkout-delivery-timing,.shipping-choice-badge) { color: var(--success); border-color: #96c3a4; background: #edf7ef; }
.site-theme :is(.checkout-recipient-hint,.checkout-summary-price-status,.checkout-assurance-bar span,.checkout-shipping-calculation p,.checkout-shipping-calculation summary,.checkout-summary-note,.customer-order-updated,.customer-progress-state) { color: var(--muted); font: .85rem/1.5 var(--font-sans); }
.site-theme .shipping-option-card.selected { border-color: #698699; background: #f0f5f7; box-shadow: inset 3px 0 0 #406b88; }
.site-theme :is(.checkout-savings-banner,.checkout-discount-chip) { color: var(--success); background: #edf7ef; border-color: #96c3a4; }
.site-theme .checkout-summary-card :is(.compact-card .detail-grid>div,.summary-line) { background: transparent; color: var(--text); border-color: var(--line); }
/* Staff shell and controls: one consistent rail for every operations page. */
.site-theme .page-shell:has(.operations-surface) > :is(.topbar,.footer) { display: none; }
.site-theme .operations-surface { --ops-ink: #20272d; --ops-muted: #5e6973; --ops-line: #ccd1d5; --ops-soft: #f5f5f2; --ops-red: #c62832; color-scheme: light; background: var(--bg); color: var(--text); font-family: var(--font-sans); grid-template-columns: 184px minmax(0,1fr); }
.site-theme .operations-surface .ops-shell-header { min-height: 64px; padding: 12px 24px; background: #171c22; color: #fff; border-color: #3c4751; }
.site-theme .ops-shell-header a { color: #fff; }
.site-theme .ops-shell-header>div>span { display: none; }
.site-theme .ops-shell-header>div>a { color: #fff; border-color: #74808b; background: transparent; font-size: .875rem; }
.site-theme .operations-surface .ops-rail { width: auto; background: #171c22; border-color: #3c4751; color: #fff; padding: 20px 12px; }
.site-theme .operations-surface .ops-rail nav a { min-height: 44px; padding: 10px 12px; gap: 10px; border-radius: 6px; color: #dce1e5; background: transparent; font: 550 .9rem/1.4 var(--font-sans); }
.site-theme .operations-surface .ops-rail nav a.active { color: #fff; background: #343e48; box-shadow: inset 3px 0 0 #fff; }
.site-theme .operations-surface .ops-rail nav a:last-child { background: transparent; color: #dce1e5; }
.site-theme .operations-surface :is(.ops-workspace,.ops-secondary-workspace) { min-width: 0; padding: 28px; background: var(--bg); }
.site-theme .operations-surface :is(.ops-page-header h1,.ops-control-head h2) { color: var(--text); font: 700 clamp(1.8rem,3vw,2.25rem)/1.15 var(--font-sans); letter-spacing: -.03em; }
.site-theme .operations-surface :is(.ops-stage,.ops-order-card,.ops-support-card,.ops-search-results,.ops-result-grid a,.ops-attention-row,.ops-packet-controls>form,.ops-global-search,.ops-costing-panel,.ops-costing-stat) { background: #fff; color: var(--text); border-color: var(--line); box-shadow: none; }
.site-theme .operations-surface :is(.ops-packet-controls label,.ops-support-form label,.ops-reply-form label) { color: #45525d; font: 600 .85rem/1.4 var(--font-sans); letter-spacing: 0; text-transform: none; }
.site-theme .operations-surface :is(.ops-packet-controls,.ops-support-form,.ops-reply-form,.ops-global-search) :is(input,select,textarea) { color: var(--text); background: #fff; border-color: #89959f; font: 1rem/1.4 var(--font-sans); min-height: 44px; }
.site-theme .operations-surface :is(.ops-control-warning,.ops-support-message,.ops-order-meta,.ops-attention-status span,.ops-section-heading h2 span,.ops-stage header span) { color: var(--muted); background: #f5f5f2; border-color: var(--line); font-size: .8rem; }
.site-theme .operations-surface :is(.ops-customer-grid span,.ops-part-specs dt,.ops-customer-grid p,.ops-part-specs dd,.ops-history-list,.ops-email-log,.ops-order-top span,.ops-order-meta,.ops-result-grid small,.ops-updated) { font-size: .8rem; line-height: 1.5; }
.site-theme .operations-surface :is(.ops-page-header,.ops-stage header,.ops-production-grid,.ops-attention,.ops-part-specs,.ops-order-meta) { border-color: var(--line); }
.site-theme .operations-surface .ops-stage:nth-child(4) { border-top-color: var(--success); }
/* Public quote modal remains a focused light task with a dark model viewport. */
.site-theme .home-redesign .wizard-dialog { color: var(--text); font-family: var(--font-sans); }
.site-theme .home-redesign .wizard-dialog :is(h2,h3,strong,input,select,textarea,button) { font-family: var(--font-sans); }
.site-theme .home-redesign .wizard-dialog :is(.material-photo,.material-color-photo) { filter: none; }
.site-theme .home-redesign .wizard-dialog :is(.microcopy,.part-inline-control-label,.part-material-kicker,.material-use-chip,.quote-summary-note) { color: var(--muted); }
.site-theme .home-redesign .wizard-dialog .wizard-header :is(h2,strong,button,.workspace-status) { color: #fff; }
.site-theme .home-redesign .wizard-dialog .wizard-header { background: #171c22; }
.site-theme .home-redesign .wizard-dialog .wizard-preview-panel .stl-stage { background: #171c22; }
.site-theme .home-redesign .wizard-dialog .dimension-readout { color: #dce1e5; }
.site-theme .home-redesign .wizard-dialog :is(.material-help-strip,.part-settings-panel,.support-help,.quote-lead-card) { background: #f5f5f2; color: var(--text); border-color: var(--line); }
.site-theme .home-redesign .wizard-dialog .material-help-strip :is(strong,a) { color: var(--text); }
@media (max-width:1080px) {
 .site-theme .topbar { flex-wrap: wrap; gap: 0; padding: 12px 24px; }
 .site-theme .topbar-main { width: 100%; }
 .site-theme .topbar > :is(.topnav,.topbar-actions) { display: none; }
 .site-theme .mobile-nav-toggle { display: inline-flex; }
 .site-theme .mobile-nav-panel:not(.hidden) { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 16px; }
 .site-theme .mobile-nav-panel :is(a,.mobile-nav-account) { display: block; min-height: 44px; padding: 10px 12px; color: #fff; border: 1px solid #4e5c69; border-radius: 6px; background: #212a33; }
 .site-theme .mobile-nav-panel .mobile-nav-primary { background: var(--accent); border-color: var(--accent); }
 .site-theme .mobile-nav-account-label { display: block; font-size: .8rem; color: #c5ccd2; }
}
@media (max-width:760px) {
 html { scroll-padding-top: 24px; }
 .site-theme .page-shell>main { width: calc(100% - 32px); margin-top: 24px; }
 .site-theme .topbar { padding: 12px 16px; min-height: 68px; }
 .site-theme .brand-copy strong { font-size: 1.4rem; }
 .site-theme .footer { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px; margin-top: 40px; }
 .site-theme .footer-links { gap: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .site-theme :is(.hero-shell,.dashboard-grid,.quote-detail-grid,.dashboard-first-run) { grid-template-columns: minmax(0,1fr); }
 .site-theme :is(.hero-shell,.card) { padding: 20px; }
 .site-theme .page-intro { display: grid; gap: 12px; }
 .site-theme .hero-copy { padding: 0; }
 .site-theme :is(.page-intro h1,.hero-copy h1) { font-size: 2rem; }
 .site-theme :is(.account-library-item,.account-filter-form) { align-items: stretch; flex-direction: column; }
 .site-theme .account-filter-form .field { flex-basis: auto; }
 .site-theme .account-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
 .site-theme .account-nav a { flex: 0 0 auto; }
 .site-theme :is(.field-grid,.checkout-inline-form,.result-summary,.detail-grid) { grid-template-columns: minmax(0,1fr); }
 .site-theme .break-table { min-width: 560px; }
 .site-theme .operations-surface { display: block; }
 .site-theme .operations-surface .ops-shell-header { min-height: 60px; padding: 12px 16px; }
 .site-theme .operations-surface .ops-rail { position: static; width: 100%; height: auto; padding: 8px; border-bottom: 1px solid #3c4751; }
 .site-theme .operations-surface .ops-rail nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
 .site-theme .operations-surface .ops-rail nav a { flex: 0 0 auto; flex-direction: row; font-size: .85rem; padding: 10px 12px; min-height: 44px; }
 .site-theme .operations-surface :is(.ops-workspace,.ops-secondary-workspace) { padding: 20px 16px; }
 .site-theme .ops-attention-table { overflow: visible; }
 .site-theme .ops-attention-row { min-width: 0; grid-template-columns: minmax(0,1fr); padding: 20px 12px; gap: 12px; }
 .site-theme .ops-attention-row>* { grid-column: 1; grid-row: auto; min-width: 0; }
 .site-theme .ops-attention-row :is(strong,span,a) { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
 .site-theme .ops-attention-row .ops-attention-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
 .site-theme .ops-attention-actions>* { flex: 1 1 auto; }
 .site-theme .ops-attention-actions .ops-button { width: 100%; }
 .site-theme .operations-surface .ops-production-grid { grid-template-columns: minmax(0,1fr); overflow: visible; gap: 20px; scroll-snap-type: none; }
 .site-theme .operations-surface .ops-stage { width: 100%; min-width: 0; min-height: 0; border: 1px solid var(--line); }
 .site-theme .operations-surface .ops-stage-empty { min-height: 0; padding: 24px; }
 .site-theme .operations-surface .ops-order-card h4 { white-space: normal; overflow-wrap: anywhere; }
 .site-theme .operations-surface .ops-order-actions { flex-wrap: wrap; }
 .site-theme .operations-surface .ops-order-actions>* { min-width: 0; flex: 1 1 120px; }
 .site-theme .ops-history-list>div { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
 .site-theme .checkout-layout .checkout-summary-card { width: 100%; min-width: 0; }
 .site-theme .checkout-step-block { padding: 18px 0; }
}
@media (prefers-reduced-motion:reduce) {
 html { scroll-behavior: auto !important; }
 .site-theme *, .site-theme *::before, .site-theme *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Supporting states share the same semantics as the main workflow. */
.site-theme .ops-secondary-workspace { grid-column: 2; grid-row: 2; }
.site-theme .operations-secondary .page-intro.operations-intro { padding: 24px; }
.site-theme .operations-surface .ops-rail nav a:last-child { margin-top: 0; padding-top: 10px; border: 0; border-radius: 6px; }
.site-theme .operations-surface .ops-rail nav a.active:last-child { color: #fff; background: #343e48; }
.site-theme .operations-surface .ops-rail nav a:hover { color: #fff; background: #343e48; }
.site-theme .operations-surface :is(.ops-costing-history summary,.ops-costing-history summary strong,.ops-costing-ledger td,.ops-control-head>p,.ops-costing-section-copy) { color: var(--text); font-size: .875rem; }
.site-theme .operations-surface :is(.ops-costing-history summary:hover,.ops-costing-history summary strong,.ops-costing-impact,.ops-costing-intro,.ops-control-copy,.ops-control-form,.ops-order-overview,.ops-support-thread,.ops-support-message.customer,.ops-support-message.staff) { color: var(--text); background: #fff; border-color: var(--line); }
.site-theme .operations-surface :is(.ops-costing-history ul,.ops-costing-save>small,.ops-costing-field-help,.ops-costing-field label,.ops-shipping-grid span,.ops-part-specs dt) { color: var(--muted); font-size: .8rem; }
.site-theme .operations-surface .ops-shell-header a { text-transform: none; letter-spacing: 0; }
.site-theme .operations-surface .ops-shell-header>a { font-size: 1.35rem; }
.site-theme :is(.dashboard-order-date small,.dashboard-order-target.is-overdue strong) { color: var(--warning); }
.site-theme :is(.dashboard-first-run-steps strong,.dashboard-reorder-note strong,.dashboard-order-target strong) { color: var(--text); }
.site-theme .dashboard-first-run-main::after { display: none; }
.site-theme .dashboard-first-run-step-number { color: var(--text); background: #edf0f1; border-color: var(--line); }
.site-theme .dashboard-order-target.is-overdue { color: var(--warning); background: #fff8e9; border-color: #d3b56e; }
.site-theme .checkout-shipping-options .shipping-choice-badge { color: var(--success); }
.site-theme .customer-progress-step.current.complete .customer-progress-state { color: var(--success); }
.site-theme .error-page { max-width: 960px; margin: 64px auto; }
@media(max-width:760px) {
 .site-theme .operations-surface { padding-top: 0; padding-bottom: 0; }
 .site-theme .operations-surface .ops-shell-header { position: static; }
 .site-theme .operations-surface .ops-shell-header>div { gap: 6px; }
 .site-theme .operations-surface .ops-shell-header>div>a { padding: 8px; min-height: 44px; font-size: .8rem; }
 .site-theme .operations-surface .ops-shell-upload { display: none; }
 .site-theme .error-page { margin: 28px auto; }
}
.site-theme :is(.page-intro h1,.quoted-part-head strong,.part-name,.part-row-copy strong,.dashboard-order-title,.order-line-part-name) { min-width: 0; max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.site-theme :is(.part-sequence,.dimension-readout,.ops-part-specs dd,.ops-order-id,.spec-value) { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* Light task surfaces explicitly own heading foregrounds. */
body.site-theme :is(.page-intro,.auth-card,.card,.tile,.result-summary,.detail-grid) :is(h1,h2,h3,h4,strong) { color: var(--text); }
body.site-theme :is(.page-intro,.auth-card,.card,.tile,.result-summary,.detail-grid) :is(p,.lede,.microcopy,.label) { color: var(--muted); }
body.site-theme .checkout-summary-price-status { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
body.site-theme.task-page .topbar { min-height: 72px; }
body.site-theme.task-page .topbar>.topnav, body.site-theme.task-page .topbar-actions>.solid-button { display: none; }
body.site-theme.task-page .footer { margin-top: 40px; padding-block: 28px; }
body.site-theme.task-page .footer-brand p, body.site-theme.task-page .footer-mini-row { display: none; }
body.site-theme.task-page .footer-links { grid-template-columns: 1fr; }
body.site-theme.task-page .footer-column:not(:last-child) { display: none; }
body.site-theme.task-page .footer-column:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
body.site-theme.task-page .footer-column:last-child>strong { display: none; }
body.site-theme.task-page .topbar-actions { display: flex; }
@media(max-width:1080px) { body.site-theme.task-page .topbar-actions { display: none; } }
body.site-theme .customer-order-quick-facts>div { color: var(--text); background: #fff; border-color: var(--line); }
body.site-theme .customer-order-quick-facts :is(strong,span) { color: var(--text); }
body.site-theme .customer-order-quick-facts span { color: var(--muted); }
body.site-theme :is(.payment-confirmation-intro,.shipped-order-intro) { background: #fff; color: var(--text); }
body.site-theme .checkout-summary-action-copy .microcopy { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.5; }
/* Costing is an editable finance worksheet on the same white staff surfaces. */
body.site-theme .operations-surface :is(.ops-costing-effective,.ops-costing-section,.ops-costing-card,.ops-costing-history,.ops-costing-section-head,.ops-costing-card>header) { background: #fff; color: var(--text); border-color: var(--line); }
body.site-theme .operations-surface :is(.ops-costing-section,.ops-costing-card,.ops-costing-history,.ops-costing-effective) :is(h2,strong,label,ins) { color: var(--text); }
body.site-theme .operations-surface :is(.ops-costing-section,.ops-costing-card,.ops-costing-history,.ops-costing-effective) :is(p,small,em,i,.ops-empty) { color: var(--muted); font-size: .85rem; line-height: 1.5; }
body.site-theme .operations-surface :is(.ops-costing-effective span,.ops-costing-section-head>span) { font-size: .8rem; color: var(--muted); letter-spacing: 0; }
body.site-theme .operations-surface :is(.ops-costing-section-head h2,.ops-costing-card h2,.ops-costing-history h2) { font-size: 1.5rem; }
body.site-theme .operations-surface :is(.ops-costing-card>header,.ops-costing-section-head) { padding: 20px; min-height: 0; }
body.site-theme .operations-surface .ops-costing-fields>label { color: var(--text); font-size: .85rem; text-transform: none; letter-spacing: 0; }
body.site-theme .operations-surface :is(.ops-money-input,.ops-costing-input) { color: var(--text); background: #fff; border: 0; box-shadow: none; gap: 8px; }
body.site-theme .operations-surface .ops-money-input { display: grid; grid-template-columns: auto 112px auto; min-width: 0; }
body.site-theme .operations-surface .ops-money-input input { width: 112px; min-width: 112px; padding: 10px; font-size: 1rem; font-variant-numeric: tabular-nums; }
body.site-theme .operations-surface .ops-money-input :is(i,em) { padding: 0; color: var(--muted); font-size: .8rem; }
body.site-theme .operations-surface .ops-material-cost { grid-template-columns: minmax(0,1fr) auto; padding: 18px; gap: 10px; }
body.site-theme .operations-surface .ops-material-name :is(strong,small) { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
body.site-theme .operations-surface .ops-material-name strong { font-size: .95rem; }
body.site-theme .operations-surface .ops-material-name small { font-size: .75rem; text-transform: none; letter-spacing: 0; }
body.site-theme .operations-surface .ops-costing-input input { font-size: 1rem; }
body.site-theme .operations-surface .ops-costing-input small { padding-inline: 0; font-size: .8rem; }
body.site-theme .operations-surface :is(.ops-material-cost.has-error,.ops-costing-fields>label.has-error,.ops-costing-alert) { color: var(--danger); background: #fff1f2; border-color: #d7888e; }
body.site-theme .operations-surface .ops-costing-history li { color: var(--text); font-size: .875rem; border-color: var(--line); }
body.site-theme .operations-surface .ops-costing-history summary:hover { background: #edf0f1; }
@media(max-width:760px) {
 body.site-theme .operations-surface .ops-material-cost { grid-template-columns: 1fr; }
 body.site-theme .operations-surface .ops-money-input { width: fit-content; }
 body.site-theme .operations-surface .ops-costing-input { grid-template-columns: minmax(100px,1fr) auto; }
}
