/*!
 * Commercis Resources — frontend
 * All rules are scoped under .cr-scope. Brand colours come from Settings → Brand colours.
 * Override any token from your theme, e.g. .cr-scope { --cr-radius: 12px; --cr-font: inherit; }
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
.cr-scope {
	--cr-primary: #8B0A8F;
	--cr-dark: #06003c;
	--cr-accent: #f3c4f5;
	--cr-text: #474755;
	--cr-heading: var(--cr-dark);
	--cr-muted: #6d6d80;
	--cr-line: rgba(6, 0, 60, .1);
	--cr-surface: #fff;
	--cr-soft: #f6f4fa;
	--cr-danger: #c0262d;
	--cr-success: #12805c;
	--cr-radius: 20px;
	--cr-radius-sm: 12px;
	--cr-font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Kufi Arabic", sans-serif;
	--cr-shadow: 0 1px 2px rgba(6, 0, 60, .06), 0 8px 24px -12px rgba(6, 0, 60, .18);
	--cr-shadow-lg: 0 2px 6px rgba(6, 0, 60, .08), 0 30px 60px -20px rgba(6, 0, 60, .35);
	--cr-ring: 0 0 0 4px color-mix(in srgb, var(--cr-primary) 22%, transparent);
	--cr-ease: cubic-bezier(.2, .7, .2, 1);
	font-family: var(--cr-font);
	color: var(--cr-text);
	-webkit-font-smoothing: antialiased;
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.cr-scope { --cr-ring: 0 0 0 4px rgba(139, 10, 143, .22); }
}
.cr-scope *, .cr-scope *::before, .cr-scope *::after { box-sizing: border-box; }
.cr-scope :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
.cr-scope :where(h1, h2, h3) { color: var(--cr-heading); font-family: var(--cr-font); letter-spacing: -.01em; text-transform: none; }
.cr-scope :where(button, input, select, textarea) { font: inherit; letter-spacing: normal; text-transform: none; }
.cr-scope img { max-width: 100%; height: auto; }
.cr-scope[hidden], .cr-scope [hidden] { display: none !important; }
.cr-scope .cr-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.cr-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.cr-scope .cr-btn {
	--_bg: var(--cr-primary);
	--_fg: #fff;
	--_bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 46px; padding: .7em 1.45em;
	border: 1.5px solid var(--_bd); border-radius: 999px;
	background: var(--_bg); color: var(--_fg);
	font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
	cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
	transition: transform .2s var(--cr-ease), box-shadow .25s var(--cr-ease), background-color .2s, color .2s, border-color .2s;
	-webkit-tap-highlight-color: transparent;
}
.cr-scope .cr-btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .22) 50%, transparent 80%);
	transform: translateX(-120%); transition: transform .6s var(--cr-ease);
}
.cr-scope .cr-btn:hover::before { transform: translateX(120%); }
.cr-scope .cr-btn:hover { transform: translateY(-1px); }
.cr-scope .cr-btn:active { transform: translateY(0); }
.cr-scope .cr-btn:focus-visible { outline: none; box-shadow: var(--cr-ring); }
.cr-scope .cr-btn--primary { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--cr-primary) 70%, transparent); }
.cr-scope .cr-btn--primary:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--cr-primary) 80%, transparent); --_bg: color-mix(in srgb, var(--cr-primary) 88%, #000); }
.cr-scope .cr-btn--outline { --_bg: transparent; --_fg: var(--cr-dark); --_bd: var(--cr-line); }
.cr-scope .cr-btn--outline:hover { --_bd: var(--cr-primary); --_fg: var(--cr-primary); }
.cr-scope .cr-btn--light { --_bg: #fff; --_fg: var(--cr-dark); }
.cr-scope .cr-btn--light:hover { --_bg: var(--cr-accent); }
.cr-scope .cr-btn--dark { --_bg: var(--cr-dark); --_fg: #fff; }
.cr-scope .cr-btn--sm { min-height: 38px; padding: .5em 1.05em; font-size: 14px; }
.cr-scope .cr-btn--lg { min-height: 54px; padding: .85em 1.8em; font-size: 16px; }
.cr-scope .cr-btn--block { width: 100%; }
.cr-scope .cr-btn[disabled] { cursor: progress; opacity: .85; transform: none; }
.cr-scope .cr-btn .cr-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: cr-spin .7s linear infinite; }
.cr-scope .cr-btn.is-busy .cr-spinner { display: inline-block; }
.cr-scope .cr-btn.is-busy .cr-icon { display: none; }
.cr-inline { display: inline-block; }

.cr-scope .cr-link { background: none; border: 0; padding: 0; color: var(--cr-primary); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.cr-scope .cr-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cr-scope .cr-link--arrow .cr-icon { transition: transform .2s var(--cr-ease); }
.cr-scope .cr-link--arrow:hover .cr-icon { transform: translateX(3px); }
[dir="rtl"] .cr-scope .cr-icon--arrow, [dir="rtl"] .cr-scope .cr-option__go svg { transform: scaleX(-1); }

/* ------------------------------------------------------------------ */
/* Cover visual ("document on a stage")                                */
/* ------------------------------------------------------------------ */
.cr-scope .cr-stage {
	position: relative; display: grid; place-items: center; width: 100%; height: 100%;
	padding: 28px 24px 0; overflow: hidden;
	background:
		radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--cr-accent) 70%, transparent) 0%, transparent 55%),
		radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--cr-primary) 14%, transparent) 0%, transparent 60%),
		var(--cr-soft);
}
.cr-scope .cr-stage--dark { background: transparent; padding: 0; overflow: visible; }
.cr-scope .cr-doc {
	display: block; width: auto; max-width: 74%; max-height: 100%; aspect-ratio: 210 / 297;
	border-radius: 6px 6px 0 0; align-self: end;
	box-shadow: 0 -2px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px -12px rgba(6, 0, 60, .45), 0 2px 6px rgba(6, 0, 60, .12);
	transform-origin: 50% 100%;
	transition: transform .5s var(--cr-ease), box-shadow .5s var(--cr-ease);
}
.cr-scope .cr-doc--img { object-fit: cover; background: #fff; height: 100%; }
.cr-scope .cr-doc--gen {
	position: relative; height: 100%; overflow: hidden; padding: 12% 11%;
	display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
	background: linear-gradient(160deg, var(--cr-dark) 0%, color-mix(in srgb, var(--cr-dark) 75%, var(--cr-primary)) 100%);
	color: #fff;
}
.cr-scope .cr-doc__brand { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.cr-scope .cr-doc__title { position: relative; z-index: 1; font-size: clamp(13px, 1.25vw, 17px); font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18%; }
.cr-scope .cr-doc__curve {
	position: absolute; inset: auto -40% -38% -10%; height: 70%; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--cr-primary) 95%, #fff) 0%, var(--cr-primary) 40%, transparent 72%);
	opacity: .9; filter: blur(2px);
}
.cr-scope .cr-doc__curve::after { content: ""; position: absolute; inset: 22% 10% auto 20%; height: 2px; border-radius: 2px; background: var(--cr-accent); opacity: .7; transform: rotate(-12deg); }
.cr-scope .cr-badge {
	position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
	padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--cr-dark);
	font-size: 11px; font-weight: 700; letter-spacing: .06em; backdrop-filter: blur(6px);
	box-shadow: 0 1px 3px rgba(6, 0, 60, .1);
}

