/* Maison Glanz Portal — scoped under .mg-portal to avoid theme bleed. */

.mg-portal {
	--c-ink: #283142;
	--c-ink-2: #4a5163;
	--c-paper: #ffffff;
	--c-cream: #fbf8f3;
	--c-cream-2: #f4ede1;
	--c-accent: #c8b1c8;
	--c-accent-2: #9a86a6;
	--c-line: rgba(40, 49, 66, .12);
	--c-line-2: rgba(40, 49, 66, .22);
	--c-error: #c8525e;
	--c-success: #7a9a7a;
	--c-warn: #c79a4a;

	--f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;

	--r-card: 18px;
	--r-pill: 999px;
	--r-tile: 14px;

	--shadow-1: 0 1px 0 rgba(40, 49, 66, .04), 0 24px 60px -28px rgba(40, 49, 66, .18);
	--shadow-2: 0 30px 60px -28px rgba(40, 49, 66, .35);

	--container: 1180px;
	--pad-x: clamp(20px, 4vw, 56px);

	font-family: var(--f-body);
	color: var(--c-ink);
	background: var(--c-cream);
	line-height: 1.5;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.mg-portal *,
.mg-portal *::before,
.mg-portal *::after { box-sizing: border-box; }

/* === Header === */
.mg-portal .mg-header {
	background: var(--c-paper);
	border-bottom: 1px solid var(--c-line);
}
.mg-portal .mg-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px var(--pad-x);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.mg-portal .mg-brand {
	font-family: var(--f-display);
	font-size: 22px;
	text-decoration: none;
	color: var(--c-ink);
	letter-spacing: .01em;
	display: inline-flex;
	gap: .35em;
	align-items: baseline;
	line-height: 1;
}
.mg-portal .mg-brand__a { font-weight: 500; }
.mg-portal .mg-brand__b { font-style: italic; color: var(--c-accent-2); }

.mg-portal .mg-header__nav {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 13px;
	color: var(--c-ink-2);
}
.mg-portal .mg-header__who em { color: var(--c-accent-2); font-style: italic; }
.mg-portal .mg-link {
	color: var(--c-ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.mg-portal .mg-link:hover { border-color: var(--c-ink); }

/* === Layout === */
.mg-portal .mg-main {
	max-width: var(--container);
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) var(--pad-x);
}
.mg-portal .mg-section + .mg-section { margin-top: 64px; }
.mg-portal .mg-section__head {
	margin-bottom: 32px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.mg-portal .mg-section__title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(22px, 2.2vw, 28px);
	margin: 0 0 18px;
	letter-spacing: -.005em;
}
.mg-portal .mg-display {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(34px, 5vw, 60px);
	letter-spacing: -.01em;
	line-height: 1.04;
	margin: 0;
}
.mg-portal .mg-kicker {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--c-ink-2);
	font-weight: 500;
}
.mg-portal .mg-lede {
	font-size: clamp(15px, 1.1vw, 17px);
	color: var(--c-ink-2);
	max-width: 56ch;
	margin: 8px 0 0;
}
.mg-portal .mg-muted { color: var(--c-ink-2); font-size: 13px; }
.mg-portal .mg-note { color: var(--c-ink-2); font-size: 12px; }
.mg-portal .mg-error { color: var(--c-error); font-size: 14px; }
.mg-portal .mg-back { display: inline-block; margin-bottom: 24px; font-size: 13px; }

.mg-portal .mg-block { margin-top: 40px; }
.mg-portal .mg-block__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

/* === Cards === */
.mg-portal .mg-card {
	background: var(--c-paper);
	border: 1px solid var(--c-line);
	border-radius: var(--r-card);
	padding: 28px;
	box-shadow: var(--shadow-1);
}
.mg-portal .mg-card--glass {
	background: rgba(255, 255, 255, .55);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border-color: rgba(255, 255, 255, .7);
}

/* === Pills / Buttons === */
.mg-portal .mg-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--r-pill);
	font-family: var(--f-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
	line-height: 1;
}
.mg-portal .mg-pill--solid {
	background: var(--c-ink);
	color: var(--c-paper);
}
.mg-portal .mg-pill--solid:hover {
	background: transparent;
	color: var(--c-ink);
	border-color: var(--c-ink);
	transform: translateY(-1px);
}
.mg-portal .mg-pill--ghost {
	background: transparent;
	color: var(--c-ink);
	border: 1px solid var(--c-line-2);
}
.mg-portal .mg-pill--ghost:hover {
	background: var(--c-ink);
	color: var(--c-paper);
	border-color: var(--c-ink);
	transform: translateY(-1px);
}
.mg-portal .mg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

