/* Household adds to the existing, scoped expenses visual language. */
body[data-view='household'] .promo-bar { display: none; }
.hh-tabs { display: flex; gap: 6px; padding: 5px; margin: 0 auto 2px; width: fit-content; max-width: 100%; border: 1px solid #dfe5db; border-radius: 11px; background: #f6f7f2; }
.hh-tabs button { font: 600 13px/1.4 'DM Sans', sans-serif; color: #637268; background: transparent; border: 0; border-radius: 7px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.hh-tabs button[aria-current="page"] { color: #176044; background: #fff; box-shadow: 0 1px 4px #23352b0e; }
.hh-tabs button:focus-visible { outline: 3px solid #6a997f; outline-offset: 2px; }
.hh-page { min-width: 0; }
.hh-page h1 { overflow-wrap: anywhere; }
.hh-page p, .hh-page strong, .hh-dialog p { overflow-wrap: anywhere; }
.hh-welcome { max-width: 680px; margin: 20px auto 0; padding: 44px 32px; border: 1px solid var(--exp-border); border-radius: 16px; background: var(--exp-cream); text-align: center; }
.hh-welcome-icon { width: 62px; height: 62px; border-radius: 50%; background: #e6eee1; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; color: var(--exp-green); }
.hh-welcome-icon svg { width: 29px; height: 29px; }
.hh-welcome h2 { margin: 7px 0 14px; font: 500 34px/1.2 'Lora', Georgia, serif; letter-spacing: -.03em; }
.hh-welcome > p { max-width: 480px; margin: 0 auto 22px; color: var(--exp-muted); font-size: 14px; line-height: 1.8; }
.hh-welcome > .hh-small { margin: 17px auto 0; }
.hh-setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.hh-card { min-width: 0; border: 1px solid var(--exp-border); border-radius: 14px; padding: 26px; background: #fff; }
.hh-card h2 { margin: 6px 0 13px; font: 500 25px/1.3 'Lora', Georgia, serif; letter-spacing: -.025em; }
.hh-card > p { color: var(--exp-muted); font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.hh-card form { display: grid; gap: 18px; }
.hh-card form > .exp-btn { justify-self: start; }
.hh-page .hh-small { margin-top: 10px; color: var(--exp-muted); font-size: 11px; line-height: 1.7; }
.hh-accept { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.65; cursor: pointer; }
.hh-accept input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--exp-green); margin-top: 2px; }
.hh-accept span { min-width: 0; }
.hh-overview { grid-template-columns: 1fr 1fr; }
.hh-summary-note { color: var(--exp-muted); font-size: 12px; line-height: 1.65; margin-top: auto !important; }
.hh-week { background: #eef5ed; border-color: #d8e6d5; }
.hh-week .exp-total { color: var(--exp-green); }
.hh-week .hh-small { margin-top: 8px; }
.hh-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 24px; align-items: start; }
.hh-sidebar { min-width: 0; display: grid; gap: 20px; }
.hh-person-totals, .hh-member-list, .hh-pending ul { list-style: none; padding: 0; margin: 0; }
.hh-person-totals li { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--exp-border); }
.hh-person-totals li:first-child { border-top: 0; padding-top: 0; }
.hh-person-totals li > div { min-width: 0; flex: 1; }
.hh-person-totals li strong { font-size: 12px; font-weight: 500; }
.hh-person-totals li > strong { font-variant-numeric: tabular-nums; text-align: right; max-width: 53%; }
.hh-person-totals li span { display: block; color: var(--exp-muted); font-size: 10px; margin-top: 4px; }
.hh-entry-people { font-size: 10px; color: var(--exp-muted); line-height: 1.6; margin-top: 5px !important; }
.hh-readonly { font-size: 10px; color: var(--exp-muted); }
.hh-members { padding: 23px 22px; }
.hh-member-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--exp-border); }
.hh-member-list li:first-child { border-top: 0; }
.hh-member-list li > div { min-width: 0; }
.hh-member-list li strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.6; }
.hh-member-list li span { display: block; color: var(--exp-muted); font-size: 10px; margin-top: 2px; }
.hh-member-list .hh-you { display: inline; font-size: inherit; }
.hh-invite-area { padding-top: 18px; margin-top: 10px; border-top: 1px solid var(--exp-border); }
.hh-invite-area > .exp-btn { width: 100%; white-space: normal; }
.hh-code-box { padding: 15px 12px; border: 1px solid #d6e4ce; background: #f0f6eb; border-radius: 9px; margin-top: 18px; }
.hh-code-box label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.hh-code-box input { font-size: 12px; font-family: monospace; width: 100%; min-width: 0; padding: 10px 8px; border: 1px solid #ccd8c6; border-radius: 6px; background: #fff; color: var(--exp-ink); }
.hh-code-box > .exp-btn { width: 100%; margin-top: 10px; }
.hh-pending { margin-top: 20px; font-size: 12px; }
.hh-pending summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; font-weight: 600; }
.hh-pending li { display: flex; align-items: center; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--exp-border); }
.hh-pending li > div { min-width: 0; flex: 1; }
.hh-pending li strong { display: block; font-weight: 500; font-size: 11px; }
.hh-pending li span { display: block; color: var(--exp-muted); font-size: 10px; line-height: 1.6; margin-top: 3px; }
.hh-pending li .exp-btn { min-height: 44px; font-size: 11px !important; }
.hh-leave { border-top: 1px solid var(--exp-border); margin-top: 20px; padding-top: 12px; }
.hh-leave > .hh-small { margin-top: 2px; }
.hh-confirm-copy { font-size: 14px; line-height: 1.8; color: var(--exp-muted); }
.hh-dialog select { min-width: 0; max-width: 100%; }
@media (max-width: 1050px) {
  .hh-content-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
}
@media (max-width: 760px) {
  .hh-setup-grid, .hh-content-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hh-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
  .hh-entry { grid-template-columns: 35px minmax(0, 1fr) auto; }
  .hh-entry .exp-entry-actions { grid-column: 2 / -1; justify-content: flex-end; margin-top: 3px; }
}
@media (max-width: 520px) {
  .hh-tabs { width: 100%; }
  .hh-tabs button { flex: 1; padding: 10px 8px; white-space: normal; font-size: 12px; }
  .hh-card { padding: 23px 20px; }
  .hh-overview, .hh-sidebar { grid-template-columns: minmax(0, 1fr); }
  .hh-overview .exp-total { font-size: clamp(30px, 9vw, 42px); margin-bottom: 15px; }
  .hh-welcome { padding: 32px 20px; }
  .hh-welcome h2 { font-size: 30px; }
  .hh-welcome > p { font-size: 13px; }
  .hh-welcome .exp-btn, .hh-card form > .exp-btn { width: 100%; white-space: normal; }
  .hh-page .exp-field > input { min-width: 0; font-size: 16px; }
  .hh-entry .exp-entry-amount { max-width: 115px; white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .hh-entry-people { font-size: 10px; }
  .hh-dialog .exp-dialog-footer .exp-btn { white-space: normal; }
}