/* ------------------------------------------------------------------ */
/* Grid + cards                                                        */
/* ------------------------------------------------------------------ */
.cr-resources { --cr-cols: 3; }
.cr-scope .cr-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cr-scope .cr-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px;
	border-radius: 999px; border: 1.5px solid var(--cr-line); background: var(--cr-surface); color: var(--cr-dark);
	font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s var(--cr-ease);
}
.cr-scope .cr-chip:hover { border-color: color-mix(in srgb, var(--cr-primary) 45%, transparent); }
.cr-scope .cr-chip:focus-visible { outline: none; box-shadow: var(--cr-ring); }
.cr-scope .cr-chip.is-active { background: var(--cr-dark); border-color: var(--cr-dark); color: #fff; }
.cr-scope .cr-chip__count { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--cr-soft); color: var(--cr-muted); font-weight: 600; }
.cr-scope .cr-chip.is-active .cr-chip__count { background: rgba(255, 255, 255, .16); color: #fff; }

.cr-scope .cr-grid { display: grid; grid-template-columns: repeat(var(--cr-cols), minmax(0, 1fr)); gap: 28px; }
.cr-scope .cr-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--cr-surface); border: 1px solid var(--cr-line); border-radius: var(--cr-radius);
	overflow: hidden; box-shadow: var(--cr-shadow);
	transition: transform .35s var(--cr-ease), box-shadow .35s var(--cr-ease), border-color .35s;
	animation: cr-rise .6s var(--cr-ease) both; animation-delay: calc(var(--cr-i, 0) * 60ms);
}
.cr-scope .cr-card.is-in { animation: cr-rise .45s var(--cr-ease) both; }
.cr-scope .cr-card:hover { transform: translateY(-4px); box-shadow: var(--cr-shadow-lg); border-color: color-mix(in srgb, var(--cr-primary) 25%, transparent); }
.cr-scope .cr-card__cover { display: block; width: 100%; aspect-ratio: 16 / 11; padding: 0; border: 0; background: none; cursor: pointer; }
.cr-scope .cr-card:hover .cr-doc { transform: translateY(-6px) rotate(-1.5deg) scale(1.03); box-shadow: 0 -2px 0 rgba(255, 255, 255, .6) inset, 0 28px 50px -14px rgba(6, 0, 60, .5), 0 2px 6px rgba(6, 0, 60, .12); }
.cr-scope .cr-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; border-top: 1px solid var(--cr-line); }
.cr-scope .cr-card__cat { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cr-primary); }
.cr-scope .cr-card__title { font-size: 19px; line-height: 1.3; font-weight: 600; }
.cr-scope .cr-card__title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--cr-ease); }
.cr-scope .cr-card__title a:hover { background-size: 100% 1.5px; }
.cr-scope .cr-card__title a:focus-visible { outline: 2px solid var(--cr-primary); outline-offset: 3px; border-radius: 3px; }
.cr-scope .cr-card__excerpt { font-size: 14.5px; line-height: 1.6; color: var(--cr-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cr-scope .cr-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.cr-scope .cr-card__meta { font-size: 13px; color: var(--cr-muted); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cr-theme-dark { --cr-surface: rgba(255, 255, 255, .05); --cr-line: rgba(255, 255, 255, .12); --cr-heading: #fff; --cr-muted: rgba(255, 255, 255, .68); --cr-soft: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .85); }
.cr-theme-dark .cr-card { backdrop-filter: blur(10px); box-shadow: none; }
.cr-theme-dark .cr-card__cat { color: var(--cr-accent); }
.cr-theme-dark .cr-chip { color: #fff; }
.cr-theme-dark .cr-chip.is-active { background: #fff; color: var(--cr-dark); border-color: #fff; }
.cr-theme-dark .cr-chip.is-active .cr-chip__count { background: var(--cr-soft); color: var(--cr-dark); }

.cr-empty { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--cr-line); border-radius: var(--cr-radius); color: var(--cr-muted); }

@media (max-width: 1024px) { .cr-scope .cr-grid { grid-template-columns: repeat(min(var(--cr-cols), 2), minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 640px) {
	.cr-scope .cr-grid { grid-template-columns: 1fr; gap: 18px; }
	.cr-scope .cr-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
	.cr-scope .cr-filter::-webkit-scrollbar { display: none; }
	.cr-scope .cr-chip { flex: 0 0 auto; }
}

/* ------------------------------------------------------------------ */
/* Page templates                                                      */
/* ------------------------------------------------------------------ */
.cr-scope .cr-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.cr-scope .cr-hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
	background: var(--cr-dark); color: rgba(255, 255, 255, .78);
}
.cr-scope .cr-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%);
}
.cr-scope .cr-hero__glow {
	position: absolute; z-index: -1; inset: -30% -10% auto 35%; height: 140%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--cr-primary) 85%, transparent), transparent 70%);
	opacity: .55; filter: blur(30px); animation: cr-float 14s ease-in-out infinite alternate;
}
.cr-scope .cr-hero__inner { max-width: 1200px; }
.cr-scope .cr-hero__title { color: #fff; font-size: clamp(34px, 5vw, 60px); line-height: 1.08; font-weight: 600; max-width: 18ch; margin: 14px 0 18px; }
.cr-scope .cr-hero__intro { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; max-width: 60ch; }
.cr-scope .cr-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 34px; }
.cr-scope .cr-hero__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; font-size: 14px; }
.cr-scope .cr-hero__stats li { display: inline-flex; align-items: center; gap: 6px; }
.cr-scope .cr-hero__stats li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cr-accent); margin-inline-end: 16px; }
.cr-scope .cr-hero__stats strong { color: #fff; font-weight: 600; }
.cr-scope .cr-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
	color: var(--cr-accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.cr-scope .cr-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.cr-scope .cr-crumbs a { color: var(--cr-accent); text-decoration: none; }
.cr-scope .cr-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cr-scope .cr-crumbs [aria-current] { color: #fff; }

.cr-scope .cr-hero__split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.cr-scope .cr-hero--single { padding-bottom: 0; }
.cr-scope .cr-hero--single .cr-hero__copy { padding-bottom: clamp(56px, 7vw, 96px); }
.cr-scope .cr-hero__visual { align-self: end; height: clamp(320px, 38vw, 460px); }
.cr-scope .cr-hero__visual .cr-stage { background: transparent; padding: 0; overflow: visible; }
.cr-scope .cr-hero__visual .cr-doc { max-width: 78%; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); animation: cr-doc-in .9s var(--cr-ease) both .1s; }
.cr-scope .cr-hero__visual .cr-badge { inset-block-start: 8%; inset-inline-start: 4%; }
.cr-scope .cr-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 22px; }
.cr-scope .cr-chips li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 500; }

