.msh-page-shell {
	background: #f5f6f8;
	min-height: calc(100vh - 80px);
	padding: 36px 20px 64px;
}

.msh-page-shell__inner,
.msh-component {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1180px;
	width: 100%;
}

.msh-page-title {
	color: #14264a;
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	margin: 0 0 24px;
}

.msh-component,
.msh-component * {
	box-sizing: border-box;
}

.msh-component {
	color: #18243b;
}

.msh-component h2,
.msh-component h3,
.msh-component h4 {
	color: #14264a;
	line-height: 1.25;
}

.msh-dashboard {
	background: #fff;
	border: 1px solid #e6e8ed;
	border-radius: 18px;
	box-shadow: 0 12px 35px rgba(20, 38, 74, .08);
	overflow: hidden;
}

.msh-dashboard__header {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 28px 32px 20px;
}

.msh-dashboard__header h2 {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	margin: 0;
}

.msh-eyebrow {
	color: #cc2d35;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	margin: 0 0 5px;
	text-transform: uppercase;
}

.msh-tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	padding: 0 24px;
	-webkit-overflow-scrolling: touch;
}

.msh-tabs__link {
	align-items: center;
	border-bottom: 3px solid transparent;
	color: #4c5567;
	display: inline-flex;
	font-weight: 700;
	gap: 7px;
	padding: 15px 13px 12px;
	text-decoration: none;
	white-space: nowrap;
}

.msh-tabs__link:hover,
.msh-tabs__link:focus,
.msh-tabs__link.is-active {
	border-bottom-color: #cf2e37;
	color: #cf2e37;
}

.msh-count {
	align-items: center;
	background: #cf2e37;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: .72rem;
	height: 21px;
	justify-content: center;
	min-width: 21px;
	padding: 0 5px;
}

.msh-tab-panel {
	background: #f7f8fa;
	border-top: 1px solid #e6e8ed;
	min-height: 420px;
	padding: 28px 32px 36px;
}

.msh-card {
	background: #fff;
	border: 1px solid #e1e5eb;
	border-radius: 13px;
	padding: 22px;
}

.msh-card h3,
.msh-card h4 {
	margin-top: 0;
}

.msh-grid {
	display: grid;
	gap: 20px;
	margin: 22px 0;
}

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

.msh-stats-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.msh-stat {
	background: #fff;
	border: 1px solid #e1e5eb;
	border-radius: 13px;
	padding: 22px;
}

.msh-stat span {
	color: #cf2e37;
	display: block;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 8px;
}

.msh-stat strong {
	color: #4c5567;
	font-size: .9rem;
}

.msh-notice {
	border: 1px solid;
	border-radius: 10px;
	margin: 18px 0;
	padding: 14px 16px;
}

.msh-dashboard > .msh-notice {
	margin-left: 32px;
	margin-right: 32px;
}

.msh-notice--success {
	background: #eef9f3;
	border-color: #9ed7b6;
	color: #195d37;
}

.msh-notice--error {
	background: #fff1f1;
	border-color: #efb4b7;
	color: #8c1f27;
}

.msh-notice--info {
	background: #eef5ff;
	border-color: #b9d1ef;
	color: #244e7b;
}

.msh-badge {
	border-radius: 999px;
	display: inline-block;
	font-size: .75rem;
	font-weight: 800;
	line-height: 1;
	padding: 7px 10px;
	white-space: nowrap;
}

.msh-badge--active {
	background: #e8f7ee;
	color: #147343;
}

.msh-badge--pending {
	background: #fff5dc;
	color: #805d06;
}

.msh-badge--rejected {
	background: #f2f3f5;
	color: #656d78;
}

.msh-button,
.msh-component button.msh-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 750;
	justify-content: center;
	min-height: 42px;
	padding: 9px 16px;
	text-decoration: none;
}

.msh-button--primary {
	background: #cf2e37;
	color: #fff;
}

.msh-button--primary:hover,
.msh-button--primary:focus {
	background: #ae222a;
	color: #fff;
}

