.phone-dashboard-demo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  box-sizing: border-box;
  padding: 0 8px 0 0;
  border-left: 0px;/*clamp(3px, 1.25cqi, 6px) solid #121820;*/
  overflow: hidden;
  background: #080a0c;
  color: #f3f5f4;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  --demo-primary: #0BA755;
  --demo-primary-soft: rgba(11, 167, 85, 0.13);
  --demo-panel: #0b0e11;
  --demo-card: #11161a;
  --demo-card-strong: #151b20;
  --demo-border: rgba(255, 255, 255, 0.09);
  --demo-green-border: rgba(11, 167, 85, 0.34);
  --demo-muted: #9aa3a0;
}

body.demo-climate-dragging {
  cursor: grabbing;
  user-select: none;
}

.phone-shell.dashboard-active .phone-dashboard-demo {
  display: flex;
}

.demo-sidebar {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  background: #090b0d;
  border-right: 1px solid var(--demo-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.demo-sidebar-logo {
  padding: 16px 8px 0px 20px;
  display: flex;
  justify-content: center;
}

.demo-sidebar-logo img {
  display: block;
  width: min(72px, 100%);
  height: auto;
}

.demo-nav {
  padding: 8px 6px 0;
  display: grid;
  justify-items: stretch;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
}

.demo-nav::-webkit-scrollbar {
  display: none;
}

.demo-nav-btn {
  position: relative;
  border: 0;
  border-radius: 5px;
  width: 100%;
  min-height: 27px;
  padding: 5px 6px 5px 13px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ACCEB0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  transition: background 0.16s ease, color 0.16s ease;
}

.demo-nav-btn:hover {
  color: #eef4f1;
  background: transparent;
}

.demo-nav-btn.active {
  color: #0CA85D;
  background: #172720;
}

.demo-nav-btn.active::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 15px;
  border-radius: 5px;
  background: #0CA85D;
  transform: translateY(-50%);
}

.demo-nav-icon {
  width: 12px;
  height: 12px;
  text-align: center;
  color: currentColor;
  font-size: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.demo-nav-icon svg,
.demo-nav-tile-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-nav-icon svg {
  width: 12px;
  height: 12px;
}

.demo-nav-label {
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #080a0c;
}

.demo-topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid var(--demo-border);
  background: #080a0c;
}

.phone-dashboard-demo[data-active-view="start"] .demo-topbar {
  border-bottom: 0;
}

.demo-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
}

.demo-subtitle {
  display: none;
}

.demo-header-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-header-stat {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 0;
  text-align: left;
  background: transparent;
}

.demo-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--demo-muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-stat-label::before {
  content: "•";
  color: var(--demo-primary);
  font-size: 10px;
  line-height: 1;
}

.demo-stat-value {
  display: inline-block;
  margin-top: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.demo-clock {
  display: none;
}

.demo-clock-time {
  font-size: 14px;
  font-weight: 700;
}

.demo-clock-date {
  color: var(--demo-muted);
  font-size: 10px;
}

.demo-view {
  flex: 1;
  overflow: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.phone-dashboard-demo[data-active-view="start"] .demo-view {
  display: grid;
  place-items: center;
  padding: 0 clamp(8px, 2.2vw, 18px) 18px;
  overflow: hidden;
}

.demo-view::-webkit-scrollbar {
  width: 6px;
}

.demo-view::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

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

.demo-card {
  border: 1px solid var(--demo-green-border);
  border-radius: 13px;
  padding: 11px;
  background: var(--demo-card);
  box-shadow: none;
}

.demo-card.accent {
  background: rgba(11, 167, 85, 0.08);
}

.demo-card-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.demo-card-kicker {
  color: var(--demo-muted);
  font-size: 10px;
}

.demo-big-value {
  margin: 6px 0 0;
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
}

.demo-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.demo-pill {
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--demo-primary);
  background: var(--demo-primary-soft);
  font-size: 10px;
  font-weight: 700;
}

.demo-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 9px;
}

.demo-progress span {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  border-radius: inherit;
  background: var(--demo-primary);
}

.demo-section-title {
  margin: 1px 0 9px;
  font-size: 15px;
  font-weight: 700;
}

