.cc-setup-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 41rem;
  margin: 1.5rem auto;
}

.cc-photo {
  margin: 0;
}

@media (max-width: 32rem) {
  .cc-setup-photos {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }
}

.cc-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.cc-photo figcaption,
.cc-figure figcaption,
.cc-note {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b7280;
}

.cc-photo figcaption,
.cc-figure figcaption {
  margin-top: 0.5rem;
}

.cc-figure {
  margin: 1.75rem 0;
}

.cc-figure-heading,
.cc-controls,
.cc-demo-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cc-figure-heading {
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cc-figure-heading span,
.cc-controls,
.cc-demo-controls {
  font-size: 0.9rem;
}

.cc-figure canvas {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 2px;
}

#cc-overview {
  height: 96px;
}

#cc-detail {
  height: 180px;
}

.cc-controls {
  margin: 0.6rem 0;
}

.cc-controls input[type="range"] {
  flex: 1 1 130px;
  min-width: 100px;
}

.cc-controls output {
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
}

.cc-controls button,
.cc-demo button,
.cc-demo textarea {
  font: inherit;
}

.cc-browser-callout {
  border: 1px solid #d1d5db;
  border-left: 3px solid #4b80ab;
  border-radius: 4px;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
}

.cc-browser-callout > summary {
  cursor: pointer;
  font-size: 1.17em;
  font-weight: 600;
}

.cc-browser-callout[open] > summary {
  margin-bottom: 0.6rem;
}

.cc-browser-callout > p {
  margin: 0.6rem 0;
}

.cc-demo {
  margin: 1rem 0;
}

.cc-demo label {
  display: block;
  margin-bottom: 0.4rem;
}

.cc-demo textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
}

.cc-demo-controls {
  margin-top: 0.6rem;
}

.cc-demo-controls span {
  color: #6b7280;
}

.cc-demo p {
  margin: 0.6rem 0 0;
}

.cc-browser-protocol {
  border-bottom: 1px solid #d1d5db;
  border-top: 1px solid #d1d5db;
  margin: 1rem 0;
  padding: 0.45rem 0;
}

.cc-browser-protocol summary {
  cursor: pointer;
}

.cc-browser-protocol p {
  font-size: 0.9rem;
  margin: 0.6rem 0;
}

.cc-tx-viz {
  border: 1px solid #d1d5db;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.cc-tx-viz-heading,
.cc-tx-legend {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.cc-tx-viz-heading strong {
  color: inherit;
}

.cc-tx-workers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.45rem 0 0.7rem;
}

.cc-tx-workers > div {
  align-items: center;
  display: flex;
  gap: 0.3rem;
  min-width: 0;
}

.cc-tx-workers span {
  color: #6b7280;
  font-size: 0.75rem;
}

.cc-tx-workers i {
  background: #e5e7eb;
  display: block;
  flex: 1;
  height: 0.55rem;
  min-width: 0;
}

.cc-tx-workers .is-on i,
.cc-tx-chips .is-on,
.cc-tx-legend span:last-child i {
  background: #2563eb;
}

.cc-tx-chips {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
  margin: 0.35rem 0;
}

.cc-tx-progress {
  background: #e5e7eb;
  height: 0.2rem;
  margin-top: 0.35rem;
}

.cc-tx-progress span {
  background: #2563eb;
  display: block;
  height: 100%;
  width: 0;
}

.cc-tx-chips span {
  background: #e5e7eb;
  height: 0.8rem;
  min-width: 0;
}

.cc-tx-chips .is-current {
  outline: 2px solid #1f2937;
  outline-offset: 1px;
  transform: translateY(-2px);
}

.cc-tx-legend {
  justify-content: flex-start;
  gap: 1rem;
}

.cc-tx-legend i {
  background: #e5e7eb;
  display: inline-block;
  height: 0.5rem;
  width: 0.5rem;
}

.cc-bootstrap > figcaption {
  margin-bottom: 0.9rem;
}

#cc-bootstrap-overview {
  height: 110px;
}

