:root {
  --hp092-bg: #071014;
  --hp092-panel: rgba(14, 27, 33, 0.88);
  --hp092-panel-strong: #0d1b21;
  --hp092-border: rgba(255, 255, 255, 0.09);
  --hp092-border-strong: rgba(102, 219, 255, 0.22);
  --hp092-text: #edf8fb;
  --hp092-muted: #9fb3bc;
  --hp092-accent: #63dcff;
  --hp092-good: #72e0ac;
  --hp092-warn: #ffd474;
  --hp092-danger: #ff9595;
}

#hp092-web-control-center {
  display: none;
  margin: 22px auto 32px;
  padding: 0 18px;
  max-width: 1240px;
  color: var(--hp092-text);
}

#hp092-web-control-center.hp092-visible {
  display: block;
}

/* HP092 and the lower energy dashboard are intentionally rendered
   in one continuous browser page. */

.hp092-shell {
  border: 1px solid var(--hp092-border);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at top right,
      rgba(82, 211, 255, 0.09),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(10, 23, 29, 0.96),
      rgba(6, 15, 19, 0.97)
    );
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.hp092-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--hp092-border);
}

.hp092-eyebrow {
  margin-bottom: 7px;
  color: var(--hp092-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.hp092-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
}

.hp092-copy {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--hp092-muted);
  line-height: 1.6;
}

.hp092-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp092-refresh {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--hp092-border-strong);
  border-radius: 12px;
  background: rgba(76, 190, 226, 0.09);
  color: #d9f8ff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.hp092-refresh:hover {
  background: rgba(76, 190, 226, 0.15);
}

.hp092-refresh:disabled {
  cursor: wait;
  opacity: 0.55;
}

.hp092-mode {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(114, 224, 172, 0.24);
  border-radius: 999px;
  background: rgba(114, 224, 172, 0.07);
  color: var(--hp092-good);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.hp092-content {
  padding: 24px 30px 30px;
}

.hp092-error {
  display: none;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 149, 149, 0.22);
  border-radius: 13px;
  background: rgba(255, 110, 110, 0.07);
  color: #ffc1c1;
  line-height: 1.5;
}

.hp092-error.hp092-visible {
  display: block;
}

.hp092-status-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hp092-status-card {
  min-height: 132px;
  padding: 17px;
  border: 1px solid var(--hp092-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.028);
}

