.course-chatbot {
  --chat-navy: #071c26;
  --chat-navy-soft: #0d2a34;
  --chat-mint: #69e1c1;
  --chat-mint-soft: #e8faf5;
  --chat-line: #dbe8e4;
  --chat-text: #142a30;
  --chat-muted: #6d7f82;
  --chat-body-size: 12px;
  position: fixed;
  z-index: 90;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

.course-chatbot button,
.course-chatbot input,
.course-chatbot summary {
  font-family: inherit;
}

.course-support-launchers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.course-support-collapse {
  position: absolute;
  right: calc(100% + 5px);
  bottom: 16px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgb(105 225 193 / 26%);
  border-radius: 8px;
  color: var(--chat-mint);
  background: rgb(7 28 38 / 88%);
  box-shadow: none;
  transition: right 160ms ease, bottom 160ms ease, width 160ms ease, height 160ms ease, transform 160ms ease;
}

.course-support-collapse:hover,
.course-support-collapse:focus-visible {
  background: var(--chat-navy-soft);
  outline: 2px solid rgb(105 225 193 / 16%);
}

.course-support-collapse-glyph {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
}

.course-support-collapse-glyph::before,
.course-support-collapse-glyph::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 150ms ease;
}

.course-support-collapse-glyph::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.course-chatbot.is-collapsed .course-support-launchers {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(14px);
}

.course-chatbot.is-collapsed .course-support-collapse {
  right: 0;
  bottom: 14px;
  width: 30px;
  height: 30px;
}

.course-chatbot.is-collapsed .course-support-collapse-glyph::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(1);
}

.course-chatbot-launcher {
  display: flex;
  width: 132px;
  min-width: 132px;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--chat-mint) 50%, transparent);
  border-radius: 999px;
  color: #f3fffb;
  background: var(--chat-navy);
  box-shadow: 0 18px 48px rgb(0 18 25 / 28%);
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.course-chatbot-launcher:hover,
.course-chatbot-launcher:focus-visible {
  background: var(--chat-navy-soft);
  box-shadow: 0 20px 55px rgb(0 18 25 / 36%);
  outline: 3px solid color-mix(in srgb, var(--chat-mint) 30%, transparent);
  transform: translateY(-2px);
}

.course-chatbot-launcher .icon {
  width: 23px;
  height: 23px;
  color: var(--chat-mint);
}

.course-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  width: min(390px, calc(100vw - 32px));
  max-height: min(660px, calc(100dvh - 180px));
  overflow: hidden;
  border: 1px solid rgb(104 157 151 / 24%);
  border-radius: 24px;
  color: var(--chat-text);
  background: #f8fbfa;
  box-shadow: 0 26px 80px rgb(0 22 30 / 34%);
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  transform-origin: right bottom;
  animation: chatbot-open 180ms ease-out;
}

.course-chatbot-panel[hidden] {
  display: none;
}

.course-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  color: white;
  background: linear-gradient(135deg, var(--chat-navy), #123943);
}

.course-chatbot-header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.course-chatbot-header strong,
.course-chatbot-header small {
  display: block;
}

.course-chatbot-header strong {
  font-size: 14px;
  letter-spacing: -0.025em;
}

.course-chatbot-header small {
  margin-top: 2px;
  color: #a8c9c4;
  font-size: 9px;
}

.course-chatbot-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: var(--chat-mint);
  background: rgb(105 225 193 / 12%);
}

.course-chatbot-mark .icon {
  width: 20px;
  height: 20px;
}

.course-chatbot-header > button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  color: #b8d0cc;
  background: transparent;
}

.course-chatbot-header > button:hover,
.course-chatbot-header > button:focus-visible {
  color: white;
  background: rgb(255 255 255 / 10%);
  outline: none;
}

.course-chatbot-header > button .icon {
  width: 19px;
  height: 19px;
}

.course-chatbot-messages {
  min-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 17px;
}

