.tep-widget{padding:24px;border:1px solid #dbe3e8;border-radius:12px;background:#fff;color:#172b38;font-family:inherit}.tep-widget *{box-sizing:border-box}.tep-row{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr auto;gap:12px;align-items:end;padding:14px 0;border-bottom:1px solid #e0e6e9}.tep-widget label{display:flex;flex-direction:column;gap:6px;font-size:13px}.tep-widget input,.tep-widget select{width:100%;min-width:0;padding:9px;border:1px solid #bac8cf;border-radius:5px;background:#fff;color:#172b38}.tep-widget output{padding:9px 0;font-weight:bold}.tep-widget button{background:#17665b;color:#fff;border:0;border-radius:6px;padding:10px 15px;cursor:pointer;margin:8px 0}.tep-widget .tep-remove{background:#a43b35;margin:0}.tep-total{background:#edf5f3;padding:18px;margin:16px 0;font-size:22px}.tep-chart progress{display:block;width:100%;accent-color:#17665b}.tep-actions{display:flex;gap:10px;flex-wrap:wrap}.tep-widget small{display:block;font-size:12px}@media(max-width:700px){.tep-row{grid-template-columns:1fr 1fr}.tep-row label:first-child{grid-column:1/-1}.tep-widget{padding:14px}}
.tep-settings,.tep-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0}.tep-widget [hidden]{display:none!important}.tep-limit{font-weight:600}.tep-assessment{white-space:pre-line;padding:16px;background:#f3f5f7;border-left:4px solid #64748b;margin:12px 0;line-height:1.65}.tep-assessment[data-status=over]{background:#fff1ef;border-color:#b64136}.tep-assessment[data-status=under]{background:#edf7ef;border-color:#26834b}

.tep-widget .tep-row{grid-template-columns:1.3fr .7fr 1fr repeat(3,minmax(80px,1fr));align-items:start}.tep-confirm{display:flex;flex-wrap:wrap;gap:16px}.tep-confirm label{flex-direction:row;align-items:center}.tep-confirm input{width:auto}.tep-total strong{font-size:18px}@media(max-width:800px){.tep-widget .tep-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v1.5 interface */
.tep-widget{--ink:#142b40;--muted:#526779;--accent:#087c68;--line:#dce5eb;max-width:1200px;margin:24px auto;padding:clamp(16px,3vw,32px);border-radius:18px;box-shadow:0 8px 32px #142b400d;background:#f8fafc;color:var(--ink);line-height:1.5;container-type:inline-size}.tep-widget .tep-hero{background:#142b40;color:white;padding:clamp(20px,4vw,36px);border-radius:12px;margin-bottom:28px}.tep-hero span{font-size:11px;letter-spacing:1.6px;color:#9ce1cb;font-weight:700}.tep-widget .tep-hero h2{color:white;font-size:clamp(22px,3vw,32px);line-height:1.2;margin:10px 0}.tep-hero p{color:#d5e2eb;font-size:13px;margin:0}.tep-widget .tep-heading{display:flex;align-items:center;gap:12px;font-size:19px;color:var(--ink);margin:28px 0 14px;line-height:1.4}.tep-heading b{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;color:var(--accent);background:#e0f2ed;font-size:13px}.tep-widget .tep-settings{background:white;padding:18px;border:1px solid var(--line);border-radius:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:18px}.tep-widget label{font-weight:600;color:var(--muted);font-size:12px;gap:7px}.tep-widget input:not([type=checkbox]),.tep-widget select{height:46px;border:1px solid #cbd8e2;border-radius:8px;padding:10px 12px;font-size:15px;box-shadow:none;margin:0;line-height:1.3}.tep-widget input:focus,.tep-widget select:focus,.tep-widget button:focus-visible{outline:3px solid #87cfbf;outline-offset:2px}.tep-widget .tep-row{background:white;border:1px solid var(--line);border-radius:10px;padding:14px;gap:12px;margin:8px 0;grid-template-columns:minmax(125px,1.25fr) minmax(75px,.7fr) minmax(115px,1fr) repeat(3,minmax(90px,1fr));align-items:start}.tep-widget .tep-row:has(.tep-year[data-i="1"][hidden]){grid-template-columns:1.4fr .7fr 1fr 1.5fr}.tep-fuel-title{font-size:15px;color:var(--ink);font-weight:700;padding:11px 0}.tep-widget output{font-size:12px;color:var(--accent);padding:3px 0;text-align:right;font-variant-numeric:tabular-nums}.tep-widget button{min-height:42px;border-radius:8px;background:var(--accent);font-weight:600;font-size:13px;text-transform:none;letter-spacing:0}.tep-widget button:hover{filter:brightness(.94)}.tep-widget .tep-more,.tep-widget [data-action="add"],.tep-widget [data-action="print"],.tep-widget [data-action="reset"]{background:white;color:var(--accent);border:1px solid #b9d6cf}.tep-widget .tep-confirm{padding:12px 14px;background:#eef3f7;border-radius:8px;margin:12px 0}.tep-widget .tep-confirm input{height:18px;width:18px;accent-color:var(--accent)}.tep-widget .tep-total{background:#142b40;color:#fff;border-radius:12px;padding:24px}.tep-widget .tep-total strong{font-size:clamp(18px,2.5vw,26px);color:white;line-height:1.7}.tep-widget .tep-assessment{border-radius:8px;font-size:14px}.tep-widget .tep-chart:not(:empty){background:white;border:1px solid var(--line);border-radius:12px;padding:18px;margin:16px 0}.tep-chart h4{font-size:15px;margin:0 0 12px}.tep-chart div{font-size:13px;margin:10px 0}.tep-chart progress{height:9px;margin:5px 0}.tep-widget .tep-climate{border:1px solid var(--line);border-radius:12px;padding:18px;margin:28px 0 12px;min-width:0;background:white}.tep-widget .tep-climate legend{font-size:19px;font-weight:700;padding:0 10px;color:var(--ink)}.tep-widget .cl-result,.tep-widget .cl-source{padding:12px;background:#eef3f7;border-radius:8px;font-size:13px;margin:10px 0;overflow-wrap:anywhere}.tep-widget .tep-climate .tep-settings{border:0;padding:0}.tep-widget small{color:var(--muted);margin:8px 0}.tep-widget .tep-actions{padding:10px 0 16px}.tep-widget .tep-limit{font-size:14px;color:var(--accent)}@container (max-width:760px){.tep-widget .tep-row,.tep-widget .tep-row:has(.tep-year[data-i="1"][hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}.tep-widget .tep-row label:first-child{grid-column:1/-1}.tep-widget .tep-row .tep-year{grid-column:auto}.tep-widget .tep-row .tep-year:last-of-type:nth-child(4){grid-column:1/-1}}@container (max-width:400px){.tep-widget .tep-settings{padding:12px}.tep-widget .tep-actions button{flex:1 1 100%}.tep-widget .tep-climate{padding:12px}} 
/* v1.6 compact layout */
.tep-widget{padding:12px;margin:8px auto;border-radius:8px;font-size:13px;line-height:1.35;box-shadow:none}.tep-widget .tep-hero{padding:12px 16px;margin:0 0 10px;border-radius:6px}.tep-widget .tep-hero h2{font-size:21px;margin:3px 0}.tep-widget .tep-hero p{font-size:11px}.tep-widget .tep-heading{font-size:15px;margin:12px 0 6px;gap:6px}.tep-heading b{width:23px;height:23px;font-size:11px;border-radius:4px}.tep-widget p{margin:5px 0;font-size:12px}.tep-widget .tep-settings{padding:8px;gap:7px;margin:5px 0;border-radius:5px;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}.tep-widget label{font-size:11px;gap:3px;min-width:0}.tep-widget input:not([type=checkbox]),.tep-widget select{height:30px;min-height:30px;padding:3px 6px;font-size:12px;border-radius:4px}.tep-widget input[type=number]{text-align:right;font-variant-numeric:tabular-nums}.tep-widget button{min-height:30px;padding:5px 10px;margin:4px 0;border-radius:4px;font-size:12px}.tep-widget .tep-confirm{padding:4px 8px;margin:5px 0;gap:10px}.tep-widget .tep-confirm input{width:14px;height:14px}.tep-table{overflow-x:auto;border:1px solid var(--line);border-radius:5px;background:white}.tep-table-head,.tep-widget .tep-row,.tep-widget .tep-row:has(.tep-year[data-i="1"][hidden]){display:grid;grid-template-columns:minmax(105px,1.25fr) minmax(65px,.65fr) minmax(100px,1fr) minmax(145px,1.5fr);gap:6px;align-items:center;padding:4px 7px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;min-width:470px}.tep-table-head{font-size:11px;font-weight:700;background:#e8eff3}.tep-widget.tep-three .tep-row{grid-template-columns:minmax(105px,1.25fr) minmax(65px,.65fr) minmax(100px,1fr) repeat(3,minmax(120px,1fr));min-width:660px}.tep-three .tep-table-head{display:none}.tep-widget .tep-row label{font-size:0;gap:0;grid-column:auto!important}.tep-widget .tep-row .tep-year{font-size:10px;display:grid;grid-template-columns:minmax(65px,1fr) auto;gap:4px;align-items:center}.tep-widget:not(.tep-three) .tep-year{font-size:0}.tep-fuel-title{font-size:12px;padding:0}.tep-widget output{font-size:10px;padding:0;white-space:nowrap}.tep-widget .tep-row[data-custom=true] .tep-remove{grid-column:1/-1;justify-self:end;min-height:23px;padding:2px 9px}.tep-widget .tep-row:nth-child(even){background:#f8fafc}.tep-widget .tep-row:last-child{border-bottom:0}.tep-results{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:8px}.tep-results>div{min-width:0}.tep-widget .tep-total{padding:8px 10px;margin:0 0 5px;border-radius:5px}.tep-widget .tep-total strong{font-size:15px;line-height:1.4}.tep-widget .tep-assessment{padding:7px 9px;margin:0;font-size:12px;line-height:1.4;border-radius:4px;overflow-wrap:anywhere}.tep-widget .tep-chart:not(:empty){padding:8px;margin:0;border-radius:5px}.tep-chart h4{font-size:12px;margin:0 0 4px}.tep-chart div{font-size:11px;margin:3px 0}.tep-chart progress{height:5px;margin:2px 0}.tep-widget .tep-climate{padding:8px;margin:12px 0 5px;border-radius:5px}.tep-widget .tep-climate legend{font-size:15px;padding:0 5px}.tep-widget .cl-result,.tep-widget .cl-source{padding:6px;margin:4px 0;font-size:11px;border-radius:4px}.tep-widget .cl-source:empty{display:none}.tep-widget small{font-size:10px;margin:4px 0}.tep-widget .tep-actions{padding:0;gap:6px}.tep-widget .tep-limit{font-size:12px}.tep-widget .tep-climate .tep-settings{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr))}@container(max-width:520px){.tep-results{grid-template-columns:1fr}.tep-widget .tep-actions button{flex:0 1 auto}.tep-widget .tep-row label:first-child{grid-column:auto!important}}

/* v1.7: fixed compact energy columns, independent of theme width */
.tep-widget .tep-table{width:max-content;max-width:100%;margin:0;overflow-x:auto}
.tep-widget .tep-table-head,.tep-widget .tep-row,.tep-widget .tep-row:has(.tep-year[data-i="1"][hidden]){grid-template-columns:120px 65px 90px 201px;gap:6px;padding:3px 6px;min-width:0;width:506px;max-width:none;align-items:center}
.tep-widget.tep-three .tep-row{grid-template-columns:120px 65px 90px repeat(3,201px);width:920px;min-width:920px}
.tep-widget .tep-row .tep-year{grid-template-columns:110px 85px;gap:6px}
.tep-widget .tep-row input:not([type=checkbox]),.tep-widget .tep-row select{height:26px!important;min-height:26px!important;max-height:26px;padding:2px 4px!important;font-size:11px;line-height:20px;border-radius:3px;margin:0!important;width:100%;min-width:0;box-sizing:border-box}
.tep-widget .tep-row select{text-align:center;padding-right:14px!important}
.tep-widget .tep-row output{text-align:right;white-space:nowrap;font-size:11px}
.tep-widget .tep-row label{min-width:0;margin:0!important}
/* v1.8: horizontal compactness, comfortable input height, parallel analysis */
.tep-widget .tep-analysis-layout{display:grid;grid-template-columns:minmax(0,426px) minmax(0,1fr);gap:16px;align-items:start}
.tep-widget .tep-energy-panel,.tep-widget .tep-result-panel{min-width:0}
.tep-widget .tep-result-panel .tep-results{grid-template-columns:1fr}
.tep-widget .tep-table-head,.tep-widget .tep-row,.tep-widget .tep-row:has(.tep-year[data-i="1"][hidden]){grid-template-columns:100px 56px 76px 154px;width:418px;gap:6px;padding:5px 6px}
.tep-widget .tep-row .tep-year{grid-template-columns:82px 66px;gap:6px}
.tep-widget .tep-row input:not([type=checkbox]),.tep-widget .tep-row select{height:34px!important;min-height:34px!important;max-height:none; font-size:12px;width:100%;max-width:100%}
.tep-widget .tep-row select{padding-right:10px!important}
.tep-widget.tep-three .tep-analysis-layout{grid-template-columns:minmax(0,1fr)}
.tep-widget.tep-three .tep-row{grid-template-columns:100px 56px 76px repeat(3,154px);width:736px;min-width:736px}
.tep-widget.tep-three .tep-year{grid-template-rows:auto auto;grid-template-columns:82px 66px}
.tep-widget.tep-three .tep-result-panel .tep-results{grid-template-columns:repeat(2,minmax(0,1fr))}
@container (max-width:680px){.tep-widget .tep-analysis-layout,.tep-widget.tep-three .tep-result-panel .tep-results{grid-template-columns:minmax(0,1fr)}}
@media print{.tep-widget .tep-analysis-layout{display:block}}
/* v1.9: theme-resistant, non-scrolling desktop layout */
.tep-widget .tep-analysis-layout{grid-template-columns:minmax(0,65fr) minmax(0,35fr);gap:20px}
.tep-widget .tep-table,.tep-widget .tep-rows{width:100%;max-width:100%;height:auto!important;max-height:none!important;overflow:visible!important}
.tep-widget .tep-table-head,.tep-widget .tep-row,.tep-widget .tep-row:has(.tep-year[data-i="1"][hidden]){width:100%;min-width:0;grid-template-columns:minmax(100px,1fr) 76px 106px minmax(190px,1.4fr);gap:8px;padding:6px 8px;align-items:center}
.tep-widget .tep-row .tep-year{display:grid;grid-template-columns:minmax(0,110px) minmax(0,1fr);gap:5px;align-items:center;grid-column:auto!important}
.tep-widget .tep-row label{display:flex;min-width:0;max-width:100%;padding:0!important;align-items:stretch}
.tep-widget .tep-row .tep-year{display:grid}
.tep-widget .tep-row input:not([type=checkbox]),.tep-widget .tep-row select{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:4px 6px!important;font-size:13px!important;line-height:normal!important;box-shadow:none!important;box-sizing:border-box!important}
.tep-widget .tep-row input[hidden]{display:none!important}
.tep-widget .tep-row select{appearance:auto!important;-webkit-appearance:menulist!important;background:#fff!important;color:#142b40!important;opacity:1!important;text-indent:0!important;text-align:left!important;padding:4px!important}
.tep-widget .tep-row output{font-size:11px;white-space:normal;overflow-wrap:anywhere;text-align:right}
.tep-widget .tep-more,.tep-widget [data-action="add"]{height:auto!important;min-height:30px!important;padding:5px 10px!important;line-height:1.3!important;box-shadow:none!important;margin:5px 0!important}
.tep-widget.tep-three .tep-analysis-layout{grid-template-columns:1fr}
.tep-widget.tep-three .tep-row{width:100%;min-width:0;grid-template-columns:minmax(100px,1fr) 76px 106px repeat(3,minmax(0,1fr))}
.tep-widget.tep-three .tep-year{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}
@container(max-width:900px){.tep-widget .tep-analysis-layout{grid-template-columns:1fr}.tep-widget.tep-three .tep-row{grid-template-columns:minmax(90px,1fr) 76px 106px repeat(3,minmax(0,1fr))}}
@container(max-width:550px){.tep-widget .tep-table-head{display:none}.tep-widget .tep-row,.tep-widget .tep-row:has(.tep-year[data-i="1"][hidden]),.tep-widget.tep-three .tep-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.tep-widget .tep-row label:first-child{grid-column:1/-1!important}.tep-widget .tep-row label{font-size:11px;gap:3px}.tep-widget .tep-row .tep-year{grid-column:1/-1!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:11px}.tep-widget .tep-row .tep-year input{grid-column:1}.tep-widget .tep-row .tep-year output{grid-column:2}.tep-widget:not(.tep-three) .tep-year{font-size:11px}}
/* v1.10: native controls only, scoped to calculator. */
.tep-widget label:has(>select) > :not(select):not(input):not(.tep-fuel-title){display:none!important}
.tep-widget .nice-select,.tep-widget .select2-container,.tep-widget .chosen-container,.tep-widget .bootstrap-select > button,.tep-widget .selectric,.tep-widget .selectric-items,.tep-widget .selectric-wrapper > :not(.selectric-hide-select){display:none!important}
.tep-widget select{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;clip:auto!important;clip-path:none!important;appearance:auto!important;transform:none!important;float:none!important}
.tep-widget:not(.tep-three) .tep-table-head,.tep-widget:not(.tep-three) .tep-row,.tep-widget:not(.tep-three) .tep-row:has(.tep-year[data-i="1"][hidden]){grid-template-columns:minmax(120px,1fr) 85px 118px minmax(190px,1.2fr);gap:9px}
.tep-widget .tep-row .tep-year{grid-template-columns:minmax(0,120px) minmax(65px,1fr);align-items:center;justify-content:start}
.tep-widget .tep-row .tep-year .tep-q{grid-column:1;grid-row:1;width:100%!important;max-width:120px!important;justify-self:start}
.tep-widget .tep-row .tep-year output{grid-column:2;grid-row:1;text-align:left;white-space:nowrap;justify-self:start}
.tep-widget .tep-row .tep-k{font-variant-numeric:tabular-nums;font-size:12px!important}
.tep-widget .tep-row label[hidden]{display:none!important}
.tep-widget.tep-three .tep-year{grid-template-columns:1fr;grid-template-rows:auto auto auto}
.tep-widget.tep-three .tep-year .tep-q{grid-column:1;grid-row:2}
.tep-widget.tep-three .tep-year output{grid-column:1;grid-row:3}
@container(max-width:950px){.tep-widget .tep-analysis-layout{grid-template-columns:1fr}}
@container(max-width:550px){.tep-widget:not(.tep-three) .tep-row,.tep-widget:not(.tep-three) .tep-row:has(.tep-year[data-i="1"][hidden]){grid-template-columns:1fr 1fr}.tep-widget .tep-year{grid-column:1/-1!important}}
.tep-widget .cl-map-panel[hidden]{display:none!important}.tep-widget .cl-map{height:340px;width:100%;min-height:250px;z-index:0;border:1px solid #cbd5e1;border-radius:6px}.tep-widget .cl-map img{max-width:none!important;max-height:none!important;padding:0!important;box-shadow:none!important}.tep-widget .cl-map-panel{margin:8px 0}.tep-widget .cl-coords{font-size:13px}.tep-widget .cl-map-panel small{display:block;margin:5px 0}
.tep-advanced details{margin:12px 0;padding:12px;border:1px solid #d6dce0;border-radius:6px}.tep-advanced summary{cursor:pointer;font-weight:700}.tep-advanced fieldset{margin:12px 0;padding:12px;min-width:0}.tep-advanced .adv-result,.tep-advanced .adv-carbon,.tep-advanced .adv-performance{white-space:pre-line;margin:12px 0;padding:12px;background:#f3f5f7;color:#18232c}.tep-advanced .adv-seasons{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.tep-advanced .adv-seasons .tep-settings{display:flex;flex-wrap:wrap}.tep-advanced label{display:block}.tep-advanced input,.tep-advanced select{max-width:100%}
