.assistant-launcher, .assistant-dialog, .contact-assistant { font-family: Arial, sans-serif; }
.assistant-launcher {
  position: fixed; z-index: 30; right: 24px; bottom: max(24px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px;
  border: 1px solid #57574f; border-radius: 2px; background: #e9e9e2; color: #11110f;
  font-size: 13px; box-shadow: 0 8px 36px #0006; cursor: pointer;
  transition: background .2s, transform .2s;
}
.launcher-bot { display: flex; flex: none; flex-direction: column; font: 10px/.85 "SFMono-Regular", Consolas, monospace; letter-spacing: 0; white-space: pre; text-align: center; }
.launcher-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.assistant-launcher:hover { background: #fff; transform: translateY(-3px); }
.contact-assistant {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 44px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid #94948c;
  color: #f2f2ee; font-size: 14px; line-height: 1.5; cursor: pointer;
}
.assistant-dialog {
  position: fixed; inset: auto 24px 24px auto; margin: 0; padding: 0;
  width: min(450px, calc(100vw - 48px)); height: min(740px, calc(100dvh - 48px)); max-height: none; max-width: none;
  color: #ebebe4; background: #10100f; border: 1px solid #4a4a42; border-radius: 3px;
  box-shadow: 0 24px 100px #0008; overflow: hidden; color-scheme: dark;
}
.assistant-dialog::backdrop { background: #0005; backdrop-filter: blur(3px); }
.assistant-dialog[open] { animation: assistant-enter .25s ease-out; }
body.assistant-open { overflow: hidden; }
.assistant-shell { display: flex; flex-direction: column; height: 100%; }
.assistant-header { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid #2c2c28; }
.assistant-avatar { display: flex; flex-direction: column; color: #c6c6bc; font: 10px/1.05 "SFMono-Regular", Consolas, monospace; letter-spacing: 1px; }
.assistant-avatar i, .launcher-bot i { display: inline-block; font-style: normal; transform-origin: center 65%; animation: assistant-blink 7s steps(1) infinite; }
.assistant-identity { flex: 1; min-width: 0; }
.assistant-identity h2 { margin: 0; font-size: 16px; font-weight: 400; letter-spacing: -.025em; }
.assistant-identity h2 span { color: #6b6b61; margin-left: 5px; }
.assistant-identity p { margin: 5px 0 0; color: #99998f; font: 9px/1.5 "SFMono-Regular", Consolas, monospace; }
.assistant-close { flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid #383832; background: transparent; color: #c6c6bc; font-size: 24px; cursor: pointer; }
.assistant-close:hover { background: #272723; color: #fff; }
.assistant-switch { display: grid; grid-template-columns: 1fr 1.25fr; padding: 0 24px; border-bottom: 1px solid #2c2c28; }
.assistant-switch button { padding: 17px 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8f8f85; font: 12px Arial; text-align: left; cursor: pointer; }
.assistant-switch button[aria-pressed="true"] { border-color: #deded4; color: #efefe8; }
.assistant-switch button:last-child { text-align: right; }
.assistant-switch button .icon { width: 14px; height: 14px; margin-left: 6px; }
.assistant-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.assistant-conversation, .assistant-lead-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4b4b43 transparent; }
.assistant-conversation { flex: 1; min-height: 0; padding: 30px 24px 20px; }
.assistant-eyebrow { margin: 0 0 21px; color: #8c8c82; font: 8px/1.7 "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; }
.assistant-welcome h3, .assistant-lead-intro h3 { margin: 0 0 18px; font-size: 31px; font-weight: 400; line-height: 1.1; letter-spacing: -.05em; }
.assistant-welcome h3 em, .assistant-lead-intro h3 em { font-family: Georgia, serif; font-weight: 400; }
.assistant-welcome > p:not(.assistant-eyebrow), .assistant-lead-intro > p:not(.assistant-eyebrow) { color: #a5a59b; font-size: 13px; line-height: 1.7; }
.assistant-prompts { display: grid; gap: 8px; margin: 26px 0 8px; }
.assistant-prompts button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 14px; border: 1px solid #363630; background: #161614; color: #c8c8be; text-align: left; font: 12px/1.5 Arial; cursor: pointer; }
.assistant-prompts button:hover { border-color: #8a8a7d; background: #1d1d19; }
.assistant-prompts button .icon { width: 16px; height: 16px; color: #8d8d81; }
.assistant-messages { display: grid; gap: 24px; }
.assistant-messages:not(:empty) { margin-top: 28px; }
.chat-message { min-width: 0; }
.chat-message-label { margin: 0 0 8px; color: #8d8d82; font: 8px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; }
.chat-message-body { margin: 0; color: #d5d5cc; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; }
.chat-message.is-user { padding: 14px 16px; margin-left: 32px; background: #252521; border-left: 1px solid #69695d; }
.chat-message.is-user .chat-message-body { color: #ededdf; }
.chat-sources { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.chat-sources a { color: #9d9d91; font: 9px/1.5 "SFMono-Regular", Consolas, monospace; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.chat-sources .icon { width: 12px; height: 12px; }
.chat-lead-button { display: block; padding: 11px 14px; margin-top: 16px; border: 1px solid #626255; background: none; color: #e0e0d5; font: 12px Arial; cursor: pointer; }
.assistant-thinking { color: #a9a99b; font: 10px/1.7 "SFMono-Regular", Consolas, monospace; margin: 24px 0 0; }
.assistant-thinking span { margin-right: 7px; }
.assistant-error, .lead-error { color: #e4e4d4; border-left: 2px solid #9c9c87; padding: 10px 12px; margin: 20px 0 0; background: #25251e; font: 12px/1.6 Arial; }
.assistant-composer { display: flex; align-items: flex-end; gap: 10px; margin: 0 20px 20px; padding: 9px 9px 9px 15px; border: 1px solid #55554b; background: #191916; }
.assistant-composer:focus-within { border-color: #b4b4a4; }
.assistant-composer textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 100px; padding: 10px 0 7px; resize: none; border: none; outline: none; color: #efefe4; background: none; font: 14px/1.5 Arial; }
.assistant-composer textarea::placeholder { color: #8c8c7e; }
.assistant-composer button { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 0; background: #e2e2d6; color: #141410; cursor: pointer; }
.assistant-composer button .icon { width: 20px; height: 20px; }
.assistant-lead { flex: 1; min-height: 0; display: flex; }
.assistant-lead-scroll { flex: 1; padding: 28px 24px; }
.assistant-lead-intro { margin-bottom: 26px; }
#opportunity-form { display: grid; gap: 17px; }
#opportunity-form label:not(.lead-consent) { display: block; color: #c1c1b5; font: 11px/1.4 Arial; }
.lead-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-optional { display: inline; margin-left: 4px; color: #828276; font-size: 10px; }
#opportunity-form input:not([type="checkbox"]), #opportunity-form select, #opportunity-form textarea { display: block; margin-top: 8px; width: 100%; min-width: 0; border: 1px solid #44443b; border-radius: 0; background: #1b1b17; color: #efefe1; padding: 11px; font: 14px/1.5 Arial; }
#opportunity-form textarea { resize: vertical; min-height: 94px; max-height: 240px; }
#opportunity-form input::placeholder, #opportunity-form textarea::placeholder { color: #8b8b7e; font-size: 12px; }
.lead-consent { display: flex; align-items: flex-start; gap: 10px; color: #b1b1a3; font: 11px/1.6 Arial; }
.lead-consent input { flex: none; margin: 3px 0 0; width: 15px; height: 15px; accent-color: #dfdfcf; }
.lead-submit { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px; border: none; background: #e5e5d9; color: #141410; font: 13px Arial; cursor: pointer; }
.lead-submit:hover { background: #fff; }
.assistant-linkedin { display: inline-block; margin-top: 24px; color: #a5a596; font: 11px/1.7 Arial; text-underline-offset: 4px; }
.assistant-linkedin .icon, .chat-lead-button .icon { width: 14px; height: 14px; margin-left: 4px; }
.lead-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-success { padding: 24px 0; }
.lead-success-symbol { font: 26px monospace; }
.lead-success h4 { font-weight: 400; font-size: 27px; letter-spacing: -.04em; margin: 22px 0 14px; }
.lead-success p { color: #aaa99b; font: 13px/1.7 Arial; }
.lead-receipt { font-family: monospace !important; font-size: 10px !important; }
.lead-new { margin-top: 12px; padding: 12px; background: none; border: 1px solid #6f6f5e; color: #dfdfcf; cursor: pointer; }
.assistant-dialog [hidden] { display: none !important; }
.assistant-dialog button:disabled { opacity: .45; cursor: wait; }
.assistant-dialog :is(button, input, select, textarea, a):focus-visible, .assistant-launcher:focus-visible, .contact-assistant:focus-visible { outline: 2px solid #b4b4a0; outline-offset: 4px; }
.assistant-composer textarea:focus-visible { outline: none; }
.assistant-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes assistant-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes assistant-blink { 0%, 36%, 40%, 76%, 80%, 100% { transform: scaleY(1); } 38%, 78% { transform: scaleY(.12); } }
@media (max-width: 600px) {
  .assistant-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 48px; padding-inline: 14px; gap: 10px; font-size: 12px; }
  .assistant-dialog { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .assistant-header { padding: max(18px, env(safe-area-inset-top)) 20px 18px; }
  .assistant-switch { padding-inline: 20px; }
  .assistant-conversation, .assistant-lead-scroll { padding-inline: 20px; }
  .assistant-composer { margin-bottom: max(20px, env(safe-area-inset-bottom)); }
  .assistant-composer textarea, #opportunity-form input:not([type="checkbox"]), #opportunity-form textarea, #opportunity-form select { font-size: 16px; }
  .lead-field-row { grid-template-columns: 1fr; gap: 17px; }
  .assistant-welcome h3 { font-size: clamp(27px, 7.2vw, 34px); }
  .contact-assistant { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-dialog[open], .assistant-avatar i, .launcher-bot i { animation: none; }
  .assistant-launcher { transition: none; }
  .assistant-launcher:hover { transform: none; }
}