.course-chatbot-message {
  display: flex;
  margin-bottom: 12px;
  flex-direction: column;
}

.course-chatbot-scroll-spacer {
  width: 1px;
  min-height: 0;
  pointer-events: none;
}

.course-chatbot-message > p {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 11px 13px;
  border-radius: 6px 16px 16px;
  color: var(--chat-text);
  background: #eaf1ef;
  font-size: var(--chat-body-size);
  line-height: 1.65;
  white-space: pre-line;
}

.course-chatbot-message.is-user {
  align-items: flex-end;
}

.course-chatbot-message.is-user > p {
  border-radius: 16px 6px 16px 16px;
  color: #05231e;
  background: var(--chat-mint);
}

.course-chatbot-message.is-loading > p::after {
  display: inline-block;
  width: 14px;
  overflow: hidden;
  vertical-align: bottom;
  content: "…";
  animation: chatbot-thinking 900ms infinite;
}

.course-chatbot-message.has-results > p {
  max-width: 100%;
}

.course-chatbot-result {
  margin-top: 8px;
  padding: 13px;
  border: 1px solid var(--chat-line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 24px rgb(10 40 43 / 6%);
}

.course-chatbot-result > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
}

.course-chatbot-result > div:first-child span {
  padding: 3px 6px;
  border-radius: 999px;
  color: #0e715e;
  background: var(--chat-mint-soft);
  font-size: 8px;
  font-weight: 850;
}

