/* Approved story-lab people and purpose disclosures, scoped to the real Creator. */
.bth-generator :is(.bth-gen-people, .bth-gen-purpose) {
    min-width: 0;
    margin: 0;
    border-bottom: 1px solid var(--bth-line);
}
.bth-generator .bth-gen-people { border-top: 1px solid var(--bth-line); }
.bth-generator :is(.bth-gen-people, .bth-gen-purpose) > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    min-height: 76px;
    padding: 14px 0;
    list-style: none;
    cursor: pointer;
}
.bth-generator :is(.bth-gen-people, .bth-gen-purpose) > summary::-webkit-details-marker { display: none; }
.bth-generator :is(.bth-gen-people, .bth-gen-purpose) > summary::marker { content: ""; }
.bth-generator .bth-gen-disclosure-copy { flex: 1; min-width: 0; }
.bth-generator .bth-gen-disclosure-copy strong {
    display: block;
    font-family: var(--bth-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.bth-generator .bth-gen-disclosure-copy small {
    display: block;
    margin-top: 3px;
    color: var(--bth-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.bth-generator .bth-gen-disclosure-chevron { flex: 0 0 18px; width: 18px; height: 18px; color: var(--bth-muted); }
.bth-generator details[open] > summary .bth-gen-disclosure-chevron { transform: rotate(180deg); }
.bth-generator :is(.bth-gen-people-body, .bth-gen-purpose-body) { min-width: 0; padding: 3px 0 18px; }
.bth-generator .bth-gen-people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
    margin-top: 10px;
}
.bth-generator .bth-gen-person {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 163px;
    padding: 0;
    border: 1px solid var(--bth-line);
    border-radius: 12px;
    background: var(--bth-surface);
    color: var(--bth-ink);
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}
.bth-generator .bth-gen-person-choice {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: center;
    flex: 1;
    gap: 6px 10px;
    width: 100%;
    min-width: 0;
    min-height: 100px;
    padding: 12px;
    border-radius: 11px 11px 0 0;
}
.bth-generator .bth-gen-person-avatar { display: block; grid-column: 1; grid-row: 1; width: 40px; height: 40px; max-width: none; }
.bth-generator .bth-gen-person-name {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.bth-generator .bth-gen-selection-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1px solid var(--bth-line-strong);
    border-radius: 50%;
    background: var(--bth-surface);
    color: var(--bth-on-plum);
}
.bth-generator .bth-gen-person-choice > .bth-gen-selection-check { grid-column: 2; grid-row: 1; align-self: start; }
.bth-generator .bth-gen-selection-check svg { display: block; width: 14px; height: 14px; opacity: 0; }
.bth-generator :is(.bth-gen-person, .bth-gen-purpose-card)[aria-pressed="true"] { border-color: var(--bth-plum); background: var(--bth-plum-soft); }
.bth-generator [aria-pressed="true"] .bth-gen-selection-check { border-color: var(--bth-plum); background: var(--bth-plum); }
.bth-generator [aria-pressed="true"] .bth-gen-selection-check svg { opacity: 1; }
.bth-generator .bth-gen-person:disabled { opacity: .5; cursor: not-allowed; }
.bth-generator .bth-gen-person-age {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 61px;
    padding: 8px 12px;
    border-top: 1px solid var(--bth-line);
    color: var(--bth-muted);
    font-size: 12px;
}
.bth-generator .bth-gen-person-age > span:first-child { white-space: nowrap; }
.bth-generator .bth-gen-person-age > span:last-child { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 62px; font-size: 13px; }
.bth-generator :is(.bth-gen-person-status, .bth-gen-sr-only) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.bth-generator .bth-gen-people-empty { display: grid; justify-items: start; gap: 12px; padding: 12px 0; }
.bth-generator .bth-gen-people-empty p { margin: 0; font-size: 13px; }
.bth-generator :is(.bth-gen-manage, .bth-gen-existing) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    max-width: 100%;
    margin-top: 11px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--bth-plum);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.bth-generator .bth-gen-manage svg { width: 17px; height: 17px; flex: 0 0 17px; }
.bth-generator :is(.bth-gen-people-hint, .bth-gen-purpose-description) { margin: 12px 0 0; color: var(--bth-muted); font-size: 13px; line-height: 1.6; }
.bth-generator .bth-gen-purpose-hint { margin: 0 0 12px; color: var(--bth-muted); font-size: 13px; line-height: 1.6; }
.bth-generator .bth-gen-purpose-choices { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bth-generator .bth-gen-purpose-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 57px;
    padding: 13px 14px;
    border: 1px solid var(--bth-line);
    border-radius: 11px;
    background: var(--bth-surface);
    color: var(--bth-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}
.bth-generator .bth-gen-purpose-icon { width: 28px; height: 28px; color: var(--bth-plum); }
.bth-generator .bth-gen-purpose-card > span { min-width: 0; overflow-wrap: anywhere; }
.bth-generator .bth-gen-existing { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; font-weight: 400; }
.bth-generator .bth-gen-existing > :last-child { font-weight: 600; }
@media (max-width: 350px) {
    .bth-generator .bth-gen-person-choice { padding-inline: 10px; }
    .bth-generator .bth-gen-person-age { padding-inline: 8px; }
    .bth-generator .bth-gen-purpose-card { gap: 9px; padding-inline: 12px; }
}
@media (hover: hover) {
    .bth-generator :is(.bth-gen-person, .bth-gen-purpose-card):hover:not(:disabled) { border-color: var(--bth-plum); }
    .bth-generator :is(.bth-gen-manage, .bth-gen-existing):hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (forced-colors: active) {
    .bth-generator .bth-gen-selection-check { border-color: ButtonText; }
    .bth-generator [aria-pressed="true"] .bth-gen-selection-check { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
}

/* Profile query feedback is distinct from an empty family, without changing the draft. */
.bth-generator .bth-gen-people-state { display: grid; justify-items: start; gap: 14px; min-width: 0; padding: 12px 0; }
.bth-generator .bth-gen-people-state p { margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.bth-generator .bth-gen-people-state p + p { margin-top: 6px; }
.bth-generator .bth-gen-people-state .bth-button-secondary { min-width: 48px; min-height: 48px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.bth-generator .bth-gen-people-state .bth-button-secondary[aria-disabled="true"] { cursor: wait; opacity: .6; }
.bth-generator .bth-gen-disclosure-copy .bth-gen-purpose-discover { margin-top: 6px; font-size: 12px; }