.cr-scope .cr-section { padding: clamp(48px, 7vw, 96px) 0; background: var(--cr-surface); }
.cr-scope .cr-section--soft { background: var(--cr-soft); }
.cr-scope .cr-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.cr-scope .cr-section__head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; }

.cr-scope .cr-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
.cr-scope .cr-single__form { position: sticky; top: calc(24px + var(--wp-admin--admin-bar--height, 0px)); scroll-margin-top: 96px; }
.cr-scope .cr-content__heading { font-size: clamp(24px, 3vw, 32px); font-weight: 600; margin-bottom: 20px; }
.cr-scope .cr-content__body { font-size: 16.5px; line-height: 1.75; }
.cr-scope .cr-content__body > * + * { margin-top: 1.1em; }
.cr-scope .cr-content__body h2, .cr-scope .cr-content__body h3 { margin-top: 1.6em; font-weight: 600; }
.cr-scope .cr-content__body ul { padding-inline-start: 0; list-style: none; }
.cr-scope .cr-content__body ul li { position: relative; padding-inline-start: 30px; margin-bottom: .55em; }
.cr-scope .cr-content__body ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--cr-primary) 12%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B0A8F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cr-scope .cr-content__body a { color: var(--cr-primary); }

@media (max-width: 960px) {
	.cr-scope .cr-hero__split { grid-template-columns: 1fr; gap: 0; }
	.cr-scope .cr-hero--single .cr-hero__copy { padding-bottom: 40px; }
	.cr-scope .cr-hero__visual { height: 300px; }
	.cr-scope .cr-single__layout { grid-template-columns: 1fr; gap: 40px; }
	.cr-scope .cr-single__form { position: static; }
}
@media (max-width: 640px) { .cr-scope .cr-container { padding-inline: 16px; } }

