﻿/* Bot-Auswahl und Erstellen */
.bot-modal-backdrop { z-index: 40; }
.bot-modal {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  padding: clamp(20px, 5vw, 30px);
  border: 1px solid var(--graphite-line, #414349);
  border-radius: 16px;
  background: var(--graphite-stage, #202124);
  box-shadow: 0 24px 70px #08090bbf;
}
.bot-modal-close { position: absolute; right: 20px; top: 20px; }
.bot-modal-kicker { display: block; color: var(--graphite-muted, #b0b3b8); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.bot-modal h2 { margin: 9px 36px 8px 0; font-size: clamp(24px, 5vw, 31px); letter-spacing: -.05em; }
.bot-modal-intro { max-width: 420px; margin-bottom: 20px; color: var(--graphite-muted, #b0b3b8); font-size: 13px; line-height: 1.6; }
.bot-switch-list { display: grid; gap: 7px; max-height: 300px; overflow: auto; }
.bot-switch-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--graphite-hairline, #ffffff1a);
  border-radius: 10px;
  background: var(--graphite-panel, #25272a);
  color: var(--graphite-ink, #f3f4f4);
  text-align: left;
}
.bot-switch-item:hover, .bot-switch-item.is-active { background: var(--graphite-raised, #2d2f33); border-color: #777a82; }
.bot-switch-item > .icon { margin-left: auto; color: var(--graphite-muted, #b0b3b8); }
.bot-switch-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--graphite-hairline, #ffffff1a);
  border-radius: 9px;
  background: #ffffff08;
  color: var(--graphite-accent, #dfe2e6);
}
.bot-switch-info { display: grid; flex: 1; gap: 4px; min-width: 0; }
.bot-switch-info strong { font-size: 13px; overflow-wrap: anywhere; }
.bot-switch-info small { color: var(--graphite-muted, #b0b3b8); font-size: 11px; }
.bot-active-label { color: var(--graphite-accent, #dfe2e6); font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.bot-create-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 11px;
  padding: 12px;
  border: 1px dashed #64676e;
  border-radius: 10px;
  background: transparent;
  color: var(--graphite-accent, #dfe2e6);
  font-size: 12px;
  font-weight: 700;
}
.bot-create-link:hover { background: var(--graphite-panel, #25272a); }
.bot-modal-footnote, .bot-inline-hint, .bot-token-status { margin-top: 16px; color: var(--graphite-muted, #b0b3b8); font-size: 11px; line-height: 1.6; }
.bot-modal .field { margin-bottom: 16px; }
.bot-modal .field label { display: block; }
.bot-optional { color: var(--graphite-muted, #b0b3b8); font-size: 10px; font-weight: 400; }
.bot-persist-option { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #d5bd8b38; border-radius: 11px; background: #d7ba7810; cursor: pointer; }
.bot-persist-option input { appearance: auto; accent-color: var(--graphite-accent, #dfe2e6); margin: 3px 0 0; width: 16px; height: 16px; flex: none; }
.bot-persist-option span { display: grid; gap: 5px; }
.bot-persist-option strong { color: #eee8df; font-size: 12px; }
.bot-persist-option small { color: #c0b9a9; font-size: 11px; line-height: 1.55; }
.bot-persist-option code { color: #eee2c9; }
.bot-submit { width: 100%; margin-top: 12px; }
.bot-modal .error { margin: 12px 0 0; }
.connection-form .bot-persist-option { margin-top: 12px; }
.bot-modal :disabled { opacity: .55; cursor: not-allowed; }
.bot-modal :is(input,button):focus-visible { outline: 2px solid var(--graphite-accent, #dfe2e6); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .bot-modal { animation: cl-panel-appear .23s var(--graphite-ease, ease) both; }
}
