#hcApp {
	--hc-ink: #0f172a;
	--hc-muted: #475569;
	--hc-line: #e2e8f0;
	--hc-primary: #3b82f6;
	--hc-primary-hover: #2563eb;
	--hc-soft: #eff6ff;
	--hc-accent: #1d4ed8;
	--hc-radius: 0.375rem;
	--hc-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
	--hc-font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
	--hc-font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
	--hc-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-family: var(--hc-font-body);
	color: var(--hc-ink);
}

#hcApp .hc-shell {
	background:
		radial-gradient(1100px 400px at 8% -12%, rgba(59, 130, 246, 0.14), transparent 55%),
		radial-gradient(900px 360px at 100% 0%, rgba(37, 99, 235, 0.07), transparent 50%),
		linear-gradient(180deg, #f8fafc 0%, #ffffff 48%);
	border: 1px solid var(--hc-line);
	border-radius: var(--hc-radius);
	box-shadow: var(--hc-shadow);
	overflow: hidden;
}

#hcApp .hc-shell-form {
	height: auto;
	align-self: start;
}

#hcApp .hc-shell-result {
	height: 100%;
	min-height: 22rem;
}

#hcApp .hc-panel {
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
}

#hcApp .hc-shell-result .hc-panel {
	min-height: 100%;
}

#hcApp .hc-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	font-family: var(--hc-font-display);
}

#hcApp .hc-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	padding: 0.35rem;
	border-radius: 0.65rem;
	background: #f1f5f9;
	border: 1px solid var(--hc-line);
}

#hcApp .hc-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.6rem;
	padding: 0 0.85rem;
	border: 1px solid transparent;
	border-radius: 0.5rem;
	background: transparent;
	color: var(--hc-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#hcApp .hc-tab:hover {
	color: var(--hc-ink);
	background: rgba(255, 255, 255, 0.7);
}

#hcApp .hc-tab.is-active {
	background: #fff;
	color: var(--hc-accent);
	border-color: #93c5fd;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#hcApp .hc-tab:focus-visible {
	outline: 2px solid var(--hc-primary);
	outline-offset: 2px;
}

#hcApp .hc-tab-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

#hcApp .hc-textarea,
#hcApp .hc-input {
	width: 100%;
	border: 1px solid var(--hc-line);
	border-radius: 0.5rem;
	background: #fff;
	color: var(--hc-ink);
	font-size: 0.9375rem;
	line-height: 1.55;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#hcApp .hc-textarea {
	padding: 0.9rem 1rem;
	resize: vertical;
	min-height: 8.5rem;
	font-family: var(--hc-font-mono);
}

#hcApp .hc-input {
	padding: 0.75rem 0.95rem;
	font-family: var(--hc-font-mono);
}

#hcApp .hc-textarea:focus {
	outline: none;
	border-color: #93c5fd;
	box-shadow: none;
}

#hcApp .hc-input:focus {
	outline: none;
	border-color: #93c5fd;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#hcApp .hc-meta {
	margin: 0.45rem 0 0;
	font-size: 0.75rem;
	color: #64748b;
	font-variant-numeric: tabular-nums;
}

#hcApp .hc-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 9.5rem;
	padding: 1.25rem;
	border: 1.5px dashed #93c5fd;
	border-radius: 0.65rem;
	background: linear-gradient(180deg, var(--hc-soft), #fff 70%);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#hcApp .hc-drop:hover,
#hcApp .hc-drop.is-drag {
	border-color: var(--hc-primary);
	background: #dbeafe;
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

#hcApp .hc-drop-icon {
	width: 2rem;
	height: 2rem;
	color: var(--hc-primary);
	margin-bottom: 0.25rem;
}

#hcApp .hc-drop-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--hc-ink);
	font-family: var(--hc-font-display);
	word-break: break-all;
}

#hcApp .hc-drop-sub {
	font-size: 0.75rem;
	color: #64748b;
}

#hcApp .hc-algos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

@media (min-width: 480px) {
	#hcApp .hc-algos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

#hcApp .hc-chip {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 3.35rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--hc-line);
	border-radius: 0.55rem;
	background: #fff;
	color: #334155;
	cursor: pointer;
	user-select: none;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#hcApp .hc-chip:hover {
	border-color: #93c5fd;
	background: #f8fbff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

#hcApp .hc-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

#hcApp .hc-chip-mark {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 0.3rem;
	background: #fff;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#hcApp .hc-chip-mark::after {
	content: "";
	display: block;
	width: 0.28rem;
	height: 0.5rem;
	margin: 0.12rem auto 0;
	border: solid transparent;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg) scale(0.6);
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

