/* R3.8 workspace type roles. Presentation only; load after the shared type layer.
   Local Nunito Sans is registered as SFW UI Sans at 400, 600 and 700.
   SC text uses the existing local Noto Sans 400/600 faces. */
body.sfw-account-page,
body.r4-owner-compact,
body.sfw-owner-login {
  --workspace-type-ui:"SFW UI Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei UI","SFW UI Sans SC",sans-serif;
  --workspace-type-display:"SFW DM Serif Display","SFW UI Sans SC",Georgia,serif;
  --workspace-type-section:"SFW Marcellus","SFW UI Sans SC",Georgia,serif;
  --font-reading:var(--workspace-type-ui);
  --font-body:var(--workspace-type-ui);
  --font-sans:var(--workspace-type-ui);
  font-family:var(--workspace-type-ui);
  font-size:15px;
  font-weight:400;
  line-height:1.7;
  font-synthesis:none;
  font-kerning:normal;
}

/* Buyer: the welcome title is editorial; tasks, records and controls are UI. */
body.sfw-account-page .care-workspace-heading h1 {
  font:400 clamp(34px,3.2vw,46px)/1.14 var(--workspace-type-display);
  letter-spacing:-.022em;
  text-wrap:balance;
  overflow-wrap:anywhere;
}
body.sfw-account-page .care-workspace-heading .eyebrow {
  font:600 12px/1.5 var(--workspace-type-ui);
  letter-spacing:.12em;
}
body.sfw-account-page .care-workspace-heading .customer-page-intro {
  font:400 16px/1.65 var(--workspace-type-ui);
  letter-spacing:0;
}
body.sfw-account-page .care-workspace-seal>span {
  font:400 28px/1.05 var(--workspace-type-section);
  letter-spacing:-.02em;
}
body.sfw-account-page .care-workspace-seal>small {
  font:400 12px/1.2 var(--workspace-type-ui);
  letter-spacing:0;
  text-wrap:balance;
}
body.sfw-account-page :is(.workspace-heading-links>a,.r6-toolbar>a,.workspace-public-help) {
  font:600 14px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.sfw-account-page .customer-workspace-brand strong {
  font:400 19px/1.3 var(--workspace-type-section);
  letter-spacing:-.02em;
  overflow-wrap:anywhere;
}
body.sfw-account-page .customer-workspace-brand p {
  font:400 14px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
}
body.sfw-account-page .customer-workspace-sidebar :is(.customer-workspace-nav a,#account-logout,.workspace-menu-toggle) {
  font:600 14px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.sfw-account-page .customer-summary-card strong {
  font:600 14px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.sfw-account-page .customer-summary-card b {
  font:600 32px/1.15 var(--workspace-type-ui);
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:-.025em;
}
body.sfw-account-page .customer-summary-card small {
  font:400 13px/1.65 var(--workspace-type-ui);
  letter-spacing:0;
}
body.sfw-account-page .customer-workspace-body .customer-workspace-panel>h2,
body.sfw-account-page #account-orders>h2,
body.sfw-account-page #account-content .contact-onboarding>summary,
body.sfw-account-page .customer-workspace-help h2,
body.sfw-account-page .customer-empty-state h2,
body.sfw-account-page #claim-confirm>h2 {
  font:400 clamp(25px,2.3vw,30px)/1.3 var(--workspace-type-section);
  letter-spacing:-.012em;
  text-wrap:balance;
  overflow-wrap:anywhere;
}
body.sfw-account-page #account-content .customer-order-copy>h3,
body.sfw-account-page #included-purchase>article h2 {
  font:400 24px/1.35 var(--workspace-type-section);
  letter-spacing:-.012em;
  overflow-wrap:anywhere;
}
body.sfw-account-page #r3-order-picker .customer-workspace-context h2,
body.sfw-account-page #account-content .resource-delivery>h3:first-child,
body.sfw-account-page #account-help #account-appointments>h3,
body.sfw-account-page #help-list>.r6-card>h3,
body.sfw-account-page #account-security>h3,
body.sfw-account-page #account-security .customer-security-group h4 {
  font:600 18px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.sfw-account-page #account-content .resource-delivery :is(article[id^="release-"],article[id^="resource-"])>h4 {
  font:600 16px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.sfw-account-page #account-content :is(p,li,dd),
body.sfw-account-page #account-login p,
body.sfw-account-page #claim-confirm p,
body.sfw-account-page .customer-empty-state p,
body.sfw-account-page .customer-workspace-help>.workspace-help-intro {
  font-family:var(--workspace-type-ui);
  font-size:14px;
  font-style:normal;
  font-weight:400;
  line-height:1.7;
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.sfw-account-page #account-content :is(strong,b),
body.sfw-account-page .customer-workspace-help strong {
  font-family:var(--workspace-type-ui);
  font-weight:600;
}
body.sfw-account-page .customer-workspace-help small {
  font:400 13px/1.65 var(--workspace-type-ui);
}
body.sfw-account-page :is(#account-content,#account-login,#auth-proof,#claim-confirm) :is(label,legend,summary),
body.sfw-account-page #r3-order-picker>label,
body.sfw-account-page #r3-order-picker .customer-workspace-context>summary,
body.sfw-account-page #account-content .download-guidance>summary,
body.sfw-account-page #account-security .customer-security-group label {
  font:600 14px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
  text-transform:none;
}
/* Repeat this role after the generic disclosure labels: this is a section title. */
body.sfw-account-page #account-content .contact-onboarding>summary {
  font:400 25px/1.35 var(--workspace-type-section);
  letter-spacing:-.012em;
}
body.sfw-account-page :is(#account-content,#account-login,#auth-proof,#claim-confirm) :is(button,.r6-button,.button),
body.sfw-account-page #account-content .r6-service>.r6-button,
body.sfw-account-page #account-content .resource-delivery :is(a[href^="/account/?resource="],a[href^="/api/account/resources/"],a[href^="/api/account/routing-download/"]) {
  font:600 14px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
  text-transform:none;
}
body.sfw-account-page :is(#account-content,#account-login,#auth-proof,#claim-confirm) :is(input,select,textarea),
body.sfw-account-page #r3-order-picker select {
  font:400 16px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
  font-variant-numeric:lining-nums;
}
body.sfw-account-page :is(#account-content,#account-login) :is(input,textarea)::placeholder {
  font:400 16px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.sfw-account-page #r3-order-picker .customer-workspace-facts,
body.sfw-account-page #r3-order-picker .customer-order-reference,
body.sfw-account-page #account-content .customer-service-progress,
body.sfw-account-page #account-content .customer-order-stages li,
body.sfw-account-page #account-status.account-notice {
  font:400 14px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
  font-variant-numeric:lining-nums tabular-nums;
  overflow-wrap:anywhere;
}
body.sfw-account-page #r3-order-picker .customer-order-reference,
body.sfw-account-page #account-content .customer-service-progress,
body.sfw-account-page #account-content .customer-order-stages li[aria-current=step] {
  font-weight:600;
}
body.sfw-account-page #account-content :is(.customer-service-state,.customer-purchase-status) {
  font-family:var(--workspace-type-ui);
  font-size:13px;
  font-weight:600;
  line-height:1.55;
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.sfw-account-page #account-content .resource-delivery :is(article[id^="release-"],article[id^="resource-"])>p:has(>span:nth-child(3):last-child)>span:first-child {
  font-size:13px;
  font-weight:400;
  letter-spacing:0;
}
body.sfw-account-page #picks-list .r6-balance strong {
  font:600 44px/1.1 var(--workspace-type-ui);
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:-.035em;
}
body.sfw-account-page #picks-list .r6-balance span {
  font:400 14px/1.6 var(--workspace-type-ui);
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:0;
}

