.hh-passport-detail a[href^="tel:"]{color:var(--olive);text-decoration:underline;text-underline-offset:3px}
.hh-passport-detail .hh-history-line button{text-align:left}
/* FOR’U Household presentation — editorial, paper-led, and deliberately scoped. */

/* Collection index */
#homeGroup.active-page #assets.active-page .hh-index {
  --hh-rule: rgba(63, 77, 61, .24);
  --hh-soft-rule: rgba(63, 77, 61, .14);
  --hh-tint: #f0eee7;
  min-width: 0;
  padding: 0 0 44px;
  color: var(--ink);
  font-family: var(--sans);
}

#homeGroup.active-page #assets.active-page .hh-section {
  min-width: 0;
  margin: 0 0 58px;
}

#homeGroup.active-page #assets.active-page .hh-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--hh-rule);
}

#homeGroup.active-page #assets.active-page .hh-section-heading h2.hh-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font: 500 26px/1.08 var(--serif);
  letter-spacing: -.025em;
}

#homeGroup.active-page #assets.active-page .hh-count {
  color: var(--muted);
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0;
  white-space: nowrap;
}

#homeGroup.active-page #assets.active-page .hh-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 14px;
  min-width: 0;
}

#homeGroup.active-page #assets.active-page .hh-actions a,
#homeGroup.active-page #assets.active-page .hh-actions button,
#homeGroup.active-page #assets.active-page .hh-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font: 500 14px/1.35 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

#homeGroup.active-page #assets.active-page .hh-actions a:hover,
#homeGroup.active-page #assets.active-page .hh-actions button:hover,
#homeGroup.active-page #assets.active-page .hh-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#homeGroup.active-page #assets.active-page .hh-passports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  min-width: 0;
  margin: 16px 0 0;
}

#homeGroup.active-page #assets.active-page button.hh-passport {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 112px;
  padding: 15px 17px;
  border: 1px solid rgba(63, 77, 61, .18);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

#homeGroup.active-page #assets.active-page button.hh-passport:hover {
  border-color: rgba(63, 77, 61, .42);
  background: #fffdf8;
  transform: translateY(-1px);
}

#homeGroup.active-page #assets.active-page .hh-photo {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #e9e6dd;
  color: var(--moss-dark);
  object-fit: cover;
}

#homeGroup.active-page #assets.active-page .hh-photo svg {
  display: block;
  width: 100%;
  height: 100%;
}

#homeGroup.active-page #assets.active-page .hh-passport-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

#homeGroup.active-page #assets.active-page .hh-name {
  max-width: 100%;
  color: var(--ink);
  font: 500 18px/1.2 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page .hh-model {
  max-width: 100%;
  color: var(--muted);
  font: 400 14px/1.35 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page .hh-care-line {
  max-width: 100%;
  margin-top: 2px;
  color: var(--moss-dark);
  font: 400 14px/1.35 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page .hh-overdue {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(113, 59, 53, .1);
  color: var(--oxblood);
  font: 500 11px/1.3 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page .hh-arrow {
  justify-self: end;
  color: var(--moss-dark);
  font: 400 17px/1 var(--sans);
  transition: transform .18s ease;
}

#homeGroup.active-page #assets.active-page .hh-passport:hover .hh-arrow {
  transform: translateX(3px);
}

#homeGroup.active-page #assets.active-page .hh-section-body {
  min-width: 0;
  padding-top: 11px;
}

/* Rendered legacy collection modules keep their controls and rows; only their
   redundant inner heading is suppressed beneath the new Household heading. */
#homeGroup.active-page #assets.active-page .hh-section-body .section-title {
  display: none;
}

#homeGroup.active-page #assets.active-page .hh-section-body > .compact-section {
  margin: 0;
}

#homeGroup.active-page #assets.active-page .hh-section-body :is(.room-space-card,.project-card,.household-document-card) {
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  padding:14px 0;
}
#homeGroup.active-page #assets.active-page .hh-section-body :is(.room-space-card,.project-card,.household-document-card) strong,
#homeGroup.active-page #assets.active-page .hh-section-body .household-memory-list .calm-row-title {
  font:400 17px/1.4 var(--sans);
}
#homeGroup.active-page #assets.active-page .hh-section-body :is(.room-space-card-copy > span,.project-card > span > span,.household-document-copy > p) {
  font:400 14px/1.4 var(--sans);
  color:var(--muted);
}

