/* Ask Augustana chatbot widget — scoped under #aa-chat so it never collides with
   the host page. Accent/navy are CSS vars (overridable via data-accent). */
#aa-chat,
#aa-chat *,
#aa-chat *::before,
#aa-chat *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: normal;
}

#aa-chat {
  --aa-navy: #081f40;
  --aa-accent: #fed101;
  position: fixed;
  z-index: 2147483000;
}

/* Launcher */
#aa-chat .aa-launcher {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--aa-accent);
  color: var(--aa-navy);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
#aa-chat .aa-launcher:hover { transform: scale(1.06); }
#aa-chat .aa-launcher svg { width: 28px; height: 28px; }

/* Panel */
#aa-chat .aa-panel {
  position: fixed;
  width: calc(100vw - 40px);
  max-width: 400px;
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#aa-chat .aa-panel.aa-open { display: flex; animation: aa-su 0.22s ease-out; }
@keyframes aa-su { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Positions */
#aa-chat.aa-bottom-right .aa-launcher { bottom: 20px; right: calc(20px + var(--aa-offx, 0px)); }
#aa-chat.aa-bottom-right .aa-panel { bottom: 92px; right: calc(20px + var(--aa-offx, 0px)); }
#aa-chat.aa-bottom-left .aa-launcher { bottom: 20px; left: calc(20px + var(--aa-offx, 0px)); }
#aa-chat.aa-bottom-left .aa-panel { bottom: 92px; left: calc(20px + var(--aa-offx, 0px)); }
#aa-chat.aa-top-right .aa-launcher { top: 20px; right: calc(20px + var(--aa-offx, 0px)); }
#aa-chat.aa-top-right .aa-panel { top: 92px; right: calc(20px + var(--aa-offx, 0px)); }
#aa-chat.aa-top-left .aa-launcher { top: 20px; left: calc(20px + var(--aa-offx, 0px)); }
#aa-chat.aa-top-left .aa-panel { top: 92px; left: calc(20px + var(--aa-offx, 0px)); }

/* Header */
#aa-chat .aa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--aa-navy);
  color: #fff;
  padding: 16px 18px;
}
#aa-chat .aa-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--aa-accent); color: var(--aa-navy);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
#aa-chat .aa-badge svg { width: 20px; height: 20px; }
#aa-chat .aa-title { font-weight: 700; font-size: 15px; line-height: 1.2; color: #fff; }
#aa-chat .aa-status { font-size: 12px; opacity: 0.75; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
#aa-chat .aa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aa-accent); }
#aa-chat .aa-dot.aa-live { background: #38d47a; }
#aa-chat .aa-head-txt { flex: 1; min-width: 0; }
#aa-chat .aa-navtoggle { background: none; border: none; color: #fff; opacity: 0.55; cursor: pointer; padding: 5px; border-radius: 6px; display: flex; }
#aa-chat .aa-navtoggle:hover { background: rgba(255, 255, 255, 0.12); opacity: 0.8; }
#aa-chat .aa-navtoggle.aa-on { opacity: 1; color: var(--aa-accent); }
#aa-chat .aa-navtoggle svg { width: 18px; height: 18px; }
#aa-chat .aa-close { background: none; border: none; color: #fff; opacity: 0.85; cursor: pointer; padding: 4px; border-radius: 6px; display: flex; }
#aa-chat .aa-close:hover { background: rgba(255, 255, 255, 0.12); }
#aa-chat .aa-close svg { width: 20px; height: 20px; }

/* Message list */
#aa-chat .aa-body { flex: 1; overflow-y: auto; padding: 16px; background: #f4f6f9; display: flex; flex-direction: column; gap: 12px; }
#aa-chat .aa-row { display: flex; }
#aa-chat .aa-row.aa-u { justify-content: flex-end; }
#aa-chat .aa-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
#aa-chat .aa-msg.aa-b { background: #fff; color: #1d1d1b; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
#aa-chat .aa-msg.aa-um { background: var(--aa-navy); color: #fff; border-bottom-right-radius: 4px; }

