.adf-demo {
	--adf-demo-accent: #4f46e5;
	--adf-demo-accent-hover: #4338ca;
	--adf-demo-text: #111827;
	--adf-demo-muted: #4b5563;
	--adf-demo-line: #e5e7eb;
	--adf-shell-max: 1120px;
	width: 100%;
	max-width: var(--adf-shell-max);
	margin: 8px auto 20px;
	padding: 0 12px;
	color: var(--adf-demo-text);
	font-family: inherit;
	line-height: 1.45;
	box-sizing: border-box;
}

.adf-demo *,
.adf-demo *::before,
.adf-demo *::after {
	box-sizing: border-box;
}

.adf-demo [hidden] {
	display: none !important;
}

.adf-demo h2,
.adf-demo h3,
.adf-demo p,
.adf-demo dl,
.adf-demo figure,
.adf-demo dd,
.adf-demo dt {
	margin: 0;
}

.adf-demo ol,
.adf-demo ul {
	margin: 0;
	padding-left: 0;
}

.adf-demo ol.adf-demo__flow {
	display: grid;
	gap: 10px;
	margin: 40px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--adf-demo-line);
	list-style: none;
}

.adf-demo button.adf-demo__tab,
.adf-demo button.adf-demo__chip {
	font: inherit;
	cursor: pointer;
	width: auto;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
}

.adf-demo__card {
	background: #fff;
	border: 1px solid #e8e9ef;
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
	padding: 28px 24px 24px;
	width: 100%;
	box-sizing: border-box;
}

.adf-demo__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.adf-demo__kicker {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #eef2ff;
	color: #4338ca;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
}

.adf-demo__title {
	margin: 0;
	width: 100%;
	color: var(--adf-demo-text);
	font-size: clamp(1.55rem, 2.5vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-align: center;
}

.adf-demo__subtitle {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 34rem;
	margin: 12px auto 0 !important;
	padding: 0 8px;
	color: var(--adf-demo-muted);
	font-size: 1.05rem;
	line-height: 1.5;
	text-align: center !important;
}

.adf-demo__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
	margin-top: 16px;
	width: 100%;
}

.adf-demo__price,
.adf-demo__count {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
}

.adf-demo__price {
	background: #eef2ff;
	color: #3730a3;
}

.adf-demo__count {
	background: #f3f4f6;
	color: #374151;
	font-weight: 600;
}

.adf-demo__switch {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 22px 0 4px;
}

.adf-demo button.adf-demo__chip {
	border: 1px solid var(--adf-demo-line);
	border-radius: 999px;
	background: #fff;
	color: #374151;
	padding: 8px 14px;
	font-size: 0.92rem;
	font-weight: 600;
	box-shadow: none;
}

.adf-demo button.adf-demo__chip[aria-pressed="true"] {
	border-color: var(--adf-demo-accent);
	background: var(--adf-demo-accent);
	color: #fff;
}

.adf-demo__example {
	margin-top: 18px;
}

.adf-demo__tabs {
	display: flex;
	justify-content: center;
}

.adf-demo__tabs-inner {
	display: inline-flex;
	max-width: 100%;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: #f3f4f6;
}

.adf-demo button.adf-demo__tab {
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #4b5563;
	padding: 10px 16px;
	font-size: 0.95rem;
	font-weight: 600;
	box-shadow: none;
}

.adf-demo button.adf-demo__tab[aria-selected="true"] {
	background: #fff;
	color: var(--adf-demo-accent);
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08), 0 4px 12px rgba(17, 24, 39, 0.05);
}

.adf-demo:not(.is-seen) .adf-demo__tab[data-pane-tab="after"] {
	animation: adfHint 1.8s ease-in-out 3;
}

.adf-demo__hint {
	margin: 10px 0 0;
	color: #6b7280;
	font-size: 0.86rem;
	text-align: center;
}

.adf-demo.is-seen .adf-demo__hint {
	display: none;
}

.adf-demo__viewport {
	margin-top: 14px;
}

.adf-demo--compare .adf-demo__viewport {
	display: grid;
}

.adf-demo--compare .adf-demo__pane {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.adf-demo--compare .adf-demo__pane.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.adf-demo--cards .adf-demo__viewport {
	display: grid;
	gap: 12px;
	align-items: stretch;
}

.adf-demo--cards .adf-demo__pane {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	margin: 0;
}

.adf-demo--cards .adf-demo__arrow {
	align-self: center;
	justify-self: center;
}

.adf-demo--cards .adf-demo__media {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 320px;
	height: 100%;
}

.adf-demo--cards .adf-mock {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 100%;
	height: 100%;
}

.adf-demo--cards .adf-mock__paper,
.adf-demo--cards .adf-mock__sheet {
	flex: 1 1 auto;
}

.adf-demo--cards .adf-mock__chrome,
.adf-demo--cards .adf-mock__ribbon,
.adf-demo--cards .adf-mock__fx {
	flex: 0 0 auto;
}

.adf-demo__media {
	position: relative;
	overflow: hidden;
	min-height: 280px;
	border: 1px solid var(--adf-demo-line);
	border-radius: 18px;
	background: #f8fafc;
}

.adf-demo__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	background: #fff;
}