#homeGroup.active-page #assets.active-page .hh-ready {
  margin: 0 0 58px;
}

#homeGroup.active-page #assets.active-page .hh-ready h2 {
  margin: 0;
  color: var(--ink);
  font: 500 26px/1.1 var(--serif);
  letter-spacing: -.025em;
}

#homeGroup.active-page #assets.active-page .hh-empty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--hh-soft-rule);
}

#homeGroup.active-page #assets.active-page .hh-empty-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#homeGroup.active-page #assets.active-page .hh-empty-copy strong {
  color: var(--ink);
  font: 500 17px/1.3 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page .hh-empty-copy p {
  margin: 0;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page button.hh-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(63, 77, 61, .24);
  border-radius: 999px;
  background: transparent;
  color: var(--moss-dark);
  font: 500 13px/1.25 var(--sans);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

#homeGroup.active-page #assets.active-page button.hh-empty-action:hover {
  border-color: var(--moss-dark);
  background: var(--moss-dark);
  color: var(--paper);
}

#homeGroup.active-page #assets.active-page .hh-mobile-label {
  display: none;
}

/* Passport detail */
#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail {
  min-width: 0;
  color: var(--ink);
  font-family: var(--sans);
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail > .passport-surface {
  min-width: 0;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .passport-heading {
  padding: 7px 0 22px;
  border-bottom: 1px solid var(--line);
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-identity .hh-photo {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  border-radius: 10px;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-identity-copy {
  min-width: 0;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .hh-eyebrow,
#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail h2#detailTitle {
  margin: 0;
  color: var(--ink);
  font: 500 38px/1.02 var(--serif);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .passport-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .75fr);
  align-items: start;
  gap: 28px;
  padding-top: 23px;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .passport-primary,
#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .passport-side {
  display: grid;
  gap: 25px;
  min-width: 0;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .passport-side {
  padding: 19px;
  border-radius: 12px;
  background: var(--hh-tint, #f0eee7);
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail section {
  min-width: 0;
  margin: 0;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font: 500 22px/1.14 var(--serif);
  letter-spacing: -.015em;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-file-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 13px;
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

#homeGroup.active-page #assets.active-page #detailContent .hh-file-title {
  color: var(--ink);
  font: 500 13px/1.4 var(--sans);
  overflow-wrap: anywhere;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-file-added {
  color: var(--muted);
  font: 400 11px/1.35 var(--sans);
}

#homeGroup.active-page #assets.active-page #detailContent .passport-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px dashed rgba(63, 77, 61, .45);
  border-radius: 9px;
  background: transparent;
  color: var(--moss-dark);
  font: 500 13px/1.4 var(--sans);
  cursor: pointer;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-care-card {
  padding: 15px;
  border: 1px solid rgba(63, 77, 61, .17);
  border-radius: 10px;
  background: var(--paper);
}

#homeGroup.active-page #assets.active-page #detailContent .hh-care-status {
  color: var(--ink);
  font: 500 14px/1.4 var(--sans);
}

#homeGroup.active-page #assets.active-page #detailContent .hh-care-date {
  margin-top: 5px;
  color: var(--muted);
  font: 400 12px/1.4 var(--sans);
}

#homeGroup.active-page #assets.active-page #detailContent .hh-care-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

#homeGroup.active-page #assets.active-page #detailContent .hh-suggestion {
  padding: 15px;
  border-left: 2px solid var(--moss);
  background: rgba(221, 225, 214, .42);
}

#homeGroup.active-page #assets.active-page #detailContent .passport-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

#homeGroup.active-page #assets.active-page #detailContent .passport-footer > .card-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

#homeGroup.active-page #assets.active-page #detailContent .passport-footer .hh-delete {
  flex: 0 0 auto;
  color: var(--oxblood);
}

/* Only forms explicitly owned by Household receive the paper-sheet treatment. */
#detailModal:has(#detailContent.household-popup) .modal-card {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(32, 35, 31, .15);
}

#detailModal:has(#detailContent.household-popup) #detailContent {
  min-width: 0;
  padding-top: 3px;
  color: var(--ink);
  font-family: var(--sans);
}

