.be-mastery {
	--bm-ink: #1a2e24;
	--bm-leaf: #2f6b4f;
	--bm-leaf-deep: #1f6b4a;
	--bm-cream: #f7f3ea;
	--bm-sand: #e8dfd0;
	--bm-warn: #8a5a12;
	--bm-ok: #1f6b3a;
	font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-size: 1.125rem;
	color: var(--bm-ink);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(47, 107, 79, 0.12), transparent 60%),
		linear-gradient(180deg, #fbf8f1 0%, var(--bm-cream) 40%, #f3eee4 100%);
	padding: 2.5rem 1.25rem 4rem;
	margin: 0 calc(50% - 50vw);
	width: 100vw;
	box-sizing: border-box;
}

.be-mastery *,
.be-mastery *::before,
.be-mastery *::after {
	box-sizing: border-box;
}

.be-mastery-hero {
	max-width: 780px;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.be-mastery-kicker {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.85rem;
	color: var(--bm-leaf);
	margin: 0 0 0.6rem;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.be-mastery-hero h1 {
	font-size: clamp(2.35rem, 5vw, 3.4rem);
	line-height: 1.1;
	margin: 0 0 0.85rem;
	font-weight: 650;
}

.be-mastery-hero p {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.55;
	opacity: 0.9;
}

.be-mastery-banner {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto 1.75rem;
	padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1.15rem, 3vw, 2rem);
	border-radius: 18px;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
	font-size: 1.05rem;
	box-shadow: 0 14px 36px rgba(26, 46, 36, 0.1);
}

.be-mastery-banner.is-ok {
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
		linear-gradient(160deg, #dff5e8 0%, #c8ecd6 100%);
	border: 2px solid rgba(21, 128, 61, 0.28);
	color: #14532d;
}

.be-mastery-banner.is-warn {
	background: #fff4df;
	color: var(--bm-warn);
}

.be-mastery-banner-title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.25rem, 3.6vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.be-mastery-banner-next {
	margin: 0 0 1.25rem;
	max-width: 40rem;
	font-size: clamp(1rem, 2.6vw, 1.2rem);
	line-height: 1.5;
	opacity: 0.95;
}

.be-mastery-banner .be-mastery-btn,
.be-mastery-banner .be-mastery-btn:visited,
.be-mastery-banner .be-mastery-btn:hover,
.be-mastery-banner .be-mastery-btn:active,
.be-mastery-banner .be-mastery-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 28rem;
	min-height: 3.25rem;
	padding: 0.95rem 1.4rem;
	font-size: clamp(1.05rem, 2.8vw, 1.2rem);
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	color: #fff !important;
	background: #15803d;
	box-shadow: 0 12px 28px rgba(21, 128, 61, 0.32);
}

.be-mastery-banner .be-mastery-btn:hover {
	background: #166534;
	color: #fff !important;
}

@media (min-width: 720px) {
	.be-mastery-banner .be-mastery-btn {
		width: auto;
		min-width: 18rem;
	}
}

.be-mastery-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.35rem;
}

.be-mastery-card {
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid rgba(26, 46, 36, 0.08);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: bm-rise 0.55s ease both;
	backdrop-filter: blur(8px);
}

.be-mastery-card.is-past {
	opacity: 0.78;
}

.be-mastery-card-open {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.be-mastery-card-media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--bm-sand);
	overflow: hidden;
}

.be-mastery-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.be-mastery-ribbon {
	position: absolute;
	top: 1.15rem;
	left: 0;
	z-index: 2;
	display: inline-flex;
	max-width: calc(100% - 0.85rem);
	pointer-events: none;
}

.be-mastery-ribbon > span {
	display: inline-block;
	padding: 0.74rem 1.62rem 0.74rem 1.26rem;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
	font-size: 1.34rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.15;
	color: #fff;
	background: var(--bm-leaf-deep);
	box-shadow: 0 8px 22px rgba(26, 46, 36, 0.22);
	clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 50%, calc(100% - 17px) 100%, 0 100%);
}

.be-mastery-detail-media .be-mastery-ribbon > span {
	font-size: 1.44rem;
	padding: 0.84rem 1.8rem 0.84rem 1.38rem;
}

