:root {
  color-scheme: dark;
  --ink: #edf6ff;
  --muted: #91a6ba;
  --muted-strong: #afc0d0;
  --panel: rgba(19, 34, 51, .62);
  --panel-strong: rgba(22, 40, 59, .78);
  --line: rgba(194, 225, 249, .13);
  --line-strong: rgba(191, 229, 255, .23);
  --blue: #66cafa;
  --cyan: #72e0f1;
  --light-color: #72d7ff;
  --success: #73d7bd;
  --warning: #e6b96a;
  --shadow: 0 24px 70px rgba(0, 5, 16, .38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #08111d; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 12% 5%, rgba(45, 121, 176, .22), transparent 34rem), radial-gradient(circle at 95% 45%, color-mix(in srgb, var(--light-color) 8%, transparent), transparent 32rem), linear-gradient(145deg, #07101b 0%, #0b1623 48%, #101b28 100%); overflow-x: hidden; }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: wait !important; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #8bddff; outline-offset: 3px; }
svg { display: block; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.ambient { position: fixed; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(110px); opacity: .16; pointer-events: none; transition: background .45s ease; }
.ambient-one { top: -18rem; right: -12rem; background: var(--light-color); }
.ambient-two { bottom: -24rem; left: -15rem; background: #386cff; }
.grain { position: fixed; inset: 0; opacity: .035; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.app-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 122px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: grid; place-items: center; width: 49px; height: 49px; flex: none; color: #a6e4ff; border: 1px solid var(--line); border-radius: 16px; background: rgba(91, 177, 228, .1); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(0,10,25,.16); }
.brand-mark svg { width: 30px; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.55rem; line-height: 1; letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 1.48rem; letter-spacing: -.035em; }
h3 { margin-bottom: 0; font-size: 1.16rem; letter-spacing: -.025em; }
.location { color: #9aafc1; font-size: .95rem; font-weight: 500; letter-spacing: -.01em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.connection { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 12px; color: #d3e0eb; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 26, 41, .54); cursor: pointer; backdrop-filter: blur(18px); transition: border-color .2s ease, background .2s ease; }
.connection:hover { border-color: var(--line-strong); background: rgba(27, 46, 65, .58); }
.connection > svg { width: 16px; color: #71879a; }
.connection-copy { display: grid; min-width: 128px; text-align: left; }
.connection-copy strong { font-size: .78rem; font-weight: 650; }
.connection-copy small { margin-top: 2px; color: var(--muted); font-size: .69rem; }
.status-dot, .live-pulse, .inline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px color-mix(in srgb, var(--success) 60%, transparent); }
.status-dot-demo { background: var(--warning); box-shadow: 0 0 12px rgba(230,185,106,.55); }
.status-dot-offline, .live-pulse.is-offline { background: #dc887b; box-shadow: 0 0 12px rgba(220,136,123,.45); animation: none; }
.avatar-button { width: 49px; height: 49px; color: #c8dbea; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); font-size: .78rem; font-weight: 750; cursor: pointer; }
.sync-strip { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 17px; padding: 0 4px; color: var(--muted); font-size: .76rem; }
.sync-strip > span { display: flex; align-items: center; gap: 8px; }
.live-pulse { width: 6px; height: 6px; animation: pulse 2s ease-in-out infinite; }

.glass { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(30, 50, 72, .64), rgba(12, 25, 40, .49)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.065); backdrop-filter: blur(24px) saturate(125%); -webkit-backdrop-filter: blur(24px) saturate(125%); }
.view { animation: viewIn .35s ease both; }
.view[hidden] { display: none; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(300px, .62fr); gap: 17px; }
.temperature-card { min-height: 418px; padding: 25px; border-radius: var(--radius-xl); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-heading.compact { align-items: center; }
.heating-status { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; color: #d8f8ff; font-size: .9rem; }
.heat-wave { display: grid; place-items: center; width: 24px; height: 24px; color: var(--cyan); border-radius: 8px; background: rgba(87, 226, 239, .11); }
.icon-button, .close-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: #adc4d8; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); cursor: pointer; transition: .2s ease; }
.icon-button:hover, .close-button:hover { color: white; border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.icon-button svg { width: 21px; }
.temperature-control { display: grid; grid-template-columns: 52px minmax(200px, 1fr) 52px; align-items: center; gap: clamp(10px, 3vw, 28px); max-width: 570px; margin: 2px auto 0; }
.temperature-orb { --dial-angle: 96.4deg; --dial-radius: 125px; position: relative; width: min(286px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.temperature-orb:focus-visible { outline: 2px solid #8bddff; outline-offset: 7px; }
.temperature-orb.is-adjusting { cursor: grabbing; }
.temperature-orb.is-adjusting .ring-value { filter: drop-shadow(0 0 13px rgba(104, 217, 242, .72)); transition: none; }
.progress-ring { width: 100%; height: 100%; transform: rotate(135deg); overflow: visible; }
.progress-ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: rgba(168, 209, 235, .09); stroke-linecap: round; stroke-dasharray: 452.4 603.2; }
.ring-value { stroke: url(#temperatureGradient); stroke-linecap: round; stroke-dasharray: 452.4 603.2; stroke-dashoffset: 64.6; filter: drop-shadow(0 0 7px rgba(104, 217, 242, .46)); transition: stroke-dashoffset .35s ease; }
.progress-ring .ring-touch { stroke: transparent; stroke-width: 52; pointer-events: stroke; touch-action: none; }
.temperature-knob { position: absolute; z-index: 3; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: transparent; transform: rotate(var(--dial-angle)) translateY(calc(-1 * var(--dial-radius))); transition: transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: auto; touch-action: none; }
.temperature-knob::after { content: ""; position: absolute; inset: 11.5px; border: 4px solid #dff8ff; border-radius: 50%; background: #66cafa; box-shadow: 0 0 0 5px rgba(102,202,250,.12), 0 0 22px rgba(102,202,250,.7); transition: box-shadow .2s ease; }
.temperature-orb.is-adjusting .temperature-knob::after { box-shadow: 0 0 0 8px rgba(102,202,250,.18), 0 0 30px rgba(102,202,250,.9); }
.temperature-value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.temperature-caption { margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.temperature-value strong { font-size: clamp(3.5rem, 8vw, 5.15rem); font-weight: 470; letter-spacing: -.08em; line-height: .98; }
#targetTemperature { margin-top: 11px; color: var(--muted-strong); font-size: .88rem; }
.dial-hint { margin-top: 8px; color: #64869d; font-size: .64rem; font-weight: 600; letter-spacing: .015em; }
.temp-button { width: 52px; height: 52px; color: #d9effd; border: 1px solid var(--line); border-radius: 17px; background: rgba(95, 160, 201, .08); font-size: 1.5rem; cursor: pointer; transition: .2s ease; }
.temp-button:hover { color: white; background: rgba(100, 199, 245, .16); transform: translateY(-1px); }
.temperature-footer { display: flex; justify-content: space-between; gap: 18px; padding: 14px 4px 0; border-top: 1px solid rgba(202, 228, 247, .08); color: var(--muted); font-size: .78rem; }
.temperature-footer span { display: flex; align-items: center; gap: 7px; }
.temperature-footer svg { width: 18px; color: #8cdff0; }
.mode-card { display: flex; flex-direction: column; min-height: 418px; padding: 25px; border-radius: var(--radius-xl); }
.mode-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #9ce6f7; border-radius: 15px; background: rgba(100, 207, 236, .1); }
.mode-icon svg { width: 23px; }
.mode-description { max-width: 240px; margin: 23px 0 auto; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.segmented { display: grid; gap: 7px; margin-top: 26px; }
.segmented button { min-height: 48px; padding: 0 15px; color: var(--muted-strong); text-align: left; border: 1px solid transparent; border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; transition: .2s ease; }
.segmented button:hover { background: rgba(255,255,255,.05); }
.segmented button.is-selected { color: #e5f8ff; border-color: rgba(107, 211, 243, .2); background: rgba(87, 191, 225, .1); box-shadow: inset 3px 0 #6ed8f0; }

.section-block { margin-top: 32px; }
.section-heading, .page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; padding: 0 3px; }
.section-note { color: var(--muted); font-size: .78rem; }
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.control-card { position: relative; display: flex; flex-direction: column; min-height: 172px; padding: 18px; color: var(--ink); text-align: left; border-radius: var(--radius-lg); cursor: pointer; overflow: hidden; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.control-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.control-card::before { content: ""; position: absolute; width: 130px; height: 130px; top: -80px; right: -65px; border-radius: 50%; background: var(--blue); filter: blur(35px); opacity: 0; transition: opacity .25s ease; }
.control-card.is-active::before { opacity: .09; }
.control-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.control-icon { display: grid; place-items: center; width: 45px; height: 45px; color: #9db3c5; border-radius: 14px; background: rgba(255,255,255,.05); transition: .2s ease; }
.control-icon svg { width: 24px; }
.control-card.is-active .control-icon { color: #9cecff; background: rgba(74, 207, 236, .12); box-shadow: 0 0 25px rgba(61, 190, 221, .08); }
.mini-toggle { width: 38px; height: 22px; padding: 3px; border-radius: 999px; background: rgba(133, 151, 168, .16); transition: .2s ease; }
.mini-toggle::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #788b9d; transition: .2s ease; }
.control-card.is-active .mini-toggle { background: rgba(106, 216, 242, .24); }
.control-card.is-active .mini-toggle::after { margin-left: 16px; background: #9beaff; box-shadow: 0 0 12px rgba(155, 234, 255, .55); }
.control-copy { position: relative; z-index: 1; display: block; margin-top: 21px; }
.control-copy strong, .control-copy small { display: block; }
.control-copy strong { margin-bottom: 6px; font-size: .98rem; }
.control-copy small { color: var(--muted); font-size: .76rem; }
.activity-line { display: flex; align-items: flex-end; gap: 3px; height: 12px; margin-top: auto; opacity: 0; }
.activity-line i { display: block; width: 3px; height: 4px; border-radius: 3px; background: #79dff4; animation: equalize .9s ease-in-out infinite alternate; }
.activity-line i:nth-child(2) { height: 9px; animation-delay: -.25s; }.activity-line i:nth-child(3) { height: 6px; animation-delay: -.5s; }.activity-line i:nth-child(4) { height: 11px; animation-delay: -.1s; }.activity-line i:nth-child(5) { height: 5px; animation-delay: -.65s; }
.control-card.is-active .activity-line { opacity: .75; }
.control-card.is-pending, .control-card.is-pending:disabled { opacity: 1; cursor: progress !important; border-color: rgba(113, 218, 244, .32); background: rgba(70, 174, 207, .08); }
.control-card.is-pending .activity-line { opacity: .75; }
.control-card.is-pending .control-copy small { color: #a8eaf8; }
.color-dot { width: 24px; height: 24px; border: 4px solid rgba(255,255,255,.12); border-radius: 50%; background: var(--light-color); box-shadow: 0 0 18px color-mix(in srgb, var(--light-color) 55%, transparent); }
.color-line { position: absolute; bottom: 0; left: 18px; right: 18px; height: 2px; background: linear-gradient(90deg, transparent, var(--light-color), transparent); box-shadow: 0 -5px 18px color-mix(in srgb, var(--light-color) 40%, transparent); opacity: .8; }

.details-grid { display: grid; grid-template-columns: 1.18fr 1fr .82fr; gap: 14px; margin-top: 14px; }
.detail-card { min-height: 216px; padding: 21px; border-radius: var(--radius-lg); }
.state-badge, .chip, .date-chip, .smart-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 29px; padding: 0 10px; color: #b6c7d5; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); font-size: .69rem; font-weight: 650; white-space: nowrap; }
.state-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 9px rgba(115,215,189,.5); }
.state-badge > strong { font: inherit; }
.state-badge.is-preview span, .state-badge.is-unavailable span { background: #e0b767; box-shadow: 0 0 9px rgba(224,183,103,.35); }
.state-badge.large { min-height: 36px; padding: 0 13px; font-size: .76rem; }
.timeline { margin-top: 34px; }
.timeline-track { display: block; height: 5px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.timeline-track i { display: block; width: 34%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5fb8ea, #6ce1ec); box-shadow: 0 0 12px rgba(108,225,236,.4); }
.timeline > div { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: .68rem; }
.timeline strong { color: #b8cddd; font-weight: 550; }
.text-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 25px; padding: 11px 0 0; color: #b7d9eb; border: 0; border-top: 1px solid rgba(255,255,255,.07); background: transparent; font-size: .76rem; cursor: pointer; }
.text-button span { color: #71d6ed; font-size: 1.05rem; }
.metric-list { display: grid; gap: 0; margin: 25px 0 0; }
.metric-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.metric-list > div:last-child { border-bottom: 0; }
.metric-list dt { color: var(--muted); font-size: .74rem; }.metric-list dd { margin: 0; color: #c6d7e4; font-size: .74rem; font-weight: 600; text-align: right; }
.weather-icon { display: grid; place-items: center; width: 43px; height: 43px; color: #99d8f3; border-radius: 14px; background: rgba(89,166,213,.09); }
.weather-icon svg { width: 23px; }
.two-column { grid-template-columns: 1fr 1fr; gap: 12px; }
.two-column > div { display: block; padding: 14px; border: 0; border-radius: 14px; background: rgba(255,255,255,.03); }
.two-column dd { margin-top: 7px; text-align: left; font-size: .84rem; }
.demo-note { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 13px 16px; color: #8fa5b7; border: 1px solid rgba(232,188,108,.11); border-radius: 16px; background: rgba(93,75,43,.075); font-size: .73rem; line-height: 1.45; }
.demo-note svg { width: 19px; flex: none; color: #d5ad65; }.demo-note p { margin: 0; }.demo-note strong { color: #bfcbd5; }

.page-heading { margin: 12px 0 24px; align-items: center; }
.page-heading h2 { font-size: 2.15rem; }
.secondary-button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; color: #cee4f2; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); cursor: pointer; }
.secondary-button span { color: #7ce0f3; font-size: 1.25rem; }

.smart-plan { padding: 24px; border-radius: var(--radius-xl); }
.smart-badge { min-height: 34px; color: #b6d9e8; border-color: rgba(111,214,240,.16); background: rgba(66,163,197,.08); }
.smart-badge svg { width: 17px; color: #7ce3f3; }
.smart-plan-layout { display: grid; grid-template-columns: .82fr 1.35fr .83fr; gap: 16px; margin-top: 23px; }
.ready-time-card, .smart-controls, .plan-summary, .learning-card { border: 1px solid rgba(255,255,255,.07); border-radius: 19px; background: rgba(4,16,29,.28); }
.ready-time-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 258px; padding: 22px; text-align: center; }
.ready-ring { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; color: #79d9ef; border-radius: 24px; background: radial-gradient(circle, rgba(83,203,230,.13), transparent 68%); }
.ready-ring svg { width: 58px; }
.ready-time-card label { color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.ready-time-card input { width: 142px; margin: 5px 0 8px; padding: 2px 0; color: #eaf8ff; border: 0; background: transparent; font-size: 2.25rem; font-weight: 520; letter-spacing: -.05em; text-align: center; color-scheme: dark; }
.ready-time-card p { margin: 0; color: #7ea4b8; font-size: .7rem; }
.smart-controls { display: grid; padding: 4px 18px; }
.smart-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 83px; border-bottom: 1px solid rgba(255,255,255,.065); }
.smart-row:last-child { border-bottom: 0; }
.smart-row > span:first-child strong, .smart-row > span:first-child small { display: block; }
.smart-row > span:first-child strong { font-size: .8rem; }.smart-row > span:first-child small { margin-top: 5px; color: var(--muted); font-size: .67rem; }
.stepper { display: grid; grid-template-columns: 44px minmax(58px,auto) 44px; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.stepper button { width: 44px; height: 44px; padding: 0; color: #acd0df; border: 0; border-radius: 9px; background: rgba(255,255,255,.045); cursor: pointer; }
.stepper output { color: #dcecf5; font-size: .74rem; font-weight: 650; text-align: center; }
.after-use-row select { max-width: 168px; min-height: 44px; padding: 0 31px 0 11px; color: #c6d9e5; border: 1px solid var(--line); border-radius: 12px; background: #15283a; font-size: .7rem; }
.plan-summary { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 21px; }
.summary-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; color: #8ce5f3; border-radius: 13px; background: rgba(83,200,225,.1); }
.summary-icon svg { width: 21px; }
.plan-summary > strong { color: #dff8ff; font-size: 1.25rem; letter-spacing: -.03em; }.plan-summary > p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.learning-card { grid-column: 1 / -1; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; background: linear-gradient(135deg,rgba(53,129,164,.12),rgba(4,16,29,.28)); }
.learning-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #83ddef; border-radius: 14px; background: rgba(91,202,227,.1); }
.learning-icon svg { width: 24px; }
.learning-card .eyebrow { margin-bottom: 4px; font-size: .64rem; }
.learning-card strong { display: block; color: #dff7ff; font-size: .85rem; }
.learning-card div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.weather-chip { padding: 8px 10px; color: #bfeefa; border: 1px solid rgba(114,224,241,.13); border-radius: 999px; background: rgba(77,181,207,.08); font-size: .67rem; white-space: nowrap; }
.primary-button.inline-primary { min-height: 44px; margin-top: 19px; font-size: .72rem; }
.week-days { display: flex; align-items: center; gap: 7px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.week-days > span { margin-right: auto; color: var(--muted); font-size: .72rem; }
.week-days button { width: 44px; height: 44px; color: #8298a9; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.025); font-size: .72rem; cursor: pointer; }
.week-days button.is-selected { color: #dff8ff; border-color: rgba(102,211,238,.2); background: rgba(76,187,216,.12); }
.schedule-section-heading { margin-top: 30px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.schedule-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius-lg); }
.schedule-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; }
.schedule-icon svg { width: 24px; }.schedule-icon.filter { color: #83dcf3; background: rgba(78,182,220,.1); }.schedule-icon.heat { color: #e7bc78; background: rgba(214,156,70,.1); }
.schedule-content .eyebrow { margin-bottom: 6px; font-size: .64rem; }.schedule-content h3 { margin-bottom: 6px; font-size: .96rem; }.schedule-content p:last-child { margin: 0; color: var(--muted); font-size: .72rem; }
.schedule-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 17px; }
.edit-cycle { min-height: 44px; margin: -11px -6px; padding: 0 6px; color: #83cee4; border: 0; background: transparent; font-size: .67rem; cursor: pointer; }
.switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -11px -3px; cursor: pointer; }.switch input { position: absolute; opacity: 0; pointer-events: none; }.switch > span { width: 38px; height: 22px; padding: 3px; border-radius: 99px; background: rgba(137,152,167,.18); transition: .2s ease; }.switch > span::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #8496a7; transition: .2s ease; }.switch input:checked + span { background: rgba(92,207,232,.25); }.switch input:checked + span::after { transform: translateX(16px); background: #95e8f5; box-shadow: 0 0 12px rgba(126,224,240,.45); }.switch input:focus-visible + span { outline: 2px solid #8bddff; outline-offset: 3px; }.switch.large > span { width: 47px; height: 27px; padding: 3px; }.switch.large > span::after { width: 21px; height: 21px; }.switch.large input:checked + span::after { transform: translateX(20px); }
.day-plan { margin-top: 14px; padding: 24px; border-radius: var(--radius-lg); }.date-chip { color: #9db2c4; }.day-timeline { display: grid; margin-top: 26px; }.time-row { position: relative; display: grid; grid-template-columns: 62px 15px 1fr; align-items: start; gap: 13px; min-height: 74px; }.time-row:not(:last-child)::after { content: ""; position: absolute; left: 68px; top: 18px; bottom: -4px; width: 1px; background: rgba(255,255,255,.1); }.time-row time { padding-top: 1px; color: var(--muted); font-size: .75rem; }.event-dot { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 4px; border: 3px solid rgba(10,21,34,.9); border-radius: 50%; box-sizing: content-box; }.event-dot.filter { background: #6cd5ee; }.event-dot.heat { background: #e5b468; }.event-dot.neutral { background: #708698; }.time-row strong, .time-row small { display: block; }.time-row strong { font-size: .84rem; }.time-row small { margin-top: 5px; color: var(--muted); font-size: .71rem; }

.system-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.diagnostics-card { padding: 24px; border-radius: var(--radius-lg); }.alerts-card { grid-column: 1 / -1; }.wifi-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; }.wifi-bars i { width: 3px; border-radius: 3px; background: #73ddec; }.wifi-bars i:nth-child(1){height:6px}.wifi-bars i:nth-child(2){height:10px}.wifi-bars i:nth-child(3){height:15px}.wifi-bars i:nth-child(4){height:20px;opacity:.28}.diagnostics-list { margin: 25px 0 0; }.diagnostics-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.065); }.diagnostics-list > div:last-child { border-bottom: 0; }.diagnostics-list dt { color: var(--muted); font-size: .78rem; }.diagnostics-list dd { display: flex; align-items: center; gap: 7px; margin: 0; color: #c8d8e4; font-size: .78rem; font-weight: 600; text-align: right; }.inline-dot { display: inline-block; width: 6px; height: 6px; }.chip { color: #dfba7a; border-color: rgba(224,179,102,.14); background: rgba(113,82,32,.11); }.empty-state { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 150px; color: #7edac5; }.empty-state svg { width: 40px; }.empty-state p { margin: 0; }.empty-state strong, .empty-state span { display: block; }.empty-state strong { color: #cbdce6; font-size: .9rem; }.empty-state span { margin-top: 5px; color: var(--muted); font-size: .74rem; }

.energy-hero { display: grid; grid-template-columns: 1.28fr .72fr; gap: 14px; }
.energy-heading-actions { display: flex; align-items: center; gap: 9px; }
.provider-badge { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 6px 10px; color: #d6e4ec; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); cursor: pointer; }.provider-badge > span:nth-child(2) { display: grid; min-width: 70px; text-align: left; }.provider-badge strong { font-size: .71rem; }.provider-badge small { margin-top: 2px; color: var(--muted); font-size: .59rem; }.provider-badge > svg { width: 14px; color: #71889a; }
.provider-logo { display: grid; place-items: center; width: 28px; height: 28px; color: #172217; border-radius: 9px; background: linear-gradient(145deg,#d9e85b,#78ce5e); font-size: .78rem; font-weight: 850; box-shadow: 0 0 15px rgba(137,211,90,.14); }.provider-logo.large { width: 46px; height: 46px; border-radius: 14px; font-size: 1rem; }
.solar-live { color: #d5c581; border-color: rgba(229,200,91,.18); background: rgba(139,113,27,.1); }.solar-live span { background: #f0cc62; box-shadow: 0 0 10px rgba(240,204,98,.65); }
.solar-flow-card, .solar-control-card, .forecast-card, .guardrails-card { padding: 24px; border-radius: var(--radius-xl); }
.sun-orb { display: grid; place-items: center; width: 48px; height: 48px; color: #f0ca66; border-radius: 16px; background: radial-gradient(circle, rgba(236,198,89,.17), rgba(236,198,89,.04)); box-shadow: 0 0 28px rgba(234,190,73,.08); }.sun-orb svg { width: 25px; }
.power-flow { display: grid; grid-template-columns: 1fr 52px 1fr 52px 1fr; align-items: center; gap: 6px; margin-top: 40px; }
.power-node { display: grid; justify-items: center; text-align: center; }.node-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 12px; color: #a8c2d2; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }.node-icon svg { width: 28px; }.power-node strong { font-size: 1.18rem; letter-spacing: -.03em; }.power-node small { margin-top: 4px; color: var(--muted); font-size: .68rem; }.solar-node .node-icon { color: #ecc55d; background: rgba(212,174,67,.08); }.spa-node .node-icon { color: #7dddec; background: rgba(70,184,215,.09); }
.flow-line { display: flex; justify-content: space-between; align-items: center; }.flow-line::before { content: ""; position: absolute; }.flow-line i { width: 6px; height: 6px; border-radius: 50%; background: #7cdef0; box-shadow: 0 0 8px rgba(124,222,240,.55); animation: energyFlow 1.4s ease-in-out infinite; }.flow-line i:nth-child(2) { animation-delay: -.45s; }.flow-line i:nth-child(3) { animation-delay: -.9s; }
.surplus-bar { display: grid; grid-template-columns: minmax(180px,.8fr) 1.2fr; align-items: center; gap: 25px; margin-top: 37px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.07); }.surplus-bar strong, .surplus-bar small { display: block; }.surplus-bar strong { font-size: .76rem; }.surplus-bar small { margin-top: 5px; color: var(--muted); font-size: .66rem; }.bar-track { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }.bar-track i { display: block; width: 67%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#e6c35f,#71d9a6); box-shadow: 0 0 10px rgba(113,217,166,.25); }
.solar-copy { margin: 22px 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }.solar-setting { display: flex; justify-content: space-between; gap: 15px; }.solar-setting strong, .solar-setting small { display: block; }.solar-setting strong { font-size: .76rem; }.solar-setting small { margin-top: 4px; color: var(--muted); font-size: .64rem; }.solar-setting output { color: #d5e8f2; font-size: .76rem; font-weight: 650; }.solar-range { width: 100%; height: 44px; margin: 0 0 9px; appearance: none; border-radius: 99px; background: linear-gradient(90deg,#e3c15f 40%,rgba(255,255,255,.08) 40%) center / 100% 5px no-repeat; }.solar-range::-webkit-slider-thumb { width: 28px; height: 28px; appearance: none; border: 5px solid #e8eef0; border-radius: 50%; background: #e5c35e; cursor: pointer; }.solar-select { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }.solar-select span { color: var(--muted); font-size: .69rem; }.solar-select select { max-width: 174px; min-height: 44px; padding: 0 29px 0 10px; color: #c9dce7; border: 1px solid var(--line); border-radius: 11px; background: #14283a; font-size: .68rem; }
.energy-details { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; margin-top: 14px; }.energy-details.live-only { grid-template-columns: 1fr; }.forecast-card, .guardrails-card { border-radius: var(--radius-lg); }.forecast-total { color: #e4c769; font-size: .88rem; font-weight: 700; }.forecast-hours { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-top: 26px; }.forecast-hours > div { display: grid; justify-items: center; gap: 9px; padding: 15px 8px; color: #9eb4c4; border: 1px solid rgba(255,255,255,.06); border-radius: 15px; background: rgba(255,255,255,.025); }.forecast-hours > div.best { color: #edca67; border-color: rgba(231,198,97,.15); background: rgba(128,103,30,.07); }.forecast-hours time { font-size: .68rem; }.forecast-hours svg { width: 28px; }.forecast-hours strong { color: #cbdde7; font-size: .75rem; }
.shield-icon, .maintenance-icon { display: grid; place-items: center; width: 43px; height: 43px; color: #82dbc9; border-radius: 14px; background: rgba(75,184,158,.09); }.shield-icon svg, .maintenance-icon svg { width: 22px; }.maintenance-icon { color: #e0b66c; background: rgba(193,139,53,.09); }.rule-list { display: grid; gap: 0; padding: 0; margin: 22px 0 0; list-style: none; }.rule-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }.rule-list li:last-child { border-bottom: 0; }.rule-list span { color: var(--muted); font-size: .7rem; }.rule-list strong { color: #c8dae5; font-size: .7rem; }
.safety-list { display: grid; margin-top: 19px; }.safety-list > label { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 62px; border-bottom: 1px solid rgba(255,255,255,.06); }.safety-list > label:last-child { border-bottom: 0; }.safety-list strong, .safety-list small { display: block; }.safety-list strong { font-size: .75rem; }.safety-list small { margin-top: 4px; color: var(--muted); font-size: .64rem; }.locked-state { color: #83d9c6; font-size: .68rem; font-weight: 650; }
.maintenance-list { display: grid; margin-top: 19px; }.maintenance-list button { position: relative; display: block; min-height: 62px; padding: 12px 0; color: inherit; text-align: left; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); background: transparent; cursor: pointer; }.maintenance-list button:last-child { border-bottom: 0; }.maintenance-list span { display: flex; justify-content: space-between; gap: 14px; }.maintenance-list strong { font-size: .75rem; }.maintenance-list small { color: var(--muted); font-size: .66rem; }.maintenance-list i { display: block; width: 100%; height: 3px; margin-top: 9px; border-radius: 99px; background: linear-gradient(90deg,#6fd3e9 var(--task-progress),rgba(255,255,255,.07) var(--task-progress)); }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(96px, 1fr)); gap: 5px; width: min(570px, calc(100% - 28px)); padding: 6px; border-radius: 20px; transform: translateX(-50%); background: rgba(14,27,42,.78); box-shadow: 0 18px 60px rgba(0,3,12,.55), inset 0 1px rgba(255,255,255,.06); }
.bottom-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 13px; color: #7f94a7; border: 0; border-radius: 15px; background: transparent; font-size: .72rem; font-weight: 600; cursor: pointer; transition: .2s ease; }.bottom-nav button:hover { color: #bbcfdd; background: rgba(255,255,255,.03); }.bottom-nav button.is-active { color: #dff8ff; background: rgba(80,177,213,.13); box-shadow: inset 0 0 0 1px rgba(111,214,240,.11); }.bottom-nav svg { width: 20px; }

dialog { max-width: none; max-height: none; padding: 0; color: var(--ink); border: 0; background: transparent; }
.light-dialog, .connection-dialog, .filter-dialog, .deye-dialog { width: min(100% - 28px, 520px); margin: auto; }
.light-dialog::backdrop, .connection-dialog::backdrop, .filter-dialog::backdrop, .deye-dialog::backdrop { background: rgba(2,8,15,.7); backdrop-filter: blur(8px); }
.dialog-sheet { padding: 25px; border: 1px solid rgba(205,231,250,.17); border-radius: 28px; background: linear-gradient(145deg, rgba(29,49,69,.96), rgba(10,23,37,.98)); box-shadow: 0 36px 100px rgba(0,4,14,.66), inset 0 1px rgba(255,255,255,.08); animation: dialogIn .28s ease both; }
.dialog-handle { display: none; width: 42px; height: 4px; margin: -9px auto 18px; border-radius: 99px; background: rgba(255,255,255,.18); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-heading h2 { font-size: 1.55rem; }
.close-button { font-size: 1.5rem; font-weight: 300; }
.light-preview { position: relative; display: grid; place-items: center; min-height: 172px; margin: 22px 0; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: radial-gradient(circle, color-mix(in srgb, var(--light-color) 22%, transparent), transparent 62%), rgba(3,13,23,.5); overflow: hidden; }
.light-halo { position: absolute; width: 160px; height: 160px; border-radius: 50%; background: var(--light-color); filter: blur(55px); opacity: .2; }
.light-preview-icon { position: relative; display: grid; place-items: center; width: 62px; height: 62px; color: var(--light-color); border: 1px solid color-mix(in srgb, var(--light-color) 25%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--light-color) 10%, rgba(15,29,44,.7)); box-shadow: 0 0 28px color-mix(in srgb, var(--light-color) 20%, transparent); }
.light-preview-icon svg { width: 36px; }
.light-preview strong, .light-preview > span:last-child { position: relative; z-index: 1; display: block; }
.light-preview strong { margin-top: 11px; font-size: .9rem; }.light-preview > span:last-child { margin-top: 5px; color: var(--muted-strong); font-size: .72rem; }
.light-preview.effect-breathe .light-halo, .light-preview.effect-breathe .light-preview-icon { animation: lightBreathe var(--effect-duration, 6s) ease-in-out infinite; }
.light-preview.effect-pulse .light-halo, .light-preview.effect-pulse .light-preview-icon { animation: lightPulse var(--effect-duration, 6s) steps(2, jump-none) infinite; }
.light-preview.effect-cycle .light-halo, .light-preview.effect-cycle .light-preview-icon { animation: colorCycle var(--effect-duration, 6s) linear infinite; }
.dialog-row { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 23px; }.dialog-row strong, .dialog-row div > span { display: block; }.dialog-row strong { font-size: .88rem; }.dialog-row div > span { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.color-fieldset, .effect-fieldset, .days-fieldset { padding: 0; margin: 0; border: 0; }.color-fieldset legend, .effect-fieldset legend, .days-fieldset legend { margin-bottom: 13px; color: #cedde7; font-size: .82rem; font-weight: 650; }
.color-presets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 9px; }
.color-swatch, .custom-color { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--swatch); cursor: pointer; box-shadow: inset 0 0 0 3px rgba(255,255,255,.1); transition: transform .2s ease; }
.color-swatch:hover { transform: scale(1.08); }.color-swatch.is-selected::after { content: ""; width: 32%; height: 20%; border-left: 2px solid white; border-bottom: 2px solid white; transform: translateY(-1px) rotate(-45deg); filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.custom-color { color: white; background: conic-gradient(#ed65c5,#ffbd55,#57e39b,#72d7ff,#785cff,#ed65c5); }.custom-color input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }.custom-color span { position: relative; z-index: 1; display: grid; place-items: center; width: 55%; height: 55%; border-radius: 50%; background: rgba(12,23,36,.75); font-size: 1.1rem; pointer-events: none; }
.range-control { display: block; margin-top: 24px; }.range-control > span { display: flex; justify-content: space-between; margin-bottom: 0; font-size: .82rem; }.range-control output { color: var(--muted-strong); }.range-control input { width: 100%; height: 44px; appearance: none; border-radius: 99px; background: linear-gradient(90deg, var(--light-color) var(--range-progress, 72%), rgba(255,255,255,.09) var(--range-progress, 72%)) center / 100% 5px no-repeat; cursor: pointer; }.range-control input::-webkit-slider-thumb { width: 28px; height: 28px; appearance: none; border: 5px solid #dcecf4; border-radius: 50%; background: var(--light-color); box-shadow: 0 0 15px color-mix(in srgb, var(--light-color) 50%, transparent); }
.effect-fieldset { margin-top: 24px; }.effect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.effect-option { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; color: #b2c4d2; text-align: left; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.025); cursor: pointer; }.effect-option.is-selected { color: #e4f8ff; border-color: rgba(109,216,241,.22); background: rgba(69,178,210,.1); }.effect-option strong, .effect-option small { display: block; }.effect-option strong { font-size: .74rem; }.effect-option small { margin-top: 3px; color: var(--muted); font-size: .66rem; }.effect-symbol { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.04); }.effect-symbol::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--light-color); box-shadow: 0 0 9px color-mix(in srgb, var(--light-color) 50%, transparent); }.effect-symbol.breathe::before { opacity: .45; box-shadow: 0 0 0 5px color-mix(in srgb, var(--light-color) 8%, transparent); }.effect-symbol.pulse::before { box-shadow: 0 0 0 4px transparent, 0 0 10px var(--light-color); }.effect-symbol.cycle::before { background: conic-gradient(#ed65c5,#ffbd55,#57e39b,#72d7ff,#785cff,#ed65c5); }.effect-speed.is-disabled { opacity: .38; pointer-events: none; }
.light-dialog.no-advanced-light .color-fieldset, .light-dialog.no-advanced-light .range-control, .light-dialog.no-advanced-light .effect-fieldset { opacity: .38; pointer-events: none; }
.primary-button { width: 100%; min-height: 50px; margin-top: 27px; color: #071622; border: 0; border-radius: 15px; background: linear-gradient(135deg, #a6ebf5, #6fc9ec); box-shadow: 0 14px 30px rgba(60,177,219,.19); font-weight: 750; cursor: pointer; }.small-dialog { padding: 27px; }.connection-visual { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 28px 0 22px; }.connection-line { display: flex; gap: 5px; }.connection-line i { width: 18px; height: 2px; border-radius: 2px; background: #67cce8; opacity: .25; }.connection-line i:nth-child(1) { opacity: 1; }.connection-line i:nth-child(2) { opacity: .65; }.device-icon { display: grid; place-items: center; width: 49px; height: 49px; color: #a7bfd1; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }.device-icon svg { width: 25px; }.dialog-copy { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; text-align: center; }

.filter-sheet { padding: 27px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }.form-grid label > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: .72rem; }.form-grid input, .form-grid select { width: 100%; min-height: 48px; padding: 0 13px; color: #dcebf4; border: 1px solid var(--line); border-radius: 13px; background: #13273a; color-scheme: dark; }.days-fieldset { margin-top: 24px; }.filter-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }.filter-days input { position: absolute; opacity: 0; }.filter-days span { display: grid; place-items: center; min-height: 44px; aspect-ratio: 1; color: #7f96a8; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.025); font-size: .68rem; cursor: pointer; }.filter-days input:checked + span { color: #dff8ff; border-color: rgba(102,211,238,.2); background: rgba(76,187,216,.12); }.filter-days input:focus-visible + span { outline: 2px solid #8bddff; outline-offset: 2px; }.filter-summary { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 15px; background: rgba(255,255,255,.025); }.filter-summary .summary-icon { width: 38px; height: 38px; margin: 0; }.filter-summary p { margin: 0; }.filter-summary strong, .filter-summary span { display: block; }.filter-summary strong { font-size: .82rem; }.filter-summary p span { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.deye-sheet { padding: 27px; }.api-status { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 13px; margin-top: 25px; padding: 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 17px; background: rgba(255,255,255,.025); }.api-status > div strong, .api-status > div small { display: block; }.api-status > div strong { font-size: .8rem; }.api-status > div small { margin-top: 4px; color: var(--muted); font-size: .64rem; line-height: 1.4; }.platform-fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0; margin: 24px 0 0; border: 0; }.platform-fieldset legend { grid-column: 1 / -1; margin-bottom: 11px; color: #cbdce7; font-size: .8rem; font-weight: 650; }.platform-fieldset label { position: relative; cursor: pointer; }.platform-fieldset input { position: absolute; opacity: 0; }.platform-fieldset label > span { display: block; min-height: 76px; padding: 15px; color: #adbfcc; border: 1px solid rgba(255,255,255,.07); border-radius: 15px; background: rgba(255,255,255,.025); }.platform-fieldset label > span strong, .platform-fieldset label > span small { display: block; }.platform-fieldset label > span strong { font-size: .76rem; }.platform-fieldset label > span small { margin-top: 6px; color: var(--muted); font-size: .63rem; }.platform-fieldset input:checked + span { color: #e2f7ff; border-color: rgba(113,216,239,.23); background: rgba(73,179,207,.1); box-shadow: inset 3px 0 #70d9ed; }.platform-fieldset input:focus-visible + span { outline: 2px solid #8bddff; outline-offset: 2px; }.credential-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 14px; color: #8acfdc; border: 1px solid rgba(112,210,232,.1); border-radius: 15px; background: rgba(61,145,169,.06); }.credential-note svg { width: 22px; flex: none; }.credential-note p { margin: 0; }.credential-note strong, .credential-note span { display: block; }.credential-note strong { color: #bfd6e2; font-size: .72rem; }.credential-note span { margin-top: 4px; color: var(--muted); font-size: .64rem; line-height: 1.5; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 98px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 28px); padding: 12px 17px; color: #dceaf3; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(15,30,45,.9); box-shadow: 0 18px 50px rgba(0,4,12,.5); backdrop-filter: blur(20px); font-size: .78rem; transform: translate(-50%, 22px); opacity: 0; pointer-events: none; transition: .25s ease; }.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }.toast-icon { display: grid; place-items: center; width: 21px; height: 21px; color: #0b211d; border-radius: 50%; background: var(--success); font-weight: 800; }
.toast.is-error { border-color: rgba(231,142,126,.28); }.toast.is-error .toast-icon { color: #2b0b08; background: #ef9b8c; }
.auth-panel { display: grid; gap: 9px; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(3,15,27,.3); }
.auth-panel[hidden], [hidden] { display: none !important; }
.auth-panel label { color: #d4e6f1; font-size: .76rem; font-weight: 650; }
.auth-panel input { width: 100%; min-height: 48px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(7,22,35,.8); }
.auth-panel p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.auth-panel .primary-button { margin-top: 5px; }
.dialog-secondary { justify-content: center; width: 100%; margin-top: 10px; }
.runtime-locked [data-control], .runtime-locked [data-mode], .runtime-locked .temp-button { opacity: .52; }
button:disabled, input:disabled, select:disabled, .switch:has(input:disabled) { cursor: not-allowed; opacity: .5; }

@keyframes pulse { 50% { opacity: .45; box-shadow: 0 0 18px rgba(115,215,189,.75); } }
@keyframes equalize { to { height: 11px; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes lightBreathe { 0%,100% { opacity: .28; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes lightPulse { 0%,40% { opacity: 1; } 50%,90% { opacity: .15; } }
@keyframes colorCycle { to { filter: hue-rotate(360deg); } }
@keyframes energyFlow { 0%,100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 980px) {
  .dashboard-layout { grid-template-columns: minmax(0, 1.35fr) minmax(255px, .65fr); }
  .control-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: 1fr 1fr; }.environment-card { grid-column: 1 / -1; }
  .smart-plan-layout { grid-template-columns: .85fr 1.15fr; }.plan-summary { grid-column: 1 / -1; display: grid; grid-template-columns: 40px 1fr auto; column-gap: 13px; align-items: center; }.plan-summary .summary-icon { grid-row: 1 / 4; margin: 0; }.plan-summary .eyebrow, .plan-summary > strong, .plan-summary > p:not(.eyebrow) { grid-column: 2; }.plan-summary .eyebrow { margin: 0; }.plan-summary > strong { margin-top: 3px; }.plan-summary > p:not(.eyebrow) { margin-top: 4px; }.primary-button.inline-primary { grid-column: 3; grid-row: 1 / 4; width: auto; min-width: 185px; margin: 0; padding: 0 15px; }
  .schedule-grid { grid-template-columns: 1fr; }
  .energy-hero { grid-template-columns: 1fr; }.energy-details { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .app-shell { width: min(100% - 28px, 600px); padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .topbar { align-items: flex-start; margin-bottom: 18px; }.connection { width: 48px; min-height: 48px; justify-content: center; padding: 0; }.connection-copy, .connection > svg, .avatar-button { display: none; }.sync-strip { font-size: .68rem; }.sync-strip > span:last-child { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }.temperature-card { min-height: 388px; padding: 21px 18px; }.mode-card { min-height: auto; padding: 21px; }.mode-description { margin: 17px 0 19px; max-width: none; }.segmented { grid-template-columns: repeat(3, 1fr); margin-top: 0; }.segmented button { min-height: 44px; padding: 0 8px; text-align: center; }
  .temperature-control { grid-template-columns: 46px minmax(180px, 1fr) 46px; gap: 4px; }.temp-button { width: 46px; height: 46px; }.temperature-orb { --dial-radius: 109px; width: min(250px, 100%); }.temperature-footer { font-size: .7rem; }.temperature-footer span:last-child { text-align: right; }
  .section-block { margin-top: 26px; }.section-note { display: none; }.control-grid { gap: 10px; }.control-card { min-height: 160px; padding: 16px; }
  .details-grid { grid-template-columns: 1fr; gap: 10px; }.environment-card { grid-column: auto; }.detail-card { min-height: auto; padding: 20px; }.demo-note { align-items: flex-start; }
  .page-heading h2 { font-size: 1.8rem; }.secondary-button { padding: 0 13px; font-size: .74rem; }
  .smart-plan { padding: 20px; }.smart-badge { font-size: .68rem; }.smart-plan-layout { grid-template-columns: 1fr; }.ready-time-card { min-height: 220px; }.plan-summary { grid-column: auto; display: flex; }.plan-summary .summary-icon { margin-bottom: 15px; }.primary-button.inline-primary { width: 100%; margin-top: 18px; }.learning-card { grid-template-columns: 44px minmax(0,1fr); }.learning-card .weather-chip { grid-column: 2; justify-self: start; max-width: 100%; white-space: normal; line-height: 1.35; }.week-days { display: grid; grid-template-columns: repeat(7, 1fr); }.week-days > span { grid-column: 1 / -1; margin: 0 0 3px; }.week-days button { width: 100%; min-height: 44px; height: auto; }
  .schedule-card { grid-template-columns: 44px 1fr auto; padding: 17px; }.schedule-icon { width: 44px; height: 44px; }.system-layout { grid-template-columns: 1fr; }.alerts-card { grid-column: auto; }
  .bottom-nav { bottom: max(12px, env(safe-area-inset-bottom)); }.bottom-nav button { flex-direction: column; gap: 3px; min-height: 54px; font-size: .63rem; }.bottom-nav svg { width: 19px; }
  .solar-flow-card, .solar-control-card, .forecast-card, .guardrails-card { padding: 20px; }.power-flow { grid-template-columns: 1fr 28px 1fr 28px 1fr; }.flow-line i:nth-child(2), .flow-line i:nth-child(3) { display: none; }.node-icon { width: 48px; height: 48px; }.surplus-bar { grid-template-columns: 1fr; gap: 12px; }.forecast-hours { gap: 6px; }.forecast-hours > div { padding: 13px 4px; }
  .light-dialog, .connection-dialog, .filter-dialog, .deye-dialog { width: 100%; margin: auto 0 0; }.dialog-sheet { max-height: calc(100vh - 14px); padding: 22px 20px max(22px, env(safe-area-inset-bottom)); border-radius: 27px 27px 0 0; overflow-y: auto; }.dialog-handle { display: block; }.light-preview { min-height: 150px; margin: 17px 0; }.color-presets { grid-template-columns: repeat(8, minmax(33px, 1fr)); gap: 7px; }.energy-heading-actions .solar-live { display: none; }
}

@media (max-width: 420px) {
  .app-shell { width: calc(100% - 20px); }.location { display: none; }.brand-mark { width: 45px; height: 45px; }.brand-mark svg { width: 27px; }.control-grid { grid-template-columns: 1fr 1fr; }.control-card { min-height: 150px; }.temperature-card { min-height: 350px; padding: 18px 12px; }.temperature-control { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 0; }.temperature-orb { --dial-radius: 93px; width: min(215px, 100%); }.temp-button { width: 44px; height: 44px; border-radius: 15px; }.temperature-value strong { font-size: 3.55rem; }.temperature-footer { padding-inline: 5px; }.temperature-footer span:last-child { max-width: 90px; }.page-heading { align-items: flex-start; flex-wrap: wrap; gap: 9px; }.page-heading .state-badge { max-width: 100%; white-space: normal; }.secondary-button { min-height: 44px; }.secondary-button span { display: none; }
  .color-presets { grid-template-columns: repeat(4, 1fr); row-gap: 11px; }.effect-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.smart-row { align-items: flex-start; flex-direction: column; gap: 10px; padding: 13px 0; }.stepper, .after-use-row select { width: 100%; }.stepper { grid-template-columns: 44px 1fr 44px; }.after-use-row select { max-width: none; }.smart-badge { max-width: 118px; white-space: normal; }.week-days, .filter-days { grid-template-columns: repeat(4, 1fr); }.week-days button, .filter-days span { min-height: 44px; aspect-ratio: auto; }
  .bottom-nav { grid-template-columns: repeat(4,1fr); }.bottom-nav button { min-width: 0; padding: 0 3px; }.power-node strong { font-size: .94rem; }.power-node small { font-size: .65rem; }.forecast-hours strong { font-size: .7rem; }
  .provider-badge > span:nth-child(2), .provider-badge > svg { display: none; }.provider-badge { min-height: 44px; padding: 6px; }.platform-fieldset { grid-template-columns: 1fr; }.api-status { grid-template-columns: 46px 1fr; }.api-status > .state-badge { display: none; }
}

@media (max-width: 340px) {
  .app-shell { width: calc(100% - 12px); }.temperature-card { padding-inline: 8px; }.temperature-control { grid-template-columns: 44px minmax(0,1fr) 44px; }.temp-button { width: 44px; height: 44px; }.temperature-orb { --dial-radius: 81px; width: min(186px, 100%); }.temperature-value strong { font-size: 3.15rem; }.dial-hint { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
