/* tdee-calculator — extracted from inline <style> */
.evvy-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.evvy-unit-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
}
.evvy-unit-toggle .evvy-chip {
  padding: 0.2rem 0.625rem;
  font-size: 0.75rem;
}
.evvy-height-imperial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.evvy-height-metric {
  display: none;
}
.evvy-rate-section {
  margin-top: 0.25rem;
}
.evvy-bmr-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--evvy-text-secondary, #666);
  margin-top: 0.375rem;
}
.evvy-bmr-note strong {
  color: var(--cluster-dark);
}
.evvy-macro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.evvy-macro-card {
  background: var(--bs-body-bg, #fff);
  border: 2px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  padding: 0.875rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.evvy-macro-card:hover {
  border-color: var(--cluster-dark);
}
.evvy-macro-card.active {
  border-color: var(--cluster-dark);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cluster-dark) 25%, transparent);
}
.evvy-macro-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--evvy-text-primary, #333);
  margin-bottom: 0.25rem;
}
.evvy-macro-card-ratio {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cluster-dark);
  margin-bottom: 0.5rem;
}
.evvy-macro-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.15rem 0;
  color: var(--evvy-text-secondary, #666);
}
.evvy-macro-card-row strong {
  color: var(--evvy-text-primary, #333);
  font-variant-numeric: tabular-nums;
}
.evvy-cycle-table-wrap,
.evvy-reverse-table-wrap {
  margin-top: 0.75rem;
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  overflow: hidden;
}
.evvy-cycle-table,
.evvy-reverse-table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
}
.evvy-cycle-table th,
.evvy-reverse-table th {
  background: var(--cluster-dark);
  color: var(--cluster-text, #fff);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.625rem 0.75rem;
  text-align: right;
  white-space: nowrap;
}
.evvy-cycle-table th:first-child,
.evvy-reverse-table th:first-child {
  text-align: left;
}
.evvy-cycle-table td,
.evvy-reverse-table td {
  padding: 0.5rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--evvy-border-color, #DEE2E6);
  font-variant-numeric: tabular-nums;
}
.evvy-cycle-table td:first-child,
.evvy-reverse-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.evvy-cycle-table tbody tr:last-child td,
.evvy-reverse-table tbody tr:last-child td {
  border-bottom: none;
}
.evvy-cycle-table tbody tr:hover,
.evvy-reverse-table tbody tr:hover {
  background: color-mix(in srgb, var(--cluster-dark) 4%, transparent);
}
.evvy-cycle-highlight {
  background: color-mix(in srgb, var(--cluster-dark) 6%, transparent);
  font-weight: 600;
}
.evvy-reverse-note {
  font-size: 0.8125rem;
  color: var(--evvy-text-secondary, #666);
  margin-top: 0.5rem;
  line-height: 1.5;
}
[data-bs-theme="dark"] .evvy-cycle-table th,
[data-bs-theme="dark"] .evvy-reverse-table th {
  color: #1a1a2e;
}
[data-bs-theme="dark"] .evvy-cycle-table-wrap,
[data-bs-theme="dark"] .evvy-reverse-table-wrap {
  background: var(--evvy-gray-100, #1E1E1E);
}
[data-bs-theme="dark"] .evvy-macro-card {
  background: var(--evvy-gray-100, #1E1E1E);
}
@media (max-width: 575.98px) {
  .evvy-body-grid { grid-template-columns: 1fr; }
  .evvy-height-imperial { grid-template-columns: 1fr 1fr; }
  #results-area .evvy-results-row { grid-template-columns: 1fr !important; }
  .evvy-macro-cards { grid-template-columns: 1fr; }
  .evvy-cycle-table-wrap,
  .evvy-reverse-table-wrap { overflow-x: auto; }
}
