/* Family category page: members are sub-categories, shown as large cards with round photos. No family photo in the header. */
body .subject-page .family-members-section{margin:6px 0 30px}
body .subject-page .family-members-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
body .subject-page .family-members-heading h2{margin:0;font-size:22px;font-weight:700;letter-spacing:-.01em;color:var(--ink,#fff)}
body .subject-page .family-members-heading p{margin:0;font-size:14px;color:var(--muted,#9aa3ad)}
body .subject-page .family-members{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:0;padding:0;border:0;overflow:visible}
body .subject-page .family-member-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0;height:auto;padding:20px 12px 18px;margin:0;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:#0e0f11;color:var(--ink,#fff);font:inherit;text-align:center;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
body .subject-page .family-member-card:hover{border-color:rgba(255,255,255,.24);background:#141518}
body .subject-page .family-member-card:focus-visible{outline:2px solid #3B9EFF;outline-offset:3px}
body .subject-page .family-member-card.active{border-color:#3B9EFF;background:rgba(59,158,255,.1);color:var(--ink,#fff);font-weight:inherit}
body .subject-page .family-member-avatar{display:grid;place-items:center;width:104px;height:104px;min-width:104px;min-height:104px;aspect-ratio:1/1;margin-bottom:8px;border-radius:50%;overflow:hidden;background:#1b1d21;box-shadow:0 0 0 3px #0e0f11,0 0 0 4px rgba(255,255,255,.14)}
body .subject-page .family-member-card.active .family-member-avatar{box-shadow:0 0 0 3px #0e0f11,0 0 0 6px #3B9EFF}
body .subject-page .family-member-avatar .face-crop.family-member-face{display:block;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;flex:none!important;aspect-ratio:1/1;border:0!important;border-radius:50%!important;margin:0!important;font-size:32px;font-weight:700;line-height:104px;text-align:center;color:#c9d0d8;text-transform:uppercase}
body .subject-page .family-member-avatar.is-glyph svg{width:52px;height:52px;fill:none;stroke:#c9d0d8;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
body .subject-page .family-member-card.active .family-member-avatar.is-glyph svg{stroke:#3B9EFF}
body .subject-page .family-member-name{font-size:18px;font-weight:700;line-height:1.2}
body .subject-page .family-member-count{font-size:14px;color:#c9d0d8}
body .subject-page .family-member-card.active .family-member-count{color:#8cc6ff}
body .subject-page .family-member-hint{font-size:12px;color:var(--muted,#8a929c)}
body .subject-page .family-list-heading{margin:0 0 14px;font-size:20px;font-weight:700;color:var(--ink,#fff)}
body.orbit-v27 .subject-page-toolbar .subject-sticky-photo.family-identity,body .subject-sticky-photo.family-identity{display:grid;place-items:center;width:36px;height:36px;min-width:36px;flex:0 0 36px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:#1b1d21;overflow:hidden}
body .subject-sticky-photo.family-identity svg{width:22px;height:22px;fill:none;stroke:#c9d0d8;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
body .subject-sticky-photo.family-identity .face-crop{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;flex:none!important;border:0!important;border-radius:50%!important;font-size:12px;line-height:36px;text-align:center}
html[data-theme="light"] body .subject-page .family-member-card{background:#fff;border-color:#dfe3e8;color:#111}
html[data-theme="light"] body .subject-page .family-member-card.active{background:#eef6ff;border-color:#3B9EFF}
html[data-theme="light"] body .subject-page .family-member-avatar{background:#eef1f4;box-shadow:0 0 0 3px #fff,0 0 0 4px #dfe3e8}
html[data-theme="light"] body .subject-page .family-member-card.active .family-member-avatar{box-shadow:0 0 0 3px #fff,0 0 0 6px #3B9EFF}
html[data-theme="light"] body .subject-page .family-member-count{color:#3d444c}
html[data-theme="light"] body .subject-page .family-member-avatar.is-glyph svg{stroke:#3d444c}
@media(max-width:720px){
 /* Phones: one swipeable row so the selected person's tasks stay on screen. */
 body .subject-page .family-members-section{margin-bottom:22px}
 body .subject-page .family-members{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;margin:0 -20px;padding:4px 20px 6px}
 body .subject-page .family-members::-webkit-scrollbar{display:none}
 body .subject-page .family-member-card{flex:0 0 128px;scroll-snap-align:start;padding:16px 8px 14px}
 body .subject-page .family-member-avatar{width:88px;height:88px;min-width:88px;min-height:88px}
 body .subject-page .family-member-avatar .face-crop.family-member-face{line-height:88px;font-size:26px}
 body .subject-page .family-member-name{font-size:16px}
 body .subject-page .family-member-hint{display:none}
 body.orbit-v26 .subject-sticky-photo.family-identity{display:grid}
}
/* Add a family member (2026-11-09): a dashed card at the end of the row, and a one-line form under it */
body .subject-page .family-member-add{border-style:dashed;background:transparent}
body .subject-page .family-member-add .family-member-avatar{background:transparent;box-shadow:0 0 0 1px rgba(255,255,255,.18)}
body .subject-page .family-add-form{display:grid;grid-template-columns:1fr auto auto;gap:8px;margin:12px 0 0}
body .subject-page .family-add-form input{min-height:44px;padding:0 14px;border-radius:12px;font:inherit;font-size:16px}
body .subject-page .family-add-form button{min-height:44px;padding:0 18px;border-radius:999px;font:inherit;font-size:15px;cursor:pointer}
@media (max-width:520px){body .subject-page .family-add-form{grid-template-columns:1fr 1fr}body .subject-page .family-add-form input{grid-column:1/-1}}
html[data-theme="light"] body .subject-page .family-member-add{background:transparent}
html[data-theme="light"] body .subject-page .family-member-add .family-member-avatar{box-shadow:0 0 0 1px #cfd5dc}
