@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Fraunces:wght@600;700&display=swap");

.pv-calculator {
  position: relative;
  font-family: "Outfit", "Helvetica Neue", sans-serif;
  color: #1f2520;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(120deg, #f8f3ea 0%, #f4efe6 50%, #fdf9f3 100%);
  box-shadow: 0 20px 50px rgba(24, 24, 24, 0.12);
  overflow: hidden;
  margin: 24px 0;
}

.pv-calculator * {
  box-sizing: border-box;
}

.pv-bg {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 196, 96, 0.4), rgba(255, 196, 96, 0) 70%);
  pointer-events: none;
}

.pv-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pv-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(19, 19, 19, 0.08);
  border: 1px solid rgba(215, 205, 190, 0.6);
  animation: pv-rise 0.8s ease both;
}

.pv-card.pv-wide {
  grid-column: span 1;
}

.pv-wizard .pv-grid {
  display: block;
}

.pv-wizard:not(.pv-wizard-ready) .pv-card {
  display: none;
}

.pv-wizard:not(.pv-wizard-ready) .pv-card[data-step="0"] {
  display: block;
}

.pv-wizard.pv-wizard-ready .pv-card {
  display: block;
}

.pv-card.is-step-hidden {
  display: none;
}

.pv-wizard.pv-wizard-ready .pv-card.is-step-hidden {
  display: none;
}

.pv-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.pv-step-item {
  border: 1px solid rgba(210, 195, 175, 0.9);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b5d49;
  cursor: pointer;
}

.pv-step-item.is-active {
  background: #1f2520;
  color: #fff;
  border-color: transparent;
}

.pv-step-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.pv-step-index {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(107, 93, 73, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.pv-step-item.is-active .pv-step-index {
  background: rgba(255, 255, 255, 0.2);
}

.pv-step-nav {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pv-step-nav .pv-cta[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pv-step-nav .pv-cta.is-hidden {
  display: none;
}

.pv-card:nth-child(2) {
  animation-delay: 0.08s;
}

@keyframes pv-rise {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.pv-card-header-main {
  flex: 1;
  min-width: 0;
}

.pv-card-header h2 {
  font-family: "Fraunces", serif;
  font-size: 26px;
  margin: 6px 0 8px;
}

.pv-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: #c77a2a;
  margin: 0 0 6px;
}

.pv-sub {
  margin: 0 0 18px;
  color: #5b605c;
  font-size: 14px;
}

.pv-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.pv-card-link {
  font-size: 12px;
  color: #6b5d49;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(210, 195, 175, 0.9);
}

.pv-card-link:hover {
  color: #3e3326;
  border-color: rgba(180, 160, 130, 0.9);
}

.pv-card-gear {
  border: 1px solid rgba(210, 195, 175, 0.9);
  background: #fff;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #6b5d49;
}

.pv-card-gear:hover {
  color: #3e3326;
  border-color: rgba(180, 160, 130, 0.9);
}

.pv-card-link .dashicons,
.pv-card-gear .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.pv-toggle {
  display: inline-flex;
  gap: 6px;
  background: #f5efe6;
  padding: 4px;
  border-radius: 999px;
}

.pv-consumption .pv-toggle {
  margin-bottom: 18px;
}

.pv-toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: #5b605c;
  transition: all 0.2s ease;
}

.pv-heat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pv-heat-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pv-night-demand-inline {
  font-size: 11px;
  color: #6a6f6b;
  font-weight: 600;
  white-space: nowrap;
}

.pv-night-demand-inline span {
  color: #1f2520;
  font-weight: 700;
}

.pv-heat-toggle .pv-toggle-btn {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.pv-toggle-btn.is-active {
  background: #fff;
  color: #1f2520;
  box-shadow: 0 6px 16px rgba(31, 37, 32, 0.12);
}

.pv-heat-toggle .pv-toggle-btn.is-active {
  background: #1f2520;
  color: #fff;
  box-shadow: none;
}

.pv-finance-toggle .pv-toggle-btn.is-active {
  background: #1f2520;
  color: #fff;
  box-shadow: none;
}

.pv-slider-block {
  margin-bottom: 18px;
}

.pv-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.pv-label {
  font-weight: 600;
  color: #3f463f;
}

.pv-value {
  font-weight: 700;
  background: #f6f1ea;
  border: 1px solid rgba(205, 196, 184, 0.8);
  padding: 6px 14px;
  border-radius: 999px;
  min-width: 90px;
  text-align: center;
}

.pv-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  outline: none;
  transition: opacity 0.2s ease;
}

.pv-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7a24f, #e5b66f);
}

.pv-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7a24f, #e5b66f);
}

.pv-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b0752a;
  box-shadow: 0 6px 14px rgba(176, 117, 42, 0.3);
  cursor: pointer;
}

