@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');
:root {
	--green: #075209;
	--dark: #043e06;
	--mid: #176b32;
	--yellow: #ffc20a;
	--blue: #087ff5;
	--paper: #f1f3f6;
	--white: #fff;
	--ink: #22282b;
	--muted: #68727a;
	--line: #d8dde2;
	--danger: #bd3434;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font:
		14px/1.5 'DM Sans',
		Arial,
		sans-serif;
}
body.faculty-app {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}
h1,
h2,
h3,
p {
	margin-top: 0;
}
h1,
h2,
h3 {
	font-family: Manrope, Arial, sans-serif;
}
button,
input,
select,
textarea {
	font: inherit;
}
.muted {
	color: var(--muted);
}
.eyebrow {
	display: block;
	margin-bottom: 6px;
	color: var(--mid);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}
.button {
	display: inline-flex;
	min-height: 40px;
	padding: 0 16px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
	font-weight: 700;
	text-decoration: none;
}
.button:hover {
	filter: brightness(0.96);
}
.button.primary {
	border-color: var(--blue);
	background: var(--blue);
	color: #fff;
}
.button.soft {
	border-color: #b9d2c5;
	background: #edf6f0;
	color: var(--green);
}
.button.light {
	border: 0;
	background: #fff;
	color: var(--green);
}
.button.small {
	min-height: 34px;
	padding: 0 11px;
	font-size: 11px;
}
.button.ai-button {
	border-color: #bcd7c5;
	background: #eff8f1;
	color: var(--green);
}
.button.ai-button[data-reparse-coverage]:disabled {
	border-color: #c9ced2;
	background: #e5e7e9;
	color: #7b8288;
	cursor: not-allowed;
	filter: none;
	opacity: 1;
}
body.ai-transaction-locked a[href],
body.ai-transaction-locked .workflow-card,
body.ai-transaction-locked [data-go],
body.ai-transaction-locked #menuToggle,
body.ai-transaction-locked #syllabusSelect,
body.ai-transaction-locked .faculty-topbar button {
	cursor: not-allowed !important;
	filter: grayscale(0.65);
	opacity: 0.45;
}
body.ai-transaction-locked a[href] {
	pointer-events: none;
}
.icon-button {
	border: 0;
	background: none;
	color: #68727a;
	font-size: 21px;
	cursor: pointer;
}
.faculty-sidebar {
	position: fixed;
	z-index: 30;
	inset: 0 auto 0 0;
	width: 242px;
	overflow: auto;
	background: var(--green);
	color: #c8d5c9;
}
.college-brand {
	display: flex;
	height: 49px;
	padding: 0 16px;
	align-items: center;
	gap: 10px;
	background: var(--yellow);
	color: #14201a;
	font-weight: 800;
}
.syllabus-brand-icon { position:relative; display:block; width:38px; height:38px; flex:0 0 38px; overflow:hidden; }
.syllabus-brand-icon img { position:absolute; display:block; width:148px; max-width:none; height:auto; left:-4px; top:-3px; }
.seal {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: #2c7135;
	color: #fff;
	font: 800 10px Manrope;
	box-shadow: 0 2px 6px #826600;
}
.clo-legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
}
.clo-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}
.clo-legend-item .user-avatar {
	flex: 0 0 35px;
	border-color: #e1b927;
	background: #f9c823;
	box-shadow: 0 2px 6px #001a0738;
	color: #173d24;
}
.faculty-user {
	display: flex;
	height: 70px;
	margin: 0 8px;
	padding: 0 5px;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #ffffff3d;
	font-size: 12px;
}
.faculty-user span {
	display: grid;
}
.faculty-user small {
	color: #a9c3ad;
}
.user-avatar {
	display: grid;
	width: 35px;
	height: 35px;
	place-items: center;
	border: 2px solid #ffffff8c;
	border-radius: 50%;
	background: #fff;
	color: var(--green);
	font-weight: 800;
}
.sidebar-class-summary {
	display: grid;
	margin: 16px 8px 0;
	padding: 6px 10px 17px;
	border-bottom: 1px solid #ffffff38;
	text-align: center;
}
.sidebar-class-summary strong {
	color: #fff;
	font-size: 14px;
}
.sidebar-class-summary .syllabus-serial {
	width: max-content;
	margin: 0 auto 6px;
	padding: 3px 7px;
	border: 1px solid #ffffff5c;
	border-radius: 999px;
	background: #ffffff17;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
}
.sidebar-class-summary span {
	font-size: 11px;
}
.sidebar-section-highlight {
	margin-top: 7px;
	padding: 5px 8px;
	border-radius: 4px;
	background: var(--yellow);
	color: #14201a !important;
	font-weight: 800;
}
.faculty-menu {
	display: grid;
	padding: 14px 8px;
	gap: 2px;
}
.faculty-menu a {
	display: flex;
	min-height: 39px;
	padding: 0 10px;
	align-items: center;
	gap: 9px;
	color: #c8d5c9;
	font-size: 11px;
	text-decoration: none;
}
.faculty-menu a b {
	display: grid;
	width: 20px;
	place-items: center;
	font-size: 14px;
}
.faculty-menu a[data-approval-notification] .approval-nav-label {
	position: relative;
}
.faculty-menu .approval-nav-badge {
	position: absolute;
	top: -8px;
	right: -18px;
	display: grid;
	place-items: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #f9c823;
	color: #083b19;
	font: 900 11px/1 Arial, sans-serif;
	font-style: normal;
	box-shadow: 0 0 0 2px #075b22;
}
.faculty-menu .approval-nav-badge[hidden] {
	display: none;
}
.syllabus-menu .syllabus-menu-divider {
    height: 0;
    margin: 8px 8px 9px;
    border-top: 1px solid rgba(220, 239, 224, .42);
}
.faculty-menu a:hover,
.faculty-menu a.active {
	background: #00000040;
	color: #fff;
}
.faculty-menu a.active {
	margin: 0 -8px;
	padding-left: 18px;
	background: var(--blue);
}
.faculty-topbar {
	position: fixed;
	z-index: 20;
	top: 0;
	right: 0;
	left: 242px;
	display: flex;
	height: 49px;
	padding: 0 18px;
	align-items: center;
	gap: 16px;
	border-bottom: 1px solid var(--line);
	background: #fafafa;
}
.faculty-topbar > button:first-child {
	display: none;
	border: 0;
	background: none;
	font-size: 19px;
}
.syllabus-switch {
	display: flex;
	align-items: center;
	gap: 8px;
}
.courseware-logo-link { position:relative; display:flex; flex:0 0 120px; width:120px; height:34px; align-items:center; justify-content:center; overflow:hidden; text-decoration:none; }
.courseware-logo-link img { position:absolute; display:block; width:148px; max-width:none; height:auto; left:-4px; top:-5px; }
.courseware-logo-link:hover { transform:translateY(-1px); }
.courseware-logo-link:focus-visible { outline:2px solid #1473e6; outline-offset:2px; }
.courseware-seal {
	flex: 0 0 32px;
	border-color: #d8aa00;
	background: #075f24;
	box-shadow: 0 2px 5px rgba(16, 67, 31, 0.28);
	text-decoration: none;
}
.courseware-seal:hover {
	background: #064d1e;
	transform: translateY(-1px);
}
.courseware-seal:focus-visible {
	outline: 2px solid #1473e6;
	outline-offset: 2px;
}
.syllabus-switch label {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #66727a;
	font-size: 11px;
	font-weight: 700;
}
.syllabus-switch select {
	height: 32px;
	width: min(520px, 40vw);
	min-width: 320px;
}
.top-actions {
	display: flex;
	margin-left: auto;
	align-items: center;
	gap: 8px;
}
.save-state {
	color: #159447;
	font-size: 11px;
	font-weight: 700;
}
.syllabus-progress {
	white-space: nowrap;
	border: 1px solid #b8d9bd;
	border-radius: 999px;
	padding: 7px 10px;
	background: #f1faf2;
	color: #075b22;
	font-size: 11px;
	font-weight: 800;
}
.syllabus-progress.complete {
	background: #dff4e3;
}
.syllabus-progress:focus-visible {
	outline: 2px solid #f9c823;
	outline-offset: 2px;
}
.alignment-description-tooltip.syllabus-progress-tooltip {
	width: min(380px, calc(100vw - 32px));
	max-width: min(380px, calc(100vw - 32px));
	max-height: min(70vh, 440px);
	overflow: auto;
	font-size: 12px;
	line-height: 1.5;
}
.syllabus-progress-tooltip strong {
	margin-top: 5px;
	color: #f9c823;
	font-size: 11px;
}
.syllabus-progress-tooltip ul {
	margin: 0;
	padding-left: 18px;
}
.syllabus-progress-tooltip li + li {
	margin-top: 3px;
}
.syllabus-progress-tooltip li { display:list-item; }
.syllabus-progress-tooltip li small { display:block; color:#d7ebdc; font-size:10px; }
.syllabus-progress-tooltip li a { white-space:nowrap; }
.syllabus-progress-tooltip.has-links { pointer-events:auto; }
.syllabus-progress-tooltip a { color:#fff; font-weight:800; text-decoration:underline; text-underline-offset:2px; }
.syllabus-progress-tooltip a:focus-visible { outline:2px solid #f9c823; outline-offset:2px; }
.faculty-content {
	min-height: calc(100vh - 42px);
	margin-left: 242px;
	padding: 78px max(28px, calc((100vw - 1260px) / 2)) 80px;
}
.faculty-footer {
	display: flex;
	position: fixed;
	z-index: 20;
	right: 0;
	bottom: 0;
	left: 0;
	margin-left: 242px;
	min-height: 30px;
	padding: 5px 12px;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--line);
	background: #fff;
	color: #74808c;
	font-size: 9px;
	line-height: 1.2;
}
.panel {
	display: none;
}
.panel.active {
	display: block;
}
.view-only-banner {
	display: flex;
	margin-bottom: 16px;
	padding: 11px 14px;
	align-items: center;
	gap: 10px;
	border: 1px solid #e2c45c;
	border-left: 4px solid #b88600;
	border-radius: 5px;
	background: #fff8d9;
	color: #5f4700;
}
.view-only-banner[hidden] {
	display: none !important;
}
.view-only-banner strong {
	font-size: 12px;
	white-space: nowrap;
}
.view-only-banner span {
	font-size: 11px;
}
.viewer-mode .faculty-content input:disabled,
.viewer-mode .faculty-content select:disabled,
.viewer-mode .faculty-content textarea:disabled {
	opacity: 1;
	background: #f3f6f4;
	color: #36433a;
	cursor: not-allowed;
}
.viewer-mode .faculty-content button:disabled,
.viewer-mode #saveNow:disabled,
.viewer-mode #deleteSyllabus:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.content-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}
.content-heading h1 {
	margin: 0 0 4px;
	color: #111;
	font-size: 26px;
}
.content-heading p {
	margin: 0;
}
.status-badge {
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff3c4;
	color: #725500;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}
.card {
	margin-bottom: 16px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 2px #0000000d;
}
.stack {
	display: grid;
	gap: 14px;
}
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.form-grid.three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid input.mapping-locked {
	background: #f4f8f5;
	color: #294c35;
	cursor: default;
}
.span-3 {
	grid-column: 1/-1;
}
label {
	display: grid;
	align-content: start;
	gap: 5px;
	color: #667078;
	font-size: 11px;
	font-weight: 700;
}
input,
select,
textarea {
	width: 100%;
	height: 40px;
	padding: 0 11px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: #fff;
	color: var(--ink);
	outline: 0;
}
textarea {
	height: auto;
	min-height: 90px;
	padding: 11px;
	resize: vertical;
	line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
	border-color: #78aef4;
	box-shadow: 0 0 0 3px #147df51f;
}
.workflow-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 8px;
	overflow-x: auto;
}
.workflow-card {
	position: relative;
	display: grid;
	min-height: 86px;
	padding: 14px 38px 14px 14px;
	align-content: center;
	gap: 3px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 2px 3px #00000013;
}
.workflow-card:hover {
	border-color: #8abcf0;
	transform: translateY(-1px);
}
.workflow-card > span {
	position: absolute;
	top: 12px;
	right: 12px;
	color: #d9e1e5;
	font: 800 20px Manrope;
}
.workflow-card > b {
	font: 700 12px Manrope;
}
.workflow-card small {
	color: var(--muted);
	font-size: 9px;
	line-height: 1.3;
}
.ai-banner {
	display: flex;
	margin-top: 16px;
	padding: 19px 22px;
	align-items: center;
	gap: 15px;
	border-radius: 7px;
	background: linear-gradient(125deg, var(--green), #0b6b2b);
	color: #fff;
}
.ai-banner .eyebrow {
	color: #bde3c6;
}
.ai-banner h2,
.ai-banner p {
	margin: 0;
}
.ai-banner p {
	color: #d5ead9;
}
.ai-banner .button {
	margin-left: auto;
}
.ai-orb {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	border: 1px solid #ffffff8c;
	border-radius: 50%;
	background: var(--yellow);
	color: #183c1d;
	font: 800 14px Manrope;
	box-shadow: 0 5px 20px #001a0752;
}
.fixed-note {
	margin-bottom: 14px;
	padding: 10px 13px;
	border-left: 4px solid var(--yellow);
	background: #fff7d5;
	color: #6b5300;
	font-size: 12px;
	font-weight: 700;
}
.identity-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.identity-grid .card {
	margin: 0;
}
.identity-grid p {
	margin: 0;
	color: #48535a;
	font-size: 12px;
}
.array-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 12px;
}
.array-head h3,
.array-head p {
	margin: 0;
}
.array-head p {
	color: var(--muted);
	font-size: 11px;
}
.list-row {
	display: grid;
	grid-template-columns: 44px 1fr 34px;
	align-items: start;
	gap: 8px;
	margin-top: 8px;
}
.list-row > span {
	display: grid;
	height: 40px;
	place-items: center;
	border-radius: 4px;
	background: #edf6f0;
	color: var(--green);
	font-size: 10px;
	font-weight: 800;
}
.remove {
	position: relative;
	display: inline-grid;
	box-sizing: border-box;
	width: 30px;
	min-width: 30px;
	height: 30px;
	padding: 0;
	place-items: center;
	border: 1px solid #e0b3b3;
	border-radius: 5px;
	background: #fff5f5;
	color: var(--danger);
	font-size: 0;
	line-height: 1;
	cursor: pointer;
}
.remove::before {
	content: '×';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font: 800 18px/1 Arial, sans-serif;
	transform: translateY(-1px);
}
.remove:hover,
.remove:focus-visible {
	border-color: var(--danger);
	background: var(--danger);
	color: #fff;
	outline: none;
}
.remove:focus-visible {
	box-shadow: 0 0 0 3px #d92d2033;
}
.remove:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.upload-card {
	display: flex;
	margin-bottom: 16px;
	padding: 20px;
	align-items: center;
	gap: 16px;
	border: 2px dashed #a9c7b2;
	border-radius: 7px;
	background: #f8fcf9;
	transition:
		border-color 0.16s,
		background-color 0.16s,
		box-shadow 0.16s;
}
.upload-card.is-dragover {
	border-color: var(--blue);
	background: #edf7ff;
	box-shadow: 0 0 0 4px #087ff51a;
}
.upload-card.is-uploading {
	border-style: solid;
	opacity: 0.82;
}
.upload-card input {
	width: 220px;
	padding: 8px;
}
.upload-card div {
	display: grid;
	flex: 1;
}
.upload-card small {
	color: var(--muted);
}
.reference-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}
.reference-card {
	display: grid;
	padding: 14px;
	border: 1px solid var(--line);
	border-left: 5px solid var(--yellow);
	border-radius: 5px;
	background: #fff;
	gap: 4px;
}
.reference-card b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.reference-card small {
	color: var(--muted);
}
.reference-card .remove {
	justify-self: end;
}
.table-wrap {
	overflow: auto;
}
table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}
th,
td {
	padding: 9px 10px;
	border: 1px solid #d8dde2;
	text-align: left;
	vertical-align: top;
}
th {
	background: #075b22;
	color: #fff;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
td input,
td textarea,
td select {
	min-width: 90px;
	border-color: #c5cdd2;
}
td textarea {
	min-width: 180px;
	min-height: 68px;
}
.invite-form {
	grid-template-columns: 2fr 1fr auto;
	align-items: end;
}
.member-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.member-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	padding: 14px;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #fff;
}
.member-card .user-avatar {
	background: var(--green);
	color: #fff;
}
.member-card span {
	display: grid;
}
.member-card small {
	color: var(--muted);
}
.member-copy {
	display: grid;
	min-width: 0;
	gap: 2px;
}
.member-copy small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.member-access {
	display: flex;
	grid-column: 1 / -1;
	padding-top: 10px;
	align-items: end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	border-top: 1px solid #e2e9e4;
}
.member-role-field {
	min-width: 130px;
	flex: 1;
}
.member-role-field select {
	height: 44px;
}
.member-duplicate-field {
	display: grid;
	grid-template-columns: 16px auto;
	align-items: center;
	gap: 1px 7px;
	height: 44px;
	min-height: 44px;
	padding: 4px 10px;
	border: 1px solid #bfd8c6;
	border-radius: 4px;
	background: #f7fbf8;
	color: #264b32;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}
.member-duplicate-field input {
	grid-row: 1 / 3;
	width: 16px;
	height: 16px;
	margin: 0;
}
.member-duplicate-field small {
	font-size: 9px;
	font-weight: 600;
}
.member-duplicate-status {
	font-size: 10px;
	font-weight: 700;
	color: #7a3333;
}
.member-duplicate-status.allowed {
	color: var(--green);
}
.member-role-badge {
	display: inline-flex;
	min-height: 28px;
	padding: 5px 10px;
	align-items: center;
	border: 1px solid #bfd8c6;
	border-radius: 999px;
	background: #edf8f0;
	color: var(--green);
	font-size: 10px;
	font-weight: 800;
	text-transform: capitalize;
}
.member-role-badge.owner {
	background: var(--green);
	color: #fff;
}
.member-remove-button {
	height: 44px;
	min-height: 44px;
	zoom: 1;
}
.button-row {
	display: flex;
	gap: 8px;
}
.ai-action-group {
	margin-left: auto;
	align-items: center;
}
#cloActionsSource {
	 display: flex;
	 align-items: center;
	 gap: 8px;
}
.content-table-card {
	padding: 0;
}
.course-content-table {
	min-width: 900px;
	table-layout: fixed;
}
.course-content-table .col-time {
	width: 13%;
}
.course-content-table .col-topic {
	width: 21%;
}
.course-content-table .col-ilo {
	width: 23%;
}
.course-content-table .col-reference {
	width: 27%;
}
.course-content-table .col-clo {
	width: 10%;
}
.course-content-table .col-action {
	width: 52px;
}
.course-content-table th,
.course-content-table td {
	padding: 10px;
}
.course-content-table td {
	height: 1px;
}
.course-content-table input,
.course-content-table textarea {
	min-width: 0;
}
.course-content-table textarea {
	height: 100%;
	min-height: 76px;
	overflow: hidden;
	resize: none;
}
.week-hours {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3px;
}
.reference-pages {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 78px;
	gap: 7px;
	align-items: start;
}
.course-content-table .reference-pages input {
	min-width: 0;
}
.course-content-table td:last-child {
	text-align: center;
}
.course-content-table .remove {
	margin-inline: auto;
}
.auth-view {
	position: fixed;
	z-index: 100;
	inset: 0;
	display: grid;
	place-items: center;
	align-items: safe center;
	padding: 16px 0;
	overflow-y: auto;
	background: linear-gradient(135deg, #043e06, #075209 62%, #0a7a32);
}
.auth-view[hidden] {
	display: none;
}
.auth-card {
	display: grid;
	width: min(420px, calc(100vw - 28px));
	min-width: 0;
	grid-template-columns: minmax(0, 1fr);
	padding: 34px;
	gap: 14px;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 24px 70px #001e0a73;
}
.login-brand {
	display: flex;
	margin-bottom: 10px;
	align-items: center;
	gap: 12px;
}
.login-brand-logo { position:relative; display:block; width:100%; max-width:270px; aspect-ratio:27/8; height:auto; overflow:hidden; }
.login-brand-logo img { position:absolute; display:block; width:131.5%; max-width:none; height:auto; left:-3.7%; top:-16.25%; }
.login-brand > div:last-child {
	display: grid;
}
.login-brand small {
	color: var(--muted);
}
.auth-card h1,
.auth-card p {
	margin: 0;
}
.form-error {
	min-height: 20px;
	margin: 0;
	color: var(--danger);
	font-size: 12px;
}
.password-field { position: relative; display: block; }
.password-field input { padding-right: 44px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.password-toggle .eye-off { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-off { display: block; }
#passwordRules { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
#passwordRules li.ok { color: var(--green); }
#passwordRules li.bad { color: var(--danger); }
.login-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.login-links a { color: var(--green); font-size: 13px; font-weight: 700; }
.toast {
	position: fixed;
	z-index: 120;
	right: 22px;
	bottom: 22px;
	max-width: min(380px, calc(100vw - 32px));
	padding: 12px 16px;
	border-radius: 5px;
	background: #1c2e24;
	color: #fff;
	box-shadow: 0 8px 30px #0004;
	font-weight: 700;
	overflow-wrap: anywhere;
}
@media (max-width: 360px) {
	.auth-card { padding: 24px; }
	.toast { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}
.ai-busy {
	position: fixed;
	z-index: 90;
	right: 22px;
	bottom: 22px;
	display: flex;
	padding: 15px 18px;
	align-items: center;
	gap: 12px;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 12px 40px #0003;
}
.ai-busy[hidden] {
	display: none;
}
.ai-busy > div:last-child {
	display: grid;
}
.ai-busy small {
	color: var(--muted);
}
@media (max-width: 1050px) {
	.workflow-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	.reference-list,
	.member-list {
		grid-template-columns: 1fr 1fr;
	}
	.form-grid.three {
		grid-template-columns: 1fr 1fr;
	}
	.span-3 {
		grid-column: 1/-1;
	}
}
@media (max-width: 760px) {
	.faculty-sidebar {
		transform: translateX(-100%);
		transition: 0.2s;
	}
	.menu-open .faculty-sidebar {
		transform: none;
	}
	.faculty-topbar {
		left: 0;
	}
	.faculty-topbar > button:first-child {
		display: block;
	}
	.faculty-content,
	.faculty-footer {
		margin-left: 0;
	}
	.faculty-content {
		padding: 72px 14px 60px;
	}
	.syllabus-switch label {
		display: none;
	}
	.top-actions .save-state,
	.top-actions > #saveNow {
		display: none;
	}
	.workflow-grid,
	.identity-grid,
	.reference-list,
	.member-list,
	.form-grid,
	.form-grid.three {
		grid-template-columns: 1fr !important;
	}
	.span-3 {
		grid-column: auto;
	}
	.upload-card,
	.content-heading {
		align-items: stretch;
		flex-direction: column;
	}
	.upload-card {
		display: grid;
	}
	.upload-card input {
		width: 100%;
	}
	.invite-form {
		grid-template-columns: 1fr;
	}
	.ai-banner {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.ai-banner .button {
		width: 100%;
		margin: 0;
	}
	.faculty-footer {
		gap: 2px 8px;
		flex-direction: row;
		flex-wrap: wrap;
		padding: 4px 10px;
	}
}
.faculty-content {
	width: calc(100% - 242px);
	padding-right: 16px;
	padding-left: 16px;
}
@media (max-width: 760px) {
	.faculty-content {
		width: 100%;
		padding-right: 10px;
		padding-left: 10px;
	}
}
.topic-planner-table {
	min-width: 900px;
	table-layout: fixed;
}
.topic-planner-table col:not(.col-action) {
	width: 20%;
}
.topic-planner-table .col-action {
	width: 60px;
}
.topic-planner-table td {
	padding: 10px;
}
.topic-planner-table input,
.topic-planner-table textarea {
	display: block;
	width: 100%;
	height: 76px;
	min-width: 0;
	min-height: 76px;
	margin: 0;
	padding: 11px;
	resize: none;
	line-height: 1.5;
}
.topic-planner-table td:last-child {
	text-align: center;
}
.topic-planner-table .remove {
	margin-inline: auto;
}
.department-picker {
	display: grid;
	grid-template-columns: minmax(320px, 1fr) auto;
	align-items: end;
	gap: 15px;
}
.membership {
	display: grid;
	padding: 9px 14px;
	border: 1px solid #b8d9c2;
	border-radius: 4px;
	background: #eff8f1;
}
.membership b {
	color: var(--green);
}
.membership span {
	color: var(--muted);
	font-size: 10px;
}
.prefix-field {
	min-width: 110px;
}
.department-outcome-table th:first-child {
	width: 90px;
}
.department-outcome-table th:nth-child(3) {
	width: 28%;
}
.department-outcome-table th:last-child {
	width: 55px;
}
.department-outcome-table textarea {
	min-height: 76px;
}
.department-app .faculty-content {
	padding-top: 75px;
}
@media (max-width: 760px) {
	.department-picker {
		grid-template-columns: 1fr;
	}
}
.syllabus-menu {
	padding-bottom: 18px;
}
.syllabus-menu a {
	min-height: 36px;
	padding-top: 6px;
	padding-bottom: 6px;
}
.syllabus-menu a b {
	width: 38px;
	font-size: 9px;
}
.overview-section {
	margin-top: 16px;
}
.overview-section h2 {
	margin: 0;
	font-size: 18px;
}
.segmented {
	display: flex;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #f3f5f6;
}
.segmented button {
	padding: 5px 11px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #65727a;
	font-size: 10px;
	font-weight: 800;
	cursor: pointer;
}
.segmented button.active {
	background: #fff;
	color: var(--green);
	box-shadow: 0 1px 3px #0002;
}
.modern-upload {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	margin: 14px 0;
	min-height: 118px;
	padding: 16px;
	align-items: center;
	border: 2px dashed #9eb7a6;
	background: #f7fbf8;
}
.modern-upload input[type='file'] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.drop-prompt {
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex-direction: column;
	cursor: pointer;
	text-align: center;
}
.upload-icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: #e0f1e5;
	color: var(--green);
	font-size: 21px;
}
.upload-progress {
	position: absolute;
	right: 16px;
	bottom: 10px;
	left: 16px;
	height: 18px;
	overflow: hidden;
	border-radius: 3px;
	background: #e1e7e3;
}
.upload-progress i {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: linear-gradient(90deg, var(--green), #36b85e);
	transition: width 0.15s;
}
.upload-progress span {
	position: relative;
	z-index: 1;
	display: block;
	padding: 2px 7px;
	color: #20372a;
	font-size: 9px;
	font-weight: 800;
}
.period-preference-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}
.period-preference {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 13px;
	border: 1px solid var(--line);
	border-top: 4px solid #527ea3;
	background: #fbfcfd;
}
.period-preference > b {
	grid-column: 1/-1;
}
.period-preference.midterms {
	border-top-color: #d79a20;
}
.period-preference.pre-finals {
	border-top-color: #7a5aa6;
}
.period-preference.finals {
	border-top-color: #388d56;
}
.period-preference.is-disabled {
	border-color: #c9ced2;
	border-top-color: #9aa1a7;
	background: #eceff1;
	color: #6d747a;
}
.period-preference.is-disabled > :not(.period-toggle) {
	opacity: 0.55;
}
.period-toggle {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}
.period-toggle span {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}
.period-empty-state {
	padding: 28px;
	border: 1px dashed #a8b8ad;
	background: #f7faf8;
	color: var(--muted);
	text-align: center;
}
.reference-list.compact-deck.grid-view {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}
.compact-deck.grid-view .reference-card {
	min-height: 78px;
	padding: 10px;
}
.compact-deck.grid-view .reference-card b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.compact-deck.list-view {
	display: table;
	width: 100%;
	border-collapse: collapse;
}
.compact-deck.list-view .reference-card {
	display: table-row;
}
.compact-deck.list-view .reference-card > * {
	display: table-cell;
	padding: 9px;
	border: 1px solid var(--line);
	vertical-align: middle;
}
.compact-deck.list-view .reference-card .remove {
	width: 36px;
}
.topic-planner-table {
	min-width: 1080px;
}
.topic-planner-table th:nth-child(1),
.topic-planner-table th:nth-child(2) {
	width: 7%;
}
.topic-planner-table th:nth-child(3),
.topic-planner-table th:nth-child(4) {
	width: 25%;
}
.topic-planner-table th:nth-child(5) {
	width: 9%;
}
.topic-planner-table th:nth-child(6) {
	width: 10%;
}
.topic-planner-table th:last-child {
	width: 52px;
}
.topic-planner-table input,
.topic-planner-table textarea,
.topic-planner-table select {
	height: 76px;
	min-height: 76px;
}
.topic-planner-table select {
	padding: 8px;
}
.period-section {
	padding: 0;
	overflow: hidden;
}
.period-heading {
	display: flex;
	padding: 10px 14px;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	background: #075b22;
	color: #fff;
}
.period-heading span {
	font: 800 15px Manrope;
}
.period-heading small {
	color: #d7ebdc;
}
.period-section.midterms .period-heading {
	background: #075b22;
}
.period-section.finals .period-heading {
	background: #075b22;
}
.period-heading-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}
.content-period-actions {
	align-items: center;
	gap: 6px;
}
.content-period-actions .ai-button {
	height: 34px;
	min-height: 34px;
	white-space: nowrap;
}
.period-add-button {
	display: inline-flex;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 1px solid #b7dfc2;
	border-radius: 4px;
	background: #fff;
	color: #075b22;
	font-size: 0;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}
.period-add-button::before {
	content: '+';
	font: 800 17px/1 Arial, sans-serif;
	transform: translateY(-1px);
}
.action-heading .period-add-button {
	margin: auto;
}
.period-add-button:hover,
.period-add-button:focus {
	border-color: #b7dfc2;
	background: #fff;
	color: #075b22;
	filter: none;
}
.period-add-button:focus-visible {
	outline: 2px solid #f9c823;
	outline-offset: 2px;
}
.section-content-table,
.learning-plan-table {
	min-width: 950px;
	table-layout: fixed;
}
.section-content-table th:nth-child(1) {
	width: 34%;
}
.section-content-table th:nth-child(2) {
	width: 32%;
}
.section-content-table th:nth-child(3) {
	width: 13%;
}
.section-content-table th:nth-child(4) {
	width: 15%;
}
.section-content-table th:last-child,
.learning-plan-table th:last-child {
	width: 50px;
}
.section-content-table textarea,
.learning-plan-table textarea {
	min-width: 0;
	min-height: 82px;
	overflow: hidden;
	resize: none;
}
.source-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 82px;
	gap: 6px;
	margin-top: 6px;
}
.section-content-table select[multiple] {
	height: 82px;
	padding: 4px;
}
.learning-plan-table th:nth-child(1) {
	width: 5%;
}
.learning-plan-table th:nth-child(2) {
	width: 25%;
}
.learning-plan-table th:nth-child(3) {
	width: 34%;
}
.learning-plan-table th:nth-child(4) {
	width: 21%;
}
.learning-plan-table th:nth-child(5) {
	width: 15%;
}
.clo-workspace {
	padding: 0;
}
.clo-workspace .array-head {
	padding: 14px;
}
.clo-map-table {
	min-width: 1250px;
	table-layout: auto;
}
.clo-map-table .clo-code {
	width: 80px;
}
.clo-map-table .clo-outcome {
	min-width: 420px;
}
.clo-map-table th:not(.clo-outcome) {
	text-align: center;
}
.clo-map-table td textarea {
	min-width: 400px;
	min-height: 86px;
}
.clo-map-table td select {
	min-width: 48px;
	padding: 0 5px;
}
.formula-banner {
	display: grid;
	grid-template-columns: max-content max-content minmax(260px, max-content);
	margin-bottom: 14px;
	padding: 12px 14px;
	align-items: center;
	justify-content: start;
	gap: 12px;
	border: 1px solid #c7dfce;
	border-left: 4px solid var(--green);
	border-radius: 6px;
	background: #eaf5ed;
	box-shadow: 0 1px 2px #002d160d;
}
.formula-banner b {
	color: var(--green);
	font-size: 12px;
	white-space: nowrap;
}
.formula-banner code {
	display: inline-flex;
	min-height: 34px;
	padding: 7px 11px;
	align-items: center;
	border: 1px solid #d5e6da;
	border-radius: 4px;
	background: #fff;
	color: #173c24;
	font-weight: 800;
	white-space: nowrap;
}
.formula-banner span {
	padding: 8px 11px;
	border: 1px solid #d5e6da;
	border-radius: 4px;
	background: #f8fcf9;
	color: #173c24;
	white-space: nowrap;
}
@media (max-width: 900px) {
	.formula-banner {
		grid-template-columns: 1fr;
		align-items: stretch;
	}
	.formula-banner code,
	.formula-banner span {
		white-space: normal;
	}
}
.grading-table th:nth-child(2) {
	width: 120px;
}
.grading-table th:last-child {
	width: 50px;
}
.total-ok {
	color: #158445;
}
.total-bad {
	color: #b63838;
}
.grading-table tfoot th {
	color: #fff;
	font-weight: 800;
}
.grading-table tfoot .total-ok {
	color: #c9f7d5;
}
.grading-table tfoot .total-bad {
	color: #ffd54f;
}
.ai-busy {
	min-width: 430px;
}
.ai-progress-copy {
	display: grid;
	gap: 3px;
	flex: 1;
}
.ai-progress {
	height: 7px;
	margin-top: 7px;
	overflow: hidden;
	border-radius: 9px;
	background: #ffffff38;
}
.ai-progress i {
	display: block;
	width: 40%;
	height: 100%;
	border-radius: 9px;
	background: var(--yellow);
	animation: mina-progress 1.4s ease-in-out infinite;
}
@keyframes mina-progress {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(350%);
	}
}
.ai-busy {
	min-width: 520px;
	padding: 20px 22px;
	border: 2px solid #08762f;
	border-left: 8px solid #f9c823;
	background: linear-gradient(135deg, #fff, #f2faf4);
	box-shadow:
		0 18px 55px #002d1645,
		0 0 0 5px #08762f18;
}
.ai-busy .ai-orb {
	position: relative;
	width: 58px;
	height: 58px;
	flex-basis: 58px;
	border: 0;
	box-shadow: 0 7px 22px #001a0740;
}
.ai-busy .ai-orb:before {
	content: '';
	position: absolute;
	inset: -7px;
	border: 5px solid #d8eadf;
	border-top-color: #08762f;
	border-right-color: #f9c823;
	border-radius: 50%;
	animation: mina-orb-spin 0.85s linear infinite;
}
.ai-busy .ai-orb:after {
	content: '';
	position: absolute;
	inset: -13px;
	border: 2px solid #08762f26;
	border-radius: 50%;
	animation: mina-orb-pulse 1.35s ease-out infinite;
}
.ai-busy .ai-progress-copy > b {
	color: #064d20;
	font-size: 15px;
}
.ai-busy .ai-progress {
	height: 10px;
	margin-top: 10px;
	border: 1px solid #b7cfc0;
	background: #dbe7df;
	box-shadow: inset 0 1px 3px #002b161c;
}
.ai-busy .ai-progress i {
	width: 38%;
	background: linear-gradient(90deg, #08762f, #f9c823, #08762f);
	box-shadow: 0 0 10px #f9c823;
}
.ai-busy small {
	font-weight: 600;
}
.ai-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:#315a40;font-size:11px;font-weight:800}.ai-progress-meta span:first-child{color:#075b22;font-size:13px}.ai-build-controls{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}.ai-build-controls .danger{border-color:#b63737;background:#fff4f4;color:#a32121}.ai-busy.is-paused,.cw-ai-busy.is-paused{border-color:#d19a00;background:linear-gradient(135deg,#fffdf5,#fff7d8)}.ai-busy.is-paused .ai-orb:before,.cw-ai-busy.is-paused .ai-orb:before{animation:none;border-color:#d19a00}.ai-busy .ai-progress i[data-progress-mode="determinate"],.cw-ai-busy .ai-progress i[data-progress-mode="determinate"]{animation:none;transform:none;transition:width .35s ease;width:0;background:linear-gradient(90deg,#08762f,#f9c823)}
.ai-build-controls [hidden]{display:none!important}
.ai-pause-help{display:block;margin-top:7px;max-width:48rem;color:#496355;font-size:12px;line-height:1.4}
@keyframes mina-orb-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes mina-orb-pulse {
	0% {
		opacity: 0.65;
		transform: scale(0.88);
	}
	100% {
		opacity: 0;
		transform: scale(1.28);
	}
}
.stop-guiding {
	display: none;
	position: fixed;
	z-index: 90;
	top: 58px;
	right: 12px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #d92d20;
	color: #fff;
	font-size: 0;
	box-shadow: 0 3px 10px #5b0b0759;
	cursor: pointer;
}
.stop-guiding::before {
	content: '×';
	display: block;
	font: 800 20px/1 Arial, sans-serif;
	transform: translateY(-1px);
}
.workflow-grid.is-guiding .stop-guiding {
	display: grid;
	place-items: center;
}
.stop-guiding:hover,
.stop-guiding:focus {
	background: #a8140b;
	color: #fff;
	transform: scale(1.08);
	outline: 3px solid #f9c823;
}
.clo-map-table td:last-child {
	vertical-align: top !important;
	padding-top: 10px !important;
}
.clo-map-table td:last-child .remove {
	margin: 0 auto !important;
}
@media (max-width: 1200px) {
	.reference-list.compact-deck.grid-view {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 760px) {
	.period-preference-grid {
		grid-template-columns: 1fr;
	}
	.reference-list.compact-deck.grid-view {
		grid-template-columns: 1fr 1fr;
	}
	.modern-upload {
		grid-template-columns: 1fr;
	}
	.formula-banner {
		align-items: flex-start;
		flex-direction: column;
	}
	.formula-banner span {
		margin: 0;
	}
	.ai-busy {
		min-width: 0;
		width: calc(100% - 32px);
	}
}

/* Reference coverage, Mina prompt, and uniform content controls */
.mina-prompt {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	margin-top: 12px;
	align-items: end;
	gap: 14px;
}
.mina-prompt label {
	display: grid;
	gap: 7px;
}
.mina-prompt textarea {
	min-height: 78px;
}
.modern-upload {
	position: relative;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
}
.modern-upload .drop-prompt {
	min-height: 120px;
}
.modern-upload > .button {
	align-self: end;
	min-width: 180px;
}
.modern-upload .upload-progress {
	grid-column: 1/-1;
	margin: 0;
}
.period-preference-grid {
	align-items: start;
}
.period-preference {
	display: grid;
	grid-template-rows: repeat(3, auto);
	gap: 12px;
}
.period-week-range {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
}
.period-reference-group,
.period-preference > .period-week-range + div:not(.period-week-range) {
	display: grid;
	grid-column: 1 / -1;
	grid-template-rows: auto auto;
	min-height: 0;
}
.field-caption {
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
	font-weight: 700;
}
.reference-checks {
	display: grid;
	max-height: 180px;
	padding: 7px;
	gap: 5px;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #fff;
}
.reference-checks label {
	display: flex;
	min-width: 0;
	padding: 5px 6px;
	align-items: center;
	gap: 7px;
	border-radius: 4px;
	font-size: 11px;
	cursor: pointer;
}
.reference-checks label:hover {
	background: #edf5f8;
}
.reference-checks input,
.clo-checks input {
	width: auto;
	min-width: 14px;
	height: 14px;
	margin: 0;
}
.reference-checks span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.period-reference-checks {
	max-height: 320px;
}
.period-reference-item + .period-reference-item {
	border-top: 1px solid var(--line);
}
.period-source-pages {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 9px;
	padding: 0 6px 9px 27px;
}
.period-reference-checks .period-source-pages label {
	display: grid;
	gap: 4px;
	padding: 0;
	font-size: 10px;
	color: var(--muted);
}
.period-reference-checks .period-source-pages input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 36px;
	padding: 7px;
}
.period-reference-checks .period-source-pages small { font-size: 10px; color: var(--muted); }
.reference-card {
	min-width: 0;
	align-items: flex-start;
}
.reference-icon {
	display: grid;
	width: 38px;
	height: 42px;
	flex: 0 0 38px;
	place-items: center;
	border-radius: 4px;
	background: #e9f2ec;
	color: var(--green);
	font-size: 9px;
	font-weight: 800;
}
.reference-meta {
	display: grid;
	min-width: 0;
	gap: 3px;
}
.reference-meta b,
.reference-meta span {
	overflow: hidden;
	text-overflow: ellipsis;
}
.reference-meta b {
	white-space: nowrap;
}
.reference-meta span {
	display: -webkit-box;
	color: var(--muted);
	font-size: 10px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.compact-remove {
	width: 30px !important;
	min-width: 30px !important;
	height: 30px !important;
	padding: 0 !important;
}
.action-cell {
	width: 42px !important;
	min-width: 42px !important;
	padding-left: 5px !important;
	padding-right: 5px !important;
	text-align: center;
}
.planner-period th {
	padding: 9px 12px !important;
	background: #e3f2e7 !important;
	color: #075b22 !important;
	text-align: left !important;
}
.topic-planner-table th:last-child {
	width: 42px;
}
.topic-planner-table td:nth-child(4) {
	min-width: 260px;
}
.topic-planner-table .reference-checks {
	max-height: 125px;
}
.clo-checks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	min-width: 130px;
	max-height: 92px;
	padding-right: 3px;
	align-content: flex-start;
	gap: 7px;
	overflow-y: auto;
}
.clo-checks label {
	display: flex;
	min-width: 0;
	padding: 5px 7px;
	align-items: center;
	gap: 4px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #fff;
	font-size: 11px;
	white-space: nowrap;
}
.week-hours label {
	display: grid;
	gap: 1px;
	color: var(--muted);
	font-size: 8px;
	font-weight: 800;
	text-transform: uppercase;
}
.section-content-table .week-hours input,
.learning-plan-table .week-hours input {
	min-width: 0;
	height: 24px;
	min-height: 24px;
	padding: 0 7px;
	font-size: 10px;
}
.learning-plan-table .plan-week-hours {
	width: 100%;
	min-width: 0;
}
.learning-plan-table th:nth-child(5),
.learning-plan-table td:nth-child(5) {
	width: 70px !important;
	min-width: 70px !important;
	max-width: 70px !important;
}
.section-content-table th:nth-child(1),
.section-content-table th:nth-child(2) {
	width: 34%;
}
.section-content-table th:nth-child(3) {
	width: 14%;
}
.section-content-table th:nth-child(4) {
	width: 14%;
}
.section-content-table th:last-child {
	width: 4%;
}
.grading-table {
	width: 100%;
	table-layout: fixed;
}
.grading-table th:nth-child(1) {
	width: 28%;
}
.grading-table th:nth-child(2) {
	width: 14%;
}
.grading-table th:nth-child(3) {
	width: 52%;
}
.grading-table th:nth-child(4) {
	width: 6%;
}
.grading-table input,
.grading-table textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
}
.grading-table textarea {
	resize: vertical;
}
.grading-table input[type='number'] {
	text-align: center;
}
.form-grid > label > input,
.form-grid > label > select,
.stack > label > input,
.stack > label > textarea {
	box-sizing: border-box;
	width: 100%;
}
@media (max-width: 760px) {
	.mina-prompt {
		grid-template-columns: 1fr;
	}
	.mina-prompt .button {
		width: 100%;
	}
	.period-week-range {
		grid-template-columns: 1fr;
	}
	.topic-planner-table td:nth-child(4) {
		min-width: 210px;
	}
}
.button.danger-outline {
	border-color: #d9a1a1;
	background: #fff7f7;
	color: #a82d2d;
}
.button.danger-outline:hover {
	background: #fbe8e8;
}
.reference-actions {
	display: flex;
	margin-top: 7px;
	gap: 6px;
}
.reference-actions .button {
	min-height: 28px;
	padding: 0 9px;
	font-size: 10px;
}
.reference-card .reference-meta {
	flex: 1;
}
.syllabus-switch {
	flex-wrap: wrap;
}
.modern-upload {
	grid-template-columns: 1fr !important;
	padding: 18px !important;
	gap: 12px !important;
}
.modern-upload .drop-prompt {
	width: 100%;
	min-height: 112px;
	border-radius: 5px;
}
.modern-upload > .button {
	min-width: 190px;
	justify-self: end;
	align-self: center;
}
.modern-upload .upload-progress {
	position: relative;
	right: auto;
	bottom: auto;
	left: auto;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 22px;
	grid-column: 1;
	margin: 0;
}
.modern-upload .upload-progress[hidden] {
	display: none !important;
}
.modern-upload.is-uploading > .button {
	opacity: 0.65;
}
.modern-upload.is-uploading .drop-prompt {
	pointer-events: none;
}
.upload-progress span {
	padding: 4px 9px;
}
@media (max-width: 760px) {
	.modern-upload > .button {
		width: 100%;
		justify-self: stretch;
	}
}
.compact-deck.list-view {
	display: grid;
	width: 100%;
	grid-template-columns: 1fr;
	border: 0;
	border-collapse: initial;
	gap: 6px;
}
.compact-deck.list-view .reference-card {
	display: flex;
	min-height: 52px;
	padding: 8px 10px;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--yellow);
	border-radius: 5px;
}
.compact-deck.list-view .reference-card > * {
	display: flex;
	padding: 0;
	border: 0;
	vertical-align: initial;
}
.compact-deck.list-view .reference-icon {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
}
.compact-deck.list-view .reference-meta {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto auto;
	align-items: center;
	gap: 12px;
}
.compact-deck.list-view .reference-meta > b {
	min-width: 0;
}
.compact-deck.list-view .reference-meta > small {
	white-space: nowrap;
}
.compact-deck.list-view .reference-meta > span {
	display: none;
}
.compact-deck.list-view .reference-actions {
	margin: 0;
	white-space: nowrap;
}
.reference-delete {
	display: inline-grid !important;
	width: 30px !important;
	min-width: 30px !important;
	height: 30px !important;
	margin-left: auto;
	padding: 0 !important;
	place-items: center;
	color: var(--danger);
}
@media (max-width: 760px) {
	.compact-deck.list-view .reference-meta {
		grid-template-columns: 1fr auto;
	}
	.compact-deck.list-view .reference-meta > small {
		display: none;
	}
	.compact-deck.list-view .reference-actions {
		grid-column: 1/-1;
	}
	.reference-delete {
		min-width: 30px !important;
		width: 30px !important;
		padding: 0 !important;
	}
}

/* Step 3 period reference checkboxes */
.period-reference-checks {
	display: grid;
	height: auto;
	max-height: 320px;
	padding: 7px;
	align-content: start;
	gap: 4px;
	grid-auto-rows: max-content;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #fff;
}
.period-reference-checks label {
	display: flex;
	min-width: 0;
	padding: 6px 7px;
	align-items: center;
	gap: 7px;
	border-radius: 4px;
	cursor: pointer;
}
.period-reference-checks label:hover {
	background: #edf5f8;
}
.period-reference-checks input[type="checkbox"] {
	width: 15px !important;
	min-width: 15px !important;
	height: 15px !important;
	margin: 0;
}
.period-reference-checks span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Formal table controls and dedicated action columns */
.add-topic-control,
.content-heading .button-row {
	align-items: center;
}
.content-heading .button-row {
	flex-wrap: wrap;
	justify-content: flex-end;
}
.content-heading .button-row > .button,
.content-heading .button-row > select {
	flex: 0 0 auto;
	white-space: nowrap;
}
.add-topic-control select,
.content-heading .button-row select {
	width: auto;
	min-width: 125px;
	height: 36px;
	padding: 6px 30px 6px 10px;
}
.reference-options {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 7px 9px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #fff;
	color: var(--ink);
}
.period-preference .reference-options {
	height: 104px;
}
.topic-planner-table {
	min-width: 980px;
}
.action-heading,
.action-cell {
	width: 46px !important;
	min-width: 46px !important;
	padding: 6px !important;
	text-align: center !important;
	vertical-align: middle !important;
}
.action-cell {
	background: #fbfcfd;
}
.action-cell .remove {
	display: grid;
	width: 30px !important;
	min-width: 30px !important;
	height: 30px !important;
	margin: auto !important;
	padding: 0 !important;
	place-items: center;
}
.table-row-actions {
	display: grid;
	justify-items: center;
	gap: 3px;
}
.table-row-move {
	width: 30px;
	height: 20px;
	padding: 0;
	border: 1px solid #b7dfc2;
	border-radius: 4px;
	background: #edf8f0;
	color: #075b22;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}
.table-row-move:hover:not(:disabled),
.table-row-move:focus:not(:disabled) {
	border-color: #075b22;
	background: #075b22;
	color: #fff;
}
.table-row-move:disabled {
	border-color: #e0e5e2;
	background: #f6f8f7;
	color: #b2bbb5;
	cursor: not-allowed;
}
.table-row-actions .remove {
	margin-top: 2px !important;
}
.section-content-table .item-column {
	width: 58px !important;
}
.section-content-table .item-number {
	width: 58px;
	text-align: center;
	font-weight: 800;
	color: var(--green);
}
.section-content-table th:nth-child(2) {
	width: 29%;
}
.section-content-table th:nth-child(3) {
	width: 33%;
}
.section-content-table th:nth-child(4) {
	width: 10%;
}
.section-content-table th:nth-child(5) {
	width: 20%;
}
.section-content-table th:last-child {
	width: 46px;
}
table thead th {
	border-color: #b7d8c0 !important;
	background: #dff1e4 !important;
	color: var(--green) !important;
}
.clo-help {
	display: inline-grid;
	width: 16px;
	height: 16px;
	margin-left: 3px;
	place-items: center;
	border-radius: 50%;
	background: #e5eef3;
	color: #31516a;
	font-size: 10px;
	font-weight: 800;
}
.alignment-description-tooltip,
.clo-description-tooltip {
	position: fixed;
	z-index: 200;
	display: grid;
	max-width: min(330px, calc(100vw - 32px));
	padding: 10px 12px;
	gap: 4px;
	pointer-events: none;
	border: 1px solid #8dc59d;
	border-radius: 6px;
	background: #075b22;
	box-shadow: 0 8px 24px #002d1640;
	color: #fff;
	font-size: 11px;
	line-height: 1.45;
}
.alignment-description-tooltip[hidden],
.clo-description-tooltip[hidden] {
	display: none !important;
}
.alignment-description-tooltip b,
.clo-description-tooltip b {
	color: #f9c823;
	font-size: 10px;
}
.alignment-tip-trigger {
	cursor: help;
}
.alignment-description-tooltip.tos-hour-floating-tip {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: 0 8px 24px #002d1640;
}
.alignment-description-tooltip.tos-hour-floating-tip .tos-time-indicator {
	white-space: nowrap;
}
.grading-table td {
	vertical-align: middle;
}
.grading-table input,
.grading-table textarea {
	height: 54px !important;
	min-height: 54px !important;
	margin: 0;
	padding: 9px 11px;
}
.grading-table textarea {
	resize: vertical;
}
.grading-table th:last-child {
	width: 46px;
}
.learning-plan-table th:last-child {
	width: 46px;
}

.topic-planner-table th:nth-child(1) {
	width: 7% !important;
}
.topic-planner-table th:nth-child(2) {
	width: 7% !important;
}
.topic-planner-table th:nth-child(3) {
	width: 36% !important;
}
.topic-planner-table th:nth-child(4) {
	width: 35% !important;
}
.topic-planner-table th:nth-child(5) {
	width: 10% !important;
}
.topic-planner-table th:nth-child(6) {
	width: 5% !important;
}
.topic-planner-table td {
	vertical-align: middle !important;
}
.clo-map-table th:last-child,
.clo-map-table td:last-child {
	width: 46px !important;
	min-width: 46px !important;
	padding: 6px !important;
	text-align: center !important;
	vertical-align: middle !important;
	background: #fbfcfd;
}
.clo-map-table td:last-child .remove {
	display: grid;
	width: 30px;
	height: 30px;
	margin: auto;
	place-items: center;
}
/* Compact coverage-management table */
.topic-planner-table {
	width: 100%;
	min-width: 1120px;
	table-layout: fixed;
}
.topic-planner-table th:nth-child(1) {
	width: 6%;
}
.topic-planner-table th:nth-child(2) {
	width: 6%;
}
.topic-planner-table th:nth-child(3) {
	width: 25%;
}
.topic-planner-table th:nth-child(4) {
	width: 31%;
}
.topic-planner-table th:nth-child(5) {
	width: 12%;
}
.topic-planner-table th:nth-child(6) {
	width: 15%;
}
.topic-planner-table th:last-child {
	width: 5%;
}
.topic-planner-table td {
	padding: 8px;
	vertical-align: top;
}
.topic-planner-table td > input,
.topic-planner-table td > select {
	box-sizing: border-box;
	width: 100%;
	height: 44px !important;
	min-height: 44px !important;
	padding: 8px 10px;
}
.topic-planner-table td > textarea {
	box-sizing: border-box;
	width: 100%;
	height: 62px !important;
	min-height: 62px !important;
	padding: 9px 11px;
	line-height: 1.35;
	resize: vertical;
}
.topic-planner-table .reference-checks {
	display: flex;
	max-height: 72px;
	min-height: 44px;
	padding: 6px;
	align-content: flex-start;
	flex-wrap: wrap;
	gap: 5px;
	overflow: auto;
}
.topic-planner-table .reference-checks label {
	display: inline-flex;
	width: auto;
	max-width: 100%;
	min-height: 28px;
	padding: 4px 7px;
	border: 1px solid #d8e1e5;
	background: #f8fafb;
}
.topic-planner-table .reference-checks input {
	width: 14px !important;
	min-width: 14px !important;
	height: 14px !important;
	min-height: 14px !important;
}
.topic-planner-table .reference-checks span {
	max-width: 190px;
}
.topic-planner-table .action-cell {
	width: 42px !important;
	padding: 10px 5px !important;
	vertical-align: top;
}
.topic-planner-table .action-cell .remove {
	width: 30px !important;
	min-width: 30px !important;
	height: 30px !important;
	border-radius: 5px;
	font-size: 0;
}

/* Global editable-table theme */
.themed-table-wrap,
.clo-workspace {
	padding: 0;
	overflow: auto;
}
.table-toolbar,
.period-heading {
	display: flex;
	min-height: 58px;
	box-sizing: border-box;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: var(--green);
	color: #fff;
}
.table-toolbar h3,
.table-toolbar strong,
.period-heading > span,
.period-heading small {
	margin: 0;
	color: #fff;
}
.table-toolbar .eyebrow,
.table-toolbar p,
.table-toolbar .muted,
.table-toolbar label,
.table-toolbar small {
	color: #e5f4e9 !important;
}
.table-toolbar input,
.table-toolbar select,
.table-toolbar textarea {
	background: #fff;
	color: #17231c !important;
}
.table-toolbar input::placeholder,
.table-toolbar textarea::placeholder {
	color: #69776f;
}
.table-toolbar .button-row,
.period-heading-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
.table-toolbar .button,
.period-heading .button {
	min-height: 38px;
}
.themed-table-wrap > table,
.clo-workspace > table {
	margin: 0;
}
table thead .action-heading {
	padding: 8px !important;
	text-align: center;
	vertical-align: middle;
}
table thead .action-heading .period-add-button {
	display: inline-grid;
	margin: auto;
	place-items: center;
}
#contentActionsSource:empty,
#coverageActionsSource:empty,
#planActionsSource:empty,
#cloActionsSource:empty,
#gradingActionsSource:empty {
	display: none;
}
.coverage-periods {
	display: grid;
	gap: 18px;
}

/* Full-content table cells: rows expand instead of clipping or scrolling internally. */
.table-wrap,
.themed-table-wrap,
.clo-workspace {
	max-height: none !important;
	overflow-x: auto;
	overflow-y: visible;
}
table tr,
table td {
	height: auto;
}
table textarea {
	field-sizing: content;
	max-height: none !important;
	overflow: hidden !important;
	resize: none;
}
.list-row textarea {
	field-sizing: content;
	max-height: none !important;
	overflow: hidden !important;
	resize: none;
}
.reference-checks,
.clo-checks,
.topic-planner-table .reference-checks {
	max-height: none !important;
	overflow: visible !important;
}
.reference-checks span,
.topic-planner-table .reference-checks span {
	max-width: none;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
}
.planner-period th {
	height: auto !important;
	padding: 8px 12px !important;
}

/* Optional request control for every Mina action */
.ai-prompt-button {
	box-sizing: border-box;
	height: 34px;
	min-height: 34px;
	min-width: 54px;
	padding-inline: 10px;
	line-height: 1;
	border-color: #78aa87;
	background: #edf8f0;
	color: #075b22;
	font-weight: 800;
	white-space: nowrap;
}
.ai-prompt-button:hover,
.ai-prompt-button:focus {
	border-color: #075b22;
	background: #075b22;
	color: #fff;
}
.clo-actions {
	margin-left: auto;
	align-items: center;
}
.ai-prompt-dialog {
	width: min(620px, calc(100vw - 28px));
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 9px;
	box-shadow: 0 20px 65px #002d1652;
}
.ai-prompt-dialog::backdrop {
	background: #07190db8;
}
.ai-prompt-form {
	display: grid;
	padding: 22px;
	gap: 15px;
	background: #fff;
}
.ai-prompt-heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 16px;
}
.ai-prompt-heading h2,
.ai-prompt-form p {
	margin: 0;
}
.ai-prompt-heading h2 {
	margin-top: 3px;
	color: #075b22;
	font-size: 20px;
}
.ai-prompt-form p {
	color: var(--muted);
	font-size: 12px;
	line-height: 1.55;
}
.ai-prompt-form label {
	display: grid;
	gap: 7px;
	color: #31424a;
	font-size: 11px;
	font-weight: 800;
}
.ai-prompt-form textarea {
	min-height: 116px;
	resize: vertical;
}
.ai-prompt-form .button-row {
	justify-content: flex-end;
}
@media (max-width: 760px) {
	.ai-prompt-form {
		padding: 18px;
	}
	.ai-prompt-form .button-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
}

/* Department global governance warning and audit log */
.department-title-row #departmentLogButton {
	margin-left: auto;
	white-space: nowrap;
}
.department-heading-block{min-width:0}
.department-heading-main{display:flex;align-items:center;gap:16px;margin-top:6px}
.department-heading-logo{flex:0 0 78px;width:78px;height:78px;object-fit:contain}
.department-heading-main h1,.department-heading-main p{margin-left:0}
.department-global-warning {
	display: grid;
	gap: 4px;
	margin: -4px 0 18px;
	padding: 14px 16px;
	border: 1px solid #d59b21;
	border-left: 5px solid #b96b00;
	border-radius: 6px;
	background: #fff4cf;
	color: #5d3900;
}
.department-global-warning strong {
	font-size: 13px;
}
.department-global-warning span {
	font-size: 12px;
	line-height: 1.5;
}
.department-gate {
	width: min(520px, calc(100vw - 28px));
	margin: auto;
	padding: 28px;
	border: 0;
	border-radius: 9px;
	box-shadow: 0 20px 65px #002d1652;
}
.department-gate::backdrop { background: #07190de6; }
.department-gate h2 { margin: 0 0 8px; }
.department-gate p { margin: 0 0 14px; }
.department-gate .button { width: 100%; }
.department-gate-choices { display: grid; gap: 8px; max-height: min(46vh, 360px); margin: 0 0 14px; overflow: auto; }
.department-gate-choices:empty { display: none; }
.department-gate-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.department-gate-choice:has(input:checked) { border-color: var(--green); background: #edf6ef; }
.department-gate-choice input { width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: var(--green); }
.department-gate [hidden] { display: none; }
.department-log-dialog {
	width: min(1080px, calc(100vw - 28px));
	max-height: min(90vh, 860px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 9px;
	box-shadow: 0 20px 65px #002d1652;
}
.department-log-dialog::backdrop {
	background: #07190db8;
}
.department-log-shell {
	display: grid;
	gap: 12px;
	padding: 22px;
	background: #f6f8f6;
}
.department-log-shell > p {
	margin: 0;
}
.department-log-heading,
.department-log-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}
.department-log-heading h2 {
	margin: 3px 0 0;
	color: #075b22;
	font-size: 21px;
}
.department-log-list {
	display: grid;
	gap: 10px;
	max-height: 68vh;
	overflow-y: auto;
	padding-right: 4px;
}
.department-log-entry,
.department-log-empty {
	padding: 15px;
	border: 1px solid #d7e1da;
	border-radius: 6px;
	background: #fff;
}
.department-log-meta b,
.department-log-meta small {
	display: block;
}
.department-log-meta small,
.department-log-meta time {
	margin-top: 3px;
	color: var(--muted);
	font-size: 11px;
}
.department-log-entry ul {
	display: grid;
	gap: 5px;
	margin: 12px 0 0;
	padding-left: 20px;
	color: #26392d;
	font-size: 12px;
	line-height: 1.5;
}
.department-log-empty {
	display: grid;
	gap: 4px;
	color: var(--muted);
	text-align: center;
}
.department-log-error {
	padding: 14px;
	border-radius: 5px;
	background: #fde8e8;
	color: #8f2424;
}
@media (max-width: 620px) {
	.department-title-row {
		align-items: stretch;
	}
	.department-title-row #departmentLogButton {
		margin-left: 0;
	}
	.department-log-shell {
		padding: 16px;
	}
	.department-log-meta {
		display: grid;
		gap: 4px;
	}
}
/* Expandable full department audit information */
.department-log-entry {
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.department-log-entry[open] {
	border-color: #7db28b;
	box-shadow: 0 3px 12px #075b2214;
}
.department-log-entry > summary {
	list-style: none;
	cursor: pointer;
}
.department-log-entry > summary::-webkit-details-marker {
	display: none;
}
.department-log-entry > summary:focus-visible {
	outline: 2px solid #159447;
	outline-offset: 4px;
	border-radius: 3px;
}
.department-log-summary-action {
	display: grid;
	justify-items: end;
	gap: 5px;
	text-align: right;
}
.department-log-toggle {
	color: #075b22 !important;
	font-weight: 800;
}
.department-log-toggle .when-open {
	display: none;
}
.department-log-entry[open] .department-log-toggle .when-closed {
	display: none;
}
.department-log-entry[open] .department-log-toggle .when-open {
	display: inline;
}
.department-log-details {
	overflow-wrap: anywhere;
}
.department-log-entry[open] .department-log-details {
	margin-top: 13px;
	padding-top: 2px;
	border-top: 1px solid #e2e9e4;
}
.department-log-details li {
	white-space: normal;
	overflow-wrap: anywhere;
}
@media (max-width: 620px) {
	.department-log-summary-action {
		justify-items: start;
		text-align: left;
	}
}
/* Highlighted department change differences */
.department-change-diff {
	display: grid;
	gap: 7px;
}
.department-change-diff > b {
	color: #173d24;
}
.department-change-line {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: start;
	gap: 9px;
	padding: 9px 10px;
	border-radius: 5px;
}
.department-change-line > span {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.department-change-line p {
	margin: 0;
	color: #233229;
	line-height: 1.55;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.department-change-line.before {
	background: #fff3f1;
}
.department-change-line.before > span {
	color: #9a3730;
}
.department-change-line.after {
	background: #eff8f1;
}
.department-change-line.after > span {
	color: #075b22;
}
.department-change-line mark {
	padding: 1px 3px;
	border-radius: 3px;
	background: #ffe783;
	color: #16351f;
	font-weight: 800;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
.department-change-line del {
	padding: 1px 2px;
	border-radius: 3px;
	background: #ffd9d5;
	color: #8a2f29;
	text-decoration-thickness: 1.5px;
}
@media (max-width: 620px) {
	.department-change-line {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}
/* Global change-log controls shared by syllabus and Department Entities */
.change-log-dialog {
	width: min(1080px, calc(100vw - 28px));
}
.change-log-toolbar {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px);
	gap: 12px;
	align-items: end;
	padding: 14px;
	border: 1px solid #d4e1d7;
	border-radius: 7px;
	background: #edf4ef;
}
.change-log-toolbar label {
	display: grid;
	gap: 6px;
	margin: 0;
	color: #174426;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.change-log-toolbar input,
.change-log-toolbar select {
	width: 100%;
	min-height: 40px;
	border-color: #aec8b5;
	background: #fff;
	color: #17271d;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}
.change-log-dialog .department-log-list {
	max-height: 55vh;
}
.change-log-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 34px;
}
.change-log-pagination:empty {
	display: none;
}
.change-log-page {
	min-width: 34px;
	height: 34px;
	padding: 0 9px;
	border: 1px solid #a9c5b1;
	border-radius: 5px;
	background: #fff;
	color: #075b22;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}
.change-log-page:hover,
.change-log-page:focus-visible {
	border-color: #075b22;
	background: #eaf4ed;
}
.change-log-page.active {
	border-color: #075b22;
	background: #075b22;
	color: #fff;
}
.change-log-page:disabled {
	cursor: default;
}
.change-log-page-gap,
.change-log-page-summary {
	padding: 0 4px;
	color: var(--muted);
	font-size: 11px;
}
.change-log-page-summary {
	flex-basis: 100%;
	text-align: center;
}
@media (max-width: 620px) {
	.change-log-toolbar {
		grid-template-columns: 1fr;
	}
}
/* Global Mina / AI button design */
.button.ai-button {
	--ai-button-green: #075b22;
	--ai-button-dark: #043f17;
	--ai-button-yellow: #f9c823;
	position: relative;
	isolation: isolate;
	min-height: 40px;
	padding: 0 15px;
	gap: 8px;
	border: 1px solid var(--ai-button-dark);
	border-radius: 7px;
	background: linear-gradient(135deg, var(--ai-button-green), var(--ai-button-dark));
	box-shadow: 0 3px 9px #043f1726;
	color: #fff;
	font-family: Manrope, Arial, sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 1.2;
	white-space: nowrap;
	transition:
		transform .16s ease,
		box-shadow .16s ease,
		border-color .16s ease,
		background .16s ease;
}
.button.ai-button.small {
	min-height: 36px;
	padding: 0 12px;
	font-size: 11px;
}
.button.ai-button::before {
	content: '✦';
	display: inline-grid;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	place-items: center;
	border: 1px solid #fff5;
	border-radius: 50%;
	background: var(--ai-button-yellow);
	box-shadow: 0 2px 6px #001a0738;
	color: #173d24;
	font-family: Manrope, Arial, sans-serif;
	font-size: 12px;
	line-height: 1;
}
.button.ai-button:hover:not(:disabled) {
	filter: none;
	transform: translateY(-1px);
	border-color: #032d11;
	background: linear-gradient(135deg, #08712a, #032f11);
	box-shadow: 0 6px 14px #043f1738;
}
.button.ai-button:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 2px 6px #043f172e;
}
.button.ai-button:focus-visible {
	outline: 3px solid #f9c82399;
	outline-offset: 2px;
}
.button.ai-button.ai-prompt-button {
	border-color: #d6aa18;
	background: #fff8d9;
	box-shadow: 0 2px 6px #7c610f1c;
	color: #075b22;
}
.button.ai-button.ai-prompt-button::before {
	border-color: #e1b927;
	background: #f9c823;
}
.button.ai-button.ai-prompt-button:hover:not(:disabled) {
	border-color: #a98000;
	background: #ffefaa;
	box-shadow: 0 4px 10px #7c610f2b;
}
.button.ai-button:disabled,
.button.ai-button[data-reparse-coverage]:disabled {
	cursor: not-allowed;
	transform: none;
	border-color: #b9c3bc;
	background: #e5e9e6;
	box-shadow: none;
	color: #707973;
	filter: none;
	opacity: 1;
}
.button.ai-button:disabled::before,
.button.ai-button[data-reparse-coverage]:disabled::before {
	border-color: #c6cdc8;
	background: #cfd5d1;
	box-shadow: none;
	color: #6f7771;
}
body[aria-busy='true'] .button.ai-button::before {
	animation: ai-button-pulse 1.1s ease-in-out infinite;
}
.model-selector-control .button.ai-button {
	min-width: 150px;
}
@keyframes ai-button-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: .72;
	}
	50% {
		transform: scale(1.12);
		opacity: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	.button.ai-button {
		transition: none;
	}
	body[aria-busy='true'] .button.ai-button::before {
		animation: none;
	}
}
@media (max-width: 620px) {
	.ai-action-group {
		width: 100%;
	}
	.ai-action-group .button.ai-button {
		flex: 1 1 auto;
	}
}
/* Temporary full-form lock while Mina is transacting */
body.ai-form-locked {
	cursor: progress;
}
body.ai-form-locked input:disabled,
body.ai-form-locked textarea:disabled,
body.ai-form-locked select:disabled,
body.ai-form-locked button:disabled {
	cursor: wait;
}
body.ai-form-locked .faculty-content input:disabled,
body.ai-form-locked .faculty-content textarea:disabled,
body.ai-form-locked .faculty-content select:disabled {
	border-color: #b9c5bd;
	background: #e8ede9;
	color: #677169;
	opacity: .82;
}
body.ai-form-locked .faculty-content {
	user-select: none;
}
/* Section-specific Mina workspace and expanding long-form fields */
.ai-prompt-dialog{width:min(860px,calc(100vw - 28px))}
.ai-prompt-form textarea{min-height:340px;line-height:1.5;resize:vertical}
.ai-prompt-category{display:block;margin-top:4px;color:#075b22;font-weight:800}
textarea[data-bind="course_description"]{min-height:260px;overflow-y:hidden!important;resize:none}

/* Global table alignment */
.faculty-content table th,
.faculty-content table td {
	text-align: left !important;
	vertical-align: top !important;
}

/* Responsive laptop and desktop layout: 12-inch through 24-inch screens */
.faculty-content,
.faculty-content .panel,
.faculty-content .card,
.faculty-content .table-wrap {
	min-width: 0;
	max-width: 100%;
}
.table-wrap,
.period-section {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
}
.content-heading > div:first-child,
.syllabus-switch,
.syllabus-switch label,
.top-actions {
	min-width: 0;
}

/* Compact 14-inch and smaller laptop layouts without switching to mobile. */
@media (min-width: 761px) and (max-width: 1500px) {
	.faculty-sidebar {
		width: clamp(210px, 16vw, 242px);
	}
	.faculty-topbar {
		left: clamp(210px, 16vw, 242px);
		height: auto;
		min-height: 49px;
		padding: 6px 12px;
		gap: 8px;
	}
	.faculty-content {
		width: calc(100% - clamp(210px, 16vw, 242px));
		margin-left: clamp(210px, 16vw, 242px);
		padding-right: clamp(12px, 1.5vw, 22px);
		padding-left: clamp(12px, 1.5vw, 22px);
	}
	.faculty-footer {
		margin-left: clamp(210px, 16vw, 242px);
	}
	.syllabus-switch {
		flex: 1 1 400px;
		flex-wrap: nowrap;
	}
	.syllabus-switch label {
		flex: 1 1 220px;
	}
	.syllabus-switch select {
		width: 100%;
		min-width: 0;
		max-width: 440px;
	}
	.top-actions {
		flex: 0 1 auto;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 6px;
	}
	.top-actions .button,
	.syllabus-switch .button {
		padding-right: 9px;
		padding-left: 9px;
	}
	.content-heading {
		flex-wrap: wrap;
	}
	.content-heading .button-row {
		max-width: 100%;
		margin-left: auto;
	}
	.card {
		padding: clamp(14px, 1.5vw, 20px);
	}
	.reference-list,
	.member-list {
		grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	}
	.reference-list.compact-deck.grid-view {
		grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	}
}

/* Two-line syllabus header for narrow laptop resolutions. */
@media (min-width: 761px) and (max-width: 1180px) {
	.syllabus-topbar {
		align-content: center;
		align-items: center;
		flex-wrap: wrap;
		min-height: 88px;
	}
	.syllabus-switch {
		flex: 1 1 100%;
	}
	.syllabus-switch label {
		flex: 1 1 260px;
	}
	.syllabus-switch select {
		max-width: none;
	}
	.syllabus-topbar .top-actions {
		width: 100%;
		margin-left: 0;
		justify-content: flex-end;
	}
	.syllabus-topbar + .faculty-content {
		padding-top: 112px;
	}
	.syllabus-topbar + .faculty-content .workflow-grid.is-guiding {
		top: 98px;
	}
	.form-grid.three,
	.period-preference-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.invite-form {
		grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr) auto;
	}
	.modern-upload,
	.mina-prompt,
	.department-picker {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.ai-busy {
		width: min(520px, calc(100vw - 32px));
		min-width: 0;
	}
}

/* Very wide monitors: prevent controls from becoming excessively stretched. */
@media (min-width: 1800px) {
	.faculty-content > .panel,
	.faculty-content > .view-only-banner {
		width: min(100%, 1680px);
		margin-right: auto;
		margin-left: auto;
	}
	.content-heading h1 {
		font-size: 28px;
	}
}
/* Screenshot-driven overflow and table geometry corrections */
html,
body.faculty-app {
	max-width: 100%;
	overflow-x: hidden;
}
.faculty-content,
.faculty-content > .panel {
	overflow-x: hidden;
}
.table-wrap,
.themed-table-wrap,
.clo-workspace {
	overscroll-behavior-x: contain;
}

/* The desktop navigation must not disappear because of laptop scaling or zoom. */
@media (min-width: 641px) {
	.faculty-sidebar {
		display: block;
		transform: none !important;
	}
	.faculty-topbar > #menuToggle {
		display: none !important;
	}
}

/* Correct Step 4 geometry after inserting the leading item-number column. */
.topic-planner-table {
	width: 100%;
	min-width: 1120px;
	table-layout: fixed;
}
.topic-planner-table th:nth-child(1),
.topic-planner-table td:nth-child(1) {
	width: 46px !important;
	min-width: 46px !important;
}
.topic-planner-table th:nth-child(2),
.topic-planner-table td:nth-child(2) {
	width: 7% !important;
}
.topic-planner-table th:nth-child(3),
.topic-planner-table td:nth-child(3) {
	width: 7% !important;
}
.topic-planner-table th:nth-child(4),
.topic-planner-table td:nth-child(4) {
	width: 35% !important;
	min-width: 280px;
}
.topic-planner-table th:nth-child(5),
.topic-planner-table td:nth-child(5) {
	width: 29% !important;
}
.topic-planner-table th:nth-child(6),
.topic-planner-table td:nth-child(6) {
	width: 12% !important;
}
.topic-planner-table th:nth-child(7),
.topic-planner-table td:nth-child(7) {
	width: 46px !important;
	min-width: 46px !important;
}
.topic-planner-table td:nth-child(2) input,
.topic-planner-table td:nth-child(3) input {
	min-width: 64px;
}
.topic-planner-table td:nth-child(6) input {
	min-width: 92px;
}

/* Keep CLO context visible while the many I/P/D columns scroll horizontally. */
.clo-workspace .table-toolbar {
	position: sticky;
	z-index: 12;
	left: 0;
	width: 100%;
}
.clo-map-table th:first-child,
.clo-map-table td:first-child {
	position: sticky;
	z-index: 7;
	left: 0;
	width: 78px !important;
	min-width: 78px !important;
	background: #fff;
	box-shadow: 1px 0 0 #d8dde2;
}
.clo-map-table th:nth-child(2),
.clo-map-table td:nth-child(2) {
	position: sticky;
	z-index: 6;
	left: 78px;
	width: 360px !important;
	min-width: 360px !important;
	background: #fff;
	box-shadow: 2px 0 4px #00000018;
}
.clo-map-table thead th:first-child,
.clo-map-table thead th:nth-child(2) {
	z-index: 9;
	background: #dff1e4 !important;
}
.clo-map-table th:not(:first-child):not(:nth-child(2)):not(:last-child),
.clo-map-table td:not(:first-child):not(:nth-child(2)):not(:last-child) {
	width: 78px;
	min-width: 78px;
}
.clo-map-table td select {
	width: 100%;
	min-width: 58px;
}

/* Recover a desktop shell for highly scaled laptop viewports above mobile size. */
@media (min-width: 641px) and (max-width: 760px) {
	.faculty-sidebar {
		width: 190px;
	}
	.faculty-topbar {
		left: 190px;
		min-height: 92px;
		height: auto;
		padding: 6px 9px;
		align-content: center;
		flex-wrap: wrap;
	}
	.faculty-content,
	.faculty-footer {
		width: calc(100% - 190px);
		margin-left: 190px;
	}
	.faculty-content {
		padding: 116px 10px 60px;
	}
	.syllabus-switch {
		display: flex;
		width: 100%;
		flex-wrap: nowrap;
	}
	.syllabus-switch label {
		display: flex;
		min-width: 0;
		flex: 1;
	}
	.syllabus-switch select {
		width: 100%;
		min-width: 0;
	}
	.top-actions {
		display: flex;
		width: 100%;
		margin-left: 0;
		justify-content: flex-end;
		flex-wrap: wrap;
	}
	.top-actions .save-state,
	.top-actions > #saveNow {
		display: inline-flex;
	}
}
/* Dedicated phone layout */
@media (max-width: 640px) {
	.faculty-topbar {
		display: flex;
		height: auto;
		min-height: 104px;
		padding: 7px 9px;
		align-content: center;
		align-items: center;
		flex-wrap: wrap;
		gap: 6px;
	}
	.faculty-topbar > #menuToggle {
		display: block;
		width: 38px;
		min-width: 38px;
		height: 38px;
		padding: 0;
	}
	.syllabus-switch {
		display: flex;
		width: calc(100% - 44px);
		min-width: 0;
		flex: 1 1 calc(100% - 44px);
		flex-wrap: nowrap;
		gap: 6px;
	}
	.syllabus-switch label {
		display: none;
	}
	.syllabus-switch .button {
		min-width: 0;
		min-height: 38px;
		padding: 0 9px;
		flex: 1 1 0;
		font-size: 10px;
		white-space: nowrap;
	}
	.top-actions {
		display: flex;
		width: 100%;
		min-width: 0;
		margin: 0;
		justify-content: flex-end;
		flex: 1 1 100%;
		flex-wrap: nowrap;
		gap: 6px;
	}
	.top-actions .button {
		min-width: 0;
		min-height: 38px;
		padding: 0 9px;
		flex: 1 1 auto;
		font-size: 10px;
		white-space: nowrap;
	}
	.top-actions #logoutBtn {
		width: 38px;
		min-width: 38px;
		padding: 0;
		flex: 0 0 38px;
	}
	.faculty-content {
		padding-top: 124px;
	}
	.content-heading,
	.array-head {
		width: 100%;
		min-width: 0;
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
	}
	.content-heading > div,
	.array-head > div,
	#coverageActionsSource,
	#planActionsSource,
	#gradingActionsSource,
	#cloActionsSource {
		width: 100%;
		min-width: 0;
	}
	.content-heading h1 {
		font-size: clamp(25px, 8vw, 34px);
		line-height: 1.14;
	}
	.array-head h2 {
		font-size: clamp(23px, 7vw, 30px);
		line-height: 1.18;
	}
	.array-head p,
	.content-heading p {
		max-width: none;
	}
	.content-heading .button-row,
	.array-head .button-row,
	#coverageHeaderActions,
	#planHeaderActions,
	#gradingActionsSource {
		display: grid;
		width: 100%;
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 8px;
		margin: 0;
		justify-content: stretch;
	}
	.content-heading .button-row > .button,
	.array-head .button-row > .button,
	#coverageHeaderActions > .button,
	#planHeaderActions > .button,
	#gradingActionsSource > .button {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		padding: 8px 10px;
		white-space: normal;
		line-height: 1.25;
	}
	.card {
		padding: 12px;
	}
	.period-heading,
	.table-toolbar {
		min-height: 54px;
		padding: 10px 12px;
		flex-wrap: wrap;
	}
	.period-heading span {
		font-size: 16px;
	}
	.period-heading small {
		font-size: 10px;
	}
	.formula-banner {
		padding: 13px;
	}
	.formula-banner code,
	.formula-banner span {
		width: 100%;
		min-width: 0;
		overflow-wrap: anywhere;
	}

	/* Step 4 coverage rows become labeled phone cards. */
	.topic-planner-table {
		display: block;
		width: 100%;
		min-width: 0 !important;
		background: #f5f8f6;
	}
	.topic-planner-table thead {
		display: none;
	}
	.topic-planner-table tbody {
		display: grid;
		padding: 10px;
		gap: 12px;
	}
	.topic-planner-table tbody tr {
		display: grid;
		grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr);
		padding: 10px;
		gap: 9px;
		border: 1px solid #cbd8cf;
		border-radius: 7px;
		background: #fff;
		box-shadow: 0 1px 2px #0000000d;
	}
	.topic-planner-table tbody td {
		display: block;
		width: auto !important;
		min-width: 0 !important;
		padding: 0 !important;
		border: 0;
	}
	.topic-planner-table tbody td::before,
	.grading-table tbody td::before,
	.section-content-table tbody td::before,
	.learning-plan-table tbody td::before {
		display: block;
		margin-bottom: 4px;
		color: #075b22;
		font-size: 9px;
		font-weight: 800;
		letter-spacing: .05em;
		text-transform: uppercase;
	}
	.topic-planner-table tbody td:nth-child(1) {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
		padding-bottom: 12px !important;
		color: var(--green);
		font-size: 16px;
		font-weight: 800;
		text-align: center;
	}
	.topic-planner-table tbody td:nth-child(1)::before { content: '#'; }
	.topic-planner-table tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
	.topic-planner-table tbody td:nth-child(2)::before { content: 'Week'; }
	.topic-planner-table tbody td:nth-child(3) { grid-column: 3; grid-row: 1; }
	.topic-planner-table tbody td:nth-child(3)::before { content: 'Hours'; }
	.topic-planner-table tbody td:nth-child(4),
	.topic-planner-table tbody td:nth-child(5),
	.topic-planner-table tbody td:nth-child(6),
	.topic-planner-table tbody td:nth-child(7) { grid-column: 1 / -1; }
	.topic-planner-table tbody td:nth-child(4)::before { content: 'Topic'; }
	.topic-planner-table tbody td:nth-child(5)::before { content: 'Reference'; }
	.topic-planner-table tbody td:nth-child(6)::before { content: 'Page Coverage'; }
	.topic-planner-table tbody td:nth-child(7)::before { content: 'Actions'; }
	.topic-planner-table tbody td > input,
	.topic-planner-table tbody td > textarea,
	.topic-planner-table tbody td > select {
		width: 100%;
		min-width: 0 !important;
	}
	.topic-planner-table .table-row-actions {
		display: flex;
		justify-content: flex-end;
		gap: 5px;
	}

	/* Grading rows become labeled phone cards. */
	.grading-table,
	.grading-table tbody,
	.grading-table tfoot {
		display: block;
		width: 100%;
		min-width: 0;
	}
	.grading-table thead {
		display: none;
	}
	.grading-table tbody {
		display: grid;
		padding: 10px;
		gap: 12px;
		background: #f5f8f6;
	}
	.grading-table tbody tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 92px;
		padding: 10px;
		gap: 9px;
		border: 1px solid #cbd8cf;
		border-radius: 7px;
		background: #fff;
	}
	.grading-table tbody td {
		display: block;
		width: auto !important;
		min-width: 0 !important;
		padding: 0 !important;
		border: 0;
	}
	.grading-table tbody td:nth-child(1)::before { content: 'Assessment Component'; }
	.grading-table tbody td:nth-child(2)::before { content: 'Percentage'; }
	.grading-table tbody td:nth-child(3),
	.grading-table tbody td:nth-child(4) { grid-column: 1 / -1; }
	.grading-table tbody td:nth-child(3)::before { content: 'Description'; }
	.grading-table tbody td:nth-child(4)::before { content: 'Actions'; }
	.grading-table tbody td input,
	.grading-table tbody td textarea {
		width: 100%;
		min-width: 0;
	}
	.grading-table tbody .table-row-actions {
		display: flex;
		justify-content: flex-end;
		gap: 5px;
	}
	.grading-table tfoot tr {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}
	.grading-table tfoot th {
		display: block;
		width: auto !important;
		padding: 10px;
		border: 0;
	}

	/* Course content and learning-plan rows become vertical phone cards. */
	.section-content-table,
	.learning-plan-table,
	.section-content-table tbody,
	.learning-plan-table tbody {
		display: block;
		width: 100%;
		min-width: 0 !important;
		background: #f5f8f6;
	}
	.section-content-table thead,
	.learning-plan-table thead {
		display: none;
	}
	.section-content-table tbody,
	.learning-plan-table tbody {
		display: grid;
		padding: 10px;
		gap: 12px;
	}
	.section-content-table tbody tr,
	.learning-plan-table tbody tr {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr);
		padding: 10px;
		gap: 9px;
		border: 1px solid #cbd8cf;
		border-radius: 7px;
		background: #fff;
	}
	.section-content-table tbody td,
	.learning-plan-table tbody td {
		display: block;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		padding: 0 !important;
		border: 0;
		grid-column: 1 / -1;
	}
	.section-content-table tbody td:first-child,
	.learning-plan-table tbody td:first-child {
		grid-column: 1;
		color: var(--green);
		font-weight: 800;
	}
	.section-content-table tbody td:nth-child(1)::before,
	.learning-plan-table tbody td:nth-child(1)::before { content: '#'; }
	.section-content-table tbody td:nth-child(2)::before { content: 'Topic'; }
	.section-content-table tbody td:nth-child(3)::before { content: 'Intended Learning Outcomes'; }
	.section-content-table tbody td:nth-child(4)::before { content: 'Week / Hours'; }
	.section-content-table tbody td:nth-child(5)::before { content: 'CLO Alignment'; }
	.section-content-table tbody td:nth-child(6)::before,
	.learning-plan-table tbody td:nth-child(6)::before { content: 'Actions'; }
	.learning-plan-table tbody td:nth-child(2)::before { content: 'Intended Learning Outcomes'; }
	.learning-plan-table tbody td:nth-child(3)::before { content: 'Teaching Activities / Resources'; }
	.learning-plan-table tbody td:nth-child(4)::before { content: 'Assessment Tasks'; }
	.learning-plan-table tbody td:nth-child(5)::before { content: 'Time Frame / Allotment'; }
	.section-content-table textarea,
	.learning-plan-table textarea {
		width: 100%;
		min-width: 0;
	}
	.section-content-table .clo-checks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-width: 0;
	}
	.section-content-table .table-row-actions,
	.learning-plan-table .table-row-actions {
		display: flex;
		justify-content: flex-end;
		gap: 5px;
	}

	/* Matrix tables remain scrollable, with context columns already sticky. */
	.clo-workspace,
	.table-wrap {
		max-width: 100%;
		overflow-x: auto;
	}
}

