.tool-examples {
  font-size: .9em;
  margin: 1.5em 0;
  padding: 1.2em;
  border: 1px solid var(--table-border-color);
  border-radius: 8px;
}
.tool-examples-controls:not([hidden]) {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 1em;
}
.tool-example-commands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
}
.tool-examples-controls label { display: grid; gap: .4em; font-weight: 600; }
.tool-examples select {
  width: 100%;
  min-width: 0;
  appearance: none;
  padding: .65em 2.5em .65em .65em;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--table-border-color);
  border-radius: 4px;
}
.tool-examples select:focus-visible { outline: 2px solid var(--links); outline-offset: 2px; }
.tool-examples summary { cursor: pointer; font-weight: 600; padding: .6em 0; }
.tool-example-commands > div { min-width: 0; }
.tool-example p code { white-space: nowrap; }
.tool-example pre > code { white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-example .tooltiptext { white-space: nowrap; overflow-wrap: normal; width: max-content; }
.tool-example-note { padding-left: .8em; border-left: 3px solid var(--table-border-color); }
.tool-examples-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 600px) {
  .tool-examples { padding: .8em; }
  .tool-examples-controls:not([hidden]), .tool-example-commands { grid-template-columns: 1fr; }
}

.content .tool-example h3 { font-size: 20px; margin: 1em 0 .6em; }
.tool-example-commands p { margin: .4em 0; }
.content .tool-example-commands pre { margin: .4em 0; padding: 1em; }
.tool-example-note { font-size: .9em; }

.content .tool-example pre code { font-size: 15px; }
.tool-examples option:disabled { color: GrayText; }

.tool-example-commands.tool-example-single { grid-template-columns: 1fr; }

.tool-examples-select { position: relative; min-width: 0; }
.tool-examples-select::after {
  content: "";
  position: absolute;
  right: 1em;
  top: 50%;
  width: .4em;
  height: .4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

.tool-example-differences { font-size: .85em; }
.tool-example-differences > summary { font-weight: normal; padding: .3em 0; }
.tool-example-differences > p { margin: .4em 0; }