.pv-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b0752a;
  box-shadow: 0 6px 14px rgba(176, 117, 42, 0.3);
  cursor: pointer;
}

.pv-slider.is-disabled {
  opacity: 1;
  cursor: not-allowed;
  filter: none;
}

.pv-slider.is-disabled::-webkit-slider-runnable-track,
.pv-slider:disabled::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, rgba(215, 162, 79, 0.3), rgba(229, 182, 111, 0.3));
}

.pv-slider.is-disabled::-moz-range-track,
.pv-slider:disabled::-moz-range-track {
  background: linear-gradient(90deg, rgba(215, 162, 79, 0.3), rgba(229, 182, 111, 0.3));
}

.pv-slider.is-disabled::-webkit-slider-thumb,
.pv-slider.is-disabled::-moz-range-thumb,
.pv-slider:disabled::-webkit-slider-thumb,
.pv-slider:disabled::-moz-range-thumb {
  cursor: not-allowed;
  box-shadow: none;
  border-color: rgba(176, 117, 42, 0.3);
}

.pv-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.pv-note {
  margin: -6px 0 0;
  font-size: 12px;
  color: #8a5a26;
  grid-column: 1 / -1;
}

.pv-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #5b605c;
  font-weight: 600;
}

.pv-consumption .pv-inputs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.pv-field-slider .pv-slider-header {
  margin-bottom: 0;
}

.pv-number {
  border: 1px solid rgba(205, 196, 184, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2520;
  background: #fff;
  width: 100%;
  min-width: 0;
  appearance: textfield;
}

.pv-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8a5a26 50%),
    linear-gradient(135deg, #8a5a26 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
  width: 150px;
}

.pv-number-compact {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 12px;
  max-width: 170px;
}

.pv-metric-input {
  gap: 10px;
}

.pv-input-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pv-unit {
  font-size: 12px;
  color: #5b605c;
  font-weight: 600;
}

.pv-number:focus {
  outline: 2px solid rgba(199, 122, 42, 0.3);
}

.pv-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.pv-results-grid.pv-compact {
  margin-top: 10px;
}

.pv-metric-duo {
  gap: 6px;
}

.pv-metric-inline {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pv-sub-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a5a26;
  font-weight: 700;
}

.pv-desired-field {
  display: flex;
}

.pv-desired-storage {
  display: flex;
}

.pv-inline-value {
  font-size: 14px;
  font-weight: 700;
  color: #1f2520;
}

.pv-hidden {
  display: none !important;
}

