/* Shared reading scale for daily office work. Loaded after page styles. */
:root{
  --oa-font:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Segoe UI",Arial,sans-serif;
  --muted:#536173;
}
[data-theme="midnight"]{--muted:#bbc8da}
@supports(color:color-mix(in srgb,#000 75%,#fff)){
  :root{--muted:color-mix(in srgb,var(--ink) 78%,var(--bg))}
}
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:var(--oa-font);font-size:15px;font-weight:400;line-height:1.65;-webkit-font-smoothing:auto;text-rendering:auto;letter-spacing:0}
body button,body input,body select,body textarea{font-family:var(--oa-font)}
body h1,body .page-heading h1,body .customer-workspace h1{font-size:28px;font-weight:700;line-height:1.4;letter-spacing:0}
body h2,body .panel-heading h2,body .customer-workspace h2,body .workflow-section h2,
body .record-main .record-system-metadata h2{font-size:20px;font-weight:700;line-height:1.45}
body h3,body .customer-workspace h3,body .workflow-branch-heading h3,body .org-catalog-heading h3{font-size:17px;font-weight:600;line-height:1.5}
body .app-card h3,body .resource-card h2{font-size:18px;font-weight:700;line-height:1.5}
body .page-heading p,body .panel-heading p,body .resource-card p,body .app-card p{font-size:14px;line-height:1.75;color:var(--muted)}
body .brand{font-size:26px;font-weight:700;letter-spacing:0}
body .brand-sub{font-size:13px;font-weight:500;letter-spacing:.4px;line-height:1.4}
body .nav-item{font-size:15px;font-weight:600;min-height:44px;line-height:1.5}
body .subnav a{font-size:14px;font-weight:500;line-height:1.6;min-height:36px}
body .nav-label{font-size:13px;font-weight:700;letter-spacing:.3px}
body .breadcrumb,body .back-link,body .cw-breadcrumb{font-size:14px;font-weight:500;line-height:1.6}
body .user-link{font-size:14px;font-weight:600}
body .user-link small,body .brand-sub small{font-size:12px;font-weight:400}
body .theme-trigger,body .theme-choice{font-size:14px;font-weight:500;min-height:38px}
body .theme-panel-heading strong{font-size:17px;font-weight:700}
body .theme-panel-heading>span,body .theme-panel-footer{font-size:13px;line-height:1.6}
body .logout{font-size:14px!important;font-weight:500;color:var(--muted)!important}
body .button,body .small-button,body .cw-button,body .cw-text-button,
body .records-lead-actions .button,body .records-excel-actions .button,
body .workflow-toolbar-actions .compact{font-size:14px;font-weight:600;line-height:1.4;min-height:38px;padding:8px 14px}
body .records-lead-actions .button,body .records-toolbar-controls .button{height:38px;min-height:38px}
body .button:disabled,body .cw-button:disabled{cursor:not-allowed}
body .filters input:not([type=checkbox]):not([type=radio]),body .filters select,body .input,body .form-field input:not([type=checkbox]):not([type=radio]),
body .form-field select,body .form-field textarea,body .cw-input,
body .lead-filter-control input,body .lead-filter-control select,
body .settings-form input:not([type=checkbox]):not([type=radio]),body .settings-form select,body .settings-form textarea{
  font-size:15px;font-weight:400;line-height:1.5;min-height:40px;
}
body input::placeholder,body textarea::placeholder{color:var(--muted);opacity:1}
body .search-box input{font-size:14px;font-weight:400;line-height:1.5}
body .records-panel-leads .records-lead-query .search-box{height:38px}
body .records-panel-leads .records-lead-query .search-box input{height:36px;min-height:36px;font-size:14px;padding:7px 10px}
body .records-lead-query .lead-quick-submit{height:36px;min-height:36px;flex-basis:38px;width:38px;font-size:22px}
body table th{font-size:15px;font-weight:700;line-height:1.5;color:var(--ink);padding:14px 16px}
body table td{font-size:14px;font-weight:500;line-height:1.65;padding:13px 16px;font-variant-numeric:tabular-nums}
body .cw-table th,body .org-matrix thead th,body .org-field-table th{font-size:15px;font-weight:700;line-height:1.5}
body .cw-table td,body .org-matrix td,body .org-field-table td{font-size:14px;font-weight:500;line-height:1.65}
body .row-number,body .record-link,body .subtle-link,body .related-row{font-size:14px}
body .record-picker-more{font-size:14px}
body .record-link,body .related-row strong{font-weight:600}
body .cell-sub,body .cell-sub small{font-size:13px;line-height:1.6}
body .pagination{font-size:14px;font-weight:500;line-height:1.6}
body .badge,body .pill,body .count-badge,body .demo-badge,body .cw-badge,
body .operation-history-version,body .operation-history-field{font-size:13px;font-weight:500;line-height:1.5}
body .form-field label,body .settings-form label,body .approval-form label,
body .lead-filter-control label,body .cw-label,body .cw-field>label{font-size:14px;font-weight:600;line-height:1.6;color:var(--ink)}
body .detail-fields dt,body .record-system-metadata .record-system-fields dt{font-size:14px;font-weight:600;line-height:1.6}
body .detail-fields dd,body .record-system-metadata .record-system-fields dd{font-size:15px;font-weight:500;line-height:1.75}
body .help-text,body .helptext,body .panel-note,body .workflow-guide,
body .cw-help,body .cw-small,body .cw-subtitle,body .cw-scope,body .lead-filter-help,
body .lead-filter-errors,body .lead-filter-add-row>span{font-size:14px;line-height:1.75}
body small,body .small,body .muted.small,body .sidebar-bottom,body footer{font-size:13px;line-height:1.6}
body .kpi-label,body .kpi-note,body .app-card-foot,body .quick-stats span,body .quick-stats small{font-size:14px;font-weight:500}
body .kpi strong{font-weight:700;font-variant-numeric:tabular-nums}
body .record-picker-detail,body .record-picker-status,body .record-picker-actions,
body .record-picker-option span{font-size:13px;line-height:1.6}
body .record-picker-option strong,body .record-picker-option-title{font-size:14px;font-weight:600}
body .org-tree-item strong,body .org-rule strong{font-size:15px;font-weight:600}
body .org-tree-item small,body .org-member-count,body .org-catalog-note,
body .org-rule p,body .org-catalog-heading .count-badge,body .org-secondary-group .count-badge{font-size:13px;line-height:1.7}
body .operation-history-heading{flex-wrap:wrap}
body .operation-history-heading h2{font-size:20px;font-weight:700;line-height:1.45}
body .operation-history-heading>span{font-size:14px;font-weight:400;line-height:1.75}
body .operation-history-facts dt{font-size:14px;font-weight:600;line-height:1.6}
body .operation-history-entry-heading strong,body .operation-history-facts dd{font-size:15px;font-weight:500;line-height:1.75}
body .operation-history-entry-heading strong{font-weight:600}
body .operation-history-field{font-size:inherit;font-weight:inherit;line-height:inherit}
body .operation-history-version{font-size:14px;line-height:1.75}
body .lead-filter-heading h2,body .cw-dialog h2{font-size:20px;font-weight:700}
body .lead-filter-close,body .lead-filter-remove{font-size:14px;font-weight:600}
body .lead-filter-control input,body .lead-filter-control select{height:40px}
body .lead-filter-footer .button{min-height:40px}
body .workflow-basics>summary{font-size:18px;font-weight:600}
body .workflow-node-condition>summary,body .workflow-draft-badge,body .workflow-count-notice,
body .workflow-canvas-toolbar small{font-size:14px;line-height:1.6}
body .workflow-canvas-toolbar strong{font-size:16px;font-weight:600}
body .cw-tab{font-size:15px;font-weight:600;line-height:1.6}
body .cw-store-link strong,body .cw-person strong,body .cw-person-option strong{font-size:15px;font-weight:600}
body .cw-store-link span,body .cw-person span,body .cw-store-list-title{font-size:14px;line-height:1.6}
body .cw-summary strong,body .cw-team-card strong{font-size:15px;font-weight:600}
body .lead-filter-dialog .lead-filter-errors{max-height:22vh}
body .form-grid{row-gap:24px}
/* Match compact business widgets to the same reading scale. */
body .text-button,body .date-chip,body .welcome-strip p,body .empty p,
body .empty-cell,body .errorlist,body .form-field .errorlist,body .message,
body .action-strip strong,body .attachment-list a,body .related-row span,
body .todo-item strong,body .approval-row strong,body .department-list>div,
body .funnel-row,body .definitions,body .definitions summary,
body .kanban-card strong,body .flow-step strong{font-size:14px;line-height:1.7}
body .eyebrow,body .button-badge,body .resource-index,body .chart-label,
body .chart-value,body .todo-item small,body .approval-row small,
body .action-strip span,body .attachment-list small,body .timeline-item p,
body .timeline-item small,body .flow-step small,body .kanban-card p,
body .kanban-card small,body .kanban-empty{font-size:13px;line-height:1.65}
body .operation-history-empty{font-size:15px;font-weight:500;line-height:1.75}
body .timeline-item strong,body .kanban-column h3{font-size:15px;font-weight:600}
body .cw-chip,body .cw-stat-line,body .cw-group-status,body .cw-member-info,
body .cw-empty-slot,body .cw-preview-line,body .cw-checks label,
body .cw-field[data-collaboration-field=finance_tasks] div label,
body .cw-group-name-label,body .cw-footer,body .cw-alert,body .cw-empty p,
body .cw-pagination,body .cw-overview span,body .cw-team-line,
body .cw-person-option,body .cw-picker-footer,body .cw-picker-status,
body .cw-nojs,body .cw-business-search>.cw-input,body .cw-business-list-empty,
body .cw-business-pagination{font-size:14px;line-height:1.7}
body .cw-person-option small,body .cw-person-option>span:last-child,
body .cw-role-heading>span,body .cw-business-list-empty small{font-size:13px;line-height:1.6}
body .cw-business-fields dt,body .org-summary-fields dt{font-size:14px;font-weight:600;line-height:1.6}
body .cw-business-fields dd,body .org-summary-fields dd{font-size:15px;font-weight:500;line-height:1.75}
body .employee-multi-picker,body .emp-selection-heading,body .emp-chip,
body .emp-empty,body .emp-help,body .emp-status,body .emp-option-main strong,
body .emp-dialog-search-label,body .emp-dialog-footer,body .emp-dialog-done,
body .emp-action,body .emp-dialog-close{font-size:14px;line-height:1.6}
body .emp-option-main small,body .emp-option-state,body .emp-actions>span{font-size:13px;line-height:1.6}
body .org-secondary-group>summary,body .org-permission-group>summary,
body .org-field-tabs a,body .org-form-fields select,body .org-form-fields input,
body .org-field-table select{font-size:14px;line-height:1.6}
body .org-permission-group>summary>span,body .org-protected p,
body .org-summary-note,body .org-permission-note,body .org-field-explanation,
body .org-section-heading p,body .org-field-table th small{font-size:13px;line-height:1.7}
body .org-protected strong{font-size:15px;font-weight:600}
body .reminder-overview small,body .reminder-status,body .reminder-last-run,
body .reminder-summary,body .reminder-state-form .button,
body .excel-import-upload label,body .excel-import-guide ol{font-size:14px;line-height:1.7}
body .lead-list-search-status,body .records-lead-filter-count,
body .lead-filter-nojs,body .condition-mode small,
body .condition-editor>.help-text{font-size:13px;line-height:1.65}
body .workflow-graph-card small,body .workflow-terminal small,
body .workflow-card-eyebrow,body .workflow-node-card-top,
body .workflow-step-number,body .workflow-condition-tag,
body .workflow-canvas-caption,body .workflow-properties-eyebrow,
body .workflow-properties-header p,body .workflow-type small,
body .workflow-visual-ready .condition-editor>.help-text{font-size:13px;line-height:1.6}
body .workflow-route-hub,body .workflow-add-node,body .workflow-node-actions .compact,
body .workflow-visual-ready .workflow-node>legend,
body .workflow-visual-ready .condition-row>.text-button,
body .workflow-visual-ready .condition-row .form-field label,
body .workflow-editor-status,body .workflow-editor-status>.text-button,
body .workflow-type strong{font-size:14px;line-height:1.6}
body .login-form>p,body .login-form label,body .notice{font-size:15px;line-height:1.75}
body .login-form input:not([type=checkbox]):not([type=radio]){font-size:16px;min-height:44px}
body .login-form .login-help,body .login-apps span{font-size:14px;line-height:1.7}
body .login-foot{font-size:13px}
body .login-copy h1{font-size:44px;line-height:1.45}
body .workflow-graph-card strong,body .workflow-terminal strong{font-size:15px;font-weight:600}
body .login-copy p{font-size:17px;line-height:1.9}
@media(max-width:680px){
  body h1,body .page-heading h1,body .customer-workspace h1{font-size:24px}
  body h2,body .panel-heading h2,body .customer-workspace h2{font-size:18px}
  body .brand{font-size:24px}
  body table td{padding:12px 14px}
  body .button,body .cw-button{min-height:40px}
  body .lead-filter-footer{gap:8px}
  body .login-copy h1{font-size:24px;line-height:1.4}
}

@media(min-width:681px) and (max-width:960px){body .sidebar{width:240px}body .main-wrap{margin-left:240px}body .brand{font-size:24px;gap:10px}}

/* 侧栏分组标题统一使用清晰文字、浅色底和主题色标记。 */
.sidebar .nav-label{position:relative;margin:0 0 10px;padding:8px 12px 8px 24px;border-radius:6px;background:var(--theme-hover,#f7f8fc);color:var(--ink);font-size:18px;font-weight:700;line-height:1.5;letter-spacing:.4px}
.sidebar .nav-label::before{content:'';position:absolute;left:12px;top:50%;width:3px;height:1.25em;border-radius:2px;background:var(--primary);transform:translateY(-50%)}
.sidebar .nav-label.spaced{margin-top:22px}

/* 二级菜单使用清晰正文色与常规字重，选中项以主题色底突出。 */
.sidebar .subnav a{margin:2px 0;padding:7px 8px;border-radius:6px;color:var(--ink);font-size:14px;font-weight:400;line-height:1.6;min-height:38px}
.sidebar .subnav a:hover,.sidebar .subnav a:focus-visible{background:var(--theme-hover,#f4f5f7);color:var(--theme-accent-ink,var(--primary))}
.sidebar .subnav a.selected{background:var(--theme-soft,#fff0e5);color:var(--theme-accent-ink,var(--primary));font-weight:400}
