.energy-calculator {
  --energy-navy: #142f43;
  --energy-blue: #087f75;
  --energy-teal: #087f75;
  --energy-muted: #587084;
  --energy-border: #dce5ed;
  --energy-radius: 18px;
  color: var(--energy-navy);
  max-width: 1480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.energy-calculator * { box-sizing: border-box; }
.energy-calculator button { font-family: inherit; cursor: pointer; }
.energy-calculator button:focus-visible,
.energy-calculator summary:focus-visible,
.energy-calculator a:focus-visible { outline: 3px solid #8066b4; outline-offset: 4px; }
.energy-hero { position: relative; overflow: hidden; padding: 32px 34px 0; border: 1px solid #1b4358; border-radius: 22px; background: radial-gradient(ellipse at 100% 0%, #087f7545, transparent 56%), linear-gradient(120deg, #102b40, #17394e); box-shadow: 0 14px 32px #102b4012; color: #fff; }
.energy-hero::before,
.energy-hero::after { content: ''; position: absolute; width: 320px; height: 320px; right: -75px; top: -155px; border: 1px solid #b7e5db26; border-radius: 50%; pointer-events: none; }
.energy-hero::after { width: 430px; height: 430px; right: -130px; top: -210px; border-color: #b7c4ee14; }
.energy-hero-copy { position: relative; z-index: 1; max-width: 800px; padding-right: 76px; }
.energy-eyebrow { display: block; font-size: 11px; font-weight: 750; letter-spacing: 1.8px; color: var(--energy-muted); }
.energy-hero .energy-eyebrow { color: #98d8cb; }
.energy-hero h2 { margin: 10px 0 10px; color: #fff; font-size: clamp(28px, 2.5vw, 38px); font-weight: 720; line-height: 1.2; letter-spacing: -1px; }
.energy-hero p { margin: 0; font-size: 14px; line-height: 1.8; color: #d4e1eb; }
.energy-hero-icon { position: absolute; right: 34px; top: 32px; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 1px solid #acd9d83b; border-radius: 18px; background: #e3f4f00d; color: #a6e4d6; }
.energy-hero-icon svg { width: 29px; height: 29px; }
.energy-context { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 0; border-top: 1px solid #deedf51c; color: #cadce7; font-size: 12px; line-height: 1.6; }
.energy-context span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.energy-context span:last-child { color: #b1dccc; }
.energy-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 22px; }
.energy-tabs { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--energy-border); border-radius: 14px; background: #eaf0f5; }
.energy-tabs button { min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #4d667a; font-size: 13px; font-weight: 650; white-space: nowrap; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.energy-tabs button:hover { color: var(--energy-navy); background: #ffffff80; }
.energy-tabs button[aria-selected='true'] { border-color: #193e52; background: #17394e; color: #fff; box-shadow: 0 3px 8px #102b401a; }
.energy-text-button { min-height: 44px; padding: 10px 8px; border: 0; border-radius: 8px; background: none; color: #526d80; font-size: 13px; font-weight: 600; }
.energy-text-button:hover { background: #e9f3f0; color: #086b62; text-decoration: underline; text-underline-offset: 4px; }
.energy-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(350px, .88fr); gap: 26px; align-items: start; }
.energy-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.energy-form-section { padding: 26px; border: 1px solid var(--energy-border); border-radius: var(--energy-radius); background: #fff; box-shadow: 0 4px 14px #142f4304; }
.energy-section-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.energy-section-title > span { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border: 1px solid #cfe6df; border-radius: 11px; background: #eef7f3; color: #087568; font-size: 12px; font-weight: 750; }
.energy-section-title h3 { margin: 4px 0 0; color: var(--energy-navy); font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: -.25px; }
.energy-section-title p { margin: 6px 0 0; color: var(--energy-muted); font-size: 13px; line-height: 1.65; }
.energy-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: 22px; }
.energy-field { display: flex; flex-direction: column; min-width: 0; gap: 8px; margin: 0; color: #324e62; font-size: 13px; font-weight: 600; }
.energy-field > span:first-child { line-height: 1.5; }
.energy-field input,
.energy-field select { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 11px 13px; border: 1px solid #cddbe5; border-radius: 10px; background: #fbfcfe; color: var(--energy-navy); font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; box-shadow: 0 1px 2px #142f4303; transition: border-color .15s ease, box-shadow .15s ease; }
.energy-field select { padding-right: 30px; }
.energy-field input:hover,
.energy-field select:hover { border-color: #9cb4c5; }
.energy-field input:focus,
.energy-field select:focus { outline: none; border-color: #118f81; background: #fff; box-shadow: 0 0 0 3px #087f751a; }
.energy-field [aria-invalid='true'] { border-color: #c9874c; background: #fffdf9; }
.energy-field input::placeholder { color: #718596; font-size: 13px; font-weight: 400; opacity: 1; }
.energy-field small { min-width: 0; color: var(--energy-muted); font-size: 12px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.energy-input-wrap { position: relative; display: flex; align-items: center; }
.energy-input-wrap input { padding-right: 76px; font-variant-numeric: tabular-nums; }
.energy-unit { position: absolute; right: 13px; color: #536e82; font-size: 12px; font-weight: 500; pointer-events: none; }
.energy-wide { grid-column: 1 / -1; }
.energy-form-note { align-self: start; margin: 0; padding: 14px 16px; border: 1px solid #dde8ef; border-radius: 11px; background: #f4f8fb; color: #506c80; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.energy-standalone-note { padding: 19px 22px; }
.energy-advanced { overflow: hidden; border: 1px solid var(--energy-border); border-radius: 14px; background: #fff; }
.energy-advanced summary { min-height: 52px; padding: 18px 23px; color: #314f65; font-size: 14px; font-weight: 650; line-height: 1.7; cursor: pointer; }
.energy-advanced summary:hover { background: #f7fafc; }
.energy-advanced summary > span { display: block; margin: 3px 0 0 18px; color: var(--energy-muted); font-size: 12px; font-weight: 400; }
.energy-advanced[open] summary { border-bottom: 1px solid #e4ecf2; }
.energy-advanced > .energy-fields { padding: 23px; }
.energy-result-column { position: sticky; top: 98px; min-width: 0; }
.energy-result-card { overflow: hidden; border: 1px solid #cedee4; border-radius: var(--energy-radius); background: #fff; box-shadow: 0 8px 26px #142f4308; }
.energy-result-heading { position: relative; padding: 25px 24px 22px; border-top: 3px solid #087f75; border-bottom: 1px solid #dbe9e7; background: linear-gradient(115deg, #f2f9f6, #f6f8fc); }
.energy-result-heading .energy-eyebrow { padding-right: 102px; color: #287a70; font-size: 11px; letter-spacing: 1.2px; }
.energy-stage { position: absolute; top: 21px; right: 20px; padding: 4px 8px; border: 1px solid #dfd9ec; border-radius: 6px; background: #f0edf7; color: #645087; font-size: 10px; font-weight: 650; line-height: 1.6; }
.energy-result-heading h3 { margin: 14px 0 6px; color: var(--energy-navy); font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.6px; }
.energy-result-heading p { margin: 0; color: var(--energy-muted); font-size: 12px; line-height: 1.7; }
.energy-metrics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 20px; }
.energy-metric { min-width: 0; padding: 14px 13px; border: 1px solid #e6edf2; border-radius: 12px; background: #f8fafc; }
.energy-metric > span { display: block; min-height: 19px; color: #4f6b80; font-size: 12px; font-weight: 500; line-height: 1.6; }
.energy-metric > strong { display: block; margin: 6px 0 3px; color: #193b50; font-size: 31px; font-weight: 720; line-height: 1.3; letter-spacing: -.7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.energy-metric > strong small { margin-left: 5px; color: #526f80; font-size: 13px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.energy-metric p { margin: 5px 0 0; color: #587184; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.energy-errors { padding: 16px 23px; border-top: 1px solid #f0dfbd; border-bottom: 1px solid #f0dfbd; border-left: 3px solid #d39d37; background: #fff9ee; color: #835d22; font-size: 13px; line-height: 1.7; }
.energy-errors strong { font-weight: 700; }
.energy-errors ul { margin: 6px 0 0; padding-left: 18px; }
.energy-checks { padding: 20px 23px 4px; border-top: 1px solid #e5edf2; }
.energy-checks h4,
.energy-warnings h4 { margin: 0 0 12px; color: #304d62; font-size: 14px; font-weight: 700; }
.energy-check { display: flex; gap: 12px; padding: 15px 0; border-top: 1px solid #e7edf2; }
.energy-check-symbol { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; font-size: 16px; font-weight: 650; }
.energy-check > div { flex: 1; min-width: 0; }
.energy-check strong { display: block; color: #2a495e; font-size: 13px; font-weight: 650; line-height: 1.65; }
.energy-check-label { display: inline-block; margin-top: 5px; padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.energy-check p { margin: 7px 0 0; color: var(--energy-muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.energy-check-pass .energy-check-symbol,
.energy-check-pass .energy-check-label { background: #e5f3ec; color: #1c7056; }
.energy-check-fail .energy-check-symbol,
.energy-check-fail .energy-check-label { background: #fcece8; color: #a74530; }
.energy-check-missing .energy-check-symbol,
.energy-check-missing .energy-check-label { background: #fbf1dc; color: #8b641f; }
.energy-warnings { margin: 14px 20px 18px; padding: 16px; border: 1px solid #dfe7ee; border-radius: 12px; background: #f5f8fb; }
.energy-warnings h4 { margin-bottom: 8px; color: #3f5a70; font-size: 13px; }
.energy-warnings ul { margin: 0; padding-left: 17px; color: #536d80; font-size: 12px; line-height: 1.8; }
.energy-warnings li + li { margin-top: 5px; }
.energy-formulae { margin: 12px 23px 19px; color: #43677f; font-size: 13px; }
.energy-formulae summary { min-height: 44px; padding: 10px 0; font-weight: 600; cursor: pointer; }
.energy-formulae p { padding: 11px 12px; border: 1px solid #e3eaf0; border-radius: 8px; background: #f6f8fb; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.energy-result-note { margin: 0; padding: 16px 23px; border-top: 1px solid #e0e9ef; background: #f2f6f9; color: #536c7e; font-size: 12px; line-height: 1.75; }
.energy-result-actions { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 17px; }
.energy-export { display: flex; align-items: center; justify-content: space-between; gap: 13px; width: 100%; min-height: 51px; padding: 13px 20px; border: 1px solid #076b62; border-radius: 12px; background: linear-gradient(110deg, #087f75, #077369); color: #fff; box-shadow: 0 5px 12px #087f7514; font-size: 14px; font-weight: 650; transition: background .15s ease, box-shadow .15s ease; }
.energy-export:hover { background: #06685f; box-shadow: 0 5px 15px #087f7526; }
.energy-export span { font-size: 20px; }
.energy-result-actions .energy-text-button { color: #526d80; font-size: 12px; }
.energy-sources { margin-top: 28px; border: 1px solid var(--energy-border); border-radius: 14px; background: #f8fafc; }
.energy-sources summary { min-height: 52px; padding: 18px 23px; color: #3e5b72; font-size: 13px; font-weight: 650; cursor: pointer; }
.energy-sources > div { max-width: 1080px; padding: 0 23px 23px; color: #536e82; font-size: 13px; line-height: 1.85; }
.energy-sources p { margin: 10px 0; }
.energy-sources strong { color: #324f65; font-weight: 650; }
.energy-sources ul { margin: 12px 0; padding-left: 20px; }
.energy-sources li + li { margin-top: 8px; }
.energy-sources a { color: #086c65; text-underline-offset: 3px; overflow-wrap: anywhere; }
.energy-sources .energy-small { color: #587084; font-size: 12px; }
.calculator-filters #location-filter,
.calculator-filters .search { display: none; }
@media (min-width: 1600px) {
  .energy-layout { grid-template-columns: minmax(0, 1.2fr) minmax(420px, .88fr); gap: 30px; }
  .energy-form-section { padding: 29px; }
  .energy-field { font-size: 14px; }
  .energy-metric > strong { font-size: 36px; }
}
@media (max-width: 1250px) {
  .energy-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr); gap: 18px; }
  .energy-form-section { padding: 21px; }
  .energy-fields { column-gap: 14px; }
  .energy-result-heading { padding: 23px 20px 20px; }
  .energy-result-heading .energy-eyebrow { padding-right: 0; }
  .energy-stage { position: static; display: inline-block; margin-top: 10px; }
  .energy-result-heading h3 { margin-top: 10px; }
  .energy-metrics { padding: 16px; gap: 10px; }
  .energy-metric { padding: 12px 11px; }
  .energy-metric > strong { font-size: 29px; }
  .energy-checks { padding-left: 19px; padding-right: 19px; }
}
@media (max-width: 1100px) {
  .energy-layout { grid-template-columns: 1fr; gap: 22px; }
  .energy-result-column { position: static; }
  .energy-result-heading .energy-eyebrow { padding-right: 108px; }
  .energy-result-heading .energy-stage { position: absolute; margin: 0; }
  .energy-fields { column-gap: 22px; }
  .energy-metric { padding: 17px; }
  .energy-metric > strong { font-size: 34px; }
}
@media (max-width: 680px) {
  .energy-hero { padding: 26px 24px 0; border-radius: 18px; }
  .energy-hero-copy { padding-right: 38px; }
  .energy-hero h2 { font-size: 30px; }
  .energy-hero-icon { top: 24px; right: 22px; width: 42px; height: 42px; border-radius: 13px; }
  .energy-hero-icon svg { width: 23px; height: 23px; }
  .energy-context { align-items: flex-start; flex-direction: column; gap: 5px; margin-top: 23px; }
  .energy-toolbar { flex-wrap: wrap; gap: 7px; margin: 20px 0 16px; }
  .energy-tabs { width: 100%; }
  .energy-tabs button { flex: 1; padding: 10px 11px; font-size: 12px; }
  .energy-toolbar > .energy-text-button { margin-left: auto; }
}
@media (max-width: 560px) {
  .energy-calculator { margin-top: 2px; margin-bottom: 24px; }
  .energy-hero { padding: 23px 20px 0; }
  .energy-hero-copy { padding-right: 0; }
  .energy-hero .energy-eyebrow { padding-right: 36px; font-size: 10px; letter-spacing: 1.3px; }
  .energy-hero h2 { max-width: 275px; margin-top: 14px; font-size: 30px; line-height: 1.22; letter-spacing: -.75px; }
  .energy-hero p { font-size: 13px; line-height: 1.75; }
  .energy-hero-icon { top: 19px; right: 18px; width: 32px; height: 32px; border-radius: 10px; }
  .energy-hero-icon svg { width: 20px; height: 20px; }
  .energy-context { padding: 14px 0; font-size: 11px; }
  .energy-tabs { gap: 2px; padding: 4px; border-radius: 12px; }
  .energy-tabs button { padding: 9px 5px; min-height: 44px; border-radius: 8px; font-size: 12px; }
  .energy-form { gap: 15px; }
  .energy-form-section { padding: 21px 17px; border-radius: 15px; }
  .energy-section-title { margin-bottom: 21px; gap: 11px; }
  .energy-section-title > span { flex-basis: 33px; height: 33px; font-size: 11px; }
  .energy-section-title h3 { margin-top: 3px; font-size: 16px; }
  .energy-section-title p { font-size: 12px; }
  .energy-fields { column-gap: 13px; row-gap: 20px; }
  .energy-field { gap: 7px; font-size: 13px; }
  .energy-field input,
  .energy-field select { min-height: 49px; padding: 11px 10px; font-size: 16px; }
  .energy-field select { padding-right: 24px; }
  .energy-field small { font-size: 12px; }
  .energy-input-wrap input { padding-right: 65px; }
  .energy-unit { right: 10px; font-size: 11px; }
  .energy-field:has(select[name='installation']),
  .energy-field:has(select[name='ampacityMode']),
  .energy-field:has(select[name='resistanceMode']),
  .energy-field:has(select[name='system']),
  .energy-field:has(select[name='loadMode']) { grid-column: 1 / -1; }
  .energy-form-note { padding: 12px 13px; font-size: 12px; }
  .energy-standalone-note { padding: 17px; }
  .energy-advanced summary { padding: 16px 18px; font-size: 14px; }
  .energy-advanced summary > span { font-size: 12px; }
  .energy-advanced > .energy-fields { padding: 19px 17px; }
  .energy-result-card { border-radius: 15px; }
  .energy-result-heading { padding: 22px 18px 19px; }
  .energy-result-heading .energy-eyebrow { padding-right: 0; font-size: 10px; }
  .energy-result-heading .energy-stage { position: static; display: inline-block; margin-top: 10px; }
  .energy-result-heading h3 { margin-top: 10px; font-size: 24px; }
  .energy-metrics { padding: 15px; gap: 10px; }
  .energy-metric { padding: 13px 11px; }
  .energy-metric > span { font-size: 12px; }
  .energy-metric > strong { font-size: 29px; }
  .energy-metric > strong small { font-size: 12px; }
  .energy-metric p { font-size: 11px; }
  .energy-errors { padding: 15px 18px; }
  .energy-checks { padding: 19px 18px 4px; }
  .energy-check { gap: 10px; }
  .energy-check p { font-size: 12px; }
  .energy-warnings { margin: 13px 15px 17px; padding: 14px; }
  .energy-warnings ul { font-size: 12px; }
  .energy-formulae { margin: 12px 18px 17px; }
  .energy-result-note { padding: 15px 18px; font-size: 12px; }
  .energy-export { min-height: 52px; font-size: 14px; }
  .energy-sources { margin-top: 21px; }
  .energy-sources summary { padding: 17px; font-size: 13px; }
  .energy-sources > div { padding: 0 17px 18px; font-size: 12px; }
}
@media (max-width: 370px) {
  .energy-fields { grid-template-columns: 1fr; }
  .energy-tabs { flex-wrap: wrap; }
  .energy-tabs button { flex: 1 1 40%; }
  .energy-tabs button:last-child { flex-basis: 100%; }
  .energy-hero h2 { font-size: 27px; }
  .energy-hero-icon { display: none; }
  .energy-hero .energy-eyebrow { padding-right: 0; }
  .energy-metrics { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .energy-calculator button,
  .energy-field input,
  .energy-field select { transition: none; }
}