.msh-button--secondary {
	background: #fff;
	border-color: #cf2e37;
	color: #cf2e37;
}

.msh-component button.msh-button--secondary {
	background: #fff;
	border-color: #cf2e37;
	color: #cf2e37;
}

.msh-button--secondary:hover,
.msh-button--secondary:focus,
.msh-component button.msh-button--secondary:hover,
.msh-component button.msh-button--secondary:focus {
	background: #fff4f4;
	color: #ae222a;
}

.msh-button--ghost {
	background: transparent;
	border-color: #aeb5bf;
	color: #4c5567;
}

.msh-component button.msh-button--ghost {
	background: transparent;
	border-color: #aeb5bf;
	color: #4c5567;
}

.msh-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.msh-component input[type="text"],
.msh-component input[type="number"],
.msh-component input[type="email"],
.msh-component input[type="search"],
.msh-component input[type="datetime-local"],
.msh-component select {
	background: #fff;
	border: 1px solid #cfd5de;
	border-radius: 8px;
	color: #18243b;
	font: inherit;
	min-height: 43px;
	padding: 8px 11px;
	width: 100%;
}

.msh-component input:focus,
.msh-component select:focus,
.msh-component button:focus,
.msh-component a:focus {
	box-shadow: 0 0 0 3px rgba(207, 46, 55, .18);
	outline: 2px solid transparent;
}

.msh-component label {
	color: #303b4d;
	display: block;
	font-size: .88rem;
	font-weight: 700;
	margin-bottom: 6px;
}

