﻿[data-family-entry][hidden] {
    display: none !important;
}
.family-entry,
.family-secondary,
.family-primary {
    font:
        600 15px/1.4 'Rubik',
        sans-serif;
    cursor: pointer;
    border-radius: 20px;
    padding: 11px 16px;
}
.family-entry,
.family-secondary {
    color: #483c72;
    background: #fff;
    border: 1px solid #d9d0e9;
}
.family-entry {
    margin: 8px 0 14px;
}
#screen-family {
    padding-bottom: 24px;
}
.family-pilot {
    color: #696079;
    font:
        500 13px/1.45 'Manrope',
        sans-serif;
    margin: 0 0 10px;
}
.family-agenda, .family-agenda-profile, .family-agenda-payment { display: grid; gap: 10px; }
.family-agenda-heading { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.family-agenda .family-card, .family-agenda-profile .family-card { gap: 8px; padding: 16px; border-radius: 18px; min-width: 0; overflow-wrap: anywhere; }
.family-agenda .family-card h3, .family-agenda-profile .family-card h3 { font-size: 18px; }
.family-agenda-badge { border-radius: 20px; background: #fcf0d8; color: #77530e; padding: 3px 9px; font: 600 12px/1.45 'Manrope', sans-serif; }
.family-agenda-badge.confirmed { background: #e8f4ec; color: #2e6544; }
.family-agenda .family-card > p, .family-agenda-payment p, .family-call-link { font: 500 14px/1.45 'Manrope', sans-serif; color: #625b66; }
.family-agenda-payment, .family-agenda-payment-state { border-top: 1px solid #ebe6ef; padding-top: 10px; margin-top: 3px; }
.family-agenda-payment-state { color: #356447 !important; }
.family-pending-profile { position: relative; }
.family-pending-profile > :is(h3,strong) { padding-right: 58px; }
.family-pending-profile > p { clear: both; padding-top: 8px; }
.family-call-mascot { position: absolute; width: 58px; height: 68px; right: 14px; top: 12px; object-fit: contain; }
.family-call-link a { background: #b5acee; color: #282039; border: none; }
.family-agenda-tabs { display: flex; gap: 3px; padding: 4px; border-radius: 16px; background: #eeeaf5; overflow-x: auto; }
.family-agenda-tabs button { flex: 1 0 max-content; max-width: 85%; white-space: normal; overflow-wrap: anywhere; border: 0; border-radius: 12px; background: transparent; color: #5a5361; min-height: 44px; padding: 7px 12px; font: 600 14px/1.4 'Manrope', sans-serif; }
.family-agenda-tabs [aria-pressed=true] { background: #fff; color: #514475; }
.family-agenda-link { background: transparent; border: 0; min-height: 44px; justify-self: start; padding: 5px 0; text-align: left; color: #57457b; font: 600 15px/1.4 'Manrope', sans-serif; cursor: pointer; }
#familyContent {
    max-width: 540px;
    margin: auto;
    display: grid;
    gap: 12px;
    text-align: left;
}
#familyContent h2,
#familyContent h3 {
    font-family: 'Rubik', sans-serif;
    line-height: 1.23;
    margin: 0;
}
#familyContent h2 {
    font-size: clamp(23px, 5vw, 30px);
}
.family-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border: 1px solid #dfd6eb;
    border-radius: 22px;
}
.family-card p,
#familyContent > p {
    font:
        400 15px/1.5 'Manrope',
        sans-serif;
    color: #4d4853;
    margin: 0;
}
.family-card details > * + * {
    margin-top: 12px;
}
.family-card form,
.family-card label {
    display: grid;
    gap: 8px;
    color: #332f3c;
}
.family-card form {
    gap: 14px;
}
.family-card input,
.family-card select {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d9d0e9;
    background: #fffaf3;
    color: #261e31;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
}
.family-card a,
.family-choices button {
    text-align: center;
    text-decoration: none;
}
.family-card summary {
    color: #51416f;
    cursor: pointer;
    font-weight: 600;
}
.family-primary {
    color: #282039;
    background: #b5acee;
    border: 0;
}
.family-primary:disabled,
.family-secondary:disabled {
    opacity: 0.55;
}
.family-portrait {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #fffaf3;
    border-radius: 14px;
}
.family-error {
    color: #a32b35 !important;
}
.family-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.family-choices:empty {
    display: none;
}
.family-invite { padding-block: 12px 24px; }
.family-invite .family-invite-scene {
    --scene-aspect: 1.03;
    --scene-y: 50%;
    object-fit: contain;
    transform-origin: center bottom;
    transition: transform 120ms ease-out;
}
.family-invite :is(h2, p) { margin: 0; text-wrap: balance; }
.family-invite .onb-button { margin-top: 4px; }
.family-invite-back { background: transparent; border: 0; min-height: 44px; cursor: pointer; }

.family-request-hero .family-verified-scene {
    --scene-aspect: 1.03;
    --scene-y: 50%;
    object-fit: contain;
}
.family-request-hero h2 { text-wrap: balance; }
.family-request-card > h3 { color: #262626; }
.family-request-card > .family-request-format { color: #62568d; font-size: 14px; }
.family-request-card > strong { margin-top: 4px; font-family: 'Rubik', sans-serif; }
.family-request-card details { border-top: 1px solid #e8e2f1; }
:is(.family-request-card details, .pm-disclosure) > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    gap: 12px;
    list-style: none;
    cursor: pointer;
}
:is(.family-request-card details, .pm-disclosure) > summary::-webkit-details-marker { display: none; }
:is(.family-request-card details, .pm-disclosure) > summary::after,
#familyHomeLink.family-home-card::after {
    content: '';
    width: 8px;
    height: 8px;
    flex: none;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
:is(.family-request-card details, .pm-disclosure) > summary::after { color: #82789c; }
:is(.family-request-card details, .pm-disclosure)[open] > summary::after { transform: rotate(225deg); }
:is(.family-request-card details, .pm-disclosure) > summary:focus-visible { outline: 2px solid #7770c6; outline-offset: 2px; border-radius: 6px; }
.family-request-actions { display: grid; justify-items: center; }
.family-request-actions button { min-height: 44px; }
.family-request-actions button:first-child { width: 100%; margin-bottom: 4px; }
.family-request-actions button + button { border: 0; background: transparent; font-weight: 500; }
#familyHomeLink.family-home-card:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 12px auto;
    padding: 10px 16px;
    border: 1px solid #d7cfed;
    border-radius: 18px;
    background: #f3effb;
    color: #423665;
    font: 500 15px/1.35 'Rubik', sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
#familyHomeLink.family-home-card::after { transform: rotate(-45deg); }
.family-home-card img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.family-home-copy { min-width: 0; flex: 1; display: grid; gap: 2px; overflow-wrap: anywhere; }
.family-home-copy > span { color: #655d73; font: 400 13px/1.4 'Manrope', sans-serif; }
