:root{--navy: #1f3a5f;--navy-dark: #152945;--navy-deep: #0f1f36;--gold: #f5c518;--coral: #ff7a59;--coral-soft: #ff9b7e;--coral-light: #fff1ea;--text: #1f3a5f;--text-muted: #5a6a7e;--text-dim: #8a95a5;--border: #e1e7ef;--bg-soft: #f5f7fb;--surface: #fff;--green: #2ea043;--amber: #d97706;--red: #d1242f;--font-base: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji"}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{background:var(--navy-deep);font-family:var(--font-base);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}button{font-family:inherit}.app-shell.evening{max-width:460px;margin:0 auto;min-height:100vh;background:linear-gradient(180deg,#1f3a5f,#0f1f36);display:flex;flex-direction:column;color:#fff}.app-content{flex:1;overflow-y:auto;padding:16px 20px 20px}.app-header{padding:8px 0 4px}.app-logo{display:flex;align-items:center;gap:8px;margin-bottom:14px}.app-logo-icon{width:26px;height:26px;border-radius:7px}.app-logo-text{font-weight:800;font-size:14px;color:#fff}.app-logo-text .dot{color:var(--coral-soft)}.logout-link{margin-left:auto;background:none;border:none;cursor:pointer;font-size:12px;font-weight:700;color:#ffffff8c}.logout-link:hover{color:var(--coral-soft)}.greeting{font-size:24px;font-weight:700;color:#fff;letter-spacing:-.01em;line-height:1.25}.meta{font-size:13px;color:#ffffffb3;margin-top:6px}.evening-intro{color:#ffffffd9;font-size:15px;line-height:1.55;margin:18px 0}.child-card{background:#fff;color:var(--text);border-radius:20px;padding:20px 22px;margin-bottom:14px;box-shadow:0 4px 12px #00000040}.child-card-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.child-avatar{width:44px;height:44px;border-radius:50%;background:var(--coral-light);color:var(--coral);display:grid;place-items:center;font-weight:700;font-size:16px}.child-name{font-weight:800;font-size:17px;color:var(--navy-dark)}.child-date{font-size:12px;color:var(--text-muted);margin-top:2px}.report-section{margin-bottom:16px}.report-label{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--coral);margin-bottom:6px}.report-text{font-size:14px;color:var(--navy-dark);line-height:1.6;white-space:pre-wrap}.report-text strong{color:var(--navy-dark)}.milestone-card{background:linear-gradient(135deg,#fff1ea,#ffe5da);border-left:3px solid var(--coral);border-radius:10px;padding:14px 16px;margin-top:10px}.milestone-icon{font-size:20px;margin-bottom:4px}.milestone-title{font-size:13px;font-weight:800;color:var(--coral);margin-bottom:4px}.milestone-text{font-size:13px;color:var(--navy-dark);line-height:1.5}.report-footer{display:flex;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}.rf-btn{flex:1;padding:10px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--navy);font-size:12px;font-weight:600;cursor:pointer}.rf-btn:disabled{opacity:.6;cursor:default}.rf-btn.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.settings-card{background:#ffffff1a;border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:14px 18px;margin-top:14px;color:#fff}.settings-title{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#ffffffb3;margin-bottom:10px}.settings-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:6px 0}.settings-row .value{color:var(--coral-soft);font-weight:600}.freq-pills{display:flex;gap:6px;margin-top:10px}.freq-pill{flex:1;padding:8px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:#ffffff0f;color:#fffc;font-size:12px;font-weight:600;cursor:pointer}.freq-pill.active{background:var(--coral);border-color:var(--coral);color:#fff}.footer{padding:14px 20px;text-align:center;font-size:11px;color:#ffffff73}.state-msg{padding:32px 8px;text-align:center;color:#fff}.state-msg h1{font-size:20px;margin-bottom:10px}.state-error{color:#ff9b7e}.state-dim{padding:16px 2px;color:#ffffffb3}.error-banner{padding:10px 12px;background:#ff6b6b26;border:1px solid rgba(255,107,107,.3);border-radius:8px;color:#ff9b7e;font-size:13px;margin:8px 0}@media (min-width: 520px){.app-shell.evening{margin:24px auto;min-height:calc(100vh - 48px);border-radius:24px;overflow:hidden}}.contact-note{margin-top:10px;padding:10px 12px;background:#ffffff1a;border:1px solid rgba(255,255,255,.18);border-radius:10px;font-size:12px;color:#ffffffd9;line-height:1.5}.rf-btn{display:flex;align-items:center;justify-content:center;text-decoration:none}.teacher-list{display:flex;flex-direction:column}.push-row{margin-top:10px;align-items:center}.push-hint{font-size:.85rem;opacity:.85;max-width:60%;text-align:right}.push-note{margin-top:8px;font-size:.9rem;opacity:.9}.approval-banner{display:flex;align-items:center;gap:10px;padding:12px 14px;margin:10px 0 4px;background:linear-gradient(135deg,#f5c51829,#ff7a5929);border:1px solid rgba(245,197,24,.45);border-radius:12px;color:#ffe9a8;font-size:13px;font-weight:600;text-decoration:none;line-height:1.4}.approval-banner .ab-icon{flex:none}.approval-banner .ab-arrow{margin-left:auto;color:#ffffffb3;flex:none}.children-section{margin-top:14px}.children-section .settings-title{margin-bottom:8px}.child-approve-card{background:#ffffff1a;border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:14px 16px;margin-bottom:10px;color:#fff}.cac-head{display:flex;align-items:center;gap:10px}.child-avatar.small{width:36px;height:36px;font-size:13px;flex:none}.cac-name{font-weight:700;font-size:14px}.cac-class{font-size:11px;color:#fff9;margin-top:1px}.cac-state{margin-left:auto;font-size:11px;font-weight:700;padding:4px 9px;border-radius:999px;background:#f5c5182e;color:var(--gold);white-space:nowrap;flex:none}.cac-state.on{background:#2ea04340;color:#7ee2a8}.cac-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}.cac-label{font-size:13px;color:#ffffffd9}.switch{position:relative;width:46px;height:26px;border-radius:13px;border:1px solid rgba(255,255,255,.25);background:#ffffff1f;cursor:pointer;padding:0;flex:none;transition:background .2s ease,border-color .2s ease}.switch .knob{position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .2s ease}.switch.on{background:var(--green);border-color:var(--green)}.switch.on .knob{left:22px}.switch:disabled{opacity:.55;cursor:default}.children-microtext{margin-top:4px;font-size:12px;color:#fff9;line-height:1.5}.children-note{padding:10px 12px;background:#ffffff14;border:1px solid rgba(255,255,255,.15);border-radius:10px;font-size:12px;color:#ffffffbf;line-height:1.5}.children-note.error{margin-top:8px;background:#ff6b6b26;border-color:#ff6b6b4d;color:#ff9b7e}.install-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:flex-end;justify-content:center;padding:16px;background:#0f1f368c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.install-modal{width:100%;max-width:420px;background:var(--surface);color:var(--text);border-radius:18px;padding:22px 20px 18px;text-align:center;box-shadow:0 18px 44px #0f1f3659}.im-icon{font-size:30px;line-height:1}.im-title{margin-top:8px;font-size:17px;font-weight:800;color:var(--navy-dark)}.im-text{margin-top:8px;font-size:13.5px;line-height:1.5;color:var(--text-muted)}.im-text strong{color:var(--navy)}.im-steps{margin:12px 0 0;padding:0;list-style:none;counter-reset:step;text-align:left}.im-steps li{counter-increment:step;position:relative;padding:7px 0 7px 30px;font-size:13.5px;line-height:1.45;color:var(--text);border-top:1px solid var(--border)}.im-steps li:first-child{border-top:none}.im-steps li:before{content:counter(step);position:absolute;left:0;top:7px;width:20px;height:20px;border-radius:50%;background:var(--coral-light);color:var(--coral);font-size:11px;font-weight:800;display:grid;place-items:center}.im-actions{display:flex;gap:10px;margin-top:18px}.im-primary,.im-ghost{flex:1;border-radius:999px;padding:11px 16px;font-size:14px;font-weight:700;cursor:pointer}.im-primary{background:var(--coral);border:none;color:#fff}.im-ghost{background:none;border:1px solid var(--border);color:var(--text-muted)}@media (min-width: 520px){.install-overlay{align-items:center}}.direct-teacher-flag{display:flex;flex-direction:column;gap:2px;margin:4px 0 10px;padding:8px 12px;border-radius:12px;background:#f59e0b24;border:1px solid rgba(245,158,11,.55);color:#fbbf24;font-weight:700;font-size:14px}.direct-teacher-sub{font-weight:400;font-size:12px;opacity:.85}.rf-btn.child-open{display:block;width:100%;box-sizing:border-box;text-align:center;text-decoration:none;margin:10px 0 6px}.ph-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:50;width:52px;height:52px;border-radius:50%;border:none;background:var(--coral);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 22px #0f1f3673;transition:transform .15s ease,background .15s ease}.ph-fab:hover{background:var(--coral-soft)}.ph-fab:active{transform:scale(.95)}.ph-fab:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.ph-fab.open{background:var(--navy-dark);z-index:72}.ph-fab-mark{font-size:24px;font-weight:800;line-height:1}@media (min-width: 520px){.ph-fab{right:max(16px,calc(50% - 294px));bottom:28px}}.ph-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;background:#0f1f3699;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:stretch;justify-content:center}.ph-panel{width:100%;height:100%;background:var(--surface);color:var(--text);display:flex;flex-direction:column;box-shadow:0 18px 44px #0f1f3659}.ph-header{display:flex;align-items:center;gap:8px;padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px;border-bottom:1px solid var(--border);background:var(--surface)}.ph-header-title{flex:1;font-weight:800;font-size:16px;color:var(--navy-dark);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ph-icon-btn{width:44px;height:44px;border-radius:50%;border:none;background:none;color:var(--navy);display:grid;place-items:center;cursor:pointer;flex:none}.ph-icon-btn:hover{background:var(--bg-soft)}.ph-icon-btn:focus-visible{outline:3px solid var(--coral);outline-offset:1px}.ph-body{flex:1;overflow-y:auto;padding:14px 16px calc(96px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}.ph-search{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:var(--bg-soft);color:var(--text-muted);margin-bottom:14px}.ph-search:focus-within{border-color:var(--coral);box-shadow:0 0 0 3px #ff7a592e}.ph-search-input{flex:1;min-width:0;height:46px;border:none;background:none;font:inherit;font-size:15px;color:var(--text);outline:none}.ph-search-input::placeholder{color:var(--text-dim)}.ph-section{margin-bottom:16px}.ph-section-title{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);margin:0 0 6px 4px}.ph-context{background:linear-gradient(135deg,var(--coral-light),#fff7f2);border-radius:14px;padding:12px 10px 8px}.ph-context .ph-section-title{color:var(--coral)}.ph-topic-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px;border:none;border-radius:10px;background:none;color:var(--navy-dark);font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}.ph-topic-btn:hover{background:var(--bg-soft)}.ph-context .ph-topic-btn:hover{background:#ffffffb3}.ph-topic-btn:focus-visible{outline:3px solid var(--coral);outline-offset:-2px}.ph-topic-icon{flex:none;width:28px;text-align:center;font-size:18px}.ph-topic-label{flex:1;line-height:1.35}.ph-topic-arrow{flex:none;color:var(--text-dim)}.ph-empty{padding:14px 6px;font-size:14px;color:var(--text-muted);line-height:1.5}.ph-replay{display:block;width:100%;padding:12px;border:1px dashed var(--border);border-radius:12px;background:none;color:var(--text-muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.ph-replay:hover{color:var(--navy);border-color:var(--navy)}.ph-topic{padding:4px 2px}.ph-topic-detail-icon{font-size:34px;line-height:1;margin-bottom:12px}.ph-topic-text p{font-size:15px;line-height:1.6;color:var(--text);margin-bottom:10px}.ph-topic-back{margin-top:10px}.ph-onboarding{text-align:center;padding:24px 6px 8px}.ph-ob-icon{font-size:44px;line-height:1}.ph-ob-title{margin-top:14px;font-size:20px;font-weight:800;color:var(--navy-dark)}.ph-ob-body{margin-top:12px;font-size:15px;line-height:1.6;color:var(--text-muted);text-align:left}.ph-ob-dots{display:flex;justify-content:center;gap:6px;margin-top:20px}.ph-dot{width:8px;height:8px;border-radius:50%;background:var(--border)}.ph-dot.active{background:var(--coral);width:20px;border-radius:4px}.ph-ob-actions{display:flex;gap:10px;margin-top:20px}.ph-btn{flex:1;min-height:46px;border-radius:999px;padding:11px 16px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.ph-btn.primary{background:var(--coral);border:none;color:#fff}.ph-btn.ghost{background:none;border:1px solid var(--border);color:var(--text-muted)}.ph-btn:focus-visible{outline:3px solid var(--navy);outline-offset:2px}.ph-skip{margin-top:14px;background:none;border:none;color:var(--text-dim);font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;min-height:44px}@media (min-width: 520px){.ph-overlay{align-items:flex-end;justify-content:flex-end;padding:24px}.ph-panel{width:min(420px,100%);height:min(640px,calc(100vh - 48px));border-radius:20px;overflow:hidden}.ph-body{padding-bottom:24px}.ph-fab.open{display:none}}.footer{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
