.fn-professor-panel {
	--fn-bg: #f3f6fa;
	--fn-card: #ffffff;
	--fn-text: #202833;
	--fn-muted: #667281;
	--fn-line: #dce2ea;
	--fn-soft: #f7f9fb;
	--fn-accent: #2f5d62;
	--fn-accent-dark: #24484c;
	--fn-danger: #a13a3a;
	--fn-success: #267557;
	--fn-blue: #226fd7;
	--fn-radius: 8px;
	--fn-shadow: 0 18px 45px rgba(25, 35, 45, 0.08);
	max-width: 1160px;
	margin: 0 auto;
	color: var(--fn-text);
	font-size: 16px;
}

.fn-field-label {
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-weight: 700;
}

.fn-field-label > small {
	color: #61748c;
	font-size: 13px;
	font-weight: 500;
}

.fn-teacher-picker {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 8px 10px;
	border: 1px solid #c9d7e8;
	border-radius: 8px;
	background: #fff;
}

.fn-teacher-chips {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 7px;
}

.fn-teacher-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	padding: 0 8px 0 12px;
	border: 1px solid #b9d1ff;
	border-radius: 6px;
	background: #edf4ff;
	color: #174f9f;
	font-size: 14px;
	font-weight: 800;
}

.fn-teacher-chip button {
	display: grid;
	width: 24px;
	height: 24px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #174f9f;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
}

.fn-add-teacher {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid #2874df;
	border-radius: 6px;
	background: #fff;
	color: #175bb9;
	cursor: pointer;
	font-weight: 800;
}

.fn-add-teacher span {
	font-size: 20px;
	line-height: 1;
}

.fn-teacher-options {
	position: absolute;
	z-index: 20;
	top: calc(100% + 7px);
	right: 0;
	left: 0;
	max-height: 220px;
	padding: 7px;
	overflow-y: auto;
	border: 1px solid #c9d7e8;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 32px rgba(25, 54, 91, .16);
}

.fn-teacher-options button {
	display: block;
	width: 100%;
	padding: 11px 12px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #17243a;
	cursor: pointer;
	text-align: left;
	font-weight: 700;
}

.fn-teacher-options button:hover {
	background: #edf5ff;
}

.fn-teacher-options button:disabled {
	display: none;
}

body.fn-professor-standalone {
	margin: 0;
	background: #eef2f7;
	color: #202833;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fn-professor-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 56px;
}

.fn-professor-shell-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 22px;
	padding: 24px 28px;
	border: 1px solid #d8e0ea;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(34, 111, 215, 0.12), rgba(16, 166, 106, 0.08) 46%, rgba(255, 255, 255, 0.96)),
		#fff;
	box-shadow: 0 18px 45px rgba(25, 35, 45, 0.08);
}

.fn-professor-shell-header p {
	margin: 0 0 8px;
	color: #667281;
	font-size: 13px;
	font-weight: 850;
	text-transform: uppercase;
}

.fn-professor-shell-header h1 {
	margin: 0;
	color: #172033;
	font-size: 34px;
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: 0;
}

.fn-auth-button {
	flex: 0 0 auto;
	min-width: 142px;
	box-shadow: 0 12px 28px rgba(34, 111, 215, 0.18);
}

.fn-professor-panel * {
	box-sizing: border-box;
}

.fn-message,
.fn-empty {
	border-radius: 14px;
	padding: 14px;
	margin: 0 0 16px;
	border: 1px solid transparent;
	line-height: 1.45;
}

.fn-message-success {
	background: #eefaf5;
	border-color: #c9eadc;
	color: var(--fn-success);
}

.fn-message-warning,
.fn-empty {
	background: #fff8e8;
	border-color: #f1dfaa;
	color: #765600;
}

.fn-message-error {
	background: #fff0f0;
	border-color: #efcaca;
	color: var(--fn-danger);
}

.fn-login-message {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.fn-login-message .fn-button {
	flex: 0 0 auto;
}

.fn-login-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 22px;
	align-items: stretch;
	padding: 28px;
	border: 1px solid #d4dfeb;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(34, 111, 215, 0.1), rgba(16, 166, 106, 0.08) 48%, rgba(255, 255, 255, 0.98)),
		#fff;
	box-shadow: 0 24px 60px rgba(25, 35, 45, 0.1);
}

