.jcfdp-embed,
.jcfdp-embed * {
	box-sizing: border-box;
}

.jcfdp-embed {
	--jcfdp-bg: #f7f8fb;
	--jcfdp-card: #ffffff;
	--jcfdp-line: #e9edf3;
	--jcfdp-text: #191c22;
	--jcfdp-muted: #818898;
	--jcfdp-primary: #17181b;
	--jcfdp-primary-hover: #0d0e10;
	--jcfdp-green-bg: #eaf9f0;
	--jcfdp-green: #2c8c5a;
	--jcfdp-blue-bg: #edf4ff;
	--jcfdp-blue: #4d79d8;
	--jcfdp-amber-bg: #fff6e7;
	--jcfdp-amber: #cc8b19;
	--jcfdp-slate-bg: #f1f3f7;
	--jcfdp-slate: #6f7686;
	--jcfdp-shadow: 0 16px 40px rgba(27, 39, 70, 0.08);
	--jcfdp-radius: 12px;
	max-width: 100%;
	margin: 18px 0;
	color: var(--jcfdp-text);
	font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	overflow-wrap: anywhere;
}

.jcfdp-board {
	padding: 22px;
	border: 1px solid var(--jcfdp-line);
	border-radius: var(--jcfdp-radius);
	background: var(--jcfdp-bg);
}

.jcfdp-board + .jcfdp-board {
	margin-top: 14px;
}

.jcfdp-board--sub {
	background: #fbfcfe;
}

.jcfdp-board__hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.jcfdp-board__intro {
	flex: 1 1 auto;
	min-width: 0;
}

.jcfdp-board__aside {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	min-width: 180px;
}

.jcfdp-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #8d95a4;
}

.jcfdp-heading {
	margin: 8px 0 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--jcfdp-text);
}

.jcfdp-copy {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.8;
	color: #5e6675;
}

.jcfdp-note,
.jcfdp-info,
.jcfdp-callout {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border: 1px solid var(--jcfdp-line);
	border-radius: var(--jcfdp-radius);
	background: var(--jcfdp-card);
}

.jcfdp-note strong,
.jcfdp-info strong,
.jcfdp-callout strong,
.jcfdp-formpanel__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--jcfdp-text);
}

.jcfdp-note span,
.jcfdp-info span,
.jcfdp-callout span,
.jcfdp-formpanel__sub {
	font-size: 13px;
	line-height: 1.7;
	color: var(--jcfdp-muted);
}

.jcfdp-statgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.jcfdp-statcard {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--jcfdp-line);
	border-radius: var(--jcfdp-radius);
	background: var(--jcfdp-card);
}

.jcfdp-statcard__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--jcfdp-radius);
	font-size: 13px;
	font-weight: 700;
}

.jcfdp-statcard__icon svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jcfdp-statcard__icon--amber {
	background: var(--jcfdp-amber-bg);
	color: var(--jcfdp-amber);
}

.jcfdp-statcard__icon--blue {
	background: var(--jcfdp-blue-bg);
	color: var(--jcfdp-blue);
}

.jcfdp-statcard__icon--green {
	background: var(--jcfdp-green-bg);
	color: var(--jcfdp-green);
}

.jcfdp-statcard__icon--slate {
	background: var(--jcfdp-slate-bg);
	color: var(--jcfdp-slate);
}

.jcfdp-statcard__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.jcfdp-statcard__body strong {
	font-size: 16px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--jcfdp-text);
}

.jcfdp-statcard__body span {
	font-size: 12px;
	line-height: 1.6;
	color: var(--jcfdp-muted);
}

.jcfdp-formpanel {
	margin-top: 18px;
	padding: 18px;
	border: 1px solid var(--jcfdp-line);
	border-radius: var(--jcfdp-radius);
	background: var(--jcfdp-card);
}

.jcfdp-formpanel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.jcfdp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.jcfdp-grid--editor {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jcfdp-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.jcfdp-field--wide {
	grid-column: 1 / -1;
}

.jcfdp-label {
	font-size: 12px;
	font-weight: 700;
	color: #676f7f;
}

.jcfdp-field input,
.jcfdp-field textarea,
.jcfdp-field select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--jcfdp-line);
	border-radius: var(--jcfdp-radius);
	background: #fff;
	font-size: 14px;
	color: var(--jcfdp-text);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.jcfdp-embed--readonly .jcfdp-field input,
.jcfdp-embed--readonly .jcfdp-field textarea,
.jcfdp-embed--readonly .jcfdp-field select {
	background: var(--jcfdp-slate-bg);
	cursor: not-allowed;
}

.jcfdp-embed--readonly .jcfdp-field input:focus,
.jcfdp-embed--readonly .jcfdp-field textarea:focus,
.jcfdp-embed--readonly .jcfdp-field select:focus {
	border-color: var(--jcfdp-line);
	box-shadow: none;
}

.jcfdp-field textarea {
	resize: vertical;
	min-height: 120px;
}

.jcfdp-field select {
	appearance: none;
}

.jcfdp-field input:focus,
.jcfdp-field textarea:focus,
.jcfdp-field select:focus {
	border-color: #c7d2e7;
	box-shadow: 0 0 0 3px rgba(111, 134, 186, 0.12);
	outline: 0;
}

.jcfdp-progress {
	margin-top: 18px;
	padding: 16px 18px;
	border: 1px solid var(--jcfdp-line);
	border-radius: var(--jcfdp-radius);
	background: var(--jcfdp-card);
}

