.ha-screen { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
.ha-chat { display: grid; gap: 8px; margin-top: 20px; }
.ha-chat p { max-width: 90%; padding: 11px 16px; font-size: clamp(16px,1.25vw,23px); line-height: 1.35; }
.ha-question { justify-self: end; color: var(--white); background: #4a355e; border-radius: 15px 15px 3px 15px; }
.ha-answer { justify-self: start; background: #2b2632; border-radius: 15px 15px 15px 3px; }
.ha-answer b { display: block; margin-bottom: 4px; color: var(--lilac); font-weight: 500; font-size: .78em; }
.ha-answer strong { color: var(--lime); font-weight: 500; white-space: nowrap; }
.work-card.ha-forecast { display: flex; flex-direction: column; background: #25212b; }
.ha-figures { display: flex; flex-wrap: wrap; gap: 14px clamp(20px,3vw,54px); margin: auto 0 0; padding-top: clamp(20px,2vw,36px); }
.ha-figures dt, .ha-gap figcaption { font-size: clamp(14px,1vw,18px); color: var(--work-copy); }
.ha-figures dd { font-size: clamp(32px,3.7vw,70px); line-height: 1.12; letter-spacing: -.065em; font-weight: 500; }
.ha-figures dd small { font-size: .45em; letter-spacing: -.035em; }
.ha-figures > :first-child dd { color: var(--lime); }
.ha-gap { margin-top: 24px; }
.ha-gap dl { margin-top: 8px; }
.ha-gap dl > div { display: grid; grid-template-columns: 3ch 1fr; align-items: center; gap: 14px; }
.ha-gap dt, .ha-gap b { font-size: clamp(14px,1.08vw,20px); font-variant-numeric: tabular-nums; }
.ha-gap dd { position: relative; height: clamp(32px,2.4vw,48px); margin-right: 6ch; background: linear-gradient(90deg,transparent calc(50% - 1px),#84798e calc(50% - 1px) 50%,transparent 50%); }
.ha-gap i { position: absolute; top: 24%; height: 52%; width: calc(var(--amount) / 2); border-radius: 3px; }
.ha-gap .negative { right: 50%; background: var(--violet-3); }
.ha-gap .positive { left: 50%; background: var(--lime); }
.ha-gap b { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); width: 6ch; text-align: right; font-weight: 500; }
.ha-insight { display: flex; flex-direction: column; }
.ha-annual { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; padding-top: 24px; margin-top: auto; }
.ha-annual span { color: var(--violet); font-size: clamp(19px,1.55vw,30px); }
.ha-compare { border: 0; min-width: 0; padding: 0; margin: 20px 0 0; }
.ha-compare legend, .ha-compare input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.ha-compare label { display: inline-block; padding: 7px 13px; margin: 0 2px 6px 0; background: var(--paper); border-radius: var(--r-ui); cursor: pointer; }
.ha-compare input:checked + label { background: var(--ink); color: var(--lime); }
.ha-compare input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 2px; }
.ha-quarter { display: none; margin-top: 14px; }
#ha-total:checked ~ .ha-total, #ha-average:checked ~ .ha-average { display: block; }
.ha-quarter figcaption, .ha-waterfall figcaption, .ha-client caption { font-size: 14px; color: var(--work-copy); text-align: left; }
.ha-columns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(8px,1vw,20px); height: clamp(122px,11vw,190px); margin: 32px 0 30px; }
.ha-columns > div { position: relative; border-bottom: 1px solid var(--line); }
.ha-columns span { height: var(--height); position: absolute; inset: auto 7% 0; background: var(--lilac); border-radius: 5px 5px 0 0; }
.ha-columns .ha-leader span { background: var(--violet); }
.ha-columns b, .ha-columns small { position: absolute; width: 100%; text-align: center; }
.ha-columns b { bottom: calc(100% + 2px); font-size: clamp(15px,1.2vw,23px); font-weight: 500; }
.ha-columns small { top: calc(100% + 3px); font-size: 14px; color: var(--work-copy); }
.ha-quarter p { color: var(--work-copy); font-size: clamp(15px,1.1vw,20px); line-height: 1.4; }
.ha-margin table { width: 100%; margin: clamp(20px,2.5vw,44px) 0 16px; border-spacing: 4px; font-size: clamp(14px,1.1vw,22px); }
.ha-margin thead th { font-size: .85em; color: var(--work-copy); }
.ha-margin th { font-weight: 500; }
.ha-margin th:first-child { text-align: left; width: 36%; line-height: 1.25; }
.ha-margin td { text-align: center; padding: 9px 2px; border-radius: 4px; }
.ha-heat-low { background: #42354e; }
.ha-heat-mid { background: #655274; }
.ha-heat-high { background: var(--lilac); color: var(--ink); }
.ha-heat-peak { background: var(--lime); color: var(--ink); }
.ha-waterfall { margin: clamp(16px,1.9vw,32px) 0 14px; }
.ha-waterfall ol { list-style: none; padding: 0; margin: 25px 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; text-align: center; }
.ha-waterfall li > div { position: relative; height: clamp(105px,9vw,174px); border-bottom: 1px solid var(--work-line); }
.ha-waterfall span { position: absolute; inset-inline: 8%; bottom: var(--base); height: var(--size); background: var(--violet-3); border-radius: 3px; }
.ha-waterfall b { position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); font-size: clamp(13px,1vw,19px); font-weight: 500; }
.ha-cost span { background: var(--lilac); }
.ha-net span { background: var(--lime); }
.ha-waterfall small { display: block; padding-top: 5px; color: var(--work-copy); font-size: clamp(12px,.85vw,16px); line-height: 1.28; overflow-wrap: anywhere; }
.ha-model { margin-top: clamp(24px,3vw,54px); }
.ha-model-root, .ha-model-leaves > div, .ha-codes > div { padding: clamp(14px,1.5vw,26px); border-radius: var(--r-ui); }
.ha-model-root { position: relative; width: fit-content; margin: 0 auto 22px; background: var(--violet); color: var(--white); }
.ha-model-leaves { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); position: relative; }
.ha-model-leaves::before { content: ""; position: absolute; bottom: 100%; left: 25%; right: 25%; border: 1px solid var(--violet); border-bottom: 0; height: 12px; border-radius: 5px 5px 0 0; }
.ha-model-root::after { content: ""; position: absolute; top: 100%; left: 50%; height: 11px; border-left: 1px solid var(--violet); }
.ha-model-leaves > div { background: var(--white); }
.ha-model b, .ha-codes b { display: block; font-size: clamp(17px,1.6vw,29px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.ha-model small, .ha-codes small { display: block; margin-bottom: 4px; font-size: 14px; }
.ha-detect { display: flex; flex-direction: column; }
.ha-detect-reading { margin: auto 0; padding-block: 24px; color: var(--lime); }
.ha-detect-reading span { font-size: clamp(15px,1.15vw,22px); }
.ha-agents { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.ha-agents h3 { color: var(--violet); }
.ha-demo { margin: 0; }
.ha-demo [data-hw-draft] { padding: 0 var(--pad) var(--pad); }
.ha-demo p { max-width: 64ch; color: var(--work-copy); }
.ha-demo strong { display: block; margin: 10px 0; color: var(--violet); font-size: clamp(24px,2.6vw,48px); }
.ha-demo button { color: var(--violet); font-weight: 500; padding: 6px 0; margin-top: 9px; }
.hw-receipt:not([hidden]) { display: grid; justify-items: start; margin-top: 14px; gap: 3px; }
.ha-codes { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; margin: clamp(22px,2.4vw,40px) 0 18px; }
.ha-codes > div { background: #312b39; }
.ha-codes > div:last-child { color: var(--ink); background: var(--lime); }
.ha-codes > span { color: var(--lime); }
.ha-report-stat { display: grid; margin: 20px 0 12px; }
.ha-report-stat strong { color: var(--violet); font-weight: 500; font-size: clamp(35px,3.8vw,70px); line-height: 1.03; letter-spacing: -.055em; }
.ha-report-stat span { color: var(--work-copy); }
.ha-spark { display: flex; align-items: end; gap: 4px; height: clamp(50px,5vw,90px); margin: 16px 0; }
.ha-spark i { flex: 1; height: var(--size); border-radius: 3px 3px 0 0; background: var(--violet); }
.ha-client { width: 100%; text-align: right; border-collapse: collapse; margin: 18px 0 12px; }
.ha-client caption { margin-bottom: 6px; }
.ha-client th, .ha-client td { padding: 8px 2px; border-bottom: 1px solid var(--work-line); font-weight: 400; }
.ha-client th:first-child { text-align: left; }
.ha-client tbody td:last-child { color: var(--violet); font-weight: 500; }
@media(max-width:820px) { .ha-screen { grid-template-columns: 1fr; } }
@media(max-width:550px) {
  .ha-agents { grid-template-columns: 1fr; }
  .ha-figures { gap: 12px; }
  .ha-figures dd { font-size: 34px; }
  .ha-chat p { max-width: 96%; }
  .ha-margin table { font-size: 13px; border-spacing: 2px; }
  .ha-margin th:first-child { width: 32%; }
  .ha-margin td { padding: 8px 1px; }
  .ha-waterfall ol { gap: 2px; }
  .ha-waterfall small { font-size: 11px; }
  .ha-model-leaves > div { padding: 12px; }
  .ha-codes { grid-template-columns: 1fr; }
  .ha-codes > span { justify-self: center; transform: rotate(90deg); }
}
