/* Code Generated by Sidekick is for learning and experimentation purposes only. */
#ui-chatbot-panel {
  --ui-chatbot-panel-bg: #ffffff;
  --ui-chatbot-panel-border: #bbbdbf;
  --ui-chatbot-panel-text: #1f1f1f;
  --ui-chatbot-muted-text: #53565a;
  --ui-chatbot-message-bg: #ffffff;
  --ui-chatbot-source-bg: #f7f7f5;
  --ui-chatbot-source-border: #d0d0ce;
  --ui-chatbot-link: #005587;
  --ui-chatbot-link-hover: #003b5c;
  --ui-chatbot-input-bg: #ffffff;
  --ui-chatbot-input-border: #bbbdbf;
  --ui-chatbot-input-text: #1f1f1f;
  --ui-chatbot-input-placeholder: #6e6e73;
  --ui-chatbot-code-bg: rgba(0, 0, 0, 0.07);
  --ui-chatbot-close-color: #1f1f1f;
  --ui-chatbot-send-bg: #007cb0;
  --ui-chatbot-send-text: #ffffff;
  --ui-chatbot-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

[data-md-color-scheme="slate"] #ui-chatbot-panel {
  --ui-chatbot-panel-bg: #111827;
  --ui-chatbot-panel-border: #334155;
  --ui-chatbot-panel-text: #e5edf5;
  --ui-chatbot-muted-text: #b6c2cf;
  --ui-chatbot-message-bg: #0f172a;
  --ui-chatbot-source-bg: #162133;
  --ui-chatbot-source-border: #2f4057;
  --ui-chatbot-link: #8ccfff;
  --ui-chatbot-link-hover: #c7ebff;
  --ui-chatbot-input-bg: #1f2937;
  --ui-chatbot-input-border: #475569;
  --ui-chatbot-input-text: #f8fafc;
  --ui-chatbot-input-placeholder: #94a3b8;
  --ui-chatbot-code-bg: rgba(148, 163, 184, 0.22);
  --ui-chatbot-close-color: #e5edf5;
  --ui-chatbot-send-bg: #0f7db5;
  --ui-chatbot-send-text: #ffffff;
  --ui-chatbot-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

#ui-chatbot-launcher {
  position: fixed; right: 16px; bottom: 16px;
  width: min(112px, 30vw);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

#ui-chatbot-launcher img {
  width: 100%;
  height: auto;
  display: block;
}

#ui-chatbot-launcher:focus-visible {
  outline: 2px solid #007CB0;
  outline-offset: 4px;
}

#ui-chatbot-panel {
  position: fixed; right: 16px; bottom: 98px;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 140px));
  background: var(--ui-chatbot-panel-bg);
  border: 1px solid var(--ui-chatbot-panel-border);
  border-radius: 12px;
  box-shadow: var(--ui-chatbot-shadow);
  color: var(--ui-chatbot-panel-text);
  display: none; overflow: hidden;
}

@media (max-width: 600px) {
  #ui-chatbot-panel {
    bottom: 90px;
  }
}

#ui-chatbot-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ui-chatbot-panel-border);
  background: var(--ui-chatbot-panel-bg);
  color: var(--ui-chatbot-panel-text);
}

#ui-chatbot-messages {
  padding: 12px; height: calc(100% - 112px);
  overflow: auto;
  background: var(--ui-chatbot-message-bg);
  color: var(--ui-chatbot-panel-text);
}

.ui-chatbot-msg { margin: 0 0 10px; line-height: 1.5; }
.ui-chatbot-msg.user { font-weight: 600; }
.ui-chatbot-msg.assistant { white-space: normal; }
.ui-chatbot-msg-label { font-weight: 600; display: block; margin-bottom: 4px; }
.ui-chatbot-msg-content { color: var(--ui-chatbot-panel-text); }
.ui-chatbot-msg-content p { margin: 0 0 6px; }
.ui-chatbot-msg-content ul { margin: 4px 0 8px 18px; padding: 0; list-style: disc; }
.ui-chatbot-msg-content li { margin-bottom: 3px; }
.ui-chatbot-msg-content strong { font-weight: 700; }
.ui-chatbot-msg-content code { background: var(--ui-chatbot-code-bg); padding: 1px 4px; border-radius: 3px; font-size: 0.85em; }
.ui-chatbot-thinking { opacity: 0.6; font-style: italic; }

.ui-chatbot-source {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--ui-chatbot-source-border);
  border-radius: 10px;
  background: var(--ui-chatbot-source-bg);
}

.ui-chatbot-source-text {
  margin: 0 0 6px;
  color: var(--ui-chatbot-panel-text);
  line-height: 1.35;
}

.ui-chatbot-source-link {
  color: var(--ui-chatbot-link);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-word;
}

.ui-chatbot-source-link:hover,
.ui-chatbot-source-link:focus {
  color: var(--ui-chatbot-link-hover);
}

#ui-chatbot-form {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--ui-chatbot-panel-border);
  background: var(--ui-chatbot-panel-bg);
}
#ui-chatbot-input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--ui-chatbot-input-border);
  border-radius: 8px;
  background: var(--ui-chatbot-input-bg);
  color: var(--ui-chatbot-input-text);
}

#ui-chatbot-input::placeholder {
  color: var(--ui-chatbot-input-placeholder);
}

#ui-chatbot-send {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ui-chatbot-send-bg);
  color: var(--ui-chatbot-send-text);
  cursor: pointer;
}

#ui-chatbot-close {
  border: 0;
  background: transparent;
  color: var(--ui-chatbot-close-color);
  cursor: pointer;
  font-size: 18px;
}