/* Scoped blue theme and local SVG mascot; no third-party downloads. */
.wsw-chat { position: fixed; right: 36px; bottom: 18px; z-index: 900; font: 15px/1.5 system-ui, sans-serif; color: #102e50; text-align: left; color-scheme: light; }
.wsw-chat *, .wsw-chat *::before, .wsw-chat *::after { box-sizing: border-box; }
.wsw-chat [hidden] { display: none !important; }
.wsw-chat button, .wsw-chat input { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.wsw-chat button { cursor: pointer; min-height: 44px; border: 1px solid #86acd6; border-radius: 10px; padding: 8px 12px; background: #edf5ff; color: #123f75; width: auto; }
.wsw-chat button:hover { background: #dbeafe; }
.wsw-chat :is(button, input, a, summary):focus-visible { outline: 3px solid #1664cb; outline-offset: 3px; }
.wsw-chat .wsw-chat-toggle, .wsw-chat .wsw-chat-send { background: #154f9e; color: #fff; border-color: #154f9e; font-weight: 700; }
.wsw-chat .wsw-chat-toggle { display: flex; align-items: center; gap: 8px; margin-left: auto; box-shadow: 0 4px 18px #10366030; padding: 6px 16px 6px 8px; border-radius: 28px; }
.wsw-chat-robot { display: block; flex: 0 0 auto; }
.wsw-chat .wsw-chat-toggle:hover, .wsw-chat .wsw-chat-send:hover { background: #103e7d; }
.wsw-chat-panel { display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 60px); height: 680px; max-height: calc(100dvh - 96px); margin-bottom: 10px; border: 1px solid #789ecb; border-radius: 18px; background: #f1f7ff; box-shadow: 0 12px 48px #102e5038; overflow: hidden; }
.wsw-chat-expanded .wsw-chat-panel { width: 456px; height: 816px; }
.wsw-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #123f75; padding: 0 12px; color: #fff; flex: 0 0 auto; }
.wsw-chat .wsw-chat-header h2 { font: 700 16px/1.3 system-ui, sans-serif; margin: 0; color: #fff; letter-spacing: normal; }
.wsw-chat-window-controls { display: flex; flex: 0 0 auto; }
.wsw-chat .wsw-chat-header button { background: transparent; color: #fff; border: 0; min-width: 44px; padding: 0; font-size: 24px; }
.wsw-chat .wsw-chat-header button:hover { background: #28598f; }
.wsw-chat .wsw-chat-header button:focus-visible { outline-color: #fff; outline-offset: -4px; }
.wsw-chat-intro { margin: 0; padding: 10px 16px; font-size: 12px; color: #365570; border-bottom: 1px solid #c6d9ef; }
.wsw-chat-log { position: relative; flex: 1 1 auto; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; padding: 14px; scrollbar-color: #3468a8 #e5efff; }
.wsw-chat-message { border: 1px solid #c0d5ed; border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fff; overflow-wrap: anywhere; }
.wsw-chat-message p { margin: 6px 0; font: inherit; color: inherit; }
.wsw-chat-user { background: #dcecff; margin-left: 28px; }
.wsw-chat-speaker { font-size: 12px; color: #24578b; }
.wsw-chat-links { padding-left: 20px; margin: 8px 0 0; }
.wsw-chat-links li { margin: 4px 0; }
.wsw-chat a { display: inline-block; padding: 4px 0; color: #124c98; text-decoration: underline; font-weight: 600; }
.wsw-chat .wsw-chat-shortcut { margin: 6px 5px 0 0; font-size: 13px; }
.wsw-chat-topic-list { flex: 0 0 auto; padding: 0 14px; border-top: 1px solid #c6d9ef; background: #fff; }
.wsw-chat-topic-list summary { cursor: pointer; padding: 12px 0; color: #123f75; font-weight: 600; }
.wsw-chat-topics { display: flex; gap: 6px; flex-wrap: wrap; max-height: 130px; overflow-y: auto; padding: 0 4px 10px; }
.wsw-chat-topics button { font-size: 12px; }
.wsw-chat-form { padding: 10px 14px; margin: 0; border: 0; background: #edf5ff; flex: 0 0 auto; }
.wsw-chat-form label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: #123f75; }
.wsw-chat-input-row { display: flex; gap: 8px; }
.wsw-chat .wsw-chat-send { flex: 0 0 auto; min-width: 60px; white-space: nowrap; }
.wsw-chat .wsw-chat-input-row input { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #6a8db7; border-radius: 8px; background: #fff; color: #102e50; font-size: 16px; box-shadow: none; }
.wsw-chat-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 14px 8px; color: #365570; font-size: 11px; flex: 0 0 auto; }
.wsw-chat-footer button { font-size: 12px; background: transparent; }
@media (max-width: 480px) {
  .wsw-chat { right: 30px; bottom: 10px; }
  .wsw-chat-panel, .wsw-chat-expanded .wsw-chat-panel { width: calc(100vw - 42px); max-width: none; max-height: calc(100dvh - 88px); }
  .wsw-chat-intro { padding: 8px 12px; }
}
@media (max-height: 500px) {
  .wsw-chat-panel, .wsw-chat-expanded .wsw-chat-panel { height: calc(100dvh - 84px); max-height: none; }
  .wsw-chat-intro { display: none; }
  .wsw-chat-log { min-height: 40px; }
  .wsw-chat-topic-list[open] { max-height: 80px; overflow-y: auto; }
  .wsw-chat-header { padding: 0 12px; }
}
@media print { .wsw-chat { display: none; } }