#detailModal:has(#detailContent.household-popup) .modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

#detailModal:has(#detailContent.household-popup) #detailContent > .eyebrow {
  margin: 0 48px 8px 0;
  color: var(--muted);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

#detailModal:has(#detailContent.household-popup) #detailContent > h2#detailTitle {
  margin: 0 42px 28px 0;
  color: var(--ink);
  font: 500 30px/1.08 var(--serif);
  letter-spacing: -.02em;
}

#detailModal:has(#detailContent.household-popup) #detailContent > .item-copy {
  margin: -14px 0 22px;
  color: var(--muted);
  font: 400 14px/1.5 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

#detailModal:has(#detailContent.household-popup) #detailContent form > .edit-field,
#detailModal:has(#detailContent.household-popup) #detailContent form .edit-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font: 500 14px/1.35 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent .hh-optional {
  color: var(--muted);
  font: 400 12px/1.35 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent form input:not([type="checkbox"]):not([type="radio"]),
#detailModal:has(#detailContent.household-popup) #detailContent form textarea,
#detailModal:has(#detailContent.household-popup) #detailContent form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d5d1c7;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  font: 400 14px/1.45 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent form textarea {
  min-height: 104px;
  resize: vertical;
}

#detailModal:has(#detailContent.household-popup) #detailContent form input[type="file"] {
  height: auto;
  min-height: 48px;
  padding: 9px;
}

#detailModal:has(#detailContent.household-popup) #detailContent form input:focus-visible,
#detailModal:has(#detailContent.household-popup) #detailContent form textarea:focus-visible,
#detailModal:has(#detailContent.household-popup) #detailContent form select:focus-visible,
#detailModal:has(#detailContent.household-popup) #detailContent form button:focus-visible,
#homeGroup.active-page #assets.active-page .hh-index :focus-visible,
#homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail :focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(86, 100, 84, .2);
}

#detailModal:has(#detailContent.household-popup) #detailContent details {
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

#detailModal:has(#detailContent.household-popup) #detailContent details > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 25px 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 14px/1.4 var(--sans);
  cursor: pointer;
  list-style: none;
}

#detailModal:has(#detailContent.household-popup) #detailContent details > summary::-webkit-details-marker {
  display: none;
}

#detailModal:has(#detailContent.household-popup) #detailContent details > summary::after {
  position: absolute;
  right: 3px;
  content: "+";
  color: var(--moss-dark);
  font: 400 20px/1 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent details[open] > summary::after {
  content: "−";
}

#detailModal:has(#detailContent.household-popup) #detailContent details > :not(summary) {
  margin-top: 10px;
}

#detailModal:has(#detailContent.household-popup) #detailContent details > .edit-field + .edit-field {
  margin-top: 17px;
}

#detailModal:has(#detailContent.household-popup) #detailContent form small {
  display: block;
  color: var(--muted);
  font: 400 12px/1.45 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent form .card-actions,
#detailModal:has(#detailContent.household-popup) #detailContent form .hh-popup-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#detailModal:has(#detailContent.household-popup) #detailContent form .card-actions > button,
#detailModal:has(#detailContent.household-popup) #detailContent form .hh-popup-footer > button {
  min-height: 44px;
}

#detailModal:has(#detailContent.household-popup) #detailContent form .card-actions > button[data-action$="-delete"] {
  margin-right: auto;
  color: var(--oxblood);
  order: 0;
}

#detailModal:has(#detailContent.household-popup) #detailContent form .card-actions > button[data-action$="-close"],
#detailModal:has(#detailContent.household-popup) #detailContent form .card-actions > button[data-action="detail-close"],
#detailModal:has(#detailContent.household-popup) #detailContent form .hh-popup-footer {
  order: 1;
}

