/* All rules belong to this component; no theme or global palette overrides. */
#yf-advisor {
  --yfa-purple: #582c82;
  --yfa-ink: #2c2335;
  --yfa-muted: #716779;
  --yfa-line: #e9e2ee;
  font: 400 14px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--yfa-ink);
  text-align: left;
}
#yf-advisor *, #yf-advisor *::before, #yf-advisor *::after { box-sizing: border-box; }
#yf-advisor [hidden] { display: none !important; }
#yf-advisor button, #yf-advisor textarea, #yf-advisor a { font-family: inherit; letter-spacing: normal; text-transform: none; }
#yf-advisor button { appearance: none; margin: 0; cursor: pointer; line-height: 1.4; }
#yf-advisor button:disabled { cursor: default; }
#yf-advisor button::before, #yf-advisor button::after { content: none; }
#yf-advisor button:focus-visible, #yf-advisor a:focus-visible { outline: 3px solid #a784cc; outline-offset: 4px; }
#yf-advisor svg { display: block; flex-shrink: 0; pointer-events: none; }
#yf-advisor .yfa-launcher {
  position: fixed; z-index: 999997; right: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 13px; min-height: 68px;
  padding: 10px 16px 10px 10px; background: #fff; color: var(--yfa-ink);
  border: 1px solid #e8deef; border-radius: 22px;
  box-shadow: 0 8px 32px #2c16351c; text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
