/* ============================================================================
   command-palette.css — Ctrl+K modal + atalhos help
   ============================================================================ */

.ell-cmd {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.ell-cmd__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}
.ell-cmd__panel {
  position: relative;
  width: 640px; max-width: 90vw;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.ell-cmd__input {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.ell-cmd__input > i[data-lucide] {
  width: 18px; height: 18px;
  color: var(--text-3);
  stroke-width: 1.5;
  flex-shrink: 0;
}
.ell-cmd__input > input {
  flex: 1;
  font-size: var(--text-md);
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.ell-cmd__input > input::placeholder { color: var(--text-3); }

.ell-cmd__results {
  overflow-y: auto;
  padding: var(--space-2);
  max-height: 50vh;
}

.ell-cmd__group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-4);
  font-weight: 600;
  padding: var(--space-3) var(--space-3) var(--space-2);
}

.ell-cmd__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.ell-cmd__item:hover, .ell-cmd__item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.ell-cmd__item > i[data-lucide] {
  width: 16px; height: 16px;
  color: var(--text-3);
  stroke-width: 1.5;
  flex-shrink: 0;
}
.ell-cmd__item.is-active > i[data-lucide] { color: var(--accent); }

.ell-cmd__item-body { flex: 1; min-width: 0; }
.ell-cmd__item-label { font-size: var(--text-sm); font-weight: 500; }
.ell-cmd__item-sub {
  font-size: 11px; color: var(--text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ell-cmd__empty {
  padding: var(--space-8);
  text-align: center;
  color: var(--text-3);
  font-size: var(--text-sm);
}

.ell-cmd__foot {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line-subtle);
  background: var(--bg-sunken);
  font-size: 11px;
  color: var(--text-3);
}
.ell-cmd__foot > span {
  display: inline-flex; align-items: center; gap: 4px;
}

/* ─── Help modal (atalhos) ────────────────────────────────── */
.ell-help {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
}
.ell-help__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}
.ell-help__panel {
  position: relative;
  width: 520px; max-width: 90vw;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ell-help__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.ell-help__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
}
.ell-help__sub {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-top: 2px;
}
.ell-help__body {
  padding: var(--space-5);
  overflow-y: auto;
}
.ell-help__sect + .ell-help__sect { margin-top: var(--space-5); }
.ell-help__sect-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.ell-help__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-3);
  padding: 6px 0;
  align-items: center;
  font-size: var(--text-sm);
}
.ell-help__keys {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ell-help__desc {
  color: var(--text-2);
  line-height: 1.5;
}
