/* Household settings use one open content rail with focused, URL-addressable tabs. */
.hg-settings { width:100%; padding:4px 0 48px; }
.hg-settings-heading { margin:22px 0 30px; }
.hg-settings-heading .hg-eyebrow { margin-bottom:6px; }
.hg-settings h1 { margin:0; font-size:clamp(34px,4vw,48px); line-height:1.05; letter-spacing:-.045em; }
.hg-settings .hg-subtitle { max-width:620px; margin-top:10px; color:var(--hg-ink-2); font-size:16px; }
.hg-eyebrow { font-size:12px; text-transform:none; letter-spacing:0; font-weight:700; color:var(--hg-accent); }

.hg-settings-tabs { display:flex; gap:6px; width:calc(100% + 14px); margin-left:-14px; overflow-x:auto; border-bottom:1px solid var(--hg-line); scrollbar-width:none; }
.hg-settings-tabs::-webkit-scrollbar { display:none; }
.hg-settings-tabs a { position:relative; display:inline-flex; align-items:center; min-height:48px; padding:0 14px; flex:0 0 auto; color:var(--hg-muted); font-size:14px; font-weight:650; text-decoration:none; }
.hg-settings-tabs a::after { content:""; position:absolute; left:14px; right:14px; bottom:-1px; height:2px; background:transparent; }
.hg-settings-tabs a:hover { color:var(--hg-ink); }
.hg-settings-tabs a:focus-visible { outline-offset:-3px; }
.hg-settings-tabs a[aria-selected="true"] { color:var(--hg-ink); }
.hg-settings-tabs a[aria-selected="true"]::after { background:var(--hg-accent); }

.hg-settings-panel { padding:38px 0 28px; }
.hg-settings-panel[hidden] { display:none; }
.hg-panel-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; width:100%; margin-bottom:24px; }
.hg-panel-heading > div { min-width:0; }
.hg-panel-heading .hg-eyebrow { margin-bottom:7px; }
.hg-panel-heading h2 { margin:0; font-size:clamp(24px,2.4vw,28px); line-height:1.1; letter-spacing:-.03em; }
.hg-panel-heading p:not(.hg-eyebrow) { max-width:650px; margin-top:10px; color:var(--hg-ink-2); font-size:14px; line-height:1.6; }
.hg-settings-panel h3 { margin:0; font-size:18px; letter-spacing:-.015em; }
.hg-settings-panel > p, .hg-invite-block > p, .hg-add-home > p { max-width:650px; margin:8px 0 20px; color:var(--hg-ink-2); font-size:14px; line-height:1.6; }

.hg-people-list, .hg-access-list, .hg-pending-list, .hg-homes-list { width:100%; border-top:1px solid var(--hg-line); }
.hg-person-row, .hg-member-row, .hg-invitation-row, .hg-home-row { display:flex; align-items:flex-start; gap:14px; min-width:0; padding:17px 0; border-bottom:1px solid var(--hg-line); }
.hg-person-main, .hg-member-row > div, .hg-invitation-row > div, .hg-home-row > div { flex:1; min-width:0; }
.hg-person-row strong, .hg-member-row strong, .hg-invitation-row strong, .hg-home-row strong { display:block; color:var(--hg-ink); font-size:15px; overflow-wrap:anywhere; }
.hg-person-row p, .hg-home-row small, .hg-member-row small, .hg-invitation-row small { display:block; margin:3px 0 0; color:var(--hg-muted); font-size:12px; overflow-wrap:anywhere; }
.hg-person-main > small { display:block; margin-top:5px; color:var(--hg-muted); font-size:12px; }
.hg-person-row > form, .hg-member-row > form, .hg-invitation-row > form, .hg-home-row > form { flex:0 0 auto; margin:0; }
.hg-home-row { align-items:center; }
.hg-home-row .hg-tag { align-self:center; }
.hg-settings-empty { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:88px; padding:16px 0; border-bottom:1px solid var(--hg-line); color:var(--hg-muted); }
.hg-settings-note { width:100%; margin-top:18px !important; color:var(--hg-muted) !important; font-size:12px !important; }

