.mcm-student-portal button,
.mcm-student-profile button,
.mcm-panel button,
.mcm-join-button,
.mcm-logout-link {
	padding: 10px 18px;
	border: 1px solid #e03a31;
	border-radius: 10px;
	background: #e03a31;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
}

.mcm-student-portal button:hover,
.mcm-student-portal button:focus,
.mcm-student-profile button:hover,
.mcm-student-profile button:focus,
.mcm-panel button:hover,
.mcm-panel button:focus,
.mcm-join-button:hover,
.mcm-join-button:focus,
.mcm-logout-link:hover,
.mcm-logout-link:focus {
	background: #b92d26;
	border-color: #b92d26;
	color: #fff;
}

.mcm-student-portal {
	max-width: 460px;
	padding: 24px;
	border: 1px solid #f1c4c1;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff5f4, #ffffff);
}

.mcm-student-portal label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.mcm-student-portal input {
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
}

.mcm-student-portal input:focus {
	border-color: #e03a31;
	box-shadow: 0 0 0 1px #e03a31;
}

.mcm-inline-message {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #f1c4c1;
	border-radius: 12px;
	background: #fff0ef;
	color: #7f1d1d;
}

.mcm-login-error-message {
	margin: 14px 0 0;
	text-align: left;
	font-weight: 600;
	line-height: 1.45;
}

.mcm-student-profile {
	color: #111827;
}

.mcm-profile-page-title {
	margin: 0 0 18px;
	font-size: 34px;
	font-weight: 800;
	text-align: center;
	color: #111827;
}

.mcm-profile-hero {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 24px;
	border-radius: 24px;
	background: linear-gradient(135deg, #fff0ef, #ffffff 50%, #ffe3e1);
	border: 1px solid #f1c4c1;
	margin-bottom: 20px;
}

.mcm-profile-avatar {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 28px;
	border: 4px solid #ffffff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.mcm-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 12px;
	color: #e03a31;
	margin: 0 0 8px;
	text-align: center;
}

.mcm-student-profile h2,
.mcm-student-profile h3,
.mcm-student-portal h2,
.mcm-student-portal h3 {
	text-align: center;
}

.mcm-profile-hero h2 {
	text-align: left;
}

.mcm-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.mcm-panel-highlight {
	background: linear-gradient(180deg, #fff8f7, #fff);
}

.mcm-panel {
	padding: 20px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid #f1c4c1;
	box-shadow: 0 8px 24px rgba(224, 58, 49, 0.08);
}

.mcm-student-detail-schedule {
	display: grid;
	grid-template-columns: minmax(280px, 340px) minmax(320px, 1fr);
	gap: 20px;
	align-items: start;
}

.mcm-student-calendar {
	border: 1px solid #f1c4c1;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff8f7 0%, #fff 100%);
	padding: 18px;
}

.mcm-student-calendar-header {
	font-size: 18px;
	font-weight: 700;
	color: #b92d26;
	text-align: center;
	margin: 0;
}

.mcm-student-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.mcm-calendar-nav-button {
	padding: 6px 14px;
	border: 1px solid #e03a31;
	border-radius: 10px;
	background: #fff;
	color: #e03a31;
	cursor: pointer;
	box-shadow: none;
	font-weight: 500;
}

.mcm-calendar-nav-button:hover,
.mcm-calendar-nav-button:focus {
	background: #fff;
	border-color: #b92d26;
	color: #b92d26;
}

.mcm-student-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}

.mcm-student-calendar-days {
	margin-top: 8px;
}

.mcm-student-calendar-weekdays span {
	font-size: 12px;
	font-weight: 700;
	color: #6b7280;
	text-align: center;
}

.mcm-student-calendar-cell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 !important;
	border-radius: 10px;
	background: #fff !important;
	border: 1px solid #f3d5d2;
	font-weight: 600;
	cursor: default;
	color: #111827 !important;
	appearance: none;
	box-shadow: none !important;
}

.mcm-student-calendar-cell.is-empty {
	background: transparent !important;
	border-color: transparent !important;
	color: transparent !important;
}

.mcm-student-calendar-cell.has-session {
	cursor: pointer;
}