.course-chatbot-result strong {
  overflow: hidden;
  font-size: 14px;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-chatbot-result small {
  grid-column: 2;
  margin-top: 2px;
  color: var(--chat-muted);
  font-size: 8px;
}

.course-chatbot-result > p {
  margin: 10px 0 0;
  color: #42575a;
  font-size: 10px;
  line-height: 1.55;
}

.course-chatbot-result > .course-chatbot-reason {
  padding-top: 8px;
  border-top: 1px solid #edf2f1;
  color: #637477;
  font-size: 9px;
}

.course-chatbot-result > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.course-chatbot-result > div:last-child span {
  color: #69807d;
  font-size: 8px;
  font-weight: 750;
}

.course-chatbot-result-detail {
  border: 0;
  padding: 6px 9px;
  border-radius: 9px;
  color: #0b5f50;
  background: var(--chat-mint-soft);
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.course-chatbot-result-detail:hover,
.course-chatbot-result-detail:focus-visible {
  color: #084c40;
  background: #d7f5ec;
  outline: 2px solid #72cdb7;
}

.course-chatbot-message > .course-chatbot-followup-question {
  width: auto;
  max-width: 100%;
  margin-top: 10px;
  border: 1px solid #d8e7e3;
  background: #f6faf9;
}

.course-chatbot-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.course-chatbot-followups button {
  padding: 7px 10px;
  border: 1px solid #9fd6c9;
  border-radius: 999px;
  color: #0b6655;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.course-chatbot-followups button:hover,
.course-chatbot-followups button:focus-visible {
  border-color: #37a98f;
  background: var(--chat-mint-soft);
  outline: none;
}

.course-chatbot-message.is-faq-clarification .course-chatbot-followups {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.course-chatbot-message.is-faq-clarification .course-chatbot-followups button {
  width: 100%;
  border-radius: 12px;
  text-align: left;
  line-height: 1.45;
}

.course-chatbot-message > .course-chatbot-source {
  width: auto;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px 0 0;
  border-top: 1px solid #dce8e5;
  border-radius: 0;
  color: #637875;
  background: transparent;
  font-size: 10px;
  line-height: 1.55;
}

.course-chatbot-detail-dialog {
  width: min(680px, calc(100vw - 32px));
  max-width: none;
  max-height: min(86dvh, 820px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(104 157 151 / 34%);
  border-radius: 24px;
  color: var(--chat-text);
  background: #f8fbfa;
  box-shadow: 0 30px 100px rgb(0 20 28 / 38%);
}

.course-chatbot-detail-dialog::backdrop {
  background: rgb(3 20 27 / 58%);
  backdrop-filter: blur(3px);
}

.course-chatbot-detail-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  display: grid;
  width: 38px;
  height: 38px;
  margin: 14px 14px -52px 0;
  place-items: center;
  padding: 0;
  border: 1px solid #d6e4e1;
  border-radius: 12px;
  color: #526c69;
  background: rgb(255 255 255 / 92%);
  cursor: pointer;
}

.course-chatbot-detail-close:hover,
.course-chatbot-detail-close:focus-visible {
  color: #0b6655;
  background: white;
  outline: 3px solid rgb(105 225 193 / 24%);
}

.course-chatbot-detail-close .icon {
  width: 19px;
  height: 19px;
}

.course-chatbot-detail {
  padding: 28px;
}

.course-chatbot-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 42px;
}

.course-chatbot-detail-head > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #08745b;
  background: var(--chat-mint-soft);
}

.course-chatbot-detail-head > span .icon {
  width: 25px;
  height: 25px;
}

.course-chatbot-detail-head small {
  color: #738885;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.course-chatbot-detail-head h2 {
  margin: 3px 0 0;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.course-chatbot-detail-head div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.course-chatbot-detail-head em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #226653;
  background: #eaf6f1;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.course-chatbot-detail-facts {
  display: grid;
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--chat-line);
  border-radius: 15px;
  background: white;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.course-chatbot-detail-facts > div {
  padding: 13px 10px;
  border-right: 1px solid var(--chat-line);
  text-align: center;
}

.course-chatbot-detail-facts > div:last-child {
  border-right: 0;
}

.course-chatbot-detail-facts dt {
  color: var(--chat-muted);
  font-size: 9px;
  font-weight: 750;
}

.course-chatbot-detail-facts dd {
  margin: 5px 0 0;
  color: #294540;
  font-size: 12px;
  font-weight: 850;
}

.course-chatbot-detail-sections {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.course-chatbot-detail-sections section {
  padding: 17px;
  border: 1px solid #e1ebe8;
  border-radius: 16px;
  background: white;
}

.course-chatbot-detail-sections section.is-recommendation {
  border-color: #cde9e1;
  background: #eef8f4;
}

.course-chatbot-detail-sections h3 {
  margin: 0;
  color: #203b37;
  font-size: 15px;
}

.course-chatbot-detail-sections p,
.course-chatbot-detail-sections li {
  color: #536663;
  font-size: 13px;
  line-height: 1.75;
}

.course-chatbot-detail-sections p {
  margin: 8px 0 0;
}

.course-chatbot-detail-sections ul {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding-left: 20px;
}

.course-chatbot-detail-source {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--chat-line);
  color: #637875;
  font-size: 11px;
  line-height: 1.6;
}

.course-faq-launcher {
  display: inline-flex;
  width: 132px;
  min-width: 132px;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgb(208 184 147 / 30%);
  border-radius: 999px;
  color: #eee5d8;
  background: #173139;
  box-shadow: 0 12px 34px rgb(0 18 25 / 22%);
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.course-faq-launcher:hover,
.course-faq-launcher:focus-visible,
.course-chatbot.is-faq-open .course-faq-launcher {
  border-color: rgb(208 184 147 / 58%);
  color: #fff8ee;
  background: #234149;
  outline: 3px solid rgb(208 184 147 / 12%);
  transform: translateY(-1px);
}

.course-faq-launcher .icon {
  width: 22px;
  height: 22px;
  color: #d0b893;
}

.course-faq-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  width: min(410px, calc(100vw - 32px));
  max-height: min(610px, calc(100dvh - 220px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(104 157 151 / 24%);
  border-radius: 24px;
  color: var(--chat-text);
  background: #f8fbfa;
  box-shadow: 0 26px 80px rgb(0 22 30 / 34%);
  transform-origin: right bottom;
  animation: chatbot-open 180ms ease-out;
}

.course-faq-panel[hidden] {
  display: none;
}

.course-faq-body {
  min-height: 0;
  padding: 15px;
  overflow-y: auto;
}

.course-faq-header strong {
  font-size: 17px;
}

.course-faq-header small {
  font-size: 11px;
}

.course-chatbot-faq-list {
  border: 1px solid var(--chat-line);
  border-radius: 15px;
  overflow: hidden;
  background: white;
}

.course-chatbot-faq-item {
  border-top: 1px solid #edf2f1;
}

.course-chatbot-faq-item:first-child {
  border-top: 0;
}

.course-chatbot-faq-item > summary {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 8px 5px;
  cursor: pointer;
  list-style: none;
}

.course-chatbot-faq-item > summary::-webkit-details-marker {
  display: none;
}

.course-chatbot-faq-item > summary > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #0d7661;
  background: var(--chat-mint-soft);
  font-size: 8px;
  font-weight: 850;
}

.course-chatbot-faq-item > summary strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334b50;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.5;
  white-space: normal;
}

.course-chatbot-faq-item > p {
  margin: -2px 5px 10px 37px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #53696c;
  background: #f1f6f4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.course-faq-contact {
  display: grid;
  gap: 7px;
  margin: -2px 5px 10px 37px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #53696c;
  background: #f1f6f4;
  font-size: 13px;
}

.course-faq-contact > span {
  display: grid;
  grid-template-columns: 18px 50px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.course-faq-contact .icon {
  width: 17px;
  height: 17px;
  color: #0d7661;
}

.course-faq-contact b {
  color: #334b50;
  font-weight: 850;
  white-space: nowrap;
}

.course-faq-contact em,
.course-faq-contact a {
  min-width: 0;
  color: #53696c;
  font-style: normal;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.course-faq-contact a {
  color: #08745b;
  font-weight: 700;
  text-decoration: none;
}

.course-faq-source-list {
  display: grid;
  gap: 7px;
  margin: -2px 5px 10px 37px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #53696c;
  background: #f1f6f4;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  list-style: none;
}

.course-faq-source-list > li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 3px;
  align-items: start;
}

.course-faq-source-list > li > span:first-child {
  color: #0d7661;
  font-weight: 850;
}

.course-chatbot-faq-item > summary strong .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #c98b21;
}

.course-chatbot-form {
  display: grid;
  margin: 0 14px;
  padding: 5px;
  border: 1px solid #cadbd7;
  border-radius: 16px;
  background: white;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.course-chatbot-form label,
.course-chatbot-form input {
  min-width: 0;
  width: 100%;
}

.course-chatbot-form input {
  height: 40px;
  padding: 0 9px;
  border: 0;
  color: var(--chat-text);
  background: transparent;
  font-size: 11px;
  outline: none;
}

.course-chatbot-form input::placeholder {
  color: #91a09e;
}

.course-chatbot-form > button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  color: #062820;
  background: var(--chat-mint);
}

.course-chatbot-form > button:hover,
.course-chatbot-form > button:focus-visible {
  background: #80ebce;
  outline: 2px solid #2b9c81;
}

.course-chatbot-form > button .icon {
  width: 18px;
  height: 18px;
}

.course-chatbot-disclaimer {
  margin: 8px 16px 11px;
  color: #82918f;
  font-size: 8px;
  text-align: center;
}

@keyframes chatbot-open {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chatbot-thinking {
  0%, 30% { width: 5px; }
  60% { width: 10px; }
  100% { width: 14px; }
}

@media (max-width: 620px) {
  .course-chatbot {
    right: 14px;
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .course-support-collapse {
    right: calc(100% + 4px);
    bottom: 15px;
    width: 24px;
    height: 24px;
  }

  .course-chatbot.is-collapsed .course-support-collapse {
    bottom: 12px;
    width: 28px;
    height: 28px;
  }

  .course-support-launchers {
    gap: 8px;
  }

  .course-chatbot-launcher,
  .course-faq-launcher {
    width: 46px;
    min-width: 46px;
    height: 46px;
    gap: 0;
    padding: 0;
  }

  .course-chatbot-launcher > span,
  .course-faq-launcher > span {
    display: none;
  }

  .course-chatbot-launcher .icon,
  .course-faq-launcher .icon {
    width: 22px;
    height: 22px;
  }

  .course-chatbot-panel,
  .course-faq-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    left: auto;
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 205px - env(safe-area-inset-bottom));
    border-radius: 20px;
  }

  .course-faq-panel {
    width: calc(100vw - 8px);
  }

  .course-faq-body {
    padding: 12px;
  }

  .course-chatbot-detail-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

  .course-chatbot-detail {
    padding: 22px 17px;
  }

  .course-chatbot-detail-head {
    gap: 10px;
  }

  .course-chatbot-detail-head > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .course-chatbot-detail-head h2 {
    font-size: 22px;
  }

  .course-chatbot-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-chatbot-detail-facts > div:nth-child(2n) {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-chatbot-panel,
  .course-faq-panel,
  .course-chatbot-detail-dialog,
  .course-chatbot-message.is-loading > p::after {
    animation: none;
  }

  .course-chatbot-launcher,
  .course-faq-launcher {
    transition: none;
  }
}

.course-chatbot-shortcuts {
  display: grid;
  gap: 8px;
  margin-top: 11px;
  padding: 12px;
  border: 1px solid #cfe3dd;
  border-radius: 15px;
  background: #f5faf8;
}

.course-chatbot-shortcuts > p {
  margin: 0;
  color: #526c66;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
}

.course-chatbot-shortcuts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.course-chatbot-shortcuts a {
  display: grid;
  min-height: 40px;
  grid-template-columns: 29px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border: 1px solid #b9d9d0;
  border-radius: 11px;
  color: #0b6655;
  background: #fff;
  text-decoration: none;
}

.course-chatbot-shortcuts a > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: var(--chat-mint-soft);
}

.course-chatbot-shortcuts a > span .icon {
  width: 15px;
  height: 15px;
}

.course-chatbot-shortcuts a > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-chatbot-shortcuts a > .icon {
  width: 14px;
  height: 14px;
}

.course-chatbot-shortcuts a:hover,
.course-chatbot-shortcuts a:focus-visible {
  border-color: #4eaf99;
  outline: none;
  background: #eaf7f3;
  box-shadow: 0 0 0 3px rgb(78 175 153 / 13%);
}

@media (min-width: 621px) {
  .course-chatbot-shortcuts > p,
  .course-chatbot-shortcuts a > strong {
    font-size: 12px;
  }

  .course-chatbot-shortcuts a {
    min-height: 44px;
  }
}

/* Roomier desktop support dock; mobile keeps its compact footprint. */
@media (min-width: 621px) {
  .course-chatbot {
    --chat-body-size: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .course-support-launchers {
    gap: 10px;
  }

  .course-chatbot-launcher,
  .course-faq-launcher {
    width: 156px;
    min-width: 156px;
    height: 66px;
    font-size: 14px;
  }

  .course-chatbot-launcher .icon,
  .course-faq-launcher .icon {
    width: 25px;
    height: 25px;
  }

  .course-support-collapse {
    right: calc(100% + 8px);
    bottom: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .course-chatbot.is-collapsed .course-support-collapse {
    right: 0;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .course-support-collapse-glyph,
  .course-support-collapse-glyph::before,
  .course-support-collapse-glyph::after {
    width: 14px;
  }

  .course-support-collapse-glyph {
    height: 14px;
  }

  .course-chatbot-panel {
    width: min(480px, calc(100vw - 40px));
    max-height: min(720px, calc(100dvh - 190px));
  }

  .course-chatbot-header strong {
    font-size: 16px;
  }

  .course-chatbot-result strong {
    font-size: 16px;
  }

  .course-chatbot-result small {
    font-size: 10px;
  }

  .course-chatbot-result > p {
    font-size: 12px;
  }

  .course-chatbot-result > .course-chatbot-reason {
    font-size: 11px;
  }

  .course-chatbot-result > div:last-child span {
    font-size: 10px;
  }

  .course-chatbot-result-detail,
  .course-chatbot-followups button {
    font-size: 11px;
  }

  .course-chatbot-message.is-faq-clarification .course-chatbot-followups {
    gap: 8px;
  }

  .course-chatbot-message.is-faq-clarification .course-chatbot-followups button {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 12px;
  }

  .course-chatbot-message > .course-chatbot-source {
    font-size: 11px;
  }

  .course-chatbot-form input {
    font-size: 13px;
  }

  .course-chatbot-disclaimer {
    font-size: 10px;
  }

  .course-faq-panel {
    width: min(450px, calc(100vw - 40px));
    max-height: min(680px, calc(100dvh - 220px));
  }
}

@media (min-width: 821px) {
  .course-support-launchers {
    gap: 12px;
  }

  .course-chatbot-launcher,
  .course-faq-launcher {
    width: 164px;
    min-width: 164px;
    height: 72px;
    font-size: 15px;
  }

  .course-chatbot-launcher .icon,
  .course-faq-launcher .icon {
    width: 29px;
    height: 29px;
  }

  .course-support-collapse {
    right: calc(100% + 10px);
    bottom: 15px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .course-chatbot.is-collapsed .course-support-collapse {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .course-support-collapse-glyph,
  .course-support-collapse-glyph::before,
  .course-support-collapse-glyph::after {
    width: 17px;
  }

  .course-support-collapse-glyph {
    height: 17px;
  }
}

/* Keep the fixed support shell from swallowing clicks outside its visible controls. */
.course-chatbot {
  pointer-events: none;
}

.course-chatbot-launcher,
.course-faq-launcher,
.course-support-collapse,
.course-chatbot-panel,
.course-faq-panel,
.course-chatbot-detail-dialog {
  pointer-events: auto;
}

.course-chatbot.is-collapsed .course-chatbot-launcher,
.course-chatbot.is-collapsed .course-faq-launcher {
  pointer-events: none;
}

/* Scale the labelled dock progressively on conventional wide desktop viewports. */
@media (min-width: 621px) {
  .course-chatbot-launcher,
  .course-faq-launcher {
    width: clamp(136px, 12.75vw, 164px);
    min-width: 0;
    height: clamp(58px, 5.25vw, 72px);
    padding-inline: clamp(14px, 1.4vw, 18px);
    font-size: clamp(13px, 1.1vw, 15px);
  }

  .course-chatbot-launcher .icon,
  .course-faq-launcher .icon {
    width: clamp(24px, 2.1vw, 29px);
    height: clamp(24px, 2.1vw, 29px);
  }
}

/* Keep one stable horizontal breakpoint: compact through 1600px, labelled above it. */
@media (min-width: 621px) and (max-width: 1600px) {
  .course-chatbot {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .course-support-launchers {
    gap: 8px;
  }

  .course-chatbot-launcher,
  .course-faq-launcher {
    width: 50px;
    min-width: 50px;
    height: 50px;
    gap: 0;
    padding: 0;
  }

  .course-chatbot-launcher > span,
  .course-faq-launcher > span {
    display: none;
  }

  .course-chatbot-launcher .icon,
  .course-faq-launcher .icon {
    width: 24px;
    height: 24px;
  }

  .course-support-collapse {
    right: 0;
    bottom: calc(100% + 6px);
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .course-chatbot.is-collapsed .course-support-collapse {
    right: 0;
    bottom: 6px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .course-support-collapse-glyph,
  .course-support-collapse-glyph::before,
  .course-support-collapse-glyph::after {
    width: 12px;
  }

  .course-support-collapse-glyph {
    height: 12px;
  }
}