.hg-sms-enrollment { margin-top:10px; padding:0; }
.hg-sms-enrollment > summary { display:inline-flex; align-items:center; min-height:36px; color:var(--hg-accent); font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.hg-sms-enrollment > div { max-width:680px; margin:5px 0 2px; padding:15px 16px; border-left:3px solid var(--hg-line-strong); background:var(--hg-surface-2); }
.hg-sms-enrollment p { margin:0 0 10px; color:var(--hg-ink-2); font-size:13px; line-height:1.55; }
.hg-sms-enrollment p:last-of-type { margin-bottom:8px; }
.hg-sms-enrollment a { color:var(--hg-accent); font-weight:650; text-underline-offset:3px; }
.hg-sms-enrollment small { color:var(--hg-muted); font-size:12px; line-height:1.5; }

.hg-text-button { min-height:44px; padding:8px 10px; border:0; background:none; color:var(--hg-muted); font:inherit; font-size:13px; cursor:pointer; }
.hg-text-button:hover { color:var(--hg-ink); text-decoration:underline; }

.hg-invite-block, .hg-add-home { width:100%; margin-top:36px; padding-top:30px; border-top:1px solid var(--hg-line); }
.hg-access-list + .hg-invite-block, .hg-homes-list + .hg-add-home { padding-top:0; border-top:0; }
.hg-invite-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; width:min(100%,720px); }
.hg-invite-form .hg-btn { min-height:48px; }
.hg-pending-list { margin-top:34px; }
.hg-pending-list h3 { padding-bottom:12px; border-bottom:1px solid var(--hg-line); }

.hg-settings-form { width:min(100%,720px); }
.hg-settings-fields { display:grid; gap:16px; }
.hg-settings-field { display:grid; gap:7px; min-width:0; }
.hg-settings-field > label { color:var(--hg-ink-2); font-size:13px; font-weight:650; }
.hg-settings-field input:not([type="checkbox"]), .hg-settings-field select, .hg-settings-field textarea { width:100%; min-height:48px; padding:12px 14px; border:1px solid var(--hg-line-strong); border-radius:12px; background:var(--hg-surface); color:var(--hg-ink); font:inherit; }
.hg-settings-field input:focus, .hg-settings-field select:focus, .hg-settings-field textarea:focus { outline:none; border-color:var(--hg-accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--hg-accent) 16%,transparent); }
.hg-settings-field small, .helptext { color:var(--hg-muted); font-size:12px; }
.hg-settings-form-actions { display:flex; justify-content:flex-end; margin-top:22px; padding-top:18px; border-top:1px solid var(--hg-line); }
.hg-previous-details { width:min(100%,720px); margin-top:28px; padding-top:18px; border-top:1px solid var(--hg-line); }
.hg-previous-details > summary { display:flex; align-items:center; min-height:44px; color:var(--hg-ink-2); font-size:14px; font-weight:700; cursor:pointer; }
.hg-previous-details > p { margin:0 0 12px; color:var(--hg-muted); font-size:13px; }
.hg-previous-details .hg-link-button { min-height:40px; }
.hg-settings-check { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:10px; padding:4px 0; }
.hg-settings-check input { width:18px; height:18px; margin:2px 0 0; accent-color:var(--hg-accent); }
.hg-settings-check label { display:grid; gap:2px; cursor:pointer; }
.hg-settings-check label strong { font-size:14px; }
.hg-settings-check label span { color:var(--hg-muted); font-size:12px; font-weight:400; line-height:1.5; }
.hg-settings-check .errorlist { grid-column:2; }
.hg-settings .errorlist { list-style:none; margin:0; padding:0; color:var(--hg-red); font-size:13px; font-weight:650; }

.hg-roster-form { display:grid; gap:18px; margin:0; padding:24px; }
.hg-roster-form .hg-settings-fields { gap:14px; }