.cc-bootstrap-stage {
  border-top: 1px solid #d1d5db;
  padding: 0.45rem 0;
}

.cc-bootstrap-stage:last-of-type {
  border-bottom: 1px solid #d1d5db;
}

.cc-bootstrap-stage summary {
  cursor: pointer;
  display: list-item;
  padding: 0.2rem 0;
}

.cc-bootstrap-stage summary span {
  color: #6b7280;
  font-size: 0.88rem;
  margin-left: 0.5rem;
}

.cc-bootstrap-stage p {
  margin: 0.55rem 0;
}

.cc-header-lines {
  font-size: 0.85rem;
  margin: 0.65rem 0;
}

.cc-header-lines pre {
  background: #f8fafc;
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 0.5rem 0;
  overflow-x: auto;
  padding: 0.6rem;
}

.cc-bootstrap-stage canvas {
  height: 130px;
  margin: 0.6rem 0 0.2rem;
}

.cc-bootstrap-stage .cc-stage-overview {
  cursor: crosshair;
  height: 70px;
  margin-bottom: 0;
}

.cc-bootstrap-stage .cc-stage-detail {
  margin-top: 0.35rem;
}

.cc-stage-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0;
}

.cc-stage-controls input[type="range"] {
  flex: 1 1 12rem;
  min-width: 8rem;
}

.cc-stage-controls button {
  background: transparent;
  border: 1px solid #a1a1aa;
  border-radius: 3px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.15rem 0.55rem;
}

.cc-stage-controls button:hover,
.cc-stage-controls button:focus-visible {
  border-color: currentColor;
}

.cc-stage-readout,
.cc-bootstrap-stage .cc-stage-message {
  color: #6b7280;
  font-size: 0.82rem;
}

.cc-stage-readout {
  flex: 1 1 12rem;
  text-align: right;
}

.cc-bootstrap-stage .cc-stage-message {
  margin: 0.2rem 0;
}

.cc-stage-download {
  display: inline-block;
  font-size: 0.88rem;
  margin: 0.1rem 0 0.45rem;
}

.cc-bootstrap-note {
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.6rem 0 0;
}

.cc-challenge {
  border-bottom: 1px solid #d1d5db;
  border-top: 1px solid #d1d5db;
  margin: 1.5rem 0;
  padding: 0.8rem 0;
}

.cc-challenge h3 {
  margin: 0 0 0.5rem;
}

.cc-challenge p {
  margin: 0.5rem 0;
}

.cc-challenge blockquote {
  margin: 0.7rem 0;
}

@media (prefers-color-scheme: dark) {
  .cc-photo figcaption,
  .cc-figure figcaption,
  .cc-note,
  .cc-demo-controls span,
  .cc-bootstrap-stage summary span,
  .cc-bootstrap-note {
    color: #aab1bc;
  }

  .cc-challenge {
    border-color: #4b5563;
  }

  .cc-browser-callout {
    border-color: #4b5563;
    border-left-color: #8fc5ff;
  }

  .cc-tx-viz {
    border-color: #4b5563;
  }

  .cc-tx-viz-heading,
  .cc-tx-legend,
  .cc-tx-workers span {
    color: #aab1bc;
  }

  .cc-tx-workers i,
  .cc-tx-progress,
  .cc-tx-chips span,
  .cc-tx-legend i {
    background: #4b5563;
  }

  .cc-tx-workers .is-on i,
  .cc-tx-progress span,
  .cc-tx-chips .is-on,
  .cc-tx-legend span:last-child i {
    background: #8fc5ff;
  }

  .cc-tx-chips .is-current {
    outline-color: #e5e7eb;
  }

  .cc-figure canvas,
  .cc-bootstrap-stage {
    border-color: #4b5563;
  }

  .cc-header-lines pre {
    background: #1f2937;
  }
}
