.fsched {
	--fsched-blue: #1c4fb8;
	--fsched-blue-dark: #163f96;
	--fsched-header: #c9c9c9;
	--fsched-border: #cfcfcf;
	--fsched-text: #111;
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	color: var(--fsched-text);
	box-sizing: border-box;
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
}

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

.fsched-bar {
	background: var(--fsched-blue);
	color: #fff;
	padding: 18px 16px 22px;
	text-align: center;
}

.fsched-nav {
	display: flex;
	justify-content: center;
	gap: 36px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.fsched-nav a {
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 15px;
	font-weight: 600;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
}

.fsched-nav a:hover,
.fsched-nav a.is-active {
	color: #fff;
	border-bottom-color: #fff;
}

.fsched-filters {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.fsched-select,
.fsched-search,
.fsched-week-label input {
	height: 40px;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: #222;
	font-size: 15px;
	padding: 0 18px;
	appearance: none;
	-webkit-appearance: none;
}

.fsched-select {
	min-width: 220px;
	padding-right: 36px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.fsched-select-wide {
	min-width: 320px;
	max-width: 100%;
}

.fsched-search {
	min-width: 110px;
	font-weight: 500;
	cursor: pointer;
	padding: 0 26px;
}

.fsched-search:hover {
	background: #f3f3f3;
}

.fsched-quick {
	margin: 16px auto 0;
	max-width: 920px;
	text-align: left;
}

.fsched-quick-block + .fsched-quick-block {
	margin-top: 10px;
}

.fsched-quick-block.is-hidden {
	display: none;
}

.fsched-quick-spec {
	font-size: 12px;
	letter-spacing: 0.02em;
	opacity: 0.85;
	margin-bottom: 4px;
}

.fsched-quick-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: 4px;
}

.fsched-quick-label {
	font-size: 12px;
	opacity: 0.8;
	min-width: 3.6em;
}

.fsched-quick-course + .fsched-quick-course {
	margin-top: 6px;
}

.fsched-updated {
	font-size: 11px;
	opacity: 0.75;
	margin: 2px 0 0 3.8em;
	letter-spacing: 0.02em;
}

.fsched-title-updated {
	text-align: center;
	font-size: 13px;
	color: #666;
	margin: -4px 0 14px;
}

.fsched-quick-link {
	display: inline-block;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	text-decoration: none;
	border-radius: 12px;
	padding: 3px 10px;
	font-size: 13px;
	line-height: 1.3;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.fsched-quick-link:hover,
.fsched-quick-link.is-active {
	background: #fff;
	color: var(--fsched-blue);
	border-color: #fff;
}

.fsched-week-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 14px;
}

.fsched-body {
	padding: 24px 16px 40px;
}

.fsched-title {
	text-align: center;
	font-size: 30px;
	font-weight: 700;
	margin: 8px 0 12px;
	line-height: 1.25;
	color: #111;
}

.fsched-week-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: 18px;
	font-size: 14px;
}

.fsched-week-current {
	font-weight: 600;
	color: #111;
}

.fsched-week-nav a {
	color: var(--fsched-blue);
	text-decoration: none;
}

.fsched-week-nav a:hover {
	text-decoration: underline;
}

.fsched-hint {
	text-align: center;
	color: #555;
	margin: 32px 0;
}

.fsched-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	margin-bottom: 28px;
}

.fsched-table th,
.fsched-table td {
	border: 1px solid var(--fsched-border);
	padding: 8px 12px;
	vertical-align: middle;
	font-size: 15px;
}

.fsched-teacher-link {
	color: var(--fsched-blue);
	text-decoration: none;
	font-weight: 600;
}

.fsched-teacher-link:hover,
.fsched-title .fsched-teacher-link:hover {
	text-decoration: underline;
	color: var(--fsched-blue-dark);
}

.fsched-title .fsched-teacher-link {
	color: inherit;
	font-weight: inherit;
}

.fsched-table thead th {
	background: var(--fsched-header);
	font-weight: 600;
	text-align: center;
}

.fsched-table .col-time {
	width: 130px;
	text-align: center;
	white-space: nowrap;
}

.fsched-table .col-room {
	width: 22%;
}

.fsched-day td,
.fsched-day th {
	text-align: center;
	font-weight: 700;
	background: #fff;
	padding: 10px 12px;
}

.fsched-sub {
	font-size: 12px;
	color: #555;
	margin-top: 2px;
}

.fsched-note {
	font-size: 13px;
	color: #555;
	margin-top: 2px;
}

.fsched-remote {
	display: inline-flex;
	vertical-align: middle;
	margin-right: 4px;
	color: #1c4fb8;
}

.fsched-busy {
	color: #888;
	font-style: italic;
}

.fsched-table-rooms thead .fsched-day th {
	background: #fff;
}

@media (max-width: 767px) {
	.fsched-title {
		font-size: 22px;
	}

	.fsched-select,
	.fsched-select-wide {
		min-width: 0;
		width: 100%;
	}

	.fsched-filters {
		flex-direction: column;
	}

	.fsched-body {
		overflow-x: auto;
	}

	.fsched-table {
		min-width: 640px;
	}
}
