.focus-top-actions .course-ai-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:40px;padding:8px 12px;border:1px solid #94c6b7;border-radius:12px;background:#f4faf5;color:#146e65;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.course-ai-trigger-short{display:none}.course-ai-dialog{position:fixed;inset:88px 16px 16px auto;margin:0;width:390px;max-width:calc(100vw - 32px);height:calc(100dvh - 104px);max-height:calc(100dvh - 104px);padding:0;border:1px solid #cbded2;border-radius:16px;background:#fffefb;color:#244c40;box-shadow:0 12px 45px #254d4024;font:14px/1.65 Arial,Microsoft YaHei,sans-serif;overflow:hidden}.course-ai-dialog::backdrop{background:transparent}.course-ai-panel{height:100%;display:flex;flex-direction:column;min-height:0;position:relative}.course-ai-toast .action-toast{position:absolute;top:60px;left:50%;z-index:5;width:max-content;max-width:calc(100% - 24px);padding:10px 12px;font-size:13px;line-height:1.5}.course-ai-toast .action-toast>button{min-width:36px;min-height:36px}.course-ai-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:4px 12px 4px 16px;border-bottom:1px solid #e5ebe4;flex-shrink:0}.course-ai-heading>div{display:flex;align-items:center;gap:9px;min-width:0}.course-ai-heading h2{margin:0;color:#244c40;font-size:16px;line-height:1.4;white-space:nowrap}.course-ai-heading h2>span{color:#167d6d}.course-ai-heading-tag{color:#60796c;background:#eef4ed;border-radius:5px;padding:2px 6px;font-size:10px;white-space:nowrap}.course-ai-safety{font-size:10px;color:#617b69}.course-ai-safety summary{cursor:pointer;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;list-style:none;padding:8px 0}.course-ai-safety summary::-webkit-details-marker{display:none}.course-ai-safety>div{position:absolute;z-index:2;top:49px;left:12px;right:12px;max-height:min(300px,45dvh);overflow:auto;padding:14px 16px;border:1px solid #b9d1bc;border-radius:10px;background:#fffefb;color:#355b45;box-shadow:0 8px 24px #244c4020;font-size:12px;line-height:1.7}.course-ai-safety p{font-size:12px;color:#526f5c;margin:7px 0 0}.course-ai-safety summary:focus-visible{outline:2px solid #209b8d;outline-offset:2px;border-radius:4px}.course-ai-dialog button{font:inherit;cursor:pointer;touch-action:manipulation}.course-ai-safety-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.course-ai-heading .course-ai-safety-close{flex:none;width:40px;height:40px;margin:-7px -8px -4px 0;font-size:22px}.course-ai-heading button{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;background:transparent;border:0;border-radius:9px;color:#60796c;font-size:24px;line-height:1}.course-ai-heading button:hover{background:#edf4ed;color:#176d5a}.course-ai-context{margin:10px 14px 0;border:1px solid #dce7da;border-radius:10px;background:#f2f6ef;flex-shrink:0;max-height:min(180px,26dvh);overflow-y:auto;scrollbar-width:thin}.course-ai-context summary{display:block;padding:8px 11px;cursor:pointer;list-style:none}.course-ai-context summary::-webkit-details-marker{display:none}.course-ai-context-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#667d6e;font-size:11px;line-height:18px}.course-ai-context-meta>span:last-child{white-space:nowrap}.course-ai-context-arrow{display:inline-block;margin-left:5px;color:#517463;transition:transform .15s}.course-ai-context-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;color:#345848;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.course-ai-context[open] .course-ai-context-arrow{transform:rotate(180deg)}.course-ai-context[open] .course-ai-context-excerpt{display:none}.course-ai-context p{margin:0;padding:0 11px 10px;color:#345848;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.course-ai-context summary:focus-visible{outline:2px solid #209b8d;outline-offset:-3px;border-radius:9px}.course-ai-messages{flex:1 1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 8px;scrollbar-width:thin;scrollbar-color:#c1d1c6 transparent;scroll-padding-block:12px}.course-ai-empty{padding:26px 12px;text-align:center;color:#385d4d}.course-ai-empty strong{font-size:15px}.course-ai-empty p{max-width:270px;margin:8px auto 0;font-size:13px;line-height:1.7;color:#6d8074}.course-ai-message{margin:0 0 17px;overflow-wrap:anywhere}.course-ai-message>span{display:block;font-size:11px;font-weight:600;color:#167567;margin-bottom:6px;line-height:18px}.course-ai-message>div{white-space:pre-wrap;color:#2c493c;font-size:14px;line-height:1.8}.course-ai-message>.course-ai-answer-card{padding:9px 12px 12px;border:1px solid #dce7da;border-radius:11px;background:#f1f6ed;white-space:normal}.course-ai-answer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;min-height:32px;border-bottom:1px solid #dfe9db;padding-bottom:5px}.course-ai-answer-heading>span{font-size:11px;font-weight:600;color:#28735b;line-height:18px}.course-ai-dialog .course-ai-copy{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;min-height:32px;padding:3px 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#52715e;font-size:11px;line-height:18px;white-space:nowrap}.course-ai-dialog .course-ai-copy:hover{background:#e2eddf;border-color:#c9dbc8;color:#176d5a}.course-ai-answer-content{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}.course-ai-copy-feedback{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.course-ai-copy-feedback.error{position:static;display:block;width:auto;height:auto;margin-top:8px;clip-path:none;color:#994529;font-size:12px;line-height:1.6}.course-ai-message.user{margin-left:30px;text-align:right}.course-ai-message.user>span{color:#6c7f73;font-size:10px;margin-bottom:4px}.course-ai-message.user>div{display:inline-block;max-width:100%;text-align:left;background:#e7f2e9;border:1px solid #dce9de;border-radius:11px 11px 3px 11px;padding:8px 11px;font-size:13px;line-height:1.6}.course-ai-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;color:#3c7562;font-size:12px}.course-ai-status button{flex:none;min-height:36px;padding:3px 10px;border:1px solid #c9dac9;border-radius:7px;background:#f4f8f1;color:#3c7562;font-size:12px}.course-ai-input-notice{margin:0 0 8px;padding:8px 10px;border-radius:8px;background:#fff3e3;color:#8a5425;font-size:12px;line-height:1.6;max-height:90px;overflow:auto}.course-ai-error{background:#fff4ed;border:1px solid #efd6c9;border-radius:9px;padding:10px 12px;color:#934325}.course-ai-error p{margin:0 0 7px;color:inherit;font-size:13px}.course-ai-error button{border:1px solid #d2b29e;border-radius:7px;background:#fffef9;color:#7b4025;min-height:40px;padding:5px 12px}.course-ai-composer{padding:9px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e0e9de;flex-shrink:0;background:#f8faf5}.course-ai-prompts{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:8px}.course-ai-prompts::-webkit-scrollbar{display:none}.course-ai-mode{flex:none;width:110px;min-height:34px;padding:4px 7px;border:1px solid #b9cebb;border-radius:7px;background:#eaf3e7;color:#345f45;font:12px Arial,Microsoft YaHei,sans-serif;cursor:pointer}.course-ai-mode:focus-visible{outline:2px solid #209b8d;outline-offset:1px}.course-ai-mode:disabled{opacity:.55;cursor:not-allowed}.course-ai-task-status{margin:0 2px 6px;color:#53715b;font-size:11px;line-height:17px}.course-ai-prompts button{flex-shrink:0;border:1px solid #d5e2d3;border-radius:7px;background:#fffefb;color:#426650;padding:4px 10px;min-height:34px;font-size:12px;white-space:nowrap}.course-ai-prompts button:hover{background:#eaf3e9;border-color:#a9c7b3;color:#176d5a}.course-ai-input-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.course-ai-input-wrap{display:flex;align-items:flex-end;gap:5px;padding:4px;border:1px solid #b9cebb;border-radius:11px;background:#fff;transition:border-color .15s,box-shadow .15s}.course-ai-input-wrap:focus-within{border-color:#31977d;box-shadow:0 0 0 2px #209b8d12}.course-ai-composer textarea{display:block;flex:1 1;min-width:0;width:100%;resize:none;min-height:40px;max-height:104px;padding:9px 8px;border:0;border-radius:7px;background:transparent;color:#244c40;font:14px/22px Arial,Microsoft YaHei,sans-serif;overflow-y:auto;scrollbar-width:thin}.course-ai-composer textarea:focus-visible{outline:none}.course-ai-composer textarea::placeholder{color:#809182}.course-ai-dialog .course-ai-send{display:grid;place-items:center;flex:none;align-self:flex-end;width:40px;height:40px;min-height:40px;border:0;border-radius:8px;background:#167d6d;color:#fff;font-size:24px;line-height:1}.course-ai-dialog .course-ai-send:disabled{opacity:1;color:#8fa99a;background:#edf3ee}.course-ai-composer-meta{display:flex;align-items:center;gap:8px;margin:6px 2px 0;font-size:10px;line-height:15px;color:#768779;white-space:nowrap}.course-ai-keyboard-hint{display:none}.course-ai-count{margin-left:auto;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.course-ai-dialog button:disabled{opacity:.5;cursor:not-allowed}.course-ai-dialog button:focus-visible{outline:2px solid #209b8d;outline-offset:2px}@media(min-width:1100px){.course-ai-dialog{width:410px}.course-ai-keyboard-hint{display:inline;font-size:9px;margin-left:auto}.course-ai-count{display:none}}@media(max-width:600px){.focus-top-actions .course-ai-trigger{position:absolute;right:60px;top:10px;z-index:1;width:44px;height:36px;min-height:36px;padding:0;gap:3px;border-radius:10px;font-size:12px}.focus-top-actions .course-ai-trigger-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.course-ai-trigger-short{display:inline}.focus-topbar .focus-breadcrumb{padding-right:52px}.course-ai-dialog{inset:auto 0 max(0px,calc(100dvh - var(--course-ai-viewport-height,100dvh) - var(--course-ai-viewport-top,0px)));margin:0;width:100%;max-width:100%;height:min(86dvh,calc(var(--course-ai-viewport-height,100dvh) - 12px));max-height:calc(var(--course-ai-viewport-height,100dvh) - 12px);border-radius:16px 16px 0 0;border-bottom:0}.course-ai-dialog::backdrop{background:#183e3233}.course-ai-heading{min-height:50px;padding:2px 10px 2px 14px}.course-ai-heading h2{font-size:16px}.course-ai-context{margin:8px 12px 0;max-height:min(150px,22dvh)}.course-ai-context summary{padding:7px 10px}.course-ai-context p{padding:0 10px 9px}.course-ai-messages{padding:13px 14px 5px}.course-ai-message{margin-bottom:15px}.course-ai-dialog .course-ai-copy{min-height:36px;padding-inline:8px}.course-ai-prompts button{min-height:36px;padding-inline:10px}.course-ai-composer{padding:8px 10px calc(7px + env(safe-area-inset-bottom))}.course-ai-composer textarea{font-size:16px;line-height:22px;padding-block:10px;min-height:42px}.course-ai-dialog .course-ai-send{width:42px;height:42px;min-height:42px}.course-ai-composer-meta{font-size:10px;margin-top:5px}}@media(max-height:520px){.course-ai-dialog{inset:8px 8px 8px auto;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.course-ai-heading{min-height:44px;padding-block:0}.course-ai-context{margin-top:5px;max-height:70px}.course-ai-context-excerpt{-webkit-line-clamp:1}.course-ai-composer{padding-top:6px}.course-ai-prompts{margin-bottom:5px}.course-ai-composer-meta{display:none}}@media(prefers-reduced-motion:reduce){.course-ai-context-arrow,.course-ai-input-wrap{transition:none}}