.msh-form-grid {
	align-items: end;
	display: grid;
	gap: 15px;
	grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.msh-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.msh-stack label {
	margin-bottom: -4px;
}

.msh-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.msh-inline-form label {
	flex: 1 0 100%;
}

.msh-inline-form input {
	flex: 1 1 280px;
}

.msh-class-list,
.msh-request-list,
.msh-membership-list {
	display: grid;
	gap: 16px;
	margin-top: 20px;
}

.msh-class-card > header,
.msh-request,
.msh-membership-card {
	align-items: flex-start;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.msh-class-card > header h3,
.msh-class-card > header p,
.msh-request h4,
.msh-request p,
.msh-membership-card h3 {
	margin: 0 0 5px;
}

.msh-class-card.is-archived {
	opacity: .72;
}

.msh-details {
	border-top: 1px solid #e5e8ed;
	margin-top: 18px;
	padding-top: 14px;
}

.msh-details summary {
	color: #33445e;
	cursor: pointer;
	font-weight: 700;
	margin-bottom: 14px;
}

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

.msh-invite-box {
	background: #f7f8fa;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	padding: 16px;
}

.msh-invite-box h4 {
	margin: 0 0 10px;
}

.msh-invite-form {
	border-top: 1px solid #e0e4e9;
	margin-top: 14px;
	padding-top: 14px;
}

.msh-link-button {
	background: none;
	border: 0;
	color: #365d8d;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 2px;
	text-decoration: underline;
}

.msh-link-button--danger {
	color: #a7222a;
}

.msh-danger-zone {
	border-top: 1px solid #eceef1;
	margin-top: 20px;
	padding-top: 15px;
}

.msh-copy-row {
	display: flex;
	gap: 9px;
	margin: 9px 0 5px;
}

.msh-copy-row input {
	flex: 1;
}

.msh-request-actions {
	min-width: min(100%, 330px);
}

.msh-request-actions .msh-button-row {
	margin-top: 10px;
}

.msh-section-title {
	margin-top: 32px;
}

.msh-table-wrap {
	overflow-x: auto;
}

.msh-table {
	background: #fff;
	border-collapse: collapse;
	border-radius: 10px;
	min-width: 620px;
	width: 100%;
}

.msh-table th,
.msh-table td {
	border-bottom: 1px solid #e3e6eb;
	padding: 13px 15px;
	text-align: left;
}

.msh-table th {
	background: #f1f3f6;
	color: #39465a;
	font-size: .78rem;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.msh-rank {
	align-items: center;
	background: #eef0f4;
	border-radius: 50%;
	display: inline-flex;
	font-weight: 800;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.msh-ranking-table tr:nth-child(-n+3) .msh-rank {
	background: #cf2e37;
	color: #fff;
}

.msh-ranking-header {
	align-items: flex-end;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 20px;
}

.msh-ranking-header h3,
.msh-ranking-header p {
	margin: 0 0 6px;
}

.msh-definition-list {
	margin: 0;
}

.msh-definition-list > div {
	border-bottom: 1px solid #eceef2;
	display: grid;
	gap: 15px;
	grid-template-columns: minmax(120px, .35fr) 1fr;
	padding: 11px 0;
}

.msh-definition-list dt {
	color: #596476;
	font-weight: 700;
}

.msh-definition-list dd {
	margin: 0;
}

.msh-empty-state {
	background: #fff;
	border: 1px dashed #cdd3dc;
	border-radius: 10px;
	color: #636d7d;
	padding: 24px;
	text-align: center;
}

.msh-muted {
	color: #687386;
	font-size: .88rem;
}

.msh-plain-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.msh-plain-list li + li {
	margin-top: 4px;
}

.msh-join,
.msh-member-panel,
.msh-profile-entry {
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 15px;
	box-shadow: 0 8px 25px rgba(20, 38, 74, .07);
	margin-bottom: 24px;
	padding: 28px;
}

.msh-member-actions {
	margin-top: 24px;
}

.msh-member-videos {
	border-top: 1px solid #e2e5ea;
	margin-top: 28px;
	padding-top: 26px;
}

/* Responsive school video library. */
.msh-video-library {
	scroll-margin-top: 92px;
}

.msh-video-library__header {
	align-items: flex-start;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.msh-video-library__header h2,
.msh-video-library__header p {
	margin: 0 0 8px;
}

.msh-video-library__header > div {
	max-width: 760px;
}

.msh-video-total {
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 999px;
	color: #425067;
	font-size: .82rem;
	font-weight: 800;
	padding: 8px 12px;
	white-space: nowrap;
}

.msh-video-protection {
	background: #eef5ff;
	border: 1px solid #c3d7f0;
	border-radius: 10px;
	color: #244e7b;
	margin: 0 0 20px;
	padding: 12px 15px;
}

.msh-video-protection summary {
	cursor: pointer;
	font-weight: 800;
}

.msh-video-protection p {
	margin: 10px 0 0;
}

.mabasta-hub-notice {
	border: 1px solid;
	border-radius: 10px;
	margin: 0 0 18px;
	padding: 13px 48px 13px 16px;
	position: relative;
}

.mabasta-hub-notice p {
	margin: 0;
}

.mabasta-hub-notice--success {
	background: #eef9f3;
	border-color: #9ed7b6;
	color: #195d37;
}

.mabasta-hub-notice--error {
	background: #fff1f1;
	border-color: #efb4b7;
	color: #8c1f27;
}

.mabasta-hub-notice--warning {
	background: #fff8e6;
	border-color: #e6cd83;
	color: #6f5200;
}

.mabasta-hub-notice--info {
	background: #eef5ff;
	border-color: #b9d1ef;
	color: #244e7b;
}

.msh-video-toast__close {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font-size: 1.45rem;
	height: 42px;
	line-height: 1;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
}

.msh-video-filters {
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 13px;
	box-shadow: 0 5px 18px rgba(20, 38, 74, .04);
	margin-bottom: 18px;
	padding: 15px;
}

.msh-video-search {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(180px, 1fr) auto;
}

.msh-component button.msh-video-filter-toggle {
	display: none;
}

.msh-video-filter-fields {
	align-items: end;
	border-top: 1px solid #e7e9ed;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
	margin-top: 14px;
	padding-top: 14px;
}

.msh-video-filter-actions {
	align-items: center;
	display: flex;
	gap: 12px;
	min-height: 43px;
}

.msh-video-list {
	display: grid;
	gap: 13px;
}

.msh-video-card {
	align-items: center;
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 13px;
	display: grid;
	gap: 18px;
	grid-template-columns: 120px minmax(0, 1fr) minmax(150px, auto);
	padding: 14px;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.msh-video-card:hover,
.msh-video-card:focus-within {
	border-color: #c4cad3;
	box-shadow: 0 8px 25px rgba(20, 38, 74, .08);
}

.msh-video-card__thumb {
	align-items: center;
	aspect-ratio: 16 / 10;
	background: linear-gradient(145deg, #eff1f5, #e1e5eb);
	border-radius: 9px;
	display: flex;
	justify-content: center;
	overflow: hidden;
	width: 100%;
}

.msh-video-card__thumb img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.msh-video-play-icon {
	background: #cf2e37;
	border-radius: 50%;
	height: 42px;
	position: relative;
	width: 42px;
}

.msh-video-play-icon::after {
	border-bottom: 8px solid transparent;
	border-left: 12px solid #fff;
	border-top: 8px solid transparent;
	content: "";
	left: 17px;
	position: absolute;
	top: 13px;
}

.msh-video-card__content {
	min-width: 0;
}

.msh-video-card__heading {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.msh-video-card__heading h3 {
	font-size: 1.08rem;
	margin: 0;
	overflow-wrap: anywhere;
}

.msh-video-card__excerpt {
	color: #5b6576;
	display: -webkit-box;
	font-size: .9rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-height: 1.45;
	margin: 8px 0;
	overflow: hidden;
}

.msh-video-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 15px;
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.msh-video-meta li {
	color: #657084;
	font-size: .79rem;
	font-weight: 650;
}

.msh-video-meta li + li::before {
	color: #aab1bc;
	content: "•";
	margin-right: 12px;
}

.msh-video-status {
	border-radius: 999px;
	display: inline-flex;
	font-size: .71rem;
	font-weight: 800;
	line-height: 1.15;
	padding: 6px 9px;
	text-align: center;
}

.msh-video-status.is-shared {
	background: #e8f7ee;
	color: #147343;
}

.msh-video-status.is-expiring {
	background: #fff2cf;
	color: #775500;
}

.msh-video-status.is-expired,
.msh-video-status.is-unshared {
	background: #eef0f3;
	color: #606a78;
}

.msh-video-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.msh-video-card__actions .msh-button {
	min-height: 44px;
	white-space: nowrap;
}

.msh-video-pagination {
	align-items: center;
	display: grid;
	gap: 15px;
	grid-template-columns: 1fr auto 1fr;
	margin-top: 22px;
}

.msh-video-pagination > :last-child {
	justify-self: end;
}

.msh-video-pagination > span {
	color: #626d7e;
	font-size: .85rem;
	font-weight: 700;
}

.msh-video-pagination__mobile {
	display: none;
}

body.msh-video-dialog-open {
	overflow: hidden;
}

.msh-video-dialog[hidden] {
	display: none !important;
}

.msh-video-dialog {
	display: flex;
	inset: 0;
	justify-content: flex-end;
	position: fixed;
	z-index: 100000;
}

.msh-video-dialog__backdrop {
	background: rgba(10, 20, 38, .58);
	inset: 0;
	position: absolute;
}

.msh-video-dialog__panel {
	background: #f7f8fa;
	box-shadow: -15px 0 45px rgba(10, 20, 38, .2);
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 100%;
	position: relative;
	width: 660px;
	z-index: 1;
}

.msh-video-dialog:not([hidden]) .msh-video-dialog__panel {
	animation: msh-video-drawer-in .2s ease-out;
}

@keyframes msh-video-drawer-in {
	from { transform: translateX(24px); opacity: .7; }
	to { transform: translateX(0); opacity: 1; }
}

.msh-video-dialog__header {
	align-items: flex-start;
	background: #fff;
	border-bottom: 1px solid #dfe3e9;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: 20px 24px;
}

.msh-video-dialog__header h3 {
	font-size: 1.35rem;
	margin: 0;
	overflow-wrap: anywhere;
}

.msh-video-dialog__close {
	align-items: center;
	background: #f0f2f5;
	border: 0;
	border-radius: 50%;
	color: #27344a;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.65rem;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	width: 44px;
}

.msh-video-dialog__body {
	overflow-y: auto;
	padding: 22px 24px 36px;
	-webkit-overflow-scrolling: touch;
}

.msh-video-dialog__body > section {
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 12px;
	margin-bottom: 15px;
	padding: 18px;
}

.msh-video-dialog__body h4 {
	margin: 0 0 14px;
}

.msh-video-section-heading {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.msh-video-section-heading h4 {
	margin: 0;
}

.msh-video-preview__player,
.mabasta-protected-video {
	background: #10141c;
	border-radius: 9px;
	display: block;
	margin-top: 14px;
	max-height: 62vh;
	width: 100%;
}

.msh-video-preview__player[hidden] {
	display: none !important;
}

.msh-video-share-form {
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr);
}

.msh-video-share-form > .msh-video-check,
.msh-video-share-form > .msh-button {
	grid-column: 1 / -1;
}

.msh-video-check,
.msh-component label.msh-video-check {
	align-items: flex-start;
	display: flex;
	font-weight: 600;
	gap: 9px;
	margin: 0;
}

.msh-video-check input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.msh-video-share-form > .msh-button {
	justify-self: start;
}

.msh-video-active-shares > h4 span {
	align-items: center;
	background: #edf0f4;
	border-radius: 999px;
	display: inline-flex;
	font-size: .72rem;
	height: 23px;
	justify-content: center;
	margin-left: 5px;
	min-width: 23px;
	padding: 0 6px;
}

.msh-video-share-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.msh-video-share-list li {
	align-items: center;
	border-top: 1px solid #e8eaee;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 12px 0;
}

.msh-video-share-list li:first-child {
	border-top: 0;
	padding-top: 0;
}

.msh-video-share-list li:last-child {
	padding-bottom: 0;
}

.msh-video-share-list strong,
.msh-video-share-list small {
	display: block;
	overflow-wrap: anywhere;
}

.msh-video-share-list small {
	color: #687386;
	font-size: .77rem;
	margin-top: 3px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	.msh-video-card,
	.msh-video-dialog__panel {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 850px) {
	.msh-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.msh-grid--2,
	.msh-invite-grid {
		grid-template-columns: 1fr;
	}

	.msh-form-grid {
		grid-template-columns: 1fr 1fr;
	}

	.msh-form-actions {
		grid-column: 1 / -1;
	}

	.msh-video-filter-fields {
		grid-template-columns: 1fr 1fr;
	}

	.msh-video-filter-actions {
		grid-column: 1 / -1;
	}

	.msh-video-card {
		grid-template-columns: 100px minmax(0, 1fr);
	}

	.msh-video-card__actions {
		flex-direction: row;
		grid-column: 1 / -1;
	}

	.msh-video-card__actions .msh-button {
		flex: 1 1 0;
	}
}

@media (max-width: 600px) {
	.msh-page-shell {
		padding: 20px 10px 40px;
	}

	.msh-dashboard__header,
	.msh-tab-panel,
	.msh-join,
	.msh-member-panel,
	.msh-profile-entry {
		padding: 20px 16px;
	}

	.msh-dashboard > .msh-notice {
		margin-left: 16px;
		margin-right: 16px;
	}

	.msh-dashboard__header,
	.msh-class-card > header,
	.msh-request,
	.msh-membership-card,
	.msh-ranking-header {
		align-items: stretch;
		flex-direction: column;
	}

	.msh-form-grid,
	.msh-stats-grid {
		grid-template-columns: 1fr;
	}

	.msh-copy-row {
		flex-direction: column;
	}

	.msh-definition-list > div {
		grid-template-columns: 1fr;
		gap: 3px;
	}

	.msh-tabs {
		padding: 0 12px;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.msh-tabs::-webkit-scrollbar {
		display: none;
	}

	.msh-tabs__link {
		min-height: 48px;
		scroll-snap-align: center;
	}

	.msh-video-library__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.msh-video-search {
		grid-template-columns: 1fr 1fr;
	}

	.msh-video-search input {
		grid-column: 1 / -1;
	}

	.msh-component button.msh-video-filter-toggle {
		display: inline-flex;
	}

	html.msh-js .msh-video-filter-fields:not(.is-open) {
		display: none;
	}

	.msh-video-filter-fields {
		grid-template-columns: 1fr;
	}

	.msh-video-filter-actions {
		align-items: stretch;
		flex-direction: column;
		grid-column: auto;
	}

	.msh-video-filter-actions .msh-button {
		width: 100%;
	}

	.msh-video-card {
		align-items: stretch;
		gap: 13px;
		grid-template-columns: 1fr;
		padding: 13px;
	}

	.msh-video-card__thumb {
		aspect-ratio: 16 / 7;
		max-height: 170px;
	}

	.msh-video-card__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.msh-video-card__actions {
		flex-direction: column;
		grid-column: auto;
	}

	.msh-video-card__actions .msh-button {
		flex: none;
		width: 100%;
	}

	.msh-video-meta {
		gap: 5px 10px;
	}

	.msh-video-meta li + li::before {
		margin-right: 8px;
	}

	.msh-video-dialog__panel {
		height: 100dvh;
		width: 100%;
	}

	.msh-video-dialog:not([hidden]) .msh-video-dialog__panel {
		animation-name: msh-video-sheet-in;
	}

	@keyframes msh-video-sheet-in {
		from { transform: translateY(22px); opacity: .75; }
		to { transform: translateY(0); opacity: 1; }
	}

	.msh-video-dialog__header {
		padding: 16px;
	}

	.msh-video-dialog__body {
		padding: 14px 12px calc(24px + env(safe-area-inset-bottom));
	}

	.msh-video-dialog__body > section {
		padding: 15px;
	}

	.msh-video-share-form {
		grid-template-columns: 1fr;
	}

	.msh-video-share-form > .msh-video-check,
	.msh-video-share-form > .msh-button {
		grid-column: auto;
		justify-self: stretch;
		width: 100%;
	}

	.msh-video-share-list li {
		align-items: flex-start;
		flex-direction: column;
	}

	.msh-video-share-list li form,
	.msh-video-share-list li button {
		min-height: 44px;
	}

	.msh-video-pagination {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.msh-video-pagination > * {
		justify-self: stretch !important;
	}

	.msh-video-pagination > span:empty {
		display: none;
	}

	.msh-video-pagination__desktop {
		display: none;
	}

	.msh-video-pagination__mobile {
		display: inline;
	}
}

/* Responsive shared-video library for student and teacher dashboards. */
.msh-member-video-library {
	max-width: 100%;
	min-width: 0;
	scroll-margin-top: 92px;
}

.msh-member-video-library,
.msh-member-video-library * {
	min-width: 0;
}

.msh-member-video-library__header {
	align-items: flex-start;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 18px;
}

.msh-member-video-library__header > div {
	max-width: 760px;
}

.msh-member-video-library__header h2,
.msh-member-video-library__header p {
	margin: 0 0 8px;
}

.msh-member-video-count {
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 999px;
	color: #425067;
	flex: 0 0 auto;
	font-size: .82rem;
	font-weight: 800;
	padding: 8px 12px;
	white-space: nowrap;
}

.msh-member-video-notice {
	background: #eef5ff;
	border: 1px solid #c3d7f0;
	border-radius: 10px;
	color: #244e7b;
	margin: 0 0 20px;
	padding: 12px 15px;
}

.msh-member-video-notice summary {
	cursor: pointer;
	font-weight: 800;
	min-height: 24px;
}

.msh-member-video-notice p,
.msh-member-video-notice details {
	margin-bottom: 0;
}

.msh-member-video-notice summary + * {
	margin-top: 10px;
}

.msh-member-watch {
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 15px;
	box-shadow: 0 8px 28px rgba(20, 38, 74, .08);
	margin-bottom: 24px;
	max-width: 100%;
	padding: clamp(12px, 2.5vw, 24px);
	scroll-margin-top: 92px;
}

.msh-member-watch[hidden] {
	display: none !important;
}

.msh-member-video-frame {
	aspect-ratio: 16 / 9;
	background: #07090d;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(10, 20, 38, .18);
	isolation: isolate;
	margin-inline: auto;
	max-width: 960px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.msh-member-video-library .msh-member-video-frame .msh-member-video-player,
.msh-member-video-library .msh-member-video-frame .mabasta-protected-video {
	background: #07090d;
	border: 0;
	border-radius: 0;
	display: block;
	height: 100%;
	margin: 0;
	max-height: none;
	object-fit: contain;
	width: 100%;
}

.msh-member-video-active-details {
	margin: 16px auto 0;
	max-width: 960px;
	overflow-wrap: anywhere;
}

.msh-member-video-active-details h2,
.msh-member-video-active-details h3 {
	font-size: clamp(1.2rem, 2.5vw, 1.55rem);
	margin: 0 0 7px;
}

.msh-member-video-active-details p {
	color: #566276;
	line-height: 1.55;
	margin: 7px 0 0;
}

.msh-member-video-toolbar {
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 13px;
	box-shadow: 0 5px 18px rgba(20, 38, 74, .04);
	margin: 0 0 18px;
	padding: 15px;
}

.msh-member-video-toolbar form,
.msh-member-video-filter-form {
	align-items: end;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(220px, 1fr) minmax(150px, .35fr) auto;
}

.msh-member-video-filter-form.has-school-filter {
	grid-template-columns: minmax(220px, 1fr) minmax(150px, .35fr) minmax(150px, .35fr) auto;
}

.msh-member-video-filter-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.msh-member-video-toolbar label,
.msh-member-video-filter-form label {
	margin: 0;
}

.msh-member-video-toolbar :is(input, select),
.msh-member-video-filter-form :is(input, select) {
	margin-top: 6px;
	max-width: 100%;
	min-height: 44px;
}

.msh-member-video-toolbar .msh-button,
.msh-member-video-filter-form .msh-button {
	min-height: 44px;
}

.msh-member-video-catalogue {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
}

.msh-member-video-card {
	background: #fff;
	border: 1px solid #dfe3e9;
	border-radius: 13px;
	display: flex;
	flex-direction: column;
	max-width: 100%;
	overflow: hidden;
	position: relative;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.msh-member-video-card:hover,
.msh-member-video-card:focus-within {
	border-color: #c4cad3;
	box-shadow: 0 9px 26px rgba(20, 38, 74, .09);
	transform: translateY(-2px);
}

.msh-member-video-card.is-active {
	border-color: #cf2e37;
	box-shadow: 0 0 0 2px rgba(207, 46, 55, .14), 0 9px 26px rgba(20, 38, 74, .09);
}

.msh-member-video-card__thumb,
.msh-member-video-library button.msh-member-video-card__thumb,
.msh-member-video-library a.msh-member-video-card__thumb {
	align-items: center;
	aspect-ratio: 16 / 9;
	background: #0b1018;
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: flex;
	flex: 0 0 auto;
	justify-content: center;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
	text-decoration: none;
	width: 100%;
}

.msh-member-video-card__thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease;
	width: 100%;
}

.msh-member-video-card:hover .msh-member-video-card__thumb img,
.msh-member-video-card:focus-within .msh-member-video-card__thumb img {
	transform: scale(1.025);
}

.msh-member-video-card__play {
	align-items: center;
	background: rgba(207, 46, 55, .94);
	border-radius: 50%;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
}

.msh-member-video-card__play::after {
	border-bottom: 8px solid transparent;
	border-left: 13px solid #fff;
	border-top: 8px solid transparent;
	content: "";
	margin-left: 3px;
}

.msh-member-video-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 15px;
}

.msh-member-video-card__content h3 {
	display: -webkit-box;
	font-size: 1.04rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-height: 1.35;
	margin: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.msh-member-video-card__meta {
	color: #657084;
	font-size: .79rem;
	font-weight: 650;
	line-height: 1.4;
	margin: 7px 0 0;
	overflow-wrap: anywhere;
}

.msh-member-video-card__description {
	color: #566276;
	display: -webkit-box;
	font-size: .88rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-height: 1.48;
	margin: 9px 0 0;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.msh-member-video-card__actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 15px;
}

.msh-member-video-card__actions .msh-button,
.msh-member-video-card__actions button,
.msh-member-video-card__actions a {
	min-height: 44px;
}

.msh-member-video-card__actions .msh-button {
	flex: 1 1 auto;
}

.msh-member-video-pagination {
	align-items: center;
	display: grid;
	gap: 15px;
	grid-template-columns: 1fr auto 1fr;
	margin-top: 24px;
}

.msh-member-video-pagination > :last-child {
	justify-self: end;
}

.msh-member-video-pagination > span {
	color: #626d7e;
	font-size: .85rem;
	font-weight: 700;
	text-align: center;
}

.msh-member-video-pagination :is(a, button) {
	min-height: 44px;
}

.msh-member-video-library :is(a, button, input, select, summary):focus-visible {
	box-shadow: 0 0 0 4px rgba(207, 46, 55, .18);
	outline: 2px solid #b3262f;
	outline-offset: 2px;
}

@media (max-width: 850px) {
	.msh-member-video-toolbar form,
	.msh-member-video-filter-form,
	.msh-member-video-filter-form.has-school-filter {
		grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr);
	}

	.msh-member-video-toolbar form > :last-child,
	.msh-member-video-filter-form > :last-child {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.msh-member-video-catalogue {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.msh-member-video-library__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.msh-member-watch {
		border-radius: 12px;
		padding: 10px;
	}

	.msh-member-video-frame {
		border-radius: 9px;
	}

	.msh-member-video-toolbar {
		padding: 13px;
	}

	.msh-member-video-toolbar form,
	.msh-member-video-filter-form,
	.msh-member-video-filter-form.has-school-filter {
		grid-template-columns: 1fr;
	}

	.msh-member-video-toolbar form > :last-child,
	.msh-member-video-filter-form > :last-child {
		grid-column: auto;
		justify-self: stretch;
		width: 100%;
	}

	.msh-member-video-toolbar .msh-button,
	.msh-member-video-filter-form .msh-button {
		width: 100%;
	}

	.msh-member-video-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.msh-member-video-catalogue {
		gap: 14px;
		grid-template-columns: minmax(0, 1fr);
	}

	.msh-member-video-card:hover,
	.msh-member-video-card:focus-within {
		transform: none;
	}

	.msh-member-video-card__content {
		padding: 14px;
	}

	.msh-member-video-card__actions {
		flex-direction: column;
	}

	.msh-member-video-card__actions .msh-button,
	.msh-member-video-card__actions button,
	.msh-member-video-card__actions a {
		width: 100%;
	}

	.msh-member-video-pagination {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.msh-member-video-pagination > * {
		justify-self: stretch !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.msh-member-video-card,
	.msh-member-video-card__thumb img {
		transition: none !important;
	}

	.msh-member-video-card:hover,
	.msh-member-video-card:focus-within,
	.msh-member-video-card:hover .msh-member-video-card__thumb img,
	.msh-member-video-card:focus-within .msh-member-video-card__thumb img {
		transform: none !important;
	}
}
