/* Shared screen typography. Keep invoice templates, print/export and touch POS independent. */
@media screen {
 :root { --vc-type-body:12px; --vc-type-note:11px; --vc-type-control:12px; --vc-type-section:14px; --vc-type-title:20px; }
 /* Portal menus live outside workspaceView, so use their explicit component classes. */
 body :is(.nav-dropdown-panel,.top-more-panel) button {font-size:var(--vc-type-control)!important;font-weight:600;line-height:1.4;min-height:36px;padding:8px 10px;gap:8px}
 body :is(.nav-dropdown-panel,.top-more-panel) button :is(b,span:not(.icon)){font-size:inherit;font-weight:inherit}
 body :is(.nav-dropdown-panel,.top-more-panel) button .icon {width:16px;height:16px}
 #workspaceView .page:not(#page-pos) {font-size:var(--vc-type-body);line-height:1.45}
 #workspaceView .page:not(#page-pos) :is(.page-head,.page-heading,.transaction-hero) h1 {font-size:var(--vc-type-title)!important;line-height:1.25!important}
 #workspaceView .page:not(#page-pos) :is(.page-head p,.page-heading-subtitle) {font-size:var(--vc-type-body);line-height:1.45}
 #workspaceView .page:not(#page-pos) :is(.panel-title h2,.panel>h2,.panel>h3,.module-section-head h3,.branch-settings-group h3,.branch-profile-heading h3) {font-size:var(--vc-type-section)!important;line-height:1.35}
 #workspaceView .page:not(#page-pos) :is(.primary,.secondary,.chip-button,.process-dashboard-toggle button,.branch-profile-tabs button) {font-size:var(--vc-type-control);line-height:1.4}
 #workspaceView .page:not(#page-pos) :is(.form-grid label,.filters label,.setting-copy strong) {font-size:var(--vc-type-body);line-height:1.4}
 #workspaceView .page:not(#page-pos) :is(.setting-copy small,.panel-title small,.module-section-head small) {font-size:var(--vc-type-note);line-height:1.45}
 /* Workspace cards share navigation/control scale, descriptions use supporting scale. */
 #workspaceView .module-workspace-root :is(.module-stat-card small,.module-action-card strong,.module-report-tile strong,.module-activity-row strong,.module-breakdown-row strong) {font-size:var(--vc-type-control)!important;line-height:1.4;font-weight:600}
 #workspaceView .module-workspace-root :is(.module-stat-card em,.module-action-card p,.module-activity-row p,.module-breakdown-row p,.module-report-tile small) {font-size:var(--vc-type-note)!important;line-height:1.45}
 #workspaceView .module-workspace-root :is(.module-stat-card strong,.module-breakdown-row b) {font-size:var(--vc-type-body)!important;line-height:1.4;font-weight:700}
 #workspaceView .module-workspace-root :is(.module-action-icon,.module-stat-icon,.module-activity-icon) .icon {width:18px;height:18px}
 #workspaceView .module-workspace-root .module-stat-card {padding:12px;gap:8px}
 #workspaceView .module-workspace-root .module-action-card {padding:10px;gap:8px}
 /* Analytics/report UI only: canvas plots, formatted documents and printed reports retain sizing. */
 #page-analytics :is(.analytics-theme-stage-copy h2,.analytics-chart-head h3,.analytics-filter-head h3,.analytics-focused-panel h3) {font-size:var(--vc-type-section)!important;line-height:1.35}
 #page-analytics :is(.analytics-theme-stage-copy p,.analytics-chart-head p,.analytics-segment-button strong,.analytics-area-pill strong) {font-size:var(--vc-type-body)!important;line-height:1.45}
 #page-analytics :is(.analytics-segment-button small,.analytics-metric-card small,.analytics-metric-card em,.analytics-chart-summary small) {font-size:var(--vc-type-note)!important;line-height:1.45}
 #page-analytics :is(.analytics-metric-card strong,.analytics-metric-card b,.analytics-chart-summary strong) {font-size:14px!important;line-height:1.4;font-variant-numeric:tabular-nums}
 #page-reports-v2 :is(.reports-v2-card-head h2,.vc-report-title-row h2,.reports-v2-welcome-grid strong) {font-size:var(--vc-type-section)!important;line-height:1.35}
 #page-reports-v2 :is(.vc-report-group-toggle,.vc-report-link,.vc-report-link strong,.reports-v2-combobox-list button,.reports-v2-toolbar label,.vc-report-filters label) {font-size:var(--vc-type-control)!important;line-height:1.4}
 #page-reports-v2 :is(.reports-v2-metrics small,.reports-v2-card-head p,.reports-v2-welcome-grid p) {font-size:var(--vc-type-note);line-height:1.45}
 #page-analytics .analytics-area-pill-copy > :first-child {font-size:var(--vc-type-control)!important;line-height:1.4}
 #page-analytics .analytics-area-pill-copy > :last-child {font-size:var(--vc-type-note)!important;line-height:1.45}
 #workspaceView :is(.liability-metrics strong,.liability-balance strong,.payroll-net-summary strong,.marketplace-dashboard-stat strong) {font-size:14px!important;line-height:1.4}
 /* All application modal families, including dialogs created dynamically. Receipt previews are excluded. */
 body :is(.vendro-message-dialog,.support-dialog,.command-dialog,.onboarding-dialog,.confirm-dialog,.help-dialog,.ops-modal,.cash-register-modal,.cash-close-confirm-modal,.restaurant-action-dialog,.restaurant-management-dialog,.restaurant-delivery-dialog,.liability-dialog,.analytics-drilldown-drawer,dialog:not(.pos-receipt-dialog):not(.pos-reprint-dialog),[role=dialog]:not(.pos-receipt-dialog):not(.pos-reprint-dialog)) {font-size:var(--vc-type-body);line-height:1.45}
 body :is(.vendro-message-dialog,.support-dialog,.command-dialog,.onboarding-dialog,.confirm-dialog,.help-dialog,.ops-modal,.cash-register-modal,.cash-close-confirm-modal,.restaurant-action-dialog,.restaurant-management-dialog,.restaurant-delivery-dialog,.liability-dialog,.analytics-drilldown-drawer,dialog:not(.pos-receipt-dialog):not(.pos-reprint-dialog),[role=dialog]:not(.pos-receipt-dialog):not(.pos-reprint-dialog)) :is(h2,h3) {font-size:16px!important;line-height:1.35}
 body :is(.vendro-message-dialog,.support-dialog,.command-dialog,.onboarding-dialog,.confirm-dialog,.help-dialog,.ops-modal,.cash-register-modal,.cash-close-confirm-modal,.restaurant-action-dialog,.restaurant-management-dialog,.restaurant-delivery-dialog,.liability-dialog,dialog:not(.pos-receipt-dialog):not(.pos-reprint-dialog),[role=dialog]:not(.pos-receipt-dialog):not(.pos-reprint-dialog)) :is(p,label,.input,.primary,.secondary,.vendro-message-brand,.vendro-message-actions button) {font-size:var(--vc-type-body)!important;line-height:1.45}
 body :is(.help-head,.command-head,.analytics-drilldown-drawer-head) > strong,
 .help-head #helpCenterTitle, dialog header > strong {font-size:16px!important;line-height:1.35}
 body :is(.command-head input,.help-search input) {font-size:var(--vc-type-control)!important;line-height:1.45}
 :is(#saleBillingDialog,#purchaseBillingDialog) .invoice-drawer-head strong {font-size:16px!important;line-height:1.35}
 #workspaceView :is(#page-sale,#page-purchase) :is(#saleBillingDialog,#purchaseBillingDialog) .input {font-size:var(--vc-type-control)!important;line-height:1.45}
 .vendro-message-dialog #vendroMessageDetail {font-size:var(--vc-type-note)}
 .vendro-message-dialog .vendro-message-symbol {width:38px;height:38px;font-size:22px;margin-bottom:12px}
 .vendro-message-dialog .vendro-message-actions button {min-height:36px;padding:8px 16px}
 .vendro-message-dialog .vendro-message-body {padding:20px}
 /* Never shrink touch targets when normalising text on small/touch screens. */
 @media (max-width:700px),(pointer:coarse) {
  :root {--vc-type-body:13px;--vc-type-note:12px;--vc-type-control:13px}
  body :is(.nav-dropdown-panel,.top-more-panel) button {min-height:44px}
  .vendro-message-dialog .vendro-message-actions button {min-height:44px}
 }
}