#yf-advisor .yfa-launcher:hover { transform: translateY(-3px); box-shadow: 0 12px 36px #2c163526; }
#yf-advisor .yfa-launcher-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--yfa-purple); color: #fff; }
#yf-advisor .yfa-launcher-copy { display: flex; flex-direction: column; gap: 2px; }
#yf-advisor .yfa-launcher-copy strong { font-size: 15px; font-weight: 650; color: var(--yfa-ink); }
#yf-advisor .yfa-launcher-copy > span { font-size: 11px; color: var(--yfa-muted); }
#yf-advisor .yfa-launcher-arrow { color: var(--yfa-purple); margin-left: 6px; }
#yf-advisor .yfa-panel {
  position: fixed; inset: auto 20px 20px auto; z-index: 999998;
  width: 420px; max-width: calc(100vw - 40px); height: 680px;
  max-height: calc(100dvh - 40px); margin: 0; padding: 0;
  overflow: hidden; border: 1px solid #e9e0ef; border-radius: 24px;
  background: #fcfbfe; color: var(--yfa-ink);
  box-shadow: 0 24px 80px #28133330, 0 3px 16px #28133312;
  font: inherit; text-align: left;
}
#yf-advisor .yfa-panel:not([open]) { display: none; }
#yf-advisor .yfa-panel[open] { display: flex; flex-direction: column; }
#yf-advisor .yfa-header { display: flex; align-items: center; gap: 11px; padding: 18px 14px 18px 20px; flex-shrink: 0; border-bottom: 1px solid var(--yfa-line); background: #fff; }
#yf-advisor .yfa-mark { display: grid; place-content: center; grid-auto-flow: column; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: #f2eaf8; color: var(--yfa-purple); font-size: 19px; font-weight: 800; letter-spacing: -1.2px; }
#yf-advisor .yfa-mark > span { color: #91632b; }
#yf-advisor .yfa-heading { flex: 1; min-width: 0; }
#yf-advisor .yfa-heading h2 { margin: 0; padding: 0; color: var(--yfa-ink); font: 650 15px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.25px; }
#yf-advisor .yfa-heading p { margin: 4px 0 0; color: var(--yfa-muted); font: inherit; font-size: 11px; line-height: 1.35; }
#yf-advisor .yfa-icon-button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 40px; padding: 0; border: 0; border-radius: 10px; color: #766b80; background: transparent; box-shadow: none; }
#yf-advisor .yfa-icon-button:hover { background: #f4eff8; color: var(--yfa-purple); }
#yf-advisor .yfa-reset { margin-right: -7px; }
#yf-advisor .yfa-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d5c8df transparent; padding: 0 20px 22px; }
#yf-advisor .yfa-intro { padding: 30px 2px 0; }
#yf-advisor .yfa-eyebrow { display: block; color: var(--yfa-purple); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
#yf-advisor .yfa-intro h3 { margin: 17px 0 13px; padding: 0; color: var(--yfa-ink); font: 550 33px/1.15 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -1.3px; }
#yf-advisor .yfa-intro h3 > span { color: var(--yfa-purple); }
#yf-advisor .yfa-intro > p { margin: 0; font: inherit; color: var(--yfa-muted); font-size: 14px; line-height: 1.65; }
#yf-advisor .yfa-options { display: grid; gap: 9px; margin: 24px 0 17px; }
#yf-advisor .yfa-options button { display: flex; align-items: center; gap: 13px; min-height: 48px; width: 100%; padding: 12px 14px; background: #fff; color: var(--yfa-ink); border: 1px solid var(--yfa-line); border-radius: 13px; font-size: 13px; font-weight: 550; text-align: left; box-shadow: none; transition: border-color .15s ease, background .15s ease; }
#yf-advisor .yfa-options button:hover { background: #f6f1fa; border-color: #cbb7dc; }
#yf-advisor .yfa-options button > span { font-size: 10px; font-weight: 500; color: #8c789e; }
#yf-advisor .yfa-options svg { margin-left: auto; color: var(--yfa-purple); }
#yf-advisor .yfa-intro .yfa-intro-note { color: var(--yfa-muted); font-size: 11px; line-height: 1.55; }
#yf-advisor .yfa-messages { display: flex; flex-direction: column; gap: 18px; }
#yf-advisor .yfa-messages:not(:empty) { padding-top: 24px; }
#yf-advisor .yfa-message { max-width: 91%; overflow-wrap: anywhere; }
#yf-advisor .yfa-message-label { display: block; margin: 0 3px 6px; color: var(--yfa-muted); font-size: 10px; font-weight: 600; }
#yf-advisor .yfa-message-text { padding: 13px 15px; white-space: normal; font-size: 14px; line-height: 1.65; }
#yf-advisor .yfa-message-text p { margin: 0 0 12px; padding: 0; color: inherit; font: inherit; white-space: pre-wrap; }
#yf-advisor .yfa-message-text ul, #yf-advisor .yfa-message-text ol { margin: 0 0 12px; padding: 0 0 0 20px; color: inherit; font: inherit; }
#yf-advisor .yfa-message-text ul { list-style: disc; }
#yf-advisor .yfa-message-text ol { list-style: decimal; }
#yf-advisor .yfa-message-text li { margin: 5px 0; padding: 0; font: inherit; white-space: pre-wrap; }
#yf-advisor .yfa-message-text .yfa-course-list { padding: 0; list-style: none; }
#yf-advisor .yfa-message-text .yfa-link-item { list-style: none; }
#yf-advisor .yfa-message-text > :last-child { margin-bottom: 0; }
#yf-advisor .yfa-message-bot { align-self: flex-start; }
#yf-advisor .yfa-message-bot .yfa-message-text { background: #fff; border: 1px solid var(--yfa-line); border-radius: 4px 17px 17px; color: var(--yfa-ink); }
#yf-advisor .yfa-message-user { align-self: flex-end; }
#yf-advisor .yfa-message-user .yfa-message-label { text-align: right; }
#yf-advisor .yfa-message-user .yfa-message-text { background: var(--yfa-purple); border-radius: 17px 4px 17px 17px; color: #fff; }
#yf-advisor .yfa-message-text strong { font-weight: 700; color: inherit; }
#yf-advisor .yfa-message-text a { color: var(--yfa-purple); text-decoration: underline; text-underline-offset: 3px; }
#yf-advisor .yfa-message-user .yfa-message-text a { color: #fff; }
#yf-advisor .yfa-message-text a.yfa-course-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 0; padding: 11px 12px; background: #f5effa; border: 1px solid #e5d8ef; border-radius: 10px; color: var(--yfa-purple); font-size: 12px; font-weight: 650; text-decoration: none; white-space: normal; }
#yf-advisor .yfa-course-link::after { content: '↗'; font-size: 17px; flex-shrink: 0; }
#yf-advisor .yfa-message-user .yfa-course-link { background: #ffffff18; color: #fff; border-color: #ffffff40; }
#yf-advisor .yfa-wait { display: flex; align-items: center; gap: 10px; padding: 18px 2px 0; color: var(--yfa-muted); font-size: 11px; }
#yf-advisor .yfa-wait-dots { display: flex; gap: 4px; }
#yf-advisor .yfa-wait i { width: 5px; height: 5px; background: #8e6eac; border-radius: 50%; animation: yfa-dot 1.5s infinite; }
#yf-advisor .yfa-wait i:nth-child(2) { animation-delay: .18s; }
#yf-advisor .yfa-wait i:nth-child(3) { animation-delay: .36s; }
#yf-advisor .yfa-notice { margin-top: 16px; padding: 12px 13px; background: #fff5e4; border: 1px solid #edddbf; border-radius: 12px; color: #6f5427; font-size: 12px; line-height: 1.6; }
#yf-advisor .yfa-composer { flex-shrink: 0; margin: 0; padding: 14px 16px 12px; background: #fff; border-top: 1px solid var(--yfa-line); }
#yf-advisor .yfa-input-wrap { display: flex; align-items: flex-end; gap: 6px; padding: 5px; border: 1px solid #dcd0e5; border-radius: 16px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
#yf-advisor .yfa-input-wrap:focus-within { border-color: #8e64b0; box-shadow: 0 0 0 3px #582c820c; }
#yf-advisor .yfa-input-wrap textarea { display: block; flex: 1; min-width: 0; width: 100%; height: 44px; min-height: 44px; max-height: 108px; margin: 0; padding: 11px 9px; border: 0; border-radius: 10px; resize: none; background: #fff; color: var(--yfa-ink); -webkit-text-fill-color: var(--yfa-ink); font: 400 16px/22px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; outline: none; box-shadow: none; overflow-y: auto; }
#yf-advisor .yfa-input-wrap textarea::placeholder { opacity: 1; color: #81738d; -webkit-text-fill-color: #81738d; font-size: 14px; }
#yf-advisor .yfa-send { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--yfa-purple); color: #fff; box-shadow: none; }
#yf-advisor .yfa-send:disabled { background: #eee8f3; color: #a18aad; }
#yf-advisor .yfa-send:not(:disabled):hover { background: #452065; }
#yf-advisor .yfa-composer-note { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 2px 0; font-size: 10px; line-height: 1.45; color: var(--yfa-muted); }
#yf-advisor .yfa-composer-note a { color: #706079; text-decoration: none; white-space: nowrap; }
#yf-advisor .yfa-composer-note a:hover { text-decoration: underline; }
#yf-advisor .yfa-reset-confirm { padding: 14px 18px; background: #f5effa; border-top: 1px solid var(--yfa-line); }
#yf-advisor .yfa-reset-confirm p { margin: 0 0 12px; color: var(--yfa-ink); font: inherit; font-size: 12px; }
#yf-advisor .yfa-reset-confirm > div { display: flex; justify-content: flex-end; gap: 8px; }
#yf-advisor .yfa-reset-confirm button { padding: 9px 12px; min-height: 40px; background: #fff; color: var(--yfa-purple); border: 1px solid #d6c5e3; border-radius: 9px; font-size: 12px; font-weight: 600; }
#yf-advisor .yfa-reset-confirm .yfa-reset-accept { background: var(--yfa-purple); color: #fff; border-color: var(--yfa-purple); }
#yf-advisor .yfa-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes yfa-dot { 0%, 70%, 100% { opacity: .35; } 35% { opacity: 1; } }
@media (max-width: 640px) {
  #yf-advisor .yfa-launcher { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); min-height: 56px; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 19px; }
  #yf-advisor .yfa-launcher-icon { width: 40px; height: 40px; border-radius: 13px; }
  #yf-advisor .yfa-launcher-copy strong { font-size: 13px; }
  #yf-advisor .yfa-launcher-copy > span, #yf-advisor .yfa-launcher-arrow { display: none; }
  body.yf-gobernanta-sales-active #yf-advisor .yfa-launcher,
  body.single-stm-courses:has(.masterstudy-single-course-stickybar) #yf-advisor .yfa-launcher { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  #yf-advisor .yfa-panel { inset: var(--yfa-viewport-top, 0px) auto auto 0; width: 100%; max-width: 100%; height: var(--yfa-viewport-height, 100dvh); max-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  #yf-advisor .yfa-panel::backdrop { background: #28133360; }
  #yf-advisor .yfa-header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 14px; }
  #yf-advisor .yfa-composer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  #yf-advisor .yfa-scroll { padding-left: 18px; padding-right: 18px; }
  #yf-advisor .yfa-intro { padding-top: 30px; }
}
@media (max-width: 359px) {
  #yf-advisor .yfa-header { gap: 8px; padding-left: 14px; padding-right: 8px; }
  #yf-advisor .yfa-mark { width: 36px; height: 40px; font-size: 17px; }
  #yf-advisor .yfa-heading h2 { font-size: 13px; }
  #yf-advisor .yfa-heading p { font-size: 10px; }
  #yf-advisor .yfa-icon-button { width: 32px; }
  #yf-advisor .yfa-intro h3 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  #yf-advisor *, #yf-advisor *::before, #yf-advisor *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
