* {
  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: #ffffff;
  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-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.component-prototype-title-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.component-prototype-author {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: inherit;
  text-decoration: none;
}

.component-prototype-author span {
  font-weight: var(--font-weight-medium);
}

.component-prototype-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.component-prototype-author:hover span,
.component-prototype-author:focus-visible span {
  text-decoration: underline;
}

.component-prototype-author:focus-visible {
  border-radius: var(--radius-full);
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.component-prototype-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 16px;
}

.component-prototype-author-row .component-prototype-author {
  margin-top: 0;
}

.component-prototype-feature-button {
  margin-left: auto;
}

.component-prototype-feature-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.component-prototype-embed-snippet {
  display: flex;
  align-items: stretch;
  max-width: 44rem;
  margin-top: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  background: var(--color-secondary);
}

.component-prototype-embed-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 0.875rem;
  border-right: 1px solid var(--color-outline);
}

.component-prototype-embed-code {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--color-on-background);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  outline: none;
}

.component-prototype-embed-code::-webkit-scrollbar {
  display: none;
}

.component-prototype-embed-code code {
  display: block;
  width: max-content;
  padding: 0.75rem 0.875rem;
  font: var(--font-weight-regular) var(--font-size-caption) / 1.4 var(--font-mono);
  white-space: nowrap;
}

.component-prototype-embed-snippet button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--color-outline);
  background: transparent;
  color: var(--color-on-background);
  cursor: pointer;
}

.component-prototype-embed-snippet button:hover {
  background: color-mix(in srgb, var(--color-on-background) 6%, transparent);
}

.component-prototype-embed-snippet button svg {
  width: 1rem;
  height: 1rem;
}

.component-prototype-embed-snippet button .icon-check,
.component-prototype-embed-snippet button.is-copied .icon-copy {
  display: none;
}

.component-prototype-embed-snippet button.is-copied .icon-check {
  display: block;
}

.component-prototype-share {
  position: relative;
  flex-shrink: 0;
}

.component-prototype-share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.component-prototype-share-button svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
}

.component-prototype-overflow {
  position: relative;
}

.component-prototype-overflow-button svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
}

.component-prototype-overflow-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 8rem;
  padding: 0.35rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 0.75rem);
  background: var(--color-surface, #fff);
  box-shadow: 0 8px 24px rgb(15 23 42 / 12%);
}

.component-prototype-overflow-menu[hidden] {
  display: none;
}

.component-prototype-overflow-menu-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: var(--radius-sm, 0.5rem);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.component-prototype-overflow-menu-item:hover,
.component-prototype-overflow-menu-item:focus-visible {
  background: rgb(15 23 42 / 6%);
}

.component-prototype-overflow-delete {
  color: var(--color-error);
}

.component-prototype-share-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  min-width: 18rem;
  max-width: min(18rem, calc(100vw - 2rem));
  z-index: 40;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 42px rgb(17 24 39 / 0.14);
}

.component-prototype-share-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  padding: 0.95rem 0.85rem;
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.component-prototype-share-menu-item:hover {
  background: #f8fafc;
}

.component-prototype-share-menu-item svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: #111827;
}

.component-prototype-share-menu-brand-icon {
  display: block;
}

.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--community .component-prototype-preview-panel {
  height: 800px;
}

.component-prototype-code-panel {
  --compose-example-control-outline: #d9d9e0;

  position: relative;
  border-color: #d9d9e0;
  background: #fafafd;
  transition: height 160ms ease;
}

.component-prototype-code-panel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, rgb(250 250 253 / 0) 0%, rgb(250 250 253 / 0.56) 68%, #fafafd 100%);
}

.component-prototype-code-panel.is-code-expanded {
  height: min(80vh, 800px);
}

.component-prototype-code-panel.is-code-expanded::after {
  display: none;
}

.component-prototype-code-show {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 2;
  min-height: 2.5rem;
  transform: translateX(-50%);
  border: 1px solid var(--compose-example-control-outline);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.92);
  padding: 0 1rem;
  color: #2f2936;
  font: 500 0.875rem/1 JetBrainsMono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
  box-shadow: 0 10px 32px rgb(47 41 54 / 0.12);
  backdrop-filter: blur(10px);
}

