/* Keep paste/copy and clear together above the text, with room for long labels. */
.editor-panel-topbar.converter-editor-topbar {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}
.converter-editor-topbar > :first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.converter-editor-topbar .editor-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}
.converter-editor-topbar .editor-header-actions:empty {
  display: none;
}
.editor-header-actions > button {
  flex-shrink: 0;
  min-height: 44px;
  touch-action: manipulation;
}
.editor-header-clear-button {
  justify-content: center;
  border-radius: 0.75rem;
  white-space: nowrap;
}
.editor-header-meta {
  min-width: 0;
}
@media (max-width: 1023px) {
  .editor-panel-topbar.converter-editor-topbar,
  main:lang(zh) .editor-panel-topbar.converter-editor-topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .converter-editor-topbar > :first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .converter-editor-topbar .editor-header-meta {
    grid-column: 2;
    grid-row: 1;
  }
  .editor-panel-topbar.converter-editor-topbar .editor-header-actions {
    align-items: stretch;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }
  .editor-header-actions > button {
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
    height: auto !important;
    padding: 0.65rem 0.75rem !important;
  }
  .editor-header-actions > button > span {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .editor-panel--input .input-action-row {
    grid-template-columns: 44px 44px minmax(0, 1fr);
  }
}