#detailModal:has(#detailContent.household-popup) #detailContent form .card-actions > button[type="submit"],
#detailModal:has(#detailContent.household-popup) #detailContent form .card-actions > .primary-btn {
  order: 2;
}

#detailModal:has(#detailContent.household-popup) #detailContent form .primary-btn,
#detailModal:has(#detailContent.household-popup) #detailContent form button[type="submit"] {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--moss-dark);
  border-radius: 999px;
  background: var(--moss-dark);
  color: var(--paper);
  font: 500 13px/1.3 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent form .card-btn:not([data-action$="-delete"]),
#detailModal:has(#detailContent.household-popup) #detailContent form .hh-popup-footer > button {
  padding: 9px 7px;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font: 500 13px/1.3 var(--sans);
}

/* Household documents have a direct submit button instead of a card-actions
   wrapper. Lay out that unchanged button beside the injected Cancel control. */
#detailModal:has(#detailContent.household-popup) #detailContent form#householdDocumentForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

#detailModal:has(#detailContent.household-popup) #detailContent form#householdDocumentForm > :not(button[type="submit"]):not(.hh-popup-footer) {
  grid-column: 1 / -1;
}

#detailModal:has(#detailContent.household-popup) #detailContent form#householdDocumentForm > .hh-popup-footer {
  grid-column: 2;
  grid-row: auto;
  width: auto;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  order: 1;
}

#detailModal:has(#detailContent.household-popup) #detailContent form#householdDocumentForm > button[type="submit"] {
  grid-column: 3;
  width: max-content;
  margin: 4px 0 0;
  order: 2;
}

#detailModal:has(#detailContent.household-popup) #detailContent .room-space-error,
#detailModal:has(#detailContent.household-popup) #detailContent .project-error,
#detailModal:has(#detailContent.household-popup) #detailContent .house-guide-error,
#detailModal:has(#detailContent.household-popup) #detailContent .household-document-error {
  color: var(--oxblood);
  font: 500 13px/1.45 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent fieldset {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#detailModal:has(#detailContent.household-popup) #detailContent fieldset legend {
  padding: 0 5px;
  color: var(--ink);
  font: 500 13px/1.4 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  color: var(--ink);
  font: 400 13px/1.45 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent fieldset input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--moss-dark);
}