.component-prototype-code-show:hover {
  border-color: #bdbdc8;
  background: #fff;
}

.component-prototype-code-panel.is-code-expanded .component-prototype-code-show {
  display: none;
}

.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-loader {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.component-prototype-preview-loader[hidden] { display: none; }

.component-prototype-preview-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgb(15 23 42 / 0.16);
  border-top-color: rgb(15 23 42 / 0.7);
  border-radius: 50%;
  opacity: 0;
  animation:
    component-prototype-preview-spin 0.8s linear infinite,
    component-prototype-preview-fade-in 160ms ease 500ms forwards;
}

@keyframes component-prototype-preview-spin {
  to { transform: rotate(360deg); }
}

@keyframes component-prototype-preview-fade-in {
  to { opacity: 1; }
}

.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 {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .component-prototype-preview-spinner {
    animation: none;
    opacity: 1;
  }
}

.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: hidden;
  padding: 1.25rem 1.5rem;
  background: #fafafd;
  color: #2f2936;
  font: 0.875rem/1.25rem JetBrainsMono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  cursor: pointer;
}

.component-prototype-code * {
  cursor: inherit;
}

.component-prototype-code-panel.is-code-expanded .component-prototype-code {
  overflow: auto;
  cursor: text;
}

.component-prototype-dependencies-panel {
  height: auto;
  min-height: 0;
  border-color: #d9d9e0;
  background: #fafafd;
}

.component-prototype-dependencies-code {
  max-height: 22rem;
  overflow: auto;
  cursor: text;
}

.component-prototype-gradle-icons {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("/material-components-assets/icons/jetbrains-kotlin-gradle-script.svg") center / contain no-repeat;
}

.component-prototype-gradle-logo {
  display: none;
}

.component-prototype-gradle-icons img {
  display: none;
}

.component-prototype .docs-code-header {
  border-bottom-color: #e2e2e8;
  background: #f5f5f8;
  color: #2f2936;
}

.component-prototype .docs-code-title {
  color: #2f2936;
}

.component-prototype .component-prototype-license-button {
  border-color: #d9d9e0;
  background: #fff;
  color: #50485a;
}

.component-prototype .docs-code-header .docs-code-copy-btn,
.component-prototype .docs-code-expand-btn {
  border-color: #d9d9e0;
  background: #fff;
  color: #50485a;
}

.component-prototype .docs-code-header .docs-code-copy-btn:hover,
.component-prototype .docs-code-expand-btn:hover {
  border-color: #bdbdc8;
  background: #fff;
}

.component-prototype .component-prototype-code .token.comment,
.component-prototype .component-prototype-code .token.prolog,
.component-prototype .component-prototype-code .token.cdata {
  color: #6c707e;
}

.component-prototype .component-prototype-code .token.punctuation {
  color: #6b6571;
}

.component-prototype .component-prototype-code .token.symbol,
.component-prototype .component-prototype-code .token.property,
.component-prototype .component-prototype-code .token.tag,
.component-prototype .component-prototype-code .token.operator,
.component-prototype .component-prototype-code .token.keyword {
  color: #834df0;
}

.component-prototype .component-prototype-code .token.boolean,
.component-prototype .component-prototype-code .token.number {
  color: #aa2760;
}

.component-prototype .component-prototype-code .token.constant,
.component-prototype .component-prototype-code .token.function,
.component-prototype .component-prototype-code .token.builtin,
.component-prototype .component-prototype-code .token.char {
  color: #0050a4;
}

.component-prototype .component-prototype-code .token.string,
.component-prototype .component-prototype-code .token.url,
.component-prototype .component-prototype-code .token.entity {
  color: #008c6d;
}

.component-prototype .component-prototype-code .token.class-name,
.component-prototype .component-prototype-code .token.atrule,
.component-prototype .component-prototype-code .token.attr-value {
  color: #a04a00;
}

.component-prototype-license-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  border: 1px solid var(--compose-example-control-outline);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.06);
  padding: 0 0.625rem;
  color: rgb(226 232 240);
  font: 500 0.6875rem/1 JetBrainsMono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.component-prototype-license-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex: 0 0 auto;
}

