/* One type scale for the five CRM workspaces and their forms, not finance/documents. */
body.crmWorkspaceDesign {
  --crm-type-body:13px;
  --crm-type-small:12px;
  --crm-type-label:13px;
  --crm-type-input:14px;
  --crm-type-button:13px;
  --crm-type-section:15px;
  --crm-type-dialog:18px;
  --crm-type-page:20px;
  --crm-type-number:22px;
}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) {
  font-family:"Microsoft YaHei","PingFang SC",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:var(--crm-type-body)!important;
  line-height:1.55;
}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) :is(div,p,span,li,td,th,caption,label,a,b,strong,summary,small,button,input,select,textarea,option) {
  font-family:inherit;
  font-size:var(--crm-type-body)!important;
  line-height:1.55!important;
}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) :is(td,p,textarea,input,select,.crmActionCell,.crmTaskAction) {font-weight:400!important}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) :is(th,label,summary,b,strong) {font-weight:600!important}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) :is(h2,h3,h4) {
  font-size:var(--crm-type-section)!important;
  font-weight:650!important;
  line-height:1.4!important;
}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) :is(small,.muted,.crmWorkHint,.crmWorkIntro p,.crmVisualLegend,.crmVisualLegend span,.badge,.over,.crmDueToday,.crmRoleTag,.crmStatusPrefix,.reqMark) {font-size:var(--crm-type-small)!important}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) :is(label,th,summary) {font-size:var(--crm-type-label)!important}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) :is(input,select,textarea,option) {
  font-size:var(--crm-type-input)!important;
  line-height:1.5!important;
}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) :is(.btn,.btn span,.crmTextLink,.crmCustomerTabs button) {
  font-size:var(--crm-type-button)!important;
  font-weight:600!important;
  line-height:1.4!important;
}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics) :is(.crmReviewMetric,.crmFocusMetric,.crmSignal) strong {
  font-size:var(--crm-type-number)!important;
  font-weight:700!important;
  line-height:1.3!important;
  font-variant-numeric:tabular-nums;
}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics) .crmStageCard strong {font-size:18px!important;line-height:1.35!important}
body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics) .crmRankValue strong {font-size:var(--crm-type-body)!important}
body.crm-ui.crmWorkspaceDesign :is(#modalBg:has(.crmQuickForm) .modalHead,.crmWorkDialog>header) h2 {
  font-size:var(--crm-type-dialog)!important;
  line-height:1.4!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  min-width:0;
}
body.crm-ui.crmWorkspaceDesign #title {font-size:var(--crm-type-page)!important;font-weight:650!important;line-height:1.4!important}
body.crm-ui.crmWorkspaceDesign #sub {font-size:var(--crm-type-small)!important;line-height:1.5!important}
body.crm-ui.crmWorkspaceDesign .cultureBar :is(strong,b,span) {font-size:var(--crm-type-small)!important;line-height:1.5!important}
@media(max-width:760px) {
  body.crmWorkspaceDesign {--crm-type-body:14px;--crm-type-input:16px;--crm-type-page:18px;--crm-type-dialog:17px;--crm-type-number:20px}
  /* Preserve a useful touch target even though the button text is compact. */
  body.crm-ui.crmWorkspaceDesign :is(#dashboard,#output,#customers,#opps,#analytics,#modalBg:has(.crmQuickForm),.crmWorkDialog) .btn {min-height:40px!important}
}