.fn-login-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 260px;
}

.fn-login-eyebrow {
	display: inline-flex;
	margin: 0 0 12px;
	padding: 7px 11px;
	border-radius: 999px;
	background: #eaf2ff;
	color: var(--fn-blue);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.fn-login-copy h2 {
	max-width: 680px;
	margin: 0;
	color: #172033;
	font-size: 42px;
	line-height: 1.05;
	font-weight: 950;
	letter-spacing: 0;
}

.fn-login-copy p {
	max-width: 720px;
	margin: 16px 0 0;
	color: var(--fn-muted);
	font-size: 18px;
	line-height: 1.55;
}

.fn-login-primary {
	min-height: 56px;
	margin-top: 24px;
	padding: 14px 24px;
	font-size: 18px;
	box-shadow: 0 18px 36px rgba(34, 111, 215, 0.22);
}

.fn-login-panel {
	display: grid;
	gap: 12px;
	align-content: center;
	padding: 18px;
	border: 1px solid rgba(34, 111, 215, 0.16);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
}

.fn-login-panel div {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 12px;
	align-items: center;
	padding: 14px;
	border: 1px solid #dce6f2;
	border-radius: 8px;
	background: #fff;
}

.fn-login-panel strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: var(--fn-blue);
	color: #fff;
	font-size: 20px;
	font-weight: 950;
}

.fn-login-panel span {
	color: #283446;
	font-size: 15px;
	font-weight: 850;
}

.fn-course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.fn-course-card {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	border: 1px solid var(--fn-line);
	border-radius: 8px;
	padding: 18px;
	background: var(--fn-card);
	box-shadow: 0 10px 28px rgba(25, 35, 45, 0.05);
}

.fn-course-card.is-selected {
	border-color: rgba(47, 93, 98, 0.72);
	box-shadow: 0 14px 34px rgba(29, 54, 65, 0.12);
}

.fn-course-card h2 {
	font-size: 18px;
	line-height: 1.25;
	margin: 0 0 4px;
}

.fn-course-card p {
	margin: 0;
	color: var(--fn-muted);
}

.fn-professor-hero {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: flex-start;
	padding: 32px;
	border: 1px solid var(--fn-line);
	border-radius: var(--fn-radius) var(--fn-radius) 0 0;
	background:
		linear-gradient(135deg, rgba(34, 111, 215, 0.10), rgba(16, 166, 106, 0.07) 44%, rgba(255, 255, 255, 0.98) 78%),
		#fff;
	overflow: hidden;
}

.fn-professor-hero::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 8px;
	background: var(--fn-course-color, var(--fn-accent));
}

.fn-eyebrow {
	margin: 0 0 8px;
	color: var(--fn-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.fn-professor-hero h1 {
	margin: 0;
	font-size: 30px;
	line-height: 1.15;
	color: var(--fn-text);
}

.fn-subtitle {
	margin: 8px 0 0;
	color: var(--fn-muted);
	line-height: 1.45;
}

.fn-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.fn-schedule-pill,
.fn-badge-soft {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 9px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid var(--fn-line);
	color: #344150;
	font-size: 14px;
	font-weight: 700;
}

.fn-badge-soft {
	margin-top: 0;
	white-space: nowrap;
}

.fn-hero-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	flex: 0 0 auto;
}

.fn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--fn-blue);
	border: 1px solid var(--fn-blue);
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.fn-button:hover {
	background: #155dbc;
	color: #fff;
	transform: translateY(-1px);
}

.fn-button-light {
	background: #fff;
	border-color: var(--fn-line);
	color: var(--fn-blue);
	box-shadow: 0 10px 26px rgba(25, 35, 45, 0.08);
}

.fn-button-light:hover {
	background: #eef5ff;
	color: #155dbc;
}

.fn-button-primary {
	width: auto;
	margin-top: 6px;
}

.fn-session-form {
	border: 1px solid var(--fn-line);
	border-top: 0;
	border-radius: 0 0 var(--fn-radius) var(--fn-radius);
	padding: 28px;
	background: var(--fn-card);
	box-shadow: var(--fn-shadow);
}

