/* Paint existing work containers. Native controls and engine stay intact. */
@layer finder-blue-workspace {
 body:is(.pc-site,.if-product-k2) { --bw-field:#eaf1f7; --bw-panel:#fff; --bw-edge:#d4e0e9; --bw-frame:16px; }
 /* The spread occupies the existing page gutter; column widths stay intact. */
 body:is(.pc-site,.if-product-k2) :is(.sb-steps,.sb-workspace,.ue-shell.fe-workspace),
 body.pc-site #case-app:not(.is-starting),
 body.pc-wh .legacy-tool-board-homeopathy,
 body.pc-beta .rf-search-layout,
 body.pc-classic #MainBody,
 body.if-product-k2 #IFBody > :is(.if-case-nav,.if-basics,.if-grid,.if-case-overview,.if-results-card) {
  background-color:var(--bw-field)!important;
  box-shadow:0 0 0 var(--bw-frame) var(--bw-field)!important;
  border-radius:8px;
 }
 body.pc-site #case-app:not(.is-starting) :is(.studio-panel,.app-step) { background-color:transparent!important; }
 body.pc-site #case-app:not(.is-starting) .studio-steps { background-color:var(--bw-field)!important; }
 body:is(.pc-site,.if-product-k2) :is(.sb-card,.ue-card.fe-card),
 body.pc-site #case-app :is(.hp-choice-pane,.hp-remedy-pane),
 body.pc-wh .legacy-tool-board-homeopathy > .legacy-tool-column,
 body.pc-beta .rf-search-layout :is(.rf-method-filters,.rf-search-input,.rf-search-selected,.rf-search-results),
 body.pc-classic #MainBody > .rs-panel,
 body.if-product-k2 #IFBody :is(.if-card,.if-case-overview) {
  background-color:var(--bw-panel)!important;
  border-color:var(--bw-edge)!important;
 }
 /* Join adjacent work sections across their existing vertical margins. */
 body.pc-site #case-app .sb-steps,
 body.if-product-k2 #IFBody > :is(.if-case-nav,.if-basics,.if-grid) {
  box-shadow:0 12px 0 var(--bw-frame) var(--bw-field),0 0 0 var(--bw-frame) var(--bw-field)!important;
  border-radius:0;
 }
 body.if-product-k2 #IFBody > .if-case-nav { border-radius:8px 8px 0 0; }
 body.pc-site #case-app .sb-steps { box-sizing:border-box!important; width:100%!important; max-width:none!important; }
 /* Four native Classic panels side by side on desktop; keep mobile stacking. */
 @media(min-width:1041px) {
  body.pc-classic.rs-ready #MainBody { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
  body.pc-classic.rs-ready #MainBody > .rs-profile { grid-column:auto!important; display:block!important; }
  body.pc-classic.rs-ready .rs-profile .rs-panel-heading { margin-bottom:16px!important; }
  body.pc-classic.rs-ready .rs-profile .rf-profile-gender { min-width:0!important; width:100%!important; }
  body.pc-classic.rs-ready .rs-profile .rf-profile-choice { min-width:0!important; padding-inline:6px!important; }
  body.pc-classic.rs-ready .rs-profile .rf-profile-age { width:100%!important; gap:12px!important; }
  body.pc-classic.rs-ready .rs-profile .rs-profile-field { min-width:0!important; }
  body.pc-classic.rs-ready .rs-profile .rs-risk-content { grid-template-columns:minmax(0,1fr)!important; }
  body.pc-classic.rs-ready .rl-profile-actions { flex-direction:column!important; gap:12px!important; }
  body.pc-classic.rs-ready .rl-profile-actions > .rs-risk-disclosure { width:100%!important; }
 }
 @media(max-width:700px) { body:is(.pc-site,.if-product-k2) { --bw-frame:8px; } }
}
