/* Shared HomeFit styles on top of the Syncfusion theme. */
html, body { margin: 0; height: 100%; font-family: var(--hf-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); }

.hf-shell { display: flex; flex-direction: column; min-height: 100vh; }
.hf-appbar .hf-title { font-size: 1.15rem; font-weight: 600; margin-left: .5rem; }
.hf-body { flex: 1; position: relative; }
.hf-content { padding: 16px; max-width: 1100px; margin: 0 auto; box-sizing: border-box; }

.hf-nav { list-style: none; margin: 0; padding: 8px 0; }
.hf-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: inherit; text-decoration: none; }
.hf-nav a.active { font-weight: 600; background: rgba(0, 0, 0, .06); }
.hf-nav a:hover { background: rgba(0, 0, 0, .04); }

.hf-page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hf-page-header h1 { font-size: 1.6rem; margin: 0; }
.hf-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hf-stack { display: flex; flex-direction: column; gap: 12px; }
.hf-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.hf-row > * { flex: 1 1 160px; min-width: 0; }
.hf-muted { opacity: .7; font-size: .9rem; }
.hf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hf-card .e-card-content { padding-top: 0; }
.hf-next-block { font-weight: 600; }

.hf-block { border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.hf-block-header { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.hf-entry { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-top: 1px dashed rgba(0, 0, 0, .12); }
.hf-entry:first-of-type { border-top: none; }

.hf-runner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.hf-runner .hf-current-exercise { font-size: 2rem; font-weight: 700; margin: 0; }
.hf-runner .hf-current-variant { font-size: 1.25rem; margin: 0; }
.hf-runner .hf-target { font-size: 3rem; font-weight: 700; }
.hf-runner .hf-timer { font-size: 2.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-runner .hf-big-button { min-width: 220px; font-size: 1.2rem; padding: 14px 24px; }
.hf-up-next { width: 100%; max-width: 520px; text-align: left; }
.hf-adjust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

@media (max-width: 600px) {
    .hf-content { padding: 12px; }
    .hf-runner .hf-current-exercise { font-size: 1.6rem; }
    .hf-runner .hf-target { font-size: 2.4rem; }
}

/* Exercise figures (figures/figure.js): colours follow the Syncfusion theme. */
.hf-figure {
    --hf-fig: rgb(var(--color-sf-primary, 103, 80, 164));
    --hf-fig-far: rgba(var(--color-sf-primary, 103, 80, 164), .45);
    --hf-fig-ground: rgb(var(--color-sf-outline-variant, 196, 199, 197));
    --hf-fig-shadow: rgba(0, 0, 0, .15);
    --hf-fig-prop: rgb(var(--color-sf-outline, 121, 116, 126));
    width: 100%;
}
.hf-figure canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.hf-figure-large { max-width: 360px; }
.hf-figure-medium { max-width: 240px; }
.hf-figure-small { width: 140px; flex: 0 0 140px; }
.hf-figure-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; }
.hf-variant { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.hf-variant > div { min-width: 0; }
