.command-palette {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.command-palette__panel {
  width: min(640px, 92vw);
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #161616;
  border: 1px solid #2c2c2c;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.command-palette__input {
  flex: 0 0 auto;
  padding: 14px 16px;
  font-size: 15px;
  color: #f0f0f0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #2c2c2c;
  outline: none;
}
.command-palette__input::placeholder {
  color: #6a6a6a;
}

.command-palette__list {
  overflow-y: auto;
  padding: 6px;
}

.command-palette__empty,
.command-palette__agent-hint {
  padding: 16px;
  font-size: 12px;
  color: #777;
  text-align: center;
}

.command-palette__group {
  margin-bottom: 4px;
}

.command-palette__group-label {
  padding: 8px 10px 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6a6a;
}

.command-palette__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #e0e0e0;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.command-palette__item--selected {
  background: #262626;
}
.command-palette__item--disabled {
  opacity: 0.4;
  cursor: default;
}
.command-palette__item-title {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.command-palette__item-sub {
  flex: 0 0 auto;
  font-size: 11px;
  color: #777;
}

/* --- Slava skin --- */
body.app-slava-restraint .command-palette {
  background: rgba(20, 18, 14, 0.32);
}
body.app-slava-restraint .command-palette__panel {
  background: var(--sr-canvas, #f4f1ea);
  border-color: var(--sr-hairline, rgba(0, 0, 0, 0.12));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}
body.app-slava-restraint .command-palette__input {
  color: var(--sr-ink, #1a1a1a);
  border-bottom-color: var(--sr-hairline, rgba(0, 0, 0, 0.12));
  font-family: var(--sr-mono, monospace);
}
body.app-slava-restraint .command-palette__item {
  color: var(--sr-ink, #1a1a1a);
  font-family: var(--sr-mono, monospace);
}
body.app-slava-restraint .command-palette__item--selected {
  background: rgba(0, 0, 0, 0.06);
}
body.app-slava-restraint .command-palette__group-label,
body.app-slava-restraint .command-palette__item-sub {
  color: var(--sr-mono, rgba(0, 0, 0, 0.5));
}