/* === Forms === */
.mg-portal .mg-form { display: flex; flex-direction: column; gap: 18px; }
.mg-portal .mg-field { display: flex; flex-direction: column; gap: 6px; }
.mg-portal .mg-field--full { grid-column: 1 / -1; }
.mg-portal .mg-input {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--c-line-2);
	padding: 8px 2px 12px;
	color: var(--c-ink);
	font: 400 16px/1.4 var(--f-body);
	transition: border-color .2s ease;
	outline: none;
}
.mg-portal .mg-input:focus { border-bottom-color: var(--c-ink); }
.mg-portal .mg-input::placeholder { color: var(--c-ink-2); opacity: .55; }
.mg-portal .mg-input--area {
	min-height: 120px;
	resize: vertical;
	border: 1px solid var(--c-line);
	border-radius: 12px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, .6);
}
.mg-portal .mg-input--area:focus { border-color: var(--c-ink); background: var(--c-paper); }
.mg-portal select.mg-input {
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--c-ink-2) 50%), linear-gradient(135deg, var(--c-ink-2) 50%, transparent 50%);
	background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 28px;
}
.mg-portal .mg-form__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-top: 6px;
}

/* === Auth card === */
.mg-portal .mg-auth-card {
	max-width: 460px;
	margin: clamp(24px, 4vw, 56px) auto;
	padding: clamp(28px, 4vw, 40px);
}
.mg-portal .mg-auth-card .mg-display { margin: 8px 0 24px; font-size: clamp(28px, 4vw, 42px); }
.mg-portal .mg-auth-card .mg-form__row { margin-top: 18px; }
.mg-portal .mg-auth-card .mg-pill--solid { width: 100%; padding: 16px 22px; }

/* === Grid === */
.mg-portal .mg-grid { display: grid; gap: 24px; }
.mg-portal .mg-grid--two { grid-template-columns: repeat(2, 1fr); }
.mg-portal .mg-grid--cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
@media (max-width: 720px) {
	.mg-portal .mg-grid--two { grid-template-columns: 1fr; }
}

/* === Project card === */
.mg-portal .mg-project-card {
	text-decoration: none;
	color: var(--c-ink);
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.mg-portal .mg-project-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-2);
}
.mg-portal .mg-project-card__title { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.mg-portal .mg-project-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* === Status pill === */
.mg-portal .mg-status {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: var(--r-pill);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	border: 1px solid var(--c-line-2);
	background: transparent;
	color: var(--c-ink-2);
}
.mg-portal .mg-status--draft       { color: var(--c-ink-2); }
.mg-portal .mg-status--briefed     { color: var(--c-accent-2); border-color: var(--c-accent); }
.mg-portal .mg-status--in-production { background: var(--c-accent); color: var(--c-ink); border-color: var(--c-accent); }
.mg-portal .mg-status--delivered   { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.mg-portal .mg-status--revision-requested { color: var(--c-error); border-color: var(--c-error); }
.mg-portal .mg-status--approved    { color: var(--c-success); border-color: var(--c-success); }
.mg-portal .mg-status--closed      { color: var(--c-ink-2); opacity: .6; }

/* === Manager rows === */
.mg-portal .mg-rows {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--c-line);
	border-radius: var(--r-card);
	background: var(--c-paper);
	overflow: hidden;
}
.mg-portal .mg-row {
	display: grid;
	grid-template-columns: 2fr 1.4fr auto auto;
	gap: 14px;
	align-items: center;
	padding: 16px 20px;
	border-top: 1px solid var(--c-line);
	text-decoration: none;
	color: var(--c-ink);
	transition: background .2s ease;
}
.mg-portal .mg-row:first-child { border-top: 0; }
.mg-portal .mg-row:hover { background: var(--c-cream); }
.mg-portal .mg-row__title { font-weight: 500; }
.mg-portal .mg-row__brand { color: var(--c-ink-2); font-size: 13px; }
.mg-portal .mg-row__cta { color: var(--c-ink-2); }
@media (max-width: 720px) {
	.mg-portal .mg-row { grid-template-columns: 1fr; gap: 6px; }
}

.mg-portal .mg-mgr__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}
.mg-portal .mg-mgr__customer {
	margin-bottom: 24px;
	padding: 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* === Brief card === */
.mg-portal .mg-brief {
	padding: 24px 26px;
	font-family: var(--f-display);
	font-size: 17px;
	line-height: 1.55;
	color: var(--c-ink);
	white-space: pre-wrap;
}

/* === Gallery === */
.mg-portal .mg-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}
.mg-portal .mg-tile {
	position: relative;
	margin: 0;
	aspect-ratio: 1 / 1;
	border-radius: var(--r-tile);
	border: 1px solid var(--c-line);
	background: var(--c-cream);
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow .25s ease, transform .25s ease;
}
.mg-portal .mg-tile:hover, .mg-portal .mg-tile:focus-visible {
	box-shadow: var(--shadow-2);
	transform: translateY(-1px);
	outline: none;
}
.mg-portal .mg-tile__inner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 10px;
	background-size: cover;
	background-position: center;
}
.mg-portal .mg-tile img,
.mg-portal .mg-tile video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mg-portal .mg-tile__name {
	font-size: 11px;
	color: var(--c-paper);
	background: rgba(40, 49, 66, .65);
	padding: 4px 8px;
	border-radius: 999px;
	max-width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	position: relative;
	z-index: 2;
}
.mg-portal .mg-tile__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: var(--c-paper);
	text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
	pointer-events: none;
	z-index: 2;
}
.mg-portal .mg-tile__type {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 10px;
	letter-spacing: .14em;
	padding: 2px 8px;
	background: var(--c-ink);
	color: var(--c-paper);
	border-radius: 999px;
	z-index: 2;
}
.mg-portal .mg-tile__del {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .9);
	border: 1px solid var(--c-line-2);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: var(--c-ink);
	z-index: 3;
}
.mg-portal .mg-tile:hover .mg-tile__del,
.mg-portal .mg-tile:focus-within .mg-tile__del {
	display: flex;
}