.pv-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.pv-rate-card {
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.pv-rate-card span {
  font-size: 12px;
  color: #5b605c;
}

.pv-rate-card strong {
  font-size: 20px;
}

.pv-rate-note {
  font-size: 11px;
  color: #6a6f6b;
}

.pv-rate-hint {
  display: block;
  font-size: 11px;
  color: #6a6f6b;
  margin-top: 4px;
}

.pv-rate-total {
  display: block;
  font-size: 12px;
  color: #1f2520;
  margin-top: 6px;
  font-weight: 600;
}

.pv-rate-disclaimer {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6a6f6b;
  line-height: 1.5;
}

.pv-rate-red {
  background: #fff3f3;
  border: 1px solid rgba(214, 104, 104, 0.4);
  color: #c03a3a;
}

.pv-rate-green {
  background: #effaf3;
  border: 1px solid rgba(84, 173, 112, 0.35);
  color: #1f7a3b;
}

.pv-disclaimer-text {
  margin: 0 0 16px;
  font-size: 13px;
  color: #5b605c;
  line-height: 1.5;
}

.pv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1f2520;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

.pv-cta:hover {
  opacity: 0.9;
}

.pv-cta-light {
  background: #fff;
  color: #1f2520;
  border: 1px solid rgba(205, 196, 184, 0.8);
}

.pv-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pv-modal.is-open {
  display: flex;
}

.pv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 15, 0.45);
}

.pv-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px 20px;
  width: min(520px, 92vw);
  box-shadow: 0 18px 40px rgba(12, 10, 8, 0.25);
  border: 1px solid rgba(200, 185, 160, 0.5);
  z-index: 1;
}

.pv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pv-modal-header strong {
  font-size: 18px;
}

.pv-modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #6b5d49;
}

.pv-modal-close:hover {
  color: #3e3326;
}

.pv-modal-body p {
  margin: 1em 0 0;
  color: #5b605c;
  font-size: 14px;
}

.pv-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pv-modal-row .pv-value {
  font-weight: 600;
  color: #1f2520;
}

.pv-modal-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6b6f6b;
  margin-top: 6px;
}

.pv-modal-field {
  margin-bottom: 14px;
}

.pv-modal-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #5b605c;
}

.pv-modal-conditional {
  margin-top: 10px;
}

.pv-modal-conditional.is-hidden {
  display: none;
}

.pv-desired-field.is-hidden {
  display: none;
}

.pv-modal-hint {
  margin: 1em 0 0;
  color: #6b6f6b;
  font-size: 12px;
  line-height: 1.4;
}

.pv-richtext {
  line-height: 1.5;
}

.pv-richtext p {
  margin: 0 0 0.55em;
}

.pv-richtext p:last-child {
  margin-bottom: 0;
}

.pv-richtext a {
  color: var(--fpr-link-color, #9c6420);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pv-richtext a:hover,
.pv-richtext a:focus {
  color: var(--fpr-link-color, #9c6420);
  filter: brightness(0.82);
}

.pv-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pv-share-status {
  font-size: 12px;
  color: #6a6f6b;
}

.pv-share-row-admin {
  margin-top: 10px;
}

.pv-positions-btn {
  padding-inline: 14px;
}

.pv-modal-positions .pv-modal-dialog {
  width: min(980px, 94vw);
}

.pv-modal-positions .pv-modal-body {
  max-height: 68vh;
  overflow: auto;
  padding-right: 2px;
}

.pv-modal-sections {
  display: grid;
  gap: 14px;
}

.pv-modal-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1f2520;
}

.pv-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pv-modal-table th,
.pv-modal-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-top: 1px solid rgba(205, 196, 184, 0.6);
}

.pv-modal-table th {
  background: #f6f1ea;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6a6f6b;
  border-top: 0;
}

.pv-modal-table td small {
  color: #6b6f6b;
}

.pv-modal-table-calc th:nth-child(2),
.pv-modal-table-calc td:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

.pv-modal-table-calc th:last-child,
.pv-modal-table-calc td:last-child {
  text-align: right;
  white-space: nowrap;
}

.pv-modal-table-calc tfoot th {
  background: #f2ece2;
  font-size: 12px;
  color: #3f463f;
}

.pv-calc-group-row td {
  background: #faf7f1;
}

.pv-calc-group-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #1f2520;
  cursor: pointer;
}

.pv-calc-group-toggle::before {
  content: "▸";
  display: inline-block;
  width: 1em;
  margin-right: 4px;
  color: #6a6f6b;
}

.pv-calc-group-toggle[aria-expanded="true"]::before {
  content: "▾";
}

.pv-calc-detail-row.is-hidden {
  display: none;
}

