/* The calculator follows one vertical sequence at every screen width. */
#calculator-panel {
  max-width: 1180px;
  padding: clamp(12px, 3vw, 34px);
  background: var(--color-inset);
}
.load-heading { padding: clamp(12px, 3vw, 32px) 8px; text-align: center; }
.load-heading h2 { margin: .28em 0; font-size: clamp(1.9rem, 4vw, 3.1rem); }
.load-heading > p { margin-inline: auto; }
.load-heading p:last-child, .load-step-heading p { color: var(--color-ink-muted); }
.load-step {
  padding: clamp(14px, 3vw, 28px);
  margin-top: 12px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
}
.load-step-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.load-step-heading > span {
  display: grid; place-items: center; flex: 0 0 40px; height: 36px;
  border-radius: 9px; background: #f5e6c9; color: #704a14; font-size: .8rem; font-weight: 600;
}
.load-step-heading h3 { font-size: clamp(1.12rem, 2vw, 1.4rem); margin: 0 0 4px; }
.load-step-heading p { font-size: .85rem; margin: 0; }
.load-presets { margin-bottom: 14px; }
.load-presets summary { font-size: .85rem; cursor: pointer; }
.load-presets .situation-pills { margin-top: 10px; }
.load-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)); gap: 8px; }
.load-tile {
  position: relative; min-width: 0;
  background: #faf8f3; border: 1px solid var(--color-border); border-radius: 12px;
}
.load-tile:hover, .load-tile.is-selected { background: #fff4dd; border-color: #b9812d; }
.load-tile .tile-toggle, .load-tile.is-selected .tile-toggle {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  min-height: 101px; padding: 8px 4px 7px; text-align: center;
  font-size: .77rem; line-height: 1.22; color: inherit;
}
.appliance-picture { flex-shrink: 0; display: block; width: 51px; height: 51px; }
.load-count {
  position: absolute; right: 4px; top: 5px; min-width: 20px; padding: 3px;
  background: #e8af49; color: #302211; border-radius: 6px; font-size: .72rem; line-height: 1;
}
.load-minus, .load-remove {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--color-border); border-radius: 9px; color: #6b4217; background: #fff;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.load-minus { position: absolute; left: 2px; top: 2px; width: 30px; height: 30px; }
.load-minus:hover, .load-remove:hover { background: #f7ead0; }
.load-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.load-toolbar .btn { min-height: 44px; padding: 9px 14px; font-size: .8rem; }
.load-table { border: 1px solid var(--color-border); border-radius: 12px; overflow: clip; }
.load-table-header, .load-row {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) 36px;
  gap: 12px; align-items: center; padding: 9px 12px;
}
.load-table-header { background: #f5f0e6; font-size: .77rem; font-weight: 600; }
.load-row + .load-row { border-top: 1px solid var(--color-border); }
.load-row-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; font-size: .85rem; overflow-wrap: anywhere; }
.load-row-name .appliance-picture { width: 34px; height: 34px; }
.load-row-name input[type="text"] { flex: 1; width: 0; }
.load-row input, .load-settings input, .load-settings select {
  width: 100%; min-width: 0; min-height: 42px; padding: 6px 8px;
  color: inherit; border: 1px solid #bcb4a7; border-radius: 8px; background: #fff; font: inherit;
}
.load-field { min-width: 0; }
.load-field > span { display: none; }
.load-surge { width: 100%; }
.load-surge .load-field { display: flex; gap: 8px; align-items: center; }
.load-surge .load-field > span { display: block; font-size: .72rem; }
.load-surge input { width: 64px; }
.load-empty { padding: 12px; background: #f9f6ef; border-radius: 8px; font-size: .85rem; }
.load-settings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.load-settings label { display: block; margin-bottom: 4px; font-size: .82rem; }
.load-submit { width: 100%; margin-top: 16px; min-height: 48px; justify-content: center; text-align: center; white-space: normal; }
.load-submit:disabled { opacity: .55; cursor: not-allowed; }
.load-result { scroll-margin-top: 4px; }
.load-metrics, .load-components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 12px 0 18px; }
.load-metric, .load-component { background: #f8f5ed; border-radius: 12px; padding: 12px; min-width: 0; }
.load-metric { border-left: 3px solid #c88c32; }
.load-metric strong { display: block; margin: 3px 0; font-size: clamp(1.02rem, 2.35vw, 1.5rem); overflow-wrap: anywhere; }
.load-metric p, .load-component p, .load-metric small, .load-component small { font-size: .8rem; }
.component-heading { font-size: 1.02rem; margin-top: 16px; }
.load-component-type { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.load-component h5 { font-size: .85rem; margin: 0; color: var(--color-ink-muted); }
.component-quantity { margin-left: auto; padding: 3px 7px; border-radius: 6px; background: #f5e6c9; color: #704a14; font-size: .73rem; white-space: nowrap; }
#bundle-price { font-weight: 600; }
.load-component p { margin: 0; }
.load-component .component-product { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.load-component small { display: block; margin-top: 3px; }
.load-component .component-target { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--color-border); }
.load-component .appliance-picture { width: 42px; height: 42px; }
.load-result .calculator-actions { flex-direction: row; flex-wrap: wrap; }
.load-result .calculator-actions .btn { flex: 0 1 auto; }
@media (min-width: 601px) and (max-width: 840px) {
  .load-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .load-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .load-tile .tile-toggle, .load-tile.is-selected .tile-toggle { min-height: 92px; }
  .load-minus { width: 34px; height: 34px; }
  .load-table-header { display: none; }
  .load-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 34px; gap: 6px; padding: 8px; align-items: end; }
  .load-row-name { grid-column: 1 / -1; }
  .load-field > span { display: block; min-height: 2.4em; font-size: .7rem; line-height: 1.2; }
  .load-row input, .load-settings input, .load-settings select { font-size: 16px; }
  .load-remove { width: 34px; height: 42px; }
  .load-settings, .load-components { grid-template-columns: minmax(0, 1fr); }
  .load-metrics { gap: 4px; }
  .load-metric { padding: 7px 5px; border-left-width: 2px; }
  .load-metric p, .load-metric small { font-size: .7rem; }
}
