.bombyx-presence { position: relative; z-index: 4; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: .5rem; row-gap: 0; align-items: start; width: max-content; max-width: min(340px, calc(100vw - 40px)); margin: 0 0 .75rem auto; padding: 12px; border: 1px solid color-mix(in srgb, var(--bombyx-assistant-accent, #0e756b) 18%, #d8dee3); border-radius: 14px; background: #fff; color: #172033; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); box-sizing: border-box; }
.bombyx-presence--card { position: fixed; right: 20px; bottom: 20px; z-index: 2147483647; width: min(340px, calc(100vw - 40px)); margin: 0; cursor: pointer; }
.bombyx-presence--inline { width: auto; max-width: 100%; margin: .75rem 0; }
.bombyx-presence__close { position: absolute; top: 2px; right: 2px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #667085; font: 400 24px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.bombyx-presence__close:hover { background: #f4f6f8; color: #172033; }
.bombyx-presence__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.bombyx-presence__copy { min-width: 0; padding-right: 30px; }
.bombyx-presence__body { margin: 0; font: 400 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.bombyx-presence__intro { font-weight: 700; }
.bombyx-presence__actions { grid-column: 1 / -1; display: flex; align-items: center; margin-top: 2px; padding-left: calc(28px + .5rem - 12px); }
.bombyx-presence__actions button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; color: #172033; font: 600 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.bombyx-presence__learn { border-color: color-mix(in srgb, var(--bombyx-assistant-accent, #0e756b) 35%, #d8dee3); background: #fff; color: var(--bombyx-assistant-accent, #0e756b) !important; }
.bombyx-presence button:focus-visible { outline: 3px solid var(--bombyx-assistant-accent, #0e756b); outline-offset: 2px; }
.bombyx-assistant--presence-active:not(.bombyx-assistant--inline) .bombyx-assistant__launcher { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px) scale(.92); }
@media (prefers-reduced-motion: reduce) { .bombyx-presence { scroll-behavior: auto; }.bombyx-assistant--presence-active:not(.bombyx-assistant--inline) .bombyx-assistant__launcher { transform: none; } }
@media (max-width: 767px) { .bombyx-presence--card { right: 20px; bottom: 20px; width: min(320px, calc(100vw - 40px)); max-width: min(320px, calc(100vw - 40px)); }.bombyx-presence--inline { margin: 0; }.bombyx-assistant--presence-active .bombyx-assistant__messages { padding: 8px; } }
@media (max-width: 340px) { .bombyx-presence--card { right: 20px; max-width: calc(100vw - 40px); } }
