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

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

.hcc-options { margin-top: 16px; border: 1px solid var(--hcc-line); border-radius: 12px; padding: 12px 16px; background: var(--hcc-bg); }
.hcc-options summary { cursor: pointer; font-weight: 600; }
.hcc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 12px; }
.hcc-opt { display: flex; flex-direction: column; gap: 4px; font-size: .9em; margin: 0; min-width: 0; }
.hcc-opt span { font-weight: 600; }
.hcc-opt select {
	width: 100%;
	padding: 8px 10px;
	border: 1.5px solid var(--hcc-line);
	border-radius: 8px;
	background: var(--hcc-bg);
	color: var(--hcc-text);
	font-size: 15px;
	max-width: 100%;
	text-overflow: ellipsis;
}
.hcc-opt select:focus { outline: none; border-color: var(--hcc-accent); }
.hcc-opt.is-off { opacity: .5; }
.hcc-opt--sheets { grid-column: 1 / -1; }
.hcc-hint { margin: 10px 0 0; font-size: .8em; color: var(--hcc-muted); }

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

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

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

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