.mpwh-app {
  background: #f7f4ee;
  border-radius: 28px;
  padding: 28px;
  color: #1f2937;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}
.mpwh-search-panel,
.mpwh-result-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}
.mpwh-search-panel { padding: 26px; }
.mpwh-search-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 12px;
}
.mpwh-search-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mpwh-input {
  flex: 1 1 auto;
  border: 2px solid #d1d5db;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 18px;
  line-height: 1.3;
  background: #fff;
  color: #111827;
}
.mpwh-input:focus {
  outline: none;
  border-color: #1b5e20;
  box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.12);
}
.mpwh-button {
  appearance: none;
  border: none;
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: #1b5e20;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  box-shadow: 0 10px 24px rgba(27, 94, 32, 0.18);
}
.mpwh-button:hover { transform: translateY(-1px); }
.mpwh-button:disabled { opacity: 0.7; cursor: wait; }
.mpwh-helper,
.mpwh-message {
  margin-top: 14px;
  color: #6b7280;
  font-size: 15px;
}
.mpwh-results { margin-top: 22px; }
.mpwh-result-card { overflow: hidden; }
.mpwh-result-accent { height: 12px; }
.mpwh-result-inner { padding: 28px; }
.mpwh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mpwh-food-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
}
.mpwh-status-badge,
.mpwh-score-pill,
.mpwh-alt-pill {
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}
.mpwh-status-badge {
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.mpwh-score-block {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}
.mpwh-score-pill {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 22px;
}
.mpwh-score-number {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}
.mpwh-score-suffix {
  font-size: 14px;
  opacity: 0.95;
}
.mpwh-overall-label {
  color: #6b7280;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.mpwh-overall-band {
  margin-top: 4px;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 800;
}
.mpwh-summary {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.55;
}
.mpwh-help-note {
  margin-top: 18px;
  color: #6b7280;
  font-size: 14px;
}
.mpwh-factors {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.mpwh-factor { min-width: 0; }
.mpwh-factor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
}
.mpwh-factor-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  position: relative;
}
.mpwh-factor-label { font-weight: 700; }
.mpwh-factor-value { color: #6b7280; font-weight: 700; white-space: nowrap; }
.mpwh-factor-help { position: relative; display: inline-flex; }
.mpwh-factor-info {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.mpwh-factor-info:hover,
.mpwh-factor-info:focus {
  background: #eef2f7;
  outline: none;
}
.mpwh-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  padding: 12px 14px;
  display: none;
}
.mpwh-tooltip.is-open { display: block; }
.mpwh-tooltip ul {
  margin: 0;
  padding-left: 18px;
}
.mpwh-tooltip li {
  margin: 0 0 6px;
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
}
.mpwh-tooltip li:last-child { margin-bottom: 0; }

.mpwh-bar {
  width: 100%;
  height: 16px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}
.mpwh-bar-fill {
  height: 100%;
  border-radius: 999px;
}
.mpwh-section-title {
  margin: 28px 0 12px;
  font-size: 20px;
  font-weight: 800;
}
.mpwh-why-list { margin: 0; padding-left: 20px; }
.mpwh-why-list li {
  margin-bottom: 10px;
  line-height: 1.55;
}
.mpwh-alts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.mpwh-alt-pill {
  padding: 11px 16px;
  font-size: 14px;
}
.mpwh-alt-pill-secondary { opacity: 0.92; }

@media (max-width: 900px) {
  .mpwh-search-row,
  .mpwh-header {
    flex-direction: column;
  }
  .mpwh-score-block {
    grid-template-columns: 1fr;
  }
  .mpwh-button { width: 100%; }
  .mpwh-factors { grid-template-columns: 1fr; }
}