.tariftool-site {
  color: #17202a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7fafc;
  --tt-fixed-filter-safe-offset: 0px;
}

.tt-is-loading,
.tt-is-loading body {
  cursor: wait !important;
}

.tt-is-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(241, 245, 249, 0.38);
  z-index: 9998;
}

.tt-is-loading::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  border: 4px solid #bfd6ff;
  border-top-color: #155eef;
  animation: tt-spin 0.8s linear infinite;
  z-index: 9999;
}

@keyframes tt-spin {
  to {
    transform: rotate(360deg);
  }
}

.tt-site-hero {
  background: #0f766e;
  color: #fff;
  padding: 48px 24px 92px;
}

.tt-site-hero > div,
.tt-filter-shell,
.tt-results-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.tt-site-hero h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.02;
}

.tt-site-hero p {
  max-width: 840px;
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.tt-site-hero-secondary {
  background: #334155;
}

.tt-debug-marker {
  margin: 10px auto;
  max-width: 1320px;
  border: 1px dashed #64748b;
  border-radius: 6px;
  background: #f8fafc;
  color: #1e293b;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.tt-debug-marker strong {
  font-size: 12px;
  text-transform: uppercase;
}

.tt-debug-marker-inline {
  margin: 8px 0;
  font-size: 11px;
  padding: 6px 8px;
  background: #eef2f7;
}

.tt-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tt-filter-band {
  margin-top: -52px;
  padding: 0 20px;
}

.tt-results-band {
  padding: 24px 20px 40px;
}

.tt-results-shell {
  border: 1px solid #dbe6f2;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}

.tt-calc-layout {
  display: block;
}

.tt-panel {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.tt-panel-inline {
  width: 100%;
}

.tt-panel h2,
.tt-results-head h2 {
  margin: 0;
  font-size: 26px;
}

.tt-filter-head,
.tt-results-head,
.tt-result-top,
.tt-filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tt-results-head {
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe6f2;
  border-radius: 12px;
  background: #fff;
}

.tt-results-head h2 {
  font-size: 44px;
  line-height: 1;
}

.tt-results-head span {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  background: #e9f2ff;
  border: 1px solid #c6dafd;
  border-radius: 999px;
  padding: 6px 12px;
}

.tt-filter-head {
  align-items: end;
  margin-bottom: 14px;
}

.tt-filter-summary,
.tt-filter-hints {
  display: grid;
  gap: 4px;
}

.tt-filter-summary {
  min-width: 220px;
}

.tt-filter-summary strong {
  font-size: 18px;
}

.tt-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.tt-profile-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.tt-profile-form label.is-hidden,
.tt-peak-hint.is-hidden {
  display: none !important;
}

.tt-profile-form input,
.tt-profile-form select,
.tt-profile-form textarea {
  width: 100%;
  border: 1px solid #b8c4d2;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.tt-profile-form input,
.tt-profile-form select {
  min-height: 46px;
}

.tt-filter-actions {
  align-items: end;
  margin-top: 12px;
  grid-column: 1 / -1;
}

.tt-filter-sticky-wrap {
  position: sticky;
  top: 8px;
  z-index: 20;
  width: min(1320px, calc(100% - 20px));
  margin-left: auto;
  margin-right: auto;
  --tt-content-max: 1320px;
  --tt-content-pad: 18px;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  backdrop-filter: none;
}

.tt-filter-sticky-wrap.tt-sticky-fallback {
  position: fixed;
  top: 8px;
  left: max(8px, calc((100vw - 1320px) / 2));
  right: auto;
  width: min(360px, calc(100vw - 16px));
  z-index: 10030;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

.tt-filter-sticky-spacer {
  height: 0;
}

.tt-filter-sticky-wrap > .tt-debug-marker {
  max-width: 1320px;
  width: 100%;
  margin: 0 0 8px;
}

.tt-sticky-debug-box {
  max-width: 1320px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px dashed #0f766e;
  border-radius: 8px;
  background: #f0fdf9;
  color: #134e4a;
  font-size: 13px;
  line-height: 1.35;
}

.tt-sticky-debug-box strong {
  display: block;
  margin-bottom: 4px;
}

#ttStickyDebugContent {
  white-space: pre-line;
}

.tt-filter-shell .tt-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  max-width: 1320px;
  width: 100%;
  margin: 0;
}

.tt-filter-sticky-wrap.tt-sticky-fallback > .tt-debug-marker,
.tt-filter-sticky-wrap.tt-sticky-fallback .tt-sticky-debug-box,
.tt-filter-sticky-wrap.tt-sticky-fallback .tt-filter-shell .tt-panel {
  max-width: min(360px, calc(100vw - 16px));
  margin-left: 0;
  margin-right: auto;
}

.tt-filter-sticky-wrap.tt-sticky-fallback .tt-filter-shell .tt-panel {
  grid-template-columns: 1fr;
  padding: 12px;
}

.tt-filter-sticky-wrap.tt-sticky-fallback .tt-filter-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.tt-filter-sticky-wrap.tt-sticky-fallback .tt-filter-summary,
.tt-filter-sticky-wrap.tt-sticky-fallback .tt-filter-hints,
.tt-filter-sticky-wrap.tt-sticky-fallback .tt-filter-form .tt-filter-head h2 {
  display: none !important;
}

.tt-filter-sticky-wrap.tt-sticky-fallback .tt-filter-head {
  margin-bottom: 6px;
}

.tt-filter-sticky-wrap.tt-sticky-fallback .tt-filter-actions {
  margin-top: 4px;
}

.tt-filter-sticky-wrap.tt-sticky-fallback .tt-checkbox {
  font-size: 12px;
}

html.tt-filter-is-fixed-left .tt-results-shell {
  margin-left: min(var(--tt-fixed-filter-safe-offset), calc(100vw - 8px));
}

.tt-filter-form .tt-filter-head {
  margin: 0;
}

.tt-filter-form .tt-filter-head h2 {
  font-size: 22px;
  line-height: 1.1;
  max-width: 220px;
}

.tt-filter-form .tt-filter-summary strong {
  font-size: 20px;
}

.tt-filter-form .tt-filter-summary span {
  font-size: 14px;
  color: #475467;
}

.tt-filter-form .tt-filter-hints .tt-muted {
  display: none;
}

.tt-filter-form .tt-filter-hints .tt-peak-hint {
  display: block;
}

.tt-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  font-weight: 500 !important;
}

.tt-checkbox input {
  width: 18px;
  min-height: 18px;
}

.tt-button-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tt-primary-button,
.tt-select-button {
  min-height: 46px;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.tt-primary-button {
  border: 0;
  background: #155eef;
  color: #fff;
}

.tt-select-button {
  margin-top: 10px;
  width: 100%;
  border: 1px solid #0f766e;
  background: #fff;
  color: #0f766e;
}

.tt-open-analysis {
  margin-top: 10px;
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #1e3a8a;
  background: #e8f0ff;
  color: #1e3a8a;
  font-weight: 700;
  cursor: pointer;
}

.tt-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #c8d7ea;
  border-radius: 12px;
  background: #ffffff;
}

.tt-overview h2 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 0.95;
}

.tt-overview-metrics,
.tt-result-metrics,
.tt-component-row dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.tt-overview-metrics,
.tt-result-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tt-result-list,
.tt-component-list {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 16px;
}

.tt-result-list {
  overflow: hidden;
}

.tt-result-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #c8d7ea;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.tt-result-card.is-best,
.tt-result-card.is-selected {
  border-color: #0f766e;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.08);
}

.tt-result-top {
  align-items: start;
}

.tt-result-card h3 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 0.95;
}

