/* Context-aware learner Help Center. */
.sir-help-center {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: none;
  justify-content: flex-end;
  background: rgba(15, 23, 42, .42);
}
.sir-help-center.show { display: flex; }
.sir-help-backdrop { position: absolute; inset: 0; }
.sir-help-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  height: 100dvh;
  overflow: hidden;
  border: 0;
  border-left: 1px solid #dce4f1;
  background: #f7f9fd;
  box-shadow: -24px 0 65px rgba(15, 23, 42, .2);
  color: #14213a;
  outline: 0;
  animation: sirHelpSlideIn .24s cubic-bezier(.2,.75,.25,1);
}
.sir-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 17px;
  border-bottom: 1px solid #dfe7f3;
  background: rgba(255,255,255,.97);
}
.sir-help-heading { display: flex; min-width: 0; gap: 13px; }
.sir-help-heading > div { min-width: 0; }
.sir-help-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg,#5b21b6,#7c3aed);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 9px 20px rgba(109,40,217,.22);
}
.sir-help-head small {
  display: block;
  margin-bottom: 2px;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.sir-help-head h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
}
.sir-help-head p {
  max-width: 350px;
  margin: 4px 0 0;
  overflow: hidden;
  color: #60708a;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sir-help-close {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0 !important;
  border: 1px solid #dce4f1 !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #27364f !important;
  font-size: 22px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.sir-help-close:hover { border-color: #c4b5fd !important; background: #f5f3ff !important; }
.sir-help-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 28px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.sir-help-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sir-help-loading {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 280px;
  color: #61708a;
}
.sir-help-loading span {
  width: 34px;
  height: 34px;
  border: 4px solid #e9e5ff;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: sirHelpSpin .7s linear infinite;
}
.sir-help-intro {
  padding: 18px;
  border: 1px solid #ddd6fe;
  border-radius: 20px;
  background: linear-gradient(135deg,#fff 0%,#f5f3ff 100%);
}
.sir-help-intro small {
  color: #6d28d9;
  font-size: 11px;
  font-weight: 900;
}
.sir-help-intro h3 {
  margin: 6px 0 5px;
  color: #111827;
  font-size: 23px;
  line-height: 1.15;
}
.sir-help-intro p {
  margin: 0;
  color: #5d6d86;
  font-size: 14px;
  line-height: 1.5;
}
.sir-help-quick {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin: 14px 0 18px;
}
.sir-help-quick button {
  display: grid;
  grid-template-rows: 34px auto;
  align-content: start;
  min-width: 0;
  min-height: 96px;
  padding: 12px 10px !important;
  border: 1px solid #dce4f1 !important;
  border-radius: 17px !important;
  background: #fff !important;
  color: #24324a !important;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15,23,42,.045) !important;
  cursor: pointer;
}
.sir-help-quick button:hover {
  border-color: #c4b5fd !important;
  transform: translateY(-1px);
}
.sir-help-quick button span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #f1edff;
  color: #6d28d9;
  font-size: 15px;
  font-weight: 950;
}
.sir-help-quick button strong {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}
.sir-help-search-section { margin-bottom: 18px; }
.sir-help-search-section > label {
  display: block;
  margin: 0 0 7px 2px;
  color: #27364f;
  font-size: 12px;
  font-weight: 900;
}
.sir-help-search {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 36px;
  align-items: center;
  min-height: 49px;
  padding: 0 7px 0 13px;
  border: 1px solid #ccd8ea;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.035);
}
.sir-help-search:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(124,58,237,.11);
}
.sir-help-search > span { color: #6d28d9; font-size: 18px; font-weight: 950; }
.sir-help-search input {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #18243a;
  font: inherit;
  font-size: 14px;
  outline: 0 !important;
}
.sir-help-search button {
  display: grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f3f6fb !important;
  color: #64748b !important;
  box-shadow: none !important;
}
.sir-help-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 9px;
}
.sir-help-section-title h3 { margin: 0; font-size: 15px; color: #17223a; }
.sir-help-section-title span { color: #77859a; font-size: 11px; font-weight: 800; }
.sir-help-results { display: grid; gap: 8px; }
.sir-help-result {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 20px;
  gap: 4px 10px;
  width: 100%;
  min-height: 67px;
  padding: 12px 14px !important;
  border: 1px solid #dce4f1 !important;
  border-radius: 15px !important;
  background: #fff !important;
  color: #1b2941 !important;
  text-align: left;
  box-shadow: none !important;
  cursor: pointer;
}
.sir-help-result:hover { border-color: #c4b5fd !important; background: #fdfcff !important; }
.sir-help-result span {
  grid-column: 1;
  color: #6d28d9;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.sir-help-result strong { grid-column: 1; font-size: 13px; line-height: 1.35; }
.sir-help-result i {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #7c3aed;
  font-size: 24px;
  font-style: normal;
}
.sir-help-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 28px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 17px;
  background: #fff;
  color: #68778e;
  text-align: center;
}
.sir-help-empty > span { font-size: 30px; color: #8b5cf6; }
.sir-help-empty button {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: #6d28d9;
  color: #fff;
  font-weight: 900;
}
.sir-help-support-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #d9e5f5;
  border-radius: 16px;
  background: #eef5ff;
}
.sir-help-support-bar.compact { margin-top: 14px; }
.sir-help-support-bar div { display: grid; min-width: 0; }
.sir-help-support-bar strong { font-size: 12px; color: #18375f; }
.sir-help-support-bar small { color: #65758d; font-size: 10px; }
.sir-help-support-bar button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #2468ef !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
.sir-help-view-head {
  display: grid;
  gap: 11px;
  margin-bottom: 15px;
}
.sir-help-view-head > button {
  justify-self: start;
  min-height: 34px;
  padding: 7px 10px !important;
  border: 1px solid #dce4f1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #4b5c76 !important;
  box-shadow: none !important;
  font-size: 11px !important;
}
.sir-help-view-head small {
  color: #6d28d9;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.sir-help-view-head h3 {
  margin: 3px 0 0;
  color: #121d32;
  font-size: 22px;
  line-height: 1.2;
}
.sir-help-answer {
  overflow: hidden;
  border: 1px solid #dce4f1;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.sir-help-answer-copy {
  padding: 18px;
  color: #33435b;
  font-size: 14px;
  line-height: 1.65;
}
.sir-help-answer-copy > :first-child { margin-top: 0; }
.sir-help-answer-copy > :last-child { margin-bottom: 0; }
.sir-help-answer-copy ol,.sir-help-answer-copy ul { padding-left: 22px; }
.sir-help-answer-copy li { margin: 7px 0; }
.sir-help-answer-copy a { color: #1d5bd4; font-weight: 850; }
.sir-help-answer > img {
  display: block;
  width: calc(100% - 32px);
  max-height: 240px;
  margin: 0 16px 16px;
  object-fit: contain;
  border-radius: 13px;
  background: #f5f7fb;
}
.sir-help-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e4ebf5;
  background: #f8faff;
}
.sir-help-answer-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px !important;
  border: 1px solid #cfdaea !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #32435e !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
.sir-help-resolution {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #ddd6fe;
  border-radius: 17px;
  background: #f8f6ff;
}
.sir-help-resolution > strong { color: #35245d; font-size: 13px; }
.sir-help-resolution > div { display: flex; gap: 8px; }
.sir-help-resolution button {
  min-height: 40px;
  padding: 8px 13px !important;
  border: 1px solid #d4c8f5 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #4d3c76 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
.sir-help-resolution button.positive {
  border-color: #b9e8ce !important;
  background: #eafaf1 !important;
  color: #087a3f !important;
}
.sir-help-success {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 360px;
  padding: 42px 20px;
  text-align: center;
}
.sir-help-success > span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 21px;
  background: #e9f9ef;
  color: #109654;
  font-size: 30px;
  font-weight: 950;
}
.sir-help-success h3 { margin: 6px 0 0; font-size: 24px; }
.sir-help-success p { max-width: 330px; margin: 0; color: #68778e; }
.sir-help-success > div { display: flex; gap: 8px; margin-top: 8px; }
.sir-help-success button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #6d28d9;
  color: #fff;
  font-weight: 900;
}
.sir-help-success button.secondary {
  border: 1px solid #dce4f1;
  background: #fff;
  color: #33435b;
}
.sir-help-support-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid #dbe5f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.sir-help-support-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #eafaf1;
  color: #109654;
  font-size: 24px;
}
.sir-help-support-card h3 { margin: 3px 0 0; font-size: 20px; }
.sir-help-support-card p { margin: 0; color: #566780; line-height: 1.55; }
.sir-help-support-card > small { color: #77859a; }
.sir-help-support-card > button {
  width: 100%;
  min-height: 44px;
  margin-top: 3px;
  border: 1px solid #d6e0ee;
  border-radius: 13px;
  background: #fff;
  color: #293a55;
  font-weight: 900;
}
.sir-help-support-card > button.primary {
  border-color: #2468ef;
  background: #2468ef;
  color: #fff;
}
.sir-help-notice {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #7b5410;
  font-size: 12px;
  font-weight: 800;
}
#sirHelpSupportStatus,#sirHelpReportStatus {
  min-height: 18px;
  color: #52647e;
  font-size: 11px;
  font-weight: 800;
}
.sir-help-report {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #dbe5f3;
  border-radius: 19px;
  background: #fff;
}
.sir-help-report label { color: #243550; font-size: 13px; font-weight: 900; }
.sir-help-report textarea {
  width: 100%;
  min-height: 150px;
  box-sizing: border-box;
  padding: 13px;
  resize: vertical;
  border: 1px solid #cad7e8;
  border-radius: 13px;
  background: #fbfcfe;
  color: #17233a;
  font: inherit;
  line-height: 1.5;
}
.sir-help-report textarea:focus {
  outline: 3px solid rgba(124,58,237,.12);
  border-color: #8b5cf6;
}
.sir-help-report-context { display: flex; flex-wrap: wrap; gap: 6px; }
.sir-help-report-context span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0edff;
  color: #5d35a4;
  font-size: 9px;
  font-weight: 900;
}
.sir-help-report > button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: #6d28d9;
  color: #fff;
  font-weight: 900;
}
.sir-help-report > button:disabled { opacity: .55; cursor: wait; }
body.sir-help-open { overflow: hidden !important; }
.chat-fab {
  border: 1px solid #d8ccff !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #5b21b6 !important;
  box-shadow: 0 10px 26px rgba(76,29,149,.15) !important;
  animation: none !important;
}
.chat-fab::before { content: "?" !important; }
.chat-fab:hover { border-color: #a78bfa !important; background: #f7f5ff !important; }
@media (min-width: 681px) {
  body.course-launcher-mode .chat-fab,
  body.course-active-mode .chat-fab {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
  }
}

html[dir="rtl"] .sir-help-center,
.rtl-lang .sir-help-center { direction: rtl; }
html[dir="rtl"] .sir-help-shell,
.rtl-lang .sir-help-shell {
  border-right: 1px solid #dce4f1;
  border-left: 0;
  box-shadow: 24px 0 65px rgba(15,23,42,.2);
}
html[dir="rtl"] .sir-help-result,
.rtl-lang .sir-help-result { text-align: right; }
html[dir="rtl"] .sir-help-answer-copy ol,
html[dir="rtl"] .sir-help-answer-copy ul,
.rtl-lang .sir-help-answer-copy ol,
.rtl-lang .sir-help-answer-copy ul { padding-right: 22px; padding-left: 0; }

@media (max-width: 680px) {
  .chat-fab { display: none !important; }
  .sir-help-center {
    align-items: flex-end;
    padding-top: max(26px,env(safe-area-inset-top));
  }
  .sir-help-shell {
    width: 100%;
    height: min(820px,calc(100dvh - max(26px,env(safe-area-inset-top))));
    border: 0;
    border-top: 1px solid #dce4f1;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 55px rgba(15,23,42,.22);
    animation-name: sirHelpRise;
  }
  .sir-help-shell::before {
    content: "";
    align-self: center;
    width: 38px;
    height: 4px;
    margin-top: 7px;
    border-radius: 999px;
    background: #cbd5e1;
  }
  .sir-help-head { padding: 10px 14px 12px; }
  .sir-help-mark { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; }
  .sir-help-head h2 { font-size: 20px; }
  .sir-help-head p { max-width: 235px; font-size: 10px; }
  .sir-help-close { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  .sir-help-body { padding: 14px 14px calc(24px + env(safe-area-inset-bottom)); }
  .sir-help-intro { padding: 15px; border-radius: 17px; }
  .sir-help-intro h3 { font-size: 20px; }
  .sir-help-intro p { font-size: 12px; }
  .sir-help-quick { gap: 7px; margin: 11px 0 15px; }
  .sir-help-quick button {
    min-height: 88px;
    padding: 10px 8px !important;
    border-radius: 14px !important;
  }
  .sir-help-quick button strong { font-size: 10px; }
  .sir-help-search { min-height: 47px; }
  .sir-help-support-bar { align-items: flex-start; }
  .sir-help-support-bar small { display: none; }
  .sir-help-view-head h3 { font-size: 20px; }
  .sir-help-answer-copy { padding: 15px; font-size: 13px; }
  .sir-help-resolution > div { display: grid; grid-template-columns: 1fr 1fr; }
  .sir-help-resolution button { min-width: 0; padding-inline: 7px !important; }
}

@media (max-width: 390px) {
  .sir-help-heading { gap: 9px; }
  .sir-help-head p { max-width: 195px; }
  .sir-help-quick { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .sir-help-support-bar { padding: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .sir-help-shell,.sir-help-loading span { animation: none !important; }
  .sir-help-quick button { transition: none !important; }
}

@keyframes sirHelpSlideIn {
  from { opacity: .4; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes sirHelpRise {
  from { opacity: .4; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sirHelpSpin { to { transform: rotate(360deg); } }
