/* Landing-only assistant. No external fonts, libraries, images or global resets. */
.nexus-chat [hidden], .nexus-launcher[hidden] { display: none !important; }
.nexus-hero-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: #5340b8; font-weight: 650; font-size: .86rem; }
.nexus-eyebrow { color: #6a5bb0; font-size: .62rem; font-weight: 750; letter-spacing: .12em; }
.public-page .nexus-invitation { margin: 38px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nexus-invitation h2 { font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: -.035em; margin: 5px 0; }
.nexus-invitation p { color: #64748b; font-size: .88rem; margin: 0; }
.nexus-invitation-action { display: flex; align-items: center; gap: 16px; padding: 18px 22px; min-width: 340px; border: 1px solid #e3dff9; border-radius: 20px; background: linear-gradient(115deg, #fcfbff, #eef1ff); color: #292447; box-shadow: 0 6px 20px #4f46e509; font-weight: 600; }
.nexus-invitation-action:hover { text-decoration: none; border-color: #aca0e0; }
.nexus-invitation-action small { display: block; font-size: .69rem; color: #716a8a; margin-top: 3px; font-weight: 400; }
.nexus-arrow { margin-left: auto; color: #7468a9; }
.nexus-orb { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 43px; height: 43px; border-radius: 15px; color: white; font: 31px/1 Georgia, serif; background: radial-gradient(at 15% 5%, #c9b5ff 0, transparent 55%), radial-gradient(at 100% 100%, #72d8d0 0, transparent 50%), linear-gradient(140deg, #6851c9, #7561dc); box-shadow: inset 0 1px 2px #ffffff7a, 0 4px 14px #6653c02b; }
.nexus-launcher { position: fixed; z-index: 90; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 17px 10px 10px; border: 1px solid #e3ddf8; border-radius: 23px; background: #fff; color: #292447; box-shadow: 0 8px 36px #49377826, 0 2px 6px #4937780d; font-size: .9rem; font-weight: 650; line-height: 1.4; cursor: pointer; text-align: left; transition: transform .18s, box-shadow .18s; }
.nexus-launcher > span:nth-child(2) { font-weight: 700; font-size: .88rem; }
.nexus-launcher small { display: block; font-size: .65rem; color: #7a748a; font-weight: 400; margin-top: 2px; }
.nexus-launcher-dot { width: 6px; height: 6px; background: #8270be; border-radius: 50%; align-self: flex-start; margin-top: 6px; }
.nexus-launcher:hover { transform: translateY(-3px); box-shadow: 0 12px 36px #49377836; }
.nexus-chat { position: fixed; inset: auto 24px 24px auto; margin: 0; padding: 0; width: 440px; max-width: calc(100vw - 32px); height: min(740px, calc(100vh - 48px)); height: min(740px, calc(100dvh - 48px)); max-height: none; border: 1px solid #e5e1f0; border-radius: 26px; color: #292447; background: #fff; box-shadow: 0 24px 90px #211b4630; overflow: hidden; }
.nexus-chat::backdrop { background: #15112929; backdrop-filter: blur(3px); }
.nexus-chat, .nexus-chat button, .nexus-chat textarea, .nexus-launcher { font-family: inherit; }
.nexus-shell { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.nexus-header { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; padding: 18px 18px 16px; border-bottom: 1px solid #eeecf5; background: #fff; }
.nexus-header .nexus-orb { width: 39px; height: 39px; border-radius: 13px; font-size: 28px; }
.nexus-header-name { flex: 1; min-width: 0; }
.nexus-header h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 1.08rem; letter-spacing: -.025em; }
.nexus-header h2 span { font-size: .56rem; font-weight: 750; letter-spacing: .04em; color: #7760b9; background: #f0ecfa; border: 1px solid #e7e0f6; border-radius: 5px; padding: 2px 4px; }
.nexus-header p { margin: 3px 0 0; font-size: .7rem; color: #70677e; }
.nexus-icon-button { width: 38px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 11px; color: #797084; background: transparent; cursor: pointer; }
.nexus-icon-button:hover { background: #f3f0fa; color: #5340a7; }
.nexus-icon-button:disabled { opacity: .35; cursor: default; }
.nexus-scroll { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 0 22px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d8d0e9 transparent; background: radial-gradient(ellipse at 40% 0, #f9f6ff, transparent 70%); }
.nexus-welcome { padding-top: 24px; text-align: center; }
.nexus-welcome-art { position: relative; width: 92px; height: 80px; margin: 0 auto 18px; display: grid; place-items: center; }
.nexus-welcome-art > .nexus-orb { width: 62px; height: 62px; border-radius: 23px; font-size: 47px; transform: rotate(-9deg); }
.nexus-orbit { position: absolute; inset: 0 -4px; border: 1px solid #e8e0fa; border-radius: 50%; transform: rotate(-32deg); background: linear-gradient(135deg, #f4efff, #edfaf7); }
.nexus-welcome-art i { position: absolute; right: -1px; top: 5px; color: #9782c7; font-style: normal; font-size: 21px; }
.nexus-welcome h3 { margin: 11px 0 10px; font-size: 1.82rem; font-weight: 650; line-height: 1.2; letter-spacing: -.055em; }
.nexus-welcome > p { margin: 0; color: #7c7588; font-size: .81rem; line-height: 1.65; }
.nexus-suggestions { display: grid; gap: 9px; margin: 23px 0 16px; }
.nexus-suggestions button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; background: #ffffffdf; border: 1px solid #eae6f2; border-radius: 14px; color: #332e45; cursor: pointer; transition: border-color .15s, background .15s; }
.nexus-suggestions button:hover { border-color: #bdadde; background: #fdfbff; }
.nexus-suggestions button > span:last-child { margin-left: auto; color: #a49aaf; }
.nexus-suggestions strong { display: block; font-size: .84rem; font-weight: 650; }
.nexus-suggestions small { display: block; margin-top: 3px; font-size: .71rem; color: #72697d; }
.nexus-topic { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; border-radius: 11px; }
.nexus-topic.is-violet { color: #8462c1; background: #f1eafa; }
.nexus-topic.is-teal { color: #448f87; background: #e9f5f1; }
.nexus-topic.is-amber { color: #b18c42; background: #fbf3e2; }
.nexus-welcome > .nexus-welcome-note { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: .67rem; color: #777080; }
.nexus-messages { display: flex; flex-direction: column; gap: 23px; padding-top: 22px; }
.nexus-messages:empty { padding: 0; }
.nexus-message { min-width: 0; max-width: 100%; font-size: .86rem; line-height: 1.7; overflow-wrap: anywhere; }
.nexus-message.is-user { align-self: flex-end; max-width: 90%; padding: 11px 16px; background: #f0ebfb; border: 1px solid #e8e0f6; border-radius: 18px 18px 4px 18px; color: #483566; white-space: pre-wrap; }
.nexus-message.is-model { align-self: stretch; }
.nexus-message-label { display: flex; gap: 6px; align-items: center; color: #75628d; font-weight: 650; font-size: .68rem; margin-bottom: 7px; }
.nexus-message-label span { color: #8b6acc; font-size: 17px; }
.nexus-message p { margin: 0 0 10px; white-space: pre-wrap; }
.nexus-message p:last-child { margin-bottom: 0; }
.nexus-message ul, .nexus-message ol { margin: 8px 0; padding-left: 22px; }
.nexus-message li { margin: 5px 0; }
.nexus-message code { font-size: .79rem; background: #f2f0f7; border-radius: 4px; padding: 2px 4px; }
.nexus-message pre { max-width: 100%; overflow-x: auto; padding: 12px; background: #f2f0f7; border: 1px solid #e6e1ee; border-radius: 10px; white-space: pre; }
.nexus-message pre code { padding: 0; background: none; }
.nexus-answer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: #746a81; font-size: .67rem; }
.nexus-copy { border: 0; border-radius: 5px; background: transparent; color: #796a93; font-size: .69rem; cursor: pointer; padding: 8px 6px; }
.nexus-copy:hover { background: #f3eff9; }
.nexus-pending { display: flex; align-items: center; gap: 10px; padding-top: 23px; font-size: .71rem; color: #847191; }
.nexus-pending > span:first-child { display: inline-flex; gap: 4px; }
.nexus-pending i { width: 5px; height: 5px; border-radius: 50%; background: #9b83b9; animation: nexus-breathe 1.2s infinite ease-in-out; }
.nexus-pending i:nth-child(2) { animation-delay: .15s; }
.nexus-pending i:nth-child(3) { animation-delay: .3s; }
@keyframes nexus-breathe { 50% { opacity: .3; transform: translateY(-3px); } }
.nexus-notice { flex: 0 0 auto; padding: 11px 18px; background: #fff9eb; border-top: 1px solid #f1e5c8; font-size: .72rem; color: #805e2f; }
.nexus-notice p { margin: 0 0 4px; }
.nexus-notice a, .nexus-notice button { display: inline-block; padding: 4px 0; margin-right: 16px; background: none; border: 0; color: #71522f; font-size: .72rem; font-weight: 650; text-decoration: underline; cursor: pointer; }
.nexus-composer { flex: 0 0 auto; padding: 14px 18px 16px; border-top: 1px solid #eeecf5; background: #fff; }
.nexus-input-wrap { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 17px; border: 1px solid #ddd6ed; box-shadow: 0 2px 5px #3b246604; background: #fff; }
.nexus-input-wrap:focus-within { border-color: #ad98d2; box-shadow: 0 0 0 3px #eee8f966; }
.nexus-chat textarea { flex: 1; width: 100%; min-width: 0; min-height: 36px; max-height: 112px; margin: 0; padding: 7px 4px; background: none; border: 0; box-shadow: none; border-radius: 0; resize: none; outline: none; font-size: 16px; line-height: 22px; color: #3c334f; }
.nexus-chat textarea:focus { outline: none; border: 0; box-shadow: none; }
.nexus-chat textarea::placeholder { color: #a094ad; font-size: .84rem; }
.nexus-send { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; background: #7453ac; border: 0; border-radius: 11px; color: #fff; cursor: pointer; }
.nexus-send:hover { background: #5e3a98; }
.nexus-send:disabled { background: #ebe5f2; color: #b1a2c2; cursor: default; }
.nexus-composer-meta { display: flex; justify-content: space-between; gap: 6px; color: #786d85; font-size: .65rem; margin: 8px 3px 0; }
.nexus-privacy { font-size: .67rem; line-height: 1.5; text-align: center; color: #756c7f; margin: 7px 0 0; }
.nexus-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nexus-chat button:focus-visible, .nexus-launcher:focus-visible, .nexus-invitation-action:focus-visible { outline: 3px solid #9d84cc; outline-offset: 3px; }
body.nexus-chat-open { overflow: hidden; }
@media (max-width: 760px) {
  .public-page .nexus-invitation { flex-direction: column; text-align: center; gap: 18px; margin-top: 28px; }
  .nexus-invitation-action { min-width: 0; width: 100%; max-width: 420px; text-align: left; }
}
@media (max-width: 600px) {
  .nexus-chat { inset: var(--nexus-top, 0px) 0 auto; width: 100%; max-width: 100%; height: var(--nexus-height, 100dvh); border: 0; border-radius: 0; }
  .nexus-header { padding: max(12px, env(safe-area-inset-top)) 14px 12px; gap: 8px; }
  .nexus-composer { padding: 12px 14px max(12px, env(safe-area-inset-bottom)); }
  .nexus-scroll { padding-inline: 18px; }
  .nexus-launcher { right: 14px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 8px 13px 8px 8px; border-radius: 19px; }
  .nexus-launcher small { display: none; }
  .nexus-launcher .nexus-orb { width: 37px; height: 37px; font-size: 28px; border-radius: 13px; }
  .nexus-launcher > span:nth-child(2) { font-size: .78rem; }
  .nexus-welcome { padding-top: 25px; }
}
@media (max-height: 650px) {
  .nexus-welcome { padding-top: 15px; }
  .nexus-welcome-art { display: none; }
  .nexus-welcome h3 { font-size: 1.55rem; }
  .nexus-suggestions { margin-top: 15px; }
}
@media (min-width: 601px) and (max-height: 850px) {
  .nexus-welcome-art { display: none; }
  .nexus-welcome { padding-top: 20px; }
  .nexus-welcome h3 { font-size: 1.65rem; }
  .nexus-suggestions { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nexus-pending i { animation: none; }
  .nexus-launcher, .nexus-suggestions button { transition: none; }
}