/* === Uploader === */
.mg-portal .mg-uploader {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.mg-portal .mg-dropzone {
	display: block;
	position: relative;
	border: 2px dashed var(--c-line-2);
	border-radius: var(--r-card);
	padding: 28px;
	text-align: center;
	cursor: pointer;
	background: rgba(255, 255, 255, .5);
	transition: border-color .2s ease, background .2s ease;
}
.mg-portal .mg-dropzone:hover,
.mg-portal .mg-dropzone.is-drag {
	border-color: var(--c-ink);
	background: var(--c-paper);
}
.mg-portal .mg-dropzone__input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}
.mg-portal .mg-dropzone__hint strong {
	display: block;
	font-family: var(--f-display);
	font-size: 22px;
	font-weight: 400;
	color: var(--c-ink);
	margin-bottom: 6px;
}
.mg-portal .mg-dropzone__hint small {
	color: var(--c-ink-2);
	font-size: 13px;
}
.mg-portal .mg-uploader__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
}

/* === Revision thread === */
.mg-portal .mg-thread { margin-top: 48px; }
.mg-portal .mg-thread__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.mg-portal .mg-thread__entry {
	border: 1px solid var(--c-line);
	border-radius: var(--r-card);
	padding: 18px 22px;
	background: var(--c-paper);
}
.mg-portal .mg-thread__entry--mgr {
	background: var(--c-cream);
	border-left: 3px solid var(--c-accent);
}
.mg-portal .mg-thread__meta {
	display: flex;
	gap: 12px;
	align-items: baseline;
	margin-bottom: 8px;
}
.mg-portal .mg-thread__body p { margin: 0 0 8px; line-height: 1.55; }

/* === Flash === */
.mg-portal .mg-flash {
	max-width: var(--container);
	margin: 0 auto;
	padding: 12px var(--pad-x) 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mg-portal .mg-flash__item {
	padding: 10px 16px;
	border-radius: 12px;
	font-size: 14px;
	border: 1px solid var(--c-line);
	background: var(--c-paper);
}
.mg-portal .mg-flash__item--success { border-color: var(--c-success); color: var(--c-success); }
.mg-portal .mg-flash__item--error   { border-color: var(--c-error); color: var(--c-error); }

/* === Details === */
.mg-portal .mg-details { margin-top: 14px; }
.mg-portal .mg-details > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.mg-portal .mg-details > summary::-webkit-details-marker { display: none; }
.mg-portal .mg-details[open] > summary { margin-bottom: 14px; }

/* === Empty / error pages === */
.mg-portal .mg-empty { padding: 36px; text-align: center; color: var(--c-ink-2); }
.mg-portal .mg-error-page { text-align: center; padding: 80px 0; }
.mg-portal .mg-error-page .mg-pill { margin-top: 24px; }

/* === Footer === */
.mg-portal .mg-footer { border-top: 1px solid var(--c-line); background: var(--c-paper); }
.mg-portal .mg-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 18px var(--pad-x);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--c-ink-2);
}
.mg-portal .mg-footer__brand { font-family: var(--f-display); font-size: 14px; color: var(--c-ink); }
.mg-portal .mg-footer__brand em { font-style: italic; color: var(--c-accent-2); }

/* === Lightbox === */
.mg-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(40, 49, 66, .78);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 28px;
}
.mg-lightbox__inner {
	max-width: 92vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}
.mg-lightbox img,
.mg-lightbox video {
	max-width: 92vw;
	max-height: 80vh;
	border-radius: 10px;
	background: #000;
}
.mg-lightbox__bar {
	display: flex;
	gap: 12px;
	align-items: center;
	color: #fff;
	font-size: 13px;
}
.mg-lightbox__bar a {
	color: #fff;
	text-decoration: none;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
}
.mg-lightbox__bar button {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
}

/* =====================================================================
   v1.1 additions
   ===================================================================== */

/* ---- Status pill animations ---- */
@keyframes mg-pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: .35; transform: scale(.7); }
}
@keyframes mg-shimmer {
	0%   { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}
@keyframes mg-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(40, 49, 66, .22); }
	50%      { box-shadow: 0 0 0 7px rgba(40, 49, 66, 0); }
}
@keyframes mg-shimmer-success {
	0%, 100% { background-position: -200% 0; }
	100%     { background-position: 200% 0; }
}

