.solar-3d-scene {
  min-height: 640px;
  background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
  box-shadow: 0 10px 34px rgba(25, 36, 58, 0.055);
}

.solar-house-img {
  left: 50%;
  top: 52%;
  width: min(1160px, 94%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.1));
}

.scene-device-layer {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 7;
  width: min(1160px, 94%);
  aspect-ratio: 1672 / 941;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.scene-device-tag {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: help;
  font: inherit;
  pointer-events: auto;
}

.panel-tag {
  width: 10.8%;
  height: 8.2%;
  cursor: pointer;
}

.inverter-tag {
  width: 7%;
  height: 14.3%;
  cursor: pointer;
}

.tag-name,
.tag-value {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border: 2px solid #173659;
  background: rgba(255, 247, 215, 0.96);
  box-shadow: 3px 3px 0 rgba(19, 35, 58, 0.18);
  color: #315a91;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.tag-name {
  min-width: 42px;
  min-height: 24px;
  padding: 4px 7px;
  font-size: 12px;
}

.tag-value {
  min-width: 78px;
  min-height: 27px;
  padding: 5px 8px;
  color: #0f2340;
  font-size: 17px;
}

.panel-tag .tag-name {
  top: 50%;
  transform: translate(-50%, -50%);
}

.panel-tag .tag-value {
  top: calc(50% + 16px);
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.inverter-tag .tag-name {
  top: -30px;
}

.inverter-tag .tag-value {
  bottom: -32px;
}

.panel-tag:hover .tag-value,
.panel-tag:focus-visible .tag-value {
  opacity: 1;
  transform: translate(-50%, 0);
}

.scene-device-tag::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  bottom: auto;
  z-index: 20;
  width: max-content;
  max-width: min(300px, 36vw);
  padding: 10px 12px;
  border: 2px solid #173659;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 7px 7px 0 rgba(19, 35, 58, 0.16);
  color: #102033;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.38;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  overflow-wrap: anywhere;
  transform: translate(-50%, 8px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: pre-line;
}

.scene-device-tag:hover::before,
.scene-device-tag:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.active-device .tag-name::after,
.off .tag-name::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: #23c16b;
  box-shadow: 0 0 0 3px rgba(35, 193, 107, 0.16);
  animation: sceneStatusPulse 1.08s ease-in-out infinite;
}

.off .tag-name::after {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.off {
  opacity: 0.72;
}

.panel-1 { left: 44.9%; top: 15.7%; }
.panel-2 { left: 54.3%; top: 16.9%; }
.panel-3 { left: 63.4%; top: 18.2%; }
.panel-4 { left: 41.4%; top: 25.3%; }
.panel-5 { left: 50.4%; top: 26.7%; }
.panel-6 { left: 59.4%; top: 28.2%; }

.inverter-1 { left: 43.6%; top: 52.2%; }
.inverter-2 { left: 51.2%; top: 54.4%; }
.inverter-3 { left: 58.5%; top: 56.4%; }

.scene-total-pixel,
.scene-money-pixel {
  position: absolute;
  z-index: 30;
  min-width: 138px;
  padding: 8px 10px;
  border: 2px solid #173659;
  background: rgba(255, 247, 215, 0.96);
  box-shadow: 4px 4px 0 rgba(19, 35, 58, 0.22);
  color: #0f2340;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
  text-align: center;
  cursor: pointer;
}

.scene-total-pixel {
  left: 8.6%;
  top: 60.5%;
}

.scene-money-pixel {
  left: 8.6%;
  top: 72.8%;
  min-width: 148px;
  cursor: default;
}

.scene-total-pixel span,
.scene-total-pixel small,
.scene-money-pixel span,
.scene-money-pixel small {
  display: block;
  color: #315a91;
  font-size: 11px;
  letter-spacing: 0.6px;
}

.scene-total-pixel strong,
.scene-money-pixel strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.scene-money-pixel strong {
  color: #a3480c;
  font-size: 20px;
}

.scene-total-pixel small,
.scene-money-pixel small {
  margin-top: 5px;
  color: #68778e;
  letter-spacing: 0;
}

.scene-total-pixel b,
.scene-money-pixel b {
  color: #0f2340;
}

.scene-total-pixel.is-active,
.scene-money-pixel.is-active {
  box-shadow:
    4px 4px 0 rgba(19, 35, 58, 0.22),
    0 0 0 4px rgba(35, 193, 107, 0.14);
}

@keyframes sceneStatusPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.54;
    transform: scale(1.28);
  }
}

