.catalog-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.catalog-heading h2,
.catalog-heading p {
  margin: 0;
}

.catalog-heading input {
  background: #09141c;
  border: 1px solid #345064;
  border-radius: 6px;
  color: #f4f8fa;
  max-width: 320px;
  min-height: 40px;
  padding: 8px 11px;
  width: 45%;
}

.catalog-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.catalog-filter {
  background: #172733;
  border: 1px solid #345064;
  border-radius: 5px;
  color: #c8d5dc;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
}

.catalog-filter.active {
  background: #d6ef45;
  border-color: #d6ef45;
  color: #101820;
}

.catalog-list {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-command {
  align-items: start;
  background: #101f29;
  border: 1px solid #2c4455;
  border-radius: 6px;
  color: #eef4f7;
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 11px;
  text-align: left;
}

.catalog-command:hover,
.catalog-command:focus-visible {
  border-color: #d6ef45;
}

.catalog-command > span:first-child {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.catalog-command strong {
  color: #d6ef45;
  overflow-wrap: anywhere;
}

.catalog-command small,
.catalog-description,
.catalog-flags {
  color: #9fb2bd;
  font-size: 12px;
}

.catalog-flags {
  color: #f4bd57;
}

.command-help-toggle.help-active {
  color: #d6ef45;
  text-decoration: underline;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.command-help-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #345064;
  border-radius: 16px;
  color: #eef4f7;
  background: #101f29;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.command-help-dialog::backdrop {
  background: rgba(2, 8, 13, 0.78);
  backdrop-filter: blur(3px);
}

.command-help-card { padding: 20px; }

.command-help-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.command-help-heading h2 { margin: 3px 0 0; }

.command-help-card dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.command-help-card dl > div {
  padding: 12px;
  border: 1px solid #345064;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.command-help-card dt {
  margin-bottom: 5px;
  color: #9fb2bd;
  font-size: 0.78rem;
}

.command-help-card dd {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-heading input {
    max-width: none;
    width: 100%;
  }

  .catalog-list {
    grid-template-columns: 1fr;
  }
}
