.mgl-guest-auth {
	max-width: 640px;
	margin: 24px auto 0;
}

/* Inside the guided-flow's dark step rail (see guest-post-form.js
   relocateIntoRail()): full width, no auto-centering, dark-appropriate text. */
.mgl-rail .mgl-guest-auth {
	max-width: none;
	width: 100%;
	margin: 24px 0 0;
}

.mgl-rail .mgl-ga {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.mgl-rail .mgl-ga-subheading,
.mgl-rail .mgl-ga-divider {
	color: rgba(255, 255, 255, 0.55);
}

.mgl-rail .mgl-ga-collapsed {
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.mgl-rail .mgl-ga-collapsed:hover {
	background: rgba(255, 255, 255, 0.07);
}

.mgl-rail .mgl-ga-collapsed-label {
	color: rgba(255, 255, 255, 0.7);
}

.mgl-rail .mgl-ga-collapsed-cta {
	color: #fff;
}

.mgl-rail .mgl-ga-identifier-row {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.mgl-rail .mgl-ga-identifier-change {
	color: #fff;
}

.mgl-rail .mgl-ga-switch-mode {
	color: rgba(255, 255, 255, 0.7);
}

.mgl-rail .mgl-ga-checkbox-row {
	color: rgba(255, 255, 255, 0.75);
}

.mgl-rail .mgl-ga-btn--google {
	border-color: transparent;
}

/* The default submit button color (near-black) has almost no contrast
   against the rail's own near-black background — it read as plain text,
   not a button. Use the site's accent color here for real button affordance. */
.mgl-rail .mgl-ga-btn--submit {
	background: var(--mgl-accent, #e61e4d);
	color: #fff;
}

.mgl-rail .mgl-ga-btn--submit:hover {
	filter: brightness(0.92);
	color: #fff;
}

.mgl-rail .mgl-ga-error {
	background: rgba(220, 50, 50, 0.25);
	border-color: rgba(220, 50, 50, 0.5);
	color: #ffd7d7;
}

.mgl-rail .mgl-ga-success {
	background: rgba(40, 180, 90, 0.2);
	border-color: rgba(40, 180, 90, 0.4);
	color: #fff;
}

.mgl-guest-auth,
.mgl-guest-auth * {
	line-height: 1.5;
}

.mgl-ga {
	padding: 20px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.02);
	font-size: 15px;
}

.mgl-ga-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.mgl-ga-heading {
	margin: 0 0 4px;
}

/* Collapses the panel back to the single quiet line (see collapse() in
   guest-post-form.js) — without it, once a guest expands this there was no
   way back except abandoning the page. */
.mgl-ga-close {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: inherit;
	opacity: 0.55;
}

.mgl-ga-close:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.06);
}

.mgl-rail .mgl-ga-close:hover {
	background: rgba(255, 255, 255, 0.1);
}

.mgl-ga-subheading {
	margin: 0 0 16px;
	font-size: 13px;
	opacity: 0.7;
}

.mgl-ga-error {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 8px;
	background: rgba(220, 50, 50, 0.1);
	border: 1px solid rgba(220, 50, 50, 0.35);
	color: #a92727;
	font-size: 13px;
}

.mgl-ga-success {
	padding: 16px 20px;
	border-radius: 12px;
	background: rgba(40, 180, 90, 0.12);
	border: 1px solid rgba(40, 180, 90, 0.35);
}

.mgl-ga-collapsed {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: transparent;
	cursor: pointer;
	font-size: 14px;
	color: inherit;
}

.mgl-ga-collapsed:hover {
	background: rgba(0, 0, 0, 0.03);
}

.mgl-ga-collapsed-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-secondary, rgba(0, 0, 0, 0.65));
}

.mgl-ga-icon-lock {
	width: 14px;
	height: 14px;
	display: inline-block;
	border: 1.5px solid currentColor;
	border-radius: 2px;
	position: relative;
}

.mgl-ga-collapsed-cta {
	font-weight: 600;
	color: var(--mgl-submit-bg, #111);
}

.mgl-ga-switch-mode {
	background: none;
	border: none;
	width: 100%;
	font-size: 13px;
	text-align: center;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
	padding: 0;
}

.mgl-ga-identifier-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.04);
}

.mgl-ga-identifier-value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	flex: 1;
}

.mgl-ga-identifier-change {
	flex-shrink: 0;
	background: none;
	border: none;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
	padding: 0;
}

.mgl-ga-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mgl-ga-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mgl-ga-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	/* Always dark: the input's own background is white/light regardless of
	   the panel's surrounding context (e.g. the dark step rail), so this
	   must not inherit the light-on-dark text color used there. */
	color: #111;
}

.mgl-ga-checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
}

.mgl-ga-btn {
	padding: 10px 20px;
	border-radius: 999px;
	border: none;
	font-weight: 600;
	cursor: pointer;
}

.mgl-ga-btn--submit {
	background: var(--mgl-submit-bg, #111);
	color: var(--mgl-submit-color, #fff);
}

.mgl-ga-btn--submit:hover {
	background: var(--mgl-submit-bg-hover, #333);
	color: var(--mgl-submit-color-hover, #fff);
}

.mgl-ga-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.mgl-ga-btn--google {
	display: block;
	text-align: center;
	text-decoration: none;
	background: #fff;
	color: #1f1f1f;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

.mgl-ga-divider {
	text-align: center;
	font-size: 12px;
	opacity: 0.6;
	text-transform: uppercase;
	margin: 4px 0;
}
