.form-group:last-child { margin-bottom: 0; }

/* 家電リスト */
.appliance-section { margin-bottom: 1.5rem; }
.appliance-title {
  font-size: 0.875rem;
  color: var(--text-sub);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.appliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.appliance-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.appliance-chip:hover {
  border-color: var(--blue);
  background: #eff6ff;
}
.appliance-chip.selected {
  border-color: var(--blue);
  background: #eff6ff;
}
.chip-name { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.chip-watt { font-size: 0.78rem; color: var(--text-sub); }

/* 結果 */
.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; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.result-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.6);
  border: 1px solid #e0e7ff;
}
.result-item.highlight {
  background: rgba(59,130,246,0.1);
  border-color: #93c5fd;
}
.result-period {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
}
.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}
.result-item.highlight .result-value { font-size: 1.75rem; }
.result-unit { font-size: 0.78rem; color: var(--text-sub); }
.result-detail {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.9;
  padding-top: 0.75rem;
  border-top: 1px solid #bfdbfe;
}

/* ダークモード */
html[data-theme="dark"] .result-box {
  background: linear-gradient(135deg, #1e3a5f, #0f2d1f);
  border-color: #1e40af;
}
html[data-theme="dark"] .result-detail { border-color: #1e40af; }
html[data-theme="dark"] .appliance-chip { background: #1e293b; }
html[data-theme="dark"] .appliance-chip:hover,
html[data-theme="dark"] .appliance-chip.selected { background: #1e3a5f; }
html[data-theme="dark"] .result-item { background: rgba(255,255,255,0.05); border-color: #334155; }
html[data-theme="dark"] .result-item.highlight { background: rgba(59,130,246,0.15); border-color: #1e40af; }

@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr; }
  .result-item.highlight .result-value { font-size: 1.5rem; }
  .appliance-grid { grid-template-columns: repeat(2, 1fr); }
}
