:root {
  --bg: #f6f7f7;
  --panel: #ffffff;
  --border: #dcdcde;
  --text: #1d2327;
  --muted: #646970;
  --primary: #2271b1;
  --success: #00a32a;
  --danger: #d63638;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#btwab-command-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;

  padding-top: 12vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999999;
}

#btwab-command-overlay.is-open {
  display: flex;
}

.btwab-command-palette {
  width: 640px;
  max-width: 90%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

/* ---------- COMMAND PALETTE ---------- */

.btwab-command-input {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.btwab-command-input input {
  width: 100%;
  font-size: 16px;
  border: none;
  outline: none;
}

.btwab-command-input input:focus {
  outline: none!important;
  border: none!important;
  box-shadow: none!important;
}

.btwab-command-results {
  max-height: 360px;
  overflow-y: auto;
}

.btwab-command-group {
  padding: 10px 16px 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.btwab-command-item {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.btwab-command-item:hover {
  background: #f0f6fc;
}

.btwab-command-footer {
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.btwab-result-item {
  padding: 8px 16px;
  cursor: pointer;
}

.btwab-result-item.active{
  background: #2e76b1;
  color: #fff;
}
.btwab-result-item:hover {
  background: #f0f0f0;
  color: #000;
}
.btwab-result-item.active:hover {
  background: #2e76b1;
  color: #fff;
}

#btwab-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btwab-toast {
  background: #1f2937;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  min-width: 220px;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(10px);
  animation: btwab-toast-in .2s ease forwards;
}

.btwab-toast.success {
  background: #16a34a;
}

.btwab-toast.error {
  background: #dc2626;
}

@keyframes btwab-toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
