#notenest-ai-widget{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;position:fixed!important;right:22px!important;bottom:22px!important;z-index:2147483646!important;font-size:14px;display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
#notenest-ai-widget *{box-sizing:border-box}
#notenest-ai-widget .nn-ai-launcher{border:0;border-radius:999px;background:#4338ca;color:#fff;padding:13px 19px;font-size:14px;font-weight:700;box-shadow:0 8px 30px #17133b38;cursor:pointer;letter-spacing:.01em}
#notenest-ai-widget .nn-ai-launcher:hover{background:#3730a3;transform:translateY(-1px)}
#notenest-ai-widget .nn-ai-panel{position:absolute;right:0;bottom:62px;width:min(430px,calc(100vw - 28px));height:min(660px,calc(100dvh - 112px));background:#fff;border:1px solid #e3e6ef;border-radius:18px;box-shadow:0 24px 70px #1118273d;display:flex;flex-direction:column;overflow:hidden}
#notenest-ai-widget .nn-ai-panel[hidden]{display:none}
#notenest-ai-widget .nn-ai-header{height:70px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:12px 15px;border-bottom:1px solid #e8eaf2;background:#fff}
#notenest-ai-widget .nn-ai-brand{display:flex;align-items:center;gap:10px;min-width:0}
#notenest-ai-widget .nn-ai-brand-icon{width:38px;height:38px;border-radius:13px;background:#eeedff;color:#4338ca;display:grid;place-items:center;font-size:22px}
#notenest-ai-widget .nn-ai-brand-text{display:flex;flex-direction:column;gap:2px}
#notenest-ai-widget .nn-ai-brand-text strong{font-size:14px;line-height:1.2}
#notenest-ai-widget .nn-ai-brand-text small{font-size:11px;color:#737b90}
#notenest-ai-widget .nn-ai-header-right{display:flex;align-items:center;gap:9px}
#notenest-ai-widget .nn-ai-points{font-size:11px;color:#4d46a8;background:#f1f0ff;border-radius:20px;padding:6px 9px;white-space:nowrap}
#notenest-ai-widget .nn-ai-close{width:30px;height:30px;border:0;border-radius:9px;background:transparent;color:#6b7280;font-size:24px;line-height:1;cursor:pointer}
#notenest-ai-widget .nn-ai-tabs{display:flex;gap:4px;flex:none;padding:8px 12px;border-bottom:1px solid #e8eaf2;background:#fbfbfe}
#notenest-ai-widget .nn-ai-tabs[hidden]{display:none}
#notenest-ai-widget .nn-ai-tab{border:0;border-radius:8px;padding:8px 10px;background:transparent;color:#667085;font-size:12px;font-weight:600;cursor:pointer}
#notenest-ai-widget .nn-ai-tab.is-active{background:#eeedff;color:#4338ca}
#notenest-ai-widget .nn-ai-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto;background:#fff}
#notenest-ai-widget .nn-ai-messages{flex:1;min-height:0;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:12px}
#notenest-ai-widget .nn-ai-welcome{margin:auto;text-align:center;max-width:280px;padding:28px 12px;color:#687084}
#notenest-ai-widget .nn-ai-welcome-icon{width:52px;height:52px;margin:0 auto 15px;border-radius:18px;display:grid;place-items:center;background:#eeedff;color:#4338ca;font-size:26px}
#notenest-ai-widget .nn-ai-welcome h3{margin:0 0 7px;color:#1f2937;font-size:17px;font-weight:700}
#notenest-ai-widget .nn-ai-welcome p{margin:0;font-size:13px;line-height:1.6}
#notenest-ai-widget .nn-ai-message{max-width:88%;display:flex;flex-direction:column;gap:4px;align-self:flex-start}
#notenest-ai-widget .nn-ai-message.is-user{align-self:flex-end}
#notenest-ai-widget .nn-ai-author{font-size:10px;font-weight:700;color:#7b8498;padding:0 3px}
#notenest-ai-widget .nn-ai-message.is-user .nn-ai-author{text-align:right}
#notenest-ai-widget .nn-ai-message-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:13px;padding:10px 12px;border-radius:13px;background:#f1f3f8;color:#263044}
#notenest-ai-widget .nn-ai-message.is-user .nn-ai-message-text{background:#4338ca;color:#fff;border-bottom-right-radius:4px}
#notenest-ai-widget .nn-ai-message.is-assistant .nn-ai-message-text{border-bottom-left-radius:4px}
#notenest-ai-widget .nn-ai-typing{font-size:12px;color:#7b8498;padding:6px 2px}
#notenest-ai-widget .nn-ai-composer{flex:none;display:flex;gap:8px;padding:12px;border-top:1px solid #e8eaf2;background:#fff}
#notenest-ai-widget .nn-ai-input{resize:none;flex:1;min-width:0;border:1px solid #dfe3ec;border-radius:12px;padding:10px 11px;font:inherit;font-size:13px;line-height:1.45;outline:none;background:#fff;color:#1f2937}
#notenest-ai-widget .nn-ai-input:focus,#notenest-ai-widget .nn-ai-control:focus{border-color:#7770df;box-shadow:0 0 0 3px #4338ca17}
#notenest-ai-widget .nn-ai-send{border:0;border-radius:11px;padding:0 14px;background:#4338ca;color:#fff;font-size:12px;font-weight:700;cursor:pointer}
#notenest-ai-widget button:disabled{opacity:.55;cursor:not-allowed}
#notenest-ai-widget .nn-ai-disclaimer{flex:none;margin:0;padding:0 14px 11px;text-align:center;color:#8991a3;font-size:10px;background:#fff}
#notenest-ai-widget .nn-ai-settings-form{padding:15px;display:flex;flex-direction:column;gap:13px;overflow:auto}
#notenest-ai-widget .nn-ai-settings-intro h3{font-size:15px;margin:0 0 4px;color:#1f2937;font-weight:700}
#notenest-ai-widget .nn-ai-settings-intro p{font-size:12px;color:#737b90;line-height:1.5;margin:0}
#notenest-ai-widget .nn-ai-toggle{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;color:#273247}
#notenest-ai-widget .nn-ai-toggle input{width:16px;height:16px;accent-color:#4338ca}
#notenest-ai-widget .nn-ai-field{display:flex;flex-direction:column;gap:6px;min-width:0}
#notenest-ai-widget .nn-ai-field-label{font-size:11px;font-weight:700;color:#4b5568}
#notenest-ai-widget .nn-ai-control{width:100%;min-width:0;border:1px solid #dfe3ec;border-radius:9px;padding:9px 10px;background:#fff;color:#273247;font:inherit;font-size:12px;outline:none}
#notenest-ai-widget .nn-ai-control[readonly]{background:#f7f8fb;color:#737b90}
#notenest-ai-widget .nn-ai-hint{font-size:10px;color:#8a92a3;line-height:1.4}
#notenest-ai-widget .nn-ai-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#notenest-ai-widget .nn-ai-action-row{display:flex;gap:8px;flex-wrap:wrap}
#notenest-ai-widget .nn-ai-primary,#notenest-ai-widget .nn-ai-secondary{border:0;border-radius:9px;padding:10px 13px;font-size:12px;font-weight:700;cursor:pointer}
#notenest-ai-widget .nn-ai-primary{background:#4338ca;color:#fff}
#notenest-ai-widget .nn-ai-secondary{background:#eeedff;color:#4338ca}
#notenest-ai-widget .nn-ai-feedback{font-size:12px;line-height:1.45}
#notenest-ai-widget .nn-ai-feedback.is-success{color:#15803d}
#notenest-ai-widget .nn-ai-feedback.is-error{color:#b91c1c}
#notenest-ai-widget .nn-ai-feedback.is-warning{color:#a16207}
#notenest-ai-widget .nn-ai-loading{margin:auto;padding:24px;color:#727b90;font-size:13px}
#notenest-ai-widget .nn-ai-student-list,#notenest-ai-widget .nn-ai-usage-list{padding:0 14px;display:flex;flex-direction:column;gap:8px}
#notenest-ai-widget .nn-ai-student{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #e8eaf2;border-radius:10px}
#notenest-ai-widget .nn-ai-student-info{min-width:0;display:flex;flex-direction:column;gap:3px}
#notenest-ai-widget .nn-ai-student-info strong{font-size:12px;color:#273247}
#notenest-ai-widget .nn-ai-student-info small{font-size:9px;color:#8991a3;overflow-wrap:anywhere}
#notenest-ai-widget .nn-ai-student-actions{display:flex;gap:4px;flex:none}
#notenest-ai-widget .nn-ai-mini{border:0;border-radius:7px;background:#eeedff;color:#4338ca;font-size:10px;font-weight:700;padding:6px 7px;cursor:pointer}
#notenest-ai-widget .nn-ai-mini.is-remove{background:#fff1f2;color:#be123c}
#notenest-ai-widget .nn-ai-usage-title{padding:18px 14px 9px}
#notenest-ai-widget .nn-ai-usage-row{display:flex;flex-direction:column;gap:3px;padding:8px 0;border-bottom:1px solid #eff0f5;font-size:11px;color:#3b4558}
#notenest-ai-widget .nn-ai-usage-row small{font-size:10px;color:#858da0}
#notenest-ai-widget .nn-ai-content:has(.nn-ai-student-list){padding-bottom:16px}
.dark #notenest-ai-widget .nn-ai-panel,.dark #notenest-ai-widget .nn-ai-header,.dark #notenest-ai-widget .nn-ai-content,.dark #notenest-ai-widget .nn-ai-composer,.dark #notenest-ai-widget .nn-ai-disclaimer{background:#171923;color:#e5e7eb;border-color:#303443}
.dark #notenest-ai-widget .nn-ai-tabs{background:#1b1e2a;border-color:#303443}
.dark #notenest-ai-widget .nn-ai-tab{color:#a7aec0}
.dark #notenest-ai-widget .nn-ai-tab.is-active{background:#302d62;color:#c7c4ff}
.dark #notenest-ai-widget .nn-ai-brand-text strong,.dark #notenest-ai-widget .nn-ai-welcome h3,.dark #notenest-ai-widget .nn-ai-settings-intro h3,.dark #notenest-ai-widget .nn-ai-student-info strong{color:#f3f4f6}
.dark #notenest-ai-widget .nn-ai-input,.dark #notenest-ai-widget .nn-ai-control{background:#202330;color:#e5e7eb;border-color:#414657}
.dark #notenest-ai-widget .nn-ai-control[readonly]{background:#252939;color:#aab2c2}
.dark #notenest-ai-widget .nn-ai-message-text{background:#292d3c;color:#eef0f6}
.dark #notenest-ai-widget .nn-ai-message.is-user .nn-ai-message-text{background:#5149c6;color:#fff}
.dark #notenest-ai-widget .nn-ai-student{border-color:#333849}
.dark #notenest-ai-widget .nn-ai-usage-row{border-color:#333849;color:#d8dbea}
@media(max-width:520px){#notenest-ai-widget{right:14px;bottom:14px}#notenest-ai-widget .nn-ai-panel{right:-7px;bottom:60px;height:min(660px,calc(100dvh - 88px));width:calc(100vw - 20px);border-radius:16px}#notenest-ai-widget .nn-ai-launcher{padding:12px 16px}}

#notenest-ai-widget .nn-ai-launcher{min-height:48px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;position:relative!important;z-index:2147483647!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
#notenest-ai-widget .nn-ai-boot-error{padding:18px;display:flex;flex-direction:column;gap:10px;color:#344054}
#notenest-ai-widget .nn-ai-boot-error h3{font-size:15px;font-weight:700;margin:0;color:#b42318}
#notenest-ai-widget .nn-ai-boot-error p{font-size:12px;line-height:1.55;margin:0;color:#667085}
