
.ohpb {
	--ohpb-ink: #14264B;
	--ohpb-muted: #63738D;
	--ohpb-line: #DCE7F5;
	--ohpb-soft: #F0F5FF;
	--ohpb-accent: #2457D6;
	--ohpb-accent-dark: #1945B5;
	--ohpb-lavender: #8B79E8;
	--ohpb-cyan: #22B8CF;

	color: var(--ohpb-ink);
	font: inherit;
	width: 100%;
	max-width: 1100px;
	margin: 30px auto;
	padding: 28px;
	background: #EAF3FF;
	border: 1px solid #D6E6FF;
	border-radius: 20px;
}

/* Box sizing */
.ohpb, .ohpb * {
	box-sizing: border-box;
}

/* Intro */
.ohpb__intro {
	margin-bottom: 24px;
}

.ohpb__eyebrow {
	display: inline-block;
	margin: 0 0 9px;
	color: var(--ohpb-accent);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ohpb__title {
	margin: 0 0 10px;
	color: var(--ohpb-ink);
	font-size: clamp(27px, 4vw, 37px);
	line-height: 1.15;
	font-weight: 750;
}

.ohpb__description {
	margin: 0;
	max-width: 680px;
	color: var(--ohpb-muted);
	font-size: 16px;
	line-height: 1.7;
}

/* Main layout */
.ohpb__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: 20px;
	align-items: stretch;
}

.ohpb__panel {
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--ohpb-line);
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 6px 25px rgba(20, 38, 75, .055);
}

/* Form fields */
.ohpb__field {
	margin: 0 0 18px;
}

.ohpb__field label {
	display: block;
	margin: 0 0 8px;
	color: var(--ohpb-ink);
	font-size: 14px;
	font-weight: 650;
}

.ohpb__required {
	color: #D04444;
}

.ohpb__input,
.ohpb__select,
.ohpb__textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 12px 13px;
	border: 1px solid #D4DFEE;
	border-radius: 9px;
	background: #fff;
	color: var(--ohpb-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ohpb__textarea {
	min-height: 120px;
	resize: vertical;
}

.ohpb__textarea--small {
	min-height: 80px;
}

.ohpb__input:focus,
.ohpb__select:focus,
.ohpb__textarea:focus {
	outline: none;
	border-color: var(--ohpb-accent);
	box-shadow: 0 0 0 3px rgba(36, 87, 214, .12);
}

.ohpb__hint {
	margin: 6px 0 0;
	color: var(--ohpb-muted);
	font-size: 12px;
}

/* Form grid */
.ohpb__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 13px;
}

/* Buttons */
.ohpb__actions,
.ohpb__output-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ohpb__button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 45px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 9px;
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease,
		transform .2s ease, box-shadow .2s ease;
}

.ohpb__button:focus-visible {
	outline: 3px solid rgba(36, 87, 214, .25);
	outline-offset: 3px;
}

.ohpb__button--primary {
	background: linear-gradient(135deg, #315FE0, #2457D6);
	color: #fff;
	box-shadow: 0 4px 12px rgba(36, 87, 214, .18);
}

.ohpb__button--primary:hover {
	background: linear-gradient(135deg, #2457D6, #1945B5);
	color: #fff;
	box-shadow: 0 6px 16px rgba(36, 87, 214, .23);
	transform: translateY(-1px);
}

.ohpb__button--quiet {
	border-color: var(--ohpb-line);
	background: #fff;
	color: var(--ohpb-ink);
}

.ohpb__button--quiet:hover {
	border-color: #B8C9EA;
	background: var(--ohpb-soft);
}

.ohpb__button:disabled {
	opacity: .48;
	cursor: not-allowed;
}

/* Error */
.ohpb__error {
	min-height: 18px;
	margin: 9px 0 0;
	color: #B42318;
	font-size: 13px;
}

/* Output panel */
.ohpb__output-panel {
	display: flex;
	flex-direction: column;
	background: linear-gradient(145deg, #F5F8FF, #F0F5FF);
	border-color: #D7E3F7;
}

.ohpb__output-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 15px;
}

.ohpb__output-heading h3 {
	margin: 0;
	color: var(--ohpb-ink);
	font-size: 19px;
	line-height: 1.3;
}

.ohpb__status {
	padding: 5px 10px;
	border: 1px solid #D6D0FA;
	border-radius: 999px;
	background: #F0EDFF;
	color: #6654C6;
	font-size: 11px;
	white-space: nowrap;
}

.ohpb__output {
	flex: 1;
	min-height: 330px;
	padding: 17px;
	border: 1px solid #DCE6F5;
	border-radius: 10px;
	background: #fff;
	color: var(--ohpb-ink);
	font-size: 14px;
	line-height: 1.75;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	box-shadow: 0 2px 8px rgba(20, 38, 75, .025);
}

.ohpb__placeholder {
	margin: 0;
	color: #8997AD;
}

.ohpb__output-actions {
	margin-top: 15px;
}

.ohpb__copy-message {
	color: #167347;
	font-size: 12px;
	font-weight: 600;
}

/* Privacy and disclaimer */
.ohpb__privacy {
	margin: 15px 0 0;
	color: var(--ohpb-muted);
	font-size: 12px;
	line-height: 1.6;
}

.ohpb__disclaimer {
	margin: 12px 0 0;
	color: var(--ohpb-muted);
	font-size: 12px;
	line-height: 1.55;
}

/* Mobile */
@media (max-width: 760px) {
	.ohpb {
		padding: 18px;
		border-radius: 16px;
		margin: 22px auto;
	}

	.ohpb__layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ohpb__panel {
		padding: 19px;
	}

	.ohpb__output {
		min-height: 250px;
	}
}

@media (max-width: 480px) {
	.ohpb {
		padding: 12px;
		border-radius: 13px;
	}

	.ohpb__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ohpb__actions .ohpb__button {
		flex: 1 1 auto;
	}

	.ohpb__title {
		font-size: 28px;
	}
}
