:root{font-family:system-ui,-apple-system,PingFang SC,Microsoft YaHei,sans-serif;color:#1d2834;background:#f5f7f9}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{border:0;background:#175e8d;color:#fff;padding:.65rem 1rem;border-radius:5px;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,textarea{border:1px solid #bac6cf;border-radius:5px;padding:.65rem;background:#fff}.login{max-width:450px;margin:12vh auto;padding:2rem;background:#fff;border:1px solid #d9e1e7;border-radius:8px;display:grid;gap:1rem}.login h1{font-size:1.5rem;margin:0}.shell{height:100vh;display:grid;grid-template-columns:28% 32% 40%;grid-template-rows:62px minmax(0,1fr) 48px}.shell>header,.shell>footer{grid-column:1/-1;display:flex;align-items:center;gap:2rem;padding:0 1.2rem;background:#fff;border-bottom:1px solid #dce3e8}.shell>header time{margin-left:auto;font-variant-numeric:tabular-nums;font-size:1.35rem;font-weight:700}.shell>footer{border-top:1px solid #dce3e8;border-bottom:0;justify-content:space-between;font-size:.85rem;color:#536373}.shell>aside,.shell>section{padding:1.1rem;overflow:auto;border-right:1px solid #dce3e8}.shell h2{font-size:1.05rem;margin:.1rem 0 1rem}.materials pre{white-space:pre-wrap;word-break:break-word;font:inherit}.chat{display:flex;flex-direction:column}.messages{flex:1;overflow:auto}.messages article{padding:.6rem .2rem;border-bottom:1px solid #e4e9ed}.messages small,.workspace small{color:#677784}.messages p{white-space:pre-wrap;margin:.3rem 0}.compose{display:flex;gap:.5rem}.compose input{flex:1;min-width:0}.workspace label{display:block;font-weight:600;margin-bottom:1.1rem}.workspace textarea{display:block;width:100%;height:8rem;margin:.4rem 0;resize:vertical;font-weight:400}.workspace small{font-weight:400}.workspace .conflict{color:#a13218}.workspace .conflict button{font-size:.8rem;margin:0 .25rem;padding:.25rem .5rem}.notice{color:#5d6c76}@media(max-width:950px){.shell{height:auto;min-height:100vh;grid-template-columns:1fr;grid-template-rows:auto}.shell>header,.shell>footer{grid-column:1}.shell>header{flex-wrap:wrap;padding:1rem}.shell>aside,.shell>section{min-height:260px;border-right:0;border-bottom:1px solid #dce3e8}}.preview-banner{display:flex;align-items:center;gap:1rem;padding:.7rem 1.2rem;background:#e8f1f7;color:#134d70;border-bottom:1px solid #bfd5e3}.preview-banner a{margin-left:auto;color:#134d70}.preview-shell{height:calc(100vh - 45px)}.preview-card{background:#fff;border:1px solid #dce3e8;border-radius:5px;padding:.8rem;margin:1rem 0}.preview-card p{margin:.45rem 0 0}.preview-shell textarea{height:5rem}@media(max-width:950px){.preview-banner{flex-wrap:wrap}.preview-shell{height:auto}}.admin-page label{display:grid;gap:.4rem}.admin-page a{color:#175e8d}.ai-panel{border-top:1px solid #dce3e8;margin-top:1rem;padding-top:1rem;display:grid;gap:.5rem;max-height:42vh}.ai-panel h2{margin:0}.ai-panel textarea{width:100%;min-height:4rem;resize:vertical}.ai-panel button{justify-self:end}.ai-messages{overflow:auto;min-height:2rem}.ai-messages article{border-bottom:1px solid #e4e9ed;padding:.4rem 0}.ai-messages small{color:#677784}.ai-messages p{white-space:pre-wrap;margin:.3rem 0}.shell{grid-template-columns:minmax(240px,26%) minmax(280px,28%) minmax(420px,46%);background:#fff}.shell .materials{grid-column:1;grid-row:2;background:#f8fafb}.shell .workspace{grid-column:3;grid-row:2;border-right:0;border-left:1px solid #dce3e8}.shell .chat{grid-column:2;grid-row:2}.shell>header{color:#213343;gap:1.4rem}.shell>header strong{font-size:1rem}.shell>header span{font-size:.87rem;color:#526473}.shell>header .save-state{margin-left:auto;color:#335e78}.shell>header time{margin-left:0;color:#1b4f72}.shell h2{font-weight:650;letter-spacing:.01em}.workspace textarea{height:10rem;line-height:1.6}.questionnaire fieldset{border:1px solid #d6e0e7;margin:0 0 1.25rem;padding:1rem}.questionnaire legend{font-weight:600;padding:0 .3rem}.questionnaire label{display:grid;gap:.45rem;margin-bottom:1rem;font-weight:400}.questionnaire input[type=number]{width:9rem}.questionnaire input[type=checkbox]{width:1.1rem;height:1.1rem}.questionnaire select{padding:.6rem;border:1px solid #bac6cf;border-radius:5px;background:#fff;max-width:34rem}.questionnaire>button{margin-bottom:2rem}@media(max-width:1050px){.shell{grid-template-columns:minmax(220px,28%) minmax(240px,28%) minmax(360px,44%)}}@media(max-width:850px){.shell{height:auto;min-height:100vh;grid-template-columns:1fr;grid-template-rows:auto}.shell>header,.shell>footer{grid-column:1}.shell>header{flex-wrap:wrap;padding:1rem}.shell .materials,.shell .workspace,.shell .chat{grid-column:1;grid-row:auto;min-height:220px;border:0;border-bottom:1px solid #dce3e8}}.researcher-body{background:#f6f8fa;color:#20303d}.researcher-app{max-width:1440px;margin:auto;padding:1.5rem 2rem 3rem}.researcher-app header{border-bottom:1px solid #d7e0e6;margin-bottom:1.2rem}.researcher-app h1{font-size:1.5rem;margin:0 0 .3rem}.researcher-app header p{margin:.2rem 0 1.2rem;color:#5b6c78}.researcher-app section:not(.researcher-auth){background:#fff;border:1px solid #dce3e8;padding:1rem 1.2rem;margin:1.2rem 0}.researcher-app h2{font-size:1.1rem;margin:.2rem 0 1rem}.researcher-auth{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap}.researcher-auth label{display:grid;gap:.4rem;font-size:.85rem}.researcher-auth input{min-width:230px}.researcher-app #status{min-height:1.2rem;color:#2f5c78}.table-wrap{overflow:auto}.researcher-app table{border-collapse:collapse;width:100%;font-size:.86rem}.researcher-app th,.researcher-app td{padding:.55rem .65rem;border-bottom:1px solid #e1e8ed;text-align:left;vertical-align:top}.researcher-app th{background:#f4f7f9;font-weight:650}.researcher-app tr.selectable{cursor:pointer}.researcher-app tr.selectable:hover{background:#eef4f8}.researcher-app details{border-top:1px solid #dce3e8;padding:.65rem 0}.researcher-app details summary{cursor:pointer;font-weight:600}.researcher-app pre{max-height:38vh;overflow:auto;background:#f8fafb;border:1px solid #e2e8ec;padding:.8rem;white-space:pre-wrap;word-break:break-word;font-size:.78rem}.researcher-auth #admin-login-fields{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap}.researcher-auth #admin-login-fields[hidden]{display:none}.researcher-app .config-row{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap}.researcher-app .config-row label{display:grid;gap:.35rem;font-size:.84rem}.researcher-app .config-row select{border:1px solid #bac6cf;border-radius:5px;background:#fff;padding:.65rem}.researcher-app #config-json{width:100%;min-height:11rem;margin-top:.8rem;font-family:ui-monospace,SFMono-Regular,monospace;font-size:.85rem}.researcher-app #config-result,.researcher-app #room-result{max-height:18rem}.login label{display:grid;gap:.4rem}.login-roles{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce3e8;padding-bottom:.8rem}.login-roles a,.quiet{color:#175e8d}.quiet{background:transparent;padding:.3rem .5rem}.reading-screen{max-width:1040px;min-height:100vh;margin:auto;padding:2.5rem 3rem 7rem;background:#fff}.reading-screen h1{font-size:1.8rem;margin:1.5rem 0 .4rem}.reading-heading{display:flex;justify-content:space-between;color:#50606e}.material-list{line-height:1.75}.material-list>section{border-bottom:1px solid #e5e9ec;padding:1rem 0}.material-list h3{font-size:1rem;margin:0 0 .4rem}.material-list p{margin:.3rem 0;white-space:pre-wrap}.material-list ul{margin:.3rem 0;padding-left:1.5rem}.reading-action{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:1rem;padding:1rem;background:#fff;border-top:1px solid #dce3e8}.shell,.shell.measurement-shell{height:100vh;min-height:0;display:grid;grid-template-columns:minmax(300px,35%) minmax(520px,65%);grid-template-rows:auto auto minmax(0,1fr) auto;background:#fff}.shell>header{grid-column:1/-1;grid-row:1;min-height:64px;flex-wrap:wrap;gap:.8rem;padding:.5rem 1.25rem}.shell>header .save-state{margin-left:auto}.shell>header time{white-space:nowrap}.shell .materials{grid-column:1/-1;grid-row:2;max-height:28vh;overflow:auto;border-bottom:1px solid #dce3e8;background:#f8fafb;padding:.65rem 1.25rem}.materials-heading{display:flex;justify-content:space-between;align-items:center}.shell .materials p{margin:.3rem 0}.shell .chat{grid-column:1;grid-row:3;min-height:0;border-right:1px solid #dce3e8;padding:1rem;display:flex;flex-direction:column}.shell .workspace{grid-column:2;grid-row:3;min-height:0;overflow:auto;padding:1rem 1.4rem;border:0}.shell .chat .messages{min-height:0;overflow:auto}.shell .chat .ai-panel{max-height:150px}.shell .chat .ai-panel textarea{min-height:3rem}.shell .workspace textarea{height:8rem}.shell>footer{grid-column:1/-1;grid-row:4;min-height:58px;justify-content:flex-start;gap:1.3rem;padding:.5rem 1rem}.measurement-shell .questionnaire-workspace{grid-column:1/-1;max-width:1000px;width:100%;margin:auto}.ai-reply{background:#f3f7fb;padding:.5rem;border-left:3px solid #6c9cb9}.researcher-app{max-width:1600px}.researcher-app #admin-content:not([hidden]){display:grid;grid-template-columns:210px minmax(0,1fr);gap:1.2rem}.admin-nav{position:sticky;top:1rem;align-self:start;display:grid;gap:.15rem;padding:1rem;background:#fff;border:1px solid #dce3e8}.admin-nav a{color:#285c7c;text-decoration:none;padding:.55rem;border-radius:4px}.admin-nav a:hover{background:#eef4f8}.admin-main{min-width:0}.researcher-app [hidden]{display:none!important}@media(max-width:900px){.shell,.shell.measurement-shell{height:auto;min-height:100vh;grid-template-columns:1fr;grid-template-rows:auto auto minmax(240px,auto) minmax(300px,auto) auto}.shell .chat{grid-column:1;grid-row:3}.shell .workspace{grid-column:1;grid-row:4}.shell>footer{grid-row:5;position:sticky;bottom:0}.measurement-shell .questionnaire-workspace{grid-row:3;grid-column:1}.researcher-app #admin-content:not([hidden]){grid-template-columns:1fr}.admin-nav{position:static;display:flex;overflow:auto}.admin-nav a{white-space:nowrap}.reading-screen{padding:1.5rem 1.2rem 7rem}}.new-messages{font-size:.75rem;padding:.25rem .55rem;margin-left:.6rem;background:#daecf8;color:#164d70}.teaching-form{max-width:1180px;margin:0 auto;color:#26343f}.form-source{font-size:.75rem;color:#77858f;text-align:right;margin-bottom:.5rem}.form-section{border:1px solid #d8e0e5;background:#fff;margin:0 0 1.2rem}.form-section>h3{margin:0;padding:.75rem 1rem;background:#eef3f6;border-bottom:1px solid #d8e0e5;font-size:1rem}.form-field{padding:1rem;border-bottom:1px solid #e2e7ea}.form-field:last-child{border-bottom:0}.form-field h4{margin:0 0 .55rem;font-size:1rem}.form-field h4 em{font-style:normal;font-size:.72rem;font-weight:500;color:#657681;background:#edf1f3;padding:.15rem .4rem;border-radius:3px;margin-left:.5rem}.field-instruction,.field-note{font-size:.87rem;color:#53636e;line-height:1.65;margin:.35rem 0 .7rem}.form-field>textarea{width:100%;min-height:9rem;line-height:1.65;resize:vertical}.teaching-form textarea::placeholder,.teaching-form input::placeholder{color:#a9b1b7;opacity:1}.teaching-form textarea:disabled,.teaching-form input:disabled{color:#2f3e49;background:#f4f6f7;border-color:#d7dde1;opacity:1}.process-table-wrap{overflow:auto;border:1px solid #ccd6dc}.process-table{width:100%;min-width:860px;border-collapse:collapse;table-layout:fixed}.process-table th,.process-table td{border-right:1px solid #d7dfe4;border-bottom:1px solid #d7dfe4;padding:.55rem;vertical-align:top}.process-table th{background:#f3f6f8;text-align:center;font-size:.83rem}.process-table th:first-child{width:19%}.process-table th:nth-child(2),.process-table th:nth-child(3){width:24%}.process-table th:nth-child(4){width:29%}.process-table th.row-actions{width:4.5rem}.process-table input,.process-table textarea{width:100%;border-color:#c7d1d7}.process-table textarea{height:7rem;min-height:7rem;line-height:1.5;resize:vertical}.minutes-input{display:flex!important;align-items:center;gap:.35rem;margin:.45rem 0 0!important;font-weight:400!important}.minutes-input input{width:5rem}.minutes-input span{font-size:.82rem;color:#596873}.row-actions{text-align:center}.danger-link,.add-row{background:transparent;color:#246486;padding:.35rem .5rem}.danger-link{color:#a24737}.add-row{border:1px dashed #86a9bc;margin-top:.75rem}.duration-total{margin:.8rem 0 .2rem;font-size:.9rem}.duration-total strong{font-variant-numeric:tabular-nums;margin:0 .25rem}.duration-warn{color:#8a5b16}.duration-ok{color:#28704d}.multi-options{display:grid;gap:.45rem;margin-top:.35rem}.multi-options>span{display:flex;align-items:center;gap:.45rem}.multi-options input{width:1rem!important}.workspace{scrollbar-gutter:stable}.workspace>h2{position:sticky;top:-1rem;background:#fff;z-index:2;padding:.7rem 0;border-bottom:1px solid #e0e6ea}@media(max-width:1100px){.process-table{min-width:760px}.process-table textarea{height:6rem}.shell,.shell.measurement-shell{grid-template-columns:minmax(280px,34%) minmax(520px,66%)}}.admin-work{border:1px solid #dbe3e8;margin:.8rem 0;background:#fff}.admin-work>section{padding:.75rem 1rem;margin:0!important;border:0!important;border-bottom:1px solid #e1e7eb!important}.admin-work>section:last-child{border-bottom:0!important}.admin-work h3,.admin-work h4{font-size:.93rem;margin:.1rem 0 .45rem}.admin-work p{white-space:pre-wrap;line-height:1.6;margin:.2rem 0}.admin-work table{table-layout:fixed}.work-meta{font-size:.8rem;color:#60717d;background:#f0f4f6;padding:.45rem .7rem;margin:1rem 0 0}.process-table{min-width:1020px}.process-table th:first-child{width:18%}.process-table th:nth-child(2),.process-table th:nth-child(3){width:21%}.process-table th:nth-child(4),.process-table th:nth-child(5){width:18%}.lesson-heading{border:1px solid #d7e0e5;border-radius:8px;padding:1rem 1.1rem;margin-bottom:.8rem;background:#f9fbfc}.lesson-heading h3{font-size:1.15rem;text-align:center;margin:.1rem 0 .8rem}.lesson-heading label{display:grid;grid-template-columns:max-content 1fr;align-items:center;gap:.7rem;font-weight:600}.lesson-heading input{width:100%;background:#fff;color:#26343f}.stage-instruction{line-height:1.7;background:#edf5f8;border-left:3px solid #5b91ad;padding:.7rem .9rem;color:#374f5e;border-radius:0 6px 6px 0}.unified-login{text-align:left;border-radius:14px;box-shadow:0 12px 40px #1d374614;border-color:#dce4e8}.unified-login h1{text-align:center;font-size:1.65rem}.unified-login>p{text-align:center;color:#60717d;margin:.1rem 0 .7rem}.unified-login .login-help{font-size:.82rem}.login-mark{width:46px;height:46px;border-radius:14px;background:#e3f0f4;color:#286b88;display:grid;place-items:center;margin:0 auto;font-weight:700}.bubble-chat{padding:.2rem .15rem;display:flex;flex-direction:column;gap:.65rem}.messages .chat-bubble{max-width:88%;border:0;border-radius:10px;background:#f0f3f5;padding:.6rem .75rem;align-self:flex-start}.messages .chat-bubble.mine{background:#e7f2f7;align-self:flex-end}.messages .chat-bubble.ai-reply{max-width:94%;background:#f2f5f1;border-left:3px solid #6d9d79}.chat-meta{display:flex;gap:.6rem;align-items:center;color:#5d6b73;font-size:.76rem}.chat-meta time{margin-left:auto}.chat-bubble p{margin:.3rem 0 0;line-height:1.5}.chat-bubble .ai-request{color:#4b646f;border-bottom:1px solid #d9e1dc;padding-bottom:.35rem}:root{--ink:#172633;--muted:#647583;--line:#dce4e9;--brand:#255f84;--brand-dark:#194a68;--page:#f3f6f8;--surface:#fff;--soft:#f7f9fa;--success:#2f7458;--danger:#9a4638;color:var(--ink);background:var(--page)}body{background:var(--page);color:var(--ink);-webkit-font-smoothing:antialiased}button{background:var(--brand);border-radius:8px;padding:.66rem 1.05rem;font-weight:600;transition:background .15s ease,box-shadow .15s ease}button:hover:not(:disabled){background:var(--brand-dark)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(37,95,132,.18);outline-offset:1px}button.quiet{background:transparent;color:var(--brand);font-weight:500}button.quiet:hover:not(:disabled){background:#edf3f6}input,textarea,select{border-color:#c8d3da;border-radius:8px;color:var(--ink);line-height:1.55}.login{width:min(440px,calc(100% - 2rem));margin:10vh auto;padding:2.4rem;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 54px #1b303e14}.unified-login h1{font-size:1.6rem;letter-spacing:.01em}.login-mark{background:#e8f1f5;border-radius:50%;color:var(--brand);font-size:.9rem}.login label{color:#384b59;font-size:.9rem}.login input{padding:.78rem .82rem}.login button[type=submit]{margin-top:.3rem;padding:.8rem}.login-help{border-top:1px solid var(--line);padding-top:.8rem;color:var(--muted)}.reading-screen{max-width:none;margin:0;min-height:100vh;padding:0 0 7rem;background:var(--page)}.reading-heading{height:68px;padding:0 max(2rem,calc((100vw - 1120px)/2));background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center}.reading-heading>div{display:flex;align-items:center;gap:1rem}.reading-heading strong{font-size:1rem;color:var(--ink)}.reading-heading span{color:var(--muted);font-size:.86rem}.reading-card{width:min(1040px,calc(100% - 2rem));margin:2rem auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:2.2rem 2.6rem;box-shadow:0 8px 28px #1b303e0b}.reading-card>h1{margin:.35rem 0 .6rem;font-size:1.65rem;letter-spacing:.01em}.reading-lead{margin:0 0 1.5rem;color:var(--muted);line-height:1.75}.eyebrow{display:block;color:var(--brand);font-size:.76rem;font-weight:700;letter-spacing:.12em}.waiting-card{max-width:720px;margin-top:7vh}.reading-action{background:#fffffff5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-color:var(--line);min-height:68px}.reading-action button{min-width:190px}.formal-material{color:#263744}.formal-material>.material-kicker{color:var(--brand);font-size:.78rem;font-weight:700}.formal-material>h2{margin:.3rem 0 1rem;padding-bottom:1.15rem;border-bottom:1px solid var(--line);font-size:1.28rem}.formal-material>section{padding:1.25rem 0;border-bottom:1px solid #e8edef}.formal-material>section:last-child{border-bottom:0}.formal-material h3{margin:0 0 .55rem;font-size:.95rem;color:#304c5f}.formal-material p,.formal-material li{line-height:1.82}.formal-material ol{padding-left:1.5rem;margin:.4rem 0}.formal-material .material-note{background:#f5f8fa;border-radius:8px;padding:1rem 1.1rem;margin-top:1rem}.shell,.shell.measurement-shell{background:var(--page);grid-template-columns:minmax(310px,35%) minmax(600px,65%);grid-template-rows:68px auto minmax(0,1fr) 64px}.shell>header{background:var(--surface);border-bottom:1px solid var(--line);padding:0 1.35rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:nowrap}.task-identity,.task-status{display:flex;align-items:center;gap:.85rem;min-width:0}.task-identity strong{font-size:1rem;white-space:nowrap}.task-identity>span:not(.task-topic){padding:.18rem .48rem;background:#edf3f6;border-radius:5px;color:#405664}.task-topic{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)!important}.task-status{margin-left:auto;white-space:nowrap}.task-status .save-state{margin:0;color:var(--muted)}.connection{display:flex;align-items:center;gap:.35rem;color:var(--muted)}.connection:before{content:"";width:7px;height:7px;border-radius:50%;background:#9da9b0}.connection.online:before{background:var(--success)}.task-status time{margin:0!important;display:grid;justify-items:end;color:var(--ink)!important;font-size:1.28rem!important;line-height:1.05}.task-status time small{font-size:.68rem;font-weight:500;color:var(--muted);margin-bottom:.2rem}.shell .materials{padding:.68rem 1.35rem;max-height:48vh;background:var(--surface);border-bottom:1px solid var(--line)}.materials-heading>div{display:flex;align-items:baseline;gap:.9rem}.materials-heading span{font-size:.74rem;color:var(--muted);letter-spacing:.08em}.materials-heading strong{font-size:.94rem}.materials.expanded{padding-bottom:1.35rem}.materials .formal-material{max-width:980px;margin:.8rem auto 0;padding-top:.8rem;border-top:1px solid var(--line)}.shell .chat{padding:1.1rem;background:#f7f9fa;border-right:1px solid var(--line)}.shell .chat h2{display:flex;align-items:center;margin:0 0 .85rem;font-size:1rem}.shell .chat h2 small{margin-left:.55rem;color:var(--success);font-weight:500}.bubble-chat{gap:.55rem;padding:.2rem .1rem 1rem}.messages .chat-bubble{border-radius:12px 12px 12px 3px;background:#fff;border:1px solid #e3e9ed;padding:.62rem .75rem;box-shadow:0 2px 7px #1f354309}.messages .chat-bubble.mine{border-radius:12px 12px 3px;background:#e9f2f6;border-color:#d5e5ed}.messages .chat-bubble.ai-reply{background:#f0f6f1;border:1px solid #d8e6da;border-left:3px solid #659474}.compose{padding-top:.75rem;border-top:1px solid var(--line)}.compose input{background:#fff}.ai-panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:.7rem;margin-top:.7rem}.notice{background:#fff;border:1px solid var(--line);border-radius:9px;padding:1rem;line-height:1.7;color:var(--muted)}.shell .workspace{padding:1.35rem 1.55rem 2.5rem;background:var(--page)}.teaching-form{color:var(--ink)}.lesson-heading{border:1px solid var(--line);border-radius:10px;background:#fff;padding:1.25rem;margin-bottom:1rem;box-shadow:0 3px 12px #1f354309}.lesson-heading h3{font-size:1.18rem;margin:0 0 1rem}.stage-instruction{background:#f1f6f8;border-left:3px solid #6c98b2;color:#385365;border-radius:0 7px 7px 0;margin:.9rem 0 0}.form-section{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:1rem;box-shadow:0 3px 12px #1f354308}.form-section>h3{background:#f3f6f8;border-color:var(--line);padding:.82rem 1rem}.form-field{padding:1.1rem;border-color:#e6ecef}.form-field h4{color:#213b4c}.form-field h4 em{background:#eef2f4;border-radius:5px;color:var(--muted)}.field-instruction,.field-note{color:#5e707d}.form-field>textarea{background:#fff;min-height:8.5rem}.teaching-form textarea::placeholder,.teaching-form input::placeholder{color:#a7b1b8}.process-table-wrap{border-color:#ccd7dd;border-radius:8px}.process-table th{background:#f3f6f8;color:#3e5361}.add-row{border-radius:7px}.duration-total{padding:.25rem 0}.form-source{display:none}.shell>footer{background:var(--surface);border-top:1px solid var(--line);padding:.55rem 1.1rem;box-shadow:0 -4px 18px #1d33410a}.shell>footer button{min-width:175px}.shell>footer span{color:var(--muted)}.measurement-shell .questionnaire-workspace{grid-column:1/-1;grid-row:2/4;max-width:960px;background:var(--surface);margin:1.5rem auto;border:1px solid var(--line);border-radius:12px;padding:2rem;box-shadow:0 8px 28px #1b303e0a}.questionnaire-heading{display:flex;align-items:baseline;gap:.9rem;border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1.2rem}.questionnaire-heading h2{margin:0}.questionnaire-heading p{margin-left:auto;color:var(--muted)}.questionnaire fieldset{border-color:var(--line);border-radius:9px;padding:1.2rem}.questionnaire legend{color:#28495d}.questionnaire label{line-height:1.65}.researcher-body{background:var(--page)}.researcher-app section:not(.researcher-auth),.admin-nav{border-color:var(--line);border-radius:10px}.researcher-app th{background:#f3f6f8}.researcher-app tr.selectable:hover{background:#edf4f7}.admin-nav a{border-radius:7px}.admin-nav a:hover{background:#edf3f6}@media(max-width:1100px){.shell,.shell.measurement-shell{grid-template-columns:minmax(280px,34%) minmax(520px,66%)}.task-topic,.task-status .save-state{display:none}}@media(max-width:850px){.reading-heading{padding:0 1rem}.reading-card{padding:1.3rem}.shell,.shell.measurement-shell{height:auto;min-height:100vh;grid-template-columns:1fr;grid-template-rows:auto auto minmax(260px,auto) minmax(360px,auto) auto}.shell>header{padding:.8rem 1rem;align-items:flex-start}.task-status{flex-wrap:wrap;justify-content:flex-end}.task-status .connection{display:none}.shell .materials{min-height:0}.shell .chat{grid-column:1;grid-row:3}.shell .workspace{grid-column:1;grid-row:4}.shell>footer{grid-row:5;position:sticky;bottom:0}.measurement-shell .questionnaire-workspace{grid-row:2/4;margin:.8rem;width:calc(100% - 1.6rem)}.materials-heading>div{display:grid;gap:.1rem}}.admin-nav details{padding:.2rem 0;border-top:1px solid #e5eaee}.admin-nav details summary{padding:.55rem;color:#284a60;font-size:.9rem;list-style-position:inside}.admin-nav details a{display:block;padding:.45rem .6rem .45rem 1.2rem;font-size:.86rem}.scale-instruction{white-space:pre-wrap;line-height:1.7;color:#405463;margin:.4rem 0 1rem}.researcher-app #questionnaire-detail{white-space:pre-wrap;max-height:34rem;overflow:auto;background:#f8fafb;border:1px solid #e3e8ec;padding:.8rem;font-size:.82rem}.operation-summary{padding:.85rem 1rem;margin:.8rem 0;border:1px solid var(--line);border-radius:8px;font-weight:650}.operation-pass{background:#eff7f1;color:#236545;border-color:#c7ddce}.operation-blocked{background:#fff5ee;color:#894d2b;border-color:#ead0bb}#preflight-section .table-wrap,#monitor-section .table-wrap,#flow-section .table-wrap,#seal-section .table-wrap{margin-top:.85rem}#preflight-section button,#monitor-section button,#flow-section button,#seal-section button{margin:.2rem .4rem .2rem 0}#seal-status{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}#incident-reason{min-width:280px}.consent-screen{min-height:100vh;background:var(--page)}.consent-screen>header{height:68px;background:#fff;border-bottom:1px solid var(--line);padding:0 max(1.5rem,calc((100vw - 900px)/2));display:flex;align-items:center;gap:1rem}.consent-screen>header span{color:var(--muted)}.consent-screen>header button{margin-left:auto}.consent-card{width:min(800px,calc(100% - 2rem));margin:4rem auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:2.2rem 2.5rem;box-shadow:0 8px 28px #1b303e0b}.consent-card h1{font-size:1.55rem;margin:.5rem 0 1.5rem}.consent-copy{line-height:1.85;color:#334956}.consent-copy p{margin:0 0 1rem}.consent-check{display:flex;align-items:flex-start;gap:.75rem;margin:1.8rem 0 1.3rem;padding:1rem;background:#f5f8fa;border:1px solid var(--line);border-radius:9px;line-height:1.6}.consent-check input{flex:0 0 auto;width:1.2rem;height:1.2rem;margin:.2rem 0 0}.consent-actions{display:flex;gap:.8rem;flex-wrap:wrap}.consent-actions button{min-width:170px}.consent-decline{background:#edf2f5;color:#37556a}.consent-decline:hover:not(:disabled){background:#e0e9ee}.consent-card [role=status]{color:var(--muted);min-height:1.5rem}@media(max-width:700px){.consent-card{margin:1.5rem auto;padding:1.4rem}.consent-screen>header{padding:0 1rem}}.shell:not(.measurement-shell){height:100dvh;grid-template-rows:56px auto minmax(0,1fr) 52px}.shell>header{min-height:56px;padding:0 .9rem}.shell>footer{min-height:52px;padding:.35rem .9rem}.shell>footer button{min-width:150px}.shell .materials{height:48px;min-height:48px;max-height:36vh;overflow:auto;padding:.35rem .9rem;resize:vertical;background:#f7fafc}.shell .materials.expanded{height:150px;min-height:85px;padding:.45rem .9rem;resize:vertical}.shell .materials.expanded:after{content:"拖动下边缘可调整材料高度";display:block;text-align:right;font-size:.7rem;color:#80909b}.shell .materials .formal-material{max-width:none;margin:.5rem 0 0;padding:0;border-top:0}.shell .materials .formal-material>h2{font-size:1rem;margin:.2rem 0 .5rem;padding-bottom:.4rem}.shell .materials .formal-material>section{padding:.55rem 0}.shell .materials .formal-material p,.shell .materials .formal-material li{line-height:1.55;margin:.2rem 0}.formal-material .material-situation{background:#eaf2f7;border:1px solid #d3e4ed;border-left:4px solid #5e90ae;border-radius:8px;padding:1rem 1.15rem!important}.shell .chat{padding:.7rem;min-height:0}.shell .workspace{padding:.7rem .9rem 1.5rem;min-height:0;overflow:auto}.teaching-form{max-width:none}.lesson-heading{padding:.75rem .9rem;margin-bottom:.6rem}.lesson-heading h3{margin:0 0 .5rem}.stage-instruction{margin:.5rem 0;padding:.55rem .75rem}.form-section{margin-bottom:.7rem}.form-field{padding:.75rem .85rem}.form-field>textarea{min-height:7rem}.member-presence{display:flex;gap:.35rem;align-items:center}.member-chip{display:flex;align-items:center;gap:.32rem;padding:.16rem .42rem;border:1px solid var(--line);border-radius:999px;color:#71828c;font-size:.73rem;white-space:nowrap;background:#f6f8f9}.member-chip b{display:grid;place-items:center;width:1.25rem;height:1.25rem;border-radius:50%;background:#dce5e9;color:#526975}.member-chip.is-online{color:#265b4a;border-color:#cce1d5;background:#f1f8f3}.member-chip.is-online b{background:#64a580;color:#fff}.remote-editor{display:inline-flex;gap:.25rem;align-items:center;margin-left:.6rem;padding:.18rem .42rem;border-radius:5px;background:#e8f3fa;color:#285f85;font-size:.73rem;font-weight:600}.remote-editor i{font-style:normal;font-size:1rem;color:#1979b2}.scale-instruction{display:grid;gap:.45rem;margin:.45rem 0 1.1rem;line-height:1.75}.scale-instruction p{margin:0}.scale-instruction p+p{padding:.65rem .8rem;background:#eef5f9;border-left:3px solid #6495b2;border-radius:4px}.rating-anchors{display:block;font-weight:700;color:#234960;margin-top:.3rem}.questionnaire input[aria-invalid=true]{border-color:#b77d41;background:#fffaf4}.rating-options{display:flex;flex-wrap:wrap;gap:.55rem;margin:.35rem 0 .7rem}.questionnaire .rating-option{display:inline-flex;align-items:center;gap:.35rem;margin:0;padding:.48rem .7rem;border:1px solid #d8e3e9;border-radius:8px;background:#f9fbfc;font-weight:500;cursor:pointer}.rating-option:has(input:checked){border-color:#6a9cba;background:#eaf3f8;color:#194e70}.rating-option input{width:1rem;height:1rem;margin:0;accent-color:#255f84}.questionnaire .rating-options{display:flex;gap:.42rem;margin:.55rem 0 1.1rem}.questionnaire .rating-option{position:relative;display:grid;place-items:center;width:2.7rem;height:2.7rem;padding:0;border:1px solid #c9d5dd;border-radius:7px;background:#fff;color:#344c5d;font-weight:600;line-height:1;cursor:pointer}.questionnaire .rating-option input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.questionnaire .rating-option:has(input:checked){border-color:#28668c;background:#28668c;color:#fff}.questionnaire .rating-option:has(input:focus-visible){outline:3px solid #8dc4e2;outline-offset:2px}.questionnaire .rating-option:hover{border-color:#28668c}.questionnaire .question-short-answer{width:min(19rem,100%);min-height:2.6rem;max-width:100%;padding:.45rem .65rem}@media(max-width:1150px){.member-chip{font-size:0}.member-chip b{font-size:.7rem}.shell .workspace,.shell .chat{padding:.6rem}}@media(max-width:850px){.shell:not(.measurement-shell){height:auto;min-height:100dvh;grid-template-rows:auto auto minmax(250px,auto) minmax(360px,auto) 52px}.shell .materials{height:auto;max-height:24vh}.shell .materials.expanded{height:150px}.member-chip{font-size:.73rem}}html{font-size:17px}body{line-height:1.5}button,input,textarea,select{font-size:1rem}.login label,.researcher-auth label,.researcher-app .config-row label{font-size:.94rem}.unified-login h1{font-size:1.72rem}.unified-login .login-help{font-size:.9rem}.reading-card{margin:1.35rem auto;padding:1.65rem 2rem}.reading-card>h1{font-size:1.76rem}.reading-lead{line-height:1.6;margin-bottom:1rem}.eyebrow,.formal-material>.material-kicker{font-size:.84rem}.formal-material>h2{font-size:1.32rem;margin-bottom:.7rem;padding-bottom:.75rem}.formal-material>section{padding:.82rem 0}.formal-material h3{font-size:1.02rem;margin-bottom:.35rem}.formal-material p,.formal-material li{line-height:1.6}.formal-material .material-note{padding:.72rem .9rem;margin-top:.6rem}.task-identity strong{font-size:1.06rem}.materials-heading span{font-size:.82rem}.task-status time small{font-size:.75rem}.form-section>h3,.form-field h4{font-size:1.04rem}.field-instruction,.field-note{font-size:.93rem;line-height:1.55}.process-table th{font-size:.91rem}.measurement-shell .questionnaire-workspace{max-width:1040px;margin:.9rem auto;padding:1.35rem 1.55rem}.questionnaire-heading{padding-bottom:.6rem;margin-bottom:.8rem}.questionnaire-heading h2{font-size:1.35rem}.questionnaire fieldset{padding:.9rem 1rem;margin-bottom:.9rem}.questionnaire legend{font-size:1.08rem}.questionnaire fieldset>label{gap:.35rem;margin-bottom:.72rem;line-height:1.5}.questionnaire fieldset>label:last-child{margin-bottom:0}.questionnaire select{max-width:34rem}.scale-instruction{gap:.25rem;margin:.3rem 0 .8rem;line-height:1.5}.scale-instruction p+p{padding:.48rem .65rem}.questionnaire .rating-options{margin:.38rem 0 .72rem}.researcher-app h1{font-size:1.65rem}.researcher-app h2{font-size:1.16rem}.researcher-app table{font-size:.93rem}.researcher-app th,.researcher-app td{padding:.48rem .6rem}.researcher-app section:not(.researcher-auth){margin:.9rem 0;padding:.85rem 1rem}.admin-nav a{font-size:.94rem}@media(max-width:850px){html{font-size:16px}.reading-card{padding:1.2rem 1.35rem}.measurement-shell .questionnaire-workspace{padding:1rem;margin:.55rem auto}}@media(max-width:700px){.questionnaire-heading{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.15rem .5rem}.questionnaire-heading .eyebrow{grid-column:1/-1}.questionnaire-heading h2,.questionnaire-heading p{white-space:nowrap}.questionnaire-heading p{margin:0}}body.quick-test-mode{padding-top:36px}body.quick-test-mode:before{content:"快速测试版｜非正式实验";position:fixed;z-index:1000;top:0;left:0;right:0;height:36px;display:flex;align-items:center;justify-content:center;background:#f8e8c9;color:#68491a;border-bottom:1px solid #d9c398;font-size:.88rem;font-weight:700;letter-spacing:.03em}body.quick-test-mode .shell:not(.measurement-shell),body.quick-test-mode .shell.measurement-shell{height:calc(100dvh - 36px)}body.quick-test-mode .reading-screen,body.quick-test-mode .consent-screen{min-height:calc(100dvh - 36px)}body.quick-test-mode .quick-finish{background:#8a5527;white-space:nowrap}body.quick-test-mode .quick-finish:hover:not(:disabled){background:#70431c}@media(max-width:850px){body.quick-test-mode .shell:not(.measurement-shell),body.quick-test-mode .shell.measurement-shell{height:auto;min-height:calc(100dvh - 36px)}}.questionnaire-heading{display:block}.questionnaire-heading p{margin:0;color:#385365;font-weight:600}.questionnaire .rating-endpoints{padding:.42rem .65rem;background:#eef5f9;border-left:3px solid #6495b2;border-radius:4px}.questionnaire .rating-anchors{margin:0}.questionnaire fieldset{padding:.85rem 1rem}.shell.solo-task{grid-template-columns:minmax(0,1fr);grid-template-rows:56px auto minmax(0,1fr) 52px}.shell.solo-task .materials{grid-column:1;grid-row:2;height:28vh;min-height:120px;max-height:43vh;resize:vertical;overflow:auto;padding:.55rem 1rem}.shell.solo-task .materials:not(.expanded){height:46px;min-height:46px;max-height:46px;resize:none;overflow:hidden}.shell.solo-task .workspace{grid-column:1;grid-row:3;width:100%;padding:.7rem 1rem 1.25rem;overflow:auto}.shell.solo-task .teaching-form{max-width:none;width:100%}.shell.solo-task .stage-instruction{padding:.45rem .7rem;margin:.35rem 0 .65rem;line-height:1.5}.shell.solo-task .lesson-heading{padding:.65rem .85rem;margin-bottom:.55rem}.shell.solo-task .form-section{margin-bottom:.65rem;box-shadow:none}.shell.solo-task .form-section>h3{padding:.55rem .85rem;font-size:1.1rem}.shell.solo-task .form-field{padding:.7rem .85rem}.shell.solo-task .form-field h4{margin:0 0 .35rem;font-size:1.1rem}.shell.solo-task .field-instruction,.shell.solo-task .field-note{margin:.2rem 0 .45rem;color:#475c68;line-height:1.5}.shell.solo-task .formal-material>section{padding:.55rem 0}.shell.solo-task .form-field>textarea,.shell.solo-task .process-table textarea{height:auto;min-height:102px;overflow:hidden;line-height:1.5;resize:none}.shell.solo-task .process-table textarea{min-height:116px}.shell.solo-task .teaching-form textarea,.shell.solo-task .teaching-form input{font-size:1rem}.shell.solo-task>footer{grid-row:4;min-height:52px;gap:.65rem}.shell.solo-task>footer [role=status]:empty{display:none}.shell.collaborative-task .compose{display:flex;align-items:end;gap:.45rem}.chat-compose-wrap{position:relative;flex:1;min-width:0}.shell.collaborative-task .chat-entry{display:block;width:100%;height:auto;min-height:3.5rem;max-height:8rem;resize:vertical;line-height:1.45;padding:.55rem .65rem}.mention-choice{position:absolute;bottom:calc(100% + .3rem);left:0;background:#fff;color:#255f84;border:1px solid #cbdce5;box-shadow:0 4px 14px #223b4d18}.mention-choice:hover:not(:disabled){background:#edf5f9}.ai-inline-status,.ai-inline-error{font-size:.88rem;margin:.35rem 0;color:#526f80}.ai-inline-error{color:#8a4c32}.ai-inline-error button{margin-left:.45rem;padding:.2rem .35rem}@media(max-width:850px){.shell.solo-task{height:100dvh;min-height:0;grid-template-rows:auto auto minmax(0,1fr) auto}.shell.solo-task .materials{height:28vh;max-height:42vh}.shell.solo-task .workspace{min-height:0}.shell.solo-task>footer{position:static}.shell.solo-task>header{padding:.45rem .7rem;min-height:52px}}body.quick-test-mode:has(.shell.solo-task){padding-top:0}body.quick-test-mode:has(.shell.solo-task):before{display:none}body.quick-test-mode .shell.solo-task{height:100dvh}.shell.solo-task{height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:44px auto minmax(0,1fr) 46px}.shell.solo-task>header{min-height:44px;padding:.22rem .8rem;justify-content:flex-end}.solo-timer{margin-left:auto;display:flex;align-items:center}.shell.solo-task .solo-timer time{display:flex;align-items:baseline;gap:.55rem;color:#184b67;font-size:1.3rem;font-weight:700;font-variant-numeric:tabular-nums}.shell.solo-task .solo-timer small{font-size:.78rem;font-weight:500;color:#536b79}.shell.solo-task .materials,.shell.solo-task .materials:not(.expanded){grid-column:1;grid-row:2;height:42px;min-height:42px;max-height:42px;padding:0 .7rem;resize:none;overflow:hidden;background:#f8fafb}.shell.solo-task .materials.expanded{height:min(31vh,280px);min-height:112px;max-height:31vh;overflow:auto;padding:0 .7rem .65rem;resize:none}.shell.solo-task .materials.expanded:after{display:none}.shell.solo-task .materials-heading{min-height:41px}.shell.solo-task .solo-material-toggle{padding:.35rem .3rem;background:transparent;color:#205a7a;font-size:.96rem;font-weight:600;text-align:left}.shell.solo-task .solo-material-toggle:hover{color:#133d58;text-decoration:underline}.shell.solo-task .materials .formal-material{max-width:none;margin:.1rem 0 0;padding:.25rem .3rem;border-top:1px solid #dce6eb;font-size:1rem;line-height:1.5}.shell.solo-task .materials .formal-material>section{padding:.45rem 0}.shell.solo-task .workspace{grid-column:1;grid-row:3;min-height:0;overflow:auto;padding:.4rem .7rem 1.8rem;scroll-padding-bottom:1.2rem}.shell.solo-task .teaching-form{max-width:none;width:100%;font-size:18px;line-height:1.5}.shell.solo-task .lesson-heading{padding:.5rem .7rem;margin:0 0 .45rem;border-radius:6px;box-shadow:none}.shell.solo-task .lesson-heading h3{margin:0 0 .35rem;font-size:1.08rem;text-align:left}.shell.solo-task .lesson-heading label{gap:.5rem;font-size:.98rem}.shell.solo-task .lesson-heading input{padding:.45rem .55rem;min-height:2.4rem}.shell.solo-task .stage-instruction{padding:.36rem .65rem;margin:.35rem 0 .5rem;font-size:.92rem;line-height:1.45}.shell.solo-task .form-section{margin-bottom:.5rem;border-radius:6px;box-shadow:none}.shell.solo-task .form-section>h3{padding:.42rem .7rem;font-size:1.04rem}.shell.solo-task .form-field{padding:.5rem .7rem}.shell.solo-task .form-field h4{margin:0 0 .25rem;font-size:1.07rem}.shell.solo-task .field-instruction,.shell.solo-task .field-note{margin:.12rem 0 .38rem;line-height:1.5;color:#435b6a}.shell.solo-task .form-field>textarea,.shell.solo-task .process-table textarea{min-height:5.5rem;overflow:hidden;line-height:1.5}.shell.solo-task .process-table textarea{min-height:6.6rem}.shell.solo-task .teaching-form textarea,.shell.solo-task .teaching-form input{font-size:18px}.shell.solo-task>footer{grid-row:4;min-height:46px;padding:.23rem .65rem;gap:.45rem;overflow:hidden}.shell.solo-task>footer button{min-width:0;padding:.45rem .7rem;font-size:.88rem;white-space:nowrap}.shell.solo-task>footer [role=status]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell.solo-task>footer .solo-exit{margin-left:auto}body.quick-test-mode .shell.solo-task>footer:after{content:"快速测试版 · 非正式实验";font-size:.72rem;color:#705426;white-space:nowrap}@media(max-width:850px){.shell.solo-task{height:100dvh;min-height:0;grid-template-rows:44px auto minmax(0,1fr) 46px}.shell.solo-task>footer{position:static}.shell.solo-task .workspace{min-height:0}.shell.solo-task .materials.expanded{height:28vh;max-height:28vh}.shell.solo-task .lesson-heading label{grid-template-columns:1fr;gap:.2rem}}.ai-inline-notice{margin:.35rem 0;color:#365c72;font-size:.94rem;line-height:1.45}@media(min-width:851px){.reading-heading,.consent-screen>header{padding-inline:clamp(24px,2.5vw,40px)}.reading-card,.consent-card{width:calc(100% - clamp(48px,5vw,80px));max-width:none}.waiting-card{max-width:none}.measurement-shell .questionnaire-workspace{width:calc(100% - clamp(48px,5vw,80px));max-width:none}.shell .materials .formal-material{max-width:none}}@media(min-width:901px){.shell.collaborative-task{grid-template-columns:minmax(260px,30%) minmax(0,70%)}}@media(max-width:850px){.reading-card,.consent-card,.measurement-shell .questionnaire-workspace{width:calc(100% - 32px);max-width:none}}
