:root{--text:#3f3a45;--text-h:#1a1720;--bg:#faf9fb;--card-bg:#fff;--border:#e3e0e8;--accent:#8b5cf6;--accent-hover:#7c3aed;--error:#dc2626;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font:16px/145% var(--sans);color:var(--text);background:var(--bg)}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--text:#d4d2d8;--text-h:#f3f2f5;--bg:#16151a;--card-bg:#201e26;--border:#34313c;--accent:#a78bfa;--accent-hover:#c4b5fd;--error:#f87171}}*{box-sizing:border-box}body{margin:0}h1{color:var(--text-h);margin:0 0 24px;font-size:24px}.auth-page{justify-content:center;align-items:center;min-height:100svh;padding:16px;display:flex}.auth-card{background:var(--card-bg);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:16px;width:100%;max-width:360px;padding:32px;display:flex}.auth-form{flex-direction:column;gap:16px;display:flex}.auth-divider{color:var(--text);opacity:.6;align-items:center;gap:12px;font-size:13px;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--border);flex:1;height:1px}.google-signin-button{color:#1f1f1f;cursor:pointer;background:#fff;border:1px solid #dadce0;border-radius:4px;justify-content:center;align-items:center;gap:10px;width:100%;height:40px;font-size:14px;font-weight:500;display:flex}.google-signin-button:disabled{opacity:.6;cursor:default}.apple-signin-button{color:#fff;cursor:pointer;background:#000;border:none;border-radius:4px;justify-content:center;align-items:center;width:100%;height:40px;font-size:14px;font-weight:500;display:flex}.apple-signin-button:disabled{opacity:.6;cursor:default}.auth-row{gap:12px;display:flex}.auth-row label{flex:1;min-width:0}label{color:var(--text);flex-direction:column;gap:6px;font-size:14px;display:flex}input{font:inherit;border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text-h);border-radius:8px;padding:10px 12px}select{font:inherit;border:1px solid var(--border);background-color:var(--bg);width:100%;color:var(--text-h);cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b5cf6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;background-size:12px 8px;border-radius:8px;padding:10px 36px 10px 12px}@media (prefers-color-scheme:dark){select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a78bfa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}}button{font:inherit;background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;padding:12px;font-weight:600}button:hover:not(:disabled){background:var(--accent-hover)}button:disabled{opacity:.6;cursor:not-allowed}.auth-error{color:var(--error);margin:0;font-size:14px}.auth-switch{text-align:center;margin:0;font-size:14px}.auth-forgot-password{color:var(--accent);align-self:flex-end;margin-top:-8px;font-size:13px}.auth-switch a{color:var(--accent)}.field-error{color:var(--error);font-size:12px}.password-input{display:flex;position:relative}.password-input input{flex:1;padding-right:40px}.password-toggle{cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:16px;line-height:1;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.password-toggle:hover{opacity:.7;background:0 0}.password-requirements{flex-direction:column;gap:4px;margin:-8px 0 0;padding:0;font-size:12px;list-style:none;display:flex}.requirement-met{color:#16a34a}.requirement-unmet{color:var(--text);opacity:.6}.password-strength{align-items:center;gap:8px;margin-top:-8px;display:flex}.password-strength-bar{background:var(--border);border-radius:2px;flex:1;height:4px;overflow:hidden}.password-strength-fill{border-radius:2px;height:100%;transition:width .2s}.password-strength-weak .password-strength-fill{background:#dc2626;width:33%}.password-strength-medium .password-strength-fill{background:#d97706;width:66%}.password-strength-strong .password-strength-fill{background:#16a34a;width:100%}.password-strength-label{white-space:nowrap;font-size:12px}.password-strength-weak .password-strength-label{color:#dc2626}.password-strength-medium .password-strength-label{color:#d97706}.password-strength-strong .password-strength-label{color:#16a34a}.profile-page header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.profile-page header button{padding:8px 16px}.profile-page header h1{margin:0}.profile-page main{box-sizing:border-box;flex-direction:column;gap:32px;width:100%;max-width:640px;margin:0 auto;padding:24px 16px 48px;display:flex}.profile-card,.children-section{background:var(--card-bg);border:1px solid var(--border);border-radius:12px;padding:24px}.profile-card h2,.children-section h2{color:var(--text-h);margin:0 0 16px;font-size:18px}.profile-photo-row{align-items:center;gap:16px;margin-bottom:20px;display:flex}.profile-avatar{border:1px solid var(--border);background:var(--bg);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:64px;height:64px;padding:0;display:flex;overflow:hidden}.profile-avatar img{object-fit:cover;width:100%;height:100%}.profile-avatar-placeholder{color:var(--accent);background:0 0;font-size:24px;font-weight:600}.photo-action-button{color:var(--accent);border:1px solid var(--border);background:0 0;padding:8px 12px;font-size:13px}.profile-card-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.profile-card-header h2{margin:0}.profile-view{flex-direction:column;gap:12px;margin:0;display:flex}.profile-view dt{color:var(--text);opacity:.6;margin:0 0 2px;font-size:12px}.profile-view dd{color:var(--text-h);margin:0}.child-card-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.child-card-info p{margin:0}.profile-form{flex-direction:column;gap:16px;display:flex}.profile-form input:disabled{opacity:.6}.profile-success{color:#16a34a;margin:0;font-size:14px}.children-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.children-header h2{margin:0}.children-header button{padding:8px 14px;font-size:14px}.children-list{flex-direction:column;gap:12px;margin:0 0 16px;padding:0;list-style:none;display:flex}.child-card{flex-wrap:wrap;align-items:flex-start;gap:12px;display:flex}.child-avatar{border:1px solid var(--border);width:40px;height:40px;color:var(--accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-weight:600;display:flex;overflow:hidden}.child-avatar img{object-fit:cover;width:100%;height:100%}.child-name{color:var(--text-h);margin:0;font-weight:600}.gender-icon{color:#fff;vertical-align:middle;border-radius:50%;justify-content:center;align-items:center;width:18px;height:18px;margin-left:6px;font-size:13px;font-weight:700;display:inline-flex}.gender-icon-male{background:#38bdf8}.gender-icon-female{background:#f472b6}.add-child-form{border-top:1px solid var(--border);flex-direction:column;gap:16px;padding-top:16px;display:flex}.add-child-form h3{color:var(--text-h);margin:0;font-size:15px}.add-child-actions{gap:12px;display:flex}.add-child-actions button{flex:1}.secondary-button{color:var(--text-h);border:1px solid var(--border);background:0 0}.destructive-button{background:var(--error);color:#fff;border:none}.muted{color:var(--text);opacity:.6;font-size:14px}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}[dir=rtl] .auth-row{flex-direction:row-reverse}.profile-page header{gap:12px}.care-log-form{flex-direction:column;gap:16px;display:flex}textarea{font:inherit;border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text-h);resize:vertical;border-radius:8px;padding:10px 12px}.care-log-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.care-log-item{border:1px solid var(--border);border-radius:8px;padding:12px 16px}.care-log-item-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px;display:flex}.care-log-item-header time{font-size:12px}.care-log-category-badge{background:var(--accent);color:#fff;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600;display:inline-block}.care-log-content{color:var(--text-h);white-space:pre-wrap;margin:0}.qa-question{color:var(--text-h);margin:0 0 6px;font-weight:600}.qa-history{margin-top:20px}.qa-history h3{color:var(--text-h);margin:0 0 12px;font-size:15px}.care-log-attach-row{gap:8px;display:flex}.care-log-attach-row button{padding:8px 14px;font-size:14px}.care-log-voice-recording{color:var(--error);border-color:var(--error);animation:1.4s ease-in-out infinite care-log-recording-pulse}@keyframes care-log-recording-pulse{0%,to{opacity:1}50%{opacity:.55}}.care-log-preview-list{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.care-log-preview-item{border:1px solid var(--border);background:var(--bg);border-radius:8px;width:84px;height:84px;position:relative;overflow:hidden}.care-log-preview-media{object-fit:cover;width:100%;height:100%;display:block}.care-log-item .care-log-preview-item{width:120px;height:120px}.care-log-item .care-log-preview-media[controls]{object-fit:contain;background:#000}.care-log-preview-remove{color:#fff;background:#0009;border-radius:50%;width:20px;height:20px;padding:0;font-size:14px;line-height:1;position:absolute;top:2px;right:2px}.settings-section{flex-direction:column;gap:12px;display:flex}.settings-row{width:100%;color:var(--text-h);text-align:left;background:0 0;flex-direction:column;align-items:flex-start;gap:4px;padding:4px 0;font-weight:600;display:flex}.settings-row:hover:not(:disabled){opacity:.75;background:0 0}.settings-row-static{flex-direction:row;justify-content:space-between;align-items:center}.settings-row-label{font-size:15px}.settings-logout{width:100%}.legal-draft-notice{background:var(--bg);border:1px solid var(--border);color:var(--text);opacity:.85;border-radius:8px;margin:0 0 20px;padding:12px 16px;font-size:13px}.legal-section{margin-bottom:20px}.legal-section:last-child{margin-bottom:0}.legal-section h2{color:var(--text-h);margin:0 0 6px;font-size:15px}.legal-section p{color:var(--text);margin:0;font-size:14px;line-height:1.6}.home-header-left{align-items:center;gap:12px;display:flex}.home-header-left h1{white-space:nowrap;margin:0}.app-title{cursor:pointer}.child-switcher{position:relative}.child-switcher-trigger{background:var(--bg);border:1px solid var(--border);color:var(--text-h);border-radius:999px;align-items:center;gap:8px;padding:4px 10px 4px 4px;font-size:14px;font-weight:600;display:flex}.child-switcher-trigger:hover:not(:disabled){background:var(--bg);opacity:.85}.child-switcher-avatar{width:28px;height:28px;color:var(--accent);background:var(--card-bg);border:1px solid var(--border);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:13px;font-weight:600;display:flex;overflow:hidden}.child-switcher-avatar img{object-fit:cover;width:100%;height:100%}.child-switcher-caret{opacity:.6;font-size:11px}.child-switcher-dropdown{z-index:20;background:var(--card-bg);border:1px solid var(--border);border-radius:12px;min-width:200px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 8px 24px #00000026}.child-switcher-dropdown li button{width:100%;color:var(--text-h);text-align:left;background:0 0;border-radius:8px;align-items:center;gap:8px;padding:8px;font-size:14px;font-weight:500;display:flex}.child-switcher-dropdown li button:hover{background:var(--bg);opacity:1}.home-add-toggle{width:100%}.care-log-modal-backdrop{z-index:100;background:#00000080;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.care-log-modal{background:var(--card-bg);border:1px solid var(--border);border-radius:12px;width:min(480px,100%);max-height:90vh;padding:24px;overflow-y:auto}.chat-widget-fab{border:1px solid var(--border);background:var(--accent);color:#fff;z-index:60;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;padding:0;display:flex;position:fixed;bottom:20px;right:20px;overflow:hidden;box-shadow:0 4px 12px #0003}.chat-widget-fab img{object-fit:cover;width:100%;height:100%}.chat-widget-panel{background:var(--card-bg);border:1px solid var(--border);z-index:60;border-radius:12px;flex-direction:column;width:min(340px,100vw - 40px);max-height:min(480px,100vh - 140px);display:flex;position:fixed;bottom:88px;right:20px;overflow:hidden;box-shadow:0 8px 24px #00000040}.chat-widget-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.chat-widget-header-info{align-items:center;gap:8px;display:flex}.chat-widget-avatar{background:var(--accent);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex;overflow:hidden}.chat-widget-avatar img{object-fit:cover;width:100%;height:100%}.chat-widget-title{color:var(--text-h);font-weight:600}.chat-widget-close{color:var(--text);background:0 0;border:none;padding:4px;font-size:20px;line-height:1}.modal-close-button{color:var(--text);background:0 0;border:none;padding:4px;font-size:22px;line-height:1}.modal-close-button:hover:not(:disabled){color:var(--text-h);background:0 0}.chat-widget-messages{flex-direction:column;flex:1;gap:8px;padding:12px 16px;display:flex;overflow-y:auto}.chat-widget-empty{text-align:center;margin:auto}.chat-widget-error{padding:0 16px}.chat-widget-form{border-top:1px solid var(--border);gap:8px;padding:12px 16px;display:flex}.chat-widget-form input{flex:1}.chat-bubble{white-space:pre-wrap;border-radius:14px;max-width:80%;padding:8px 12px;font-size:14px;line-height:1.4}.chat-bubble-question{background:var(--accent);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}.chat-bubble-answer{background:var(--bg);border:1px solid var(--border);color:var(--text-h);border-bottom-left-radius:4px;align-self:flex-start}.chat-bubble-pending{opacity:.6}.qa-history-layout{gap:20px;min-height:420px;padding:0;display:flex;overflow:hidden}.qa-history-sidebar{border-right:1px solid var(--border);flex-shrink:0;width:220px;padding:20px 12px 20px 20px;overflow-y:auto}.qa-history-guardian-list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.qa-history-guardian-row{text-align:left;background:0 0;border-radius:8px;align-items:center;gap:10px;width:100%;padding:8px;display:flex}.qa-history-guardian-row:hover,.qa-history-guardian-row-active{background:var(--bg)}.qa-history-guardian-name{color:var(--text-h);font-weight:500}.qa-history-transcript{flex:1;padding:20px 20px 20px 0;overflow-y:auto}.qa-history-messages{overflow:visible}.qa-history-turn{flex-direction:column;gap:6px;margin-bottom:20px;display:flex}.qa-history-turn-time{font-size:12px}.linked-children-list{border-top:1px solid var(--border);flex-direction:column;gap:6px;margin:8px 0 0;padding:8px 0 0;list-style:none;display:flex}.linked-child-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.toggle-switch{cursor:pointer;flex-shrink:0;align-items:center;display:inline-flex;position:relative}.toggle-switch input{opacity:0;width:0;height:0;position:absolute}.toggle-switch-track{background:var(--border);border-radius:999px;width:44px;height:24px;transition:background-color .2s;position:relative}.toggle-switch-thumb{background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .2s;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px #0000004d}.toggle-switch input:checked+.toggle-switch-track{background:var(--accent)}.toggle-switch input:checked+.toggle-switch-track .toggle-switch-thumb{transform:translate(20px)}.toggle-switch input:disabled+.toggle-switch-track{opacity:.6}.toggle-switch:has(input:disabled){cursor:not-allowed}.toggle-switch input:focus-visible+.toggle-switch-track{outline:2px solid var(--accent);outline-offset:2px}
