* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: #111111;
}

.page {
  width: min(640px, 100% - 32px);
  margin: 0 auto;
  padding: 40px 0 64px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.top h1 {
  margin: 0;
  font-size: 24px;
}

.top p {
  margin: 4px 0 0;
  color: #666666;
}

.repo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #111111;
  font-weight: 600;
  text-decoration: none;
}

.repo:hover {
  text-decoration: underline;
}

.repo svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

section {
  margin-bottom: 24px;
}

h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.option,
.segment {
  appearance: none;
  padding: 10px 12px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.option small,
.segment span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #777777;
}

.option:hover,
.segment:hover {
  border-color: #999999;
}

.option[aria-checked="true"],
.segment[aria-checked="true"] {
  border-color: #111111;
  box-shadow: inset 0 0 0 1px #111111;
}

.hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: #666666;
}

.result {
  padding-top: 24px;
  border-top: 1px solid #eeeeee;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  border-color: #999999;
}

.btn.primary {
  flex: 1 1 260px;
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.btn.primary:hover {
  background: #333333;
}

.extra {
  margin: 12px 0 0;
  font-size: 14px;
  color: #666666;
}

.extra a {
  margin-right: 12px;
}

.steps {
  margin: 18px 0 0;
  padding-left: 20px;
}

.steps li {
  margin-bottom: 4px;
}

.steps.single {
  padding-left: 0;
}

pre {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  background: #f7f7f7;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
}

.snippet-copy {
  margin-top: 8px;
  padding: 7px 12px;
  font-size: 14px;
}

.option:focus-visible,
.segment:focus-visible,
.btn:focus-visible,
.repo:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .page {
    padding-top: 24px;
  }

  .options {
    grid-template-columns: 1fr 1fr;
  }

  .actions .btn {
    flex: 1 1 100%;
  }
}
