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

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

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

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

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

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

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

.rhc-badge { border-radius: 99px; padding: 2px 10px; font-size: .8em !important; }
.rhc-item.is-ok .rhc-badge { background: color-mix(in srgb, var(--rhc-accent) 14%, transparent); color: var(--rhc-accent); }
.rhc-item.is-repaired .rhc-badge { background: color-mix(in srgb, var(--rhc-accent) 14%, transparent); color: var(--rhc-accent); }
.rhc-item.is-rescued .rhc-badge { background: #fff4d6; color: #8a5a00; }
.rhc-details { margin-top: 8px; font-size: .85em; color: var(--rhc-muted); }
.rhc-details summary { cursor: pointer; font-weight: 600; color: var(--rhc-text); }
.rhc-details ul { margin: 6px 0 0 18px; padding: 0; }
.rhc-details li { margin: 3px 0; overflow-wrap: anywhere; }
