:root{color-scheme:light;--bg:#f6f7f3;--ink:#20322d;--muted:#6f8078;--line:#e1e9e2;--green:#146e56;--green-dark:#0e5744;--mint:#e7f3ec;--white:#fff;--shadow:0 10px 32px rgba(28,62,48,.06)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #72bea2;outline-offset:3px}
a{color:var(--green)}
main{min-height:70vh;padding-bottom:115px;outline:none}
.app-shell{min-height:100vh}
.masthead{background:linear-gradient(117deg,#e6f3e8 0%,#eff7ec 56%,#f8f2df 100%);padding:15px 22px 60px;position:relative;overflow:hidden}
.masthead:after{content:'';position:absolute;width:300px;height:300px;border:1px solid rgba(28,106,72,.11);border-radius:50%;right:-110px;top:8px;box-shadow:0 0 0 58px rgba(255,255,255,.12),0 0 0 115px rgba(255,255,255,.1);pointer-events:none}
.masthead-inner,.hero-copy,.content-wrap{max-width:900px;margin:auto}
.masthead-inner{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}
.back-link{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#426b58;font-weight:700;font-size:13px}
.back-link:hover{text-decoration:underline}
.demo-pill{font-size:11px;letter-spacing:.04em;color:#527967;background:#fff9;padding:4px 10px;border-radius:30px;border:1px solid #fff}
.hero-copy{position:relative;z-index:1;padding-top:40px}
.eyebrow,.overline{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--green);margin:0 0 8px}
.hero-copy h1{font-size:clamp(27px,6vw,40px);letter-spacing:-.045em;line-height:1.2;margin:0 0 10px;font-weight:700}
.hero-copy>p:last-child{margin:0;color:#587363;font-size:13px}
.content-wrap{padding:0 22px}
.view[hidden]{display:none}
#view-home>.content-wrap{margin-top:-32px;position:relative;z-index:2}
.child-card{background:#fff;display:flex;align-items:center;gap:15px;border:1px solid #edf0e8;border-radius:23px;padding:18px 19px;box-shadow:0 18px 35px rgba(38,81,54,.1)}
.child-avatar,.teacher-avatar{flex:none;display:grid;place-items:center;background:#dceee2;color:#25704f;font-size:22px;font-weight:700;width:54px;height:54px;border-radius:17px}
.child-card>div:nth-child(2){flex:1;min-width:0}
.child-card .overline{color:#7a9282;font-size:10px;letter-spacing:.08em}
.child-card h2{font-size:19px;margin:-3px 0 2px;line-height:1.25}
.child-card p{color:var(--muted);font-size:11px;margin:0}
.badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:100px;padding:3px 9px;font-size:11px;font-weight:700}
.badge-green{color:#247153;background:#e8f5ec}.badge-amber{color:#a76515;background:#fff3df}.badge-blue{color:#376fa1;background:#e8f2fb}.badge-red{color:#b44038;background:#ffebe8}.badge-gray{color:#708078;background:#eef2ee}
.section-intro{display:flex;align-items:end;justify-content:space-between;margin:27px 1px 15px}
.section-intro h2{margin:0;font-size:24px;line-height:1.1;letter-spacing:-.03em}
.section-intro>span{font-size:12px;color:var(--muted)}
.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.metric-card{background:#e7f0e8;border-radius:17px;padding:17px 18px;min-height:116px;display:flex;flex-direction:column}
.metric-card:nth-child(2){background:#e9eef5}
.metric-card>span{font-size:12px;color:#5d7867}
.metric-card strong{font-size:23px;margin:4px 0 1px;line-height:1.3;letter-spacing:-.03em}
.metric-card strong em{font-size:12px;font-style:normal;font-weight:600;color:#688176}
.metric-card small{font-size:10px;color:#7b9083}
.panel{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:20px;margin:14px 0;box-shadow:var(--shadow)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-heading h2{font-size:16px;line-height:1.35;margin:0;letter-spacing:-.02em}
.section-heading .text-button{font-size:12px}
.count-chip{font-size:11px;color:#a86419;background:#fff2dd;padding:3px 9px;border-radius:30px}
.notice-preview{display:flex;align-items:center;justify-content:space-between;gap:14px}
.notice-preview>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.notice-preview strong{font-size:12px;line-height:1.45}
.text-button{border:0;background:none;padding:3px 0;color:var(--green);font-weight:700;text-align:left;white-space:nowrap}
.text-button:hover{text-decoration:underline}
.inline-state{border-top:1px solid var(--line);padding-top:10px;margin:11px 0 0;font-size:11px;color:var(--muted)}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.quick-action{border:1px solid #e6eee7;border-radius:15px;background:#f7faf7;padding:13px 8px;min-height:104px;display:flex;flex-direction:column;align-items:center;text-align:center;transition:transform .2s,background .2s}
.quick-action:hover{transform:translateY(-2px);background:#eef6ee}
.quick-action>span{display:grid;place-items:center;width:28px;height:28px;color:var(--green);background:#e5f2e8;border-radius:9px;font-size:18px;line-height:1}
.quick-action strong{font-size:12px;margin-top:7px}
.quick-action small{font-size:10px;color:#7a8e81;line-height:1.4}
.body-text,.message-preview{font-size:12px;line-height:1.8;color:#53695d;margin:0 0 12px}
.body-text strong{color:var(--green);font-size:17px}
.progress-track{height:7px;background:#e8eee8;border-radius:20px;overflow:hidden}
.progress-track span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#6dbb8d,#2f9270)}
.panel>small{color:#94a49b;font-size:11px}
.privacy-note{font-size:11px;text-align:center;color:#8d9d93;margin:22px 0 4px}
.parent-agent{background:#f8fbf7}
.parent-agent-log{display:grid;gap:8px;margin:12px 0}
.parent-agent-question,.parent-agent-answer{padding:10px 12px;border-radius:12px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.parent-agent-question{background:#e4f1e8;margin-left:22px}
.parent-agent-answer{background:#fff;border:1px solid var(--line);margin-right:22px}
.parent-agent-answer small{display:block;margin-top:7px;color:var(--green);font-size:10px}
.parent-agent-evidence{margin:0 0 8px;color:var(--muted);font-size:10px;line-height:1.7}
.parent-agent-form label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}
.parent-agent-form>div{display:flex;gap:8px}
.parent-agent-form input{flex:1;min-width:0;border:1px solid #d8e3da;background:#fff;border-radius:9px;padding:9px 10px;font-size:12px}
.parent-agent-form .primary-button{flex:none}
.page-intro{padding:30px 0 18px}.page-intro h1{font-size:clamp(25px,5vw,31px);margin:0 0 4px;letter-spacing:-.04em}.page-intro p:last-child{margin:0;color:var(--muted);font-size:12px}
.small-note{font-size:11px;color:#8b9b91;margin:4px 0 15px}
.subject-row{margin:18px 0}.subject-top,.goal-item>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.subject-top span,.goal-item>div:first-child span{font-size:11px;color:var(--muted)}
.homework-item{border-top:1px solid var(--line);padding:13px 0}.homework-item:last-of-type{border-bottom:1px solid var(--line)}
.homework-item summary{list-style:none;display:flex;align-items:center;gap:11px;cursor:pointer}.homework-item summary::-webkit-details-marker{display:none}
.homework-main{flex:1;min-width:0}.homework-main strong,.homework-main small{display:block}.homework-main strong{font-size:12px}.homework-main small{color:#84958a;font-size:11px}.homework-item>p{margin:9px 0 0 25px;color:var(--muted);font-size:12px}
.subject-dot{width:12px;height:12px;border-radius:4px;background:#e89569;flex:none}.subject-blue{background:#6d9dcf}.subject-purple{background:#a691cc}
.highlight{display:flex;gap:12px;background:#eff8ee;padding:14px;border-radius:14px}.highlight>span{color:#268d66;font-size:22px}.highlight strong{font-size:13px}.highlight p{font-size:12px;color:#668275;margin:4px 0 0}
.tag-list{display:flex;flex-wrap:wrap;gap:7px}.tag-list span{font-size:11px;color:#57776a;background:#eaf4ed;padding:5px 9px;border-radius:7px}
.outline-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:10px 15px;font-size:12px;font-weight:700;text-decoration:none;min-height:39px}
.outline-button{background:#fff;color:var(--green);border:1px solid #b7d8c4}.outline-button:hover{background:#f1f8f2}
.primary-button{background:var(--green);color:#fff;border:1px solid var(--green)}.primary-button:hover{background:var(--green-dark)}
.work-card{display:flex;align-items:center;gap:12px}.work-card>span{display:grid;place-items:center;background:#faf1dc;color:#b68a35;font-size:22px;width:44px;height:44px;border-radius:12px}.work-card>div{flex:1}.work-card strong{font-size:12px}.work-card p{font-size:11px;color:var(--muted);margin:1px 0}.work-card button{font-size:11px}
.goal-item{border-top:1px solid var(--line);padding:12px 0}.goal-item strong{font-size:12px}.goal-item p{font-size:11px;color:var(--muted);margin:0 0 8px}.goal-item:last-child{padding-bottom:0}
.tip-panel{background:#edf5eb}.tip-panel p{color:#4e7060;font-size:12px;line-height:1.85}
.teacher-message{display:flex;gap:11px}.teacher-avatar{width:39px;height:39px;font-size:15px;border-radius:11px}.teacher-message>div:last-child{flex:1}.teacher-message strong,.teacher-message small{display:block}.teacher-message small{color:#93a096;font-size:10px}.teacher-message p{font-size:12px;color:#4f6559;line-height:1.8}.teacher-message+.primary-button{margin-left:50px}
.two-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.two-actions button{width:100%}
.meeting-card{display:flex;gap:13px;align-items:center}.meeting-date{width:54px;height:59px;background:#f1f5e8;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#567a4d}.meeting-date strong{font-size:22px;line-height:1}.meeting-date span{font-size:10px}.meeting-card>div:last-child{flex:1}.meeting-card strong{font-size:13px}.meeting-card p{font-size:11px;margin:1px 0;color:#5e7866}.meeting-card small{color:#91a397;font-size:10px}
.record-item{border-top:1px solid var(--line);padding:12px 0}.record-item>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.record-item strong{font-size:12px}.record-item p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;color:#5b7364}.record-item small{font-size:10px;color:#9aa89d}.quiet{font-size:12px;color:#91a197;margin:0}
.contact-panel p{margin:5px 0;font-size:12px}.contact-panel small{font-size:10px;color:#9ca9a1}
.filter-row{display:flex;gap:7px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}.filter-row::-webkit-scrollbar{display:none}.filter-chip{border:1px solid #dde7de;background:#fff;color:#637d6a;border-radius:30px;padding:6px 14px;font-size:12px;white-space:nowrap}.filter-chip.is-active{background:var(--green);color:#fff;border-color:var(--green)}
.notice-card{border:1px solid var(--line);border-left:4px solid #a8c2b0;background:#fff;border-radius:14px;padding:16px;margin:10px 0;box-shadow:var(--shadow)}.notice-important{border-left-color:#e9b45b}.notice-urgent{border-left-color:#e58177}.notice-card-top,.notice-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.notice-card-top small,.notice-card-footer span{color:#94a398;font-size:11px}.notice-card h2{font-size:15px;line-height:1.45;margin:12px 0 5px}.notice-card p{color:#61766a;font-size:12px;margin:0 0 13px}.notice-card-footer{border-top:1px solid var(--line);padding-top:10px}.notice-card-footer .text-button{font-size:11px}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:5;background:#fff;border-top:1px solid #e2e9e2;display:flex;justify-content:space-around;padding:7px max(10px,calc((100vw - 900px)/2)) calc(7px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px rgba(26,61,41,.06)}
.nav-button{position:relative;border:0;background:transparent;color:#8d9d92;font-size:10px;font-weight:600;width:25%;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.nav-button.is-active{color:var(--green)}.nav-icon{font-size:21px;line-height:1.2}.nav-badge{position:absolute;top:0;left:calc(50% + 10px);background:#d97859;color:#fff;font-size:9px;border-radius:10px;min-width:15px;line-height:15px}
.status-banner{position:fixed;z-index:20;top:12px;left:50%;transform:translateX(-50%);background:#176c52;color:white;padding:10px 16px;border-radius:11px;box-shadow:0 12px 30px #254f3b3d;text-align:center;max-width:calc(100vw - 30px);width:max-content;font-size:12px}.status-banner.is-error{background:#b2453d}.status-banner[hidden]{display:none}
dialog{border:0;border-radius:20px;padding:0;width:min(94vw,450px);max-height:min(90vh,760px);overflow:auto;box-shadow:0 25px 90px #18312550;color:var(--ink)}dialog::backdrop{background:#152e2380}.dialog-head{display:flex;justify-content:space-between;align-items:start;padding:22px 22px 10px}.dialog-head h2{margin:0;font-size:21px}.icon-close{border:0;background:#eef4ef;color:#536f5c;border-radius:50%;width:30px;height:30px;line-height:1;font-size:22px}.dialog-head+.dialog-body{padding:0 22px 22px}#dialogBody{padding:0 22px 23px}.form-field{display:block;margin:13px 0}.form-field>span{display:block;font-size:12px;font-weight:700;margin:0 0 5px}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #d8e3da;background:#fbfdfb;border-radius:9px;padding:10px 11px;color:var(--ink);outline-color:#72bea2;font-size:12px}.form-field textarea{resize:vertical}.form-hint{color:#93a49a;font-size:10px;margin:12px 0}#actionForm>.primary-button{width:100%}.support-plan p{font-size:12px;line-height:1.8;color:#597260}.support-plan strong{color:var(--green)}#dialogBody>.primary-button{width:100%;margin-top:12px}.work-preview{text-align:center;background:#f8faf3;border-radius:14px;padding:22px}.work-symbol{font-size:38px;color:#b59a51}.work-preview h3{font-size:15px}.work-preview p{font-size:12px;color:#547260}.work-preview small{color:#9aa89e;font-size:10px}
@media (min-width:700px){.masthead{padding-bottom:76px}.hero-copy{padding-top:56px}.content-wrap{padding:0 28px}.metric-card{min-height:130px}.quick-action{min-height:115px}.panel{padding:24px}.notice-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.notice-card{margin:0}.bottom-nav{width:min(900px,100%);left:50%;transform:translateX(-50%);border:1px solid #e2e9e2;border-radius:18px 18px 0 0}}
@media (max-width:440px){.content-wrap{padding:0 15px}.masthead{padding-left:15px;padding-right:15px}.child-card{gap:10px;padding:15px}.child-card .badge{font-size:10px;padding:3px 6px}.child-avatar{width:45px;height:45px}.quick-grid{grid-template-columns:repeat(2,1fr)}.quick-action{min-height:89px}.notice-preview{align-items:start;flex-direction:column;gap:8px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.quick-action{transition:none}}