.component-prototype-license-button:hover {
  background: rgb(255 255 255 / 0.1);
}

.component-prototype-review-status {
  display: flex;
  width: fit-content;
  border-radius: var(--radius-sm);
  background: #000;
  padding: var(--space-1) var(--space-2);
  color: #fff;
  font-weight: var(--font-weight-semibold);
}

.component-prototype-review-notice {
  margin-top: var(--space-3);
}

.component-prototype-review-description {
  margin: var(--space-2) 0 0;
  color: var(--color-muted);
}

.community-component-status {
  width: 100%;
  box-sizing: border-box;
  margin-top: var(--space-3);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.community-component-status-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--font-weight-semibold);
}

.community-component-status-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.community-component-status-elapsed {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-medium);
}

.community-component-status-icon {
  width: 1rem;
  height: 1rem;
  animation: community-component-status-spin 900ms linear infinite;
}

.community-component-status-icon--clock {
  animation: none;
}

@keyframes community-component-status-spin {
  to {
    transform: rotate(360deg);
  }
}

.community-component-status-description {
  margin: var(--space-1) 0 0;
  color: var(--color-muted);
}

.community-component-status--queued .community-component-status-description,
.community-component-status--building .community-component-status-description {
  margin-left: calc(1rem + var(--space-2));
}

.community-component-status--ready .community-component-status-label {
  color: var(--color-success);
}

.community-component-status--failed .community-component-status-label {
  color: var(--color-error);
}

.community-component-status-error {
  max-height: 14rem;
  margin: var(--space-3) 0 0;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  padding: var(--space-3);
  color: var(--color-error);
  font: var(--font-weight-regular) var(--font-size-caption) / var(--line-height-body) var(--font-mono);
  white-space: pre-wrap;
}

.component-prototype-license-dialog {
  width: min(640px, calc(100% - 2rem));
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  padding: 0;
}

.component-prototype-license-dialog::backdrop {
  background: rgb(15 23 42 / 0);
}

.component-prototype-license-dialog[open] {
  animation: component-prototype-license-dialog-in 160ms ease-out forwards;
}

.component-prototype-license-dialog[open]::backdrop {
  animation: component-prototype-license-scrim-in 160ms ease-out forwards;
}

.component-prototype-license-dialog.is-closing {
  animation: component-prototype-license-dialog-out 160ms ease-in forwards;
}

.component-prototype-license-dialog.is-closing::backdrop {
  animation: component-prototype-license-scrim-out 160ms ease-in forwards;
}

@keyframes component-prototype-license-dialog-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes component-prototype-license-dialog-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes component-prototype-license-scrim-in {
  from { background: rgb(15 23 42 / 0); }
  to { background: rgb(15 23 42 / 0.5); }
}

@keyframes component-prototype-license-scrim-out {
  from { background: rgb(15 23 42 / 0.5); }
  to { background: rgb(15 23 42 / 0); }
}

.component-prototype-license-dialog-card {
  border: var(--stroke-thin) solid var(--color-outline);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  padding: var(--space-5);
}

.component-prototype-license-dialog-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.component-prototype-license-dialog-card h2 {
  margin: 0;
}

.component-prototype-license-dialog-card header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  color: var(--color-on-background);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.component-prototype-license-dialog-card pre {
  max-height: min(60vh, 460px);
  margin: 0;
  overflow: auto;
  color: var(--color-muted);
  font: 0.75rem/1rem JetBrainsMono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.docs-code-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-height: 2rem;
  border: 1px solid var(--compose-example-control-outline);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.06);
  padding: 0;
  color: rgb(226 232 240);
  cursor: pointer;
}

.docs-code-expand-btn:hover {
  background: rgb(255 255 255 / 0.1);
}

.docs-code-expand-btn .icon-collapse,
.component-prototype-code-panel.is-code-expanded .docs-code-expand-btn .icon-expand {
  display: none;
}

.component-prototype-code-panel.is-code-expanded .docs-code-expand-btn .icon-collapse {
  display: block;
}

.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;
  }
}

.create-component-prototype-body {
  --color-accent: #2563eb;
  --accent: var(--color-accent);
  background: #fff;
  color: #000;
}