.mcm-student-calendar-cell:hover,
.mcm-student-calendar-cell:focus {
	background: #fff !important;
	border-color: #f3d5d2 !important;
	color: #111827 !important;
}

.mcm-student-calendar-cell.has-session.is-active {
	background: #e03a31 !important;
	color: #fff !important;
	border-color: #e03a31 !important;
}

.mcm-student-calendar-dot {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	display: inline-block;
	pointer-events: none;
}

.mcm-directory-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px 40px;
}

.mcm-directory-heading {
	text-align: center;
	margin-bottom: 24px;
}

.mcm-directory-heading h2 {
	margin: 0;
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.05;
}

.mcm-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}

.mcm-directory-card {
	border-radius: 24px;
	overflow: hidden;
	background: linear-gradient(180deg, #fff7f6 0%, #ffffff 100%);
	border: 1px solid #f2d2cf;
	box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mcm-directory-card:hover,
.mcm-directory-card:focus-within {
	transform: translateY(-8px);
	box-shadow: 0 26px 48px rgba(224, 58, 49, 0.16);
	border-color: #e8a8a2;
}

.mcm-directory-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.mcm-directory-card-image,
.mcm-directory-detail-image {
	width: 100%;
	object-fit: cover;
	display: block;
	background: linear-gradient(135deg, #ffe7e4, #fff);
}

.mcm-directory-card-image {
	height: 260px;
}

.mcm-directory-detail-image {
	width: 240px;
	height: 240px;
	border-radius: 32px;
	border: 4px solid #fff;
	box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
	flex-shrink: 0;
}

.mcm-directory-photo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	font-weight: 800;
	color: #c2410c;
}

.mcm-directory-card-body {
	padding: 20px;
}

.mcm-directory-card-body h3 {
	margin: 0 0 6px;
	font-size: 24px;
}

.mcm-directory-card-body p {
	margin: 0;
	color: #4b5563;
	line-height: 1.65;
}

.mcm-directory-subtitle {
	display: inline-block;
	margin-bottom: 12px !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e03a31 !important;
}

.mcm-directory-grade-level {
	margin: 0 0 14px !important;
	font-size: 16px;
	font-weight: 600;
	color: #6b7280 !important;
}

.mcm-directory-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	color: #e03a31;
	font-weight: 700;
	text-decoration: none;
}

.mcm-directory-back:hover,
.mcm-directory-back:focus {
	color: #b92d26;
}

.mcm-directory-detail {
	padding: 28px;
	border-radius: 30px;
	background:
		radial-gradient(circle at top right, rgba(255, 222, 217, 0.95), transparent 35%),
		linear-gradient(180deg, #fff8f7 0%, #ffffff 100%);
	border: 1px solid #f2d2cf;
	box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.mcm-directory-detail-hero {
	display: flex;
	align-items: center;
	gap: 28px;
}

.mcm-directory-detail-copy h2 {
	margin: 0 0 8px;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1;
}

.mcm-directory-detail-copy p {
	margin: 0;
	line-height: 1.75;
	color: #374151;
}

.mcm-directory-description {
	color: #374151;
	line-height: 1.75;
}

.mcm-directory-description p {
	margin: 0 0 14px;
}

.mcm-directory-description p:last-child {
	margin-bottom: 0;
}

.mcm-directory-description strong {
	color: #111827;
}

.mcm-directory-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.mcm-directory-meta-card {
	padding: 18px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid #f3d5d2;
	box-shadow: 0 8px 24px rgba(224, 58, 49, 0.07);
}

.mcm-directory-meta-card strong,
.mcm-directory-meta-card span {
	display: block;
}

.mcm-directory-meta-card strong {
	margin-bottom: 6px;
	color: #7f1d1d;
}

.mcm-directory-meta-card span {
	color: #374151;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.mcm-directory-detail {
		padding: 22px;
	}

	.mcm-directory-detail-hero {
		flex-direction: column;
		text-align: center;
	}

	.mcm-directory-detail-image {
		width: 200px;
		height: 200px;
	}
}

.mcm-calendar-completed {
	background: #C00707;
}

.mcm-calendar-upcoming {
	background: #237227;
}

.mcm-calendar-reschedule {
	background: #ff751f;
}

.mcm-student-calendar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
}

.mcm-student-calendar-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mcm-calendar-legend-completed {
	color: #C00707;
}

.mcm-calendar-legend-upcoming {
	color: #237227;
}

.mcm-calendar-legend-reschedule {
	color: #ff751f;
}

.mcm-student-class-list {
	display: grid;
	gap: 14px;
}

.mcm-teacher-class-list {
	max-height: 620px;
	overflow-y: auto;
	padding-right: 6px;
}

.mcm-teacher-schedule-shell {
	display: grid;
	gap: 14px;
}

.mcm-teacher-schedule-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
}

