.mal-bridge-card {
	align-items: center;
	background: linear-gradient(135deg, #052b20, #0a5037);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 22px;
	box-shadow: 0 18px 50px rgba(3, 30, 22, .18);
	box-sizing: border-box;
	color: #fff;
	display: grid;
	gap: 18px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	margin: 24px auto;
	max-width: 1120px;
	padding: 24px 28px;
}

.mal-bridge-card * { box-sizing: border-box; }
.mal-bridge-card > span { background: #a9d72d; border-radius: 999px; color: #052b20; font-size: 10px; font-weight: 900; letter-spacing: .12em; padding: 8px 11px; white-space: nowrap; }
.mal-bridge-card h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); line-height: 1.05; margin: 0 0 7px; }
.mal-bridge-card p { color: #dcebe3; font-size: 13px; line-height: 1.55; margin: 0; }
.mal-bridge-actions { display: grid; gap: 8px; min-width: 190px; }
.mal-bridge-actions a { border: 1px solid #fff; border-radius: 999px; font-size: 12px; font-weight: 900; padding: 12px 17px; text-align: center; text-decoration: none; white-space: nowrap; }
.mal-bridge-primary { background: #fff; color: #09633c; }
.mal-bridge-secondary { background: transparent; color: #fff; }

.mal-connected-profile { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; max-width: 330px; position: relative; z-index: 9998; }
.mal-connected-profile.is-floating { bottom: max(18px, env(safe-area-inset-bottom)); position: fixed; right: max(18px, env(safe-area-inset-right)); }
.mal-connected-profile * { box-sizing: border-box; }
.mal-connected-profile__card { position: relative; }
.mal-connected-profile__card > a { align-items: center; background: rgba(255,255,255,.97); border: 1px solid rgba(6,58,42,.13); border-radius: 20px; box-shadow: 0 18px 48px rgba(3,38,27,.18); color: #082d22; display: grid; gap: 12px; grid-template-columns: 50px minmax(0, 1fr) auto; padding: 11px 38px 11px 13px; text-decoration: none; transition: box-shadow 150ms ease, transform 150ms ease; }
.mal-connected-profile__card > a:hover, .mal-connected-profile__card > a:focus-visible { box-shadow: 0 22px 56px rgba(3,38,27,.24); color: #082d22; transform: translateY(-2px); }
.mal-connected-profile__avatar { align-items: center; background: linear-gradient(145deg, #087a4d, #06442f); border-radius: 14px; color: #fff; display: flex; font-size: 12px; font-weight: 950; height: 50px; justify-content: center; overflow: hidden; width: 50px; }
.mal-connected-profile__avatar img { display: block; height: 100%; object-fit: cover; width: 100%; }
.mal-connected-profile__details, .mal-connected-profile__details > * { display: block; min-width: 0; }
.mal-connected-profile__details small { color: #168a4a; font-size: 7px; font-weight: 950; letter-spacing: .1em; margin-bottom: 2px; }
.mal-connected-profile__details strong { color: #082d22; font-size: 12px; line-height: 1.25; }
.mal-connected-profile__details > span { color: #6d7b75; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mal-connected-profile__details em { color: #99a49f; font-size: 8px; font-style: normal; letter-spacing: .03em; margin-top: 1px; }
.mal-connected-profile b { color: #168a4a; font-size: 14px; }
.mal-connected-profile__close { align-items: center; appearance: none; background: #eef5f1; border: 0; border-radius: 999px; color: #315e4e; cursor: pointer; display: flex; font: 700 18px/1 sans-serif; height: 25px; justify-content: center; padding: 0; position: absolute; right: 9px; top: 9px; width: 25px; }
.mal-connected-profile__close:hover, .mal-connected-profile__close:focus-visible { background: #dcece3; color: #073d2c; outline: 2px solid #9bce33; outline-offset: 2px; }
.mal-connected-profile__restore { align-items: center; appearance: none; background: linear-gradient(145deg, #0a7c4e, #06432f); border: 2px solid #fff; border-radius: 16px 0 0 16px; box-shadow: 0 12px 30px rgba(3,38,27,.25); color: #fff; cursor: pointer; display: none; height: 48px; justify-content: center; padding: 0 8px; position: fixed; right: 0; top: 58%; width: 48px; }
.mal-connected-profile__restore span { font-size: 9px; font-weight: 950; letter-spacing: -.02em; }
.mal-connected-profile.is-collapsed .mal-connected-profile__card { display: none; }
.mal-connected-profile.is-collapsed .mal-connected-profile__restore { display: flex; }

.login form#loginform {
	border: 1px solid #dbe5df;
	border-radius: 24px;
	box-shadow: 0 22px 56px rgba(4, 41, 29, .14);
	box-sizing: border-box;
	overflow: hidden;
	padding: 0 26px 26px;
}

.login .mal-bridge-login-panel {
	background: linear-gradient(145deg, #073a2b, #0c6545);
	color: #fff;
	margin: 0 -26px 24px;
	padding: 24px 26px 20px;
	text-align: center;
}

.login .mal-bridge-login-panel > span {
	background: #b7df39;
	border-radius: 999px;
	color: #073a2b;
	display: inline-block;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .14em;
	margin-bottom: 10px;
	padding: 7px 10px;
}

.login .mal-bridge-login-panel h2 { color: #fff; font-size: 22px; line-height: 1.1; margin: 0 0 8px; }
.login .mal-bridge-login-panel p { color: #dbece5; font-size: 12px; line-height: 1.5; margin: 0 auto; max-width: 310px; }
.mal-bridge-login-actions { display: grid; gap: 8px; margin: 16px 0 18px; }
.mal-bridge-login-actions a { border-radius: 999px; display: block; font-size: 12px; font-weight: 850; padding: 11px 14px; text-decoration: none; }
.mal-bridge-login-primary { background: #fff; color: #086342; }
.mal-bridge-login-primary:hover, .mal-bridge-login-primary:focus { background: #f0f8f3; color: #064b34; }
.mal-bridge-login-create { border: 1px solid rgba(255,255,255,.72); color: #fff; }
.mal-bridge-login-create:hover, .mal-bridge-login-create:focus { border-color: #fff; color: #fff; }
.mal-bridge-login-divider { align-items: center; display: flex; gap: 10px; }
.mal-bridge-login-divider::before, .mal-bridge-login-divider::after { background: rgba(255,255,255,.28); content: ""; flex: 1; height: 1px; }
.mal-bridge-login-divider span { color: #dbece5; font-size: 9px; letter-spacing: .03em; line-height: 1.3; text-transform: uppercase; }

@media (max-width: 480px) {
	.login form#loginform { padding: 0 22px 23px; }
	.login .mal-bridge-login-panel { margin-left: -22px; margin-right: -22px; padding: 22px 20px 18px; }
	.mal-connected-profile.is-floating { bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; max-width: none; right: 10px; }
	.mal-connected-profile__card > a { border-radius: 17px; grid-template-columns: 44px minmax(0, 1fr) auto; padding: 9px 38px 9px 11px; }
	.mal-connected-profile__avatar { border-radius: 12px; height: 44px; width: 44px; }
}

@media (max-width: 800px) {
	.mal-bridge-card { grid-template-columns: 1fr; padding: 22px; }
	.mal-bridge-card > span { justify-self: start; }
	.mal-bridge-actions { min-width: 0; }
	.mal-bridge-actions a { white-space: normal; }
}
