/* Site assistant — scoped widget, self-contained tokens.
   Same palette and type families as the site; safe to load on any page. */

.pxn-a-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.72rem 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: #121B25; color: #E9EEF0;
  font-family: "Geist", system-ui, sans-serif; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 2px 4px hsl(212 45% 3% / 0.24), 0 8px 18px -4px hsl(212 45% 3% / 0.30),
              inset 0 1px 0 hsl(0 0% 100% / 0.10), inset 0 0 0 1px hsl(0 0% 100% / 0.14);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms cubic-bezier(0.23, 1, 0.32, 1);
  animation: pxn-arrive 760ms cubic-bezier(0.23, 1, 0.32, 1) 500ms both,
             pxn-pulse 1500ms cubic-bezier(0.23, 1, 0.32, 1) 2200ms 3;
}
.pxn-a-fab svg { width: 1.15rem; height: 1.15rem; flex: none; overflow: visible; }
.pxn-a-fab circle.ring { fill: #FF8A5C; }
@keyframes pxn-arrive {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pxn-pulse {
  0% { box-shadow: 0 2px 4px hsl(212 45% 3% / 0.24), 0 8px 18px -4px hsl(212 45% 3% / 0.30),
       inset 0 1px 0 hsl(0 0% 100% / 0.10), inset 0 0 0 1px hsl(0 0% 100% / 0.14),
       0 0 0 0 hsl(22 100% 68% / 0.45), 0 0 0 0 hsl(22 100% 68% / 0); }
  55% { box-shadow: 0 2px 4px hsl(212 45% 3% / 0.24), 0 8px 18px -4px hsl(212 45% 3% / 0.30),
       inset 0 1px 0 hsl(0 0% 100% / 0.10), inset 0 0 0 1px hsl(0 0% 100% / 0.14),
       0 0 0 16px hsl(22 100% 68% / 0), 0 0 14px 4px hsl(22 100% 68% / 0.18); }
  100% { box-shadow: 0 2px 4px hsl(212 45% 3% / 0.24), 0 8px 18px -4px hsl(212 45% 3% / 0.30),
       inset 0 1px 0 hsl(0 0% 100% / 0.10), inset 0 0 0 1px hsl(0 0% 100% / 0.14),
       0 0 0 0 hsl(22 100% 68% / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pxn-a-fab { animation: none; }
}
@media (hover: hover) and (pointer: fine) {
  .pxn-a-fab:hover { background: #18232F; box-shadow: 0 4px 8px hsl(212 45% 3% / 0.22), 0 18px 40px -8px hsl(212 45% 3% / 0.38), inset 0 1px 0 hsl(0 0% 100% / 0.10), inset 0 0 0 1px hsl(0 0% 100% / 0.22); }
}
.pxn-a-fab:active { transform: scale(0.97); }
.pxn-a-fab:focus-visible { outline: 2px solid #FF8A5C; outline-offset: 3px; }

.pxn-a-panel {
  position: fixed; right: 1.4rem; bottom: calc(1.4rem + 0.4rem); z-index: 80;
  width: min(380px, calc(100vw - 2.4rem)); max-height: min(620px, calc(100vh - 6.5rem));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px;
  background: #0A0F15;
  box-shadow: 0 4px 8px hsl(212 45% 3% / 0.22), 0 18px 40px -8px hsl(212 45% 3% / 0.38), 0 48px 90px -24px hsl(212 45% 3% / 0.30),
              inset 0 1px 0 hsl(0 0% 100% / 0.08), inset 0 0 0 1px hsl(0 0% 100% / 0.10);
  opacity: 0; transform: translateY(12px) scale(0.99);
  pointer-events: none; visibility: hidden;
  transition: opacity 420ms cubic-bezier(0.23, 1, 0.32, 1), transform 420ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 420ms;
}
.pxn-a-panel.is-open {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: opacity 420ms cubic-bezier(0.23, 1, 0.32, 1), transform 420ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (max-width: 520px) {
  .pxn-a-fab span { display: none; }
  .pxn-a-fab { padding: 0.85rem; }
  .pxn-a-panel { right: 1rem; bottom: calc(1rem + 0.4rem); }
}

.pxn-a-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid hsl(210 30% 90% / 0.12);
}
.pxn-a-head svg { width: 1.6rem; height: 1.6rem; flex: none; color: #E9EEF0; }
.pxn-a-head circle.ring { fill: #FF8A5C; }
.pxn-a-head .t { line-height: 1.15; }
.pxn-a-head .t strong { display: block; font-family: "Archivo", "Geist", system-ui, sans-serif; font-variation-settings: "wdth" 96; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; color: #E9EEF0; }
.pxn-a-head .t small { display: block; font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; color: #97A6B2; }
.pxn-a-head button {
  margin-left: auto; width: 2rem; height: 2rem; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: #97A6B2;
  transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pxn-a-head button:hover { background: hsl(210 30% 90% / 0.08); color: #E9EEF0; }
.pxn-a-head button svg { width: 0.95rem; height: 0.95rem; }

.pxn-a-log {
  flex: 1; overflow-y: auto; padding: 1.1rem; display: grid; gap: 0.75rem;
  align-content: start; scrollbar-width: thin; scrollbar-color: hsl(210 30% 90% / 0.18) transparent;
}
.pxn-a-msg { max-width: 88%; padding: 0.7rem 0.9rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.55; }
.pxn-a-msg--bot { background: #121B25; color: #E9EEF0; box-shadow: 0 1px 2px hsl(212 45% 3% / 0.28), inset 0 1px 0 hsl(0 0% 100% / 0.06); justify-self: start; border-bottom-left-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pxn-a-msg--bot a { color: #FFC9A6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: hsl(22 100% 70% / 0.45); overflow-wrap: anywhere; }
.pxn-a-msg--bot a:hover { color: #FFD9C2; text-decoration-color: currentColor; }
.pxn-a-msg--bot a:focus-visible { outline: 2px solid #FF8A5C; outline-offset: 2px; border-radius: 2px; }
.pxn-a-msg--me { background: #FF8A5C; color: #1B0D07; justify-self: end; border-bottom-right-radius: 4px; font-weight: 500; }
.pxn-a-msg--err { background: transparent; box-shadow: inset 0 0 0 1px hsl(15 60% 60% / 0.5); color: #B8BFC7; font-size: 0.85rem; }

.pxn-a-typing { justify-self: start; display: inline-flex; gap: 0.3rem; padding: 0.85rem 1rem; background: #121B25; border-radius: 12px; border-bottom-left-radius: 4px; }
.pxn-a-typing i { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: #97A6B2; animation: pxn-typ 900ms cubic-bezier(0.23, 1, 0.32, 1) infinite; }
.pxn-a-typing i:nth-child(2) { animation-delay: 140ms; }
.pxn-a-typing i:nth-child(3) { animation-delay: 280ms; }
@keyframes pxn-typ { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.pxn-a-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-self: start; max-width: 92%; }
.pxn-a-chips button {
  border: 0; cursor: pointer; padding: 0.45rem 0.75rem; border-radius: 999px;
  background: transparent; color: #97A6B2; font-family: "Geist", system-ui, sans-serif; font-size: 0.8rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.16);
  transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pxn-a-chips button:hover { background: hsl(210 30% 90% / 0.07); color: #E9EEF0; }

.pxn-a-form { display: flex; gap: 0.55rem; padding: 0.9rem 1.1rem 0.7rem; border-top: 1px solid hsl(210 30% 90% / 0.12); }
.pxn-a-form input {
  flex: 1; min-width: 0; padding: 0.68rem 0.85rem; border-radius: 10px; border: 0;
  background: #121B25; color: #E9EEF0; font-family: "Geist", system-ui, sans-serif; font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.12);
  transition: box-shadow 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pxn-a-form input::placeholder { color: #6B7A86; }
.pxn-a-form input:focus { outline: none; box-shadow: inset 0 0 0 1.5px #FF8A5C; }
.pxn-a-form button {
  flex: none; width: 2.55rem; border: 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  background: #FF8A5C; color: #1B0D07;
  box-shadow: 0 1px 2px hsl(212 45% 3% / 0.28), inset 0 1px 0 hsl(0 0% 100% / 0.35);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pxn-a-form button:hover { background: hsl(22 100% 68%); }
.pxn-a-form button:active { transform: scale(0.96); }
.pxn-a-form button:disabled { opacity: 0.45; cursor: default; }
.pxn-a-form button svg { width: 1.05rem; height: 1.05rem; }
.pxn-a-form button:focus-visible { outline: 2px solid #E9EEF0; outline-offset: 2px; }

.pxn-a-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.35rem 1.1rem 0.95rem;
}
.pxn-a-foot small { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.6rem; letter-spacing: 0.07em; text-transform: uppercase; color: #6B7A86; }
.pxn-a-foot a {
  flex: none; font-family: "Geist", system-ui, sans-serif; font-size: 0.75rem; font-weight: 600; color: #FF8A5C;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: hsl(22 100% 70% / 0.4); text-underline-offset: 3px;
}
.pxn-a-foot a:hover { text-decoration-color: #FF8A5C; }
