.household-invitation-method {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #eadfce;
}

/* Branded Guest Builder masthead */
.mast-inner {
  min-height: 150px;
  padding-block: 10px;
}

.brand-logo {
  display: block;
  width: clamp(310px, 34vw, 490px);
  height: auto;
  max-height: 128px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 760px) {
  .mast-inner {
    min-height: 118px;
  }

  .brand-logo {
    width: min(82vw, 390px);
    max-height: 102px;
  }
}

.household-invitation-method > span {
  color: #53677c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.household-invitation-method small {
  color: var(--muted);
  font-size: 11px;
}

.household-method-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.household-method-button {
  min-height: 36px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.household-method-button.selected {
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--gold);
}

@media (max-width: 720px) {
  .household-invitation-method { grid-template-columns: 1fr; }
  .household-method-buttons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .household-method-buttons { grid-template-columns: 1fr; }
}

/* Keep invitation-status editing inside the opened household. */
.house:not(.open) .decision {
  display: none;
}

.house-body > .household-status-controls {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid #e4d8c7;
  border-radius: 10px;
  background: #fbf8f2;
}

.house-body > .household-status-controls .priority-buttons,
.house-body > .household-status-controls .guest-decision {
  width: 100%;
  min-width: 0;
}

.invitation-plan-note {
  margin: 0;
  padding: 9px 18px;
  border-bottom: 1px solid #e9dece;
  background: #fffaf0;
  color: var(--muted);
  font-size: 12px;
}

.more-menu {
  position: relative;
}

.more-menu > summary {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  border: 1px solid #d7cec1;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  list-style: none;
}

.more-menu > summary::-webkit-details-marker {
  display: none;
}

.more-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 175px;
  padding: 8px;
  border: 1px solid #d7cec1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(1, 19, 45, .14);
}

.more-menu-panel .danger-link {
  width: 100%;
  padding: 8px;
  text-align: left;
}

/* Compact household card layout */
.households {
  gap: 9px;
}

.house-head {
  grid-template-columns: minmax(210px, 1fr) 390px 140px;
  grid-template-rows: auto auto auto;
  gap: 6px 10px;
  padding: 11px 14px;
}

.house-head > div:first-child {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.house-title {
  font-size: 18px;
  line-height: 1.05;
}

.house-meta {
  line-height: 1.35;
}

.house-head .count-badge {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  padding: 5px 8px;
}

.house-head .decision {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  gap: 5px;
  width: 390px;
  max-width: 390px;
}

.decision .priority-buttons,
.decision .guest-decision {
  width: 100%;
  min-width: 0;
  gap: 5px;
}

.priority-button,
.decision-button {
  min-height: 34px;
  padding: 5px 7px;
  white-space: nowrap;
}

.house-head > .toggle {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  width: 140px;
  min-height: 36px;
  padding: 6px 8px;
}

.household-invitation-method {
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: 135px minmax(360px, 532px) 1fr;
  gap: 8px;
  padding-top: 9px;
}

.household-method-buttons {
  gap: 5px;
}

.household-method-button {
  min-height: 34px;
  padding: 5px 7px;
}

/* Household-specific delivery is edited only inside an open household. */
.house-body > .household-invitation-method {
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: 135px minmax(280px, 532px) 1fr;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #e4d8c7;
  border-radius: 10px;
  background: #fbf8f2;
}

@media (max-width: 720px) {
  .house-body > .household-invitation-method {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .house-head {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
  }

  .house-head > div:first-child,
  .house-head .count-badge,
  .house-head .decision,
  .house-head > .toggle,
  .household-invitation-method {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .house-head .decision,
  .house-head > .toggle {
    width: 100%;
    max-width: none;
  }

  .household-invitation-method {
    grid-template-columns: 1fr;
  }
}

/* Unified household choice states: navy until chosen, gold when active. */
.priority-button,
.decision-button,
.household-method-button {
  border-color: var(--gold);
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}

.priority-button:hover,
.decision-button:hover,
.household-method-button:hover {
  background: var(--navy2);
}

.priority-button.selected,
.house.must .priority-button.selected,
.decision-button.confirmed.selected,
.decision-button.undecided.selected,
.decision-button.removed.selected,
.household-method-button.selected {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(1, 19, 45, .15);
}

/* In-app instructions */
.intro-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.help-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
}

.help-button:hover,
.help-button:focus-visible {
  background: var(--navy2);
}

.help-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  padding: 0;
  border: 2px solid var(--gold);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(1, 19, 45, .32);
}

.help-dialog::backdrop {
  background: rgba(1, 19, 45, .68);
  backdrop-filter: blur(3px);
}

.help-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(88vh, 920px);
}

