#promptViewPanel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prompt-view-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#promptViewPanel[hidden] {
  display: none !important;
}

.prompt-view-heading {
  min-width: 0;
}

.prompt-form {
  display: grid;
  gap: 16px;
}

.prompt-form-row {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.prompt-field {
  min-width: 0;
}

.prompt-category-trigger.prompt-category-trigger-edit {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  max-height: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--admin-text);
  cursor: pointer;
  text-align: left;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

.prompt-category-trigger.prompt-category-trigger-edit:hover {
  background: rgba(55, 53, 47, 0.02);
  border-color: rgba(55, 53, 47, 0.14);
}

.prompt-category-trigger.prompt-category-trigger-edit .prompt-category-label {
  font: inherit;
  line-height: 1.35;
}

.prompt-markdown-editor {
  min-height: auto;
  --admin-editor-markdown-min-height: auto;
  --admin-editor-markdown-surface-min-height: 460px;
}

.prompt-markdown-editor .admin-editor-markdown-surface:focus-within,
.prompt-category-trigger-edit:focus-visible {
  outline: none;
  border-color: rgba(96, 100, 108, 0.28);
  box-shadow: 0 0 0 1px rgba(96, 100, 108, 0.08);
}

#promptViewPanel > .danger-zone {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

@media (max-width: 980px) {
  .prompt-form-row {
    grid-template-columns: 1fr;
  }
}
