.ai-install-container {
  display: inline-block;
  position: relative;
  margin-left: 8px;
  vertical-align: middle;
}

.ai-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  border: 1px solid rgba(27, 31, 36, 0.15);
  border-radius: 6px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ai-install-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 1px 3px rgba(109, 40, 217, 0.3);
}

.ai-install-btn:active {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
}

.ai-install-btn.ai-install-copied {
  background: #16a34a;
  border-color: #16a34a;
}

.ai-install-icon {
  font-size: 14px;
}

/* Dropdown */
.ai-install-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 100;
  width: min(500px, calc(100vw - 24px));
  min-width: 420px;
  padding: 10px 10px 12px;
  background: #141922;
  border: 1px solid #30363d;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  animation: ai-install-fadeIn 0.12s ease-out;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

.ai-install-menu-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid #30363d;
}

.ai-install-menu-tab {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  padding: 7px 4px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #8b949e;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.05;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.ai-install-menu-tab::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -6px;
  height: 4px;
  border-radius: 999px;
  background: #4b5563;
  opacity: 0.45;
}

.ai-install-menu-tab:hover {
  background: #1f2530;
  color: #e6edf3;
}

.ai-install-menu-tab-active {
  background: #ff7a0a;
  color: #fff;
  transform: translateY(-1px);
}

.ai-install-menu-tab-active::after {
  display: none;
}

.ai-install-menu-tab-icon {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.ai-install-tab-body {
  padding-top: 10px;
}

@keyframes ai-install-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stack header */
.ai-install-stack-header {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 2px 7px;
}

.ai-install-stack-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #6d28d9;
  background: #f3f0ff;
  border-radius: 10px;
  line-height: 16px;
}

/* Trust info bar */
.ai-install-trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 2px 8px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 16px;
}

.ai-install-trust-item {
  white-space: nowrap;
}

.ai-install-trust-sep {
  margin: 0 4px;
  color: #d0d7de;
}

/* Command items */
.ai-install-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 650;
  font-family: inherit;
  color: #e6edf3;
  text-align: left;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}

.ai-install-dropdown-item:hover {
  background: #202731;
}

.ai-install-dropdown-item.ai-install-default {
  font-weight: 600;
}

.ai-install-dropdown-item.ai-install-default::after {
  content: "default";
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: #8b5cf6;
  background: #f3f0ff;
  padding: 1px 6px;
  border-radius: 10px;
}

.ai-install-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.ai-install-item-label {
  flex: 1;
}

.ai-install-divider {
  height: 1px;
  margin: 8px 0;
  background: #c9d1d9;
  opacity: 0.7;
}

.ai-install-badge-item {
  color: #e6edf3;
  font-size: 18px;
}

.ai-install-share-item {
  color: #e6edf3;
  font-size: 18px;
}

.ai-install-pack-tag {
  font-size: 10px;
  font-weight: 600;
  color: #8b5cf6;
  background: #f3f0ff;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
}

/* SMILE-enabled badge */
.ai-install-smile-enabled {
  padding: 2px 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  letter-spacing: 0.3px;
}

.ai-install-tool-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 10px;
}

.ai-install-tool-hero-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: #1f2530;
  color: #e6edf3;
  font-size: 20px;
}

.ai-install-tool-hero-icon svg {
  width: 24px;
  height: 24px;
}

.ai-install-tool-hero-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ai-install-tool-hero-copy strong {
  color: #f6f8fa;
  font-size: 18px;
  line-height: 1.1;
}

.ai-install-tool-hero-copy span {
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.35;
}

/* NFT lootbox spin */
.ai-install-spin-emoji {
  animation: ai-install-spin 0.08s linear;
}

