.tb-hb-page {
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 40px));
  max-width: none !important;
  margin-left: calc(50% - min(560px, calc(50vw - 20px))) !important;
  margin-right: 0 !important;
  line-height: 1.65;
}

.tb-hb-page *,
.tb-hb-page *::before,
.tb-hb-page *::after {
  box-sizing: border-box;
}

.tb-hb-page > p,
.tb-hb-page > h2,
.tb-hb-page > .tb-hb-formula,
.tb-hb-page > .tb-hb-callout {
  width: min(900px, 100%);
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
}

.tb-hb-page > .tb-hb-table-wrap,
.tb-hb-page > .tb-hb-calc {
  width: min(1040px, 100%);
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
}

.tb-hb-lede {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}

.tb-hb-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.68;
}

.tb-hb-callout,
.tb-hb-calc {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #dfe5e8;
  border-radius: 16px;
  background: #f7f9fa;
}

.tb-hb-callout {
  margin-top: 32px;
  margin-bottom: 42px;
}

.tb-hb-page h2 {
  margin-top: 44px;
  margin-bottom: 14px;
}

.tb-hb-callout h2,
.tb-hb-calc h2 {
  margin-top: 0;
}

.tb-hb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
  margin-bottom: 40px;
  border: 1px solid #e3e7ea;
  border-radius: 12px;
  background: #fff;
}

.tb-hb-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: auto;
  margin: 0;
}

.tb-hb-table th,
.tb-hb-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eceff1;
}

.tb-hb-table thead th {
  background: #f5f7f8;
  font-weight: 700;
}

.tb-hb-table tbody tr:last-child td {
  border-bottom: 0;
}

.tb-hb-formula {
  padding: 18px 20px;
  border-left: 4px solid currentColor;
  background: rgba(0,0,0,.025);
}

.tb-hb-calc {
  margin-top: 48px;
  margin-bottom: 36px;
}

.tb-hb-form {
  margin-top: 26px;
}

.tb-hb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.tb-hb-field {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e4e8ea;
  border-radius: 12px;
  background: #fff;
}

.tb-hb-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.tb-hb-field label {
  display: block;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.tb-hb-label-row output {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f2;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.tb-hb-number {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #ccd3d7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.tb-hb-range {
  width: 100%;
  height: 30px;
  margin: 14px 0 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  accent-color: #0d3329;
}

.tb-hb-range::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: #d9e2df;
}

.tb-hb-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7.5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0d3329;
  box-shadow: 0 0 0 1px #0d3329;
  -webkit-appearance: none;
  appearance: none;
}

.tb-hb-range::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: #d9e2df;
}

.tb-hb-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0d3329;
  box-shadow: 0 0 0 1px #0d3329;
}

.tb-hb-range-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  font-size: 0.78rem;
  opacity: 0.62;
}

.tb-hb-field > span {
  display: block;
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.72;
}

