.hp-guide {
  padding-block: clamp(1.25rem, 4vw, 3rem);
  --hp-cold: #69d5ed;
  --hp-power: #efc684;
  --hp-heat: #f0a17d;
}
.hp-intro {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.1rem; margin-bottom: 1.1rem;
}
.hp-intro h1 {
  max-width: 24ch; font-size: clamp(1.85rem, 4vw, 3.55rem);
  letter-spacing: -.045em; line-height: 1.06; text-wrap: pretty;
}
.hp-intro p { margin-top: .48rem; color: var(--muted); }
.hp-photo {
  position: relative; display: block; width: clamp(10rem, 22vw, 17rem); flex: none;
  overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: #fff;
}
.hp-photo img { width: 100%; height: 6.8rem; object-fit: cover; }
.hp-photo span {
  position: absolute; inset: auto 0 0; padding: .95rem .65rem .35rem;
  background: linear-gradient(transparent, #0b141dee); font-size: .79rem; font-weight: 650;
}
.hp-demo, .hp-balance {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
.hp-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .28rem .45rem; padding: .38rem .5rem; background: var(--control);
}
.hp-modes, .hp-view-controls, .hp-presets { display: flex; align-items: center; gap: .24rem; }
.hp-guide button {
  min-height: 2rem; padding: .25rem .48rem; border-radius: 6px;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: .81rem; line-height: 1.25;
}
.hp-guide button:hover, .hp-guide button[aria-pressed="true"] {
  color: var(--accent); background: var(--accent-deep); border-color: var(--accent);
}
.hp-modes {
  padding: .19rem; gap: .14rem; border: 1px solid var(--line-soft);
  border-radius: 8px; background: var(--page);
}
.hp-modes button {
  min-height: 1.75rem; padding-inline: .47rem;
  color: var(--muted); background: transparent; border-color: transparent; white-space: nowrap;
}
.hp-modes button[aria-pressed="true"] { border-color: var(--brand-line); }
.hp-mode-short { display: none; }
.hp-view-controls button {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem;
  padding: 0; color: var(--muted); background: transparent; border-color: var(--line-soft);
}
.hp-view-controls .hp-layout-switch { color: var(--accent); }
.hp-pause-icon { box-sizing: border-box; width: .66rem; height: .79rem; border-inline: .14rem solid currentColor; }
.hp-guide[data-paused] .hp-pause-icon {
  width: 0; height: 0; border: .39rem solid transparent; border-inline-start: .59rem solid currentColor;
  border-inline-end: 0;
}
.hp-window-icon { position: relative; display: block; width: 1rem; height: 1rem; }
.hp-window-icon i {
  position: absolute; width: .37rem; height: .37rem; border-top: .11rem solid; border-left: .11rem solid;
}
.hp-window-icon i:nth-child(1) { top: 0; left: 0; }
.hp-window-icon i:nth-child(2) { top: 0; right: 0; rotate: 90deg; }
.hp-window-icon i:nth-child(3) { bottom: 0; right: 0; rotate: 180deg; }
.hp-window-icon i:nth-child(4) { bottom: 0; left: 0; rotate: 270deg; }
.hp-layout-switch[aria-pressed="true"] .hp-window-icon { width: .84rem; height: .84rem; }
.hp-layout-switch[aria-pressed="true"] .hp-window-icon i { transform: rotate(180deg); }
.hp-viewport {
  overflow: auto; background: #0e1820; scrollbar-color: #627d8e #15242d;
  border-block: 1px solid var(--line-soft);
}
.hp-diagram { position: relative; margin-inline: auto; }
.hp-diagram .monitor-hydraulics { max-height: none; }
.hp-guide button.hp-component-target {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--width); height: var(--height); min-width: 1.35rem; min-height: 1.35rem;
  opacity: 0; padding: 0; border: 0; background: transparent;
}
.hp-guide button.hp-component-target:focus-visible {
  opacity: 1; outline: 2px dashed #9df0ff; outline-offset: 1px; background: transparent;
}
.hp-diagram .hp-clickable { cursor: pointer; }
.hp-diagram .hp-highlighted {
  filter: drop-shadow(0 0 4px #a7f3ff) drop-shadow(0 0 8px #5ad8ef);
}
.hp-rotate { display: none; }
.hp-details {
  display: grid; grid-template-columns: minmax(11rem, .42fr) minmax(0, 1fr);
  grid-template-areas: "picker description"; gap: .35rem .8rem; padding: .5rem .65rem;
}
.hp-node { grid-area: picker; }
.hp-explanation { grid-area: description; }
.hp-explanation h3 { margin: 0 0 .2rem; font-size: .9rem; line-height: 1.25; }
.hp-node { align-self: start; display: grid; gap: .18rem; color: var(--muted); font-size: .8rem; }
.hp-node select {
  width: 100%; min-width: 0; min-height: 2.15rem; padding: .26rem .4rem;
  border-radius: 6px; color: var(--text); border: 1px solid var(--line); background: var(--control);
  font: inherit; font-size: .875rem;
}
.hp-explanation, .hp-balance { font-size: .875rem; line-height: 1.43; }
.hp-explanation p { margin: 0; }
.hp-explanation .hp-idle-note { margin-bottom: .26rem; color: var(--warm); }
.hp-more { margin-top: .25rem; color: var(--muted); }
.hp-guide .hp-more p { margin: .26rem 0 0; }
.hp-more summary { width: fit-content; padding-block: .16rem; cursor: pointer; color: var(--accent); font-weight: 650; }
.hp-balance { margin-top: .65rem; padding: .58rem .66rem; }
.hp-balance h2 { font-size: .99rem; text-wrap: pretty; }
.hp-balance-heading { display: flex; align-items: center; justify-content: space-between; gap: .38rem; }
.hp-balance-heading strong {
  border: 1px solid var(--brand-line); border-radius: 7px; background: var(--accent-deep);
  color: var(--accent); padding: .15rem .36rem; font-size: .81rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hp-equation, .hp-power-breakdown { display: grid; gap: .4rem .55rem; }
.hp-equation {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem; margin-top: .38rem; padding: .18rem 0 .48rem;
}
.hp-term {
  display: flex; flex-direction: column; justify-content: space-between; position: relative; min-width: 0;
  border-inline-start: 2px solid var(--accent); padding-inline-start: .43rem;
  font-variant-numeric: tabular-nums;
}
.hp-term:nth-child(2), .hp-term:nth-child(3) { border-color: var(--warm); }
.hp-equation-sign {
  position: absolute; inset-inline-start: -.91rem; inset-block-end: .2rem;
  color: var(--accent); font-size: .87rem; font-weight: 700;
}
.hp-term dt, .hp-power-breakdown dt { color: var(--muted); line-height: 1.2; font-size: .76rem; }
.hp-term dd { font-size: clamp(1rem, 2vw, 1.44rem); font-weight: 720; white-space: nowrap; }
.hp-term small { font-size: .63em; }
.hp-power-breakdown {
  grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
  margin: 0 0 .38rem; padding-block: .32rem; border-block: 1px solid var(--line-soft);
}
.hp-power-breakdown div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .4rem; }
.hp-power-breakdown dd { color: var(--text); font-size: .79rem; font-weight: 650; white-space: nowrap; }
.hp-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .85rem; }
.hp-sliders > div { display: flex; flex-direction: column; min-width: 0; }
.hp-slider-label {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .14rem .28rem; padding-bottom: .14rem;
}
.hp-slider-label label { min-width: 0; overflow-wrap: anywhere; }
.hp-sliders label { font-size: .81rem; color: var(--muted); }
.hp-sliders output { font-size: .88rem; font-weight: 720; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp-sliders input { display: block; width: 100%; accent-color: var(--accent); min-height: 1.36rem; margin: auto 0 .02rem; }
.hp-presets { flex-wrap: wrap; margin-top: .26rem; }
.hp-balance p { margin-top: .42rem; color: var(--muted); font-size: .83rem; }
.hp-balance .hp-reference { font-size: .76rem; }
[data-cooling-note] > p:first-child { margin-top: 0; }
.hp-cooling-comparison { margin-top: .3rem; }
.hp-cooling-comparison dd { color: var(--accent); }
.hp-balance .hp-demo-note { margin: .18rem 0 0; font-size: .76rem; }
.hp-live-link { margin-top: .8rem; }
.hp-guide:is([data-paused], [data-offscreen]) .monitor-hydraulics :is(.dots, .rotor, .orbiting-scroll, .gas-orbit) {
  animation-play-state: paused !important;
}
.hp-guide[data-mode="cooling"] .monitor-hydraulics [id$="coldSensors"] { visibility: hidden; }
.hp-guide .monitor-hydraulics:not([data-rendered]) :is(#guide-dhwHardware, #guide-mixerFlow, #guide-groundCoolingReturn, #guide-coolingInlet, #guide-mixingValve, #guide-valveInternals) {
  visibility: hidden;
}
.hp-screen {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; overflow: auto; background: var(--page); color: var(--text);
}
.hp-screen::backdrop { background: var(--page); }
html:has(.hp-screen[open]) { overflow: hidden; }
.hp-workspace:fullscreen { background: var(--page); overflow: auto; }
.hp-workspace[data-expanded] { padding: .45rem; }
.hp-workspace[data-expanded] .hp-balance { margin-top: 0; }
.hp-workspace[data-expanded] .hp-rotate {
  margin: .35rem .75rem 0; color: var(--muted); font-size: .8rem;
}

@media (min-width: 42rem) {
  .hp-workspace[data-expanded] {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(12.5rem, 27%);
    align-items: start; gap: .45rem;
  }
  .hp-workspace[data-expanded] .hp-equation { grid-template-columns: 1fr; row-gap: .29rem; }
  .hp-workspace[data-expanded] .hp-term { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .4rem; }
  .hp-workspace[data-expanded] .hp-equation-sign { position: static; margin-inline-end: .2rem; }
  .hp-workspace[data-expanded] .hp-term dd { font-size: 1.03rem; }
  .hp-workspace[data-expanded] .hp-power-breakdown { grid-template-columns: 1fr; }
}
@media (orientation: portrait) and (max-width: 42rem) {
  .hp-screen[open] .hp-rotate { display: block; }
  .hp-workspace[data-expanded] .hp-balance { margin-top: .45rem; }
}
@media (max-width: 44rem) {
  .hp-guide.shell { width: calc(100% - 1rem); }
  .hp-intro { display: block; margin-bottom: .65rem; }
  .hp-photo { display: none; }
  .hp-details { grid-template-columns: 1fr; grid-template-areas: "description" "picker"; }
  .hp-workspace[data-expanded] .hp-diagram { min-width: 33rem; }
}
@media (max-width: 32rem) {
  .hp-mode-short { display: inline; }
  .hp-mode-wide { display: none; }
}
@media (pointer: coarse) {
  .hp-modes button, .hp-view-controls button { min-height: 2.45rem; }
  .hp-view-controls button { width: 2.45rem; }
}
@media (max-width: 23rem) {
  .hp-toolbar { gap: .22rem; padding-inline: .31rem; }
  .hp-modes { padding: .13rem; gap: .09rem; }
  .hp-modes button { padding-inline: .23rem; font-size: .74rem; }
  .hp-view-controls { gap: .16rem; }
  .hp-view-controls button { width: 1.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-guide .hp-pause { display: none; }
}