.fn-form-intro {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--fn-line);
}

.fn-form-intro h2 {
	margin: 0;
	color: var(--fn-text);
	font-size: 28px;
	line-height: 1.1;
	font-weight: 900;
}

.fn-session-number-callout {
	display: inline-flex;
	margin: 12px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: #eef5ff;
	color: #1f55bd;
	font-weight: 900;
}

.fn-form-course-chip {
	min-width: 220px;
	max-width: 360px;
	padding: 14px;
	border: 1px solid var(--fn-line);
	border-radius: 8px;
	background: #fbfdff;
}

.fn-form-course-chip strong,
.fn-form-course-chip span {
	display: block;
}

.fn-form-course-chip span {
	margin-top: 5px;
	color: var(--fn-muted);
	font-size: 14px;
}

.fn-form-block {
	padding: 20px;
	border: 1px solid var(--fn-line);
	border-radius: 8px;
	background: linear-gradient(135deg, #fff, #fbfdff);
	margin-bottom: 18px;
}

.fn-block-heading {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 18px;
}

.fn-block-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--fn-blue);
	color: #fff;
	font-weight: 900;
	flex: 0 0 auto;
}

.fn-form-block h3 {
	font-size: 19px;
	margin: 0;
	color: var(--fn-text);
}

.fn-block-heading p {
	margin: 5px 0 0;
	color: var(--fn-muted);
	line-height: 1.4;
}

.fn-session-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
	font-weight: 800;
	color: #303b49;
}

.fn-session-form label > span:first-child {
	font-size: 14px;
}

.fn-session-form small {
	color: var(--fn-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
}

.fn-session-form input,
.fn-session-form textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--fn-line);
	min-height: 54px;
	border-radius: 8px;
	padding: 0 15px;
	font: inherit;
	color: var(--fn-text);
	background: #fff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fn-session-form input:focus,
.fn-session-form textarea:focus {
	border-color: var(--fn-accent);
	box-shadow: 0 0 0 4px rgba(47, 93, 98, 0.12);
}

.fn-session-form textarea {
	min-height: 130px;
	padding-top: 14px;
	resize: vertical;
	line-height: 1.5;
}

.fn-field-grid,
.fn-option-grid,
.fn-history-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.fn-field-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
	display: grid !important;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: start;
	padding: 16px;
	border: 1px solid var(--fn-line);
	border-radius: 8px;
	background: linear-gradient(135deg, #fff, #f7f9fb);
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.option-card:hover {
	border-color: rgba(47, 93, 98, 0.34);
	transform: translateY(-1px);
}

.option-card input {
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: var(--fn-accent);
}

.option-card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #263341;
	font-weight: 900;
}

.option-card-help {
	margin: 5px 0 0;
	color: var(--fn-muted);
	font-size: 12px;
	line-height: 1.45;
	font-weight: 500;
}

.option-card.is-active {
	border-color: rgba(47, 93, 98, 0.72);
	background: linear-gradient(135deg, rgba(47, 93, 98, 0.12), #fff 68%);
	box-shadow: 0 12px 28px rgba(29, 54, 65, 0.10);
}

.fn-history {
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--fn-line);
}

.fn-history-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin: 0 0 16px;
}

.fn-history-heading h2 {
	font-size: 24px;
	margin: 0;
}

.fn-history-heading > span {
	color: var(--fn-muted);
	font-weight: 800;
}

.fn-history-item {
	border: 1px solid var(--fn-line);
	background: #fbfcfd;
	border-radius: 8px;
	padding: 16px;
	display: grid;
	gap: 10px;
	font-size: 14px;
	line-height: 1.45;
}

.fn-history-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: var(--fn-muted);
	font-size: 13px;
	margin-bottom: 8px;
}

.fn-history-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 8px;
}

.fn-history-summary,
.fn-history-note {
	color: var(--fn-muted);
}

.fn-history-note {
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff8e8;
	color: #765600;
}

.fn-status-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
	align-items: center;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid var(--fn-line);
	background: #fff;
	color: #415061;
	font-size: 11px;
	font-weight: 900;
	white-space: nowrap;
}

.status-pill.simulacro {
	background: #fff5df;
	border-color: #f0d49b;
	color: #7b5200;
}