@media (max-width: 380px) {
	.content-heading .button-row,
	.array-head .button-row,
	#coverageHeaderActions,
	#planHeaderActions,
	#gradingActionsSource {
		grid-template-columns: 1fr;
	}
	.top-actions .button,
	.syllabus-switch .button {
		padding-right: 6px;
		padding-left: 6px;
		font-size: 9px;
	}
}
/* Mobile screenshot follow-up corrections */
@media (max-width: 640px) {
	/* Override legacy percentage widths inside the Step 4 phone cards. */
	.topic-planner-table tbody tr > td:nth-child(1),
	.topic-planner-table tbody tr > td:nth-child(2),
	.topic-planner-table tbody tr > td:nth-child(3),
	.topic-planner-table tbody tr > td:nth-child(4),
	.topic-planner-table tbody tr > td:nth-child(5),
	.topic-planner-table tbody tr > td:nth-child(6),
	.topic-planner-table tbody tr > td:nth-child(7) {
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
	}
	.topic-planner-table tbody tr > td:nth-child(1) {
		width: auto !important;
	}
	.topic-planner-table tbody td > input,
	.topic-planner-table tbody td > textarea,
	.topic-planner-table tbody td > select,
	.topic-planner-table tbody td .reference-checks {
		display: block;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
	}
	.topic-planner-table tbody td:nth-child(2) input,
	.topic-planner-table tbody td:nth-child(3) input,
	.topic-planner-table tbody td:nth-child(6) input {
		min-width: 0 !important;
	}
	.topic-planner-table .table-row-actions,
	.grading-table .table-row-actions,
	.section-content-table .table-row-actions,
	.learning-plan-table .table-row-actions {
		display: grid;
		grid-template-columns: repeat(3, 30px);
		justify-content: start;
		gap: 6px;
	}

	/* Use a readable text label when the embedded browser lacks the power glyph. */
	.top-actions #logoutBtn {
		width: 62px;
		min-width: 62px;
		flex-basis: 62px;
		font-size: 0;
	}
	.top-actions #logoutBtn::before {
		content: 'Log out';
		font: 800 9px/1.1 'DM Sans', Arial, sans-serif;
		white-space: nowrap;
	}

	/* Department Entities has its own mobile header and content offset. */
	.department-app .faculty-topbar {
		display: grid;
		min-height: 132px;
		grid-template-columns: 38px minmax(0, 1fr);
		grid-template-rows: auto auto;
		padding: 8px 10px;
		align-content: center;
		gap: 7px 10px;
	}
	.department-app .faculty-topbar > #menuToggle {
		grid-column: 1;
		grid-row: 1;
	}
	.department-app .monitor-title {
		display: grid;
		min-width: 0;
		grid-column: 2;
		grid-row: 1;
		gap: 1px;
		line-height: 1.2;
	}
	.department-app .monitor-title b,
	.department-app .monitor-title span {
		display: block;
		min-width: 0;
		overflow-wrap: anywhere;
	}
	.department-app .monitor-title b {
		font-size: 12px;
	}
	.department-app .monitor-title span {
		color: var(--muted);
		font-size: 10px;
	}
	.department-app .top-actions {
		display: block;
		width: 100%;
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.department-app #departmentState {
		display: none;
	}
	.department-app #saveDepartment {
		width: 100%;
		min-height: 42px;
	}
	.department-app .faculty-content {
		padding-top: 150px !important;
	}
	.department-app .department-title-row {
		gap: 12px;
	}
	.department-app .department-heading-main{align-items:flex-start;gap:12px}
	.department-app .department-heading-logo{flex-basis:60px;width:60px;height:60px}
	.department-app .department-title-row h1 {
		font-size: clamp(29px, 9vw, 38px);
		line-height: 1.08;
		overflow-wrap: anywhere;
	}
	.department-app .department-title-row #departmentLogButton {
		width: 100%;
		min-height: 42px;
	}
	.department-app .array-head h3 {
		overflow-wrap: anywhere;
	}

	/* Department outcome rows use the same phone-card language. */
	.department-outcome-table,
	.department-outcome-table tbody {
		display: block;
		width: 100%;
		min-width: 0;
	}
	.department-outcome-table thead {
		display: none;
	}
	.department-outcome-table tbody {
		display: grid;
		padding: 10px;
		gap: 12px;
		background: #f5f8f6;
	}
	.department-outcome-table tbody tr {
		display: grid;
		padding: 10px;
		gap: 9px;
		border: 1px solid #cbd8cf;
		border-radius: 7px;
		background: #fff;
	}
	.department-outcome-table tbody td {
		display: block;
		width: 100% !important;
		min-width: 0 !important;
		padding: 0 !important;
		border: 0;
	}
	.department-outcome-table tbody td::before {
		display: block;
		margin-bottom: 4px;
		color: #075b22;
		font-size: 9px;
		font-weight: 800;
		letter-spacing: .05em;
		text-transform: uppercase;
	}
	.department-outcome-table tbody td:nth-child(1)::before { content: 'Code'; }
	.department-outcome-table tbody td:nth-child(2)::before { content: 'Program Outcome'; }
	.department-outcome-table tbody td:nth-child(3)::before { content: 'Dominant Attribute'; }
	.department-outcome-table tbody td:nth-child(4)::before { content: 'Actions'; }
	.department-outcome-table tbody input,
	.department-outcome-table tbody textarea {
		width: 100%;
		min-width: 0;
	}
	.department-outcome-table .table-row-actions {
		display: grid;
		grid-template-columns: repeat(3, 30px);
		justify-content: start;
		gap: 6px;
	}
}
/* Fluid no-horizontal-scroll laptop tables */
@media (min-width: 641px) {
	/* Text-heavy tables wrap downward instead of forcing the panel wider. */
	.topic-planner-table,
	.section-content-table,
	.learning-plan-table,
	.grading-table,
	.clo-map-table,
	.department-outcome-table {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		table-layout: fixed;
	}
	.topic-planner-table input,
	.topic-planner-table textarea,
	.topic-planner-table select,
	.section-content-table input,
	.section-content-table textarea,
	.section-content-table select,
	.learning-plan-table input,
	.learning-plan-table textarea,
	.learning-plan-table select,
	.clo-map-table input,
	.clo-map-table textarea,
	.clo-map-table select {
		min-width: 0 !important;
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	/* Step 4: compact utility columns and share the rest between content fields. */
	.topic-planner-table th:nth-child(1),
	.topic-planner-table td:nth-child(1) {
		width: 42px !important;
		min-width: 42px !important;
	}
	.topic-planner-table th:nth-child(2),
	.topic-planner-table td:nth-child(2),
	.topic-planner-table th:nth-child(3),
	.topic-planner-table td:nth-child(3) {
		width: 7% !important;
		min-width: 0 !important;
	}
	.topic-planner-table th:nth-child(4),
	.topic-planner-table td:nth-child(4) {
		width: 34% !important;
		min-width: 0 !important;
	}
	.topic-planner-table th:nth-child(5),
	.topic-planner-table td:nth-child(5) {
		width: 29% !important;
		min-width: 0 !important;
	}
	.topic-planner-table th:nth-child(6),
	.topic-planner-table td:nth-child(6) {
		width: 12% !important;
		min-width: 0 !important;
	}
	.topic-planner-table th:nth-child(7),
	.topic-planner-table td:nth-child(7) {
		width: 46px !important;
		min-width: 46px !important;
	}
	.topic-planner-table td:nth-child(2) input,
	.topic-planner-table td:nth-child(3) input,
	.topic-planner-table td:nth-child(6) input {
		min-width: 0 !important;
	}

	/* Learning Plan: preserve readable content proportions without a minimum table width. */
	.learning-plan-table th:nth-child(1),
	.learning-plan-table td:nth-child(1) { width: 4% !important; }
	.learning-plan-table th:nth-child(2),
	.learning-plan-table td:nth-child(2) { width: 24% !important; }
	.learning-plan-table th:nth-child(3),
	.learning-plan-table td:nth-child(3) { width: 34% !important; }
	.learning-plan-table th:nth-child(4),
	.learning-plan-table td:nth-child(4) { width: 23% !important; }
	.learning-plan-table th:nth-child(5),
	.learning-plan-table td:nth-child(5) {
		width: 10% !important;
		min-width: 0 !important;
		max-width: none !important;
	}
	.learning-plan-table th:nth-child(6),
	.learning-plan-table td:nth-child(6) {
		width: 46px !important;
		min-width: 46px !important;
	}

	/* Course Content uses the same fluid strategy. */
	.section-content-table th:nth-child(1),
	.section-content-table td:nth-child(1) {
		width: 46px !important;
		min-width: 46px !important;
	}
	.section-content-table th:nth-child(2),
	.section-content-table td:nth-child(2) { width: 24% !important; }
	.section-content-table th:nth-child(3),
	.section-content-table td:nth-child(3) { width: calc(68% - 180px) !important; }
	.section-content-table th:nth-child(4),
	.section-content-table td:nth-child(4) { width: 8% !important; }
	.section-content-table th:nth-child(5),
	.section-content-table td:nth-child(5) {
		width: 88px !important;
		min-width: 88px !important;
		max-width: 88px !important;
	}
	.section-content-table th:nth-child(6),
	.section-content-table td:nth-child(6) {
		width: 46px !important;
		min-width: 46px !important;
	}

	/* CLO matrix: shrink I/P/D columns enough for the full curriculum map. */
	.clo-map-table th:first-child,
	.clo-map-table td:first-child {
		left: 0;
		width: 60px !important;
		min-width: 60px !important;
	}
	.clo-map-table th:nth-child(2),
	.clo-map-table td:nth-child(2) {
		left: 60px;
		width: clamp(220px, 24vw, 320px) !important;
		min-width: 0 !important;
	}
	.clo-map-table th:not(:first-child):not(:nth-child(2)):not(:last-child),
	.clo-map-table td:not(:first-child):not(:nth-child(2)):not(:last-child) {
		width: clamp(34px, 3.4vw, 50px) !important;
		min-width: 0 !important;
		padding-right: 4px;
		padding-left: 4px;
	}
	.clo-map-table th:last-child,
	.clo-map-table td:last-child {
		width: 44px !important;
		min-width: 44px !important;
	}
	.clo-map-table td textarea {
		width: 100%;
		min-width: 0 !important;
	}
	.clo-map-table td select {
		width: 100%;
		min-width: 0 !important;
		padding-right: 2px;
		padding-left: 2px;
		font-size: 10px;
	}

	.table-wrap,
	.themed-table-wrap,
	.clo-workspace {
		scrollbar-gutter: auto;
	}
}
/* Global 20 percent button size reduction */
button,
a.button {
	zoom: .8;
}
/* Compact single vertical line for CLO alignment checkboxes */
.clo-checks {
	display: flex !important;
	width: max-content;
	max-width: 100%;
	min-width: 0;
	max-height: none !important;
	padding: 2px 0 4px;
	align-items: flex-start;
	flex-flow: column nowrap;
	gap: 6px;
	overflow: visible !important;
}
.clo-checks label {
	display: inline-flex;
	width: auto;
	min-width: 68px;
	padding: 4px 6px;
	align-items: center;
	flex: 0 0 auto;
	gap: 4px;
	white-space: nowrap;
}
.clo-checks input {
	flex: 0 0 auto;
}
/* Unified mobile Mina button geometry */
@media (max-width: 640px) {
	#cloActionsSource,
	#gradingActionsSource,
	#contentMinaActions,
	#coverageHeaderActions,
	#planHeaderActions,
	.ai-action-group {
		display: grid !important;
		width: 100% !important;
		min-width: 0;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		align-items: stretch;
		gap: 8px;
	}
	#coverageHeaderActions {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	#cloActionsSource > .button.ai-button,
	#gradingActionsSource > .button.ai-button,
	#contentMinaActions > .button.ai-button,
	#coverageHeaderActions > .button.ai-button,
	#planHeaderActions > .button.ai-button,
	.ai-action-group > .button.ai-button {
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 44px !important;
		min-height: 44px !important;
		padding: 6px 9px !important;
		justify-content: center;
		font-size: 10px !important;
		line-height: 1.15;
		white-space: normal;
	}
	#cloActionsSource > .button.ai-button::before,
	#gradingActionsSource > .button.ai-button::before,
	#contentMinaActions > .button.ai-button::before,
	#coverageHeaderActions > .button.ai-button::before,
	#planHeaderActions > .button.ai-button::before,
	.ai-action-group > .button.ai-button::before {
		width: 22px;
		height: 22px;
		flex: 0 0 22px;
		font-size: 11px;
	}
}
@media (max-width: 360px) {
	#cloActionsSource,
	#gradingActionsSource,
	#contentMinaActions,
	#coverageHeaderActions,
	#planHeaderActions,
	.ai-action-group {
		grid-template-columns: 1fr !important;
	}
}
/* Full-screen mobile CLO cards without horizontal scrolling */
@media (max-width: 640px) {
	.clo-workspace {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden !important;
	}
	.clo-workspace .table-toolbar {
		position: static;
		width: 100%;
	}
	.clo-map-table,
	.clo-map-table tbody {
		display: block;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}
	.clo-map-table thead {
		display: none;
	}
	.clo-map-table tbody {
		display: grid;
		padding: 10px;
		gap: 12px;
		background: #f5f8f6;
	}
	.clo-map-table tbody tr {
		display: grid;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow-x: hidden;
		padding: 11px;
		gap: 9px;
		border: 1px solid #cbd8cf;
		border-radius: 7px;
		background: #fff;
		box-shadow: 0 1px 2px #0000000d;
	}
	.clo-map-table tbody td {
		position: static !important;
		display: block;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		padding: 0 !important;
		border: 0;
		background: transparent !important;
		box-shadow: none !important;
	}
	.clo-map-table tbody td::before {
		display: block;
		margin-bottom: 4px;
		color: #075b22;
		font-size: 9px;
		font-weight: 800;
		letter-spacing: .05em;
		text-transform: uppercase;
	}
	.clo-map-table tbody td:first-child {
		grid-column: 1 / -1;
	}
	.clo-map-table tbody td:first-child::before {
		content: 'CLO Code';
	}
	.clo-map-table tbody td:nth-child(2) {
		width: auto !important;
		max-width: 100% !important;
		grid-column: 1 / -1;
		justify-self: stretch;
		overflow: hidden;
	}
	.clo-map-table tbody td:nth-child(2)::before {
		content: 'Course Learning Outcome';
	}
	.clo-map-table tbody td:nth-child(2) textarea {
		display: block;
		width: calc(100% - 32px) !important;
		max-width: calc(100% - 32px) !important;
		min-width: 0 !important;
		inline-size: calc(100% - 32px) !important;
		max-inline-size: calc(100% - 32px) !important;
		margin-right: 32px;
		box-sizing: border-box;
		overflow: hidden;
		resize: none;
	}
	.clo-map-table tbody td[data-clo-map-code] {
		grid-column: auto;
	}
	.clo-map-table tbody td[data-clo-map-code]::before {
		content: attr(data-clo-map-code);
	}
	.clo-map-table tbody td:last-child {
		grid-column: 1 / -1;
	}
	.clo-map-table tbody td:last-child::before {
		content: 'Actions';
	}
	.clo-map-table tbody td[colspan] {
		grid-column: 1 / -1;
	}
	.clo-map-table tbody textarea,
	.clo-map-table tbody select {
		display: block;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}
	.clo-map-table tbody textarea {
		min-height: 128px;
	}
	.clo-map-table tbody select {
		height: 42px;
		padding: 0 8px;
		font-size: 12px;
	}
	.clo-map-table .table-row-actions {
		display: grid;
		grid-template-columns: repeat(3, 30px);
		justify-content: start;
		gap: 6px;
	}
}
@media (max-width: 360px) {
	.clo-map-table tbody tr {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Mina prompt buttons use the global AI button design */
.button.ai-button.ai-prompt-button {
	border-color: var(--ai-button-dark);
	background: linear-gradient(135deg, var(--ai-button-green), var(--ai-button-dark));
	box-shadow: 0 3px 9px #043f1726;
	color: #fff;
}
.button.ai-button.ai-prompt-button::before {
	border-color: #fff5;
	background: var(--ai-button-yellow);
	color: #173d24;
}
.button.ai-button.ai-prompt-button:hover:not(:disabled),
.button.ai-button.ai-prompt-button:focus-visible:not(:disabled) {
	border-color: #032d11;
	background: linear-gradient(135deg, #08712a, #032f11);
	box-shadow: 0 6px 14px #043f1738;
	color: #fff;
}
/* Exact desktop table geometry: compact utility columns, remaining width to content */
@media (min-width: 641px) {
	/* Step 4 Reference Coverage: 88px utilities; Topic receives the balance. */
	.topic-planner-table th:nth-child(1),
	.topic-planner-table td:nth-child(1) {
		width: 42px !important;
		min-width: 42px !important;
		max-width: 42px !important;
	}
	.topic-planner-table th:nth-child(2),
	.topic-planner-table td:nth-child(2),
	.topic-planner-table th:nth-child(3),
	.topic-planner-table td:nth-child(3) { width: 7% !important; }
	.topic-planner-table th:nth-child(4),
	.topic-planner-table td:nth-child(4) { width: calc(45% - 88px) !important; }
	.topic-planner-table th:nth-child(5),
	.topic-planner-table td:nth-child(5) { width: 29% !important; }
	.topic-planner-table th:nth-child(6),
	.topic-planner-table td:nth-child(6) { width: 12% !important; }
	.topic-planner-table th:nth-child(7),
	.topic-planner-table td:nth-child(7) {
		width: 46px !important;
		min-width: 46px !important;
		max-width: 46px !important;
	}

	/* Learning Plan: 92px utilities; activities/resource content receives the balance. */
	.learning-plan-table th:nth-child(1),
	.learning-plan-table td:nth-child(1) {
		width: 46px !important;
		min-width: 46px !important;
		max-width: 46px !important;
	}
	.learning-plan-table th:nth-child(2),
	.learning-plan-table td:nth-child(2) { width: 24% !important; }
	.learning-plan-table th:nth-child(3),
	.learning-plan-table td:nth-child(3) { width: calc(44.2% - 92px) !important; }
	.learning-plan-table th:nth-child(4),
	.learning-plan-table td:nth-child(4) { width: 23% !important; }
	.learning-plan-table th:nth-child(5),
	.learning-plan-table td:nth-child(5) { width: 8.8% !important; }
	.learning-plan-table td:nth-child(5) .plan-week-hours,
	.learning-plan-table td:nth-child(5) .plan-week-hours label,
	.learning-plan-table td:nth-child(5) .plan-week-hours input {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}
	.learning-plan-table th:nth-child(6),
	.learning-plan-table td:nth-child(6) {
		width: 46px !important;
		min-width: 46px !important;
		max-width: 46px !important;
	}

	/* Course Content: keep the proven compact geometry. */
	.section-content-table th:nth-child(1),
	.section-content-table td:nth-child(1) {
		width: 46px !important;
		min-width: 46px !important;
		max-width: 46px !important;
	}
	.section-content-table th:nth-child(2),
	.section-content-table td:nth-child(2) { width: 24% !important; }
	.section-content-table th:nth-child(3),
	.section-content-table td:nth-child(3) { width: calc(68% - 180px) !important; }
	.section-content-table th:nth-child(4),
	.section-content-table td:nth-child(4) { width: 8% !important; }
	.section-content-table th:nth-child(5),
	.section-content-table td:nth-child(5) {
		width: 88px !important;
		min-width: 88px !important;
		max-width: 88px !important;
	}
	.section-content-table th:nth-child(6),
	.section-content-table td:nth-child(6) {
		width: 46px !important;
		min-width: 46px !important;
		max-width: 46px !important;
	}

	/* Grading: the description absorbs all non-utility space. */
	.grading-table th:nth-child(1),
	.grading-table td:nth-child(1) { width: 28% !important; }
	.grading-table th:nth-child(2),
	.grading-table td:nth-child(2) {
		width: 120px !important;
		min-width: 120px !important;
		max-width: 120px !important;
	}
	.grading-table th:nth-child(3),
	.grading-table td:nth-child(3) { width: calc(72% - 166px) !important; }
	.grading-table th:nth-child(4),
	.grading-table td:nth-child(4) {
		width: 46px !important;
		min-width: 46px !important;
		max-width: 46px !important;
	}

	/* Department Outcomes: the outcome text absorbs the balance. */
	.department-outcome-table th:nth-child(1),
	.department-outcome-table td:nth-child(1) {
		width: 90px !important;
		min-width: 90px !important;
		max-width: 90px !important;
	}
	.department-outcome-table th:nth-child(2),
	.department-outcome-table td:nth-child(2) { width: calc(72% - 145px) !important; }
	.department-outcome-table th:nth-child(3),
	.department-outcome-table td:nth-child(3) { width: 28% !important; }
	.department-outcome-table th:nth-child(4),
	.department-outcome-table td:nth-child(4) {
		width: 55px !important;
		min-width: 55px !important;
		max-width: 55px !important;
	}

	/* CLO map: mapping and action cells stay compact; outcome text takes the remainder. */
	.clo-map-table th:nth-child(2),
	.clo-map-table td:nth-child(2) { width: auto !important; }
	.clo-map-table th:last-child,
	.clo-map-table td:last-child {
		width: 44px !important;
		min-width: 44px !important;
		max-width: 44px !important;
	}
}
/* PDF and DOCX export format menu */
.export-options {
	position: relative;
	display: inline-block;
}
.export-options > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
	zoom: 1;
}
.export-options > summary::-webkit-details-marker {
	display: none;
}
.export-options[open] > summary {
	filter: brightness(.94);
}
.export-options-menu {
	position: absolute;
	z-index: 80;
	top: calc(100% + 7px);
	right: 0;
	display: grid;
	width: 156px;
	padding: 5px;
	gap: 3px;
	border: 1px solid #c8d4cc;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 24px #062b1430;
}
.export-options-menu a {
	display: flex;
	min-height: 34px;
	padding: 7px 9px;
	align-items: center;
	gap: 7px;
	border-radius: 4px;
	color: #174222;
	font-size: 11px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}
.export-options-menu a:hover,
.export-options-menu a:focus-visible {
	background: #e9f5ec;
	color: #075209;
}

/* Unified syllabus action toolbar */
.faculty-topbar .syllabus-switch > .button,
.faculty-topbar .top-actions > .button,
.faculty-topbar .top-actions .export-options > summary {
	display: inline-flex;
	height: 30px;
	min-height: 30px;
	padding: 0 11px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid #bfcfc5;
	border-radius: 4px;
	background: #f5f8f6;
	box-shadow: 0 1px 2px #163d210a;
	color: #173d24;
	font: 700 10px/1 'DM Sans',Arial,sans-serif;
	white-space: nowrap;
	transition: border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease;
}
.faculty-topbar .syllabus-switch > .button:hover,
.faculty-topbar .top-actions > .button:hover,
.faculty-topbar .top-actions .export-options > summary:hover {
	filter: none;
	transform: translateY(-1px);
	border-color: #7ea28a;
	background: #eaf3ed;
	box-shadow: 0 3px 7px #163d2118;
}
.faculty-topbar .top-action-icon {
	display: inline-grid;
	width: 14px;
	height: 14px;
	place-items: center;
	font: 900 14px/1 Arial,sans-serif;
}
.faculty-topbar #deleteSyllabus {
	border-color: #dfa9a9;
	background: #fff7f7;
	color: #a32626;
}
.faculty-topbar #deleteSyllabus:hover {
	border-color: #c96e6e;
	background: #fce9e9;
}
.faculty-topbar .top-actions .export-options > summary {
	border-color: #075b22;
	background: #075b22;
	box-shadow: 0 2px 5px #075b2230;
	color: #fff;
}
.faculty-topbar .top-actions .export-options > summary:hover,
.faculty-topbar .top-actions .export-options[open] > summary {
	border-color: #043f17;
	background: #064d1e;
	color: #fff;
}

/* Syllabus export action */
.faculty-topbar .top-actions .export-options > summary {
	min-width: 0;
	height: 30px;
	min-height: 30px;
	justify-content: center;
	gap: 9px;
	padding: 0 11px;
	border: 1px solid #57a56d;
	border-radius: 4px;
	background: #f8fcf9;
	box-shadow: 0 1px 2px #163d210a;
	color: #006b28;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.faculty-topbar .top-actions .export-options > summary .top-action-icon {
	display: grid;
	position: relative;
	place-items: center;
	width: 19px;
	height: 19px;
	margin: 0;
	border-radius: 50%;
	background: #ffc928;
	color: #075b22;
	font-size: 0;
	font-weight: 900;
	line-height: 1;
}
.faculty-topbar .top-actions .export-options > summary .top-action-icon::before {
	content: '';
	position: absolute;
	top: 4px;
	left: 8px;
	width: 3px;
	height: 7px;
	border-radius: 2px;
	background: currentColor;
}
.faculty-topbar .top-actions .export-options > summary .top-action-icon::after {
	content: '';
	position: absolute;
	top: 10px;
	left: 5px;
	width: 0;
	height: 0;
	border-top: 5px solid currentColor;
	border-right: 4.5px solid transparent;
	border-left: 4.5px solid transparent;
}
.faculty-topbar .top-actions .export-options > summary:hover,
.faculty-topbar .top-actions .export-options[open] > summary {
	border-color: #218547;
	background: #eff9f2;
	box-shadow: 0 3px 7px #163d2118;
	color: #005e22;
}
.faculty-topbar .top-actions .export-options > summary:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px #174d2720;
}