.adf-demo__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	max-width: calc(100% - 24px);
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.78);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.adf-demo__fills {
	position: absolute;
	top: 28%;
	right: 6%;
	bottom: 16%;
	left: 6%;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 5px;
	pointer-events: none;
}

.adf-demo__fills span {
	border-radius: 4px;
	background: rgba(250, 204, 21, 0.95);
	opacity: 0;
	transform: scaleX(0.2);
	transform-origin: left center;
}

.is-filling .adf-demo__fills span {
	animation: adfFillCell 0.7s ease forwards;
}

.adf-demo__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--adf-demo-accent);
}

.adf-demo__arrow svg {
	transform: rotate(90deg);
}

.adf-demo__flow li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f8fafc;
	color: var(--adf-demo-text);
	font-size: 0.95rem;
	line-height: 1.35;
}

.adf-demo__num {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #eef2ff;
	color: var(--adf-demo-accent);
	font-size: 13px;
	font-weight: 700;
}

.adf-demo__pipeline {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adf-demo__step {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--adf-demo-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.adf-demo__step-label {
	color: var(--adf-demo-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.adf-demo__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 168px;
	margin-top: 12px;
	overflow: hidden;
	border: 1px solid var(--adf-demo-line);
	border-radius: 12px;
	background: #f8fafc;
}

.adf-demo__visual .adf-demo__img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: top center;
}

.adf-demo__visual--icon {
	background: #eef2ff;
	border-color: transparent;
}

.adf-demo__glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: #fff;
	color: var(--adf-demo-accent);
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
}

.adf-demo__glyph svg {
	width: 32px;
	height: 32px;
}

.adf-demo__step-text {
	margin-top: 12px;
	color: var(--adf-demo-text);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.35;
}

.adf-demo__actions {
	margin-top: 22px;
	text-align: center;
}

.adf-demo a.adf-demo__cta,
.adf-demo a.adf-demo__cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 14px;
	background: var(--adf-demo-accent);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.adf-demo a.adf-demo__cta:hover,
.adf-demo a.adf-demo__cta:focus {
	background: var(--adf-demo-accent-hover);
	color: #fff;
	transform: translateY(-1px);
}

.adf-demo__note {
	margin-top: 10px;
	color: #6b7280;
	font-size: 0.86rem;
}

.adf-demo__tab:focus-visible,
.adf-demo__chip:focus-visible,
.adf-demo a.adf-demo__cta:focus-visible {
	outline: 2px solid var(--adf-demo-accent);
	outline-offset: 2px;
}

.adf-mock {
	position: relative;
	background: #fff;
	min-height: 100%;
}

.adf-mock__chrome {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.adf-mock__chrome--pdf {
	background: #f3f4f6;
	color: #4b5563;
	border-bottom: 1px solid #e5e7eb;
}

.adf-mock__chrome--xls {
	background: linear-gradient(180deg, #217346 0%, #1a5c38 100%);
	color: #fff;
}

.adf-mock__app {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 20px;
	padding: 0 6px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.adf-mock__chrome--pdf .adf-mock__app {
	background: #dc2626;
	color: #fff;
}

.adf-mock__chrome--xls .adf-mock__app {
	background: #fff;
	color: #217346;
}

.adf-mock__fname {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.adf-mock__pages {
	opacity: 0.8;
	white-space: nowrap;
}

.adf-mock__winbtns {
	display: inline-flex;
	gap: 5px;
}

.adf-mock__winbtns i {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
}

.adf-mock__ribbon {
	display: flex;
	gap: 14px;
	padding: 4px 12px;
	background: #f3f4f6;
	border-bottom: 1px solid #e5e7eb;
	color: #6b7280;
	font-size: 11px;
	font-weight: 600;
}

.adf-mock__ribbon span:first-child {
	color: #217346;
	border-bottom: 2px solid #217346;
	padding-bottom: 1px;
}

.adf-mock__fx {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
	font-size: 11px;
}

.adf-mock__fx em {
	font-style: italic;
	font-weight: 700;
	color: #6b7280;
}

.adf-mock__fx strong {
	display: inline-flex;
	min-width: 28px;
	justify-content: center;
	padding: 2px 6px;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	background: #f9fafb;
	font-size: 10px;
}

.adf-mock__fx span {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #111827;
}

.adf-mock__paper,
.adf-mock__sheet {
	padding: 12px 10px 48px;
	overflow-x: auto;
}

.adf-demo--cards .adf-mock__paper {
	display: flex;
	flex-direction: column;
}

.adf-demo--cards .adf-mock__total {
	margin-top: auto;
}

.adf-mock--doc .adf-mock__paper {
	background:
		linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px) 0 0 / 100% 100%,
		#fff;
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.03);
}

.adf-mock__doctitle {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.adf-mock__date {
	margin: 4px 0 0;
	color: #6b7280;
	font-size: 0.86rem;
}

.adf-mock__fields {
	display: grid;
	gap: 6px;
	margin: 12px 0 0;
}

.adf-mock__fields div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding-top: 6px;
	border-top: 1px solid #f3f4f6;
}

.adf-mock__fields dt {
	color: #6b7280;
	font-size: 0.8rem;
}

.adf-mock__fields dd {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 600;
	text-align: right;
}

.adf-mock__items,
.adf-mock__grid {
	width: 100%;
	margin-top: 12px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.72rem;
}

.adf-mock__items th,
.adf-mock__items td {
	padding: 5px 4px;
	border: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
	word-break: break-word;
}

.adf-mock__items th {
	background: #f9fafb;
	color: #4b5563;
	font-size: 0.68rem;
	font-weight: 700;
}

.adf-mock__items th:nth-child(1),
.adf-mock__items td:nth-child(1) {
	width: 9%;
	text-align: center;
}

.adf-mock__items th:nth-child(3),
.adf-mock__items td:nth-child(3),
.adf-mock__items th:nth-child(4),
.adf-mock__items td:nth-child(4),
.adf-mock__items th:nth-child(5),
.adf-mock__items td:nth-child(5) {
	width: 14%;
	text-align: right;
	white-space: nowrap;
}

.adf-mock__more {
	margin: 8px 0 0;
	color: #6b7280;
	font-size: 0.78rem;
	font-style: italic;
}

.adf-mock__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 2px solid #111827;
	font-size: 0.86rem;
}

.adf-mock__total strong {
	font-size: 0.95rem;
	font-weight: 800;
	white-space: nowrap;
}

.adf-mock__sheet {
	padding: 0 0 48px;
	background: #e8f0e9;
}

.adf-mock__grid th,
.adf-mock__grid td {
	padding: 3px 4px;
	border: 1px solid #c5d6c8;
	background: #fff;
	text-align: left;
	vertical-align: top;
	word-break: break-word;
}

.adf-mock__grid thead th {
	background: #f3f4f6;
	color: #6b7280;
	font-size: 0.65rem;
	font-weight: 700;
	text-align: center;
}

.adf-mock__grid tbody th {
	width: 28px;
	background: #f3f4f6;
	color: #6b7280;
	font-size: 0.65rem;
	font-weight: 700;
	text-align: center;
}

.adf-mock__grid-head td {
	background: #e8f5e9 !important;
	color: #166534;
	font-weight: 700;
	font-size: 0.68rem;
}

.adf-mock__cell--title {
	font-weight: 700;
}

.adf-mock__cell--muted {
	color: #6b7280;
	font-style: italic;
	background: #f9fafb !important;
}

.adf-mock__cell--fill {
	background: #fde047 !important;
	color: #111827;
	font-weight: 600;
}

.adf-mock__cell--total {
	font-weight: 800;
	text-align: right;
}

.is-filling .adf-mock__cell--fill {
	animation: adfCellIn 0.45s ease forwards;
}

.adf-mock .adf-demo__badge {
	z-index: 2;
}

@media (min-width: 720px) {
	.adf-demo__card {
		padding: 36px 32px 32px;
	}

	.adf-demo__flow {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.adf-demo__pipeline {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}

	.adf-mock__paper {
		padding: 18px 16px 56px;
	}

	.adf-mock__items,
	.adf-mock__grid {
		font-size: 0.8rem;
	}

	.adf-mock__doctitle {
		font-size: 1.15rem;
	}
}

@media (min-width: 800px) {
	.adf-demo--cards .adf-demo__viewport {
		grid-template-columns: 1fr 40px 1fr;
		align-items: stretch;
		gap: 14px;
	}

	.adf-demo--cards .adf-demo__media {
		min-height: 420px;
	}

	.adf-demo__arrow svg {
		transform: none;
	}
}

@media (max-width: 640px) {
	.adf-demo {
		padding: 0 8px;
		margin: 4px auto 16px;
		max-width: 100%;
	}

	.adf-demo__card {
		padding: 20px 12px 18px;
		border-radius: 18px;
	}

	.adf-demo a.adf-demo__cta {
		width: 100%;
	}

	.adf-demo button.adf-demo__tab {
		padding: 9px 12px;
		font-size: 0.85rem;
	}

	.adf-mock__fields div {
		align-items: flex-start;
	}
}

@keyframes adfHint {
	0%,
	100% {
		box-shadow: none;
	}
	50% {
		box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
	}
}

@keyframes adfFillCell {
	0% {
		opacity: 0;
		transform: scaleX(0.15);
	}
	45% {
		opacity: 1;
		transform: scaleX(1);
	}
	100% {
		opacity: 0.45;
		transform: scaleX(1);
	}
}

@keyframes adfCellIn {
	0% {
		background: #fff;
		color: transparent;
	}
	100% {
		background: #fde047;
		color: #111827;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adf-demo__pane,
	.adf-demo a.adf-demo__cta,
	.adf-demo__tab,
	.adf-demo__fills span,
	.adf-mock__cell--fill {
		transition: none;
		animation: none;
	}

	.adf-mock__cell--fill {
		background: #fde047;
		color: #111827;
	}

	.is-filling .adf-demo__fills span {
		opacity: 0.45;
		transform: none;
	}
}
