:root {
  color-scheme: dark;
  --bg: #0b2022;
  --sidebar: #0b1d1f;
  --panel: #10292b;
  --border: #244043;
  --text: #e9efeb;
  --muted: #8aa5a5;
  --mint: #65d8b3;
  --solar: #e9bd70;
  --blue: #8bbbd8;
  --font: "Segoe UI", Inter, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button .icon {
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.symbol-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 222px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 20px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  letter-spacing: -1.5px;
  font-weight: 650;
}
.brand-mark {
  display: block;
  width: 56px;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-dot {
  color: var(--mint);
}
.sidebar .brand {
  padding: 0 8px;
}
.sidebar-caption {
  font-size: 10px;
  letter-spacing: 2px;
  color: #698886;
  margin: 48px 12px 16px;
}
.nav-item {
  border: 0;
  background: none;
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border-radius: 6px;
  margin-bottom: 7px;
  color: #91aaa9;
  text-align: left;
  font-size: 13px;
}
.nav-item:hover {
  background: #142f30;
  color: var(--text);
}
.nav-item.active {
  background: #1b3b36;
  color: var(--mint);
}
.nav-item.active:before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 24px;
  background: var(--mint);
  content: "";
  border-radius: 0 3px 3px 0;
}
.nav-item .icon {
  width: 17px;
  height: 17px;
}
.count {
  font-size: 11px;
  background: #213f3c;
  border: 1px solid #30554e;
  color: #b4cebf;
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: auto;
  line-height: 18px;
}
.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 12px 18px;
}
.sidebar-bottom {
  margin-top: auto;
}
.home-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px 10px;
}
.home-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  border-radius: 5px;
  background: #1d3e38;
  color: #a7c3b3;
}
.home-selector strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-selector div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.home-selector > .status-dot {
  margin-left: auto;
}
.sidebar-footer {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #617f7e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 4px 0;
}
.sidebar-footer button {
  background: none;
  border: 0;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
}
.main-shell {
  margin-left: 222px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}
.breadcrumb {
  font-size: 12px;
  color: #8aa2a1;
  display: flex;
  gap: 15px;
}
.breadcrumb span:first-child {
  color: #476a69;
}
.breadcrumb span:last-child {
  color: #d1ded7;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.demo-badge {
  font-size: 9px;
  letter-spacing: 1.5px;
  border: 1px solid #526345;
  color: #bbc39b;
  padding: 6px 8px;
  border-radius: 4px;
}
.connection-badge {
  color: #aac2b9;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 9px #65d8b326;
  flex-shrink: 0;
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #2a443e;
  border: 1px solid #496357;
  border-radius: 50%;
  font-family: Georgia, serif;
  color: #d4dac5;
  font-size: 13px;
}
.avatar img {
  display: block;
  width: 24px;
  height: auto;
  object-fit: contain;
}

