/* We're Just Kidz — family account page */
.acct { padding: 24px max(16px, env(safe-area-inset-right)) 80px max(16px, env(safe-area-inset-left)); background: var(--tint-violet); min-height: 70vh; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }
.link-btn { background: none; border: 0; padding: 8px 4px; font: 800 17px var(--body); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.link-btn:hover { color: var(--violet); }
.small { padding: 8px 18px; font-size: 16px; }

.auth-card { max-width: 480px; margin: 24px auto; background: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1, .dash h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; }
.sub { color: var(--muted); }
form { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-weight: 800; font-size: 16px; margin-top: 8px; }
.opt { font-weight: 600; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input:not([type]), select {
  font: 600 18px var(--body); color: var(--ink); background: #fff; border: 2px solid #D9DCEB; border-radius: 14px; padding: 12px 14px; min-height: 50px; width: 100%;
}
input:focus, select:focus { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.help { font-size: 15px; color: var(--muted); }
.form-error { color: #B42318; font-weight: 700; font-size: 16px; min-height: 0; }
.form-error:empty, .form-ok:empty { display: none; }
.form-ok { color: #0B6E65; font-weight: 700; font-size: 16px; }
form .btn { margin-top: 10px; align-self: flex-start; cursor: pointer; font: 800 17px var(--body); }
.privacy { font-size: 14px; color: var(--muted); background: var(--tint-teal); border-radius: 14px; padding: 12px 14px; }
.switch { font-size: 16px; }
.switch a { font-weight: 800; }
fieldset { border: 0; padding: 0; margin: 0; }

.dash { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.dash-head { display: flex; flex-direction: column; gap: 6px; }
.h3 { font-family: var(--display); font-weight: 800; font-size: 26px; }
.notice { background: var(--tint-sun); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.btn-outline.small { cursor: pointer; font: 800 16px var(--body); }
.empty { color: var(--muted); background: #fff; border-radius: 20px; padding: 20px; }

.kids { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.kid { background: #fff; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; border: 4px solid transparent; min-width: 0; }
.kid.active { border-color: var(--teal); }
.kid-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kid-info { flex: 1; min-width: 0; }
.kid h3 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.kid .meta { color: var(--muted); font-size: 15px; font-weight: 600; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 26px var(--display); color: #1F2140; flex: none; }
.c-coral { background: var(--coral); } .c-sun { background: var(--sun); } .c-teal { background: var(--teal); } .c-violet { background: #A98BFF; } .c-orange { background: var(--orange); }
.now-playing { background: var(--tint-teal); color: #0B6E65; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 4px 12px; }
.kid-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.kid-actions .btn { cursor: pointer; font: 800 16px var(--body); padding: 10px 20px; }
.danger-link { color: #B42318; }
.progress-list { background: #F7F7FB; border-radius: 16px; padding: 12px; font-size: 15px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.progress-list table { width: 100%; border-collapse: collapse; color: var(--ink); font-variant-numeric: tabular-nums; }
.progress-list th, .progress-list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.progress-list th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.edit-form { background: #F7F7FB; border-radius: 16px; padding: 14px; }
.edit-form .row { display: flex; gap: 10px; flex-wrap: wrap; }

details { background: #fff; border-radius: 24px; padding: 18px 22px; }
summary { font: 800 20px var(--display); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
details[open] summary { margin-bottom: 8px; }
details form { max-width: 440px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pick input, .swatch-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 2px solid #D9DCEB; border-radius: 999px; font-weight: 800; cursor: pointer; }
.pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick input:focus-visible + span, .swatch-pick input:focus-visible + .sw { outline: 3px solid var(--violet); outline-offset: 2px; }
.sw { display: block; width: 48px; height: 48px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px #D9DCEB; cursor: pointer; }
.swatch-pick input:checked + .sw { box-shadow: 0 0 0 4px var(--ink); }
.community-note { background: var(--ink); color: #fff; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.community-note p { color: #C9CBE3; }
.danger h3 { font-size: 18px; margin-top: 12px; }
.danger p { color: var(--muted); font-size: 16px; }
.btn-danger { background: #B42318; color: #fff; }
.btn-danger:hover { background: #8F1C13; color: #fff; }
@media (max-width: 520px) { .auth-card { padding: 22px; } }
