/* House (owners only): docs/design/screens/house. Everything is under .hs, with hs- names. */

.hs .hs-phone { display: none; }
.hs-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: end; padding: 40px 0 48px; }
.hs-intro { display: flex; flex-direction: column; gap: 14px; }
.hs-intro .tag { margin-left: 10px; }
.hs-summary { font-size: 21px; max-width: 560px; }
.hs-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.hs-door { background: var(--stone-2); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.hs-door-top { display: flex; justify-content: space-between; gap: 12px; }
.hs-door-state { font-family: var(--font-display); font-weight: 300; font-size: 54px; line-height: 1; letter-spacing: -.02em; }
.hs-door-state.muted { font-size: 40px; }

.hs-reads { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.hs-reads > div { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.hs-reads > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hs-big { font-size: 44px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }

.hs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; }
.hs-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 64px 0 18px; }
.hs-h3 { font-size: 26px; margin: 36px 0 4px; }

.hs-rooms { border-top: 1px solid var(--line); }
.hs-room { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.hs-room-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hs-room-title { font-family: var(--font-display); font-weight: 300; font-size: 24px; }
.hs-room-temp { font-size: 24px; }
.hs-ctl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.hs-ctl .seg button { padding: 6px 12px; min-height: 36px; font-size: 15px; }
.hs-lb { font-size: 14px; color: var(--muted); margin-right: -8px; }
.hs-room.off .hs-ctl { opacity: .45; }
.hs-room.off .hs-ctl:hover, .hs-room.off .hs-ctl:focus-within { opacity: .8; }
.hs-step { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.hs-step button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.hs-step span { min-width: 52px; text-align: center; font-size: 19px; }
.hs-note { margin-top: 16px; max-width: 620px; }

/* The air filter: a room row with PM2.5 where the temperature goes, and the day's chart under it. */
.hs-air { grid-template-columns: minmax(0, 1fr) auto auto; }
.hs-air-now { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hs-air-age { white-space: nowrap; }
.hs-band { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.hs-band::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.hs-band-good::before { background: var(--positive); }
.hs-band-poor::before, .hs-band-unhealthy::before { background: var(--danger); }
.hs-air-chart { grid-column: 1 / -1; margin: 0; }
.hs-air-chart-top, .hs-air-axis { display: flex; justify-content: space-between; gap: 12px; }
.hs-air-chart svg { display: block; width: 100%; height: 72px; margin: 6px 0 4px; cursor: crosshair; touch-action: pan-y; }
.hs-air-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hs-air-ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.hs-air-cross { stroke: var(--muted); stroke-width: 1; }
.hs-empty { padding: 20px 0; border-bottom: 1px solid var(--line); margin: 0; }

.hs-list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); }
.hs-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hs-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-rules li { padding: 12px 0; }
.hs-rm { opacity: 0; transition: opacity .15s; }
.hs-rules li:hover .hs-rm, .hs-rm:focus { opacity: 1; }

.hs-codeform { display: flex; flex-direction: column; gap: 12px; }
.hs-f { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15px; }
.hs-f input, .hs-f select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 16px; width: 100%; }
.hs-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hs-newcode { background: var(--ink); color: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hs-newcode[hidden] { display: none; }
.hs-newcode .meta { color: var(--stone); }
.hs-code { font-size: 44px; line-height: 1; letter-spacing: .1em; font-variant-numeric: tabular-nums lining-nums; }

@media (max-width: 760px) {
  .hs .hs-desk { display: none; }
  .hs .hs-phone { display: initial; }
  .hs .hs-desk-grid { display: none; }
  .hs-back { color: var(--ink); text-decoration: none; }
  .hs-hero { grid-template-columns: 1fr; gap: 20px; padding: 8px 0 0; }
  .hs-hero h1 { font-size: 44px; }
  .hs-summary { font-size: 19px; }
  /* Phone: the door comes right after the summary, then the two shortcuts side by side. */
  .hs-intro { display: contents; }
  .hs-intro > :not(.hs-shortcuts):not(p) { order: 0; }
  .hs-door { order: 1; padding: 20px; }
  .hs-door-state { font-size: 44px; }
  .hs-shortcuts { order: 2; display: grid; grid-template-columns: 1fr 1fr; margin-top: 0; }
  .hs-intro > p.hs-phone { order: 3; margin: 0; }
  .hs-cols { grid-template-columns: 1fr; gap: 0; }
  .hs-cols > div:empty { display: none; }
  .hs-sec { margin-top: 48px; }
  .hs-room { gap: 12px 16px; }
  .hs-ctl { gap: 10px; }
  .hs-lb { display: none; }
  .hs-rm { opacity: 1; }
  .hs button.hs-phone { display: flex; }
  .hs p.hs-phone, .hs a.hs-phone { display: block; }
}