/* ------------------------------------------------------------------ */
/* Form controls                                                       */
/* ------------------------------------------------------------------ */
.cr-scope .cr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cr-scope .cr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cr-scope .cr-field--wide { grid-column: 1 / -1; }
.cr-scope .cr-field > label { font-size: 13.5px; font-weight: 600; color: var(--cr-dark); }
.cr-scope .cr-optional { font-weight: 400; color: var(--cr-muted); }
.cr-scope .cr-field input:not([type=checkbox]), .cr-scope .cr-select select {
	width: 100%; height: 48px; padding: 0 14px; margin: 0;
	border: 1.5px solid var(--cr-line); border-radius: var(--cr-radius-sm); background: #fff; color: var(--cr-dark);
	font-size: 15px; line-height: 1.2; box-shadow: none; outline: none; -webkit-appearance: none; appearance: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cr-scope .cr-field input::placeholder { color: #a3a3b3; opacity: 1; }
.cr-scope .cr-field input:hover, .cr-scope .cr-select select:hover { border-color: rgba(6, 0, 60, .22); }
.cr-scope .cr-field input:focus, .cr-scope .cr-select select:focus { border-color: var(--cr-primary); box-shadow: var(--cr-ring); }
.cr-scope .cr-field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .cr-scope .cr-field input[dir="ltr"] { text-align: right; }
.cr-scope .cr-select { position: relative; display: block; }
.cr-scope .cr-select::after { content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--cr-muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cr-scope .cr-select select { padding-inline-end: 40px; cursor: pointer; }
.cr-scope .cr-field.has-error input:not([type=checkbox]), .cr-scope .cr-field.has-error select { border-color: var(--cr-danger); background: #fff8f8; }
.cr-scope .cr-field.has-error input:focus { box-shadow: 0 0 0 4px rgba(192, 38, 45, .14); }
.cr-scope .cr-error { font-size: 12.5px; color: var(--cr-danger); font-weight: 500; min-height: 0; }
.cr-scope .cr-error:empty { display: none; }
.cr-scope .cr-field.has-error .cr-error { animation: cr-shake .35s var(--cr-ease); }

.cr-scope .cr-field--consent { margin-top: 16px; }
.cr-scope .cr-field > label.cr-check { font-weight: 400; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 13px; line-height: 1.55; color: var(--cr-muted); }
.cr-scope .cr-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-scope .cr-check__box { flex: 0 0 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid rgba(6, 0, 60, .25); background: #fff; display: grid; place-items: center; color: #fff; transition: all .2s var(--cr-ease); }
.cr-scope .cr-check__box .cr-icon { width: 14px; height: 14px; stroke-width: 3; transform: scale(0); transition: transform .2s var(--cr-ease); }
.cr-scope .cr-check input:checked + .cr-check__box { background: var(--cr-primary); border-color: var(--cr-primary); }
.cr-scope .cr-check input:checked + .cr-check__box .cr-icon { transform: scale(1); }
.cr-scope .cr-check input:focus-visible + .cr-check__box { box-shadow: var(--cr-ring); }
.cr-scope .cr-field--consent.has-error .cr-check__box { border-color: var(--cr-danger); }
.cr-scope .cr-check__text a { color: var(--cr-primary); }

.cr-scope .cr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr-scope .cr-form { position: relative; }
.cr-scope .cr-form > .cr-btn { margin-top: 22px; }
.cr-scope .cr-form__error { margin-top: 16px; padding: 12px 14px; border-radius: var(--cr-radius-sm); background: #fdecec; color: var(--cr-danger); font-size: 14px; font-weight: 500; }
.cr-scope .cr-form__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--cr-muted); }

@media (max-width: 560px) { .cr-scope .cr-fields { grid-template-columns: 1fr; gap: 14px; } }

/* Selected resource summary */
.cr-scope .cr-selected { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 22px; border: 1px solid var(--cr-line); border-radius: var(--cr-radius-sm); background: var(--cr-soft); }
.cr-scope .cr-selected__thumb { flex: 0 0 44px; height: 58px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--cr-dark), var(--cr-primary)); color: #fff; box-shadow: 0 6px 14px -6px rgba(6, 0, 60, .45); }
.cr-scope .cr-selected__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-scope .cr-selected__thumb .cr-icon { width: 22px; height: 22px; }
.cr-scope .cr-selected__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cr-scope .cr-selected__text strong { color: var(--cr-dark); font-size: 15px; font-weight: 600; line-height: 1.3; }
.cr-scope .cr-selected__text small { color: var(--cr-muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ */
/* Inline form card                                                    */
/* ------------------------------------------------------------------ */
.cr-inline-form { position: relative; background: var(--cr-surface); border: 1px solid var(--cr-line); border-radius: var(--cr-radius); padding: 30px 28px; box-shadow: var(--cr-shadow-lg); overflow: hidden; }
.cr-inline-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--cr-dark), var(--cr-primary), var(--cr-accent)); }
.cr-scope .cr-inline-form__title { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.cr-scope .cr-inline-form__intro { font-size: 14.5px; color: var(--cr-muted); margin-bottom: 22px; line-height: 1.55; }
.cr-inline-form .cr-fields { grid-template-columns: 1fr; gap: 14px; }
.cr-inline-form .cr-field[data-field="resource_id"] { margin-bottom: 14px; }
.cr-inline-form__done { text-align: center; }
.cr-inline-form__done > .cr-btn { margin-top: 22px; }
@media (min-width: 961px) { .cr-single__form .cr-inline-form .cr-fields { grid-template-columns: 1fr; } }
.cr-content .cr-inline-form .cr-fields, .entry-content .cr-inline-form .cr-fields { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .cr-content .cr-inline-form .cr-fields, .entry-content .cr-inline-form .cr-fields { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Modal                                                               */
/* ------------------------------------------------------------------ */
html.cr-lock { overflow: hidden; }
html.cr-lock body { padding-inline-end: var(--cr-sbw, 0); }
.cr-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 24px; }
.cr-modal__backdrop { position: absolute; inset: 0; background: rgba(6, 0, 60, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--cr-ease); }
.cr-modal__dialog {
	position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr);
	width: min(980px, 100%); height: min(720px, calc(100dvh - 48px)); grid-template-rows: minmax(0, 1fr);
	background: var(--cr-surface); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px -20px rgba(6, 0, 60, .55);
	opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s var(--cr-ease), transform .35s var(--cr-ease);
	outline: none;
}
.cr-modal.is-open .cr-modal__backdrop { opacity: 1; }
.cr-modal.is-open .cr-modal__dialog { opacity: 1; transform: none; }

/* Aside */
.cr-modal__aside {
	position: relative; display: flex; flex-direction: column; gap: 24px; padding: 34px 30px 30px; overflow: hidden; isolation: isolate;
	background: var(--cr-dark); color: rgba(255, 255, 255, .75);
}
.cr-modal__aside::before { content: ""; position: absolute; z-index: -1; inset: -20% -40% 30% -20%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cr-primary) 90%, transparent), transparent 70%); opacity: .7; filter: blur(20px); }
.cr-modal__aside::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.cr-aside__preview { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cr-aside__preview .cr-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; }
.cr-aside__preview .cr-doc { width: clamp(110px, calc((min(720px, 100dvh - 48px) - 400px) / 1.414), 200px); height: auto; max-width: 100%; max-height: none; aspect-ratio: 210 / 297; align-self: center; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); transform: rotate(-4deg); }
.cr-aside__preview.is-swap .cr-doc { animation: cr-swap .45s var(--cr-ease); }
.cr-aside__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cr-accent); min-height: 1.2em; }
.cr-aside__title { margin-top: 6px !important; font-size: 19px; font-weight: 600; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cr-aside__trust { list-style: none; padding: 18px 0 0; display: grid; gap: 10px; font-size: 13.5px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cr-aside__trust li { display: flex; align-items: center; gap: 10px; }
.cr-aside__trust .cr-icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--cr-accent); stroke-width: 2.5; }