.pv-calc-detail-row td:first-child {
  padding-left: 26px;
  color: #555d57;
}

.pv-admin-options-sections {
  display: grid;
  gap: 14px;
}

.pv-admin-options-group h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1f2520;
}

.pv-admin-options-empty {
  margin: 0;
  font-size: 13px;
  color: #6a6f6b;
}

.pv-admin-options-list {
  border: 1px solid rgba(205, 196, 184, 0.8);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.pv-admin-option-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 110px;
  gap: 12px;
  padding: 0 12px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6a6f6b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pv-admin-option-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid rgba(205, 196, 184, 0.45);
  cursor: pointer;
}

.pv-admin-option-row:first-child {
  border-top: none;
}

.pv-admin-option-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.pv-admin-option-main input[type="checkbox"] {
  margin-top: 2px;
}

.pv-admin-option-select {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.pv-admin-option-code {
  min-width: 82px;
  font-size: 11px;
  color: #6a6f6b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.pv-admin-option-label {
  font-size: 13px;
  color: #1f2520;
  line-height: 1.35;
}

.pv-admin-option-price {
  font-size: 13px;
  font-weight: 700;
  color: #1f2520;
  white-space: nowrap;
}

.pv-admin-option-row-has-qty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 110px;
  align-items: center;
}

.pv-admin-option-qty-wrap {
  display: flex;
  justify-content: center;
}

.pv-admin-option-qty {
  width: 72px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid rgba(205, 196, 184, 0.9);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
}

.pv-savings-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pv-savings-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.4fr);
  gap: 14px;
}

.pv-savings-col {
  min-width: 0;
}

.pv-savings-base-card {
  border: 1px solid rgba(205, 196, 184, 0.65);
  border-radius: 14px;
  background: #fdf9f2;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv-savings-base-title {
  font-size: 13px;
  color: #595f5a;
  font-weight: 700;
}

.pv-savings-base-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.pv-savings-base-note {
  margin: 0;
  font-size: 12px;
  color: #6b716d;
  line-height: 1.4;
}

.pv-savings-calc-title {
  margin: 0 0 8px;
  font-size: 15px;
  color: #1f2520;
}

.pv-savings-withpv-card {
  border: 1px solid rgba(205, 196, 184, 0.65);
  border-radius: 14px;
  background: #fdf9f2;
  padding: 14px 14px 12px;
}

.pv-savings-withpv-title {
  display: block;
  font-size: 13px;
  color: #595f5a;
  font-weight: 700;
  margin-bottom: 8px;
}

.pv-savings-withpv-list {
  display: flex;
  flex-direction: column;
}

.pv-savings-withpv-item {
  padding: 10px 0;
  border-top: 1px solid rgba(205, 196, 184, 0.6);
}

.pv-savings-withpv-item:first-child {
  border-top: 0;
  padding-top: 2px;
}

.pv-savings-withpv-item:last-child {
  padding-bottom: 2px;
}

.pv-savings-withpv-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
}

.pv-savings-withpv-main span {
  font-size: 12px;
  color: #595f5a;
  font-weight: 600;
}

.pv-savings-withpv-main strong {
  font-size: 16px;
  color: #1f2520;
  font-weight: 700;
}

.pv-savings-withpv-card .pv-amount-expense {
  color: #1f2520 !important;
}

.pv-savings-withpv-item small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #737873;
  line-height: 1.4;
}

.pv-strike-note {
  text-decoration: line-through;
  color: #7f847f;
}

.pv-savings-vat-meta {
  margin-top: 2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  color: #666c67;
  width: 100%;
}

.pv-savings-vat-label {
  min-width: 0;
}

