.user-chat-toggle { position: fixed; z-index: 56; inset-inline-end: 16px; bottom: max(84px, calc(72px + env(safe-area-inset-bottom))); display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 2px; background: #e6fff3; border: 2px solid #4d9946; border-radius: 50%; box-shadow: 0 5px 22px rgba(0, 30, 70, .22); cursor: pointer; }
.user-chat-toggle:focus-visible { outline: 3px solid #075dd8; outline-offset: 4px; }
.user-chat-logo { display: block; flex-shrink: 0; }
.user-chat-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-chat-panel { position: fixed; z-index: 57; inset-inline-end: 16px; bottom: max(160px, calc(148px + env(safe-area-inset-bottom))); width: min(390px, calc(100vw - 32px)); max-height: calc(100dvh - 185px); display: flex; flex-direction: column; padding: 16px; gap: 10px; background: #fff; color: #071d49; border: 1px solid #dce5ef; border-radius: 16px; box-shadow: 0 12px 38px rgba(0, 30, 70, .2); font: 14px/1.5 sans-serif; overflow-y: auto; }
.user-chat-panel[hidden] { display: none; }
.user-chat-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.user-chat-panel h2 { margin: 0; font-size: 17px; }
.user-chat-panel button { cursor: pointer; }
.user-chat-panel button:not(.user-chat-send) { background: #eef4fc; border: 1px solid #dce5ef; border-radius: 8px; padding: 6px 9px; color: #0c3d91; }
.user-chat-notice { margin: 0; font-size: 11px; color: #536579; }
.user-chat-messages { overflow-y: auto; min-height: 80px; flex: 1; }
.user-chat-message { background: #f1f6fc; border-radius: 10px; margin: 8px 0; padding: 10px; overflow-wrap: anywhere; }
.user-chat-message-user { background: #e3efff; }
.user-chat-message p { margin: 4px 0; white-space: pre-wrap; }
.user-chat-message a { display: block; color: #075dd8; padding: 5px 0; }
.user-chat-form { display: grid; gap: 6px; }
.user-chat-form input { min-width: 0; width: 100%; padding: 10px; border: 1px solid #b9c9dc; border-radius: 8px; font: inherit; }
.user-chat-send { color: #fff; background: #075dd8; border: 0; border-radius: 8px; padding: 10px; font-weight: 700; }
.user-chat-send:disabled { opacity: .6; cursor: wait; }
.user-chat-error { margin: 0; color: #a52020; font-size: 12px; }
@media (max-height: 500px) {
  .user-chat-panel { bottom: 12px; max-height: calc(100dvh - 24px); }
}