.hp092-status-title {
  color: var(--hp092-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hp092-status-value {
  margin-top: 11px;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
}

.hp092-status-subtitle {
  margin-top: 8px;
  color: var(--hp092-muted);
  font-size: 11px;
  line-height: 1.45;
}

.hp092-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  margin-bottom: 13px;
}

.hp092-section-head h2 {
  margin: 0;
  font-size: 20px;
}

.hp092-section-head p {
  margin: 5px 0 0;
  color: var(--hp092-muted);
  font-size: 12px;
}

.hp092-room-count {
  color: var(--hp092-muted);
  font-size: 12px;
  font-weight: 800;
}

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

.hp092-room {
  padding: 19px;
  border: 1px solid var(--hp092-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.hp092-room:focus-visible { outline: 2px solid var(--hp092-accent); outline-offset: 3px; }
.hp092-room-action { margin-top: 14px; color: var(--hp092-accent); font-size: 12px; font-weight: 850; }
.hp092-strategy { padding: 20px; border: 1px solid var(--hp092-border-strong); border-radius: 18px; background: rgba(99,220,255,.035); }
.hp092-strategy-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.hp092-strategy-summary div { padding:14px; border-radius:14px; background:rgba(255,255,255,.035); }
.hp092-strategy-summary span,.hp092-form label span { display:block; color:var(--hp092-muted); font-size:10px; font-weight:850; letter-spacing:.05em; }
.hp092-strategy-summary strong { display:block; margin-top:7px; font-size:18px; }
.hp092-goal-explanation { margin:15px 0; color:var(--hp092-muted); line-height:1.55; }
.hp092-goal-changes { display:grid; gap:8px; margin-bottom:16px; }
.hp092-change { padding:11px 13px; border-left:3px solid var(--hp092-accent); background:rgba(255,255,255,.025); font-size:12px; }
.hp092-primary { min-height:42px; padding:0 16px; border:0; border-radius:12px; background:var(--hp092-accent); color:#05202a; font-weight:900; cursor:pointer; }
.hp092-policy-modal { position:fixed; inset:0; z-index:5000; display:grid; place-items:center; padding:18px; background:rgba(0,0,0,.72); }
.hp092-policy-modal[hidden] { display:none; }
.hp092-policy-dialog { width:min(900px,100%); max-height:92vh; overflow:auto; padding:24px; border:1px solid var(--hp092-border-strong); border-radius:20px; background:#0d1b21; box-shadow:0 30px 90px #000; }
.hp092-policy-head { display:flex; justify-content:space-between; gap:16px; align-items:start; }
.hp092-policy-head h2 { margin:0; }
.hp092-close { border:0; background:transparent; color:white; font-size:26px; cursor:pointer; }
.hp092-mode-note { padding:11px 13px; margin:14px 0; border-radius:12px; background:rgba(114,224,172,.07); color:var(--hp092-good); }
.hp092-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.hp092-form label { display:grid; gap:6px; }
.hp092-form input,.hp092-form select { width:100%; box-sizing:border-box; padding:11px; border:1px solid var(--hp092-border); border-radius:10px; background:#081319; color:white; }
.hp092-state-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:15px 0; }
.hp092-state-grid div { padding:12px; border-radius:11px; background:rgba(255,255,255,.035); }
.hp092-state-grid span { display:block; color:var(--hp092-muted); font-size:10px; }
.hp092-state-grid strong { display:block; margin-top:5px; }
.hp092-section-label { grid-column:1/-1; margin:8px 0 0; font-weight:850; color:var(--hp092-accent); }
.hp092-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
@media(max-width:760px){.hp092-strategy-summary,.hp092-form,.hp092-state-grid{grid-template-columns:1fr}.hp092-policy-dialog{padding:18px}}

.hp092-room-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.hp092-room-name {
  margin: 0;
  font-size: 17px;
}

.hp092-room-floor {
  margin-top: 4px;
  color: var(--hp092-muted);
  font-size: 11px;
}

.hp092-temperature {
  white-space: nowrap;
  font-size: 26px;
  font-weight: 850;
}

.hp092-advice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--hp092-border);
}

.hp092-advice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(99, 220, 255, 0.08);
  color: var(--hp092-accent);
}

.hp092-advice-title {
  font-size: 12px;
  font-weight: 850;
}

.hp092-advice-reason {
  margin-top: 4px;
  color: var(--hp092-muted);
  font-size: 11px;
  line-height: 1.45;
}

.hp092-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.hp092-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--hp092-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #c5d6dc;
  font-size: 10px;
  font-weight: 750;
}

.hp092-chip.hp092-stale {
  border-color: rgba(255, 212, 116, 0.2);
  color: var(--hp092-warn);
}

.hp092-empty {
  padding: 22px;
  border: 1px dashed var(--hp092-border);
  border-radius: 16px;
  color: var(--hp092-muted);
  text-align: center;
  line-height: 1.5;
}

.hp092-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hp092-border);
  color: var(--hp092-muted);
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 1050px) {
  .hp092-status-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #hp092-web-control-center {
    padding: 0 11px;
  }

  .hp092-head {
    flex-direction: column;
    padding: 22px 18px 19px;
  }

  .hp092-content {
    padding: 18px;
  }

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

  .hp092-room-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hp092-status-grid {
    grid-template-columns: 1fr;
  }

  .hp092-head-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.hp092-policy-modal[hidden] { display: none !important; }
.hp092-form-error { color: #ffaaaa; }

#hp092-impact-ranking details { margin: .6rem 0; border: 1px solid var(--hp092-border); border-radius: .5rem; padding: .75rem; }
#hp092-impact-ranking summary { cursor: pointer; font-weight: 600; }
#hp092-forecast-detail, #hp092-impact-ranking { overflow-wrap: anywhere; }


/* HP093 VISUAL ROOM CONTROL */

.hp093-visual-dialog {
  width: min(820px, 100%);
  padding: 0;
  overflow: auto;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(99,220,255,.10), transparent 34%),
    #09171d;
}

.hp093-visual-dialog > .hp092-policy-head {
  padding: 22px 24px 8px;
}

.hp093-visual-dialog > p:not(.hp092-form-error) {
  display: none;
}

.hp093-room-control {
  padding: 8px 24px 24px;
}