.demo-nav-tile {
  position: relative;
  --tile-accent: var(--demo-primary);
  --tile-accent-soft: var(--demo-primary-soft);
  --tile-bg: rgba(11, 167, 85, 0.07);
  --tile-icon-bg: rgba(11, 167, 85, 0.2);
  border: 1px solid var(--tile-accent);
  border-radius: 13px;
  min-height: 0;
  aspect-ratio: 1;
  padding: 9px;
  color: #dce2df;
  background: var(--tile-bg);
  cursor: pointer;
  text-align: center;
  display: grid;
  place-items: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.demo-nav-tile:hover {
  background: var(--tile-icon-bg);
}

.phone-dashboard-demo[data-active-view="start"] .demo-start-grid {
  width: min(96%, 720px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.8vw, 14px);
}

.phone-dashboard-demo[data-active-view="start"] .demo-nav-tile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  min-height: 108px;
  padding: 14px 10px 16px;
  row-gap: 8px;
}

.phone-dashboard-demo[data-active-view="start"] .demo-nav-tile.accent-blue { --tile-accent: #4da3ff; --tile-accent-soft: rgba(77, 163, 255, 0.14); --tile-bg: rgba(77, 163, 255, 0.07); --tile-icon-bg: rgba(77, 163, 255, 0.2); }
.phone-dashboard-demo[data-active-view="start"] .demo-nav-tile.accent-orange { --tile-accent: #F4BC3C; --tile-accent-soft: rgba(244, 188, 60, 0.14); --tile-bg: rgba(244, 188, 60, 0.07); --tile-icon-bg: rgba(244, 188, 60, 0.2); }
.phone-dashboard-demo[data-active-view="start"] .demo-nav-tile.accent-pink { --tile-accent: #f472b6; --tile-accent-soft: rgba(244, 114, 182, 0.14); --tile-bg: rgba(244, 114, 182, 0.07); --tile-icon-bg: rgba(244, 114, 182, 0.2); }
.phone-dashboard-demo[data-active-view="start"] .demo-nav-tile.accent-purple { --tile-accent: #a78bfa; --tile-accent-soft: rgba(167, 139, 250, 0.14); --tile-bg: rgba(167, 139, 250, 0.07); --tile-icon-bg: rgba(167, 139, 250, 0.2); }
.phone-dashboard-demo[data-active-view="start"] .demo-nav-tile.accent-red { --tile-accent: #EC5252; --tile-accent-soft: rgba(236, 82, 82, 0.14); --tile-bg: rgba(236, 82, 82, 0.07); --tile-icon-bg: rgba(236, 82, 82, 0.2); }

.demo-nav-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--tile-accent);
  background: var(--tile-icon-bg);
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-dashboard-demo[data-active-view="start"] .demo-nav-tile-icon {
  align-self: center;
}

.demo-nav-tile-icon span {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.demo-nav-tile-title {
  color: #cfd6d3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.phone-dashboard-demo[data-active-view="start"] .demo-nav-tile-title {
  position: static;
  max-width: 100%;
}

.demo-list {
  display: grid;
  gap: 7px;
}

.demo-list-item {
  border: 1px solid var(--demo-green-border);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #0f1418;
}

.demo-consumption-card {
  border: 1px solid var(--demo-green-border);
  border-radius: 16px;
  padding: 14px;
  background: #323232;
}

.demo-consumption-dashboard-panel {
  margin-top: 14px;
}

.demo-consumption-stage {
  position: relative;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-consumption-left,
.demo-consumption-right {
  position: relative;
  z-index: 1;
  width: 86px;
  flex: 0 0 86px;
}

.demo-consumption-left {
  display: grid;
  gap: 10px;
}

.demo-consumption-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.demo-consumption-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.demo-flow-path {
  fill: none;
  stroke-linecap: round;
}

.demo-flow-path-solar-base {
  stroke: rgba(244, 188, 60, 0.34);
  stroke-width: 5;
}

.demo-flow-path-grid-base {
  stroke: rgba(11, 167, 85, 0.34);
  stroke-width: 5;
}

.demo-flow-path-track {
  stroke: transparent;
  stroke-width: 2.5;
}

.demo-flow-dots {
  pointer-events: none;
}

.demo-flow-dot {
  transform-box: fill-box;
  transform-origin: center;
}

.demo-flow-node {
  position: relative;
  --node-accent: var(--demo-primary);
  --node-bg: rgba(11, 167, 85, 0.08);
  --node-icon-bg: rgba(11, 167, 85, 0.2);
  width: 100%;
  max-width: 86px;
  border: 1px solid var(--node-accent);
  border-radius: 14px;
  padding: 10px 8px 9px;
  background: color-mix(in srgb, var(--node-bg) 70%, #0d1114);
  display: grid;
  justify-items: center;
  row-gap: 6px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.demo-flow-node.theme-red {
  --node-accent: #EC5252;
  --node-bg: rgba(236, 82, 82, 0.07);
  --node-icon-bg: rgba(236, 82, 82, 0.18);
}

.demo-flow-node.theme-yellow {
  --node-accent: #F4BC3C;
  --node-bg: rgba(244, 188, 60, 0.08);
  --node-icon-bg: rgba(244, 188, 60, 0.2);
}

.demo-flow-node.theme-green {
  --node-accent: #0BA755;
  --node-bg: rgba(11, 167, 85, 0.08);
  --node-icon-bg: rgba(11, 167, 85, 0.2);
}

.demo-flow-status-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--node-accent);
  box-shadow: 0 0 5px color-mix(in srgb, var(--node-accent) 72%, transparent);
}

.demo-flow-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--node-accent);
  background: var(--node-icon-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.demo-flow-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-flow-label {
  color: #f6f8f7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.demo-flow-value {
  color: var(--node-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.demo-consumption-gauge-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.demo-consumption-gauge-card {
  border: 1px solid var(--demo-green-border);
  border-radius: 15px;
  padding: 12px 10px 11px;
  background: #333333;
  display: grid;
  justify-items: center;
  align-content: start;
  row-gap: 3px;
  text-align: center;
}

.demo-consumption-gauge-shell {
  position: relative;
  width: min(100%, 104px);
  display: flex;
  justify-content: center;
  padding-bottom: 11px;
}

.demo-consumption-gauge {
  width: 100%;
  height: auto;
  overflow: visible;
}

.demo-consumption-gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 8;
  stroke-linecap: round;
}

.demo-consumption-gauge-fill {
  fill: none;
  stroke: #0BA755;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-consumption-gauge-needle line {
  stroke: #0BA755;
  stroke-width: 2;
  stroke-linecap: round;
}

.demo-consumption-gauge-needle circle {
  fill: #0f2016;
  stroke: #0BA755;
  stroke-width: 2;
}

.demo-consumption-gauge-scale {
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  color: #7f8784;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.demo-consumption-gauge-scale span {
  position: absolute;
  transform: translateX(-50%);
}

.demo-consumption-gauge-scale span:first-child {
  left: 19%;
}

.demo-consumption-gauge-scale span:last-child {
  left: 81%;
}

.demo-consumption-gauge-value {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.demo-consumption-gauge-number {
  color: #f7faf8;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.demo-consumption-gauge-unit {
  color: #0BA755;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.demo-consumption-gauge-label {
  color: #0BA755;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  min-height: 24px;
  display: grid;
  place-items: start center;
}

.demo-consumption-gauge-badge {
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
}

.demo-consumption-gauge-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0BA755;
}

.demo-item-name {
  color: var(--demo-primary);
  font-weight: 700;
  font-size: 12px;
}

.demo-item-detail {
  color: var(--demo-muted);
  font-size: 10px;
  margin-top: 2px;
}

.demo-toggle {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--demo-green-border);
  padding: 3px;
  background: transparent;
  cursor: pointer;
}

.demo-toggle::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--demo-primary);
  transition: transform 0.18s ease;
}

.demo-toggle.on {
  background: var(--demo-primary-soft);
}

.demo-toggle.on::before {
  transform: translateX(16px);
}

.phone-dashboard-demo[data-active-view="climate"] .demo-view {
  padding: 10px 10px 18px;
  background: #080a0c;
}

.demo-climate-page {
  display: grid;
  gap: 9px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.demo-climate-master-panel {
  --demo-climate-master-control-width: 124px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #161616;
}

.demo-climate-master-box {
  width: calc(var(--demo-climate-master-control-width) + 18px);
  flex: 0 0 calc(var(--demo-climate-master-control-width) + 18px);
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #323232;
  display: grid;
  gap: 7px;
}

.demo-climate-master-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f5f5f5;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
}

.demo-climate-master-icon-shell {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1D212A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-climate-master-icon-shell .demo-climate-icon {
  width: 14px;
  height: 14px;
  color: #ACCEB0;
}

.demo-climate-master-heading-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.demo-climate-master-name {
  color: #f4f4f4;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
}

.demo-climate-master-status {
  color: #ACCEB0;
  font-size: 7px;
  font-weight: 400;
}

.demo-climate-master-values {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  width: var(--demo-climate-master-control-width);
}

.demo-climate-master-value-block {
  display: grid;
  gap: 2px;
  flex: 0 0 calc((var(--demo-climate-master-control-width) - 5px) / 2);
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #1D212A;
}

.demo-climate-master-value-label {
  color: #8d8d8d;
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.demo-climate-master-value-number {
  color: #ffffff;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.demo-climate-master-controls {
  display: grid;
  grid-template-columns: repeat(3, 38px);
  align-items: center;
  justify-content: stretch;
  gap: 5px;
  width: var(--demo-climate-master-control-width);
}

.demo-climate-master-btn {
  width: 38px;
  height: 24px;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: #1D212A;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.demo-climate-master-btn.is-power .demo-climate-icon {
  width: 11px;
  height: 11px;
  color: #ffffff;
}

.demo-climate-master-btn:not(.is-power) {
  font-size: 19px;
  font-weight: 300;
  line-height: 1;
}

.demo-climate-symbol {
  display: block;
  width: 10px;
  height: 10px;
  color: currentColor;
  overflow: visible;
}

.demo-climate-symbol path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.demo-climate-master-stats {
  position: relative;
  display: flex;
  align-content: center;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 2px 0 10px;
}

.demo-climate-master-stats::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  background: rgba(150, 150, 150, 0.45);
  transform: translateY(-50%);
}

.demo-climate-master-stat {
  display: grid;
  gap: 2px;
  text-align: center;
}

.demo-climate-master-stat-label {
  color: #8d8d8d;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.demo-climate-master-stat-value {
  color: #f8fbfa;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.demo-climate-floor-title {
  color: #f5f8f7;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.demo-climate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  align-items: start;
  gap: 7px;
}

.demo-climate-unit-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 7px;
  background: #323232;
  display: grid;
  gap: 7px;
  align-content: start;
}

.demo-climate-unit-card.is-active {
  border-color: rgba(172, 206, 176, 0.28);
  box-shadow: inset 0 0 0 1px rgba(172, 206, 176, 0.05);
}

.demo-climate-unit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}

.demo-climate-unit-title {
  margin: 0;
  color: #fbfdfc;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.25;
}

.demo-climate-unit-chevron {
  min-width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0;
  background: #1D212A;
  color: #ACCEB0;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.demo-climate-unit-chevron .demo-climate-icon {
  width: 10px;
  height: 10px;
}

.demo-climate-unit-body {
  display: grid;
  gap: 7px;
  overflow: visible;
}

.demo-climate-dial-shell {
  display: grid;
  place-items: center;
  overflow: visible;
  padding-top: 5px;
}

.demo-climate-dial {
  --track-start: -140deg;
  --dial-size: 94px;
  --dial-hole: 67%;
  --dial-track-end: 78%;
  --dial-knob-offset: calc(var(--dial-size) * -0.487);
  position: relative;
  width: min(100%, var(--dial-size));
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at center, #323232 0 var(--dial-hole), transparent calc(var(--dial-hole) + 0.5%)),
    conic-gradient(from var(--track-start), #7B919D 0 calc(var(--dial-progress) * var(--dial-track-end)), #404040 calc(var(--dial-progress) * var(--dial-track-end)) var(--dial-track-end), transparent var(--dial-track-end) 100%);
}

.demo-climate-dial::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #323232;
}

.demo-climate-dial-core {
  position: relative;
  z-index: 1;
  width: calc(100% - 18px);
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.demo-climate-dial-status {
  color: #7B919D;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.demo-climate-dial-value {
  color: #ffffff;
  position: relative;
  display: block;
  align-items: flex-start;
  justify-content: center;
  font-weight: 400;
  line-height: 1;
}

.demo-climate-dial-number {
  color: #ffffff;
  font-size: 28px;
  font-weight: 400;
  line-height: 0.95;
}

.demo-climate-dial-unit {
  position: absolute;
  left: calc(100% + 2px);
  top: 2px;
  color: #8e999f;
  font-size: 7px;
  font-weight: 400;
  line-height: 1;
}

.demo-climate-dial-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #8e999f;
  font-size: 6px;
  font-weight: 400;
  line-height: 1.15;
}

.demo-climate-dial-meta.is-alert {
  color: #ACCEB0;
}

.demo-climate-dial-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.24);
  transform: translate(-50%, -50%) rotate(var(--dial-angle)) translateY(var(--dial-knob-offset));
}

.demo-climate-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-climate-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-climate-icon-fire svg,
.demo-climate-icon-droplet svg {
  fill: currentColor;
  stroke: none;
}

.demo-climate-unit-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.demo-climate-circle-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: #1D212A;
  color: #f8fbfa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.demo-climate-circle-btn .demo-climate-icon {
  width: 17px;
  height: 17px;
}