.be-mastery-ribbon.is-leaf > span {
	background: linear-gradient(135deg, #2f6b4f, #1f6b4a);
}

.be-mastery-ribbon.is-amber > span {
	background: linear-gradient(135deg, #b7791f, #8a5a12);
}

.be-mastery-ribbon.is-coral > span {
	background: linear-gradient(135deg, #c45c4a, #9b3d32);
}

.be-mastery-ribbon.is-neon-lime > span {
	color: #102410;
	background: linear-gradient(135deg, #d4ff3a, #a8f000);
	box-shadow: 0 0 18px rgba(190, 255, 40, 0.55), 0 8px 22px rgba(26, 46, 36, 0.18);
}

.be-mastery-ribbon.is-neon-yellow > span {
	color: #2a2200;
	background: linear-gradient(135deg, #ffe14a, #ffc400);
	box-shadow: 0 0 18px rgba(255, 220, 40, 0.55), 0 8px 22px rgba(26, 46, 36, 0.18);
}

.be-mastery-ribbon.is-neon-orange > span {
	color: #2a1200;
	background: linear-gradient(135deg, #ff9f1a, #ff6a00);
	box-shadow: 0 0 18px rgba(255, 140, 20, 0.55), 0 8px 22px rgba(26, 46, 36, 0.18);
}

.be-mastery-ribbon.is-neon-pink > span {
	color: #2a0414;
	background: linear-gradient(135deg, #ff4d9a, #ff1f7a);
	box-shadow: 0 0 18px rgba(255, 60, 140, 0.55), 0 8px 22px rgba(26, 46, 36, 0.18);
}

.be-mastery-ribbon.is-neon-magenta > span {
	color: #fff;
	background: linear-gradient(135deg, #ff2bd6, #d100ff);
	box-shadow: 0 0 18px rgba(255, 40, 220, 0.55), 0 8px 22px rgba(26, 46, 36, 0.18);
}

.be-mastery-ribbon.is-neon-cyan > span {
	color: #042428;
	background: linear-gradient(135deg, #3dfff0, #00e5ff);
	box-shadow: 0 0 18px rgba(40, 240, 255, 0.55), 0 8px 22px rgba(26, 46, 36, 0.18);
}

.be-mastery-ribbon.is-neon-blue > span {
	color: #fff;
	background: linear-gradient(135deg, #3d8bff, #0066ff);
	box-shadow: 0 0 18px rgba(40, 130, 255, 0.55), 0 8px 22px rgba(26, 46, 36, 0.18);
}

.be-mastery-ribbon.is-neon-green > span {
	color: #042412;
	background: linear-gradient(135deg, #39ff88, #00e65c);
	box-shadow: 0 0 18px rgba(40, 255, 120, 0.55), 0 8px 22px rgba(26, 46, 36, 0.18);
}

.be-mastery-card-open:hover .be-mastery-card-media img,
.be-mastery-card-open:focus-visible .be-mastery-card-media img {
	transform: scale(1.04);
}

.be-mastery-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.15rem 1.2rem 1rem;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.be-mastery-card-body strong {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 650;
}

.be-mastery-card-body em {
	font-style: normal;
	color: var(--bm-leaf);
	font-size: 1rem;
	line-height: 1.4;
}

.be-mastery-card-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.55rem;
	row-gap: 0.15rem;
	margin-top: 0.35rem;
	padding-top: 0.55rem;
	border-top: 1px solid rgba(26, 46, 36, 0.1);
}

.be-mastery-card-price-main {
	display: inline-flex;
	align-items: baseline;
	gap: 0.28rem;
	color: var(--bm-ink);
	line-height: 1;
}

.be-mastery-card-price-currency {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	opacity: 0.72;
	transform: translateY(-0.12em);
}

.be-mastery-card-price-amount {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 2.35rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--bm-leaf-deep);
	font-variant-numeric: tabular-nums;
}

.be-mastery-card-price-note {
	font-size: 0.92rem;
	font-weight: 600;
	opacity: 0.7;
	text-transform: lowercase;
}

.be-mastery-card-price-extra {
	flex: 1 1 100%;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bm-ink);
	opacity: 0.78;
}

.be-mastery-card-seats {
	font-size: 0.95rem;
	font-weight: 600;
	opacity: 0.72;
}

.be-mastery-qr-btn,
.be-mastery-btn,
.be-mastery-dialog button.be-mastery-primary {
	appearance: none;
	border: 0;
	background: var(--bm-leaf-deep);
	color: #fff;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 0.8rem 1.15rem;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.be-mastery-btn:hover,
.be-mastery-dialog button.be-mastery-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(31, 107, 74, 0.28);
}

.be-mastery-btn.is-busy,
.be-mastery-dialog button.be-mastery-primary.is-busy,
.be-mastery-dialog button.be-mastery-ghost.is-busy,
.be-mastery-qr-btn.is-busy {
	pointer-events: none;
	cursor: wait;
	opacity: 0.92;
	box-shadow: none;
	transform: none;
}

.be-mastery-btn.is-busy::before,
.be-mastery-dialog button.be-mastery-primary.is-busy::before,
.be-mastery-dialog button.be-mastery-ghost.is-busy::before {
	content: "";
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.55em;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: be-mastery-spin 0.7s linear infinite;
	flex-shrink: 0;
}

.be-mastery-dialog button.be-mastery-ghost.is-busy::before {
	border-color: rgba(31, 107, 74, 0.25);
	border-top-color: var(--bm-leaf-deep);
}

.be-mastery-btn.is-ok,
.be-mastery-dialog button.be-mastery-primary.is-ok {
	pointer-events: none;
	background: #15803d;
	box-shadow: 0 10px 22px rgba(21, 128, 61, 0.28);
}

.be-mastery-btn.is-ok::before,
.be-mastery-dialog button.be-mastery-primary.is-ok::before {
	content: "✓";
	margin-right: 0.45em;
	font-weight: 800;
	line-height: 1;
}

.be-mastery-btn-status {
	margin: 0.65rem 0 0;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--bm-leaf-deep);
	min-height: 1.35em;
}

.be-mastery-btn-status.is-busy {
	color: #3f6212;
}

.be-mastery-btn-status.is-ok {
	color: #15803d;
}

.be-mastery-btn-status.is-err {
	color: #b91c1c;
}

@keyframes be-mastery-spin {
	to {
		transform: rotate(360deg);
	}
}

.be-mastery-qr-btn {
	margin: 0 1rem 1rem;
	background: transparent;
	color: var(--bm-leaf);
	border: 1px solid rgba(47, 107, 79, 0.35);
}

.be-mastery-btn-xl {
	width: 100%;
	max-width: 420px;
	min-height: 64px;
	font-size: 1.35rem;
	padding: 1.05rem 1.4rem;
	border-radius: 16px;
	box-shadow: 0 14px 30px rgba(31, 107, 74, 0.25);
}

/* —— Trending dialogs —— */
.be-mastery-dialog {
	border: 0;
	border-radius: 24px;
	padding: 0;
	max-width: min(760px, 94vw);
	width: 100%;
	max-height: min(92vh, 920px);
	background:
		linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 243, 234, 0.96));
	color: var(--bm-ink);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.65) inset,
		0 30px 80px rgba(20, 35, 28, 0.32),
		0 8px 24px rgba(31, 107, 74, 0.12);
	overflow: hidden;
	animation: bm-pop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.be-mastery-dialog::backdrop {
	background: rgba(12, 24, 18, 0.52);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.be-mastery-dialog-inner {
	padding: 1.85rem 1.85rem 2rem;
	position: relative;
	max-height: min(92vh, 920px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.be-mastery-dialog-inner.is-qr {
	text-align: center;
	padding: 2rem 1.75rem;
}

.be-mastery-close {
	position: absolute;
	top: 0.7rem;
	right: 0.85rem;
	z-index: 2;
	appearance: none;
	border: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	color: var(--bm-ink);
}

.be-mastery-detail-media {
	position: relative;
	margin: -0.35rem -0.15rem 1.25rem;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(145deg, #e8dfd0, #f7f3ea);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
}

.be-mastery-detail-media img {
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	display: block;
}

.be-mastery-dialog [data-mastery-detail] h2 {
	font-size: 1.85rem;
	margin: 0 0 0.55rem;
}

.be-mastery-dialog [data-mastery-detail] p {
	font-size: 1.08rem;
	line-height: 1.55;
	margin: 0.45rem 0;
}

.be-mastery-desc {
	font-size: 1.08rem;
	line-height: 1.65;
	padding: 0.35rem 0 0.5rem;
}

.be-mastery-steps {
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
	margin-top: 1.35rem;
	padding: 1.35rem 1.25rem 1.45rem;
	border-radius: 20px;
	background: #fff;
	border: 1px solid rgba(26, 46, 36, 0.08);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
	color: #14231c;
}

.be-mastery-steps h3 {
	margin: 0 0 1rem;
	font-size: 1.2rem;
	font-weight: 750;
	letter-spacing: -0.01em;
	color: #143342;
}

.be-mastery-field {
	display: block;
	margin: 0 0 0.9rem;
	font-size: 0.92rem;
	font-weight: 650;
	color: #334155;
}

.be-mastery-steps input,
.be-mastery-steps select {
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid #d7dde5;
	border-radius: 12px;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 500;
	color: #0f172a;
	background: #f8fafc;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.be-mastery-steps input:focus,
.be-mastery-steps select:focus {
	outline: none;
	border-color: #1f6b4a;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.14);
}

.be-mastery-steps input[readonly] {
	background: #eef2f6;
	color: #1e293b;
}

.be-mastery-flex-row {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.be-mastery-flex-row .be-mastery-field {
	flex: 1 1 0;
	min-width: 0;
}

.be-mastery-field-age {
	max-width: 7.5rem;
}

.be-mastery-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px !important;
	width: 1px !important;
	overflow: hidden !important;
}

.be-mastery-child-row {
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 1rem 1rem 0.35rem;
	margin: 0 0 0.9rem;
	background: #fbfcfd;
}

.be-mastery-child-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.65rem;
	font-size: 0.85rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.be-mastery-add-child {
	width: 100%;
	margin: 0.15rem 0 1.1rem;
}

.be-mastery-addons-block {
	margin: 1.15rem 0 0.35rem;
	padding-top: 0.35rem;
}

.be-mastery-addon-item {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 0.85rem 0.95rem;
	margin: 0 0 0.65rem;
	background: #fff;
}

.be-mastery-addon-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.75rem;
}

.be-mastery-addon-copy {
	flex: 1 1 12rem;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.be-mastery-addon-copy strong {
	font-size: 1rem;
	color: #0f172a;
}

.be-mastery-addon-copy span {
	font-size: 0.9rem;
	color: #64748b;
	font-weight: 500;
}

.be-mastery-addon-qty {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 650;
	color: #334155;
}

.be-mastery-addon-qty input {
	width: 3.25rem;
	min-width: 3.25rem;
	max-width: 3.25rem;
	margin: 0;
	padding: 0.55rem 0.35rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.be-mastery-text-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: #64748b;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 650;
	cursor: pointer;
	padding: 0.35rem 0.2rem;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.be-mastery-transfer-block {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.55rem 0.65rem;
	align-items: end;
	margin: 0.85rem 0 0.35rem;
	padding: 0.85rem 0.9rem;
	border-radius: 14px;
	background: rgba(236, 253, 245, 0.55);
	border: 1px solid rgba(167, 243, 208, 0.7);
}

.be-mastery-transfer-block .be-mastery-field {
	margin: 0;
	grid-column: 1;
}

.be-mastery-transfer-block .be-mastery-ghost {
	grid-column: 2;
	align-self: end;
}

.be-mastery-transfer-msg,
.be-mastery-transfer-applied {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.88rem;
	color: #065f46;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.be-mastery-transfer-msg[hidden] {
	display: none;
}

.be-mastery-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.35rem 0 0.35rem;
	padding: 1rem 1.1rem;
	border-radius: 14px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.be-mastery-total span {
	font-size: 1.05rem;
	font-weight: 700;
	color: #065f46;
	letter-spacing: 0.02em;
}

.be-mastery-total strong {
	font-size: clamp(1.55rem, 4vw, 1.9rem);
	font-weight: 800;
	color: #047857;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.be-mastery-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.35rem;
	padding-top: 0.35rem;
}

.be-mastery-row-actions .be-mastery-primary {
	flex: 1 1 12rem;
	min-height: 52px;
	border-radius: 14px;
}

.be-mastery-row-actions .be-mastery-ghost {
	min-height: 52px;
}

.be-mastery-ghost {
	appearance: none;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #334155;
	border-radius: 14px;
	padding: 0.75rem 1.05rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 650;
	cursor: pointer;
}

.be-mastery-error {
	color: #9b1c1c;
	font-size: 1rem;
	margin: 0.75rem 0 0;
}

.be-mastery-step-hint {
	font-size: 1rem;
	opacity: 0.85;
	margin: 0 0 0.75rem;
}

/* —— Attendance page —— */
.be-mastery-attend {
	--bm-leaf-deep: #1f6b4a;
	max-width: min(920px, 100%);
	margin: 0.75rem auto 2rem;
	padding: 1.25rem 1rem 2rem;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
	background: linear-gradient(180deg, #fbf8f1, #f3eee4);
	border-radius: 18px;
	box-sizing: border-box;
}

.be-mastery-attend-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1f6b4a;
	font-weight: 700;
}

.be-mastery-attend-title {
	margin: 0 0 0.5rem;
	font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	font-size: clamp(2.35rem, 5vw, 3.4rem);
	line-height: 1.1;
	color: #1a2e24;
	font-weight: 650;
}

.be-mastery-attend-program {
	margin: 0.25rem 0 0.35rem;
	font-size: 1.35rem;
	color: #1f6b4a;
}

.be-mastery-attend-schedule,
.be-mastery-attend-lead {
	font-size: 1.1rem;
	line-height: 1.5;
	margin: 0.35rem 0 1rem;
	color: #334155;
}

.be-mastery-attend-none,
.be-mastery-attend-status {
	font-size: clamp(1.45rem, 4vw, 1.9rem);
	line-height: 1.35;
	font-weight: 750;
	margin: 1.25rem 0 1.1rem;
}

.be-mastery-attend-status.is-warn {
	color: #9a3412;
}

.be-mastery-attend-status.is-pending {
	color: #92400e;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 16px;
	padding: 1rem 1.1rem;
	text-align: center;
}

.be-mastery-attend-pending-lead {
	font-size: 1.15rem;
	line-height: 1.5;
	color: #334155;
	margin: 0 0 1.15rem;
}

.be-mastery-attend-summary {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 1.1rem 1.15rem;
	margin: 0 0 1.35rem;
}

.be-mastery-attend-summary h3 {
	margin: 1rem 0 0.45rem;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.be-mastery-attend-summary ul {
	margin: 0.25rem 0 0;
	padding-left: 1.15rem;
	font-size: 1.08rem;
	color: #0f172a;
}

.be-mastery-attend-summary li span {
	color: #64748b;
	font-weight: 500;
}

.be-mastery-attend-amount {
	margin: 0.65rem 0 0;
	font-size: 1.15rem;
}

.be-mastery-attend-muted {
	margin: 0.25rem 0 0;
	color: #64748b;
	font-size: 1rem;
}

.be-mastery-attend-form label {
	display: block;
	margin: 1rem 0 1.25rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.be-mastery-attend-form input[type="email"],
.be-mastery-attend-form select {
	width: 100%;
	padding: 0.85rem 0.95rem;
	margin-top: 0.4rem;
	border-radius: 12px;
	border: 1px solid rgba(26, 46, 36, 0.2);
	font-size: 1.15rem;
	background: #fff;
}

.be-mastery-attend-day {
	margin: 0.35rem 0 1rem;
	font-size: 1.1rem;
	color: #334155;
}

.be-mastery-attend-pick {
	margin: 0.35rem 0 1.25rem;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.be-mastery-attend-pick legend {
	padding: 0;
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1a2e24;
}

.be-mastery-attend-pick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
	gap: 0.75rem;
}

.be-mastery-attend-pick-card {
	display: block !important;
	margin: 0 !important;
	font-weight: 600;
	cursor: pointer;
	position: relative;
}

.be-mastery-attend-pick-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

.be-mastery-attend-pick-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 4.75rem;
	padding: 0.95rem 1rem;
	border-radius: 16px;
	border: 1.5px solid rgba(26, 46, 36, 0.16);
	background: #fff;
	box-shadow: 0 1px 0 rgba(26, 46, 36, 0.04);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.be-mastery-attend-pick-card-body strong {
	font-size: 1.05rem;
	line-height: 1.3;
	color: #1a2e24;
}

.be-mastery-attend-pick-card-body em {
	font-style: normal;
	font-size: 0.85rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.be-mastery-attend-pick-card:hover .be-mastery-attend-pick-card-body {
	border-color: rgba(31, 107, 74, 0.45);
	transform: translateY(-1px);
}

.be-mastery-attend-pick-card input:focus-visible + .be-mastery-attend-pick-card-body {
	outline: 2px solid #1f6b4a;
	outline-offset: 2px;
}

.be-mastery-attend-pick-card input:checked + .be-mastery-attend-pick-card-body {
	border-color: #1f6b4a;
	background: linear-gradient(180deg, #eef8f2, #e7f4ec);
	box-shadow: 0 0 0 1px rgba(31, 107, 74, 0.25);
}

.be-mastery-attend-pick-card input:checked + .be-mastery-attend-pick-card-body em {
	color: #1f6b4a;
}

.be-mastery-attend-pick-card input[type="checkbox"]:not(:checked) + .be-mastery-attend-pick-card-body em {
	opacity: 0.55;
}

.be-mastery-attend-status.is-ok-soft {
	color: #1f6b4a;
	font-size: 1.05rem;
	font-weight: 650;
}

.be-mastery-attend-pick-hint {
	margin: 0 0 0.75rem;
	padding: 0.7rem 0.85rem;
	border-radius: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-weight: 650;
}

.be-mastery-attend-child-card {
	cursor: pointer;
}

.be-mastery-attend-child-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

.be-mastery-attend-child-card .be-mastery-attend-pick-card-body {
	gap: 0.45rem;
	min-height: 5.25rem;
	justify-content: center;
}

.be-mastery-attend-child-name {
	font-size: clamp(1.25rem, 3.6vw, 1.55rem) !important;
	line-height: 1.25 !important;
	font-weight: 750 !important;
}

.be-mastery-attend-child-card [data-mark-label] {
	font-style: normal;
	font-size: 0.85rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.be-mastery-attend-child-card.is-selected .be-mastery-attend-pick-card-body,
.be-mastery-attend-child-card:has(input:checked) .be-mastery-attend-pick-card-body {
	border-color: #1f6b4a;
	background: linear-gradient(180deg, #eef8f2, #e7f4ec);
	box-shadow: 0 0 0 1px rgba(31, 107, 74, 0.25);
}

.be-mastery-attend-child-card.is-selected [data-mark-label],
.be-mastery-attend-child-card:has(input:checked) [data-mark-label] {
	color: #1f6b4a;
}

.be-mastery-attend-child-card.is-attended {
	cursor: default;
}

.be-mastery-attend-child-card.is-attended .be-mastery-attend-pick-card-body {
	border-color: rgba(31, 107, 74, 0.35);
	background: #f3faf6;
}

.be-mastery-attend-child-card.is-attended [data-mark-label] {
	color: #1f6b4a;
}

.be-mastery-welcome {
	background: #1f6b3a;
	color: #fff;
	border-radius: 18px;
	padding: 2.25rem 1.4rem;
	text-align: center;
	font-size: 1.5rem;
	animation: bm-rise 0.5s ease both;
}

@keyframes bm-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes bm-pop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 640px) {
	.be-mastery {
		padding: 1.5rem 0.9rem 3rem;
		font-size: 1.08rem;
	}

	.be-mastery-dialog {
		max-width: 100vw;
		width: 100vw;
		max-height: 100vh;
		border-radius: 18px 18px 0 0;
		margin: 0;
		margin-top: auto;
	}

	.be-mastery-dialog-inner {
		padding: 1.2rem 1rem 1.5rem;
		max-height: 100vh;
	}

	.be-mastery-steps {
		padding: 1.1rem 0.95rem 1.2rem;
		border-radius: 16px;
	}

	.be-mastery-flex-row {
		gap: 0.55rem;
	}

	.be-mastery-row-actions {
		flex-direction: column-reverse;
		margin-top: 1.5rem;
	}

	.be-mastery-row-actions .be-mastery-primary,
	.be-mastery-row-actions .be-mastery-ghost {
		width: 100%;
		flex: none;
	}

	.be-mastery-attend {
		max-width: 100%;
		margin: 0;
		padding: 1.35rem 1.15rem 2.25rem;
		border-radius: 0;
	}

	.be-mastery-attend-title {
		font-size: clamp(2.1rem, 8vw, 2.8rem);
		margin-bottom: 0.75rem;
	}

	.be-mastery-attend-status,
	.be-mastery-attend-none {
		font-size: clamp(1.55rem, 6.5vw, 2rem);
		padding: 1.15rem 1rem;
		margin: 1.4rem 0 1.25rem;
	}

	.be-mastery-attend-status.is-warn {
		background: #fff7ed;
		border: 1px solid #fed7aa;
		border-radius: 16px;
		text-align: center;
	}

	.be-mastery-welcome {
		font-size: clamp(1.45rem, 5.5vw, 1.75rem);
		padding: 2rem 1.15rem;
	}

	.be-mastery-btn-xl {
		min-height: 64px;
		font-size: 1.3rem;
		width: 100%;
		max-width: none;
	}
}

/* Registration receipt view */
.be-mastery-regview-panel {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.6rem 1.4rem 1.8rem;
	background: rgba(255, 253, 248, 0.88);
	border: 1px solid rgba(26, 46, 36, 0.1);
	border-radius: 22px;
	backdrop-filter: blur(8px);
}

.be-mastery-regview-status {
	display: inline-block;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

.be-mastery-regview-status.is-paid {
	background: rgba(31, 107, 74, 0.12);
	color: var(--bm-leaf-deep);
}

.be-mastery-regview-status.is-pending {
	background: rgba(138, 90, 18, 0.12);
	color: var(--bm-warn);
}

.be-mastery-regview-when {
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
	color: var(--bm-leaf);
	font-weight: 600;
	margin: 0 0 1.25rem;
}

.be-mastery-regview-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-bottom: 1.35rem;
}

.be-mastery-regview-panel h2 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.25rem;
	margin: 0 0 0.65rem;
}

.be-mastery-regview-panel dl {
	margin: 0;
}

.be-mastery-regview-panel dl > div {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 0.4rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid rgba(26, 46, 36, 0.07);
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
	font-size: 0.98rem;
}

.be-mastery-regview-panel dt {
	opacity: 0.65;
	font-weight: 600;
}

.be-mastery-regview-panel dd {
	margin: 0;
	font-weight: 650;
}

.be-mastery-regview-amount {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.55rem;
	color: var(--bm-leaf-deep);
}

.be-mastery-regview-kids ul,
.be-mastery-regview-addons ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.be-mastery-regview-kids li,
.be-mastery-regview-addons li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0.85rem;
	background: rgba(232, 223, 208, 0.35);
	border-radius: 12px;
	font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.be-mastery-regview-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.be-mastery-regview-actions .be-mastery-btn:not(.be-mastery-btn-ghost),
.be-mastery-regview-actions .be-mastery-btn:not(.be-mastery-btn-ghost):visited,
.be-mastery-regview-actions .be-mastery-btn:not(.be-mastery-btn-ghost):hover,
.be-mastery-regview-actions .be-mastery-btn:not(.be-mastery-btn-ghost):active,
.be-mastery-regview-actions .be-mastery-btn:not(.be-mastery-btn-ghost):focus {
	color: #fff !important;
	background: var(--bm-leaf-deep);
}

.be-mastery-btn-ghost {
	background: transparent !important;
	color: var(--bm-leaf-deep) !important;
	border: 1px solid rgba(31, 107, 74, 0.45) !important;
}

@media (max-width: 720px) {
	.be-mastery-regview-grid {
		grid-template-columns: 1fr;
	}
}