/* Owner: one functional family, with distinct title, section, record and label sizes. */
body.r4-owner-compact,
body.sfw-owner-login {
  --workspace-type-ui:"SFW UI Sans","SFW UI Sans SC","PingFang SC","Microsoft YaHei UI",system-ui,sans-serif;
  --merchant-ui-font:var(--workspace-type-ui);
  --merchant-display:var(--workspace-type-ui);
}
body.r4-owner-compact :is(h1,h2,h3,h4,h5,h6) {
  font-family:var(--workspace-type-ui);
  font-style:normal;
  font-weight:600;
  line-height:1.5;
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.r4-owner-compact .merchant-page-header h1 {
  font:600 clamp(26px,2.3vw,30px)/1.4 var(--workspace-type-ui);
  letter-spacing:-.015em;
  white-space:normal;
  text-wrap:balance;
}
body.r4-owner-compact .merchant-brand strong {
  font:600 17px/1.4 var(--workspace-type-ui);
  letter-spacing:-.015em;
  white-space:normal;
  overflow-wrap:anywhere;
}
body.r4-owner-compact :is(.merchant-brand small,.merchant-sidebar-footer small) {
  font:400 13px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
}
body.r4-owner-compact #simple-owner-nav :is(button[data-page],#owner-menu-toggle,#logout) {
  font:600 14px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.r4-owner-compact :is(.merchant-page-header p,.merchant-overview-settings>p,.merchant-review-banner) {
  font:400 14px/1.75 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.r4-owner-compact .r5-owner-metrics>button>span {
  font:400 14px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
}
body.r4-owner-compact .r5-owner-metrics>button>strong {
  font:600 30px/1.15 var(--workspace-type-ui);
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:-.025em;
}
body.r4-owner-compact .r5-owner-metrics>button[data-has-count=false]>strong {
  font-weight:400;
  color:#746b73;
}
body.r4-owner-compact #simple-today>section:has(#desk-tasks)>h3,
body.r4-owner-compact :is(.merchant-primary-queue>h3,#merchant-upcoming h2,.merchant-overview-settings h2,.merchant-section-heading>h2) {
  font:600 21px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.r4-owner-compact :is(#r6-cms,#family-releases,#simple-appointments,#r6-settings,#advanced-tools)>h2,
body.r4-owner-compact #advanced-tools>nav>h1,
body.r4-owner-compact .desk-order-modal-header h2,
body.r4-owner-compact .merchant-edit-decision h2 {
  font:600 23px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.r4-owner-compact :is(.desk-panel,.merchant-release-editor,.merchant-delivery-summary,.merchant-next-action,.desk-customer-summary)>h3 {
  font:600 17px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
}
body.r4-owner-compact :is(.merchant-task-identity,.merchant-appointment-row) strong,
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td strong,
body.r4-owner-compact .merchant-empty-appointments strong {
  font:600 15px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.r4-owner-compact :is(.merchant-task-identity,.merchant-task-context,.merchant-appointment-row) :is(p,small),
body.r4-owner-compact :is(.merchant-empty-state,.merchant-empty-appointments) p,
body.r4-owner-compact :is(.merchant-drawer-context,.merchant-order-customer,.merchant-connection-note,.merchant-form-status,.merchant-drawer-status) {
  font:400 14px/1.75 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table,.merchant-release-recipients) {
  font:400 14px/1.65 var(--workspace-type-ui);
  letter-spacing:0;
  font-variant-numeric:lining-nums tabular-nums;
}
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table,.merchant-release-recipients) th {
  font:600 13px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
  text-transform:none;
}
body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td small {
  font:400 13px/1.65 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.r4-owner-compact :is(.merchant-state,.desk-coverage-status) {
  font:600 13px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
  white-space:normal;
  overflow-wrap:anywhere;
}
body.r4-owner-compact :is(.merchant-catalog-price,.desk-balance),
body.r4-owner-compact .merchant-section-heading>span {
  font-family:var(--workspace-type-ui);
  font-weight:600;
  line-height:1.6;
  letter-spacing:0;
  font-variant-numeric:lining-nums tabular-nums;
}
body.r4-owner-compact :is(.merchant-pagination,.merchant-record-controls),
body.r4-owner-compact .merchant-primary-queue>#desk-task-count {
  font:400 13px/1.65 var(--workspace-type-ui);
  letter-spacing:0;
  font-variant-numeric:lining-nums tabular-nums;
}
body.r4-owner-compact :is(label,legend,summary),
body.r4-owner-compact :is(.merchant-order-filters,[data-editor-panel],.merchant-settings-form,.merchant-release-editor,#desk-settings,#r6-settings) label,
body.r4-owner-compact :is(.merchant-resource-item,.merchant-resource-scope)>legend,
body.r4-owner-compact :is(.merchant-task-sources,.cms-advanced,.merchant-settings-advanced,.owner-source-history)>summary,
body.r4-owner-compact .r5-resource-editor>form>details>summary,
body.r4-owner-compact :is(#desk-settings,#simple-advanced,#r4-resource-tools) summary,
body.r4-owner-compact #simple-today>section:has(#desk-tasks)>label {
  font:600 14px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
  text-transform:none;
}
body.r4-owner-compact .merchant-primary-queue>label span,
body.r4-owner-compact :is(.desk-order-facts,.desk-submission-fields,.desk-brief) dt {
  font:600 14px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
}
body.r4-owner-compact :is(.desk-order-facts,.desk-submission-fields) dd,
body.r4-owner-compact :is(.merchant-release-row,.merchant-release-editor,.merchant-settings-form,.desk-panel,.desk-account-facts,.merchant-order-help,.merchant-edit-decision) p {
  font:400 15px/1.75 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.r4-owner-compact :is(button,.editor-tabs button,.persistent-save button),
body.r4-owner-compact :is(.merchant-header-actions,.merchant-priority-row,.merchant-orders-table,.merchant-products-table,.merchant-pagination,.merchant-record-controls) button,
body.r4-owner-compact .merchant-filter-clear {
  font:600 14px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
  text-transform:none;
}
body.r4-owner-compact :is(input,select,textarea),
body.r4-owner-compact :is(#r6-cms,#r6-editor,#desk-settings,#r6-settings,#family-releases,#r5-order-drawer,#r4-product-drawer,#advanced-tools) :is(input,select,textarea),
body.r4-owner-compact .merchant-order-filters :is(input,select),
body.r4-owner-compact .merchant-primary-queue #task-filter {
  font:400 16px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
  font-variant-numeric:lining-nums;
}
body.r4-owner-compact :is(input,textarea)::placeholder {
  font:400 16px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.r4-owner-compact :is(#status,#r6-status,#receipt-notice) {
  font:400 14px/1.7 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}

/* The owner entry screen shares the same local Chinese operational type. */
body.sfw-owner-login {
  font-size:16px;
  line-height:1.75;
}
body.sfw-owner-login h1 {
  font:600 clamp(26px,4vw,30px)/1.4 var(--workspace-type-ui);
  letter-spacing:0;
  text-wrap:balance;
  overflow-wrap:anywhere;
}
body.sfw-owner-login .merchant-login-brand p {
  font:600 16px/1.6 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.sfw-owner-login .merchant-login-intro {
  font:400 16px/1.75 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}
body.sfw-owner-login #login :is(label,button) {
  font:600 16px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
  text-transform:none;
}
body.sfw-owner-login #login input,
body.sfw-owner-login #login input::placeholder {
  font:400 16px/1.5 var(--workspace-type-ui);
  letter-spacing:0;
}
body.sfw-owner-login #login #status {
  font:400 14px/1.75 var(--workspace-type-ui);
  letter-spacing:0;
  overflow-wrap:anywhere;
}

@media (max-width:850px) {
  body.sfw-account-page .care-workspace-heading h1 { font-size:34px; }
  body.sfw-account-page .care-workspace-seal>span { font-size:20px; }
  body.sfw-account-page .care-workspace-seal>small { font-size:12px; line-height:1.2; }
  body.sfw-account-page .customer-workspace-brand strong { font-size:17px; }
  body.sfw-account-page .customer-summary-card b { font-size:28px; }
  body.sfw-account-page #account-content .customer-order-copy>h3 { font-size:22px; }
  body.sfw-account-page #picks-list .r6-balance strong { font-size:40px; }
  body.r4-owner-compact .merchant-page-header h1 { font-size:26px; }
  body.r4-owner-compact .r5-owner-metrics>button>strong { font-size:27px; }
  body.r4-owner-compact :is(.merchant-orders-table,.merchant-products-table) td::before {
    font:600 13px/1.6 var(--workspace-type-ui);
    letter-spacing:0;
  }
}