/* Markdown inside bot messages */
#aa-chat .aa-msg.aa-b { line-height: 1.55; }
#aa-chat .aa-msg.aa-b p { margin: 0 0 10px; }
#aa-chat .aa-msg.aa-b p:last-child { margin-bottom: 0; }
#aa-chat .aa-msg.aa-b ul,
#aa-chat .aa-msg.aa-b ol { margin: 6px 0 10px; padding-left: 18px; }
#aa-chat .aa-msg.aa-b ul { list-style: none; padding-left: 4px; }
#aa-chat .aa-msg.aa-b ul > li { position: relative; padding-left: 16px; }
#aa-chat .aa-msg.aa-b ul > li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--aa-accent); }
#aa-chat .aa-msg.aa-b li { margin: 4px 0; }
#aa-chat .aa-msg.aa-b li:last-child { margin-bottom: 0; }
#aa-chat .aa-msg.aa-b strong { font-weight: 700; color: var(--aa-navy); }
#aa-chat .aa-msg.aa-b code { background: rgba(8, 31, 64, 0.07); padding: 1px 4px; border-radius: 3px; font-size: 13px; }
#aa-chat .aa-link { color: var(--aa-navy); font-weight: 600; text-decoration: underline; }

/* Inline citation pill (after a sentence, like a source chip) */
#aa-chat .aa-cite { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; line-height: 1; color: var(--aa-navy); background: rgba(8, 31, 64, 0.06); border: 1px solid rgba(8, 31, 64, 0.14); border-radius: 999px; padding: 2px 7px; margin: 0 2px; text-decoration: none; vertical-align: 1px; white-space: nowrap; transition: background 0.12s; }
#aa-chat .aa-cite:hover { background: var(--aa-navy); color: #fff; border-color: var(--aa-navy); }
#aa-chat .aa-cite svg { width: 10px; height: 10px; opacity: 0.75; }

/* Source citations */
#aa-chat .aa-sources { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; gap: 4px; }
#aa-chat .aa-src-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(8, 31, 64, 0.55); }
#aa-chat .aa-src { font-size: 13px; color: var(--aa-navy); text-decoration: none; padding: 4px 8px; background: rgba(8, 31, 64, 0.05); border-radius: 6px; display: inline-block; }
#aa-chat .aa-src:hover { background: rgba(8, 31, 64, 0.1); text-decoration: underline; }

/* Auto-navigation button + banner */
#aa-chat .aa-navwrap { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
#aa-chat .aa-goto { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--aa-navy); color: #fff; border: none; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
#aa-chat .aa-goto:hover { background: #0f2a55; }
#aa-chat .aa-goto svg { width: 15px; height: 15px; }
#aa-chat .aa-navbanner { font-size: 12px; color: rgba(8, 31, 64, 0.7); background: rgba(254, 209, 1, 0.18); border: 1px solid rgba(254, 209, 1, 0.5); border-radius: 8px; padding: 6px 10px; }
#aa-chat .aa-navbanner .aa-count { font-weight: 700; color: var(--aa-navy); }
#aa-chat .aa-cancelnav { background: none; border: none; color: var(--aa-navy); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0 2px; }
#aa-chat .aa-fu-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(8, 31, 64, 0.5); margin: 10px 2px 2px; }
#aa-chat .aa-followups { margin-top: 4px; }