/* Invitation ready, join, and authentication screens share household theme tokens. */
.hg-invitation-link { max-width:650px; margin:24px 0; padding:20px; border:1px solid var(--hg-line-strong); border-radius:16px; background:var(--hg-accent-soft); }
.hg-invitation-link label { display:block; margin-bottom:12px; font-weight:700; }
.hg-invitation-link input { width:100%; min-height:48px; margin-bottom:12px; padding:12px 14px; border:1px solid var(--hg-line-strong); border-radius:12px; background:var(--hg-surface); color:var(--hg-ink); font:inherit; font-size:12px; }
.hg-invitation-link p { color:var(--hg-ink-2); font-size:12px; line-height:1.5; }
.hg-join { max-width:620px; margin:72px auto 120px; text-align:center; }
.hg-join h1 { margin:16px 0 24px; font-size:clamp(32px,5vw,52px); line-height:1.1; letter-spacing:-.045em; }
.hg-join > p:not(.hg-eyebrow) { margin:16px 0; color:var(--hg-muted); font-size:16px; line-height:1.6; }
.hg-join form { margin:24px auto; }
.hg-join-mark { margin-bottom:24px; color:var(--hg-accent); font-size:54px; }
.hg-invite-address { font-weight:650; }
.hg-auth { max-width:540px; margin:48px auto 80px; text-align:center; }
.hg-auth h1 { margin:22px 0; font-size:clamp(44px,7vw,68px); line-height:1.03; letter-spacing:-.055em; }
.hg-auth-lede { max-width:440px; margin:0 auto; color:var(--hg-muted); font-size:18px; line-height:1.6; }
.hg-auth-actions { max-width:360px; margin:36px auto; }
.hg-auth-google { display:flex; justify-content:space-between; width:100%; min-height:54px; }
.hg-password-login { margin-top:20px; color:var(--hg-muted); font-size:13px; }
.hg-password-login > summary { min-height:44px; color:var(--hg-ink-2); line-height:44px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.hg-auth-form { display:grid; gap:18px; margin-top:20px; text-align:left; }
.hg-auth-form input { width:100%; min-height:48px; padding:12px 14px; border:1px solid var(--hg-line-strong); border-radius:12px; background:var(--hg-surface); color:var(--hg-ink); font:inherit; }
.hg-auth-form label { display:block; margin-bottom:8px; font-size:13px; font-weight:650; }
.hg-auth-form a { color:inherit; font-size:13px; text-align:center; }
.hg-auth-invite { color:var(--hg-muted); font-size:12px; line-height:1.8; }
.hg-auth .errorlist { color:var(--hg-red); font-size:13px; text-align:left; }
.hg-sign-in { margin-left:0; }
.hg-shell .hg-auth-google { border-color:var(--hg-line-strong); background:var(--hg-surface); color:var(--hg-ink); }
.hg-shell .hg-auth-google:hover { background:var(--hg-surface-3); }
.hg-auth-unavailable { padding:12px; border-radius:8px; background:var(--hg-surface-2); color:var(--hg-muted); font-size:13px; }

@media (max-width:720px) {
  .hg-settings { padding-top:0; }
  .hg-settings-heading { margin:14px 0 22px; }
  .hg-settings h1 { font-size:38px; }
  .hg-settings .hg-subtitle { font-size:14px; }
  .hg-settings-tabs { margin-left:-16px; width:calc(100% + 32px); padding:0 4px; }
  .hg-settings-tabs a { padding:0 12px; }
  .hg-settings-tabs a::after { left:12px; right:12px; }
  .hg-settings-panel { padding-top:30px; }
  .hg-panel-heading { align-items:flex-start; flex-direction:column; gap:18px; }
  .hg-panel-heading .hg-btn { width:100%; }
  .hg-person-row, .hg-member-row { align-items:flex-start; }
  .hg-person-row { display:grid; grid-template-columns:auto minmax(0,1fr); }
  .hg-person-row > form { grid-column:2; }
  .hg-person-row > form .hg-text-button { margin-left:-10px; }
  .hg-invite-form { grid-template-columns:1fr; }
  .hg-invite-form .hg-btn, .hg-settings-form-actions .hg-btn { width:100%; }
  .hg-settings-form-actions { justify-content:stretch; }
  .hg-settings-empty { align-items:flex-start; flex-direction:column; }
  .hg-auth { margin:32px auto 56px; }
  .hg-join { margin:40px auto 70px; }
}
