.project-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 100%;
  padding: 40px;
  overflow: auto;
  color: var(--demo-text);
  background: linear-gradient(135deg, var(--project-color), var(--project-shade));
}

.project-demo__art {
  flex: 0 1 380px;
}

.project-demo__mock {
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--demo-mock-bg);
  box-shadow: 0 18px 40px var(--demo-shadow);
}

.project-demo__mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background-color: var(--demo-surface);
}

.project-demo__mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--demo-line);
}

.project-demo__mock-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 28px 40px;
}

.project-demo__icon {
  width: 88px;
  height: 88px;
  margin-bottom: 12px;
}

.project-demo__line {
  width: 70%;
  height: 10px;
  border-radius: 5px;
  background-color: var(--demo-line);
}

.project-demo__line.is-wide { width: 90%; }
.project-demo__line.is-short { width: 45%; }

.project-demo__text {
  flex: 0 1 420px;
}

.project-demo__status {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--demo-surface);
}

.project-demo__title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.project-demo__description {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--demo-muted);
}

.project-demo .project-chip {
  background-color: var(--demo-surface);
}

.project-demo__action {
  margin-top: 20px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  color: var(--demo-button-text);
  background-color: var(--demo-button-bg);
  cursor: pointer;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.repo {
  min-height: 100%;
  overflow: auto;
  font-size: 14px;
  color: var(--repo-text);
  background-color: var(--repo-bg);
}

.repo__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--repo-border);
  background-color: var(--repo-header-bg);
}

.repo__host {
  width: 24px;
  height: 24px;
}

.repo__name {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.repo__owner {
  color: var(--repo-link);
}

.repo__badge {
  padding: 1px 8px;
  border: 1px solid var(--repo-border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--repo-muted);
}

.repo__action {
  margin-left: auto;
  padding: 5px 16px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  color: var(--repo-button-text);
  background-color: var(--repo-button-bg);
  cursor: pointer;
}

.repo__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 24px;
}

.repo__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.repo-branch {
  padding: 4px 12px;
  border: 1px solid var(--repo-border);
  border-radius: 6px;
  font-weight: 600;
  background-color: var(--repo-surface);
}

.repo-muted {
  color: var(--repo-muted);
}

.repo-box,
.repo-readme {
  overflow: hidden;
  border: 1px solid var(--repo-border);
  border-radius: 6px;
}

.repo-commit {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--repo-border);
  color: var(--repo-muted);
  background-color: var(--repo-surface);
}

.repo-commit__message {
  overflow: hidden;
  color: var(--repo-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-files {
  margin: 0;
  padding: 0;
  list-style: none;
}

.repo-files__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-top: 1px solid var(--repo-border);
}

.repo-files__row:first-child {
  border-top: 0;
}

.repo-files__row img {
  width: 16px;
  height: 16px;
}

.repo-readme {
  margin-top: 24px;
}

.repo-readme__title {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--repo-border);
  font-size: 14px;
  font-weight: 600;
}

.repo-readme__body {
  padding: 24px 32px;
  line-height: 1.6;
}

.repo-readme__body .project-chips {
  margin-top: 16px;
}

.repo-readme__body h1,
.repo-readme__body h2 {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--repo-border);
}

.repo-readme__body a {
  color: var(--repo-link);
}

.repo-readme__body code,
.repo-readme__body pre {
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  background-color: var(--repo-surface);
}

.repo-readme__body code {
  padding: 2px 5px;
}

.repo-readme__body pre {
  overflow: auto;
  padding: 14px;
}

.repo-readme__body pre code {
  padding: 0;
}

.repo-readme__body table {
  border-collapse: collapse;
}

.repo-readme__body th,
.repo-readme__body td {
  padding: 6px 12px;
  border: 1px solid var(--repo-border);
}

.repo-readme__body img {
  max-width: 100%;
}

.repo__about h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.repo__about p {
  margin: 0 0 14px;
  line-height: 1.5;
}

.repo__about .project-chips {
  margin-bottom: 16px;
}

.repo .project-chip {
  color: var(--repo-link);
  background-color: var(--repo-chip-bg);
}

.repo-languages__bar {
  display: flex;
  height: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 4px;
}

.repo-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  list-style: none;
  color: var(--repo-muted);
}

.repo-languages strong {
  color: var(--repo-text);
}

.repo-languages__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}

@media (max-width: 720px) {
  .project-demo {
    flex-direction: column;
    gap: 24px;
  }

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