:root {
  --graphite: #10130f;
  --graphite-soft: #181d17;
  --graphite-lift: #222820;
  --warm: #f2eee3;
  --paper: #fbf9f2;
  --paper-deep: #e6e0d3;
  --lime: #c8ff4d;
  --lime-soft: #e4ff9d;
  --lime-dark: #8dbb28;
  --amber: #f4b85c;
  --ink: #171b16;
  --muted: #687067;
  --white: #ffffff;
  --line: rgba(23, 27, 22, 0.15);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 80px rgba(11, 15, 10, 0.15);
  --max: 1380px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--warm);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
input[type="range"] {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

button {
  border: 0;
}

::selection {
  color: var(--graphite);
  background: var(--lime);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.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;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  color: var(--graphite);
  background: var(--lime);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-strip {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 24px;
  color: rgba(255, 255, 255, 0.72);
  background: #080a08;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.demo-strip span {
  padding: 2px 7px;
  color: var(--graphite);
  background: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
}

.demo-strip p {
  margin-bottom: 0;
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 34px;
  right: 0;
  left: 0;
  height: 84px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  width: min(calc(100% - 52px), var(--max));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--graphite);
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(200, 255, 77, 0.18);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand-copy small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 42px);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 100%;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--lime);
  transition: right 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--white);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--graphite);
  background: var(--lime);
  border-color: var(--lime);
}

.hero {
  position: relative;
  min-height: 840px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 36%, rgba(146, 190, 53, 0.13), transparent 28%),
    linear-gradient(135deg, #10130f 0%, #151a14 48%, #090b09 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: -180px;
  bottom: -330px;
  width: 720px;
  height: 720px;
  content: "";
  border: 1px solid rgba(200, 255, 77, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(200, 255, 77, 0.018), 0 0 0 140px rgba(200, 255, 77, 0.012);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 52px), var(--max));
  min-height: 840px;
  margin: 0 auto;
  padding: 154px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  align-items: center;
  gap: clamp(58px, 8vw, 126px);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.eyebrow span {
  width: 34px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(200, 255, 77, 0.5);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(4.1rem, 7vw, 7.3rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 em {
  display: block;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--graphite);
  background: var(--lime);
  box-shadow: 0 16px 42px rgba(200, 255, 77, 0.12);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--lime-soft);
  box-shadow: 0 18px 48px rgba(200, 255, 77, 0.2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 750;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

.hero-principles {
  margin: 54px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.hero-principles li {
  min-width: 0;
  padding: 20px 16px 0 0;
  display: grid;
  gap: 7px;
}

.hero-principles b {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
}

.hero-principles span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin-bottom: 0;
}

.hero-image-shell {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #22291f;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.45);
  clip-path: polygon(7% 0, 100% 0, 100% 92%, 93% 100%, 0 100%, 0 8%);
}

.hero-image-shell img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.hero-image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 9, 0.04), rgba(9, 11, 9, 0.62)),
    linear-gradient(90deg, rgba(9, 11, 9, 0.3), transparent 52%);
}

