[data-code-examples] {
  min-width: 0;
  max-width: 100%;
}

.code-examples-window {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: #e4edf3;
  background: #102a3c;
  border: 1px solid #294858;
  border-radius: 18px;
  box-shadow: 0 24px 58px -28px rgb(14 42 60 / 34%);
}

.code-examples-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 16px 28px;
  box-sizing: border-box;
  color: #dae7ef;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .025em;
  border-bottom: 1px solid #294858;
}

.code-examples-mark {
  color: #ffa468;
  font: 500 17px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-examples-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  background: #102a3c;
}

.code-examples-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 3px 3px 0 0;
  padding: 10px 12px 12px;
  color: #bbcedb;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.code-examples-tab:hover {
  color: #ffffff;
  background: #18384d;
}

.code-examples-tab[aria-selected="true"] {
  color: #ffffff;
  border-bottom-color: #ff9b5a;
}

.code-examples-tab:focus-visible,
.code-examples-panel:focus-visible {
  outline: 2px solid #a8d7ff;
  outline-offset: -3px;
}

.code-examples-panel[hidden] {
  display: none;
}

.code-examples-pre {
  min-height: 290px;
  max-width: 100%;
  margin: 0;
  padding: 22px 28px 20px;
  overflow: auto;
  color: #e4edf3;
  background: transparent;
  white-space: pre;
  scrollbar-color: #55768a #102a3c;
  tab-size: 2;
}

.code-examples-code {
  display: block;
  color: #e4edf3;
  background: transparent;
  font: 400 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
  text-align: left;
}

.code-examples-key { color: #8ecbff; }
.code-examples-string { color: #a1e5bf; }
.code-examples-number { color: #f4d68b; }
.code-examples-literal { color: #d4b5fc; }
.code-examples-punctuation { color: #dbe7ee; }

.code-examples-note {
  max-width: none;
  margin: 0;
  padding: 17px 28px 20px;
  color: #b7cbd8;
  border-top: 1px solid #294858;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .code-examples-window { border-radius: 12px; }
  .code-examples-heading { padding: 14px 18px; font-size: 12px; }
  .code-examples-tabs { gap: 4px; padding-inline: 10px; }
  .code-examples-tab { padding-inline: 10px; font-size: 12px; }
  .code-examples-pre { min-height: 270px; padding: 18px; }
  .code-examples-code { font-size: 11px; }
  .code-examples-note { padding: 15px 18px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .code-examples-tab { transition: none; }
}
