:root {
	--mf-blue: #315fbd;
	--mf-blue-dark: #244a96;
	--mf-board-bg: #cb6318;
	--mf-board-deep: #9f4610;
	--mf-board-soft: #b65313;
	--mf-ink: #1f2937;
	--mf-muted: #687184;
	--mf-line: #dfe3ea;
	--mf-surface: #f3f5f8;
	--mf-card: #fff;
	--mf-radius: 15px;
}

.mf-board-shell,
.mf-hub,
.mf-message {
	box-sizing: border-box;
	color: var(--mf-ink);
	font-family: inherit;
}

.mf-board-shell {
	background: var(--mf-board-bg);
	border-radius: 18px;
	display: grid;
	gap: 15px;
	grid-template-rows: auto minmax(440px, 1fr);
	margin-left: calc(50% - 50vw + 16px);
	margin-right: calc(50% - 50vw + 16px);
	max-width: none;
	min-height: 76vh;
	overflow: hidden;
	padding: clamp(16px, 2vw, 28px);
	width: calc(100vw - 32px);
}

.mf-export-lock {
	background: #fff3cd;
	border: 1px solid #e1b945;
	border-radius: 8px;
	color: #5f4708;
	font-size: 13px;
	margin: 10px 18px 0;
	padding: 9px 12px;
}

.mf-board-page {
	background: var(--mf-board-bg);
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	margin: 0;
	overflow: hidden;
}

.mf-board-page #wpadminbar {
	display: none !important;
}

.mf-board-page .mf-app-main {
	height: 100dvh;
	margin: 0;
	max-width: none;
	min-height: 100vh;
	padding: 0;
	width: 100%;
}

.mf-board-page .mf-app-main > .mf-message {
	box-shadow: 0 12px 36px rgba(91, 35, 7, 0.22);
	margin: clamp(32px, 18vh, 180px) auto;
	max-width: min(480px, calc(100vw - 40px));
}

.mf-board-page .mf-board-shell {
	border-radius: 0;
	box-sizing: border-box;
	grid-template-rows: max-content minmax(0, 1fr);
	height: 100dvh;
	margin: 0;
	min-height: 100vh;
	padding: clamp(7px, 0.85vw, 13px) clamp(14px, 1.7vw, 26px) clamp(14px, 1.7vw, 26px);
	width: 100%;
}

.mf-board-page .mf-board-shell--locked {
	grid-template-rows: max-content max-content minmax(0, 1fr);
}

.mf-board-shell .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

.mf-board-header {
	align-items: start;
	color: #fff;
	display: grid;
	gap: 28px;
	grid-template-areas: "title side";
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 0;
	min-height: 66px;
}

.mf-board-title {
	grid-area: title;
	min-width: 0;
	overflow: visible;
}

.mf-board-header h1 {
	color: #fff;
	font-size: clamp(1.55rem, 2.4vw, 2.35rem);
	font-weight: 780;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 4px 0 0;
	padding-bottom: 0.06em;
}

.mf-assignment-description {
	align-items: center;
	color: rgba(255, 255, 255, 0.8);
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 600;
	gap: 0.38rem;
	margin-top: 4px;
	min-height: 30px;
	padding: 2px 3px;
	text-decoration: none;
}

.mf-assignment-description svg {
	fill: none;
	flex: 0 0 auto;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 17px;
}

