/* Shared Chinese/Latin font and a small, consistent type scale. */
:root{
  --font-ui:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Segoe UI",sans-serif;
  --text-title:24px;
  --text-body:12px;
  --text-note:10px;
  --text-panel:10px;
  --text-chart:9px;
  --text-caption:8px;
  font-family:var(--font-ui);
}
body{font-size:var(--text-body);line-height:1.6;letter-spacing:0;font-kerning:normal}
button,input,select,textarea{font-family:var(--font-ui);font-variant-numeric:tabular-nums}
.button,.text-button,.stage-controls .button,.ingest-dialog .ingest-top-actions .button,.top-actions .button,.heading-actions .button,.review-row .button,.pagination .button,.empty-actions .button,.filters .text-button,.field-dictionary .text-button{font-size:var(--text-body);line-height:1.4;letter-spacing:0;font-weight:400}
.stage-brand,.ingest-dialog .ingest-top .brand strong{font-size:16px;font-weight:500;letter-spacing:.08em}
.stage-status,.ingest-dialog .ingest-file h2,.ingest-dialog .ingest-file p{font-size:var(--text-body);line-height:1.5;letter-spacing:0;font-weight:400}
.ingest-mini-progress{font-size:16px;font-family:var(--font-ui);font-variant-numeric:tabular-nums;line-height:1.5}
.workspace-badge,.nav-item,.breadcrumb,.review-tabs button,.review-main strong,.source-facts strong,.rules-list>div,.form-field,.form-field input,.form-field textarea,.form-field select,.detail-field strong,.detail-section h4,.export-option strong{font-size:var(--text-body);line-height:1.6}
.page-heading h1,.modal-heading h2,.workspace-empty h2,.help-intro h2,.detail-product h3,.startup-notice h1{font-size:var(--text-title);line-height:1.4;font-weight:500;letter-spacing:0}
.page-heading p,.panel-heading p,.review-main p,.source-note,.review-notice,.review-more,.help-text,.modal-description,.detail-product p,.detail-section p,.audit-entry,.export-option span,.source-tools p,.help-intro p,.workspace-empty p,.error-text,.toast{font-size:var(--text-body);line-height:1.7}
.panel-heading h2,.help-steps strong,.attention-label strong,.ranking-name{font-size:var(--text-body);line-height:1.5;font-weight:500}
.nav-label,.nav-item>span,.local-label,.dataset-pill,.eyebrow,.modal-heading .eyebrow,.page-heading .eyebrow,.brand>span:last-child,.workspace-badge small,.workspace-index,.workspace-info small,.footer,.kpi-top,.kpi-top>span:last-child,.kpi-bottom,.micro-label,.chart-legend,.quantity-total>span,.quantity-total small,.ranking-name small,.ranking-index,.attention-label small,.scope-note,.data-table th,.data-table td small,.tag,.pagination,.graph-guide,.graph-info,.graph-legend,.source-facts>div>span,.form-field small,.detail-field span,.help-steps span{font-size:var(--text-note);line-height:1.5;letter-spacing:0}
.eyebrow,.brand>span:last-child,.workspace-badge small,.kpi-top>span:last-child{letter-spacing:.06em}
.data-table,.field-row,.composition-line{font-size:var(--text-body);line-height:1.5}
.composition-line b,.ranking-amount,.review-row .review-amount{font-size:var(--text-body);line-height:1.5;font-variant-numeric:tabular-nums}
.kpi-value,.kpi-value.small{font-size:26px;line-height:1.3;font-weight:400;letter-spacing:0;font-variant-numeric:tabular-nums}
.trend-chart svg text{font-family:var(--font-ui);font-size:12px}

/* Chart labels remain separate from the SVG scaling. */
.analysis-deck{font-family:var(--font-ui);font-size:var(--text-chart);line-height:1.3;font-variant-numeric:tabular-nums}
.deck-card header{height:14px;line-height:14px}
.deck-card h3{font-size:var(--text-panel);line-height:14px;letter-spacing:0;font-weight:500}
.deck-caption{font-size:var(--text-caption);line-height:1.25;letter-spacing:0}
.deck-empty,.deck-trend-row>span,.deck-stream-row,.deck-stream-event,.deck-volume-meta,.deck-volume-total>span{font-size:var(--text-chart);line-height:1.3}
.deck-volume-total b{font-size:24px;font-family:var(--font-ui);font-variant-numeric:tabular-nums}
@media(max-width:1200px){.kpi-value,.kpi-value.small{font-size:22px}}
@media(max-width:700px){
  .page-heading h1,.modal-heading h2,.workspace-empty h2,.help-intro h2,.detail-product h3{font-size:22px}
  .kpi-value,.kpi-value.small{font-size:18px}
}
