.assistant-widget { position: fixed; z-index: 40; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--assistant-keyboard, 0px)); width: 336px; max-width: calc(100% - 32px); max-height: var(--assistant-space, calc(100dvh - 120px)); display: flex; flex-direction: column; color: #eaf1f1; background: #0b171af5; border: 1px solid #78979d70; border-top-color: #e6b15d9c; border-radius: 8px; box-shadow: 0 12px 40px #0006, inset 0 1px #ffffff08; backdrop-filter: blur(22px); font-size: 14px; line-height: 1.55; letter-spacing: 0; }
.assistant-widget[hidden], .assistant-widget [hidden] { display: none !important; }
.assistant-widget .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; }
.desk-is-playing .assistant-widget { visibility: hidden; pointer-events: none; }
.assistant-widget button, .assistant-widget textarea { font: inherit; letter-spacing: 0; }
.assistant-widget button { cursor: pointer; }
.assistant-widget button:disabled { cursor: wait; opacity: .45; }
.assistant-widget a { color: #e6b15d; text-underline-offset: 3px; }
.assistant-widget button:focus-visible, .assistant-widget a:focus-visible, .assistant-widget textarea:focus-visible, .assistant-widget input:focus-visible { outline: 2px solid #e6b15d; outline-offset: 3px; }
.assistant-header { display: flex; align-items: center; min-height: 52px; gap: 6px; padding: 8px 10px 8px 16px; }
.assistant-heading { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; border: 0; padding: 2px 0; background: none; color: #eef4f3; text-align: left; font-weight: 500 !important; }
.assistant-heading > svg { color: #e6b15d; width: 18px; height: 18px; flex: none; }
.assistant-icon { display: grid; place-items: center; width: 34px; height: 34px; padding: 8px; flex: none; border: 1px solid transparent; border-radius: 4px; background: none; color: #a2bac0; }
.assistant-icon svg { width: 18px; height: 18px; }
.assistant-icon:hover { color: #eef4f3; background: #adc9cc0d; border-color: #718f963d; }
.assistant-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 14px; scrollbar-width: thin; scrollbar-color: #436069 transparent; }
.assistant-log { max-height: min(340px, 40dvh); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid #78979d33; margin-bottom: 12px; scroll-behavior: smooth; }
.assistant-entry { padding: 13px 0; border-bottom: 1px solid #78979d26; overflow-wrap: anywhere; }
.assistant-entry > strong { display: block; margin-bottom: 5px; color: #9bb5bc; font-size: 12px; font-weight: 500; }
.assistant-entry--user > strong { color: #e6b15d; }
.assistant-entry p { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; color: #e0ebed; }
.assistant-sources { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; }
.assistant-sources a { max-width: 100%; }
.assistant-question { display: flex; align-items: flex-end; gap: 6px; padding: 7px; border: 1px solid #69899070; border-radius: 4px; background: #050d0fb8; }
.assistant-question:focus-within { border-color: #e6b15d9c; }
.assistant-question textarea { width: 100%; min-width: 0; height: 38px; max-height: 120px; resize: none; border: 0; border-radius: 0; padding: 8px 2px 6px 4px; background: none; color: #eef4f3; font-size: 16px; line-height: 1.4; }
.assistant-question textarea::placeholder { color: #9ab2b7; font-size: 14px; }
.assistant-question textarea:focus-visible { outline: none; }
.assistant-send { color: #10191b; background: #e6b15d; border-color: #e6b15d; }
.assistant-send:hover { color: #10191b; background: #f1c47d; border-color: #f1c47d; }
.assistant-widget .assistant-notice { margin: 9px 0 0; color: #a9bfc5; font-size: 12px; font-weight: 400; line-height: 1.5; }
.assistant-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-top: 9px; font-size: 12px; color: #91a9af; }
.assistant-meta p { margin: 0; font-size: 12px; color: inherit; }
.assistant-status { margin: 9px 0 0; color: #b9d0d6; font-size: 13px; overflow-wrap: anywhere; }
.assistant-status:empty { display: none; }
.assistant-status.is-error { color: #f2b7a3; }
.assistant-widget.is-collapsed { width: 168px; }
.assistant-widget.is-collapsed .assistant-header { padding: 8px 14px; }
.assistant-widget.is-collapsed .assistant-collapse, .assistant-widget.is-collapsed .assistant-reset { display: none; }
.assistant-widget.is-collapsed .assistant-heading { min-height: 32px; }
.assistant-widget.has-answer .assistant-meta { padding-top: 1px; }
body.has-assistant .site-footer { padding-bottom: 170px; }
@media (min-width: 701px) { body.has-assistant .hero-motion-toggle { right: 382px; } }
@media (max-width: 700px) {
  .assistant-widget { right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--assistant-keyboard, 0px)); width: 336px; }
  .assistant-widget.is-collapsed { width: 150px; }
  .assistant-log { max-height: min(290px, 36dvh); }
}
@media (prefers-reduced-motion: reduce) { .assistant-log { scroll-behavior: auto; } }
