/* Netiva Asistan — Yapay Zekâ Destekli Sohbet Arayüzü */

/* 1. Kayan Başlatıcı Baloncuğu (Floating Launcher) */
.assistant-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 920;
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-launcher-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: radial-gradient(circle at 30% 30%, #20314a, #131c29);
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 180, 255, 0.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  padding: 0;
}

.assistant-launcher-btn:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 28px rgba(138, 180, 255, 0.4);
}

.assistant-launcher-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.assistant-launcher-btn .launcher-icon-chat,
.assistant-launcher-btn .launcher-icon-close {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.assistant-launcher-btn .launcher-icon-close {
  display: none;
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.assistant-launcher.is-active .assistant-launcher-btn {
  background: var(--surface-raised);
  border-color: var(--accent);
  transform: scale(0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.assistant-launcher.is-active .launcher-icon-chat {
  display: none;
  opacity: 0;
}

.assistant-launcher.is-active .launcher-icon-close {
  display: block;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Çevrimiçi Nabız İndikatörü (Pulse Ping Dot) */
.assistant-ping-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  background: #38d39f;
  border-radius: 50%;
  border: 2px solid #131c29;
  box-shadow: 0 0 10px rgba(56, 211, 159, 0.8);
}

.assistant-ping-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #38d39f;
  animation: assistant-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes assistant-ping {
  0% { transform: scale(0.9); opacity: 0.9; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* Başlatıcı İpucu Kartı (Tooltip Pill) */
.assistant-launcher-tooltip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: tooltip-fade 0.3s ease-out;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.assistant-launcher.is-active .assistant-launcher-tooltip {
  display: none;
}

.assistant-launcher-tooltip svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
}

@keyframes tooltip-fade {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 2. Sohbet Penceresi (Chat Window) */
.assistant-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 390px;
  height: 590px;
  max-height: calc(100dvh - 120px);
  z-index: 921;
  background: rgba(18, 24, 34, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(138, 180, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.assistant-window.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* 3. Sohbet Başlığı (Header) */
.assistant-header {
  padding: 14px 18px;
  background: rgba(22, 30, 43, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.assistant-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #293d5c, #162232);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.assistant-avatar svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.assistant-avatar-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #38d39f;
  border-radius: 50%;
  border: 2px solid #162232;
}

.assistant-title-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.assistant-title-group p {
  font-size: 11px;
  color: var(--quiet);
  margin: 3px 0 0;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.assistant-title-group p .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #38d39f;
  border-radius: 50%;
}

.assistant-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assistant-header-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.assistant-header-btn:hover {
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--accent-border);
}

.assistant-header-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* 4. Sohbet Gövdesi ve Mesaj Akışı (Message Stream) */
.assistant-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.assistant-body::-webkit-scrollbar {
  width: 5px;
}

.assistant-body::-webkit-scrollbar-track {
  background: transparent;
}

.assistant-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Hoş Geldin Karşılama Kartı */
.assistant-welcome-card {
  background: linear-gradient(145deg, rgba(28, 40, 58, 0.7), rgba(20, 27, 39, 0.9));
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 4px;
}

.assistant-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(138, 180, 255, 0.14);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.assistant-welcome-badge svg {
  width: 12px;
  height: 12px;
}

.assistant-welcome-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.assistant-welcome-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Hızlı Öneri Hapları (Quick Suggestion Chips) */
.assistant-suggestions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.assistant-suggestions-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.assistant-chip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.assistant-chip-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #fff;
  transform: translateX(3px);
}

.assistant-chip-btn svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Mesaj Balonları */
.assistant-message {
  display: flex;
  gap: 10px;
  max-width: 88%;
  min-width: 0;
  animation: message-slide 0.22s ease-out;
}

@keyframes message-slide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.assistant-message.is-assistant {
  align-self: flex-start;
  max-width: 95%;
  min-width: 0;
}

.assistant-message.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.assistant-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #263852, #141c28);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.assistant-msg-avatar svg {
  width: 15px;
  height: 15px;
}

.assistant-msg-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.assistant-msg-bubble {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.assistant-message.is-assistant .assistant-msg-bubble {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
  border-top-left-radius: 3px;
}

/* Canlı Stream / Daktilo İmleci (Streaming Cursor) */
.assistant-streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -1px;
  background-color: var(--accent, #38bdf8);
  border-radius: 2px;
  animation: assistant-cursor-blink 0.75s ease-in-out infinite;
}

@keyframes assistant-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.assistant-message.is-user .assistant-msg-bubble {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  border-top-right-radius: 3px;
}

.assistant-msg-time {
  font-size: 10px;
  color: var(--quiet);
  margin-top: 4px;
  display: block;
}

.assistant-message.is-user .assistant-msg-time {
  text-align: right;
  color: rgba(16, 30, 53, 0.75);
}

/* Balon İçi Zengin İçerik & Bağlantılar */
.assistant-msg-bubble code:not(.assistant-code-pre code) {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--accent);
  border: 1px solid rgba(138, 180, 255, 0.2);
}

.assistant-message.is-user .assistant-msg-bubble code:not(.assistant-code-pre code) {
  background: rgba(16, 30, 53, 0.25);
  color: var(--accent-ink);
  border-color: rgba(16, 30, 53, 0.3);
}

.assistant-msg-bubble ul,
.assistant-msg-bubble ol {
  margin: 6px 0;
  padding-left: 18px;
}

.assistant-msg-bubble li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.assistant-msg-bubble .assistant-heading-2 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 5px;
  line-height: 1.3;
}

.assistant-msg-bubble .assistant-heading-3 {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 7px 0 4px;
  line-height: 1.3;
}

.assistant-quote {
  margin: 8px 0;
  padding: 6px 12px;
  border-left: 3px solid var(--accent, #38bdf8);
  background: rgba(56, 189, 248, 0.08);
  border-radius: 0 6px 6px 0;
  color: #cbd5e1;
  font-size: 12.5px;
}

.assistant-hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Özel Kod Bloğu Tasarımı (Dedicated Code Block UI)
   ========================================================================== */
.assistant-code-block {
  margin: 8px 0;
  background: #080c14;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.assistant-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(22, 32, 51, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.assistant-code-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assistant-code-icon {
  width: 13px;
  height: 13px;
  color: var(--accent, #38bdf8);
}

.assistant-code-lang {
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.assistant-copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.assistant-copy-code-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.assistant-copy-code-btn.is-copied {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: #22c55e !important;
  color: #4ade80 !important;
}

.assistant-copy-code-btn svg {
  width: 12px;
  height: 12px;
}

.assistant-code-pre {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #e2e8f0;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) transparent;
}

.assistant-code-pre::-webkit-scrollbar {
  height: 5px;
}

.assistant-code-pre::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

.assistant-code-pre code {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  color: inherit !important;
  font-family: inherit;
  font-size: inherit;
  white-space: pre;
}

/* ==========================================================================
   Markdown Tablo Tasarımı (Responsive Table UI)
   ========================================================================== */
.assistant-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 9px 0;
  border-radius: 8px;
  border: 1px solid rgba(138, 180, 255, 0.18);
  background: rgba(10, 15, 26, 0.85);
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) transparent;
}

.assistant-table-wrap::-webkit-scrollbar {
  height: 5px;
}

.assistant-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

.assistant-msg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
  text-align: left;
}

.assistant-msg-table th {
  background: rgba(22, 32, 51, 0.95);
  color: #f1f5f9;
  font-weight: 600;
  padding: 8px 11px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.35);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.assistant-msg-table td {
  padding: 7px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  white-space: nowrap;
}

.assistant-msg-table code {
  white-space: nowrap;
  word-break: normal;
}

.assistant-msg-table tr:last-child td {
  border-bottom: none;
}

.assistant-msg-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.assistant-msg-table strong {
  color: #f8fafc;
}

.assistant-chat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.16s ease;
}

.assistant-chat-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.assistant-chat-link svg {
  width: 12px;
  height: 12px;
}

/* Yazıyor İndikatörü (Typing Dots) */
.assistant-typing-box {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-top-left-radius: 3px;
  width: fit-content;
}

.assistant-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing-dot-bounce 1.4s infinite ease-in-out both;
}

.assistant-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.assistant-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.assistant-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typing-dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* 5. Mesaj Giriş Alanı (Footer / Input) */
.assistant-footer {
  padding: 12px 14px;
  background: rgba(18, 25, 36, 0.98);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.assistant-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-input-wrap {
  position: relative;
  flex: 1;
}

.assistant-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.assistant-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 180, 255, 0.15);
}

.assistant-input::placeholder {
  color: var(--quiet);
  font-size: 12.5px;
}

.assistant-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
  padding: 0;
}

.assistant-send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.assistant-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.assistant-send-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.assistant-micro-hint {
  font-size: 10px;
  color: var(--quiet);
  text-align: center;
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.assistant-micro-hint svg {
  width: 11px;
  height: 11px;
  color: var(--accent);
}

/* 6. Mobil Uyumluluk (Mobile Responsive Drawer & Fullscreen) */
@media (max-width: 640px) {
  .assistant-launcher {
    bottom: 18px;
    right: 18px;
  }

  .assistant-launcher-btn {
    width: 52px;
    height: 52px;
  }

  .assistant-launcher-tooltip {
    display: none !important;
  }

  .assistant-window {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    bottom: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    box-shadow: none;
  }

  .assistant-window.is-open {
    transform: translateY(0);
  }

  .assistant-header {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-inline: 16px;
  }

  .assistant-footer {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-inline: 16px;
  }

  .assistant-message {
    max-width: 92%;
  }
}

/* 7. Araç Çalıştırma & Tool Calling Arayüz Bileşenleri */
.assistant-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 6px;
  animation: assistant-tool-pulse 1.8s ease infinite;
}

@keyframes assistant-tool-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.assistant-tool-pill svg {
  width: 12px;
  height: 12px;
  animation: assistant-spin 2s linear infinite;
}

@keyframes assistant-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.assistant-tool-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(138, 180, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.assistant-tool-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #f1f5f9);
  margin-bottom: 6px;
}

.assistant-tool-card-header svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.assistant-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px 0;
}

.assistant-key-box code {
  font-family: monospace;
  font-size: 11.5px;
  color: #38bdf8;
  word-break: break-all;
  user-select: all;
}

.assistant-copy-key-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.assistant-copy-key-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.assistant-copy-key-btn.is-copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
}

.assistant-tool-note {
  font-size: 10.5px;
  color: var(--quiet, #94a3b8);
  margin: 4px 0 0;
  line-height: 1.4;
}

.assistant-quota-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0;
}

.assistant-quota-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
}

.assistant-quota-label {
  font-size: 10px;
  color: var(--quiet, #94a3b8);
  display: block;
}

.assistant-quota-val {
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  font-family: monospace;
}