@media (max-width: 767px) {
  #homeGroup.active-page #assets.active-page .hh-index {
    padding-bottom: 23px;
  }

  #homeGroup.active-page #assets.active-page .hh-section {
    margin-bottom: 39px;
  }

  #homeGroup.active-page #assets.active-page .hh-section-heading {
    align-items: center;
    gap: 10px;
    padding-bottom: 11px;
  }

  #homeGroup.active-page #assets.active-page .hh-section-heading h2.hh-title {
    gap: 7px;
    font-size: 22px;
  }

  #homeGroup.active-page #assets.active-page .hh-actions {
    gap: 9px;
  }

  #homeGroup.active-page #assets.active-page .hh-actions a,
  #homeGroup.active-page #assets.active-page .hh-actions button,
  #homeGroup.active-page #assets.active-page .hh-link {
    font-size: 12px;
  }

  #homeGroup.active-page #assets.active-page .hh-passports {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 12px;
  }

  #homeGroup.active-page #assets.active-page button.hh-passport {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    min-height: 88px;
    padding: 12px;
  }

  #homeGroup.active-page #assets.active-page .hh-photo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  #homeGroup.active-page #assets.active-page .hh-name {
    font-size: 18px;
  }

  #homeGroup.active-page #assets.active-page .hh-model,
  #homeGroup.active-page #assets.active-page .hh-care-line {
    font-size: 14px;
  }

  #homeGroup.active-page #assets.active-page .hh-arrow {
    display: none;
  }

  #homeGroup.active-page #assets.active-page .hh-ready {
    margin-bottom: 39px;
  }

  #homeGroup.active-page #assets.active-page .hh-ready h2 {
    font-size: 22px;
  }

  #homeGroup.active-page #assets.active-page .hh-empty-row {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
  }

  #homeGroup.active-page #assets.active-page .hh-empty-copy strong {
    font-size: 17px;
  }

  #homeGroup.active-page #assets.active-page .hh-empty-copy p {
    font-size: 14px;
  }

  #homeGroup.active-page #assets.active-page button.hh-empty-action {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 12px;
  }

  #homeGroup.active-page #assets.active-page .hh-desktop-label {
    display: none;
  }

  #homeGroup.active-page #assets.active-page .hh-mobile-label {
    display: inline;
  }

  #homeGroup.active-page #assets.active-page #detailContent .hh-passport-identity {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 13px;
  }

  #homeGroup.active-page #assets.active-page #detailContent .hh-passport-identity .hh-photo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  #homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail h2#detailTitle {
    font-size: 32px;
  }

  #homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .passport-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  #homeGroup.active-page #assets.active-page #detailContent .hh-passport-detail .passport-side {
    padding: 15px;
  }

  #homeGroup.active-page #assets.active-page #detailContent .hh-file-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #homeGroup.active-page #assets.active-page #detailContent .passport-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #homeGroup.active-page #assets.active-page #detailContent .passport-footer > .card-actions {
    flex-basis: 100%;
  }

  #detailModal:has(#detailContent.household-popup) .modal-card {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 12px;
  }

  #detailModal:has(#detailContent.household-popup) #detailContent > h2#detailTitle {
    font-size: 30px;
    margin-bottom: 28px;
  }

  #detailModal:has(#detailContent.household-popup) #detailContent form .card-actions,
  #detailModal:has(#detailContent.household-popup) #detailContent form .hh-popup-footer {
    gap: 8px;
  }

  #detailModal:has(#detailContent.household-popup) #detailContent form#householdDocumentForm {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 6px;
  }

  #detailModal:has(#detailContent.household-popup) #detailContent form#householdDocumentForm > .hh-popup-footer {
    grid-column: 2;
  }

  #detailModal:has(#detailContent.household-popup) #detailContent form#householdDocumentForm > button[type="submit"] {
    grid-column: 3;
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #homeGroup.active-page #assets.active-page .hh-passport,
  #homeGroup.active-page #assets.active-page .hh-arrow,
  #homeGroup.active-page #assets.active-page .hh-empty-action {
    transition: none;
  }
}

/* Household memory's existing openAdd('other') capture choices share #addModal.
   The decorator adds this class only for that specific Household entry point. */
#addModal.household-popup .modal-card {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(32, 35, 31, .15);
}

#addModal.household-popup .modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

#addModal.household-popup .modal-card > .eyebrow {
  margin: 0 48px 8px 0;
  color: var(--muted);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

#addModal.household-popup #addTitle {
  margin: 0 42px 20px 0;
  color: var(--ink);
  font: 500 30px/1.08 var(--serif);
  letter-spacing: -.02em;
}

#addModal.household-popup #addContextPrompt {
  margin: -7px 0 22px;
  color: var(--muted);
  font: 400 14px/1.5 var(--sans);
}

#addModal.household-popup .add-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin: 0;
}

#addModal.household-popup .add-options .add-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid rgba(63, 77, 61, .2);
  border-radius: 9px;
  background: #fffefa;
  color: var(--ink);
  font: 500 14px/1.35 var(--sans);
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

#addModal.household-popup .add-options .add-option:hover {
  border-color: rgba(63, 77, 61, .45);
  background: var(--hh-tint, #f0eee7);
  transform: translateY(-1px);
}

#addModal.household-popup .add-options .add-option .line-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--moss-dark);
}

#addModal.household-popup :focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(86, 100, 84, .2);
}

/* An appliance Passport may be opened from a Household entry point or an
   existing retrieval surface. Its explicit detail marker scopes this treatment
   without styling any other Home or retrieval screen. */
