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

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

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

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

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

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

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