.scene-station-strip {
  position: absolute;
  left: auto;
  right: 22px;
  top: 18px;
  width: 176px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  pointer-events: none;
  display: none;
}

.scene-station-strip > div:first-child {
  min-width: 86px;
  color: #607086;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
}

.scene-station-strip span {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.scene-station-strip strong {
  display: block;
  margin-top: 2px;
  color: #1d2737;
  font-size: 17px;
  line-height: 1.1;
}

.scene-station-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-width: 176px;
  pointer-events: auto;
}

.scene-station-card {
  min-width: 0;
  border: 1px solid rgba(214, 223, 234, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: #1d2737;
  cursor: pointer;
  padding: 7px 9px;
  text-align: left;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}

.scene-station-card:hover {
  border-color: #9bc2ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.13);
  transform: translateY(-1px);
}

.scene-station-card.active {
  border-color: #2f80ff;
  box-shadow: 0 0 0 2px rgba(47, 128, 255, 0.12), 0 10px 22px rgba(37, 99, 235, 0.16);
}

.scene-station-card b {
  display: block;
  overflow: hidden;
  color: #1d2737;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-station-card small {
  display: block;
  margin-top: 3px;
  color: #718096;
  font-size: 10px;
  font-weight: 700;
}

.scene-station-card i {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: #16a34a;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.scene-station-card i::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.scene-station-card.is-offline i {
  color: #dc2626;
}

.scene-station-card.is-warning i {
  color: #d97706;
}

.scene-wires,
.scene-dot,
.flow-pill,
.energy-pulse {
  display: none !important;
}

.wire {
  stroke: transparent;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.wire-grid {
  stroke: transparent;
}

.wire-solar {
  stroke: transparent;
}

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

.flow-pill {
  fill: currentColor;
  opacity: 0.96;
}

.scene-dot-grid {
  color: #f59e0b;
}

.scene-dot-solar {
  color: #73c53b;
}

.flow-pill-grid {
  fill: #f59e0b;
}

.flow-pill-solar {
  fill: #73c53b;
}

.solar-3d-scene.is-idle .scene-dot {
  opacity: 0.78;
}

.solar-3d-scene.is-warning .wire-grid,
.solar-3d-scene.is-warning .scene-dot-grid {
  stroke: transparent;
  color: #f59e0b;
}

.solar-3d-scene.is-danger .wire {
  stroke: #ef4444;
}

.solar-3d-scene.is-danger .scene-dot {
  color: #ef4444;
}

.scene-metric,
.scene-bottom,
.scene-device-card,
.scene-yield {
  display: none !important;
}

.scene-metric strong,
.scene-bottom strong {
  color: #1d2737;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.scene-metric span,
.scene-bottom span {
  color: #697487;
  font-size: 17px;
}

.scene-metric small,
.scene-bottom small {
  color: #9aa3b1;
  font-size: 14px;
}

.scene-yield {
  z-index: 4;
  top: 54px;
  padding: 5px 15px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

.scene-solar {
  left: 58%;
  top: 82px;
}

.scene-grid-metric {
  left: 16%;
  top: 114px;
}

.scene-bottom {
  bottom: 58px;
}

.scene-inverter {
  left: 56%;
  transform: translateX(-50%);
}

.scene-device-card {
  right: 22px;
  bottom: 18px;
  z-index: 4;
}

.kpi-grid {
  display: none !important;
}

.power-profile-card {
  margin-bottom: 10px;
  padding: 18px 24px 16px;
  border-radius: 16px;
}

.profile-head h2 {
  font-size: 18px;
}

.profile-actions {
  gap: 12px;
}

.profile-actions .btn.primary {
  padding: 8px 18px;
  border-radius: 18px;
  font-size: 12px;
}

.date-pill {
  gap: 8px;
  padding: 5px 9px;
}

.date-pill input {
  width: 118px;
  font-size: 14px;
}

.date-pill .icon-btn {
  font-size: 18px;
  padding: 2px 6px;
}

.profile-legend {
  gap: 22px;
  margin: 18px 0 6px;
  font-size: 14px;
}

.profile-chart-wrap {
  height: 260px;
}

.axis-label,
.axis-unit {
  font-size: 14px;
}

.profile-foot {
  margin-top: 4px;
  padding-top: 9px;
  font-size: 10px;
}

.profile-foot b {
  font-size: 11px;
}

.dashboard-grid {
  gap: 10px;
}

.dashboard-main,
.dashboard-side {
  gap: 10px;
}

.dashboard-grid .card-head {
  padding: 11px 12px 0;
}

.dashboard-grid .card-head h2 {
  font-size: 12px;
}

.energy-flow {
  min-height: 210px;
  padding: 14px 18px 18px;
}

.flow-col {
  gap: 16px;
}

.flow-node {
  min-height: 74px;
  gap: 4px;
}

.flow-icon {
  font-size: 23px;
}

.inverter-node {
  min-height: 148px;
}

.inverter-box {
  width: 60px;
  height: 80px;
}

.display {
  width: 24px;
  height: 24px;
  margin-top: 10px;
}

.deye {
  margin-top: 19px;
}

.dashboard-side .donut-wrap {
  gap: 12px;
  padding: 12px;
}

.dashboard-side .donut {
  width: 86px;
  height: 86px;
}

.dashboard-side .donut::after {
  width: 56px;
  height: 56px;
}

.dashboard-side .info-list {
  padding: 8px 12px;
}

.tuya-profile-card {
  overflow: hidden;
  margin-top: 16px;
  padding: 16px 18px 14px;
}

#page-dashboard > .kpi-grid,
#page-dashboard > .dashboard-grid {
  display: none;
}

body {
  overflow-x: hidden;
}

.app-shell {
  display: block;
}

.sidebar,
.topbar,
#page-dashboard > .weather-strip,
.page:not(#page-dashboard) {
  display: none !important;
}

.main {
  width: 100% !important;
  margin-left: 0 !important;
}

.content {
  width: 100%;
  max-width: 1680px;
  padding: 14px 18px 18px;
}

#page-dashboard {
  display: block !important;
}

.solar-3d-panel {
  margin-top: 0;
}

.tuya-profile-card {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tuya-profile-card > .profile-head,
.tuya-profile-card > .profile-foot {
  display: none;
}

.tuya-profile-card .profile-chart-wrap {
  height: auto;
}

.tuya-meter-zone {
  padding: 0;
}

.tuya-profile-card .profile-head {
  margin-bottom: 6px;
}

.tuya-profile-card .profile-head h2 {
  font-size: 20px;
}

.tuya-profile-card .profile-foot {
  display: none;
}

.tuya-meter-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.tuya-meter-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

.tuya-meter-status.is-live {
  color: #15803d;
}

.tuya-meter-status.is-live::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  animation: sceneStatusPulse 1.08s ease-in-out infinite;
}

.tuya-meter-status.is-error {
  color: #b91c1c;
}

.tuya-meter-status.is-error::before {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.tuya-meter-zone {
  height: auto;
  min-height: 0;
  padding: 8px 0 2px;
}

.tuya-meter-zone #powerProfileSvg {
  display: none;
}

.tuya-pixel-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border: 3px solid #173659;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 247, 215, 0.78)),
    repeating-linear-gradient(0deg, rgba(23, 54, 89, 0.06) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(23, 54, 89, 0.06) 0 1px, transparent 1px 12px);
  box-shadow: 7px 7px 0 rgba(19, 35, 58, 0.18);
  color: #0f2340;
}

.tuya-pixel-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(23, 54, 89, 0.16);
  pointer-events: none;
}

