/* Keep everyday text comfortable to read across the workspace. */
html:root { font-size: 15px; }
html body { font-size: 15px; }
html button, html input, html select, html textarea { font-size: 14px; }

html .app-nav { width: 248px; min-width: 248px; }
html .app-nav > a, html .app-subnav a { font-size: 14px; }
html .app-subnav a { min-height: 39px; }
html .workspace-label, html .top-right { font-size: 14px; }
html .brand { font-size: 22px; }
html .breadcrumb, html .workspace-footer { font-size: 13px; }
html h1 { font-size: 30px; }
html .page-heading p { font-size: 14px; }
html .subtle-badge, html .demo-label { font-size: 12px; }

html .stat-label, html .month-picker, html .month-range-title,
html .range-separator, html .report-period, html .report-period strong { font-size: 14px; }
html .stat strong { font-size: 32px; }
html .stat-caption, html .module-meta { font-size: 12px; }
html .tab, html .field-total, html .text-button { font-size: 14px; }
html .tab span, html .column-nav-label, html .scroll-hint { font-size: 12px; }
html .search input, html .filter-row select, html .pagination select { font-size: 14px; }
html kbd, html .page-number { font-size: 12px; }
html .column-nav button { font-size: 13px; }

html table { font-size: 14px; }
html th { font-size: 13px; }
html td, html .record-link { font-size: 14px; }
html #records-table.records-summary { min-width: 980px; }
html #records-table.records-summary th { font-size: 13px; }
html #records-table.records-summary td { font-size: 15px; height: 86px; }
html #records-table .summary-record strong { font-size: 16px; }
html #records-table .summary-record small { font-size: 13px; }
html #records-table .summary-id, html #records-table .summary-date { font-size: 14px; }
html .record-status { font-size: 13px; }
html .table-footer { font-size: 13px; }
html .empty-state h3 { font-size: 17px; }
html .empty-state p { font-size: 14px; }

html .module-card h2 { font-size: 18px; }
html .module-card p { font-size: 14px; }
html .panel-heading h2 { font-size: 17px; }
html .panel-heading [data-month-caption], html .inline-link,
html .report-category-count, html .report-metric > span,
html .report-metric small, html .report-method,
html .classification-note, html .report-empty,
html .data-alert, html .form-help { font-size: 13px !important; }
html .summary-table th, html .monthly-table th { font-size: 13px; }
html .summary-table td, html .monthly-table td,
html .monthly-table tfoot th { font-size: 15px; }
html .report-actions button { font-size: 14px; }

html .eyebrow, html .import-hint, html .month-roc-hint { font-size: 12px; }
html .dialog-heading h2 { font-size: 23px; }
html .form-section h3, html .detail-section h3,
html .required-group h3 { font-size: 16px; }
html .form-grid label, html #record-dialog .form-grid label,
html .detail-field dt, html .detail-meta,
html .required-choice { font-size: 14px; }
html .form-grid input, html .form-grid textarea,
html #record-dialog .form-grid input,
html #record-dialog .form-grid textarea,
html .inline-field-form input, html .inline-field-form textarea { font-size: 15px; }
html .form-grid select, html .inline-field-form select {
  width: 100%; min-height: 37px; padding: 8px 10px;
  border: 1px solid var(--control-border); border-radius: 5px;
  background: var(--input-bg); color: var(--ink); font-size: 15px;
}
html .detail-field dd { font-size: 16px; }
html .detail-nav button, html .dialog-footer > span,
html .detail-dialog .dialog-footer > span,
html .detail-section h3 small, html .import-content > p,
html .upload-zone > span, html .upload-zone input,
html .required-fields-footer p, html .required-choice small { font-size: 13px; }
html .upload-zone strong, html .import-preview table,
html .import-rules span, html .inline-field-actions button,
html .toast { font-size: 14px; }

@media (max-width: 900px) and (min-width: 601px) {
  html .app-nav { width: 210px; min-width: 210px; }
  html #record-dialog .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html #record-dialog .form-grid .wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  html .app-nav { width: min(280px, 85vw); min-width: 0; }
  html .brand { font-size: 19px; }
  html h1, html .heading-line h1 { font-size: 26px; }
  html .tab { font-size: 13px; }
  html .filter-row .field-total { font-size: 12px !important; }
  html #records-table.records-summary { min-width: 0; }
  html #records-table.records-summary th { font-size: 12px; }
  html #records-table.records-summary td { font-size: 14px; }
  html #records-table .summary-record strong { font-size: 15px; }
  html #records-table .summary-record small,
  html #records-table .summary-id { font-size: 12px; }
  html .record-status { font-size: 12px; white-space: normal; }
  html .table-footer { font-size: 11px; }
  html .panel-heading h2 { font-size: 16px; }
  html .report-metric > span { font-size: 13px !important; }
  html .month-picker, html .month-range-title { font-size: 13px; }
  html .detail-field dd { font-size: 15px; }
}