/* Main column */
.cr-modal__main { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 36px 34px; }
.cr-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.cr-steps { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--cr-muted); }
.cr-steps li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; transition: color .2s; }
.cr-steps li + li::before { content: ""; width: 22px; height: 1.5px; background: var(--cr-line); margin-inline-end: 2px; }
.cr-steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--cr-line); font-size: 12px; font-weight: 600; transition: all .25s var(--cr-ease); }
.cr-steps li.is-active { color: var(--cr-dark); }
.cr-steps li.is-active span { background: var(--cr-primary); border-color: var(--cr-primary); color: #fff; box-shadow: var(--cr-ring); }
.cr-steps li.is-complete { color: var(--cr-dark); }
.cr-steps li.is-complete span { background: var(--cr-accent); border-color: var(--cr-accent); color: var(--cr-primary); }
.cr-steps li.is-complete + li::before { background: var(--cr-accent); }
.cr-modal__close { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cr-soft); color: var(--cr-dark); cursor: pointer; transition: background .2s, transform .2s var(--cr-ease); }
.cr-modal__close:hover { background: var(--cr-accent); transform: rotate(90deg); }
.cr-modal__close:focus-visible { outline: none; box-shadow: var(--cr-ring); }
.cr-modal__close .cr-icon { width: 20px; height: 20px; }

.cr-step { display: flex; flex-direction: column; min-height: 0; }
.cr-step.is-in { animation: cr-step-in .35s var(--cr-ease); }
.cr-modal__title { font-size: 26px !important; line-height: 1.2; font-weight: 600; outline: none; }
.cr-modal__intro { margin-top: 8px !important; font-size: 15px; line-height: 1.6; color: var(--cr-muted); margin-bottom: 22px !important; }