.demo-climate-circle-btn.is-fan .demo-climate-icon {
  transform-origin: 50% 50%;
  transform: translate(0.25px, 0.25px);
}

.demo-climate-circle-btn.is-fan {
  color: #ffffff;
}

.demo-climate-circle-btn.is-fan.is-spinning .demo-climate-icon {
  animation: demoClimateFanSpin var(--fan-spin-duration, 2.2s) linear infinite;
}

.demo-climate-mode-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.demo-climate-mode-pill {
  min-width: fit-content;
  min-height: 20px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #1D212A;
  color: #ACCEB0;
  font: inherit;
  font-size: 7px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.demo-climate-mode-pill .demo-climate-icon {
  width: 8px;
  height: 8px;
}

.demo-climate-mode-pill.is-active {
  border-color: rgba(172, 206, 176, 0.36);
  background: rgba(172, 206, 176, 0.12);
  color: #ACCEB0;
}

.demo-climate-mode-pill.is-extra {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  font-size: 13px;
  border-radius: 999px;
  color: #ffffff;
}

.demo-climate-unit-card.is-collapsed .demo-climate-unit-body {
  display: none;
}

.demo-climate-unit-card.is-collapsed {
  gap: 0;
  align-content: center;
}

.demo-climate-unit-card.is-collapsed .demo-climate-unit-chevron {
  transform: rotate(180deg);
}

@keyframes demoClimateFanSpin {
  from {
    transform: translate(0.25px, 0.25px) rotate(0deg);
  }

  to {
    transform: translate(0.25px, 0.25px) rotate(360deg);
  }
}

.phone-dashboard-demo[data-active-view="energy"] .demo-view {
  padding: 9px;
}

.demo-energy-page {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.demo-energy-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.demo-energy-kpi-card,
.demo-energy-panel {
  border-radius: 14px;
  background: #323232;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.demo-energy-kpi-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.demo-energy-panel {
  border: 1px solid var(--demo-green-border);
}

.demo-energy-kpi-card {
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.demo-energy-kpi-label {
  color: #ACCEB0;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-energy-kpi-value {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.demo-energy-panel {
  position: relative;
  padding: 9px 10px 10px;
  overflow: hidden;
}

.demo-energy-chart-panel {
  min-height: 0;
}

.demo-energy-chart-panel.is-compact-axis {
  min-height: 0;
}

.demo-energy-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(210, 214, 211, 0.16);
}

.demo-energy-panel-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.demo-energy-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.demo-energy-chart-panel.is-compact-axis .demo-energy-chart {
  height: auto;
}

.demo-energy-plot-bg {
  fill: rgba(22, 22, 22, 0.22);
}

.demo-energy-x-tick line,
.demo-energy-y-tick line {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.demo-energy-y-tick text,
.demo-energy-x-tick text {
  fill: #8e9792;
  font-size: 8px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

.demo-energy-x-tick text {
  text-anchor: middle;
}

.demo-energy-y-tick text {
  text-anchor: end;
}

.demo-energy-grid-area {
  fill-opacity: 1;
}

.demo-energy-solar-area {
  fill-opacity: 1;
}

.demo-energy-line-grid,
.demo-energy-line-solar {
  fill: none;
  stroke-width: 1.15;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.demo-energy-line-grid {
  stroke: #4da3ff;
}

.demo-energy-line-solar {
  stroke: #f59e0b;
}

.demo-energy-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0 46px;
  color: #cdd4d1;
  font-size: 8px;
  font-weight: 400;
}

.demo-energy-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.demo-energy-legend i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}

.demo-energy-legend i.is-grid {
  background: #4da3ff;
}

.demo-energy-legend i.is-solar {
  background: #f59e0b;
}

.demo-energy-sankey-panel {
  border-color: var(--demo-green-border);
  background: #323232;
}

.demo-energy-sankey {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.demo-energy-sankey-flow {
  opacity: 0.92;
  mix-blend-mode: screen;
}

.demo-energy-sankey-node path {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.demo-energy-sankey-node.is-grid path {
  fill: #4da3ff;
}

.demo-energy-sankey-node.is-solar path {
  fill: #f59e0b;
}

.demo-energy-sankey-node.is-target path {
  fill: #7F527F;
}

.demo-energy-sankey-node text {
  fill: #ffffff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.demo-energy-sankey-node .value {
  fill: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 400;
}

.phone-dashboard-demo[data-active-view="tarifario"] .demo-view {
  padding: 10px;
}

.demo-tarifario-shell {
  display: grid;
  gap: 10px;
}

.demo-tarifario-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.demo-tarifario-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: #2D2D2D;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.demo-tarifario-card-annual {
  grid-column: 1 / -1;
}

.demo-tarifario-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.demo-tarifario-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #f7fbf9;
  font-size: 10px;
  font-weight: 700;
}

.demo-tarifario-header-icon {
  color: #0BA755;
}

.demo-tarifario-card-hint {
  color: #8d989f;
  font-size: 8px;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

.demo-tarifario-icon-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: #7e878d;
  font-size: 10px;
  cursor: pointer;
}

.demo-tarifario-provider-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f6faf8;
  font-size: 11px;
  font-weight: 800;
}

.demo-tarifario-plan {
  margin-top: 4px;
  color: #8f999f;
  font-size: 8px;
  line-height: 1.35;
}

.demo-tarifario-summary-row {
  margin-top: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.demo-tarifario-summary-box {
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  background: #333333;
}

.demo-tarifario-summary-box.is-forecast {
  border: 1px solid rgba(11, 167, 85, 0.42);
}

.demo-tarifario-summary-label {
  display: block;
  color: #8a949c;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.demo-tarifario-summary-value {
  display: block;
  margin-top: 4px;
  color: #f9fcfb;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.demo-tarifario-summary-arrow {
  color: #eef5f1;
  font-size: 10px;
  text-align: center;
}

.demo-tarifario-progress {
  display: block;
  margin-top: 7px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.demo-tarifario-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0BA755;
}

.demo-tarifario-subtext {
  margin-top: 8px;
  color: #8a949c;
  font-size: 8px;
}

.demo-tarifario-alert {
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 8px;
  line-height: 1.35;
}

.demo-tarifario-alert.is-info {
  background: rgba(11, 167, 85, 0.12);
  color: #b8ebcb;
}

.demo-tarifario-alert.is-warning {
  background: rgba(244, 188, 60, 0.14);
  color: #f6d27c;
}

.demo-tarifario-alert-icon {
  flex-shrink: 0;
  font-size: 9px;
}

.demo-tarifario-rows,
.demo-tarifario-history-list,
.demo-tarifario-consumption-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.demo-tarifario-row-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 10px;
  background: #333333;
}

.demo-tarifario-rank {
  font-size: 11px;
  text-align: center;
}

.demo-tarifario-row-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-tarifario-row-info strong {
  color: #f8fbfa;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
}

.demo-tarifario-row-info span {
  color: #8d989f;
  font-size: 7px;
}

.demo-tarifario-row-prices,
.demo-tarifario-annual-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.demo-tarifario-row-prices strong,
.demo-tarifario-annual-values strong,
.demo-tarifario-consumption-row strong,
.demo-tarifario-history-top strong:last-child {
  color: #f8fbfa;
  font-size: 9px;
  font-weight: 800;
}

.demo-tarifario-row-prices span,
.demo-tarifario-annual-values span {
  color: #8d989f;
  font-size: 7px;
}

.demo-tarifario-annual-values strong,
.demo-tarifario-annual-values span,
.demo-tarifario-delta.is-positive {
  color: #25d366;
}

.demo-tarifario-delta {
  justify-self: end;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(11, 167, 85, 0.12);
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
}

.demo-tarifario-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
}

.demo-tarifario-badge.is-green {
  background: rgba(11, 167, 85, 0.14);
  color: #8fe1ae;
}

.demo-tarifario-badge.is-dark {
  background: #1c2227;
  color: #95a0a7;
}

.demo-tarifario-price-dot.is-vazio {
  background: #22c55e;
}

.demo-tarifario-price-dot.is-cheias {
  background: #f59e0b;
}

.demo-tarifario-price-dot.is-ponta {
  background: #ef4444;
}

.demo-tarifario-price-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-tarifario-consumption-row,
.demo-tarifario-price-row,
.demo-tarifario-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-tarifario-consumption-label,
.demo-tarifario-price-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dce3e1;
  font-size: 8px;
}