.create-component-prototype-body .appbar-wrap {
  border-bottom: 1px solid #d7d7d7;
}

.site-dialog.create-component-share-dialog {
  --dialog-max-width: 800px;
  padding: 0;
}
.create-component-share-dialog .site-dialog-heading {
  border-bottom: var(--stroke-thin) solid var(--color-outline);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  margin-bottom: 0;
}
.create-component-share-dialog .site-dialog-content { padding: var(--space-4); }
.create-component-share-preview-disclosure summary { cursor: pointer; }
.create-component-share-preview-disclosure[open] summary { margin-bottom: var(--space-4); }
.create-component-share-dialog [data-create-component-share-copy] { color: var(--color-accent); font-size: var(--font-size-caption); font-weight: var(--font-weight-semibold); }

.create-component-share-dialog .component-prototype-embed-snippet { position: relative; max-width: none; margin-top: 0; }
.create-component-share-dialog .component-prototype-embed-code code {
  width: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-right: 56px;
}
.create-component-share-dialog .component-prototype-embed-code .token.tag { color: #834df0; }
.create-component-share-dialog .component-prototype-embed-code .token.attr-name { color: #0050a4; font-style: normal; }
.create-component-share-dialog .component-prototype-embed-code .token.attr-value { color: #008568; }
.create-component-share-dialog .component-prototype-embed-code .token.punctuation { color: var(--color-muted); }
.create-component-share-dialog .component-prototype-embed-snippet button {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
}
.create-component-share-dialog .component-prototype-embed-snippet button:hover {
  background: color-mix(in srgb, var(--color-on-surface) 10%, var(--color-secondary));
}
.create-component-share-dialog .component-prototype-embed-snippet button.is-copied {
  color: var(--color-accent);
}




.create-component-share-setting {
  display: grid;
  gap: var(--space-2);
}
.create-component-share-options { display: flex; flex-wrap: wrap; align-items: start; gap: var(--space-6); }
.create-component-share-setting [data-share-height] { width: 100px; }
.choice-chips { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-chips legend { padding: 0; margin-bottom: var(--space-2); }
.choice-chips-options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice-chip { position: relative; cursor: pointer; }
.choice-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-chip > span { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 36px; box-sizing: border-box; padding: var(--space-1) var(--space-3); border: var(--stroke-thin) solid var(--color-outline); border-radius: var(--radius-md); color: var(--color-muted); background: var(--color-surface); }
.choice-chip input:checked + span { background: var(--color-secondary); border-color: var(--color-on-surface); color: var(--color-on-surface); }
.choice-chip input:focus-visible + span { outline: var(--stroke-strong) solid var(--color-primary); outline-offset: 2px; }
.choice-chip:hover > span { background: var(--color-secondary); }
.choice-chip svg { flex: none; width: 16px; height: 16px; }

.create-component-share-dialog [data-share-preview] { min-width: 0; }
.create-component-share-preview-stage { --share-preview-scale: 0.75; height: calc(var(--share-preview-height, 400px) * var(--share-preview-scale)); overflow: hidden; }
.create-component-share-preview-scaled { width: calc(100% / var(--share-preview-scale)); transform: scale(var(--share-preview-scale)); transform-origin: top left; }

.create-component-submit-icon {
  width: 16px;
  height: 16px;
}

.create-component-name-field {
  display: inline-flex;
  min-width: 0;
}

.create-component-name {
  width: min(24vw, 240px);
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: #f1f1f1;
  color: #000;
}

.create-component-name::placeholder {
  color: #6b6b6b;
}

.create-component-target-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.create-component-target-profile select {
  max-width: 240px;
  min-height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font: inherit;
}

.create-component-prototype {
  width: 100%;
  min-height: calc(100dvh - var(--app-bar-height));
  background: #fff;
  color: #000;
}

.create-component-prototype-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: var(--space-1);
  box-sizing: border-box;
  height: calc(100dvh - var(--app-bar-height));
  padding: var(--space-2);
  background: var(--color-background);
}

.create-component-prototype-panel {
  display: flex;
  gap: var(--space-1);
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  background: transparent;
}

.create-component-editor-workbench {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0.5px solid var(--color-outline);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  background-clip: padding-box;
  isolation: isolate;
}

.create-component-editor-rail {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 calc(40px + var(--space-2) + 1px);
  box-sizing: border-box;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-1);
  padding: var(--space-1);
  border-right: 0.5px solid var(--color-outline);
  background: var(--color-secondary);
}

.create-component-editor-rail-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.create-component-editor-account {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: var(--space-3);
  padding-bottom: var(--space-1);
}

.create-component-editor-account .appbar-account-menu-trigger {
  border-radius: var(--radius-sm);
}

.create-component-editor-account .appbar-account-avatar {
  width: calc(var(--surface-size-md) - var(--space-2)) !important;
  height: calc(var(--surface-size-md) - var(--space-2)) !important;
  min-width: 0;
  min-height: 0;
  flex: none;
  border-radius: var(--radius-sm);
}

.create-component-editor-account [data-editor-account-signin] .appbar-account-placeholder {
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.create-component-editor-account .appbar-account-menu-panel {
  top: auto;
  right: auto;
  bottom: 0;
  left: calc(100% + var(--space-2));
}

.create-component-editor-rail-button {
  display: flex;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.create-component-editor-rail-button:hover {
  background: color-mix(in srgb, var(--color-on-secondary) 7%, transparent);
  color: var(--color-on-secondary);
}

.create-component-editor-rail-button.is-active {
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.create-component-editor-rail-button:focus-visible {
  outline: var(--stroke-strong) solid var(--color-accent);
  outline-offset: -1px;
}

.create-component-editor-rail-icon {
  width: var(--icon-size-lg);
  height: var(--icon-size-lg);
}

.create-component-editor-mode {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.create-component-editor-mode[hidden] {
  display: none;
}

.create-component-packages-panel {
  background: var(--color-secondary);
}

.create-component-packages-content {
  display: grid;
  align-content: start;
  gap: var(--space-6);
  width: 100%;
  padding: var(--space-6);
  overflow: auto;
}

.create-component-packages-header {
  display: grid;
  gap: var(--space-1);
}

.create-component-package-search {
  position: relative;
  width: 100%;
}

.create-component-package-search input { width: 100%; padding-right: 44px; }
.create-component-package-search input::-webkit-search-cancel-button { appearance: none; }

.create-component-package-search-clear {
  position: absolute;
  top: 50%;
  right: var(--space-2);
  transform: translateY(-50%);
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: var(--radius-full);
}
.create-component-package-search-clear:hover {
  background: rgba(3, 7, 18, 0.06);
}

.create-component-package-search-clear[hidden] { display: none; }
.create-component-package-search-clear-icon { width: var(--icon-size-md); height: var(--icon-size-md); }

.create-component-packages-installed,
.create-component-packages-results {
  display: grid;
  gap: var(--space-3);
}

.create-component-packages-installed[hidden],
.create-component-packages-results[hidden],
.create-component-packages-loading[hidden] {
  display: none;
}

.create-component-packages-installed > div,
.create-component-packages-results > div {
  display: grid;
  gap: var(--space-2);
}

.create-component-package-row {
  position: relative;
  display: block;
  padding: var(--space-3);
  border: 0.5px solid var(--color-outline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.create-component-package-row > div {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
}
.create-component-package-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.create-component-package-group { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.create-component-package-usage { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; }
.create-component-package-usage-icon { width: 18px; height: 18px; }
.create-component-package-row > .button {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  min-width: 0;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: var(--font-size-body-small);
}
.create-component-package-row > .button-primary { background: #0d74ce; color: #fff; }
.create-component-package-row > .button-primary:hover { background: #0b65b3; }
.create-component-package-row > .button-ghost { border: 1px solid var(--color-outline); background: var(--color-surface); }
.create-component-package-row > .button-ghost:hover { background: var(--color-secondary); }

.create-component-package-description { margin: 0; padding-right: 96px; }

.create-component-packages-loading {
  display: flex;
  justify-content: center;
  padding: var(--space-2) 0;
}

.component-prototype-preview-spinner.create-component-packages-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  opacity: 1;
  animation: component-prototype-preview-spin 0.8s linear infinite;
}

.create-component-prototype-editor {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 0;
  background: #fff;
  color: #000;
}

.create-component-prototype-editor-tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  overflow-x: auto;
  border-bottom: 1px solid #e4e4e7;
  background: #f8f8f8;
}

.create-component-prototype-editor-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 14px 8px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  font: var(--font-weight-medium) var(--font-size-caption) / 1.2 var(--font-sans);
  white-space: nowrap;
}

.create-component-prototype-editor-tab:hover {
  color: #3f3f46;
}

.create-component-prototype-editor-tab.is-active {
  border-bottom-color: #834df0;
  background: #fff;
  color: #3f3f46;
}

.create-component-prototype-editor-tab:focus-visible {
  outline: 2px solid #834df0;
  outline-offset: -2px;
}

.create-component-prototype-editor-file {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border-bottom: 1px solid #e4e4e7;
  background: #f8f8f8;
  gap: 8px;
  padding: 10px 14px;
  color: #3f3f46;
  font: var(--font-weight-medium) var(--font-size-caption) / 1.2 var(--font-sans);
}

.create-component-prototype-editor-file-kotlin-logo {
  width: 14px;
  height: 14px;
}

.create-component-prototype-editor-file-dependencies-logo {
  width: 16px;
  height: 16px;
}

.create-component-prototype-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: #71717a;
  cursor: help;
  font: inherit;
  font-size: 11px;
  line-height: 1;
}

.create-component-prototype-editor--build {
  flex: 0 1 min(34vh, 320px);
}



.create-component-header-title {
  width: min(calc(var(--copy-max-width) / 2), 28vw);
  min-height: var(--surface-size-sm);
  padding: var(--space-1) var(--space-2);
  border-color: transparent;
  background: transparent;
  font-weight: var(--font-weight-semibold);
}
.create-component-header-title:hover,
.create-component-header-title:focus { border-color: var(--color-outline); background: var(--color-surface); }
.create-component-save-icon,
.create-component-share-icon { width: var(--icon-size-sm); height: var(--icon-size-sm); }
.appbar [data-create-component-save]:disabled {
  border-color: color-mix(in srgb, var(--color-outline) 55%, transparent);
  background: transparent;
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: .55;
}
.appbar [data-create-component-share]:disabled {
  background: var(--color-secondary);
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: .55;
}
.create-component-prototype-body .appbar-left { min-width: 0; flex-wrap: wrap; }
.create-component-prototype-body .appbar-left .create-component-home { display: inline-flex; flex-shrink: 0; }
@media (max-width: 600px) {
  .create-component-prototype-body .appbar { gap: var(--space-2); }
  .create-component-prototype-body .appbar-left { flex: 1; flex-wrap: nowrap; }
  .create-component-header-title { width: 0; min-width: 0; flex: 1; }
  .create-component-prototype-body .appbar-actions { flex-shrink: 0; }
  .create-component-save-icon,
  .create-component-share-icon { display: none; }
  .create-component-prototype-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
}

.create-component-prototype-editor-canvas {
  min-height: 0;
  flex: 1;
}

.create-component-prototype-editor-canvas .cm-editor {
  height: 100%;
}

.create-component-prototype-preview {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 0.5px solid var(--color-outline);
  border-radius: var(--radius-lg);
  background: #fff;
  background-clip: padding-box;
  isolation: isolate;
}
.create-component-prototype-preview-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity 150ms ease-in-out; }
.create-component-prototype-preview[data-preview-dimmed] .create-component-prototype-preview-frame:not(.is-pending) { opacity: .65; }
.create-component-prototype-preview-frame.is-pending { opacity: 0; pointer-events: none; }
.create-component-build {
  --build-output-height: 220px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0.5px solid var(--color-outline);
  border-radius: var(--radius-lg);
  background: var(--color-surface, #fff);
  background-clip: padding-box;
  isolation: isolate;
}
.create-component-build-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-3);
}
.create-component-build-summary {
  display: inline-flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.create-component-build-status-icon {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #2f9e44;
}
.create-component-build[data-build-state="outOfDate"] .create-component-build-status-icon,
.create-component-build[data-build-state="building"] .create-component-build-status-icon { background: #d97706; }
.create-component-build[data-build-state="failed"] .create-component-build-status-icon { background: var(--color-error, #dc2626); }
.create-component-build[data-build-state="building"] .create-component-build-status-icon {
  box-sizing: border-box;
  border: 2px solid rgb(217 119 6 / 30%);
  border-top-color: #d97706;
  background: transparent;
  animation: create-component-build-spin 700ms linear infinite;
}
.create-component-build-chevron { width: 16px; height: 16px; color: var(--color-muted); transition: transform 150ms ease; }
.create-component-build[data-expanded] .create-component-build-chevron { transform: rotate(180deg); }
.create-component-build-actions { display: inline-flex; align-items: center; gap: var(--space-3); }
.create-component-build-run { min-height: 28px; padding: 3px 8px; border-radius: 6px; gap: 5px; }
.create-component-build-run-icon { width: 14px; height: 14px; }
.create-component-build-run-spinner { display: none; width: 13px; height: 13px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: create-component-build-spin 700ms linear infinite; }
.create-component-build-run.is-building .create-component-build-run-play { display: none; }
.create-component-build-run.is-building .create-component-build-run-spinner { display: inline-block; }
.create-component-build-run kbd { padding: 0; border: 0; background: transparent; color: var(--color-muted); font: inherit; font-size: 11px; }
.create-component-build-auto-run { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--color-muted); cursor: pointer; }
.create-component-build-auto-run input { width: 14px; height: 14px; margin: 0; accent-color: var(--color-primary, #2563eb); }
.create-component-build-resize { display: none; height: 5px; margin-top: -2px; cursor: row-resize; touch-action: none; }
.create-component-build[data-expanded] .create-component-build-resize { display: block; }
.create-component-build-resize:focus-visible { outline: 2px solid var(--color-primary, #2563eb); outline-offset: -2px; }
.create-component-build-output { height: var(--build-output-height); min-height: 0; border-top: 0.5px solid var(--color-outline); }
.create-component-build-output header { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-3); border-bottom: 0.5px solid var(--color-outline); }
.create-component-build-output h2 { margin: 0; }
.create-component-build-output-actions { display: inline-flex; align-items: center; gap: var(--space-1); }
.create-component-build-output-actions .button { min-height: 28px; padding: 3px 6px; border-radius: 5px; }
.create-component-build-output-list,
.create-component-build-output-raw { box-sizing: border-box; height: calc(100% - 38px); margin: 0; overflow: auto; }
.create-component-build-output-list { padding: var(--space-2); }
.create-component-build-output-raw { padding: var(--space-3); white-space: pre-wrap; overflow-wrap: anywhere; font: 12px / 1.45 var(--font-mono); }
.create-component-build-output-row { display: grid; width: 100%; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: var(--space-2); padding: 7px 8px; border: 0; border-radius: 5px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.create-component-build-output-row:hover:not(:disabled) { background: color-mix(in srgb, var(--color-primary, #2563eb) 8%, transparent); }
.create-component-build-output-row:disabled { cursor: default; }
.create-component-build-output-row.is-cascading { opacity: .64; }
.create-component-build-output-severity { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-error, #dc2626); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.create-component-build-output-severity.is-warning { background: #d97706; }
.create-component-build-output-message { min-width: 0; }
.create-component-build-output-location { color: var(--color-muted); white-space: nowrap; }
.create-component-build-output-file { margin: var(--space-2) 8px 3px; color: var(--color-muted); font-weight: var(--font-weight-semibold); }
.create-component-build-output-file:first-child { margin-top: 2px; }
.create-component-build-output-empty { margin: 0; padding: var(--space-3); }
@keyframes create-component-build-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .create-component-build-status-icon,
  .create-component-build-run-spinner { animation: none; }
  .create-component-build-chevron,
  .create-component-prototype-preview-frame { transition: none; }
}

[data-create-component-save-progress]:empty { display: none; }

.create-component-prototype-body [data-create-component-share] { --color-primary: var(--color-accent); }
.editor-signin-dialog [data-editor-auth-google] { width: 100%; }

[data-create-component-save]:has([data-create-component-save-progress]:not(:empty)) [data-create-component-save-label] { display: none; }