.jcfdp-progress__track {
	height: 12px;
	overflow: hidden;
	border-radius: 999px;
	background: #edf1f7;
}

.jcfdp-progress__bar {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #79d1a2 0%, #4ac08f 100%);
}

.jcfdp-progress__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 10px;
	font-size: 12px;
	color: var(--jcfdp-muted);
}

.jcfdp-cardgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.jcfdp-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.jcfdp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--jcfdp-radius);
	background: var(--jcfdp-primary);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .16s ease, transform .16s ease;
}

.jcfdp-btn:hover {
	background: var(--jcfdp-primary-hover);
	transform: translateY(-1px);
}

.jcfdp-btn--danger {
	background: #d94848;
}

.jcfdp-btn--danger:hover {
	background: #c53d3d;
}

.jcfdp-pill,
.jcfdp-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.jcfdp-pill {
	border: 1px solid var(--jcfdp-line);
	background: #fff;
	color: #656d7c;
}

.jcfdp-pill--green {
	border-color: rgba(44, 140, 90, 0.22);
	background: var(--jcfdp-green-bg);
	color: var(--jcfdp-green);
}

.jcfdp-pill svg,
.jcfdp-status svg {
	width: 14px;
	height: 14px;
	margin-right: 6px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jcfdp-access.jcfdp-access--granted {
	border: 0;
	background: transparent;
	padding: 0;
}

.jcfdp-actions--status {
	margin-top: 0;
}

.jcfdp-status {
	align-self: flex-start;
	border: 1px solid transparent;
}

.jcfdp-status--0 {
	background: var(--jcfdp-green-bg);
	color: var(--jcfdp-green);
	border-color: rgba(44, 140, 90, 0.24);
}

.jcfdp-status--1 {
	background: var(--jcfdp-amber-bg);
	color: var(--jcfdp-amber);
	border-color: rgba(204, 139, 25, 0.22);
}

.jcfdp-status--2 {
	background: var(--jcfdp-blue-bg);
	color: var(--jcfdp-blue);
	border-color: rgba(77, 121, 216, 0.22);
}

.jcfdp-status--3 {
	background: var(--jcfdp-green-bg);
	color: #19734a;
	border-color: rgba(25, 115, 74, 0.24);
}

.jcfdp-status--4 {
	background: #fff1f1;
	color: #b65d5d;
	border-color: rgba(182, 93, 93, 0.22);
}

.jcfdp-status--5 {
	background: #f3eefc;
	color: #7252b6;
	border-color: rgba(114, 82, 182, 0.22);
}

.jcfdp-status--6 {
	background: #fff1e8;
	color: #c96f2e;
	border-color: rgba(201, 111, 46, 0.24);
}

.jcfdp-status--7 {
	background: var(--jcfdp-blue-bg);
	color: var(--jcfdp-blue);
	border-color: rgba(77, 121, 216, 0.22);
}

.jcfdp-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--jcfdp-text);
}

.jcfdp-switch input {
	width: 18px;
	height: 18px;
}

.jcfdp-access {
	padding: 16px 18px;
	border: 1px solid var(--jcfdp-line);
	border-radius: var(--jcfdp-radius);
	background: #fff;
}

.jcfdp-banner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
	border-radius: var(--jcfdp-radius);
	font-size: 14px;
	line-height: 1.8;
}

.jcfdp-banner strong {
	font-size: 16px;
	font-weight: 700;
}

.jcfdp-banner--warn {
	background: #fff7eb;
	color: #8d6326;
}

.jcfdp-banner--success {
	background: var(--jcfdp-green-bg);
	color: var(--jcfdp-green);
}

.jcfdp-banner--muted {
	background: #f4f6fa;
	color: #667084;
}

@media (max-width: 1100px) {
	.jcfdp-statgrid,
	.jcfdp-cardgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.jcfdp-board {
		padding: 16px;
		border-radius: var(--jcfdp-radius);
	}

	.jcfdp-board__hero,
	.jcfdp-formpanel__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.jcfdp-board__aside {
		width: 100%;
		min-width: 0;
	}

	.jcfdp-heading {
		font-size: 24px;
	}

	.jcfdp-grid,
	.jcfdp-grid--editor,
	.jcfdp-statgrid,
	.jcfdp-cardgrid {
		grid-template-columns: 1fr;
	}

	.jcfdp-statcard__body strong {
		font-size: 16px;
	}

	.jcfdp-progress__meta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.jcfdp-embed {
		margin: 2.5%;
	}

	.jcfdp-board {
		padding: 14px;
	}

	.jcfdp-heading {
		font-size: 20px;
	}

	.jcfdp-copy {
		font-size: 13px;
	}

	.jcfdp-note,
	.jcfdp-info,
	.jcfdp-callout,
	.jcfdp-access {
		padding: 12px 14px;
	}

	.jcfdp-statcard,
	.jcfdp-formpanel,
	.jcfdp-progress {
		padding: 14px;
	}

	.jcfdp-field input,
	.jcfdp-field textarea,
	.jcfdp-field select {
		padding: 12px 14px;
	}

	.jcfdp-actions form {
		width: 100%;
	}

	.jcfdp-btn {
		width: 100%;
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 360px) {
	.jcfdp-board {
		padding: 12px;
	}

	.jcfdp-heading {
		font-size: 18px;
	}

	.jcfdp-statcard__icon {
		width: 38px;
		height: 38px;
	}

	.jcfdp-btn {
		min-height: 42px;
		padding: 0 14px;
	}
}
