.hub-tep-dashboard{background:#f2f5f2;color:#123529;min-height:100%}.hub-tep-head{background:linear-gradient(120deg,#0b3c2c,#116548);color:#fff}.hub-tep-content{display:grid;gap:24px;padding:28px}.hub-tep-intro,.hub-tep-calculator,.hub-tep-table-section,.hub-tep-source-note{background:#fff;border:1px solid rgba(13,72,51,.14);border-radius:16px;box-shadow:0 10px 30px rgba(9,45,33,.06)}.hub-tep-intro{padding:28px;background:linear-gradient(135deg,#fff,#edf7f1)}.hub-tep-intro>span,.hub-tep-calculator header span,.hub-tep-table-section header span{color:#16885e;font-size:.72rem;font-weight:800;letter-spacing:.12em}.hub-tep-intro h3{font-size:clamp(1.5rem,3vw,2.35rem);margin:.45rem 0}.hub-tep-intro p{max-width:850px;color:#526b62;line-height:1.7}.hub-tep-calculator,.hub-tep-table-section{padding:24px}.hub-tep-calculator>header,.hub-tep-table-section>header{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.hub-tep-calculator h3,.hub-tep-table-section h3{margin:.25rem 0 0}.hub-tep-calculator>header button{border:0;border-radius:10px;background:#0d6a49;color:#fff;padding:11px 15px;font-weight:700;cursor:pointer}.hub-tep-rows{display:grid;gap:12px}.hub-tep-row{display:grid;grid-template-columns:minmax(190px,2fr) minmax(110px,1fr) minmax(100px,.8fr) minmax(190px,1.4fr) 38px;gap:12px;align-items:end;padding:14px;border:1px solid #dce8e2;border-radius:12px;background:#fbfdfc}.hub-tep-row label{display:grid;gap:6px;font-size:.75rem;font-weight:700;color:#526b62}.hub-tep-row input,.hub-tep-row select,.hub-tep-table-section input{width:100%;border:1px solid #c9d9d1;border-radius:9px;background:#fff;padding:11px;color:#15382c}.hub-tep-row-result{display:grid;gap:4px;padding:6px 0}.hub-tep-row-result span{font-size:.72rem;color:#60776e}.hub-tep-row-result strong{font-size:1.15rem;color:#0d6a49}.hub-tep-row-result small{color:#6a7e76;line-height:1.35}.hub-tep-row [data-tep-remove]{height:42px;border:1px solid #d6e2dc;border-radius:9px;background:#fff;color:#8b3d36;font-size:1.35rem;cursor:pointer}.hub-tep-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px;padding:20px;border-radius:12px;background:#0b3c2c;color:#fff}.hub-tep-summary div{display:grid;gap:5px}.hub-tep-summary span{font-size:.75rem;color:#a9d3c2}.hub-tep-summary strong{font-size:1.55rem}.hub-tep-summary p{grid-column:1/-1;margin:0;color:#cce2d9;font-size:.82rem}.hub-tep-table-section input{max-width:260px}.hub-tep-table-wrap{overflow:auto;border:1px solid #dce8e2;border-radius:12px}.hub-tep-table-wrap table{width:100%;border-collapse:collapse;min-width:680px}.hub-tep-table-wrap th,.hub-tep-table-wrap td{padding:12px 14px;text-align:left;border-bottom:1px solid #e4ece8}.hub-tep-table-wrap th{position:sticky;top:0;background:#edf5f1;color:#31584a;font-size:.76rem}.hub-tep-table-wrap td{font-size:.84rem}.hub-tep-table-wrap tr:last-child td{border-bottom:0}.hub-tep-source-note{padding:22px;border-left:5px solid #e0a22d}.hub-tep-source-note p{color:#526b62;line-height:1.65;margin:.55rem 0}.hub-tep-source-note a{color:#0b7550;font-weight:750}.hub-tep-empty{text-align:center!important;color:#6a7e76;padding:26px!important}@media(max-width:900px){.hub-tep-row{grid-template-columns:1fr 1fr}.hub-tep-row-result{grid-column:1/-2}.hub-tep-content{padding:18px}.hub-tep-calculator,.hub-tep-table-section{padding:18px}}@media(max-width:560px){.hub-tep-row{grid-template-columns:1fr}.hub-tep-row-result{grid-column:auto}.hub-tep-summary{grid-template-columns:1fr}.hub-tep-calculator>header,.hub-tep-table-section>header{align-items:stretch;flex-direction:column}.hub-tep-table-section input{max-width:none}}@media print{.hub-sidebar,.hub-detail-actions,#tepAddRow,[data-tep-remove],#siteHeader,#siteFooter,#contact{display:none!important}.hub-tep-dashboard{display:block!important}.hub-tep-content{padding:0}.hub-tep-calculator,.hub-tep-table-section,.hub-tep-source-note{box-shadow:none;break-inside:avoid}}

/* Compact workspace: keep the reference table inside a scrollable viewport. */
.hub-tep-content{gap:14px;padding:18px}
.hub-tep-intro,.hub-tep-calculator,.hub-tep-table-section,.hub-tep-source-note{border-radius:13px;box-shadow:0 6px 18px rgba(9,45,33,.045)}
.hub-tep-intro{padding:16px 19px}
.hub-tep-intro h3{font-size:clamp(1.35rem,2.4vw,1.9rem);margin:.25rem 0}
.hub-tep-intro p{line-height:1.5;margin:.35rem 0 0}
.hub-tep-calculator,.hub-tep-table-section{padding:17px 18px}
.hub-tep-calculator>header,.hub-tep-table-section>header{gap:12px;margin-bottom:11px}
.hub-tep-rows{gap:8px}
.hub-tep-row{gap:9px;padding:10px 11px}
.hub-tep-row input,.hub-tep-row select,.hub-tep-table-section input{padding:8px 10px}
.hub-tep-row [data-tep-remove]{height:36px}
.hub-tep-summary{gap:10px;margin-top:11px;padding:13px 16px}
.hub-tep-summary strong{font-size:1.3rem}
.hub-tep-table-wrap{max-height:min(48vh,440px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.hub-tep-table-wrap th,.hub-tep-table-wrap td{padding:8px 11px}
.hub-tep-table-wrap th{z-index:1;box-shadow:0 1px 0 #d7e4dd}
.hub-tep-table-wrap td{font-size:.8rem}
.hub-tep-source-note{padding:15px 18px}
.hub-tep-source-note p{line-height:1.48;margin:.35rem 0}
@media(max-width:900px){.hub-tep-content{gap:11px;padding:12px}.hub-tep-intro,.hub-tep-calculator,.hub-tep-table-section{padding:14px}.hub-tep-table-wrap{max-height:46vh}.hub-tep-table-wrap table{min-width:600px}}
@media(max-width:560px){.hub-tep-content{padding:9px}.hub-tep-intro{padding:13px 14px}.hub-tep-intro p{font-size:.86rem}.hub-tep-calculator,.hub-tep-table-section{padding:12px}.hub-tep-row{gap:7px;padding:9px}.hub-tep-summary{padding:11px 13px}.hub-tep-table-wrap{max-height:390px}.hub-tep-table-wrap table{min-width:560px}.hub-tep-source-note{padding:13px 14px}}

/* Editorial split layout: reference at left, calculator and chart at right. */
.hub-tep-content{grid-template-columns:minmax(0,1.45fr) minmax(330px,.85fr);grid-template-areas:"intro intro" "table calculator" "table chart" "note note";align-items:start}
.hub-tep-intro{grid-area:intro}
.hub-tep-calculator{grid-area:calculator}
.hub-tep-table-section{grid-area:table;min-width:0}
.hub-tep-chart{grid-area:chart;background:#fff;border:1px solid rgba(13,72,51,.14);border-radius:13px;box-shadow:0 6px 18px rgba(9,45,33,.045);padding:16px 18px}
.hub-tep-chart>header span{color:#16885e;font-size:.72rem;font-weight:800;letter-spacing:.12em}
.hub-tep-chart>header h3{margin:.25rem 0 9px}
.hub-tep-chart-body{height:245px;position:relative;display:grid;place-items:center}
.hub-tep-chart-body canvas{max-width:100%;max-height:245px}
.hub-tep-chart-body p{max-width:230px;margin:0;text-align:center;color:#6a7e76;font-size:.86rem;line-height:1.5}
.hub-tep-source-note{grid-area:note}
.hub-tep-table-wrap{max-height:548px}
.hub-tep-table-wrap table{min-width:540px;table-layout:fixed}
.hub-tep-col-source{width:43%}.hub-tep-col-unit{width:17%}.hub-tep-col-heating{width:25%}.hub-tep-col-factor{width:15%}
.hub-tep-table-wrap th,.hub-tep-table-wrap td{padding:7px 9px;white-space:normal;line-height:1.3}
.hub-tep-table-wrap th:nth-child(n+2),.hub-tep-table-wrap td:nth-child(n+2){text-align:right}
@media(max-width:1100px){.hub-tep-content{grid-template-columns:1fr;grid-template-areas:"intro" "calculator" "chart" "table" "note"}.hub-tep-chart-body{height:230px}.hub-tep-table-wrap{max-height:430px}}
@media(max-width:560px){.hub-tep-chart{padding:13px 14px}.hub-tep-chart-body{height:215px}.hub-tep-table-wrap{max-height:370px}.hub-tep-table-wrap table{min-width:510px}.hub-tep-col-source{width:41%}.hub-tep-col-unit{width:18%}.hub-tep-col-heating{width:26%}.hub-tep-col-factor{width:15%}}

/* Compact tabular calculator and tighter official reference columns. */
.hub-tep-row-head,.hub-tep-row{grid-template-columns:minmax(105px,1.35fr) minmax(65px,.62fr) minmax(68px,.62fr) minmax(110px,1fr) 32px;gap:7px}
.hub-tep-row-head{display:grid;align-items:end;padding:0 9px 6px;color:#526b62;font-size:.68rem;font-weight:800;line-height:1.2;text-transform:uppercase;letter-spacing:.035em;border-bottom:1px solid #dce8e2}
.hub-tep-row{padding:8px 9px;border-radius:8px}
.hub-tep-row label{gap:0}
.hub-tep-row-result{align-self:center;gap:1px;padding:0}
.hub-tep-row-result strong{font-size:1rem}
.hub-tep-row-result small{font-size:.67rem;line-height:1.2}
.hub-tep-row [data-tep-remove]{height:34px;width:32px}
.hub-tep-table-wrap table{min-width:470px}
.hub-tep-col-source{width:34%}.hub-tep-col-unit{width:17%}.hub-tep-col-heating{width:31%}.hub-tep-col-factor{width:18%}
.hub-tep-table-wrap th,.hub-tep-table-wrap td{padding:6px 8px;font-size:.76rem}
@media(max-width:700px){.hub-tep-row-head{display:none}.hub-tep-row{grid-template-columns:1fr 1fr}.hub-tep-row-result{grid-column:1/-2}.hub-tep-row [data-tep-remove]{grid-column:2;grid-row:2;justify-self:end}.hub-tep-row label .visually-hidden{position:static!important;width:auto!important;height:auto!important;padding:0!important;margin:0 0 4px!important;overflow:visible!important;clip:auto!important;white-space:normal!important;border:0!important;display:block;color:#526b62;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}}
@media(max-width:430px){.hub-tep-row{grid-template-columns:1fr}.hub-tep-row-result,.hub-tep-row [data-tep-remove]{grid-column:auto;grid-row:auto}.hub-tep-row [data-tep-remove]{justify-self:end}.hub-tep-table-wrap table{min-width:460px}.hub-tep-col-source{width:32%}.hub-tep-col-unit{width:18%}.hub-tep-col-heating{width:32%}.hub-tep-col-factor{width:18%}}

/* Five-column calculation table; wider workspace on the calculation side. */
.hub-tep-content{grid-template-columns:minmax(350px,.8fr) minmax(540px,1.2fr)}
.hub-tep-row-head,.hub-tep-row{grid-template-columns:minmax(145px,1.55fr) 72px 90px 78px minmax(98px,1fr);gap:7px;padding-left:7px;padding-right:39px}
.hub-tep-rows{gap:0}
.hub-tep-row{position:relative;background:transparent;border:0;border-bottom:1px solid #dce8e2;border-radius:0;padding-top:8px;padding-bottom:8px}
.hub-tep-row:hover{background:#f7fbf9}
.hub-tep-row-factor{align-self:center;text-align:right;color:#31584a;font-size:.8rem;font-variant-numeric:tabular-nums}
.hub-tep-row-result{min-width:0}
.hub-tep-row-result strong{display:block;white-space:nowrap;font-size:.94rem;font-variant-numeric:tabular-nums}
.hub-tep-row-result small{display:none}
.hub-tep-row [data-tep-remove]{position:absolute;right:1px;top:50%;transform:translateY(-50%);height:30px;width:29px;border:0;background:transparent}
.hub-tep-row input,.hub-tep-row select{min-width:0;padding:7px 8px}
.hub-tep-table-wrap table{min-width:410px}
.hub-tep-col-source{width:28%}.hub-tep-col-unit{width:16%}.hub-tep-col-heating{width:35%}.hub-tep-col-factor{width:21%}
.hub-tep-table-wrap th,.hub-tep-table-wrap td{padding:5px 7px;font-size:.73rem}
@media(max-width:1100px){.hub-tep-content{grid-template-columns:1fr}.hub-tep-calculator{overflow-x:auto;overscroll-behavior-x:contain}.hub-tep-row-head,.hub-tep-row{min-width:530px}}
@media(max-width:700px){.hub-tep-row-head{display:grid}.hub-tep-row{grid-template-columns:minmax(145px,1.55fr) 72px 90px 78px minmax(98px,1fr)}.hub-tep-row-result{grid-column:auto}.hub-tep-row [data-tep-remove]{grid-column:auto;grid-row:auto}.hub-tep-row label .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}.hub-tep-summary{min-width:530px}}
@media(max-width:430px){.hub-tep-row{grid-template-columns:minmax(145px,1.55fr) 72px 90px 78px minmax(98px,1fr)}.hub-tep-table-wrap table{min-width:400px}.hub-tep-col-source{width:27%}.hub-tep-col-unit{width:16%}.hub-tep-col-heating{width:36%}.hub-tep-col-factor{width:21%}}

/* Final density pass: borderless inputs, compact reference table and inline chart. */
.hub-tep-content{grid-template-areas:"intro intro" "table calculator" "note note"}
.hub-tep-table-section{align-self:stretch}
.hub-tep-table-wrap table{min-width:420px}
.hub-tep-col-source{width:26%}.hub-tep-col-unit{width:22%}.hub-tep-col-heating{width:34%}.hub-tep-col-factor{width:18%}
.hub-tep-table-wrap th,.hub-tep-table-wrap td{padding:5px 6px;font-size:.68rem;line-height:1.25}
.hub-tep-table-wrap td{white-space:nowrap}
.hub-tep-table-wrap th:first-child,.hub-tep-table-wrap td:first-child{padding-left:8px}
.hub-tep-row input,.hub-tep-row select{border:0;background:transparent;border-radius:0;box-shadow:none;padding:5px 3px;height:32px}
.hub-tep-row input:focus,.hub-tep-row select:focus{outline:2px solid rgba(13,106,73,.22);outline-offset:1px;background:#f4faf7}
.hub-tep-row [data-tep-amount]{text-align:right;font-variant-numeric:tabular-nums}
.hub-tep-row-result{text-align:right}
.hub-tep-row-head span:nth-child(2),.hub-tep-row-head span:nth-child(3),.hub-tep-row-head span:nth-child(5){text-align:right}
.hub-tep-calculator-footer{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(230px,.88fr);gap:12px;align-items:stretch;margin-top:12px}
.hub-tep-calculator-footer .hub-tep-summary{margin:0;padding:13px 15px;align-content:center}
.hub-tep-calculator-footer .hub-tep-summary strong{font-size:1.17rem}
.hub-tep-calculator-footer .hub-tep-summary p{font-size:.72rem;line-height:1.35}
.hub-tep-calculator-footer .hub-tep-chart{grid-area:auto;margin:0;padding:10px 12px;border:0;border-radius:11px;background:#f4f8f6;box-shadow:none}
.hub-tep-calculator-footer .hub-tep-chart>header span{font-size:.62rem}
.hub-tep-calculator-footer .hub-tep-chart>header h3{font-size:.98rem;margin:.15rem 0 3px}
.hub-tep-calculator-footer .hub-tep-chart-body{height:150px}
.hub-tep-calculator-footer .hub-tep-chart-body canvas{max-height:150px}
@media(max-width:1100px){.hub-tep-content{grid-template-areas:"intro" "calculator" "table" "note"}}
@media(max-width:700px){.hub-tep-calculator-footer{grid-template-columns:1fr;min-width:530px}.hub-tep-calculator-footer .hub-tep-chart-body{height:190px}.hub-tep-calculator-footer .hub-tep-chart-body canvas{max-height:190px}}

/* Unified header, headings, total-source panel and embedded SEO guide. */
.hub-tep-head{min-height:62px;padding:8px 10px!important;margin:0 0 20px;background:#fff;color:inherit;border-bottom:1px solid #dce5e1}
.hub-tep-intro h3,.hub-tep-calculator>header h3,.hub-tep-table-section>header h3{letter-spacing:normal!important;font-stretch:normal}
.hub-tep-intro h3{font-size:clamp(1.3rem,2.1vw,1.75rem)}
.hub-tep-calculator>header h3,.hub-tep-table-section>header h3{font-size:clamp(1.2rem,1.8vw,1.6rem)}
.hub-tep-calculator-footer{grid-template-columns:minmax(150px,.58fr) minmax(330px,1.42fr);grid-template-rows:auto 1fr;gap:5px 14px;padding:12px 14px;background:#edf5f1;border-radius:12px}
.hub-tep-total-title{grid-column:1/-1;margin:0;color:#0d6a49;font-size:.72rem;line-height:1.2;letter-spacing:.08em}
.hub-tep-calculator-footer .hub-tep-summary{grid-column:1;display:flex;flex-direction:column;justify-content:center;gap:16px;min-width:0;padding:8px 4px;background:transparent;color:#123529;border-radius:0}
.hub-tep-calculator-footer .hub-tep-summary div{gap:2px}
.hub-tep-calculator-footer .hub-tep-summary span{color:#587267;font-size:.68rem}
.hub-tep-calculator-footer .hub-tep-summary strong{color:#0b5139;font-size:1.24rem;white-space:nowrap}
.hub-tep-calculator-footer .hub-tep-chart{grid-column:2;align-self:stretch;padding:0;background:transparent;border-radius:0}
.hub-tep-calculator-footer .hub-tep-chart-body{height:225px;display:block}
.hub-tep-calculator-footer .hub-tep-chart-body canvas{max-height:225px}
.hub-tep-calculator-footer .hub-tep-chart-body p{display:grid;height:100%;place-items:center}
.hub-tep-guide-mount{grid-area:note;min-width:0}
.hub-tep-guide-mount .hub-seo-guide{width:100%;box-sizing:border-box}
.hub-tep-guide-mount .hub-seo-guide p,.hub-tep-guide-mount .hub-seo-guide summary{font-size:12px!important;font-weight:400!important;line-height:1.6!important;letter-spacing:normal!important}
.hub-tep-guide-mount .hub-seo-guide-intro{max-width:none}
@media(max-width:1100px){.hub-tep-guide-mount{grid-area:note}}
@media(max-width:700px){.hub-tep-calculator-footer{grid-template-columns:1fr;min-width:530px}.hub-tep-total-title,.hub-tep-calculator-footer .hub-tep-summary,.hub-tep-calculator-footer .hub-tep-chart{grid-column:1}.hub-tep-calculator-footer .hub-tep-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hub-tep-calculator-footer .hub-tep-chart-body{height:250px}.hub-tep-calculator-footer .hub-tep-chart-body canvas{max-height:250px}}

/* Remove the intro card and tighten both table headings and calculation rows. */
.hub-tep-content{grid-template-areas:"table calculator" "note note"}
.hub-tep-calculator>header h3,.hub-tep-table-section>header h3{font-size:1.15rem!important;line-height:1.15!important;font-weight:650!important;letter-spacing:normal!important;white-space:nowrap}
.hub-tep-calculator>header,.hub-tep-table-section>header{align-items:center;margin-bottom:9px}
.hub-tep-row{padding-top:6px;padding-bottom:6px}
.hub-tep-row input,.hub-tep-row select{height:30px;padding-top:3px;padding-bottom:3px}
.hub-tep-row-result strong{font-size:.94rem;white-space:nowrap}
.hub-tep-result-unit{display:inline!important;margin-left:3px;color:#557066!important;font-size:.58em!important;font-weight:600!important;line-height:1!important;vertical-align:baseline}
@media(max-width:1100px){.hub-tep-content{grid-template-areas:"calculator" "table" "note"}}
@media(max-width:560px){.hub-tep-calculator>header h3,.hub-tep-table-section>header h3{font-size:1rem!important}}

/* Search discovery: visible breadcrumb and indexable worked examples. */
.hub-tep-content{grid-template-areas:"crumb crumb" "table calculator" "note note"}
.hub-tep-breadcrumb{grid-area:crumb;display:flex;align-items:center;gap:7px;min-width:0;color:#6a7e76;font-size:11px;line-height:1.2}
.hub-tep-breadcrumb a{color:#287258;text-decoration:none}.hub-tep-breadcrumb a:hover,.hub-tep-breadcrumb a:focus-visible{text-decoration:underline}.hub-tep-breadcrumb strong{color:#31584a;font-weight:650}
.hub-tep-guide-mount{display:grid;gap:14px}
.hub-tep-examples{padding:16px 18px;background:#fff;border:1px solid #d6e4dd;border-radius:14px;color:#173c2d}
.hub-tep-examples h2{margin:0 0 9px;color:#073b62;font-size:18px;font-weight:650;line-height:1.2}
.hub-tep-examples>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hub-tep-examples article{display:grid;gap:3px;padding:9px 10px;background:#f4f8f6;border-radius:8px}
.hub-tep-examples article span{color:#60776e;font-size:10px}.hub-tep-examples article strong{color:#0b5139;font-size:12px;white-space:nowrap}
.hub-tep-examples>p{margin:9px 0 0;color:#496459;font-size:11px;line-height:1.5}
@media(max-width:1100px){.hub-tep-content{grid-template-areas:"crumb" "calculator" "table" "note"}}
@media(max-width:700px){.hub-tep-examples>div{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.hub-tep-examples>div{grid-template-columns:1fr}}

/* Keep the fourth reference column clear of the vertical scrollbar. */
.hub-tep-col-source{width:27%}.hub-tep-col-unit{width:21%}.hub-tep-col-heating{width:29%}.hub-tep-col-factor{width:23%}
.hub-tep-table-wrap th:nth-child(3),.hub-tep-table-wrap td:nth-child(3){padding-left:3px;padding-right:4px}
.hub-tep-table-wrap th:last-child,.hub-tep-table-wrap td:last-child{padding-left:4px;padding-right:14px;white-space:nowrap}
.hub-tep-table-wrap th:last-child{font-size:.65rem}
@media(max-width:430px){.hub-tep-col-source{width:27%}.hub-tep-col-unit{width:21%}.hub-tep-col-heating{width:28%}.hub-tep-col-factor{width:24%}}

.hub-tep-table-wrap caption{caption-side:bottom;padding:8px 10px;background:#f4f8f6;border-top:1px solid #dce8e2;color:#526b62;font-size:.66rem;font-weight:400;line-height:1.4;text-align:left}

/* Simplified unit presentation: source, factor, unit, quantity, result. */
.hub-tep-row-head,.hub-tep-row{grid-template-columns:minmax(145px,1.55fr) 72px 70px 96px minmax(98px,1fr)}
.hub-tep-row-unit{align-self:center;text-align:center;color:#31584a;font-size:.78rem;font-weight:650;white-space:nowrap}
.hub-tep-row-head span:nth-child(3){text-align:center}.hub-tep-row-head span:nth-child(4){text-align:right}
.hub-tep-table-wrap th:nth-child(2),.hub-tep-table-wrap td:nth-child(2){padding-left:3px;padding-right:4px;text-align:right}
.hub-tep-table-wrap th:nth-child(3),.hub-tep-table-wrap td:nth-child(3){padding-left:4px;padding-right:5px;text-align:center}
@media(max-width:700px){.hub-tep-row{grid-template-columns:minmax(145px,1.55fr) 72px 70px 96px minmax(98px,1fr)}}
@media(max-width:430px){.hub-tep-row{grid-template-columns:minmax(145px,1.55fr) 72px 70px 96px minmax(98px,1fr)}}

.hub-tep-table-wrap th:nth-child(3),.hub-tep-table-wrap td:nth-child(3){text-align:right}.hub-tep-table-wrap th:last-child,.hub-tep-table-wrap td:last-child{text-align:left}

/* Mobile usability: keep data rows scrollable, but fit totals and chart to the phone. */
@media(max-width:700px){
  .hub-tep-content{padding:8px;gap:10px}
  .hub-tep-calculator,.hub-tep-table-section{padding:11px}
  .hub-tep-calculator{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
  .hub-tep-calculator>header{flex-direction:row;align-items:center}
  .hub-tep-row-head,.hub-tep-row{min-width:500px}
  .hub-tep-row input,.hub-tep-row select{height:36px}
  .hub-tep-row [data-tep-remove]{width:36px;height:36px;right:0}
  .hub-tep-calculator-footer{min-width:0;width:100%;box-sizing:border-box;grid-template-columns:1fr;gap:8px;padding:11px}
  .hub-tep-total-title,.hub-tep-calculator-footer .hub-tep-summary,.hub-tep-calculator-footer .hub-tep-chart{grid-column:1;min-width:0;width:100%;box-sizing:border-box}
  .hub-tep-calculator-footer .hub-tep-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:4px 0}
  .hub-tep-calculator-footer .hub-tep-summary strong{font-size:1.05rem;white-space:normal}
  .hub-tep-calculator-footer .hub-tep-chart-body{height:210px}
  .hub-tep-calculator-footer .hub-tep-chart-body canvas{max-height:210px}
  .hub-tep-table-wrap{-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
}
@media(max-width:390px){
  .hub-tep-head{min-height:54px;margin-bottom:10px}
  .hub-tep-calculator>header,.hub-tep-table-section>header{gap:7px}
  .hub-tep-calculator>header h3,.hub-tep-table-section>header h3{font-size:.94rem!important}
  .hub-tep-calculator>header button{padding:8px 10px;font-size:.78rem;white-space:nowrap}
  .hub-tep-calculator-footer .hub-tep-summary{grid-template-columns:1fr}
  .hub-tep-calculator-footer .hub-tep-chart-body{height:195px}
  .hub-tep-calculator-footer .hub-tep-chart-body canvas{max-height:195px}
}