#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail {
  min-width: 0;
  color: var(--ink);
  font-family: var(--sans);
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail > .passport-surface {
  min-width: 0;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .passport-heading {
  padding: 7px 0 22px;
  border-bottom: 1px solid var(--line);
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-identity {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-identity .hh-photo {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  border-radius: 10px;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-identity-copy {
  min-width: 0;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .hh-eyebrow,
#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail h2#detailTitle {
  margin: 0;
  color: var(--ink);
  font: 500 38px/1.02 var(--serif);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font: 400 14px/1.45 var(--sans);
  overflow-wrap: anywhere;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .passport-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .75fr);
  align-items: start;
  gap: 28px;
  padding-top: 23px;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .passport-primary,
#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .passport-side {
  display: grid;
  gap: 25px;
  min-width: 0;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .passport-side {
  padding: 19px;
  border-radius: 12px;
  background: #f0eee7;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail section {
  min-width: 0;
  margin: 0;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font: 500 22px/1.14 var(--serif);
  letter-spacing: -.015em;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-file-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 13px;
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-file-title {
  color: var(--ink);
  font: 500 13px/1.4 var(--sans);
  overflow-wrap: anywhere;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-file-added {
  color: var(--muted);
  font: 400 11px/1.35 var(--sans);
}

#detailModal:has(.hh-passport-detail) #detailContent .passport-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px dashed rgba(63, 77, 61, .45);
  border-radius: 9px;
  background: transparent;
  color: var(--moss-dark);
  font: 500 13px/1.4 var(--sans);
  cursor: pointer;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-care-card {
  padding: 15px;
  border: 1px solid rgba(63, 77, 61, .17);
  border-radius: 10px;
  background: var(--paper);
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-care-status {
  color: var(--ink);
  font: 500 14px/1.4 var(--sans);
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-care-status.hh-overdue {
  display:inline-flex;
  width:max-content;
  padding:3px 8px;
  border-radius:999px;
  color:var(--oxblood);
  background:rgba(111,50,53,.08);
  font:500 12px/1.3 var(--sans);
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-care-date {
  margin-top: 5px;
  color: var(--muted);
  font: 400 14px/1.4 var(--sans);
}

#homeGroup.active-page #assets.active-page .hh-photo > img,
#detailModal:has(.hh-passport-detail) .hh-photo > img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
#homeGroup.active-page #assets.active-page .hh-photo > img[hidden],
#detailModal:has(.hh-passport-detail) .hh-photo > img[hidden],
#homeGroup.active-page #assets.active-page .hh-photo.hh-has-photo > svg,
#detailModal:has(.hh-passport-detail) .hh-photo.hh-has-photo > svg {
  display:none;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-care-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

#detailModal:has(.hh-passport-detail) #detailContent .hh-suggestion {
  padding: 15px;
  border-left: 2px solid var(--moss);
  background: rgba(221, 225, 214, .42);
}

#detailModal:has(.hh-passport-detail) #detailContent .passport-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

#detailModal:has(.hh-passport-detail) #detailContent .passport-footer > .card-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

#detailModal:has(.hh-passport-detail) #detailContent .passport-footer .hh-delete {
  flex: 0 0 auto;
  color: var(--oxblood);
}

@media (max-width: 767px) {
  #addModal.household-popup .modal-card {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 12px;
  }

  #addModal.household-popup #addTitle {
    font-size: 30px;
    margin-bottom: 28px;
  }

  #detailModal:has(.hh-passport-detail) #detailContent .hh-passport-identity {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 13px;
  }

  #detailModal:has(.hh-passport-detail) #detailContent .hh-passport-identity .hh-photo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  #detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail h2#detailTitle {
    font-size: 38px;
  }

  #detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .passport-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  #detailModal:has(.hh-passport-detail) #detailContent .hh-passport-detail .passport-side {
    padding: 15px;
  }

  #detailModal:has(.hh-passport-detail) #detailContent .hh-file-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #detailModal:has(.hh-passport-detail) #detailContent .passport-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #detailModal:has(.hh-passport-detail) #detailContent .passport-footer > .card-actions {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #addModal.household-popup .add-options .add-option {
    transition: none;
  }
}

/* The shared foundation fixes utility inputs at 14px. Household sheets use
   the explicitly requested 16px field size without changing other forms. */
#detailModal:has(#detailContent.household-popup) #detailContent.household-popup form :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  font-size:16px !important;
}