@keyframes ai-install-spin {
  0% { transform: translateY(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* NFT emoji reveal */
.ai-install-nft-emoji-inline {
  font-size: 22px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  animation: ai-install-nftPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ai-install-nftPop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  50% { transform: scale(1.5) rotate(5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Tier glow effects */
.ai-install-glow-rare {
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6));
}

.ai-install-glow-epic {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7));
  animation: ai-install-nftPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
             ai-install-glow-pulse 1.5s ease-in-out infinite;
}

.ai-install-glow-legendary {
  filter: drop-shadow(0 0 12px rgba(234, 179, 8, 0.8));
  animation: ai-install-nftPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
             ai-install-legendary-pulse 0.8s ease-in-out infinite;
}

@keyframes ai-install-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5)); }
  50% { filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.9)); }
}

@keyframes ai-install-legendary-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 18px rgba(234, 179, 8, 1)); transform: scale(1.1); }
}

/* Toast notification */
.ai-install-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2328;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.ai-install-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Confirm modal */
.ai-install-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: ai-install-fadeIn 0.15s ease-out;
}

.ai-install-confirm-overlay.ai-install-confirm-closing {
  opacity: 0;
  transition: opacity 0.15s ease-in;
}

.ai-install-confirm-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px 24px;
  min-width: 300px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: ai-install-modalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

@keyframes ai-install-modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ai-install-confirm-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.ai-install-confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2328;
  margin-bottom: 4px;
}

.ai-install-confirm-repo {
  font-size: 13px;
  color: #656d76;
  margin-bottom: 20px;
  word-break: break-all;
}

.ai-install-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.ai-install-confirm-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}

.ai-install-confirm-btn:active {
  transform: scale(0.96);
}

.ai-install-confirm-cancel {
  background: #f0f0f0;
  color: #1f2328;
}

.ai-install-confirm-cancel:hover {
  background: #e0e0e0;
}

.ai-install-confirm-ok {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

.ai-install-confirm-ok:hover {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4);
}

/* Share picker */
.ai-install-share-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px 10px;
}

.ai-install-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d0d7de;
  border-radius: 50%;
  background: #f6f8fa;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.ai-install-share-btn:hover {
  background: #eaeef2;
  border-color: #8b5cf6;
  transform: scale(1.1);
}

.ai-install-share-btn:active {
  transform: scale(0.95);
}

/* Summary panel */
.ai-install-summary-item {
  color: #656d76;
  font-size: 13px;
}

.ai-install-panel-close {
  position: absolute;
  top: 2px;
  right: 2px;
  background: none;
  border: none;
  color: #8b949e;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  z-index: 2;
  border-radius: 4px;
}

.ai-install-panel-close:hover {
  color: #1f2328;
}

.ai-install-summary-panel {
  margin: 8px 0 2px;
  padding: 10px 28px 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #e6edf3;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  animation: ai-install-fadeIn 0.15s ease-out;
}

.ai-install-summary-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-style: italic;
}

.ai-install-summary-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid #d0d7de;
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: ai-install-spinner 0.6s linear infinite;
}

@keyframes ai-install-spinner {
  to { transform: rotate(360deg); }
}

.ai-install-summary-hint {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #30363d;
  font-size: 11px;
  color: #8b5cf6;
  font-style: italic;
}

/* Chat panel */
.ai-install-chat-panel {
  margin: 8px 0 2px;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  animation: ai-install-fadeIn 0.15s ease-out;
}

.ai-install-chat-messages {
  max-height: 320px;
  min-height: 60px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0d1117;
}

