/* v95: Correct actual small UI text after all page CSS; screen only.
   Respect font scales; exclude SVG icons, calendars, controls with special geometry,
   printable reports, and deliberate visually hidden helper labels. */
@media screen {
  :root { --hm95-body: max(15px, calc(15px * var(--ds-body-scale, 1)));
          --hm95-meta: max(14px, calc(14px * var(--ds-meta-scale, 1)));
          --hm95-label: max(14px, calc(14px * var(--ds-body-scale, 1))); }
  body .app-shell .page-content :is(p,li,dt,dd,blockquote),
  body .app-shell .page-content :is(.field-help,.form-hint,.hint-text,.help-text) { line-height:1.8; }
  body .app-shell .page-content p:not(.visually-hidden):not(.sr-only) {
    font-size:max(15px,calc(15px * var(--ds-body-scale,1)))!important;
  }
  body .app-shell .page-content :is(small,.help-text,.field-hint,.form-hint,.field-help,.muted-text) {
    font-size:var(--hm95-meta) !important;line-height:1.75; }
  body .app-shell .page-content :is(label,legend):not(.sr-only):not(.visually-hidden) {
    font-size:var(--hm95-label) !important;line-height:1.65; }
  body .app-shell .page-content :is(th,td),
  body .app-shell .page-content :is(.table-wrap,.table-responsive,.report-table-wrap) :is(span,b,strong,time) {
    font-size:var(--hm95-body) !important; line-height:1.7; }
  body .app-shell .page-content :is(.table-wrap,.table-responsive,.report-table-wrap) th {font-weight:800;}
  body .app-shell .page-content :is(.status-chip,.ds-badge,.badge,.chip) { font-size:var(--hm95-meta) !important;line-height:1.5; }
  body .app-shell .page-content :is(button,.button):not(.icon-button):not(.calendar-icon-button):not(.date-icon-button) {font-size:var(--hm95-label);}
  body .app-shell .sidebar :is(.sidebar-nav a,.sidebar-nav span,.sidebar-property small) {font-size:max(13px,calc(13px * var(--ds-body-scale,1)));}
  /* Smart accounting v52: independently styled grid rows, NOT HTML tables. */
  body .app-shell .page-content :is(.smart-accounting-v52,.smart-history-v52,.category-list-v52,.category-create-v52) :is(p,span,small,label,time,b,strong) {
    font-size:var(--hm95-body) !important;line-height:1.7;}
  body .app-shell .page-content :is(.smart-history-head-v52,.smart-history-row-v52,.smart-debt-row-v52,.smart-debt-summary-v52,.smart-allocation-preview-v52,.smart-entry-actions-v52,.smart-entry-section-v66) :is(div,span,small,b,time,strong,label) {
    font-size:var(--hm95-body) !important;line-height:1.7;}
  body .app-shell .page-content :is(.smart-history-head-v52,.smart-history-row-v52) { min-width:0; }
  body .app-shell .page-content .smart-history-row-v52 > * {min-width:0;overflow-wrap:anywhere;}
  body .app-shell .page-content .smart-history-row-v52 > strong,
  body .app-shell .page-content .smart-accounting-stats-v52 strong {font-size: max(16px,calc(16px * var(--ds-body-scale,1))) !important;}
  body .app-shell .page-content :is(.cc92,.hm95-messenger-home,.settings-center-v43,.mc-center,.acct-v48) :is(p,small,label,td,th,span):not(.icon) {font-size:var(--hm95-body);line-height:1.75;}
  body .app-shell .page-content :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) { font-size: max(15px,calc(15px * var(--ds-body-scale,1))); }
  @media(max-width:760px) {
    body .app-shell .page-content :is(.smart-history-row-v52,.smart-debt-row-v52) {gap:10px;}
    body .app-shell .page-content :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) {font-size:16px;}
    body .app-shell .page-content .smart-history-row-v52 > strong {overflow-wrap:anywhere;}
  }
}
