/* Compact course tutor. Presentation styling outside this component is unchanged. */
body .course-ai-root.experience-v3:not([hidden]){display:block!important;width:58px;height:58px;color:#20364f;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
.experience-v3 *{box-sizing:border-box}
.experience-v3 .course-ai-launcher{width:58px;height:58px;border:1px solid #fff9;background:linear-gradient(145deg,#3a608a,#16365e 72%);animation:none;box-shadow:inset 0 1px 1px #ffffff35,0 5px 16px #17385d30;transition:box-shadow .18s,transform .18s}
.experience-v3 .course-ai-launcher::before,.experience-v3 .course-ai-launcher::after{display:none}
.experience-v3 .course-ai-launcher>svg{width:34px;height:34px;fill:none;stroke:#f7fbff;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.experience-v3 .course-ai-launcher .mark-star{fill:#e9c786;stroke:#e9c786;stroke-width:.7}
.experience-v3 .course-ai-launcher:hover{transform:translateY(-2px);box-shadow:inset 0 1px 1px #ffffff35,0 7px 20px #17385d40}
.experience-v3 .course-ai-launcher strong{display:block;position:absolute;right:70px;white-space:nowrap;padding:7px 11px;border:1px solid #e0e6ee;border-radius:9px;background:#fff;color:#24415f;font-size:13px;font-weight:600;box-shadow:0 3px 12px #16325710;opacity:0;transform:translateX(4px);transition:opacity .15s,transform .15s;pointer-events:none}
.experience-v3 .course-ai-launcher:is(:hover,:focus-visible) strong{opacity:1;transform:translateX(0)}
.experience-v3.label-right .course-ai-launcher strong{right:auto;left:70px}
.experience-v3.open .course-ai-launcher{visibility:hidden;pointer-events:none}
.course-ai-root.experience-v3 .course-ai-panel{position:fixed!important;left:var(--assistant-left,16px)!important;top:var(--assistant-top,16px)!important;right:auto!important;bottom:auto!important;width:var(--course-ai-panel-width,520px);height:var(--course-ai-panel-height,680px);max-height:none;border:1px solid #dce3ec;border-radius:20px;background:#fff;box-shadow:0 16px 64px #132e4d24,0 2px 8px #132e4d0a;isolation:isolate}
.experience-v3 .course-ai-head{height:60px;min-height:60px;flex:none;padding:10px 17px;background:#fff;gap:10px;border-bottom:0}
.experience-v3 .course-ai-avatar{display:grid;place-items:center;width:29px;height:31px;background:none;border:0;color:#234c7a}
.experience-v3 .course-ai-avatar svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.experience-v3 .course-ai-avatar .mark-star{fill:#c99b45;stroke:#c99b45;stroke-width:.7}
.experience-v3 .course-ai-title{gap:9px}
.experience-v3 .course-ai-title strong{font-size:17px;letter-spacing:.015em;color:#213b59}
.experience-v3 .course-ai-title [data-ai-badge]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.experience-v3 .course-ai-icon{width:32px;height:32px;border:0;background:none;color:#788799;font-size:20px;border-radius:9px;display:grid;place-items:center}
.experience-v3 .course-ai-icon:hover{background:#f0f4f9;color:#234c7a}
.experience-v3 .course-ai-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.experience-v3 .course-ai-actions{gap:3px}
.experience-v3 :is(button,a,textarea,summary):focus-visible{outline:2px solid #6596ce;outline-offset:2px}
.experience-v3 .course-ai-context{flex:none;display:flex;align-items:center;gap:9px;padding:8px 20px;border-bottom:1px solid #eaf0f5;background:#f8fafc;min-width:0;min-height:35px}
.experience-v3 .course-ai-context>span{color:#8291a2;white-space:nowrap;font-size:12px}
.experience-v3 .course-ai-context strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;color:#526a85;flex:1;min-width:0}
.experience-v3 .course-ai-settings{overflow-y:auto;max-height:60%;flex-shrink:0;padding:16px 20px}
.experience-v3 .course-ai-settings :is(label,input,select){font-size:14px}
.experience-v3 .course-ai-hint{font-size:12px;line-height:1.6}
.experience-v3 .course-ai-messages{min-height:0;min-width:0;padding:24px 20px;gap:20px;background:#fff;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d6dfe9 transparent}
.experience-v3 .course-ai-messages:has(>.course-ai-welcome){align-content:safe center;justify-content:stretch}
.experience-v3 .course-ai-msg{max-width:100%;min-width:0;width:100%;gap:9px}
.experience-v3 .course-ai-msg.user{max-width:88%;width:auto}
.experience-v3 .course-ai-bubble{padding:16px 18px;font-size:16px;line-height:1.8;border-radius:14px;box-shadow:none;border-color:#e9eef4;color:#263b52;min-width:0;overflow-wrap:anywhere}
.experience-v3 .course-ai-msg.user .course-ai-bubble{background:#f0f5fc;border-color:#e7eef8;color:#254a76;padding:11px 15px;line-height:1.65}
.experience-v3 .course-ai-bubble p{margin-bottom:12px}
.experience-v3 .course-ai-bubble :is(h1,h2){font-size:20px;line-height:1.5;margin:18px 0 10px}
.experience-v3 .course-ai-bubble :is(h3,h4){font-size:17px;line-height:1.5;margin:14px 0 8px}
.experience-v3 .course-ai-table{font-size:14px;line-height:1.7;min-width:360px}
.experience-v3 .course-ai-code{font-size:13px;white-space:pre;overflow-wrap:normal}
.experience-v3 .course-ai-sources :is(a,button){font-size:12px;font-weight:500;line-height:1.6;padding:5px 9px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;border-radius:7px;background:#f8fafc;border-color:#e5ebf2;color:#59728e}
.experience-v3 .course-ai-more-sources{flex-basis:100%;min-width:0;font-size:12px;color:#6c8098}
.experience-v3 .course-ai-more-sources summary{cursor:pointer;width:max-content;padding:4px 2px}
.experience-v3 .course-ai-more-sources>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.experience-v3 .course-ai-tools button{width:29px;height:27px;border:0;color:#7b8fa7;background:none}
.experience-v3 .course-ai-tools button:hover{background:#f0f5fb;color:#315e96}
.experience-v3 .course-ai-tools{padding-top:9px;margin-top:10px;gap:6px;border-top-color:#f0f3f7}
.experience-v3 .course-ai-tools button svg{width:14px;height:14px}
.experience-v3 .course-ai-welcome{padding:4px 8px 18px;flex-shrink:0;width:100%;max-width:420px;justify-self:center}
.experience-v3 .course-ai-welcome h2{font-size:23px;font-weight:600;line-height:1.5;color:#274362;margin:0 0 24px;letter-spacing:.025em}
.experience-v3 .course-ai-start-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.experience-v3 .course-ai-start-actions button{display:flex;align-items:center;gap:11px;min-height:59px;border:1px solid #e4ebf3;border-radius:12px;background:#fafcfe;text-align:left;padding:14px;cursor:pointer;color:#365779;transition:background .15s,border-color .15s}
.experience-v3 .course-ai-start-actions button:hover{border-color:#9ab5d4;background:#f1f6fc}
.experience-v3 .course-ai-start-actions b{font-size:14px;font-weight:500;line-height:1.6;display:block}
.experience-v3 .course-ai-start-actions svg{width:20px;height:20px;flex:none;fill:none;stroke:#6a88a9;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.experience-v3 .course-ai-bottom{flex:none;padding:12px 17px 17px;gap:10px;background:#fff;border-top:0}
.experience-v3 .course-ai-quick{gap:7px;flex-wrap:wrap;overflow:visible;padding:0}
.experience-v3 .course-ai-quick button{font-size:12px;padding:5px 9px;border-radius:7px;background:#f8fafc;border-color:#e9eef4;color:#667e99;font-weight:500}
.experience-v3 .course-ai-form{gap:5px;padding:5px;border:1px solid #dce5ef;background:#f8fafc;border-radius:14px;align-items:end}
.experience-v3 .course-ai-form:focus-within{border-color:#8daccf;box-shadow:0 0 0 2px #9fbcdc14}
.experience-v3 .course-ai-form textarea{min-height:48px;height:48px;max-height:136px;white-space:pre-wrap;overflow-y:auto;font-size:16px;line-height:1.65;padding:10px 8px;border:0;border-radius:9px;color:#294764;background:none;outline:none;box-shadow:none}
.experience-v3 .course-ai-form textarea::placeholder{font-size:13px;color:#8a9aac}
.experience-v3 .course-ai-form button{height:36px;min-width:48px;margin:0 2px 6px 0;border-radius:9px;font-size:13px;font-weight:600;padding:0 11px;background:#2b527e}
.experience-v3.is-answering [data-ai-send]{display:none}
.experience-v3 .course-ai-form .course-ai-stop{background:#edf2f8;color:#385f89;border:1px solid #cddbe9;cursor:pointer}
.experience-v3 [hidden]{display:none!important}
.experience-v3:has(.course-ai-welcome) .course-ai-quick{display:none}
.experience-v3.reading .course-ai-bubble{font-size:18px;line-height:1.85}
.experience-v3.reading .course-ai-table{font-size:16px}
.experience-v3.reading .course-ai-messages{padding:26px 32px}
.experience-v3.reading .course-ai-welcome{max-width:480px;width:100%;margin:0 auto}
.experience-v3 .course-ai-latest{display:block;position:absolute;bottom:var(--assistant-composer-height,120px);left:50%;transform:translateX(-50%);padding:6px 12px;background:#fff;border:1px solid #d1deec;border-radius:999px;box-shadow:0 3px 12px #17385d10;font-size:12px;color:#53769b;cursor:pointer;white-space:nowrap;z-index:2}
.experience-v3 .course-ai-resize{display:block;position:absolute;transform:none;opacity:1;border:0;background:none;padding:0;margin:0;touch-action:none;z-index:5;outline-offset:-3px}
.experience-v3 .course-ai-resize-w,.experience-v3 .course-ai-resize-e{top:22px;bottom:22px;width:12px;height:auto;cursor:ew-resize}
.experience-v3 .course-ai-resize-w{left:0;right:auto}
.experience-v3 .course-ai-resize-e{right:0;left:auto}
.experience-v3 .course-ai-resize-n,.experience-v3 .course-ai-resize-s{left:22px;right:22px;height:12px;width:auto;cursor:ns-resize}
.experience-v3 .course-ai-resize-n{top:0;bottom:auto}
.experience-v3 .course-ai-resize-s{bottom:0;top:auto}
.experience-v3 .course-ai-resize:is(.course-ai-resize-w,.course-ai-resize-e,.course-ai-resize-n,.course-ai-resize-s)::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#c3d0df;border-radius:3px;transition:background .15s}
.experience-v3 .course-ai-resize:is(.course-ai-resize-w,.course-ai-resize-e)::after{width:2px;height:26px}
.experience-v3 .course-ai-resize:is(.course-ai-resize-n,.course-ai-resize-s)::after{height:2px;width:26px}
.experience-v3 .course-ai-resize:is(:hover,:focus-visible)::after{background:#547fad}
.experience-v3 .course-ai-resize:is(.course-ai-resize-nw,.course-ai-resize-ne,.course-ai-resize-sw,.course-ai-resize-se){width:22px;height:22px;z-index:6}
.experience-v3 .course-ai-resize-nw{top:0;left:0;bottom:auto;right:auto;cursor:nwse-resize}
.experience-v3 .course-ai-resize-ne{top:0;right:0;bottom:auto;left:auto;cursor:nesw-resize}
.experience-v3 .course-ai-resize-sw{bottom:0;left:0;top:auto;right:auto;cursor:nesw-resize}
.experience-v3 .course-ai-resize-se{bottom:0;right:0;top:auto;left:auto;cursor:nwse-resize}
.experience-v3.is-resizing{user-select:none}
.experience-v3.reading .course-ai-resize{display:none}
body:has(#fullscreenOverlay.active) .course-ai-root.experience-v3.open{display:block!important}
.experience-v3.in-presentation .course-ai-launcher{display:none}
.course-ai-project-open{border:1px solid #6380a3;background:#1e3d63;color:#fff;padding:8px 12px;border-radius:9px;white-space:nowrap;font-size:13px;cursor:pointer}
@media(max-width:720px){
 body .course-ai-root.experience-v3:not([hidden]){width:52px;height:52px}
 .experience-v3 .course-ai-launcher{width:52px;height:52px}
 .experience-v3 .course-ai-launcher>svg{width:31px;height:31px}
 .experience-v3 .course-ai-launcher strong{right:64px}
 .experience-v3.label-right .course-ai-launcher strong{left:64px}
 .experience-v3 .course-ai-panel{border-radius:17px}
 .experience-v3 .course-ai-head{padding:10px 12px;height:57px;min-height:57px}
 .experience-v3 .course-ai-title strong{font-size:16px}
 .experience-v3 .course-ai-icon{width:32px;height:32px}
 .experience-v3 [data-ai-expand],.experience-v3 .course-ai-resize{display:none}
 .experience-v3 .course-ai-context{padding:8px 15px;gap:7px}
 .experience-v3 .course-ai-context strong{font-size:12px}
 .experience-v3 .course-ai-messages,.experience-v3.reading .course-ai-messages{padding:18px 13px;gap:16px}
 .experience-v3 .course-ai-welcome{padding:0 5px 16px}
 .experience-v3 .course-ai-welcome h2{font-size:21px}
 .experience-v3 .course-ai-bubble,.experience-v3.reading .course-ai-bubble{font-size:16px;padding:13px 14px}
 .experience-v3 .course-ai-start-actions button{padding:12px 10px;gap:8px;min-height:54px}
 .experience-v3 .course-ai-start-actions b{font-size:14px}
 .experience-v3 .course-ai-bottom{padding:10px 12px max(12px,env(safe-area-inset-bottom))}
 .experience-v3 .course-ai-form textarea{padding:10px 6px;font-size:16px}
 .experience-v3 .course-ai-form textarea::placeholder{font-size:12px}
 .course-ai-project-open{padding:6px 8px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.experience-v3 *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body .course-ai-root.experience-v3:not([hidden]),.course-ai-project-open{display:none!important}}