.demo-tarifario-history-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-tarifario-history-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.demo-tarifario-history-top strong {
  color: #f8fbfa;
  font-size: 9px;
  font-weight: 800;
}

.demo-tarifario-history-period {
  margin-top: 3px;
  color: #8d989f;
  font-size: 7px;
}

.demo-tarifario-history-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.demo-tarifario-pill {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
}

.demo-tarifario-pill.is-vazio {
  background: rgba(59, 130, 246, 0.16);
  color: #8ab8ff;
}

.demo-tarifario-pill.is-cheias {
  background: rgba(245, 158, 11, 0.16);
  color: #f5c76e;
}

.demo-tarifario-pill.is-ponta {
  background: rgba(239, 68, 68, 0.16);
  color: #ff9f9f;
}

@container (max-width: 260px) {
  .phone-dashboard-demo {
    padding: 0 6px 0 0;
  }

  .demo-sidebar {
    width: 74px;
    min-width: 74px;
    max-width: 74px;
  }

  .demo-nav {
    padding-inline: 4px;
  }

  .demo-sidebar-logo {
    padding: 12px 5px 8px;
  }

  .demo-sidebar-logo img {
    width: min(58px, 100%);
  }

  .demo-nav-btn {
    min-height: 25px;
    padding: 5px 4px 5px 11px;
  }

  .demo-nav-btn.active::before {
    left: 4px;
    height: 13px;
  }

  .demo-nav-label {
    font-size: 8px;
  }

  .demo-header-stat:nth-child(2),
  .demo-clock-date {
    display: none;
  }

  .demo-topbar {
    padding: 0 10px;
  }

  .demo-view {
    padding: 10px 10px 14px;
  }

  .phone-dashboard-demo[data-active-view="start"] .demo-view {
    padding: 0 8px 16px;
  }

  .phone-dashboard-demo[data-active-view="start"] .demo-start-grid {
    width: min(98%, 520px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .phone-dashboard-demo[data-active-view="start"] .demo-nav-tile {
    min-height: 74px;
    padding: 10px 8px 12px;
    row-gap: 6px;
  }

  .demo-consumption-card {
    padding: 12px;
  }

  .demo-consumption-stage {
    min-height: 150px;
    gap: 10px;
  }

  .demo-consumption-left,
  .demo-consumption-right {
    width: 80px;
    flex-basis: 80px;
  }

  .demo-consumption-left {
    gap: 8px;
  }

  .demo-flow-node {
    max-width: 80px;
    padding: 9px 7px 8px;
  }

  .demo-flow-value {
    font-size: 11px;
  }

  .demo-consumption-gauge-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .demo-consumption-gauge-card {
    padding: 10px 9px;
    row-gap: 10px;
  }

  .demo-consumption-gauge {
    width: min(100%, 96px);
  }

  .demo-consumption-gauge-number {
    font-size: 18px;
  }

  .demo-climate-master-panel {
    width: 100%;
  }

  .demo-climate-master-stats {
    justify-content: space-between;
  }

  .demo-climate-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 7px;
  }

  .demo-climate-dial {
    --dial-size: 88px;
  }

  .demo-climate-master-box {
    width: calc(var(--demo-climate-master-control-width) + 18px);
    flex-basis: calc(var(--demo-climate-master-control-width) + 18px);
  }

  .demo-climate-mode-pill {
    padding-inline: 5px;
    font-size: 7px;
  }

  .demo-grid:not(.demo-start-grid),
  .demo-grid.three {
    grid-template-columns: 1fr;
  }

  .demo-energy-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-energy-kpi-value {
    font-size: 14px;
  }

  .demo-tarifario-card {
    padding: 10px;
  }
}