.cr-search { position: relative; display: block; margin-bottom: 14px; }
.cr-search .cr-icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--cr-muted); }
.cr-scope .cr-search input[type=search] { width: 100%; height: 46px; padding: 0 14px; padding-inline-start: 42px; border: 1.5px solid var(--cr-line); border-radius: 999px; background: var(--cr-soft); font-size: 15px; color: var(--cr-dark); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; }
.cr-scope .cr-search input[type=search]:focus { outline: none !important; border-color: var(--cr-primary); background: #fff; box-shadow: var(--cr-ring); }

.cr-picker { display: grid; gap: 10px; }
.cr-option {
	display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px; padding-inline-end: 18px; text-align: start;
	border: 1.5px solid var(--cr-line); border-radius: 16px; background: #fff; color: inherit; cursor: pointer;
	transition: border-color .2s, box-shadow .25s var(--cr-ease), transform .25s var(--cr-ease), background .2s;
}
.cr-option:hover { border-color: color-mix(in srgb, var(--cr-primary) 40%, transparent); box-shadow: 0 12px 26px -16px rgba(6, 0, 60, .35); transform: translateY(-1px); }
.cr-option:focus-visible { outline: none; border-color: var(--cr-primary); box-shadow: var(--cr-ring); }
.cr-option[aria-selected="true"] { border-color: var(--cr-primary); background: color-mix(in srgb, var(--cr-accent) 22%, #fff); }
.cr-option__thumb { flex: 0 0 52px; height: 68px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--cr-dark), color-mix(in srgb, var(--cr-dark) 60%, var(--cr-primary))); box-shadow: 0 8px 16px -8px rgba(6, 0, 60, .5); }
.cr-option__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-option__ext { color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.cr-option__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cr-option__cat { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--cr-primary); }
.cr-option__title { font-size: 15.5px; font-weight: 600; color: var(--cr-dark); line-height: 1.3; }
.cr-option__meta { font-size: 12.5px; color: var(--cr-muted); }
.cr-option__go { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cr-soft); color: var(--cr-dark); transition: all .25s var(--cr-ease); }
.cr-option__go svg { width: 16px; height: 16px; }
.cr-option:hover .cr-option__go, .cr-option:focus-visible .cr-option__go { background: var(--cr-primary); color: #fff; transform: translateX(2px); }
.cr-picker__empty { padding: 28px; text-align: center; color: var(--cr-muted); border: 1.5px dashed var(--cr-line); border-radius: 16px; }

/* Done */
.cr-step--done { flex: 1; justify-content: center; text-align: center; padding-bottom: 20px; }
.cr-done { display: flex; flex-direction: column; align-items: center; }
.cr-done__icon { position: relative; width: 84px; height: 84px; margin-bottom: 22px; }
.cr-done__icon::before, .cr-done__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--cr-success) 16%, transparent); }
.cr-done.is-animated .cr-done__icon::before { animation: cr-pulse 1.6s var(--cr-ease) .3s both; }
.cr-done.is-animated .cr-done__icon::after { animation: cr-pulse 1.6s var(--cr-ease) .55s both; }
.cr-done__icon svg { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; background: var(--cr-success); }
.cr-done__ring { stroke: rgba(255, 255, 255, .25); stroke-width: 2; }
.cr-done__tick { stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.cr-done.is-animated .cr-done__tick { animation: cr-draw .5s var(--cr-ease) .15s both; }
.cr-done.is-animated .cr-done__icon svg { animation: cr-pop .45s var(--cr-ease) both; }
.cr-scope .cr-done__title { font-size: 26px; font-weight: 600; outline: none; }
.cr-scope .cr-done__file { margin-top: 8px; font-size: 15px; color: var(--cr-dark); font-weight: 500; }
.cr-scope .cr-done__text { margin-top: 12px; max-width: 42ch; font-size: 14.5px; line-height: 1.6; color: var(--cr-muted); }
.cr-scope .cr-done__fallback { margin-top: 18px; font-size: 13.5px; color: var(--cr-muted); }
.cr-scope .cr-done__fallback a { color: var(--cr-primary); font-weight: 600; }
.cr-scope .cr-done__fallback.is-external { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cr-scope .cr-done__fallback.is-external a { color: #fff; }
.cr-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }

/* Mobile: bottom sheet */
@media (max-width: 820px) {
	.cr-modal { padding: 0; place-items: end stretch; }
	.cr-modal__dialog { display: flex; flex-direction: column; width: 100%; height: auto; max-height: 92dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .4s var(--cr-ease), opacity .2s; }
	.cr-modal.is-open .cr-modal__dialog { transform: none; }
	.cr-modal__aside { display: none; }
	.cr-modal__main { flex: 1 1 auto; padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); }
	.cr-modal__main::before { content: ""; align-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--cr-line); margin-bottom: 14px; flex: 0 0 auto; }
	.cr-modal__head { margin-bottom: 20px; }
	.cr-steps { font-size: 12px; gap: 6px; }
	.cr-steps li + li::before { width: 12px; }
	.cr-modal__title { font-size: 22px !important; }
}
@media (max-width: 400px) { .cr-steps li:not(.is-active) { font-size: 0; gap: 0; } .cr-steps li:not(.is-active) span { font-size: 12px; } }

