/* Outgoing webhook authoring — list toolbar, namespace panel, write-only secret. */

#outgoing-webhook-editor-view .admin-content {
  max-width: none;
  width: 100%;
  margin: 0;
}

#outgoing-webhooks-list-view .gts-filters {
  flex: 0 1 auto;
  flex-wrap: nowrap;
}

#outgoing-webhooks-list-view .gts-filters .phases-edit-input {
  width: auto;
  min-width: 8.5rem;
}

#outgoing-webhooks-q {
  min-width: 10rem;
}

.webhook-secret-warning {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-warning, #d97706);
  background: color-mix(in srgb, var(--color-warning, #d97706) 12%, transparent);
  color: var(--color-gray-900, #111827);
  font-size: 0.875rem;
  line-height: 1.4;
}

.webhook-secret-mask {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.webhook-secret-fingerprint {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

.webhook-ns-panel {
  margin-top: 1rem;
}

.webhook-ns-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.webhook-ns-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.webhook-preview-block {
  margin-top: 1rem;
}

.webhook-preview-block pre {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  overflow: auto;
  font-size: 0.8125rem;
  background: var(--color-gray-50, #f9fafb);
}

.webhook-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  align-items: start;
}

.webhook-editor-grid .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.webhook-editor-grid textarea.phases-edit-input {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.45;
}

.webhook-secret-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (max-width: 720px) {
  .webhook-editor-grid {
    grid-template-columns: 1fr;
  }

  #outgoing-webhooks-list-view .gts-filters {
    flex-wrap: wrap;
  }
}
