/* TDEE / calorie calculator - stat inputs, then headline figures and a goals table.
   Reuses base .field and .seg; colors from theme tokens only. */

.tdee-form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.tdee-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.tdee-field { display: flex; flex-direction: column; gap: 8px; }
.tdee-field-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.tdee-age { width: 6rem; }
.tdee-activity { min-width: 16rem; }

.tdee-inputs { display: flex; flex-wrap: wrap; gap: 18px; }
.tdee-field-split { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tdee-field-split .tdee-input-unit + .tdee-input-unit { margin-top: 8px; }
.tdee-input-unit { display: inline-flex; align-items: center; gap: 6px; }
.tdee-input-unit .field { width: 7rem; font-variant-numeric: tabular-nums; }
.tdee-unit { font-size: 14px; color: var(--muted); }

.tdee-result {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px 20px; margin-bottom: 8px;
}
.tdee-headline {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.tdee-stat { display: flex; flex-direction: column; gap: 2px; }
.tdee-stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tdee-stat-value { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tdee-stat-value small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tdee-stat-accent { flex: 1; padding-left: 16px; border-left: 1px solid var(--border); }
.tdee-stat-accent .tdee-stat-value { color: var(--accent-strong); }

.tdee-goals { width: 100%; border-collapse: collapse; margin-top: 12px; }
.tdee-goals th, .tdee-goals td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.tdee-goals th { font-weight: 500; color: var(--text); }
.tdee-goals td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tdee-goals tr:last-child th, .tdee-goals tr:last-child td { border-bottom: 0; }
.tdee-goals-maintain th, .tdee-goals-maintain td { color: var(--accent-strong); }
