.public-dess .home-wrap {
  max-width: 1180px;
}
.public-dess .home-lead {
  max-width: 820px;
}
.dess-workspace .home-wrap {
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
}
.dess-workspace .home-section {
  padding-top: 42px;
}
.dess-workspace h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  margin-bottom: 18px;
}
.dess-workspace .home-lead {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.dess-workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.dess-input-column,
.dess-output-column {
  min-width: 0;
}
.dess-output-column {
  position: static;
}
.dess-output-sticky {
  /* The document is the only vertical scroll area. */
  overflow: visible;
}
.dess-input-column .dess-equipment-heading {
  margin-bottom: 16px;
}
.dess-input-column .dess-equipment-heading h2 {
  font-size: 21px;
}
.dess-input-column .dess-equipment-heading > p:last-child {
  display: none;
}
.dess-input-column .dess-equipment-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.dess-input-column .dess-equipment-grid .dess-equipment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dess-input-column .dess-grid-fields .vrm-field:last-child {
  grid-column: 1/-1;
}
.dess-input-column fieldset {
  background: #fff;
  border: 1px solid #e0e6da;
  border-radius: 16px;
  padding: 20px;
  min-width: 0;
  margin: 0;
}
.dess-input-column legend {
  font-size: 15px;
  font-weight: 650;
  padding: 0 6px;
}
.dess-input-column .vrm-field {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  gap: 6px;
}
.dess-input-column input,
.dess-input-column select {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-weight: 400;
  background: #f7f8f3;
  border: 1px solid #d7ddd0;
  border-radius: 10px;
  color: #183d32;
}
.dess-input-column input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
  flex: none;
}
.dess-input-column summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 0;
}
.dess-input-column .small,
.dess-input-column details p {
  font-size: 12px;
  line-height: 1.6;
}
.dess-input-column .dess-time-summary {
  grid-template-columns: 1fr;
  padding: 12px;
}
.dess-input-column .dess-equipment-advanced {
  background: #fff;
  padding: 0 16px;
}
.dess-input-column .dess-equipment-advanced > summary span {
  display: block;
  font-size: 12px;
  margin: 5px 0 0;
}
.dess-input-column .dess-equipment-results[hidden] {
  display: none;
}
.dess-preferences {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.dess-preferences .vrm-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.dess-copy-guide {
  position: sticky;
  top: 100px;
  z-index: 2;
  background: #163f32;
  color: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 18px #12382c16;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.dess-copy-guide p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.dess-copy-guide .home-eyebrow {
  color: #d4f394;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.dess-guide-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dess-copy-guide .btn {
  font-size: 13px;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
}
.dess-copy-guide .btn.primary {
  background: #d3f18d;
  color: #143c30;
  border-color: #d3f18d;
}
.dess-copy-guide .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #8fae9c;
}
.dess-copy-guide progress {
  width: 100%;
  height: 5px;
  grid-column: 1/-1;
  accent-color: #d3f18d;
}
.dess-copy-guide [role='status'] {
  grid-column: 1/-1;
}
.dess-vrm-card {
  border: 1px solid #e0e6da;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 16px;
}
.dess-vrm-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #f9faf6;
  border-bottom: 1px solid #e7ece2;
}
.dess-vrm-card header p {
  font-size: 13px;
  margin: 4px 0 0;
  line-height: 1.5;
}
.dess-vrm-card header .home-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.dess-vrm-card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 3px 0;
  color: #173e32;
}
.dess-vrm-card [data-card-count] {
  font-size: 11px;
  background: #edf2e7;
  padding: 5px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.dess-vrm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #edf0e9;
  border-left: 3px solid transparent;
  scroll-margin-top: 270px;
}
.dess-vrm-row:last-child {
  border-bottom: 0;
}
.dess-vrm-row:nth-child(even) {
  background: #fcfcf9;
}
.dess-vrm-row.is-current {
  border-left-color: #9bc147;
  background: #f4f9e8;
}
.dess-vrm-row.is-done [data-done] {
  color: #2e7152;
}
.dess-row-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.dess-row-label label {
  max-width: calc(100% - 45px);
  line-height: 1.5;
}
.dess-info {
  border: 1px solid #b6c5b5;
  color: #345c4a;
  background: transparent;
  border-radius: 50%;
  font:
    600 12px Georgia,
    serif;
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex: none;
}
.dess-info:hover,
.dess-info:focus-visible {
  background: #e6f0d6;
  outline: 2px solid #80a95b;
  outline-offset: 2px;
}
.dess-row-help {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  flex-basis: 100%;
  margin: 5px 0;
  color: #4b665b;
}
.dess-row-help[hidden] {
  display: none;
}
.dess-row-value {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  min-width: 0;
}
.dess-row-value input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 0;
  text-align: right;
  font:
    600 15px ui-monospace,
    Consolas,
    monospace;
  color: #173e32;
}
.dess-vrm-row[data-kind='choice'] .dess-row-value input {
  background: #eef2e8;
  border-color: #dce4d6;
  padding: 9px 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.dess-row-value small {
  white-space: nowrap;
}
.dess-row-value small:empty {
  display: none;
}
.dess-row-value .btn {
  flex: none;
  padding: 9px 14px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 12px;
}
.dess-vrm-row[data-row$='Formula'] {
  grid-template-columns: 1fr;
}
.dess-vrm-row[data-row$='Formula'] input {
  font-size: 14px;
  padding: 12px;
  background: #f4f6ef;
  text-align: left;
}
.dess-price-subhead {
  font-size: 14px;
  padding: 14px 20px;
  margin: 0;
  background: #edf3e6;
}
.dess-save-bar {
  padding: 20px;
  border: 1px solid #dce5db;
  border-radius: 14px;
  background: #edf4e1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dess-save-bar p {
  width: 100%;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.dess-save-bar [role='status']:empty {
  display: none;
}
.dess-workspace [data-share-notice]:empty,
.dess-workspace [data-supplier-state]:empty {
  display: none;
}
@media (max-width: 1050px) {
  .dess-workspace-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
  }
  .dess-vrm-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dess-copy-guide {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .dess-workspace-grid {
    grid-template-columns: 1fr;
  }
  .dess-output-column {
    position: static;
  }
  .dess-output-sticky {
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .dess-copy-guide {
    top: 8px;
  }
  .dess-workspace .home-nav {
    position: static;
  }
  .dess-workspace .home-section {
    padding-top: 28px;
  }
  .dess-row-value input {
    font-size: 14px;
  }
  .dess-input-column .dess-equipment-heading > p:last-child {
    display: none;
  }
}
.dess-pdf-export {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 28px 0;
  background: #edf4e1;
  border-color: #d6e4bf;
}
.dess-pdf-export h2 {
  font-size: 24px;
}
.dess-pdf-export p {
  margin: 12px 0 0;
}
.dess-pdf-export button {
  flex: none;
}
.dess-pdf-export [role='status']:empty {
  display: none;
}
@media (max-width: 760px) {
  .dess-pdf-export {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .dess-pdf-export button {
    width: 100%;
  }
}
.public-dess-equipment {
  padding: 30px;
  margin: 28px 0;
}
.dess-equipment-heading h2 {
  margin: 8px 0 12px;
  font-size: 28px;
}
.dess-equipment-heading > p:last-child {
  margin-bottom: 24px;
  color: var(--muted, #5b716b);
}
.dess-equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.dess-equipment-grid fieldset {
  min-width: 0;
  border: 1px solid #d9e3d6;
  border-radius: 12px;
  padding: 20px;
  background: #fbfcf8;
}
.dess-equipment-grid legend {
  font-size: 18px;
  font-weight: 650;
  padding: 0 8px;
}
.dess-equipment-grid .vrm-field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}
.dess-equipment-grid select,
.dess-equipment-grid input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
  background: white;
}
.dess-equipment-grid .dess-equipment-grid {
  gap: 12px;
}
.dess-equipment-grid summary {
  cursor: pointer;
  margin: 8px 0 16px;
  font-weight: 600;
}
.dess-equipment-grid .small {
  line-height: 1.6;
  margin: 12px 0;
}
.dess-grid-connection {
  grid-column: 1/-1;
}
.dess-equipment-grid .dess-grid-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.dess-equipment-advanced {
  margin-top: 20px;
  border: 1px solid #d9e3d6;
  border-radius: 12px;
  padding: 0 20px;
}
.dess-equipment-advanced > summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 650;
  min-height: 44px;
  box-sizing: border-box;
}
.dess-equipment-advanced > summary span {
  margin-left: 12px;
  font-size: 14px;
  font-weight: 400;
  color: #5b716b;
}
.dess-equipment-advanced > p,
.dess-equipment-advanced .small {
  line-height: 1.6;
  color: #5b716b;
}
.dess-equipment-advanced[open] {
  padding-bottom: 20px;
}
.dess-equipment-advanced h3 {
  margin-top: 24px;
}
.dess-equipment-results {
  margin-top: 28px;
  border-top: 1px solid #d9e3d6;
  padding-top: 24px;
}
.dess-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.dess-results-header h3 {
  font-size: 25px;
  margin: 4px 0 8px;
}
.dess-results-header p {
  margin: 4px 0;
}
.dess-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 310px);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e5ebe1;
  align-items: center;
}
.dess-value-row label {
  font-weight: 600;
}
.dess-value-row small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #5b716b;
  margin-top: 5px;
}
.dess-value-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dess-value-row input {
  min-width: 0;
  width: 110px;
  flex: 1;
  font-variant-numeric: tabular-nums;
  background: #f4f7ed;
}
.dess-value-row button {
  padding: 10px 14px;
  min-height: 44px;
}
.dess-value-row span {
  width: 30px;
  font-size: 13px;
}
.dess-time-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: #edf4e1;
  padding: 22px;
  border-radius: 12px;
  margin: 24px 0 16px;
}
.dess-time-summary strong {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}
.dess-time-summary span {
  font-size: 14px;
  line-height: 1.5;
}
.dess-equipment-results > .small {
  line-height: 1.7;
}
.dess-equipment-results textarea {
  width: 100%;
  min-height: 150px;
}
.dess-tariff-evidence {
  background: #f2f6eb;
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.6;
}
.dess-brand-request-link {
  display: block;
  background: none;
  border: 0;
  padding: 0 0 16px;
  color: #245949;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}
.battery-brand-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #d9e3d6;
  border-radius: 16px;
  color: #163b3b;
  background: #fbfcf8;
}