.mg-portal .mg-status {
	position: relative;
}
.mg-portal .mg-status--briefed::before,
.mg-portal .mg-status--revision-requested::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	margin-right: 7px;
	vertical-align: 1px;
	background: currentColor;
	animation: mg-pulse-dot 2.4s ease-in-out infinite;
}
.mg-portal .mg-status--revision-requested::before {
	background: var(--c-error);
	animation-duration: 1.8s;
}
.mg-portal .mg-status--in-production {
	background: linear-gradient(90deg, var(--c-ink) 0%, var(--c-ink) 35%, var(--c-accent) 50%, var(--c-ink) 65%, var(--c-ink) 100%);
	background-size: 200% 100%;
	color: var(--c-paper);
	border-color: var(--c-ink);
	animation: mg-shimmer 3s linear infinite;
}
.mg-portal .mg-status--delivered {
	animation: mg-glow 2.6s ease-in-out infinite;
}
.mg-portal .mg-status--approved {
	background: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(122,154,122,.22) 50%, transparent 60%, transparent 100%);
	background-size: 200% 100%;
	animation: mg-shimmer-success 2.4s ease-in-out 2;
}

@media (prefers-reduced-motion: reduce) {
	.mg-portal .mg-status::before,
	.mg-portal .mg-status--in-production,
	.mg-portal .mg-status--delivered,
	.mg-portal .mg-status--approved {
		animation: none !important;
	}
}

/* ---- Journey bar ---- */
.mg-portal .mg-journey {
	margin: 18px 0 32px;
}
.mg-portal .mg-journey__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 0;
}
.mg-portal .mg-journey__node {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	padding-top: 6px;
	min-width: 0;
}
.mg-portal .mg-journey__node + .mg-journey__node::before {
	content: "";
	position: absolute;
	top: 14px;
	right: 50%;
	left: -50%;
	height: 1px;
	background: var(--c-line-2);
}
.mg-portal .mg-journey__node.is-done + .mg-journey__node::before,
.mg-portal .mg-journey__node.is-current + .mg-journey__node::before {
	background: var(--c-ink);
}
.mg-portal .mg-journey__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1.5px solid var(--c-line-2);
	background: var(--c-paper);
	position: relative;
	z-index: 1;
}
.mg-portal .mg-journey__node.is-done .mg-journey__dot {
	background: var(--c-ink);
	border-color: var(--c-ink);
}
.mg-portal .mg-journey__node.is-current .mg-journey__dot {
	background: var(--c-accent);
	border-color: var(--c-accent);
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-accent) 28%, transparent);
	animation: mg-pulse-dot 2s ease-in-out infinite;
}
.mg-portal .mg-journey__label {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-ink-2);
	text-align: center;
	line-height: 1.2;
}
.mg-portal .mg-journey__node.is-done .mg-journey__label,
.mg-portal .mg-journey__node.is-current .mg-journey__label {
	color: var(--c-ink);
	font-weight: 500;
}
.mg-portal .mg-journey__pip {
	position: absolute;
	top: 0;
	right: 4px;
	font-size: 13px;
	color: var(--c-error);
	background: var(--c-paper);
	border-radius: 50%;
	padding: 1px 4px;
	border: 1px solid var(--c-error);
	line-height: 1;
}
.mg-portal .mg-journey.is-closed { opacity: .6; }
.mg-portal .mg-journey.is-closed .mg-journey__dot {
	background: var(--c-ink-2);
	border-color: var(--c-ink-2);
}

@media (prefers-reduced-motion: reduce) {
	.mg-portal .mg-journey__node.is-current .mg-journey__dot { animation: none; }
}
@media (max-width: 600px) {
	.mg-portal .mg-journey__label { font-size: 9px; letter-spacing: .08em; }
}

/* ---- Combined form ---- */
.mg-portal .mg-combo {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.mg-portal .mg-combo__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mg-portal .mg-combo__title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(20px, 1.8vw, 26px);
	margin: 0;
}
.mg-portal .mg-combo__zone {
	margin-top: 4px;
}
.mg-portal .mg-combo__queue {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mg-portal .mg-combo__queue li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	background: var(--c-cream);
	border: 1px solid var(--c-line);
	border-radius: 999px;
	font-size: 12px;
	color: var(--c-ink);
	max-width: 100%;
}
.mg-portal .mg-combo__queue li img {
	width: 28px;
	height: 28px;
	object-fit: cover;
	border-radius: 999px;
	flex-shrink: 0;
}
.mg-portal .mg-combo__queue li .mg-combo__queue-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 180px;
}
.mg-portal .mg-combo__queue li .mg-combo__queue-size {
	color: var(--c-ink-2);
	font-size: 11px;
}

/* ---- Checkbox (manager delivery deliver flag) ---- */
.mg-portal .mg-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--c-ink);
	cursor: pointer;
	padding: 8px 0;
}
.mg-portal .mg-checkbox input {
	width: 18px;
	height: 18px;
	accent-color: var(--c-ink);
}

/* ---- Loading state on submit ---- */
.mg-portal .mg-pill.is-loading {
	opacity: .7;
	pointer-events: none;
	cursor: progress;
}
.mg-portal .mg-pill.is-loading::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	border: 1.5px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: mg-spin .9s linear infinite;
	vertical-align: -2px;
}
@keyframes mg-spin {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.mg-portal .mg-pill.is-loading::after { animation: none; }
}