.tb-hb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.tb-hb-button,
.tb-hb-reset {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tb-hb-button {
  border: 0;
  background: #0d3329;
  color: #fff;
}

.tb-hb-reset {
  border: 1px solid #cbd4d1;
  background: #fff;
  color: inherit;
}

.tb-hb-result {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid #dfe5e8;
  border-radius: 12px;
  background: #fff;
}

.tb-hb-result-label {
  margin: 0 0 5px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.65;
}

.tb-hb-result-value {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
}

.tb-hb-result-class {
  margin: 12px 0 0;
}

.tb-hb-result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.tb-hb-result-metrics > div {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f5f7f8;
}

.tb-hb-result-metrics span,
.tb-hb-result-metrics strong {
  display: block;
}

.tb-hb-result-metrics span {
  margin-bottom: 3px;
  font-size: 0.78rem;
  opacity: 0.68;
}

.tb-hb-error {
  margin: 14px 0 0;
  font-weight: 700;
}

.tb-hb-note {
  margin: 20px 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.tb-hb-page input:focus-visible,
.tb-hb-page button:focus-visible {
  outline: 3px solid rgba(13,51,41,.22);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .tb-hb-page {
    width: calc(100vw - 24px);
    margin-left: calc(50% - 50vw + 12px) !important;
  }

  .tb-hb-callout,
  .tb-hb-calc {
    padding: 20px;
  }

  .tb-hb-grid,
  .tb-hb-result-metrics {
    grid-template-columns: 1fr;
  }

  .tb-hb-field {
    padding: 15px;
  }
}


/* Affiliate system match -------------------------------------------------- */
.tb-hb-product-match {
  margin: 28px 0 0;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid #d9e2df;
  border-radius: 14px;
  background: #fff;
}

.tb-hb-product-match[hidden] {
  display: none !important;
}

.tb-hb-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.tb-hb-product-head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.tb-hb-product-fit {
  margin: 0;
  line-height: 1.55;
}

.tb-hb-product-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f2;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.tb-hb-product-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.tb-hb-product-specs > div {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f5f7f8;
}

.tb-hb-product-specs span,
.tb-hb-product-specs strong {
  display: block;
}

.tb-hb-product-specs span {
  margin-bottom: 3px;
  font-size: 0.78rem;
  opacity: 0.68;
}

.tb-hb-product-copy {
  margin: 20px 0 0;
}

.tb-hb-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.tb-hb-tech-link,
.tb-hb-affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.tb-hb-tech-link {
  border: 1px solid #cbd4d1;
  background: #fff;
  color: inherit;
}

.tb-hb-affiliate-button {
  border: 1px solid #0d3329;
  background: #0d3329;
  color: #fff !important;
}

.tb-hb-affiliate-note {
  margin: 16px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.72;
}

.tb-hb-product-match.is-close {
  border-color: #9eb9b0;
}

.tb-hb-product-match.is-below-target {
  border-style: dashed;
}

@media (max-width: 700px) {
  .tb-hb-product-head {
    display: block;
  }

  .tb-hb-product-badge {
    display: inline-block;
    margin-top: 10px;
  }

  .tb-hb-product-specs {
    grid-template-columns: 1fr;
  }

  .tb-hb-product-actions {
    align-items: stretch;
  }

  .tb-hb-tech-link,
  .tb-hb-affiliate-button {
    width: 100%;
  }
}

/* Always-visible comparison catalog -------------------------------------- */
.tb-hb-catalog {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #dfe5e8;
}

.tb-hb-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.tb-hb-catalog-head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.25;
}

.tb-hb-catalog-head p:not(.tb-hb-eyebrow) {
  margin: 0;
}

.tb-hb-match-summary {
  padding: 12px 14px;
  border: 1px solid #d8e1de;
  border-radius: 10px;
  background: #fff;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.45;
}

.tb-hb-system-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tb-hb-system-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid #dfe5e8;
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.tb-hb-system-card.is-match {
  border: 2px solid #0d3329;
  background: #f4f8f6;
  box-shadow: 0 0 0 4px rgba(13,51,41,.08);
}

.tb-hb-system-card.is-under {
  opacity: .74;
  border-style: dashed;
}

.tb-hb-system-card.is-oversize {
  background: #fbfcfc;
}

.tb-hb-system-status {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f1;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tb-hb-system-card.is-match .tb-hb-system-status {
  background: #0d3329;
  color: #fff;
}

.tb-hb-system-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tb-hb-system-brand {
  margin: 0 0 3px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .62;
}

.tb-hb-system-card h4 {
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.3;
}

.tb-hb-system-capacity {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef3f2;
  font-weight: 800;
  white-space: nowrap;
}

.tb-hb-system-fit {
  margin: 14px 0 0;
  font-size: .9rem;
  line-height: 1.5;
}

.tb-hb-system-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tb-hb-system-specs span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f3f5f5;
  font-size: .78rem;
}

.tb-hb-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tb-hb-system-actions .tb-hb-tech-link,
.tb-hb-system-actions .tb-hb-affiliate-button {
  flex: 1 1 150px;
}

@media (max-width: 820px) {
  .tb-hb-catalog-head,
  .tb-hb-system-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tb-hb-system-topline {
    display: block;
  }

  .tb-hb-system-capacity {
    display: inline-block;
    margin-top: 10px;
  }
}


/* v1.4: inverter-aware matching, best-fit state and cross-links ----------- */
.tb-hb-field-wide {
  grid-column: 1 / -1;
}

.tb-hb-result-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tb-hb-system-card.is-best {
  border: 2px solid #0d3329;
  background: #eef6f2;
  box-shadow: 0 0 0 5px rgba(13,51,41,.10);
}

.tb-hb-system-card.is-best::after {
  content: "Closest fit";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #0d3329;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tb-hb-system-card.is-best .tb-hb-system-status {
  padding-right: 82px;
}

.tb-hb-system-card.is-output-short {
  border-color: #d5c5a5;
  background: #fffdf8;
}

.tb-hb-system-card.is-output-short .tb-hb-system-status {
  background: #f4ead8;
}

.tb-hb-match-method {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 4px solid #0d3329;
  background: #f7f9fa;
}

.tb-hb-match-method h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.tb-hb-match-method p {
  margin: 0;
  font-size: .9rem;
}

.tb-hb-crosslink {
  width: min(1040px, 100%);
  margin: 38px auto 20px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid #dfe5e8;
  border-radius: 16px;
  background: #f7f9fa;
}

.tb-hb-crosslink h2 {
  margin: 0 0 8px;
}

.tb-hb-crosslink p:not(.tb-hb-eyebrow) {
  margin: 0 0 16px;
}

.tb-hb-crosslink-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 8px;
  background: #0d3329;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 760px) {
  .tb-hb-result-metrics {
    grid-template-columns: 1fr;
  }
  .tb-hb-system-card.is-best::after {
    position: static;
    display: inline-block;
    margin: 0 0 10px;
  }
  .tb-hb-system-card.is-best .tb-hb-system-status {
    padding-right: 9px;
  }
}