.tt-total-badge {
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f0f6ff;
  border: 1px solid #d2e2fb;
  text-align: right;
}

.tt-result-metrics {
  padding: 16px 0 18px;
}

.tt-detail-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed #bfd0e4;
  border-radius: 10px;
  background: #f8fbff;
  color: #475467;
  font-size: 14px;
}

.tt-analysis-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
}

.tt-analysis-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.tt-analysis-dialog {
  position: relative;
  width: min(1120px, calc(100vw - 26px));
  max-height: calc(100vh - 26px);
  overflow: auto;
  margin: 14px auto;
  border-radius: 14px;
  border: 1px solid #d7e1ef;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.tt-analysis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tt-analysis-head h4 {
  margin: 0;
  font-size: 34px;
  line-height: 0.95;
}

.tt-analysis-close {
  border: 1px solid #c8d7ea;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.tt-analysis-sub {
  margin: 8px 0 14px;
  color: #475467;
}

.tt-analysis-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tt-analysis-kpi {
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.tt-analysis-kpi--grid { border-color: #8eb4db; background: #f3f8ff; }
.tt-analysis-kpi--electricity { border-color: #8dd6a4; background: #f2fff4; }
.tt-analysis-kpi--metering { border-color: #b7a3ea; background: #f7f4ff; }
.tt-analysis-kpi--regional_fees { border-color: #e7c28d; background: #fff9f2; }

.tt-analysis-kpi span { display: block; color: #475467; font-size: 12px; }
.tt-analysis-kpi strong { display: block; font-size: 22px; line-height: 1; margin-top: 4px; }
.tt-analysis-kpi small { display: block; margin-top: 4px; color: #344054; font-size: 12px; }

.tt-analysis-table-wrap {
  overflow-x: auto;
}

.tt-analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tt-analysis-table th,
.tt-analysis-table td {
  border: 1px solid #dbe4ee;
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.tt-analysis-table thead th {
  background: #eef4fb;
}

.tt-standard-summary,
.tt-standard-component-list {
  display: grid;
  gap: 16px;
}

.tt-standard-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.tt-standard-card,
.tt-standard-component {
  border-radius: 16px;
  border: 1px solid #dbe4ee;
}

.tt-standard-card {
  padding: 14px 16px;
  background: #fff;
}

.tt-standard-card span,
.tt-standard-card small {
  display: block;
  color: #5b6776;
}

.tt-standard-card strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.tt-standard-component {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tt-standard-component-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fbfdff, #f8fafc);
  border-bottom: 1px solid #e5edf5;
}

.tt-standard-card .tt-inline-select select,
.tt-standard-component .tt-inline-select select {
  border-width: 2px;
}

.tt-standard-component-head h4 {
  margin: 0;
  font-size: 18px;
}

.tt-standard-component-head strong {
  font-size: 24px;
}

.tt-standard-component--grid,
.tt-standard-card--grid {
  border-color: #8eb4db;
  background: linear-gradient(180deg, #f3f8ff, #ffffff 42%);
}

.tt-standard-component--grid .tt-standard-component-head,
.tt-standard-card--grid {
  background: linear-gradient(180deg, #e8f2ff, #f7fbff);
}

.tt-standard-component--grid .tt-inline-select select,
.tt-standard-card--grid .tt-inline-select select {
  border-color: #6d9fd1;
}

.tt-standard-component--electricity,
.tt-standard-card--electricity {
  border-color: #8dd6a4;
  background: linear-gradient(180deg, #f2fff4, #ffffff 42%);
}

.tt-standard-component--electricity .tt-standard-component-head,
.tt-standard-card--electricity {
  background: linear-gradient(180deg, #e4f8ea, #f5fcf7);
}

.tt-standard-component--electricity .tt-inline-select select,
.tt-standard-card--electricity .tt-inline-select select {
  border-color: #67be86;
}

.tt-standard-component--metering,
.tt-standard-card--metering {
  border-color: #b7a3ea;
  background: linear-gradient(180deg, #f7f4ff, #ffffff 42%);
}

.tt-standard-component--metering .tt-standard-component-head,
.tt-standard-card--metering {
  background: linear-gradient(180deg, #eee8ff, #f9f6ff);
}

.tt-standard-component--metering .tt-inline-select select,
.tt-standard-card--metering .tt-inline-select select {
  border-color: #9477da;
}

.tt-standard-component--regional_fees,
.tt-standard-card--regional_fees {
  border-color: #e7c28d;
  background: linear-gradient(180deg, #fff9f2, #ffffff 42%);
}

.tt-standard-component--regional_fees .tt-standard-component-head,
.tt-standard-card--regional_fees {
  background: linear-gradient(180deg, #fff2df, #fff9f2);
}

.tt-standard-component--regional_fees .tt-inline-select select,
.tt-standard-card--regional_fees .tt-inline-select select {
  border-color: #d7a563;
}

.tt-standard-component--grid .tt-kicker,
.tt-standard-card--grid span:first-child {
  color: #245e98;
}

.tt-standard-component--electricity .tt-kicker,
.tt-standard-card--electricity span:first-child {
  color: #2f7d48;
}

.tt-standard-component--metering .tt-kicker,
.tt-standard-card--metering span:first-child {
  color: #6a4db0;
}

.tt-standard-component--regional_fees .tt-kicker,
.tt-standard-card--regional_fees span:first-child {
  color: #9b6420;
}

.tt-standard-table-wrap {
  overflow-x: auto;
  padding: 12px 14px 14px;
}

.tt-calc-proof-box {
  margin-top: 12px;
}

.tt-calc-proof-section + .tt-calc-proof-section {
  margin-top: 16px;
}

.tt-calc-proof-section h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tt-standard-table-variant {
  display: none;
}

.tt-standard-table-variant.is-active {
  display: block;
}

.tt-enterprise-sheet {
  margin: 10px 0 16px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
}

.tt-enterprise-sheet-head {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5edf5;
}

.tt-enterprise-sheet-wrap {
  overflow-x: auto;
}

.tt-enterprise-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tt-enterprise-sheet-table th,
.tt-enterprise-sheet-table td {
  border: 1px solid #e5edf5;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.tt-enterprise-sheet-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  color: #475467;
  background: #f8fafc;
}

.tt-enterprise-full-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tt-enterprise-full-table th,
.tt-enterprise-full-table td {
  border: 1px solid #e5edf5;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.tt-enterprise-full-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  color: #475467;
  background: #f3f7fb;
}

.tt-jsonstd-block {
  padding: 8px 0 16px;
}

.tt-jsonstd-block h4 {
  margin: 6px 12px 8px;
  font-size: 34px;
  line-height: 1.05;
}

.tt-enterprise-full-table--jsonstd thead tr:first-child th {
  background: #cfd8e4;
  color: #1f2937;
  font-size: 14px;
  text-transform: none;
}

.tt-enterprise-full-table--jsonstd thead tr:nth-child(2) th {
  background: #e1e8f1;
  color: #334155;
  font-size: 12px;
  text-transform: none;
}

.tt-enterprise-full-table--jsonstd th,
.tt-enterprise-full-table--jsonstd td {
  border-color: #c9d3df;
}

.tt-enterprise-full-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.tt-time-visual {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f8fafc);
}

.tt-time-visual strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}


.tt-time-row-head {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  padding-right: 10px;
  display: flex;
  align-items: center;
}

.tt-time-axis {
  position: relative;
  height: 16px;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.tt-time-axis-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
}

.tt-time-axis span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  line-height: 16px;
}

.tt-time-axis span:first-child {
  left: 0;
  transform: none;
}

.tt-time-axis span:nth-child(2) { left: 25%; }
.tt-time-axis span:nth-child(3) { left: 50%; }
.tt-time-axis span:nth-child(4) { left: 75%; }

.tt-time-axis span:last-child {
  left: 100%;
  transform: translateX(-100%);
}

.tt-time-track {
  position: relative;
  height: 28px;
  border-radius: 0;
  background-color: #e2e8f0;
  overflow: hidden;
}

.tt-time-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(100, 116, 139, 0.35) 0,
    rgba(100, 116, 139, 0.35) 1px,
    transparent 1px,
    transparent calc(100% / 24)
  );
  pointer-events: none;
  z-index: 3;
}

.tt-time-stack {
  display: grid;
  gap: 0;
}

.tt-time-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
}

.tt-time-row:first-child .tt-time-track {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.tt-time-row:last-child .tt-time-track {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.tt-time-segment {
  position: absolute;
  top: 4px;
  height: 20px;
  border-radius: 4px;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}

.tt-time-segment--ht { background: #bfdbfe; }
.tt-time-segment--nt { background: #c7d2fe; }
.tt-time-segment--hht { background: #bbf7d0; }
.tt-time-segment--nnt { background: #fde68a; }

.tt-time-note {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}


.tt-sheet-hint {
  font-size: 12px;
  color: #5b6776;
}

.tt-standard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  overflow: hidden;
}

.tt-standard-table th,
.tt-standard-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eceff1;
  text-align: left;
  vertical-align: top;
}

.tt-standard-table thead th {
  color: #23324d;
  font-size: 12px;
  text-transform: uppercase;
  background: #f3f7fb;
  border-bottom: 1px solid #dbe4ee;
}

.tt-standard-table tbody tr:last-child td {
  border-bottom: 0;
}

.tt-standard-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.tt-standard-table td:nth-child(3),
.tt-standard-table td:nth-child(4),
.tt-standard-table td:nth-child(5) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tt-component-list {
  border-top: 1px solid #e5edf5;
  padding-top: 18px;
}

.tt-component-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.8fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f6;
}

.tt-component-metrics {
  padding: 12px;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #fff;
}

.tt-component-metrics[data-component-type="grid"] {
  border-color: #8eb4db;
  background: linear-gradient(180deg, #f3f8ff, #ffffff 45%);
}

.tt-component-metrics[data-component-type="electricity"] {
  border-color: #8dd6a4;
  background: linear-gradient(180deg, #f2fff4, #ffffff 45%);
}

.tt-component-metrics[data-component-type="metering"] {
  border-color: #b7a3ea;
  background: linear-gradient(180deg, #f7f4ff, #ffffff 45%);
}

.tt-component-metrics[data-component-type="regional_fees"] {
  border-color: #e7c28d;
  background: linear-gradient(180deg, #fff9f2, #ffffff 45%);
}

.tt-component-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tt-component-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.tt-component-row dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tt-total-badge span,
.tt-result-card dt,
.tt-overview dt,
.tt-component-row dt,
.tt-profile-breakdown,
.tt-muted,
.tt-filter-hints,
.tt-result-card p,
.tt-results-head span,
.tt-empty,
.tt-component-row span,
.tt-overview p,
.tt-season-note span {
  color: #5b6776;
}

.tt-total-badge strong,
.tt-result-card dd,
.tt-overview dd,
.tt-component-row dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.tt-total-year {
  display: block;
  margin-top: 4px;
  color: #5b6776;
  font-size: 12px;
}

.tt-total-rate {
  display: block;
  margin-top: 2px;
  color: #5b6776;
  font-size: 13px;
  font-weight: 600;
}

.tt-profile-breakdown {
  margin-top: 16px;
}

.tt-profile-breakdown summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.tt-profile-breakdown > summary,
.tt-subdetails > summary {
  list-style: none;
}

.tt-profile-breakdown > summary::-webkit-details-marker,
.tt-subdetails > summary::-webkit-details-marker {
  display: none;
}

.tt-profile-breakdown > summary::before,
.tt-subdetails > summary::before {
  content: "▸ ";
  color: #475467;
}

.tt-profile-breakdown[open] > summary::before,
.tt-subdetails[open] > summary::before {
  content: "▾ ";
}

.tt-tariff-name-list {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.tt-tariff-name-list span {
  display: block;
  margin-bottom: 6px;
  color: #5b6776;
  font-size: 12px;
  font-weight: 700;
}

.tt-tariff-name-list ul {
  margin: 0;
  padding-left: 18px;
}

.tt-tariff-name-list li {
  margin: 0 0 4px;
}

.tt-details-body {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.tt-segment-table-wrap {
  overflow-x: auto;
}

.tt-segment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.tt-segment-table th,
.tt-segment-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5edf5;
  text-align: left;
}

.tt-segment-table thead th {
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
}

.tt-segment-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.tt-inline-select {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-top: 4px;
  font-weight: 600;
}

.tt-inline-select select {
  width: auto;
  max-width: 250px;
  min-width: 170px;
  min-height: 36px;
  padding: 6px 10px;
}

.tt-standard-card .tt-inline-select select,
.tt-standard-component .tt-inline-select select {
  max-width: 230px;
}

.tt-tariff-options {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.tt-tariff-option {
  display: none;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.tt-tariff-option.is-active {
  display: block;
}

.tt-tariff-option h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tt-tariff-option p {
  margin: 0 0 8px;
}

.tt-price-table {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tt-price-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.7fr) auto;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5edf5;
  border-radius: 6px;
  background: #fff;
  align-items: start;
}

.tt-price-row strong,
.tt-price-row b {
  margin: 0;
}

.tt-price-row span {
  color: #475467;
  line-height: 1.45;
}

.tt-subdetails {
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
}

.tt-enterprise-sheet-details {
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
  margin-bottom: 12px;
}

.tt-enterprise-sheet-details > .tt-enterprise-sheet {
  margin-top: 10px;
}

.tt-calculation-list {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.tt-calculation-list p {
  margin: 0;
  line-height: 1.55;
}

.tt-calculation-summary,
.tt-tariff-calc {
  display: grid;
  gap: 14px;
}

.tt-calc-overview,
.tt-calc-card-grid {
  display: grid;
  gap: 12px;
}

.tt-calc-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-calc-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tt-calc-sections-wrap {
  overflow-x: auto;
}

.tt-calc-sections-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.tt-calc-sections-table th,
.tt-calc-sections-table td {
  padding: 10px 12px;
  border: 1px solid #e5edf5;
  text-align: left;
  vertical-align: top;
}

.tt-calc-sections-table thead th {
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
}

.tt-calc-overview-card,
.tt-calc-card {
  padding: 14px 16px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
}

.tt-calc-overview-card span,
.tt-calc-card p {
  color: #5b6776;
}

.tt-calc-overview-card strong,
.tt-calc-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.tt-calc-card h4,
.tt-tariff-calc-head strong {
  margin: 0 0 8px;
  font-size: 16px;
}

.tt-tariff-calc-head {
  display: grid;
  gap: 4px;
}

.tt-calc-miniwrap,
.tt-calc-segments-table-wrap,
.tt-tariff-calc-table-wrap {
  overflow-x: auto;
}

.tt-calc-mini,
.tt-calc-segments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.tt-calc-mini th,
.tt-calc-mini td,
.tt-calc-segments-table th,
.tt-calc-segments-table td {
  padding: 8px 10px;
  border: 1px solid #e5edf5;
  text-align: left;
  vertical-align: top;
}

.tt-calc-mini thead th,
.tt-calc-segments-table thead th {
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
}

.tt-calc-block {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
}

.tt-calc-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.tt-calc-block-head h5 {
  margin: 0;
  font-size: 15px;
}

.tt-calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.tt-calc-table th,
.tt-calc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5edf5;
  text-align: left;
  vertical-align: top;
}

.tt-calc-table thead th {
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
}

.tt-calc-subrow td {
  padding-top: 0;
  background: #fcfdff;
}

.tt-season-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.tt-season-note strong {
  font-size: 14px;
}

.tt-segment-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 6px 14px;
  font-size: 14px;
}

.tt-empty {
  border: 1px dashed #b8c4d2;
  border-radius: 8px;
  padding: 24px;
}

.tt-empty h3 {
  margin: 0 0 8px;
  color: #17202a;
}

@media (max-width: 1100px) {
  .tt-filter-sticky-wrap {
    position: static;
    top: auto;
    width: auto;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .tt-filter-shell .tt-panel {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .tt-filter-grid,
  .tt-overview,
  .tt-result-top,
  .tt-component-row,
  .tt-price-row {
    grid-template-columns: 1fr;
  }

  html.tt-filter-is-fixed-left .tt-results-shell {
    margin-left: 0;
  }

  .tt-filter-actions {
    flex-direction: column;
    align-items: start;
  }

  .tt-overview-metrics,
  .tt-result-metrics,
  .tt-component-row dl,
  .tt-standard-summary,
  .tt-calc-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-total-badge {
    min-width: 0;
    text-align: left;
  }

  .tt-results-head h2 {
    font-size: 32px;
  }

  .tt-overview h2,
  .tt-result-card h3 {
    font-size: 30px;
  }

  .tt-analysis-head h4 {
    font-size: 28px;
  }

  .tt-analysis-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tt-site-hero {
    padding: 36px 18px 82px;
  }

  .tt-site-hero h1 {
    font-size: 36px;
  }

  .tt-site-hero p {
    font-size: 17px;
  }

  .tt-filter-band,
  .tt-results-band,
  .tt-calc-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tt-filter-shell .tt-panel {
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .tt-calc-proof-section h4 {
    font-size: 18px;
  }

  .tt-filter-form .tt-filter-head h2 {
    font-size: 24px;
  }

  .tt-filter-grid,
  .tt-overview-metrics,
  .tt-result-metrics,
  .tt-component-row dl,
  .tt-standard-summary,
  .tt-segment-grid,
  .tt-calc-overview {
    grid-template-columns: 1fr;
  }

  .tt-button-row {
    width: 100%;
    flex-direction: column;
    align-items: start;
  }

  .tt-results-shell {
    border-radius: 10px;
    padding: 10px;
  }

  .tt-results-head {
    padding: 10px 12px;
  }

  .tt-results-head h2 {
    font-size: 24px;
  }

  .tt-overview h2,
  .tt-result-card h3 {
    font-size: 24px;
  }

  .tt-analysis-dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    padding: 12px;
  }

  .tt-analysis-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tt-analysis-head h4 {
    font-size: 22px;
  }

.tt-analysis-kpi-grid {
  grid-template-columns: 1fr;
}
}

.tt-export-row {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 10px;
}

.tt-sitemap-debug {
  margin: 10px 0 14px;
}

.tt-sitemap-debug-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.tt-sitemap-debug-grid div {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbff;
}

.tt-sitemap-debug-grid strong {
  display: block;
  font-size: 12px;
  color: #475467;
}

.tt-sitemap-debug-grid span {
  display: block;
  margin-top: 2px;
  font-weight: 700;
}

.tt-sitemap-debug-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tt-sitemap-debug-table th,
.tt-sitemap-debug-table td {
  border: 1px solid #dbe4ee;
  padding: 7px 8px;
  vertical-align: top;
  text-align: left;
}

.tt-sitemap-debug-table th {
  background: #eef4fb;
}

.tt-sitemap-debug-table code {
  white-space: normal;
  word-break: break-all;
}
