/* R3.7: shared editorial details, evolved from R3.6. Business states remain source-owned. */
:root {
  --atelier-rose:#686868;
  --atelier-line:#e8dce2;
  --atelier-ink:#25232a;
  --atelier-paper:#fffdfd;
}
/* A quiet ruled edge joins shared navigation to the page. */
body.sfw-secondary-page #sfw-customer-header {
  border-bottom:1px solid #e7dbe1;
  box-shadow:0 4px 22px #24242406;
}
body.sfw-secondary-page #sfw-customer-header .sfw-brand-avatar {
  padding:2px;background:#fff;box-shadow:0 0 0 1px #dcbfcd,0 3px 10px #1f1f1f10;
}
body.sfw-secondary-page #sfw-customer-header nav a {
  position:relative;min-height:44px;display:inline-flex;align-items:center;
  text-decoration:none;transition:border-color .18s ease,color .18s ease;
}
body.sfw-secondary-page #sfw-customer-header nav a[aria-current=page] {
  border-bottom-color:var(--atelier-rose);
}
body.sfw-secondary-page #sfw-customer-header nav a:hover {border-bottom-color:#c99aad;}
body .sfw-customer-footer {
  position:relative;border-top:1px solid var(--atelier-line);
  background-image:none;
}
body .sfw-customer-footer .sfw-footer-signoff {
  display:flex;align-items:center;justify-content:space-between;flex:1 0 100%;grid-column:1/-1;
  width:100%;max-width:none;gap:16px;margin-top:8px;padding-top:18px;
  border-top:1px solid #8f8f8f29;
}
.sfw-footer-signoff p {
  display:flex;align-items:center;gap:12px;margin:0;
  font:italic 17px/1.5 var(--font-accent,Georgia),serif;color:inherit;
}
.sfw-footer-spark {display:block;width:16px;height:16px;flex:none;color:#8a8a8a;}
body .sfw-customer-footer .sfw-back-top {
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:44px;padding:8px 13px;border:1px solid #8f8f8f45;
  border-radius:99px;font:500 13px/1.4 var(--font-body,system-ui);
  color:inherit;text-decoration:none;white-space:nowrap;transition:background .18s ease;
}
body .sfw-customer-footer .sfw-back-top:hover {background:#b9819b18;}
/* The image is an inset miniature, never a banner pasted to the navigation. */
body .workspace-scene-card {
  order:2;flex:none;position:relative;min-width:0;width:100%;
  box-sizing:border-box;margin:14px 0 0;padding:13px 0 0;
  border:0;border-top:1px solid #efd4e52b;background:none;border-radius:0;box-shadow:none;
}
body .workspace-scene-frame {
  position:relative;overflow:hidden;padding:5px;border-radius:15px;
  border:1px solid #efd4e53b;
  background:#312d34;
  box-shadow:inset 0 1px 0 #ffffff0d,0 7px 18px #00000020;
}
body .workspace-scene-card .workspace-sidebar-scene {
  display:block;position:static;inset:auto;z-index:auto;width:100%;height:auto;
  max-height:none;aspect-ratio:auto;object-fit:contain;margin:0;
  border:0;border-radius:10px;mask-image:none;-webkit-mask-image:none;opacity:1;
}
body .workspace-scene-card figcaption {
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;
  padding:9px 2px 0;margin:0;color:#d1bac9;
  font:500 10px/1.5 var(--font-sans,system-ui);letter-spacing:.12em;
}
body .workspace-scene-card figcaption span:last-child {color:#b8a9b4;letter-spacing:.08em;}
/* Display pages share a fine editorial rule and tactile caption ledge. */
body.character-showcase .showcase-intro {
  max-width:none;padding:0 0 25px;margin-bottom:30px;
  border-bottom:1px solid var(--atelier-line);
  background:radial-gradient(ellipse at right bottom,#f1dfe94d,transparent 48%);
}
body.character-showcase .showcase-intro>p {max-width:66ch;}
body.character-showcase .showcase-intro .eyebrow {
  display:flex;align-items:center;gap:12px;
}
body.character-showcase .showcase-intro .eyebrow::before {
  content:'';width:22px;height:1px;flex:none;background:var(--atelier-rose);
}
body.character-showcase .exhibition-card-copy {
  margin-top:10px;padding:12px 3px 0;border-top:1px solid var(--atelier-line);
}
body.character-showcase .portrait-editorial-mark {
  padding-left:3px;color:#737373;font-size:12px;letter-spacing:.04em;
}
body.sfw-homes-page .homes-intro {
  padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--atelier-line);
}
body.sfw-homes-page .house-thumb-copy {border-top:1px solid var(--atelier-line);background:#fff;}
body.sfw-homes-page .house-information {
  background:#fff;
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  body.character-showcase .exhibition-card>a {transition:transform .2s ease;}
  body.character-showcase .exhibition-card>a:hover {transform:translateY(-3px);}
  body.sfw-homes-page .house-thumb-copy>span {transition:transform .2s ease;}
  body.sfw-homes-page .house-view-card:hover .house-thumb-copy>span {transform:translate(2px,-2px);}
}
@media(min-width:851px) {
  body .customer-workspace-sidebar,body.r4-owner-compact #simple-owner-nav {
    background:#242126;
    border-color:#4b414c;box-shadow:inset 0 1px 0 #ffffff13,0 14px 30px #22202a17;
    padding-bottom:14px;scrollbar-width:thin;scrollbar-color:#746473 transparent;
  }
  body .customer-workspace-brand {padding-bottom:14px;border-bottom:1px solid #efd4e526;}
  body .customer-workspace-brand .buyer-avatar {
    border:3px solid #353535;box-shadow:0 0 0 1px #bba1b26b,0 4px 12px #00000024;
  }
  body .customer-workspace-brand p {color:#d3c4ce;font-size:15px;}
  body .customer-workspace-sidebar .workspace-public-help {
    display:flex;align-items:center;gap:9px;flex:none;margin:16px 0 0;padding:12px 9px;
    min-height:58px;box-sizing:border-box;border:1px solid #d1a9c13d;border-radius:14px;
    color:#fff6fb;background:#312d34;
    text-decoration:none;transition:background .2s ease,border-color .2s ease;
  }
  body .customer-workspace-sidebar .workspace-public-help:hover {
    border-color:#d1a9c17a;background:#c78eac24;
  }
  .workspace-help-glyph {
    display:grid;place-items:center;width:27px;height:27px;flex:none;border:1px solid #c9a5bb8f;
    border-radius:50%;color:#f1d7e6;font:italic 20px/1 Georgia,serif;
  }
  .workspace-help-copy {display:grid;gap:3px;min-width:0;}
  body .workspace-help-copy small {color:#d5bdcc;font:400 11px/1.4 var(--font-body,system-ui);}
  body .workspace-help-copy strong {color:#fff6fb;font:500 13px/1.35 var(--font-body,system-ui);}
  .workspace-help-tip {margin-left:auto;color:#e9b5cd;font-size:17px;transition:transform .2s ease;}
  .workspace-public-help:hover .workspace-help-tip {transform:translate(2px,-2px);}
  body .customer-workspace-sidebar .customer-workspace-nav a,
  body #simple-owner-nav .merchant-menu-items>button {transition:background .18s ease,border-color .18s ease;}
  body .customer-workspace-sidebar .customer-workspace-nav a[aria-current=page] {
    border-color:#dfb5c9;background:#F3DCE6;box-shadow:inset 3px 0 0 #7a7a7a;
  }
  body #simple-owner-nav .merchant-brand {padding-bottom:16px;border-bottom:1px solid #efd4e526;}
  body #simple-owner-nav .workspace-scene-card {order:3;}
}
@media(max-width:850px) {
  body .workspace-scene-card {display:none;}
  body .sfw-customer-footer .sfw-footer-signoff {gap:12px;flex-wrap:wrap;}
  .sfw-footer-signoff p {font-size:15px;}
}
@media(prefers-reduced-motion:reduce) {
  .workspace-help-tip,.workspace-public-help,body .sfw-back-top {transition:none;transform:none!important;}
}
@media(forced-colors:active) {
  body .workspace-scene-frame,body .workspace-public-help {border:1px solid CanvasText;}
}
/* A consistent keyboard and reading finish across the public pages. */
body:is(.homepage-remaster,.sfw-secondary-page) ::selection {background:#efd0df;color:#272727;}
body:is(.homepage-remaster,.sfw-secondary-page) :is(a,button,input,select,textarea,summary):focus-visible {
  outline:2px solid #747474;outline-offset:3px;
}
body.sfw-secondary-page #sfw-customer-header nav a[aria-current=page] {
  background:#FAF6F8;box-shadow:inset 0 -2px #818181;color:#585858;
}
body .sfw-customer-footer :is(a[href],button) {text-underline-offset:4px;}
body .sfw-customer-footer nav a[href] {min-height:34px;display:flex;align-items:center;}
body .sfw-customer-footer .sfw-footer-signoff {border-top-style:dashed;}
body.sfw-policy-page .policy-document {
  padding:clamp(22px,4vw,44px);border:1px solid #D9CDD3;border-radius:16px;
  background:#fff;box-shadow:var(--sfw-paper-shadow);
}
body.sfw-policy-page .policy-document h2 {padding-bottom:16px;border-bottom:1px solid #ebdfe6;}
body.sfw-policy-page .policy-document h3 {margin-top:28px;padding-left:12px;border-left:3px solid #c289a4;}
body.sfw-policy-page .policy-document :is(p,li) {line-height:1.8;}
body.sfw-policy-page .policy-document table th {background:#f7edf3;color:#565656;}
body.sfw-policy-page .policy-document table :is(th,td) {padding:14px 16px;line-height:1.6;}
body.sfw-policy-page .reading-outline {border-color:#e4ccda;background:#fcf7fa;}
body.sfw-policy-page .reading-outline a {min-height:44px;padding-block:8px;}
@media(max-width:700px) {
  body.sfw-policy-page .policy-document {padding:20px 18px;border-radius:17px;}
  body.sfw-policy-page .policy-document table :is(th,td) {padding:12px;}
  body .sfw-customer-footer nav a[href] {min-height:44px;}
}

/* R3.13 shared paper rim: keep the approved setup shell outside this finish. */
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header {
 gap:24px;background:#fffbfd;border-bottom:1px solid #d4bdc9;
 box-shadow:0 3px 0 #e9d7e1,0 8px 22px #39393908;
}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header nav {min-width:0;gap:8px;}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header nav a {
 padding:8px 12px;border:1px solid transparent;border-radius:10px;color:#484848;
 white-space:nowrap;
}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header nav a[aria-current=page] {
 background:#f5e5ed;border-color:#d7b3c5;color:#4e4e4e;box-shadow:0 2px 0 #e7ccda;
}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header nav a:hover {background:#faf0f5;border-color:#e1cbd6;}
body:not(.sfw-setup-page):not(.setup-page) .sfw-customer-footer {
 color:#484848;background:#faf3f7;border-top:1px solid #ceb5c3;
 box-shadow:inset 0 5px 0 #efe0e8;background-image:none;
}
body:not(.sfw-setup-page):not(.setup-page) .sfw-customer-footer :is(p,a,strong,small) {color:inherit;}
body:not(.sfw-setup-page):not(.setup-page) .sfw-customer-footer a:hover {color:#5b5b5b;}
body.sfw-policy-page .policy-document {background:#fffdfc;border-color:#d5c1cb;box-shadow:var(--sfw-paper-shadow);}
body.sfw-policy-page .customer-article-contents {border:1px solid #d8c2cf;background:#faf0f5;border-radius:16px;}
body.sfw-policy-page .policy-document :is(table,pre) {max-width:100%;overflow:auto;}
body.sfw-commission-page #commission-form>section {background:#fffdfc;box-shadow:var(--sfw-paper-shadow);}
body.sfw-commission-page #commission-form :is(input,select,textarea) {max-width:100%;min-width:0;}
body.sfw-commission-page .r6-actions {display:flex;flex-wrap:wrap;gap:12px;}
body.sfw-commission-page #saved-references img {max-width:100%;object-fit:contain;}
body:not(.sfw-setup-page):not(.setup-page) .sfw-qr-dialog {padding:20px;border-color:#d1b8c5;background:#fffdfc;box-shadow:4px 5px 0 #e5cfdb,0 20px 60px #28282825;}
body:not(.sfw-setup-page):not(.setup-page) .sfw-qr-dialog header {padding:0 58px 14px 0;border-bottom:1px solid #e0cad6;margin-bottom:16px;}
body:not(.sfw-setup-page):not(.setup-page) .sfw-qr-dialog header h2 {margin:0;font:400 25px/1.3 var(--font-label);}
@media(min-width:801px) and (max-width:1100px) {
 body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header {gap:12px;padding-inline:20px;}
 body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header .sfw-customer-brand strong {max-width:145px;overflow-wrap:anywhere;}
 body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header nav {gap:2px;}
 body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header nav a {padding-inline:8px;font-size:13px;}
}
@media(max-width:800px) {
 body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header {gap:8px;min-height:76px;padding:10px 16px 10px 96px;}
 body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header .sfw-customer-brand {min-width:0;gap:8px;}
 body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header .sfw-customer-brand strong {font-size:16px;overflow-wrap:anywhere;}
 body:not(.sfw-setup-page):not(.setup-page) .sfw-customer-footer {padding-bottom:max(28px,env(safe-area-inset-bottom));}
}

/* Descendant ink must not inherit historic white text from former dark rails. */
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header .sfw-customer-brand {color:#383838;}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-customer-header .locale-trigger {
 border-color:#d0b4c3;background:#fffafc;color:#4d4d4d;box-shadow:0 2px 0 #ead6e1;
}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-mobile-menu {border-color:#b994a7;background:#fffafc;color:#414141;}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) #sfw-mobile-menu:hover {background:#f5e5ed;}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) .freeze-dialog.freeze-drawer header h2 {color:#383838;}
body.sfw-secondary-page:not(.sfw-setup-page):not(.setup-page) .sfw-customer-footer .sfw-footer-brand {color:#484848;}