.hero-image-shell figcaption {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  color: var(--white);
  background: rgba(13, 17, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.signal-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(200, 255, 77, 0.1), 0 0 20px rgba(200, 255, 77, 0.55);
}

.hero-image-shell figcaption div {
  display: grid;
}

.hero-image-shell figcaption small {
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-image-shell figcaption strong {
  margin-top: 3px;
  font-size: 12px;
}

.hero-readout {
  position: absolute;
  z-index: 3;
  color: var(--graphite);
  background: var(--lime);
  box-shadow: var(--shadow);
  font-family: var(--mono);
}

.hero-readout-main {
  top: 68px;
  left: -54px;
  width: 160px;
  padding: 15px 16px 13px;
}

.hero-readout-main span,
.hero-readout-main strong {
  display: block;
}

.hero-readout-main span {
  font-size: 8px;
  letter-spacing: 0.12em;
}

.hero-readout-main strong {
  margin-top: 7px;
  font-size: 11px;
}

.hero-readout-main i {
  display: block;
  height: 18px;
  margin-top: 10px;
  opacity: 0.55;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 7px);
}

.hero-readout-side {
  right: -28px;
  bottom: 112px;
  width: 96px;
  padding: 14px;
  text-align: center;
}

.hero-readout-side small,
.hero-readout-side b {
  display: block;
}

.hero-readout-side small {
  font-size: 8px;
  letter-spacing: 0.1em;
}

.hero-readout-side b {
  margin-top: 4px;
  font-size: 22px;
}

.calculator-section,
.kits-section {
  padding: 110px max(26px, calc((100vw - var(--max)) / 2));
}

.section-intro {
  max-width: var(--max);
  margin: 0 auto 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.section-index {
  margin-bottom: 18px;
  color: var(--lime-dark);
}

.section-index-light {
  color: var(--lime);
}

.section-intro h2,
.method-intro h2,
.limits-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.section-intro > p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 1.02rem;
}

.calculator-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(440px, 0.93fr);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.load-builder {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(23, 27, 22, 0.12);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading > div {
  display: grid;
  gap: 5px;
}

.panel-heading span,
.result-topline,
.chart-heading,
.board-header {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.panel-heading span {
  color: var(--lime-dark);
}

.panel-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  letter-spacing: -0.045em;
}

.reset-button {
  padding: 7px 0;
  color: var(--muted);
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 750;
}

.reset-button:hover,
.reset-button:focus-visible {
  color: var(--ink);
  border-color: var(--lime-dark);
}

.preset-area {
  margin-top: 34px;
}

.preset-area > p {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #454c43;
  background: #ece8de;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 750;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.preset-button span {
  color: var(--lime-dark);
  font-size: 14px;
}

.preset-button:hover,
.preset-button:focus-visible {
  color: var(--graphite);
  background: var(--lime-soft);
  border-color: var(--lime-dark);
  transform: translateY(-1px);
}

.device-table {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.device-table-head,
.device-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 74px 70px 70px 100px 34px;
  align-items: center;
  gap: 9px;
}

.device-table-head {
  min-height: 38px;
  color: #838a80;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-table-head span:not(:first-child) {
  text-align: center;
}

.device-row {
  min-height: 67px;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 27, 22, 0.09);
  animation: row-in 220ms ease both;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.device-row label {
  min-width: 0;
}

.device-row input {
  width: 100%;
  height: 38px;
  padding: 7px 8px;
  background: #f0ede5;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

.device-row input:hover {
  border-color: rgba(23, 27, 22, 0.22);
}

.device-row input:focus {
  background: var(--white);
  border-color: var(--lime-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(141, 187, 40, 0.16);
}

.device-name-field {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.device-name-field .device-name {
  padding-right: 4px;
  padding-left: 4px;
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.device-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--graphite);
  background: var(--lime);
  font-size: 12px;
}

.device-energy {
  color: #3f463d;
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.remove-device {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #8a8f87;
  background: transparent;
  border: 1px solid transparent;
  font-size: 19px;
  line-height: 1;
}

.remove-device:hover,
.remove-device:focus-visible {
  color: var(--graphite);
  background: #ece8de;
  border-color: var(--line);
}

.mobile-field-label {
  display: none;
}

.add-device {
  width: 100%;
  min-height: 44px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #545b52;
  background: transparent;
  border: 1px dashed rgba(23, 27, 22, 0.28);
  font-size: 11px;
  font-weight: 800;
}

.add-device span {
  color: var(--lime-dark);
  font-size: 18px;
}

.add-device:hover,
.add-device:focus-visible {
  color: var(--graphite);
  background: rgba(200, 255, 77, 0.11);
  border-color: var(--lime-dark);
}

.reserve-control {
  margin-top: 30px;
  padding: 21px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 28px;
  background: #ece8de;
  border-left: 4px solid var(--lime-dark);
}

.reserve-copy label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 850;
}

.reserve-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.range-wrap {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
}

.range-wrap output {
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
}

.range-wrap input {
  width: 100%;
  height: 3px;
  accent-color: var(--lime-dark);
}

.range-labels {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  color: #8a9087;
  font-family: var(--mono);
  font-size: 8px;
}

.panel-note {
  margin: 18px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #747b72;
  font-size: 10px;
}

.panel-note span {
  width: 17px;
  height: 17px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--graphite);
  background: var(--lime-soft);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.result-panel {
  min-width: 0;
  padding: clamp(28px, 4vw, 50px);
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    var(--graphite);
  background-size: 36px 36px;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.55);
}

.result-topline > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.result-topline .signal-dot {
  width: 7px;
  height: 7px;
}

.result-topline small {
  color: rgba(255, 255, 255, 0.32);
  font: inherit;
}

.result-heading {
  margin-top: 32px;
}

.result-heading p {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.result-heading h3 {
  margin-bottom: 4px;
  color: var(--lime);
  font-size: clamp(2.45rem, 4vw, 4rem);
  letter-spacing: -0.065em;
  line-height: 1;
}

.result-heading > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.primary-metrics {
  margin-top: 31px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.primary-metrics article {
  padding: 21px 17px 21px 0;
}

.primary-metrics article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line-light);
}

.primary-metrics article > span,
.primary-metrics p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  text-transform: uppercase;
}

.primary-metrics strong {
  margin: 7px 0 3px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.primary-metrics strong small {
  color: var(--lime);
  font-size: 10px;
}

.primary-metrics p {
  margin-bottom: 0;
  text-transform: none;
}

.energy-dashboard {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.energy-ring-wrap {
  position: relative;
}

.energy-ring {
  width: 178px;
  height: 178px;
  transform: rotate(-90deg);
}

.energy-ring circle {
  fill: none;
  stroke-width: 11;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.09);
}

.ring-progress {
  stroke: var(--lime);
  stroke-linecap: butt;
  stroke-dasharray: 64 100;
  transition: stroke-dasharray 360ms ease;
}

.ring-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-value strong {
  color: var(--white);
  font-family: var(--mono);
  font-size: 24px;
}

.ring-value span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.breakdown-heading {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.breakdown-list {
  display: grid;
  gap: 11px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(80px, 1.3fr) 35px;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}

.breakdown-row > span:first-child {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.65);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-track {
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.breakdown-track i {
  display: block;
  height: 100%;
  background: var(--lime);
}

.breakdown-row b {
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  text-align: right;
}

.load-chart-wrap {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
}

.chart-heading span {
  color: var(--lime);
}

.load-chart {
  width: 100%;
  margin-top: 10px;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.065);
  stroke-width: 1;
}

.chart-label {
  fill: rgba(255, 255, 255, 0.6);
  font-family: var(--sans);
  font-size: 10px;
}

.chart-value {
  fill: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 9px;
}

.chart-bar-track {
  fill: rgba(255, 255, 255, 0.07);
}

.chart-bar {
  fill: var(--lime);
  transform-origin: left;
  animation: chart-grow 380ms ease both;
}

@keyframes chart-grow {
  from { transform: scaleX(0); }
}

.result-footer {
  margin-top: 8px;
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-light);
}

.result-footer span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.result-footer strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 15px;
}

.result-disclaimer {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 8px;
  line-height: 1.5;
}

.method-section {
  padding: 116px max(26px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--graphite-soft);
}

.method-intro {
  max-width: 890px;
}

.method-intro h2 {
  max-width: 800px;
}

.method-intro > p:last-child {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.55);
}

.method-flow {
  margin: 68px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.method-flow li {
  min-height: 144px;
  padding: 27px 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(190px, 0.35fr);
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line-light);
}

.method-flow li > span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 13px;
}

