.ikpc {
	--ikpc-surface: var(--ds-surface, #161a23);
	--ikpc-sunken: var(--ds-surface-sunken, #0b0d13);
	--ikpc-raised: var(--ds-surface-raised, #1d212b);
	--ikpc-border: var(--ds-border, #343b49);
	--ikpc-border-subtle: var(--ds-border-subtle, #252b36);
	--ikpc-text: var(--ds-text, #dee4ea);
	--ikpc-subtle: var(--ds-text-subtle, #9fadbc);
	--ikpc-muted: var(--ds-text-muted, #7e8a99);
	--ikpc-brand: var(--ds-brand, #579dff);
	--ikpc-brand-bold: var(--ds-brand-bold, #0c66e4);
	--ikpc-brand-subtle: var(--ds-brand-subtle, rgba(87, 157, 255, 0.16));
	--ikpc-green: var(--ds-green, #4bce97);
	--ikpc-radius: var(--ds-radius, 3px);
	width: 100%;
	margin: 8px 0 28px;
	color: var(--ikpc-text);
	font: inherit;
}

.ikpc *,
.ikpc *::before,
.ikpc *::after {
	box-sizing: border-box;
}

.ikpc__intro {
	margin-bottom: 20px;
}

.ikpc__intro h2 {
	padding: 0;
	margin: 6px 0 8px;
	border: 0;
	color: var(--ikpc-text);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	line-height: 1.25;
}

.ikpc__intro p {
	max-width: 680px;
	margin: 0;
	color: var(--ikpc-subtle);
}

.ikpc__eyebrow {
	display: inline-flex;
	padding: 2px 8px;
	color: var(--ds-link, #85b8ff);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	background: var(--ikpc-brand-subtle);
	border-radius: 999px;
}

.ikpc__converter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
	align-items: center;
	padding: 18px;
	background: var(--ikpc-surface);
	border: 1px solid var(--ikpc-border-subtle);
	border-radius: var(--ikpc-radius);
}

.ikpc__field {
	display: grid;
	align-self: stretch;
	grid-template-rows: auto minmax(116px, 1fr) auto;
	gap: 7px;
	min-width: 0;
}

.ikpc__field label,
.ikpc__label {
	color: var(--ikpc-subtle);
	font-size: 0.82rem;
	font-weight: 700;
}

.ikpc__input,
.ikpc__result {
	width: 100%;
	min-height: 116px;
	padding: 14px;
	color: var(--ikpc-text);
	background: var(--ikpc-sunken);
	border: 1px solid var(--ikpc-border);
	border-radius: var(--ikpc-radius);
	box-shadow: none;
}

.ikpc__input {
	display: block;
	resize: vertical;
	line-height: 1.55;
	outline: none;
}

.ikpc__input::placeholder {
	color: var(--ikpc-muted);
	opacity: 0.8;
}

.ikpc__input:focus {
	border-color: var(--ikpc-brand-bold);
	box-shadow: 0 0 0 2px var(--ikpc-brand-subtle);
}

.ikpc__result {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
	overflow: hidden;
	font: inherit;
	line-height: 1.55;
	text-align: left;
	overflow-wrap: anywhere;
	cursor: pointer;
}

.ikpc__result:not(:disabled):hover {
	background: var(--ikpc-raised);
	border-color: var(--ikpc-brand);
}

.ikpc__result:disabled {
	color: var(--ikpc-muted);
	cursor: default;
}

.ikpc__result.is-copied {
	border-color: var(--ikpc-green);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ikpc-green) 20%, transparent);
}

.ikpc__result-value {
	min-width: 0;
}

.ikpc__copy-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.ikpc__direction {
	display: grid;
	width: 28px;
	height: 28px;
	margin: 18px auto 0;
	place-items: center;
	color: var(--ikpc-brand);
	background: var(--ikpc-brand-subtle);
	border-radius: 50%;
}

.ikpc__direction svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.ikpc__hint {
	color: var(--ikpc-muted);
	font-size: 0.76rem;
}

.ikpc__status.is-error {
	color: var(--ds-red, #ff7452);
}

.ikpc__status.is-success {
	color: var(--ikpc-green);
}

.ikpc__examples {
	display: flex;
	gap: 7px;
	align-items: center;
	margin-top: 12px;
	color: var(--ikpc-muted);
	font-size: 0.78rem;
	flex-wrap: wrap;
}

.ikpc__examples button {
	padding: 3px 8px;
	color: var(--ds-link, #85b8ff);
	font: inherit;
	cursor: pointer;
	background: transparent;
	border: 1px solid var(--ikpc-border);
	border-radius: 999px;
}

.ikpc__examples button:hover {
	color: var(--ds-link-hover, #cce0ff);
	background: var(--ikpc-brand-subtle);
}

.ikpc__notice {
	padding: 10px 12px;
	margin-top: 16px;
	color: var(--ds-yellow, #f5cd47);
	background: var(--ikpc-raised);
	border-left: 3px solid currentColor;
}

@media (max-width: 720px) {
	.ikpc__converter {
		grid-template-columns: minmax(0, 1fr);
		padding: 14px;
	}

	.ikpc__direction {
		margin: 8px auto;
		transform: rotate(90deg);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ikpc__result,
	.ikpc__examples button {
		transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
	}
}

