.family-dashboard{--background:oklch(98.7% .009 85);--foreground:oklch(29% .035 305);--card:oklch(100% 0 0);--card-foreground:var(--foreground);--primary:oklch(55% .14 305);--primary-foreground:oklch(100% 0 0);--secondary:oklch(95% .025 305);--secondary-foreground:oklch(40% .12 305);--muted:oklch(96.5% .014 305);--muted-foreground:oklch(54% .027 305);--border:oklch(91% .02 305);--input:var(--border);--ring:var(--primary);--journey-success:oklch(46% .1 165);--journey-success-bg:oklch(95% .027 165);--journey-notice:oklch(42% .07 75);--journey-notice-bg:oklch(96% .032 85);--journey-shadow:0 8px 28px color-mix(in oklab, var(--primary) 7%, transparent);background:var(--background);color:var(--foreground);letter-spacing:0;font-family:Tajawal,system-ui,sans-serif}.family-inner{max-width:1120px;margin:auto;padding:32px 32px 56px}.family-welcome{justify-content:space-between;align-items:flex-start;gap:16px;padding:12px 0 24px;display:flex}.family-welcome h1{margin:5px 0;font-size:28px;font-weight:800;line-height:1.6}.family-welcome p,.family-section-head p,.family-contact-footer p{color:var(--muted-foreground);font-size:14px;line-height:1.9}.family-eyebrow{color:var(--primary);font-size:12px;font-weight:700}.family-child-switch{flex-wrap:wrap;gap:8px;margin-bottom:16px;display:flex}.family-journey{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:24px 0}.family-section-head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.family-section-head h2,.family-contact-footer h2{align-items:center;gap:8px;font-size:19px;font-weight:800;display:flex}.family-small-stats{color:var(--muted-foreground);flex-shrink:0;gap:20px;font-size:12px;display:flex}.family-small-stats b{color:var(--primary);font-size:18px;display:block}.family-month-head{justify-content:center;align-items:center;gap:20px;margin:10px 0;display:flex}.family-month-head strong{text-align:center;min-width:150px;font-size:15px}.family-day-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;max-width:700px;margin:auto;display:grid}.family-day{border:1px solid var(--border);background:var(--card);border-radius:8px;justify-content:center;align-items:center;gap:8px;height:55px;font-size:13px;display:flex}.family-day.done{background:var(--journey-success-bg);color:var(--journey-success);border-color:var(--journey-success)}.family-day.today{outline:2px solid var(--primary);outline-offset:2px}.family-day.outside{opacity:.38}.day-dot{background:var(--border);border-radius:50%;width:5px;height:5px}.family-legend{color:var(--muted-foreground);flex-wrap:wrap;justify-content:center;gap:20px;margin-top:16px;font-size:11px;display:flex}.family-legend span{align-items:center;gap:5px;display:flex}.family-quick-actions{flex-wrap:wrap;gap:10px;padding:24px 0;display:flex}.family-quick-actions button{background:var(--card);min-width:135px;box-shadow:var(--journey-shadow);border-radius:8px;flex:1}.family-profile,.family-album,.family-tests,.family-plan{border-bottom:1px solid var(--border);padding:24px 0}.family-status{color:var(--journey-notice);background:var(--journey-notice-bg);border-radius:6px;padding:6px 10px;font-size:12px}.family-status.complete{color:var(--journey-success);background:var(--journey-success-bg)}.family-profile summary{cursor:pointer;padding-bottom:14px;font-size:14px;font-weight:700}.family-field-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px;display:grid}.family-field-grid label{flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.family-field-grid input{background:var(--card);border-radius:8px}.family-upload{color:var(--primary);cursor:pointer;flex-shrink:0;font-size:13px;font-weight:700}.family-upload input{max-width:190px;margin-top:6px;font-size:11px;display:block}.family-album-grid{flex-wrap:wrap;gap:12px;display:flex}.family-album-grid img{object-fit:contain;background:var(--card);border-radius:8px;width:120px;height:120px}.family-test-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.family-test-item{white-space:normal;background:var(--card);flex-direction:column;gap:10px;height:155px;padding:18px;display:flex;border-radius:8px!important}.family-test-item>svg:first-child,.family-test-item>span:first-child{width:28px;height:28px;color:var(--primary);font-size:25px}.family-test-item strong{font-size:14px}.family-test-item small{color:var(--muted-foreground);font-size:11px;font-weight:400}.family-reminder{border-inline-start:3px solid var(--journey-notice);background:var(--journey-notice-bg);color:var(--journey-notice);margin:14px 0;padding:12px 16px;font-size:13px;line-height:1.9}.family-table-scroll{border:1px solid var(--border);background:var(--card);border-radius:8px;width:100%;overflow:auto}.family-plan-table{border-collapse:collapse;width:100%;min-width:1050px;font-size:12px}.family-plan-table th,.family-plan-table td{border-bottom:1px solid var(--border);border-inline-end:1px solid var(--border);text-align:center;vertical-align:middle;padding:14px}.family-plan-table thead{background:var(--secondary)}.family-plan-table th:first-child{text-align:right;background:var(--card);z-index:1;width:330px;min-width:330px;position:sticky;right:0}.family-plan-table thead th:first-child{background:var(--secondary)}.family-plan-table th small{color:var(--muted-foreground);font-weight:400;line-height:1.7;display:block}.family-plan-table th>small:first-child{color:var(--primary);margin-bottom:5px;font-weight:700}.family-plan-table th strong{font-size:13px;display:block}.family-plan-table th p{margin:6px 0;font-weight:400;line-height:1.8}.family-plan-table td b,.family-plan-table td small,.family-plan-table td span{display:block}.family-plan-table td span{color:var(--muted-foreground);margin-top:4px;font-size:10px}.family-plan-table .complete{color:var(--journey-success)}.family-empty{color:var(--muted-foreground);padding:25px 0;font-size:14px}.family-goal-starts{flex-wrap:wrap;gap:8px;margin:18px 0;display:flex}.family-goal-starts button{white-space:normal;text-align:right;max-width:100%;height:auto;min-height:40px;font-size:12px;line-height:1.8}.family-plan-requests{flex-wrap:wrap;gap:12px;display:flex}.family-activity{padding-top:20px}.family-activity iframe{border:1px solid var(--border);background:var(--card);border-radius:8px;width:100%;height:800px}.family-contact-footer{align-items:center;gap:18px;padding-top:28px;display:flex}.family-contact-footer>svg{color:var(--primary);flex-shrink:0}.family-contact-footer>div{flex:1}.family-dialog{max-width:650px;max-height:88vh;overflow:auto}.family-favorite-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:45vh;display:grid;overflow:auto}.family-favorite{white-space:normal;flex-direction:column;gap:8px;height:140px;display:flex}.family-favorite img{object-fit:contain;width:100%;height:80px}.family-request-history{max-height:250px;overflow:auto}.family-request-history article{border-top:1px solid var(--border);padding:12px 0;font-size:13px;line-height:1.8}.family-request-history article>small{color:var(--muted-foreground);display:block}.family-reply{background:var(--secondary);margin-top:6px;padding:10px}.family-pronunciation-table{min-width:1300px}.family-pronunciation-table th:first-child{width:70px;min-width:70px}.family-pronunciation-table td{width:190px}.family-pronunciation-table select{background:var(--card);border:1px solid var(--border);border-radius:6px;width:100%;margin-top:8px;padding:6px}.family-pronunciation-table .difficulty{background:var(--journey-notice-bg)}@media (width<=700px){.family-inner{padding:20px 16px 35px}.family-welcome h1{font-size:23px}.family-section-head{flex-wrap:wrap;align-items:flex-start}.family-small-stats{gap:18px}.family-day{gap:4px;height:44px}.family-test-grid{grid-template-columns:1fr}.family-test-item{text-align:right;grid-template-rows:auto auto;grid-template-columns:32px 1fr 18px;column-gap:14px;height:76px;display:grid}.family-test-item>svg:first-child,.family-test-item>span:first-child{grid-row:1/3}.family-test-item strong,.family-test-item small{grid-column:2}.family-test-item>svg:last-child{grid-area:1/3/3}.family-field-grid{grid-template-columns:1fr 1fr}.family-contact-footer{flex-wrap:wrap}.family-contact-footer button{width:100%}.family-quick-actions{grid-template-columns:1fr 1fr;display:grid}.family-quick-actions button{min-width:0;font-size:12px}.family-plan-table th:first-child{width:200px;min-width:200px}.family-activity iframe{height:760px}.family-favorite-grid{grid-template-columns:1fr 1fr}}@media (prefers-reduced-motion:reduce){.family-dashboard *{scroll-behavior:auto!important;transition:none!important}}.child-communication-bar{flex-wrap:wrap;gap:8px;margin:14px 0;display:flex}.child-communication-bar button{white-space:normal;flex:1;min-width:150px;height:52px}.child-needs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.child-needs-grid button{white-space:normal;flex-direction:column;height:85px;display:flex}.child-needs-grid button>span{font-size:28px}.family-activity.paused iframe{pointer-events:none;visibility:hidden}.family-activity.paused{min-height:300px}