.pv-savings-vat-value {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.pv-savings-lines {
  display: grid;
  gap: 8px;
}

.pv-savings-finance-control {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(205, 196, 184, 0.65);
  background: #f8f3ea;
}

.pv-finance-years.is-hidden {
  display: none;
}

.pv-rate-special.is-hidden {
  display: none;
}

.pv-savings-special.is-hidden {
  display: none;
}

.pv-savings-col-calc .pv-savings-special {
  margin-bottom: 10px;
}

.pv-savings-duration-section {
  margin-top: 10px;
  margin-bottom: 12px;
}

.pv-savings-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(205, 196, 184, 0.65);
  border-radius: 12px;
  background: #fdf9f2;
}

.pv-savings-line span {
  font-size: 12px;
  color: #595f5a;
  font-weight: 600;
}

.pv-savings-line strong {
  font-size: 16px;
  color: #1f2520;
  font-weight: 700;
}

.pv-amount-expense {
  color: #c03a3a !important;
}

.pv-amount-income {
  color: #1f7a3b !important;
}

.pv-savings-line small {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #737873;
}

.pv-savings-formula {
  margin: 0;
  font-size: 12px;
  color: #5d625f;
}

.pv-savings-hero {
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(205, 196, 184, 0.8);
  background: #f4efe6;
}

.pv-savings-col-calc .pv-savings-hero {
  margin-top: 10px;
  margin-bottom: 12px;
}

.pv-savings-hero span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5d625f;
}

.pv-savings-hero strong {
  font-size: 34px;
  line-height: 1.15;
}

.pv-savings-hero.is-positive {
  background: linear-gradient(120deg, #e9f8ee, #d6f1de);
  border-color: rgba(84, 173, 112, 0.35);
}

.pv-savings-hero.is-positive strong {
  color: #1f7a3b;
}

.pv-savings-hero.is-negative {
  background: linear-gradient(120deg, #fff1f1, #ffe3e3);
  border-color: rgba(214, 104, 104, 0.35);
}

.pv-savings-hero.is-negative strong {
  color: #c03a3a;
}

.pv-metric {
  background: #f7f2ea;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #5b605c;
  font-weight: 600;
  border: 1px solid rgba(205, 196, 184, 0.6);
}

@media (max-width: 860px) {
  .pv-savings-layout {
    grid-template-columns: 1fr;
  }

  .pv-savings-base-card strong {
    font-size: 24px;
  }
}

.pv-metric strong {
  font-size: 20px;
  color: #1f2520;
}

.pv-metric.prominent {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #fff4e0, #ffe7c0);
  border: 1px solid rgba(176, 117, 42, 0.3);
  box-shadow: 0 14px 30px rgba(176, 117, 42, 0.2);
  padding: 18px 20px;
}

.pv-results .pv-metric.prominent {
  grid-column: auto;
}

.pv-metric.prominent strong {
  font-size: 26px;
}

.pv-highlight {
  background: #fff3f3;
  border: 1px solid rgba(214, 104, 104, 0.4);
}

.pv-highlight strong {
  color: #c03a3a;
}

.pv-link {
  font-weight: 700;
  color: #b0752a;
  text-decoration: none;
}

.pv-link:hover {
  text-decoration: underline;
}

.pv-system .pv-sub {
  margin-bottom: 12px;
}

.pv-orientation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pv-orientation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pv-orientation-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pv-orientation-btn {
  border: 1px solid rgba(205, 196, 184, 0.8);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: #5b605c;
  transition: all 0.2s ease;
}

.pv-orientation-btn.is-active {
  background: #1f2520;
  color: #fff;
  border-color: #1f2520;
}

.pv-orientation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #5b605c;
  font-weight: 600;
}

.pv-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8a5a26;
  display: none;
}

@media (max-width: 720px) {
  .pv-consumption .pv-inputs {
    grid-template-columns: 1fr;
  }

  .pv-orientation-header,
  .pv-heat-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .pv-calculator {
    padding: 20px;
  }

  .pv-card-header h2 {
    font-size: 22px;
  }

  .pv-sub {
    font-size: 18px;
    line-height: 1.35;
  }

  .pv-slider::-webkit-slider-thumb {
    width: 25px;
    height: 25px;
    margin-top: -9px;
  }

  .pv-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-card {
    animation: none;
  }
}