.tuya-pixel-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.7fr);
  gap: 12px;
}

.tuya-pixel-top > div:first-child,
.tuya-pixel-grid,
.tuya-channel,
.tuya-total-energy,
.tuya-bill-grid article {
  border: 2px solid #173659;
  background: rgba(255, 253, 235, 0.92);
  box-shadow: 4px 4px 0 rgba(19, 35, 58, 0.14);
}

.tuya-pixel-top > div:first-child {
  padding: 11px 14px;
}

.tuya-pixel-top span,
.tuya-channel-head small,
.tuya-mini-grid span,
.tuya-total-energy span,
.tuya-bill-grid span {
  color: #315a91;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.tuya-pixel-top strong {
  display: block;
  margin-top: 4px;
  color: #0f2340;
  font-size: 32px;
  line-height: 1;
}

.tuya-pixel-top small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.tuya-pixel-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 10px;
  align-content: center;
  padding: 11px 14px;
}

.tuya-pixel-grid b {
  color: #0f2340;
  font-size: 18px;
  line-height: 1;
}

.tuya-channel-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tuya-channel {
  padding: 11px 12px;
}

.tuya-channel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tuya-channel-head > span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 2px solid #173659;
  background: #dff7ee;
  color: #173659;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(19, 35, 58, 0.14);
}

.tuya-channel-head div {
  min-width: 0;
  flex: 1;
}

.tuya-channel-head b {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.tuya-channel-head i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
  animation: sceneStatusPulse 1.08s ease-in-out infinite;
}

