.chc {
	--chc-accent: #1d6f42;
	--chc-text: #1f2328;
	--chc-muted: #5b636d;
	--chc-line: #d9dee3;
	--chc-bg: #ffffff;
	--chc-soft: #f4f7f5;
	--chc-error: #b42318;
	max-width: 760px;
	margin: 0 auto;
	color: var(--chc-text);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.chc *, .chc *::before, .chc *::after { box-sizing: inherit; }
.chc input, .chc select, .chc button { box-sizing: border-box; }

.chc-drop {
	border: 2px dashed var(--chc-line);
	border-radius: 14px;
	background: var(--chc-soft);
	padding: 40px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.chc-drop:hover, .chc-drop:focus-visible, .chc-drop.is-over {
	border-color: var(--chc-accent);
	background: color-mix(in srgb, var(--chc-accent) 8%, var(--chc-bg));
	outline: none;
}
.chc-icon { width: 44px; height: 44px; color: var(--chc-accent); }
.chc-drop-title { margin: 8px 0 4px; font-size: 1.15em; font-weight: 600; }
.chc-drop-sub { margin: 0; color: var(--chc-muted); font-size: .88em; }

.chc-levels {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	border: 0;
}
.chc-levels legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.chc-level { position: relative; cursor: pointer; margin: 0; }
.chc-level input { position: absolute; opacity: 0; }
.chc-level span {
	display: block;
	height: 100%;
	border: 1.5px solid var(--chc-line);
	border-radius: 10px;
	padding: 10px 12px;
	background: var(--chc-bg);
}
.chc-level strong { display: block; }
.chc-level small { display: block; color: var(--chc-muted); font-size: .8em; line-height: 1.35; margin-top: 2px; }
.chc-level input:checked + span { border-color: var(--chc-accent); box-shadow: 0 0 0 1px var(--chc-accent); }
.chc-level input:focus-visible + span { outline: 2px solid var(--chc-accent); outline-offset: 2px; }

.chc-options { margin-top: 14px; display: grid; gap: 10px; font-size: .9em; }
.chc-check { display: flex; gap: 8px; align-items: flex-start; color: var(--chc-muted); }
.chc-check input { margin-top: 4px; }
.chc-select { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chc-select select { max-width: 100%; padding: 4px 8px; }

.chc-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.chc-item {
	border: 1px solid var(--chc-line);
	border-radius: 10px;
	padding: 12px 14px;
	background: var(--chc-bg);
	margin: 0;
}
.chc-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chc-name { font-weight: 600; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.chc-status { color: var(--chc-muted); font-size: .88em; }
.chc-item.is-done .chc-status { color: var(--chc-accent); font-weight: 600; }
.chc-download {
	background: var(--chc-accent);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	padding: 6px 14px;
	font-size: .9em;
	font-weight: 600;
}
.chc-download:hover { filter: brightness(1.1); }
.chc-bar { height: 5px; border-radius: 99px; background: var(--chc-soft); overflow: hidden; margin: 8px 0 6px; }
.chc-bar span { display: block; height: 100%; width: 0; background: var(--chc-accent); transition: width .2s; }
.chc-item.is-working .chc-bar span { animation: chc-pulse 1.2s ease-in-out infinite; }
.chc-item.is-error .chc-bar { display: none; }
.chc-item.is-error .chc-info { color: var(--chc-error); }
.chc-info { font-size: .85em; color: var(--chc-muted); }
.chc-details { margin-top: 6px; font-size: .85em; color: var(--chc-muted); }
.chc-details summary { cursor: pointer; }
.chc-details ul { margin: 6px 0 0 18px; padding: 0; }

.chc-privacy, .chc-counter { font-size: .8em; color: var(--chc-muted); text-align: center; margin: 16px 0 0; }
.chc-counter { font-weight: 600; }

@keyframes chc-pulse { 50% { opacity: .45; } }

@media (max-width: 600px) {
	.chc-levels { grid-template-columns: 1fr; }
	.chc-drop { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.chc-item.is-working .chc-bar span { animation: none; }
}