.dess-vrm-card.is-incomplete { background: #f0f2f0; border-color: #d8deda; }
.dess-vrm-card.is-incomplete .dess-vrm-row { color: #687872; background: transparent; }
.dess-vrm-card.is-incomplete .dess-row-value input { background: #e9ede9; }
.dess-card-body { position: relative; isolation: isolate; }
.dess-vrm-card.is-incomplete .dess-card-values {
  filter: blur(4px);
  opacity: .45;
  pointer-events: none;
  user-select: none;
}
.dess-card-prompt {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: rgb(240 242 240 / 55%);
}
.dess-card-prompt .btn { box-shadow: 0 4px 16px rgb(22 59 59 / 14%); }
.dess-vrm-card.is-incomplete .dess-card-body { min-height: 220px; }
.dess-card-prompt p { margin: 0 0 12px; }
.dess-input-column .dess-input-highlight { outline: 3px solid #7e9d43; outline-offset: 5px; background: #f4f9e9; }
.battery-brand-dialog fieldset { border: 1px solid #d8e3d7; border-radius: 12px; margin: 18px 0; padding: 16px; }
.battery-brand-dialog::backdrop {
  background: rgb(16 42 43 / 45%);
}
.battery-brand-dialog h2 {
  font-size: 25px;
  margin: 0 0 16px;
}
.battery-brand-dialog p {
  line-height: 1.6;
}
.battery-brand-dialog label:not([hidden]) {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.battery-brand-dialog input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.battery-brand-dialog [hidden] {
  display: none !important;
}
.battery-brand-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.profile-invitations article p {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .public-dess-equipment {
    padding: 18px;
  }
  .dess-equipment-grid,
  .dess-equipment-grid .dess-grid-fields {
    grid-template-columns: 1fr;
  }
  .dess-equipment-grid fieldset {
    padding: 16px;
  }
  .dess-equipment-advanced {
    padding: 0 16px;
  }
  .dess-equipment-advanced > summary span {
    display: block;
    margin: 8px 0 0;
  }
  .dess-results-header {
    align-items: stretch;
    flex-direction: column;
  }
  .dess-value-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dess-value-row > div {
    width: 100%;
  }
  .dess-time-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .public-dess .home-section {
    padding-top: 30px;
  }
}

.dess-supplier-links:empty {
  display: none;
}
.dess-supplier-links {
  margin: 16px 0;
}
.dess-supplier-links .small {
  margin: 8px 0;
}
.energy-suppliers-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.energy-suppliers-layout .cloud-panel {
  padding: 24px;
}
.energy-suppliers-layout .vrm-field {
  margin: 16px 0;
}
.energy-suppliers-layout input,
.energy-suppliers-layout select {
  width: 100%;
}
.energy-suppliers-layout input[type='checkbox'] {
  width: auto;
}
@media (max-width: 800px) {
  .energy-suppliers-layout {
    grid-template-columns: 1fr;
  }
}

.dess-save-bar [data-share-url] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.dess-save-bar [hidden] {
  display: none;
}

.dess-share-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.dess-share-top > span { color: #526d64; font-size: 14px; }
.dess-share-top > p { flex-basis: 100%; margin: 0; }
.dess-share-top > p:empty, .dess-share-top [hidden] { display: none; }
.dess-share-top button, .dess-save-bar [data-share] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 650; }
.dess-share-top svg, .dess-save-bar [data-share] svg { width: 22px; height: 22px; flex: none; }
.dess-workspace .home-brand img { width: 220px; max-width: 100%; }
@media(max-width:600px) { .dess-workspace .home-brand img { width: 175px; } .dess-save-bar > button { width: 100%; } }

.dess-number-stepper { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.dess-number-stepper button {
  flex: 0 0 48px;
  min-height: 48px;
  border: 1px solid #b7c9b9;
  border-radius: 12px;
  background: #edf3e5;
  color: #163b3b;
  font: inherit;
  font-size: 26px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.dess-number-stepper button:hover:not(:disabled) { background: #dcebc9; }
.dess-number-stepper button:focus-visible { outline: 3px solid #7e9d43; outline-offset: 2px; }
.dess-number-stepper button:disabled { opacity: .4; cursor: default; }
.dess-number-stepper input { flex: 1 1 0; width: 0; min-width: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.dess-number-stepper input::-webkit-inner-spin-button,
.dess-number-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.dess-equipment-grid:has(> .vrm-field .dess-number-stepper) { grid-template-columns: 1fr; }

.dess-feedback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 28px 0;
  border-top: 1px solid #d6e0d4;
}
.dess-feedback-footer h2 { margin: 0 0 8px; font-size: 20px; }
.dess-feedback-footer p { margin: 0; max-width: 640px; }
.dess-feedback-footer > div:last-child { flex-shrink: 0; }
.dess-feedback-footer small { display: block; margin-top: 8px; color: #526d64; }
.dess-feedback-footer a { min-height: 48px; }
@media (max-width: 850px) {
  .dess-feedback-footer { flex-direction: column; align-items: flex-start; }
  .dess-feedback-footer > div { max-width: 100%; }
  .dess-feedback-footer a { white-space: normal; }
}

.public-dess .dess-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: #60716b;
  margin: 24px 0 8px;
}