#hcApp .hc-chip-body {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
	min-width: 0;
}

#hcApp .hc-chip-name {
	font-family: var(--hc-font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

#hcApp .hc-chip-bits {
	font-size: 0.6875rem;
	font-weight: 500;
	color: #94a3b8;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

#hcApp .hc-chip:has(input:checked) {
	border-color: #60a5fa;
	background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
	color: var(--hc-accent);
	box-shadow: none;
}

#hcApp .hc-chip:has(input:checked) .hc-chip-mark {
	border-color: var(--hc-primary);
	background: var(--hc-primary);
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

#hcApp .hc-chip:has(input:checked) .hc-chip-mark::after {
	border-color: #fff;
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

#hcApp .hc-chip:has(input:checked) .hc-chip-bits {
	color: #60a5fa;
}

#hcApp .hc-chip:has(input:focus-visible) {
	outline: 2px solid var(--hc-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	#hcApp .hc-chip,
	#hcApp .hc-chip-mark,
	#hcApp .hc-chip-mark::after {
		transition: none !important;
	}
}

#hcApp .hc-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

#hcApp .hc-check {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #1e293b;
	cursor: pointer;
}

#hcApp .hc-check input {
	width: 1rem;
	height: 1rem;
	accent-color: var(--hc-primary);
	cursor: pointer;
}

#hcApp .hc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	padding: 0 1.15rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

#hcApp .hc-btn:focus-visible {
	outline: 2px solid var(--hc-primary);
	outline-offset: 2px;
}

#hcApp .hc-btn-primary {
	background: var(--hc-primary);
	color: #fff;
}

#hcApp .hc-btn-primary:hover {
	background: var(--hc-primary-hover);
}

#hcApp .hc-btn-primary:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

#hcApp .hc-btn-muted {
	background: #f8fafc;
	color: #1e293b;
	border-color: #e2e8f0;
}

#hcApp .hc-btn-muted:hover {
	background: #f1f5f9;
}

#hcApp .hc-btn-icon {
	width: 1rem;
	height: 1rem;
}

#hcApp .hc-hint {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.55;
	color: #64748b;
}

#hcApp .hc-hint-icon {
	width: 0.95rem;
	height: 0.95rem;
	margin-top: 0.1rem;
	flex-shrink: 0;
	color: #22c55e;
}

#hcApp .hc-empty {
	border: 1px dashed #e5e7eb;
	background: #f9fafb;
	border-radius: var(--hc-radius);
	color: #9ca3af;
}

#hcApp .hidden {
	display: none !important;
}

#hcApp .hc-results {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

#hcApp .hc-item {
	border: 1px solid var(--hc-line);
	border-radius: 0.5rem;
	background: #fff;
	padding: 0.75rem 0.9rem;
}

#hcApp .hc-item.is-match {
	border-color: #bfdbfe;
	background: linear-gradient(135deg, var(--hc-soft), #fff 62%);
}

#hcApp .hc-item.is-mismatch {
	border-color: #fecaca;
	background: linear-gradient(135deg, #fef2f2, #fff 62%);
}

#hcApp .hc-item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

#hcApp .hc-algo {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: #64748b;
}

#hcApp .hc-badge {
	font-size: 0.6875rem;
	font-weight: 700;
	color: #1d4ed8;
}

#hcApp .hc-badge.is-mismatch {
	color: #b91c1c;
}

#hcApp .hc-hash {
	display: block;
	margin: 0.3rem 0 0;
	font-family: var(--hc-font-mono);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	word-break: break-all;
	color: var(--hc-ink);
}

#hcApp .hc-item.is-match .hc-hash {
	color: #1d4ed8;
}

#hcApp .hc-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.55rem;
	min-height: 1.85rem;
	padding: 0 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 0.4rem;
	background: #fff;
	color: #374151;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#hcApp .hc-copy:hover {
	background: #f8fafc;
	border-color: #93c5fd;
	color: #1d4ed8;
}

#hcApp .hc-copy.is-done {
	background: var(--hc-soft);
	border-color: #93c5fd;
	color: #1d4ed8;
}

#hcApp .hc-notes {
	background: #fff;
	border-radius: var(--hc-radius);
	box-shadow: var(--hc-shadow);
	border: 1px solid var(--hc-line);
}

#hcApp .hc-notes a {
	color: #2563eb;
}

#hcApp .hc-notes code {
	font-size: 0.85em;
	background: #f1f5f9;
	padding: 0.05em 0.3em;
	border-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
	#hcApp .hc-chip,
	#hcApp .hc-btn,
	#hcApp .hc-copy {
		transition: none !important;
	}
}