.hp093-overview {
  display: grid;
  grid-template-columns: minmax(300px,1.15fr) minmax(230px,.85fr);
  gap: 20px;
  align-items: stretch;
}

.hp093-thermostat {
  display: grid;
  justify-items: center;
  gap: 17px;
  padding: 24px;
  border: 1px solid rgba(99,220,255,.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 36%, rgba(99,220,255,.10), transparent 50%),
    rgba(255,255,255,.022);
}

.hp093-ring {
  --hp093-progress: 55%;
  display: grid;
  place-items: center;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--hp092-accent) 0 var(--hp093-progress),
      rgba(255,255,255,.08) var(--hp093-progress) 100%
    );
  box-shadow:
    0 0 48px rgba(99,220,255,.11);
  position: relative;
}

.hp093-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 35%, rgba(99,220,255,.08), transparent 55%),
    #0a171d;
}

.hp093-ring-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.hp093-ring-label,
.hp093-ring-current {
  color: var(--hp092-muted);
  font-size: 11px;
  font-weight: 800;
}

#hp093-target-value {
  margin: 5px 0;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.04em;
}

.hp093-adjust {
  display: grid;
  grid-template-columns: 52px minmax(150px,1fr) 52px;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.hp093-round-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(99,220,255,.22);
  border-radius: 50%;
  background: rgba(99,220,255,.08);
  color: white;
  cursor: pointer;
  font-size: 28px;
}

.hp093-round-button:hover {
  background: rgba(99,220,255,.15);
}

.hp093-slider {
  width: 100%;
  accent-color: var(--hp092-accent);
}

.hp093-recommendation {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(114,224,172,.16);
  border-radius: 15px;
  background: rgba(114,224,172,.055);
}

.hp093-spark {
  color: var(--hp092-good);
  font-size: 20px;
}

.hp093-recommendation div {
  display: grid;
  flex: 1;
}

.hp093-recommendation small {
  color: var(--hp092-muted);
}

.hp093-use-recommendation {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(114,224,172,.15);
  color: var(--hp092-good);
  cursor: pointer;
  font-weight: 850;
}

.hp093-room-status {
  display: grid;
  gap: 10px;
}

.hp093-status-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 13px 15px;
  border: 1px solid var(--hp092-border);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
}

.hp093-status-tile > span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(99,220,255,.07);
}

.hp093-status-tile div {
  display: grid;
  gap: 3px;
}

.hp093-status-tile small {
  color: var(--hp092-muted);
  font-size: 10px;
  font-weight: 800;
}

.hp093-status-tile strong {
  font-size: 15px;
}

.hp093-section {
  margin-top: 20px;
}

.hp093-section-title small {
  color: var(--hp092-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.hp093-section-title strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.hp093-presets {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}

.hp093-presets button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 94px;
  padding: 13px 8px;
  border: 1px solid var(--hp092-border);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
  color: var(--hp092-text);
  cursor: pointer;
}

.hp093-presets button:hover,
.hp093-presets button.hp093-selected {
  border-color: rgba(99,220,255,.35);
  background: rgba(99,220,255,.08);
  transform: translateY(-1px);
}

.hp093-presets button > span {
  font-size: 20px;
}

.hp093-presets button small {
  color: var(--hp092-muted);
}

.hp093-form {
  margin-top: 20px;
}

.hp093-smart-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(99,220,255,.13);
  border-radius: 17px;
  background: rgba(99,220,255,.035);
}

.hp093-smart-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(99,220,255,.10);
  color: var(--hp092-accent);
  font-size: 20px;
}

.hp093-smart-copy {
  display: grid;
  gap: 4px;
}

.hp093-smart-copy small {
  color: var(--hp092-muted);
  line-height: 1.4;
}

.hp093-switch {
  position: relative;
  width: 48px;
  height: 28px;
}

.hp093-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hp093-switch span {
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  transition: .18s ease;
}

.hp093-switch span::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: white;
  transition: .18s ease;
}

.hp093-switch input:checked + span {
  background: var(--hp092-accent);
}

.hp093-switch input:checked + span::after {
  transform: translateX(20px);
  background: #06202a;
}

.hp093-impact {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 15px;
  border-radius: 17px;
  background: rgba(255,255,255,.024);
}

.hp093-impact-icon {
  color: var(--hp092-accent);
  font-size: 19px;
}

