body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden {
	min-height: 100vh;
	overflow-x: hidden;
}

.admin-mobile-toggle {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9999px;
	background: #1d1441;
	color: #fff;
	box-shadow: 0 16px 40px rgba(14, 17, 34, 0.2);
}

.admin-sidebar-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}

.admin-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(18rem, calc(100vw - 2.5rem));
	max-width: 18rem;
	transform: translateX(-110%);
	transition: transform 180ms ease;
}

.admin-sidebar-close {
	position: absolute;
	right: 1rem;
	top: 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	color: #6b7280;
}

body.admin-nav-open {
	overflow: hidden;
}

body.admin-nav-open .admin-sidebar {
	transform: translateX(0);
}

body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative {
	min-width: 0;
	min-height: 100vh;
	overflow: visible;
}

body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header {
	position: sticky;
	top: 0;
	height: auto;
	min-height: 5rem;
	padding: 1rem 1rem 1rem 5rem;
	flex-wrap: wrap;
	gap: 0.75rem;
}

body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header > div:last-child {
	width: 100%;
	justify-content: flex-start;
	flex-wrap: wrap;
}

body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header > button:last-child,
body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header > a:last-child {
	width: 100%;
	justify-content: center;
}

body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > div.flex-1.overflow-y-auto {
	padding: 1rem;
}

.admin-table-scroll {
	overflow-x: auto !important;
	overflow-y: visible !important;
	-webkit-overflow-scrolling: touch;
}

.admin-table {
	min-width: 42rem;
}

.admin-actions-inline {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.admin-actions-inline a,
.admin-actions-inline button {
	white-space: nowrap;
}

.admin-form {
	padding-bottom: 5rem;
}

.admin-header-save {
	display: inline-flex;
}

.admin-sticky-save {
	display: none;
}

.admin-upload-zone {
	min-height: 11rem;
}

.schedule-item-footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.schedule-item-flags {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.schedule-item-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
}

.admin-presence-toolbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.admin-presence-toolbar > * {
	width: 100%;
}

.admin-presence-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.admin-presence-table {
	min-width: 56rem;
}

@media (max-width: 767px) {
	.admin-table {
		min-width: 36rem;
	}

	.admin-table-scroll {
		padding-bottom: 0.25rem;
	}

	.admin-header-save {
		display: none !important;
	}

	.admin-sticky-save {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 55;
		padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
		background: linear-gradient(180deg, rgba(248, 250, 252, 0.78) 0%, rgba(248, 250, 252, 0.96) 30%, #f8fafc 100%);
		border-top: 1px solid #e5e7eb;
		backdrop-filter: blur(6px);
	}

	.admin-sticky-save-btn {
		width: 100%;
		min-height: 2.9rem;
		border-radius: 0.75rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		font-size: 0.875rem;
		font-weight: 700;
	}
}

@media (max-width: 420px) {
	.admin-form {
		padding-bottom: 5.5rem;
	}

	.admin-form .bg-white.rounded-lg.shadow-sm.border {
		border-radius: 0.7rem;
		padding: 0.85rem !important;
	}

	.admin-form h3.text-lg {
		font-size: 1rem;
		margin-bottom: 0.65rem;
	}

	.admin-form .grid {
		gap: 0.75rem !important;
	}

	.admin-form label {
		font-size: 0.8rem;
	}

	.admin-form input,
	.admin-form select,
	.admin-form textarea,
	.admin-form [data-role="toggle"] {
		font-size: 0.92rem;
	}
}

@media (min-width: 640px) {
	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header {
		padding: 1.25rem 1.5rem 1.25rem 5rem;
	}

	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > div.flex-1.overflow-y-auto {
		padding: 1.5rem;
	}

	.schedule-item-flags {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.admin-mobile-toggle,
	.admin-sidebar-close,
	.admin-sidebar-overlay {
		display: none !important;
	}

	.admin-sidebar {
		position: relative;
		inset: auto;
		transform: none;
		width: 16rem;
		max-width: none;
	}

	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden {
		overflow: hidden;
	}

	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative {
		overflow: hidden;
		min-height: 0;
	}

	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header {
		padding: 1.25rem 2rem;
	}

	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header > div:last-child {
		width: auto;
		justify-content: flex-end;
	}

	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header > button:last-child,
	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > header > a:last-child {
		width: auto;
	}

	body.bg-brand-background.font-sans.antialiased.h-screen.flex.overflow-hidden > div.flex-1.flex.flex-col.h-screen.overflow-hidden.relative > div.flex-1.overflow-y-auto {
		padding: 2rem;
	}

	.schedule-item-footer {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.schedule-item-actions {
		width: auto;
		justify-content: flex-end;
	}

	.admin-presence-toolbar {
		flex-direction: row;
		align-items: center;
	}

	.admin-presence-toolbar > * {
		width: auto;
	}
}

.course-card {
	display: flex;
	flex-direction: column;
}

.course-card-media {
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	width: 6rem;
	height: 6rem;
	background: #fff;
}

.course-card-media-grid {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
}

.course-card-media-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	image-rendering: auto;
	backface-visibility: hidden;
	transform: translateZ(0);
}

@media (min-width: 768px) {
	.course-card {
		display: grid;
		grid-template-columns: 7rem minmax(0, 1fr);
		align-items: stretch;
	}

	.course-card-media {
		width: 100%;
		height: 100%;
		min-height: 100%;
	}
}

@media (min-width: 1024px) {
	.course-card {
		grid-template-columns: 8rem minmax(0, 1fr);
	}
}

/* Markdown content rendering styles */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1f2937;
}

.prose h1 {
	font-size: 1.875rem;
}

.prose h2 {
	font-size: 1.5rem;
}

.prose h3 {
	font-size: 1.25rem;
}

.prose h4,
.prose h5,
.prose h6 {
	font-size: 1rem;
}

.prose p {
	margin-bottom: 1rem;
	line-height: 1.6;
}

.prose ul,
.prose ol {
	margin-bottom: 1rem;
	margin-left: 1.5rem;
	padding-left: 1rem;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li {
	margin-bottom: 0.5rem;
}

.prose strong,
.prose b {
	font-weight: 600;
}

.prose em,
.prose i {
	font-style: italic;
}

.prose a {
	color: #0891b2;
	text-decoration: underline;
}

.prose a:hover {
	color: #0e7490;
}

.prose blockquote {
	margin: 1.5rem 0;
	padding-left: 1.25rem;
	border-left: 4px solid #e5e7eb;
	font-style: italic;
	color: #6b7280;
}

.prose code {
	background-color: #f3f4f6;
	padding: 0.125rem 0.375rem;
	border-radius: 4px;
	font-size: 0.875em;
	font-family: 'Courier New', monospace;
	color: #374151;
}

.prose pre {
	background-color: #1f2937;
	color: #f3f4f6;
	padding: 1rem;
	border-radius: 6px;
	margin: 1rem 0;
	overflow-x: auto;
}

.prose pre code {
	background-color: transparent;
	padding: 0;
	color: inherit;
}

.prose table {
	width: 100%;
	margin: 1rem 0;
	border-collapse: collapse;
}

.prose th,
.prose td {
	border: 1px solid #e5e7eb;
	padding: 0.75rem;
	text-align: left;
}

.prose th {
	background-color: #f9fafb;
	font-weight: 600;
}

.prose hr {
	margin: 2rem 0;
	border: none;
	border-top: 1px solid #e5e7eb;
}

/* reCAPTCHA v3 Badge Styling */
.grecaptcha-badge {
visibility: hidden;
position: fixed;
bottom: -999px;
right: -999px;
opacity: 0;
display: none !important;
}
