html:not([data-auth="signed-in"]) .teachr-chat-launcher,html:not([data-auth="signed-in"]) .teachr-chat-panel{display:none!important}.teachr-chat-launcher{position:fixed;right:24px;bottom:24px;z-index:1200;border:0;border-radius:999px;padding:13px 18px;background:#2563eb;color:#fff;font:700 14px/1 Inter,sans-serif;box-shadow:0 12px 30px rgba(15,23,42,.28);cursor:pointer;display:flex;align-items:center;gap:8px}.teachr-chat-launcher:hover{transform:translateY(-1px)}.teachr-chat-panel{position:fixed;top:0;right:0;z-index:1300;width:min(420px,100vw);height:100dvh;background:#0f172a;color:#e5eef9;box-shadow:-18px 0 45px rgba(15,23,42,.35);display:flex;flex-direction:column}.teachr-chat-panel[hidden]{display:none}.teachr-chat-header{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid rgba(148,163,184,.22)}.teachr-chat-title{display:flex;flex-direction:column;gap:3px}.teachr-chat-title strong{font-size:16px;color:#f8fafc}.teachr-chat-title small{color:#a8b7cb}.teachr-chat-header-actions{display:flex;gap:6px}.teachr-chat-icon{border:0;background:transparent;color:#dbe7f5;font-size:20px;cursor:pointer;padding:7px;border-radius:8px}.teachr-chat-icon:hover{background:rgba(148,163,184,.14)}.teachr-chat-context{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 18px;border-bottom:1px solid rgba(148,163,184,.18);background:#111827;color:#cbd5e1;font-size:11px}.teachr-chat-context-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.teachr-chat-context label{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#dbe7f5;cursor:pointer}.teachr-chat-context input{accent-color:#2563eb}.teachr-chat-history{border-bottom:1px solid rgba(148,163,184,.22);background:#111827;max-height:48vh;overflow:auto;padding:12px}.teachr-chat-history[hidden]{display:none}.teachr-chat-history-head{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 10px;color:#f8fafc}.teachr-chat-history-head button{border:0;background:transparent;color:#cbd5e1;font-size:20px;cursor:pointer}.teachr-chat-history-list{display:grid;gap:7px}.teachr-chat-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px;border:1px solid rgba(148,163,184,.2);border-radius:10px;padding:5px;background:#0f172a}.teachr-chat-history-open{border:0;background:transparent;color:#e5eef9;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px;cursor:pointer;font-weight:600}.teachr-chat-history-action{border:0;background:transparent;color:#93c5fd;padding:6px;cursor:pointer;font-size:11px}.teachr-chat-history-action.danger{color:#fca5a5}.teachr-chat-history-empty{color:#94a3b8;text-align:center;font-size:12px}.teachr-chat-body{flex:1;overflow:auto;padding:20px;background:#0f172a}.teachr-chat-welcome h3{margin:0 0 8px;font-size:20px;color:#f8fafc}.teachr-chat-welcome p{margin:0;color:#b6c4d6;line-height:1.55}.teachr-chat-prompts{display:grid;gap:9px;margin-top:18px}.teachr-chat-prompt{width:100%;text-align:left;border:1px solid rgba(148,163,184,.34);background:#111c2f;color:#eaf2fb;border-radius:12px;padding:12px 14px;font:600 13px/1.4 Inter,sans-serif;cursor:pointer}.teachr-chat-prompt:hover{background:#17243a;border-color:rgba(96,165,250,.55)}.teachr-chat-messages{display:flex;flex-direction:column;gap:12px;margin-top:18px}.teachr-chat-message{position:relative;max-width:88%;padding:11px 13px;border-radius:14px;line-height:1.5;font-size:14px;white-space:pre-wrap}.teachr-chat-message.user{align-self:flex-end;background:#2563eb;color:#fff}.teachr-chat-message.assistant{align-self:flex-start;background:#182236;color:#e8f0fa;padding-right:44px}.teachr-chat-message.error{border:1px solid rgba(248,113,113,.45);color:#fecaca}.teachr-chat-message.pending{color:#cbd5e1;padding-right:13px}.teachr-chat-copy{position:absolute;top:7px;right:7px;width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#111827;color:#dbe7f5;font:700 16px/1 Inter,sans-serif;cursor:pointer;touch-action:manipulation}.teachr-chat-copy:hover,.teachr-chat-copy:focus-visible{background:#243149;border-color:#60a5fa;outline:none}.teachr-chat-copy-feedback{position:absolute;top:41px;right:7px;padding:3px 6px;border-radius:5px;background:#020617;color:#dbeafe;font-size:10px;line-height:1.2;white-space:nowrap}.teachr-chat-limit-card{width:100%;max-width:100%;box-sizing:border-box;padding:18px!important;border:1px solid rgba(96,165,250,.48);background:linear-gradient(145deg,#182236,#111827)!important}.teachr-chat-limit-card strong{display:block;color:#f8fafc;font-size:15px;line-height:1.4}.teachr-chat-limit-card p{margin:8px 0 14px;color:#cbd5e1}.teachr-chat-upgrade-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:10px;background:#2563eb;color:#fff!important;text-decoration:none;font-weight:800}.teachr-chat-upgrade-button:hover,.teachr-chat-upgrade-button:focus-visible{background:#1d4ed8;outline:2px solid #93c5fd;outline-offset:2px}.teachr-chat-composer{border-top:1px solid rgba(148,163,184,.22);padding:14px;background:#0b1220}.teachr-chat-form{display:flex;align-items:flex-end;gap:8px;border:1px solid rgba(148,163,184,.38);border-radius:14px;padding:8px;background:#111827}.teachr-chat-input{flex:1;resize:none;border:0;outline:0;background:transparent;color:#f8fafc;font:14px/1.45 Inter,sans-serif;min-height:40px;max-height:120px;padding:9px}.teachr-chat-input::placeholder{color:#8fa1b8}.teachr-chat-send{border:0;border-radius:10px;background:#2563eb;color:#fff;font-weight:700;padding:11px 14px;cursor:pointer}.teachr-chat-send:disabled{opacity:.65;cursor:not-allowed}.teachr-chat-note{display:block;margin-top:7px;text-align:center;color:#93a4ba;font-size:11px}@media(max-width:640px){.teachr-chat-launcher{right:16px;bottom:16px}.teachr-chat-panel{width:100vw}.teachr-chat-body{padding:18px}.teachr-chat-header{padding:16px}.teachr-chat-context{padding:9px 16px}.teachr-chat-history{max-height:55vh}.teachr-chat-message{max-width:92%}.teachr-chat-limit-card{max-width:100%}.teachr-chat-upgrade-button{width:100%;box-sizing:border-box}}