.hp093-impact div {
  display: grid;
  gap: 4px;
}

.hp093-impact small {
  color: var(--hp092-muted);
}

.hp093-impact p {
  margin: 2px 0 0;
  color: var(--hp092-muted);
  font-size: 12px;
  line-height: 1.5;
}

.hp093-technical {
  margin-top: 14px;
  border: 1px solid var(--hp092-border);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}

.hp093-technical > summary {
  padding: 14px 15px;
  cursor: pointer;
  color: var(--hp092-muted);
  font-size: 12px;
  font-weight: 850;
}

.hp093-technical-grid {
  padding: 0 15px 15px;
}

.hp093-device-actions {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp093-technical-state {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--hp092-muted);
  font-size: 11px;
}

.hp093-bottom-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}

.hp093-secondary {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--hp092-border);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: var(--hp092-text);
  cursor: pointer;
  font-weight: 800;
}

.hp093-save {
  min-width: 150px;
}

.hp093-preview-text,
.hp093-form-error {
  margin: 10px 0 0;
  color: var(--hp092-muted);
  font-size: 12px;
  line-height: 1.5;
}

.hp093-form-error:not(:empty) {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255,110,110,.08);
  color: #ffc1c1;
}

@media (max-width: 720px) {
  .hp093-visual-dialog {
    border-radius: 20px;
  }

  .hp093-room-control {
    padding: 6px 15px 18px;
  }

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

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

  .hp093-ring {
    width: 205px;
    height: 205px;
  }

  #hp093-target-value {
    font-size: 46px;
  }

  .hp093-smart-row {
    grid-template-columns: 42px 1fr auto;
  }

  .hp093-bottom-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hp093-save {
    grid-column: 1/-1;
  }
}


/* HP094 MOBILE POLISH */

.hp093-visual-dialog > .hp092-policy-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(
      180deg,
      rgba(9,23,29,.99),
      rgba(9,23,29,.96)
    );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.hp093-bottom-actions {
  position: sticky;
  bottom: 0;
  z-index: 18;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background:
    linear-gradient(
      180deg,
      rgba(9,23,29,0),
      rgba(9,23,29,.96) 22%,
      rgba(9,23,29,.99)
    );
}

@media (max-width: 720px) {

  .hp092-policy-modal.hp093-visual-modal {
    align-items: stretch;
    place-items: stretch;
    padding:
      max(8px, env(safe-area-inset-top))
      7px
      max(8px, env(safe-area-inset-bottom));
  }

  .hp093-visual-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .hp093-visual-dialog > .hp092-policy-head {
    padding: 14px 17px 12px;
  }

  .hp093-visual-dialog .hp092-policy-head h2 {
    font-size: 22px;
  }

  .hp093-room-control {
    padding: 4px 15px 14px;
  }

  .hp093-thermostat {
    gap: 12px;
    padding: 17px 15px;
    border-radius: 20px;
  }

  .hp093-ring {
    width: min(52vw, 188px);
    height: min(52vw, 188px);
  }

  #hp093-target-value {
    font-size: 43px;
  }

  .hp093-adjust {
    grid-template-columns: 46px minmax(120px,1fr) 46px;
    gap: 9px;
  }

  .hp093-round-button {
    width: 46px;
    height: 46px;
    font-size: 25px;
  }

  .hp093-recommendation {
    padding: 10px 12px;
  }

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

  .hp093-status-tile {
    min-height: 62px;
    padding: 10px;
  }

  .hp093-status-tile > span {
    width: 32px;
    height: 32px;
  }

  .hp093-status-tile strong {
    font-size: 13px;
  }

  .hp093-section {
    margin-top: 16px;
  }

  .hp093-presets {
    gap: 8px;
  }

  .hp093-presets button {
    min-height: 82px;
    border-radius: 15px;
    padding: 10px 6px;
  }

  .hp093-smart-row {
    padding: 13px;
  }

  .hp093-impact {
    padding: 13px;
  }

  .hp093-impact strong {
    font-size: 15px;
    line-height: 1.35;
  }

  .hp093-bottom-actions {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hp093-bottom-actions .hp093-secondary {
    min-height: 40px;
    font-size: 12px;
  }

  .hp093-bottom-actions .hp093-save {
    min-height: 46px;
  }
}
