* {
  box-sizing: border-box;
}

.component-prototype-body {
  background: #fff;
  color: #000;
}

.component-prototype-body main {
  margin: 0;
  max-width: none;
}

.component-prototype {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 90px);
}

.component-prototype-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 32px;
}

.component-prototype-content {
  width: 100%;
  max-width: var(--component-prototype-content-max-width);
  margin-inline: auto;
}

.component-prototype-ad {
  display: none;
  padding: var(--space-6) var(--space-2) var(--space-6) 0;
}

.component-prototype-ad-title {
  margin: 0 0 var(--space-4);
  padding-inline-start: var(--space-4);
}

@media (min-width: 900px) {
  .component-prototype-ad {
    display: block;
    grid-row: 1;
    position: sticky;
    top: calc(var(--announcement-height) + var(--app-bar-height));
    align-self: start;
    background: #fff;
  }
}

@media (min-width: 900px) and (max-width: 1807px) {
  .component-prototype {
    grid-template-columns:
      minmax(0, var(--component-prototype-content-max-width))
      var(--space-7)
      var(--component-prototype-ad-width);
    justify-content: center;
  }

  .component-prototype-ad {
    grid-column: 3;
  }
}

@media (min-width: 1808px) {
  .component-prototype {
    grid-template-columns:
      minmax(0, 1fr)
      var(--component-prototype-ad-width)
      var(--space-7)
      var(--component-prototype-content-max-width)
      var(--space-7)
      var(--component-prototype-ad-width)
      minmax(0, 1fr);
  }

  .component-prototype-main {
    grid-column: 1 / -1;
  }

  .component-prototype-ad {
    grid-column: 6;
  }
}

.component-detail-sponsor-card {
  display: block;
  width: 100%;
  border-radius: var(--radius-xl);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.component-detail-sponsor-card:hover {
  background: var(--color-secondary);
}

.component-detail-partners-card {
  margin-top: var(--space-2);
}

.component-detail-sponsor-card-inner {
  padding: var(--space-3) var(--space-4);
}

.component-detail-sponsor-card:focus-visible {
  outline: var(--stroke-strong) solid var(--color-accent);
  outline-offset: var(--space-1);
}

.component-detail-sponsor-card-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.component-detail-sponsor-card-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.component-detail-sponsor-card-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.component-detail-partners-card .component-detail-sponsor-card-logo-wrap {
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.component-detail-promo-card-icon {
  width: 40px;
  height: 40px;
  color: color-mix(in srgb, var(--color-accent) 72%, transparent);
}

.component-detail-sponsor-card-text {
  min-width: 0;
}

.component-detail-sponsor-card-name {
  margin: 0;
  font-size: var(--font-size-body);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-semibold);
}

.component-detail-sponsor-card-subtitle {
  margin: var(--space-1) 0 0;
  font-size: var(--font-size-body-small);
  line-height: var(--line-height-caption);
}

.component-prototype-breadcrumb {
  margin: 0 0 22px;
}

.component-prototype-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.component-prototype-breadcrumb a:hover,
.component-prototype-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.component-prototype-title {
  margin: 0;
  font-size: var(--component-prototype-title-font-size);
}

.component-prototype-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.component-prototype-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: var(--component-prototype-panel-height);
  border: 1px solid #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.component-prototype-preview-panel {
  border: 0;
}

.component-prototype-code-panel {
  --compose-example-control-outline: rgb(255 255 255 / 0.1);

  background: rgb(40 44 52);
}

.component-prototype-preview {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.component-prototype-preview--with-content {
  min-height: 0;
}

.component-prototype-preview--with-content::before,
.component-prototype-preview--with-content::after {
  content: none;
  display: none;
}

.component-prototype-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.component-prototype-static-preview {
  height: 100%;
  background: #646464;
}

.component-prototype-preview .compose-app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.component-prototype-preview .compose-app-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.component-prototype-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 430px;
  text-align: center;
}

.component-prototype-preview::before,
.component-prototype-preview::after {
  position: absolute;
  inset: 50% 10%;
  height: 1px;
  background: #000;
  content: "";
  transform: rotate(25deg);
}

.component-prototype-preview::after {
  transform: rotate(-25deg);
}

.component-prototype-code {
  flex: 1;
  min-height: 0;
  margin: 0;
  overflow: auto;
  padding: 1.25rem 1.5rem;
  background: rgb(40 44 52);
  color: rgb(226 232 240);
  font: 0.875rem/1.25rem JetBrainsMono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.component-prototype-related {
  margin-top: var(--space-9);
}

.component-prototype-related-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.component-prototype-related-heading h2 {
  min-width: 0;
  margin: 0;
}

.component-prototype-related-view-all {
  flex: none;
}

.component-prototype-related-grid {
  width: 100%;
  margin: 0;
}

@media (max-width: 800px) {
  .component-prototype-main {
    padding: 20px;
  }
}
