.family-page { background: #f6f0e4; }
.family-shell { width: min(100% - 28px, 760px); margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom)); }
.family-header, .family-hero, .family-week { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.family-header { margin-bottom: 12px; min-height: 44px; }
.family-brand { color: #244c3a; font-weight: 800; text-decoration: none; }
.family-hero { padding: clamp(16px, 5vw, 32px); background: #e0ebdf; color: #244c3a; border: 1px solid #c4d6c3; border-radius: 20px; flex-wrap: wrap; }
.family-hero h1 { font-size: clamp(1.55rem, 6vw, 2.3rem); margin: 0 0 5px; }
.family-hero p { margin: 0; }
.family-stars { color: #554014; background: #f8e5b1; padding: 8px 12px; border-radius: 12px; font-weight: 750; }
.family-tabs { display: flex; gap: 6px; margin-bottom: 12px; padding: 4px; background: #e9e4d8; border-radius: 14px; }
.family-tabs button { flex: 1; padding: 8px; min-height: 44px; border: 0; color: #273f34; background: transparent; border-radius: 10px; font: inherit; font-weight: 700; }
.family-tabs button[aria-pressed="true"] { background: #244c3a; color: #fff; }
.family-panel, .family-auth, .family-dialog { padding: clamp(14px, 4vw, 24px); }
.family-panel h2, .family-dialog h2 { margin: 0; font-size: 1.15rem; }
.family-auth h2 { margin: 0 0 12px; }
.family-panel h3 { margin: 14px 0 7px; font-size: 0.96rem; }
.family-list, .family-form { display: grid; gap: 8px; }
.family-form { margin-top: 10px; }
.family-form label { display: grid; min-width: 0; gap: 5px; font-weight: 650; }
.family-form :is(input, select), .family-item select { font: inherit; min-width: 0; width: 100%; min-height: 44px; border: 1px solid #bbb6a8; border-radius: 10px; padding: 7px 9px; background: #fffdf7; color: #24372d; }
.family-form button, .family-item button, .family-week button, .family-header button { min-height: 44px; }
.family-week { margin: 10px 0; }
.family-week button { min-width: 44px; font-size: 1.25rem; }
.family-item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid #ded8c9; border-radius: 12px; background: #fffdf8; }
.family-item-copy { display: grid; min-width: min(100%, 12rem); flex: 1; gap: 4px; overflow-wrap: anywhere; }
.family-item-copy small, .family-empty { color: #575b4e; }
.family-item-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.family-item-actions select { width: auto; }
.family-day + .family-day { border-top: 1px solid #ded8c9; }
.family-day .family-item { margin: 5px 0; }
.family-status { color: #754927; margin: 8px 0; font-size: .9rem; }
.family-status:empty { min-height: 0; margin: 0 0 10px; }
.family-empty { margin: 7px 0; }
.family-dialog { width: min(calc(100% - 22px), 480px); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid #ded8c9; border-radius: 18px; background: #fffdf7; color: #24372d; }
.family-dialog::backdrop { background: #1c3027a3; }
.family-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.family-days { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; padding: 4px; border: 0; }
.family-days label { flex: 1 0 33px; justify-items: center; align-content: center; border: 1px solid #ded8c9; border-radius: 8px; min-height: 46px; }
.family-days input { width: 17px; min-height: 17px; margin: 0; }
.family-page :focus-visible { outline: 3px solid #376747; outline-offset: 2px; }
.family-page [hidden] { display: none !important; }
