.gitea-wp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin: 16px 0;
}

.gitea-wp-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gitea-wp-name {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.3;
	word-break: break-all;
}

.gitea-wp-name-link {
	color: #0969da !important;
	text-decoration: none !important;
}

.gitea-wp-name-link:hover {
	text-decoration: underline !important;
}

.gitea-wp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.gitea-wp-ver {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: 999px;
	background: #0969da;
	color: #fff;
	font-size: 0.75em;
	font-weight: 600;
}

.gitea-wp-desc {
	margin: 0;
	flex: 1;
	font-size: 0.9em;
	color: #555;
}

.gitea-wp-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.8em;
	color: #777;
}

.gitea-wp-lang {
	padding: 1px 8px;
	border-radius: 999px;
	background: #f0f0f0;
	color: #444;
}

.gitea-wp-stars {
	font-weight: 600;
}

.gitea-wp-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
}

.gitea-wp-dl {
	display: inline-block;
	align-self: flex-start;
	padding: 6px 14px;
	border-radius: 6px;
	background: #1f883d;
	color: #fff !important;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none !important;
}

.gitea-wp-dl:hover {
	background: #1a7a35;
	color: #fff !important;
}

.gitea-wp-empty {
	color: #888;
}

.gitea-wp-detail-link {
	flex-shrink: 0;
	padding: 6px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	color: #333 !important;
	font-size: 0.85em;
	font-weight: 600;
	text-decoration: none !important;
}

.gitea-wp-detail-link:hover {
	border-color: #0969da;
	color: #0969da !important;
}

.gitea-wp-back {
	margin: 12px 0;
}

.gitea-wp-back a {
	text-decoration: none !important;
}

.gitea-wp-detail {
	padding: 8px 0;
}

.gitea-wp-detail-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.gitea-wp-section {
	margin: 28px 0 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eee;
	font-size: 1.1em;
}

.gitea-wp-readme {
	overflow: auto;
	max-width: 100%;
	line-height: 1.7;
}

.gitea-wp-readme pre,
.gitea-wp-readme code {
	background: #f6f8fa;
	border-radius: 6px;
}

.gitea-wp-readme pre {
	padding: 12px;
	overflow: auto;
}

.gitea-wp-readme img {
	max-width: 100%;
	height: auto;
}

.gitea-wp-readme table {
	border-collapse: collapse;
}

.gitea-wp-readme th,
.gitea-wp-readme td {
	border: 1px solid #ddd;
	padding: 6px 10px;
}

.gitea-wp-readme-raw {
	overflow: auto;
	padding: 12px;
	background: #f6f8fa;
	border-radius: 6px;
	white-space: pre-wrap;
	word-break: break-word;
}

.gitea-wp-commits {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gitea-wp-commits li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px dashed #e6e6e6;
	font-size: 0.9em;
}

.gitea-wp-sha {
	flex-shrink: 0;
	color: #0969da;
	font-size: 0.85em;
}

.gitea-wp-commit-msg {
	flex: 1;
	word-break: break-all;
}