.ai-install-chat-msg {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 92%;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.ai-install-chat-msg code {
  background: rgba(127, 127, 127, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

.ai-install-chat-msg strong {
  font-weight: 600;
}

.ai-install-chat-bullet {
  display: inline-block;
  width: 14px;
  color: #8b5cf6;
  font-weight: 700;
}

.ai-install-chat-user {
  align-self: flex-end;
  background: #8b5cf6;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-install-chat-assistant {
  align-self: flex-start;
  background: #21262d;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-bottom-left-radius: 4px;
}

.ai-install-chat-typing {
  color: #8b949e;
  font-style: italic;
  animation: ai-install-pulse 1s ease-in-out infinite;
}

@keyframes ai-install-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.ai-install-chat-input-row {
  display: flex;
  border-top: 1px solid #30363d;
}

.ai-install-chat-input {
  flex: 1;
  padding: 8px 10px;
  border: none;
  outline: none;
  font-size: 12px;
  font-family: inherit;
  background: #161b22;
  color: #e6edf3;
}

.ai-install-chat-input::placeholder {
  color: #8b949e;
}

.ai-install-chat-send {
  padding: 8px 12px;
  border: none;
  background: #8b5cf6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.ai-install-chat-send:hover {
  background: #7c3aed;
}

.ai-install-chat-send:disabled {
  background: #d0d7de;
  cursor: not-allowed;
}

/* Model selector */
.ai-install-chat-model-bar {
  display: flex;
  gap: 2px;
  padding: 4px;
  padding-right: 24px;
  background: #0d1117;
  border-bottom: 1px solid #30363d;
}

.ai-install-chat-model-btn {
  flex: 1;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #8b949e;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.ai-install-chat-model-btn:hover {
  background: #21262d;
  color: #e6edf3;
}

.ai-install-chat-model-active {
  background: #8b5cf6;
  color: #fff;
}

.ai-install-chat-model-active:hover {
  background: #7c3aed;
  color: #fff;
}

.ai-install-chat-model-locked {
  opacity: 0.5;
}

.ai-install-chat-model-locked::after {
  content: ' 🔑';
  font-size: 9px;
}

@keyframes ai-install-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Add custom tool button */
.ai-install-add-tool-item {
  color: #8b5cf6 !important;
  font-size: 13px;
  font-weight: 500;
}

.ai-install-add-tool-item .ai-install-item-icon {
  font-size: 18px;
  font-weight: 700;
  color: #8b5cf6;
}

/* Custom tool modal form */
.ai-install-tool-modal {
  text-align: left;
  min-width: 280px;
  max-width: 320px;
  padding: 24px !important;
}

.ai-install-tool-form {
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.ai-install-tool-row {
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.ai-install-tool-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  color: #1f2328;
  background: #fff;
  box-sizing: border-box;
}

.ai-install-tool-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.ai-install-tool-icon-input {
  flex: 0 0 44px !important;
  width: 44px !important;
  max-width: 44px !important;
  text-align: center;
  font-size: 18px;
  padding: 8px 4px;
}

.ai-install-tool-textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  outline: none;
  resize: none;
  color: #1f2328;
  background: #fff;
  box-sizing: border-box;
}

.ai-install-tool-textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.ai-install-tool-textarea::placeholder {
  color: #8b949e;
  font-family: inherit;
}

/* Custom tool delete button in dropdown */
.ai-install-tool-delete {
  margin-left: auto;
  font-size: 12px;
  color: #8b949e;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s;
}

.ai-install-tool-delete:hover {
  color: #d1242f;
  background: rgba(209, 36, 47, 0.1);
}

/* Tool presets */
.ai-install-tool-presets-label {
  font-size: 11px;
  font-weight: 600;
  color: #656d76;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 6px;
}

.ai-install-tool-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.ai-install-tool-preset-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #f6f8fa;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  color: #1f2328;
  transition: all 0.15s;
}

.ai-install-tool-preset-btn:hover {
  border-color: #8b5cf6;
  background: #f3f0ff;
}

.ai-install-preset-icon {
  font-size: 14px;
}

.ai-install-preset-name {
  font-weight: 500;
}

.ai-install-tool-or {
  font-size: 11px;
  color: #8b949e;
  text-align: center;
  margin: 10px 0 4px;
  position: relative;
}

.ai-install-tool-or::before,
.ai-install-tool-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #d0d7de;
}

.ai-install-tool-or::before {
  left: 0;
}

.ai-install-tool-or::after {
  right: 0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .ai-install-dropdown {
    background: #161b22;
    border-color: #30363d;
    box-shadow: 0 8px 24px rgba(1, 4, 9, 0.75);
  }

  .ai-install-dropdown-item {
    color: #e6edf3;
  }

  .ai-install-dropdown-item:hover {
    background: #21262d;
  }

  .ai-install-dropdown-item.ai-install-default::after {
    background: #1e1535;
    color: #a78bfa;
  }

  .ai-install-divider {
    background: #30363d;
  }

  .ai-install-badge-item {
    color: #8b949e;
  }

  .ai-install-stack-badge {
    background: #1e1535;
    color: #a78bfa;
  }

  .ai-install-trust-bar {
    color: #8b949e;
  }

  .ai-install-trust-sep {
    color: #30363d;
  }

  .ai-install-smile-enabled {
    color: #3fb950;
  }

  .ai-install-share-btn {
    background: #21262d;
    border-color: #30363d;
  }

  .ai-install-share-btn:hover {
    background: #30363d;
    border-color: #a78bfa;
  }

  .ai-install-confirm-modal {
    background: #161b22;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }

  .ai-install-confirm-title {
    color: #e6edf3;
  }

  .ai-install-confirm-repo {
    color: #8b949e;
  }

  .ai-install-confirm-cancel {
    background: #21262d;
    color: #e6edf3;
  }

  .ai-install-confirm-cancel:hover {
    background: #30363d;
  }

  .ai-install-summary-panel {
    background: #21262d;
    border-color: #30363d;
    color: #e6edf3;
  }

  .ai-install-summary-loading::before {
    border-color: #30363d;
    border-top-color: #a78bfa;
  }

  .ai-install-summary-hint {
    border-top-color: #30363d;
    color: #a78bfa;
  }

  .ai-install-summary-item {
    color: #8b949e;
  }

  .ai-install-chat-panel {
    border-color: #30363d;
  }

  .ai-install-chat-messages {
    background: #0d1117;
  }

  .ai-install-chat-assistant {
    background: #21262d;
    border-color: #30363d;
    color: #e6edf3;
  }

  .ai-install-chat-input-row {
    border-top-color: #30363d;
  }

  .ai-install-chat-input {
    background: #161b22;
    color: #e6edf3;
  }

  .ai-install-chat-model-bar {
    background: #0d1117;
    border-bottom-color: #30363d;
  }

  .ai-install-chat-model-btn {
    color: #8b949e;
  }

  .ai-install-chat-model-btn:hover {
    background: #21262d;
    color: #e6edf3;
  }

  .ai-install-add-tool-item {
    color: #a78bfa !important;
  }

  .ai-install-add-tool-item .ai-install-item-icon {
    color: #a78bfa;
  }

  .ai-install-tool-input,
  .ai-install-tool-textarea {
    background: #0d1117;
    border-color: #30363d;
    color: #e6edf3;
  }

  .ai-install-tool-presets-label {
    color: #8b949e;
  }

  .ai-install-tool-preset-btn {
    background: #21262d;
    border-color: #30363d;
    color: #e6edf3;
  }

  .ai-install-tool-preset-btn:hover {
    border-color: #a78bfa;
    background: #1e1535;
  }

  .ai-install-tool-or {
    color: #484f58;
  }

  .ai-install-tool-or::before,
  .ai-install-tool-or::after {
    background: #30363d;
  }
}

/* GitHub dark theme class-based */
[data-color-mode="dark"] .ai-install-dropdown,
[data-dark-theme] .ai-install-dropdown {
  background: #161b22;
  border-color: #30363d;
}

[data-color-mode="dark"] .ai-install-dropdown-item,
[data-dark-theme] .ai-install-dropdown-item {
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-dropdown-item:hover,
[data-dark-theme] .ai-install-dropdown-item:hover {
  background: #21262d;
}

[data-color-mode="dark"] .ai-install-stack-badge,
[data-dark-theme] .ai-install-stack-badge {
  background: #1e1535;
  color: #a78bfa;
}

[data-color-mode="dark"] .ai-install-trust-bar,
[data-dark-theme] .ai-install-trust-bar {
  color: #8b949e;
}

[data-color-mode="dark"] .ai-install-trust-sep,
[data-dark-theme] .ai-install-trust-sep {
  color: #30363d;
}

[data-color-mode="dark"] .ai-install-pack-tag,
[data-dark-theme] .ai-install-pack-tag {
  background: #1e1535;
  color: #a78bfa;
}

[data-color-mode="dark"] .ai-install-confirm-modal,
[data-dark-theme] .ai-install-confirm-modal {
  background: #161b22;
}

[data-color-mode="dark"] .ai-install-confirm-title,
[data-dark-theme] .ai-install-confirm-title {
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-confirm-repo,
[data-dark-theme] .ai-install-confirm-repo {
  color: #8b949e;
}

[data-color-mode="dark"] .ai-install-confirm-cancel,
[data-dark-theme] .ai-install-confirm-cancel {
  background: #21262d;
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-share-btn,
[data-dark-theme] .ai-install-share-btn {
  background: #21262d;
  border-color: #30363d;
}

[data-color-mode="dark"] .ai-install-share-btn:hover,
[data-dark-theme] .ai-install-share-btn:hover {
  background: #30363d;
  border-color: #a78bfa;
}

[data-color-mode="dark"] .ai-install-panel-close,
[data-dark-theme] .ai-install-panel-close {
  color: #8b949e;
}

[data-color-mode="dark"] .ai-install-panel-close:hover,
[data-dark-theme] .ai-install-panel-close:hover {
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-summary-panel,
[data-dark-theme] .ai-install-summary-panel {
  background: #21262d;
  border-color: #30363d;
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-summary-hint,
[data-dark-theme] .ai-install-summary-hint {
  border-top-color: #30363d;
  color: #a78bfa;
}

[data-color-mode="dark"] .ai-install-chat-panel,
[data-dark-theme] .ai-install-chat-panel {
  border-color: #30363d;
}

[data-color-mode="dark"] .ai-install-chat-messages,
[data-dark-theme] .ai-install-chat-messages {
  background: #0d1117;
}

[data-color-mode="dark"] .ai-install-chat-assistant,
[data-dark-theme] .ai-install-chat-assistant {
  background: #21262d;
  border-color: #30363d;
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-chat-input,
[data-dark-theme] .ai-install-chat-input {
  background: #161b22;
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-chat-input-row,
[data-dark-theme] .ai-install-chat-input-row {
  border-top-color: #30363d;
}

[data-color-mode="dark"] .ai-install-chat-model-bar,
[data-dark-theme] .ai-install-chat-model-bar {
  background: #0d1117;
  border-bottom-color: #30363d;
}

[data-color-mode="dark"] .ai-install-chat-model-btn,
[data-dark-theme] .ai-install-chat-model-btn {
  color: #8b949e;
}

[data-color-mode="dark"] .ai-install-chat-model-btn:hover,
[data-dark-theme] .ai-install-chat-model-btn:hover {
  background: #21262d;
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-add-tool-item,
[data-dark-theme] .ai-install-add-tool-item {
  color: #a78bfa !important;
}

[data-color-mode="dark"] .ai-install-tool-input,
[data-dark-theme] .ai-install-tool-input,
[data-color-mode="dark"] .ai-install-tool-textarea,
[data-dark-theme] .ai-install-tool-textarea {
  background: #0d1117;
  border-color: #30363d;
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-tool-preset-btn,
[data-dark-theme] .ai-install-tool-preset-btn {
  background: #21262d;
  border-color: #30363d;
  color: #e6edf3;
}

[data-color-mode="dark"] .ai-install-tool-preset-btn:hover,
[data-dark-theme] .ai-install-tool-preset-btn:hover {
  border-color: #a78bfa;
  background: #1e1535;
}

[data-color-mode="dark"] .ai-install-tool-presets-label,
[data-dark-theme] .ai-install-tool-presets-label {
  color: #8b949e;
}

[data-color-mode="dark"] .ai-install-tool-or,
[data-dark-theme] .ai-install-tool-or {
  color: #484f58;
}

[data-color-mode="dark"] .ai-install-tool-or::before,
[data-dark-theme] .ai-install-tool-or::before,
[data-color-mode="dark"] .ai-install-tool-or::after,
[data-dark-theme] .ai-install-tool-or::after {
  background: #30363d;
}
