.cj-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6, 1.5em);
  padding: var(--gutter, 1.25em);
}
.cj-modes {
  margin-bottom: 0;
}
.cj-actions,
.cj-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: var(--sp-4, 1em);
  width: 100%;
}
.cj-option-row {
  display: flex;
  gap: var(--sp-2, 0.5em);
}
.cj-options .tlabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
}
.cj-area {
  min-height: 160px;
  resize: vertical;
  padding: 0.55em 0.65em;
  border: 1px solid var(--border-strong);
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.cj-area:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.cj-meta {
  display: flex;
  justify-content: center;
  gap: var(--sp-2, 0.5em);
  flex-wrap: wrap;
}
.cj-meta > #hint:empty {
  display: none;
}
.cj-rail {
  justify-content: center;
}
.cj-results {
  margin-top: 1.25em;
}
.cj-pre {
  margin: 0;
  max-height: 440px;
  overflow: auto;
  padding: 1em;
  background: var(--panel-bg);
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.cj-body,
.cj-pre,
.tpanel {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .cj-options {
    flex-direction: column;
    align-items: stretch;
  }
  .cj-options .tlabel {
    width: 100%;
  }
  .cj-options select,
  .cj-options .tsel {
    width: 100%;
    max-width: none;
  }
  .cj-modes {
    align-self: stretch;
  }
  .cj-modes button {
    flex: 1 1 auto;
  }
  .cj-pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