.icon-button {
  border: 0;
  background: none;
  padding: 5px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.icon-button:hover {
  color: var(--text);
}
main {
  max-width: 1680px;
  margin: 0 auto;
  padding: 33px 34px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  color: #7d9b98;
  letter-spacing: 2px;
  font-weight: 500;
}
.page-heading h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  font-weight: 550;
  margin: 11px 0 8px;
}
.page-heading h1 > span {
  color: var(--mint);
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.range-switch {
  display: flex;
  background: #0d2527;
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 6px;
}
.range-switch button {
  background: none;
  border: 0;
  font-size: 11px;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 4px;
}
.range-switch .active {
  background: #29453e;
  color: #d8e4d9;
  box-shadow: 0 1px 3px #0002;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 12px;
  border: 1px solid transparent;
  font-weight: 550;
  white-space: nowrap;
  min-height: 37px;
}
.button.primary {
  background: var(--mint);
  color: #0b3027;
  border-color: var(--mint);
}
.button.primary:hover {
  background: #83e5c2;
}
.button.secondary {
  background: #173438;
  border-color: #365456;
  color: #c5d9d1;
}
.button.secondary:hover {
  background: #214449;
}
.button.danger {
  background: #754638;
  border-color: #b97966;
}
.plus {
  font-size: 20px;
  line-height: 10px;
  font-weight: 400;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  background: linear-gradient(120deg, #163132, #112a2b);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 19px 19px 15px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a5bcb5;
}
.metric-top > .icon {
  width: 19px;
  height: 19px;
}
.metric-value {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 14px 0 18px;
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 13px;
  letter-spacing: 0;
  color: #97aea8;
  font-weight: 400;
}
.metric-bottom {
  border-top: 1px solid #294240;
  padding-top: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #89a7a0;
}
.metric-bottom > .icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: #5f827c;
}
.small-dot {
  display: inline-block;
  background: currentColor;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.solar {
  color: var(--solar);
}
.mint {
  color: var(--mint);
}
.blue {
  color: var(--blue);
}
.muted {
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(250px, 1fr);
  gap: 21px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 22px 0;
  gap: 15px;
}
.panel h2 {
  font-size: 14px;
  font-weight: 550;
  margin: 0;
  letter-spacing: -0.2px;
}
.panel-heading p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 0;
}
.live-label {
  color: #9cbaad;
  letter-spacing: 1.5px;
  font-size: 9px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.flow-scene {
  height: 322px;
  position: relative;
}
.scene-grid {
  position: absolute;
  inset: 15px;
  background-image: radial-gradient(#42645b66 0.8px, transparent 0.8px);
  background-size: 17px 17px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.flow-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.flow-track {
  stroke: #254742;
  stroke-width: 2;
  fill: none;
}
.flow-line {
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 5 10;
  animation: flow 1.4s linear infinite;
  opacity: 0.9;
}
.solar-line {
  stroke: var(--solar);
}
.grid-line {
  stroke: var(--blue);
}
.battery-line {
  stroke: #a7a5d3;
}
.home-line {
  stroke: var(--mint);
}
.flow-line.reverse {
  animation-direction: reverse;
}
.flow-line.stopped {
  animation: none;
  opacity: 0;
}
.flow-node {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #10292bdf;
  padding: 10px 9px;
  border: 1px solid #29433f;
  border-radius: 7px;
  min-width: 151px;
  backdrop-filter: blur(4px);
}
.flow-node div > span {
  display: block;
  font-size: 9px;
  color: #a0b7ad;
  margin-bottom: 5px;
}
.flow-node strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.flow-node strong small {
  font-size: 10px;
  font-weight: 400;
  color: #94afa2;
}
.flow-node em {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  font-style: normal;
  color: #6f9584;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.node-icon {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  background: #25403188;
  border: 1px solid #3a564544;
  border-radius: 8px;
}
.node-icon.blue {
  background: #1b364455;
  border-color: #354e5944;
}
.node-icon.mint {
  background: #1a4b3d55;
}
.node-icon.muted {
  background: #203835;
}
.solar-node {
  top: 59px;
  left: 4%;
}
.grid-node {
  right: 3%;
  top: 59px;
}
.storage-node {
  bottom: 32px;
  left: 5%;
}
.storage-node strong {
  font-size: 12px;
  margin-top: 7px;
  color: #87a29b;
}
.load-node {
  bottom: 39px;
  right: 2%;
}
.house-caption {
  position: absolute;
  top: 272px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  color: #8fb2a0;
  font-size: 9px;
}
.house-caption span:first-child {
  color: #bdcebf;
}
.house-caption-dot {
  color: #486e5e;
}
.flow-footer {
  border-top: 1px solid var(--border);
  padding: 13px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 9px;
  color: #8fa9a1;
}
.flow-footer > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.flow-footer > span:last-child {
  margin-left: auto;
  color: #678b7f;
}
.breakdown-panel {
  display: flex;
  flex-direction: column;
}
.donut-wrap {
  width: 170px;
  height: 170px;
  position: relative;
  margin: 20px auto 12px;
}
.donut-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}
.donut-label > span {
  font-size: 26px;
  font-weight: 450;
  letter-spacing: -0.7px;
}
.donut-label small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.circuit-legend {
  padding: 0 23px 16px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  font-size: 10px;
  color: #acc2b5;
}
.legend-row > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend-row > span:last-child {
  margin-left: auto;
  color: #87a79c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.text-button {
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aac9b7;
  font-size: 10px;
  padding: 0;
}
.text-button:hover {
  color: var(--mint);
}
.text-button > .icon {
  width: 14px;
  height: 14px;
}
.breakdown-panel > .text-button {
  padding: 13px 22px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  justify-content: space-between;
  width: 100%;
}
.chart-key {
  display: flex;
  gap: 14px;
  font-size: 9px;
  color: #a6bfb3;
}
.chart-key span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.chart-container {
  position: relative;
  padding: 18px 17px 0;
  min-height: 224px;
}
.chart-container svg,
.large-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart-container svg text,
.large-chart svg text {
  font-family: var(--font);
  font-size: 10px;
  fill: #76958e;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 23px 18px;
  color: #6f9186;
  font-size: 9px;
}
.chart-tooltip {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #173c39;
  border: 1px solid #507467;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px #0004;
}
.connector-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 22px 18px;
  border-bottom: 1px solid #223c3b;
}
.connector-logo {
  width: 35px;
  height: 35px;
  background: #243d33;
  border: 1px solid #405341;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: -0.6px;
  font-weight: bold;
  color: #e0cb92;
  flex-shrink: 0;
}
.connector-logo.leviton {
  background: #1a3a3c;
  border-color: #345251;
  color: #a7d4c0;
  font-size: 8px;
  letter-spacing: 0.8px;
}
.connector-logo.custom {
  color: var(--blue);
}
.connector-info {
  flex: 1;
  min-width: 0;
}
.connector-info strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connector-info small {
  display: block;
  color: #73968a;
  font-size: 9px;
  margin-top: 5px;
}
.connector-status {
  font-size: 9px;
  color: #96c7ae;
  display: flex;
  align-items: center;
  gap: 5px;
}
.connector-status.error {
  color: #e5a590;
}
.connect-another {
  width: calc(100% - 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #38554c;
  background: #132e2b;
  color: #8cb79e;
  border-radius: 5px;
  padding: 12px 8px;
  font-size: 10px;
  margin: 17px 22px;
}
.connect-another:hover {
  border-color: var(--mint);
}
.connect-another > span {
  font-size: 16px;
}
.integration-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 22px 23px;
  color: #719989;
}
.integration-note p {
  font-size: 10px;
  line-height: 1.7;
  margin: 0;
}
.integration-note > .icon {
  width: 30px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #668c7f;
  margin-top: 24px;
}
.page-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.page-footer .status-dot {
  width: 4px;
  height: 4px;
}
.notice {
  border: 1px solid #5c6045;
  background: #29382a;
  color: #d6ceac;
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.notice.error {
  border-color: #8e5546;
  background: #3b2f2c;
  color: #ebbdac;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 25px;
  font-size: 12px;
  line-height: 1.7;
}
.integration-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}
.catalog-card {
  padding: 25px;
}
.catalog-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #253d38;
  border-radius: 10px;
  margin-bottom: 22px;
}
.catalog-icon > .icon {
  width: 25px;
  height: 25px;
}
.catalog-card > .eyebrow {
  display: block;
  font-size: 9px;
}
.catalog-card h2 {
  font-size: 18px;
  margin-top: 12px;
}
.catalog-card p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  min-height: 69px;
  margin: 12px 0 22px;
}
.catalog-card > .button {
  width: 100%;
}
.integration-list-row {
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.integration-list-row:last-child {
  border-bottom: 0;
}
.integration-list-row .connector-info strong {
  font-size: 14px;
}
.integration-list-row .connector-info small {
  font-size: 11px;
  line-height: 1.8;
  white-space: normal;
}
.integration-list-row .button {
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
  padding: 16px 22px 22px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
caption {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 15px;
}
th {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 500;
  padding: 14px 12px;
  border-bottom: 1px solid #34504a;
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid #24413c;
  color: #b7cfc1;
}
td:first-child {
  color: var(--text);
}
.share-bar {
  display: inline-block;
  width: 65px;
  height: 4px;
  background: #24453d;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 3px;
  overflow: hidden;
}
.share-bar > i {
  display: block;
  height: 4px;
  background: var(--mint);
}
.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 25px 23px;
  gap: 20px;
}
.analytics-summary > div {
  padding: 15px;
  background: #163430;
  border-radius: 6px;
}
.analytics-summary span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.analytics-summary strong {
  font-size: 22px;
  font-weight: 450;
}
.large-chart {
  padding: 20px 30px;
}
.settings-panel {
  max-width: 700px;
}
.settings-panel form {
  padding: 26px;
}
.settings-panel form label {
  max-width: 410px;
}
.settings-panel > .helper {
  padding: 0 26px 20px;
}
.settings-facts {
  margin: 0 26px 24px;
  border-top: 1px solid var(--border);
}
.settings-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  margin-top: 18px;
}
.settings-facts dt {
  color: var(--muted);
}
.settings-facts dd {
  margin: 0;
}
.helper {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
dialog {
  background: #112b2c;
  color: var(--text);
  border: 1px solid #416259;
  border-radius: 12px;
  width: min(570px, calc(100% - 32px));
  padding: 26px;
  max-height: 90vh;
  box-shadow: 0 30px 120px #0008;
}
dialog::backdrop {
  background: #031213ba;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dialog-heading h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 10px 0 0;
  letter-spacing: -0.5px;
}
.dialog-heading .icon-button {
  font-size: 26px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 17px 0;
  font-size: 11px;
  color: #bdcec3;
}
input,
select,
textarea {
  background: #0b2224;
  border: 1px solid #35504b;
  border-radius: 5px;
  padding: 11px 12px;
  color: var(--text);
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #648079;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint);
  outline: 1px solid #65d8b350;
}
select {
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-error {
  color: #eeb29b;
  font-size: 12px;
  line-height: 1.6;
  min-height: 0;
}
.form-error:empty {
  margin: 0;
}
.dialog-footer {
  border-top: 1px solid var(--border);
  padding-top: 19px;
  margin-top: 23px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
code {
  color: #c4d9a8;
  background: #244236;
  padding: 2px 5px;
  border-radius: 3px;
}
.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 20%, #1b4842, var(--bg) 60%);
}
.login-card {
  padding: 45px;
  border: 1px solid var(--border);
  background: #122d2de8;
  border-radius: 14px;
  width: min(420px, calc(100% - 32px));
}
.login-card > .brand {
  margin-bottom: 38px;
}
.login-card h1 {
  font-weight: 450;
  font-size: 30px;
  margin: 14px 0;
}
.login-card > p {
  color: var(--muted);
  font-size: 12px;
}
.login-card > .button {
  width: 100%;
  margin-top: 18px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #254b3e;
  border: 1px solid #65917a;
  padding: 14px 22px;
  border-radius: 7px;
  font-size: 12px;
  color: #d3ebd9;
  box-shadow: 0 8px 30px #0005;
  max-width: 90vw;
}
#remove-dialog {
  max-width: 420px;
}
@keyframes flow {
  to {
    stroke-dashoffset: -30;
  }
}
@media (min-width: 1500px) {
  .flow-scene {
    height: 356px;
  }
  .house-caption {
    top: 302px;
  }
  .metrics .metric {
    padding: 24px;
  }
  .donut-wrap {
    margin-top: 30px;
  }
  .circuit-legend {
    padding-bottom: 24px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 190px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main-shell {
    margin-left: 190px;
  }
  main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
  }
  .metric {
    padding: 15px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-bottom {
    font-size: 9px;
  }
  .metric-bottom > .icon {
    display: none;
  }
  .flow-node {
    min-width: 125px;
    gap: 7px;
    padding: 8px;
  }
  .node-icon {
    width: 25px;
    height: 29px;
  }
  .flow-node strong {
    font-size: 18px;
  }
  .flow-node em {
    font-size: 7px;
  }
  .solar-node {
    left: 2%;
  }
  .grid-node {
    right: 1%;
  }
  .load-node {
    right: 1%;
  }
  .storage-node {
    left: 2%;
  }
  .flow-footer {
    gap: 10px;
    font-size: 8px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 2fr) minmax(235px, 1fr);
  }
  .house-caption {
    font-size: 8px;
  }
  .integration-catalog {
    gap: 13px;
  }
  .catalog-card {
    padding: 19px;
  }
}
@media (max-width: 1020px) {
  .sidebar {
    width: 72px;
    padding: 24px 10px;
  }
  .sidebar .brand {
    padding: 0;
    justify-content: center;
  }
  .sidebar .brand-mark {
    width: 48px;
  }
  .sidebar .brand > span:last-child,
  .sidebar-caption,
  .nav-item .count,
  .sidebar-bottom,
  .nav-divider {
    display: none;
  }
  .nav-item {
    font-size: 0;
    padding: 13px;
    justify-content: center;
    margin: 10px 0;
  }
  .nav-item > .icon {
    width: 20px;
    height: 20px;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .main-shell {
    margin-left: 72px;
  }
  .metrics {
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .dashboard-grid {
    gap: 15px;
  }
  .integration-catalog {
    grid-template-columns: 1fr;
  }
  .catalog-card p {
    min-height: 0;
  }
  .catalog-card > .button {
    width: auto;
  }
}
@media (max-width: 800px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .breakdown-panel {
    grid-row: 4;
  }
  .connected-panel {
    grid-row: 3;
  }
  .donut-wrap {
    margin-top: 20px;
  }
  .topbar-right {
    gap: 12px;
  }
  .connection-badge {
    display: none;
  }
  .flow-scene {
    height: 340px;
  }
  .house-caption {
    top: 285px;
  }
  .solar-node {
    left: 4%;
  }
  .grid-node {
    right: 4%;
  }
  .storage-node {
    left: 4%;
  }
  .load-node {
    right: 4%;
  }
  .flow-node {
    min-width: 145px;
  }
  .analytics-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .sidebar {
    width: 56px;
    padding: 20px 7px;
  }
  .sidebar .brand-mark {
    width: 40px;
  }
  .nav-item {
    padding: 13px 9px;
  }
  .main-shell {
    margin-left: 56px;
  }
  main {
    padding: 23px 15px;
  }
  .topbar {
    height: 60px;
    padding: 0 15px;
  }
  .topbar-right {
    gap: 7px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .demo-badge {
    font-size: 7px;
    letter-spacing: 1px;
    padding: 5px;
  }
  .avatar {
    display: none;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .heading-actions {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .range-switch button {
    padding: 7px 9px;
    font-size: 10px;
  }
  .heading-actions > .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .metric {
    padding: 14px 11px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-value {
    font-size: 25px;
    margin: 12px 0 14px;
  }
  .metric-bottom {
    font-size: 8px;
  }
  .metric-top .icon {
    width: 16px;
  }
  .panel-heading {
    padding: 18px 16px 0;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .panel h2 {
    font-size: 13px;
  }
  .flow-scene {
    height: 330px;
  }
  .flow-svg {
    top: 10px;
  }
  .flow-node {
    min-width: 120px;
    padding: 7px;
  }
  .flow-node .node-icon {
    display: none;
  }
  .solar-node {
    left: 4%;
    top: 31px;
  }
  .grid-node {
    right: 4%;
    top: 31px;
  }
  .storage-node {
    left: 4%;
    bottom: 26px;
  }
  .load-node {
    right: 4%;
    bottom: 26px;
  }
  .flow-node strong {
    font-size: 18px;
  }
  .flow-node div > span {
    font-size: 9px;
  }
  .house-caption {
    top: 229px;
    font-size: 9px;
  }
  .house-caption > span:last-child,
  .house-caption-dot {
    display: none;
  }
  .storage-node strong {
    font-size: 11px;
  }
  .flow-footer {
    padding: 12px 16px;
    gap: 12px;
  }
  .flow-footer > span:last-child {
    display: none;
  }
  .chart-key {
    font-size: 8px;
    gap: 9px;
  }
  .chart-container {
    min-height: 160px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .integration-list-row {
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
  }
  .integration-list-row > .connector-info {
    min-width: 150px;
  }
  .settings-facts > div {
    font-size: 11px;
  }
  .settings-facts dd {
    max-width: 190px;
    text-align: right;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    padding: 20px;
  }
  .analytics-summary {
    gap: 10px;
    padding: 18px;
  }
  .analytics-summary strong {
    font-size: 18px;
  }
  .large-chart {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line {
    animation: none;
  }
}

/* Keep the company wordmark readable in the navigation and sign-in card. */
.brand-name {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.brand-subtitle {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3px;
}