/* v1.5: load-profile builder, catalog controls, analytics-ready UX ------- */
.tb-hb-load-builder {
  width: min(1040px, 100%);
  margin: 48px auto 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dfe5e8;
  border-radius: 16px;
  background: #fff;
}

.tb-hb-load-builder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px;
  align-items: end;
}

.tb-hb-load-builder-head h2 {
  margin: 0 0 8px;
}

.tb-hb-load-builder-head p:not(.tb-hb-eyebrow) {
  margin: 0;
}

.tb-hb-load-summary {
  padding: 14px 16px;
  border: 1px solid #d8e1de;
  border-radius: 12px;
  background: #f7f9fa;
}

.tb-hb-load-summary span,
.tb-hb-load-summary strong,
.tb-hb-load-summary em {
  display: block;
}

.tb-hb-load-summary span {
  margin-bottom: 4px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .62;
}

.tb-hb-load-summary strong {
  font-size: 1.25rem;
}

.tb-hb-load-summary em {
  margin-top: 2px;
  font-size: .86rem;
  font-style: normal;
  opacity: .72;
}

.tb-hb-load-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e3e7ea;
  border-radius: 12px;
}

.tb-hb-load-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: auto;
  margin: 0;
}

.tb-hb-load-table th,
.tb-hb-load-table td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eceff1;
}

.tb-hb-load-table thead th {
  background: #f5f7f8;
  font-size: .82rem;
}

.tb-hb-load-table tbody tr:last-child td {
  border-bottom: 0;
}

.tb-hb-load-table td:nth-child(1) { min-width: 220px; }
.tb-hb-load-table td:nth-child(2),
.tb-hb-load-table td:nth-child(3) { min-width: 150px; }
.tb-hb-load-table td:nth-child(4) { min-width: 90px; }
.tb-hb-load-table td:nth-child(5) { min-width: 180px; }

.tb-hb-load-table td:nth-child(2),
.tb-hb-load-table td:nth-child(3) {
  white-space: nowrap;
}