.status-pill.no-next {
	background: #eef5ff;
	border-color: #c8dcff;
	color: #1f55bd;
}

.fn-submit-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

.fn-submit-row p {
	margin: 0;
	color: var(--fn-muted);
	font-size: 14px;
}

.fn-session-form label.is-optional .fn-video-description {
	background: #f8fafc;
}

@media (max-width: 900px) {
	.fn-form-intro,
	.fn-professor-hero,
	.fn-login-hero,
	.fn-professor-shell-header,
	.fn-login-message,
	.fn-submit-row {
		display: block;
	}

	.fn-form-course-chip,
	.fn-badge-soft,
	.fn-hero-actions,
	.fn-auth-button,
	.fn-login-panel,
	.fn-login-message .fn-button {
		align-items: flex-start;
		margin-top: 14px;
	}

	.fn-login-copy {
		min-height: auto;
	}

	.fn-login-copy h2 {
		font-size: 34px;
	}

	.fn-field-grid-3 {
		grid-template-columns: 1fr;
	}
}

.status-pill.no-next {
	background: #edf5fb;
	border-color: #c7ddec;
	color: #285473;
}

.status-pill.session-number {
	background: #eef4ff;
	border-color: #c8d8f4;
	color: #2f5485;
}

@media (max-width: 720px) {
	.fn-professor-hero,
	.fn-course-card {
		align-items: stretch;
		flex-direction: column;
	}

	.fn-session-form,
	.fn-professor-hero,
	.fn-login-hero {
		padding: 20px;
	}

	.fn-login-copy h2 {
		font-size: 30px;
	}

	.fn-login-primary {
		width: 100%;
	}
}

.fn-custom-teacher-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	padding: 5px 5px 10px;
	margin-bottom: 4px;
	border-bottom: 1px solid #e3eaf3;
}

.fn-custom-teacher-row .fn-custom-teacher {
	min-height: 42px;
	padding: 0 12px;
}

.fn-custom-teacher-row .fn-confirm-teacher {
	width: auto;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid #226fd7;
	background: #226fd7;
	color: #fff;
	text-align: center;
}

.fn-editing-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid #bcd5ff;
	border-radius: 8px;
	background: #eef5ff;
	color: #234f91;
}

.fn-editing-banner strong {
	padding: 6px 10px;
	border-radius: 6px;
	background: #226fd7;
	color: #fff;
}

.fn-history-list {
	grid-template-columns: 1fr;
}

.fn-history-item {
	position: relative;
	overflow: hidden;
	border-left: 6px solid #8ca1b8;
	background: #fff;
	padding: 20px;
}

.fn-history-item.is-draft { border-left-color: #7c8b9a; }
.fn-history-item.is-pending { border-left-color: #e0a400; }
.fn-history-item.is-in_review { border-left-color: #6d45d8; }
.fn-history-item.is-published { border-left-color: #1e9b67; }

.fn-history-top > div {
	display: grid;
	gap: 3px;
}

.fn-history-date {
	color: #65768b;
	font-size: 13px;
}

.fn-history-top strong {
	color: #1f2c3d;
	font-size: 17px;
}

.fn-history-meta > span {
	display: grid;
	gap: 3px;
	padding: 12px;
	border: 1px solid #e3eaf2;
	border-radius: 7px;
	background: #f8fafc;
}

.fn-history-meta small,
.fn-history-meta em {
	color: #708096;
	font-size: 12px;
	font-style: normal;
}

.fn-history-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 42px;
}

.fn-locked-record {
	color: #7a8797;
	font-size: 12px;
	font-weight: 700;
}

.fn-status-draft { background: #eef1f4; border-color: #d3d9df; color: #536170; }
.fn-status-pending { background: #fff6d9; border-color: #edd58a; color: #765800; }
.fn-status-in_review { background: #f1ebff; border-color: #d7c5ff; color: #5831aa; }
.fn-status-published { background: #e8f8f1; border-color: #b8e3d0; color: #176b49; }

@media (max-width: 720px) {
	.fn-editing-banner,
	.fn-history-top,
	.fn-submit-row {
		display: grid;
	}

	.fn-custom-teacher-row {
		grid-template-columns: 1fr;
	}
}
