        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --bg-1: #040815;
            --bg-2: #071126;
            --panel: rgba(8, 16, 36, 0.82);
            --panel-strong: rgba(10, 18, 42, 0.94);
            --stroke: rgba(120, 156, 255, 0.16);
            --stroke-strong: rgba(127, 190, 255, 0.24);
            --text: #edf4ff;
            --muted: #91a8d8;
            --cyan: #38bdf8;
            --blue: #4f7cff;
            --green: #22c55e;
            --yellow: #fbbf24;
            --red: #fb7185;
            --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
            --radius: 28px;
        }

        html,
        body {
            min-height: 100%;
        }

        body {
            font-family: Arial, Helvetica, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at 14% 16%, rgba(79, 124, 255, 0.18), transparent 24%),
                radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.16), transparent 22%),
                radial-gradient(circle at 50% 96%, rgba(34, 197, 94, 0.08), transparent 24%),
                linear-gradient(135deg, var(--bg-1), var(--bg-2));
            overflow-x: hidden;
        }

        body::before,
        body::after {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
        }

        body::before {
            background-image:
                linear-gradient(rgba(124, 155, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(124, 155, 255, 0.05) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: radial-gradient(circle at center, black 48%, transparent 95%);
        }

        body::after {
            background:
                radial-gradient(circle at 20% 34%, rgba(255,255,255,0.08) 0 1px, transparent 1px),
                radial-gradient(circle at 78% 24%, rgba(255,255,255,0.06) 0 1px, transparent 1px),
                radial-gradient(circle at 56% 72%, rgba(255,255,255,0.05) 0 1px, transparent 1px);
            background-size: 180px 180px, 240px 240px, 280px 280px;
            animation: floatDots 14s linear infinite;
            opacity: 0.55;
        }

        @keyframes floatDots {
            from { transform: translateY(0); }
            to { transform: translateY(-28px); }
        }
		
		.clickable-badge {
			cursor: pointer;
			user-select: none;
		}

		.lcd-modal {
			position: fixed;
			inset: 0;
			display: none;
			align-items: center;
			justify-content: center;
			z-index: 9999;
		}

		.lcd-modal.show {
			display: flex;
		}

		.lcd-modal-backdrop {
			position: absolute;
			inset: 0;
			background: rgba(0, 0, 0, 0.55);
			backdrop-filter: blur(4px);
		}

		.lcd-modal-dialog {
			position: relative;
			width: min(1000px, 92vw);
			height: min(700px, 88vh);
			background: #101828;
			border-radius: 18px;
			overflow: hidden;
			box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
			z-index: 1;
			display: flex;
			flex-direction: column;
		}

		.lcd-modal-header {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 14px 18px;
			border-bottom: 1px solid rgba(255,255,255,0.08);
			color: #fff;
		}

		.lcd-modal-close {
			border: none;
			background: transparent;
			color: #fff;
			font-size: 28px;
			line-height: 1;
			cursor: pointer;
		}

		.lcd-modal-body {
			flex: 1;
			background: #0b1220;
		}

		.lcd-modal-body iframe {
			width: 100%;
			height: 100%;
			border: none;
			display: block;
		}

        .wrap {
            position: relative;
            z-index: 1;
            width: min(1420px, calc(100% - 28px));
            margin: 0 auto;
            padding: 20px 0 28px;
        }

        .glass-card {
            position: relative;
            border-radius: var(--radius);
            background: linear-gradient(180deg, rgba(12, 22, 50, 0.9), rgba(8, 14, 30, 0.84));
            border: 1px solid var(--stroke);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), var(--shadow);
            overflow: hidden;
            backdrop-filter: blur(18px);
        }

        .glass-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.035), transparent 28%, transparent 72%, rgba(255,255,255,0.02));
            pointer-events: none;
        }

        .glass-card::after {
            content: "";
            position: absolute;
            left: 18px;
            right: 18px;
            top: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.72), transparent);
            opacity: 0.85;
            pointer-events: none;
        }

        .topbar {
            padding: 16px 18px;
            margin-bottom: 10px;
        }

        .topbar-main {
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 16px;
        }

        .title-block {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            flex: 1 1 auto;
            min-width: 0;
        }

        .topbar-side {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
            width: min(520px, 100%);
            flex: 0 1 520px;
        }

        .header-weather {
            padding: 12px 14px;
            border-radius: 22px;
            background: linear-gradient(135deg, rgba(11, 20, 46, 0.94), rgba(6, 12, 28, 0.9));
            border: 1px solid rgba(125, 211, 252, 0.16);
        }

        .weather-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .weather-location {
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            color: #bfe9ff;
        }

        .weather-sync {
            font-size: 11px;
            color: var(--muted);
            white-space: nowrap;
        }

        .weather-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }

        .weather-chip {
            padding: 9px 10px;
            border-radius: 16px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.05);
            min-height: 72px;
        }

        .weather-chip .k {
            font-size: 9.5px;
            font-weight: 800;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 7px;
        }

        .weather-chip .v {
            font-size: 12px;
            font-weight: 600;
            line-height: 1.25;
            word-break: break-word;
        }

        .weather-chip .v.big {
            font-size: 14px;
            line-height: 1.15;
        }

        .weather-chip.condition-chip .v {
            display: flex;
            align-items: center;
            gap: 8px;
        }


        .weather-symbol {
            font-size: 18px;
            line-height: 1;
        }

        .weather-chip.clickable {
            cursor: pointer;
            transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
        }

        .weather-chip.clickable:hover,
        .weather-chip.clickable:focus-visible {
            transform: translateY(-2px);
            border-color: rgba(125, 211, 252, 0.32);
            background: rgba(255,255,255,0.08);
            box-shadow: 0 12px 28px rgba(0,0,0,0.24), 0 0 0 1px rgba(125, 211, 252, 0.14);
            outline: none;
        }

        .weather-chip.clickable::after {
            content: "Lihat forecast";
            display: block;
            margin-top: 6px;
            font-size: 9.5px;
            font-weight: 800;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            color: #9edcff;
        }

        body.forecast-modal-open {
            overflow: hidden;
        }

        .forecast-modal {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.25s ease, visibility 0.25s ease;
            z-index: 9999;
        }

        .forecast-modal.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .forecast-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(2, 6, 23, 0.72);
            backdrop-filter: blur(6px);
        }

        .forecast-modal-dialog {
            position: relative;
            z-index: 1;
            width: min(920px, calc(100vw - 28px));
            max-height: min(92vh, 860px);
            overflow: hidden;
            border-radius: 28px;
            border: 1px solid rgba(125, 211, 252, 0.18);
            background: linear-gradient(180deg, rgba(12, 22, 50, 0.97), rgba(6, 12, 28, 0.95));
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
        }

        .forecast-modal-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 18px 20px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }

        .forecast-modal-title-wrap h3 {
            font-size: 22px;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 6px;
        }

        .forecast-modal-title-wrap p {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .forecast-modal-close {
            width: 42px;
            height: 42px;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 14px;
            background: rgba(255,255,255,0.05);
            color: var(--text);
            font-size: 22px;
            cursor: pointer;
            transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }

        .forecast-modal-close:hover,
        .forecast-modal-close:focus-visible {
            background: rgba(255,255,255,0.1);
            border-color: rgba(125, 211, 252, 0.28);
            transform: scale(1.03);
            outline: none;
        }

        .forecast-modal-body {
            padding: 18px 20px 20px;
            overflow: auto;
        }

        .forecast-overview {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 16px;
        }

        .forecast-overview-item {
            padding: 12px 13px;
            border-radius: 16px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
        }

        .forecast-overview-item .k {
            font-size: 9.5px;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 7px;
        }

        .forecast-overview-item .v {
            font-size: 15px;
            font-weight: 800;
            line-height: 1.3;
        }

        .forecast-status {
            margin-bottom: 10px;
            font-size: 12px;
            color: #c8dafb;
        }

        .forecast-carousel {
            display: grid;
            grid-template-columns: 56px minmax(0, 1fr) 56px;
            gap: 12px;
            align-items: stretch;
        }

        .forecast-nav {
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 18px;
            background: rgba(255,255,255,0.05);
            color: var(--text);
            font-size: 28px;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
        }

        .forecast-nav:hover:not(:disabled),
        .forecast-nav:focus-visible:not(:disabled) {
            background: rgba(255,255,255,0.1);
            border-color: rgba(125, 211, 252, 0.28);
            transform: translateY(-1px);
            outline: none;
        }

        .forecast-nav:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .forecast-slide {
            min-height: 360px;
            padding: 18px;
            border-radius: 24px;
            background:
                radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 30%),
                linear-gradient(180deg, rgba(9, 19, 44, 0.95), rgba(6, 13, 30, 0.88));
            border: 1px solid rgba(125, 211, 252, 0.12);
        }

        .forecast-slide-empty {
            display: grid;
            place-items: center;
            text-align: center;
            color: #c7d7f7;
            font-size: 14px;
            line-height: 1.6;
        }

        .forecast-slide-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 16px;
        }

        .forecast-time {
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: #a9e5ff;
            margin-bottom: 6px;
        }

        .forecast-condition {
            font-size: clamp(20px, 2.5vw, 30px);
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 6px;
        }

        .forecast-sub {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .forecast-icon {
            width: 88px;
            height: 88px;
            border-radius: 24px;
            display: grid;
            place-items: center;
            font-size: 42px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: inset 0 0 20px rgba(255,255,255,0.03), 0 0 28px rgba(56, 189, 248, 0.08);
            flex: 0 0 auto;
        }

        .forecast-main-grid {
            display: grid;
            grid-template-columns: 1.15fr 1fr;
            gap: 12px;
            margin-bottom: 10px;
        }

        .forecast-main-box,
        .forecast-detail-box {
            padding: 14px;
            border-radius: 18px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
        }

        .forecast-main-box .k,
        .forecast-detail-box .k {
            font-size: 9.5px;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 8px;
        }

        .forecast-main-temp {
            display: flex;
            align-items: baseline;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }

        .forecast-main-temp .num {
            font-size: clamp(34px, 3vw, 48px);
            font-weight: 900;
            line-height: 1;
            letter-spacing: -1px;
        }

        .forecast-main-temp .unit {
            font-size: 16px;
            font-weight: 800;
            color: var(--muted);
        }

        .forecast-main-box .feel {
            font-size: 13px;
            color: #c9dafe;
            line-height: 1.45;
        }

        .forecast-detail-list,
        .forecast-metric-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .forecast-metric,
        .forecast-detail-item {
            padding: 12px 13px;
            border-radius: 16px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
        }

        .forecast-metric .k,
        .forecast-detail-item .k {
            font-size: 9.5px;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 7px;
        }

        .forecast-metric .v,
        .forecast-detail-item .v {
            font-size: 15px;
            font-weight: 800;
            line-height: 1.3;
        }

        .forecast-dots {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-top: 16px;
        }

        .forecast-dot {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            border: 0;
            padding: 0;
            background: rgba(255,255,255,0.18);
            cursor: pointer;
            transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        }

        .forecast-dot.active {
            background: #7dd3fc;
            box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.16);
            transform: scale(1.1);
        }

        .eyebrow {
            color: #7dd3fc;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 2.1px;
            text-transform: uppercase;
        }

        .title {
            font-size: clamp(20px, 3.4vw, 40px);
            font-weight: 900;
            line-height: 0.98;
            letter-spacing: -0.8px;
        }

        .subtitle {
            color: var(--muted);
            font-size: 15px;
            line-height: 1.45;
            max-width: 760px;
        }

        .status-ribbon {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            min-width: 220px;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(11, 20, 46, 0.92), rgba(6, 12, 28, 0.92));
            border: 1px solid rgba(125, 211, 252, 0.18);
        }

        .status-core {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: var(--green);
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
            animation: ping 1.8s infinite;
            flex: 0 0 auto;
        }

        .status-core.off {
            background: var(--red);
            box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.42);
        }

        @keyframes ping {
            0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
            70% { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }

        .status-ribbon .label {
            font-size: 11px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1.3px;
            font-weight: 800;
        }

        .status-ribbon .value {
            font-size: 18px;
            font-weight: 900;
            line-height: 1.15;
        }

        .dashboard-shell {
            padding: 18px;
        }

        .flow-stage {
            position: relative;
            min-height: 560px;
            padding: 18px;
            border-radius: 30px;
            background:
                radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08), transparent 28%),
                linear-gradient(180deg, rgba(5, 13, 30, 0.85), rgba(3, 10, 24, 0.6));
            border: 1px solid rgba(125, 211, 252, 0.08);
            overflow: hidden;
        }

        .flow-stage::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, rgba(79, 124, 255, 0.08), transparent 46%);
            pointer-events: none;
        }

        .flow-grid {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 248px 320px 248px;
            grid-template-rows: minmax(188px, auto) minmax(188px, auto);
            grid-template-areas:
                "pln mode rumah"
                "plts mode rumah";
            justify-content: space-between;
            align-items: center;
            gap: 16px 24px;
            min-height: 470px;
        }

        .connector-layer {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .connector-layer.mobile-svg {
            display: none;
        }

        .energy-line {
            fill: none;
            stroke: rgba(125, 155, 255, 0.16);
            stroke-width: 10;
            stroke-linecap: round;
            filter: drop-shadow(0 0 8px rgba(79, 124, 255, 0.1));
            transition: stroke 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
            opacity: 0.55;
        }

        .energy-line.active {
            stroke: rgba(103, 232, 249, 0.96);
            stroke-dasharray: 14 18;
            animation: dashFlow 1.6s linear infinite;
            filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.52)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.22));
            opacity: 1;
        }

        .energy-line.line-load.active {
            stroke: rgba(110, 231, 183, 0.96);
            filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.52)) drop-shadow(0 0 24px rgba(34, 197, 94, 0.2));
        }

        @keyframes dashFlow {
            from { stroke-dashoffset: 0; }
            to { stroke-dashoffset: -64; }
        }

        .energy-dot {
            fill: #7dd3fc;
            opacity: 0;
            filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
            transition: opacity 0.35s ease;
        }

        .energy-dot.load-dot {
            fill: #86efac;
            filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.8));
        }

        .energy-dot.active {
            opacity: 1;
        }

        .area-pln { grid-area: pln; }
        .area-plts { grid-area: plts; }
        .area-mode { grid-area: mode; }
        .area-rumah { grid-area: rumah; }

        .split-stack {
            grid-area: plts;
            display: grid;
            gap: 8px;
            align-self: stretch;
            position: relative;
        }

        .stack-connector {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 24px;
            position: relative;
        }

        .stack-connector-line {
            width: 6px;
            height: 100%;
            border-radius: 999px;
            background: rgba(125, 155, 255, 0.18);
            box-shadow: inset 0 0 10px rgba(255,255,255,0.06);
            transition: background 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
            opacity: 0.8;
        }

        .stack-connector.active .stack-connector-line {
            background: linear-gradient(180deg, rgba(56, 189, 248, 0.9), rgba(125, 211, 252, 1));
            box-shadow: 0 0 14px rgba(56, 189, 248, 0.48), 0 0 28px rgba(56, 189, 248, 0.18);
        }

        .stack-connector-dot {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #7dd3fc;
            box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
            opacity: 0;
        }

        .stack-connector.active .stack-connector-dot {
            opacity: 1;
            animation: stackFlow 1.5s linear infinite;
        }

        @keyframes stackFlow {
            0% { transform: translateY(12px); }
            100% { transform: translateY(-12px); }
        }

        .split-card {
            min-height: 0;
        }

        .info-card {
            padding: 14px;
            min-height: 184px;
            transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
        }

        .info-card.active {
            border-color: rgba(125, 211, 252, 0.34);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 28px 80px rgba(0,0,0,0.42), 0 0 0 1px rgba(125,211,252,0.12);
            transform: translateY(-2px);
        }

        .pln-theme.active {
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 28px 80px rgba(0,0,0,0.42), 0 0 28px rgba(251, 191, 36, 0.14);
        }

        .plts-theme.active {
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 28px 80px rgba(0,0,0,0.42), 0 0 28px rgba(56, 189, 248, 0.14);
        }

        .load-card.active {
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 28px 80px rgba(0,0,0,0.42), 0 0 28px rgba(34, 197, 94, 0.14);
        }

        .panel-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .panel-title {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            min-width: 0;
        }

        .icon-chip {
            width: 40px;
            height: 40px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 900;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: inset 0 0 18px rgba(255,255,255,0.03);
            flex: 0 0 auto;
        }

        .pln-theme .icon-chip {
            color: var(--yellow);
            box-shadow: 0 0 30px rgba(251, 191, 36, 0.12), inset 0 0 18px rgba(251, 191, 36, 0.08);
        }

        .plts-theme .icon-chip {
            color: var(--cyan);
            box-shadow: 0 0 30px rgba(56, 189, 248, 0.14), inset 0 0 18px rgba(56, 189, 248, 0.08);
        }

        .load-theme .icon-chip {
            color: var(--green);
            box-shadow: 0 0 30px rgba(34, 197, 94, 0.14), inset 0 0 18px rgba(34, 197, 94, 0.08);
        }

        .panel-title h2 {
            font-size: 14px;
            font-weight: 900;
            line-height: 1.05;
            word-break: break-word;
        }

        .panel-title span {
            display: block;
            color: var(--muted);
            font-size: 9.5px;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-top: 5px;
        }

        .badge {
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 9.0px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: 1px solid rgba(255,255,255,0.08);
            white-space: nowrap;
            flex: 0 0 auto;
        }

        .badge.on {
            color: #bbf7d0;
            background: rgba(34, 197, 94, 0.14);
            border-color: rgba(34, 197, 94, 0.25);
        }

        .badge.off {
            color: #fecdd3;
            background: rgba(251, 113, 133, 0.12);
            border-color: rgba(251, 113, 133, 0.25);
        }

        .hero-value {
            display: flex;
            align-items: baseline;
            gap: 6px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .hero-value .num {
            font-size: clamp(24px, 1.9vw, 38px);
            font-weight: 900;
            line-height: 0.95;
            letter-spacing: -1px;
            word-break: break-word;
        }

        .hero-value .unit {
            font-size: 14px;
            color: var(--muted);
            font-weight: 800;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }
		
        .meter {
            position: relative;
            width: 100%;
            height: 10px;
            border-radius: 999px;
            overflow: hidden;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.05);
            margin-bottom: 10px;
        }

        .meter > span {
            display: block;
            height: 100%;
            width: 0%;
            border-radius: inherit;
            transition: width 0.55s ease;
            position: relative;
            overflow: hidden;
        }

        .meter > span::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
            animation: shimmer 2.2s linear infinite;
        }

        @keyframes shimmer {
            from { transform: translateX(-100%); }
            to { transform: translateX(100%); }
        }

        .meter.pln > span {
            background: linear-gradient(90deg, #f59e0b, #fde68a);
            box-shadow: 0 0 24px rgba(251, 191, 36, 0.25);
        }

        .meter.plts > span {
            background: linear-gradient(90deg, #0ea5e9, #67e8f9);
            box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
        }

        .meter.load > span {
            background: linear-gradient(90deg, #16a34a, #86efac);
            box-shadow: 0 0 24px rgba(34, 197, 94, 0.25);
        }

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

        .stat {
            padding: 9px 10px;
            border-radius: 15px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.05);
            min-height: 60px;
        }

        .stat .k {
            font-size: 9.5px;
            font-weight: 800;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 7px;
        }

        .stat .v {
            font-size: clamp(13px, 1vw, 15px);
            font-weight: 800;
            line-height: 1.2;
            word-break: break-word;
        }

        .note {
            margin-top: 11px;
            font-size: 12px;
            color: #b9caed;
            line-height: 1.45;
            min-height: 34px;
        }

        .mode-card {
            position: relative;
            padding: 18px 16px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            gap: 12px;
            min-height: 388px;
            background:
                radial-gradient(circle at center, rgba(79, 124, 255, 0.18), transparent 56%),
                linear-gradient(180deg, rgba(12, 22, 50, 0.9), rgba(8, 14, 30, 0.86));
        }

        .mode-card.mode-pln {
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 28px 80px rgba(0,0,0,0.42), 0 0 36px rgba(251, 191, 36, 0.12);
        }

        .mode-card.mode-plts {
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 28px 80px rgba(0,0,0,0.42), 0 0 36px rgba(56, 189, 248, 0.12);
        }

        .mode-head {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 10px;
            font-weight: 800;
            color: var(--muted);
            letter-spacing: 1.8px;
            text-transform: uppercase;
        }

        .hub-ring {
            position: relative;
            width: 132px;
            height: 132px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: radial-gradient(circle, rgba(14, 165, 233, 0.2), rgba(79, 124, 255, 0.08) 52%, transparent 72%);
        }

        .hub-ring::before,
        .hub-ring::after {
            content: "";
            position: absolute;
            border-radius: 50%;
        }

        .hub-ring::before {
            inset: 0;
            border: 2px solid rgba(125, 211, 252, 0.34);
            box-shadow: 0 0 34px rgba(56, 189, 248, 0.14);
            animation: rotate 10s linear infinite;
        }

        .hub-ring::after {
            inset: 10px;
            border: 2px dashed rgba(167, 139, 250, 0.32);
            animation: rotateReverse 14s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes rotateReverse {
            from { transform: rotate(360deg); }
            to { transform: rotate(0deg); }
        }

        .hub-core {
            position: relative;
            z-index: 1;
            width: 78px;
            height: 78px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: linear-gradient(180deg, rgba(24, 37, 78, 0.98), rgba(10, 16, 34, 0.95));
            border: 1px solid rgba(125, 211, 252, 0.2);
            box-shadow: inset 0 0 28px rgba(79, 124, 255, 0.18), 0 0 40px rgba(79, 124, 255, 0.12);
            font-size: 22px;
            font-weight: 900;
        }

        .mode-value {
            font-size: clamp(28px, 2.1vw, 38px);
            font-weight: 900;
            line-height: 0.95;
            letter-spacing: -1px;
        }

        .mode-value .accent {
            color: #7dd3fc;
        }

        .hub-pill {
            padding: 8px 12px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 1px;
            text-transform: uppercase;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
        }

        .hub-pill.pln {
            color: #fde68a;
            border-color: rgba(251, 191, 36, 0.22);
            background: rgba(251, 191, 36, 0.1);
        }

        .hub-pill.plts {
            color: #a5f3fc;
            border-color: rgba(56, 189, 248, 0.22);
            background: rgba(56, 189, 248, 0.1);
        }

        .hub-pill.idle {
            color: #d8e4ff;
            border-color: rgba(148, 163, 184, 0.2);
            background: rgba(148, 163, 184, 0.1);
        }

        .hub-sub {
            color: #c2d5ff;
            font-size: 13px;
            line-height: 1.45;
            max-width: 280px;
        }

        .mode-mini-grid {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .mini-status {
            padding: 10px;
            border-radius: 16px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.05);
            text-align: left;
        }

        .mini-status .k {
            font-size: 9.5px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 800;
            margin-bottom: 6px;
        }

		.mini-status .v {
			font-size: 13px;
			font-weight: 800;
			line-height: 1.25;
			word-break: break-word;
		}

		.mini-status .v div {
			display: block;
		}

        .footer-grid {
            margin-top: 12px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            grid-auto-rows: 1fr;
            gap: 8px;
            align-items: stretch;
        }

        .footer-card {
            padding: 12px 14px;
            min-height: 86px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
        }

        .footer-card .head {
            font-size: 9.5px;
            font-weight: 800;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 7px;
        }

        .footer-card .body {
            font-size: clamp(16px, 1.45vw, 21px);
            font-weight: 900;
            line-height: 1.2;
            word-break: break-word;
        }

        .footer-card .desc {
            margin-top: 6px;
            font-size: 11px;
            color: #bcd0fb;
            line-height: 1.4;
        }

        .system-good { color: #86efac; }
        .system-info { color: #7dd3fc; }
        .system-bad { color: #fda4af; }
        .system-neutral { color: #e5edff; }

        .mobile-energy-ui,
        .mobile-detail-panel {
            display: none;
        }

        .mobile-energy-ui {
            position: relative;
            z-index: 2;
            min-height: 470px;
        }

        .energy-node {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            padding: 10px 12px;
            border-radius: 18px;
            border: 1px solid rgba(125, 211, 252, 0.16);
            background: linear-gradient(180deg, rgba(10, 20, 46, 0.86), rgba(6, 12, 30, 0.78));
            color: var(--text);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 16px 32px rgba(0,0,0,0.26);
            backdrop-filter: blur(16px);
            cursor: pointer;
            transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
            text-align: left;
        }

        .energy-node:active {
            transform: scale(0.98);
        }

        .energy-node.active {
            border-color: rgba(125, 211, 252, 0.4);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 42px rgba(0,0,0,0.3), 0 0 24px rgba(56, 189, 248, 0.16);
        }

        .energy-node .node-icon {
            width: 40px;
            height: 40px;
            border-radius: 13px;
            display: grid;
            place-items: center;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            font-size: 18px;
            flex: 0 0 auto;
        }

        .energy-node .node-copy {
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-width: 0;
            flex: 1 1 auto;
            overflow: hidden;
        }

        .energy-node .node-copy strong {
            font-size: 14px;
            font-weight: 900;
            line-height: 1.1;
        }

        .energy-node .node-copy small {
            color: #d3e3ff;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .energy-node .node-badge {
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 9.5px;
            font-weight: 900;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            white-space: nowrap;
            border: 1px solid rgba(255,255,255,0.08);
            flex: 0 0 auto;
            margin-left: auto;
        }

        .energy-node .node-badge.on {
            color: #bbf7d0;
            background: rgba(34, 197, 94, 0.14);
            border-color: rgba(34, 197, 94, 0.25);
        }

        .energy-node .node-badge.off {
            color: #fecdd3;
            background: rgba(251, 113, 133, 0.12);
            border-color: rgba(251, 113, 133, 0.25);
        }

        .node-pln {
            top: 18px;
            left: 6px;
            width: 146px;
        }

        .node-plts {
            top: 18px;
            right: 6px;
            width: 150px;
        }

        .node-load {
            left: 50%;
            bottom: 6px;
            transform: translateX(-50%);
            width: min(262px, calc(100% - 36px));
        }

        .node-load:active {
            transform: translateX(-50%) scale(0.98);
        }

        .mobile-hub {
            position: absolute;
            left: 50%;
            top: 160px;
            transform: translateX(-50%);
            width: min(260px, calc(100% - 48px));
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 8px;
            pointer-events: none;
        }

        .mobile-hub .mode-head {
            font-size: 9.5px;
            letter-spacing: 1.3px;
        }

        .mobile-hub-ring {
            width: 132px;
            height: 132px;
        }

        .mobile-hub-ring .hub-core {
            width: 74px;
            height: 74px;
            font-size: 21px;
        }

        .mobile-hub .mode-value {
            font-size: 36px;
        }

        .mobile-hub .hub-pill {
            font-size: 9.5px;
            padding: 8px 12px;
        }

        .mobile-hub .hub-sub {
            display: none;
        }

        .mobile-detail-panel {
            margin-top: 14px;
            padding: 14px;
            border-radius: 20px;
        }

        .mobile-detail-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .mobile-detail-label {
            color: var(--muted);
            font-size: 9.5px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1.3px;
            margin-bottom: 6px;
        }

        .mobile-detail-title {
            font-size: 18px;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 4px;
        }

        .mobile-detail-subtitle {
            color: #c5d5f6;
            font-size: 12px;
            line-height: 1.45;
        }

        .mobile-detail-primary {
            display: flex;
            align-items: baseline;
            gap: 6px;
            flex: 0 0 auto;
        }

        .mobile-detail-primary .num {
            font-size: 34px;
            font-weight: 900;
            line-height: 1;
        }

        .mobile-detail-primary .unit {
            font-size: 14px;
            color: var(--muted);
            font-weight: 800;
            text-transform: uppercase;
        }

        .mobile-detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .mobile-detail-stat {
            padding: 9px 10px;
            border-radius: 14px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.05);
        }

        .mobile-detail-stat .k {
            font-size: 9.5px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 800;
            margin-bottom: 7px;
        }

        .mobile-detail-stat .v {
            font-size: 15px;
            font-weight: 800;
            line-height: 1.25;
            word-break: break-word;
        }

        .mobile-detail-note {
            margin-top: 12px;
            color: #c5d5f6;
            font-size: 12px;
            line-height: 1.5;
        }

        .mobile-subdetail-card {
            margin-top: 14px;
            padding: 14px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(9, 18, 42, 0.9), rgba(6, 12, 30, 0.76));
            border: 1px solid rgba(125, 211, 252, 0.14);
        }

        .mobile-subdetail-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .mobile-subdetail-label {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 4px;
        }

        .mobile-subdetail-title {
            font-size: 15px;
            font-weight: 800;
            color: var(--text);
        }

        .mobile-subdetail-badge {
            padding: 7px 10px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.08);
            color: #dbeafe;
            white-space: nowrap;
        }

        .mobile-subdetail-badge.active {
            background: rgba(34, 197, 94, 0.14);
            border-color: rgba(34, 197, 94, 0.28);
            color: #c7ffd8;
        }

        .mobile-subdetail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .mobile-detail-stat-full {
            grid-column: 1 / -1;
        }

        .mobile-detail-actions {
            display: flex;
            margin-top: 14px;
        }

        .mobile-action-btn {
            width: 100%;
            border: 1px solid rgba(56, 189, 248, 0.28);
            background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(79, 124, 255, 0.14));
            color: #eff6ff;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.2px;
            border-radius: 14px;
            padding: 12px 14px;
            cursor: pointer;
            transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        }

        .mobile-action-btn:hover,
        .mobile-action-btn:focus-visible {
            transform: translateY(-1px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
            border-color: rgba(125, 211, 252, 0.42);
            outline: none;
        }

        .mobile-scene-note {
            display: none;
            margin-top: 14px;
            padding: 11px 14px;
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(10, 20, 46, 0.72), rgba(6, 12, 30, 0.62));
            border: 1px solid rgba(125, 211, 252, 0.12);
            color: #cfe0ff;
            font-size: 12px;
            line-height: 1.55;
            text-align: center;
        }


        @media (max-width: 900px) {
            .forecast-overview {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .forecast-main-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            body.forecast-modal-open {
                position: fixed;
                width: 100%;
            }

            .forecast-modal {
                padding: 0;
                align-items: stretch;
            }

            .forecast-modal-dialog {
                width: 100vw;
                max-height: 100dvh;
                height: 100dvh;
                border-radius: 0;
                border-left: 0;
                border-right: 0;
                display: flex;
                flex-direction: column;
            }

            .forecast-modal-header {
                position: sticky;
                top: 0;
                z-index: 3;
                padding: 14px 14px 12px;
                background: linear-gradient(180deg, rgba(10, 18, 42, 0.98), rgba(7, 14, 32, 0.96));
                backdrop-filter: blur(10px);
            }

            .forecast-modal-title-wrap {
                min-width: 0;
            }

            .forecast-modal-title-wrap h3 {
                font-size: 18px;
                line-height: 1.2;
                margin-bottom: 4px;
            }

            .forecast-modal-title-wrap p {
                font-size: 12px;
                line-height: 1.45;
            }

            .forecast-modal-close {
                width: 40px;
                height: 40px;
                flex: 0 0 auto;
            }

            .forecast-modal-body {
                flex: 1 1 auto;
                min-height: 0;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
                padding: 12px 14px 20px;
            }

            .forecast-overview {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                margin-bottom: 10px;
            }

            .forecast-overview-item {
                padding: 9px 10px;
                border-radius: 14px;
            }

            .forecast-overview-item .k {
                font-size: 9px;
                letter-spacing: 0.8px;
                margin-bottom: 6px;
            }

            .forecast-overview-item .v {
                font-size: 13px;
                line-height: 1.3;
                word-break: break-word;
            }

            .forecast-status {
                margin-bottom: 10px;
                font-size: 11px;
                line-height: 1.45;
            }

            .forecast-carousel {
                display: grid;
                grid-template-columns: 1fr auto auto 1fr;
                gap: 8px;
                align-items: center;
            }

            .forecast-slide {
                grid-column: 1 / -1;
                grid-row: 1;
                min-height: unset;
                padding: 13px;
                border-radius: 20px;
            }

            #forecastPrevBtn {
                grid-column: 2;
                grid-row: 2;
                min-width: 46px;
                min-height: 46px;
            }

            #forecastNextBtn {
                grid-column: 3;
                grid-row: 2;
                min-width: 46px;
                min-height: 46px;
            }

            .forecast-nav {
                min-height: 46px;
                font-size: 22px;
                border-radius: 14px;
            }

            .forecast-slide-head {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                margin-bottom: 10px;
            }

            .forecast-time {
                font-size: 12px;
                letter-spacing: 1px;
            }

            .forecast-condition {
                font-size: clamp(18px, 6vw, 24px);
                line-height: 1.15;
            }

            .forecast-sub {
                font-size: 12px;
                line-height: 1.5;
            }

            .forecast-icon {
                width: 64px;
                height: 64px;
                font-size: 30px;
                border-radius: 18px;
            }

            .forecast-main-box,
            .forecast-detail-box,
            .forecast-metric,
            .forecast-detail-item {
                padding: 11px 12px;
                border-radius: 14px;
            }

            .forecast-main-box .k,
            .forecast-detail-box .k,
            .forecast-metric .k,
            .forecast-detail-item .k {
                font-size: 9px;
                letter-spacing: 0.8px;
            }

            .forecast-main-temp {
                gap: 6px;
            }

            .forecast-main-temp .num {
                font-size: clamp(28px, 9vw, 38px);
            }

            .forecast-main-temp .unit {
                font-size: 14px;
            }

            .forecast-main-box .feel,
            .forecast-metric .v,
            .forecast-detail-item .v {
                font-size: 13px;
                line-height: 1.45;
                word-break: break-word;
            }

            .forecast-detail-list,
            .forecast-metric-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .forecast-dots {
                margin-top: 12px;
                gap: 7px;
                padding-bottom: 6px;
            }
        }

        @media (max-width: 420px) {
            .forecast-modal-header {
                padding: 12px 12px 10px;
            }

            .forecast-modal-body {
                padding: 10px 12px 18px;
            }

            .forecast-overview {
                grid-template-columns: 1fr;
            }

            .forecast-slide {
                padding: 10px;
            }

            .forecast-nav {
                min-height: 44px;
            }
        }

        @media (max-height: 720px) and (max-width: 640px) {
            .forecast-modal-title-wrap p {
                display: none;
            }

            .forecast-status {
                margin-bottom: 8px;
            }
        }

        @media (max-width: 1180px) {
            .flow-grid {
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto auto auto;
                grid-template-areas:
                    "pln plts"
                    "mode mode"
                    "rumah rumah";
                gap: 18px;
                min-height: auto;
            }

            .flow-stage {
                min-height: auto;
            }

            .connector-layer.desktop-svg {
                display: none;
            }

            .connector-layer.mobile-svg {
                display: block;
            }

            .mode-card,
            .load-card,
            .info-card {
                min-height: auto;
            }
        }

        @media (max-width: 860px) {
            .wrap {
                width: min(100%, calc(100% - 14px));
                padding-top: 12px;
            }

            .topbar,
            .dashboard-shell,
            .footer-card,
            .info-card,
            .mode-card,
            .flow-stage {
                border-radius: 22px;
            }

            .topbar {
                padding: 14px 15px;
            }

            .topbar-main {
                flex-direction: column;
                align-items: stretch;
            }

            .topbar-side {
                width: 100%;
                flex-basis: auto;
            }

            .status-ribbon {
                width: 100%;
                min-width: 0;
            }

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

            .dashboard-shell {
                padding: 10px;
            }

            .flow-stage {
                padding: 10px;
            }

            .flow-grid,
            .footer-grid,
            .mode-mini-grid {
                gap: 12px;
            }

            .info-card,
            .mode-card,
            .footer-card {
                padding: 14px;
            }

            .hero-value .num {
                font-size: 34px;
            }

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

            .footer-card:nth-child(3) {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 640px) {
            .title {
                font-size: clamp(20px, 8vw, 34px);
            }

            .status-ribbon {
                padding: 11px 14px;
                border-radius: 18px;
            }

            .status-ribbon .value {
                font-size: 17px;
            }

            .weather-head {
                flex-direction: column;
                align-items: flex-start;
            }

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

            .weather-chip {
                min-height: 60px;
                padding: 9px 10px;
            }

            .flow-stage {
                padding: 10px 8px 12px;
                min-height: 590px;
            }

            .flow-grid {
                display: none;
            }

            .connector-layer.desktop-svg {
                display: none;
            }

            .connector-layer.mobile-svg {
                display: block;
            }

            .connector-layer.mobile-svg .energy-line {
                stroke-width: 8;
            }

            .connector-layer.mobile-svg .energy-line.active {
                stroke-dasharray: 10 14;
            }

            .mobile-energy-ui,
            .mobile-detail-panel,
            .mobile-scene-note {
                display: block;
            }

            .node-pln,
            .node-plts {
                width: calc(50% - 10px);
                max-width: 192px;
            }

            .node-pln {
                left: 2px;
            }

            .node-plts {
                right: 2px;
            }

            .mobile-detail-panel {
                display: block;
            }

            .mobile-detail-grid {
                grid-template-columns: 1fr 1fr;
            }

            .mobile-detail-head {
                align-items: flex-start;
            }

            .footer-card {
                min-height: 84px;
            }

            .footer-card .body {
                font-size: 17px;
            }
        }

        @media (max-width: 480px) {
            .title {
                font-size: 22px;
            }

            .subtitle {
                font-size: 12px;
            }

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

            .weather-chip .v.big,
            .weather-chip .v {
                font-size: 15px;
            }

            .flow-stage {
                min-height: 568px;
            }

            .mobile-energy-ui {
                min-height: 494px;
            }

            .node-pln,
            .node-plts {
                width: calc(50% - 8px);
                max-width: none;
            }

            .node-pln {
                left: 2px;
            }

            .node-plts {
                right: 2px;
            }

            .energy-node {
                padding: 9px 10px;
                border-radius: 16px;
                gap: 8px;
            }

            .energy-node .node-icon {
                width: 34px;
                height: 34px;
                border-radius: 11px;
                font-size: 16px;
            }

            .energy-node .node-copy strong {
                font-size: 13px;
            }

            .energy-node .node-copy small {
                font-size: 11px;
            }

            .energy-node .node-badge {
                font-size: 9px;
                padding: 5px 8px;
            }

            .mobile-hub {
                top: 156px;
                width: min(232px, calc(100% - 26px));
            }

            .mobile-hub-ring {
                width: 118px;
                height: 118px;
            }

            .mobile-hub-ring .hub-core {
                width: 68px;
                height: 68px;
                font-size: 19px;
            }

            .mobile-hub .mode-value {
                font-size: 32px;
            }

            .mobile-detail-panel {
                padding: 10px;
                border-radius: 18px;
            }

            .mobile-detail-head {
                flex-direction: column;
                gap: 8px;
            }

            .mobile-detail-grid {
                grid-template-columns: 1fr;
            }

            .mobile-detail-primary .num {
                font-size: 28px;
            }

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

            .footer-card:nth-child(3) {
                grid-column: auto;
            }

            .footer-card .head {
                font-size: 8px;
            }

            .footer-card .desc {
                font-size: 9px;
            }
        }


.info-card .note { display: none !important; }
.inverter-grid-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inverter-power-stat { display: none !important; }
#batteryValue { font-size: clamp(34px, 2.8vw, 44px); font-weight: 900; line-height: 1; }


@media (min-width: 1181px) {
    .wrap {
        width: min(1360px, calc(100% - 24px));
    }

    .dashboard-shell {
        padding: 14px;
    }

    .flow-stage {
        padding: 16px 18px 18px;
    }
}

.compact-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-stats .stat { min-height: 64px; }


.energy-card-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.energy-card-stats .stat {
    min-height: 64px;
}

.energy-card-stats .stat-wide {
    grid-column: 1 / -1;
}

.stat-energy-highlight {
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(79, 124, 255, 0.06)),
        rgba(255,255,255,0.04);
    border-color: rgba(125, 211, 252, 0.14);
}

.stat-energy-highlight .k {
    color: #bfe9ff;
}

.stat-energy-highlight .v {
    font-size: clamp(14px, 1.05vw, 16px);
    color: #f8fbff;
}

@media (max-width: 1180px) {
    .energy-card-stats .stat {
        min-height: 60px;
    }
}

@media (max-width: 640px) {
    .energy-card-stats {
        grid-template-columns: 1fr;
    }

    .energy-card-stats .stat-wide {
        grid-column: auto;
    }
}