.mf-assignment-description:hover,
.mf-assignment-description:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.mf-assignment-description:focus-visible {
	border-radius: 3px;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.mf-subscription {
	align-items: center;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.78rem;
	font-weight: 650;
	gap: 6px;
	line-height: 1.25;
}

.mf-subscription input {
	accent-color: var(--mf-blue);
	cursor: pointer;
	flex: 0 0 auto;
	height: 16px;
	margin: 0;
	width: 16px;
}

.mf-subscription input:disabled {
	cursor: wait;
}

.mf-subscription small {
	font-size: 0.7rem;
	font-weight: 500;
	min-height: 0.9em;
}

.mf-subscription--board {
	color: rgba(255, 255, 255, 0.72);
	font-weight: 500;
	margin-top: 5px;
}

.mf-subscription--board small {
	color: rgba(255, 255, 255, 0.72);
}

.mf-subscription--header {
	justify-content: flex-end;
	justify-self: end;
	max-width: min(100%, 330px);
	text-align: right;
}

.mf-eyebrow {
	color: var(--mf-blue);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.mf-board-header .mf-eyebrow {
	color: rgba(255, 255, 255, 0.78);
	letter-spacing: 0.045em;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: none;
	white-space: nowrap;
}

.mf-board-header .mf-eyebrow b {
	color: rgba(255, 255, 255, 0.54);
	font-weight: 500;
	margin: 0 0.35em;
}

.mf-assignment-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mf-header-actions {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-self: end;
}

.mf-header-side {
	display: grid;
	gap: 4px;
	grid-area: side;
	justify-items: end;
}

.mf-header-side > .mf-user-name {
	font-size: 0.88rem;
	max-width: 320px;
}

.mf-user-actions {
	display: grid;
	flex: 0 0 auto;
	gap: 3px;
	justify-items: end;
}

.mf-user-actions__controls {
	align-items: center;
	display: flex;
	gap: 8px;
}

.mf-user-name {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.72rem;
	font-weight: 650;
	line-height: 1.15;
	max-width: 180px;
	overflow: hidden;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mf-logout {
	align-items: center;
	background: rgba(116, 44, 6, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 50%;
	box-sizing: border-box;
	color: #fff;
	display: inline-flex;
	flex: 0 0 38px;
	height: 38px;
	justify-content: center;
	transition: background 0.15s ease, border-color 0.15s ease;
	width: 38px;
}

.mf-logout:hover,
.mf-logout:focus-visible {
	background: rgba(116, 44, 6, 0.5);
	border-color: rgba(255, 255, 255, 0.75);
	color: #fff;
}

.mf-logout svg {
	fill: none;
	height: 19px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 19px;
}

.mf-admin-link {
	align-items: center;
	background: rgba(116, 44, 6, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 20px;
	box-sizing: border-box;
	color: #fff;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 7px;
	height: 38px;
	padding: 0 13px;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.mf-admin-link:hover,
.mf-admin-link:focus-visible {
	background: rgba(116, 44, 6, 0.5);
	border-color: rgba(255, 255, 255, 0.75);
	color: #fff;
}

.mf-admin-link svg {
	fill: none;
	height: 17px;
	stroke: currentColor;
	stroke-width: 1.7;
	width: 17px;
}

.mf-assignment-nav a {
	background: rgba(116, 44, 6, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 700;
	padding: 8px 13px;
	text-decoration: none;
}

.mf-assignment-nav a:hover,
.mf-assignment-nav a:focus {
	background: rgba(116, 44, 6, 0.48);
	border-color: rgba(255, 255, 255, 0.72);
	color: #fff;
}

.mf-assignment-nav a.is-current {
	background: #fff;
	border-color: #fff;
	color: #8e3a0d;
}

.mf-board {
	background: transparent;
	box-sizing: border-box;
	height: 100%;
	min-height: 0;
	overflow: auto;
	padding: 0 3px 12px 0;
	scrollbar-color: rgba(91, 35, 7, 0.58) rgba(255, 255, 255, 0.18);
	scrollbar-width: auto;
}

.mf-board::-webkit-scrollbar {
	height: 12px;
	width: 12px;
}

.mf-board::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.17);
	border-radius: 999px;
}

.mf-board::-webkit-scrollbar-thumb {
	background: rgba(91, 35, 7, 0.58);
	border: 2px solid transparent;
	background-clip: padding-box;
	border-radius: 999px;
}

.mf-board--columns {
	align-items: stretch;
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
}

.mf-board--wall {
	display: block;
}

.mf-column {
	box-sizing: border-box;
}

.mf-board--columns .mf-column {
	display: flex;
	flex: 0 0 min(380px, calc(100vw - 36px));
	flex-direction: column;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	width: min(380px, calc(100vw - 36px));
}

.mf-board--columns .mf-column__sticky {
	flex: 0 0 auto;
	position: static;
}

.mf-board--columns .mf-cards {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	padding-right: 3px;
	scrollbar-color: rgba(91, 35, 7, 0.58) rgba(255, 255, 255, 0.18);
	scrollbar-width: auto;
}

.mf-board--columns .mf-card,
.mf-board--columns .mf-empty,
.mf-board--columns .mf-limit {
	flex: 0 0 auto;
}

.mf-board--columns .mf-cards::-webkit-scrollbar {
	width: 12px;
}

.mf-board--columns .mf-cards::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.17);
	border-radius: 999px;
}

.mf-board--columns .mf-cards::-webkit-scrollbar-thumb {
	background: rgba(91, 35, 7, 0.58);
	background-clip: padding-box;
	border: 2px solid transparent;
	border-radius: 999px;
}

.mf-column__sticky {
	background: var(--mf-board-bg);
	padding-bottom: 12px;
	position: sticky;
	top: 0;
	z-index: 4;
}

.mf-column__header {
	align-items: flex-start;
	background: var(--mf-board-soft);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: var(--mf-radius);
	box-shadow: 0 5px 18px rgba(91, 35, 7, 0.16);
	box-sizing: border-box;
	color: #fff;
	display: flex;
	height: 124px;
	justify-content: flex-start;
	overflow: hidden;
	padding: 17px 18px;
}

.mf-column__header h2 {
	color: #fff;
	font-size: clamp(1.12rem, 1.4vw, 1.35rem);
	font-weight: 760;
	line-height: 1.28;
	max-height: 100%;
	margin: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
	width: 100%;
}

.mf-column__header h2.is-truncated {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	display: -webkit-box;
}

.mf-add,
.mf-button {
	align-items: center;
	background: var(--mf-board-deep);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	color: #fff !important;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	padding: 11px 14px;
	text-decoration: none !important;
	white-space: nowrap;
}

.mf-add {
	display: flex;
	gap: 7px;
	justify-content: center;
	margin-top: 8px;
	min-height: 48px;
	width: 100%;
}

.mf-add span {
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1;
}

.mf-add:hover,
.mf-add:focus,
.mf-button:hover,
.mf-button:focus {
	background: #fff;
	border-color: #fff;
	color: #873608 !important;
}

.mf-board--wall .mf-column {
	width: 100%;
}

.mf-board--wall .mf-column__sticky {
	max-width: 380px;
}

.mf-cards {
	display: grid;
	gap: 14px;
}

.mf-board--wall .mf-cards {
	align-items: start;
	grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
	padding-right: 4px;
}

.mf-card {
	background: var(--mf-card);
	border: 1px solid rgba(82, 36, 11, 0.1);
	border-radius: var(--mf-radius);
	box-shadow: 0 7px 22px rgba(91, 35, 7, 0.17);
	overflow: hidden;
	position: relative;
	transform: translateY(0);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.mf-card:hover,
.mf-card:focus-within {
	box-shadow: 0 11px 28px rgba(74, 27, 4, 0.25);
	transform: translateY(-2px);
}

.mf-card__open {
	inset: 0;
	position: absolute;
	z-index: 2;
}

.mf-card__open:focus-visible {
	border-radius: var(--mf-radius);
	box-shadow: inset 0 0 0 4px #315fbd;
	outline: 0;
}

.mf-card__image {
	aspect-ratio: 16 / 10;
	background: #f0f1f3;
	display: block;
	height: min(270px, 36vh);
	object-fit: cover;
	width: 100%;
}

.mf-card__body {
	padding: 17px;
}

.mf-card h3 {
	color: var(--mf-ink);
	font-size: 1.06rem;
	font-weight: 760;
	line-height: 1.32;
	margin: 0 0 9px;
	overflow-wrap: anywhere;
}

.mf-card__excerpt {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	color: #4b5563;
	display: -webkit-box;
	font-size: 0.91rem;
	line-height: 1.5;
	margin: 0 0 13px;
	overflow: hidden;
}

.mf-card footer {
	align-items: center;
	border-top: 1px solid #edf0f4;
	color: var(--mf-muted);
	display: flex;
	font-size: 0.76rem;
	gap: 8px;
	justify-content: space-between;
	margin-top: 13px;
	padding-top: 12px;
}

.mf-card__meta {
	display: block;
	min-width: 0;
}

.mf-card__meta b,
.mf-post-meta b {
	color: #a0a7b2;
	font-weight: 400;
	padding: 0 0.2em;
}

.mf-card__replies {
	align-items: center;
	color: var(--mf-blue);
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 750;
	gap: 3px;
	white-space: nowrap;
}

.mf-card__replies > svg {
	fill: none;
	height: 1.05rem;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 1.05rem;
}

.mf-files {
	display: grid;
	gap: 7px;
	margin: 12px 0 0;
}

.mf-file-tile {
	align-items: center;
	background: #f3f4f6;
	border: 1px solid #e2e5e9;
	border-radius: 9px;
	display: grid;
	gap: 9px;
	grid-template-columns: auto minmax(0, 1fr);
	padding: 9px;
}

.mf-file-tile span {
	background: var(--mf-board-bg);
	border-radius: 6px;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	padding: 5px 7px;
}

.mf-file-tile strong {
	color: #454c58;
	font-size: 0.78rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mf-empty,
.mf-limit {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.88rem;
	margin: 8px 4px;
}

.mf-hub__grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	margin-top: 12px;
}

.mf-hub__item {
	background: #fff;
	border: 1px solid var(--mf-line);
	border-radius: var(--mf-radius);
	box-shadow: 0 3px 14px rgba(31, 41, 55, 0.06);
	color: var(--mf-ink);
	display: grid;
	gap: 5px;
	padding: 18px;
	text-decoration: none;
}

.mf-hub__item:hover,
.mf-hub__item:focus {
	border-color: var(--mf-blue);
	transform: translateY(-1px);
}

.mf-hub__number {
	align-items: center;
	background: var(--mf-blue);
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 800;
	height: 28px;
	justify-content: center;
	margin-bottom: 5px;
	width: 28px;
}

.mf-hub__item small {
	color: var(--mf-muted);
}

.mf-message {
	background: #f7f8fa;
	border: 1px solid var(--mf-line);
	border-left: 5px solid var(--mf-blue);
	border-radius: 8px;
	margin: 20px 0;
	padding: 16px 18px;
}

.mf-message p {
	margin: 0 0 10px;
}

.mf-message p:last-child {
	margin-bottom: 0;
}

.mf-message--error {
	border-left-color: #b42318;
}

.mf-message--warning {
	border-left-color: #b7791f;
}

html.mf-modal-open,
html.mf-modal-open body {
	overflow: hidden;
}

.mf-modal[hidden] {
	display: none !important;
}

.mf-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 99990;
}

.mf-modal--editor {
	z-index: 100000;
}

.mf-modal__backdrop {
	background: rgba(15, 23, 42, 0.68);
	border: 0;
	cursor: default;
	inset: 0;
	position: absolute;
}

.mf-modal__dialog {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
	box-sizing: border-box;
	max-height: calc(100vh - 48px);
	overflow: auto;
	position: relative;
	width: min(920px, 100%);
}

.mf-modal__dialog--editor {
	width: min(860px, 100%);
}

.mf-modal__topbar {
	align-items: center;
	background: rgba(255, 255, 255, 0.96);
	display: flex;
	justify-content: flex-end;
	padding: 12px 16px 0;
	position: sticky;
	top: 0;
	z-index: 4;
}

.mf-modal__close {
	align-items: center;
	background: #eef1f5;
	border: 0;
	border-radius: 50%;
	color: #313844;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 1rem;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 40px;
}

.mf-modal__close:hover,
.mf-modal__close:focus {
	background: #dfe4eb;
}

.mf-modal__content {
	min-height: 280px;
}

.mf-loading {
	color: var(--mf-muted);
	padding: 70px 28px;
	text-align: center;
}

.mf-topic-detail__header {
	align-items: flex-start;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: 8px 30px 20px;
}

.mf-topic-detail__header h2 {
	font-size: clamp(1.45rem, 3vw, 2.05rem);
	line-height: 1.2;
	margin: 0 0 8px;
}

.mf-post-meta {
	color: var(--mf-muted);
	font-size: 0.82rem;
	margin: 0;
}

.mf-topic-lead {
	border-bottom: 1px solid var(--mf-line);
	padding: 0 30px 28px;
}

.mf-post-content__text {
	color: #252b35;
	font-size: 16px;
	line-height: 1.6;
}

.mf-post-content__text > :first-child {
	margin-top: 0;
}

.mf-post-content__text > :last-child {
	margin-bottom: 0;
}

.mf-post-content font[size="1"],
.mf-richtext font[size="1"] {
	font-size: 13px;
}

.mf-post-content font[size="3"],
.mf-richtext font[size="3"] {
	font-size: 16px;
}

.mf-post-content font[size="5"],
.mf-richtext font[size="5"] {
	font-size: 22px;
}

.mf-post-content font[size="7"],
.mf-richtext font[size="7"] {
	font-size: 30px;
}

.mf-post-content ul,
.mf-post-content ol,
.mf-richtext ul,
.mf-richtext ol {
	margin: 0.7em 0;
	padding-left: 1.7em;
}

.mf-post-content a {
	color: var(--mf-blue);
	text-decoration: underline;
}

.mf-post-attachments {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.mf-post-image {
	background: #f3f5f7;
	border-radius: 12px;
	display: block;
	overflow: hidden;
}

.mf-post-image img {
	display: block;
	height: auto;
	max-height: 580px;
	object-fit: contain;
	width: 100%;
}

.mf-post-file {
	align-items: center;
	background: #f2f5fa;
	border: 1px solid #e0e5ed;
	border-radius: 10px;
	color: var(--mf-blue);
	display: grid;
	gap: 2px 9px;
	grid-template-columns: auto 1fr;
	padding: 11px 13px;
	text-decoration: none;
}

.mf-post-file span {
	font-size: 1.25rem;
	grid-row: span 2;
}

.mf-post-file small {
	color: var(--mf-muted);
}

.mf-replies {
	background: #f7f8fa;
	padding: 26px 30px 30px;
}

.mf-replies > h3 {
	font-size: 1.05rem;
	margin: 0 0 14px;
}

.mf-replies__list {
	display: grid;
	gap: 12px;
}

.mf-reply {
	background: #fff;
	border: 1px solid #e1e5eb;
	border-radius: 12px;
	padding: 16px 18px;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.mf-reply.is-highlighted {
	border-color: var(--mf-blue);
	box-shadow: 0 0 0 4px rgba(49, 95, 189, 0.13);
}

.mf-reply > header {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 12px;
}

.mf-content-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mf-content-actions button {
	background: transparent;
	border: 1px solid #d6dae1;
	border-radius: 7px;
	color: #4b5563;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.75rem;
	padding: 5px 8px;
}

.mf-content-actions button:hover,
.mf-content-actions button:focus {
	border-color: var(--mf-blue);
	color: var(--mf-blue);
}

.mf-content-actions button.mf-danger:hover,
.mf-content-actions button.mf-danger:focus {
	border-color: #b42318;
	color: #b42318;
}

.mf-pending {
	background: #fff7d6;
	border: 1px solid #e9cf67;
	border-radius: 8px;
	color: #6d5100;
	font-size: 0.82rem;
	margin: 0 30px 18px;
	padding: 9px 11px;
}

.mf-reply .mf-pending {
	margin: 0 0 12px;
}

.mf-topic-detail__footer {
	align-items: center;
	background: #fff;
	border-top: 1px solid var(--mf-line);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 18px 30px;
	position: sticky;
	bottom: 0;
}

.mf-topic-detail__footer-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}

.mf-subscription--topic {
	color: #3d4654;
}

.mf-subscription--topic small {
	color: var(--mf-muted);
}

.mf-topic-detail__footer p {
	color: var(--mf-muted);
	font-size: 0.75rem;
	margin: 0;
	text-align: right;
}

.mf-primary,
.mf-secondary,
.mf-publish {
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	font-family: inherit;
	font-weight: 750;
	padding: 10px 15px;
}

.mf-primary,
.mf-publish {
	background: var(--mf-blue);
	color: #fff;
}

.mf-primary:hover,
.mf-primary:focus,
.mf-publish:hover,
.mf-publish:focus {
	background: var(--mf-blue-dark);
}

.mf-secondary {
	background: #e9edf2;
	color: #303744;
}

.mf-primary:disabled,
.mf-publish:disabled {
	background: #c8cdd5;
	cursor: not-allowed;
}

.mf-editor__header {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid var(--mf-line);
	display: grid;
	gap: 14px;
	grid-template-columns: 42px 1fr auto;
	padding: 14px 20px;
	position: sticky;
	top: 0;
	z-index: 5;
}

.mf-editor__header h2 {
	font-size: 1.2rem;
	margin: 0;
	text-align: center;
}

.mf-editor__main {
	padding: 24px;
}

.mf-editor__destination {
	color: var(--mf-blue);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.mf-editor__title {
	display: grid;
	gap: 6px;
	margin-bottom: 16px;
}

.mf-editor__title[hidden] {
	display: none;
}

.mf-editor__title span {
	font-size: 0.83rem;
	font-weight: 700;
}

.mf-editor__title em {
	color: #b42318;
}

.mf-editor__title input {
	background: #fff;
	border: 1px solid #cdd3dc;
	border-radius: 9px;
	box-sizing: border-box;
	color: var(--mf-ink);
	font: inherit;
	font-size: 1.05rem;
	padding: 12px 13px;
	width: 100%;
}

.mf-editor__title input:focus,
.mf-richtext:focus {
	border-color: var(--mf-blue);
	box-shadow: 0 0 0 3px rgba(49, 95, 189, 0.12);
	outline: 0;
}

.mf-toolbar {
	align-items: center;
	background: #f4f6f9;
	border: 1px solid #dfe3ea;
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 8px;
}

.mf-toolbar button,
.mf-toolbar select {
	background: #fff;
	border: 1px solid #d7dce4;
	border-radius: 6px;
	box-sizing: border-box;
	color: #2e3440;
	font-family: inherit;
	font-size: 0.82rem;
	height: 32px;
	padding: 4px 8px;
}

.mf-toolbar button {
	cursor: pointer;
}

.mf-toolbar button:hover,
.mf-toolbar button:focus,
.mf-toolbar select:focus {
	border-color: var(--mf-blue);
	outline: 0;
}

.mf-toolbar__separator {
	color: #a6adb8;
	padding: 0 2px;
}

.mf-colors {
	display: flex;
	gap: 5px;
}

.mf-toolbar button.mf-color {
	background: var(--mf-choice);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #b7bec9;
	height: 24px;
	margin: 4px 1px;
	padding: 0;
	width: 24px;
}

.mf-richtext {
	background: #fff;
	border: 1px solid #dfe3ea;
	border-radius: 0 0 10px 10px;
	box-sizing: border-box;
	color: #252b35;
	font-size: 16px;
	line-height: 1.55;
	min-height: 220px;
	padding: 14px;
}

.mf-richtext:empty::before {
	color: #969eaa;
	content: attr(data-placeholder);
	pointer-events: none;
}

.mf-upload-tools {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 15px;
}

.mf-upload-tools small {
	color: var(--mf-muted);
}

.mf-upload-button {
	align-items: center;
	background: #eef2f7;
	border: 1px solid #d7dce4;
	border-radius: 9px;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 700;
	gap: 6px;
	padding: 9px 11px;
}

.mf-upload-button:has(input:disabled) {
	cursor: not-allowed;
	opacity: 0.45;
}

.mf-upload-button input {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.mf-upload-preview {
	margin-top: 12px;
}

.mf-upload-preview__item {
	align-items: center;
	background: #f5f7fa;
	border: 1px solid #dfe3ea;
	border-radius: 10px;
	display: grid;
	gap: 10px;
	grid-template-columns: auto 1fr auto;
	padding: 9px;
}

.mf-upload-preview__item img {
	border-radius: 7px;
	height: 54px;
	object-fit: cover;
	width: 70px;
}

.mf-upload-preview__item strong {
	font-size: 0.84rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mf-upload-preview__item button {
	background: transparent;
	border: 0;
	color: #a1281f;
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
}

.mf-existing-attachment {
	background: #edf5e4;
	border-radius: 8px;
	color: #405d18;
	font-size: 0.82rem;
	margin: 12px 0 0;
	padding: 9px 11px;
}

.mf-editor__error {
	background: #fff0ef;
	border: 1px solid #e7b8b3;
	border-radius: 8px;
	color: #8e1f17;
	font-size: 0.84rem;
	margin: 12px 0 0;
	padding: 10px 11px;
}

.mf-editor__footer {
	display: none;
}

.mf-portal-page {
	background: var(--mf-board-bg);
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	margin: 0;
	min-height: 100vh;
}

.mf-portal-page #wpadminbar {
	display: none !important;
}

.mf-portal-page .mf-app-main {
	min-height: 100dvh;
	width: 100%;
}

.mf-portal {
	background:
		radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.08), transparent 32%),
		var(--mf-board-bg);
	box-sizing: border-box;
	color: #fff;
	display: grid;
	font-family: inherit;
	grid-template-rows: auto minmax(0, 1fr);
	min-height: 100dvh;
	padding: clamp(18px, 3vw, 42px);
}

.mf-portal__identity {
	display: grid;
	gap: 3px;
	grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
	justify-items: center;
	position: relative;
	text-align: center;
}

.mf-portal__identity strong {
	font-size: clamp(1rem, 1.5vw, 1.28rem);
	grid-column: 2;
	line-height: 1.2;
}

.mf-portal__identity > a:not(.mf-logout) {
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.82rem;
	grid-column: 2;
	text-decoration: none;
}

.mf-portal__identity > a:not(.mf-logout):hover,
.mf-portal__identity > a:not(.mf-logout):focus-visible {
	color: #fff;
	text-decoration: underline;
}

.mf-portal__identity .mf-user-actions {
	grid-column: 3;
	grid-row: 1 / span 2;
	justify-self: end;
}

.mf-login-card,
.mf-portal__content,
.mf-portal__message {
	align-self: center;
	justify-self: center;
}

.mf-login-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 56px rgba(83, 31, 5, 0.24);
	box-sizing: border-box;
	color: var(--mf-ink);
	margin: 34px 0;
	max-width: 440px;
	padding: clamp(24px, 4vw, 38px);
	width: min(100%, 440px);
}

.mf-login-card h1,
.mf-portal__heading h1,
.mf-portal__message h1 {
	font-weight: 780;
	letter-spacing: -0.025em;
	line-height: 1.08;
	margin: 0;
}

.mf-login-card__lead {
	color: var(--mf-muted);
	line-height: 1.45;
	margin: 10px 0 24px;
}

.mf-login-form {
	display: grid;
	gap: 15px;
}

.mf-login-form > label:not(.mf-login-form__remember) {
	display: grid;
	font-weight: 700;
	gap: 6px;
}

.mf-login-form input[type="text"],
.mf-login-form input[type="password"] {
	background: #fff;
	border: 1px solid #cbd1da;
	border-radius: 9px;
	box-sizing: border-box;
	font: inherit;
	min-height: 46px;
	padding: 9px 11px;
	width: 100%;
}

.mf-login-form input:focus {
	border-color: var(--mf-blue);
	box-shadow: 0 0 0 3px rgba(49, 95, 189, 0.15);
	outline: 0;
}

.mf-login-form__remember {
	align-items: center;
	color: #4f5868;
	display: flex;
	font-size: 0.9rem;
	gap: 7px;
}

.mf-login-form button {
	background: var(--mf-blue);
	border: 0;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 750;
	min-height: 46px;
	padding: 10px 16px;
}

.mf-login-form button:hover,
.mf-login-form button:focus-visible {
	background: var(--mf-blue-dark);
}

.mf-login-card__lost {
	color: var(--mf-blue);
	display: inline-block;
	font-size: 0.88rem;
	margin-top: 18px;
}

.mf-login-notice {
	border: 1px solid #b9d7c0;
	border-radius: 9px;
	font-size: 0.9rem;
	line-height: 1.45;
	margin: -8px 0 20px;
	padding: 11px 12px;
}

.mf-login-notice--success {
	background: #edf8f0;
	color: #1e6334;
}

.mf-portal-notice {
	box-sizing: border-box;
	margin: 0 auto 22px;
	max-width: 720px;
	text-align: center;
}

.mf-login-card .mf-portal-notice {
	margin: -8px 0 20px;
}

.mf-portal__message .mf-portal-notice {
	margin: 0 0 20px;
}

.mf-portal__message.mf-portal__message--unsubscribe {
	max-width: 640px;
}

.mf-portal-login-link {
	display: inline-block;
	font-size: 0.86rem;
}

.mf-login-error {
	background: #fff0ef;
	border: 1px solid #e7b8b3;
	border-radius: 8px;
	color: #8e1f17;
	font-size: 0.88rem;
	padding: 10px 11px;
}

.mf-portal__content {
	box-sizing: border-box;
	max-width: 1120px;
	padding: 38px 0;
	width: 100%;
}

.mf-portal__heading {
	margin-bottom: 24px;
	text-align: center;
}

.mf-portal__heading p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.mf-portal__heading h1 {
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.7rem);
}

.mf-portal-assignments {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.mf-portal-assignment-item {
	display: grid;
	flex: 0 1 calc((100% - 32px) / 3);
	gap: 8px;
	grid-template-rows: 1fr auto;
	min-width: 0;
}

.mf-portal-forum-link {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.82rem;
	font-weight: 700;
	justify-self: center;
	text-underline-offset: 3px;
}

.mf-portal-forum-link:hover,
.mf-portal-forum-link:focus-visible {
	color: #fff;
}

.mf-portal-assignment {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 15px;
	box-shadow: 0 12px 30px rgba(83, 31, 5, 0.16);
	color: var(--mf-ink);
	display: flex;
	gap: 13px;
	min-height: 72px;
	padding: 13px 16px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mf-portal-assignment:hover,
.mf-portal-assignment:focus-visible {
	box-shadow: 0 17px 38px rgba(83, 31, 5, 0.25);
	color: var(--mf-blue-dark);
	transform: translateY(-2px);
}

.mf-portal-assignment span {
	align-items: center;
	background: var(--mf-blue);
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	flex: 0 0 39px;
	font-size: 0.88rem;
	font-weight: 800;
	height: 39px;
	justify-content: center;
}

.mf-portal-assignment strong {
	font-size: 1.02rem;
	line-height: 1.25;
}

.mf-portal-matrix {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-portal-group {
	background: rgba(122, 44, 7, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 18px;
	padding: 16px;
}

.mf-portal-group h2 {
	color: #fff;
	font-size: 1rem;
	margin: 0 0 13px;
	text-align: center;
}

.mf-portal-group__buttons {
	display: grid;
	gap: 11px;
}

.mf-portal-group .mf-portal-assignment {
	min-height: 62px;
}

.mf-portal__message {
	background: #fff;
	border-radius: 17px;
	box-shadow: 0 18px 48px rgba(83, 31, 5, 0.22);
	box-sizing: border-box;
	color: var(--mf-ink);
	margin: 32px 0;
	max-width: 560px;
	padding: 30px;
	text-align: center;
	width: min(100%, 560px);
}

.mf-portal__message p {
	color: var(--mf-muted);
	line-height: 1.5;
	margin: 13px 0 0;
}

.mf-portal__message a {
	color: var(--mf-blue);
}

.mf-portal__message-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 22px;
}

.mf-portal__message .mf-portal-button {
	background: var(--mf-blue);
	border: 1px solid var(--mf-blue);
	border-radius: 10px;
	color: #fff;
	font-weight: 750;
	padding: 10px 15px;
	text-decoration: none;
}

.mf-portal__message .mf-portal-button:hover,
.mf-portal__message .mf-portal-button:focus-visible {
	background: var(--mf-blue-dark);
	border-color: var(--mf-blue-dark);
	color: #fff;
}

.mf-portal__message .mf-portal-button--secondary {
	background: #fff;
	border-color: #cbd1da;
	color: var(--mf-ink);
}

.mf-portal__message .mf-portal-button--secondary:hover,
.mf-portal__message .mf-portal-button--secondary:focus-visible {
	background: #f3f5f8;
	border-color: #9da6b4;
	color: var(--mf-ink);
}

@media (max-width: 700px) {
	.mf-board-page .mf-board-shell {
		gap: 11px;
		padding: 6px 12px 12px;
	}

	.mf-board-header {
		align-items: start;
		gap: 8px;
		grid-template-areas:
			"title"
			"side";
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.mf-board-header h1 {
		font-size: 1.45rem;
	}

	.mf-header-actions {
		flex-wrap: wrap;
		justify-content: flex-end;
		justify-self: end;
		min-width: 0;
		width: 100%;
	}

	.mf-header-side {
		justify-items: end;
		width: 100%;
	}

	.mf-header-side > .mf-user-name {
		max-width: 120px;
	}

	.mf-assignment-nav {
		flex: 0 1 auto;
		flex-wrap: wrap;
		justify-content: flex-end;
		overflow: visible;
		padding-bottom: 0;
	}

	.mf-assignment-nav a {
		flex: 0 0 auto;
		font-size: 0.8rem;
		padding: 7px 11px;
	}

	.mf-portal {
		padding: 15px;
	}

	.mf-portal__identity {
		grid-template-columns: minmax(38px, 1fr) auto minmax(38px, 1fr);
	}

	.mf-portal__identity strong {
		font-size: 0.92rem;
	}

	.mf-admin-link {
		border-radius: 50%;
		justify-content: center;
		padding: 0;
		width: 38px;
	}

	.mf-admin-link span {
		display: none;
	}

	.mf-portal-matrix {
		grid-template-columns: 1fr;
	}

	.mf-portal-assignment-item {
		flex-basis: 100%;
	}

	.mf-portal__content {
		padding: 26px 0 12px;
	}

	.mf-board--columns {
		gap: 14px;
	}

	.mf-board--columns .mf-column {
		flex-basis: calc(100vw - 27px);
		width: calc(100vw - 27px);
	}

	.mf-column__header {
		height: 102px;
		padding: 14px 15px;
	}

	.mf-column__header h2.is-truncated {
		-webkit-line-clamp: 4;
	}

	.mf-add {
		min-height: 44px;
	}

	.mf-board--wall .mf-column__sticky {
		max-width: none;
	}

	.mf-board--wall .mf-cards {
		grid-template-columns: 1fr;
	}

	.mf-modal {
		padding: 0;
	}

	.mf-modal__dialog {
		border-radius: 0;
		height: 100vh;
		max-height: 100vh;
		width: 100%;
	}

	.mf-topic-detail__header,
	.mf-topic-lead,
	.mf-replies,
	.mf-topic-detail__footer {
		padding-left: 18px;
		padding-right: 18px;
	}

	.mf-topic-detail__header,
	.mf-reply > header,
	.mf-topic-detail__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.mf-topic-detail__footer p {
		text-align: left;
	}

	.mf-topic-detail__footer-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.mf-pending {
		margin-left: 18px;
		margin-right: 18px;
	}

	.mf-editor__header {
		padding: 11px 13px;
	}

	.mf-editor__header h2 {
		font-size: 1rem;
	}

	.mf-editor__main {
		padding: 16px;
	}

	.mf-editor__footer {
		background: #fff;
		border-top: 1px solid var(--mf-line);
		display: flex;
		gap: 10px;
		justify-content: flex-end;
		padding: 12px 16px;
		position: sticky;
		bottom: 0;
	}

	.mf-editor__header .mf-publish {
		display: none;
	}

	.mf-toolbar {
		flex-wrap: nowrap;
		overflow-x: auto;
	}

	.mf-toolbar > * {
		flex: 0 0 auto;
	}

	.mf-richtext {
		min-height: 240px;
	}
}