.tb-hb-load-table input[type="text"],
.tb-hb-load-table input[type="number"] {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #ccd3d7;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.tb-hb-load-name { width: 100%; }
.tb-hb-load-watts,
.tb-hb-load-hours { width: 92px; }
.tb-hb-load-qty { width: 68px; }

.tb-hb-load-table td > span {
  margin-left: 5px;
  font-size: .82rem;
  opacity: .65;
}

.tb-hb-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.tb-hb-check input {
  width: 18px;
  height: 18px;
  accent-color: #0d3329;
}

.tb-hb-load-remove {
  width: 38px;
  height: 38px;
  border: 1px solid #d5dbde;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.tb-hb-load-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.tb-hb-catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 22px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #e1e6e8;
  border-radius: 12px;
  background: #f8faf9;
}

.tb-hb-catalog-controls label:first-child {
  display: grid;
  gap: 5px;
}

.tb-hb-catalog-controls label:first-child span {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .65;
}

.tb-hb-catalog-controls select {
  min-height: 42px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #ccd3d7;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.tb-hb-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  font-size: .9rem;
  font-weight: 700;
}

.tb-hb-filter-check input {
  width: 18px;
  height: 18px;
  accent-color: #0d3329;
}

.tb-hb-system-card[hidden] {
  display: none !important;
}

.tb-hb-faq {
  width: min(900px, 100%);
  margin: 44px auto 0;
}

.tb-hb-faq h2 {
  margin-top: 0;
}

.tb-hb-faq details {
  border-top: 1px solid #e1e6e8;
  padding: 14px 0;
}

.tb-hb-faq details:last-child {
  border-bottom: 1px solid #e1e6e8;
}

.tb-hb-faq summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
}

.tb-hb-faq details p {
  margin: 10px 0 0;
}

@media (max-width: 760px) {
  .tb-hb-load-builder-head {
    grid-template-columns: 1fr;
  }

  .tb-hb-load-actions .tb-hb-button,
  .tb-hb-load-actions .tb-hb-reset {
    width: 100%;
  }

  .tb-hb-catalog-controls {
    align-items: stretch;
  }

  .tb-hb-catalog-controls label:first-child,
  .tb-hb-catalog-controls select,
  .tb-hb-filter-check {
    width: 100%;
  }
}


/* v1.6: dynamic catalog / market controls ------------------------------- */
.tb-hb-catalog-controls > label:not(.tb-hb-filter-check) {
  display: grid;
  gap: 5px;
}

.tb-hb-catalog-controls > label:not(.tb-hb-filter-check) > span {
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .65;
}

.tb-hb-price-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px dashed #cbd4d1;
  border-radius: 8px;
  background: #f7f9fa;
  font-size: .86rem;
  font-weight: 700;
  opacity: .65;
}

.tb-hb-empty-catalog {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed #cbd4d1;
  border-radius: 12px;
  background: #f8faf9;
  text-align: center;
  font-weight: 700;
}


/* v1.7: side-by-side product comparison ---------------------------------- */
.tb-hb-compare-panel {
  margin: 20px 0 24px;
  padding: 20px;
  border: 1px solid #d9e2df;
  border-radius: 14px;
  background: #f7f9fa;
}

.tb-hb-compare-panel[hidden] {
  display: none !important;
}

.tb-hb-compare-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tb-hb-compare-head h4 {
  margin: 0 0 5px;
  font-size: 1.15rem;
}

.tb-hb-compare-head p:not(.tb-hb-eyebrow) {
  margin: 0;
  font-size: .9rem;
}

.tb-hb-compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dfe5e8;
  border-radius: 12px;
  background: #fff;
}

