.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 0; }

/* 結果 */
.result-box {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: none;
}
.result-box.show { display: block; }
.bmi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.result-label {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.result-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
}
.bmi-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
}
.bmi-badge.underweight { background: #e0f2fe; color: #0369a1; }
.bmi-badge.normal      { background: #dcfce7; color: #166534; }
.bmi-badge.obese1      { background: #fefce8; color: #854d0e; }
.bmi-badge.obese2      { background: #fff7ed; color: #9a3412; }
.bmi-badge.obese3      { background: #fee2e2; color: #991b1b; }
.bmi-badge.obese4      { background: #fecdd3; color: #881337; }

/* ゲージ */
.bmi-gauge-wrap { margin-bottom: 1.25rem; }
.bmi-gauge { position: relative; padding-bottom: 1.4rem; }
.gauge-track {
  display: flex;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
}
.gauge-segment { height: 100%; }
.gauge-marker {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 24px;
  background: #1e293b;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.3s;
  display: none;
}
.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-top: 0.3rem;
}

/* 内訳 */
.result-breakdown { display: flex; flex-direction: column; gap: 0.35rem; }
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-sub);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row .val { font-weight: 600; color: var(--text); }
.val.plus  { color: #dc2626; }
.val.minus { color: #2563eb; }

/* ダークモード */
html[data-theme="dark"] .result-box {
  background: linear-gradient(135deg, #1e3a5f, #0f2d1f);
  border-color: #1e40af;
}
html[data-theme="dark"] .gauge-marker { background: #e2e8f0; }
html[data-theme="dark"] .bmi-badge.normal { background: #14532d; color: #86efac; }
html[data-theme="dark"] .bmi-badge.underweight { background: #0c4a6e; color: #7dd3fc; }
html[data-theme="dark"] .bmi-badge.obese1 { background: #422006; color: #fde68a; }
html[data-theme="dark"] .bmi-badge.obese2 { background: #431407; color: #fdba74; }
html[data-theme="dark"] .bmi-badge.obese3 { background: #450a0a; color: #fca5a5; }
html[data-theme="dark"] .bmi-badge.obese4 { background: #4c0519; color: #fda4af; }

@media (max-width: 480px) {
  .input-row { grid-template-columns: 1fr; }
  .result-main { font-size: 2rem; }
}
