/* Xiao Yu lives outside page renders. Position is the only persisted preference. */
.teacher-secretary{position:fixed;width:98px;height:128px;z-index:35;isolation:isolate;font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#35516c}.teacher-secretary[hidden]{display:none!important}.secretary-launcher{position:relative;width:98px;height:116px;padding:0;display:flex;align-items:center;flex-direction:column;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;border-radius:35px;background:radial-gradient(ellipse at center,#e5eaff85 0%,#eaf0ff00 70%);transition:filter .2s}.secretary-launcher:hover{filter:drop-shadow(0 4px 12px #798dc134)}.secretary-launcher:focus-visible{outline:2px solid #91afe9;outline-offset:3px}.secretary-art{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}.secretary-launcher>.secretary-art{width:98px;height:108px;filter:drop-shadow(0 4px 3px #5d729518)}.secretary-name{position:absolute;bottom:0;display:flex;align-items:center;gap:5px;font-size:10px;letter-spacing:1px;font-weight:600;color:#5a6f93;background:#fffffff2;border:1px solid #dce5f5;padding:4px 11px;border-radius:20px;box-shadow:0 3px 8px #2d50780c}.secretary-name i{width:4px;height:4px;border-radius:50%;background:#8ac5ae}.secretary-badge{position:absolute;top:15px;right:2px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 4px;border-radius:10px;border:2px solid #fff;background:#d78c79;color:#fff;font-size:9px;font-weight:600;box-shadow:0 2px 5px #6c7a8f15}.secretary-hint{font-size:9px;text-align:center;white-space:nowrap;color:#8a9bb0;line-height:18px;pointer-events:none;margin:5px -18px 0}.secretary-bob{animation:secretary-hover 4s ease-in-out infinite;transform-origin:60px 70px}.secretary-head{transform-origin:60px 70px}.secretary-eyes{transform-origin:60px 56px;animation:secretary-blink 6.5s ease-in-out infinite}.secretary-hand{transform-origin:84px 96px;animation:secretary-wave 9s ease-in-out infinite}.is-dragging .secretary-launcher{cursor:grabbing}.is-dragging .secretary-bob{animation:none;transform:rotate(-4deg)}.is-busy .secretary-head{animation:secretary-think 2s ease-in-out infinite}.secretary-panel{position:fixed;display:flex;flex-direction:column;overflow:hidden;border-radius:22px;background:#fff;border:1px solid #dfe7f3;box-shadow:0 24px 80px #203a5e2b,0 3px 12px #526a850c;z-index:1;animation:secretary-appear .18s ease-out;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.secretary-header{display:flex;align-items:center;gap:9px;padding:16px 19px 13px;background:linear-gradient(110deg,#f1f4ff,#f4f9fb);border-bottom:1px solid #e7edf5}.secretary-header-art{width:45px;height:48px;flex-shrink:0;position:relative}.secretary-header-art .secretary-art{height:54px;position:absolute;top:-5px}.secretary-header>div:nth-child(2){flex:1}.secretary-header h2{font-size:17px;font-weight:600;color:#3c567c;letter-spacing:1px}.secretary-header h2 span{font-size:10px;font-weight:400;letter-spacing:0;color:#96a6ba;margin-left:8px}.secretary-header p{font-size:9px;color:#9baabd;margin-top:7px;display:flex;gap:5px;align-items:center}.secretary-header p i{width:4px;height:4px;background:#88c3ad;border-radius:50%}.secretary-header>button{width:28px;height:28px;display:grid;place-items:center;background:#fff9;border:1px solid #e1e9f4;border-radius:8px;font-size:21px;color:#96a6be}.secretary-header>button:hover{background:#fff;color:#4c6a96}.secretary-tabs{display:flex;padding:0 20px;gap:25px;border-bottom:1px solid #edf1f6}.secretary-tabs>button{position:relative;height:43px;padding:0 1px;font-size:12px;color:#9aa9b9;display:flex;align-items:center;gap:7px}.secretary-tabs>button[aria-selected=true]{color:#5576a7;font-weight:600}.secretary-tabs>button[aria-selected=true]:after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:#89a5df}.secretary-tabs i{width:4px;height:4px;border-radius:50%;background:#dca78f}.secretary-tabs span{color:#a0b4df;font-size:13px}.secretary-scope{display:flex;align-items:center;gap:7px;padding:12px 20px;background:#fff;border-bottom:1px solid #f0f3f7}.secretary-scope>span{font-size:9px;color:#a3afbe;white-space:nowrap}.secretary-scope select{min-width:0;max-width:100%;border:1px solid #e6ecf4;border-radius:6px;padding:6px 5px;font-size:10px;color:#7389a5;background:#f9fbfd;height:29px}.secretary-scope select:first-of-type{flex:1}.secretary-scope select:last-of-type{width:65px}.secretary-content{min-height:0;flex:1}.secretary-content.tasks{overflow-y:auto;padding:18px 20px 8px;scrollbar-width:thin;scrollbar-color:#e1e7f0 transparent;overscroll-behavior:contain}.secretary-greeting>span{font-size:8px;letter-spacing:1px;color:#9baac0}.secretary-greeting h3{font-size:16px;font-weight:600;color:#4d6688;margin-top:8px}.secretary-greeting p{font-size:11px;line-height:1.9;color:#a1aebe;margin:8px 0 15px}.secretary-greeting strong{font-weight:500;color:#af8b77}.secretary-counts{display:grid;grid-template-columns:repeat(3,1fr);padding:12px 0;background:#f7f9fd;border-radius:10px;border:1px solid #eef1f8}.secretary-counts button{display:flex;flex-direction:column;align-items:center;gap:6px}.secretary-counts button+button{border-left:1px solid #e5ebf4}.secretary-counts b{font-size:22px;color:#7491bd;font-weight:500;font-variant-numeric:tabular-nums}.secretary-counts button:first-child b{color:#c59885}.secretary-counts span{font-size:9px;color:#a0aebf}.secretary-counts button:hover span{color:#5d7c9e}.secretary-section-title{display:flex;align-items:center;justify-content:space-between;margin:19px 0 11px}.secretary-section-title h3{font-size:11px;font-weight:600;color:#7b8fa9}.secretary-section-title>span{font-size:8px;color:#b1bccb}.secretary-section-title>button{font-size:9px;color:#92a6c0}.secretary-shortcuts{display:flex;flex-direction:column;gap:6px}.secretary-shortcuts>button{display:flex;align-items:center;gap:10px;border:1px solid #edf1f7;border-radius:9px;padding:12px;text-align:left;background:#fff}.secretary-shortcuts>button:hover{background:#f7faff;border-color:#dae5f5}.secretary-shortcuts>button:disabled{opacity:.5}.secretary-shortcuts i{font-style:normal;display:grid;place-items:center;width:31px;height:33px;flex-shrink:0;background:#eef2fc;border-radius:9px;color:#97a9d5;font-size:17px}.secretary-shortcuts button:nth-child(2) i{background:#edf6f3;color:#90b6ad}.secretary-shortcuts button:nth-child(3) i{background:#faf3ed;color:#c2a387}.secretary-shortcuts span{flex:1;font-size:11px;color:#6b81a0}.secretary-shortcuts small{display:block;font-size:9px;color:#b2bdcb;margin-top:5px;line-height:1.6}.secretary-shortcuts b{font-size:12px;font-weight:400;color:#b1bfd1}.secretary-student-card{background:#f9fbfd;border:1px solid #edf1f7;border-radius:9px;padding:13px;margin-top:13px}.secretary-student-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.secretary-student-card h3{font-size:10px;color:#8298b0;font-weight:500}.secretary-student-card header button{font-size:8px;color:#a5b4c7}.secretary-student-card>div{display:flex;align-items:center;font-size:10px;gap:7px;padding:6px 0;color:#8f9fb3}.secretary-student-card b{margin-left:auto;font-weight:400;font-variant-numeric:tabular-nums;color:#b59885}.secretary-skill-dot{width:4px;height:4px;border-radius:50%;background:#adbfdc}.secretary-skill-dot.weak{background:#d2aa96}.secretary-skill-dot.forgetting{background:#d3c49b}.secretary-student-card p,.secretary-clear{font-size:10px;line-height:1.9;color:#adbacb}.secretary-pending>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid #f0f3f7}.secretary-pending>button b{display:block;font-size:10px;color:#7e93af;font-weight:500;line-height:1.7}.secretary-pending small{font-size:9px;color:#b4bfcc;display:block;margin-top:4px}.secretary-pending i{font-style:normal;font-size:9px;white-space:nowrap;color:#9caed0}.secretary-clear{padding:4px 0 15px}.secretary-empty{padding:15px 0;font-size:11px;color:#a4b0bf;line-height:1.9}.secretary-empty button{font-size:11px;color:#8099bd}.secretary-footnote{border-top:1px solid #edf1f6;background:#fafbfd;display:flex;gap:6px;align-items:center;padding:10px 18px;font-size:8px;color:#aebccc;flex-shrink:0}.secretary-footnote>span{font-size:11px;color:#b4c9cb}.secretary-footnote button{margin-left:auto;color:#a2b4cb;font-size:8px}.secretary-content.chat{display:flex;flex-direction:column}.secretary-chat-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#e1e7f0 transparent;padding:12px 20px 18px;overscroll-behavior:contain}.secretary-chat-welcome{text-align:center;padding:0 0 14px}.secretary-mini-art{width:67px;height:73px;margin:0 auto 8px}.secretary-chat-welcome h3{font-size:15px;color:#6b82a3;font-weight:500}.secretary-chat-welcome p{font-size:10px;line-height:1.9;color:#b0bbcb;margin-top:8px}.secretary-prompts{display:flex;flex-direction:column;gap:7px;align-items:stretch;margin-top:16px;text-align:left}.secretary-prompts button{border:1px solid #e8eef7;border-radius:8px;padding:9px 12px;background:#fafbfd;color:#9aaec9;font-size:10px;text-align:left}.secretary-prompts button:hover{border-color:#d4e0f4;background:#f5f8fd}.secretary-message{margin-top:18px}.secretary-message>span{font-size:9px;color:#bdc7d3;display:block;margin-bottom:6px}.secretary-message p{padding:13px 14px;border:1px solid #e8edf5;border-radius:3px 12px 12px;color:#7b8fa9;background:#f8fafc;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.95}.secretary-message.user{margin-left:35px}.secretary-message.user>span{text-align:right}.secretary-message.user p{background:#edf3ff;border-color:#e4edfc;color:#6988b1;border-radius:12px 3px 12px 12px}.secretary-message>small{font-size:8px;color:#b6c1ce;display:block;margin-top:6px}.secretary-typing{display:flex;align-items:center;gap:4px;color:#acb9cc;font-size:10px;margin-top:20px}.secretary-typing i{width:4px;height:4px;background:#a9bad7;border-radius:50%;animation:secretary-dot 1.2s infinite}.secretary-typing i:nth-child(2){animation-delay:.2s}.secretary-typing i:nth-child(3){animation-delay:.4s}.secretary-typing span{margin-left:5px}.secretary-error{font-size:11px;color:#b98d82;background:#fcf6f3;padding:10px 12px;border-radius:8px;line-height:1.8;margin-top:15px}.secretary-chat-footer{border-top:1px solid #edf1f7;background:#fff;padding:12px 18px}.secretary-consent{font-size:8px;color:#aebccd;display:flex;align-items:flex-start;gap:5px;line-height:1.9;margin-bottom:8px}.secretary-consent input{accent-color:#849ed0;width:12px;height:12px;flex-shrink:0;margin:2px 0 0}.secretary-question-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.secretary-compose{display:flex;align-items:flex-end;gap:8px;border:1px solid #e0e8f5;border-radius:11px;padding:11px;background:#fafbfd}.secretary-compose:focus-within{border-color:#b4c7e9;box-shadow:0 0 0 3px #c2d5f515}.secretary-compose textarea{border:0;background:none;resize:none;outline:none;flex:1;min-width:0;color:#6b83a5;font-size:11px;line-height:1.9;font-family:inherit;padding:0;max-height:100px;min-height:42px}.secretary-compose textarea::placeholder{color:#b8c4d4}.secretary-compose button{height:28px;width:28px;border-radius:9px;background:#86a1d5;color:#fff;flex-shrink:0;font-size:18px}.secretary-compose button:disabled{background:#dce4f2;opacity:.7}.secretary-chat-meta{display:flex;justify-content:space-between;margin-top:8px;font-size:8px;color:#bdc7d5}.secretary-chat-meta button{font-size:8px;color:#a6b5ca}.secretary-model-note{font-size:9px;padding:7px 9px;margin-bottom:10px;background:#f7f9fd;border-radius:6px;color:#a1b2c8;line-height:1.9}.secretary-model-note button{font-size:9px;color:#7b96bf}.secretary-loading{padding:40px 15px;color:#acbbcf;font-size:11px;line-height:2;text-align:center}.secretary-loading button{display:block;margin:12px auto;color:#7894be}.teacher-secretary button:focus-visible,.teacher-secretary select:focus-visible{outline:2px solid #adc4eb;outline-offset:2px}.secretary-launcher{transition:none}
@keyframes secretary-hover{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-4px) rotate(1deg)}}@keyframes secretary-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.15)}}@keyframes secretary-wave{0%,64%,87%,100%{transform:rotate(0)}69%,79%{transform:rotate(-17deg)}74%,84%{transform:rotate(8deg)}}@keyframes secretary-think{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}@keyframes secretary-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes secretary-dot{0%,100%{opacity:.3}50%{opacity:1}}
@media(max-width:600px){.secretary-panel{border-radius:17px}.secretary-scope{padding:10px 14px}.secretary-content.tasks{padding:15px}.secretary-scope select{font-size:12px!important;min-height:35px;height:35px}.secretary-compose textarea{font-size:16px!important;min-height:44px}.secretary-chat-scroll{padding:12px 15px}.secretary-consent{font-size:9px}.secretary-message p{font-size:12px}.secretary-header{padding:12px 15px}.secretary-greeting h3{font-size:15px}.secretary-greeting p{font-size:11px}.secretary-footnote{font-size:8px;padding:9px 14px}.secretary-shortcuts span{font-size:12px}.secretary-shortcuts small{font-size:10px}.secretary-chat-welcome p{font-size:11px}.secretary-prompts button{font-size:11px}}
/* Keep the compact panel readable on classroom displays as well as phones. */
.secretary-header h2{font-size:19px;color:#34547e}.secretary-header h2 span,.secretary-header p{font-size:11px;color:#637b9b}.secretary-tabs button{font-size:13px}.secretary-scope>span{font-size:11px;color:#637b9b}.secretary-scope select{font-size:12px;color:#4b668b}.secretary-greeting h3{font-size:17px;color:#34547e}.secretary-greeting p{font-size:12px;color:#637b9b}.secretary-greeting>span{font-size:9px;color:#788dab}.secretary-counts span{font-size:11px;color:#607b9f}.secretary-section-title h3{font-size:13px;color:#4d698e}.secretary-section-title>span{font-size:10px;color:#7188a6}.secretary-shortcuts span{font-size:13px;color:#4d698e}.secretary-shortcuts small{font-size:11px;color:#7188a6}.secretary-student-card h3,.secretary-student-card>div{font-size:12px;color:#4d698e}.secretary-student-card button,.secretary-student-card p{font-size:11px;color:#637b9b}.secretary-pending>button b{font-size:12px;color:#4d698e}.secretary-pending small,.secretary-pending i,.secretary-clear{font-size:11px;color:#7188a6}.secretary-footnote,.secretary-footnote button{font-size:10px;color:#6f85a3}.secretary-chat-welcome p{font-size:12px;color:#6e84a1}.secretary-prompts button{font-size:12px;color:#5a769d}.secretary-message p{font-size:13px;color:#465f80}.secretary-message.user p{color:#42658f}.secretary-message>span,.secretary-message>small{font-size:10px;color:#7188a6}.secretary-consent{font-size:11px;color:#637b9b}.secretary-consent input{width:14px;height:14px}.secretary-compose textarea{font-size:13px;color:#465f80}.secretary-compose textarea::placeholder{color:#8397b1}.secretary-chat-meta,.secretary-chat-meta button{font-size:10px;color:#7188a6}.secretary-model-note,.secretary-model-note button{font-size:11px;color:#637b9b}
@media(prefers-reduced-motion:reduce){.teacher-secretary *{animation:none!important;scroll-behavior:auto!important}}
