/* v3.7.3 MiSans font theme.
   The base template loads the exact Normal Medium/Bold CSS links from dsrkafuu/misans.
   Local font files are optional fallbacks only; binary font files are not bundled here. */
@font-face {
  font-family: "MiSans Local";
  src:
    url("/static/fonts/MiSans-Medium.woff2") format("woff2"),
    url("/static/fonts/MiSans-Normal.woff2") format("woff2"),
    local("MiSans Medium"),
    local("MiSans");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MiSans Local";
  src:
    url("/static/fonts/MiSans-Bold.woff2") format("woff2"),
    url("/static/fonts/MiSans-Semibold.woff2") format("woff2"),
    local("MiSans Bold"),
    local("MiSans Semibold"),
    local("MiSans");
  font-weight: 700 950;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-sans: "MiSans", "MiSans Local", "Noto Sans SC", "Source Han Sans SC", "思源黑体", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-number: "MiSans", "MiSans Local", "SF Pro Display", "Roboto", "Segoe UI", Arial, sans-serif;
}
html,
body,
button,
input,
select,
textarea,
table,
pre,
code,
a,
span,
small,
strong,
b,
p,
div,
label,
summary {
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
body { font-weight: 500; }
h1,h2,h3,h4,
.header-copy h1,
.page-head h1,
.section-title h2,
.trend-title-row h2,
.exercise-info h3,
.template-card h2,
.history-head h2 {
  font-family: var(--font-sans) !important;
  font-weight: 800;
}
.today-item strong,
.metric-card strong,
.status-kpi-grid strong,
.compact-week-grid strong,
.plan-stat-grid strong,
.backup-status-grid strong,
.personal-stat-grid strong,
.pr-card-mini strong,
.bar-value,
.set-index,
.history-table,
input[type="number"] {
  font-family: var(--font-number) !important;
  font-variant-numeric: tabular-nums;
}
