/* Unified command palette (Ctrl+K) overlay */
.gb-palette {
  position: fixed;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 92vw);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: rgba(18, 22, 34, 0.96);
  border: 1px solid rgba(132, 214, 105, 0.4);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  z-index: 2147483000;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.gb-palette-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gb-palette-head input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid rgba(132, 214, 105, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #e8e8e8);
  outline: none;
}

.gb-palette-head input:focus {
  border-color: rgba(132, 214, 105, 0.8);
}

.gb-palette-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.gb-palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text, #e8e8e8);
}

.gb-palette-item-active,
.gb-palette-item:hover {
  background: rgba(132, 214, 105, 0.14);
}

.gb-palette-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.gb-palette-icon svg {
  width: 100%;
  height: 100%;
}

.gb-palette-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.gb-palette-app {
  font-size: 12px;
  opacity: 0.65;
  margin-left: 6px;
}

.gb-palette-kind {
  font-size: 11px;
  font-family: "Fira Code", monospace;
  opacity: 0.6;
  white-space: nowrap;
}

.gb-palette-empty {
  padding: 24px;
  text-align: center;
  opacity: 0.6;
  font-size: 13px;
}

.gb-palette-footer {
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  opacity: 0.6;
  text-align: center;
}