.tb-hb-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.tb-hb-compare-table th,
.tb-hb-compare-table td {
  padding: 12px 14px;
  border-right: 1px solid #edf0f1;
  border-bottom: 1px solid #edf0f1;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.tb-hb-compare-table tr:last-child th,
.tb-hb-compare-table tr:last-child td {
  border-bottom: 0;
}

.tb-hb-compare-table th:last-child,
.tb-hb-compare-table td:last-child {
  border-right: 0;
}

.tb-hb-compare-table thead th {
  background: #f5f7f7;
  font-size: .88rem;
}

.tb-hb-compare-table thead th:first-child,
.tb-hb-compare-table tbody th {
  width: 190px;
}

.tb-hb-compare-table tbody th {
  background: #fbfcfc;
  font-size: .82rem;
}

.tb-hb-compare-brand {
  display: block;
  margin-bottom: 3px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .62;
}

.tb-hb-compare-links {
  display: grid;
  gap: 8px;
}

.tb-hb-compare-links .tb-hb-tech-link,
.tb-hb-compare-links .tb-hb-affiliate-button {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  text-align: center;
  font-size: .82rem;
}

.tb-hb-compare-toggle {
  flex: 1 1 120px;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #9fb3ad;
  border-radius: 8px;
  background: #fff;
  color: #0d3329;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tb-hb-compare-toggle[aria-pressed="true"] {
  border-color: #0d3329;
  background: #0d3329;
  color: #fff;
}

.tb-hb-system-card.is-compared {
  box-shadow: inset 0 0 0 2px rgba(13,51,41,.22);
}

.tb-hb-system-actions .tb-hb-compare-toggle,
.tb-hb-system-actions .tb-hb-tech-link,
.tb-hb-system-actions .tb-hb-affiliate-button {
  flex: 1 1 145px;
}

@media (max-width: 720px) {
  .tb-hb-compare-head {
    display: block;
  }

  .tb-hb-compare-head .tb-hb-reset {
    margin-top: 12px;
  }

  .tb-hb-compare-panel {
    padding: 16px;
  }

  .tb-hb-compare-table {
    min-width: 700px;
  }
}

.tb-hb-system-actions .tb-hb-compare-toggle {
  flex: 1 1 100%;
}


/* v1.8: richer product cards + live storage/output fit meters ----------- */
.tb-hb-system-visual {
  display: grid;
  place-items: center;
  min-height: 158px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #e5e9e8;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8faf9, #eef3f1);
}

.tb-hb-system-visual img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  background: #fff;
}

.tb-hb-system-visual-fallback {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 20px;
  text-align: center;
}

.tb-hb-system-visual-fallback strong {
  font-size: 1.28rem;
  line-height: 1;
}

.tb-hb-system-visual-fallback > span:last-child {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
}

.tb-hb-battery-glyph {
  position: relative;
  display: block;
  width: 70px;
  height: 42px;
  margin-bottom: 8px;
  border: 3px solid #0d3329;
  border-radius: 8px;
}

.tb-hb-battery-glyph::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -9px;
  width: 6px;
  height: 14px;
  border-radius: 0 4px 4px 0;
  background: #0d3329;
}

.tb-hb-battery-glyph i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 4px;
  background: rgba(13, 51, 41, .14);
}

.tb-hb-fit-meters {
  display: grid;
  gap: 11px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid #e5e9e8;
  border-radius: 11px;
  background: #fbfcfc;
}

.tb-hb-fit-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: .76rem;
}

.tb-hb-fit-meter-head span {
  font-weight: 700;
  opacity: .66;
}

.tb-hb-fit-meter-head strong {
  font-size: .78rem;
  text-align: right;
}

.tb-hb-fit-meter-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eceb;
}

.tb-hb-fit-meter-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #87948f;
  transition: width .2s ease, background-color .2s ease;
}

.tb-hb-fit-meter.is-pass .tb-hb-fit-meter-track > span {
  background: #0d3329;
}

.tb-hb-fit-meter.is-short .tb-hb-fit-meter-track > span {
  background: #a26727;
}

.tb-hb-system-card.is-best .tb-hb-system-visual {
  border-color: rgba(13, 51, 41, .35);
  background: linear-gradient(145deg, #f5faf7, #e8f1ed);
}

.tb-hb-system-card.is-under .tb-hb-system-visual,
.tb-hb-system-card.is-output-short .tb-hb-system-visual {
  filter: saturate(.75);
}

@media (max-width: 560px) {
  .tb-hb-system-visual {
    min-height: 135px;
  }
  .tb-hb-system-visual img {
    height: 145px;
  }
  .tb-hb-fit-meter-head {
    align-items: flex-start;
  }
}


/* v1.9: transparent technical fit score -------------------------------- */
.tb-hb-score-note {
  margin-top: 12px;
  padding: 11px 13px;
  border-left: 3px solid #0d3329;
  background: #f5f8f7;
  font-size: .88rem;
}

.tb-hb-score-method {
  margin: 18px 0 24px;
  border: 1px solid #e1e6e4;
  border-radius: 12px;
  background: #fbfcfc;
}

.tb-hb-score-method summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
}

