/* R3.7 workspace presentation. Loaded after the existing customer/owner layers.
   Selectors follow actual generated views; all records, gates and actions stay controller-owned. */
body.sfw-account-page,body.r4-owner-compact {
  --workspace-line:#D9CDD3;
  --workspace-paper:#fff;
  --workspace-line-strong:#d3bccb;
  --workspace-rose:#6e6e6e;
  --workspace-pale:#FAF6F8;
  --workspace-muted:#655d68;
  --workspace-shadow:4px 4px 0 #EAD5DE,0 7px 14px #2828280a;
}

/* Customer heading and shortcuts: a small desk, with useful exits close at hand. */
.sfw-account-page .care-workspace-heading {
  position:relative; align-items:center; gap:24px; padding:8px 0 22px;
  margin:0 0 22px; border-bottom:1px solid var(--workspace-line);
  background:none;
}
.sfw-account-page .care-workspace-heading::after {
  content:""; position:absolute; left:0; bottom:-1px; width:58px; height:3px;
  border-radius:3px; background:#8c8c8c;
}
.sfw-account-page .care-workspace-heading h1 { margin:10px 0 7px; }
.sfw-account-page .workspace-heading-links {
  display:flex; align-items:center; flex-wrap:wrap; gap:5px 22px; margin:12px 0 0;
}
.sfw-account-page .workspace-heading-links>a {
  display:inline-flex; align-items:center; gap:9px; min-height:44px;
  color:#616161; font:500 13px/1.5 var(--font-body,system-ui); text-decoration:none;
}
.sfw-account-page .workspace-heading-links>a svg { flex:none; }
.sfw-account-page .workspace-heading-links>a:hover { text-decoration:underline; text-underline-offset:5px; }
.sfw-account-page .care-workspace-seal {
  width:105px; height:105px; margin-right:10px; color:#868686;
  background:#fff;
  box-shadow:3px 3px 0 #EAD5DE;
}
.sfw-account-page #account-content { gap:20px; }
.sfw-account-page .customer-workspace-summary { gap:14px; }
.sfw-account-page .customer-summary-card {
  padding:19px 17px; gap:14px; border-radius:16px; background:#fff;
  border-color:var(--workspace-line); box-shadow:var(--workspace-shadow);
}
.sfw-account-page .customer-summary-card>span:last-child { width:100%; gap:7px; }
.sfw-account-page .customer-summary-card strong { font-size:14px; font-weight:600; line-height:1.45; }
.sfw-account-page .customer-summary-card b {
  font:400 32px/1.08 var(--font-label,Georgia,serif); letter-spacing:-.025em; color:#3b3b3b;
}
.sfw-account-page .customer-summary-card small { font-size:13px; line-height:1.6; color:#655d68; }
.sfw-account-page .customer-summary-card .workspace-icon {
  width:40px; height:40px; border:1px solid #ead4e1; border-radius:13px;
  background:#F3DCE6; box-shadow:inset 0 1px 0 #fff;
}
.sfw-account-page #account-content>#r3-order-picker {
  gap:16px 28px; padding:18px 20px; border-radius:16px; background:#fff;
  border-color:var(--workspace-line); box-shadow:var(--workspace-shadow);
}
.sfw-account-page #r3-order-picker>label { gap:7px; color:#6e6e6e; font-size:13px; letter-spacing:.01em; }
.sfw-account-page #r3-order-picker select { min-height:46px; border-color:#d0bccb; background:#fdfbfc; }
.sfw-account-page #r3-order-picker .customer-workspace-context {
  padding-left:24px; border-left:1px solid var(--workspace-line);
}
.sfw-account-page #r3-order-picker .customer-workspace-context>summary { font-size:13px; }
.sfw-account-page #r3-order-picker .customer-workspace-facts { font-size:13px; line-height:1.6; }
.sfw-account-page #r3-order-picker .customer-order-reference { font-weight:500; letter-spacing:.035em; }
.sfw-account-page #account-content>.customer-workspace-panel:not(#account-orders),
.sfw-account-page #account-content>#focused-resource {
  border-color:var(--workspace-line); border-radius:16px; padding:25px;
  background:#fff; box-shadow:var(--workspace-shadow);
}
.sfw-account-page .customer-workspace-panel>h2 {
  display:flex; align-items:center; gap:12px; font-size:29px; letter-spacing:-.02em;
}
.sfw-account-page .customer-workspace-panel>h2::before {
  content:""; width:5px; height:21px; flex:none; border-radius:4px;
  background:#bd82a1;
}
.sfw-account-page #account-orders>h2 {
  padding:23px 22px 17px; border-color:var(--workspace-line);
  border-radius:16px 16px 0 0; font-size:28px;
}
.sfw-account-page #orders-list {
  padding:0 21px 23px; border-color:var(--workspace-line);
  border-radius:0 0 16px 16px; box-shadow:var(--workspace-shadow);
}
.sfw-account-page #account-content #orders-list>.r6-service+.r6-service {
  padding-top:22px; margin-top:22px; border-top:1px dashed var(--workspace-line);
}
.sfw-account-page .customer-order-preview { gap:20px; }
.sfw-account-page #account-content .customer-order-cover {
  padding:7px; border:1px solid #D9CDD3; background:#FAF6F8;
  border-radius:12px; box-shadow:3px 3px 0 #EAD5DE;
}
.sfw-account-page .customer-order-copy>h3 { margin-top:5px; font-size:25px; line-height:1.25; }
.sfw-account-page .customer-order-copy>p { margin-block:7px; line-height:1.6; }
.sfw-account-page .customer-order-copy>.r6-button { margin-block:12px; padding-inline:15px; }
.sfw-account-page .customer-order-stages { border-top:1px dashed #e8dbe4; padding-top:21px; }
.sfw-account-page .customer-order-stages li { font-size:13px; line-height:1.4; }
.sfw-account-page .customer-order-stages li[data-complete=true] { color:#636363; }
.sfw-account-page .customer-order-stages li[aria-current=step] { color:#5f5f5f; font-weight:600; }
.sfw-account-page .customer-workspace-help { padding:24px 21px; box-shadow:var(--workspace-shadow); }
.sfw-account-page .customer-workspace-help>.workspace-help-intro { margin-bottom:17px; line-height:1.6; }
.sfw-account-page .customer-workspace-help>a { gap:12px; padding-block:16px; }
.sfw-account-page .customer-workspace-help strong { font-size:14px; line-height:1.55; }
.sfw-account-page .customer-workspace-help small { font-size:13px; line-height:1.65; }
.sfw-account-page .customer-workspace-help .workspace-help-arrow { width:27px; height:27px; }
.sfw-account-page .customer-empty-state {
  width:100%; min-width:0; padding:28px 26px; border:1px dashed #d8bccf;
  border-radius:16px; background:#FAF6F8;
}
.sfw-account-page .customer-empty-state h2 { margin:0 0 10px; font-size:29px; }
.sfw-account-page .customer-empty-state p { margin:0 0 10px; font-size:14px; color:#7a6b79; }
.sfw-account-page .customer-empty-state a { display:inline-flex; align-items:center; min-height:44px; color:#6f6f6f; }
.sfw-account-page #r3-order-picker:has(>.customer-empty-state) { padding:0; border:0; box-shadow:none; }

/* Resource files, selection balances and support forms remain records, not decorative status. */
.sfw-account-page #account-content .resource-delivery :is(article[id^="release-"],article[id^="resource-"]) {
  padding:20px; gap:10px 22px; border-color:#e5d6e0;
  border-radius:16px; box-shadow:2px 2px 0 #EAD5DE;
}
.sfw-account-page #account-content .resource-delivery :is(article[id^="release-"],article[id^="resource-"])>h4 {
  margin-bottom:7px; font-size:17px; border-left:3px solid #c78caa; padding-left:12px;
}
.sfw-account-page #account-content .resource-delivery :is(article[id^="release-"],article[id^="resource-"])>p { line-height:1.65; }
.sfw-account-page #account-content .resource-delivery :is(article[id^="release-"],article[id^="resource-"])>p:has(>span:nth-child(3):last-child) {
  border-color:#eee4eb; gap:4px; padding-top:10px;
}
.sfw-account-page #picks-list>article>.r6-balance {
  align-self:start; min-height:142px; border:1px solid #dfc5d6; border-radius:16px;
  background:#FAF6F8;
  outline:1px solid #eedde7; outline-offset:-7px;
}
.sfw-account-page #picks-list .r6-balance strong { margin-bottom:8px; color:#646464; font-size:45px; }
.sfw-account-page #picks-list .r6-balance span { color:#646464; font-size:13px; }
.sfw-account-page #picks-list .selection-preview img { border-radius:15px; padding:6px; background:#fdf9fc; }
.sfw-account-page #account-help :is(.r7-scheduling,.r6-note) {
  border:1px solid var(--workspace-line); border-radius:16px; background:#FAF6F8;
}
.sfw-account-page #account-help .r7-scheduling { padding:22px; }
.sfw-account-page #account-security,
.sfw-account-page #account-settings>details { border-color:var(--workspace-line); border-radius:18px; }
.sfw-account-page .customer-contact-form>label,
.sfw-account-page #account-preferences label { font-size:13px; line-height:1.5; color:#666666; }
.sfw-account-page #account-content .contact-onboarding { border-top:1px dashed #e4d5df; }
.sfw-account-page #account-content .contact-onboarding>summary { font-size:24px; }
.sfw-account-page #account-content .contact-onboarding[open]>summary { color:#6a6a6a; }
.sfw-account-page .customer-language-note { border-radius:0 12px 12px 0; }
.sfw-account-page #account-login { position:relative; overflow:hidden; }
.sfw-account-page #account-login::before {
  content:""; display:block; width:48px; height:4px; margin-bottom:20px;
  border-radius:5px; background:#878787;
}
.sfw-account-page .customer-signin-invitation { border-radius:14px; background:#fcf7fa; border-color:#ead9e4; }
.sfw-account-page #account-login #auth-recovery { border-top-style:dashed; border-color:#e5d6df; }

/* Owner workspace: white paper faces, shallow backing and meaningful state accents. */
body.r4-owner-compact .merchant-page-header {
  position:relative; align-items:center; padding:8px 0 23px; margin-bottom:22px;
  border-bottom:1px solid var(--workspace-line);
}
body.r4-owner-compact .merchant-page-header::after {
  content:""; position:absolute; left:0; bottom:-1px; width:54px; height:3px;
  border-radius:3px; background:#8c8c8c;
}
body.r4-owner-compact .merchant-page-header h1 { font-size:30px; line-height:1.3; font-weight:600; }
body.r4-owner-compact .merchant-page-header p { margin-top:9px; font-size:14px; line-height:1.65; color:#685c66; }
body.r4-owner-compact .merchant-header-actions { gap:9px; }
body.r4-owner-compact .merchant-header-actions button {
  min-height:44px; padding:9px 15px; border-radius:12px; border-color:#d9c5d2;
  font-size:13px; background:#fff; color:#505050; box-shadow:0 2px 0 #EAD5DE;
}
body.r4-owner-compact .merchant-header-actions button:hover:not(:disabled) { background:#faf0f6; color:#505050; border-color:#bc8fa8; }
body.r4-owner-compact .merchant-review-banner {
  padding:8px 12px; border:1px dashed #d9c6d2; border-radius:11px;
  background:#fff; color:#6c6c6c; font-size:13px; line-height:1.6;
}
body.r4-owner-compact .r5-owner-metrics { gap:11px; margin-bottom:22px; }
body.r4-owner-compact .r5-owner-metrics>button {
  position:relative; min-height:108px; gap:12px 9px; padding:17px 12px;
  border-radius:16px; border-color:var(--workspace-line); background:#fff;
  box-shadow:var(--workspace-shadow);
}
body.r4-owner-compact .r5-owner-metrics>button>svg {
  width:26px; height:26px; padding:5px; box-sizing:content-box;
  border-radius:11px; background:#faf0f6; color:#7a7a7a;
}
body.r4-owner-compact .r5-owner-metrics>button>span { font-size:13px; line-height:1.55; color:#616161; }
body.r4-owner-compact .r5-owner-metrics>button>strong { font-size:28px; font-weight:600; padding-top:1px; }
body.r4-owner-compact .r5-owner-metrics>button[data-has-count=true] {
  border-color:#d6b6c9; box-shadow:inset 0 3px 0 #d4a1ba,var(--workspace-shadow);
}
body.r4-owner-compact .r5-owner-metrics>button[data-has-count=false] { background:var(--sfw-paper-soft,#FAF6F8); border-color:#DDD4D9; box-shadow:none; }
body.r4-owner-compact .r5-owner-metrics>button[data-has-count=false]>svg { background:#F0EBEE; color:#7b7078; }
body.r4-owner-compact .r5-owner-metrics>button[aria-pressed=true] { background:#F3DCE6; border-color:#bc82a0; }
body.r4-owner-compact :is(.merchant-primary-queue,#merchant-upcoming,.merchant-overview-settings) {
  padding:23px 21px; border-radius:16px; border-color:var(--workspace-line); background:#fff;
  box-shadow:var(--workspace-shadow);
}
body.r4-owner-compact :is(.merchant-primary-queue>h3,#merchant-upcoming h2,.merchant-overview-settings h2) {
  font-size:21px; line-height:1.5; font-weight:600;
}
body.r4-owner-compact .merchant-primary-queue>#desk-task-count { font-size:13px; line-height:1.6; color:#685c66; }
body.r4-owner-compact .merchant-primary-queue>label {
  padding:9px 12px; margin:16px 0; border:1px solid #ebdfe7; border-radius:12px; background:#fcf9fb;
}
body.r4-owner-compact .merchant-primary-queue>label span { color:#6b6b6b; font-size:13px; }
body.r4-owner-compact .merchant-primary-queue>label select { border-radius:9px; border-color:#d6bfce; background:#fff; }
body.r4-owner-compact .desk-tasks>.merchant-priority-row {
  padding-block:17px; border-color:#ebe1e8; background:#fff;
}
body.r4-owner-compact .merchant-order-cover {
  border:1px solid #e8d8e2; border-radius:10px; padding:3px; background:#fdf9fc;
}
body.r4-owner-compact .merchant-task-identity strong { font-size:14px; line-height:1.55; }
body.r4-owner-compact .merchant-task-identity :is(p,small),
body.r4-owner-compact .merchant-task-context :is(p,small) { font-size:14px; line-height:1.65; }
body.r4-owner-compact .merchant-priority-row>button { border-color:#d7bfce; border-radius:11px; font-size:13px; }
body.r4-owner-compact .merchant-task-sources>summary { min-height:44px; padding:6px 0; font-size:13px; color:#5f5f5f; }
body.r4-owner-compact .merchant-appointment-row { border-color:#e9dce5; padding-block:18px; }
body.r4-owner-compact .merchant-empty-appointments {
  min-height:132px; padding:18px; border:1px dashed #ddc9d8; border-radius:17px;
  background:var(--sfw-paper-soft,#FAF6F8);
}
body.r4-owner-compact .merchant-empty-appointments>svg {
  width:32px; height:32px; margin:0 0 10px; padding:8px; box-sizing:content-box;
  color:#b685a2; border:1px solid #efdae7; border-radius:20px; background:#fff;
}
body.r4-owner-compact .merchant-empty-appointments p { margin-bottom:0; font-size:13px; }
body.r4-owner-compact .merchant-empty-state {
  border:1px dashed #dac2d3; background:var(--sfw-paper-soft,#FAF6F8);
  border-radius:16px; color:#676767; padding:23px; line-height:1.75;
}

/* Search/filter controls form a clear band above record tables. */
body.r4-owner-compact .merchant-section-heading { align-items:center; margin-bottom:18px; }
body.r4-owner-compact .merchant-section-heading>h2 {
  display:flex; align-items:center; gap:10px; font-size:20px; font-weight:600;
}
body.r4-owner-compact .merchant-section-heading>h2::before {
  content:""; width:4px; height:18px; flex:none; border-radius:3px;
  background:#b87e9d;
}
body.r4-owner-compact .merchant-section-heading>span {
  padding:5px 11px; border:1px solid #e8d9e3; border-radius:30px;
  background:#fcf8fb; font-size:13px; color:#707070;
}
body.r4-owner-compact .merchant-order-filters {
  margin:0 20px 20px; padding:16px; gap:13px; border:1px solid #eadde6;
  border-radius:16px; background:var(--sfw-paper-soft,#FAF6F8);
}
body.r4-owner-compact .merchant-order-filters label { color:#686868; font-size:13px; font-weight:600; }
body.r4-owner-compact .merchant-order-filters :is(input,select) {
  min-height:46px; border-color:#d3bfce; border-radius:10px; background:#fff;
}
body.r4-owner-compact .merchant-order-filters>button { min-height:46px; border-radius:10px; }
body.r4-owner-compact .merchant-filter-clear { color:#6d6d6d; }
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) th {
  background:#fbf7fa; border-bottom-color:#e5d6e0; padding-block:14px;
  color:#6b6b6b; font-size:13px; font-weight:600; letter-spacing:.015em;
}
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td { border-bottom-color:#eee4eb; }
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td strong { font-weight:600; line-height:1.5; }
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td small { margin-top:5px; color:#685c66; font-size:13px; line-height:1.65; }
body.r4-owner-compact .merchant-products-table td:first-child img {
  padding:5px; border-color:#e4d0de; border-radius:14px; background:#fdf9fc;
  box-shadow:3px 4px 0 #f5ebf1;
}
body.r4-owner-compact .merchant-products-table .merchant-catalog-price { color:#626262; }
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td button {
  border-color:#d9c2d2; border-radius:10px; padding:9px 12px; font-size:13px;
}
body.r4-owner-compact .merchant-pagination,
body.r4-owner-compact .merchant-record-controls { align-items:center; gap:10px; }
body.r4-owner-compact .merchant-pagination>span {
  font-size:13px; color:#5f5f5f; font-variant-numeric:tabular-nums;
}
body.r4-owner-compact .merchant-pagination>button { border-color:#deccd8; border-radius:10px; min-height:44px; font-size:13px; }

/* Editor and settings chapters: the save strip stays in its existing position. */
body.r4-owner-compact #r4-product-drawer .editor-tabs {
  padding:5px; gap:5px; border-color:#e6d5e1; border-radius:15px; background:#faf5f8;
}
body.r4-owner-compact .editor-tabs button { border-radius:10px; color:#747474; font-weight:600; }
body.r4-owner-compact .editor-tabs button[aria-selected=true] {
  color:#616161; background:#fff; box-shadow:0 2px 0 #EAD5DE,inset 0 0 0 1px #D9CDD3;
}
body.r4-owner-compact :is([data-editor-panel],.merchant-settings-form,.merchant-release-editor) label {
  color:#646464; font-size:13px; line-height:1.55;
}
body.r4-owner-compact :is([data-editor-panel],.merchant-settings-form,.merchant-release-editor) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  border-color:#d2becc; border-radius:11px; background:#fff; box-shadow:inset 0 2px 4px #28282803;
}
body.r4-owner-compact :is(.cms-advanced,.merchant-settings-advanced) {
  border:1px dashed #dfcdda; border-radius:13px; padding:10px 15px; background:#fdf9fc;
}
body.r4-owner-compact :is(.cms-advanced,.merchant-settings-advanced)>summary {
  color:#727272; font-size:13px; line-height:1.6; min-height:44px;
}
body.r4-owner-compact :is(.merchant-resource-item,.merchant-resource-scope) {
  border-color:#e1cddc; border-radius:15px; background:var(--sfw-paper-soft,#FAF6F8);
}
body.r4-owner-compact :is(.merchant-resource-item,.merchant-resource-scope)>legend { color:#6c6c6c; padding-inline:8px; font-size:13px; }
body.r4-owner-compact .persistent-save { border-top-color:#e6d7e1; gap:10px; box-shadow:0 -2px 0 #EAD5DE; }
body.r4-owner-compact .persistent-save button { border-radius:11px; }
body.r4-owner-compact .desk-order-modal-header { border-bottom-color:#e6d7e1; }
body.r4-owner-compact .merchant-drawer-context { border-color:#e7d8e2; border-radius:14px; background:#fcf7fb; color:#585858; }
body.r4-owner-compact .merchant-record-controls input { border-color:#d7bfce; border-radius:11px; }

/* Selected navigation remains real aria state. No extra status is inferred. */
@media(min-width:851px) {
  body.r4-owner-compact #simple-owner-nav button[aria-current=page] {
    background:#F3DCE6; border-color:#e5bad0;
    box-shadow:inset 3px 0 0 #7a7a7a;
  }
  .sfw-account-page .customer-workspace-nav a[aria-current=page] svg,
  body.r4-owner-compact #simple-owner-nav button[aria-current=page] .merchant-nav-icon { color:#6d6d6d; }
  body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) tbody tr:hover td { background:#fdf9fc; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .sfw-account-page .workspace-heading-links svg { transition:transform .16s ease; }
  .sfw-account-page .workspace-heading-links a:hover svg { transform:translate(2px,-2px); }
  body.r4-owner-compact .r5-owner-metrics>button { transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
  body.r4-owner-compact .r5-owner-metrics>button:hover { transform:translateY(-1px); border-color:#c39ab1; }
}
@media(max-width:1150px) and (min-width:851px) {
  body.r4-owner-compact .r5-owner-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.r4-owner-compact .r5-owner-metrics>button { grid-template-columns:36px minmax(0,1fr); min-height:95px; }
  body.r4-owner-compact .r5-owner-metrics>button>strong { grid-column:1/-1; }
  .sfw-account-page .customer-summary-card { padding:16px 14px; gap:10px; }
  .sfw-account-page .customer-summary-card .workspace-icon { width:33px; height:33px; }
}
@media(max-width:850px) {
  .sfw-account-page .care-workspace-heading { gap:15px; padding-top:4px; padding-bottom:18px; margin-bottom:20px; }
  .sfw-account-page .care-workspace-heading h1 { font-size:33px; }
  .sfw-account-page .care-workspace-seal { width:75px; height:75px; margin:0; }
  .sfw-account-page .workspace-heading-links { gap:3px 16px; margin-top:8px; }
  .sfw-account-page .workspace-heading-links>a { min-height:44px; font-size:13px; gap:6px; }
  .sfw-account-page #account-content { gap:16px; }
  .sfw-account-page .customer-workspace-summary { gap:10px; }
  .sfw-account-page .customer-summary-card { padding:15px 13px; border-radius:16px; }
  .sfw-account-page .customer-summary-card strong { font-size:14px; }
  .sfw-account-page .customer-summary-card b { font-size:28px; }
  .sfw-account-page .customer-summary-card small { font-size:13px; }
  .sfw-account-page .customer-summary-card .workspace-icon { width:33px; height:33px; }
  .sfw-account-page #account-content>#r3-order-picker { padding:17px; gap:13px; }
  .sfw-account-page #r3-order-picker .customer-workspace-context { padding:9px 0 0; border-left:0; border-top:1px dashed #e5d6e0; }
  .sfw-account-page #account-content>.customer-workspace-panel:not(#account-orders),
  .sfw-account-page #account-content>#focused-resource { padding:19px 16px; border-radius:18px; }
  .sfw-account-page .customer-workspace-panel>h2 { font-size:25px; gap:9px; }
  .sfw-account-page #account-orders>h2 { padding:20px 17px 16px; font-size:26px; }
  .sfw-account-page #orders-list { padding:0 16px 20px; }
  .sfw-account-page .customer-order-preview { gap:9px 16px; }
  .sfw-account-page .customer-order-copy>h3 { font-size:23px; }
  .sfw-account-page .customer-workspace-help { padding:22px 18px; }
  .sfw-account-page .customer-workspace-help>a { padding-block:15px; }
  .sfw-account-page #account-content .resource-delivery :is(article[id^="release-"],article[id^="resource-"]) { padding:16px; gap:9px 12px; }
  .sfw-account-page #account-content .resource-delivery :is(article[id^="release-"],article[id^="resource-"])>h4 { font-size:16px; }
  .sfw-account-page #account-help .r7-scheduling { padding:17px; }
  .sfw-account-page .customer-empty-state { padding:23px 20px; }
  .sfw-account-page #r3-order-picker:has(>.customer-empty-state) { padding:0; }
  body.r4-owner-compact .merchant-page-header { padding:4px 0 18px; gap:10px; margin-bottom:18px; }
  body.r4-owner-compact .merchant-page-header h1 { font-size:27px; white-space:normal; overflow-wrap:anywhere; }
  body.r4-owner-compact .merchant-page-header>div { min-width:0; max-width:100%; }
  body.r4-owner-compact .merchant-page-header p { font-size:14px; margin-top:7px; }
  body.r4-owner-compact .merchant-header-actions button { padding:8px 12px; font-size:13px; }
  body.r4-owner-compact .r5-owner-metrics { gap:9px; margin-bottom:18px; }
  body.r4-owner-compact .r5-owner-metrics>button { min-height:102px; padding:13px 10px; gap:10px 7px; border-radius:15px; grid-template-columns:30px minmax(0,1fr); }
  body.r4-owner-compact .r5-owner-metrics>button>svg { width:20px; height:20px; padding:5px; border-radius:9px; }
  body.r4-owner-compact .r5-owner-metrics>button>span { font-size:13px; }
  body.r4-owner-compact .r5-owner-metrics>button>strong { font-size:26px; }
  body.r4-owner-compact :is(.merchant-primary-queue,#merchant-upcoming,.merchant-overview-settings) { padding:20px 16px; border-radius:16px; }
  body.r4-owner-compact .merchant-primary-queue>label { gap:10px; padding:8px 10px; }
  body.r4-owner-compact .merchant-task-identity strong { font-size:14px; }
  body.r4-owner-compact .merchant-task-identity :is(p,small),
  body.r4-owner-compact .merchant-task-context :is(p,small) { font-size:14px; }
  body.r4-owner-compact .merchant-priority-row>button { min-height:44px; padding:9px 13px; font-size:13px; }
  body.r4-owner-compact .merchant-order-filters { margin:0 13px 17px; padding:13px; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.r4-owner-compact .merchant-order-filters>label:first-child { grid-column:1/-1; }
  body.r4-owner-compact .merchant-order-filters>label:nth-child(4) { grid-column:auto; }
  body.r4-owner-compact .merchant-order-filters>button { grid-column:auto; }
  body.r4-owner-compact .merchant-order-filters label { font-size:13px; }
  body.r4-owner-compact .merchant-order-filters :is(input,select) { font-size:16px; }
  body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) tr {
    margin-bottom:12px; padding:18px 16px; border-color:#e3d0de; border-radius:17px;
    background:#fff; box-shadow:3px 3px 0 #EAD5DE,0 4px 8px #28282808;
  }
  body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td { border-bottom:0; }
  body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td small { font-size:13px; }
  body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td button { min-height:44px; font-size:13px; }
  body.r4-owner-compact .merchant-products-table td:first-child img { width:66px; height:89px; }
  body.r4-owner-compact .merchant-products-table td:not(:first-child)::before { color:#7f7f7f; font-size:13px; }
  body.r4-owner-compact .merchant-products-table td:nth-child(3) { padding-top:10px; border-top:1px dashed #e8dbe4; }
  body.r4-owner-compact .merchant-pagination { gap:8px; }
  body.r4-owner-compact .merchant-empty-state { padding:20px 17px; font-size:13px; }
}
@media(max-width:380px) {
  .sfw-account-page .care-workspace-seal { display:none; }
  .sfw-account-page .customer-summary-card { padding:13px 11px; }
  body.r4-owner-compact .r5-owner-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.r4-owner-compact .r5-owner-metrics>button { min-height:94px; }
  body.r4-owner-compact .merchant-order-filters { margin-inline:9px; padding:11px; }
}
@media(prefers-reduced-motion:reduce) {
  .sfw-account-page .workspace-heading-links svg,
  body.r4-owner-compact .r5-owner-metrics>button { transition:none; transform:none; }
}
@media(forced-colors:active) {
  .sfw-account-page .customer-summary-card,
  .sfw-account-page .customer-empty-state,
  body.r4-owner-compact .r5-owner-metrics>button,
  body.r4-owner-compact .merchant-empty-appointments { border:1px solid CanvasText; }
}

/* R3.13 workspace surfaces. These two scopes deliberately exclude /setup.
   The canvas, navigation rail, content sheets and inset controls use separate
   solid materials, with the same shallow paper backing as the public pages. */
body.sfw-account-page,
body.r4-owner-compact {
  --workspace-line:#cdbbc4;
  --workspace-line-strong:#b89da9;
  --workspace-paper:#fffdf9;
  --workspace-pale:#f7edf0;
  --workspace-muted:#665960;
  --workspace-shadow:3px 4px 0 #e4cfd8,0 9px 20px #3b3b3b0a;
  --merchant-border:#cdbbc4;
  --merchant-paper:#fffdf9;
  --merchant-surface:#fffdf9;
  --merchant-soft:#f7edf0;
  --merchant-muted:#665960;
  --customer-line:#cdbbc4;
  --customer-paper:#f4eceb;
  --customer-blush:#f1dce4;
  --customer-ink:#2b2b2b;
  --customer-muted:#665960;
  background:#f4eceb;
}
body.r4-owner-compact main {
  border-color:#c8b4bf;
  background:#f7f1ee;
  box-shadow:5px 6px 0 #e0cbd5,0 16px 32px #37373709;
}
body.sfw-account-page .customer-workspace-sidebar,
body.r4-owner-compact #simple-owner-nav {
  color:#343434;
  background:#f9f0ed;
  border:1px solid #c8b4bf;
  box-shadow:3px 4px 0 #dfc8d1;
}
body.r4-owner-compact #simple-owner-nav { border-width:0 1px 0 0; }
body.sfw-account-page .customer-workspace-brand,
body.r4-owner-compact .merchant-brand {
  padding-bottom:17px;
  border-bottom:1px solid #d6c2ca;
}
body.sfw-account-page .customer-workspace-brand strong,
body.r4-owner-compact .merchant-brand strong {color:#343434;}
body.sfw-account-page .customer-workspace-brand p,
body.r4-owner-compact .merchant-brand small,
body.r4-owner-compact .merchant-sidebar-footer small {color:#666666;}
body.r4-owner-compact .merchant-brand strong {white-space:normal;overflow-wrap:anywhere;}
body.sfw-account-page .buyer-avatar,
body.r4-owner-compact .merchant-brand img {
  border:1px solid #b89da9;
  background:#fffdf9;
  box-shadow:2px 3px 0 #e1cbd5;
}
body.sfw-account-page .customer-workspace-sidebar .customer-workspace-nav a,
body.r4-owner-compact #simple-owner-nav button[data-page] {
  color:#464646;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
}
body.sfw-account-page .customer-workspace-sidebar .customer-workspace-nav a:hover,
body.r4-owner-compact #simple-owner-nav button[data-page]:hover {
  background:#fffdf9;
  border-color:#d3bec8;
}
body.sfw-account-page .customer-workspace-sidebar .customer-workspace-nav a[aria-current=page],
body.r4-owner-compact #simple-owner-nav button[aria-current=page] {
  color:#414141;
  background:#efdae3;
  border-color:#b78d9f;
  box-shadow:inset 3px 0 0 #777777,0 2px 0 #e0c6d2;
}
body.sfw-account-page .customer-workspace-sidebar :is(#account-logout,.workspace-menu-toggle),
body.r4-owner-compact #simple-owner-nav :is(#logout,#owner-menu-toggle) {
  color:#4c4c4c;
  background:#fffdf9;
  border:1px solid #c3aab6;
  border-radius:10px;
  box-shadow:0 2px 0 #e5d1d9;
}
body.sfw-account-page .customer-workspace-sidebar .workspace-public-help {color:#5d5d5d;}
body.r4-owner-compact .merchant-sidebar-footer {border-top-color:#d6c2ca;}
body.sfw-account-page .customer-workspace-sidebar>.workspace-sidebar-scene,
body.r4-owner-compact #simple-owner-nav>.workspace-sidebar-scene {
  mask-image:none;
  border-top:1px solid #d6c2ca;
  background:#f9f0ed;
}
body.sfw-account-page :is(.customer-summary-card,.customer-workspace-help,#r3-order-picker),
body.sfw-account-page #account-content>.customer-workspace-panel:not(#account-orders),
body.sfw-account-page #orders-list,
body.r4-owner-compact :is(.merchant-primary-queue,#merchant-upcoming,.merchant-overview-settings,.r5-owner-metrics>button) {
  background:#fffdf9;
  border-color:var(--workspace-line);
  box-shadow:var(--workspace-shadow);
}
body.sfw-account-page #account-orders>h2 {background:#fffdf9;border-color:var(--workspace-line);}
body.sfw-account-page .care-workspace-heading,
body.r4-owner-compact .merchant-page-header {border-bottom-color:#bfa4b2;}
body.sfw-account-page .care-workspace-heading .eyebrow,
body.r4-owner-compact .merchant-page-header p {color:#656565;}
body.sfw-account-page .care-workspace-seal {
  border-color:#c3a3b3;
  background:#f4e3e8;
  color:#636363;
  box-shadow:3px 4px 0 #dfc6d1;
}
body.sfw-account-page .customer-summary-card .workspace-icon {background:#f2dfe7;border-color:#d2b3c3;}
body.sfw-account-page .customer-summary-card:focus-visible,
body.sfw-account-page .customer-workspace-sidebar :focus-visible,
body.r4-owner-compact #simple-owner-nav :focus-visible {outline:2px solid #636363;outline-offset:3px;}
body.sfw-account-page #account-content .customer-service-state,
body.sfw-account-page #account-content .customer-service-progress,
body.r4-owner-compact .merchant-state {
  border:1px solid #d0b5c2;
  border-radius:6px;
  background:#f9eef3;
  color:#4e4e4e;
  padding:4px 9px;
}
body.sfw-account-page #included-purchase>article {
  border:1px solid #b995a7;
  border-radius:13px;
  background:#f2e1e8;
  box-shadow:3px 4px 0 #e2cbd5;
}
body.sfw-account-page #included-purchase>article :is(h2,p) {color:#3b3b3b;}
body.sfw-account-page #included-purchase>article a {color:#5d5d5d;text-underline-offset:4px;}
body.sfw-account-page #account-content .resource-delivery :is(article[id^=release-],article[id^=resource-]) {
  background:#fffdfb;
  border-color:#cdb3c0;
  box-shadow:2px 3px 0 #ecdae2;
}
body.sfw-account-page #account-content .resource-delivery>details,
body.sfw-account-page #account-content .contact-onboarding {border-top-style:solid;border-color:#d3bbc7;}
body.sfw-account-page :is(#account-security,#account-settings>details,#account-help .r7-scheduling) {background:#fbf5f1;border-color:#ceb6c2;}
body.sfw-account-page :is(#account-content,#account-login,#claim-confirm) :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
body.r4-owner-compact :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  min-width:0;
  border-color:#bda6b2;
  border-radius:9px;
  background:#fffefd;
  color:#343434;
  box-shadow:inset 0 2px 0 #eee4e8;
}
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) th {background:#f2e7e7;color:#5d5d5d;border-bottom-color:#cdb3c0;}
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td {border-bottom-color:#e3d4da;}
body.r4-owner-compact :is(.merchant-order-filters,.merchant-empty-appointments,.cms-advanced,.merchant-settings-advanced,.merchant-resource-item,.merchant-resource-scope) {
  background:#f7eeed;
  border-color:#cdb3c0;
}
body.r4-owner-compact :is(.desk-order-modal-header,.persistent-save) {background:#fffaf7;border-color:#cdb3c0;}
body.r4-owner-compact .merchant-drawer-context {background:#f3e5e9;border-color:#cdb3c0;}
body.r4-owner-compact .merchant-edit-decision {background:#fffdf9;border:1px solid #b99baa;box-shadow:5px 6px 0 #d9bdcb,0 18px 50px #29292928;}
body.sfw-account-page #account-status:not(:empty),
body.r4-owner-compact :is(#r6-status,.desk-notice):not(:empty) {
  border:1px solid #c7adbb;
  border-radius:9px;
  padding:12px 15px;
  background:#fff6e9;
  color:#674e40;
}
body.sfw-account-page #account-status[data-state=error],
body.r4-owner-compact #r6-status[data-state=error] {background:#fbecef;color:#575757;border-color:#cb9aa9;}
body.sfw-account-page #account-status[data-state=success],
body.r4-owner-compact #r6-status[data-state=success] {background:#edf3e9;color:#4a6046;border-color:#a9bba2;}
@media(min-width:851px) {
  body.sfw-account-page .r6-shell {gap:25px;}
  body.sfw-account-page .customer-workspace-sidebar {top:96px;max-height:calc(100dvh - 116px);}
  body.r4-owner-compact main {gap:0 26px;}
  body.r4-owner-compact #simple-owner-nav {box-shadow:3px 0 0 #e7d7da;}
  body.r4-owner-compact #simple-owner-nav>.workspace-sidebar-scene {max-height:145px;}
}
@media(max-width:1100px) and (min-width:851px) {
  body.sfw-account-page .r6-shell {gap:18px;}
  body.sfw-account-page .customer-workspace-body {padding:12px 0 26px;}
  body.r4-owner-compact main {gap:0 18px;}
  body.r4-owner-compact .merchant-overview-columns {grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr);}
}
@media(max-width:850px) {
  body.r4-owner-compact main {padding:0 14px 18px;}
  body.r4-owner-compact #simple-owner-nav {border-width:0 0 1px;box-shadow:0 3px 0 #e7d7da;}
  body.sfw-account-page .customer-workspace-sidebar {border-width:0 0 1px;border-radius:0;box-shadow:0 3px 0 #e7d7da;}
  body.sfw-account-page .customer-workspace-brand {padding-bottom:0;border:0;}
  body.sfw-account-page .customer-workspace-body {padding:23px 16px 28px;}
  body.sfw-account-page .customer-workspace-summary {grid-template-columns:repeat(3,minmax(0,1fr));}
  body.sfw-account-page .customer-summary-card {padding:14px 11px;gap:9px;}
  body.sfw-account-page .customer-summary-card .workspace-icon {display:none;}
  body.sfw-account-page .customer-summary-card small {font-size:12px;}
}
@media(max-width:520px) {
  body.sfw-account-page .r6-shell {width:calc(100% - 24px);}
  body.sfw-account-page .customer-summary-card {padding:12px 9px;border-radius:12px;}
  body.sfw-account-page .customer-summary-card strong {font-size:12px;}
  body.sfw-account-page .customer-summary-card b {font-size:25px;}
  body.sfw-account-page .customer-summary-card small {display:none;}
  body.sfw-account-page .customer-summary-card {min-height:105px;}
  body.r4-owner-compact main {width:calc(100% - 20px);}
  body.r4-owner-compact .merchant-page-header {align-items:flex-start;}
  body.r4-owner-compact .merchant-header-actions {margin-left:0;}
  body.r4-owner-compact .merchant-order-filters {grid-template-columns:1fr;}
  body.r4-owner-compact .merchant-order-filters>* {grid-column:1!important;}
}
/* Nested rail labels follow the rail material in default, hover and focus states. */
body.sfw-account-page .customer-workspace-sidebar .workspace-public-help {
  border-color:#c9aabb;
  background:#fffaf5;
  color:#4d4d4d;
  box-shadow:0 2px 0 #e7ceda;
}
body.sfw-account-page .customer-workspace-sidebar .workspace-public-help:is(:hover,:focus-visible) {
  border-color:#8e8e8e;
  background:#f0dce6;
  color:#3f3f3f;
}
body.sfw-account-page .workspace-help-copy strong {color:#434343;}
body.sfw-account-page .workspace-help-copy small {color:#646464;}
body.sfw-account-page .workspace-help-glyph {color:#626262;border-color:#bd91aa;background:#f4e2eb;}
body.sfw-account-page .workspace-help-tip {color:#626262;}
body.sfw-account-page .workspace-scene-card,
body.r4-owner-compact #simple-owner-nav .workspace-scene-card {border-top-color:#cfb3c2;}
body.sfw-account-page .workspace-scene-frame,
body.r4-owner-compact #simple-owner-nav .workspace-scene-frame {
  border-color:#c3a2b4;
  background:#fffaf5;
  box-shadow:2px 3px 0 #e2c7d3;
}
body.sfw-account-page .workspace-scene-card figcaption,
body.r4-owner-compact #simple-owner-nav .workspace-scene-card figcaption {color:#626262;}
body.sfw-account-page .workspace-scene-card figcaption span:last-child,
body.r4-owner-compact #simple-owner-nav .workspace-scene-card figcaption span:last-child {color:#686868;}
body.r4-owner-compact #simple-owner-nav .merchant-brand {border-bottom-color:#d6c2ca;}
body.r4-owner-compact .desk-order-modal-header h2 {color:#3e3e3e;}
body.r4-owner-compact .desk-order-modal-header .desk-order-close {color:#4c4c4c;border-color:#b48d9f;background:#fffaf7;}
body.r4-owner-compact .desk-order-modal-header .desk-order-close:hover {background:#f0dce6;color:#3d3d3d;}

/* Owner journal: cream index, ivory records and a restrained pink paper edge.
   These rules deliberately leave the customer workspace and /setup untouched. */
body.r4-owner-compact{--workspace-line:#d7ccc5;--workspace-line-strong:#bdaaa7;--workspace-paper:#fffdfa;--workspace-pale:#f9f0ed;--workspace-muted:#6e6366;--workspace-shadow:2px 3px 0 #e9dce0;--merchant-border:#d7ccc5;--merchant-paper:#fffdfa;--merchant-surface:#fffdfa;--merchant-soft:#faf4ef;--merchant-muted:#6e6366;background:#f1ebe5;color:#302c2e}
body.r4-owner-compact main{border-color:#d3c5bd;background:#f8f4ee;box-shadow:3px 4px 0 #e5d8d4}
body.r4-owner-compact #simple-owner-nav{background:#f6eee7;border-color:#d7c8bf;box-shadow:2px 0 0 #e9ddd7}
body.r4-owner-compact .merchant-brand{border-bottom-color:#d8c9c1}
body.r4-owner-compact .merchant-brand :is(strong,small){color:#4b4245}
body.r4-owner-compact #simple-owner-nav button[data-page]{color:#51464b}
body.r4-owner-compact #simple-owner-nav button[aria-current=page]{background:#f8e7ee;border-color:#dfbbc9;box-shadow:inset 3px 0 0 #d0799c;color:#4e2e3e}
body.r4-owner-compact .merchant-page-header{border-bottom-color:#cbbab3}
body.r4-owner-compact .merchant-page-header::after{background:#373034;width:50px}
body.r4-owner-compact .merchant-page-header h1{color:#302a2e}
body.r4-owner-compact .merchant-page-header p{color:#7b6d73}
body.r4-owner-compact .r5-owner-metrics>button{min-height:96px;border-radius:13px;background:#fffdfa;box-shadow:2px 3px 0 #e9dce0}
body.r4-owner-compact .r5-owner-metrics>button>svg{padding:3px;background:#faf0f4;color:#785e6b;border-radius:9px}
body.r4-owner-compact :is(.merchant-primary-queue,#merchant-upcoming,.merchant-overview-settings){border-radius:14px;background:#fffdfa}
body.r4-owner-compact :is(.merchant-primary-queue>h3,#merchant-upcoming h2,.merchant-overview-settings h2){color:#302b2f}
body.r4-owner-compact .merchant-empty-appointments{background:#faf5ef;border-radius:11px}
body.r4-owner-compact .merchant-review-banner{border-color:#dfd2ca;background:#fffaf5}
@media(max-width:850px){body.r4-owner-compact #simple-owner-nav{box-shadow:0 2px 0 #e9ddd7}body.r4-owner-compact .r5-owner-metrics>button{min-height:86px}}
