.energy-tool-section { scroll-margin-top: 110px; }
.energy-tool-section [hidden] { display: none !important; }
.energy-tool { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; margin-top: 30px; align-items: start; }
.energy-form, .energy-results { min-width: 0; }
.energy-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 24px; padding: 20px; min-width: 0; }
.energy-form legend { font-weight: 700; padding: 0 8px; font-size: 1.1rem; }
.energy-form fieldset > p { margin: 0 0 20px; color: var(--ink-soft); }
.energy-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.energy-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.energy-field label { font-weight: 650; color: var(--ink); }
.energy-field input, .energy-field select { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--white); border: 1px solid #77848a; border-radius: 8px; color: var(--ink); font: inherit; box-sizing: border-box; }
.energy-field input[aria-invalid="true"] { border: 2px solid var(--orange-dark); }
.energy-field small, .energy-fineprint { color: var(--ink-soft); font-size: .875rem; line-height: 1.6; }
.energy-block { padding: 18px 0; border-top: 1px solid var(--line); }
.energy-block:first-child { padding-top: 0; border-top: 0; }
.energy-block-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.energy-block-header h3 { font-size: 1rem; margin: 0; }
.energy-secondary { border: 1px solid #77848a; background: var(--white); color: var(--ink); border-radius: 8px; padding: 10px 14px; min-height: 44px; font: inherit; cursor: pointer; line-height: 1.4; }
.energy-secondary:hover { background: var(--warm); }
.energy-secondary:disabled { opacity: .6; cursor: not-allowed; }
.energy-tool :is(button, input, select, a):focus-visible, .energy-errors:focus { outline: 3px solid var(--orange-dark); outline-offset: 4px; }
.energy-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.energy-actions .button { border: 0; cursor: pointer; }
.energy-results { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.energy-results h3 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 20px; }
.energy-results .button { width: 100%; white-space: normal; text-align: center; box-sizing: border-box; }
.energy-totals { margin: 20px 0; }
.energy-totals > div { padding: 18px 0; border-top: 1px solid var(--line); }
.energy-totals dt { color: var(--ink-soft); }
.energy-totals dd { font-size: clamp(1.25rem, 2.1vw, 1.85rem); line-height: 1.3; font-weight: 750; margin: 8px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.energy-errors { padding: 18px; border: 2px solid var(--orange-dark); border-radius: 8px; margin: 0 0 24px; }
.energy-errors ul { margin: 10px 0 0; padding-left: 22px; }
.energy-errors a { color: var(--orange-dark); text-decoration: underline; }
.energy-field .energy-error { color: var(--orange-dark); }
.energy-error:empty { display: none; }
.energy-fineprint { overflow-wrap: anywhere; }
@media (max-width: 980px) { .energy-tool { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .energy-fields { grid-template-columns: minmax(0, 1fr); } .energy-form fieldset, .energy-results { padding: 18px; } .energy-actions { flex-direction: column; } .energy-actions > * { width: 100%; } }