.tb-hb-score-method > div {
  padding: 0 16px 15px;
  font-size: .9rem;
}

.tb-hb-score-method p {
  margin: 8px 0 0;
}

.tb-hb-fit-scores {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 9px;
  margin: 15px 0 0;
}

.tb-hb-fit-score {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e4e8e7;
  border-radius: 10px;
  background: #fff;
}

.tb-hb-fit-score > span {
  display: block;
  margin-bottom: 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .58;
}

.tb-hb-fit-score strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 1.2rem;
  line-height: 1;
}

.tb-hb-fit-score small {
  font-size: .68rem;
  font-weight: 700;
  opacity: .52;
}

.tb-hb-fit-score-overall {
  border-color: rgba(13, 51, 41, .24);
  background: #f4f8f6;
}

.tb-hb-system-card.is-best .tb-hb-fit-score-overall {
  border-color: rgba(13, 51, 41, .48);
  background: #edf5f1;
}

.tb-hb-system-card.is-under .tb-hb-fit-score-overall,
.tb-hb-system-card.is-output-short .tb-hb-fit-score-overall {
  background: #fbf7f2;
  border-color: #eadac7;
}

.tb-hb-compare-subscore {
  display: block;
  margin-top: 3px;
  font-size: .75rem;
  opacity: .62;
}

@media (max-width: 560px) {
  .tb-hb-fit-scores {
    grid-template-columns: 1fr 1fr;
  }
  .tb-hb-fit-score-overall {
    grid-column: 1 / -1;
  }
}


/* v2.0: calculated minimum vs preferred design reserve ------------------ */
.tb-hb-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  gap: 18px;
  align-items: stretch;
}

.tb-hb-result-primary {
  min-width: 0;
}

.tb-hb-design-target {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid rgba(13, 51, 41, .18);
  border-radius: 12px;
  background: #f4f8f6;
}

.tb-hb-design-target > span {
  display: block;
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .62;
}

.tb-hb-design-target > strong {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.tb-hb-design-target > small {
  display: block;
  margin-top: 7px;
  line-height: 1.4;
  opacity: .72;
}

.tb-hb-result-note {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #0d3329;
  background: #f7f9f8;
  font-size: .86rem;
  line-height: 1.5;
}

.tb-hb-system-card.is-reserve-short {
  border: 2px solid #b88a45;
  background: #fffaf2;
  box-shadow: 0 0 0 4px rgba(184, 138, 69, .08);
}

.tb-hb-system-card.is-reserve-short .tb-hb-system-status {
  background: #f1e2c8;
  color: #5f451c;
}

.tb-hb-system-card.is-reserve-short .tb-hb-fit-score-overall {
  background: #fff6e8;
  border-color: #e1c18d;
}

@media (max-width: 760px) {
  .tb-hb-result-grid {
    grid-template-columns: 1fr;
  }
}


/* v2.1 · Interactive sizing landscape ---------------------------------- */
.tb-hb-landscape {
  margin: 26px 0 30px;
  padding: 24px;
  border: 1px solid #dfe5e8;
  border-radius: 16px;
  background: #fbfcfc;
}

.tb-hb-landscape-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.tb-hb-landscape-head h4 {
  margin: 3px 0 8px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.tb-hb-landscape-head p:not(.tb-hb-eyebrow) {
  margin: 0;
  max-width: 780px;
  line-height: 1.55;
  color: #495652;
}

.tb-hb-landscape-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 13px;
  font-size: .78rem;
  color: #57635f;
}

.tb-hb-landscape-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tb-hb-landscape-key i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #8b9692;
}

