.system-overview { background: #f7f9f9; }
.hx-experience { --hx-hot: #e7683b; --hx-cold: #2396b3; --hx-return: #b79439; }
.hx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 0; border-top: 1px solid #dce3e4; border-bottom: 1px solid #dce3e4; }
.hx-system-name { display: grid; gap: 6px; }
.hx-system-name > span { font-size: 11px; color: #738286; }
.hx-system-name > b { font-size: 15px; font-weight: 600; line-height: 1.6; }
.hx-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.hx-actions .segmented { background: #fff; }
.hx-actions .segmented button { min-height: 36px; font-size: 12px; padding: 7px 16px; }
.hx-actions .segmented button.active { color: #296659; background: #e4f1eb; }
.hx-overview-canvas { background-color: #fbfdfc; background-image: linear-gradient(#eaf0ee 1px, transparent 1px), linear-gradient(90deg, #eaf0ee 1px, transparent 1px); background-size: 32px 32px; padding: 20px 0 4px; }
.hx-system-svg, .hx-mobile-svg, .hx-detail-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
.hx-mobile-svg { display: none; }
.hx-detail-mobile { display: none; }
.hx-machine { fill: #fff; stroke: #becbcf; stroke-width: 1.6; }
.hx-tank-shell { fill: #e9edeb; stroke: #89979e; stroke-width: 2.5; }
.hx-fan-ring { fill: #f1f4f5; stroke: #93a1a7; stroke-width: 2; }
.hx-equipment-icon { color: #78878e; stroke-width: 1.6; }
.hx-system-svg .hx-equipment-icon, .hx-mobile-svg .hx-equipment-icon { width: revert; height: revert; }
.hx-station-body { fill: #343d42; }
.hx-zone-line { stroke: #dce3e4; stroke-width: 1; }
.hx-zone-label { fill: #748186; font-size: 13px; font-weight: 600; }
.hx-equipment-label { fill: #303e42; font-size: 15px; font-weight: 600; }
.hx-small-label { fill: #6c7b80; font-size: 11px; }
.hx-micro-label { fill: #6c7b80; font-size: 9px; }
.hx-temperature { fill: #303e42; font-size: 13px; font-weight: 700; }
.hx-light-text { fill: #fff; font-size: 18px; }
.hx-primary-text, .hx-hot-text { fill: #b74423; font-size: 12px; font-weight: 500; }
.hx-return-text { fill: #806522; font-size: 12px; font-weight: 500; }
.hx-cold-text { fill: #197086; font-size: 12px; font-weight: 500; }
.hx-pipe { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.hx-pipe.charge, .hx-pipe.primary-hot, .hx-pipe.domestic-hot { stroke: #e8784e; }
.hx-pipe.return { stroke: #5192b1; }
.hx-pipe.primary-return { stroke: #bd9e48; }
.hx-pipe.cold { stroke: #2799b1; }
.hx-pipe.primary-channel { stroke: #ffcf9b; }
.hx-pipe.domestic-channel { stroke: #e3f5f4; }
.hx-stream { fill: none; stroke: #fff; stroke-width: 1.8; stroke-dasharray: 4 16; animation: hx-water-flow 1.1s linear infinite; opacity: .75; }
.hx-particle { fill: #fff; stroke: #bd8d45; stroke-width: .9; }
.hx-particle.cold, .hx-particle.domestic-channel { stroke: #4796a8; }
.hx-pump { fill: #fff; stroke: #a4b1b6; stroke-width: 2; }
.hx-heat-arrow { color: #eeab23; animation: hx-heat-pulse 2s ease-in-out infinite; }
.hx-heat-arrow > path { stroke: currentColor; stroke-width: 2.5; fill: none; }
.hx-energy { fill: #fff0a7; stroke: #ba8627; stroke-width: 1; }
.hx-drops { stroke: #549eb8; stroke-width: 2; stroke-linecap: round; animation: hx-heat-pulse 1.6s ease-in-out infinite; }
.hx-metal { fill: #a1afb3; stroke: #74838a; stroke-width: 1; }
.hx-static-direction { fill: none; stroke: #66777d; stroke-width: 2; }
.hx-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 24px; border-bottom: 1px solid #dce3e4; padding: 18px 0; font-size: 11px; color: #64787d; }
.hx-key { display: inline-flex; align-items: center; gap: 8px; }
.hx-key::before { content: ""; width: 24px; height: 3px; background: #e7683b; }
.hx-key-return::before { background: #bd9e48; }
.hx-key-cold::before { background: #2799b1; }
.hx-key-energy::before { background: #eeab23; }
.hx-legend > b { margin-left: auto; color: #39685c; display: flex; align-items: center; gap: 7px; font-weight: 500; }
.hx-legend > b svg { width: 16px; height: 16px; }
.hx-closeup { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(245px, .8fr); gap: 46px; padding: 43px 0 30px; }
.hx-detail-heading .eyebrow { font-size: 10px; margin-bottom: 9px; }
.hx-detail-heading h3 { margin: 0 0 6px; font-size: 28px; }
.hx-detail-heading p { font-size: 12px; color: #758589; margin-bottom: 15px; }
.hx-station-reference { display: flex; align-items: center; gap: 23px; padding: 0 0 20px; border-bottom: 1px solid #dce3e4; text-align: left; }
.hx-station-reference img { display: block; width: 64px; height: 105px; object-fit: contain; mix-blend-mode: multiply; }
.hx-station-reference > div { display: grid; gap: 8px; min-width: 0; }
.hx-station-reference b { font-size: 14px; }
.hx-station-reference span { font-size: 11px; color: #758589; }
.hx-insight { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0; }
.hx-insight > svg { width: 20px; height: 20px; color: #72898d; }
.hx-insight h4, .hx-live-caption h4 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
.hx-insight p, .hx-live-caption p { font-size: 12px; line-height: 1.85; margin: 0; color: #6f8185; }
.hx-live-caption { padding: 19px 0 0; border-top: 1px solid #dce3e4; min-height: 133px; }
.hx-live-caption > span { display: block; font: 10px Consolas, monospace; color: #b14d18; margin-bottom: 11px; }
.hx-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #d6dfe0; border-bottom: 1px solid #d6dfe0; }
.hx-phases button { display: flex; align-items: center; gap: 11px; min-height: 70px; border: 0; border-right: 1px solid #d6dfe0; border-radius: 0; padding: 14px; background: none; text-align: left; }
.hx-phases button:last-child { border-right: 0; }
.hx-phases button > span { font: 11px Consolas, monospace; color: #849498; }
.hx-phases button > b { font-size: 12px; font-weight: 500; line-height: 1.6; }
.hx-phases button > svg { width: 17px; height: 17px; margin-left: auto; flex-shrink: 0; }
.hx-phases button.active { background: #fff1df; box-shadow: inset 0 3px #f58221; color: #a84814; }
.hx-disclaimer { display: flex; gap: 9px; font-size: 10px; color: #7b8a8e; line-height: 1.9; margin: 18px 0 0; }
.hx-disclaimer > svg { width: 15px; height: 15px; margin-top: 3px; }
[data-hx][data-paused="true"] .hx-stream, [data-hx][data-paused="true"] .hx-heat-arrow, [data-hx][data-paused="true"] .hx-drops,
[data-hx][data-mode="idle"] .hx-stream, [data-hx][data-mode="idle"] .hx-heat-arrow, [data-hx][data-mode="idle"] .hx-drops,
[data-hx][data-suspended="true"] .hx-stream, [data-hx][data-suspended="true"] .hx-heat-arrow, [data-hx][data-suspended="true"] .hx-drops { animation-play-state: paused; }
[data-hx][data-mode="idle"] .hx-particle, [data-hx][data-mode="idle"] .hx-energy, [data-hx][data-mode="idle"] .hx-heat-arrow, [data-hx][data-mode="idle"] .hx-drops, [data-hx][data-mode="idle"] .hx-stream { opacity: 0; }
[data-hx][data-mode="idle"] .hx-flow-group { opacity: .45; }
@keyframes hx-water-flow { to { stroke-dashoffset: -20; } }
@keyframes hx-heat-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@media (max-width: 1000px) {
  .hx-closeup { gap: 25px; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); }
  .hx-legend { gap: 12px 16px; }
  .hx-legend > b { margin-left: 0; }
  .hx-phases button { padding: 12px 8px; gap: 7px; }
  .hx-phases button > svg { display: none; }
}
@media (max-width: 700px) {
  .hx-toolbar { flex-wrap: wrap; gap: 14px; padding: 17px 0; }
  .hx-system-name > b { font-size: 13px; }
  .hx-actions { width: 100%; }
  .hx-actions .segmented { margin-right: auto; }
  .hx-system-svg { display: none; }
  .hx-mobile-svg { display: block; max-width: 440px; margin: 0 auto; }
  .hx-overview-canvas { padding: 10px 0; }
  .hx-legend { font-size: 10px; gap: 12px 15px; }
  .hx-key { gap: 5px; }
  .hx-key::before { width: 16px; }
  .hx-closeup { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 30px; }
  .hx-detail-heading h3 { font-size: 24px; }
  .hx-detail-wide { display: none; }
  .hx-detail-mobile { display: block; }
  .hx-detail-mobile .hx-primary-text, .hx-detail-mobile .hx-hot-text,
  .hx-detail-mobile .hx-cold-text, .hx-detail-mobile .hx-return-text { font-size: 13px; }
  .hx-detail-mobile .hx-small-label { font-size: 12px; }
  .hx-detail-mobile .hx-equipment-label { font-size: 14px; }
  .hx-detail-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hx-station-reference, .hx-live-caption { grid-column: 1 / -1; }
  .hx-insight { margin: 0; gap: 9px; }
  .hx-insight h4 { font-size: 13px; }
  .hx-insight p { font-size: 11px; }
  .hx-live-caption { min-height: 123px; }
  .hx-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-phases button { min-height: 62px; padding: 11px; }
  .hx-phases button:nth-child(2) { border-right: 0; }
  .hx-phases button:nth-child(-n+2) { border-bottom: 1px solid #d6dfe0; }
  .hx-phases button > b { font-size: 11px; }
  .hx-phases button.active { box-shadow: inset 0 2px #f58221; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-stream, .hx-heat-arrow, .hx-drops { animation: none; }
}
.hx-story25 .hx-toolbar { gap: 20px; padding-block: 23px; }
.hx-story25 .hx-system-name > span { color: #a47848; font-size: 10px; }
.hx-story25 .hx-system-name > b { font-size: 21px; line-height: 1.6; color: #384747; }
.hx-story25 .hx-system-name p { font-size: 12px; line-height: 1.8; color: #81918b; margin: 3px 0 0; }
.hx-story25 .hx-actions .segmented button { display: inline-flex; align-items: center; gap: 7px; }
.hx-story25 .hx-actions .segmented svg { width: 16px; height: 16px; }
.hx-story25 .hx-actions .segmented button.active { background: #fff1df; color: #ab5d20; }
.hx-view-controls { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; }
.hx-focus-options { display: flex; gap: 6px; flex-wrap: wrap; }
.hx-focus-options button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 11px; background: transparent; border: 1px solid transparent; border-radius: 3px; color: #80918a; font-size: 11px; }
.hx-focus-options button[aria-pressed=true] { border-color: #ccdcd4; color: #456957; background: #eef5f0; }
.hx-bead-key { display: inline-block; width: 9px; height: 9px; background: #d5a449; border: 1px solid #b68a33; border-radius: 50%; flex-shrink: 0; }
.hx-drop-key { display: inline-block; width: 9px; height: 12px; background: #65aac4; border-radius: 60% 60% 65% 65%; clip-path: polygon(50% 0,100% 68%,90% 90%,50% 100%,10% 90%,0 68%); flex-shrink: 0; }
.hx-source-controls { display: flex; align-items: center; gap: 15px; color: #819189; font-size: 11px; }
.hx-source-controls label { display: inline-flex; gap: 7px; align-items: center; }
.hx-source-controls input { accent-color: #a97d42; }
.hx-example-badge { color: #927b58; background: #f3eee4; padding: 4px 7px; font-size: 10px; white-space: nowrap; }
.hx-story25 .hx-overview-canvas { border: 1px solid #e0e8e4; background-color: #fafcfb; background-image: linear-gradient(#e9efeb80 1px,transparent 1px),linear-gradient(90deg,#e9efeb80 1px,transparent 1px); background-size: 48px 48px; padding-top: 10px; }
.hx-story25 .hx-machine { fill: #fff; stroke: #b4c5c2; }
.hx-story25 .hx-tank-shell { fill: #edf1ed; stroke: #98aaa5; }
.hx-story25 .hx-station-depth { fill: #d9e1de; stroke: #c0cec7; stroke-width: 1.5; }
.hx-story25 .hx-station-shell { fill: #f7faf8; stroke: #abbdb4; }
.hx-story25 .hx-station-body { fill: #364441; }
.hx-story25 .hx-pipe { stroke-width: 4.5; }
.hx-story25 .hx-primary-bead { fill: #d7a642; stroke: #fff9e8; stroke-width: 1.3; }
.hx-story25 .hx-water-drop { fill: #3d9ec1; stroke: #f2fbff; stroke-width: 1.1; }
.hx-story25 .hx-pipe.domestic-hot { stroke: #8bbccc; }
.hx-warm-reveal { fill: none; stroke: #e78350; stroke-width: 4.7; stroke-linecap: butt; stroke-linejoin: round; }
.hx-story25 .hx-particle,.hx-story25 .hx-energy { pointer-events: none; }
.hx-story25 .hx-stream { stroke-dasharray: 2 23; stroke-width: 1.2; opacity: .48; }
.hx-story25 .hx-flow-group[data-active=false] .hx-stream { opacity: 0; }
.hx-story25 .hx-flow-group { transition: opacity .3s ease; }
.hx-story25[data-phase="0"] .hx-flow-group[data-circuit=primary] { opacity: .25; }
.hx-story25[data-phase="0"] .hx-heat-arrow,.hx-story25[data-phase="1"] .hx-heat-arrow { opacity: .12; }
.hx-story25[data-mode=idle] .hx-particle,.hx-story25[data-mode=idle] .hx-energy { opacity: 1; }
.hx-story25[data-mode=idle] .hx-flow-group { opacity: .7; }
.hx-story25[data-mode=idle][data-hx-source=true] .hx-flow-group[data-circuit=source] { opacity: 1; }
.hx-story25[data-mode=idle] .hx-heat-arrow { opacity: .12; }
.hx-story25[data-focus=primary] .hx-flow-group[data-circuit=domestic] { opacity: .14; }
.hx-story25[data-focus=domestic] .hx-flow-group[data-circuit=primary],.hx-story25[data-focus=domestic] .hx-flow-group[data-circuit=source] { opacity: .14; }
.hx-story25[data-focus=primary] .hx-flow-group[data-circuit=primary] { opacity: 1; }
.hx-source-fan { transform-origin: 0 0; }
.hx-story25[data-hx-source=true] .hx-source-fan { animation: hx-fan-spin 3s linear infinite; }
.hx-pump-rotor { transform-origin: 0 0; }
.hx-pump-rotor path { fill: none; stroke: #ccaa62; stroke-width: 1.8; stroke-linecap: round; }
.hx-story25[data-hx-pump-running=true] .hx-pump-rotor { animation: hx-fan-spin 1.1s linear infinite; }
.hx-story25 .hx-drops { opacity: 1; stroke: #73afc5; }
.hx-story25[data-hot-ready=true] .hx-drops { stroke: #e78552; }
.hx-story25[data-mode=idle] .hx-drops { opacity: 0; visibility: hidden; }
.hx-tap-hit { fill: transparent; stroke: transparent; stroke-width: 2; cursor: pointer; }
.hx-zoom-hit { fill: transparent; stroke: transparent; stroke-width: 2; cursor: zoom-in; }
[data-hx-tap]:focus-visible .hx-tap-hit,[data-hx-tap]:hover .hx-tap-hit,[data-hx-zoom-open]:focus-visible .hx-zoom-hit,[data-hx-zoom-open]:hover .hx-zoom-hit { stroke: #bf9861; outline: none; }
.hx-story25 .hx-tap-state { fill: #8a9c94; font-size: 9px; pointer-events: none; }
.hx-story25[data-hot-ready=true] .hx-tap-state { fill: #bd7139; }
.hx-story25 .hx-legend { gap: 13px 25px; padding: 16px 0; font-size: 11px; color: #7d8f86; }
.hx-story25 .hx-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.hx-story25 .hx-legend .link-button { margin-left: auto; font-size: 12px; }
.hx-story25 .hx-energy-key svg { width: 22px; height: 17px; color: #b8963e; }
.hx-state-readout { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 17px 0; border-bottom: 1px solid #dce5de; }
.hx-state-readout > div { display: grid; gap: 7px; min-width: 0; }
.hx-state-readout span { color: #8b9b91; font-size: 10px; }
.hx-state-readout strong { color: #587362; font-size: 12px; line-height: 1.8; font-weight: 500; }
.hx-story25 .hx-live-caption { min-height: 111px; padding: 18px 0; border-top: 0; }
.hx-story25 .hx-live-caption h4 { font-size: 17px; color: #4c6558; line-height: 1.6; }
.hx-story25 .hx-live-caption p { color: #83928a; font-size: 12px; line-height: 1.9; }
.hx-story25 .hx-live-caption > span { color: #9b805b; }
.hx-story25 .hx-live-caption [hidden] { display: none !important; }
.hx-story25 .hx-phases button.active { color: #a66b34; background: #fff4e6; }
.hx-story25 .hx-phases button > b { line-height: 1.6; }
.hx-zoom-dialog { width: min(1000px,calc(100% - 32px)); max-height: calc(100dvh - 36px); padding: 26px; border: 1px solid #cbd9d0; border-radius: 6px; color: #4b6557; background: #fcfdfc; }
.hx-zoom-dialog::backdrop { background: #1e322c99; }
.hx-zoom-dialog .dialog-heading { align-items: flex-start; }
.hx-zoom-dialog .eyebrow { margin-bottom: 10px; font-size: 10px; }
.hx-zoom-dialog h2 { font-size: 22px; line-height: 1.6; margin: 0; }
.hx-zoom-dialog .icon-button { flex-shrink: 0; }
.hx-story25 .hx-zoom-dialog .hx-closeup { grid-template-columns: minmax(0,1.6fr) minmax(200px,.8fr); gap: 25px; padding: 20px 0 0; }
.hx-story25 .hx-detail-copy { display: block; }
.hx-story25 .hx-station-reference { gap: 17px; padding-bottom: 18px; }
.hx-story25 .hx-station-reference img { width: 86px; height: 125px; }
.hx-story25 .hx-station-reference b { font-size: 14px; }
.hx-story25 .hx-station-reference span { line-height: 1.8; font-size: 10px; }
.hx-story25 .hx-insight { margin-top: 20px; }
.hx-story25 .hx-insight > i { margin-top: 6px; }
.hx-story25 .hx-insight h4 { line-height: 1.7; font-size: 13px; }
.hx-story25 .hx-insight p { line-height: 1.9; font-size: 11px; }
.hx-zoom-note { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: #a58a43; font-size: 12px; }
.hx-zoom-note svg { width: 20px; height: 20px; }
.hx-zoom-boundary { font-size: 10px; color: #8c9a90; line-height: 1.9; border-top: 1px solid #dce5de; padding-top: 15px; margin: 18px 0 0; }
.hx-story25 .hx-zoom-dialog[open] .hx-flow-group,.hx-story25 .hx-zoom-dialog[open] .hx-heat-arrow { opacity: 1; }
.hx-story25[data-hx-animated=true] .hx-stream { animation: hx-water-flow 1.1s linear infinite; }
.hx-story25 .hx-heat-arrow { animation: none; }
.hx-story25[data-hx-animated=true][data-mode=use]:is([data-phase="2"],[data-phase="3"]) .hx-heat-arrow,.hx-story25[data-hx-animated=true] .hx-zoom-dialog[open] .hx-heat-arrow,.hx-story25[data-hx-animated=true] .hx-drops { animation: hx-heat-pulse 1.8s ease-in-out infinite; }
.hx-story25[data-hx-animated=false] :is(.hx-stream,.hx-heat-arrow,.hx-drops,.hx-pump-rotor,.hx-source-fan) { animation-play-state: paused; }
@keyframes hx-fan-spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .hx-story25 .hx-toolbar { flex-wrap: wrap; }
  .hx-story25 .hx-actions { width: 100%; }
}
@media (max-width: 700px) {
  .hx-story25 .hx-system-name > b { font-size: 19px; }
  .hx-story25 .hx-actions { gap: 7px; }
  .hx-story25 .hx-actions .segmented button { padding: 7px 8px; gap: 5px; font-size: 11px; }
  .hx-story25 .hx-actions .icon-button { width: 32px; min-width: 32px; height: 34px; }
  .hx-view-controls { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hx-focus-options { gap: 3px; }
  .hx-focus-options button { padding: 6px 8px; }
  .hx-source-controls { width: 100%; justify-content: space-between; }
  .hx-story25 .hx-legend { font-size: 10px; gap: 12px 20px; }
  .hx-story25 .hx-legend .link-button { margin-left: 0; }
  .hx-state-readout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .hx-state-readout > div:first-child { grid-column: 1/-1; }
  .hx-story25 .hx-live-caption { min-height: 145px; }
  .hx-story25 .hx-live-caption h4 { font-size: 15px; }
  .hx-story25 .hx-live-caption p { font-size: 11px; }
  .hx-zoom-dialog { padding: 16px; }
  .hx-zoom-dialog h2 { font-size: 17px; }
  .hx-story25 .hx-zoom-dialog .hx-closeup { grid-template-columns: 1fr; gap: 18px; }
  .hx-story25 .hx-zoom-dialog .hx-detail-copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .hx-story25 .hx-station-reference { grid-column: 1/-1; }
  .hx-story25 .hx-insight { margin: 0; }
  .hx-zoom-note { grid-column: 1/-1; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-story25[data-hx-animated=true][data-hx-source=true] .hx-source-fan { animation: hx-fan-spin 3s linear infinite !important; }
  .hx-story25[data-hx-animated=true][data-hx-pump-running=true] .hx-pump-rotor { animation: hx-fan-spin 1.1s linear infinite !important; }
  .hx-story25[data-hx-animated=true] .hx-flow-group[data-active=true] .hx-stream { animation: hx-water-flow 1.1s linear infinite !important; }
  .hx-story25[data-hx-animated=true][data-mode=use]:is([data-phase="2"],[data-phase="3"]) .hx-heat-arrow,
  .hx-story25[data-hx-animated=true] .hx-zoom-dialog[open] .hx-heat-arrow,
  .hx-story25[data-hx-animated=true][data-mode=use] .hx-drops { animation: hx-heat-pulse 1.8s ease-in-out infinite !important; }
}