/* ---- Badge ---- */
.mg-portal .mg-badge {
	display: inline-block;
	margin-left: 10px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-family: var(--f-body);
	font-weight: 500;
	vertical-align: middle;
}
.mg-portal .mg-badge--warn {
	background: color-mix(in oklab, var(--c-warn) 18%, transparent);
	color: var(--c-warn);
	border: 1px solid var(--c-warn);
}

/* ---- Danger pill variant ---- */
.mg-portal .mg-pill--danger {
	color: var(--c-error);
	border-color: color-mix(in oklab, var(--c-error) 50%, transparent);
}
.mg-portal .mg-pill--danger:hover {
	background: var(--c-error);
	border-color: var(--c-error);
	color: #fff;
}

.mg-portal .mg-actions--spread {
	justify-content: space-between;
}

/* ---- Manager customer page ---- */
.mg-portal .mg-mgr-customer .mg-form { margin-top: 16px; }
.mg-portal .mg-mgr-customer .mg-actions { margin-top: 18px; }

/* =====================================================================
   v1.3: items, item-actions, revise modal, anim stagger
   ===================================================================== */

/* ---- Item collapsible block ---- */
.mg-portal .mg-item-block {
	border: 1px solid var(--c-line);
	border-radius: var(--r-card);
	background: var(--c-paper);
	margin-top: 16px;
	overflow: hidden;
	transition: box-shadow .25s ease;
}
.mg-portal .mg-item-block[open] { box-shadow: var(--shadow-1); }
.mg-portal .mg-item-block > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 22px;
	background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.2));
	border-bottom: 1px solid transparent;
}
.mg-portal .mg-item-block[open] > summary { border-bottom-color: var(--c-line); }
.mg-portal .mg-item-block > summary::-webkit-details-marker { display: none; }
.mg-portal .mg-item-block__head .mg-kicker { font-weight: 500; }
.mg-portal .mg-item-block__title {
	font-family: var(--f-display);
	font-size: 18px;
	color: var(--c-ink);
}
.mg-portal .mg-item-block__toggle {
	margin-left: auto;
	color: var(--c-ink-2);
	font-size: 20px;
	transform: rotate(90deg);
	transition: transform .25s ease;
}
.mg-portal .mg-item-block[open] .mg-item-block__toggle {
	transform: rotate(270deg);
}
.mg-portal .mg-item-block__body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ---- Item like/revise actions ---- */
.mg-portal .mg-item-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 6px;
}
.mg-portal .mg-item-actions form { margin: 0; }
.mg-portal .mg-item-action {
	padding: 14px 24px;
	font-size: 13px;
}
.mg-portal .mg-item-action__icon {
	display: inline-block;
	font-size: 16px;
	margin-right: 4px;
	transform: translateY(1px);
}
.mg-portal .mg-item-action--approve {
	background: linear-gradient(135deg, #2a3243 0%, #283142 100%);
}
.mg-portal .mg-item-action--approve:hover {
	background: transparent;
	color: var(--c-ink);
	border-color: var(--c-ink);
}
.mg-portal .mg-item-action--approve:hover .mg-item-action__icon {
	color: var(--c-error);
}

/* ---- Revise modal ---- */
.mg-portal .mg-revise-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	margin: 0;
}
.mg-portal .mg-revise-modal[hidden] { display: none; }
.mg-portal .mg-revise-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(40, 49, 66, .65);
	backdrop-filter: blur(4px);
}
.mg-portal .mg-revise-modal__card {
	position: relative;
	max-width: 560px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 32px 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	z-index: 1;
}
.mg-portal .mg-revise-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 22px;
	cursor: pointer;
	color: var(--c-ink-2);
	padding: 4px 8px;
}
.mg-portal .mg-revise-modal__close:hover { color: var(--c-ink); }
.mg-portal .mg-revise-modal .mg-display { font-size: 26px; margin: 4px 0 6px; }

/* ---- Status pill desync ---- */
/* Stagger animations across siblings so two pills with the same status look
   independent (avoids the "they're both delivered" illusion). */
.mg-portal .mg-rows .mg-row:nth-child(odd) .mg-status,
.mg-portal .mg-grid--cards > *:nth-child(odd) .mg-status { animation-delay: -.6s, -.6s; }
.mg-portal .mg-rows .mg-row:nth-child(3n) .mg-status,
.mg-portal .mg-grid--cards > *:nth-child(3n) .mg-status { animation-delay: -1.3s, -1.3s; }
.mg-portal .mg-rows .mg-row:nth-child(4n) .mg-status,
.mg-portal .mg-grid--cards > *:nth-child(4n) .mg-status { animation-delay: -2.1s, -2.1s; }
.mg-portal .mg-item-block:nth-of-type(odd) .mg-status { animation-delay: -.4s; }
.mg-portal .mg-item-block:nth-of-type(3n) .mg-status { animation-delay: -1.1s; }

/* ---- Small responsive tweak ---- */
@media (max-width: 600px) {
	.mg-portal .mg-item-action { width: 100%; justify-content: center; }
}