/* ------------------------------------------------------------------ */
/* Floating launcher                                                   */
/* ------------------------------------------------------------------ */
.cr-floating { position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 99990; }
.cr-floating__btn {
	display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
	background: linear-gradient(135deg, var(--cr-primary), color-mix(in srgb, var(--cr-primary) 60%, var(--cr-dark)));
	color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
	box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--cr-primary) 80%, transparent), 0 0 0 1px rgba(255, 255, 255, .12) inset;
	transition: transform .25s var(--cr-ease), box-shadow .25s var(--cr-ease);
	animation: cr-rise .6s var(--cr-ease) 1s both;
}
.cr-floating__btn:hover { transform: translateY(-2px); }
.cr-floating__btn:focus-visible { outline: none; box-shadow: var(--cr-ring), 0 16px 34px -12px rgba(0, 0, 0, .4); }
.cr-floating__btn .cr-icon { width: 22px; height: 22px; }
@media (max-width: 640px) { .cr-floating { inset-block-end: 16px; inset-inline-end: 16px; } .cr-floating__btn { height: 48px; padding: 0 18px 0 14px; font-size: 14px; } }

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */
@keyframes cr-spin { to { transform: rotate(360deg); } }
@keyframes cr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cr-step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes cr-swap { from { opacity: .3; transform: rotate(-8deg) translateY(10px) scale(.96); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes cr-doc-in { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes cr-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6%, 8%, 0); } }
@keyframes cr-shake { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
@keyframes cr-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes cr-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes cr-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.cr-scope *, .cr-scope *::before, .cr-scope *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------------ */
/* Theme-proofing                                                      */
/* Many themes colour every <button> with high-specificity selectors   */
/* (e.g. button:not(:hover):not(:active)). Colours below use tokens so  */
/* variants still work while winning against theme rules.              */
/* ------------------------------------------------------------------ */
.cr-scope .cr-btn { background-color: var(--_bg) !important; background-image: none !important; color: var(--_fg) !important; border-color: var(--_bd) !important; }
.cr-scope .cr-chip { --_cbg: var(--cr-surface); --_cfg: var(--cr-dark); --_cbd: var(--cr-line); background-color: var(--_cbg) !important; color: var(--_cfg) !important; border-color: var(--_cbd) !important; }
.cr-scope .cr-chip:hover { --_cbd: color-mix(in srgb, var(--cr-primary) 45%, transparent); }
.cr-scope .cr-chip.is-active { --_cbg: var(--cr-dark); --_cfg: #fff; --_cbd: var(--cr-dark); }
.cr-theme-dark .cr-chip { --_cfg: #fff; }
.cr-theme-dark .cr-chip.is-active { --_cbg: #fff; --_cfg: var(--cr-dark); --_cbd: #fff; }
.cr-scope .cr-option { --_obg: #fff; --_obd: var(--cr-line); background-color: var(--_obg) !important; color: var(--cr-text) !important; border-color: var(--_obd) !important; }
.cr-scope .cr-option:hover { --_obd: color-mix(in srgb, var(--cr-primary) 40%, transparent); }
.cr-scope .cr-option:focus-visible { --_obd: var(--cr-primary); }
.cr-scope .cr-option[aria-selected="true"] { --_obg: color-mix(in srgb, var(--cr-accent) 22%, #fff); --_obd: var(--cr-primary); }
.cr-scope .cr-modal__close { --_xbg: var(--cr-soft); background-color: var(--_xbg) !important; color: var(--cr-dark) !important; border: 0 !important; padding: 0 !important; }
.cr-scope .cr-modal__close:hover { --_xbg: var(--cr-accent); }
.cr-scope .cr-card__cover, .cr-scope .cr-link { background-color: transparent !important; border: 0 !important; }
.cr-scope .cr-link { color: var(--cr-primary) !important; }
.cr-scope .cr-floating__btn { background-color: var(--cr-primary) !important; color: #fff !important; }
@media (max-width: 640px) {
	.cr-scope .cr-hero__actions { gap: 18px; }
	.cr-scope .cr-hero__actions > .cr-btn { width: 100%; }
	.cr-scope .cr-hero__stats li + li::before { display: none; }
}

/* ------------------------------------------------------------------ */
/* v2 — step numbering, page mode, panel                               */
/* ------------------------------------------------------------------ */
.cr-steps { counter-reset: crstep; }
.cr-steps li:not([hidden]) { counter-increment: crstep; }
.cr-steps li span::before { content: counter(crstep); }
.cr-steps li.is-complete span::before { content: "✓"; }
.cr-modal[data-mode="page"] [data-cr-stepdot="details"]::before { display: none; }

/* Count badge on buttons */
.cr-scope .cr-btn__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-inline-start: 2px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: inherit; font-size: 12px; font-weight: 700; line-height: 1; }
.cr-scope .cr-btn--outline .cr-btn__count, .cr-scope .cr-btn--light .cr-btn__count { background: color-mix(in srgb, var(--cr-primary) 14%, transparent); color: var(--cr-primary); }
.cr-scope .cr-btn__count[hidden] { display: none !important; }
.cr-floating__btn .cr-btn__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 700; }

/* Resource tick list (modal page mode + inline form) */
.cr-scope .cr-setlist { margin-bottom: 20px; }
.cr-scope .cr-setlist__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cr-scope .cr-setlist__label { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cr-muted); }
.cr-scope .cr-setlist__items { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; padding: 2px; margin: -2px; overscroll-behavior: contain; }
.cr-scope .cr-setitem {
	position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; margin: 0;
	border: 1.5px solid var(--cr-line); border-radius: 14px; background: #fff; cursor: pointer;
	font-weight: 400; transition: border-color .2s, background .2s, box-shadow .25s var(--cr-ease);
}
.cr-scope .cr-setitem:hover { border-color: color-mix(in srgb, var(--cr-primary) 40%, transparent); }
.cr-scope .cr-setitem input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cr-scope .cr-setitem:has(input:checked) { border-color: var(--cr-primary); background: color-mix(in srgb, var(--cr-accent) 20%, #fff); }
.cr-scope .cr-setitem:has(input:focus-visible) { box-shadow: var(--cr-ring); }
.cr-scope .cr-setitem__thumb { flex: 0 0 40px; height: 52px; border-radius: 5px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--cr-dark), color-mix(in srgb, var(--cr-dark) 60%, var(--cr-primary))); box-shadow: 0 6px 14px -8px rgba(6, 0, 60, .5); }
.cr-scope .cr-setitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-scope .cr-setitem__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cr-scope .cr-setitem__text strong { color: var(--cr-dark); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.cr-scope .cr-setitem__text small { color: var(--cr-muted); font-size: 12.5px; }
.cr-scope .cr-setitem__check { flex: 0 0 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(6, 0, 60, .25); display: grid; place-items: center; color: #fff; background: #fff; transition: all .2s var(--cr-ease); }
.cr-scope .cr-setitem__check .cr-icon { width: 15px; height: 15px; transform: scale(0); transition: transform .2s var(--cr-ease); }
.cr-scope .cr-setitem input:checked ~ .cr-setitem__check { background: var(--cr-primary); border-color: var(--cr-primary); }
.cr-scope .cr-setitem input:checked ~ .cr-setitem__check .cr-icon { transform: scale(1); }
.cr-scope .cr-setlist.has-error .cr-setitem { border-color: color-mix(in srgb, var(--cr-danger) 50%, transparent); }
.cr-scope .cr-setlist > .cr-error { margin-top: 6px; display: block; }
.cr-scope .cr-setlist > .cr-error:empty { display: none; }
.cr-inline-form .cr-setlist { margin-bottom: 16px; }
.cr-modal .cr-setlist__items { max-height: none; overflow: visible; }
.cr-modal .cr-setitem { padding: 8px 12px 8px 8px; gap: 12px; border-radius: 12px; }
.cr-modal .cr-setitem__thumb { flex-basis: 34px; height: 44px; }
.cr-modal .cr-setitem__text strong { font-size: 14px; }
.cr-inline-form .cr-setlist__items { max-height: none; }

/* Success: several items */
.cr-scope .cr-done__items { list-style: none; padding: 0; margin: 18px 0 0; width: 100%; max-width: 420px; display: grid; gap: 8px; text-align: start; }
.cr-scope .cr-done__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--cr-line); border-radius: 12px; background: var(--cr-soft); }
.cr-scope .cr-done__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--cr-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-scope .cr-done__get { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--cr-line); color: var(--cr-primary); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; }
.cr-scope .cr-done__get:hover { background: var(--cr-primary); border-color: var(--cr-primary); color: #fff; }
.cr-scope .cr-done__get .cr-icon { width: 15px; height: 15px; }

/* Page panel */
.cr-panel {
	position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; container-name: crpanel;
	margin: 48px 0; padding: clamp(24px, 4vw, 40px);
	border-radius: 24px; background: var(--cr-dark); color: rgba(255, 255, 255, .78);
	box-shadow: 0 30px 60px -30px rgba(6, 0, 60, .6);
}
.cr-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(70% 90% at 100% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 100% 0%, #000, transparent 75%); }
.cr-scope .cr-panel__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 40px; align-items: center; }
.cr-panel__glow { position: absolute; z-index: -1; inset: -40% -20% auto 40%; height: 160%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cr-primary) 85%, transparent), transparent 70%); opacity: .6; filter: blur(24px); }
.cr-scope .cr-panel__intro { display: flex; gap: 24px; align-items: center; }
.cr-scope .cr-panel__stack { position: relative; flex: 0 0 92px; height: 116px; }
.cr-scope .cr-panel__sheet { position: absolute; inset: 0 auto auto 0; width: 76px; height: 104px; border-radius: 5px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #1b1060, var(--cr-primary)); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); transform: translate(calc(var(--n) * 8px), calc(var(--n) * 6px)) rotate(calc(-8deg + var(--n) * 6deg)); transition: transform .4s var(--cr-ease); }
.cr-panel:hover .cr-panel__sheet { transform: translate(calc(var(--n) * 12px), calc(var(--n) * 4px)) rotate(calc(-10deg + var(--n) * 9deg)); }
.cr-scope .cr-panel__sheet img { width: 100%; height: 100%; object-fit: cover; }
.cr-scope .cr-panel__sheet-ext { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.cr-scope .cr-panel__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cr-accent); margin-bottom: 6px; }
.cr-scope .cr-panel__title { color: #fff; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; font-weight: 600; margin: 0; }
.cr-scope .cr-panel__text { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.cr-scope .cr-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-row: span 2; }
.cr-scope .cr-panel__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cr-scope .cr-panel__ext { flex: 0 0 auto; min-width: 40px; padding: 5px 0; text-align: center; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--cr-accent); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
.cr-scope .cr-panel__name { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cr-scope .cr-panel__name strong { color: #fff; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-scope .cr-panel__name small { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.cr-scope .cr-panel__more { padding: 4px 14px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.cr-scope .cr-panel__action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cr-scope .cr-panel__note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.cr-scope .cr-panel__note .cr-icon { width: 15px; height: 15px; }
.cr-page-button { margin: 32px 0; }
@container crpanel (max-width: 760px) {
	.cr-scope .cr-panel__grid { grid-template-columns: 1fr; gap: 24px; }
	.cr-scope .cr-panel__list { grid-row: auto; }
}
@container crpanel (max-width: 480px) {
	.cr-scope .cr-panel__intro { flex-direction: column; align-items: flex-start; gap: 18px; }
	.cr-scope .cr-panel__action > .cr-inline, .cr-scope .cr-panel__action .cr-btn { width: 100%; }
}
@media (max-width: 560px) {
	.cr-scope .cr-panel__intro { flex-direction: column; align-items: flex-start; gap: 18px; }
	.cr-scope .cr-panel__stack { height: 108px; }
	.cr-scope .cr-panel__action > .cr-inline, .cr-scope .cr-panel__action .cr-btn { width: 100%; }
}
.cr-scope { box-sizing: border-box; }
.cr-scope .cr-panel__item, .cr-scope .cr-setitem, .cr-scope .cr-done__item { min-width: 0; }
.cr-panel { max-width: 100%; }
