/* Locked Household Selection authority: control rail + household results workspace. */
.hsw {
  max-width: 1440px;
  margin: 0 auto;
}

.hsw__workspace {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: 24px;
  align-items: start;
}

.hsw__rail,
.hsw__main {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.hsw__rail-card,
.hsw__results-card {
  overflow: hidden;
  border: 1px solid #dce2ea;
  border-radius: 16px;
  background: #fff;
}

.hsw__rail-card > header,
.hsw__results-header {
  padding: 18px 20px;
  border-bottom: 1px solid #dce2ea;
  background: #f2f4f6;
}

.hsw__rail-card h2,
.hsw__results-header h2 {
  margin: 0;
  color: #0d1b3e;
  font: 700 20px/28px Manrope, Inter, sans-serif;
}

.hsw__rail-card p,
.hsw__results-header p {
  margin: 2px 0 0;
  color: #697386;
  font-size: 12px;
}

.hsw__categories {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.hsw .hsw__category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #191c1e;
  text-align: left;
}

.hsw .hsw__category:hover,
.hsw .hsw__category:focus-visible,
.hsw .hsw__category.is-active {
  background: #eef3ff;
  color: #003ea8;
}

.hsw__category strong {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eceef0;
  color: #45464e;
  font-size: 10px;
  text-align: center;
}

.hsw__actions {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.hsw .hsw__action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fff;
  color: #191c1e;
  text-align: left;
}

.hsw__action > span:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: #eef3ff;
  color: #0051d5;
  font-size: 18px;
}

.hsw__action strong,
.hsw__action small {
  display: block;
}

.hsw__action strong {
  color: #0d1b3e;
  font-size: 13px;
}

.hsw__action small {
  margin-top: 2px;
  color: #697386;
  font-size: 10px;
}

.hsw__results-card .hsw__controls {
  margin: 16px;
  grid-template-columns: minmax(240px, 2fr) minmax(130px, 1fr) minmax(150px, 1fr);
  padding: 14px;
  border-radius: 12px;
}

.hsw__results-card .hsw__summary {
  padding: 0 16px 12px;
}

.hsw__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-top: 1px solid #edf0f4;
  background: #fff;
}

.hsw .hsw__row,
.hsw .hsw__row:last-child {
  display: grid;
  width: 100%;
  grid-template-columns: 48px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: #fff;
  color: #191c1e;
  text-align: left;
}

.hsw .hsw__row:last-child {
  border-bottom: 0;
}

.hsw .hsw__row:hover,
.hsw .hsw__row:focus-visible {
  border-color: #edf0f4;
  background: #f8fafc;
  color: #191c1e;
}

.hsw .hsw__row .hsw__copy strong {
  color: #191c1e;
  font: 700 15px/20px Manrope, Inter, sans-serif;
}

.hsw__copy small + small {
  color: #8a93a3;
  font-size: 10px;
}

.hsw__status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1px solid #c6c6cf;
  border-radius: 999px;
  background: #f2f4f6;
  color: #45464e;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.hsw__status--active {
  border-color: #a7e5c4;
  background: #ecfdf3;
  color: #087443;
}

.hsw__status--prospect,
.hsw__status--planning {
  border-color: #bfd3ff;
  background: #eef4ff;
  color: #0051d5;
}

.hsw__pages {
  padding: 16px;
  border-top: 1px solid #edf0f4;
}

@media (max-width: 1024px) {
  .hsw__workspace {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr);
  }

  .hsw__results-card .hsw__controls {
    grid-template-columns: 1fr 1fr;
  }

  .hsw__results-card .hsw__search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .hsw__workspace {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hsw__results-card .hsw__controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .hsw__results-card .hsw__search {
    grid-column: auto;
  }

  .hsw .hsw__row,
  .hsw .hsw__row:last-child {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
  }

  .hsw__status {
    grid-column: 2;
    justify-self: start;
  }

  .hsw__open {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}
