:root{font-size:14px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2937;background:#f5f7fb}*{box-sizing:border-box}html,body,#app{width:100%;min-width:0;min-height:100%}body{margin:0;overflow-x:hidden}button{font:inherit}.app-shell{width:100%;max-width:100vw;min-height:100dvh;background:#f5f7fb}.page-content{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%;max-width:100%;min-width:0;min-height:100dvh;padding:max(14px,env(safe-area-inset-top)) 12px calc(88px + env(safe-area-inset-bottom))}.user-summary{display:flex;width:100%;max-width:100%;min-width:0;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;background:#fff;box-shadow:0 8px 30px #0f172a14}.avatar{width:48px;height:48px;flex:0 0 auto;border:2px solid #dbeafe;border-radius:50%;background:#eff6ff}.user-details p{margin:0}.user-name{font-size:1rem;font-weight:700}.user-gender{margin-top:3px!important;color:#64748b;font-size:.8125rem}.customer-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.customer-tags span{padding:2px 7px;border-radius:999px;color:#2563eb;background:#eff6ff;font-size:.6875rem;line-height:1.4}.contact-userid{max-width:min(68vw,300px);margin-top:4px!important;overflow:hidden;color:#64748b;font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.contact-status{max-width:min(85vw,420px);margin:4px 0 0!important;overflow-wrap:anywhere;color:#64748b;font-size:.75rem;line-height:1.45}.family-section{width:100%;max-width:100%;min-width:0}.section-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}.section-heading h2{margin:0;font-size:.9375rem}.section-heading span{color:#94a3b8;font-size:.8125rem}.family-members{display:flex;width:100%;max-width:100%;min-width:0;gap:10px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x;padding:2px 2px 6px;scroll-snap-type:x proximity;scrollbar-width:thin}.family-empty{margin:0;color:#94a3b8;font-size:.8125rem}.member-card{display:grid;min-width:154px;flex:0 0 154px;gap:4px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;color:#64748b;background:#fff;cursor:pointer;text-align:left;font-size:.8125rem;scroll-snap-align:start}.member-name{color:#1f2937;font-size:.9375rem;font-weight:700}.member-card.selected{border-color:#2563eb;color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px #2563eb1f}.member-card.selected .member-name{color:#1d4ed8}.member-card:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.page-card,.score-card{width:100%;max-width:100%;min-width:0;padding:20px;border-radius:16px;background:#fff;box-shadow:0 8px 30px #0f172a14}.score-card h1{margin:0;font-size:1.25rem}.score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px;margin-top:24px}.score-item{min-width:0;color:#334155;font-size:clamp(.875rem,4.5vw,1.0625rem);white-space:nowrap}.score-item strong{color:#1f2937;font-weight:500}.score-item strong.warning{color:#ef4444}.score-empty{margin:20px 0 0;color:#94a3b8;font-size:.8125rem}.reports-section{display:flex;width:100%;flex-direction:column;gap:12px}.reports-section>h2{margin:2px 0;font-size:.9375rem}.report-card{box-sizing:border-box;padding:18px 16px 5px;border:1px solid rgb(226 232 240 / 72%);border-radius:20px;background:#fff;box-shadow:0 8px 24px #0f172a12}.report-header,.report-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px}.report-footer{margin-top:10px;padding-top:0}.report-header h3{flex:1;min-width:0;margin:0;color:#172554;font-size:1.0625rem;text-align:left}.report-status{flex:0 0 auto;padding:4px 8px;border-radius:6px;color:#14b8a6;background:#ecfdf5;font-size:.8125rem}.report-status.generating{color:#ef4444;background:#fef2f2}.participants{color:#94a3b8;font-size:.875rem}.participants span{margin-right:7px;color:#64748b;font-size:1.25rem;vertical-align:-2px}.report-footer button,.report-footer a{min-height:30px;padding:3px 2px;border:0;color:#2563eb;background:transparent;cursor:pointer;font-weight:600;text-decoration:none}.report-empty{margin:0;padding:16px;border:1px dashed #cbd5e1;border-radius:14px;color:#64748b;background:#f8fafc;font-size:.8125rem;text-align:center}.report-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.report-actions>button,.report-actions>a{box-sizing:border-box;display:inline-flex;width:96px;height:34px;min-height:34px;align-items:center;justify-content:center;margin:0;padding:0;font:inherit;line-height:1;text-align:center;white-space:nowrap}@media(max-width:360px){.report-actions{gap:6px}.report-actions>button,.report-actions>a{width:82px;font-size:.875rem}}.dialog-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;padding:24px;place-items:center;background:#0f172a73}.entry-dialog{width:min(100%,320px);padding:22px;border-radius:16px;background:#fff;box-shadow:0 18px 48px #0f172a3d;text-align:center}.entry-dialog h2{margin:0;font-size:1.0625rem}.entry-type{margin:16px 0 0;color:#2563eb;font-size:1.125rem;font-weight:700;word-break:break-word}.entry-message{margin:10px 0 0;color:#64748b;font-size:.8125rem;line-height:1.5}.entry-dialog button{width:100%;margin-top:20px;padding:10px;border:0;border-radius:10px;color:#fff;background:#2563eb;cursor:pointer}.eyebrow{margin:0 0 10px;color:#64748b;font-size:.875rem}h1{margin:0;font-size:2rem}.page-card>p:last-child{margin:14px 0 0;color:#64748b}.bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:10;display:flex;width:100%;height:calc(72px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top:1px solid #e2e8f0;background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.nav-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;color:#64748b;background:transparent;cursor:pointer;font-size:.75rem}.nav-icon{font-size:1.25rem;line-height:1}.nav-item.active{color:#2563eb;font-weight:600}.nav-item:focus-visible{outline:2px solid #2563eb;outline-offset:-4px}.mobile-script-page{display:flex;flex-direction:column;gap:20px;width:100%;min-width:0}.mobile-script-toolbar{display:flex;gap:10px}.mobile-search{display:flex;min-width:0;flex:1;align-items:center;gap:8px;height:48px;padding:0 15px;border-radius:13px;background:#fff;box-shadow:0 4px 16px #0f172a08;color:#9aa2ae}.mobile-search span{font-size:1.7rem;line-height:1;transform:rotate(-18deg)}.mobile-search input{width:100%;min-width:0;border:0;outline:0;color:#3c434e;background:transparent;font:inherit;font-size:1.0625rem}.mobile-search input::placeholder{color:#a5acb6}.mobile-new-script{flex:0 0 auto;height:48px;padding:0 13px;border:0;border-radius:13px;color:#fff;background:#2165ec;box-shadow:0 7px 14px #2165ec38;font-size:.95rem;white-space:nowrap}.mobile-script-tabs{display:flex;gap:14px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.mobile-script-tabs::-webkit-scrollbar{display:none}.mobile-script-tabs button{min-width:102px;height:46px;flex:0 0 auto;border:0;border-radius:12px;color:#4d535d;background:#fff;font-size:1rem}.mobile-script-tabs button.active{color:#fff;background:#2165ec;box-shadow:0 6px 12px #2165ec2e}.mobile-script-list{display:grid;gap:18px}.mobile-script-card{padding:20px 22px 18px;border-radius:20px;background:#fff;box-shadow:0 8px 25px #0f172a0a}.mobile-script-card header{display:flex;align-items:center;gap:12px}.mobile-script-card h2{margin:0;color:#2d333d;font-size:1.25rem}.mobile-script-tag{padding:5px 9px;border-radius:5px;font-size:.875rem;white-space:nowrap}.mobile-script-tag.need{color:#e9a527;background:#fff7e7}.mobile-script-tag.product{color:#efaa2b;background:#fff8e9}.mobile-script-tag.deal{color:#4d80e6;background:#edf4ff}.mobile-script-card>p{margin:13px 0 18px;color:#68707c;font-size:1rem;line-height:1.65}.mobile-script-card footer{display:flex;align-items:center;justify-content:space-between;color:#aab0b9;font-size:.875rem}.mobile-script-card footer button{display:grid;width:44px;height:44px;place-items:center;border:0;border-radius:50%;color:#fff;background:#f23838;box-shadow:0 5px 12px #f2383838;font-size:1.35rem;transform:rotate(-35deg)}.mobile-script-empty{margin:22px 0;color:#9aa2ae;text-align:center}.mobile-product-page{display:flex;flex-direction:column;gap:16px;width:100%;min-width:0}.mobile-product-toolbar{display:flex}.mobile-product-toolbar .mobile-search{width:100%}.mobile-product-tabs{display:flex;gap:11px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.mobile-product-tabs::-webkit-scrollbar{display:none}.mobile-product-tabs button{min-width:112px;height:40px;flex:0 0 auto;border:0;border-radius:11px;color:#505661;background:#fff;font-size:.9rem}.mobile-product-tabs button.active{color:#fff;background:#2165ec;box-shadow:0 5px 10px #2165ec2e}.mobile-product-list{display:grid;gap:14px}.mobile-product-card{display:flex;gap:12px;min-width:0;padding:14px;border-radius:16px;background:#fff;box-shadow:0 6px 19px #0f172a0a}.product-image{position:relative;flex:0 0 106px;width:106px;height:146px;overflow:hidden;border-radius:11px;background:linear-gradient(155deg,#dbeaff,#9abdfd);color:#2165ec;display:grid;place-items:center;font-size:1.6rem}.product-image img{width:100%;height:100%;object-fit:cover}.product-image b{position:absolute;top:0;left:0;padding:5px 8px;border-radius:0 0 8px;color:#fff;background:#2269ec;font-size:.72rem;font-weight:500}.product-info{display:flex;min-width:0;flex:1;flex-direction:column}.product-info header{display:flex;align-items:flex-start;justify-content:space-between;gap:5px}.product-info h2{margin:1px 0 0;color:#303740;font-size:1rem;line-height:1.32}.product-info em{flex:0 0 auto;padding:4px 5px;border-radius:5px;background:#ff5a10;color:#fff;font-size:.65rem;font-style:normal;white-space:nowrap}.product-info em.medium{background:#f5b831}.product-info em.low{background:#c6cbd2}.product-info>p{display:-webkit-box;overflow:hidden;margin:8px 0;color:#747b86;font-size:.82rem;line-height:1.42;-webkit-box-orient:vertical;-webkit-line-clamp:2}.product-info footer{display:flex;align-items:end;justify-content:space-between;gap:5px;margin-top:auto}.product-price{display:flex;align-items:baseline;gap:4px;white-space:nowrap}.product-price strong{color:#ef3535;font-size:1.2rem}.product-price del{color:#adb3bd;font-size:.72rem}.product-info footer button{display:flex;align-items:center;justify-content:center;gap:3px;min-height:32px;padding:0 7px;border:1.5px solid #2670ed;border-radius:9px;background:#fff;color:#2670ed;font-size:.73rem;white-space:nowrap}@media(max-width:360px){.mobile-product-card{padding:12px;gap:10px}.product-image{flex-basis:90px;width:90px;height:132px}.product-info h2{font-size:.9rem}.product-info footer button span{display:none}.product-info footer button{width:34px;padding:0;font-size:1rem}.product-price strong{font-size:1.1rem}}.mobile-script-card footer button{width:22px;height:22px;box-shadow:0 3px 6px #f2383838;font-size:.675rem}:root{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:#1b1942;background:#f5f7ff;font-synthesis:none}body{background:#f5f7ff}button,a,input,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #168bff;outline-offset:3px}.app-shell{background:#f5f7ff;min-height:100dvh}.home-brand{display:flex;align-items:center;min-height:41px;padding:10px 16px;border-bottom:1px solid #ebeff9;color:#1b1942;font-size:18px;font-weight:650;letter-spacing:-.4px}.home-customer-area{padding:12px 16px}.home-customer-card{display:flex;align-items:center;gap:16px;min-height:72px;padding:8px 12px;border-radius:10px;background:#fff}.home-customer-avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none;background:#f0f3ff}.home-customer-info{min-width:0;flex:1}.home-customer-info h1{font-size:18px;line-height:1.4;font-weight:600;margin:0;color:#1b1942}.home-customer-info p{font-size:13px;line-height:1.6;margin:7px 0 0;color:#302d54;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-main-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:sticky;top:0;z-index:5;border-bottom:1px solid #e5ecff;background:#fff}.home-main-tabs button{position:relative;min-height:44px;border:0;background:none;color:#909cba;font-size:16px;font-weight:400;cursor:pointer;padding:10px 0}.home-main-tabs button.active{color:#237dff;font-weight:600}.home-main-tabs button.active:after{position:absolute;content:"";height:3px;width:21px;border-radius:2px;bottom:0;left:50%;transform:translate(-50%);background:linear-gradient(90deg,#1465ff,#00cbf1)}.page-content{display:block;min-height:0;padding:14px 16px 22px;max-width:100%;gap:0}.portrait-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;min-height:40px;padding:3px;background:#f7f9ff;border-radius:12px;box-shadow:0 2px 5px #1c285a08;margin-bottom:13px}.portrait-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;border:0;border-radius:9px;background:none;color:#929fba;font-size:16px;padding:5px 8px;cursor:pointer}.portrait-tabs button.active{background:#fff;color:#247aff;font-weight:600}.child-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:18px;padding:0 6px;border-radius:12px;color:#237aff;background:#eaf1ff;font-size:13px;line-height:1;font-weight:500}.children-list{display:flex;flex-direction:column;gap:13px}.child-portrait-card{padding:14px 13px 13px;background:#fff;border-radius:10px;min-width:0}.child-card-heading{display:flex;align-items:center;gap:12px;min-width:0}.child-avatar{width:45px;height:45px;flex:none;object-fit:cover;border-radius:50%;background:#f0f3ff}.child-card-identity{flex:1;min-width:0}.child-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.child-title-line h2{margin:0;font-size:17px;line-height:1.4;font-weight:600;color:#1b1942;overflow-wrap:anywhere}.grade-badge{display:inline-block;padding:2px 8px;border-radius:4px;color:#fff;font-size:12px;line-height:1.4;white-space:nowrap;background:linear-gradient(110deg,#1165ff,#00c9ef)}.child-school{margin:5px 0 0;color:#94a0bd;font-size:13px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.child-more{display:inline-flex;align-items:center;gap:3px;border:0;padding:8px 6px;flex:none;color:#8696b6;background:transparent;font-size:13px;cursor:pointer}.child-more span{font-size:21px;line-height:1;font-weight:400}.portrait-score-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 9px;margin-top:24px}.portrait-score{display:flex;min-width:0;min-height:45px;flex-direction:column;align-items:center;justify-content:center;padding:4px 2px;border:1px solid #e0e9ff;border-radius:6px;background:#f9fbff;line-height:1.4}.portrait-score span{font-size:13px;color:#8c9aba;overflow-wrap:anywhere;text-align:center}.portrait-score strong{font-size:15px;font-weight:500;color:#1b1942;max-width:100%;overflow-wrap:anywhere}.portrait-empty-score,.portrait-no-tags{font-size:12px;line-height:1.7;color:#99a5bd;margin:15px 0 0}.portrait-empty-score{padding:10px;background:#fafbff;border-radius:6px;text-align:center;margin-top:24px}.child-key-tags{margin-top:15px}.child-key-tags h3{display:flex;align-items:center;gap:5px;margin:0 0 12px;font-size:15px;font-weight:500;color:#27234a}.child-key-tags h3 i{width:6px;height:6px;flex:none;border-radius:50%;background:linear-gradient(120deg,#1378ff,#00c8ef)}.portrait-tags{display:flex;flex-wrap:wrap;gap:8px}.portrait-tags>span{display:inline-block;max-width:100%;padding:4px 8px;border-radius:7px;background:#f3f4f7;color:#97a2b7;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.portrait-tags>span.positive{color:#16d0c6;background:#e4faf7}.portrait-tags>span.warning{color:#ffad28;background:#fff6e7}.child-key-tags .portrait-no-tags{margin:0}.family-portrait-card,.profile-empty{padding:22px 16px;background:#fff;border-radius:10px;margin:0;color:#8997b4;font-size:13px;line-height:1.8}.family-portrait-card h2{color:#27234a;font-size:17px;margin:0}.family-customer-tags{margin-top:24px}.family-customer-tags h3{font-size:14px;color:#52607f;font-weight:500}.family-child-count{font-size:12px;margin:20px 0 0}.service-nav{display:flex;gap:10px;margin-bottom:16px}.service-nav button{border:1px solid #e1e9fb;border-radius:8px;padding:9px 20px;background:#fff;color:#909cba;cursor:pointer}.service-nav button.active{border-color:#297bff;color:#fff;background:#297bff}.page-content>.page-card{box-shadow:none;margin:0}.page-content>.page-card h1{font-size:21px}.session-context{margin:0 16px;padding:0 0 calc(20px + env(safe-area-inset-bottom));color:#9aa4bc;font-size:11px;line-height:1.8}.session-context summary{cursor:pointer;max-width:max-content}.session-context dl{margin:12px 0;padding:14px;border:1px solid #e2e9f7;border-radius:8px;background:#fff}.session-context dt{font-weight:600;color:#73819e}.session-context dd{margin:0 0 8px;overflow-wrap:anywhere;color:#929db4}.member-detail-mask{z-index:15;padding:20px 12px;align-items:start;overflow:auto;overscroll-behavior:contain}.member-detail-dialog{width:min(100%,640px);margin:10px auto;padding:20px 14px;background:#f5f7ff;border-radius:14px;max-height:calc(100dvh - 60px);overflow:auto;overscroll-behavior:contain}.member-detail-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:20px}.member-detail-head h2{margin:0;color:#1b1942;font-size:19px}.member-detail-head p{font-size:12px;line-height:1.6;color:#94a0b9;margin:6px 0 0}.member-detail-head button{background:none;border:0;color:#8e9ab3;min-width:32px;min-height:32px;font-size:26px;cursor:pointer}.member-selector{display:flex;align-items:center;gap:12px;margin-bottom:20px;color:#8391ae;font-size:13px}.member-selector select{min-width:0;max-width:70%;padding:8px 12px;border:1px solid #dfe7f8;border-radius:7px;background:#fff;color:#302d54;font:inherit}.detail-scores{background:#fff;padding:15px 13px;border-radius:10px;margin-bottom:20px}.detail-scores h2{font-size:15px;font-weight:500;margin:0;color:#302d54}.detail-scores .portrait-score-grid{margin-top:14px}.member-detail-dialog .reports-section>h2{font-size:15px;color:#302d54}.member-detail-dialog .report-card{box-shadow:none;border:0;border-radius:10px;padding-left:12px;padding-right:12px}.member-detail-dialog .report-header h3{font-size:15px}.member-detail-dialog .report-status{font-size:12px}.member-detail-dialog .report-actions{gap:5px}.member-detail-dialog .report-actions>a,.member-detail-dialog .report-actions>button{font-size:13px;width:82px}@media(min-width:720px){.home-brand{padding-left:24px}.home-customer-area{padding:16px 24px}.home-customer-card{padding:12px 16px}.page-content{padding:20px 24px}.children-list{gap:18px}.child-portrait-card{padding:20px 24px}.home-customer-info h1{font-size:20px}.portrait-score{min-height:58px}.portrait-score span{font-size:15px}.portrait-score strong{font-size:17px}.session-context{margin:0 24px}.child-key-tags h3{font-size:17px}.portrait-tags>span{font-size:14px}.child-title-line h2{font-size:20px}.child-school{font-size:14px}}@media(max-width:340px){.home-customer-card{gap:10px}.home-customer-info p{font-size:12px}.home-customer-avatar{width:48px;height:48px}.child-card-heading{gap:8px}.child-more{padding-right:0}.child-title-line{gap:5px}.child-title-line h2{font-size:16px}.grade-badge{padding:2px 5px;font-size:11px}.portrait-score-grid{gap:10px 6px}.portrait-score span{font-size:12px}.member-detail-dialog .report-actions>a,.member-detail-dialog .report-actions>button{width:74px;font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