.mcm-teacher-schedule-toolbar label {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
	color: #b92d26;
	min-width: 240px;
}

.mcm-calendar-empty-state {
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 1px solid #f1c4c1;
	border-radius: 12px;
	background: #fff8f7;
	color: #7f1d1d;
}

.mcm-student-session-card {
	border: 1px solid #f1c4c1;
	border-radius: 14px;
	padding: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(224, 58, 49, 0.08);
}

.mcm-student-session-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: start;
}

.mcm-student-session-head p {
	margin: 4px 0 0;
	color: #6b7280;
}

.mcm-student-session-status {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.mcm-student-status-completed {
	background: #C00707;
}

.mcm-student-status-upcoming {
	background: #237227;
}

.mcm-student-status-missed {
	background: #ff751f;
}

.mcm-student-session-meta-spacer {
	height: 14px;
}

.mcm-session-toggle {
	margin-top: 10px;
}

.mcm-student-session-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 14px;
	row-gap: 10px;
	margin-top: 14px;
	align-items: end;
}

.mcm-student-session-form p {
	margin: 0;
}

.mcm-student-session-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
	color: #b92d26;
}

.mcm-student-session-form input,
.mcm-student-session-form textarea {
	width: 100%;
}

.mcm-weekday-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
	align-items: center;
}

.mcm-weekday-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border: 1px solid rgba(224, 58, 49, 0.18);
	border-radius: 10px;
	background: #fff7f5;
	white-space: nowrap;
}

.mcm-weekday-item input {
	width: auto;
	margin: 0;
}

.mcm-weekday-item span {
	font-weight: 600;
}

.mcm-form-full {
	grid-column: 1 / -1;
}

.mcm-panel-full {
	grid-column: 1 / -1;
}

.mcm-panel-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

.mcm-join-button,
.mcm-logout-link {
	display: inline-block;
}

.mcm-link-button {
	display: inline-block;
	margin-top: 12px;
	color: #e03a31;
	font-weight: 600;
	text-decoration: none;
}

.mcm-link-button:hover,
.mcm-link-button:focus {
	text-decoration: underline;
}

.mcm-logout-link {
	margin-top: 10px;
}

.mcm-teacher-card {
	display: flex;
	gap: 14px;
	align-items: center;
}

.mcm-teacher-avatar {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 18px;
}

.mcm-toggle-panel {
	display: none;
	margin-top: 14px;
}

.mcm-toggle-panel.is-visible {
	display: block;
}

.mcm-panel-scroll {
	max-height: 420px;
	overflow-y: auto;
	padding-right: 6px;
}

.mcm-quick-message-form {
	min-width: 240px;
}

.mcm-teacher-student-actions {
	display: grid;
	gap: 8px;
	min-width: 260px;
}

.mcm-teacher-student-edit-form {
	padding: 14px;
	border: 1px solid #f1c4c1;
	border-radius: 14px;
	background: #fff8f7;
}

.mcm-live-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.mcm-live-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #9ca3af;
	display: inline-block;
}

.mcm-live-status.is-active {
	color: #237227;
}

.mcm-live-status.is-active .mcm-live-dot {
	background: #237227;
	box-shadow: 0 0 0 4px rgba(35, 114, 39, 0.14);
}

.mcm-live-status.is-inactive {
	color: #6b7280;
}

.mcm-start-class-button.is-hidden {
	display: none;
}

