.ph-project-history-widget {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background-color: #0d1117;
	color: #c9d1d9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	overflow-y: auto;
	padding: 16px;
	box-sizing: border-box;
}

.ph-controls-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	background-color: #161b22;
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid #30363d;
	margin-bottom: 16px;
}

.ph-nav-btn {
	background-color: #21262d;
	color: #c9d1d9;
	border: 1px solid #30363d;
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.ph-nav-btn:hover {
	background-color: #30363d;
	border-color: #8b949e;
}

.ph-select {
	background-color: #0d1117;
	color: #58a6ff;
	border: 1px solid #30363d;
	padding: 6px 12px;
	border-radius: 6px;
	outline: none;
	font-weight: 600;
	cursor: pointer;
}

.ph-select:focus {
	border-color: #58a6ff;
}

.ph-section-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #8b949e;
	margin-bottom: 8px;
}

.ph-heatmap-section,
.ph-quad-chart-section {
	background-color: #161b22;
	border: 1px solid #30363d;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.ph-heatmap-svg-holder {
	overflow-x: auto;
	display: flex;
	justify-content: center;
}

.ph-project-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.ph-tab-btn {
	background-color: #161b22;
	color: #8b949e;
	border: 1px solid #30363d;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ph-tab-btn:hover {
	color: #c9d1d9;
	border-color: #8b949e;
}

.ph-tab-btn.active {
	background-color: #238636;
	color: #ffffff;
	border-color: #2ea043;
}

.ph-accordion-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ph-day-card {
	background-color: #161b22;
	border: 1px solid #30363d;
	border-radius: 6px;
	overflow: hidden;
}

.ph-day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background-color: #21262d;
	cursor: pointer;
	user-select: none;
}

.ph-day-header:hover {
	background-color: #30363d;
}

.ph-day-title {
	font-weight: 700;
	color: #f0f6fc;
}

.ph-day-badge {
	background-color: #388bfd15;
	color: #58a6ff;
	border: 1px solid #388bfd30;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
}

.ph-day-content {
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 1px solid #30363d;
}

.ph-day-content.hidden {
	display: none;
}

.ph-commit-item {
	border-left: 3px solid #58a6ff;
	padding-left: 10px;
}

.ph-commit-msg {
	font-size: 13px;
	font-weight: 600;
}

.ph-project-link {
	color: #58a6ff;
	text-decoration: none;
}

.ph-project-link:hover {
	text-decoration: underline;
}

.ph-commit-meta {
	font-size: 11px;
	color: #8b949e;
	margin: 4px 0;
}

.ph-file-list {
	font-family: monospace;
	font-size: 11px;
	color: #8b949e;
	margin-top: 4px;
}

.ph-file-link {
	color: #8b949e;
	text-decoration: none;
}

.ph-file-link:hover {
	color: #58a6ff;
	text-decoration: underline;
}

.ph-placeholder,
.ph-error {
	padding: 24px;
	text-align: center;
	color: #8b949e;
	font-size: 13px;
}

.ph-error {
	color: #f85149;
}

.ph-color-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 6px;
	vertical-align: middle;
}

.ph-day-title-holder {
	display: flex;
	align-items: center;
}

.ph-heatmap-svg-holder,
.ph-heatmap-container {
	position: relative;
	padding-bottom: 15%;
	width: 100%;
}

.ph-heatmap-svg-holder>svg,
.ph-heatmap-container>img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}