.method-flow li > div {
  display: grid;
  grid-template-columns: 85px minmax(180px, 0.55fr) minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
}

.method-flow small {
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.method-flow h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.method-flow p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.method-flow code {
  justify-self: end;
  padding: 9px 12px;
  color: var(--lime);
  background: rgba(200, 255, 77, 0.06);
  border: 1px solid rgba(200, 255, 77, 0.16);
  font-family: var(--mono);
  font-size: 10px;
}

.kits-section {
  background: var(--paper);
}

.kit-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.kit-card {
  position: relative;
  min-height: 400px;
  padding: 30px 27px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.kit-card::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 5px;
  content: "";
  background: transparent;
}

.kit-card.is-active {
  z-index: 2;
  color: var(--white);
  background: var(--graphite);
  box-shadow: 0 25px 65px rgba(12, 16, 11, 0.22);
  transform: translateY(-10px);
}

.kit-card.is-active::before {
  background: var(--lime);
}

.kit-card-top {
  display: flex;
  justify-content: space-between;
  color: #868d83;
  font-family: var(--mono);
  font-size: 9px;
}

.kit-card.is-active .kit-card-top {
  color: var(--lime);
}

.kit-card h3 {
  margin: 74px 0 15px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.kit-card p {
  color: var(--muted);
  font-size: 12px;
}

.kit-card.is-active p {
  color: rgba(255, 255, 255, 0.52);
}

.kit-card dl {
  margin: auto 0 0;
  border-top: 1px solid var(--line);
}

.kit-card.is-active dl {
  border-color: var(--line-light);
}

.kit-card dl div {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
}

.kit-card.is-active dl div {
  border-color: var(--line-light);
}

.kit-card dt {
  color: var(--muted);
}

.kit-card.is-active dt {
  color: rgba(255, 255, 255, 0.38);
}

.kit-card dd {
  margin: 0;
  font-weight: 800;
}

.kit-card.is-active dd {
  color: var(--lime);
}

.limits-section {
  padding: 110px max(26px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
  background: var(--warm);
}

.limits-copy h2 {
  font-size: clamp(2.9rem, 5.3vw, 5.6rem);
}

.limits-copy > p:not(.section-index) {
  max-width: 610px;
  margin: 30px 0;
  color: var(--muted);
}

.button-dark {
  color: var(--white);
  background: var(--graphite);
}

.button-dark:hover,
.button-dark:focus-visible {
  color: var(--graphite);
  background: var(--lime);
}

.limits-board {
  color: var(--white);
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.board-header {
  min-height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lime);
  border-bottom: 1px solid var(--line-light);
}

.board-header small {
  color: rgba(255, 255, 255, 0.34);
  font: inherit;
}

.limits-board ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.limits-board li {
  min-height: 94px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line-light);
}

.limits-board li > span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
}

.limits-board li p {
  margin-bottom: 0;
  display: grid;
  gap: 3px;
}

.limits-board li strong {
  font-size: 12px;
}

.limits-board li small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.limits-board li > b {
  padding: 5px 8px;
  color: var(--amber);
  border: 1px solid rgba(244, 184, 92, 0.24);
  font-family: var(--mono);
  font-size: 8px;
}

.site-footer {
  padding: 70px max(26px, calc((100vw - var(--max)) / 2)) 25px;
  color: var(--white);
  background: #080a08;
}

.footer-main {
  min-height: 126px;
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  align-items: start;
  gap: 70px;
}

.brand-footer .brand-copy small {
  color: rgba(255, 255, 255, 0.4);
}

.footer-main > p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
}

