.tcb-preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.tcb-preview-row img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--tcb-border, #2a303a);
}
.tcb-benchmark-wrap {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--tcb-border, #2a303a);
  border-radius: 8px;
  background: var(--tcb-bg, #0b0d10);
}
.tcb-benchmark__title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.tcb-benchmark {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.tcb-benchmark th,
.tcb-benchmark td {
  border: 1px solid var(--tcb-border, #2a303a);
  padding: 0.4rem 0.5rem;
  text-align: left;
}
.tcb-methodology {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}
.tcb-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.tcb-crop-stage {
  touch-action: none;
}
.tcb-file-list li {
  flex-wrap: wrap;
}
.tcb-file-list .tcb-tool-actions {
  margin-left: auto;
}
@media (max-width: 700px) {
  .tcb-preview-row {
    grid-template-columns: 1fr;
  }
}

/* UTM builder: prevent mobile horizontal overflow */
.tcb-tool-shell,
.tcb-tool-mount,
#tcb-tool-root {
  max-width: 100%;
  overflow-x: clip;
}
#tcb-tool-root input,
#tcb-tool-root textarea,
#tcb-tool-root .tcb-output,
#tcb-tool-root pre {
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#tcb-tool-root .tcb-field-grid,
#tcb-tool-root form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  #tcb-tool-root .tcb-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