/* =====================================================================
   Item-grid (project page) + item-card (with preview)
   ===================================================================== */
.mg-portal .mg-item-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
}
.mg-portal .mg-item-card {
	position: relative;
	color: var(--c-ink);
	background: var(--c-paper);
	border: 1px solid var(--c-line);
	border-radius: var(--r-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mg-portal .mg-item-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-2);
	border-color: var(--c-line-2);
}
/* Overlay link covers the whole card so any non-button click opens the
   item page. Sits below the download overlay (z-index 1 vs 3). */
.mg-portal .mg-item-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	text-decoration: none;
	color: inherit;
}
.mg-portal .mg-item-card__preview,
.mg-portal .mg-item-card__body { position: relative; z-index: 2; pointer-events: none; }
.mg-portal .mg-item-card__preview > *,
.mg-portal .mg-item-card__body   > * { pointer-events: auto; }
/* The preview's thumbnail (img/video) and small badges should *not* receive
   pointer events — let the underlying link catch the click instead. */
.mg-portal .mg-item-card__preview > img,
.mg-portal .mg-item-card__preview > video,
.mg-portal .mg-item-card__preview > .mg-item-card__empty-num,
.mg-portal .mg-item-card__preview > .mg-item-card__type,
.mg-portal .mg-item-card__preview > .mg-item-card__play { pointer-events: none; }
.mg-portal .mg-item-card__preview {
	margin: 0;
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--c-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid var(--c-line);
}
.mg-portal .mg-item-card.is-empty .mg-item-card__preview {
	background:
		linear-gradient(135deg, rgba(200, 177, 200, .08) 0%, transparent 50%, rgba(40, 49, 66, .04) 100%),
		var(--c-cream);
}
.mg-portal .mg-item-card__preview img,
.mg-portal .mg-item-card__preview video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mg-portal .mg-item-card__preview video {
	pointer-events: none; /* don't intercept clicks — the whole card is a link */
}
.mg-portal .mg-item-card__empty-num {
	font-family: var(--f-display);
	font-size: clamp(64px, 12vw, 96px);
	font-weight: 400;
	color: var(--c-accent);
	opacity: .55;
	line-height: 1;
	user-select: none;
	letter-spacing: -.02em;
}
.mg-portal .mg-item-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	color: #fff;
	text-shadow: 0 4px 12px rgba(0, 0, 0, .45);
	z-index: 2;
	pointer-events: none;
}
.mg-portal .mg-item-card__type {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--c-ink);
	color: var(--c-paper);
	font-size: 10px;
	letter-spacing: .14em;
	padding: 3px 8px;
	border-radius: 999px;
	z-index: 2;
}
.mg-portal .mg-item-card__body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mg-portal .mg-item-card__title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.15;
	margin: 0;
	color: var(--c-ink);
}
.mg-portal .mg-item-card .mg-status {
	align-self: flex-start;
	margin-top: 4px;
}