.tb-hb-landscape-key i.is-minimum { background: #7b8790; }
.tb-hb-landscape-key i.is-target { background: #0d3329; }
.tb-hb-landscape-key i.is-product { background: #c79a52; }

.tb-hb-landscape-axis + .tb-hb-landscape-axis {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e3e8e6;
}

.tb-hb-landscape-axis-head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tb-hb-landscape-axis-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tb-hb-landscape-axis-head > div span,
.tb-hb-landscape-axis-head > span {
  font-size: .78rem;
  color: #66716e;
}

.tb-hb-landscape-track {
  position: relative;
  min-height: 122px;
  margin: 0 10px;
  overflow: visible;
}

.tb-hb-landscape-base {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  height: 4px;
  border-radius: 999px;
  background: #dde4e1;
}

.tb-hb-landscape-minimum-line,
.tb-hb-landscape-target-line {
  position: absolute;
  top: 22px;
  bottom: 17px;
  width: 2px;
  transform: translateX(-1px);
  z-index: 2;
}

.tb-hb-landscape-minimum-line { background: #7b8790; }
.tb-hb-landscape-target-line { background: #0d3329; }

.tb-hb-landscape-minimum-line > span,
.tb-hb-landscape-target-line > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 6px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.1;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.tb-hb-landscape-minimum-line > span { bottom: -13px; color: #59636b; }
.tb-hb-landscape-target-line > span { top: -13px; color: #0d3329; }

.tb-hb-landscape-products {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.tb-hb-landscape-product-marker {
  position: absolute;
  top: 45px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 66px;
  max-width: 94px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #27322f;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  z-index: 4;
}

.tb-hb-landscape-product-marker strong {
  font-size: .76rem;
  line-height: 1.1;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .94);
}

.tb-hb-landscape-product-marker small {
  display: block;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .59rem;
  line-height: 1.1;
  color: #6c7773;
}

.tb-hb-landscape-product-dot {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #c79a52;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}

.tb-hb-landscape-product-marker.lane-0 { top: 29px; }
.tb-hb-landscape-product-marker.lane-1 { top: 49px; }
.tb-hb-landscape-product-marker.lane-2 { top: 69px; }

.tb-hb-landscape-product-marker.is-best .tb-hb-landscape-product-dot { background: #0d3329; transform: scale(1.15); }
.tb-hb-landscape-product-marker.is-match .tb-hb-landscape-product-dot { background: #2f6b58; }
.tb-hb-landscape-product-marker.is-reserve-short .tb-hb-landscape-product-dot { background: #b88a45; }
.tb-hb-landscape-product-marker.is-under .tb-hb-landscape-product-dot { background: #a45c55; }
.tb-hb-landscape-product-marker.is-oversize .tb-hb-landscape-product-dot { background: #70827b; }

.tb-hb-landscape-product-marker:focus-visible {
  outline: 3px solid rgba(13, 51, 41, .25);
  outline-offset: 5px;
  border-radius: 5px;
}

.tb-hb-landscape-scale {
  display: flex;
  justify-content: space-between;
  margin: 2px 9px 0;
  font-size: .7rem;
  color: #7a8581;
}

.tb-hb-system-card.is-landscape-focus {
  animation: tbHbLandscapeFocus 1.8s ease;
}

@keyframes tbHbLandscapeFocus {
  0%, 100% { box-shadow: inherit; }
  20%, 70% { box-shadow: 0 0 0 6px rgba(13, 51, 41, .14); }
}

@media (prefers-reduced-motion: reduce) {
  .tb-hb-system-card.is-landscape-focus { animation: none; }
}

@media (max-width: 760px) {
  .tb-hb-landscape {
    padding: 18px 14px;
  }

  .tb-hb-landscape-head {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .tb-hb-landscape-key {
    justify-content: flex-start;
  }

  .tb-hb-landscape-axis-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .tb-hb-landscape-track {
    min-height: 132px;
    margin-inline: 3px;
  }

  .tb-hb-landscape-base { top: 65px; }

  .tb-hb-landscape-product-marker {
    min-width: 50px;
    max-width: 62px;
  }

  .tb-hb-landscape-product-marker small { display: none; }
  .tb-hb-landscape-product-marker.lane-0 { top: 35px; }
  .tb-hb-landscape-product-marker.lane-1 { top: 55px; }
  .tb-hb-landscape-product-marker.lane-2 { top: 75px; }

  .tb-hb-landscape-minimum-line > span,
  .tb-hb-landscape-target-line > span {
    font-size: .61rem;
    max-width: 92px;
    white-space: normal;
    text-align: center;
  }
}


/* v3.0 — persistent sizing summary, share/print actions and no-fit guard */
.tb-hb-live-summary {
  position: sticky;
  top: 12px;
  z-index: 18;
  margin: 22px 0 28px;
  padding: 16px 18px 14px;
  border: 1px solid #cfdad6;
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 30px rgba(21, 40, 34, .10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.admin-bar .tb-hb-live-summary {
  top: 44px;
}

.tb-hb-live-summary-main {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(130px, .8fr) minmax(120px, .75fr) minmax(240px, 1.7fr);
  gap: 12px;
  align-items: stretch;
}

.tb-hb-live-summary-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e3e9e6;
  border-radius: 10px;
  background: #f8faf9;
}

.tb-hb-live-summary-item > span,
.tb-hb-live-summary-item > small {
  display: block;
  color: #65716d;
  font-size: .72rem;
  line-height: 1.3;
}

.tb-hb-live-summary-item > strong {
  display: block;
  margin-top: 3px;
  color: #17362d;
  font-size: .98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tb-hb-live-summary-best {
  background: #f4f8f6;
  border-color: #c9d9d3;
}

.tb-hb-live-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tb-hb-summary-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #0d3329;
  border-radius: 8px;
  background: #0d3329;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.tb-hb-summary-button.is-secondary {
  background: #fff;
  color: #0d3329;
}

.tb-hb-summary-button:hover {
  filter: brightness(.97);
}

.tb-hb-summary-button:focus-visible {
  outline: 3px solid rgba(13, 51, 41, .20);
  outline-offset: 2px;
}

.tb-hb-live-summary-rule {
  margin: 10px 0 0;
  color: #66716e;
  font-size: .74rem;
  line-height: 1.45;
}

.tb-hb-no-fit {
  display: grid;
  gap: 3px;
  margin: 0 0 24px;
  padding: 15px 17px;
  border: 1px solid #e3c8a8;
  border-left: 4px solid #a97538;
  border-radius: 10px;
  background: #fffaf4;
}

.tb-hb-no-fit[hidden] {
  display: none !important;
}

.tb-hb-no-fit strong {
  color: #684c2d;
}

.tb-hb-no-fit span {
  color: #725f49;
  font-size: .86rem;
}

@media (max-width: 920px) {
  .tb-hb-live-summary {
    position: static;
  }

  body.admin-bar .tb-hb-live-summary {
    top: auto;
  }

  .tb-hb-live-summary-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-hb-live-summary-best {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .tb-hb-live-summary-main {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tb-hb-live-summary-item {
    padding: 9px 10px;
  }

  .tb-hb-live-summary-best {
    grid-column: 1 / -1;
  }

  .tb-hb-live-summary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tb-hb-summary-button {
    width: 100%;
  }
}

@media print {
  .tb-hb-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .tb-hb-live-summary {
    position: static !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .tb-hb-live-summary-actions,
  .tb-hb-catalog-controls,
  .tb-hb-actions,
  .tb-hb-load-actions,
  .tb-hb-compare-toggle,
  .tb-hb-affiliate-button,
  .tb-hb-tech-link,
  .tb-hb-range,
  .tb-hb-range-scale {
    display: none !important;
  }

  .tb-hb-system-card,
  .tb-hb-calc,
  .tb-hb-load-builder,
  .tb-hb-landscape,
  .tb-hb-live-summary {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .tb-hb-system-list {
    grid-template-columns: 1fr 1fr !important;
  }

  a[href]::after {
    content: none !important;
  }
}
