.course-assistant-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: white; background: #173f34; box-shadow: 0 14px 38px rgba(17, 54, 43, .24); cursor: pointer; }
.course-assistant-launcher > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #183f34; background: #f2ae6e; }
.course-assistant-launcher > span:last-child { display: grid; gap: 1px; text-align: left; }
.course-assistant-launcher b { font-size: 12px; }
.course-assistant-launcher small { color: rgba(255, 255, 255, .64); font-size: 10px; }
.course-assistant-backdrop { position: fixed; inset: 0; z-index: 75; background: rgba(14, 29, 23, .25); backdrop-filter: blur(2px); }
.course-assistant-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100vw); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; color: #1d2f27; background: #f8faf6; box-shadow: -18px 0 55px rgba(16, 46, 36, .2); }
.course-assistant-panel > header { min-height: 68px; display: grid; grid-template-columns: 38px 1fr 34px 34px; align-items: center; gap: 8px; padding: 12px 16px; color: white; background: #173f34; }
.course-assistant-panel > header > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #173f34; background: #f2ae6e; }
.course-assistant-panel > header div { display: grid; gap: 2px; }
.course-assistant-panel > header strong { font-size: 13px; }
.course-assistant-panel > header small { color: rgba(255, 255, 255, .62); font-size: 10px; }
.course-assistant-panel > header button { width: 32px; height: 32px; border: 0; border-radius: 9px; color: white; background: rgba(255, 255, 255, .08); cursor: pointer; }
.course-assistant-context, .course-assistant-wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-bottom: 1px solid #dfe6df; font-size: 11px; }
.course-assistant-context span, .course-assistant-wallet small { color: #738078; }
.course-assistant-wallet { flex-wrap: wrap; background: #f0f4ef; }
.course-assistant-wallet a { color: #245f4b; font-weight: 700; text-decoration: none; }
.course-assistant-messages { min-height: 0; display: grid; align-content: start; gap: 12px; padding: 18px 16px; overflow-y: auto; overflow-x: hidden; }
.course-assistant-message { display: flex; gap: 8px; max-width: 92%; }
.course-assistant-message.user { justify-self: end; }
.course-assistant-message.assistant { justify-self: start; }
.course-assistant-avatar { width: 26px; height: 26px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #173f34; background: #efb374; font-size: 11px; }
.course-assistant-bubble { padding: 11px 13px; border: 1px solid #dde5de; border-radius: 4px 13px 13px; color: #4e5e55; background: white; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.course-assistant-message.user .course-assistant-bubble { color: white; border: 0; border-radius: 13px 4px 13px 13px; background: #356e5a; }
.course-assistant-message.error .course-assistant-bubble { color: #884b3d; background: #fff0eb; }
.course-assistant-usage { display: block; margin-top: 5px; color: #87928c; font-size: 9px; }
.course-assistant-suggestions { display: flex; gap: 7px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.course-assistant-suggestions::-webkit-scrollbar { display: none; }
.course-assistant-suggestions button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #d5dfd7; border-radius: 999px; color: #577067; background: white; cursor: pointer; font-size: 10px; }
.course-assistant-form { display: grid; grid-template-columns: 1fr 38px; gap: 8px; padding: 12px 16px 15px; border-top: 1px solid #dfe6df; background: white; }
.course-assistant-form textarea { min-height: 42px; max-height: 110px; padding: 10px 12px; border: 1px solid #d3ddd5; border-radius: 11px; outline: none; resize: none; }
.course-assistant-form textarea:focus { border-color: #3978a8; box-shadow: 0 0 0 3px rgba(57, 120, 168, .1); }
.course-assistant-form > button { width: 38px; height: 38px; align-self: end; border: 0; border-radius: 11px; color: white; background: #235c49; cursor: pointer; }
.course-assistant-form > button:disabled { opacity: .4; cursor: default; }
.course-assistant-form > small { grid-column: 1 / 3; color: #89948e; font-size: 9px; }
.course-assistant-points-cta { display: inline-block; margin-top: 8px; color: #235c49; font-weight: 700; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body.course-assistant-open { overflow: hidden; }
@media (max-width: 560px) {
  .course-assistant-launcher { right: 14px; bottom: 14px; }
  .course-assistant-panel { width: 100vw; }
}