.help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #d7c69e;
  background: linear-gradient(135deg, #fffdf9, #fff5dc);
}

.help-header h2 {
  margin: 4px 0 5px;
  color: var(--navy);
  font: 700 30px/1.1 Georgia, serif;
}

.help-header p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
}

.help-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 27px;
  line-height: 1;
}

.help-content {
  overflow-y: auto;
  padding: 22px 24px;
  overscroll-behavior: contain;
}

.help-content section {
  padding: 15px 0;
  border-bottom: 1px solid #e7ddce;
}

.help-content section:first-child {
  padding-top: 0;
}

.help-content section:last-child {
  border-bottom: 0;
}

.help-content h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font: 700 20px/1.2 Georgia, serif;
}

.help-content p,
.help-content li {
  font-size: 15px;
  line-height: 1.55;
}

.help-content p {
  margin: 0;
}

.help-content ul,
.help-content ol {
  margin: 7px 0 0;
  padding-left: 23px;
}

.help-start,
.help-note {
  margin-bottom: 5px;
  padding: 16px !important;
  border: 1px solid #ddc27f !important;
  border-radius: 12px;
  background: #fff8e8;
}

.help-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid #d7c69e;
  background: #f7f1e8;
  color: var(--muted);
  font-size: 13px;
}

body:has(.help-dialog[open]) {
  overflow: hidden;
}

@media (max-width: 760px) {
  .intro-actions {
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 14px;
  }

  .help-dialog {
    width: calc(100vw - 18px);
    max-height: 94vh;
  }

  .help-shell {
    max-height: 94vh;
  }

  .help-header,
  .help-content,
  .help-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .help-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .intro-actions {
    display: grid;
  }

  .help-button {
    width: 100%;
  }

  .help-header h2 {
    font-size: 25px;
  }
}
.wedding-profile{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:18px 0;padding:20px 24px;border:1px solid #c89b3c;border-left:7px solid #c89b3c;border-radius:16px;background:linear-gradient(105deg,#fff 0%,#fffaf0 100%);box-shadow:0 10px 28px rgba(1,19,45,.07)}
.wedding-profile-copy h2{margin:3px 0 4px;font-size:clamp(1.35rem,2.3vw,1.8rem);line-height:1.1}.wedding-profile-copy p{margin:2px 0;color:#52647b}.wedding-profile-copy .wedding-deadline{margin-top:7px;color:#8b5b00;font-weight:800}.wedding-profile-edit{flex:none;min-width:178px}
.wedding-profile-dialog{width:min(680px,calc(100% - 28px));padding:0;border:1px solid #c89b3c;border-radius:18px;color:#01132d;box-shadow:0 26px 80px rgba(1,19,45,.35)}.wedding-profile-dialog::backdrop{background:rgba(1,19,45,.66);backdrop-filter:blur(2px)}.wedding-profile-form header{display:flex;justify-content:space-between;gap:20px;padding:24px 26px 18px;background:#f8f5ef;border-bottom:1px solid #eadfc9}.wedding-profile-form header h2{margin:3px 0;font-size:1.65rem}.wedding-profile-form header p{margin:0;color:#607086}.wedding-profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:24px 26px}.wedding-profile-fields label{font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.035em;color:#334b69}.wedding-profile-fields label span{font-weight:600;text-transform:none}.wedding-profile-fields input{width:100%;margin-top:6px}.wedding-profile-fields .wide{grid-column:1/-1}.wedding-profile-form footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid #eadfc9;background:#fffaf0}
@media(max-width:650px){.wedding-profile{align-items:flex-start;flex-direction:column;padding:18px}.wedding-profile-edit{width:100%}.wedding-profile-fields{grid-template-columns:1fr;padding:20px}.wedding-profile-fields .wide{grid-column:auto}.wedding-profile-form footer{padding:16px 20px}.wedding-profile-form footer .btn{flex:1}}
