.pcl {
	--ink: #173c44;
	--teal: #11695f;
	--muted: #536971;
	--line: #d7e5e3;
	max-width: 1000px;
	margin: 20px auto 40px;
	color: var(--ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}
.pcl * { box-sizing: border-box; }
.pcl [hidden] { display: none !important; }

.pcl-hero {
	position: relative;
	padding: 36px;
	border-radius: 24px;
	background: linear-gradient(120deg, #103f45, #126d60);
	color: #fff;
	overflow: hidden;
}
.pcl-hero:after {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	right: -40px;
	top: 0;
	border: 45px solid #ffffff0c;
	border-radius: 50%;
	pointer-events: none;
}
.pcl-hero h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 8px 0 10px; color: #fff; font-weight: 750; letter-spacing: -0.5px; }
.pcl-hero p { margin: 0; color: #d5efdf; max-width: 60ch; }
.pcl-eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 750; }

.pcl-overall {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 18px 0;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 5px 20px #183d4408;
}
.pcl-overall-text { font-weight: 700; white-space: nowrap; }
.pcl-overall-bar { flex: 1; height: 10px; border-radius: 999px; background: #e7f0ed; overflow: hidden; }
.pcl-overall-bar > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width 0.2s ease; }

.pcl-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.pcl button {
	font: inherit;
	border: 1px solid #b9d4ce;
	border-radius: 10px;
	background: #f0f7f5;
	color: #184d48;
	padding: 9px 15px;
	min-height: 40px;
	font-weight: 650;
	cursor: pointer;
}
.pcl button:hover { background: #deeee8; color: #133c36; }
.pcl .pcl-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.pcl .pcl-primary:hover { background: #0d554d; color: #fff; }
.pcl .pcl-danger { color: #9a3939; }
.pcl .pcl-danger:hover { background: #fff0f0; }

.pcl-categories { display: flex; flex-direction: column; gap: 16px; }
.pcl-category {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: 0 5px 20px #183d4408;
}
.pcl-category-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pcl-category-head h3 { margin: 0; font-size: 17px; color: var(--ink); flex: 1; }
.pcl-category-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pcl-category-bar { height: 6px; border-radius: 999px; background: #e7f0ed; overflow: hidden; margin-bottom: 12px; }
.pcl-category-bar > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }

.pcl-items { display: flex; flex-direction: column; gap: 2px; }
.pcl-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 4px;
	border-radius: 8px;
}
.pcl-item:hover { background: #f4f8f7; }
.pcl-item input[type="checkbox"] {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	accent-color: var(--teal);
	cursor: pointer;
}
.pcl-item label {
	flex: 1;
	cursor: pointer;
}
.pcl-item.is-checked label { color: var(--muted); text-decoration: line-through; }
.pcl-item-remove {
	flex-shrink: 0;
	border: none;
	background: none;
	color: var(--muted);
	font-size: 16px;
	line-height: 1;
	padding: 4px 6px;
	cursor: pointer;
	border-radius: 6px;
	visibility: hidden;
}
.pcl-item:hover .pcl-item-remove, .pcl-item-remove:focus-visible { visibility: visible; }
.pcl-item-remove:hover { background: #fde8e8; color: #9a3939; }

.pcl-add-item { display: flex; gap: 8px; margin-top: 10px; }
.pcl-add-item input {
	flex: 1;
	font: inherit;
	border: 1px solid #bccfcb;
	border-radius: 8px;
	padding: 8px 10px;
	min-height: 38px;
}
.pcl-add-item button { padding: 8px 14px; min-height: 38px; }

.pcl-status { font-size: 13px; color: var(--muted); min-height: 1.2em; margin: 10px 4px 0; }

@media (max-width: 600px) {
	.pcl-hero { padding: 24px 20px; }
	.pcl-overall { flex-wrap: wrap; }
}

@media print {
	.pcl .no-print { display: none !important; }
	.pcl-hero { background: #fff; color: #111; border: 2px solid #111; }
	.pcl-hero p, .pcl-eyebrow { color: #111; }
	.pcl-item-remove { display: none; }
	.pcl-category { break-inside: avoid; border: 1px solid #999; box-shadow: none; }
	.pcl-item input[type="checkbox"] {
		appearance: none;
		-webkit-appearance: none;
		width: 16px;
		height: 16px;
		border: 1.5px solid #111;
		border-radius: 3px;
	}
	.pcl-item input[type="checkbox"]:checked {
		background: #111;
	}
}