/* Item detail page back-link spans full project title */
.mg-portal .mg-item-page .mg-back { max-width: 100%; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stagger across item-cards (anim desync) */
.mg-portal .mg-item-grid > *:nth-child(odd) .mg-status { animation-delay: -.5s, -.5s; }
.mg-portal .mg-item-grid > *:nth-child(3n) .mg-status { animation-delay: -1.2s, -1.2s; }
.mg-portal .mg-item-grid > *:nth-child(4n) .mg-status { animation-delay: -1.9s, -1.9s; }

@media (max-width: 540px) {
	.mg-portal .mg-item-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   v1.4: full-width finals, centered actions, edit link, row package,
   message thread author label
   ===================================================================== */

/* ---- Final gallery: large single column ---- */
.mg-portal .mg-gallery--finals {
	grid-template-columns: 1fr;
	gap: 28px;
}
.mg-portal .mg-gallery--finals .mg-tile {
	aspect-ratio: 4 / 5;
	max-width: 720px;
	margin: 0 auto;
	width: 100%;
}
.mg-portal .mg-gallery--finals .mg-tile__name {
	font-size: 12px;
	padding: 6px 12px;
}

/* ---- Item action buttons centered under finals ---- */
.mg-portal .mg-item-actions {
	justify-content: center;
}

/* ---- Section head meta row (status + edit link) ---- */
.mg-portal .mg-section__head-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.mg-portal .mg-section__edit {
	font-size: 13px;
	color: var(--c-ink-2);
}
.mg-portal .mg-section__edit:hover { color: var(--c-ink); }

/* ---- Manager studio queue: package kicker before title ---- */
.mg-portal .mg-row__pkg {
	display: inline-block;
	margin-right: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(40, 49, 66, .06);
	color: var(--c-ink-2);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	vertical-align: middle;
}

/* ---- Message thread author label ---- */
.mg-portal .mg-thread__author {
	font-weight: 500;
	color: var(--c-ink);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.mg-portal .mg-thread__author--mgr { color: var(--c-accent-2); }
.mg-portal .mg-thread__author--you { color: var(--c-ink); }

/* ---- Project edit form spacing ---- */
.mg-portal .mg-project-edit .mg-form { margin-top: 12px; }

/* =====================================================================
   v1.5: tighter spacing, progress meter, half-width finals, danger zone
   ===================================================================== */

/* ---- Tighter overall rhythm ---- */
.mg-portal .mg-section + .mg-section { margin-top: 40px; }
.mg-portal .mg-section__head { margin-bottom: 22px; }
.mg-portal .mg-block { margin-top: 28px; }
.mg-portal .mg-block__head { margin-bottom: 12px; }
.mg-portal .mg-section__title { margin: 0 0 12px; font-size: clamp(20px, 2vw, 24px); }

/* ---- Brief card: shrink-to-fit, not a wall ---- */
.mg-portal .mg-brief {
	padding: 16px 20px;
	font-family: var(--f-display);
	font-size: 16px;
	line-height: 1.5;
	color: var(--c-ink);
	white-space: pre-wrap;
}
.mg-portal .mg-brief p { margin: 0 0 .5em; }
.mg-portal .mg-brief p:last-child { margin-bottom: 0; }

/* ---- Card padding: smaller default ---- */
.mg-portal .mg-card { padding: 22px; }
.mg-portal .mg-auth-card { padding: clamp(24px, 3vw, 32px); }
.mg-portal .mg-combo { gap: 14px; }

/* ---- Finals tile: half the previous max width, still centered ---- */
.mg-portal .mg-gallery--finals .mg-tile { max-width: 360px; }

/* ---- Project progress meter ---- */
.mg-portal .mg-progress {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--c-ink-2);
}
.mg-portal .mg-progress__label strong {
	color: var(--c-ink);
	font-weight: 500;
}
.mg-portal .mg-progress__suffix {
	letter-spacing: .14em;
	text-transform: uppercase;
	font-size: 10px;
	margin-left: 6px;
	color: var(--c-ink-2);
}
.mg-portal .mg-progress__bar {
	display: inline-flex;
	gap: 3px;
}
.mg-portal .mg-progress__seg {
	display: inline-block;
	width: 14px;
	height: 4px;
	border-radius: 2px;
	background: var(--c-line);
	transition: background .25s ease;
}
.mg-portal .mg-progress__seg.is-done { background: var(--c-ink); }
.mg-portal .mg-progress--compact { gap: 0; }
.mg-portal .mg-progress--compact .mg-progress__label { font-size: 12px; }

/* ---- Danger zone (project delete) ---- */
.mg-portal .mg-danger-zone {
	margin-top: 24px;
	border-color: color-mix(in oklab, var(--c-error) 25%, var(--c-line));
}
.mg-portal .mg-danger-zone[open] { padding-bottom: 22px; }
.mg-portal .mg-danger-zone__summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: baseline;
	gap: 12px;
	color: var(--c-error);
	font-size: 14px;
	user-select: none;
}
.mg-portal .mg-danger-zone__summary::-webkit-details-marker { display: none; }
.mg-portal .mg-danger-zone[open] .mg-form { margin-top: 14px; }

/* Make pill--danger viable as a primary action (solid red) */
.mg-portal .mg-pill--danger:hover { background: var(--c-error); border-color: var(--c-error); color: #fff; }

/* =====================================================================
   v1.6: block-head hint alignment
   ===================================================================== */

/* Block heads have a title on the left and a small hint (count, helper)
   on the right. Force the order so even when flex-wrap kicks in on
   narrow viewports the title (numbers/text) stays first and the hint
   reflows underneath, right-aligned. */
.mg-portal .mg-block__head {
	flex-wrap: wrap;
	gap: 8px 16px;
	width: fit-content;
	max-width: 100%;
}
.mg-portal .mg-block__head > .mg-section__title { order: 1; flex: 1 1 auto; }
.mg-portal .mg-block__head > .mg-muted,
.mg-portal .mg-block__head > .mg-block__hint {
	order: 2;
	margin-left: auto;
	text-align: right;
}

/* =====================================================================
   v1.7: chronological activity feed
   ===================================================================== */

.mg-portal .mg-feed { margin-top: 32px; }
.mg-portal .mg-feed__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.mg-portal .mg-feed__entry {
	border: 1px solid var(--c-line);
	border-radius: var(--r-card);
	padding: 16px 20px 18px;
	background: var(--c-paper);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mg-portal .mg-feed__entry--mgr {
	background: var(--c-cream);
	border-left: 3px solid var(--c-accent);
}
.mg-portal .mg-feed__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
}
.mg-portal .mg-feed__body {
	font-family: var(--f-display);
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-ink);
}
.mg-portal .mg-feed__body p { margin: 0 0 .5em; }
.mg-portal .mg-feed__body p:last-child { margin-bottom: 0; }
.mg-portal .mg-feed__files {
	margin-top: 4px;
}
.mg-portal .mg-feed__tag {
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid var(--c-line-2);
	color: var(--c-ink-2);
}
.mg-portal .mg-feed__tag--final {
	background: var(--c-ink);
	color: var(--c-paper);
	border-color: var(--c-ink);
}
.mg-portal .mg-feed__tag--ref {
	background: rgba(200, 177, 200, .15);
	color: var(--c-accent-2);
	border-color: var(--c-accent);
}
/* When a feed entry shows finals, keep the wide-tile treatment from
   .mg-gallery--finals but cap it inside the entry padding. */
.mg-portal .mg-feed__files.mg-gallery--finals .mg-tile { max-width: 320px; }

/* =====================================================================
   v1.9: "ready to download" overlay on approved item-cards
   ===================================================================== */

.mg-portal .mg-item-card__dl-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	pointer-events: none; /* let card link catch background clicks */
	background: linear-gradient(180deg,
		rgba(40, 49, 66, 0)   0%,
		rgba(40, 49, 66, .25) 55%,
		rgba(40, 49, 66, .65) 100%);
	margin: 0;
}
.mg-portal .mg-item-card__dl-overlay > * { pointer-events: auto; }

