html[data-personnel-policy-embed="1"],
html[data-personnel-policy-embed="1"] body,
html[data-personnel-policy-embed="1"] #root {
	margin: 0;
	min-height: 100%;
	background: #f1f6fb;
}

/* The welcome card already contains the opening questions. Hide the legacy
   horizontal copy only on the personnel-policy embed route. */
html[data-personnel-policy-embed="1"]
	.embed-root[data-agent-id="personnel-policy-assistant"] > .embed-topics {
	display: none !important;
}

html[data-personnel-policy-embed="1"]
	.assistant-process-group[data-personnel-policy-process-hidden="1"] {
	display: none !important;
}

html[data-personnel-policy-embed="1"]
	[data-personnel-policy-form-copy-hidden="1"] {
	display: none !important;
}

html[data-personnel-policy-embed="1"]
	[data-personnel-policy-action-copy-hidden="1"] {
	display: none !important;
}

/* A single, Agent-scoped way to finish the current service and return to the
   opening menu. The bridge disappears automatically while a reply is running. */
html[data-personnel-policy-embed="1"] .personnel-policy-return-home {
	display: flex;
	justify-content: center;
	padding: 12px 12px 6px;
}

html[data-personnel-policy-embed="1"] .personnel-policy-return-home__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 168px;
	height: 40px;
	padding: 0 22px;
	border: 1px solid #b9d0e5;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 7px 20px rgba(40, 95, 149, 0.1);
	color: #285f95;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

html[data-personnel-policy-embed="1"] .personnel-policy-return-home__button:hover:not(:disabled) {
	transform: translateY(-1px);
	border-color: #285f95;
	background: #f7fbff;
	box-shadow: 0 10px 24px rgba(40, 95, 149, 0.14);
}

html[data-personnel-policy-embed="1"] .personnel-policy-return-home__button:focus-visible {
	outline: 3px solid rgba(36, 104, 216, 0.2);
	outline-offset: 2px;
}

html[data-personnel-policy-embed="1"] .personnel-policy-return-home__button:disabled {
	cursor: wait;
	opacity: 0.72;
}

html[data-personnel-policy-embed="1"] .personnel-policy-return-home__icon {
	font-size: 18px;
	line-height: 1;
}

html[data-personnel-policy-embed="1"]
	.assistant-action-stack[data-personnel-policy-archive-form-stack="1"]::before {
	content: "可以，我来帮您查询档案在档情况。";
	display: block;
	margin: 0 0 10px;
	color: #263f59;
	font-size: 14px;
	line-height: 1.7;
}