.mcm-teacher-upcoming-card {
	background: linear-gradient(180deg, #fffdfd, #fff5f4);
}

.mcm-student-accent-card {
	border-left: 6px solid var(--mcm-student-accent-border, #f1c4c1);
	background: linear-gradient(180deg, var(--mcm-student-accent-bg, #fffdfd), #fff);
}

.mcm-missed-class-card {
	background: linear-gradient(180deg, #fff2ec, #ffe4da);
	border-color: #f0baad;
	box-shadow: 0 4px 16px rgba(224, 58, 49, 0.12);
}

.mcm-student-accent-row td:first-child {
	border-left: 4px solid var(--mcm-student-accent-border, #f1c4c1);
}

.mcm-student-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--mcm-student-accent-border, #f1c4c1);
	background: var(--mcm-student-accent-bg, #fff5f4);
	color: var(--mcm-student-accent-text, #7f1d1d);
	font-weight: 700;
	line-height: 1.2;
}

.mcm-student-badge.is-inline {
	vertical-align: middle;
}

.mcm-teacher-upcoming-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 10px;
	color: #6b7280;
	font-size: 14px;
}

.mcm-toggle-panel textarea,
.mcm-toggle-panel input,
.mcm-panel textarea,
.mcm-panel input,
.mcm-panel select {
	width: 100%;
	padding: 10px 12px;
	margin-top: 6px;
	margin-bottom: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
}

.mcm-toggle-panel textarea:focus,
.mcm-toggle-panel input:focus,
.mcm-panel textarea:focus,
.mcm-panel input:focus,
.mcm-panel select:focus {
	border-color: #e03a31;
	box-shadow: 0 0 0 1px #e03a31;
}

.mcm-table-scroll {
	overflow-x: auto;
}

.mcm-front-table {
	width: 100%;
	min-width: 920px;
	border-collapse: collapse;
}

.mcm-front-table th,
.mcm-front-table td {
	padding: 10px;
	border-bottom: 1px solid #f3d4d1;
	text-align: left;
}

.mcm-front-table th {
	color: #b92d26;
}

.mcm-class-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.mcm-upcoming-summary {
	display: grid;
	gap: 16px;
}

.mcm-upcoming-list {
	margin: 0;
	padding-left: 18px;
}

.mcm-upcoming-calendar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.mcm-upcoming-month {
	padding: 14px;
	border: 1px solid #f1c4c1;
	border-radius: 16px;
	background: #fff8f7;
}

.mcm-upcoming-month h4 {
	margin: 0 0 10px;
	color: #b92d26;
	text-align: center;
}

.mcm-upcoming-month ul {
	margin: 0;
	padding-left: 18px;
}

.mcm-class-card {
	padding: 18px;
	border-radius: 18px;
	border: 1px solid #f1c4c1;
	background: linear-gradient(180deg, #fff8f7, #fff);
}

.mcm-inline-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.mcm-ajax-message {
	min-height: 20px;
	color: #7f1d1d;
}

.mcm-notification-log {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f1c4c1;
}

.mcm-notification-thread {
	display: grid;
	gap: 12px;
	max-height: 480px;
	overflow-y: auto;
}

.mcm-thread-item {
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid #f1c4c1;
}

.mcm-thread-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mcm-thread-head p {
	margin: 0;
}

.mcm-thread-label {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff;
	color: #b92d26;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid #f1c4c1;
}

.mcm-thread-student {
	background: #fff6de;
}

.mcm-thread-teacher {
	background: #eef7f4;
}

.mcm-thread-parent {
	background: #eef0ff;
}

.mcm-thread-admin {
	background: #fff0ef;
}

.mcm-thread-reschedule {
	background: #fff4d6;
	border-color: #f5d08f;
}

.mcm-thread-reschedule .mcm-thread-label {
	background: #fff;
	color: #9a3412;
	border-color: #f5d08f;
}

.mcm-reschedule-request-note {
	margin: 0 0 10px;
	color: #ff751f;
	font-weight: 600;
}

@media (max-width: 640px) {
	.mcm-profile-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.mcm-inline-grid {
		grid-template-columns: 1fr;
	}

	.mcm-student-detail-schedule,
	.mcm-student-session-form {
		grid-template-columns: 1fr;
	}

	.mcm-teacher-schedule-toolbar {
		justify-content: stretch;
	}

	.mcm-teacher-schedule-toolbar label {
		min-width: 0;
		width: 100%;
	}
}