.tuya-channel-head i.is-active {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.tuya-channel > strong {
  display: block;
  margin-top: 10px;
  color: #0f2340;
  font-size: 29px;
  line-height: 1;
}

.tuya-mini-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 2px dashed rgba(23, 54, 89, 0.22);
}

.tuya-mini-grid b,
.tuya-total-energy b {
  color: #0f2340;
  font-size: 14px;
}

.tuya-total-energy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 9px 12px;
}

.tuya-total-energy span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tuya-bill-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tuya-bill-grid article {
  padding: 10px 12px;
}

.tuya-bill-grid strong {
  display: block;
  margin-top: 4px;
  color: #a3460f;
  font-size: 24px;
  line-height: 1;
}

.tuya-bill-grid small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.tuya-bill-grid article:first-child strong {
  color: #0f2340;
}

@media (max-width: 1200px) {
  .solar-3d-scene {
    min-height: 580px;
  }

  .solar-house-img {
    width: min(1000px, 98%);
  }

  .scene-device-layer {
    width: min(1000px, 98%);
  }

  .scene-station-strip {
    right: 12px;
    width: 160px;
  }

  .scene-station-list {
    max-width: 160px;
  }

  .scene-metric strong,
  .scene-bottom strong {
    font-size: 27px;
  }

  .scene-metric span,
  .scene-bottom span {
    font-size: 15px;
  }

  .scene-metric small,
  .scene-bottom small {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .solar-3d-scene {
    min-height: 520px;
  }

  .solar-house-img {
    left: 51%;
    width: min(880px, 112%);
  }

  .scene-device-layer {
    left: 51%;
    width: min(880px, 112%);
  }

  .scene-station-strip {
    right: 12px;
    top: 12px;
    width: 150px;
  }

  .scene-station-list {
    max-width: 150px;
  }

  .scene-station-card {
    padding: 7px 8px;
  }

  .scene-station-card b {
    font-size: 11px;
  }

  .scene-station-card small,
  .scene-station-card i {
    font-size: 9px;
  }

  .scene-yield {
    top: 28px;
    font-size: 13px;
  }

  .scene-solar {
    left: 60%;
    top: 66px;
  }

  .scene-grid-metric {
    left: 17%;
    top: 70px;
  }

  .scene-bottom {
    bottom: 36px;
  }

  .scene-metric strong,
  .scene-bottom strong {
    font-size: 22px;
  }

  .scene-metric span,
  .scene-bottom span {
    font-size: 12px;
  }

  .scene-metric small,
  .scene-bottom small {
    font-size: 10px;
  }

  .tag-name {
    min-width: 35px;
    min-height: 20px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .tag-value {
    min-width: 58px;
    min-height: 22px;
    padding: 4px 6px;
    font-size: 13px;
  }

  .scene-total-pixel,
  .scene-money-pixel {
    min-width: 118px;
    padding: 7px 8px;
  }

  .scene-total-pixel strong,
  .scene-money-pixel strong {
    font-size: 18px;
  }

  .power-profile-card {
    padding: 16px 14px 14px;
  }

  .profile-chart-wrap {
    height: 230px;
  }

  .tuya-meter-zone {
    height: auto;
    min-height: 0;
  }

  .tuya-pixel-top {
    grid-template-columns: 1fr;
  }

  .tuya-pixel-top strong {
    font-size: 31px;
  }

  .tuya-channel > strong {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .content {
    padding: 8px;
  }

  .weather-strip {
    flex-wrap: wrap;
    padding: 0 2px;
    font-size: 10px;
    line-height: 1.25;
  }

  .solar-3d-panel {
    position: relative;
    left: 50%;
    width: 100vw;
    margin: 0 0 12px;
    transform: translateX(-50%);
  }

  .solar-3d-scene {
    min-height: 0;
    aspect-ratio: 1672 / 941;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .solar-house-img {
    left: 50%;
    top: 50%;
    width: 100%;
    height: auto;
  }

  .scene-device-layer {
    left: 50%;
    top: 50%;
    width: 100%;
  }

  .scene-station-strip {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .scene-station-strip > div:first-child {
    display: none;
  }

  .scene-station-list {
    display: flex;
    min-width: max-content;
    max-width: none;
  }

  .scene-station-card {
    width: 108px;
    flex: 0 0 auto;
  }

  .scene-yield {
    top: 8px;
    padding: 4px 10px;
    font-size: 10px;
  }

  .scene-solar {
    left: 61%;
    top: 45px;
  }

  .scene-grid-metric {
    left: 20%;
    top: 52px;
  }

  .scene-bottom {
    bottom: 26px;
  }

  .scene-inverter {
    left: 56%;
  }

  .scene-metric strong,
  .scene-bottom strong {
    font-size: 18px;
  }

  .scene-metric span,
  .scene-bottom span {
    font-size: 10px;
  }

  .scene-metric small,
  .scene-bottom small {
    font-size: 9px;
  }

  .mini-brand {
    min-width: 58px;
    height: 30px;
    font-size: 11px;
  }

  .tag-name {
    min-width: 31px;
    min-height: 18px;
    padding: 2px 4px;
    border-width: 1.5px;
    box-shadow: 2px 2px 0 rgba(19, 35, 58, 0.16);
    font-size: 8px;
  }

  .tag-value {
    min-width: 42px;
    min-height: 18px;
    padding: 3px 5px;
    border-width: 1.5px;
    box-shadow: 2px 2px 0 rgba(19, 35, 58, 0.16);
    font-size: 10px;
  }

  .panel-tag .tag-value,
  .panel-tag:hover .tag-value,
  .panel-tag:focus-visible .tag-value,
  .scene-device-tag::before {
    display: none;
  }

  .inverter-tag .tag-name {
    top: -22px;
  }

  .inverter-tag .tag-value {
    bottom: -22px;
  }

  .active-device .tag-name::after,
  .off .tag-name::after {
    width: 6px;
    height: 6px;
    margin-left: 4px;
  }

  .scene-total-pixel,
  .scene-money-pixel {
    left: 8%;
    min-width: 86px;
    padding: 5px 6px;
    border-width: 1.5px;
    box-shadow: 2px 2px 0 rgba(19, 35, 58, 0.18);
  }

  .scene-total-pixel {
    top: 60%;
  }

  .scene-money-pixel {
    top: 72%;
    min-width: 94px;
  }

  .scene-total-pixel span,
  .scene-total-pixel small,
  .scene-money-pixel span,
  .scene-money-pixel small {
    font-size: 7px;
    letter-spacing: 0.2px;
  }

  .scene-total-pixel strong,
  .scene-money-pixel strong {
    margin-top: 3px;
    font-size: 12px;
  }

  .scene-total-pixel small,
  .scene-money-pixel small {
    margin-top: 3px;
  }

  .power-profile-card {
    margin-top: 10px;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .profile-head {
    gap: 8px;
  }

  .profile-head h2 {
    font-size: 15px;
  }

  .profile-actions {
    gap: 8px;
  }

  .profile-actions .btn.primary {
    padding: 7px 12px;
    font-size: 11px;
  }

  .date-pill {
    gap: 4px;
    padding: 4px 6px;
  }

  .date-pill input {
    width: 96px;
    font-size: 12px;
  }

  .profile-legend {
    gap: 12px;
    margin: 12px 0 4px;
    font-size: 12px;
  }

  .profile-chart-wrap {
    height: 180px;
  }

  .tuya-meter-zone {
    height: auto;
    padding-top: 10px;
  }

  .tuya-pixel-card {
    gap: 12px;
    min-height: 0;
    padding: 12px;
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(19, 35, 58, 0.16);
  }

  .tuya-pixel-card::before {
    inset: 6px;
  }

  .tuya-channel-grid,
  .tuya-total-energy,
  .tuya-bill-grid {
    grid-template-columns: 1fr;
  }

  .tuya-pixel-top > div:first-child,
  .tuya-pixel-grid,
  .tuya-channel,
  .tuya-total-energy,
  .tuya-bill-grid article {
    border-width: 2px;
    box-shadow: 3px 3px 0 rgba(19, 35, 58, 0.13);
  }

  .tuya-pixel-top > div:first-child,
  .tuya-pixel-grid,
  .tuya-channel {
    padding: 11px;
  }

  .tuya-pixel-top strong {
    font-size: 28px;
  }

  .tuya-pixel-grid b {
    font-size: 17px;
  }

  .tuya-channel-head > span {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .tuya-channel-head b {
    font-size: 16px;
  }

  .tuya-channel > strong {
    margin-top: 12px;
    font-size: 26px;
  }

  .tuya-mini-grid b,
  .tuya-total-energy b {
    font-size: 13px;
  }

  .tuya-bill-grid strong {
    font-size: 22px;
  }

  .profile-foot {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 9px;
  }

  .energy-flow {
    min-height: 0;
    padding: 10px;
  }

  .flow-node {
    min-height: 58px;
  }

  .inverter-node {
    min-height: 118px;
  }
}