/* Friendly confirmation after the archive query form is submitted. */
html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form.pi-inline-block--collapsed {
	border: 1px solid #d9e7f7;
	border-radius: 16px;
	background: linear-gradient(135deg, #f3f8ff, #ffffff);
	box-shadow: 0 10px 26px rgba(31, 88, 154, 0.1);
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form.pi-inline-block--collapsed .pi-block-collapsed-icon {
	background: #e5f0ff;
	color: #2468d8;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form.pi-inline-block--collapsed .pi-block-collapsed-title {
	color: #17324d;
	font-weight: 760;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form.pi-inline-block--collapsed .pi-block-collapsed-detail {
	color: #667d94;
}

/* One-tap archive service choices displayed only after a successful lookup. */
html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-replies {
	position: relative;
	gap: 10px;
	padding: 20px;
	border: 1px solid #d6e6f7;
	border-radius: 22px;
	background:
		radial-gradient(circle at 94% 4%, rgba(82, 167, 245, 0.15), transparent 33%),
		linear-gradient(145deg, #f4f9ff 0%, #ffffff 72%);
	box-shadow: 0 18px 44px rgba(31, 88, 154, 0.13);
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-replies-title {
	position: relative;
	padding: 2px 0 13px 44px;
	color: #17324d;
	font-size: 16px;
	font-weight: 760;
	line-height: 1.65;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-replies-title::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(145deg, #37b56a, #168447);
	box-shadow: 0 7px 16px rgba(27, 143, 79, 0.22);
	color: #ffffff;
	font-size: 17px;
	font-weight: 800;
}

html[data-personnel-policy-embed="1"]
	.assistant-action-stack
	.pi-quick-replies[data-personnel-policy-archive-status="not-found"]
	.pi-quick-replies-title::before {
	content: "i";
	background: linear-gradient(145deg, #4d9bea, #2468d8);
	box-shadow: 0 7px 16px rgba(36, 104, 216, 0.2);
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-replies-list {
	display: grid;
	gap: 9px;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-reply {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
	padding: 10px 13px 10px 15px;
	border: 1px solid #dbe8f5;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.93);
	box-shadow: 0 4px 14px rgba(32, 80, 135, 0.06);
	color: #24415e;
	text-align: left;
	transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-reply:hover:not(:disabled) {
	transform: translateY(-1px);
	border-color: #82b4e6;
	box-shadow: 0 8px 20px rgba(36, 104, 216, 0.13);
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-reply-copy {
	display: grid;
	gap: 3px;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-reply-label {
	font-size: 14px;
	font-weight: 730;
	line-height: 1.35;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-reply-desc {
	color: #6a7f94;
	font-size: 12px;
	line-height: 1.4;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-quick-replies--submitted {
	padding: 12px 15px;
	border-radius: 14px;
	background: #f0f7ff;
	color: #245d9c;
}

/* Public-facing archive lookup card. Scoped to the personnel-policy embed only. */
html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form {
	--archive-form-blue: #2468d8;
	--archive-form-blue-deep: #174fae;
	--archive-form-ink: #17324d;
	--archive-form-muted: #657b91;
	position: relative;
	border: 1px solid #d9e7f7;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 18px 44px rgba(31, 88, 154, 0.13);
	overflow: hidden;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, #2468d8, #52a7f5 62%, #f0ae3c);
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-block-header {
	position: relative;
	min-height: 94px;
	padding: 22px 22px 18px 78px;
	border-bottom: 1px solid #e8f0f8;
	background:
		radial-gradient(circle at 92% 8%, rgba(82, 167, 245, 0.16), transparent 34%),
		linear-gradient(145deg, #f4f9ff 0%, #ffffff 78%);
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-block-header::before {
	content: "档";
	position: absolute;
	left: 22px;
	top: 23px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: linear-gradient(145deg, #2e7ae8, #1555bb);
	box-shadow: 0 9px 20px rgba(36, 104, 216, 0.24);
	color: #ffffff;
	font-size: 19px;
	font-weight: 800;
	line-height: 1;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-block-title {
	color: var(--archive-form-ink);
	font-size: 18px;
	font-weight: 780;
	line-height: 1.35;
	letter-spacing: 0;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-block-desc {
	margin-top: 7px;
	color: var(--archive-form-muted);
	font-size: 13px;
	line-height: 1.6;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-body {
	padding: 20px 22px 22px;
	background: #ffffff;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-label {
	margin-bottom: 9px;
	color: #27435f;
	font-size: 13px;
	font-weight: 700;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-control,
html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-control.ant-input {
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #bfd3e9;
	border-radius: 13px !important;
	background: #fbfdff;
	box-shadow: 0 2px 8px rgba(31, 88, 154, 0.05) inset;
	color: var(--archive-form-ink);
	font-size: 16px;
	letter-spacing: 0.02em;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-control:hover {
	border-color: #75a8df;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-control:focus {
	border-color: var(--archive-form-blue);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(36, 104, 216, 0.12);
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-actions {
	margin-top: 18px;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-submit {
	height: 48px;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--archive-form-blue), var(--archive-form-blue-deep));
	box-shadow: 0 12px 25px rgba(36, 104, 216, 0.24);
	font-size: 15px;
	font-weight: 750;
	letter-spacing: 0.04em;
}

html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-submit:hover:not(:disabled) {
	box-shadow: 0 15px 30px rgba(36, 104, 216, 0.3);
}

html[data-personnel-policy-embed="1"][data-theme="dark"] .assistant-action-stack .pi-inline-form {
	border-color: rgba(125, 177, 231, 0.24);
	background: #132337;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

html[data-personnel-policy-embed="1"][data-theme="dark"] .assistant-action-stack .pi-inline-form .pi-block-header,
html[data-personnel-policy-embed="1"][data-theme="dark"] .assistant-action-stack .pi-inline-form .pi-form-body {
	border-color: rgba(125, 177, 231, 0.16);
	background: linear-gradient(145deg, #172d47, #132337);
}

html[data-personnel-policy-embed="1"][data-theme="dark"] .assistant-action-stack .pi-inline-form .pi-block-title,
html[data-personnel-policy-embed="1"][data-theme="dark"] .assistant-action-stack .pi-inline-form .pi-form-label {
	color: #edf6ff;
}

html[data-personnel-policy-embed="1"][data-theme="dark"] .assistant-action-stack .pi-inline-form .pi-block-desc {
	color: #a9bed2;
}

html[data-personnel-policy-embed="1"][data-theme="dark"] .assistant-action-stack .pi-inline-form .pi-form-control,
html[data-personnel-policy-embed="1"][data-theme="dark"] .assistant-action-stack .pi-inline-form .pi-form-control.ant-input {
	border-color: #3c5c7d;
	background: #0e1d2e;
	color: #f5f9ff;
}

html[data-personnel-policy-embed="1"][data-theme="dark"] .personnel-policy-return-home__button {
	border-color: #3c5c7d;
	background: #172d47;
	box-shadow: 0 7px 20px rgba(0, 0, 0, 0.24);
	color: #dcecff;
}

@media (max-width: 520px) {
	html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form {
		border-radius: 18px;
	}

	html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-block-header {
		min-height: 86px;
		padding: 18px 16px 16px 66px;
	}

	html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-block-header::before {
		left: 16px;
		top: 19px;
		width: 38px;
		height: 38px;
		border-radius: 12px;
		font-size: 17px;
	}

	html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-block-title {
		font-size: 17px;
	}

	html[data-personnel-policy-embed="1"] .assistant-action-stack .pi-inline-form .pi-form-body {
		padding: 17px 16px 18px;
	}
}