.portfolio-link {
  padding-bottom: 5px;
  color: var(--lime);
  border-bottom: 1px solid rgba(200, 255, 77, 0.3);
  font-size: 11px;
  font-weight: 800;
}

.portfolio-link:hover,
.portfolio-link:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.assumption-lab {
  margin-top: 22px;
  background: #171b16;
  color: var(--white);
  border-left: 4px solid var(--lime);
}

.assumption-lab summary {
  padding: 15px 17px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.assumption-lab summary::marker {
  color: var(--lime);
}

.coefficient-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coefficient-row > span {
  min-width: 0;
  padding: 14px 15px;
  display: grid;
  gap: 5px;
}

.coefficient-row > span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.coefficient-row small,
.existing-system-fields label > span,
.existing-system-results p > span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coefficient-row b {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
}

.existing-system-fields {
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.existing-system-fields label {
  display: grid;
  gap: 6px;
}

.existing-system-fields input {
  width: 100%;
  height: 39px;
  padding: 7px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 11px;
}

.existing-system-fields input:focus {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.12);
}

.existing-system-results {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.existing-system-results p {
  min-width: 0;
  margin: 0;
  padding: 13px 15px;
  display: grid;
  gap: 4px;
}

.existing-system-results p + p {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.existing-system-results strong {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--mono);
  font-size: 10px;
}

.inverter-check.is-ok strong {
  color: var(--lime);
}

.inverter-check.is-danger strong {
  color: #ff936e;
}

.inverter-check.is-neutral strong {
  color: rgba(255, 255, 255, 0.5);
}

.print-button {
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.46);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.print-button:hover,
.print-button:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

.system-state {
  margin-top: 19px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-state > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.system-state p {
  margin: 0;
  display: grid;
  gap: 2px;
}

.system-state strong {
  font-size: 10px;
}

.system-state small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.system-state.is-ready > span {
  background: var(--lime);
  box-shadow: 0 0 14px rgba(200, 255, 77, 0.55);
}

.system-state.is-warning > span {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(244, 184, 92, 0.45);
}

.system-state.is-warning strong {
  color: var(--amber);
}

.system-state.is-empty > span {
  background: rgba(255, 255, 255, 0.35);
}

.precision-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-light);
}

.precision-strip p {
  margin: 0;
  padding: 13px 0;
  display: grid;
  gap: 3px;
}

.precision-strip p + p {
  padding-left: 24px;
  border-left: 1px solid var(--line-light);
}

.precision-strip span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  text-transform: uppercase;
}

.precision-strip strong {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--mono);
  font-size: 10px;
}

.breakdown-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
}

/* Calculator readability pass — keep dense engineering UI legible. */
.calculator-section .panel-heading span,
.calculator-section .result-topline,
.calculator-section .chart-heading {
  font-size: 12px;
}

.calculator-section .reset-button,
.calculator-section .preset-button,
.calculator-section .add-device {
  min-height: 44px;
  font-size: 16px;
}

.calculator-section .reset-button {
  padding: 9px 0;
}

.calculator-section .preset-area > p,
.calculator-section .result-heading p,
.calculator-section .result-heading > span {
  font-size: 14px;
}

.calculator-section .preset-button {
  padding: 10px 14px;
}

.calculator-section .device-table-head {
  font-size: 12px;
}

.calculator-section .device-row {
  min-height: 75px;
}

.calculator-section .device-row input {
  height: 44px;
  font-size: 16px;
}

.calculator-section .device-name-field .device-name {
  font-size: 16px;
}

.calculator-section .device-energy {
  font-size: 14px;
}

.calculator-section .reserve-copy label {
  font-size: 16px;
}

.calculator-section .reserve-copy p,
.calculator-section .panel-note {
  font-size: 14px;
  line-height: 1.5;
}

.calculator-section .range-wrap output {
  font-size: 20px;
}

.calculator-section .range-labels {
  font-size: 12px;
}

.calculator-section .assumption-lab summary {
  font-size: 16px;
}

.calculator-section .coefficient-row small,
.calculator-section .existing-system-fields label > span,
.calculator-section .existing-system-results p > span {
  font-size: 12px;
  line-height: 1.35;
}

.calculator-section .coefficient-row b,
.calculator-section .existing-system-fields input {
  font-size: 16px;
}

.calculator-section .existing-system-fields input {
  height: 44px;
}

.calculator-section .existing-system-results strong {
  font-size: 14px;
}

.calculator-section .print-button {
  min-height: 44px;
  font-size: 14px;
}

.calculator-section .system-state strong {
  font-size: 14px;
}

.calculator-section .system-state small {
  font-size: 12px;
}