/* Destination-page highlight — injected OUTSIDE #aa-chat, so unscoped. */
mark.aa-hl { background: #fed101; color: #081f40; padding: 0 2px; border-radius: 2px; box-shadow: 0 0 0 3px rgba(254, 209, 1, 0.35); animation: aa-hlfade 0.6s ease-out; }
@keyframes aa-hlfade { from { background: #ffe98a; } to { background: #fed101; } }

/* Suggestion chips */
#aa-chat .aa-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
#aa-chat .aa-chip { border: 1px solid rgba(8, 31, 64, 0.25); background: #fff; color: var(--aa-navy); border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
#aa-chat .aa-chip:hover { background: var(--aa-navy); color: #fff; border-color: var(--aa-navy); }

/* Welcome screen: NIU-style collapsible category chips + question links */
#aa-chat .aa-welcome { display: flex; flex-direction: column; gap: 9px; padding: 6px 0 2px; }
#aa-chat .aa-cat { display: flex; flex-direction: column; align-items: flex-start; }
#aa-chat .aa-cat-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; background: #fff; color: var(--aa-navy); border: 1.5px solid var(--aa-navy); border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 700; font-family: inherit; letter-spacing: 0.6px; transition: background 0.18s, color 0.18s; text-align: left; white-space: nowrap; }
#aa-chat .aa-cat-btn:hover { background: var(--aa-navy); color: #fff; }
#aa-chat .aa-cat-btn.aa-on { background: var(--aa-navy); color: #fff; box-shadow: 0 0 0 2px rgba(8, 31, 64, 0.18); }
#aa-chat .aa-cat-chev { display: flex; align-items: center; transition: transform 0.2s; }
#aa-chat .aa-cat-btn.aa-on .aa-cat-chev { transform: rotate(180deg); }
#aa-chat .aa-cat-qs { padding: 4px 8px 2px; animation: aa-slidedown 0.2s ease; }
#aa-chat .aa-cat-q { display: block; padding: 7px 4px; color: var(--aa-navy); text-decoration: underline; text-underline-offset: 2px; font-size: 13px; cursor: pointer; }
#aa-chat .aa-cat-q:hover { color: #000; text-decoration-thickness: 2px; }
@keyframes aa-slidedown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Thinking indicator — rotating status phrase + shimmering text and a pulsing spark */
#aa-chat .aa-typing { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px; padding: 10px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
#aa-chat .aa-spark { display: flex; color: var(--aa-accent); animation: aa-spark 1.4s ease-in-out infinite; }
#aa-chat .aa-spark svg { width: 17px; height: 17px; }
@keyframes aa-spark { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.75; } 50% { transform: scale(1.22) rotate(18deg); opacity: 1; } }
#aa-chat .aa-ttext { font-size: 13px; font-weight: 600; background: linear-gradient(90deg, rgba(8, 31, 64, 0.35), var(--aa-navy) 45%, rgba(8, 31, 64, 0.35) 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: aa-shimmer 2s linear infinite; }
@keyframes aa-shimmer { to { background-position: -200% center; } }

/* Reset / new conversation */
#aa-chat .aa-reset { background: none; border: none; color: #fff; opacity: 0.75; cursor: pointer; padding: 5px; border-radius: 6px; display: flex; }
#aa-chat .aa-reset:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
#aa-chat .aa-reset svg { width: 17px; height: 17px; }

/* Expand toggle + drag-to-resize */
#aa-chat .aa-expand { background: none; border: none; color: #fff; opacity: 0.75; cursor: pointer; padding: 5px; border-radius: 6px; display: flex; }
#aa-chat .aa-expand:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
#aa-chat .aa-expand svg { width: 18px; height: 18px; }
#aa-chat .aa-resize { position: absolute; top: 0; left: 0; width: 22px; height: 22px; cursor: nwse-resize; z-index: 6; touch-action: none; }
#aa-chat .aa-resize::before { content: ''; position: absolute; top: 7px; left: 7px; width: 7px; height: 7px; border-top: 2px solid rgba(255, 255, 255, 0.55); border-left: 2px solid rgba(255, 255, 255, 0.55); border-top-left-radius: 4px; }
#aa-chat.aa-bottom-left .aa-resize, #aa-chat.aa-top-left .aa-resize { left: auto; right: 0; cursor: nesw-resize; }
#aa-chat.aa-bottom-left .aa-resize::before, #aa-chat.aa-top-left .aa-resize::before { left: auto; right: 7px; border-left: none; border-right: 2px solid rgba(255, 255, 255, 0.55); border-top-left-radius: 0; border-top-right-radius: 4px; }

/* Settings menu */
#aa-chat .aa-head { position: relative; }
#aa-chat .aa-gear { background: none; border: none; color: #fff; opacity: 0.75; cursor: pointer; padding: 5px; border-radius: 6px; display: flex; }
#aa-chat .aa-gear:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
#aa-chat .aa-gear svg { width: 18px; height: 18px; }
#aa-chat .aa-menu { position: absolute; top: 58px; right: 12px; z-index: 5; width: 230px; background: #fff; color: #1d1d1b; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
#aa-chat .aa-menu[hidden] { display: none; }
#aa-chat .aa-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--aa-navy); cursor: pointer; }
/* Slide toggle switch */
#aa-chat .aa-switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; }
#aa-chat .aa-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#aa-chat .aa-slider { position: absolute; inset: 0; background: rgba(8, 31, 64, 0.22); border-radius: 999px; transition: background 0.2s; pointer-events: none; }
#aa-chat .aa-slider::before { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
#aa-chat .aa-switch input:checked + .aa-slider { background: var(--aa-navy); }
#aa-chat .aa-switch input:checked + .aa-slider::before { transform: translateX(18px); }
#aa-chat .aa-switch input:focus-visible + .aa-slider { outline: 2px solid var(--aa-accent); outline-offset: 2px; }
#aa-chat .aa-menu-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(8, 31, 64, 0.5); margin-bottom: 6px; }
#aa-chat .aa-lang-chips { display: flex; flex-wrap: wrap; gap: 5px; }
#aa-chat .aa-langchip { border: 1px solid rgba(8, 31, 64, 0.2); background: #fff; color: var(--aa-navy); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
#aa-chat .aa-langchip.aa-on { background: var(--aa-navy); color: #fff; border-color: var(--aa-navy); }
#aa-chat .aa-dl { border: 1px solid rgba(8, 31, 64, 0.2); background: #fff; color: var(--aa-navy); border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
#aa-chat .aa-dl:hover { background: rgba(8, 31, 64, 0.05); }

/* Feedback */
#aa-chat .aa-fb { display: flex; gap: 6px; margin-top: 8px; }
#aa-chat .aa-fb-btn { background: rgba(8, 31, 64, 0.05); border: none; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: rgba(8, 31, 64, 0.6); display: flex; }
#aa-chat .aa-fb-btn:hover { background: rgba(8, 31, 64, 0.12); color: var(--aa-navy); }
#aa-chat .aa-fb-btn svg { width: 15px; height: 15px; }
#aa-chat .aa-fb-thanks { font-size: 12px; color: rgba(8, 31, 64, 0.6); font-style: italic; }

/* Footer / input + autocomplete ghost */
#aa-chat .aa-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(0, 0, 0, 0.08); padding: 12px; background: #fff; }
#aa-chat .aa-inputwrap { position: relative; flex: 1; height: 40px; }
#aa-chat .aa-ghost { position: absolute; inset: 0; padding: 0 16px; height: 40px; line-height: 40px; font-size: 14px; white-space: pre; overflow: hidden; pointer-events: none; color: rgba(8, 31, 64, 0.38); }
#aa-chat .aa-ghost-hide { visibility: hidden; }
#aa-chat .aa-input { position: absolute; inset: 0; width: 100%; height: 40px; border: none; border-radius: 999px; background: rgba(8, 31, 64, 0.05); padding: 0 16px; font-size: 14px; outline: none; color: #1d1d1b; }
#aa-chat .aa-input:focus { background: rgba(8, 31, 64, 0.09); }
#aa-chat .aa-send { width: 40px; height: 40px; border-radius: 50%; background: var(--aa-navy); color: #fff; border: none; cursor: pointer; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
#aa-chat .aa-send:disabled { opacity: 0.4; cursor: default; }
#aa-chat .aa-send svg { width: 18px; height: 18px; }

/* Mic (speech input) */
#aa-chat .aa-mic { width: 38px; height: 38px; border-radius: 50%; background: rgba(8, 31, 64, 0.05); color: var(--aa-navy); border: none; cursor: pointer; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
#aa-chat .aa-mic:hover { background: rgba(8, 31, 64, 0.1); }
#aa-chat .aa-mic svg { width: 18px; height: 18px; }
#aa-chat .aa-mic.aa-listening { background: #e23b3b; color: #fff; animation: aa-mic 1.2s ease-in-out infinite; }
@keyframes aa-mic { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(226, 59, 59, 0); } }

/* Read-aloud button */
#aa-chat .aa-spk-btn { background: rgba(8, 31, 64, 0.05); border: none; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: rgba(8, 31, 64, 0.6); display: flex; margin-left: auto; }
#aa-chat .aa-spk-btn:hover { background: rgba(8, 31, 64, 0.12); color: var(--aa-navy); }
#aa-chat .aa-spk-btn.aa-speaking { color: var(--aa-navy); background: rgba(254, 209, 1, 0.25); }
#aa-chat .aa-spk-btn svg { width: 15px; height: 15px; }

/* PDF drawer */
#aa-chat .aa-pdf { position: fixed; top: 20px; left: 20px; bottom: 20px; width: min(720px, 62vw); background: #f2f3f5; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; overflow: hidden; z-index: 2147483000; animation: aa-su 0.22s ease-out; }
#aa-chat .aa-pdf-resize { position: absolute; top: 0; right: 0; width: 10px; height: 100%; cursor: ew-resize; z-index: 6; touch-action: none; }
#aa-chat .aa-pdf-resize:hover, #aa-chat .aa-pdf-resize:active { background: rgba(8, 31, 64, 0.12); }
#aa-chat .aa-pdf[hidden] { display: none; }
#aa-chat .aa-pdf-head { display: flex; align-items: center; gap: 8px; background: var(--aa-navy); color: #fff; padding: 12px 14px; }
#aa-chat .aa-pdf-title { flex: 1; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#aa-chat .aa-pdf-open, #aa-chat .aa-pdf-close { color: #fff; opacity: 0.85; cursor: pointer; display: flex; padding: 4px; border-radius: 6px; border: none; background: none; }
#aa-chat .aa-pdf-open:hover, #aa-chat .aa-pdf-close:hover { background: rgba(255, 255, 255, 0.14); opacity: 1; }
#aa-chat .aa-pdf-open svg, #aa-chat .aa-pdf-close svg { width: 16px; height: 16px; }
/* align-items must NOT be center: a centered flex child wider than the scroll
   container gets its left edge clipped beyond scroll reach. Pages self-center
   via margin auto instead, and stay fully scrollable when wider. */
#aa-chat .aa-pdf-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
#aa-chat .aa-pdf-loading { color: rgba(8, 31, 64, 0.6); font-size: 14px; padding: 30px 16px; text-align: center; }
#aa-chat .aa-pdf-loading a { color: var(--aa-navy); font-weight: 600; }
#aa-chat .aa-pdf-page { position: relative; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); background: #fff; margin: 0 auto; flex-shrink: 0; }
#aa-chat .aa-pdf-page canvas { display: block; }
#aa-chat .aa-pdf-mark { position: absolute; background: rgba(254, 209, 1, 0.42); border-radius: 2px; mix-blend-mode: multiply; pointer-events: none; }
@media (max-width: 640px) { #aa-chat .aa-pdf { left: 10px; right: 10px; top: 10px; bottom: 10px; width: auto; } #aa-chat .aa-pdf-resize { display: none; } }

/* Proactive nudge */
#aa-chat .aa-nudge { position: fixed; bottom: 88px; max-width: 260px; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); padding: 14px 14px 12px; z-index: 2147482000; animation: aa-su 0.25s ease-out; }
#aa-chat.aa-bottom-right .aa-nudge, #aa-chat.aa-top-right .aa-nudge { right: calc(20px + var(--aa-offx, 0px)); }
#aa-chat.aa-bottom-left .aa-nudge, #aa-chat.aa-top-left .aa-nudge { left: calc(20px + var(--aa-offx, 0px)); }
#aa-chat .aa-nudge-t { font-size: 13px; color: var(--aa-navy); line-height: 1.4; margin-bottom: 10px; padding-right: 12px; }
#aa-chat .aa-nudge-cta { display: inline-flex; align-items: center; gap: 5px; background: var(--aa-navy); color: #fff; border: none; border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 700; cursor: pointer; }
#aa-chat .aa-nudge-cta:hover { background: #0f2a55; }
#aa-chat .aa-nudge-cta svg { width: 13px; height: 13px; }
#aa-chat .aa-nudge-x { position: absolute; top: 6px; right: 8px; background: none; border: none; font-size: 18px; line-height: 1; color: rgba(8, 31, 64, 0.4); cursor: pointer; }
#aa-chat .aa-nudge-x:hover { color: var(--aa-navy); }

/* ── accessiBe follow: scale the chatbot's text with the page ──
   --aa-scale is set by widget.js when augie.edu's accessiBe "Bigger Text"
   adjustment is active, so enlarging site text also enlarges the chatbot. */
#aa-chat { --aa-scale: 1; }
#aa-chat .aa-title { font-size: calc(15px * var(--aa-scale)); }
#aa-chat .aa-status { font-size: calc(12px * var(--aa-scale)); }
#aa-chat .aa-msg { font-size: calc(14px * var(--aa-scale)); }
#aa-chat .aa-msg.aa-b code { font-size: calc(13px * var(--aa-scale)); }
#aa-chat .aa-cite { font-size: calc(11px * var(--aa-scale)); }
#aa-chat .aa-src { font-size: calc(13px * var(--aa-scale)); }
#aa-chat .aa-src-label { font-size: calc(11px * var(--aa-scale)); }
#aa-chat .aa-goto { font-size: calc(13px * var(--aa-scale)); }
#aa-chat .aa-fu-label { font-size: calc(11px * var(--aa-scale)); }
#aa-chat .aa-chip { font-size: calc(12px * var(--aa-scale)); }
#aa-chat .aa-cat-btn { font-size: calc(11px * var(--aa-scale)); }
#aa-chat .aa-cat-q { font-size: calc(13px * var(--aa-scale)); }
#aa-chat .aa-ttext { font-size: calc(13px * var(--aa-scale)); }
#aa-chat .aa-input { font-size: calc(14px * var(--aa-scale)); }
#aa-chat .aa-menu-row { font-size: calc(13px * var(--aa-scale)); }
#aa-chat .aa-langchip { font-size: calc(12px * var(--aa-scale)); }
#aa-chat .aa-nudge-t { font-size: calc(13px * var(--aa-scale)); }
#aa-chat .aa-nudge-cta { font-size: calc(12px * var(--aa-scale)); }