#detailModal:has(#detailContent.household-popup) #detailContent.household-popup form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select) {
  box-sizing:border-box;
  height:48px;
  min-height:48px;
  padding:11px 12px;
  line-height:24px;
}
#detailModal:has(#detailContent.household-popup) .hh-field-label {
  display:block;
  font:500 14px/1.4 var(--sans);
}
#detailModal:has(#detailContent.household-popup) .hh-field-label .hh-optional {
  font-weight:400;
  color:var(--muted);
}
#homeGroup.active-page #assets.active-page .hh-section-description {
  margin:12px 0 18px;
  color:var(--muted);
  font:400 14px/1.4 var(--sans);
}

#detailModal:has(#detailContent.household-popup) #detailContent.household-popup form .card-actions {
  justify-content:flex-end;
}
#detailModal:has(#detailContent.household-popup) .modal-close,
#addModal.household-popup .modal-close {
  top:50px;
  right:22px;
}
#detailModal:has(#detailContent.household-popup) #detailContent.household-popup form details {
  padding:0 !important;
  margin:0 !important;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:transparent;
}
#detailModal:has(#detailContent.household-popup) #detailContent.household-popup form details > summary {
  box-sizing:border-box;
  height:52px;
  min-height:52px;
  padding:0 16px;
}
#detailModal:has(#detailContent.household-popup) #detailContent.household-popup form .card-actions > button:not([data-action$="-delete"]) {
  margin:0 !important;
}
#detailModal:has(.hh-passport-detail) .modal-card {
  border-radius:12px;
}
#detailModal:has(.hh-passport-detail) #detailContent .hh-passport-identity {
  margin:0;
  padding:24px 72px 24px 32px;
}
#detailModal:has(.hh-passport-detail) .modal-close {
  top:12px;
  right:12px;
}
#detailModal:has(.hh-passport-detail) #detailContent .hh-section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  margin-bottom:12px;
  border-bottom:1px solid var(--line);
}
#detailModal:has(.hh-passport-detail) #detailContent .hh-section-heading h3 {margin:0;}
#detailModal:has(.hh-passport-detail) #detailContent .hh-section-action {
  border:0;
  background:transparent;
  padding:8px 0 8px 8px;
  color:var(--moss-dark);
  font:500 14px/1.4 var(--sans);
  cursor:pointer;
}
#detailModal:has(.hh-passport-detail) #detailContent .passport-footer {
  justify-content:flex-start;
  padding:16px 24px;
  gap:10px;
}
#detailModal:has(.hh-passport-detail) #detailContent .passport-footer > button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-sizing:border-box;
  height:44px;
  min-height:44px;
  margin:0;
  padding:10px 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper);
  color:var(--moss-dark);
  font:500 14px/1.4 var(--sans);
  white-space:nowrap;
  cursor:pointer;
}
#detailModal:has(.hh-passport-detail) #detailContent .passport-footer > button.dark {
  color:var(--paper);
  border-color:var(--moss-dark);
  background:var(--moss-dark);
}
#detailModal:has(.hh-passport-detail) #detailContent .passport-footer > button.hh-delete {
  margin-left:auto;
  border:0;
  background:transparent;
  color:var(--oxblood);
}
#detailModal:has(.hh-passport-detail) :is(button,a,input,textarea,select):focus-visible {
  outline:0;
  box-shadow:0 0 0 3px rgba(83,103,77,.22);
}
#homeGroup.active-page #assets.active-page .hh-section-body .row-title {
  font:400 17px/1.4 var(--sans);
}
#homeGroup.active-page #assets.active-page .hh-section-body .row-copy {
  font:400 14px/1.4 var(--sans);
  color:var(--muted);
}
#homeGroup.active-page #assets.active-page .hh-guide-row-title {
  margin:14px 0 6px;
  font:400 17px/1.4 var(--sans);
}
#homeGroup.active-page #assets.active-page .hh-section-body .house-guide > p {
  font:400 14px/1.4 var(--sans);
  color:var(--muted);
}
@media(max-width:767px){
  #detailModal:has(.hh-passport-detail) #detailContent .hh-passport-identity {
    padding:24px 20px;
  }
  #detailModal:has(.hh-passport-detail) #detailContent .passport-footer {
    padding:16px;
  }
}