.calculator-section .primary-metrics article > span,
.calculator-section .primary-metrics p {
  font-size: 13px;
}

.calculator-section .primary-metrics strong small {
  font-size: 14px;
}

.calculator-section .precision-strip span {
  font-size: 12px;
}

.calculator-section .precision-strip strong {
  font-size: 14px;
}

.calculator-section .ring-value strong {
  font-size: 28px;
}

.calculator-section .ring-value span {
  font-size: 12px;
}

.calculator-section .breakdown-heading {
  font-size: 12px;
}

.calculator-section .breakdown-row {
  font-size: 13px;
}

.calculator-section .breakdown-row b,
.calculator-section .breakdown-empty {
  font-size: 12px;
}

.calculator-section .chart-label {
  font-size: 14px;
}

.calculator-section .chart-value {
  font-size: 13px;
}

.calculator-section .result-footer span {
  font-size: 14px;
}

.calculator-section .result-footer strong {
  font-size: 18px;
}

.calculator-section .result-disclaimer {
  font-size: 12px;
  line-height: 1.55;
}

@media print {
  @page { margin: 12mm; }

  body {
    color: #111;
    background: #fff;
  }

  .demo-strip,
  .site-header,
  .hero,
  .method-section,
  .kits-section,
  .limits-section,
  .site-footer,
  .preset-area,
  .add-device,
  .panel-actions,
  .panel-note,
  .print-button {
    display: none !important;
  }

  .calculator-section {
    padding: 0;
  }

  .section-intro {
    margin-bottom: 20px;
    display: block;
  }

  .section-intro h2 {
    font-size: 30px;
  }

  .section-intro > p {
    max-width: none;
  }

  .calculator-shell {
    display: block;
    box-shadow: none;
  }

  .load-builder {
    padding: 16px 0;
    border: 0;
  }

  .reserve-control {
    break-inside: avoid;
  }

  .result-panel {
    padding: 22px;
    color: #111;
    background: #f1f1ed;
    break-before: page;
  }

  .result-panel *,
  .result-heading h3,
  .primary-metrics strong small,
  .result-footer strong {
    color: #111 !important;
  }

  .result-panel [class*="track"],
  .ring-track {
    background: #ddd;
    stroke: #ddd;
  }

  .ring-progress {
    stroke: #5f8500;
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
    gap: 50px;
  }

  .hero h1 {
    font-size: clamp(4rem, 7.3vw, 6rem);
  }

  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .result-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
    column-gap: 46px;
  }

  .result-topline,
  .result-heading,
  .system-state,
  .primary-metrics,
  .precision-strip,
  .energy-dashboard,
  .result-footer,
  .result-disclaimer {
    grid-column: 1;
  }

  .load-chart-wrap {
    grid-column: 2;
    grid-row: 2 / span 5;
    margin-top: 28px;
    padding: 0 0 0 30px;
    border-top: 0;
    border-left: 1px solid var(--line-light);
  }

  .energy-dashboard {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .energy-ring {
    width: 140px;
    height: 140px;
  }

  .method-flow li > div {
    grid-template-columns: 65px minmax(180px, 0.55fr) minmax(220px, 1fr);
  }

  .kit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .limits-section {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

@media (max-width: 900px) {
  .demo-strip {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .site-header {
    top: 34px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 150px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 700px;
    margin-left: auto;
  }

  .hero-image-shell,
  .hero-image-shell img {
    min-height: 480px;
    height: 480px;
  }

  .hero-readout-main {
    left: -25px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-intro > p {
    max-width: 650px;
  }

  .result-panel {
    display: block;
  }

  .load-chart-wrap {
    margin-top: 28px;
    padding: 20px 0 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .method-flow li {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .method-flow li > div {
    grid-template-columns: 80px 1fr;
  }

  .method-flow li > div p {
    grid-column: 2;
  }

  .method-flow code {
    grid-column: 2;
    justify-self: start;
  }

  .limits-section {
    grid-template-columns: 1fr;
  }

  .limits-copy {
    max-width: 760px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .portfolio-link {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  .demo-strip {
    min-height: 32px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 9px;
  }

  .demo-strip p {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header {
    top: 32px;
    height: 72px;
  }

  .header-inner,
  .hero-inner {
    width: min(calc(100% - 34px), var(--max));
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .header-cta {
    padding: 9px 11px;
    font-size: 10px;
  }

  .header-cta span {
    display: none;
  }

  .hero-inner {
    padding: 130px 0 52px;
    gap: 46px;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 17vw, 5.1rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-principles {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-principles li {
    grid-template-columns: 32px 1fr;
    align-items: center;
    padding-top: 13px;
  }

  .hero-image-shell,
  .hero-image-shell img {
    min-height: 390px;
    height: 390px;
  }

  .hero-readout-main {
    top: 30px;
    left: -8px;
  }

  .hero-readout-side {
    right: -8px;
    bottom: 92px;
  }

  .calculator-section,
  .kits-section,
  .method-section,
  .limits-section {
    padding: 78px 17px;
  }

  .section-intro h2,
  .method-intro h2,
  .limits-copy h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .load-builder,
  .result-panel {
    padding: 26px 18px;
  }

  .panel-heading {
    display: grid;
  }

  .reset-button {
    justify-self: start;
  }

  .device-table-head {
    display: none;
  }

  .device-table {
    margin-top: 24px;
  }

  .device-row {
    position: relative;
    padding: 16px 37px 15px 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .device-name-field {
    grid-column: 1 / -1;
  }

  .device-row > label:not(.device-name-field) {
    display: grid;
    gap: 4px;
  }

  .mobile-field-label {
    display: block;
    color: #838a80;
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
  }

  .device-energy {
    grid-column: 1 / -1;
    text-align: left;
  }

  .remove-device {
    position: absolute;
    top: 17px;
    right: 0;
  }

  .reserve-control {
    grid-template-columns: 1fr;
  }

  .range-wrap {
    grid-template-columns: 48px 1fr;
  }

  .result-topline small {
    display: none;
  }

  .energy-dashboard {
    grid-template-columns: 1fr;
  }

  .energy-ring-wrap {
    width: 160px;
    margin: 0 auto;
  }

  .energy-ring {
    width: 160px;
    height: 160px;
  }

  .load-chart {
    min-width: 540px;
  }

  .load-chart-wrap {
    overflow-x: auto;
  }

  .result-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .method-flow {
    margin-top: 46px;
  }

  .method-flow li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .method-flow li > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .method-flow li > div p {
    grid-column: 1;
  }

  .method-flow code {
    grid-column: 2;
  }

  .kit-grid {
    grid-template-columns: 1fr;
  }

  .kit-card {
    min-height: 330px;
  }

  .kit-card.is-active {
    transform: none;
  }

  .kit-card h3 {
    margin-top: 48px;
  }

  .limits-board li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .limits-board li > b {
    grid-column: 2;
    justify-self: start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .portfolio-link {
    grid-column: 1;
    justify-self: start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .header-cta {
    display: none;
  }

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

  .primary-metrics {
    grid-template-columns: 1fr;
  }

  .primary-metrics article + article {
    padding-left: 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .panel-actions {
    flex-wrap: wrap;
  }

  .coefficient-row,
  .existing-system-fields,
  .existing-system-results,
  .precision-strip {
    grid-template-columns: 1fr;
  }

  .coefficient-row > span + span,
  .existing-system-results p + p,
  .precision-strip p + p {
    padding-left: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .precision-strip p + p {
    padding-left: 0;
  }

  .calculator-section .device-row input,
  .calculator-section .existing-system-fields input {
    height: 46px;
    font-size: 16px;
  }

  .calculator-section .mobile-field-label {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* VoltHouse inverter audit UI — 2026-10-13. */
button,
input,
select {
  font: inherit;
}

.header-actions {
  min-width: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.portfolio-back {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.portfolio-back:hover,
.portfolio-back:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

.demo-strip .language-switcher {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: stretch;
  white-space: nowrap;
}

.language-switcher a {
  min-width: 42px;
  min-height: 24px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.language-switcher a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.language-switcher a[aria-current="page"] {
  color: var(--graphite);
  background: var(--lime);
  cursor: default;
}

.language-switcher a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.device-row > .device-advanced-toggle,
.device-row > .device-advanced,
.device-row > .device-error {
  grid-column: 1 / -1;
}

.device-advanced-toggle {
  min-height: 44px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #495047;
  background: #ece8de;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.device-advanced-toggle:hover,
.device-advanced-toggle:focus-visible {
  color: var(--graphite);
  background: var(--lime-soft);
  border-color: var(--lime-dark);
}

.device-advanced {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: #f0ede5;
  border-left: 3px solid var(--lime-dark);
}

.device-advanced[hidden],
.manual-inverter[hidden],
.input-errors[hidden],
.battery-compatibility[hidden] {
  display: none !important;
}

.device-advanced label {
  display: grid;
  gap: 6px;
  color: #555d53;
  font-size: 12px;
  font-weight: 700;
}

.device-advanced > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #586056;
  font-size: 12px;
}

.device-error {
  margin: 0;
  padding: 9px 11px;
  color: #8c2418;
  background: #fff0ec;
  border-left: 3px solid #b13a2c;
  font-size: 13px;
  font-weight: 750;
}

.device-row input[aria-invalid="true"],
.manual-inverter input[aria-invalid="true"],
.existing-system-fields input[aria-invalid="true"] {
  border-color: #b13a2c !important;
  box-shadow: 0 0 0 3px rgba(177, 58, 44, 0.14) !important;
}

.remove-device {
  width: 44px;
  height: 44px;
}

.device-table-head,
.device-row {
  grid-template-columns: minmax(170px, 1fr) 74px 70px 70px 100px 44px;
}

.existing-system-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inverter-step {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 3px solid var(--graphite);
}

.inverter-heading {
  margin-bottom: 20px;
}

.inverter-controls {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(260px, 1.2fr);
  gap: 14px;
}

.model-select-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #545b52;
  font-size: 12px;
  font-weight: 800;
}

.model-select-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 38px 10px 12px;
  color: var(--ink);
  background: #ece8de;
  border: 1px solid rgba(23, 27, 22, 0.22);
  border-radius: 0;
  font-size: 15px;
  font-weight: 750;
}

.model-select-field select:focus {
  border-color: var(--lime-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(141, 187, 40, 0.16);
}

.model-passport {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--white);
  background: var(--graphite-soft);
  border-left: 4px solid var(--lime);
  overflow-wrap: anywhere;
}

.model-passport strong {
  color: var(--lime);
  font-size: 14px;
}

.model-passport span,
.model-passport a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.model-passport a {
  width: fit-content;
  margin-top: 4px;
  border-bottom: 1px solid rgba(200, 255, 77, 0.42);
}

.start-mode {
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.start-mode legend {
  width: 100%;
  margin-bottom: 8px;
  color: #555d53;
  font-size: 12px;
  font-weight: 800;
}

.start-mode label {
  min-width: 0;
  min-height: 62px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0ede5;
  border: 1px solid rgba(23, 27, 22, 0.13);
  cursor: pointer;
}

.start-mode input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--lime-dark);
}

.start-mode label span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.start-mode strong {
  font-size: 13px;
}

.start-mode small {
  color: #61685f;
  font-size: 11px;
  line-height: 1.35;
}

.manual-inverter {
  margin-top: 14px;
  padding: 16px;
  background: #171b16;
  color: var(--white);
  border-left: 4px solid var(--amber);
}

.manual-inverter > p,
.field-hint {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.manual-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 750;
}

.manual-grid input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.input-errors {
  margin-top: 14px;
  padding: 12px 14px;
  color: #741e14;
  background: #fff0ec;
  border: 1px solid #d66c5d;
  font-size: 13px;
  font-weight: 750;
}

.inverter-verdict {
  margin-top: 18px;
  padding: 18px;
  border: 2px solid #899086;
  background: #f3f1ea;
}

.inverter-verdict.is-ready {
  border-color: #668c18;
  background: #f1f9de;
}

.inverter-verdict.is-warning {
  border-color: #b57408;
  background: #fff4d6;
}

.inverter-verdict.is-danger {
  border-color: #b13a2c;
  background: #fff0ec;
}

.verdict-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.verdict-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: #737b71;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
}

.is-ready .verdict-icon { background: #55780f; }
.is-warning .verdict-icon { color: #201604; background: var(--amber); }
.is-danger .verdict-icon { background: #a52e21; }

.verdict-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.verdict-heading strong {
  color: var(--ink);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.verdict-heading small {
  color: #4f574d;
  font-size: 12px;
}

.power-scale {
  margin-top: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(23, 27, 22, 0.14);
}

.scale-heading {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4d554b;
  font-size: 12px;
  font-weight: 800;
}

.scale-row {
  display: grid;
  grid-template-columns: 58px minmax(100px, 1fr) minmax(78px, auto);
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.scale-row + .scale-row {
  margin-top: 9px;
}

.scale-row > strong {
  text-align: right;
  white-space: nowrap;
}

.scale-track {
  position: relative;
  height: 12px;
  overflow: visible;
  background: #d9ddd5;
}

.scale-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  max-width: 100%;
  display: block;
  background: #5d8114;
  transition: width 180ms ease;
}

.scale-fill-peak { background: #d28513; }
.is-danger .scale-fill-work,
.is-danger .scale-fill-peak { background: #b13a2c; }

.scale-limit {
  position: absolute;
  z-index: 2;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--graphite);
  transform: translateX(-1px);
}

.scale-axis {
  margin: 5px 0 0 68px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #5b6358;
  font-family: var(--mono);
  font-size: 10px;
}

.inverter-metrics {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 27, 22, 0.15);
  border-left: 1px solid rgba(23, 27, 22, 0.15);
}

.inverter-metrics div {
  min-width: 0;
  padding: 11px;
  border-right: 1px solid rgba(23, 27, 22, 0.15);
  border-bottom: 1px solid rgba(23, 27, 22, 0.15);
}

.inverter-metrics dt {
  color: #5c645a;
  font-size: 10px;
  text-transform: uppercase;
}

.inverter-metrics dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.verdict-reasons {
  margin: 15px 0 0;
  padding-left: 20px;
  color: #3d453b;
  font-size: 12px;
}

.verdict-reasons li + li {
  margin-top: 6px;
}

.battery-compatibility,
.battery-current-note {
  margin: 13px 0 0;
  padding: 10px 12px;
  color: #394137;
  background: rgba(255, 255, 255, 0.62);
  border-left: 3px solid #7a8277;
  font-size: 12px;
}

.battery-compatibility.is-ok { border-color: #668c18; }
.battery-compatibility.is-danger { color: #741e14; border-color: #b13a2c; background: #ffe1da; font-weight: 800; }

.model-sources {
  margin-top: 15px;
  border: 1px solid rgba(23, 27, 22, 0.17);
}

.model-sources summary {
  min-height: 44px;
  padding: 11px 13px;
  color: #41483f;
  background: #ece8de;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.model-reference-list {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.model-reference-list article {
  min-width: 0;
  padding-top: 12px;
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(23, 27, 22, 0.13);
  overflow-wrap: anywhere;
}

.model-reference-list strong { font-size: 13px; }
.model-reference-list span,
.model-reference-list small { color: #535b51; font-size: 11px; }
.model-reference-list a { width: fit-content; color: #426000; border-bottom: 1px solid #7ca51f; font-size: 11px; font-weight: 800; }

.system-state.is-danger > span {
  background: #ff735f;
  box-shadow: 0 0 14px rgba(255, 115, 95, 0.55);
}

.system-state.is-danger strong { color: #ff9a8b; }

.precision-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-heading h3,
.result-heading > span,
.system-state p,
.result-footer,
.model-passport,
.inverter-verdict {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-panel .result-heading p,
.result-panel .result-heading > span,
.result-panel .primary-metrics article > span,
.result-panel .primary-metrics p,
.result-panel .precision-strip span,
.result-panel .system-state small,
.result-panel .result-disclaimer {
  color: rgba(255, 255, 255, 0.68);
}

.load-chart-wrap:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .portfolio-back { display: none; }
  .header-actions { justify-self: end; }
}

@media (max-width: 900px) {
  .demo-strip {
    min-height: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    white-space: normal;
  }

  .demo-strip p {
    flex: 1 1 420px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .site-header {
    position: relative;
    top: auto;
    background: var(--graphite);
  }

  .hero-inner { padding-top: 76px; }
  .inverter-controls { grid-template-columns: 1fr; }
  .manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .demo-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .demo-strip p {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 10px;
    line-height: 1.35;
  }

  .demo-strip .language-switcher {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .hero-inner { padding-top: 56px; }
  .inverter-step { margin-top: 34px; padding-top: 30px; }
  .start-mode,
  .manual-grid,
  .device-advanced,
  .inverter-metrics { grid-template-columns: 1fr; }
  .model-select-field select { font-size: 16px; }
  .start-mode label { min-height: 68px; }
  .device-row { padding-right: 50px; }
  .device-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .remove-device { top: 13px; }
  .precision-strip { grid-template-columns: 1fr; }
  .scale-row { grid-template-columns: 52px minmax(72px, 1fr) minmax(72px, auto); gap: 7px; }
  .scale-axis { margin-left: 59px; }
  .power-scale { padding: 12px 10px; }
  .verdict-heading strong { font-size: 16px; }
  .inverter-verdict { padding: 14px; }
}

@media (max-width: 420px) {
  .header-actions { display: none; }
  .header-inner { grid-template-columns: 1fr; }
  .scale-row { grid-template-columns: 44px minmax(64px, 1fr); }
  .scale-row > strong { grid-column: 2; text-align: left; }
  .scale-axis { margin-left: 51px; }
  .result-heading h3 { font-size: 2.25rem; }
}

@media print {
  .remove-device,
  .device-advanced-toggle,
  .model-select-field,
  .start-mode,
  .manual-inverter,
  .model-sources,
  .input-errors {
    display: none !important;
  }

  .device-row,
  .inverter-step,
  .inverter-verdict,
  .power-scale,
  .inverter-metrics,
  .model-passport,
  .battery-compatibility {
    break-inside: avoid;
  }

  .device-advanced[hidden] {
    display: grid !important;
  }

  .device-row {
    grid-template-columns: minmax(190px, 1fr) 75px 65px 65px 95px;
    padding-right: 0;
  }

  .device-advanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #f3f3f0 !important;
  }

  .device-advanced label[data-print-value] input {
    display: none !important;
  }

  .device-advanced label[data-print-value]::after {
    content: attr(data-print-value);
    min-height: 32px;
    padding: 7px 8px;
    display: block;
    color: #111 !important;
    background: #fff !important;
    border: 1px solid #bbb;
    font-family: var(--mono);
    font-size: 11px;
    text-align: center;
  }

  .inverter-step {
    margin-top: 24px;
    padding-top: 20px;
  }

  .inverter-controls {
    display: block;
  }

  .model-passport,
  .inverter-verdict,
  .power-scale,
  .battery-compatibility,
  .battery-current-note {
    color: #111 !important;
    background: #fff !important;
    border-color: #555 !important;
  }

  .model-passport *,
  .inverter-verdict *,
  .battery-compatibility,
  .battery-current-note {
    color: #111 !important;
  }

  .scale-fill,
  .scale-fill-peak {
    background: #777 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .scale-limit { background: #000 !important; }
  .load-chart-wrap { overflow: visible; }
  .load-chart { min-width: 0; width: 100%; }
  .chart-label,
  .chart-value { fill: #111 !important; }
}
