:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182027;
  background: #f4f5f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #182027;
  --muted: #69737b;
  --gold: #eac569;
  --line: #dce0e2;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 50% -18%, #fff 0, #f4f5f5 55%); }
button, textarea { font: inherit; }
a { color: inherit; }
.page-shell { width: min(100% - 36px, 920px); margin: 0 auto; padding: 24px 0 28px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; letter-spacing: .16em; font-weight: 650; }
.brand b { font-weight: 850; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--gold); background: #11171c; font-size: 21px; font-weight: 800; letter-spacing: 0; }
.online-label { color: #49545c; font-size: 13px; }
.online-label i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #2b987d; box-shadow: 0 0 0 3px #d9eee8; }
.intro { max-width: 690px; margin: 54px auto 30px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: #8b6d2b; font-size: 11px; font-weight: 750; letter-spacing: .17em; }
h1 { margin: 0; color: #11171c; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
h1 span { color: #8b6d2b; }
.intro-copy { max-width: 590px; margin: 18px auto 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.chat-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 60px #17202a0d; }
.chat-heading { display: flex; align-items: center; gap: 13px; padding: 19px 22px; border-bottom: 1px solid #e8eaeb; }
.bot-avatar { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--gold); background: #151b20; font-size: 23px; }
.chat-heading h2 { margin: 0; font-size: 15px; font-weight: 720; }
.chat-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.clear-button { width: 36px; height: 36px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; color: #525d65; background: #fff; font-size: 22px; cursor: pointer; }
.clear-button:hover { background: #f5f6f6; }
.messages { display: flex; min-height: 220px; max-height: min(52vh, 560px); overflow-y: auto; flex-direction: column; gap: 14px; padding: 22px; scroll-behavior: smooth; }
.message { width: fit-content; max-width: min(86%, 680px); padding: 13px 15px; border-radius: 4px 15px 15px 15px; background: #f2f4f4; color: #242d33; }
.message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.message-label { display: block; margin-bottom: 6px; color: #8b6d2b; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.user-message { align-self: flex-end; border-radius: 15px 4px 15px 15px; color: #fff; background: #182027; }
.user-message .message-label { color: #f0ce7c; }
.typing { display: flex; align-items: center; gap: 5px; min-height: 34px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #849098; animation: pulse 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 50% { opacity: .25; transform: translateY(-3px); } }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 18px; }
.suggestions button { border: 1px solid #e0e3e4; border-radius: 999px; padding: 9px 12px; color: #38434a; background: #fff; font-size: 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.suggestions button:hover { border-color: #c9a44e; background: #fffaf0; }
.composer { display: flex; align-items: flex-end; gap: 10px; margin: 0 22px; padding: 9px; border: 1px solid #d8dddf; border-radius: 14px; background: #fff; }
.composer:focus-within { border-color: #c4a454; box-shadow: 0 0 0 3px #eac5692b; }
.composer textarea { width: 100%; min-height: 50px; max-height: 130px; resize: vertical; border: 0; outline: none; padding: 7px; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.5; }
.composer textarea::placeholder { color: #8a949b; }
.send-button { display: inline-flex; flex: none; align-items: center; gap: 12px; min-height: 42px; border: 0; border-radius: 10px; padding: 0 14px; color: #171b1e; background: var(--gold); font-size: 13px; font-weight: 700; cursor: pointer; }
.send-button:hover { background: #dfb956; }
.send-button:disabled { cursor: wait; opacity: .65; }
.send-button span:last-child { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: #fff; background: #22292e; font-size: 17px; }
.error-message { margin: 12px 22px 0; border-radius: 9px; padding: 11px 13px; color: #912f2f; background: #fff0ef; font-size: 13px; }
.chat-footnote { display: flex; justify-content: space-between; gap: 16px; padding: 13px 22px 18px; color: #7b858b; font-size: 11px; line-height: 1.5; }
.page-footer { display: flex; justify-content: space-between; padding: 20px 2px 0; color: #747e84; font-size: 12px; }
.page-footer a { text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }
.sr-only { position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); width: 1px; height: 1px; white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 640px) {
  .page-shell { width: min(100% - 22px, 920px); padding-top: 15px; }
  .brand { font-size: 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .online-label { font-size: 11px; }
  .intro { margin: 38px auto 22px; }
  .intro-copy { font-size: 14px; }
  .chat-card { border-radius: 14px; }
  .chat-heading { padding: 15px; }
  .messages { min-height: 210px; padding: 16px 14px; }
  .message { max-width: 94%; }
  .suggestions { flex-wrap: nowrap; overflow-x: auto; padding: 0 14px 15px; }
  .suggestions button { flex: none; }
  .composer { gap: 5px; margin: 0 12px; padding: 7px; }
  .composer textarea { min-height: 46px; font-size: 16px; }
  .send-button { min-height: 40px; gap: 0; padding: 0 11px; }
  .send-button span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .chat-footnote { flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
}

/* Prisma Import site styling */
.advisor-page {
  min-height: 100vh;
  padding-top: 76px;
  color: var(--text, #202a31);
  background: radial-gradient(ellipse at 50% 0, rgba(255,255,255,.96), #f5f3ee 68%);
  font-family: "Manrope", sans-serif;
}
.advisor-page .site-header { font-family: "Manrope", sans-serif; }
.advisor-main { width: min(100% - 36px, 920px); margin: 0 auto; padding: 1px 0 26px; }
.advisor-page .intro { margin: 52px auto 30px; }
.advisor-page .eyebrow { color: #a57400; }
.advisor-page h1 { font-family: "Cormorant Garamond", serif; font-size: clamp(42px, 7vw, 66px); font-weight: 600; letter-spacing: -.025em; }
.advisor-page h1 span { color: #a57400; }
.advisor-page .intro-copy { color: #5f6b72; }
.chat-card { border-color: rgba(35,43,49,.12); border-radius: 22px; box-shadow: 0 24px 70px rgba(43,49,52,.11); }
.chat-heading { padding: 21px 24px; border-color: rgba(35,43,49,.09); }
.bot-avatar { color: #f1bd43; background: linear-gradient(145deg,#303c43,#1d272d); box-shadow: 0 8px 20px rgba(32,42,49,.16); }
.chat-heading h2 { font-family: "Manrope", sans-serif; }
.chat-heading .online-label { margin-left: auto; font-size: 12px; }
.clear-button { margin-left: 2px; color: #5f6b72; }
.messages { background: linear-gradient(180deg,rgba(245,243,238,.45),#fff 70%); }
.message { background: #f5f3ee; }
.message-label { color: #a57400; }
.user-message { color: #fff; background: #273138; }
.user-message .message-label { color: #f1bd43; }
.suggestions button:hover { border-color: #c68b00; background: #fff9ec; }
.composer:focus-within { border-color: #c68b00; box-shadow: 0 0 0 3px rgba(198,139,0,.13); }
.send-button { color: #202a31; background: #e6b94f; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.send-button:hover { transform: translateY(-1px); background: #f1bd43; box-shadow: 0 7px 18px rgba(198,139,0,.23); }
.send-button span:last-child { background: #273138; }
.advisor-contact { margin: 20px 0 0; text-align: center; color: #68737a; font-size: 13px; }
.advisor-contact a { color: #8e6500; font-weight: 700; }
.advisor-contact a:hover { color: #bd8200; }
.page-footer { width: min(100% - 36px, 920px); margin: 0 auto; border-top: 1px solid rgba(35,43,49,.09); }
@media (max-width: 860px) {
  .advisor-page { padding-top: 68px; }
  .advisor-main { width: min(100% - 22px, 920px); }
  .advisor-page .intro { margin-top: 38px; }
  .chat-heading { flex-wrap: wrap; padding: 15px; }
  .chat-heading .online-label { margin-left: auto; }
  .page-footer { width: min(100% - 22px, 920px); }
}
@media (max-width: 640px) {
  .advisor-page .intro { margin-bottom: 22px; }
  .advisor-page h1 { font-size: clamp(39px, 11vw, 52px); }
  .chat-card { border-radius: 16px; }
  .chat-heading .online-label { order: 3; width: 100%; padding-left: 55px; margin-top: -10px; }
  .clear-button { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .advisor-page *, .advisor-page *::before, .advisor-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
