*{box-sizing:border-box}body{margin:0;font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#253630;background:#fafbf8}button,select{font:inherit;color:inherit;cursor:pointer}button{border:0;background:none;text-align:left}button:hover,select:hover{filter:brightness(.95)}button:focus-visible,select:focus-visible{outline:2px solid #28836c;outline-offset:3px}.app{height:100dvh;display:grid;grid-template-columns:64px 304px 1fr}.rail{background:#f0f4f0;border-right:1px solid #dfe5df;display:flex;align-items:center;flex-direction:column;gap:13px;padding:23px 0}.brand{background:#23765d;color:white;width:36px;height:36px;display:grid;place-items:center;border-radius:12px;margin-bottom:24px}.rail button{width:43px;height:43px;display:grid;place-items:center;color:#748679;border-radius:12px;position:relative}.rail .active{background:#d7e9de;color:#24674d}.active:before{content:"";position:absolute;width:3px;height:22px;background:#307c5b;left:-10px;border-radius:0 4px 4px 0}.rail .person{margin-top:auto}.avatar{width:38px;height:38px;border-radius:50%;background:#e8dfca}.side{background:#fff;border-right:1px solid #dfe5df;padding:26px 13px;overflow:auto}.sidetop{display:flex;align-items:center;justify-content:space-between;padding:0 9px}.sidetop b{font-size:25px;letter-spacing:-1px}.role{border:1px solid #dde6de;background:#fafbf9;border-radius:8px;padding:5px;color:#57675a;font-size:12px}.sub{font-size:13px;color:#758077}.side .sub{padding:4px 10px}.group{font-size:11px;font-weight:650;color:#748177;letter-spacing:1.3px;margin:31px 10px 9px}.row{display:flex;align-items:center;width:100%;gap:12px;padding:12px 10px;border-radius:12px;margin:3px 0}.row.sel{background:#e7f2eb}.row b{font-size:15px}.row small{display:block;color:#738177;font-size:12px;margin-top:2px}.row time{margin-left:auto;align-self:flex-start;font-size:11px;color:#738177}.disc{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;flex:none}.mint{background:#dcece0;color:#42785b}.amber{background:#fbecd3;color:#a47337}.lilac{background:#eeebf7;color:#8a75a6}.peach{background:#fbebe2;color:#b57958}.blue{background:#e5eff5;color:#658499}main.main{min-width:0;display:flex;flex-direction:column;height:100dvh}.head{min-height:77px;display:flex;align-items:center;gap:12px;background:white;border-bottom:1px solid #e2e7e1;padding:0 32px}.head b{font-size:18px}.head small{display:block;color:#6e7f72;font-size:12px}.dot{display:inline-block;width:6px;height:6px;background:#72a888;border-radius:50%;margin:0 5px 1px 0}.trail{margin-left:auto;color:#758277;font-size:12px}.scroll{flex:1;overflow:auto}.inner{max-width:1080px;margin:auto;padding:26px 4.2%}.hero{background:#e2ede0;border:1px solid #d4e1d3;border-radius:18px;padding:25px 30px;position:relative;overflow:hidden;min-height:168px;display:flex;align-items:center}.hero .copy{position:relative;z-index:1}.eyebrow{font-size:12px;color:#436d52;letter-spacing:1px;font-weight:650}.hero h1{font-size:clamp(25px,2.4vw,38px);letter-spacing:-1px;line-height:1.3;margin:11px 0 12px;color:#223f2c}.meta{font-size:13px;color:#526a54}.art{position:absolute;right:0;top:0;height:100%;width:34%;background:repeating-radial-gradient(ellipse at 88% 105%,transparent 0 20px,#bdceba77 21px 22px,transparent 23px 31px);overflow:hidden}.plate{position:absolute;background:#c5d4bc;width:178px;height:26px;border-radius:50%;bottom:24px;right:29px;transform:rotate(-5deg)}.fruit{position:absolute;right:69px;bottom:36px;width:87px;height:84px;border-radius:50% 47% 47% 48%;background:radial-gradient(circle at 2px 2px,#a15c1729 0 1px,transparent 1.4px) 0 0/6px 7px,radial-gradient(circle at 29% 24%,#ffbe54,#f49b3e 61%,#dd7e30);transform:rotate(-8deg)}.fruit:after{content:"";position:absolute;left:45px;top:-18px;width:41px;height:20px;background:linear-gradient(163deg,#5d8152 48%,#426b45 49%);border-radius:95% 5% 95% 5%;transform:rotate(-12deg)}.slice{width:71px;height:37px;background:repeating-conic-gradient(from -90deg at 50% 0%,#ffc865 0 25deg,#ffedbb 26deg 29deg);border-radius:0 0 45px 45px;border:4px solid #ee9a3a;border-top:3px solid #ffdd95;position:absolute;bottom:29px;right:28px;transform:rotate(-18deg)}.date{display:flex;align-items:center;justify-content:center;gap:11px;color:#79867a;font-size:11px;margin:21px 0}.date:before,.date:after{content:"";width:28px;height:1px;background:#d7dfd6}.msg{display:flex;align-items:flex-start;gap:11px;margin:16px 0}.bot{width:32px;height:32px;border-radius:11px;background:#deebdc;color:#487b54;display:grid;place-items:center;flex:none}.name{font-size:12px;color:#617064;margin-bottom:5px}.name time{font-size:10px;color:#879388;margin-left:7px}.bubble{background:white;border:1px solid #dfe5de;border-radius:2px 14px 14px 14px;padding:14px 19px;max-width:580px}.bubble b{display:block;font-size:17px;margin-bottom:3px}.bubble p{margin:0;color:#526056;font-size:14px}.reply{background:#e1efe4;padding:9px 16px;border-radius:13px 2px 13px 13px;margin-left:auto;font-size:14px}.out{align-items:center}.out img{width:30px;height:30px}.footer{background:#fff;border-top:1px solid #e0e6df;padding:18px 4.2% 22px}.controls{max-width:990px;margin:auto}.controls header{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin-bottom:11px}.pills{display:flex;gap:9px;flex-wrap:wrap}.pill,.minor{border-radius:9px;border:1px solid #d7dfd6;background:white;padding:9px 16px;font-size:13px}.primary{background:#2c6d51;color:white;border-color:#2c6d51}.minor{font-size:12px;padding:4px 10px;background:#f8faf7;color:#647164}.sheet{background:white;border:1px solid #dce3dc;border-radius:15px;margin:19px 0;padding:20px}.sheet h3{margin:0 0 10px}.line{padding:12px 0;border-top:1px solid #ecf0eb;display:flex;justify-content:space-between;gap:10px}.line span{color:#68786a}.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand .ico{width:27px;height:27px}.mobile{display:none}@media(max-width:950px){.app{grid-template-columns:54px 240px 1fr}.inner{padding:20px}.hero{padding:18px}.art{opacity:.65}.bubble{max-width:480px}}@media(max-width:720px){.app{display:block}.rail,.side{display:none}.side.open{display:block;position:fixed;inset:60px 12% 10px 0;z-index:9;border:1px solid #dfe5df;box-shadow:12px 16px 60px #263c302e}.head{min-height:60px;padding:0 14px}.mobile{display:block}.trail{display:none}.hero{min-height:132px}.art{width:28%;opacity:.4}.inner{padding:16px}.hero .meta{max-width:220px}.hero h1{font-size:24px}.footer{padding:12px 16px}.pill{padding:8px 10px}.msg{gap:7px}.side .role{font-size:14px}}

.app{grid-template-columns:82px 335px minmax(0,1fr)}.rail{padding-top:20px;gap:9px}.logo{text-align:center;margin-bottom:23px}.logo strong{font-size:13px;letter-spacing:2px}.brand{margin:0 auto 4px}.rail button{width:56px;height:60px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:12px;font-weight:600}.active:before{left:-13px}.side{padding:25px 12px}.sidetop b{font-size:23px}.listgroup{display:flex;justify-content:space-between;align-items:center;margin:29px 9px 10px;color:#6c786d;font-size:12px}.entry{position:relative;width:100%;display:flex;align-items:center;gap:10px;padding:16px 9px;text-align:left;border-radius:12px;margin-bottom:3px}.entry.chosen{background:#e2eee4}.entry:not(.chosen):hover{background:#f3f6f1}.stamp{display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid #dce4da;color:#647265;background:#fafbf8;border-radius:10px;width:44px;height:50px;line-height:1.2;flex:none}.stamp small{font-size:10px}.stamp strong{font-size:21px;font-weight:600}.chosen .stamp{background:#3b7355;color:white;border-color:transparent}.entrybody b{font-size:14px}.entrybody small{display:block;font-size:12px;color:#69796b;margin-top:3px}.state{margin-left:auto;align-self:flex-start;color:#707c72;background:#f2f4ef;border-radius:5px;padding:1px 5px;font-size:10px;white-space:nowrap}.chosen .state{color:#396849;background:#d2e6d6}.trail{white-space:nowrap}@media(max-width:1000px){.app{grid-template-columns:70px 274px minmax(0,1fr)}.entry{flex-wrap:wrap}.entry .state{align-self:center}.side{padding-left:7px;padding-right:7px}.entrybody b{font-size:13px}}@media(max-width:720px){.app{display:flex;flex-direction:column}.rail{display:flex;flex-direction:row;height:56px;flex:none;padding:4px 12px;gap:8px}.logo{margin:0 6px 0 0;display:flex;align-items:center;gap:4px}.brand{width:28px;height:28px;margin:0}.rail button{height:38px;flex-direction:row;width:auto;padding:0 8px}.rail .ico{width:18px}.active:before,.rail .person{display:none}main.main{height:calc(100dvh - 56px)}.side.open{top:110px}.head .disc{display:none}.head{gap:7px}.head b{font-size:16px}}

.familyrow{display:flex;align-items:center;width:100%;gap:13px;padding:15px 12px;border-radius:12px;margin:3px 0}.familyrow.chosen{background:#e3efe6}.familyrow small{display:block;color:#6a776e;font-size:12px;margin-top:3px}.familyrow em{margin-left:auto;background:#518064;color:white;border-radius:50%;width:18px;height:18px;font:12px/18px system-ui;text-align:center}.face{width:44px;height:44px;border-radius:50%;background:#e8eee6;object-fit:cover}.head .face{width:40px;height:40px}.teacher{display:grid;place-items:center;width:36px;height:36px;background:#dce5db;color:#4a6855;border-radius:50%;font-weight:650}.add{margin-left:auto;background:#e8f2e9;color:#376b4e;padding:8px 14px;border-radius:9px;font-size:13px}.sectiontitle{display:flex;align-items:center;gap:12px}.sectiontitle h2,.sectiontitle h3{margin:0}.sectiontitle h2{font-size:20px}.sectiontitle>span{font-size:12px;color:#65816d}.sessions,.steptabs{display:flex;gap:8px;overflow:auto;margin:12px 0 19px}.session{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #dce3dc;border-radius:10px;padding:9px 14px;white-space:nowrap}.session strong{font-size:16px;letter-spacing:.5px}.session.on,.steptabs .on{border-color:#739783;background:#e7f0e7;color:#285d41}.tag{border-radius:5px;background:#f0f2ed;color:#677164;padding:2px 6px;font-size:11px}.received{background:#dbeadd;color:#396349}.working{background:#faeed9;color:#896b35}.sheet .sectiontitle{justify-content:space-between}.observations{display:flex;gap:15px;margin-top:16px}.observations>div{flex:1;border-top:1px solid #cbdcce;position:relative;padding:10px 0 0}.observations i{position:absolute;top:-3px;width:6px;height:6px;border-radius:50%;background:#85a88a}.observations small{display:block;color:#78877a;font-size:11px}.observations b{font-size:14px}.sheet{margin:15px 0;padding:18px 22px}.sheet textarea,.sheet input,.sheet select{display:block;width:100%;border:1px solid #d2ddd3;background:#fafbf9;padding:10px;border-radius:8px;color:inherit;font:inherit}.sheet textarea{min-height:60px;margin-bottom:10px;resize:vertical}.sheet label{display:block;font-size:13px;margin:10px 0}.fields{display:flex;gap:12px}.fields label{flex:1}.steptabs button{border:1px solid #dae2d9;white-space:nowrap;border-radius:8px;padding:7px}.muted{font-size:14px;color:#708074}.hero{min-height:138px}.hero h1{margin:8px 0}.inner>h1{margin:5px 0}.person .face{width:34px;height:34px}@media(max-width:720px){.observations{flex-wrap:wrap}.session{gap:5px;padding:7px}.sessions{gap:5px}.fields{display:block}.head .face{width:32px;height:32px}}
.rail button span{white-space:normal;line-height:1.15;text-align:center}.rail button{padding:4px 3px;height:auto}
.course-icon{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:14px;background:#fff0d8;font-size:25px}
.practice-entry{gap:11px}.practice-copy{flex:1;min-width:0}.practice-copy b{font-size:15px}.feedback-marker{align-self:flex-start;padding:2px 8px;border-radius:100px;background:#fff0cf;color:#925411;font-size:11px;font-weight:650;white-space:nowrap}
.step-preview{border:1px solid #dce3dd;border-radius:12px;overflow:hidden;margin-top:12px}
.step-preview details+details{border-top:1px solid #dce3dd}
.published-script ul{list-style:none;margin:0;padding:4px 16px 12px 51px;overflow-wrap:anywhere}
.published-script li{padding:9px 0}
.published-script li+li{border-top:1px solid #dce3dd}
.published-prompt{margin:4px 0;color:#45574a;white-space:pre-wrap}
.step-preview summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;min-height:49px;padding:10px 16px}.step-preview summary::-webkit-details-marker{display:none}
.step-preview summary:hover,.step-preview details[open] summary{background:#f4f6f2}.step-num{display:grid;place-items:center;border-radius:50%;width:23px;height:23px;background:#212823;color:#fff;font:600 13px/1 system-ui}.step-preview summary i{width:8px;height:8px;border-right:1.5px solid #6a766b;border-bottom:1.5px solid #6a766b;transform:rotate(45deg);margin:-4px 4px 0 auto}.step-preview details[open] i{transform:rotate(225deg);margin-top:4px}.step-preview p{margin:0;padding:12px 20px 16px 51px;color:#45574a;line-height:1.8}.step-preview summary:focus-visible{outline:2px solid #387751;outline-offset:-3px}

.prior-advice{display:flex;align-items:flex-start;gap:12px;padding:15px 18px;margin:15px 0;background:#fff7e8;border:1px solid #eee0c6;border-radius:13px;color:#584731}.prior-advice>div{flex:1;min-width:0}.prior-icon{color:#99713a;display:flex;padding-top:1px}.prior-icon .ico{width:19px;height:19px}.prior-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.prior-heading b{font-size:14px}.prior-heading button{padding:1px 0;color:#7d6039;font-size:12px}.prior-advice p{margin:5px 0 0;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.practice-head { padding-inline:clamp(20px, 3vw, 44px); }
.practice-head h1 { margin:0; font-size:20px; line-height:1.4; letter-spacing:-.3px; }
.practice-head .course-icon { width:40px; height:40px; border-radius:12px; }
.practice-head small { margin-top:2px; }
.practice-head .duration { margin-left:auto; color:#59715e; font-size:13px; white-space:nowrap; }
.practice-head + .scroll .inner > :first-child { margin-top:0; }
@media(max-width:720px) {
  .practice-head { padding-inline:14px; }
  .practice-head h1 { font-size:17px; }
  .practice-head .course-icon { width:34px; height:34px; font-size:22px; }
  .practice-head small,.practice-head .duration { font-size:11px; }
}
@media(max-width:720px){
  .app{background:#fafbf8;--nav-height:calc(62px + env(safe-area-inset-bottom))}
  .rail{display:flex;position:fixed;inset:auto 0 0;height:var(--nav-height);padding:3px 12px calc(3px + env(safe-area-inset-bottom));gap:0;z-index:12;background:white;border:0;border-top:1px solid #dfe5df}
  .rail .logo,.rail .person{display:none}.rail button{width:auto;flex:1;height:54px;flex-direction:column;background:none;color:#77837b;font-size:12px;gap:2px}.rail .ico{width:23px;height:23px}.rail .active{color:#246b50;background:transparent}.rail .active .ico{stroke-width:2.2}
  main.main{height:calc(100dvh - var(--nav-height))}
  .side.open{display:block;position:fixed;inset:0 0 var(--nav-height);padding:24px 16px;background:white;border:0;box-shadow:none}
  .mobile-nav{display:flex;align-items:center;gap:8px;margin:20px 8px 0}
  .mobile-nav button{border-radius:8px;padding:8px 12px;background:#eff4ef}
  .head .mobile{font-size:25px;padding:0 8px 0 0;min-height:44px;color:#38694f}
  .practice-head{min-height:68px}.practice-head h1{font-size:18px}
  .step-preview summary{min-height:52px}.sheet{padding:17px}
  .footer{padding:12px 16px 12px}
  .controls>.primary{width:100%;text-align:center;min-height:46px;font-size:15px}
  .prior-heading button{min-height:32px}.side.open .listgroup{margin-top:22px}
}
@media(min-width:721px){.mobile-nav{display:none}}


/* ===== 设计稿配套：现有额外页面所需样式（沿用设计稿设计语言） ===== */
:root{--line2:#dce3dc;--pale2:#e3efe6;--green2:#2c6d51;--amber2:#fbecd3}
#status{position:fixed;z-index:30;inset:auto 18px 84px auto;max-width:420px;margin:0;border:1px solid #e5d8bf;background:#fff7e8;color:#6b5228;border-radius:10px;padding:10px 14px;font-size:13px;box-shadow:0 8px 30px #2842341f}
#status:empty{display:none}
#status.error{border-color:#f0c9c2;background:#fff1ee;color:#a03d2e}
.u-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.u-gap{margin-bottom:18px}
.u-spread{justify-content:space-between}
.u-stack{display:grid;gap:10px}
.u-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;align-items:start}
.u-wrap{gap:7px}
.u-end{margin-left:auto}
.u-center{justify-content:center}
.notice{background:#2c3a2d;color:#fff;border-radius:15px;padding:18px 20px;margin:15px 0}
.notice small{color:#d8e2d6}
.notice p{font-size:17px;margin-top:8px}
.reminder-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:8px 0}
.reminder-form label{display:block;font-size:13px;color:#5c6b5f}
.reminder-form label input{margin-top:3px}
.category{border:1px solid var(--line2);background:#fff;border-radius:15px;padding:18px 22px}
.category h2{font-size:18px;margin:0 0 4px}
.activity{padding:12px 0;border-top:1px solid #ecf0eb}
.activity:first-of-type{border-top:0}
.activity h3{font-size:14px;margin:0 0 2px}
.card-title{margin-bottom:2px!important}
.hero.fruit{padding-right:clamp(85px,20vw,230px)}
.sheet-warm{background:#faead5;border-color:#eed9b8}
.sheet fieldset{min-width:0;border:1px solid var(--line2);border-radius:12px;padding:12px 14px;margin:12px 0}
.sheet legend{padding:0 6px;font-weight:650;font-size:13px}
.sheet fieldset label{display:inline-flex;align-items:center;gap:5px;margin:4px 12px 4px 0;font-size:13px}
.sheet input[type=checkbox],.sheet input[type=radio]{accent-color:var(--green2);width:15px;height:15px;vertical-align:middle}
blockquote{margin:8px 0;padding:11px 15px;border-left:4px solid #8f9e80;background:#f0f3ea;border-radius:0 8px 8px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.script-layout{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:16px;align-items:start}
.script-steps details{border-bottom:1px solid var(--line2);padding:6px 0}
.script-steps summary{font-size:13px;padding:4px 0}
.script-steps button{display:block;width:100%;text-align:left;margin:3px 0;padding:7px 10px;background:transparent;border-radius:8px;font-size:13px}
.script-steps button[aria-current=step]{background:#e7f2eb;color:#285d41}
.preview-prompt{white-space:pre-wrap;font-size:15px;line-height:1.8;margin:6px 0}
.preview-option{display:inline-block;border:1px solid #d7dfd6;border-radius:9px;padding:5px 9px;margin:3px 5px 3px 0;font-size:13px;background:#fff}
.minor.on{background:#e7f2eb;color:#285d41;border-color:#739783}
.feedback-label{align-self:flex-start;margin-left:auto;white-space:nowrap;padding:2px 8px;border-radius:100px;background:#fff0cf;color:#925411;font-size:11px;font-weight:650}
.ai-generate{background:linear-gradient(180deg,#f4f9f5,#fff);border-color:#d7e7da}
.ai-generate .sectiontitle{margin-bottom:12px}
.ai-row{display:flex;gap:10px;align-items:flex-start}
.ai-row textarea{flex:1;min-height:66px;resize:vertical;border:1px solid #d2ddd3;background:#fff;padding:11px 13px;border-radius:10px;color:#253630;font:inherit;line-height:1.6}
.ai-row textarea:focus{outline:2px solid #28836c;outline-offset:2px;border-color:transparent}
.ai-row .pill{flex:none;align-self:stretch;display:flex;align-items:center;white-space:nowrap}
.ai-hint{display:flex;gap:9px;align-items:flex-start;margin-top:11px;color:#5c6b5f;font-size:13px}
.ai-hint .ico{width:17px;height:17px;flex:none;margin-top:2px;color:#3b7355}
.ai-hint p{margin:0;line-height:1.6}
/* 层级化步骤导航：阶段徽章 / 步骤编号 / 连接线 / 已核对打勾 */
.script-steps details{border-bottom:1px solid var(--line2,#e5ebe4);padding:6px 0}
.script-steps summary{list-style:none;display:flex;align-items:center;gap:9px;padding:8px 6px;cursor:pointer;border-radius:9px}
.script-steps summary::-webkit-details-marker{display:none}
.script-steps summary:hover{background:#f4f8f4}
.grp-badge{flex:none;width:21px;height:21px;display:grid;place-items:center;border-radius:7px;background:#e7f2eb;color:#285d41;font-size:11px;font-weight:700}
.script-steps details[open] .grp-badge{background:#2c6d51;color:#fff}
.grp-name{flex:1;font-size:13px;font-weight:650;color:#2f4036}
.grp-count{flex:none;font-size:11px;color:#8a978c}
.grp-steps{margin:2px 0 6px 16px;padding-left:13px;border-left:1px solid #dbe5dc}
.script-steps button[role=tab]{display:flex;align-items:center;gap:8px;width:100%;text-align:left;margin:2px 0;padding:7px 9px;background:transparent;border-radius:8px;font-size:13px;position:relative}
.script-steps button[role=tab]::before{content:"";position:absolute;left:-14px;top:50%;width:10px;height:1px;background:#dbe5dc}
.script-steps button[role=tab]:hover{background:#f4f8f4}
.script-steps button[role=tab].on{background:#e7f2eb;color:#285d41;font-weight:650}
.step-no{flex:none;font-size:11px;color:#8a978c;font-variant-numeric:tabular-nums}
.script-steps button[role=tab].on .step-no{color:#3f7d62}
.step-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.step-done{flex:none;color:#2c6d51;font-size:12px;font-weight:700}
.crumb{font-size:12px;color:#7d8b80;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #eef1ec}
.crumb span{margin:0 5px;color:#aeb9b0}
.crumb b{color:#2f4036;font-weight:650}
.script-edit form{margin:0}
.advice-link{color:#7d6039;font-size:12px;padding:1px 0}
.prompt{font-size:clamp(17px,2.2vw,22px);font-weight:650;line-height:1.5;margin:8px 0}
[data-page=run] .sheet{background:#fff}
@media(max-width:1000px){.script-layout{grid-template-columns:1fr}}
@media(max-width:720px){
  #status{inset:auto 12px calc(70px + env(safe-area-inset-bottom));left:12px;right:12px;max-width:none}
  .script-layout{grid-template-columns:1fr}
  .sheet fieldset label{margin:5px 10px 5px 0}
  .hero.fruit{padding-right:66px}
  .notice p{font-size:15px}
}

/* ===== 练习录制 + AI 总结（录制 + AI 总结方案） ===== */
.rec-hint{display:flex;align-items:center;gap:9px;padding:8px 14px;border:1px solid #e2e9e2;background:#fbfdfb;border-radius:11px;margin:4px 0 12px;font-size:12.5px;color:#5c6b5f}
.rec-hint .rec-dot{width:8px;height:8px;border-radius:50%;background:#c9d4cb;flex:none}
.rec-hint.on .rec-dot{background:#e05a4e;box-shadow:0 0 0 3px #f6dcd9;animation:rec-pulse 1.6s infinite}
.rec-hint.on .rec-text{color:#3a4a40;font-weight:650}
.rec-text{flex:1}
.rec-toggle{margin-left:auto;font-size:12px;color:#6b786d;padding:3px 9px;border:1px solid #dbe4db;border-radius:8px;background:#fff}
.rec-toggle:hover{background:#f0f5f0}
@keyframes rec-pulse{50%{opacity:.4}}
.ai-summary{border-color:#cfe2d5;background:linear-gradient(180deg,#f6fbf7,#fff)}
.ai-summary .tag{background:#e5efff;color:#3e6699}
.ai-summary-loading{display:flex;align-items:center;gap:10px;color:#6b786d;font-size:13.5px;padding:8px 0}
.ai-summary-loading .rec-dot{width:8px;height:8px;border-radius:50%;background:#3f9269;box-shadow:0 0 0 3px #d6ecdf;animation:rec-pulse 1.4s infinite}
.ai-narrative{font-size:15px;line-height:1.9;color:#3a4a40;margin:12px 0}
.ai-moments{display:grid;gap:6px;margin:10px 0 4px;padding:10px 0 0;border-top:1px solid #e5eee7}
.ai-moment{display:flex;align-items:baseline;gap:10px;font-size:13px}
.ai-moment time{flex:none;color:#8a978c;font-variant-numeric:tabular-nums;font-size:12px;min-width:44px}
.ai-moment span{color:#45574a}
.ai-note{font-size:12px;color:#8a978c;margin:8px 0 0}
/* 家庭练习设置：回应选项增删 */
.fields{flex-wrap:wrap}
.option-row{display:flex;align-items:flex-end;gap:6px;flex:1 1 150px;min-width:0}
.option-row label{flex:1;min-width:0;margin:10px 0}
.option-remove{flex:none;height:40px;width:34px;border:1px solid #e3d3d0;background:#fff8f6;color:#a9584b;border-radius:8px;font-size:20px;line-height:1}
.option-remove:hover{background:#fdece8}

/* ===== 家庭练习设置精简：装饰溢出修复 + 标签式回应选项 + 输入框内嵌按钮 ===== */
/* 修复治疗师首页右下角橙子装饰溢出到页面外 */
.hero{overflow:hidden}
.hero.fruit{padding-right:0}

/* 回应选项改为带底色的标签：每个标签右上角一个叉，行末一个加号 */
.option-chips{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.option-chip{position:relative;display:inline-flex;align-items:center;background:#eef4ee;border:1px solid #dbe6dc;border-radius:10px;padding:5px 28px 5px 11px;max-width:100%}
.option-chip input{border:0!important;background:transparent!important;width:auto;min-width:56px;max-width:170px;padding:3px 0!important;font:inherit;color:#2f4036;box-shadow:none;outline:none;border-radius:4px}
.option-chip input:focus{outline:2px solid #28836c!important;outline-offset:2px}
.option-chip input[readonly]{color:#4b5d50}
.chip-x{position:absolute;top:-7px;right:-7px;width:19px;height:19px;border:1px solid #e7d3cf;border-radius:50%;background:#fff;color:#a9584b;font-size:12px;line-height:1;display:grid;place-items:center;padding:0}
.chip-x:hover{background:#fdece8}
.chip-add{width:34px;height:34px;border:1px dashed #b9cbbd;border-radius:10px;background:#fafcf9;color:#3b7355;font-size:20px;line-height:1;display:grid;place-items:center;padding:0}
.chip-add:hover{background:#eef4ee}

/* 准备页取景自检 */
.prep-camera .camera-frame{position:relative;border:1px solid #dbe6dc;border-radius:12px;overflow:hidden;background:#0e1512;aspect-ratio:4/3;margin:10px 0}
.camera-frame video{width:100%;height:100%;object-fit:cover;display:block}
.camera-frame .cam-tip{position:absolute;left:10px;bottom:10px;background:#000000a6;color:#fff;font-size:12px;padding:4px 9px;border-radius:100px}
.camera-frame.ready .cam-tip{background:#2c6d51e6}
/* 摘要页：本机录像回看与可点击的关键瞬间 */
.local-video{width:100%;max-height:260px;border-radius:10px;background:#0e1512;margin:10px 0;display:block}
button.ai-moment{width:100%;text-align:left;background:none;border:0;padding:6px 4px;border-radius:8px}
button.ai-moment:hover{background:#f2f7f3}

/* AI 生成：说明、例子、按钮都收进输入框 */
.ai-box{position:relative}
.ai-box textarea{padding:11px 132px 46px 13px!important}
.ai-submit{position:absolute;right:9px;bottom:9px;display:flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center}
@media(max-width:720px){
  .ai-box textarea{padding:11px 13px 52px!important}
  .ai-submit{left:10px;right:10px;bottom:10px}
}
/* 侧边栏「家庭练习设置」按两行排；移动端底部导航保持单行不换行 */
@media(max-width:720px){
  .rail button span{white-space:nowrap}
}
.block-chat{display:grid;gap:14px;margin:20px 0}
.block-turn{max-width:88%;justify-self:start;background:white;border:1px solid #dce6df;border-radius:14px;padding:12px 16px;scroll-margin:12px;overflow-wrap:anywhere}
.block-turn.mine{justify-self:end;background:#e6f3eb}
.block-turn p{white-space:pre-wrap;margin:4px 0}
.block-turn h3{margin:4px 0}
#block-reply{margin:16px 0}
.inner:has(.block-room){height:100%;max-width:none;padding:0}
.block-room{height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,29%);background:#fafafa}
.block-thread{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto}
.block-room .block-chat{align-content:start;overflow:auto;padding:22px 18px;margin:0}
.block-chat .block-turn{display:flex;align-items:flex-end;gap:8px;max-width:95%;background:none;border:0;padding:0;min-width:0}
.block-turn.mine{flex-direction:row-reverse}
.block-turn .face,.chat-portrait{flex:none;width:36px;height:36px;border-radius:50%}
.chat-portrait{display:inline-grid;place-items:center;background:#e2d8ef;font-size:23px}
.chat-message{min-width:0}
.chat-message small{color:#67756f}
.mine .chat-message small{display:block;text-align:right}
.chat-bubble{background:#eceeed;padding:10px 14px;border-radius:15px 15px 15px 4px}
.mine .chat-bubble{background:#306b58;color:white;border-radius:15px 15px 4px 15px}
.block-compose{padding:12px 16px;background:white;border-top:1px solid #dde5df}
.block-compose #block-reply{display:flex;align-items:center;gap:8px;margin:10px 0 0}
.block-compose textarea{min-width:0;flex:1}
.block-resources{padding:18px;background:#f5f3ee;border-left:1px solid #e2e3db;overflow:auto}
.block-resources summary{font-weight:650;cursor:pointer}
@media(max-width:900px){
.block-room{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
.block-resources{grid-row:1;padding:6px 16px;border-bottom:1px solid #e2e3db}
.block-resources details[open]{max-height:20dvh;overflow:auto}
}

/* ===== Friends 视觉规范：搭积木对话页。字号阶梯、语义色、聊天面板、输入栏全部对齐 Friends ===== */
/* 字号阶梯与语义色逐项照 Friends 的 App.vue / skin.js；宽屏正文收半级 */
:root{
  --fr-fs-xs:11px; --fr-fs-sm:12px; --fr-fs-md:13px; --fr-fs-base:14px;
  --fr-fs-body:15px; --fr-fs-lg:16px; --fr-fs-xl:18px;
  --fr-surface:#fff; --fr-fill:#f2f4f5; --fr-line:#e7e9eb;
  --fr-chat:#fafafa; --fr-bubble-in:#eeeef0; --fr-bubble-text:#1a1a1b;
  --fr-text:#1f2328; --fr-text-2:#5d5a54; --fr-text-3:#8d897f;
  --fr-bg:#f6f4ef; --fr-accent:#2f6b5c; --fr-accent-soft:#e8f1ed; --fr-accent-mid:#9cc6b6;
}
@media(min-width:768px){
  :root{--fr-fs-base:13.5px;--fr-fs-body:14.5px;--fr-fs-lg:15px;--fr-fs-xl:17px}
}
/* 紧凑顶栏：56px 高、15px 名字、13px 状态，与 Friends 聊天头一致 */
.head.chat-head{
  height:56px;min-height:56px;padding:0 4px;display:flex;align-items:center;gap:8px;
  background:var(--fr-surface);box-shadow:0 1px 0 var(--fr-line);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
.head.chat-head .chat-portrait{width:40px;height:40px;flex:none;font-size:25px;border-radius:50%}
.head.chat-head .chat-who{min-width:0;display:flex;flex-direction:column;line-height:1.3}
.head.chat-head .chat-who b{font-size:var(--fr-fs-lg);font-weight:600;color:var(--fr-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.head.chat-head .chat-who small{font-size:var(--fr-fs-md);color:var(--fr-text-3)}
.head.chat-head .chat-head-action{margin-left:auto;flex:none;padding:6px 12px;border:1px solid var(--fr-line);border-radius:16px;background:var(--fr-surface);color:var(--fr-text-2);font-size:var(--fr-fs-base);white-space:nowrap}

/* 聊天 + 资料两栏，分隔条可拖动 */
.fr-room{grid-template-columns:minmax(0,1fr) 8px var(--res-w,300px);background:var(--fr-chat)}
.fr-chat-col{min-height:0;display:flex;flex-direction:column}
.fr-room .block-chat{min-height:0;background:var(--fr-chat);padding:0}
.fr-messages{max-width:none;margin:0;padding:8px 20px 4px;min-height:100%;display:flex;flex-direction:column;justify-content:flex-start}
/* 内容少时贴底、内容多时允许向上滚：auto margin 在溢出时自动归零，不会把顶部内容顶出滚动区 */
.fr-messages::before{content:"";margin-top:auto}
.fr-resize{position:relative;cursor:col-resize;touch-action:none;background:var(--fr-surface);z-index:3}
.fr-resize::after{content:"";position:absolute;left:3px;top:0;bottom:0;width:2px;background:transparent;transition:background .15s}
.fr-resize:hover::after,.fr-resize.dragging::after{background:var(--fr-accent-mid)}
.fr-resources{background:var(--fr-bg);border-left:1px solid var(--fr-line);padding:14px 0 0;overflow:auto;color:var(--fr-text)}
.fr-resources>*{margin-left:18px;margin-right:18px}
.fr-res-head{display:flex;align-items:center;gap:8px;font-size:var(--fr-fs-base);color:var(--fr-text-2)}
.fr-res-head .ico{width:18px;height:18px;color:var(--fr-accent)}
.fr-resources h3{margin:12px 0 6px;font-size:var(--fr-fs-lg);font-weight:600}
.fr-resources p{font-size:var(--fr-fs-body);line-height:1.5;color:var(--fr-text-2)}
.fr-resources hr{border:0;border-top:1px solid var(--fr-line);margin:12px 0}
.fr-resources small{font-size:var(--fr-fs-sm);color:var(--fr-text-3)}

/* 气泡：对方浅灰、家长主色，正文走 Friends 的 --fs-body（宽屏 14.5px），34px 头像 */
.fr-room .block-chat .block-turn{gap:10px;max-width:min(100%,900px);margin-top:20px}
.fr-room .block-chat .block-turn.mine{flex-direction:row-reverse}
.fr-room .block-turn .face,.fr-room .chat-portrait{width:34px;height:34px}
.fr-room .block-turn .chat-portrait{display:grid;place-items:center;border-radius:50%;background:#e2d8ef;font-size:21px}
.fr-room .chat-message small{font-size:var(--fr-fs-xs);color:var(--fr-text-3);margin-bottom:3px}
.fr-room .block-turn.mine .chat-message small{text-align:right}
.fr-room .chat-bubble{background:var(--fr-bubble-in);color:var(--fr-bubble-text);padding:7px 12px;border-radius:14px;font-size:var(--fr-fs-body);line-height:1.5;display:flex;flex-direction:column;gap:3px}
.fr-room .block-turn.mine .chat-bubble{background:var(--fr-accent);color:#fff}
.fr-room .chat-bubble b{font-size:var(--fr-fs-body);font-weight:600}
.fr-room .chat-bubble span{white-space:pre-wrap;overflow-wrap:anywhere}
.fr-room .fr-image{max-width:100%;max-height:260px;border-radius:10px;display:block;margin:2px 0}
.fr-room .fr-file{color:inherit;text-decoration:none;overflow-wrap:anywhere}
.fr-room .fr-file small{display:block;opacity:.7;font-size:var(--fr-fs-xs)}
.fr-room .fr-voice{max-width:260px;height:34px}

/* 气泡流末尾：预设选项 + 右侧次要按钮 */
.fr-chips{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 0 44px}
.fr-chips.fr-nav{justify-content:flex-end;padding-right:0}
.fr-chip{padding:6px 14px;border-radius:16px;background:var(--fr-accent-soft);color:var(--fr-accent);font-size:var(--fr-fs-base);white-space:nowrap}
.fr-chip.minor{background:var(--fr-fill);color:var(--fr-text-2)}
.fr-nav-chip{padding:5px 12px;border:1px solid var(--fr-line);border-radius:16px;background:var(--fr-surface);color:var(--fr-text-2);font-size:var(--fr-fs-base);white-space:nowrap}

/* 文案编辑：正常态完全是对话外观；点「编辑文案」后才显示可编辑虚线 */
.head.chat-head .chat-head-action.copy-action{margin-left:0}
.head.chat-head .chat-head-action.copy-action.primary{background:var(--fr-accent);border-color:var(--fr-accent);color:#fff}
.block-editable[contenteditable="true"]{outline:1px dashed var(--fr-accent);outline-offset:2px;border-radius:3px;cursor:text;min-width:1.5em}
.block-editable[contenteditable="true"]:focus{outline:2px solid var(--fr-accent);background:rgba(48,107,88,.06)}
.block-edit-chip[contenteditable="true"]{cursor:text;outline:1px dashed var(--fr-accent);outline-offset:2px;white-space:normal;display:inline-block;max-width:420px}
.block-edit-chip[contenteditable="true"]:focus{outline:2px solid var(--fr-accent)}

/* 输入栏：桌面版整块灰底圆角框，文字在上、工具+发送在下 */
.fr-composer{background:var(--fr-surface);box-shadow:0 -1px 0 var(--fr-line);padding:0}
.fr-composer-inner{display:flex;flex-wrap:wrap;align-items:center;row-gap:2px;margin:8px 16px 10px;padding:0 8px 6px;background:var(--fr-fill);border:1px solid transparent;border-radius:10px;transition:border-color .15s,background .15s}
.fr-composer-inner:focus-within{background:var(--fr-surface);border-color:var(--fr-line)}
.fr-composer-input{flex:1 0 100%;min-width:0;min-height:52px;padding:10px 14px;border:0;background:transparent;resize:none;outline:none;color:var(--fr-text);font:var(--fr-fs-body)/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;max-height:40vh;overflow-y:auto}
.fr-composer-input::placeholder{color:var(--fr-text-3)}
.fr-tools{display:flex;align-items:center;width:100%;gap:2px}
.fr-tool{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:50%;color:var(--fr-text-3)}
.fr-tool:hover{background:var(--fr-fill)}
.fr-tool.recording{color:#c4473a;background:#fdecea}
.fr-ico{width:22px;height:22px;fill:currentColor}
.fr-send{margin-left:auto;height:32px;padding:0 20px;border-radius:8px;background:var(--fr-accent);color:#fff;font-size:var(--fr-fs-body);display:flex;align-items:center;justify-content:center}
.fr-send.idle{color:var(--fr-text-3);background:var(--fr-fill);cursor:default}
.fr-send:hover{filter:brightness(.95)}
@media(max-width:900px){
  .fr-room{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .fr-resize{display:none}
  .fr-resources{grid-row:1;padding:8px 16px;border-left:0;border-bottom:1px solid var(--fr-line);max-height:20dvh;overflow:auto}
  .fr-messages{padding:8px 12px 4px}
  .fr-chips{padding-left:0}
}
.branch-preview{margin:12px 0;min-width:0}
.branch-preview summary{cursor:pointer;color:#306b58;font-weight:600;padding:6px 0}
.branch-pairs{margin:8px 0 16px;background:#fff;border:1px solid #dde6df;border-radius:12px;overflow:hidden}
.branch-pairs>div{display:grid;grid-template-columns:minmax(100px,30%) 1fr;border-bottom:1px solid #dde6df}
.branch-pairs>div:last-child{border:0}
.branch-pairs dt,.branch-pairs dd{margin:0;padding:12px}
.branch-pairs dt{background:#eef5ef;color:#315d4b}
.branch-pairs p{margin:4px 0 0}
@media(max-width:600px){.branch-pairs>div{grid-template-columns:1fr}.branch-pairs dt,.branch-pairs dd{padding:8px 12px}}
.branch-source{margin-top:10px;border-top:1px solid #e2e8e3;padding-top:5px}
.branch-source summary{font-size:13px}
.branch-source blockquote{margin:8px 0;padding:6px 12px;border-left:3px solid #a8c7b4;background:#f4f7f3}
.branch-source select{max-width:100%;margin:6px 0}

/* ===== 课程设置：搭积木「练习前说明」（bintro-） ===== */
.bintro-lead{margin:6px 0 14px;color:#57675a;font-size:13.5px;line-height:1.7}
.bintro-phone{max-width:430px;border:1px solid #e5ddd2;border-radius:16px;background:#fffdfb;padding:20px 18px;margin:0 0 16px;box-shadow:0 10px 26px -22px rgba(58,44,32,.55)}
.bintro-eyebrow{font-size:11px;letter-spacing:1.4px;color:#a9542f;font-weight:650}
.bintro-phone h4{font-size:19px;margin:7px 0 15px;line-height:1.45;letter-spacing:-.2px}
.bintro-points{list-style:none;margin:0;padding:0;counter-reset:b}
.bintro-points li{counter-increment:b;position:relative;padding-left:29px;margin-bottom:15px}
.bintro-points li:before{content:counter(b);position:absolute;left:0;top:1px;width:20px;height:20px;border-radius:50%;background:#f6e9e1;color:#a9542f;font:700 11.5px/20px system-ui;text-align:center}
.bintro-points b{display:block;font-size:14.5px;color:#253630;margin-bottom:2px}
.bintro-points p{margin:0;font-size:13.5px;color:#55655a;line-height:1.78}
.bintro-closing{margin:0;padding:11px 13px;background:#fbf6f1;border-radius:9px;font-size:13.5px;color:#55655a;line-height:1.78}
.bintro-cta{margin-top:16px;background:#a9542f;color:#fff;border-radius:12px;padding:13px;text-align:center;font-weight:600;font-size:15px;letter-spacing:.3px}
.bintro-tiny{text-align:center;font-size:11.5px;color:#8b9a8e;margin:8px 0 0}
.bintro-block{margin:10px 0;border:1px solid #dce3dc;border-radius:10px;background:#fff;overflow:hidden}
.bintro-block>summary{cursor:pointer;list-style:none;padding:12px 14px;font-weight:600;font-size:13.5px;color:#2c6d51;display:flex;align-items:center;gap:9px}
.bintro-block>summary::-webkit-details-marker{display:none}
.bintro-block>summary:before{content:"";width:6px;height:6px;border-right:1.5px solid #6a8a75;border-bottom:1.5px solid #6a8a75;transform:rotate(-45deg);flex:none;transition:transform .15s;margin-top:-3px}
.bintro-block[open]>summary:before{transform:rotate(45deg);margin-top:0}
.bintro-block[open]>summary{background:#f5f8f4;border-bottom:1px solid #e7ede6}
.bintro-body{padding:13px 15px 15px;font-size:13.5px;color:#45574a;line-height:1.78}
.bintro-body>b{display:block;font-size:14.5px;color:#253630;margin-bottom:6px}
.bintro-body p{margin:0 0 8px}
.bintro-steps{list-style:none;counter-reset:s;margin:8px 0;padding:0}
.bintro-steps li{counter-increment:s;position:relative;padding-left:26px;margin-bottom:8px;color:#55655a}
.bintro-steps li:before{content:counter(s);position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:50%;background:#e3efe6;color:#2c6d51;font:700 11px/18px system-ui;text-align:center}
.bintro-steps b{display:block;color:#253630}
.bintro-warns,.bintro-open{list-style:none;margin:0;padding:0}
.bintro-warns li,.bintro-open li{padding:9px 0;border-top:1px solid #eef2ec}
.bintro-warns li:first-child,.bintro-open li:first-child{border-top:0;padding-top:2px}
.bintro-warns b,.bintro-open b{display:block;color:#253630;font-size:13.5px}
.bintro-warns b:before{content:"× ";color:#a9542f;font-weight:700}
.bintro-open b:before{content:"? ";color:#a9542f;font-weight:700}
.bintro-warns span,.bintro-open span{color:#5c6b60;font-size:13px}
.bintro-scroll{overflow-x:auto;margin:4px 0 14px}
.bintro-table{width:100%;min-width:440px;border-collapse:collapse;font-size:12.5px}
.bintro-table th{text-align:left;font-size:11.5px;letter-spacing:.4px;color:#6f7d72;font-weight:650;background:#f5f8f4;padding:8px 9px;border-bottom:1px solid #dce3dc}
.bintro-table td{padding:9px;border-bottom:1px solid #eef2ec;vertical-align:top;line-height:1.65;color:#45574a}
.bintro-table td b{color:#253630}
.bintro-table code{font:12px/1.5 ui-monospace,Menlo,monospace;background:#f2f5f0;color:#2c6d51;padding:1px 5px;border-radius:3px;white-space:nowrap}
.bintro-lvl{color:#2c6d51;font-weight:700;font-variant-numeric:tabular-nums}
.bintro-std{display:block;margin-top:5px;padding-left:9px;border-left:2px solid #d8c7b6;color:#5c6b60;font-size:12.5px}
.bintro-warnrow td{background:#fdf6f2}
.bintro-sub{font-size:13px;margin:16px 0 6px;color:#253630}
.bintro-basis{margin:0}
.bintro-basis dt{font-weight:650;font-size:13px;color:#253630;margin-bottom:2px}
.bintro-basis dd{margin:0 0 10px;color:#5c6b60;font-size:12.5px;line-height:1.7}
.bintro-basis dd:last-child{margin-bottom:0}
/* 家长端看到的是真实页面，不是预览卡：去掉卡片边框与投影 */
.bintro-live{max-width:560px;border:0;background:transparent;box-shadow:none;padding:0 0 4px}
.bintro-start{display:block;width:100%;margin-top:18px;background:#a9542f;color:#fff;border-radius:12px;padding:14px;text-align:center;font-weight:600;font-size:15.5px;letter-spacing:.3px}
.bintro-start:hover{background:#96482a;filter:none}
@media(max-width:720px){
  .bintro-phone{max-width:none;padding:17px 15px}
  .bintro-phone h4{font-size:17.5px}
  .bintro-cta{padding:12px;font-size:14.5px}
}

/* ===== 流程全览图：design/练习流程全览图.html 的视觉接入（fm-） ===== */
/* 图例移到紧凑顶栏；窄屏顶栏高度自适应容纳 */
.head.chat-head .chat-head-legend{display:flex;align-items:center;gap:12px;margin-left:auto;font-size:12px;color:var(--fr-text-3);white-space:nowrap}
.head.chat-head.show-legend .chat-head-action{margin-left:8px}
.head.chat-head .chat-head-legend span{display:inline-flex;align-items:center;gap:5px}
.head.chat-head .chat-head-legend .fm-dot{width:10px;height:10px;border-radius:3px;display:inline-block}
.fm-dot{width:10px;height:10px;border-radius:3px;display:inline-block}
.fm-stage{padding:18px 20px 6px}
.fm-stage-title{font-size:13px;font-weight:500;color:#6f6e68;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.fm-stage-title:before{content:"";width:4px;height:14px;border-radius:2px;background:#888780}
.fm-flow{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
.fm-card{background:#fff;border:1px solid #e3e2da;border-radius:10px;padding:10px 14px;cursor:pointer;transition:border-color .12s,box-shadow .12s;position:relative;min-width:150px;max-width:210px;display:block;text-align:left;font:inherit;color:#2c2c2a}
.fm-card:hover{box-shadow:0 2px 8px rgba(0,0,0,.06);border-color:#cfcec4}
.fm-card .fm-t{display:block;font-size:13px;font-weight:500;line-height:1.6}
.fm-card .fm-meta{display:block;font-size:11px;color:#9a9991;margin-top:3px}
.fm-card.fm-main{border-left:3px solid #378add}
.fm-card.fm-branch{border-left:3px solid #639922}
.fm-card.fm-end{border-left:3px solid #e24b4a}
.fm-card.active{border-color:#378add;box-shadow:0 0 0 2px #e6f1fb}
.fm-card.lit{border-color:#ba7517;box-shadow:0 0 0 2px #faeeda;animation:fmflash 1s 2}
@keyframes fmflash{0%,100%{box-shadow:0 0 0 2px #faeeda}50%{box-shadow:0 0 0 4px #ba7517}}
.fm-expander{flex-basis:100%}
.fm-expand{background:#fff;border:1px solid #e3e2da;border-radius:10px;padding:14px 16px;margin-bottom:10px;scroll-margin:14px}
.fm-expand-head{display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.fm-tt{font-size:14px;font-weight:500;line-height:1.6}
.fm-head-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.fm-icon{width:24px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3e2da;border-radius:6px;background:#fff;color:#378add;font-size:14px;line-height:1;cursor:pointer}
.fm-icon:hover{border-color:#378add;background:#e6f1fb}
.fm-incoming-btn.active{border-color:#ba7517;background:#faeeda;color:#633806}
.fm-incoming{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;padding:8px;border:1px solid #f0c47a;background:#fffbf3;border-radius:8px}
.fm-incoming-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;padding:7px 10px;border:1px solid #e3e2da;border-radius:8px;background:#fff;font:inherit;text-align:left;cursor:pointer;animation:fmincoming .8s ease-in-out 1}
.fm-incoming-row:hover{background:#faeeda}
.fm-incoming-from{font-size:13px;font-weight:500;color:#2c2c2a}
.fm-incoming-go{color:#9a9991}
.fm-incoming-cond{font-size:13px;color:#0c447c}
@keyframes fmincoming{0%,100%{background:#fff;box-shadow:none}50%{background:#faeeda;box-shadow:0 0 0 3px #faeeda}}
.fm-row.fm-row-flash{animation:fmincoming .8s ease-in-out 1}
.fm-body{font-size:13px;color:#6f6e68;white-space:pre-wrap;margin-bottom:12px;line-height:1.75;overflow-wrap:anywhere}
.fm-body.collapsed{display:none}
.fm-note{margin-bottom:10px;border:1px dashed #cfcec4;border-radius:8px}
.fm-note summary{font-size:12px;color:#9a9991;cursor:pointer;padding:8px 12px;list-style:none}
.fm-note summary::-webkit-details-marker{display:none}
.fm-note-body{font-size:12px;color:#6f6e68;padding:0 12px 10px;white-space:pre-wrap;line-height:1.7}
.fm-rows{display:flex;flex-direction:column;gap:6px}
.fm-row-wrap{position:relative;display:flex;flex-direction:column;gap:4px}
.fm-row{display:flex;align-items:center;gap:10px;border:1px solid #e3e2da;border-radius:8px;padding:8px 12px;cursor:pointer;transition:background .12s;background:#fff;font:inherit;color:inherit;text-align:left;width:100%}
.fm-row:hover{background:#e6f1fb}
.fm-cond{flex:0 0 200px;font-size:13px;color:#2c2c2a;min-width:0;overflow-wrap:anywhere}
.fm-cond-input{flex:0 0 200px;min-width:0;padding:0 0 2px;border:0;border-bottom:1px dashed #cfcec4;border-radius:0;background:transparent;font:inherit;font-size:13px;color:#2c2c2a}
.fm-cond-input:focus,.fm-to-select:focus{outline:1px solid #378add;outline-offset:1px}
.fm-go{color:#9a9991;flex:0 0 auto}
.fm-to{font-size:13px;font-weight:500;color:#0c447c;flex:1;min-width:0;overflow-wrap:anywhere}
.fm-to-select{flex:1;min-width:0;max-width:100%;padding:3px 6px;border:1px solid #d2ddd3;border-radius:6px;background:#fff;font:inherit;font-size:13px;color:#0c447c}
.fm-row-close{position:absolute;top:4px;right:4px;width:20px;height:20px;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:5px;background:#fff;color:#9a9991;font-size:16px;line-height:1;cursor:pointer;opacity:0;transition:opacity .12s}
.fm-row-wrap:hover .fm-row-close,.fm-row-close:focus-visible{opacity:1}
.fm-row-close:hover{background:#fdeaea;color:#e24b4a}
.fm-tag{display:inline-block;font-size:11px;padding:0 7px;border-radius:8px;margin-left:6px;vertical-align:1px;background:#faeeda;color:#633806}
.fm-empty{color:#6f6e68;font-size:13px;padding:4px 0}
.fm-foot{padding:12px 20px;color:#9a9991;font-size:12px}
.fm-intro{margin:12px 20px 20px;border:1px solid #dce3dc;border-radius:10px;background:#fff}
.fm-intro>summary{cursor:pointer;padding:10px 14px;font-weight:600;color:#2c6d51}
@media(max-width:720px){
  .head.chat-head.show-legend{height:auto;min-height:56px;padding:8px 4px;flex-wrap:wrap;row-gap:6px}
  .head.chat-head .chat-head-legend{margin-left:0;width:auto;padding-left:48px}
  .head.chat-head .chat-head-action{margin-left:0}
  .head.chat-head.show-legend .chat-head-action{margin-left:8px}
  .fm-stage{padding:16px 14px 4px}
  .fm-card{min-width:140px;max-width:none;flex:1 1 45%}
  .fm-row{flex-wrap:wrap;gap:4px 8px}
  .fm-cond,.fm-cond-input{flex:0 0 auto;min-width:100%}
  .fm-cond-input{width:100%}
  .fm-go{margin-left:auto}
  .fm-to,.fm-to-select{flex:1 1 100%;padding-left:18px}
  .fm-row-close{opacity:1}
  .fm-foot{padding:10px 14px}
  .fm-intro{margin:12px 14px 18px}
}

.step-chat,.sc-fab{position:fixed;right:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:45}
.step-chat{width:min(390px,calc(100vw - 32px));height:min(690px,85dvh);display:flex;flex-direction:column;box-sizing:border-box;background:white;border:1px solid #d5dfdf;border-radius:16px;box-shadow:0 8px 32px #17352d27;overflow:hidden;color:#263b42}
.sc-head,.sc-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}.sc-head{padding:12px 16px;border-bottom:1px solid #e2e8e5}.sc-head b,.sc-head small{display:block}.sc-head small,.sc-message small{color:#65786f;font-size:12px}.sc-log{flex:1;min-height:0;overflow:auto;background:#f7f9f8;padding:12px;overscroll-behavior:contain}.sc-welcome{font-size:14px;color:#52645f}
.sc-message,.sc-preview{background:white;padding:9px 13px;border-radius:10px;margin:0 18px 8px 0}.sc-message p,.sc-preview p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.sc-user{background:#e3eff7;margin-left:20px;margin-right:0}.sc-compose{padding:12px;border-top:1px solid #e2e8e5}.sc-compose textarea{box-sizing:border-box;width:100%;border:0;background:#f3f6f5;padding:9px;border-radius:8px;resize:none;font:inherit}.sc-controls{margin-top:6px}.sc-fab{border:0;border-radius:30px;background:#235e50;color:white;padding:12px 18px;cursor:pointer}
.sc-scope{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#52645f;margin-top:6px}.sc-scope label{cursor:pointer}
.sc-summary{font-weight:600;color:#235e50}
.sc-loading{color:#65786f;font-size:13px}
.sc-error{background:#fff2f0;border:1px solid #f3c9c4;border-radius:10px;margin:0 18px 8px 0;padding:9px 13px;color:#9b322c;font-size:13px}
.sc-error .pill{margin-top:6px}
.sc-question{background:#fff8e8;border:1px solid #f0d9a8;border-radius:10px;padding:9px 12px;font-size:13px;color:#7a5612;margin-bottom:8px}
.sc-changes{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.sc-change{background:#f3f8f5;border:1px solid #d7e8dd;border-radius:10px;padding:9px 12px;font-size:13px;overflow-wrap:anywhere}
.sc-change p{margin:5px 0 0;white-space:pre-wrap}
.sc-change .sc-bridge{color:#65786f}
.sc-routes{margin:7px 0 0;padding-left:18px;color:#4a5e57}
.sc-basis{margin-top:6px;font-size:12px;color:#65786f}.sc-basis ul{margin:6px 0 0;padding-left:18px}
.fm-timing{margin:8px 0 0;padding:7px 10px;background:#fff8e8;border-radius:8px;font-size:12px;color:#7a5612}
@media(max-width:640px){.step-chat,.sc-fab{right:10px;bottom:max(12px,env(safe-area-inset-bottom))}.step-chat{width:calc(100vw - 20px);height:min(615px,80dvh)}}

/* —— 导入的教案：导入卡、疑问清单、确认布置、家长执行 —— */
.lesson-file{position:relative;display:flex;align-items:center;gap:10px;border:1.5px dashed #cbd9cd;border-radius:12px;background:#f8faf7;padding:16px;cursor:pointer;color:#3d5a49;font-size:14px;margin:12px 0}
.lesson-file:hover{background:#f2f7f1;border-color:#9db9a4}
.lesson-file input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0;border:0;background:none}
.lesson-file span{pointer-events:none}
.lesson-import .pills{margin-top:4px}
.sheet .small,.muted.small{font-size:12px}
.lesson-questions{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.lesson-questions li{border:1px solid #e4e9e2;border-radius:11px;padding:11px 13px;background:#fcfdfb}
.lesson-questions li.blocking{border-color:#f0dcae;background:#fffdf6}
.lesson-questions li.done{border-color:#dbe9dd;background:#f4faf5}
.lesson-questions p{margin:0 0 8px;font-size:13.5px;line-height:1.65;color:#3c4b40}
.lesson-questions .pills{align-items:center;gap:8px}
.lesson-questions select{width:auto;min-width:150px;padding:6px 8px;font-size:12px}
.lesson-questions .tag{font-size:11px}
.lesson-families{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 14px}
.lesson-families label{display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe4db;border-radius:10px;padding:9px 13px;font-size:13.5px;cursor:pointer;background:#fafcf9}
.lesson-families input{width:auto;margin:0}
.lesson-source{margin-top:12px;border-top:1px solid #edf0ea;padding-top:10px}
.lesson-source summary{cursor:pointer;font-size:12.5px;color:#5d7566}
.lesson-source ol{margin:10px 0 0;padding-left:22px;color:#55635a;font-size:13px;line-height:1.75;max-height:320px;overflow:auto}
.lesson-source li.heading{font-weight:650;color:#2f4b3a}
.lesson-source li.list{list-style:decimal}
.lesson-assigns{margin:6px 0 0;padding-left:20px;color:#4d6053;font-size:13.5px}
.fm-meta summary{color:#5d7566}
.fm-meta .fm-note-body p{margin:0 0 5px}
.fm-meta blockquote{margin:6px 0 0;padding:6px 10px;border-left:2px solid #cfdacf;color:#5d6b5f;font-size:12px;background:#f7faf6}
.lesson-quote{margin:10px 0;border:1px solid #e3e8e0;border-radius:9px;padding:8px 10px;background:#fbfcfa}
.lesson-quote summary{cursor:pointer;font-size:12px;color:#5d7566}
.lesson-quote blockquote{margin:8px 0 0;font-size:12.5px;color:#4e5d52;line-height:1.7;border-left:2px solid #d5ded4;padding-left:9px}
.lesson-done{margin:14px 0 0;color:#40604c;font-size:14px;background:#eef6ef;border-radius:10px;padding:10px 12px}
@media(max-width:720px){
  .lesson-questions select{width:100%}
  .lesson-families label{flex:1 1 45%}
}

.fm-meta .fm-note-body{white-space:normal}
.lesson-qstep{display:block;margin-top:5px;color:#7b8a7d;font-size:12px}
.fm-say{background:#eef6ee;color:#2f6046;border:1px solid #d3e5d6;font-weight:600}
