.mt-tools-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1.5rem;
}
.mt-tool-card {
  background: #fff;
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 20px rgba(15, 41, 25, 0.06);
}
.mt-tool-card h2 {
  font-size: 1.15rem;
  color: #1b4332;
  margin: 0 0 0.75rem;
}
.mt-food-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mt-food-search input[type="search"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}
.mt-food-results {
  margin-top: 12px;
  list-style: none;
  padding: 0;
}
.mt-food-results li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mt-food-results .mt-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.mt-badge--ok { background: #d1fae5; color: #065f46; }
.mt-badge--no { background: #fee2e2; color: #991b1b; }
.mt-badge--warn { background: #fef3c7; color: #92400e; }
.mt-adherence label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
}
.mt-adherence input[type="range"] {
  width: 100%;
}
.mt-adherence-output {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  font-size: 1.05rem;
  line-height: 1.7;
}
html[data-theme="dark"] .mt-tool-card {
  background: var(--clr-surface, #0f172a);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .mt-adherence-output {
  background: rgba(45, 106, 79, 0.15);
}