/* Course Description formatting toolbar */
.description-editor-card{padding:0!important;overflow:hidden}
.simple-format-toolbar{display:flex;align-items:center;gap:5px;min-height:46px;padding:7px 10px;border-bottom:1px solid #c9d8ce;background:#edf4ef}
.simple-format-toolbar>span{margin-right:4px;color:#3c5947;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.simple-format-toolbar .button{width:auto;min-width:34px;height:30px;min-height:30px;margin:0;padding:0 9px;border-color:#bfd0c4;background:#fff;color:#214b2e;font-size:11px}
.simple-format-toolbar .button:hover{border-color:#6f9d7c;background:#e3f0e6}
.simple-format-toolbar .format-bold,.simple-format-toolbar .format-italic{padding:0}
.description-editor-card>textarea{display:block;width:100%;margin:0;border:0!important;border-radius:0!important;box-shadow:none!important;padding:18px 20px;line-height:1.65}
.description-editor-card>textarea:focus{outline:2px solid #72a980!important;outline-offset:-2px}
.simple-format-help{display:block;padding:8px 20px 10px;border-top:1px solid #e0e8e2;background:#fafcfb;color:#738179;font-size:10px}
@media(max-width:640px){.simple-format-toolbar{flex-wrap:wrap}.simple-format-toolbar>span{flex-basis:100%}.simple-format-toolbar .button{flex:0 0 auto!important}.description-editor-card>textarea{padding:14px}.simple-format-help{padding-right:14px;padding-left:14px}}
.faculty-topbar .save-state {
	display: inline-flex;
	height: 32px;
	padding: 0 8px;
	align-items: center;
	border-radius: 4px;
	background: #eff7f1;
	font-size: 10px;
}
@media (max-width:640px) {
	.faculty-topbar .syllabus-switch > .button,
	.faculty-topbar .top-actions > .button,
	.faculty-topbar .top-actions .export-options > summary,
	.faculty-topbar .save-state {
		height: 38px;
		min-height: 38px;
	}
}
@media (max-width: 640px) {
	.top-actions .export-options {
		min-width: 0;
		flex: 1 1 auto;
	}
	.top-actions .export-options > summary {
		width: 100%;
		min-width: 0;
		min-height: 38px;
		padding: 0 9px;
		justify-content: center;
		font-size: 10px;
		white-space: nowrap;
	}
	.export-options-menu {
		top: calc(100% + 5px);
		right: 0;
		width: min(168px, 72vw);
	}
}
/* Reusable companion actions match Mina height and fit their captions. */
.button.standard-action-button {
	width: fit-content;
	min-width: 0;
	max-width: 100%;
	height: 40px;
	min-height: 40px;
	padding: 0 14px;
	flex: 0 0 auto;
	font-size: 11px;
	white-space: nowrap;
}
/* Compact global desktop geometry for all Mina buttons */
@media (min-width: 641px) {
	.button.ai-button,
	.button.ai-button.small,
	.button.ai-button.ai-prompt-button {
		width: fit-content;
		min-width: 0;
		max-width: 100%;
		flex: 0 0 auto;
		height: 40px;
		min-height: 40px;
		padding: 0 14px;
		justify-content: center;
		font-size: 11px;
	}
}

/* The clicked workflow guide floats on desktop only. */
@media (min-width: 761px) {
	.faculty-content,
	.faculty-content > .panel.active {
		overflow: visible;
	}
	.workflow-grid.is-guiding {
		position: sticky !important;
		top: 62px;
		z-index: 25;
	}
}
@media (min-width: 761px) and (max-width: 1180px) {
	.workflow-grid.is-guiding {
		top: 98px;
	}
}
@media (max-width: 760px) {
	.workflow-grid.is-guiding {
		position: static !important;
		top: auto !important;
	}
	.workflow-grid.is-guiding .stop-guiding {
		display: none !important;
	}
}

/* Optional Table of Specifications */
.tos-formula-banner {
	display: flex;
	align-items: center;
	gap: 10px 18px;
	margin: 0 0 18px;
	padding: 14px 18px;
	border: 1px solid #b8d9c2;
	border-left: 5px solid #06722c;
	border-radius: 10px;
	background: #eef8f1;
	color: #173f25;
	font-size: 13px;
}
.tos-formula-banner strong { color: #075b22; }
.tos-formula-banner span + span { border-left: 1px solid #bfd6c6; padding-left: 18px; }
.tos-selection-card { margin-bottom: 18px; }
.tos-period-selector {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}
.tos-period-card {
	min-width: 0;
	border: 1px solid #c8d8cd;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.tos-period-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: #e7f4ea;
	border-bottom: 1px solid #c8d8cd;
}
.tos-period-card-head > div { display: grid; gap: 2px; }
.tos-period-card-head strong { color: #075b22; font-size: 14px; }
.tos-period-card-head small,
.tos-topic-checks small { color: #66756b; font-size: 11px; }
.tos-period-card-head label { display: grid; gap: 3px; color: #075b22; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tos-period-card-head input { width: 78px; height: 34px; padding: 5px 8px; text-align: center; }
.tos-topic-checks { display: grid; gap: 7px; padding: 10px; }
.tos-topic-checks > .tos-topic-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	min-width: 0;
	min-height: 0;
	height: auto;
	padding: 9px 10px;
	border: 1px solid #d5dfd8;
	border-radius: 7px;
	background: #fff;
	cursor: pointer;
}
.tos-topic-checks > .tos-topic-row:hover { border-color: #85b994; background: #f7fbf8; }
.tos-topic-checks input[type="checkbox"] {
	box-sizing: border-box !important;
	display: block;
	width: 16px !important;
	min-width: 16px !important;
	max-width: 16px !important;
	height: 16px !important;
	min-height: 16px !important;
	max-height: 16px !important;
	margin: 1px 0 0 !important;
	padding: 0 !important;
	flex: 0 0 16px !important;
}
.tos-topic-checks span { display: grid; width: 100%; min-width: 0; max-width: 100%; gap: 3px; overflow: hidden; }
.tos-topic-checks b { color: #24382b; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; word-break: normal; }
.tos-topic-checks > .tos-topic-row {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr);
	align-items: start;
	column-gap: 10px;
	row-gap: 10px;
}
.tos-topic-row > input[type="checkbox"] {
	grid-column: 1;
	grid-row: 1;
}
.tos-topic-row > .tos-topic-copy {
	grid-column: 2;
	grid-row: 1;
}
.tos-topic-row > .tos-topic-controls {
	display: grid;
	grid-column: 1 / -1;
	grid-row: 2;
	grid-template-columns: minmax(84px, .65fr) minmax(130px, 1fr);
	width: 100%;
	min-width: 0;
	max-width: none;
	padding-top: 10px;
	border-top: 1px solid #d5dfd8;
	gap: 10px;
	overflow: visible;
}
.tos-topic-controls > span {
	display: grid;
	width: auto;
	min-width: 0;
	gap: 3px;
	overflow: visible;
}
.tos-topic-controls input,
.tos-topic-controls select {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 34px;
	padding: 5px 7px;
	border: 1px solid #c8d8cd;
	border-radius: 5px;
	background: #fff;
	color: #24382b;
}
.tos-topic-controls input { text-align: center; }
.tos-difficulty-checks {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px !important;
	width: 100% !important;
	overflow: visible !important;
}
.tos-difficulty-choice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	min-height: 34px;
	padding: 5px 7px;
	border: 1px solid #c8d8cd;
	border-radius: 5px;
	background: #fff;
	color: #24382b;
	cursor: pointer;
	font-size: 11px;
	font-weight: 700;
}
.tos-difficulty-choice:has(input:checked) {
	border-color: #71b889;
	background: #e7f6ec;
	color: #075b22;
}
.tos-difficulty-choice > input[type="checkbox"] {
	display: block;
	width: 14px !important;
	min-width: 14px !important;
	max-width: 14px !important;
	height: 14px !important;
	min-height: 14px !important;
	max-height: 14px !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 14px !important;
	accent-color: #075b22;
}
.tos-difficulty-choice > span {
	display: block !important;
	width: auto !important;
	min-width: 0;
	overflow: visible !important;
	line-height: 1.1;
}
.tos-results { display: grid; gap: 18px; }
.tos-results .table-wrap { width: 100%; max-width: 100%; overflow-x: hidden; }
.tos-results .tos-result-section,
.tos-results .tos-result-section .table-wrap {
	scrollbar-gutter: auto;
}
.tos-results .tos-result-section {
	overflow: hidden;
}
.tos-table { width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; border-collapse: collapse; }
.tos-table th,
.tos-table td { padding: 9px 7px; border: 1px solid #cddbd1; vertical-align: top; text-align: center; }
.tos-table thead th { background: #dff0e4; color: #075b22; font-size: 10px; line-height: 1.25; text-transform: uppercase; }
.tos-table th:first-child,
.tos-table td:first-child { width: 30%; text-align: left; }
.tos-table th:nth-child(2), .tos-table td:nth-child(2),
.tos-table th:nth-child(3), .tos-table td:nth-child(3),
.tos-table th:last-child, .tos-table td:last-child { width: 7%; }
.tos-table td:first-child strong { display: block; color: #173f25; font-size: 12px; }
.tos-table td:first-child small { display: block; margin-top: 5px; color: #5f6f64; font-size: 10px; line-height: 1.4; white-space: pre-line; }
.tos-table input { width: 52px; height: 34px; margin: auto; padding: 4px; text-align: center; }
.tos-readonly-table tbody td:not(:first-child) {
	vertical-align: top !important;
	text-align: center !important;
}
.tos-readonly-table output {
	display: inline-block;
	color: #24382b;
	font-weight: 650;
}
.tos-table tfoot th { background: #075b22; color: #fff; vertical-align: middle; }
.tos-edit-note { margin: 9px 0 0; color: #6b746d; font-size: 11px; }

@media (max-width: 960px) {
	#tosActionsSource {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		width: 100% !important;
		gap: 8px;
	}
	#tosActionsSource > .button.ai-button {
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		height: 44px !important;
		min-height: 44px !important;
		padding: 6px 9px !important;
		justify-content: center;
		font-size: 10px !important;
		line-height: 1.15;
		white-space: normal;
	}
	#tosActionsSource > .button.ai-button::before { width: 22px; height: 22px; flex: 0 0 22px; font-size: 11px; }
	.tos-formula-banner { display: grid; gap: 6px; padding: 12px 14px; }
	.tos-formula-banner span + span { border-left: 0; padding-left: 0; }
	.tos-period-selector { grid-template-columns: 1fr; }
	.tos-period-card-head { align-items: flex-end; }
	.tos-topic-row > .tos-topic-controls { grid-template-columns: minmax(84px, .65fr) minmax(130px, 1fr); }
	.tos-result-section .table-wrap { overflow: visible !important; }
	.tos-table,
	.tos-table tbody { display: block; width: 100% !important; min-width: 0 !important; }
	.tos-table thead { display: none; }
	.tos-table tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 0 0 12px;
		padding: 12px;
		border: 1px solid #c8d8cd;
		border-radius: 10px;
		background: #fff;
	}
	.tos-table tbody td {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 8px;
		width: auto !important;
		padding: 7px 8px;
		border: 1px solid #e0e8e2;
		border-radius: 6px;
		text-align: right;
	}
	.tos-table tbody td::before { color: #075b22; font-size: 9px; font-weight: 800; line-height: 1.2; text-align: left; text-transform: uppercase; }
	.tos-table tbody td:nth-child(1) { grid-column: 1 / -1; display: block; text-align: left; }
	.tos-table tbody td:nth-child(1)::before { content: 'Course Content / Learning Outcomes'; display: block; margin-bottom: 6px; }
	.tos-table tbody td:nth-child(2)::before { content: 'No. of Hours'; }
	.tos-table tbody td:nth-child(3)::before { content: '% Weight'; }
	.tos-table tbody td:nth-child(4)::before { content: 'Remembering'; }
	.tos-table tbody td:nth-child(5)::before { content: 'Understanding'; }
	.tos-table tbody td:nth-child(6)::before { content: 'Applying'; }
	.tos-table tbody td:nth-child(7)::before { content: 'Analyzing'; }
	.tos-table tbody td:nth-child(8)::before { content: 'Evaluating'; }
	.tos-table tbody td:nth-child(9)::before { content: 'Total Items'; }
	.tos-table input { width: 56px; margin: 0; }
	.tos-table tfoot { display: block; }
	.tos-table tfoot tr { display: grid; grid-template-columns: repeat(3, 1fr); }
	.tos-table tfoot th { width: auto !important; padding: 8px 4px; border-color: #287140; font-size: 10px; text-align: center; }
	.tos-table tfoot th:first-child { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 360px) {
	#tosActionsSource { grid-template-columns: 1fr !important; }
	.tos-table tbody tr { grid-template-columns: 1fr; }
	.tos-table tbody td:nth-child(1) { grid-column: auto; }
}
/* TOS row actions use the shared table action controls. */
.tos-table th:nth-child(9),
.tos-table td:nth-child(9),
.tos-table th:last-child,
.tos-table td:last-child { width: 7%; }
.tos-action-heading,
.tos-action-cell { text-align: center !important; vertical-align: middle !important; }
.tos-row-actions { min-width: 30px; }
@media (max-width: 960px) {
	.tos-table tbody td:nth-child(10) { grid-column: 1 / -1; justify-content: center; text-align: center; }
	.tos-table tbody td:nth-child(10)::before { content: 'Actions'; }
	.tos-table tbody td:nth-child(10) .tos-row-actions { display: flex; grid-template-columns: none; align-items: center; justify-content: center; gap: 6px; }
}
/* Editable TOS course content and intended learning outcomes. */
.tos-content-cell { padding: 7px !important; }
.tos-content-cell label { display: grid; gap: 4px; color: #075b22; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tos-content-cell label + label { margin-top: 8px; }
.tos-content-cell textarea { width: 100%; min-height: 46px; padding: 7px 8px; border: 1px solid #cddbd1; border-radius: 5px; background: #fff; color: #24382b; font: inherit; font-size: 11px; font-weight: 400; line-height: 1.35; text-transform: none; resize: vertical; }
.tos-content-cell label:first-child textarea { min-height: 42px; font-weight: 700; }
@media (max-width: 960px) { .tos-content-cell textarea { font-size: 12px; } }
/* Keep the TOS table within the available workspace width. */
.tos-table th:first-child,
.tos-table td:first-child { width: 25% !important; }
.tos-table th:nth-child(2), .tos-table td:nth-child(2),
.tos-table th:nth-child(3), .tos-table td:nth-child(3) { width: 7% !important; }
.tos-table th:nth-child(4), .tos-table td:nth-child(4),
.tos-table th:nth-child(5), .tos-table td:nth-child(5),
.tos-table th:nth-child(6), .tos-table td:nth-child(6),
.tos-table th:nth-child(7), .tos-table td:nth-child(7),
.tos-table th:nth-child(8), .tos-table td:nth-child(8) { width: 10% !important; }
.tos-table th:nth-child(9), .tos-table td:nth-child(9) { width: 7% !important; }
.tos-table th:nth-child(10), .tos-table td:nth-child(10) { width: 4% !important; }
.tos-table th:not(:first-child),
.tos-table td:not(:first-child) { min-width: 0; overflow: hidden; }
.tos-table td:not(:first-child) { padding: 8px 5px; vertical-align: top; }
.tos-table td > input[type="number"] { box-sizing: border-box; display: block; width: 100% !important; min-width: 0; max-width: 100%; margin: 1px 0 0; }
@media (max-width: 960px) {
	.tos-results .table-wrap { overflow: visible; }
	.tos-table th,
	.tos-table td { width: auto !important; }
}
/* Size the TOS action cell to its controls, not to the table width. */
.tos-table { table-layout: auto; }
.tos-table th:nth-child(10),
.tos-table td:nth-child(10) {
	width: 46px !important;
	min-width: 46px !important;
	max-width: 46px !important;
	padding-right: 3px !important;
	padding-left: 3px !important;
}
.tos-table .tos-action-heading .period-add-button { margin: 0 auto; }
@media (max-width: 960px) {
	.tos-table { table-layout: fixed; }
	.tos-table th:nth-child(10),
	.tos-table td:nth-child(10) { width: auto !important; min-width: 0 !important; max-width: none !important; }
}
/* Single editable TOS content field. */
.tos-content-cell > textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 136px;
	margin: 0;
	padding: 9px 10px;
	border: 1px solid #cddbd1;
	border-radius: 6px;
	background: #fff;
	color: #24382b;
	font: inherit;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	resize: vertical;
}
/* Reusable typed confirmation dialog for destructive actions. */
.typed-confirm-dialog { width: min(560px, calc(100vw - 28px)); }
.typed-confirm-form { gap: 14px; }
.typed-confirm-warning { margin: 0; padding: 12px 14px; border: 1px solid #e6b4b4; border-left: 5px solid #b42323; border-radius: 7px; background: #fff5f5; color: #6f1d1d; line-height: 1.45; }
.typed-confirm-form > label { display: grid; gap: 7px; color: #173f25; font-size: 12px; font-weight: 700; }
.typed-confirm-input { height: 42px; font-weight: 800; letter-spacing: .08em; }
.typed-confirm-submit { border-color: #8f1d1d; background: #b42323; color: #fff; }
.typed-confirm-submit:hover:not(:disabled),
.typed-confirm-submit:focus-visible:not(:disabled) { border-color: #651010; background: #8f1d1d; }
.typed-confirm-submit:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) {
	.typed-confirm-form .button-row { display: grid; grid-template-columns: 1fr 1fr; }
	.typed-confirm-form .button { width: 100%; }
}
/* TOS table clipboard action. */
.tos-heading-actions { flex-wrap: nowrap; }
.tos-copy-button { width: auto; white-space: nowrap; }
@media (max-width: 640px) {
	.tos-result-section .period-heading { align-items: flex-start; flex-wrap: wrap; }
	.tos-heading-actions { width: 100%; justify-content: space-between; }
	.tos-copy-button { min-height: 34px !important; padding-inline: 10px; }
}

/* Period allocation deck and expanded TOS difficulty columns. */
.tos-period-card-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 10px;
}
.tos-period-title { display: grid; gap: 2px; min-width: 0; }
.tos-period-name-line,
.tos-result-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	min-width: 0;
}
.tos-time-indicator {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: fit-content;
	max-width: 100%;
	padding: 3px 7px;
	border: 1px solid;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	white-space: normal;
}
.tos-time-indicator.is-valid {
	border-color: #71b889;
	background: #e7f6ec;
	color: #075b22;
}
.tos-time-indicator.is-invalid {
	border-color: #df8d8d;
	background: #fff0f0;
	color: #a32121;
}
.tos-period-controls {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding-top: 10px;
	border-top: 1px solid #bfd6c6;
}
.tos-period-controls label {
	display: grid;
	min-width: 0;
	gap: 4px;
	color: #075b22;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
}
.tos-period-control-input {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	width: 100% !important;
	max-width: none !important;
	gap: 4px !important;
	overflow: visible !important;
}
.tos-period-control-input input {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0;
	height: 34px;
	padding: 5px 6px;
	text-align: center;
}
.tos-period-control-input b { color: #52705c; font-size: 11px; }
.tos-allocation-total {
	order: 4;
	display: grid;
	align-content: center;
	min-width: 0;
	padding: 5px 7px;
	border: 1px solid;
	border-radius: 6px;
	text-align: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tos-allocation-total span {
	font-size: 9px;
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
}
.tos-allocation-total strong { font-size: 15px; line-height: 1.15; }
.tos-allocation-total.is-valid {
	border-color: #71b889;
	background: #e7f6ec;
	color: #075b22;
}
.tos-allocation-total.is-invalid {
	border-color: #df8d8d;
	background: #fff0f0;
	color: #a32121;
}
.tos-topic-row > .tos-topic-controls {
	grid-template-columns: minmax(84px, .65fr) minmax(130px, 1fr);
	justify-content: stretch;
}
@media (min-width: 961px) {
	.tos-period-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.tos-period-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tos-readonly-table { width: 100% !important; table-layout: fixed !important; }
.tos-readonly-table col.tos-col-topic { width: 32.4% !important; }
.tos-readonly-table col.tos-col-hours { width: 7.2% !important; }
.tos-readonly-table col.tos-col-weight { width: 8.1% !important; }
.tos-readonly-table col.tos-col-skill { width: 5.9375% !important; }
.tos-readonly-table col.tos-col-total { width: 4.8% !important; }
.tos-readonly-table thead tr:first-child th {
	text-align: center !important;
	vertical-align: middle !important;
}
.tos-readonly-table thead tr:last-child th {
	padding: 6px 3px;
	font-size: 8px;
	line-height: 1.1;
	text-align: center !important;
	vertical-align: top !important;
}
.tos-readonly-table .tos-difficulty-heading > span,
.tos-readonly-table .tos-difficulty-heading > small {
	display: block;
}
.tos-readonly-table .tos-difficulty-heading > small {
	margin-top: 2px;
	color: inherit;
	font-size: 8px;
	line-height: 1;
}
@media (min-width: 961px) {
	.tos-readonly-table thead th:nth-child(n),
	.tos-readonly-table tbody td:nth-child(n),
	.tos-readonly-table tfoot th:nth-child(n) {
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}
	.tos-readonly-table thead th {
		overflow-wrap: anywhere;
		word-break: normal;
		white-space: normal;
	}
}
@media (max-width: 960px) {
	.tos-readonly-table colgroup { display: none; }
}
.tos-readonly-table tbody td:nth-child(6),
.tos-readonly-table tbody td:nth-child(9),
.tos-readonly-table tbody td:nth-child(11) {
	background: #eef8f1;
	color: #075b22;
	font-weight: 800;
}
@media (max-width: 960px) {
	.tos-readonly-table tbody td:nth-child(4)::before { content: 'Remembering'; }
	.tos-readonly-table tbody td:nth-child(5)::before { content: 'Understanding'; }
	.tos-readonly-table tbody td:nth-child(6)::before { content: 'Easy'; }
	.tos-readonly-table tbody td:nth-child(7)::before { content: 'Applying'; }
	.tos-readonly-table tbody td:nth-child(8)::before { content: 'Analyzing'; }
	.tos-readonly-table tbody td:nth-child(9)::before { content: 'Average'; }
	.tos-readonly-table tbody td:nth-child(10) { grid-column: auto; justify-content: normal; text-align: right; }
	.tos-readonly-table tbody td:nth-child(10)::before { content: 'Evaluating'; }
	.tos-readonly-table tbody td:nth-child(11)::before { content: 'Difficult'; }
	.tos-readonly-table tbody td:nth-child(12)::before { content: 'Total Items'; }
}

/* TOS totals: keep the label left and center every numeric total. */
.tos-readonly-table tfoot th:first-child {
    text-align: left !important;
}

.tos-readonly-table tfoot th:not(:first-child) {
    text-align: center !important;
}

.tos-time-symbol,
.tos-time-difference {
	display: inline-grid;
	place-items: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid #c86f6f;
	border-radius: 50%;
	background: #fff8f8 !important;
	color: #8a2929 !important;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

/* Live TOS heading hour status follows the global valid/invalid color theme. */
.cw-tos-heading-hours {
	display: inline-flex;
	padding: 3px 8px;
	vertical-align: middle;
	border: 1px solid;
	border-radius: 999px;
	font-size: .58em;
	font-weight: 800;
	line-height: 1.2;
}
.cw-tos-heading-hours.is-valid {
	border-color: #71b889;
	background: #e7f6ec;
	color: #075b22;
}
.cw-tos-heading-hours.is-invalid {
	border-color: #df8d8d;
	background: #fff0f0;
	color: #a32121;
}

/* Make the TOS comparison direction immediately recognizable without an aggressive treatment. */
.tos-time-symbol {
	flex-basis: 28px;
	width: 28px;
	height: 28px;
	border-width: 2px;
	border-color: #a94747;
	background: #fff !important;
	color: #751f1f !important;
	font-size: 15px;
	font-weight: 900;
	box-shadow: 0 1px 3px #751f1f2b;
}

/* Step 4: the inner table wrapper owns scrolling; do not reserve an outer gutter. */
.coverage-period-section {
	overflow: hidden;
	scrollbar-gutter: auto;
}

.coverage-period-section > .table-wrap {
	width: 100%;
	scrollbar-gutter: auto;
}
/* Step 4 Reference Coverage: period references remain in startup; hide per-topic source/page columns. */
@media (min-width: 641px) {
	.topic-planner-table {
		width: 100% !important;
		min-width: 0 !important;
		table-layout: fixed;
	}
	.topic-planner-table th:nth-child(1),
	.topic-planner-table td:nth-child(1) {
		width: 42px !important;
		min-width: 42px !important;
		max-width: 42px !important;
	}
	.topic-planner-table th:nth-child(2),
	.topic-planner-table td:nth-child(2),
	.topic-planner-table th:nth-child(3),
	.topic-planner-table td:nth-child(3) {
		width: 9% !important;
		min-width: 0 !important;
	}
	.topic-planner-table th:nth-child(4),
	.topic-planner-table td:nth-child(4) {
		width: calc(82% - 88px) !important;
		min-width: 0 !important;
	}
	.topic-planner-table th:nth-child(5),
	.topic-planner-table td:nth-child(5) {
		width: 46px !important;
		min-width: 46px !important;
		max-width: 46px !important;
	}
}
@media (max-width: 640px) {
	.topic-planner-table tbody td:nth-child(5) { grid-column: 1 / -1; }
	.topic-planner-table tbody td:nth-child(5)::before { content: 'Actions'; }
}

/* TOS is now available only in Courseware. Stored TOS records are preserved. */
.syllabus-tos-retired { display: none !important; }

/* Section XI Program Outcome governance groups. */
.program-outcome-group > th,
.department-outcome-group > th { padding:10px 12px!important; background:#8fd14f!important; color:#102309!important; text-align:left!important; font-size:12px!important; font-weight:900!important; letter-spacing:.01em; }
.program-outcome-group.department > th,
.department-outcome-group.is-editable > th { background:#fff1a8!important; color:#4d3b00!important; }
.department-outcome-group > th { display:table-cell; }
.department-outcome-group > th > span { display:inline-flex; align-items:center; min-height:30px; }
.department-outcome-group > th > .period-add-button,
.department-outcome-group > th > .pdqa-lock-badge { float:right; }
.pdqa-lock-badge { display:inline-flex; min-height:28px; padding:5px 9px; align-items:center; border:1px solid #609c36; border-radius:999px; background:#f3faec; color:#31571d; font-size:9px; font-weight:850; text-transform:uppercase; }
.department-outcome-locked td { background:#f7faf6; }
.department-outcome-readonly { min-height:42px; padding:8px 10px; color:#24372a; line-height:1.45; }
.department-outcome-readonly.attribute { font-weight:750; text-align:center; }
.pdqa-row-lock {
	display:inline-grid;
	width:auto;
	min-width:28px;
	height:28px;
	box-sizing:border-box;
	padding:0 6px;
	place-items:center;
	border:1px solid #cad9ce;
	border-radius:999px;
	background:#edf4ef;
	color:#45534a;
	font-size:8px;
	font-weight:800;
	line-height:1;
	white-space:nowrap;
	filter:grayscale(1);
}
.department-outcome-empty td { padding:18px!important; color:var(--muted); text-align:center; font-style:italic; }
@media (max-width:640px) { .pdqa-lock-badge { float:none!important; margin-left:8px; } }

/* Compact save and Mina availability pills used in Syllabus and Courseware. */
.faculty-topbar #saveState,
.faculty-topbar .ai-state {
	display:inline-flex;
	min-height:24px;
	box-sizing:border-box;
	padding:3px 9px;
	align-items:center;
	gap:6px;
	border-radius:999px;
	font-size:11px;
	font-weight:850;
	line-height:1;
	white-space:nowrap;
}
.faculty-topbar #saveState {
	border:1.5px solid currentColor;
	background:#fbfffc;
	color:#07933e;
}
.faculty-topbar #saveState::before {
	content:"";
	width:5px;
	height:5px;
	flex:0 0 5px;
	border-radius:50%;
	background:currentColor;
	box-shadow:0 0 0 3px #c9efd4;
}
.faculty-topbar #saveState.saved { background:#fbfffc; color:#07933e; }
.faculty-topbar #saveState.unsaved,
.faculty-topbar #saveState.saving,
.faculty-topbar #saveState.readonly { background:#fffdf5; color:#b07a00; }
.faculty-topbar #saveState.unsaved::before,
.faculty-topbar #saveState.saving::before,
.faculty-topbar #saveState.readonly::before { box-shadow:0 0 0 3px #f4e3aa; }
.faculty-topbar #saveState.error { background:#fffafa; color:#c53232; }
.faculty-topbar #saveState.error::before { box-shadow:0 0 0 3px #f2cccc; }
.faculty-topbar #saveState.saving::before { animation:syllabus-save-status-pulse 1.1s ease-in-out infinite; }
.faculty-topbar .ai-state {
	border:1.5px solid currentColor;
	background:#fff;
}
.faculty-topbar .ai-state > i {
	display:block;
	width:7px;
	height:7px;
	flex:0 0 7px;
	border-radius:50%;
	background:currentColor;
}
.faculty-topbar .ai-state.ready { color:#07933e; background:#fbfffc; }
.faculty-topbar .ai-state.ready > i { box-shadow:0 0 0 3px #c9efd4; }
.faculty-topbar .ai-state.busy { color:#b07a00; background:#fffdf5; }
.faculty-topbar .ai-state.busy > i { box-shadow:0 0 0 3px #f4e3aa; }
.faculty-topbar .ai-state.offline { color:#c53232; background:#fffafa; }
.faculty-topbar .ai-state.offline > i { box-shadow:0 0 0 3px #f2cccc; }
.faculty-topbar .ai-state.busy > i { animation:syllabus-ai-status-pulse 1.15s ease-in-out infinite; }
@keyframes syllabus-ai-status-pulse { 50% { opacity:.35; transform:scale(.72); } }
@keyframes syllabus-save-status-pulse { 50% { opacity:.35; } }
@media (max-width:640px) {
	.faculty-topbar #saveState,
	.faculty-topbar .ai-state { min-height:24px; padding:3px 8px; }
}

/* Keep save and AI status pills exactly level in Syllabus and Courseware. */
.faculty-topbar #saveState,
.faculty-topbar #aiState {
	height:26px;
	min-height:26px;
	max-height:26px;
	box-sizing:border-box;
	padding:0 9px;
	border-width:1.5px;
	border-radius:999px;
	font-size:11px;
	line-height:1;
}

/* Syllabus header: reserve space for wrapped controls and keep Course Content readable. */
@media (min-width: 761px) and (max-width: 2000px) {
	.syllabus-topbar {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 32px 32px;
		height: auto;
		min-height: 88px;
		align-content: center;
		align-items: center;
		row-gap: 6px;
	}

	.syllabus-topbar .syllabus-switch {
		display: flex;
		width: 100%;
		min-width: 0;
		grid-row: 1;
		flex-wrap: nowrap !important;
		overflow: hidden;
	}

	.syllabus-topbar .syllabus-switch label {
		min-width: 0;
		flex: 1 1 auto;
	}

	.syllabus-topbar .syllabus-switch select {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.syllabus-topbar .top-actions {
		width: 100%;
		min-width: 0;
		margin-left: 0;
		grid-row: 2;
		justify-content: flex-end;
		flex-wrap: nowrap;
	}

	.syllabus-topbar + .faculty-content {
		padding-top: 112px;
	}

	.syllabus-topbar + .faculty-content .workflow-grid.is-guiding {
		top: 98px;
	}
}

@media (min-width: 761px) and (max-width: 1350px) {
	#content .table-wrap {
		overflow-x: hidden;
	}

	#content .section-content-table,
	#content .section-content-table tbody {
		display: block;
		width: 100%;
		min-width: 0 !important;
		max-width: 100% !important;
		background: #f5f8f6;
	}

	#content .section-content-table thead {
		display: none;
	}

	#content .section-content-table tbody {
		display: grid;
		padding: 10px;
		gap: 12px;
	}

	#content .section-content-table tbody tr {
		display: grid;
		grid-template-columns: 42px minmax(0, .85fr) minmax(0, 1.35fr) 42px;
		padding: 12px;
		gap: 10px 12px;
		border: 1px solid #cbd8cf;
		border-radius: 7px;
		background: #fff;
		box-shadow: 0 1px 2px #0000000d;
	}

	#content .section-content-table tbody td {
		display: block;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		padding: 0 !important;
		border: 0;
	}

	#content .section-content-table tbody td:nth-child(1) { grid-column: 1; grid-row: 1; }
	#content .section-content-table tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
	#content .section-content-table tbody td:nth-child(3) { grid-column: 3; grid-row: 1; }
	#content .section-content-table tbody td:nth-child(4) { grid-column: 2; grid-row: 2; }
	#content .section-content-table tbody td:nth-child(5) { grid-column: 3 / 5; grid-row: 2; }
	#content .section-content-table tbody td:nth-child(6) { grid-column: 4; grid-row: 1; }

	#content .section-content-table tbody td::before {
		display: block;
		margin-bottom: 5px;
		color: #075b22;
		font-size: 9px;
		font-weight: 800;
		letter-spacing: .05em;
		text-transform: uppercase;
	}

	#content .section-content-table tbody td:nth-child(1)::before { content: '#'; }
	#content .section-content-table tbody td:nth-child(2)::before { content: 'Topic'; }
	#content .section-content-table tbody td:nth-child(3)::before { content: 'Intended Learning Outcomes'; }
	#content .section-content-table tbody td:nth-child(4)::before { content: 'Week / Hours'; }
	#content .section-content-table tbody td:nth-child(5)::before { content: 'CLO Alignment'; }
	#content .section-content-table tbody td:nth-child(6)::before { content: 'Actions'; }

	#content .section-content-table textarea,
	#content .section-content-table input,
	#content .section-content-table select {
		width: 100%;
		min-width: 0 !important;
		max-width: 100%;
	}

	#content .section-content-table .clo-checks {
		grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
	}
}

/* One compact Syllabus action dropdown; controls retain their original IDs. */
.syllabus-actions-menu { position:relative; display:inline-block; flex:0 0 auto; }
.syllabus-actions-menu > summary { display:inline-flex; min-height:32px; align-items:center; gap:7px; padding:0 10px; list-style:none; cursor:pointer; white-space:nowrap; }
.syllabus-actions-menu > summary::-webkit-details-marker { display:none; }
.syllabus-actions-menu[open] > summary { border-color:#78a889; background:#eaf4ed; }
.syllabus-actions-panel { position:absolute; z-index:100; top:calc(100% + 7px); right:0; display:grid; width:220px; padding:6px; gap:2px; border:1px solid #c6d4ca; border-radius:6px; background:#fff; box-shadow:0 12px 28px #092c1738; }
.faculty-topbar .top-actions .syllabus-actions-panel > button,
.faculty-topbar .top-actions .syllabus-actions-menu .export-options > summary { display:flex; width:100%; min-height:36px; height:36px; padding:0 10px; align-items:center; justify-content:flex-start; gap:9px; border:0; border-radius:4px; background:transparent; box-shadow:none; color:#173d24; font:700 12px/1 'DM Sans',Arial,sans-serif; text-align:left; text-transform:none; letter-spacing:0; cursor:pointer; }
.faculty-topbar .top-actions .syllabus-actions-panel > button:hover,
.faculty-topbar .top-actions .syllabus-actions-menu .export-options > summary:hover,
.faculty-topbar .top-actions .syllabus-actions-menu .export-options[open] > summary { transform:none; border:0; background:#eaf4ed; box-shadow:none; color:#075209; }
.faculty-topbar .top-actions .syllabus-actions-panel #deleteSyllabus { border:0; background:transparent; color:#a32626; }
.faculty-topbar .top-actions .syllabus-actions-panel #deleteSyllabus:hover { border:0; background:#fff0f0; }
.syllabus-actions-panel [hidden] { display:none !important; }
.syllabus-actions-panel button:disabled { cursor:not-allowed; opacity:.45; }
.syllabus-actions-divider { height:1px; margin:3px 6px; background:#dce7df; }
.syllabus-actions-menu .export-options { display:block; width:100%; }
.syllabus-actions-menu .export-options-menu { position:static; width:auto; margin:0 2px 4px 22px; border:0; border-left:2px solid #dce7df; border-radius:0; box-shadow:none; }
.faculty-topbar .top-actions .syllabus-actions-menu .export-options > summary .top-action-icon { display:inline-grid; position:static; width:14px; height:14px; margin:0; border:0; border-radius:0; background:none; color:inherit; font:900 14px/1 Arial,sans-serif; }
.faculty-topbar .top-actions .syllabus-actions-menu .export-options > summary .top-action-icon::before,
.faculty-topbar .top-actions .syllabus-actions-menu .export-options > summary .top-action-icon::after { content:none; }
body.ai-transaction-locked #syllabusActionsToggle { cursor:not-allowed; opacity:.45; }
.syllabus-topbar { z-index:29; }
/* Match the Syllabus header controls in height, color, and shape. */
.syllabus-topbar .top-actions > #saveState,
.syllabus-topbar .top-actions > #aiState,
.syllabus-topbar .top-actions > #saveNow,
.syllabus-topbar .top-actions > .syllabus-actions-menu > #syllabusActionsToggle {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    box-sizing: border-box;
    padding: 0 11px;
    align-items: center;
    gap: 6px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    box-shadow: none;
    font: 800 11px/1 'DM Sans', Arial, sans-serif;
    white-space: nowrap;
}
.syllabus-topbar .top-actions > #saveNow,
.syllabus-topbar .top-actions > .syllabus-actions-menu > #syllabusActionsToggle {
    background: #fbfffc;
    color: #07933e;
}
.syllabus-topbar .top-actions > #saveNow:hover,
.syllabus-topbar .top-actions > .syllabus-actions-menu > #syllabusActionsToggle:hover,
.syllabus-topbar .top-actions > .syllabus-actions-menu[open] > #syllabusActionsToggle {
    border-color: #07933e;
    background: #eaf4ed;
    color: #07933e;
}
/* Align every dropdown icon and label on the same grid. */
.faculty-topbar .top-actions .syllabus-actions-panel > button,
.faculty-topbar .top-actions .syllabus-actions-panel > .export-options > summary {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    column-gap: 8px;
    box-sizing: border-box;
    padding: 0 10px;
    align-items: center;
    justify-content: start;
    text-align: left;
}
.faculty-topbar .top-actions .syllabus-actions-panel .top-action-icon,
.faculty-topbar .top-actions .syllabus-actions-panel > .export-options > summary .top-action-icon {
    display: grid;
    width: 16px;
    height: 16px;
    margin: 0;
    place-items: center;
    flex: none;
    font: 900 14px/1 Arial, sans-serif;
}
.faculty-topbar .top-actions .syllabus-actions-panel > .export-options > summary::marker {
    content: '';
}
/* Courseware opening loader */
.cw-opening-loader {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f5f8f6;
    text-align: center;
    opacity: 1;
    transition: opacity .35s ease, visibility .35s ease;
    animation: cw-opening-timeout 5s forwards;
}
.cw-opening-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.cw-opening-content { display: grid; justify-items: center; gap: 16px; }
.cw-opening-logo {
    display: block;
    width: min(280px, 72vw);
    height: auto;
    animation: cw-opening-flash 1s ease-in-out infinite;
}
.cw-opening-message {
    color: #075b22;
    font: 800 15px/1.4 'DM Sans', Arial, sans-serif;
}
.cw-opening-progress {
    display: block;
    width: min(280px, 72vw);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #d9e9de;
}
.cw-opening-progress i {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #07933e, #65c985);
    animation: cw-opening-bar 1.4s ease-in-out infinite;
}
@keyframes cw-opening-flash { 50% { opacity: .38; transform: scale(.97); } }
@keyframes cw-opening-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes cw-opening-timeout { 99% { visibility: visible; } 100% { visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
    .cw-opening-logo, .cw-opening-progress i { animation: none; }
}
/* Approval entry and Courseware lock in the Syllabus header. */
.faculty-topbar .top-actions .syllabus-actions-panel > :is(#approvalButton,#approvalTimelineButton,#developmentTimelineButton) {
    display: grid;
    grid-template-columns: 16px minmax(0,1fr);
    column-gap: 8px;
    width: 100%;
    min-height: 36px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 10px;
    align-items: center;
    justify-content: start;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: #173d24;
    font: 700 12px/1 'DM Sans',Arial,sans-serif;
    text-align: left;
    text-decoration: none;
}
.faculty-topbar .top-actions .syllabus-actions-panel > :is(#approvalButton,#approvalTimelineButton,#developmentTimelineButton):hover { background:#eaf4ed; color:#075209; transform:none; }
.faculty-topbar .top-actions .syllabus-actions-panel > :is(#approvalButton,#approvalTimelineButton,#developmentTimelineButton) .top-action-icon { display:grid; width:16px; height:16px; place-items:center; font:900 14px/1 Arial,sans-serif; }
.faculty-topbar .top-actions .syllabus-actions-panel #syllabusLogButton .top-action-icon { font-size:10px; }
.courseware-logo-link.is-locked { width:140px; flex-basis:140px; filter:grayscale(1); opacity:.65; }
.courseware-logo-link.is-locked img { left:6px; }
.courseware-logo-link.is-locked::after { content:'🔒'; position:absolute; left:0; bottom:0; z-index:1; display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:#fff; font-size:12px; }

[data-admin-workspace][hidden] { display:none!important; }

/* Shared plain-text formatting controls for syllabus and department editors. */
.text-format-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:6px 8px;margin:0 0 5px;border:1px solid #c6d8cb;border-radius:5px;background:#edf5ef;color:#183e26;font-size:11px}
.text-format-toolbar .text-format-title{margin-right:5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.text-format-toolbar button,.text-format-toolbar select{min-height:28px;border:1px solid #b4cdbb;border-radius:4px;background:#fff;color:#184526;font:inherit}
.text-format-toolbar button{padding:3px 8px;cursor:pointer}
.text-format-toolbar button:hover,.text-format-toolbar button:focus-visible{background:#d9ebdf;border-color:#26733d}
.text-format-toolbar label{display:inline-flex;align-items:center;gap:4px;margin-left:5px;white-space:nowrap;font-weight:700}
.text-format-toolbar select{padding:2px 4px;max-width:90px}
.text-format-toolbar+textarea{display:block;width:100%;box-sizing:border-box}
.monitor-connection-state{text-align:right;padding:6px 18px;color:#51705c;font-size:11px}
.grading td:nth-child(2){width:48pt}.grading td:last-child{width:auto}

.text-format-toolbar{display:none}.text-format-toolbar.is-active{display:flex}

/* Keep list-row formatting controls and textarea in the same content column. */
.list-row>.text-format-toolbar{grid-column:2;grid-row:1;min-width:0;margin:0}
.list-row>textarea{grid-column:2;grid-row:1;min-width:0}
.list-row>.text-format-toolbar.is-active+textarea{grid-row:2}
.list-row>span{grid-column:1;grid-row:1}
.list-row>.remove{grid-column:3;grid-row:1}

.list-row>.table-row-actions{grid-column:3;grid-row:1}

/* Raster logout icon does not depend on browser font glyph support. */
.logout-icon { display:inline-block; width:18px; height:18px; max-width:none; object-fit:contain; vertical-align:middle; flex:none; }
.top-actions #logoutBtn::before { content:none; }
/* Center both raster and text logout controls in every header. */
.faculty-topbar .top-actions :is(#logoutBtn,#approvalLogoutBtn,#iamLogoutBtn) {
    display:inline-flex; align-items:center; justify-content:center;
    box-sizing:border-box; text-align:center; line-height:1; gap:0;
}
.faculty-topbar .top-actions :is(#logoutBtn,#approvalLogoutBtn) { padding:0; }
.faculty-topbar .top-actions .logout-icon { display:block; margin:0; }
#syllabusSelect option { color:#173d24; background:#fff; }
#syllabusSelect option.is-approved { color:#087d37; background:#edf8f0; font-weight:700; }
#syllabusSelect.is-approved { color:#087d37; border-color:#77b78e; background-color:#edf8f0; font-weight:700; }
.syllabus-topbar .syllabus-switch { min-width:0; flex-wrap:nowrap; }
.syllabus-topbar .syllabus-picker { min-width:0; flex:1 1 auto; }
.syllabus-topbar .syllabus-picker select { min-width:0; max-width:100%; }
.syllabus-switch .syllabus-term-filter { flex:0 1 270px; min-width:0; white-space:nowrap; }
.syllabus-switch .syllabus-term-filter select { width:200px; min-width:0; max-width:100%; }
@media (min-width:761px) {
    .faculty-topbar .ribbon-title,
    .iam-app .faculty-topbar .ribbon-title { display:flex; flex:1 1 auto; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; min-width:0; line-height:1.2; }
    .faculty-topbar .ribbon-title > :is(strong,b) { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#075b22; font-size:13px; font-weight:800; }
    .faculty-topbar .ribbon-title > span { display:block; max-width:100%; padding:0; border:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#61776a; font-size:10px; font-weight:600; }
}
@media (max-width:760px) {
    .faculty-topbar .ribbon-title,
    .iam-app .faculty-topbar .ribbon-title { display:flex; flex-direction:column; justify-content:center; gap:2px; min-width:0; }
    .faculty-topbar .ribbon-title > :is(strong,b) { display:block; font-size:12px; line-height:1.2; }
    .faculty-topbar .ribbon-title > span { display:block; padding:0; border:0; font-size:10px; line-height:1.2; }
}
@media (min-width:1401px) {
    .syllabus-topbar { display:flex; height:49px; min-height:49px; align-content:normal; row-gap:0; }
    .syllabus-topbar .syllabus-switch { width:auto; flex:1 1 auto; grid-row:auto; overflow:visible; }
    .syllabus-topbar .syllabus-switch .syllabus-picker { flex:1 1 0; }
    .syllabus-topbar .syllabus-switch .syllabus-picker select { width:100%; max-width:none; }
    .syllabus-topbar .syllabus-switch .syllabus-term-filter { flex:0 0 270px; }
    .syllabus-topbar .top-actions { width:auto; flex:0 0 auto; margin-left:auto; grid-row:auto; flex-wrap:nowrap; }
    .syllabus-topbar + .faculty-content { padding-top:78px; }
    .syllabus-topbar + .faculty-content .workflow-grid.is-guiding { top:62px; }
}
@media (min-width:761px) and (max-width:2000px) {
    .faculty-topbar .syllabus-switch .syllabus-picker { flex:1 1 0; }
    .faculty-topbar .syllabus-switch .syllabus-term-filter { flex:0 1 270px; }
}
@media (min-width:641px) and (max-width:900px) {
    .faculty-topbar .syllabus-switch .syllabus-term-filter { flex:0 1 155px; }
    .faculty-topbar .syllabus-switch .syllabus-term-filter select { width:100%; }
}
@media (max-width:640px) {
    .faculty-topbar .syllabus-switch .syllabus-term-filter { display:flex; flex:1 1 auto; }
    .faculty-topbar .syllabus-switch .syllabus-term-filter select { width:100%; }
}
.form-grid [hidden] { display:none!important; }
.topic-page-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.topic-page-links:empty { display: none; }
.topic-page-link { display: inline-flex; align-items: stretch; }
.topic-page-links a { display: inline-block; padding: 3px 7px; border: 1px solid #b8d3bf; border-radius: 4px; background: #f3faf5; color: #075b22; font-size: 11px; font-weight: 600; text-decoration: none; }
.topic-page-links a:hover, .topic-page-links a:focus-visible { border-color: #075b22; background: #e7f5eb; text-decoration: underline; }
.topic-page-link button { padding: 2px 6px; border: 1px solid #b8d3bf; border-left: 0; border-radius: 0 4px 4px 0; background: #f3faf5; color: #075b22; cursor: pointer; font-size: 11px; }
.topic-page-link a { border-radius: 4px 0 0 4px; }
.topic-page-link button:hover, .topic-page-link button:focus-visible { border-color: #075b22; background: #e7f5eb; }
.topic-page-links .topic-add-page { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 22px; margin-left: auto; border: 1px solid #b8d3bf; border-radius: 4px; background: #f3faf5; color: #075b22; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
.topic-page-links .topic-add-page:hover, .topic-page-links .topic-add-page:focus-visible { border-color: #075b22; background: #e7f5eb; }
.page-correction-dialog { width: min(430px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid #cbd8cf; border-radius: 12px; background: #fff; color: #173322; box-shadow: 0 22px 60px #102b1d38; }
.page-correction-dialog::backdrop { background: #1022198c; }
.page-correction-dialog form { padding: 22px; }
.page-correction-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-correction-heading h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.page-correction-heading button { border: 0; background: transparent; color: #5a6c60; font-size: 24px; line-height: 1; cursor: pointer; }
.page-correction-dialog p { margin: 8px 0 20px; color: #536559; overflow-wrap: anywhere; }
.page-correction-dialog label { display: block; margin-bottom: 7px; font-weight: 700; }
.page-correction-dialog label small { color: #66786c; font-weight: 400; }
.page-correction-dialog input, .page-correction-dialog select { display: block; box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #aebfb3; border-radius: 6px; background: #fff; color: #173322; font: inherit; }
.page-correction-dialog input:focus, .page-correction-dialog select:focus { outline: 2px solid #0a6529; outline-offset: 1px; }
.topic-page-add-dialog label:not(:first-of-type) { margin-top: 14px; }
.topic-page-add-dialog .topic-view-reference { display: inline-block; margin-top: 7px; color: #075b22; font-size: 12px; font-weight: 700; text-decoration: none; }
.topic-page-add-dialog .topic-view-reference:hover, .topic-page-add-dialog .topic-view-reference:focus-visible { text-decoration: underline; }
.topic-page-add-dialog .topic-view-reference[hidden] { display: none; }
.page-correction-error { margin-top: 10px; color: #aa2830; font-size: 13px; }
.page-correction-error[hidden] { display: none; }
.page-correction-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
@media (min-width: 761px) {
    .learning-plan-table { width: 100%!important; table-layout: fixed!important; }
    .learning-plan-table th, .learning-plan-table td { min-width: 0!important; max-width: none!important; }
    .learning-plan-table th:nth-child(1), .learning-plan-table td:nth-child(1),
    .learning-plan-table th:nth-child(7), .learning-plan-table td:nth-child(7) { width: 3%!important; }
    .learning-plan-table th:nth-child(2), .learning-plan-table td:nth-child(2) { width: 19%!important; }
    .learning-plan-table th:nth-child(3), .learning-plan-table td:nth-child(3) { width: 18%!important; }
    .learning-plan-table th:nth-child(4), .learning-plan-table td:nth-child(4) { width: 25%!important; }
    .learning-plan-table th:nth-child(5), .learning-plan-table td:nth-child(5) { width: 21%!important; }
    .learning-plan-table th:nth-child(6), .learning-plan-table td:nth-child(6) { width: 11%!important; }
    .learning-plan-table td:nth-child(6) .plan-week-hours,
    .learning-plan-table td:nth-child(6) .plan-week-hours label,
    .learning-plan-table td:nth-child(6) .plan-week-hours input { width: 100%!important; }
}
@media (max-width: 760px) {
    .learning-plan-table tbody td:nth-child(3)::before { content: 'Course Content / Topic'; }
    .learning-plan-table tbody td:nth-child(4)::before { content: 'Teaching Activities / Resources'; }
    .learning-plan-table tbody td:nth-child(5)::before { content: 'Assessment Tasks'; }
    .learning-plan-table tbody td:nth-child(6)::before { content: 'Time Frame / Allotment'; }
    .learning-plan-table tbody td:nth-child(7)::before { content: 'Actions'; }
}

@media (max-width: 640px) {
	.syllabus-topbar .top-actions { flex-wrap: wrap; }
	.syllabus-topbar .syllabus-progress {
		order: -1;
		flex: 1 1 100%;
		min-width: 0;
		padding: 3px 10px;
		text-align: center;
	}
	.syllabus-topbar + .faculty-content { padding-top: 146px; }
}
@media (max-width: 360px) {
	.syllabus-topbar .top-actions #logoutBtn {
		width: 40px;
		min-width: 40px;
		flex: 0 0 40px;
	}
	.syllabus-topbar .top-actions > #saveState,
	.syllabus-topbar .top-actions > #aiState { padding: 0 7px; font-size: 10px; }
}