.mg-portal .mg-item-card__dl {
	font-size: 14px;
	padding: 14px 28px;
	box-shadow: 0 14px 30px -10px rgba(40, 49, 66, .45);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
/* Override the default solid pill hover (which goes transparent) — on a
   photo background a transparent button vanishes. Use the accent mauve to
   keep the action visible and premium. */
.mg-portal .mg-item-card__dl:hover,
.mg-portal .mg-item-card__dl:focus-visible {
	background: var(--c-accent);
	color: var(--c-ink);
	border-color: var(--c-accent);
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 22px 36px -10px rgba(40, 49, 66, .55);
}

/* Visual cue that this piece is "done" — accent ring around the card */
.mg-portal .mg-item-card.is-ready {
	border-color: color-mix(in oklab, var(--c-accent) 65%, var(--c-line));
}
.mg-portal .mg-item-card.is-ready:hover {
	border-color: var(--c-accent);
}

/* =====================================================================
   v2.0: assets pool, draft pending, multi-manager, last-edited
   ===================================================================== */

/* ---- Assets pool gallery ---- */
.mg-portal .mg-asset-pool .mg-asset-group {
	padding: 14px 0 22px;
	border-top: 1px solid var(--c-line);
}
.mg-portal .mg-asset-pool .mg-asset-group:first-of-type {
	border-top: 0;
	padding-top: 4px;
}
.mg-portal .mg-asset-group__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 12px;
}
.mg-portal .mg-asset-pool__form {
	margin-top: 16px;
	padding-top: 18px;
	border-top: 1px dashed var(--c-line-2);
}

/* ---- Pending (DRAFT) card on customer asset page ---- */
.mg-portal .mg-pending {
	padding: 22px 26px;
	color: var(--c-ink-2);
	border-left: 3px solid var(--c-accent);
}
.mg-portal .mg-pending p {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.55;
}

/* ---- Multi-select control ---- */
.mg-portal .mg-input--multi {
	min-height: 96px;
	padding: 6px 8px;
	background: rgba(255, 255, 255, .6);
	border: 1px solid var(--c-line);
	border-radius: 12px;
}
.mg-portal .mg-input--multi:focus {
	background: var(--c-paper);
	border-color: var(--c-ink);
}
.mg-portal .mg-input--multi option {
	padding: 6px 8px;
	border-radius: 8px;
}

/* ---- Last-edited / assigned managers ribbon ---- */
.mg-portal .mg-section__edit-meta,
.mg-portal .mg-section__assigned {
	font-size: 12px;
	margin-top: 6px;
}

/* ---- Onboarding welcome card ---- */
.mg-portal .mg-welcome {
	position: relative;
	margin-bottom: 32px;
	padding: clamp(24px, 3vw, 36px);
}
.mg-portal .mg-welcome__dismiss {
	position: absolute;
	top: 14px;
	right: 16px;
	margin: 0;
}
.mg-portal .mg-welcome__close {
	background: transparent;
	border: 0;
	color: var(--c-ink-2);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 999px;
	transition: color .2s ease, background .2s ease;
}
.mg-portal .mg-welcome__close:hover {
	color: var(--c-ink);
	background: rgba(40, 49, 66, .06);
}
.mg-portal .mg-welcome__title {
	font-size: clamp(26px, 3vw, 36px);
	margin: 8px 0 4px;
}
.mg-portal .mg-welcome__lede {
	color: var(--c-ink-2);
	margin: 0 0 18px;
	font-size: 15px;
}
.mg-portal .mg-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mg-portal .mg-checklist__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--c-ink);
	padding: 4px 0;
}
.mg-portal .mg-checklist__mark {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 13px;
	line-height: 1;
	margin-top: 1px;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.mg-portal .mg-checklist__item.is-done .mg-checklist__mark {
	background: var(--c-ink);
	color: var(--c-paper);
	border: 1px solid var(--c-ink);
}
.mg-portal .mg-checklist__item.is-open .mg-checklist__mark {
	background: transparent;
	color: var(--c-accent-2);
	border: 1px solid var(--c-accent);
	font-size: 16px;
}
.mg-portal .mg-checklist__item.is-open .mg-checklist__label {
	color: var(--c-ink-2);
}
.mg-portal .mg-checklist__item.is-done .mg-checklist__label {
	color: var(--c-ink);
}

