@charset "UTF-8";
.cc-frame-wrap {
  margin: 1.75rem 0;
  padding: 0;
}

.cc-frame {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color-scheme: normal;
  transition: height 0.2s ease;
}

.cc-embed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1.5px dashed rgba(109, 74, 255, 0.55);
  border-radius: 14px;
  background: rgba(109, 74, 255, 0.06);
  color: #6d4aff;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  user-select: none;
  cursor: default;
}
.cc-embed::before {
  content: "✦ Custom component · " attr(data-component);
}

.cc-manager {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #1d1d1f;
}
.cc-manager__intro {
  margin: 0 0 1.25rem;
  color: #6e6e73;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 760px;
}
.cc-manager__intro code {
  font-size: 0.85em;
}
.cc-manager__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 991.98px) {
  .cc-manager__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cc-list {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 0.75rem;
  background: #fff;
}
.cc-list__new {
  width: 100%;
  margin-bottom: 0.6rem;
}
.cc-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.cc-list__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  color: #1d1d1f;
  font-size: 0.9rem;
}
.cc-list__item small {
  color: #6e6e73;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cc-list__item:hover {
  background: #f5f5f7;
}
.cc-list__item.is-active {
  background: rgba(109, 74, 255, 0.1);
  color: #6d4aff;
}
.cc-list__empty {
  margin: 0.5rem 0.25rem;
  color: #6e6e73;
  font-size: 0.85rem;
}

.cc-editor {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  display: grid;
  gap: 0.9rem;
}
.cc-editor__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 120px;
  gap: 0.75rem;
}
@media (max-width: 767.98px) {
  .cc-editor__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cc-editor__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6e6e73;
}
.cc-editor__tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f5f5f7;
}
.cc-editor__tab {
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6e6e73;
}
.cc-editor__tab.is-active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.cc-editor__code {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #0f1117;
  color: #e6e8ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  tab-size: 2;
}
.cc-editor__code:focus {
  outline: 2px solid rgba(109, 74, 255, 0.5);
  outline-offset: 1px;
}
.cc-editor__libs {
  min-height: 64px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}
.cc-editor__hint {
  margin: 0.3rem 0 0;
  color: #6e6e73;
  font-size: 0.76rem;
}
.cc-editor__errors {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(215, 0, 21, 0.07);
  color: #d70015;
  font-size: 0.82rem;
}
.cc-editor__errors:empty {
  display: none;
}
.cc-editor__preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.cc-editor__preview {
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  background: repeating-conic-gradient(#fafafa 0% 25%, #f2f2f4 0% 50%) 50%/16px 16px;
}
.cc-editor__preview iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}
.cc-editor__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
